/* Layout: navy brand band with tabs, then one working surface per tab; scorecard = KPI tiles over funnel/trend/source detail */
:root {
  --bg: #F4F3EF; --surface: #FFFFFF; --surface-2: #ECE9E2; --ink: #0E1E37; --muted: #5A6273; --line: #DCD7CC;
  --band: #0E1E37; --band-ink: #F3EEE3; --band-muted: #A9B3C4;
  --gold: #B9903F; --gold-ink: #7E6024; --gold-soft: #F3EAD6;
  --good: #2D7550; --good-bg: #E3F1E8; --warn: #9A620F; --warn-bg: #FBEFD9; --bad: #A3312A; --bad-bg: #F8E3E0;
  --tag-a: #E3E9F3; --tag-a-ink: #2C4466; --tag-b: #E6E1F2; --tag-b-ink: #4C3B78;
  --focus: #0E1E37;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --body: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 6px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0A111D; --surface: #111B2B; --surface-2: #17243A; --ink: #ECE6DA; --muted: #9AA4B5; --line: #26354D;
  --band: #070D17; --band-ink: #F3EEE3; --band-muted: #93A0B5;
  --gold: #B9903F; --gold-ink: #D9C296; --gold-soft: #2A2416;
  --good: #6FCB97; --good-bg: #13291E; --warn: #E5AE55; --warn-bg: #2C2210; --bad: #EE8A80; --bad-bg: #321613;
  --tag-a: #1C2C46; --tag-a-ink: #B9C9E4; --tag-b: #251F3A; --tag-b-ink: #C9BDEB;
  --focus: #D9C296; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0A111D; --surface: #111B2B; --surface-2: #17243A; --ink: #ECE6DA; --muted: #9AA4B5; --line: #26354D;
  --band: #070D17; --band-ink: #F3EEE3; --band-muted: #93A0B5;
  --gold: #B9903F; --gold-ink: #D9C296; --gold-soft: #2A2416;
  --good: #6FCB97; --good-bg: #13291E; --warn: #E5AE55; --warn-bg: #2C2210; --bad: #EE8A80; --bad-bg: #321613;
  --tag-a: #1C2C46; --tag-a-ink: #B9C9E4; --tag-b: #251F3A; --tag-b-ink: #C9BDEB;
  --focus: #D9C296; color-scheme: dark; }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 14px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); max-width: 1320px; margin-inline: auto; }
.num, td.n { font-variant-numeric: tabular-nums; }

.band { background: var(--band); color: var(--band-ink); }
.band .wrap { padding-block: 18px 0; }
.top { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mark { width: 36px; height: 39px; flex: none; }
.brand h1 { font-family: var(--display); font-size: 21px; font-weight: 700; margin: 0; letter-spacing: .01em; }
.brand p { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--band-muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 12.5px; font-weight: 500; min-height: 32px; }
.seg button:hover { color: var(--band-ink); }
.seg button[aria-pressed="true"] { background: var(--gold); color: #0E1E37; font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 13px; min-height: 38px; }
.btn:hover { border-color: var(--gold); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #0E1E37; }
.btn-gold:hover { background: #D3B272; }
.btn-ghost { background: none; border-color: transparent; }
.btn-danger { color: var(--bad); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 16px; scrollbar-width: none; }
.tabs button { background: none; border: 0; color: var(--band-muted); padding: 10px 14px 12px; cursor: pointer; font-weight: 600; font-size: 13.5px; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--band-ink); border-bottom-color: var(--gold); }
.tabs button:hover { color: var(--band-ink); }
.tabs .count { font-size: 11px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 1px 7px; margin-left: 5px; }

main .wrap { padding-block: 22px 60px; display: grid; gap: 22px; }
h2 { font-family: var(--display); font-size: 22px; margin: 0; text-wrap: balance; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.sub { color: var(--muted); margin: 4px 0 0; }
.head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; justify-content: space-between; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.notice { background: var(--gold-soft); border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 0 var(--r) var(--r) 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.notice.bad { background: var(--bad-bg); border-color: var(--bad); display: block; }

.kgroup { display: grid; gap: 0; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 12px 16px; display: grid; gap: 6px; align-content: start; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--line); }
.kpi.good::before { background: var(--good); } .kpi.warn::before { background: var(--warn); } .kpi.bad::before { background: var(--bad); }
.kpi .lbl { font-size: 12px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.kpi .v { font-size: 26px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .t { font-size: 11.5px; color: var(--muted); }
.chip { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 7px; white-space: nowrap; align-self: start; }
.chip.good { background: var(--good-bg); color: var(--good); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.none { background: var(--surface-2); color: var(--muted); }
.bar { height: 5px; background: var(--surface-2); border-radius: 3px; position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--gold); max-width: 100%; }
.bar b { position: absolute; top: -3px; width: 2px; height: 11px; background: var(--ink); opacity: .55; }

.cols2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
@media (max-width: 960px) { .cols2 { grid-template-columns: 1fr; } }

.funnel { display: grid; gap: 8px; }
.frow { display: grid; grid-template-columns: 120px 1fr 92px; gap: 10px; align-items: center; font-size: 13px; }
.frow .track { height: 22px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.frow .track i { display: block; height: 100%; background: var(--ink); opacity: .82; }
.frow .track i.won { background: var(--gold); opacity: 1; }
.frow .track i.lost { background: var(--bad); opacity: .85; }
.frow span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; white-space: nowrap; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td, tbody tr.click:focus-visible td { background: var(--surface-2); }
.who { font-weight: 600; }
.small { font-size: 12px; color: var(--muted); }
.pill { display: inline-block; font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; background: var(--surface-2); }
.pill.s-contacted { background: var(--tag-a); color: var(--tag-a-ink); } .pill.s-quoted { background: var(--gold-soft); color: var(--gold-ink); }
.pill.s-contract { background: var(--tag-b); color: var(--tag-b-ink); } .pill.s-won { background: var(--good-bg); color: var(--good); } .pill.s-lost { background: var(--bad-bg); color: var(--bad); }
.late { color: var(--bad); font-weight: 600; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input, .filters select { min-height: 38px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 6px 10px; min-width: 0; }
.filters input { flex: 1 1 220px; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--surface-2); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 160px; }
.col-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 4px 6px; }
.col-h b { font-size: 13px; } .col-h span { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 11px; display: grid; gap: 5px; }
.card:hover { border-color: var(--gold); }
.card .nm { font-weight: 600; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.card .nm:hover { color: var(--gold-ink); }
.card .row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.card select { font-size: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 4px 6px; min-height: 30px; }
.empty-col { font-size: 12px; color: var(--muted); padding: 8px 4px; margin: 0; }

.empty { display: grid; gap: 10px; justify-items: start; padding: 28px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); }
.empty h2 { font-size: 20px; }
.empty ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }

.chart text { fill: var(--muted); font-size: 10px; font-family: var(--body); }
.chart .grid { stroke: var(--line); }
.chart .b-lead { fill: var(--ink); opacity: .82; }
.chart .b-won { fill: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

dialog { border: 0; padding: 0; border-radius: 10px; background: var(--surface); color: var(--ink); width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(7,13,23,.55); }
.dlg-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--band); color: var(--band-ink); position: sticky; top: 0; z-index: 1; }
.dlg-h h2 { font-size: 19px; }
.dlg-h button { background: none; border: 0; color: var(--band-ink); font-size: 24px; cursor: pointer; width: 40px; height: 40px; }
.dlg-b { padding: 18px 20px; display: grid; gap: 18px; }
.fs { display: grid; gap: 12px; }
.fs > h3 { margin: 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.f { display: grid; gap: 4px; min-width: 0; align-content: start; }
.f label { font-size: 12px; font-weight: 600; color: var(--muted); }
.f input, .f select, .f textarea { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 8px 10px; min-height: 38px; width: 100%; min-width: 0; }
.f textarea { min-height: 70px; resize: vertical; }
.f.wide { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13px; min-height: 38px; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.err { color: var(--bad); font-size: 12.5px; font-weight: 600; margin: 0; }
.dlg-f { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
.hist { display: grid; gap: 4px; font-size: 12px; color: var(--muted); max-height: 140px; overflow: auto; }
.wa { font-size: 12px; font-weight: 600; color: var(--gold-ink); }

.tgt input { width: 96px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); padding: 6px 8px; text-align: right; min-height: 34px; }
.spend { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px 18px; }
.spend label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.spend input { width: 110px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); padding: 6px 8px; text-align: right; min-height: 34px; flex: none; }
.spend-head select { border: 1px solid var(--line); border-radius: 4px; background: var(--bg); padding: 5px 8px; min-height: 34px; }

#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--band); color: var(--band-ink); padding: 10px 16px; border-radius: var(--r); font-weight: 600; font-size: 13px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }
@media (max-width: 560px) { .frow { grid-template-columns: 92px 1fr 70px; } .kpi .v { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

html, body { margin: 0; }
[hidden] { display: none !important; }
.btn-acct { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: var(--band-ink); }
.btn-acct:hover { border-color: var(--gold); }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #0E1E37; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; }
#acctName { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--band); padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.login-card { width: min(400px, 100%); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 28px; display: grid; gap: 16px; box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.login-card .brand h1 { color: var(--ink); }
.login-card .brand p { color: var(--gold-ink); }
.login-card .btn { width: 100%; justify-content: center; }
.login-foot { font-size: 12px; color: var(--muted); margin: 0; }
.mini { max-width: 520px; }
.temp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: .06em; background: var(--surface-2); border: 1px dashed var(--gold); border-radius: var(--r); padding: 12px 14px; user-select: all; word-break: break-all; }
.team-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; align-items: end; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions .btn { min-height: 32px; padding: 5px 10px; font-size: 12px; }
td select { border: 1px solid var(--line); border-radius: 4px; background: var(--bg); padding: 4px 6px; min-height: 32px; }

/* ---------- v2: pipeline, delivery, renewals, partners, My day ---------- */
.warn { color: var(--warn); font-weight: 600; }
.hint { margin: -10px 0 0; }
.flat { margin: 0; }
.pad { padding: 0 18px 14px; margin: 0; }
.end { justify-content: flex-end; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-t { padding: 14px 18px 4px; }
.panel .head h3 { margin: 0; }
.seg-light { background: var(--surface); border-color: var(--line); }
.seg-light button { color: var(--muted); }
.seg-light button:hover { color: var(--ink); }
.seg-light button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.top-actions .seg-mine button[aria-pressed="true"] { background: var(--band-ink); color: var(--band); }

/* board */
.card { cursor: grab; transition: border-color var(--dur, .15s), transform var(--dur, .15s), opacity var(--dur, .15s); }
.card.dragging { opacity: .45; transform: scale(.98); }
.card.stuck { border-left: 3px solid var(--bad); }
.card-top { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.age { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; }
.age.bad { background: var(--bad-bg); color: var(--bad); }
.tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 999px; padding: 1px 7px; }
.tag.t-commit { background: var(--good-bg); color: var(--good); }
.tag.t-best { background: var(--gold-soft); color: var(--gold-ink); }
.mv { display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.col.drop-over { outline: 2px dashed var(--gold); outline-offset: -2px; background: var(--gold-soft); }

/* modal */
dialog.wide { width: min(980px, calc(100vw - 24px)); }
.mtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; margin: -6px 0 0; scrollbar-width: none; }
.mtabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; min-height: 40px; }
.mtabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.mpane { display: grid; gap: 14px; align-content: start; }
.sec-t { margin: 6px 0 0; border-bottom: 1px solid var(--line); padding-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.sec-t .prog { flex: 1; max-width: 160px; }
.hide-lost { display: none; }
.checks { display: grid; gap: 2px; }
.step { justify-content: flex-start; font-weight: 500; padding: 4px 6px; border-radius: 4px; }
.step:hover { background: var(--surface-2); }
.step.done > span:first-of-type { text-decoration: line-through; color: var(--muted); }
.step .small { margin-left: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--gold-ink); font-weight: 600; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn.who { color: var(--ink); text-decoration: none; }
.linkbtn.who:hover { color: var(--gold-ink); }
.linkrow { display: flex; flex-wrap: wrap; gap: 8px; }
.linkrow input { flex: 1 1 260px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 8px 10px; min-height: 38px; font-size: 12.5px; }

/* quote */
.qhead, .qline { display: grid; grid-template-columns: minmax(0, 1fr) 180px 130px 40px; gap: 8px; align-items: center; }
.qline input, .qline select { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 7px 9px; min-height: 38px; width: 100%; min-width: 0; }
.qline .ql-amt { text-align: right; }
#qLines { display: grid; gap: 8px; }
@media (max-width: 640px) { .qhead { display: none; } .qline { grid-template-columns: 1fr 1fr 40px; } .qline .ql-desc { grid-column: 1 / -1; } }
.qtotals, .stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.qtotals > div, .stats > div { background: var(--surface-2); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; }
.qtotals span, .stats span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.qtotals b, .stats b { font-size: 17px; font-variant-numeric: tabular-nums; }
.qtotals .grand, .stats .grand { background: var(--ink); color: var(--surface); }
.qtotals .grand span, .stats .grand span { color: inherit; opacity: .75; }

/* activity */
.actform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actform input:not([type="checkbox"]), .actform select { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 7px 10px; min-height: 38px; min-width: 0; }
.actform input:not([type="checkbox"]) { flex: 1 1 240px; }
.actform .check { min-height: 0; font-weight: 500; font-size: 12.5px; }
.tpls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tpls .btn { min-height: 32px; padding: 5px 10px; font-size: 12px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; max-height: 300px; overflow: auto; }
.timeline li { display: grid; gap: 1px; position: relative; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.timeline li.act::before { background: var(--gold); }
ul.mini { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
ul.mini li { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.case-meta { margin-top: -6px; }

/* progress */
.prog { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; min-width: 80px; }
.prog i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.pill.c-active { background: var(--tag-a); color: var(--tag-a-ink); } .pill.c-blocked { background: var(--warn-bg); color: var(--warn); }
.pill.c-done { background: var(--good-bg); color: var(--good); } .pill.c-cancelled { background: var(--surface-2); color: var(--muted); }
.pill.x-active { background: var(--tag-a); color: var(--tag-a-ink); } .pill.x-renewing { background: var(--gold-soft); color: var(--gold-ink); } .pill.x-lapsed { background: var(--bad-bg); color: var(--bad); }

/* My day */
.hello h2 { font-size: 26px; }
.day { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; align-items: start; }
.day-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 10px; border-top: 3px solid var(--line); }
.day-block.hot { border-top-color: var(--bad); }
.day-block.warn { border-top-color: var(--warn); }
.day-block h3 { display: flex; align-items: center; gap: 8px; color: var(--ink); margin-bottom: 2px; }
.day-block .count { background: var(--surface-2); border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.day-block.hot .count { background: var(--bad-bg); color: var(--bad); }
.day-block > .small { margin: 0 0 8px; }
.day-block ul { list-style: none; margin: 0; padding: 0; }
.day-block li button { display: grid; gap: 1px; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 9px 4px; cursor: pointer; border-radius: 0; }
.day-block li button:hover, .day-block li button:focus-visible { background: var(--surface-2); }
.day-block li button span { font-size: 12px; color: var(--muted); }

/* forecast */
.fc-bar { position: relative; display: flex; height: 26px; background: var(--surface-2); border-radius: 4px; margin: 4px 0 2px; }
.fc-bar i { display: block; height: 100%; }
.fc-bar i:first-child { border-radius: 4px 0 0 4px; }
.fc-won { background: var(--ink); } .fc-commit { background: var(--good); } .fc-best { background: var(--gold); } .fc-pipe { background: var(--line); }
.legend i.b-lead { background: var(--ink); } .legend i.b-won { background: var(--gold); }
.fc-bar b { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--bad); }
.panel > .stats { margin-top: 12px; }
.kpi .lbl i { font-style: normal; font-weight: 500; }
@media (max-width: 560px) { .hello h2 { font-size: 22px; } }

a.btn { text-decoration: none; color: var(--ink); }
a.btn-gold { color: #0E1E37; }

.invite-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.invite-actions .btn { flex: 1 1 160px; justify-content: center; text-align: center; text-decoration: none; }
