/* TSL Command Center v3. Dark-first operations design system. */
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-700.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url(fonts/satoshi-900.woff2) format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg-primary: #07091A; --bg-surface: #0F1224; --bg-elevated: #161A2E; --bg-hover: #1B2036; --border: #1E2338; --border-2: #2A3150;
  --text-primary: #F3F3EE; --text-muted: #8B92A8; --text-faint: #646B82;
  --accent-cyan: #00DBFF; --accent-mint: #00FFB0; --accent-violet: #A78BFA; --accent-blue: #60A5FA;
  --rag-green: #22C55E; --rag-yellow: #EAB308; --rag-red: #EF4444;
  --rag-green-bg: rgba(34, 197, 94, 0.12); --rag-yellow-bg: rgba(234, 179, 8, 0.12); --rag-red-bg: rgba(239, 68, 68, 0.12);
  --cyan-bg: rgba(0, 219, 255, 0.10); --mint-bg: rgba(0, 255, 176, 0.10); --violet-bg: rgba(167, 139, 250, 0.13); --blue-bg: rgba(96, 165, 250, 0.13);
  --r-sm: 6px; --r: 10px; --r-lg: 12px;
  --font: "Satoshi", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --side: 232px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font: 400 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; font-weight: 700; text-wrap: balance; }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
.num, .tn, .ssn, .mval b, td.num, .rcall, .score, .kn, .tgc, .nb { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); } .small { font-size: 12.5px; } .big { font-size: 15px; } .redt { color: var(--rag-red); } .greent { color: var(--rag-green); } .violett { color: var(--accent-violet); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
kbd { font: 500 11px var(--mono); color: var(--text-faint); border: 1px solid var(--border-2); border-radius: 4px; padding: 0 5px; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 8px; padding: 16px 12px; border-right: 1px solid var(--border); background: var(--bg-primary); overflow-y: auto; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand b { display: block; font-size: 14px; letter-spacing: -0.01em; } .brand small { display: block; color: var(--text-muted); font-size: 12px; }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent-cyan), var(--accent-mint)); color: #04121A; font: 900 12px var(--font); letter-spacing: .04em; }
.logo.big { width: 52px; height: 52px; font-size: 16px; border-radius: 14px; margin: 0 auto 14px; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.navh { margin: 16px 10px 6px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.nv { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--text-muted); font-weight: 500; text-align: left; transition: background .12s, color .12s; }
.nv:hover { background: var(--bg-surface); color: var(--text-primary); }
.nv.on { background: var(--bg-elevated); color: var(--text-primary); box-shadow: inset 2px 0 0 var(--accent-cyan); }
.nv.on .ic { color: var(--accent-cyan); }
.nb { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--bg-elevated); color: var(--text-primary); font-size: 11.5px; font-weight: 700; text-align: center; }
.nb.hot { background: var(--violet-bg); color: var(--accent-violet); }
.sidefoot { border-top: 1px solid var(--border); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: rgba(7, 9, 26, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.searchbtn { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-muted); }
.searchbtn span { flex: 1; text-align: left; } .searchbtn:hover { border-color: var(--border-2); }
.topr { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.wk { position: relative; display: flex; align-items: center; }
.wk select { appearance: none; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 9px; padding: 7px 30px 7px 12px; font-weight: 500; max-width: 260px; }
.wk .ic { position: absolute; right: 9px; pointer-events: none; color: var(--text-muted); }
.sync, .outbox { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.sync.ok .ic { color: var(--accent-mint); } .sync.bad { color: var(--rag-red); }
.outbox { padding: 6px 10px; border-radius: 99px; background: var(--cyan-bg); color: var(--accent-cyan); font-weight: 500; }
.pastbar { display: flex; align-items: center; gap: 8px; padding: 9px 24px; background: var(--rag-yellow-bg); color: #F5D565; border-bottom: 1px solid rgba(234, 179, 8, .25); font-size: 13px; }
.pastbar.bad { background: var(--rag-red-bg); color: #FCA5A5; }
.page { width: 100%; max-width: 1320px; margin: 0 auto; padding: 24px 24px 64px; display: flex; flex-direction: column; gap: 16px; }
.page.wide { max-width: none; }
.top .only-m { display: none; } .tabbar, .sideback { display: none; }

/* ---------- page heads ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph .sub { margin-top: 6px; color: var(--text-muted); max-width: 820px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ph.person .phl { display: flex; align-items: center; gap: 16px; }
.phr { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumb { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; margin-bottom: -6px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; } .crumb a:hover { color: var(--text-primary); }
.panh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panh.sub { margin: 18px 0 8px; } .panh.top { margin: 8px 0 -4px; }
.panh h2 { display: flex; align-items: center; gap: 8px; }
.lnk { color: var(--accent-cyan); font-size: 13px; font-weight: 500; } .lnk:hover { text-decoration: underline; }

/* ---------- surfaces ---------- */
.panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; min-width: 0; }
.panel > h2 { margin-bottom: 12px; }
.panel h3 { margin: 14px 0 6px; font-size: 13px; color: var(--text-muted); font-weight: 500; letter-spacing: .02em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: var(--r); background: var(--cyan-bg); color: #9BEFFF; font-size: 13px; }
.note.warn { background: var(--rag-yellow-bg); color: #F5D565; } .note.sm { font-size: 12.5px; padding: 8px 10px; }
.empty { padding: 28px 16px; text-align: center; border: 1px dashed var(--border-2); border-radius: var(--r); color: var(--text-muted); }
.empty .et { color: var(--text-primary); font-weight: 600; margin-bottom: 4px; } .empty p { max-width: 460px; margin: 0 auto 10px; font-size: 13px; }

/* ---------- RAG ---------- */
.rag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rag .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.rag.sm { font-size: 11.5px; padding: 2px 8px 2px 6px; } .rag.sm .ic { width: 12px; height: 12px; }
.rag.green { background: var(--rag-green-bg); color: #4ADE80; } .rag.yellow { background: var(--rag-yellow-bg); color: #FACC15; } .rag.red { background: var(--rag-red-bg); color: #F87171; } .rag.none { background: var(--bg-elevated); color: var(--text-muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--text-faint); flex: none; }
.dot.green { background: var(--rag-green); } .dot.yellow { background: var(--rag-yellow); } .dot.red { background: var(--rag-red); }
.lsum { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; } .lsum .dot { margin-left: 6px; } .lsum .dot:first-child { margin-left: 0; }
.drivers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.drivers li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.drivers li .ic { margin-top: 2px; } .drivers li.green .ic { color: var(--rag-green); } .drivers li.yellow .ic { color: var(--rag-yellow); } .drivers li.red .ic { color: var(--rag-red); } .drivers li.none .ic { color: var(--text-faint); }
.lpill { display: inline-flex; padding: 2px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--bg-elevated); color: var(--text-muted); }
.lpill.green { background: var(--rag-green-bg); color: #4ADE80; } .lpill.red { background: var(--rag-red-bg); color: #F87171; } .lpill.yellow { background: var(--rag-yellow-bg); color: #FACC15; } .lpill.violet { background: var(--violet-bg); color: var(--accent-violet); }

/* ---------- status strip ---------- */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ss { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 14px 18px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color .12s, background .12s; }
a.ss:hover { border-color: var(--border-2); background: var(--bg-elevated); }
.ss::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--border-2); }
.ss.green::before { background: var(--rag-green); } .ss.yellow::before { background: var(--rag-yellow); } .ss.red::before { background: var(--rag-red); }
.ssh { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 8px; font-size: 12.5px; color: var(--text-muted); font-weight: 500; letter-spacing: .02em; }
.ssn { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; } .ssn small { font-size: 14px; color: var(--text-muted); font-weight: 500; letter-spacing: 0; margin-left: 4px; } .ssn.sm { font-size: 22px; }
.sss { font-size: 12.5px; color: var(--text-muted); display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.al { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--border); background: var(--bg-surface); font-size: 13.5px; }
.al span { flex: 1; } .al > .ic:last-child { color: var(--text-faint); }
.al.red { background: var(--rag-red-bg); border-color: rgba(239, 68, 68, .25); } .al.red > .ic:first-child { color: #F87171; }
.al.yellow { background: var(--rag-yellow-bg); border-color: rgba(234, 179, 8, .22); } .al.yellow > .ic:first-child { color: #FACC15; }
.al:hover { filter: brightness(1.15); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.tile .tl { font-size: 12.5px; color: var(--text-muted); font-weight: 500; } .tile .tn { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.tile.green .tn { color: #4ADE80; } .tile.red .tn { color: #F87171; } .tile.violet .tn { color: var(--accent-violet); } .tile.blue .tn { color: var(--accent-cyan); }

/* ---------- client cards ---------- */
.ccards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ccard { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: border-color .12s, background .12s; }
.ccard:hover { border-color: var(--border-2); background: var(--bg-elevated); }
.ccard.red { border-color: rgba(239, 68, 68, .28); } .ccard.yellow { border-color: rgba(234, 179, 8, .22); }
.ccard header { display: flex; align-items: center; gap: 8px; } .ccard header b { flex: 1; font-size: 15px; }
.focus { color: var(--text-primary); font-size: 13px; display: flex; gap: 6px; align-items: center; } .focus .ic { color: var(--accent-mint); }
.why { font-size: 12.5px; padding: 6px 8px; border-radius: var(--r-sm); background: var(--bg-elevated); color: var(--text-muted); }
.why.red { color: #FCA5A5; background: var(--rag-red-bg); } .why.yellow { color: #F5D565; background: var(--rag-yellow-bg); }
.ccard footer { display: flex; align-items: center; gap: 14px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.ccard footer b { color: var(--text-primary); font-variant-numeric: tabular-nums; } .ccard footer .who { margin-left: auto; }
.gsw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: hsl(var(--h) 70% 60%); flex: none; } .gsw.lg { width: 14px; height: 14px; margin-right: 8px; vertical-align: 2px; }
.mline { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; } .mline span:first-child { flex: 1; color: var(--text-muted); } .mline b { font-size: 14px; font-variant-numeric: tabular-nums; }
.mvline { display: flex; align-items: center; gap: 8px; } .mvline b { font-size: 12.5px; }
.mvdots { display: flex; gap: 4px; flex: 1; } .mvdots i { height: 6px; flex: 1; border-radius: 3px; background: var(--border-2); } .mvdots i.prog { background: var(--accent-cyan); } .mvdots i.done { background: var(--accent-mint); }

/* ---------- progress ---------- */
.pbar { position: relative; height: 8px; border-radius: 99px; background: var(--bg-elevated); overflow: visible; margin-top: 6px; }
.pbar.thin { height: 5px; margin-top: 4px; }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--accent-cyan); }
.pbar i.green { background: var(--rag-green); } .pbar i.yellow { background: var(--rag-yellow); } .pbar i.red { background: var(--rag-red); }
.pbar u { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text-primary); opacity: .85; border-radius: 1px; }

/* ---------- hero (health) ---------- */
.hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; padding: 18px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.hero.red { background: linear-gradient(90deg, var(--rag-red-bg), transparent 60%), var(--bg-surface); } .hero.yellow { background: linear-gradient(90deg, var(--rag-yellow-bg), transparent 60%), var(--bg-surface); } .hero.green { background: linear-gradient(90deg, var(--rag-green-bg), transparent 60%), var(--bg-surface); }
.herol { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.heron { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; } .heron small { display: block; font-size: 12.5px; color: var(--text-muted); font-weight: 500; letter-spacing: 0; margin-top: 4px; }
.heror h3 { margin: 0 0 10px; color: var(--text-primary); font-size: 14px; font-weight: 600; }

/* ---------- needle movers ---------- */
.movers .panh { align-items: flex-start; } .movers .focus.big { font-size: 15px; margin-top: 6px; }
.mvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.mv { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--bg-elevated); border: 1px solid var(--border); }
.mv.done { border-color: rgba(0, 255, 176, .3); } .mv.prog { border-color: rgba(0, 219, 255, .3); }
.mv header { display: flex; gap: 6px; align-items: center; } .mvt { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.mv h3 { margin: 0; font-size: 14.5px; color: var(--text-primary); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.mv p { font-size: 13px; color: var(--text-muted); } .mv .subs { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-muted); display: flex; flex-direction: column; gap: 3px; }
.mv .seg { margin-top: auto; align-self: flex-start; }
.mvdone { padding: 8px 10px; border-radius: var(--r-sm); background: var(--mint-bg); color: #9FFFE0 !important; }
.mvdone b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-mint); }

/* ---------- metric cards ---------- */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mcard { padding: 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 6px; }
.mt { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }
.mval b { font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mval { display: flex; align-items: baseline; gap: 8px; } .mval span { color: var(--text-muted); font-size: 13px; } .mval .iconbtn { margin-left: auto; align-self: center; }
.mf { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.edited { display: flex; gap: 5px; align-items: center; color: var(--accent-cyan); } .edited .ic { width: 12px; height: 12px; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr[data-href] { cursor: pointer; } tr[data-href]:hover td { background: var(--bg-elevated); }
.r { text-align: right; } td.num { font-weight: 500; }
.ctable .cname { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; } .ctable td .gsw { margin-right: 6px; }
.stable td, .stable th { padding: 8px; } .stable td:first-child { font-weight: 500; white-space: nowrap; }
.spark { width: 80px; height: 22px; } .spark polyline { fill: none; stroke: var(--accent-cyan); stroke-width: 1.6; } .spark circle { fill: var(--accent-cyan); }

/* ---------- buttons and inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px; background: var(--bg-elevated); border: 1px solid var(--border-2); color: var(--text-primary); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover:not(:disabled) { background: var(--bg-hover); border-color: #39426A; }
.btn.primary { background: var(--accent-cyan); border-color: var(--accent-cyan); color: #03141B; font-weight: 600; } .btn.primary:hover:not(:disabled) { background: #4DE6FF; border-color: #4DE6FF; }
.btn.ok { background: var(--rag-green-bg); border-color: rgba(34, 197, 94, .4); color: #4ADE80; } .btn.no { background: var(--rag-red-bg); border-color: rgba(239, 68, 68, .4); color: #F87171; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; } .btn.wide { width: 100%; padding: 11px; }
.linkbtn { color: var(--accent-cyan); font-weight: 500; font-size: inherit; text-align: left; } .linkbtn:hover { text-decoration: underline; } .linkbtn.big { color: var(--text-primary); font-size: 16px; font-weight: 600; }
.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--text-muted); } .iconbtn:hover { background: var(--bg-elevated); color: var(--text-primary); } .iconbtn.sm { width: 26px; height: 26px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { background: var(--bg-primary); border: 1px solid var(--border-2); border-radius: 8px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px var(--cyan-bg); }
textarea { resize: vertical; min-height: 60px; line-height: 1.45; }
input[type=date] { color-scheme: dark; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; } .row.end { justify-content: flex-end; } .row > .fl { flex: 1; min-width: 140px; }
.fl { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-muted); font-weight: 500; margin-bottom: 10px; } .fl input, .fl select, .fl textarea { color: var(--text-primary); font-weight: 400; font-size: 14px; }

/* ---------- chips, segments, filters ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-weight: 500; }
.chip:hover { color: var(--text-primary); border-color: var(--border-2); } .chip span { font-variant-numeric: tabular-nums; color: var(--text-faint); }
.chip.on { background: var(--cyan-bg); border-color: rgba(0, 219, 255, .45); color: var(--accent-cyan); } .chip.on span { color: var(--accent-cyan); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--bg-primary); border: 1px solid var(--border); }
.seg > * { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 7px; color: var(--text-muted); font-size: 13px; font-weight: 500; }
.seg > .on { background: var(--bg-elevated); color: var(--text-primary); box-shadow: 0 0 0 1px var(--border-2); }
.seg.st > .on.done { background: var(--mint-bg); color: var(--accent-mint); } .seg.st > .on.doing, .seg.st > .on.prog { background: var(--cyan-bg); color: var(--accent-cyan); } .seg.st > .on.waiting { background: var(--rag-yellow-bg); color: #FACC15; }
.seg.pr > .on.p1 { background: var(--rag-red-bg); color: #F87171; } .seg.pr > .on.p2 { background: var(--rag-yellow-bg); color: #FACC15; }
.seg.sm > * { padding: 4px 9px; font-size: 12px; }
.filters { display: flex; flex-direction: column; gap: 10px; }
.fsel { display: flex; gap: 8px; flex-wrap: wrap; } .fsel select, .fsel input.finput, .filters input.finput { width: auto; min-width: 180px; flex: 0 1 320px; } .filters input.finput.wide { width: 100%; max-width: 520px; flex: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab { padding: 10px 14px; color: var(--text-muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text-primary); } .tab.on { color: var(--text-primary); border-bottom-color: var(--accent-cyan); }
.tn { padding: 0 6px; border-radius: 99px; background: var(--bg-elevated); font-size: 11.5px; color: var(--text-muted); }

/* ---------- people ---------- */
.av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: hsl(var(--h) 45% 26%); color: hsl(var(--h) 85% 85%); font-weight: 700; letter-spacing: .02em; box-shadow: 0 0 0 1.5px var(--bg-primary); }
.av.xs { width: 20px; height: 20px; font-size: 8.5px; } .av.sm { width: 26px; height: 26px; font-size: 10px; } .av.md { width: 32px; height: 32px; font-size: 12px; } .av.lg { width: 44px; height: 44px; font-size: 15px; } .av.xl { width: 64px; height: 64px; font-size: 22px; }
.av.bot { border-radius: 28%; background: hsl(var(--h) 35% 20%); box-shadow: 0 0 0 1.5px var(--bg-primary), 0 0 0 2.5px hsl(var(--h) 60% 45% / .6); }
.av.me { background: linear-gradient(135deg, var(--accent-cyan), var(--accent-mint)); color: #03141B; }
.av.gone { filter: grayscale(1); opacity: .6; }
.who { display: inline-flex; align-items: center; gap: 0; min-width: 0; } .who .av + .av { margin-left: -6px; }
.whon { margin-left: 6px; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.face { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: var(--r); border: 1px solid transparent; text-align: center; }
.face:hover { background: var(--bg-elevated); border-color: var(--border); }
.fn { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--text-muted); line-height: 1.3; } .fc b { font-size: 18px; color: var(--text-primary); font-variant-numeric: tabular-nums; } .fc i { font-style: normal; } .fc .fd { color: var(--accent-cyan); } .fc .fl { color: #F87171; margin: 0; font-size: 11px; font-weight: 400; }
.facesbar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.fchip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 99px; background: var(--bg-surface); border: 1px solid var(--border); white-space: nowrap; font-size: 13px; font-weight: 500; }
.fchip b { color: var(--text-muted); font-variant-numeric: tabular-nums; } .fchip:hover { border-color: var(--border-2); } .fchip.on { border-color: var(--accent-cyan); background: var(--cyan-bg); }
.status { margin-top: 6px; font-size: 13px; } .status.working { color: var(--accent-cyan); } .status.blocked { color: #F87171; }

/* ---------- task rows ---------- */
.tlist { display: flex; flex-direction: column; gap: 12px; } .tlist.flat { gap: 0; }
.tg { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.tgh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-elevated); font-size: 13.5px; }
.tgc { color: var(--text-muted); font-size: 12.5px; } .tgx { font-size: 12px; color: var(--accent-cyan); } .tgx.late { color: #F87171; }
.tr { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); min-height: 46px; }
.tlist.flat .tr { padding: 8px 4px; } .tlist.flat .whon { display: none; } .tlist.flat .ttl { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .tr:last-child { border-bottom: 0; } .tr:hover { background: var(--bg-elevated); }
.tg .tr:last-of-type { border-bottom: 0; }
.ck { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-2); color: transparent; flex: none; transition: all .12s; }
.ck .ic { width: 13px; height: 13px; stroke-width: 2.6; } .ck:hover:not(:disabled) { border-color: var(--accent-mint); color: var(--accent-mint); }
.ck.on { background: var(--accent-mint); border-color: var(--accent-mint); color: #03141B; }
.tt { flex: 1; min-width: 0; display: flex; flex-direction: column; text-align: left; }
.ttl { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tt:hover .ttl { color: var(--accent-cyan); }
.tsub { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr.isdone .ttl { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--text-faint); }
.tmeta { display: flex; align-items: center; gap: 8px; flex: none; }
.sel { position: relative; display: grid; place-items: center; } .sel input { width: 16px; height: 16px; accent-color: var(--accent-cyan); } .sel span { display: none; }
.more { width: 100%; padding: 9px; color: var(--accent-cyan); font-size: 13px; font-weight: 500; border-top: 1px solid var(--border); } .more:hover { background: var(--bg-elevated); }
.bulk { position: sticky; top: 64px; z-index: 10; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r); background: var(--bg-elevated); border: 1px solid var(--accent-cyan); }
.ctag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: hsl(var(--h) 60% 50% / .14); color: hsl(var(--h) 80% 75%); white-space: nowrap; }
.due { font-size: 12px; font-weight: 500; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.due.late { color: #FB923C; } .due.stale { color: #F87171; } .due.today { color: var(--accent-cyan); } .due.soon { color: var(--text-primary); } .due.none { color: var(--text-faint); }
.flag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--bg-elevated); color: var(--text-muted); white-space: nowrap; }
.flag.dec { background: var(--violet-bg); color: var(--accent-violet); } .flag.doing { background: var(--cyan-bg); color: var(--accent-cyan); } .flag.wait { background: var(--rag-yellow-bg); color: #FACC15; } .flag.lime { background: var(--mint-bg); color: var(--accent-mint); }
.pri { font: 700 10.5px var(--mono); padding: 2px 5px; border-radius: 5px; letter-spacing: .02em; }
.pri.p1 { background: var(--rag-red-bg); color: #F87171; } .pri.p2 { background: var(--rag-yellow-bg); color: #FACC15; } .pri.p3 { background: var(--bg-elevated); color: var(--text-faint); }
.pend { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--accent-cyan); white-space: nowrap; } .pend .ic { width: 12px; height: 12px; }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 6px; }
.kanban.pipe { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.kcol { display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); min-width: 0; max-height: calc(100vh - 230px); transition: border-color .12s, background .12s; }
.kcol.over { border-color: var(--accent-cyan); background: #0E1A2E; }
.kcol header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.kh { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 7px; } .kh::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.kh.doing::before { background: var(--accent-cyan); } .kh.waiting::before { background: var(--rag-yellow); } .kh.done::before { background: var(--accent-mint); }
.kn { color: var(--text-muted); font-size: 12.5px; } .kred { margin-left: auto; font-size: 11.5px; color: #F87171; font-weight: 600; }
.kbody { display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; min-height: 80px; }
.kc { display: flex; flex-direction: column; gap: 8px; padding: 11px 12px; border-radius: var(--r); background: var(--bg-elevated); border: 1px solid var(--border); cursor: pointer; transition: border-color .12s, transform .12s; }
.kc:hover { border-color: var(--border-2); } .kc.dragging { opacity: .4; transform: scale(.98); }
.kc.late { box-shadow: inset 2px 0 0 #FB923C; } .kc.stale { box-shadow: inset 2px 0 0 var(--rag-red); }
.kc.cand.yellow { box-shadow: inset 2px 0 0 var(--rag-yellow); } .kc.cand.red { box-shadow: inset 2px 0 0 var(--rag-red); }
.kct { font-weight: 500; line-height: 1.35; } .kcm, .kcf { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .kcf { justify-content: space-between; }
.kcn { font-size: 12.5px; color: var(--text-muted); }
.kempty { padding: 16px; text-align: center; color: var(--text-faint); font-size: 12.5px; }
.score { font: 600 12px var(--mono); padding: 2px 6px; border-radius: 5px; } .score.g { background: var(--rag-green-bg); color: #4ADE80; } .score.y { background: var(--rag-yellow-bg); color: #FACC15; } .score.r { background: var(--rag-red-bg); color: #F87171; }

/* ---------- reps ---------- */
.replist { display: flex; flex-direction: column; }
.rr { display: grid; grid-template-columns: auto minmax(120px, 1.2fr) auto minmax(0, 2fr) auto auto; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--border); }
.rr:last-child { border-bottom: 0; } .rr:hover { background: var(--bg-elevated); }
.rn { display: flex; flex-direction: column; min-width: 0; } .rn b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rwhy { font-size: 12.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rnums { display: flex; gap: 14px; } .rnums span { display: flex; flex-direction: column; font-size: 11px; color: var(--text-faint); line-height: 1.25; } .rnums b { font-size: 13.5px; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.replist:not(.big) .rnums { display: none; } .replist:not(.big) .rr { grid-template-columns: auto minmax(110px, 1fr) auto minmax(0, 1.4fr) auto; }
.rcall { font: 600 15px var(--mono); } .rcall small { color: var(--text-faint); font-size: 11px; } .rcall.none { color: var(--text-faint); font-size: 12px; }
.lights { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.lbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 9px; border: 1px solid var(--border-2); background: var(--bg-elevated); font-weight: 600; }
.lbtn.on.green { background: var(--rag-green-bg); border-color: var(--rag-green); color: #4ADE80; } .lbtn.on.yellow { background: var(--rag-yellow-bg); border-color: var(--rag-yellow); color: #FACC15; } .lbtn.on.red { background: var(--rag-red-bg); border-color: var(--rag-red); color: #F87171; }
.callsum { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.ring { width: 64px; height: 64px; } .ring .rt { fill: none; stroke: var(--bg-elevated); stroke-width: 5; } .ring .rv { fill: none; stroke: var(--accent-cyan); stroke-width: 5; stroke-linecap: round; }
.ring.green .rv { stroke: var(--rag-green); } .ring.yellow .rv { stroke: var(--rag-yellow); } .ring.red .rv { stroke: var(--rag-red); }
.ring text { fill: var(--text-primary); font: 700 15px var(--font); font-variant-numeric: tabular-nums; }
.parts { display: flex; flex-direction: column; gap: 6px; } .part { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: 13px; } .part .pbar { margin: 0; } .part b { text-align: right; font-variant-numeric: tabular-nums; font-size: 12.5px; }
.ticks { margin: 0; padding-left: 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; } .ticks.good li::marker { color: var(--rag-green); } .ticks.fix li::marker { color: var(--rag-yellow); } .ticks .isdone { color: var(--text-muted); text-decoration: line-through; }
.ntiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.nt { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r); background: var(--bg-elevated); border: 1px solid var(--border); }
.nt span { font-size: 12px; color: var(--text-muted); } .nt b { font-size: 20px; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; } .nt small { font-size: 11.5px; color: var(--text-faint); }
.nt.red { border-color: rgba(239, 68, 68, .3); } .nt.yellow { border-color: rgba(234, 179, 8, .3); } .nt.green { border-color: rgba(34, 197, 94, .3); }
.reviews { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .reviews li { padding: 10px; border-radius: var(--r); background: var(--bg-elevated); } .rvh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; } .reviews p { font-size: 13px; color: var(--text-muted); }

/* ---------- recruiting ---------- */
.strip.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.conv { display: flex; gap: 0; overflow-x: auto; } .cv { flex: 1; min-width: 110px; display: flex; flex-direction: column; gap: 2px; padding: 4px 10px; position: relative; }
.cv b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; } .cv span { font-size: 12.5px; color: var(--text-muted); } .cv em { position: absolute; right: -14px; top: 8px; display: flex; align-items: center; font-style: normal; font-size: 11.5px; color: var(--accent-cyan); font-weight: 600; z-index: 1; }
.funnel { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; } .fr { display: grid; grid-template-columns: 130px 1fr 32px; gap: 10px; align-items: center; font-size: 13px; } .fr b { text-align: right; font-variant-numeric: tabular-nums; }
.fb { height: 8px; border-radius: 99px; background: var(--bg-elevated); overflow: hidden; } .fb i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-mint)); }

/* ---------- charts ---------- */
.hbars { display: flex; flex-direction: column; gap: 8px; } .hb { display: grid; grid-template-columns: 130px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
a.hb:hover .hbl { color: var(--accent-cyan); } .hbl { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hbt { display: flex; height: 12px; border-radius: 4px; overflow: hidden; background: var(--bg-elevated); } .hbt i { display: block; height: 100%; }
.hbn { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.hbt i.b, .legend i.b { background: var(--accent-cyan); } .hbt i.g, .legend i.g { background: #2B8F5C; } .hbt i.r, .legend i.r { background: var(--rag-red); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--text-muted); } .legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chartwrap { overflow-x: auto; } svg.cols { width: 100%; min-width: 320px; height: auto; max-height: 220px; }
svg.cols .axis { stroke: var(--border-2); } svg.cols .ca, .legend i.ca { fill: var(--accent-cyan); background: var(--accent-cyan); } svg.cols .cb, .legend i.cb { fill: var(--accent-mint); background: var(--accent-mint); }
svg.cols .cl { fill: var(--text-muted); font: 500 11px var(--font); } svg.cols .cv { fill: var(--text-primary); font: 600 10px var(--font); }

/* ---------- activity ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fi { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; } .fi:last-child { border-bottom: 0; } .fi .av { margin-top: 2px; }
.fi.done p b { color: var(--accent-mint); } .fi.blocked p b { color: #F87171; }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.acard { display: flex; gap: 12px; padding: 14px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); } .acard:hover { border-color: var(--border-2); background: var(--bg-elevated); }
.acb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .acn { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .acon { font-size: 13px; }
.ast { display: inline-flex; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--bg-elevated); color: var(--text-muted); white-space: nowrap; }
.ast.working, .ast.pending, .ast.sending { background: var(--cyan-bg); color: var(--accent-cyan); } .ast.done, .ast.approved, .ast.applied { background: var(--mint-bg); color: var(--accent-mint); } .ast.blocked, .ast.rejected, .ast.failed { background: var(--rag-red-bg); color: #F87171; } .ast.partial { background: var(--rag-yellow-bg); color: #FACC15; }
.outlist, .notes, .qa, .props { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.outlist li, .props li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; } .outlist li:last-child, .props li:last-child { border-bottom: 0; }
.ostat { display: flex; gap: 8px; align-items: center; flex: none; }
.props li.approve { color: var(--text-primary); } .props li.reject { color: var(--text-muted); text-decoration: line-through; }
.notes li, .notei { padding: 8px 10px; margin-bottom: 6px; border-radius: var(--r-sm); background: var(--bg-elevated); font-size: 13.5px; } .notes li p, .notei p { margin-bottom: 2px; }
.qa li { padding: 12px 0; border-bottom: 1px solid var(--border); } .qa .q { display: flex; gap: 8px; font-weight: 600; } .qa .a { margin: 8px 0 0 24px; padding: 10px 12px; border-radius: var(--r); background: var(--bg-elevated); font-size: 13.5px; }

/* ---------- resources ---------- */
.reslist { display: flex; flex-direction: column; }
.res { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--border); } .res:last-child { border-bottom: 0; } .res:hover { background: var(--bg-elevated); } .res > .ic { color: var(--text-faint); }
.rb { flex: 1; min-width: 0; display: flex; flex-direction: column; } .rb b { font-weight: 500; } .rb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk { flex: none; width: 82px; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 0; border-radius: 6px; background: var(--bg-elevated); color: var(--text-muted); }
.rk.playbook { background: var(--mint-bg); color: var(--accent-mint); } .rk.sop { background: var(--cyan-bg); color: var(--accent-cyan); } .rk.script { background: var(--violet-bg); color: var(--accent-violet); } .rk.scorecard { background: var(--rag-yellow-bg); color: #FACC15; }

/* ---------- drawer, card detail ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; } .drawer[hidden] { display: none; }
.dback { position: absolute; inset: 0; background: rgba(3, 5, 15, .6); animation: fade .15s; }
.dpanel { position: absolute; right: 0; top: 0; bottom: 0; width: min(620px, 100vw); background: var(--bg-surface); border-left: 1px solid var(--border-2); overflow-y: auto; animation: slide .18s ease-out; box-shadow: -20px 0 60px rgba(0, 0, 0, .35); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
.cd { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 40px; } .cd.full { padding: 0; max-width: 820px; }
.cdtop { display: flex; align-items: center; gap: 8px; } .cdtop .muted { flex: 1; }
.cdt { font-size: 22px; line-height: 1.25; }
.cdgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding: 14px; border-radius: var(--r); background: var(--bg-elevated); border: 1px solid var(--border); }
.cdgrid .field:first-child, .cdgrid .field:nth-child(2) { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; } .field label { font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.field .seg { align-self: flex-start; flex-wrap: wrap; } .field select, .field input { max-width: 260px; } .field .due { text-align: left; }
.cds h3 { margin: 0 0 6px; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); }
.cds p { line-height: 1.55; } .cds p.big { font-size: 15.5px; color: var(--text-primary); }
.tl { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 12px; border-left: 2px solid var(--border-2); }
.tl li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding-left: 12px; position: relative; } .tl li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent-cyan); box-shadow: 0 0 0 3px var(--bg-surface); }
.tld { font: 500 12px var(--mono); color: var(--text-muted); padding-top: 1px; } .tl b { font-size: 12.5px; color: var(--text-muted); font-weight: 500; } .tl p { font-size: 14px; }
.links { display: flex; gap: 6px; flex-wrap: wrap; }
.cdfoot { padding-top: 12px; border-top: 1px solid var(--border); }
.dbox { padding: 14px; border-radius: var(--r); background: var(--violet-bg); border: 1px solid rgba(167, 139, 250, .35); display: flex; flex-direction: column; gap: 8px; }
.dh { display: flex; justify-content: space-between; align-items: center; } .dh b { display: flex; align-items: center; gap: 8px; color: var(--accent-violet); }
.dstate { font-size: 13px; font-weight: 500; } .dstate.approve { color: #4ADE80; } .dstate.decline { color: #F87171; }
.dbox textarea { background: rgba(7, 9, 26, .6); }
.dlist { display: flex; flex-direction: column; gap: 12px; }
.dcard { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.dcard header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .dcard header .due { margin-left: auto; } .dcard p { font-size: 13.5px; }

/* ---------- modal and palette ---------- */
#modal:empty { display: none; }
.mback { position: fixed; inset: 0; z-index: 60; background: rgba(3, 5, 15, .65); animation: fade .12s; }
.mbox { position: fixed; z-index: 61; left: 50%; top: 12vh; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); max-height: 76vh; overflow-y: auto; padding: 20px; border-radius: var(--r-lg); background: var(--bg-surface); border: 1px solid var(--border-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.mh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .mbox h3 { margin: 12px 0 8px; color: var(--text-muted); font-size: 13px; font-weight: 500; } .mbox p { margin-bottom: 10px; }
.pal { position: fixed; z-index: 61; left: 50%; top: 10vh; transform: translateX(-50%); width: min(680px, calc(100vw - 24px)); border-radius: var(--r-lg); background: var(--bg-surface); border: 1px solid var(--border-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); overflow: hidden; }
.palin { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); } .palin .ic { width: 18px; height: 18px; color: var(--text-muted); }
.palin input { border: 0 !important; background: none !important; padding: 0 !important; font-size: 16px; box-shadow: none !important; }
.palres { max-height: 60vh; overflow-y: auto; padding: 6px; } .palh { padding: 8px 10px 4px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); } .pad { padding: 14px; }
.sr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 8px; text-align: left; }
.sr:hover, .sr.on { background: var(--bg-elevated); } .sr.ask { border-top: 1px solid var(--border); border-radius: 0 0 8px 8px; margin-top: 4px; } .sr.ask .ic { color: var(--accent-cyan); }
.srt { flex: none; width: 76px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-faint); }
.srb { flex: 1; min-width: 0; display: flex; flex-direction: column; } .srb b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .srb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
mark { background: rgba(0, 219, 255, .22); color: inherit; border-radius: 2px; }
.srlist { display: flex; flex-direction: column; }
.bigsearch { display: flex; gap: 8px; } .bigsearch input { font-size: 16px; padding: 12px 14px; }

/* ---------- toast, gate, loading ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 10px; background: var(--bg-elevated); border: 1px solid var(--border-2); box-shadow: 0 12px 40px rgba(0, 0, 0, .45); font-weight: 500; transition: all .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); } .toast.bad { border-color: rgba(239, 68, 68, .5); color: #FCA5A5; }
.gate { max-width: 380px; margin: 14vh auto 0; padding: 32px 28px; text-align: center; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; }
.gate h1 { font-size: 24px; } .gate .sub { color: var(--text-muted); margin: 8px 0 18px; font-size: 13.5px; } .gate input { margin-bottom: 12px; font-size: 16px; padding: 11px 12px; } .err { color: #F87171; margin-top: 12px; font-size: 13px; }
.loading { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 10px; }

/* ---------- legacy week-note html, made readable ---------- */
.prose { line-height: 1.6; } .prose h2 { font-size: 18px; margin: 4px 0 10px; } .prose h3, .prose h4 { margin: 14px 0 6px; font-size: 14.5px; color: var(--text-primary); font-weight: 600; } .prose p { margin: 0 0 8px; color: #D7D9DE; } .prose ul { padding-left: 20px; color: #D7D9DE; }
.snap * { max-width: 100%; } .snap [style] { color: inherit !important; background: transparent !important; }
.snap .card, .snap .client, .snap .hcard, .snap .synccard, .snap .tcard, .snap .repcard, .snap .rccard, .snap .lever { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; margin: 8px 0; }
.snap .pill, .snap .tag { display: inline-flex; padding: 1px 8px; border-radius: 99px; background: var(--bg-hover); font-size: 11.5px; color: var(--text-muted); margin-right: 4px; }
.snap .lvst { display: none; } .snap table { border-collapse: collapse; font-size: 12.5px; } .snap td, .snap th { border: 1px solid var(--border); padding: 4px 8px; }
.snap .swck, .snap .lvctrl, .snap .tbtn, .snap .additembtn, .snap .recaptools, .snap .shotbar { display: none !important; }
.snap a { color: var(--accent-cyan); } pre.md { white-space: pre-wrap; font: 12.5px/1.55 var(--mono); background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; max-height: 60vh; overflow: auto; }
details.acc { border-bottom: 1px solid var(--border); padding: 10px 0; } details.acc summary { cursor: pointer; } details.acc[open] summary { margin-bottom: 8px; }
.lead { font-size: 15px; line-height: 1.6; color: #D7D9DE; max-width: 75ch; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rr { grid-template-columns: auto minmax(110px, 1fr) auto minmax(0, 1.4fr) auto; } .rnums { display: none; } }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 13, 32, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
  .tb { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; min-height: 50px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
  .tb .ic { width: 22px; height: 22px; } .tb.on { color: var(--accent-cyan); }
  .tb b { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--bg-elevated); color: var(--text-primary); font-size: 10.5px; line-height: 18px; text-align: center; } .tb b.hot { background: var(--accent-violet); color: #0B0820; }
  body.menuopen .sideback { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(3, 5, 15, .6); }
  .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 60px rgba(0, 0, 0, .5); }
  .side.open { transform: none; }
  .top .only-m { display: none; }
  .top { padding: 10px 16px; } .page { padding: 16px 16px 56px; } .pastbar { padding: 9px 16px; }
  .grid2, .alerts { grid-template-columns: 1fr; } .hero { grid-template-columns: 1fr; }
  .sync span, .searchbtn kbd { display: none; } .wk select { max-width: 150px; }
  .kanban { grid-template-columns: repeat(4, minmax(260px, 82vw)); scroll-snap-type: x mandatory; } .kcol { scroll-snap-align: start; max-height: none; }
  .kanban.pipe { grid-template-columns: repeat(6, minmax(240px, 80vw)); }
  .strip.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; } .chips::-webkit-scrollbar { display: none; } .chip { flex: none; }
  .filters .fsel { display: grid; grid-template-columns: 1fr 1fr; } .filters .fsel input.finput { grid-column: 1 / -1; } .fsel select, .filters input.finput { min-width: 0; width: 100%; }
  .ph .sub { font-size: 13px; } .phr { width: 100%; } .phr .seg { flex: 1; } .phr .seg > * { flex: 1; justify-content: center; } .phr .btn.primary { flex: 1; }
  .sel { display: none; } .ck { width: 26px; height: 26px; border-radius: 8px; } .ck .ic { width: 15px; height: 15px; }
  .tr { min-height: 56px; } .ttl { white-space: normal; }
  .seg.st > *, .seg.pr > * { padding: 9px 12px; } .field select, .field input { max-width: none; }
  .dpanel { width: 100vw; border-left: 0; } .cd { padding: 16px 16px calc(32px + env(safe-area-inset-bottom)); } .cdt { font-size: 20px; }
  .btn { min-height: 40px; } .wk select { max-width: 140px; padding-left: 10px; }
  .kanban { grid-template-columns: repeat(4, 86vw); margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 16px; } .kanban.pipe { grid-template-columns: repeat(6, 80vw) !important; }
  .kcol { max-height: none; } .kc { padding: 12px; }
  .strip, .strip.four { grid-template-columns: 1fr 1fr; } .ssh { font-size: 12px; }
  .mbox { top: auto; bottom: 0; left: 0; transform: none; width: 100vw; max-height: 88vh; border-radius: 16px 16px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .pal { top: 0; width: 100vw; border-radius: 0 0 16px 16px; }
  .facesbar { margin: 0 -16px; padding: 0 16px 4px; }
  h1 { font-size: 22px; } .ssn { font-size: 30px; } .strip { gap: 8px; } .ss { padding: 12px 12px 12px 14px; }
  .tr { flex-wrap: wrap; padding: 10px 12px; } .tmeta { width: 100%; padding-left: 36px; flex-wrap: wrap; } .whon { display: none; }
  .rr { grid-template-columns: auto 1fr auto; } .rwhy, .rcall { display: none; }
  .cdgrid { grid-template-columns: 1fr; } .cd { padding: 16px; } .outbox span, .searchbtn span { display: none; } .searchbtn { flex: 0; }
  .hb, .fr { grid-template-columns: 96px 1fr 30px; } .part { grid-template-columns: 90px 1fr 40px; }
  .ccards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- home screen app: room for the status bar ---------- */
.top { padding-top: calc(10px + env(safe-area-inset-top)); }
.side { padding-top: calc(16px + env(safe-area-inset-top)); }
.av.others { background: var(--bg-elevated); color: var(--text-muted); box-shadow: 0 0 0 1.5px var(--bg-primary), 0 0 0 2.5px var(--border-2); }
.av.others .ic { width: 55%; height: 55%; }
.chiplab { flex: none; align-self: center; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-right: 4px; min-width: 64px; }

/* ---------- recruiting ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.role { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--bg-elevated); border: 1px solid var(--border); transition: border-color .12s; }
.role:hover { border-color: var(--border-2); } .role.paused, .role.filled { opacity: .72; }
.role header { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.role h3 { margin: 0; font-size: 15px; color: var(--text-primary); font-weight: 600; letter-spacing: -0.01em; }
.rst { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg-hover); color: var(--text-muted); }
.rst.open { background: var(--cyan-bg); color: var(--accent-cyan); } .rst.filled { background: var(--mint-bg); color: var(--accent-mint); }
.seats { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); } .seats b { color: var(--text-primary); }
.seatbar { display: flex; gap: 4px; flex: 1; } .seatbar i { flex: 1; max-width: 34px; height: 10px; border-radius: 3px; background: var(--bg-hover); border: 1px dashed var(--border-2); } .seatbar i.on { background: var(--accent-mint); border-color: var(--accent-mint); }
.rmeta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.rnote { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; border-top: 1px solid var(--border); padding-top: 8px; }
.funnel2 { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.f2 { display: grid; grid-template-columns: 130px 1fr 44px 44px; gap: 10px; align-items: center; font-size: 13px; }
.f2b { height: 16px; border-radius: 5px; background: var(--bg-elevated); overflow: hidden; } .f2b i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent-cyan), var(--accent-mint)); }
.f2 b { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; } .f2 em { font-style: normal; font-size: 12px; color: var(--accent-cyan); font-weight: 600; text-align: right; }
.rteam { display: flex; flex-direction: column; gap: 12px; } .rtm { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--border); } .rtm:last-child { border-bottom: 0; padding-bottom: 0; }
.rtb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .rtn { display: flex; gap: 12px; font-size: 12.5px; color: var(--text-muted); flex-wrap: wrap; } .rtn b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.kc.cand.passed { opacity: .5; } .kc.cand.hired { box-shadow: inset 2px 0 0 var(--accent-mint); }
.gaps { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
details.panel.acc summary { cursor: pointer; }

/* ---------- readable notes ---------- */
.readable { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; }
.readable .lede { font-size: 15.5px; line-height: 1.55; color: var(--text-primary); font-weight: 500; }
.readable .rh { margin: 6px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent-cyan); }
.readable ul.pts, .readable ol.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #D7D9DE; line-height: 1.5; }
.readable ul.pts li::marker { color: var(--accent-cyan); } .readable ol.steps li::marker { color: var(--accent-mint); font-weight: 700; }
.readable b { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.prose .readable p { margin: 0; }
@media (max-width: 640px) { .f2 { grid-template-columns: 96px 1fr 36px 36px; } .chiplab { display: none; } .roles { grid-template-columns: 1fr; } }

.more-roles { margin-top: 12px; } .more-roles summary { cursor: pointer; color: var(--accent-cyan); font-size: 13px; font-weight: 500; padding: 6px 0; } .more-roles[open] summary { margin-bottom: 10px; }
