/* Velora — performance overview. Dark-only operator console. */
:root {
  color-scheme: dark;
  --page: #1a1a1a; --raised: #232323; --track: #191919; --chip: #1f1f1f;
  --line: #2e2e2e; --line-strong: #3a3a3a; --row-line: #222;
  --ink: #ededed; --ink-strong: #f5f5f5; --label: #dadada; --nav: #b4b4b4; --kpi: #a0a0a0;
  --caption: #8f8f8f; --muted: #8a8a8a; --muted-2: #909090; --axis: #7c7c7c; --section: #5f5f5f;
  --th: #7c7c7c; --legend: #8a8a8a; --pipe: #a0a0a0; --donut-value: #9a9a9a; --chevron: #8a8a8a;
  --brand: #7b5bff; --brand-soft: #9e7bff; --positive: #3fb37f; --negative: #e5484d; --negative-soft: #f07178; --up: #5bc98b;
  --emerald: #6bcb8b; --emerald-bg: #16251c; --emerald-line: #1f3326;
  --eagle: #7aa2f7; --eagle-bg: #1b2233; --eagle-line: #24304a;
  --platinum: #9e7bff; --platinum-bg: #211b36; --platinum-line: #2e2650;
  --ease-out-strong: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out-strong: cubic-bezier(.77, 0, .175, 1);
  --ease-icon: cubic-bezier(.2, 0, 0, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-surface: linear-gradient(90deg, #7b5bff2b 0%, #7b5bff0a 14.208%, #7b5bff00 22.917%), linear-gradient(var(--raised), var(--raised));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--page); color: var(--ink); font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: color-mix(in oklab, var(--brand) 35%, transparent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: default; text-align: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
svg { display: block; flex-shrink: 0; }
[hidden] { display: none !important; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- primitives ---------- */
.divider-h { background: #000; flex-shrink: 0; height: 1px; width: 100%; box-shadow: 0 1px #232323; }
.divider-v { background: #000; flex-shrink: 0; width: 1px; box-shadow: 1px 0 #232323; }
.control { background-color: var(--raised); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 0 4.6px #00000080; color: var(--label); transition: border-color .15s ease-out; }
.control:hover, .control[data-popup-open] { border-color: var(--line-strong); }
.control:disabled { pointer-events: none; opacity: .4; }
.pressable { transition: scale .16s var(--ease-out-strong), border-color .15s ease-out; }
.pressable:active:not(:disabled) { scale: .96; }
.icon-btn { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; position: relative; }
.btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; font-size: 14px; line-height: 20px; white-space: nowrap; user-select: none; flex-shrink: 0; }
.btn .chev { color: var(--chevron); transition: transform .15s ease-out; }
.btn[data-popup-open] .chev { transform: rotate(180deg); }
.btn .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; margin-right: auto; }
.nav-surface, .hover-surface:hover, .hover-surface:focus-visible, [data-highlighted] { background-image: var(--nav-surface); border-color: var(--line) !important; }
.h-title { font-size: 18px; line-height: 1.1; font-weight: 500; letter-spacing: -.36px; color: var(--ink); }
.sub { font-size: 14px; line-height: 18px; color: var(--muted); }
.data-region { transition: opacity .15s ease-out; }
.data-region[data-pending="true"] { opacity: .55; }

.seg { display: inline-flex; align-items: center; border-radius: 6px; background: var(--track); }
.seg.inset { border-radius: 8px; padding: 2px; box-shadow: inset 0 2px 8px rgb(0 0 0 / .25); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid transparent; font-size: 14px; line-height: 1.45; white-space: nowrap; color: var(--label); user-select: none; transition: background-color .15s ease-out, border-color .15s ease-out; }
.seg button:hover { background-color: rgb(35 35 35 / .5); }
.seg button[aria-pressed="true"] { background-color: var(--raised); box-shadow: 0 0 4.6px rgb(0 0 0 / .5); border-color: var(--line); }
.seg button:focus-visible { outline-offset: -2px; }
.seg .count { font: 400 11px/1 var(--mono); color: var(--muted); }
.seg .count.brand { color: var(--brand); }

.badge { display: inline-flex; align-items: center; height: 18px; flex-shrink: 0; border-radius: 6px; border: 1px solid; padding: 0 6px; font-size: 10px; line-height: 1; font-weight: 500; letter-spacing: -.06px; text-transform: uppercase; filter: drop-shadow(0 0 2.3px rgb(0 0 0 / .5)); }
.badge.emerald { color: var(--emerald); background: var(--emerald-bg); border-color: var(--emerald-line); }
.badge.eagle { color: var(--eagle); background: var(--eagle-bg); border-color: var(--eagle-line); }
.badge.platinum { color: var(--platinum); background: var(--platinum-bg); border-color: var(--platinum-line); }

.pill { display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; padding: 2px; font-size: 12px; line-height: 1.1; white-space: nowrap; }
.pill.neg { background: color-mix(in srgb, var(--negative) 10%, transparent); color: var(--negative); }
.pill.pos { background: color-mix(in srgb, var(--positive) 10%, transparent); color: var(--positive); }
.pill.flat { background: rgb(255 255 255 / .06); color: var(--muted); }

/* ---------- shell ---------- */
.app { display: flex; min-height: 100dvh; }
.col { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.side { position: sticky; top: 0; height: 100dvh; width: 238px; flex-shrink: 0; display: none; flex-direction: column; overflow-y: auto; border: 1px solid #000; box-shadow: 1px 0 0 #232323; background: var(--page); scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .side { display: flex; } .menu-btn { display: none !important; } }
.side-head { display: flex; align-items: center; gap: 8px; padding: 7px 8px 5px; }
.side-close { display: none; }
.ws-btn { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 6px; border: 1px solid transparent; padding: 3.5px; outline: none; }
.ws-btn:hover, .ws-btn:focus-visible, .ws-btn[data-popup-open] { background-image: var(--nav-surface); border-color: var(--line); }
.ws-btn .ws-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-btn .ws-text { display: flex; flex-direction: column; min-width: 0; }
.ws-btn .ws-name { font-size: 16px; line-height: 1.4; font-weight: 500; letter-spacing: -.32px; color: #fff; }
.ws-btn .ws-role { font-size: 12px; line-height: 1.5; letter-spacing: -.12px; color: var(--axis); }
.ws-btn .chev { margin-right: 4px; color: var(--muted-2); opacity: 0; transition: opacity .15s ease-out, rotate .15s ease-out; }
.ws-btn:hover .chev, .ws-btn:focus-visible .chev, .ws-btn[data-popup-open] .chev { opacity: 1; }
.ws-btn[data-popup-open] .chev { rotate: 180deg; }
.tile { display: grid; place-items: center; overflow: hidden; border-radius: 7px; background: var(--raised); flex-shrink: 0; }
.tile .initials { font-size: 14px; line-height: 1; font-weight: 500; color: var(--nav); }
.ws-btn .tile { width: 40px; height: 40px; transition: scale .16s var(--ease-out-strong); }
.ws-btn:active .tile { scale: .96; }

.nav { margin-top: 6px; display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.nav-group { display: flex; flex-direction: column; }
.nav-label { padding: 6px 10px; font-size: 12px; line-height: 1.5; letter-spacing: .48px; color: var(--section); text-transform: uppercase; user-select: none; }
.nav ul { display: flex; flex-direction: column; align-items: flex-end; padding-right: 10px; }
.nav li { display: flex; align-items: center; width: 100%; padding-left: 13px; }
.nav li.active { padding-left: 0; gap: 7px; }
.nav .ind { width: 5px; height: 26px; flex-shrink: 0; border-radius: 0 6px 6px 0; background: var(--brand); box-shadow: 0 0 7.2px rgb(123 91 255 / .5); }
.nav a { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; height: 30px; border-radius: 6px; border: 1px solid transparent; padding: 6px; font-size: 14px; letter-spacing: -.28px; color: var(--nav); outline: none; transition: color .15s ease-out; }
.nav a:hover, .nav a:focus-visible { background-image: var(--nav-surface); border-color: var(--line); }
.nav li.active a { background-image: var(--nav-surface); border-color: var(--line); color: var(--ink); }
.nav a .l { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nav .chip { border-radius: 18px; background: var(--chip); padding: 3px 5px; font-size: 12px; line-height: 12px; font-weight: 500; letter-spacing: -.24px; color: #cfcfcf; }

.topbar { display: flex; height: 62px; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px; }
.topbar-l { display: flex; min-width: 0; align-items: center; gap: 12px; }
.topbar-r { display: flex; align-items: center; gap: 12px; }
.crumbs ol { display: flex; min-width: 0; align-items: center; gap: 7px; font-size: 12px; line-height: 1; font-weight: 500; color: var(--ink); }
.crumbs a { display: flex; align-items: center; gap: 4px; opacity: .5; transition: opacity .15s ease-out; }
.crumbs a:hover { opacity: .8; }
.crumbs .cur { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clock { display: none; min-width: 60px; font: 400 11px/15px var(--mono); color: var(--muted); }
@media (min-width: 640px) { .clock { display: block; } }
@media (max-width: 639px) { .crumbs .home, .crumbs .sep { display: none; } .crumbs .cur { font-size: 14px; } }
.bell .dot { position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--raised); transition: opacity .3s var(--ease-icon), scale .3s var(--ease-icon), filter .3s var(--ease-icon); }
.bell .dot.off { opacity: 0; scale: .25; filter: blur(4px); }

/* drawer (below lg) */
.scrim { position: fixed; inset: 0; z-index: 55; background: rgb(0 0 0 / .64); transition: opacity .2s ease-out; }
.scrim.closing, .scrim.starting { opacity: 0; }
@media (max-width: 1023.98px) {
  .side.open { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 60; width: 280px; transition: transform .24s var(--ease-out-strong); }
  .side.open.starting, .side.open.closing { transform: translateX(-100%); }
  .side.open .side-close { display: grid; }
  .side.open .ws-btn .chev { opacity: 1; }
}

/* ---------- page ---------- */
.main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 12px; }
.page-head .titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.head-ctrls { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; }
@media (min-width: 640px) { .head-ctrls { display: flex; width: auto; flex-wrap: wrap; } }
.only-sm { display: none; }
@media (min-width: 640px) { .only-sm { display: inline; } .only-xs { display: none; } }
.scope-wrap { padding: 12px; }
.scope { display: flex; width: 100%; }
.scope button { flex: 1; }
.scope button svg { display: none; }
@media (min-width: 640px) { .scope { display: inline-flex; width: auto; } .scope button { flex: none; } .scope button svg { display: block; } }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.kpi-cell { position: relative; display: flex; height: 110px; min-width: 0; align-items: center; padding: 0 12px; }
.kpi-cell::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: #000; box-shadow: 1px 0 0 #232323; display: none; }
.kpi-cell::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: #000; box-shadow: 0 1px 0 #232323; display: none; }
.kpis .kpi-cell:nth-child(2n)::before { display: block; }
.kpis .kpi-cell:nth-child(n+3)::after { display: block; }
@media (min-width: 640px) {
  .kpis .kpi-cell::before, .kpis .kpi-cell::after { display: none; }
  .kpis .kpi-cell:not(:nth-child(3n+1))::before { display: block; }
  .kpis .kpi-cell:nth-child(n+4)::after { display: block; }
}
@media (min-width: 1280px) {
  .kpis .kpi-cell::before { display: block; }
  .kpis .kpi-cell:first-child::before, .kpis .kpi-cell::after { display: none !important; }
}
.kpi { position: relative; display: flex; height: 88px; min-width: 0; flex: 1; flex-direction: column; }
.kpi .k-label { padding-right: 40px; font-size: 12px; line-height: 1.1; color: var(--kpi); }
.kpi .k-value { margin: 11px 0 0 1px; font-size: 28px; line-height: 23px; font-weight: 500; color: var(--ink); }
.kpi .k-foot { margin-top: auto; display: flex; align-items: center; gap: 5px; }
.kpi .k-cap { font-size: 12px; line-height: 1.1; color: var(--caption); }
.kpi .about { position: absolute; top: 0; right: 0; }
.kpi-icon { transition: color .15s var(--ease-out-strong), filter .15s var(--ease-out-strong); }
.kpi-cell:hover .kpi-icon, .kpi-cell:focus-within .kpi-icon, .kpi:hover .kpi-icon, .kpi:focus-within .kpi-icon { color: var(--accent); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 90%, transparent)); }

/* body grid */
.body-grid { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1280px) { .body-grid { grid-template-columns: minmax(0, 1fr) 1px 340px; } }
@media (min-width: 1440px) { .body-grid { grid-template-columns: minmax(0, 1fr) 1px 402px; } }
.body-grid > .divider-v { display: none; }
.body-grid > .divider-h.mid { display: block; }
@media (min-width: 1280px) { .body-grid > .divider-v { display: block; } .body-grid > .divider-h.mid { display: none; } }
.left { display: flex; min-width: 0; flex-direction: column; }
.right { display: flex; flex-direction: column; min-width: 0; }
.right > .rdiv-v { display: none; }
@media (min-width: 768px) and (max-width: 1279.98px) {
  .right { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); }
  .right > .rdiv-h { display: none; }
  .right > .rdiv-v { display: block; }
  .right > .rdiv-h.full { display: block; grid-column: 1 / -1; }
  .right > .lb-wrap { grid-column: 1 / -1; }
}

/* trend */
.trend { display: flex; flex-direction: column; padding: 18px 12px 20px; }
.trend-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; }
.trend-head .tt { display: flex; flex-direction: column; gap: 7px; }
.legend { display: flex; align-items: center; gap: 8px; }
.legend button { margin: -3px; display: flex; align-items: center; gap: 4px; border-radius: 3px; padding: 3px; font-size: 9px; line-height: 1; color: var(--legend); outline: none; transition: opacity .15s ease-out; }
.legend button:focus-visible { outline: 1px solid var(--brand); outline-offset: 0; }
.legend button[aria-pressed="false"] { opacity: .4; }
.legend .sw { width: 8px; height: 8px; border-radius: 2px; }
.chart { position: relative; margin-top: 18px; }
.chart svg { overflow: visible; outline: none; touch-action: pan-y; width: 100%; height: 212px; }
.chart svg:focus-visible { outline: 1px solid var(--brand); outline-offset: 4px; }
.chart text { font: 400 14px var(--sans); fill: var(--axis); font-variant-numeric: tabular-nums; }
.chart .series { transition: opacity .15s ease-out; }
.x-labels { position: relative; margin-top: 14px; height: 21px; }
.x-labels span { position: absolute; top: 0; font-size: 14px; line-height: 1.5; white-space: nowrap; color: var(--axis); }
.tip { position: absolute; z-index: 10; pointer-events: none; display: flex; flex-direction: column; gap: 3px; padding: 7px; border: .875px solid var(--line-strong); background: #000; border-radius: 7px; box-shadow: 0 10.5px 24px #7b5bff1a; transition: opacity .12s ease-out; }
.tip .d { font-size: 10.5px; line-height: 1.35; letter-spacing: .21px; color: rgb(255 255 255 / .3); }
.tip .r { display: flex; align-items: center; gap: 3.5px; font-size: 10.5px; line-height: 1.35; letter-spacing: .21px; }
.tip .r .sw { width: 9px; height: 9px; border-radius: 1.75px; box-shadow: inset 0 3.5px 3.5px rgb(255 255 255 / .29); }
.tip .r .n { color: rgb(255 255 255 / .8); }
.tip .r .v { color: #fff; font-weight: 500; }

/* team table */
.team-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 20px 12px; }
.team-head .titles { display: flex; flex-direction: column; gap: 4px; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.table { min-width: 670px; }
.tr { display: grid; grid-template-columns: minmax(190px, 1fr) 76px 68px 84px 84px 72px 96px; }
.th { display: flex; height: 36px; align-items: center; justify-content: flex-end; gap: 2px; border-bottom: 1px solid var(--row-line); }
.th.leg { justify-content: flex-start; padding: 0 12px; position: sticky; left: 0; z-index: 1; background: var(--page); }
.th.w26 { padding-right: 16px; font-size: 14px; color: var(--th); }
.sort { display: flex; align-items: center; gap: 2px; border-radius: 4px; font-size: 14px; line-height: 20px; color: var(--th); outline: none; transition: color .15s ease-out; }
.sort:hover, .sort.on { color: var(--label); }
.sort:focus-visible { outline: 2px solid var(--brand); }
.sort svg { transition: transform .15s ease-out; }
.sort.asc svg { transform: rotate(180deg); }
.th .info { margin: -7px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--th); outline: none; }
.th .info:hover, .th .info:focus-visible, .th .info[data-popup-open] { color: var(--label); }
.row { height: 64px; cursor: pointer; align-items: center; border-bottom: 1px solid var(--row-line); background: var(--page); outline: none; transition: background-color .1s ease-out; -webkit-touch-callout: none; }
.row:hover { background: var(--raised); transition-duration: 0s; }
.row:focus-visible { background: var(--raised); outline: 2px solid var(--brand); outline-offset: -2px; }
.row.menu-open { background: var(--raised); }
.row .leg { position: sticky; left: 0; z-index: 1; background: inherit; display: flex; min-width: 0; align-items: center; gap: 12px; align-self: stretch; padding: 12px 16px 12px 12px; }
@media (max-width: 767.98px) { .th.leg, .row .leg { box-shadow: 1px 0 0 #000, 2px 0 0 #232323; } .row .act { display: none; } }
.leg .who { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.leg .nm { display: flex; align-items: center; gap: 6px; min-width: 0; }
.leg .nm .t { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.leg .meta { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted-2); white-space: nowrap; }
.dot3 { width: 3px; height: 3px; border-radius: 50%; background: #6b6b6b; flex-shrink: 0; }
.row .act { opacity: 0; transition: opacity .1s ease-out; }
.row:hover .act, .row:focus-visible .act, .row .act:focus-visible, .row .act[data-popup-open] { opacity: 1; }
@media (hover: none) { .row .act { opacity: 1; } }
.cell { text-align: right; font-size: 14px; }
.cell.b { font-weight: 500; color: var(--ink); }
.cell.m2 { color: var(--muted-2); }
.cell.up { font-weight: 500; color: var(--up); }
.cell.down { font-weight: 500; color: var(--negative-soft); }
.cell.flat { font-weight: 500; color: var(--muted); }
.cell.k { font-weight: 500; color: var(--kpi); }
.spark { display: flex; justify-content: flex-end; padding-right: 16px; }

/* right column */
.panel { display: flex; flex-direction: column; gap: 22px; padding: 18px 13px 20px; min-width: 0; }
.panel.pipe-panel { gap: 14px; }
.pipe { display: flex; flex-direction: column; gap: 16px; }
.pipe-row { margin: 0 -4px; padding: 0 4px; display: flex; flex-direction: column; gap: 6px; border-radius: 4px; outline: none; }
.pipe-row:focus-visible { outline: 2px solid var(--brand); }
.pipe-row .lab { display: flex; align-items: center; justify-content: space-between; font-size: 10px; line-height: 1.5; color: var(--pipe); }
.pipe-row .nums { display: flex; width: 90px; align-items: center; justify-content: space-between; }
.pipe-row .conv { display: flex; align-items: center; gap: 2px; color: var(--positive); }
.bar { height: 7px; width: 100%; overflow: hidden; border-radius: 4px / .75px; background: color-mix(in srgb, var(--brand) 10%, transparent); }
.bar i { display: block; height: 100%; border-radius: 4px / .75px; transition: width .25s var(--ease-in-out-strong); }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 14px; }
.donut { position: relative; width: 150px; height: 150px; flex-shrink: 0; }
@media (max-width: 359px) { .donut { width: 128px; height: 128px; } }
.donut svg { width: 100%; height: 100%; }
.donut path { transition: stroke .2s ease-out; }
.donut .c { pointer-events: none; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.4px; }
.donut .c .v { font-size: 22px; line-height: .9; font-weight: 500; letter-spacing: -1.1px; color: var(--ink); }
.donut .c .l { font-size: 12px; line-height: 1.2; color: rgb(237 237 237 / .5); }
.src-list { display: flex; max-width: 191px; min-width: 0; flex: 1; flex-direction: column; gap: 6px; }
.src-list button { margin: 0 -4px; display: flex; width: calc(100% + 8px); align-items: center; justify-content: space-between; border-radius: 4px; padding: 5px 4px; outline: none; transition: opacity .15s ease-out; }
.src-list button:focus-visible { outline: 2px solid var(--brand); }
.src-list.dim button:not(.on) { opacity: .45; }
.src-list .nm { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.src-list .nm i { width: 6px; height: 6px; border-radius: 50%; }
.src-list .pc { font-size: 12px; line-height: 1.3; font-weight: 500; color: var(--donut-value); }
.panel.lb { padding-bottom: 24px; }
.people { display: flex; flex-direction: column; gap: 6px; }
.person { margin: 0 -8px; display: flex; width: calc(100% + 16px); align-items: center; justify-content: space-between; border-radius: 6px; border: 1px solid transparent; padding: 6px 8px; text-align: left; outline: none; }
button.person:hover, button.person:focus-visible { background-image: var(--nav-surface); border-color: var(--line); }
.person .l { display: flex; min-width: 0; align-items: center; gap: 10px; }
.avatar { display: grid; width: 44px; height: 44px; flex-shrink: 0; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--label); }
.avatar.n { box-shadow: 0 0 4.6px rgb(0 0 0 / .5); }
.avatar .rk { font-size: 22px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.person .who { display: flex; min-width: 0; flex-direction: column; }
.person .nm { font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.person .role { font-size: 12px; line-height: 16px; color: var(--muted-2); }
.person .pin { color: var(--brand); }
.person .val { font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--ink-strong); }

/* placeholder */
.ph-head { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.ph-body { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 96px 24px; text-align: center; }
.ph-body .lead { max-width: 420px; font-size: 14px; line-height: 20px; color: var(--muted); }
.ph-body .btn { margin-top: 8px; }

/* ---------- overlays ---------- */
.overlay-surface { background-color: var(--page); border: 1px solid var(--line); box-shadow: 0 0 4.6px #00000080, 0 10.5px 48px #7b5bff1a, 0 16px 40px #00000059; }
.pop { position: absolute; z-index: 70; outline: none; max-width: calc(100vw - 24px); transform-origin: var(--origin, top left); transition: opacity .18s var(--ease-out-strong), transform .18s var(--ease-out-strong); }
.pop.starting { opacity: 0; transform: scale(.97); }
.pop.closing { opacity: 0; transform: translateY(-4px); transition-duration: .12s; transition-timing-function: ease-out; }
.pop.menu { border-radius: 10px; padding: 4px; }
.pop.panel-pop { border-radius: 12px; overflow: hidden; }
.mgroup-label { padding: 6px 10px 4px; font-size: 12px; line-height: 1.5; letter-spacing: .48px; color: var(--section); text-transform: uppercase; user-select: none; }
.mi { position: relative; display: flex; height: 30px; width: 100%; align-items: center; justify-content: space-between; gap: 12px; border-radius: 6px; border: 1px solid transparent; padding: 0 6px; font-size: 14px; letter-spacing: -.28px; color: var(--nav); outline: none; user-select: none; }
.mi[data-highlighted] { color: var(--ink); }
.mi .l { display: flex; min-width: 0; align-items: center; gap: 6px; }
.mi .r { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.mi .hint { font: 400 11px/15px var(--mono); color: var(--muted); }
.mi .ck { display: grid; width: 15px; height: 15px; place-items: center; color: var(--brand); }
.mi .ck svg { transition: opacity .3s var(--ease-icon), scale .3s var(--ease-icon), filter .3s var(--ease-icon); }
.mi .ck.off svg { opacity: 0; scale: .25; filter: blur(4px); }
.mi.danger .l { color: var(--negative-soft); }
.mi.ws { height: auto; padding: 6px; }
.mi.ws .l { gap: 10px; }
.mi.ws .tile { width: 32px; height: 32px; }
.mi.ws .t { display: flex; flex-direction: column; min-width: 0; }
.mi.ws .t b { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--nav); }
.mi.ws .t b.cur { color: #fff; }
.mi.ws .t span { font-size: 12px; line-height: 16px; color: var(--axis); }
.menu .divider-h { margin: 4px 0; }

.tooltip { position: absolute; z-index: 80; pointer-events: none; max-width: 200px; padding: 6px 8px 7px; border: .875px solid var(--line-strong); background: #000; border-radius: 7px; box-shadow: 0 10.5px 24px #7b5bff1a; transform-origin: var(--origin, top center); transition: opacity .125s ease-out, transform .125s ease-out; }
.tooltip.starting, .tooltip.closing { opacity: 0; transform: scale(.97); }
.tooltip.instant { transition-duration: 0s; }
.tooltip b { display: block; font-size: 11px; line-height: 1.4; font-weight: 500; color: #fff; }
.tooltip span { display: block; font-size: 10.5px; line-height: 1.35; letter-spacing: .21px; color: rgb(255 255 255 / .8); }

/* notifications */
.notif { width: 384px; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 12px; }
.linkish { border-radius: 4px; font-size: 12px; line-height: 16px; color: var(--brand); outline: none; }
.linkish:hover { text-decoration: underline; }
.linkish:disabled { pointer-events: none; color: var(--muted); }
.notif-tabs { padding: 0 16px 12px; }
.notif-list { display: flex; max-height: 360px; flex-direction: column; gap: 2px; overflow-y: auto; padding: 6px; }
.notif-item { display: flex; width: 100%; align-items: flex-start; gap: 12px; border-radius: 6px; border: 1px solid transparent; padding: 10px; text-align: left; outline: none; }
.notif-item:hover, .notif-item:focus-visible { background-image: var(--nav-surface); border-color: var(--line); }
.notif-item .ico { display: grid; width: 32px; height: 32px; flex-shrink: 0; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--label); }
.notif-item .ico.alert { color: var(--negative-soft); border-color: #3a2326; background: #261b1c; }
.notif-item .tx { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.notif-item .tt { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -.084px; color: var(--muted-2); text-wrap: pretty; }
.notif-item.unread .tt { color: var(--ink); }
.notif-item .tt em { font-style: normal; color: var(--negative-soft); }
.notif-item .mt { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--muted-2); }
.notif-item .ud { padding-top: 6px; }
.notif-item .ud i { display: block; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); box-shadow: inset 0 3.5px 3.5px rgb(255 255 255 / .29); transition: opacity .3s var(--ease-icon), scale .3s var(--ease-icon), filter .3s var(--ease-icon); }
.notif-item:not(.unread) .ud i { opacity: 0; scale: .25; filter: blur(4px); }
.notif-empty { padding: 28px 16px; text-align: center; font-size: 14px; color: var(--muted); }
.notif-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; }

/* calendar */
.cal { display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; }
.cal-body { display: flex; justify-content: center; overflow-x: auto; }
@media (min-width: 640px) { .cal-body { justify-content: flex-start; } }
.cal-presets { display: none; width: 188px; flex-shrink: 0; flex-direction: column; padding: 4px; }
@media (min-width: 640px) { .cal-presets { display: flex; } .cal-body > .divider-v { display: block; } }
.cal-body > .divider-v { display: none; align-self: stretch; }
.cal-presets .mgroup-label { padding: 6px 10px; }
.cal-presets button, .cal-presets span.custom { display: flex; height: 30px; align-items: center; justify-content: space-between; border-radius: 6px; border: 1px solid transparent; padding: 0 6px; font-size: 14px; letter-spacing: -.28px; color: var(--nav); outline: none; }
.cal-presets button:hover, .cal-presets button:focus-visible { background-image: var(--nav-surface); border-color: var(--line); }
.cal-presets .on { color: var(--ink); }
.cal-presets .on svg { color: var(--brand); }
.cal-months { display: flex; gap: 28px; padding: 12px 16px 16px; }
@media (min-width: 640px) { .cal-months { padding: 12px 20px 16px; } }
.cal-month { display: flex; flex-direction: column; gap: 8px; }
.cal-month + .cal-month { display: none; }
@media (min-width: 640px) { .cal-month + .cal-month { display: flex; } }
.cal-mhead { display: flex; height: 32px; width: 238px; align-items: center; justify-content: space-between; }
.cal-mhead .t { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.cal-mhead .sp { width: 32px; }
.cal-grid { display: flex; flex-direction: column; gap: 2px; }
.cal-row { display: flex; }
.cal-row .wd { display: grid; height: 20px; width: 34px; place-items: center; font-size: 12px; line-height: 16px; color: var(--th); }
.cal-row .e { height: 32px; width: 34px; }
.day { position: relative; display: grid; height: 32px; width: 34px; place-items: center; font-size: 14px; line-height: 20px; color: var(--label); outline: none; user-select: none; }
.day::before { content: ""; position: absolute; inset: 0; border-radius: 6px; z-index: -1; }
.day:hover::before { background: var(--raised); }
.day:disabled { opacity: .3; }
.day.in { color: #a594ff; }
.day.in::before { background: color-mix(in srgb, var(--brand) 18%, transparent); border-radius: 0; }
.day.in.rs::before { border-radius: 6px 0 0 6px; }
.day.in.re::before { border-radius: 0 6px 6px 0; }
.day.in.rs.re::before { border-radius: 6px; }
.day.edge { color: #fff; font-weight: 500; }
.day.edge::before { background: var(--brand); box-shadow: inset 0 1px 0 rgb(255 255 255 / .2); }
.day.edge.s::before { border-radius: 6px 0 0 6px; }
.day.edge.e::before { border-radius: 0 6px 6px 0; }
.day.edge.s.e::before { border-radius: 6px; }
.day:focus-visible { z-index: 1; outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 6px; }
.cal-grid { isolation: isolate; }
.cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; }
.cal-foot .rng { font: 400 11px/15px var(--mono); color: var(--label); }
.cal-foot .rng span { color: var(--muted); margin-left: 6px; }
.cal-foot .acts { display: flex; gap: 8px; }

/* modal */
.backdrop { position: fixed; inset: 0; z-index: 75; background: rgb(0 0 0 / .64); transition: opacity .2s ease-out; }
.backdrop.starting, .backdrop.closing { opacity: 0; }
.backdrop.closing { transition-duration: .15s; }
.dialog-wrap { position: fixed; inset: 0; z-index: 76; display: grid; place-items: center; padding: 16px; pointer-events: none; }
.dialog { pointer-events: auto; position: relative; width: min(860px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; border-radius: 10px; outline: none; transition: opacity .24s var(--ease-out-strong), transform .24s var(--ease-out-strong); }
.dialog.starting { opacity: 0; transform: scale(.96); }
.dialog.closing { opacity: 0; transform: scale(.98); transition-duration: .15s; transition-timing-function: ease-out; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 20px 24px; }
.dlg-head .titles { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.dlg-head .r { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.dlg-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 16px 24px; }
.dlg-kpis > .divider-v { display: none; }
@media (min-width: 768px) { .dlg-kpis { display: flex; height: 110px; align-items: center; gap: 12px; padding: 0 24px; } .dlg-kpis > .divider-v { display: block; height: 110px; } }
.dlg-grid { display: grid; }
.dlg-grid > .divider-v { display: none; }
@media (min-width: 768px) { .dlg-grid { grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); } .dlg-grid > .divider-v { display: block; } }
.dlg-sec { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 24px; min-width: 0; }
.dlg-sec.members { gap: 12px; }
.dlg-sec .sec-head { display: flex; align-items: center; justify-content: space-between; }
.dlg-sec .when { font: 400 11px/15px var(--mono); color: var(--muted); }
.dlg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px 14px 24px; }
.dlg-foot .r { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 767.98px) { .dlg-sec + .dlg-sec { border-top: 1px solid #000; box-shadow: inset 0 1px #232323; } }

/* toasts */
.toaster { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(360px, calc(100vw - 32px)); border-radius: 10px; padding: 11px 14px; font-size: 14px; line-height: 20px; color: var(--ink); transition: opacity .24s var(--ease-out-strong), transform .24s var(--ease-out-strong); }
.toast svg { color: var(--brand); }
.toast.starting { opacity: 0; transform: translateY(8px) scale(.98); }
.toast.closing { opacity: 0; transform: translateY(4px); transition-duration: .15s; }

/* concept badge */
.ariadne { position: fixed; right: 20px; bottom: 18px; z-index: 50; font: 500 12.5px/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: rgba(20, 22, 26, .88); color: #fff; letter-spacing: .01em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); opacity: .9; }
.ariadne b { font-weight: 600; color: #ff8a3d; }
body.has-toast .ariadne { opacity: 0; pointer-events: none; }
@media (min-width: 1024px) { .ariadne { right: auto; left: 12px; bottom: 14px; } }
@media (max-width: 639px) { .ariadne { position: static; display: table; margin: 4px 12px calc(20px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}

/* =================================================================
   Product pages (pages.js)
   ================================================================= */
.dim { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--negative-soft); }
.k { color: var(--kpi); }
.b { font-weight: 500; }
kbd { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line); background: var(--chip); font: 500 10.5px/1 var(--mono); color: var(--muted); }
.search-btn { height: 32px; gap: 8px; font-size: 13px; color: var(--muted); padding: 0 6px 0 10px; }
.search-btn span { margin-right: 6px; }
@media (max-width: 639px) { .search-btn { width: 32px; padding: 0; justify-content: center; } .search-btn span, .search-btn kbd { display: none; } }
@media (min-width: 1280px) { .kpis.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kpis.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1279.98px) { .kpis.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis.n4 .kpi-cell::before, .kpis.n4 .kpi-cell::after { display: none; } .kpis.n4 .kpi-cell:nth-child(2n)::before, .kpis.n4 .kpi-cell:nth-child(n+3)::after { display: block; } }

.pg { display: flex; flex-direction: column; min-width: 0; }
.pg-cols { display: grid; grid-template-columns: minmax(0, 1fr); }
.pg-cols > .divider-v { display: none; }
@media (min-width: 1280px) { .pg-cols { grid-template-columns: minmax(0, 1fr) 1px 340px; } .pg-cols > .divider-v { display: block; } .pg-cols > .pg-mid { display: none; } }
@media (min-width: 1440px) { .pg-cols { grid-template-columns: minmax(0, 1fr) 1px 402px; } }
.pg-main, .pg-side { min-width: 0; display: flex; flex-direction: column; }
.pg-sec { padding: 18px 12px 22px; min-width: 0; }
.pg-side .pg-sec { padding-left: 13px; padding-right: 13px; }
.pg-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.pg-sec-h.wrap { flex-wrap: wrap; }
.pg-sec-h .titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px; }
.pg-toolbar .sub { display: inline-flex; align-items: center; gap: 10px; }
.pg-toolbar .mbar { width: 90px; flex: none; }
.pg-filter { margin: -4px 0 14px; }
.legend.static { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: var(--legend); }
.legend.static span { display: inline-flex; align-items: center; gap: 5px; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }

/* search, chips, pills, bars */
.search { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; color: var(--muted); }
.search:focus-within { border-color: var(--line-strong); }
.search input { width: 170px; border: 0; outline: 0; background: none; font: 400 13.5px/1 var(--sans); color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchips button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line); font-size: 13px; color: var(--label); transition: background-color .15s, border-color .15s, color .15s; }
.fchips button:hover { border-color: var(--line-strong); }
.fchips button[aria-pressed="true"] { background: var(--raised); border-color: var(--line-strong); color: var(--ink); box-shadow: 0 0 4.6px rgb(0 0 0 / .5); }
.fchips em { font: 400 11px/1 var(--mono); font-style: normal; color: var(--muted); }
.spill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; border: 1px solid; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.spill.pos { color: var(--positive); background: rgb(63 179 127 / .1); border-color: rgb(63 179 127 / .25); }
.spill.neg { color: var(--negative-soft); background: rgb(229 72 77 / .1); border-color: rgb(229 72 77 / .25); }
.spill.warn { color: #e3b341; background: rgb(227 179 65 / .1); border-color: rgb(227 179 65 / .25); }
.spill.info { color: #7aa2f7; background: rgb(122 162 247 / .1); border-color: rgb(122 162 247 / .25); }
.spill.muted { color: var(--muted); background: rgb(255 255 255 / .03); border-color: var(--line); }
.mbar { position: relative; display: block; flex: 1; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .06); }
.mbar i { display: block; height: 100%; border-radius: 3px; transition: width .5s var(--ease-out-strong); }
.mbar b { position: absolute; top: -3px; bottom: -3px; width: 1.5px; background: var(--ink); opacity: .65; }
.sharecell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; }
.sharecell .mbar { max-width: 56px; }
.btn.sm { height: 28px; padding: 0 9px; font-size: 13px; gap: 6px; }
.linkish.dim { color: var(--muted); }
.linkish.dim:hover { color: var(--label); }

/* generic table */
.dt { display: flex; flex-direction: column; }
.dtr { display: grid; grid-template-columns: var(--cols); align-items: center; column-gap: 12px; min-height: 54px; padding: 0 16px 0 12px; border-bottom: 1px solid var(--row-line); background: var(--page); transition: background-color .1s ease-out; }
.dth-row { min-height: 36px; }
.dtr.click { cursor: pointer; }
.dtr.click:hover, .dtr.click:focus-visible { background: var(--raised); transition-duration: 0s; }
.dtr.click:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.dth { display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--th); min-width: 0; }
.dth.r, .dtd.r { justify-content: flex-end; text-align: right; }
.dth .info { margin: -7px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--th); }
.dth .info:hover { color: var(--label); }
.dtd { display: flex; align-items: center; min-width: 0; font-size: 14px; color: var(--ink); padding: 8px 0; font-variant-numeric: tabular-nums; }
.dtd.r { justify-content: flex-end; }
.stk { position: sticky; left: 0; z-index: 1; background: inherit; }
@media (max-width: 767.98px) { .dtr > .stk { margin-left: -12px; padding-left: 12px; box-shadow: 1px 0 0 #000, 2px 0 0 #232323; } }
.dt-empty { padding: 32px 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.pg-btns { display: flex; gap: 6px; }
.lc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-n { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 500; }
.lc-s { font-size: 12px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ownr { display: flex; align-items: center; gap: 9px; min-width: 0; }
.iav { display: grid; place-items: center; width: var(--s); height: var(--s); flex-shrink: 0; border-radius: 50%; border: 1px solid #3b3366; background: linear-gradient(135deg, #3a2f6b, #241e45); color: #d9d2ff; font: 600 calc(var(--s) * .38)/1 var(--sans); letter-spacing: .02em; }
.plan { display: inline-flex; align-items: center; gap: 6px; }

/* lists */
.plist { display: flex; flex-direction: column; gap: 18px; }
.prow-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 14px; color: var(--ink); }
.prow-h > span { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.prow-h em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); }
.prow .mbar { height: 7px; }
.prow-s { margin-top: 7px; font-size: 12px; color: var(--muted-2); }
.big { margin-bottom: 14px; font: 500 34px/1 var(--sans); letter-spacing: -.04em; color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 2px; }
.mini-h { margin: 4px 0 6px; font-size: 12px; letter-spacing: .48px; text-transform: uppercase; color: var(--section); }
.mini-h + .stack + .mini-h { margin-top: 18px; }
.rank li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--row-line); font-size: 14px; color: var(--label); }
.rank .rk { color: var(--muted); font: 400 12px/1.6 var(--mono); }

/* charts */
.vchart { position: relative; min-height: 120px; }
.vchart svg { display: block; width: 100%; overflow: visible; }
.vchart text { font: 400 12px var(--sans); fill: var(--axis); font-variant-numeric: tabular-nums; }
.vchart .goal-t { fill: #3fb37f; font-size: 11px; }
.vchart .goal-t.dim { fill: var(--muted); }
.vchart .q { fill: #5a5a5a; font-size: 10.5px; }
.vchart .bl { fill: var(--label); font-size: 11.5px; }
.vchart .ax { fill: var(--muted); font-size: 11.5px; }
.vchart .tip { min-width: 150px; }
.vchart .tip .r { justify-content: flex-start; }
.vchart .tip .r .v { margin-left: auto; padding-left: 10px; }
.ax-x { margin-top: 2px; text-align: right; font-size: 11.5px; color: var(--muted); }
.bub { cursor: pointer; outline: none; }
.bub circle { transition: fill-opacity .15s; }
.bub:hover circle, .bub:focus-visible circle { fill-opacity: .5; }

/* heatmaps */
.heat { display: flex; flex-direction: column; gap: 3px; min-width: 760px; }
.heat .hrow { display: grid; grid-template-columns: minmax(180px, 1.5fr) 48px repeat(var(--n), minmax(40px, 1fr)) 60px 48px; align-items: center; gap: 3px; }
.heat.coh { min-width: 600px; }
.heat.coh .hrow { grid-template-columns: 76px 56px repeat(8, minmax(48px, 1fr)); }
.heat .hhead { font-size: 11.5px; line-height: 1.2; color: var(--th); text-align: center; padding-bottom: 4px; }
.heat .hhead span:first-child { text-align: left; }
.heat .hfoot { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--row-line); font-size: 12.5px; color: var(--muted); text-align: center; }
.heat .hfoot span:first-child { text-align: left; }
.heat .r { text-align: right; }
.heat .hl { font-size: 13px; color: var(--label); }
.hl-btn { display: flex; align-items: center; gap: 6px; min-width: 0; font: 500 13.5px/1.2 var(--sans); color: var(--ink); text-align: left; border-radius: 4px; }
.hl-btn:hover .truncate { text-decoration: underline; text-underline-offset: 3px; }
.hc { display: grid; place-items: center; height: 34px; border-radius: 6px; background: rgb(123 91 255 / var(--a)); font-size: 12.5px; color: #fff; cursor: default; transition: transform .12s; }
.hc:hover { transform: scale(1.06); }
.hc.met { box-shadow: inset 0 0 0 1.5px rgb(63 179 127 / .95); }
.hc.empty { background: none; }
.heat-key { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.heat-key i { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgb(123 91 255 / .08), rgb(123 91 255 / .8)); }
.heat-key .kmet { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; }
.heat-key .kmet b { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px rgb(63 179 127 / .95); }

/* pipeline flow */
.flow { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr; padding: 16px 12px; }
.fstage { display: flex; flex-direction: column; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(#202020, #1c1c1c); }
.fstage .k-value { margin: 10px 0 0; font-size: 28px; line-height: 23px; font-weight: 500; }
.fs-sub { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.fs-sla { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--muted); }
.fs-sla > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.farrow { display: grid; place-items: center; color: #555; }
@media (max-width: 899.98px) { .flow { grid-template-columns: 1fr; gap: 0; } .farrow { height: 22px; } .farrow svg { transform: rotate(90deg); } }
.switch { position: relative; width: 34px; height: 20px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--line-strong); background: #262626; transition: background-color .2s, border-color .2s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #8a8a8a; transition: transform .25s var(--ease-out-strong), background-color .2s; }
.switch[aria-checked="true"] { background: rgb(123 91 255 / .35); border-color: var(--brand); }
.switch[aria-checked="true"] i { transform: translateX(14px); background: #fff; }
.autos li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--row-line); font-size: 14px; color: var(--label); }

/* insight cards */
.icards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; padding: 16px 12px 28px; }
.icard { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(#1f1f1f, #1c1c1c); }
.ic-h { display: flex; align-items: center; justify-content: space-between; }
.ic-ai { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.ic-ai svg { color: var(--brand); }
.icard h3 { font-size: 15.5px; line-height: 1.3; font-weight: 500; letter-spacing: -.2px; color: var(--ink); }
.icard > p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ic-viz { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.ic-spark svg { display: block; }
.ic-f { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.ic-f .linkish { margin-left: auto; }
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini-list span { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--label); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 52px; }
.mini-bars span { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.mini-bars i { width: 100%; height: calc(var(--h) * .8); border-radius: 3px; background: rgb(123 91 255 / .45); }
.mini-bars .lo i { background: var(--negative-soft); }
.mini-bars em { font-style: normal; font-size: 10px; color: var(--muted); }

/* onboarding */
.steps5 { display: flex; gap: 4px; }
.steps5 i { width: 24px; height: 6px; border-radius: 3px; background: #2e2e2e; }
.steps5 i.on { background: var(--positive); }
.steps5 i.now { background: rgb(123 91 255 / .65); }

/* weekly analysis */
.weeknav { display: flex; align-items: center; gap: 12px; padding: 12px; }
.weeknav p { display: flex; flex-direction: column; gap: 2px; min-width: 150px; text-align: center; }
.weeknav b { font-size: 15px; font-weight: 500; color: var(--ink); }
.weeknav span { font-size: 12.5px; color: var(--muted); }
.bullets { display: flex; flex-direction: column; gap: 10px; }
.bullets li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--label); }
.bullets li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.notes { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.note { display: flex; gap: 10px; }
.note-h { display: flex; align-items: baseline; gap: 8px; }
.note-h b { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.note-h span { font-size: 11.5px; color: var(--muted); }
.note-t { margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--label); }
.note-t em { font-style: normal; font-weight: 500; color: #a594ff; }
.note.me .iav { background: linear-gradient(135deg, #7b5bff, #5b3fe0); border-color: #7b5bff; color: #fff; }
.note-in { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.note-in textarea { width: 100%; min-height: 64px; resize: vertical; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #1f1f1f; color: var(--ink); font: 400 13.5px/1.5 var(--sans); outline: none; }
.note-in textarea:focus { border-color: var(--line-strong); }
.note-in textarea::placeholder { color: var(--muted); }

/* network */
.upline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 0 14px; }
.upline .k-label { margin-right: 6px; text-transform: uppercase; letter-spacing: .48px; color: var(--section); }
.chip-l { display: inline-flex; align-items: center; gap: 6px; max-width: 230px; height: 28px; padding: 0 10px 0 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--raised); font-size: 12.5px; color: var(--label); }
.chip-l:hover { border-color: var(--line-strong); }
.tree { min-width: 640px; }
.tn { display: grid; grid-template-columns: minmax(280px, 1fr) 80px 80px 110px; align-items: center; min-height: 42px; padding: 0 16px 0 12px; border-bottom: 1px solid var(--row-line); font-size: 13.5px; color: var(--ink); }
.tn.head { min-height: 34px; font-size: 13px; color: var(--th); }
.tn.root { color: var(--label); }
.tn.root .tn-name { gap: 8px; color: var(--muted); }
.tn.l1 { background: #1c1c1c; }
.tn.hit { background: rgb(123 91 255 / .1); }
.tn-name { display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: calc((var(--lvl, 1) - 1) * 24px); }
.tn-name .dim { font-size: 12px; }
.tn-t { display: grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 5px; color: var(--muted); }
.tn-t:hover { background: var(--raised); color: var(--ink); }
.tn-t svg { transition: transform .15s ease-out; }
[aria-expanded="true"] > .tn-name .tn-t svg { transform: rotate(90deg); }
.tn-t.sp { visibility: hidden; }
.tn-leg { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 500; color: var(--ink); }
.tn-leg:hover .truncate { text-decoration: underline; text-underline-offset: 3px; }
.tn-m { text-align: right; }

/* boardplan */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; padding: 16px 12px 28px; overflow-x: auto; }
.bcol { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 10px; border: 1px solid #262626; border-radius: 10px; background: #1c1c1c; }
.bcol-h { display: flex; align-items: center; gap: 8px; padding: 2px 2px 4px; font-size: 12.5px; }
.bcol-h .r { margin-left: auto; }
.bcol-b { display: flex; flex-direction: column; gap: 8px; }
.bcard { display: flex; flex-direction: column; gap: 9px; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--raised); box-shadow: 0 0 4.6px #00000080; text-align: left; transition: border-color .15s, transform .15s var(--ease-out-strong); }
.bcard:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.bc-h { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.bc-n { font-size: 12.5px; color: var(--muted); }
.bc-n b { font-weight: 500; color: var(--ink); }
.bcard .mbar { flex: none; }
.bc-f { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.avs { display: flex; }
.avs .iav + .iav { margin-left: -6px; }
.bc-f .pin { margin-left: auto; color: var(--brand); }
.bempty { padding: 8px 4px; font-size: 12.5px; color: var(--muted); }

/* command palette */
.cmdk { position: fixed; z-index: 78; left: 50%; top: 12vh; width: min(600px, calc(100vw - 24px)); transform: translateX(-50%); border-radius: 12px; overflow: hidden; transition: opacity .2s var(--ease-out-strong), transform .2s var(--ease-out-strong); }
.cmdk.starting { opacity: 0; transform: translateX(-50%) scale(.97); }
.cmdk.closing { opacity: 0; transform: translateX(-50%) translateY(-4px); transition-duration: .12s; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--muted); }
.cmdk-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 400 15px/1.2 var(--sans); color: var(--ink); }
.cmdk-in input::placeholder { color: var(--muted); }
.cmdk-list { max-height: min(400px, 56vh); overflow-y: auto; padding: 4px 6px 8px; }
.cmdk-g { padding: 10px 10px 4px; font-size: 11.5px; letter-spacing: .48px; text-transform: uppercase; color: var(--section); }
.cmdk-it { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 7px; border: 1px solid transparent; font-size: 14px; color: var(--nav); cursor: pointer; }
.cmdk-it svg { color: var(--muted); }
.cmdk-it.on { background-image: var(--nav-surface); border-color: var(--line); color: var(--ink); }
.cmdk-it.on svg { color: var(--label); }
.cmdk-h { margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--muted); max-width: 45%; }
.cmdk-empty { padding: 28px 12px; text-align: center; font-size: 13.5px; color: var(--muted); }
.cmdk-foot { display: flex; align-items: center; gap: 16px; padding: 9px 14px; font-size: 11.5px; color: var(--muted); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 4px; }
.cmdk-foot .r { margin-left: auto; }

/* touch: invisible hit area padding for small controls */
@media (pointer: coarse) {
  .legend button, .sort, .switch, .linkish, .th .info, .dth .info, .tn-t, .cal-presets button, .mi { position: relative; }
  .legend button::after, .sort::after, .switch::after, .linkish::after, .th .info::after, .dth .info::after, .tn-t::after { content: ""; position: absolute; inset: -10px -6px; }
}
