/* ============================================================================
 * pdash.css — sumzip /projects/ 공용 스타일 (Iris 토큰) · 6뷰 공유
 * ==========================================================================*/
:root {
  --navy-700:#003478; --navy-600:#0a4a9e; --sky-500:#0F8BD9; --sky-400:#3aa6e8;
  --pos:#1E9E5F; --warn:#E8820E; --neg:#D62839;
  --bg:#f5f7fa; --surface:#ffffff; --surface-2:#eef2f7; --border:#dce3ec;
  --text:#16202e; --text-2:#54657a; --text-3:#8499ad;
  --shadow:0 1px 3px rgba(16,32,54,.08),0 4px 16px rgba(16,32,54,.06);
  --radius:12px; --radius-sm:8px;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace;
  --sans:Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
}
[data-theme="dark"] {
  --navy-700:#5ba3e0; --navy-600:#4a90d0; --sky-500:#3aa6e8; --sky-400:#5bb8f0;
  --pos:#34c77f; --warn:#f0a040; --neg:#f0556a;
  --bg:#0d1520; --surface:#16202e; --surface-2:#1d2a3a; --border:#28384c;
  --text:#e6edf5; --text-2:#9fb2c6; --text-3:#6b7f95;
  --shadow:0 1px 3px rgba(0,0,0,.3),0 4px 16px rgba(0,0,0,.25);
}
* { box-sizing:border-box; }
html,body { margin:0; padding:0; }
body { font-family:var(--sans); background:var(--bg); color:var(--text); font-size:14px; line-height:1.5; -webkit-font-smoothing:antialiased; }
.num,.mono { font-variant-numeric:tabular-nums; font-family:var(--mono); }
a { color:var(--sky-500); text-decoration:none; }
a:hover { text-decoration:underline; }
.skip-link { position:absolute; left:-999px; }
.skip-link:focus { left:8px; top:8px; background:var(--surface); padding:8px 12px; border-radius:var(--radius-sm); z-index:100; }
:focus-visible { outline:2px solid var(--sky-500); outline-offset:2px; }

.hdr { position:sticky; top:0; z-index:40; background:var(--surface); border-bottom:1px solid var(--border); }
.hdr-inner { display:flex; align-items:center; gap:18px; max-width:1680px; margin:0 auto; padding:10px 18px; }
.logo { font-weight:800; letter-spacing:.04em; color:var(--navy-700); font-size:18px; }
.topnav { display:flex; gap:16px; margin-left:6px; }
.topnav a { color:var(--text-2); font-weight:500; }
.topnav a.on { color:var(--navy-700); font-weight:700; }
.hdr-right { margin-left:auto; display:flex; align-items:center; gap:10px; }
.kpi-chip { font-size:12px; font-weight:600; color:var(--navy-700); background:var(--surface-2); border:1px solid var(--border); border-radius:999px; padding:4px 12px; white-space:nowrap; }
.kpi-chip.kpi-met { color:var(--pos); border-color:var(--pos); }
.icon-btn { width:34px; height:34px; display:grid; place-items:center; background:var(--surface-2); border:1px solid var(--border); border-radius:var(--radius-sm); color:var(--text-2); cursor:pointer; padding:0; }
.icon-btn:hover { color:var(--navy-700); border-color:var(--sky-400); }
.icon-btn .ic { width:18px; height:18px; }
.ic { fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

.viewbar { display:flex; gap:2px; max-width:1680px; margin:0 auto; padding:0 18px; overflow-x:auto; }
.viewtab { appearance:none; background:transparent; border:0; border-bottom:2px solid transparent; color:var(--text-2); font:inherit; font-weight:600; padding:10px 14px; cursor:pointer; white-space:nowrap; }
.viewtab:hover { color:var(--navy-700); }
.viewtab.on { color:var(--navy-700); border-bottom-color:var(--sky-500); }

.view-host { max-width:1680px; margin:0 auto; padding:18px; min-height:60vh; }
.boot { padding:48px; text-align:center; color:var(--text-2); }
.boot-error { color:var(--neg); }
.view-error { padding:24px; border:1px solid var(--neg); border-radius:var(--radius); color:var(--neg); background:color-mix(in srgb,var(--neg) 8%,transparent); }
.view { animation:fade .25s ease; }
@keyframes fade { from{opacity:0; transform:translateY(4px);} to{opacity:1; transform:none;} }

.card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); }
.muted { color:var(--text-3); }
.row { display:flex; gap:12px; align-items:center; }
.badge { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; }
.badge.good { color:var(--pos); background:color-mix(in srgb,var(--pos) 12%,transparent); }
.badge.warn { color:var(--warn); background:color-mix(in srgb,var(--warn) 14%,transparent); }
.badge.bad  { color:var(--neg); background:color-mix(in srgb,var(--neg) 12%,transparent); }
.dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.dot.good{background:var(--pos);} .dot.warn{background:var(--warn);} .dot.bad{background:var(--neg);}
.radial { --v:0; width:46px; height:46px; border-radius:50%; flex:0 0 auto;
  background:conic-gradient(var(--sky-500) calc(var(--v)*1%), var(--surface-2) 0); display:grid; place-items:center; }
.radial.good{background:conic-gradient(var(--pos) calc(var(--v)*1%),var(--surface-2) 0);}
.radial.warn{background:conic-gradient(var(--warn) calc(var(--v)*1%),var(--surface-2) 0);}
.radial.bad{background:conic-gradient(var(--neg) calc(var(--v)*1%),var(--surface-2) 0);}
.radial > span { width:34px; height:34px; border-radius:50%; background:var(--surface); display:grid; place-items:center; font-size:11px; font-weight:700; }
.bar { height:6px; border-radius:999px; background:var(--surface-2); overflow:hidden; }
.bar > i { display:block; height:100%; background:var(--sky-500); border-radius:999px; }
.loading-mini { color:var(--text-3); font-size:12px; padding:10px 0; }

.view-classic { padding:0; }
.classic-frame { width:100%; height:calc(100vh - 170px); border:0; border-radius:var(--radius); background:var(--surface); }
.ft { border-top:1px solid var(--border); margin-top:24px; }
.ft-inner { max-width:1680px; margin:0 auto; padding:14px 18px; display:flex; justify-content:space-between; font-size:12px; color:var(--text-3); }

@media (max-width:768px){ .topnav { display:none; } .view-host { padding:12px; } }

/* ============================ view: command-bridge ======================== */
.cb-kpis { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:16px; }
.cb-kpi { padding:14px 16px; }
.cb-kpi-label { font-size:12px; }
.cb-kpi-val { font-size:26px; font-weight:800; line-height:1.1; margin:4px 0 2px; }
.cb-kpi-val.good{color:var(--pos);} .cb-kpi-val.warn{color:var(--warn);} .cb-kpi-val.bad{color:var(--neg);}
.cb-kpi-sub { font-size:11px; }
.cb-controls { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:14px; }
.cb-search { flex:1; min-width:200px; padding:9px 14px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); color:var(--text); font:inherit; }
.cb-chips { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.chip { appearance:none; border:1px solid var(--border); background:var(--surface); color:var(--text-2); font:inherit; font-size:12px; font-weight:600; padding:6px 12px; border-radius:999px; cursor:pointer; }
.chip:hover { border-color:var(--sky-400); }
.chip.on { background:var(--navy-700); color:#fff; border-color:var(--navy-700); }
[data-theme="dark"] .chip.on { color:#0d1520; }
.cb-matrix-meta { font-size:12px; margin-bottom:8px; }
.cb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:14px; }
.cb-card { position:relative; padding:16px 16px 14px 20px; cursor:pointer; overflow:hidden; animation:fade .3s ease both; }
.cb-card:hover { border-color:var(--sky-400); transform:translateY(-2px); transition:transform .15s,border-color .15s; }
.cb-health { position:absolute; left:0; top:0; bottom:0; width:5px; }
.cb-health.good{background:var(--pos);} .cb-health.warn{background:var(--warn);} .cb-health.bad{background:var(--neg);}
.cb-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.cb-card-id { min-width:0; }
.cb-card-name { font-weight:700; font-size:15px; }
.cb-card-dom { font-size:12px; margin-top:1px; }
.cb-card-sum { font-size:12.5px; margin:8px 0 10px; min-height:34px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cb-card-foot { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.cb-metric { display:inline-flex; gap:3px; align-items:baseline; font-size:12px; }
.cb-metric b { font-size:13px; }
.cb-metric .muted { font-size:11px; }
.cb-srv { font-size:11px; margin-left:auto; }
.cb-scrim { position:fixed; inset:0; background:rgba(10,20,35,.45); opacity:0; pointer-events:none; transition:opacity .25s; z-index:50; }
.cb-scrim.on { opacity:1; pointer-events:auto; }
.cb-drawer { position:fixed; top:0; right:0; bottom:0; width:min(440px,92vw); background:var(--surface); border-left:1px solid var(--border); box-shadow:-8px 0 32px rgba(16,32,54,.18); transform:translateX(100%); transition:transform .28s cubic-bezier(.4,0,.2,1); z-index:51; display:flex; flex-direction:column; }
.cb-drawer.on { transform:none; }
.cb-drawer-head { display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid var(--border); }
.cb-drawer-title { font-weight:800; font-size:17px; color:var(--navy-700); }
.cb-drawer-body { padding:16px 18px; overflow-y:auto; }
.cb-section { margin-bottom:18px; }
.cb-section-title { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); margin:0 0 8px; }
.cb-feats { display:flex; flex-direction:column; gap:6px; }
.cb-feat { display:flex; flex-direction:column; }
.cb-feat b { font-size:13px; }
.cb-feat .muted { font-size:11.5px; }
.cb-focus { margin-bottom:10px; }
.cb-prob,.cb-plan,.cb-task { display:flex; gap:8px; align-items:center; padding:6px 0; font-size:13px; border-bottom:1px solid var(--border); }
.cb-task .muted,.cb-plan .muted { margin-left:auto; }
.cb-domain { display:inline-block; margin-top:6px; font-weight:600; }
@media (max-width:980px){ .cb-kpis { grid-template-columns:repeat(2,1fr); } }

/* ===== view: intent-river ===== */
.view-ir { display:grid; grid-template-columns:230px 1fr; gap:16px; }
.ir-rail { border-right:1px solid var(--border); padding-right:12px; max-height:calc(100vh - 200px); overflow-y:auto; }
.ir-rail-head { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); margin:4px 0 8px; }
.ir-rail-item { display:flex; align-items:center; gap:8px; width:100%; text-align:left; background:transparent; border:0; border-radius:var(--radius-sm); padding:8px 8px; cursor:pointer; color:var(--text); font:inherit; }
.ir-rail-item:hover { background:var(--surface-2); }
.ir-rail-item.on { background:color-mix(in srgb,var(--sky-500) 14%,transparent); }
.ir-rail-dot { width:7px; height:7px; border-radius:50%; flex:0 0 auto; }
.ir-rail-dot.good { background:var(--pos); } .ir-rail-dot.idle { background:var(--text-3); }
.ir-rail-name { flex:1; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ir-rail-bar { width:42px; height:5px; border-radius:999px; background:var(--surface-2); overflow:hidden; flex:0 0 auto; }
.ir-rail-bar > i { display:block; height:100%; }
.ir-rail-bar > i.good { background:var(--pos); } .ir-rail-bar > i.warn { background:var(--warn); } .ir-rail-bar > i.bad { background:var(--neg); }
.ir-stage { min-width:0; }
.ir-title { font-size:18px; font-weight:800; color:var(--navy-700); margin:0 0 12px; }
.ir-river { padding:14px 16px; margin-bottom:16px; }
.ir-river-head { display:flex; justify-content:space-between; align-items:baseline; margin-bottom:6px; }
.ir-river-label { font-weight:700; font-size:13px; }
.ir-svg { width:100%; height:auto; display:block; }
.ir-warnline { stroke:var(--warn); stroke-width:1; stroke-dasharray:4 4; opacity:.7; }
.ir-warnlbl { fill:var(--warn); font-size:10px; }
.ir-xlbl { fill:var(--text-3); font-size:10px; }
.ir-area { fill:var(--sky-500); fill-opacity:.13; }
.ir-line { fill:none; stroke:var(--sky-500); stroke-width:2; stroke-linejoin:round; }
.ir-node circle { fill:var(--surface); stroke-width:2; cursor:pointer; transition:r .15s; }
.ir-node.good circle { stroke:var(--pos); } .ir-node.warn circle { stroke:var(--warn); } .ir-node.bad circle { stroke:var(--neg); }
.ir-node.sel circle { fill:var(--navy-700); stroke:var(--navy-700); }
.ir-node:focus-visible { outline:none; } .ir-node:focus-visible circle { stroke:var(--sky-500); stroke-width:3; }
.ir-cols { display:grid; grid-template-columns:1.4fr 1fr; gap:16px; }
.ir-week,.ir-now { padding:14px 16px; }
.ir-week-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.ir-week-date { font-weight:800; font-size:15px; }
.ir-deltas { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.ir-delta { display:inline-flex; gap:4px; align-items:baseline; font-size:12px; padding:3px 9px; border-radius:999px; background:var(--surface-2); }
.ir-delta.good b { color:var(--pos); } .ir-delta.warn b { color:var(--warn); } .ir-delta.bad b { color:var(--neg); } .ir-delta.idle b { color:var(--text-2); }
.ir-narr { font-size:13px; line-height:1.6; color:var(--text-2); margin:0 0 12px; padding:10px 12px; background:var(--surface-2); border-radius:var(--radius-sm); }
.ir-section-t { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); margin:10px 0 6px; }
.ir-intents { display:flex; flex-direction:column; gap:6px; }
.ir-intent { display:flex; gap:8px; align-items:flex-start; font-size:13px; }
.ir-pri { width:18px; height:18px; flex:0 0 auto; border-radius:4px; display:grid; place-items:center; font-size:10px; font-weight:800; color:#fff; }
.ir-pri.good { background:var(--pos); } .ir-pri.warn { background:var(--warn); } .ir-pri.bad { background:var(--neg); }
[data-theme="dark"] .ir-pri { color:#0d1520; }
.ir-intent-tx { line-height:1.45; }
.ir-now-t,.ir-now .ir-section-t:first-of-type { }
.ir-now-t { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); margin-bottom:10px; }
.ir-gauge { display:flex; gap:12px; align-items:center; margin-bottom:8px; }
.ir-now-drift { margin-top:4px; }
.ir-focus { margin-bottom:8px; }
@media (max-width:980px){ .view-ir { grid-template-columns:1fr; } .ir-rail { border-right:0; border-bottom:1px solid var(--border); max-height:none; display:flex; flex-wrap:wrap; gap:6px; padding-bottom:10px; } .ir-rail-item { width:auto; } .ir-cols { grid-template-columns:1fr; } }

/* ===== view: dikw-ladder ===== */
.view-dk { display:grid; grid-template-columns:220px 1fr; gap:16px; }
.dk-rail { border-right:1px solid var(--border); padding-right:12px; max-height:calc(100vh - 200px); overflow-y:auto; }
.dk-rail-head { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); margin:4px 0 8px; }
.dk-rail-item { display:flex; align-items:center; gap:8px; width:100%; text-align:left; background:transparent; border:0; border-radius:var(--radius-sm); padding:8px; cursor:pointer; color:var(--text); font:inherit; }
.dk-rail-item:hover { background:var(--surface-2); }
.dk-rail-item.on { background:color-mix(in srgb,var(--sky-500) 14%,transparent); }
.dk-rail-name { flex:1; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dk-stage { min-width:0; }
.dk-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.dk-title { font-size:18px; font-weight:800; color:var(--navy-700); margin:0; }
.dk-gauge { display:flex; align-items:center; gap:8px; }
.dk-ladder { display:flex; flex-direction:column; }
.dk-conn { width:2px; height:18px; margin-left:34px; background:linear-gradient(to top,var(--sky-500),var(--sky-400)); opacity:.5; }
.dk-tier { border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); overflow:hidden; box-shadow:var(--shadow); }
.dk-tier-head { display:flex; align-items:center; gap:12px; width:100%; background:transparent; border:0; padding:14px 16px; cursor:pointer; color:var(--text); font:inherit; text-align:left; }
.dk-badge { width:30px; height:30px; flex:0 0 auto; border-radius:8px; display:grid; place-items:center; font-weight:800; color:#fff; background:var(--navy-700); }
.dk-D .dk-badge { background:var(--text-2); } .dk-I .dk-badge { background:var(--sky-500); } .dk-K .dk-badge { background:var(--navy-700); } .dk-W .dk-badge { background:var(--pos); }
[data-theme="dark"] .dk-badge { color:#0d1520; }
.dk-tier-ko { font-weight:800; font-size:15px; }
.dk-tier-en { font-size:12px; flex:1; }
.dk-chev { color:var(--text-3); transition:transform .2s; display:inline-flex; }
.dk-tier.open .dk-chev { transform:rotate(180deg); }
.dk-tier-body { display:grid; grid-template-rows:0fr; transition:grid-template-rows .25s ease; }
.dk-tier.open .dk-tier-body { grid-template-rows:1fr; }
.dk-tier-inner { overflow:hidden; padding:0 16px; }
.dk-tier.open .dk-tier-inner { padding:0 16px 16px; }
.dk-sub { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); margin:12px 0 6px; }
.dk-purpose { font-size:13px; line-height:1.6; margin:0 0 4px; }
.dk-feat { display:flex; flex-direction:column; padding:5px 0; border-bottom:1px solid var(--border); }
.dk-feat b { font-size:13px; } .dk-feat .muted { font-size:11.5px; }
.dk-line { display:flex; gap:8px; align-items:center; padding:5px 0; font-size:13px; border-bottom:1px solid var(--border); }
.dk-focus { margin-bottom:8px; }
.dk-diagrams { display:flex; gap:6px; flex-wrap:wrap; }
.dk-dg { display:inline-flex; gap:6px; align-items:center; font-size:12px; padding:4px 10px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); }
.dk-dg.ok { border-color:var(--pos); }
.dk-dg-kind { font-size:10px; font-weight:700; color:var(--sky-500); text-transform:uppercase; }
.dk-tl { display:flex; gap:10px; align-items:center; padding:5px 0; font-size:13px; border-bottom:1px solid var(--border); }
.dk-tl-date { min-width:84px; } .dk-tl-sum { margin-left:auto; }
.dk-src { display:flex; justify-content:space-between; gap:10px; padding:4px 0; font-size:12.5px; border-bottom:1px solid var(--border); }
.dk-src-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dk-src-meta { flex:0 0 auto; font-size:11px; }
@media (max-width:980px){ .view-dk { grid-template-columns:1fr; } .dk-rail { border-right:0; border-bottom:1px solid var(--border); max-height:none; display:flex; flex-wrap:wrap; gap:6px; } .dk-rail-item { width:auto; } .dk-head { flex-direction:column; align-items:flex-start; } }

/* ===== view: focus-board ===== */
.view-fb { display:flex; flex-direction:column; gap:16px; }
.fb-hero { padding:16px 18px; }
.fb-hero-date { display:flex; align-items:center; gap:8px; font-weight:700; margin-bottom:12px; }
.fb-hero-date .ic { width:18px; height:18px; color:var(--navy-700); }
.fb-hero-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.fb-stat-val { font-size:22px; font-weight:800; }
.fb-stat-val.good { color:var(--pos); } .fb-stat-val.warn { color:var(--warn); } .fb-stat-val.bad { color:var(--neg); }
.fb-stat-label { font-size:11px; margin-top:2px; }
.fb-body { display:grid; grid-template-columns:210px 1fr; gap:16px; }
.fb-rail { border-right:1px solid var(--border); padding-right:12px; max-height:calc(100vh - 280px); overflow-y:auto; }
.fb-rail-head { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); margin:4px 0 8px; }
.fb-rail-item { display:flex; align-items:center; gap:8px; width:100%; text-align:left; background:transparent; border:0; border-radius:var(--radius-sm); padding:8px; cursor:pointer; color:var(--text); font:inherit; }
.fb-rail-item:hover { background:var(--surface-2); }
.fb-rail-item.on { background:color-mix(in srgb,var(--sky-500) 14%,transparent); }
.fb-rail-name { flex:1; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fb-rail-badge { flex:0 0 auto; font-size:11px; font-weight:700; color:#fff; background:var(--sky-500); border-radius:999px; padding:1px 7px; }
[data-theme="dark"] .fb-rail-badge { color:#0d1520; }
.fb-main { min-width:0; }
.fb-title { font-size:18px; font-weight:800; color:var(--navy-700); margin:0 0 12px; }
.fb-cols { display:grid; grid-template-columns:1fr 300px; gap:16px; }
.fb-left { display:flex; flex-direction:column; gap:16px; min-width:0; }
.fb-sub { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); margin:0 0 10px; }
.fb-note { font-size:12px; margin-bottom:8px; }
.fb-kanban { padding:14px 16px; }
.fb-kan-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.fb-kan-col { background:var(--surface-2); border-radius:var(--radius-sm); padding:8px; min-height:60px; }
.fb-kan-h { display:flex; justify-content:space-between; font-size:12px; font-weight:700; margin-bottom:8px; color:var(--text-2); }
.fb-kan-n { color:var(--text-3); }
.fb-kan-empty { font-size:12px; text-align:center; padding:8px 0; }
.fb-kan-card { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:8px 10px; margin-bottom:6px; }
.fb-kan-title { font-size:12.5px; line-height:1.4; margin-top:2px; }
.fb-kan-meta { font-size:11px; margin-top:3px; }
.fb-focus { padding:14px 16px; align-self:start; }
.fb-fa { margin-bottom:10px; }
.fb-fa-ev { font-size:11px; margin-top:3px; }
.fb-prob,.fb-idea { display:flex; gap:8px; align-items:flex-start; font-size:12.5px; padding:5px 0; border-bottom:1px solid var(--border); }
.fb-cal { padding:14px 16px; }
.fb-cal-head { display:flex; justify-content:space-between; align-items:center; }
.fb-cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:4px; margin-top:8px; }
.fb-cal-dow { font-size:10px; text-align:center; padding:2px 0; }
.fb-cal-cell { position:relative; aspect-ratio:1; min-height:30px; border:1px solid var(--border); border-radius:6px; background:var(--surface-2); cursor:pointer; padding:3px; display:flex; align-items:flex-start; justify-content:flex-end; }
.fb-cal-cell.empty { border:0; background:transparent; cursor:default; }
.fb-cal-cell.lv0 { background:var(--surface-2); } 
.fb-cal-cell.lv1 { background:color-mix(in srgb,var(--sky-500) 18%,var(--surface-2)); }
.fb-cal-cell.lv2 { background:color-mix(in srgb,var(--sky-500) 38%,var(--surface-2)); }
.fb-cal-cell.lv3 { background:color-mix(in srgb,var(--sky-500) 60%,var(--surface-2)); }
.fb-cal-cell.lv4 { background:var(--sky-500); }
.fb-cal-cell.sel { outline:2px solid var(--warn); outline-offset:1px; }
.fb-cal-num { font-size:10px; color:var(--text-2); font-variant-numeric:tabular-nums; }
.fb-cal-cell.lv3 .fb-cal-num, .fb-cal-cell.lv4 .fb-cal-num { color:#fff; }
.fb-cal-tdot { position:absolute; left:4px; top:4px; width:5px; height:5px; border-radius:50%; background:var(--pos); }
.fb-day { margin-top:12px; }
.fb-day-task { display:flex; gap:8px; align-items:center; font-size:12.5px; padding:4px 0; border-bottom:1px solid var(--border); }
@media (max-width:980px){ .fb-body { grid-template-columns:1fr; } .fb-rail { border-right:0; border-bottom:1px solid var(--border); max-height:none; display:flex; flex-wrap:wrap; gap:6px; } .fb-rail-item { width:auto; } .fb-cols { grid-template-columns:1fr; } .fb-hero-stats { grid-template-columns:repeat(2,1fr); } }

/* ===== view: analyst-cockpit ===== */
.view-ac { display:flex; flex-direction:column; gap:10px; }
.ac-topbar { display:flex; align-items:center; justify-content:space-between; }
.ac-panes { display:grid; grid-template-columns:230px 1fr 320px; gap:14px; align-items:start; }
.ac-left { border-right:1px solid var(--border); padding-right:10px; max-height:calc(100vh - 220px); overflow-y:auto; }
.ac-search { width:100%; padding:8px 12px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); color:var(--text); font:inherit; margin-bottom:8px; }
.ac-chips { display:flex; gap:6px; margin-bottom:8px; }
.ac-list { display:flex; flex-direction:column; gap:1px; outline:none; }
.ac-li { display:flex; align-items:center; gap:8px; width:100%; text-align:left; background:transparent; border:0; border-radius:6px; padding:7px 8px; cursor:pointer; color:var(--text); font:inherit; }
.ac-li:hover { background:var(--surface-2); }
.ac-li.on { background:color-mix(in srgb,var(--sky-500) 16%,transparent); }
.ac-li-dot { width:7px; height:7px; border-radius:50%; flex:0 0 auto; }
.ac-li-dot.good { background:var(--pos); } .ac-li-dot.warn { background:var(--warn); } .ac-li-dot.bad { background:var(--neg); } .ac-li-dot.idle { background:var(--text-3); }
.ac-li-name { flex:1; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ac-li-badge { flex:0 0 auto; font-size:11px; color:var(--sky-500); }
.ac-center { min-width:0; }
.ac-title { font-size:18px; font-weight:800; color:var(--navy-700); margin:0 0 2px; }
.ac-dom { font-size:12px; }
.ac-purpose { font-size:13px; line-height:1.55; margin:8px 0; }
.ac-sub { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--text-3); margin:14px 0 6px; }
.ac-feats { display:flex; flex-direction:column; gap:4px; }
.ac-feat { display:flex; flex-direction:column; padding:4px 0; border-bottom:1px solid var(--border); }
.ac-feat b { font-size:12.5px; } .ac-feat .muted { font-size:11px; }
.ac-chart { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); padding:10px; }
.ac-svg { width:100%; height:auto; display:block; }
.ac-dot { fill:var(--navy-700); }
.ac-intents { margin-top:8px; }
.ac-intent { display:flex; gap:8px; align-items:flex-start; font-size:12.5px; padding:4px 0; }
.ac-pri { width:16px; height:16px; flex:0 0 auto; border-radius:4px; display:grid; place-items:center; font-size:9px; font-weight:800; color:#fff; }
.ac-pri.good { background:var(--pos); } .ac-pri.warn { background:var(--warn); } .ac-pri.bad { background:var(--neg); }
[data-theme="dark"] .ac-pri { color:#0d1520; }
.ac-tasks { display:flex; flex-direction:column; gap:2px; }
.ac-task { display:flex; gap:8px; align-items:center; font-size:12.5px; padding:4px 0; border-bottom:1px solid var(--border); }
.ac-right { border-left:1px solid var(--border); padding-left:14px; max-height:calc(100vh - 220px); overflow-y:auto; }
.ac-gauge { display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.ac-line { display:flex; gap:8px; align-items:center; font-size:12.5px; padding:4px 0; border-bottom:1px solid var(--border); }
.ac-fa { margin-bottom:8px; }
.ac-src-cat { font-size:11px; font-weight:700; color:var(--text-2); margin:8px 0 4px; }
.ac-src { display:flex; align-items:center; gap:8px; padding:3px 0; font-size:12px; }
.ac-src-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ac-dual { flex:0 0 60px; display:flex; flex-direction:column; gap:2px; }
.ac-dual i { display:block; height:3px; border-radius:2px; }
.ac-dual i.w { background:var(--sky-500); } .ac-dual i.r { background:var(--pos); }
.ac-dgs { display:flex; gap:5px; flex-wrap:wrap; }
.ac-dg { font-size:11px; padding:3px 8px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); }
.ac-dense .ac-li { padding:4px 6px; } .ac-dense .ac-feat,.ac-dense .ac-task,.ac-dense .ac-line { padding:2px 0; } .ac-dense .ac-sub { margin:8px 0 4px; }
@media (max-width:1100px){ .ac-panes { grid-template-columns:1fr; } .ac-left,.ac-right { border:0; padding:0; max-height:none; } }
