/* Round 3 · B: logo lockup, month drawer, search palette, since-last-time card, history. */

/* ---------- logo lockup (sign-in) ---------- */
.lockup { display: flex; align-items: center; gap: 12px; }
.lock-mark { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); }
.lock-word { font-weight: 600; font-size: 21px; letter-spacing: -0.03em; line-height: 1.1; }

/* ---------- month drawer ---------- */
.md-scrim { position: fixed; inset: 0; background: rgba(21,24,26,.18); z-index: 60; animation: mdFade .15s ease-out; }
.md-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 100vw); background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: -16px 0 40px rgba(16,24,20,.10); z-index: 61; display: flex; flex-direction: column; animation: mdIn .2s cubic-bezier(.2,.7,.2,1); }
@keyframes mdIn { from { transform: translateX(24px); opacity: 0; } }
@keyframes mdFade { from { opacity: 0; } }
.md-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; }
.md-head h2 { font-size: 18px; letter-spacing: -0.3px; }
.md-stats { display: grid; grid-template-columns: 1fr 1fr 1fr 1.2fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.md-stats > div { background: var(--surface); padding: 12px 16px; }
.md-stats .xs { white-space: nowrap; }
.md-stats .v { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.md-tabs { display: flex; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.md-tabs button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--muted); padding: 12px 0 10px; border-bottom: 2px solid transparent; cursor: pointer; }
.md-tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.md-list { flex: 1; overflow: auto; }
.md-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.md-row:first-child { border-top: 0; }
.md-row:hover { background: var(--surface-2); }
.md-row .arr { opacity: .35; transition: opacity .15s, transform .15s; }
.md-row:hover .arr { opacity: 1; transform: translateX(2px); }
.md-row .nm { font-weight: 500; }
.md-row .amt { width: 72px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.tier-chip { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
.tier-chip.committed { background: #D4E3DA; color: #0E3F2C; }
.tier-chip.documented { background: #DCEBE1; color: #1E7048; }
.tier-chip.estimated { background: #E8F3EB; color: #2E6B43; }
.tier-chip.placeholder { background: #FCF0DA; color: #8A5A0E; }
.tier-chip.actual { background: #ECEBE6; color: #4A4F54; }
.fund-bars .lc-bar-col.on, .lc-month-on { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 5px; }

/* ---------- search palette ---------- */
.sp-scrim { position: fixed; inset: 0; background: rgba(21,24,26,.28); z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; animation: mdFade .12s ease-out; }
.sp { width: min(680px, calc(100vw - 32px)); background: var(--surface); border-radius: 16px; box-shadow: 0 24px 64px rgba(16,24,20,.22); overflow: hidden; display: flex; flex-direction: column; max-height: 72vh; }
.sp-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sp-in input { flex: 1; border: 0; outline: none; font: inherit; font-size: 16px; background: none; color: var(--ink); }
.sp-res { overflow: auto; padding: 6px 0; }
.sp-grp { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 16px 4px; }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 8px 16px; cursor: pointer; }
.sp-item.on { background: var(--brand-tint); }
.sp-item .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--sunken); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.sp-item.ask .ic { background: var(--brand-tint-2); color: var(--brand-2); }
.sp-item .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-item .t b { font-weight: 600; }
.sp-item .m { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sp-foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface); font-size: 11px; color: var(--ink-2); font-family: inherit; }
.sp-empty { padding: 18px 16px; color: var(--muted); font-size: 13px; }
.rail .search-btn { color: rgba(255,255,255,.55); }

/* ---------- since last time ---------- */
.since { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.since-h { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 13.5px; }
.since-i { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.since-i:first-of-type { border-top: 0; }
.since-i .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--brand-tint); color: var(--brand-2); }
.since-i .ic.warn { background: #FDF3E4; color: #A86410; }
.since-i .ic.gray { background: var(--sunken); color: var(--ink-2); }
.since-i .grow { min-width: 0; }

/* ---------- history ---------- */
.hist-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .hist-grid { grid-template-columns: 1fr; } }
.hist-drop { margin: 14px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px; transition: border-color .15s, background .15s; }
.hist-drop.drag { border-color: var(--brand-2); background: var(--brand-tint); }
.hist-yr { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); cursor: pointer; user-select: none; }
.hist-yr:hover { background: var(--surface-2); }
.hist-file { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 40px; border-top: 1px solid var(--line); transition: background .15s; }
.hist-file:hover { background: var(--surface-2); }
.hist-file .fi { width: 28px; height: 28px; border-radius: 8px; background: var(--sunken); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.hist-file .tray { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .15s; }
.hist-file:hover .tray { opacity: 1; }
.hist-dec { display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border-top: 1px solid var(--line); }
.cite-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: #EEF0F2; color: #3D4349; font-size: 11.5px; font-weight: 500; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; vertical-align: 1px; text-decoration: none; }
.cite-chip:hover { background: #E2E6E9; }
.hist-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.hist-tbl th { font-size: 11.5px; font-weight: 500; color: var(--muted); text-align: right; padding: 6px 0; }
.hist-tbl td { text-align: right; padding: 7px 0; border-top: 1px solid var(--line); }
.hist-tbl th:first-child, .hist-tbl td:first-child { text-align: left; }
.over { color: #A8301F; } .under { color: #1E7048; }
.badge-soft { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 5px; background: var(--brand-tint); color: var(--brand-2); }
.badge-soft.warn { background: #FCF0DA; color: #8A5A0E; }
.rail a.rail-search { margin-bottom: 8px; }
.rail a.rail-search::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -6px; height: 1px; background: rgba(255,255,255,.1); }
/* line page tabs: five fit on one line (History joined Notes, Documents, Spend, Activity) */
.lp-tabs .tabs { gap: 14px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
.lp-tabs .tabs button { white-space: nowrap; flex: none; }
