/* ==========================================================================
   Trackflow · Team dashboard redesign — plain-language, hierarchy-first
   Visual system: DESIGN-nvidia.md (single green accent, 2px radius, hairlines,
   corner squares, no card shadows). Type: Trackflow's Geist / Geist Mono at
   Trackflow's original sizes (title 30px · section 13px · body 13px ·
   secondary 12.5px · labels 10px mono uppercase).
   ========================================================================== */

/* ---------- Tokens ---------- */
html.dark {
  --nv-canvas: #000; --nv-surface: #0b0b0b; --nv-soft: #141414; --nv-elevated: #1a1a1a;
  --nv-hairline: #262626; --nv-hairline-strong: #5e5e5e;
  --nv-ink: #fff; --nv-body: #e6e6e6; --nv-mute: rgba(255,255,255,.72); --nv-stone: #8f8f8f; --nv-ash: #5a5a5a;
  --nv-green: #76b900; --nv-green-press: #5a8d00; --nv-green-text: #76b900; --nv-on-green: #000; --nv-green-tint: rgba(118,185,0,.12);
  --nv-good: #76b900; --nv-warn: #ef9100; --nv-crit: #ff4545;
  --nv-warn-tint: rgba(239,145,0,.12); --nv-crit-tint: rgba(229,32,32,.14);
  --nv-nolog: #c2410c; --nv-nolog-2: #8f2f08; --nv-track: #1f1f1f;

  --bg-base: #000; --bg-surface: #050505; --bg-elevated: #121212; --bg-overlay: #1a1a1a; --bg-hover: #141414;
  --border-subtle: #1c1c1c; --border-default: #262626; --border-strong: #5e5e5e;
  --fg-base: #fff; --fg-muted: rgba(255,255,255,.7); --fg-subtle: #8f8f8f; --fg-faint: #858585;
  --accent-primary: #76b900; --accent-primary-hover: #84cc00; --accent-primary-fg: #000;
  --accent-primary-tint: rgba(118,185,0,.12); --accent-primary-line: rgba(118,185,0,.4);
  --agent-accent: #76b900; --agent-accent-hover: #84cc00; --agent-accent-fg: #000;
  --agent-accent-tint: rgba(118,185,0,.08); --agent-accent-line: rgba(118,185,0,.35); --agent-accent-glow: rgba(118,185,0,.2);
}
html.light {
  --nv-canvas: #f3f4f0; --nv-surface: #ffffff; --nv-soft: #f7f8f4; --nv-elevated: #eceee8;
  --nv-hairline: #e0e2db; --nv-hairline-strong: #8b8e86;
  --nv-ink: #0b0c0a; --nv-body: #1c1d1a; --nv-mute: #464842; --nv-stone: #64665f; --nv-ash: #a3a59e;
  --nv-green: #76b900; --nv-green-press: #5a8d00; --nv-green-text: #3f8500; --nv-on-green: #000; --nv-green-tint: rgba(118,185,0,.14);
  --nv-good: #3f8500; --nv-warn: #b85400; --nv-crit: #d41c1c;
  --nv-warn-tint: rgba(223,101,0,.10); --nv-crit-tint: rgba(229,32,32,.08);
  --nv-nolog: #c2410c; --nv-nolog-2: #e8774a; --nv-track: #e8eae3;

  --bg-base: #f3f4f0; --bg-surface: #fafbf8; --bg-elevated: #fff; --bg-overlay: #eceee8; --bg-hover: #ebede6;
  --border-subtle: #e6e8e1; --border-default: #dcdfd7; --border-strong: #8b8e86;
  --fg-base: #0b0c0a; --fg-muted: #1c1d1a; --fg-subtle: #5f615a; --fg-faint: #6b6d66;
  --accent-primary: #76b900; --accent-primary-hover: #5a8d00; --accent-primary-fg: #000;
  --accent-primary-tint: rgba(118,185,0,.14); --accent-primary-line: rgba(118,185,0,.5);
  --agent-accent: #3a7a00; --agent-accent-hover: #336b00; --agent-accent-fg: #000;
  --agent-accent-tint: rgba(118,185,0,.10); --agent-accent-line: rgba(118,185,0,.45); --agent-accent-glow: rgba(118,185,0,.2);
}
html { --radius: 2px; --radius-sm: 2px; --radius-md: 2px; --radius-lg: 2px; --radius-xl: 2px; --radius-2xl: 2px; }
[data-slot="sidebar-inner"] *, header * { border-radius: 2px; }
[data-slot="sidebar-inner"] .rounded-full, header .rounded-full { border-radius: 9999px; }

/* ---------- Base ---------- */
#main-content.nv { position: relative; padding: 24px 28px; background: var(--nv-canvas); color: var(--nv-body); font-family: var(--font-geist-sans), Arial, sans-serif; font-size: 13px; }
.nv * { box-sizing: border-box; }
.nv button { font-family: inherit; cursor: pointer; }
.nv :focus-visible { outline: 2px solid var(--nv-green); outline-offset: 2px; }
.mono { font-family: var(--font-geist-mono), ui-monospace, monospace; }
.num { font-variant-numeric: tabular-nums; }
.mute { color: var(--nv-mute); } .faint { color: var(--nv-stone); }
.crit-t { color: var(--nv-crit); } .warn-t { color: var(--nv-warn); } .good-t { color: var(--nv-good); }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; }

/* Trackflow type scale */
.t-title { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.025em; color: var(--nv-ink); }
.t-sec { font-size: 13px; font-weight: 600; letter-spacing: -.01em; color: var(--nv-ink); }
.t-label { font-family: var(--font-geist-mono); font-size: 10px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--nv-stone); }
.t-meta { font-size: 13px; color: var(--nv-stone); }
.t-sm { font-size: 12.5px; } .t-xs { font-size: 11.5px; }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 2px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; background: none; color: var(--nv-ink); transition: background .12s, border-color .12s; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn-xs { height: 24px; padding: 0 9px; font-size: 11.5px; }
.btn-primary { background: var(--nv-green); color: var(--nv-on-green); }
.btn-primary:hover { background: #84cc00; } .btn-primary:active { background: var(--nv-green-press); }
.btn-primary:disabled { background: var(--nv-soft); color: var(--nv-ash); cursor: not-allowed; }
.btn-outline { border-color: var(--nv-green); }
.btn-outline:hover { background: var(--nv-green-tint); }
.btn-quiet { border-color: var(--nv-hairline); }
.btn-quiet:hover { border-color: var(--nv-hairline-strong); }
.btn-link { color: var(--nv-green-text); padding: 0; height: auto; border: 0; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-sent { border-color: var(--nv-hairline); color: var(--nv-green-text); cursor: default; }

.seg { display: inline-flex; border: 1px solid var(--nv-hairline); border-radius: 2px; padding: 2px; gap: 2px; }
.seg button { height: 22px; padding: 0 10px; border-radius: 2px; font-size: 12px; font-weight: 500; color: var(--nv-mute); border: 0; background: none; display: inline-flex; align-items: center; gap: 6px; }
.seg button:hover { color: var(--nv-ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--nv-ink); color: var(--nv-canvas); font-weight: 600; }
.seg .count { font-family: var(--font-geist-mono); font-size: 10px; opacity: .75; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 26px; padding: 0 10px; border: 1px solid var(--nv-hairline); border-radius: 2px; background: none; color: var(--nv-mute); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--nv-ink); border-color: var(--nv-hairline-strong); }
.chip[aria-pressed="true"] { background: var(--nv-ink); border-color: var(--nv-ink); color: var(--nv-canvas); font-weight: 600; }
.chip .count { font-family: var(--font-geist-mono); font-size: 10px; opacity: .7; }
.input { height: 28px; border: 1px solid var(--nv-hairline); border-radius: 2px; background: var(--nv-canvas); color: var(--nv-ink); padding: 0 8px 0 28px; font-size: 12px; font-family: inherit; outline: none; }
.input:focus, textarea:focus { border-color: var(--nv-green); box-shadow: inset 0 0 0 1px var(--nv-green); }
.search { position: relative; display: inline-block; }
.search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 13px; height: 13px; color: var(--nv-stone); }

/* Status pill — words + icon, never color alone */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 2px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill svg { width: 11px; height: 11px; }
.pill.good { color: var(--nv-good); background: var(--nv-green-tint); }
.pill.warn { color: var(--nv-warn); background: var(--nv-warn-tint); }
.pill.crit { color: var(--nv-crit); background: var(--nv-crit-tint); }
.pill.neutral { color: var(--nv-mute); background: var(--nv-soft); }

.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-family: var(--font-geist-mono); font-size: 9.5px; font-weight: 600; background: var(--nv-elevated); color: var(--nv-ink); border: 1px solid var(--nv-hairline); }
.av-sm { width: 20px; height: 20px; font-size: 8.5px; }
.av-md { width: 34px; height: 34px; font-size: 11px; }

/* ---------- Logged vs not logged (shared) ---------- */
.lg-bar { display: flex; gap: 2px; height: 8px; }
.lg-bar i { display: block; height: 100%; }
.lg-bar .lg { background: var(--nv-green); border-radius: 4px 0 0 4px; }
.lg-bar .nl { background: repeating-linear-gradient(-45deg, var(--nv-nolog) 0 4px, var(--nv-nolog-2) 4px 6px); border-radius: 0 4px 4px 0; }
.lg-bar i:only-child { border-radius: 4px; }
.lg-bar.empty { background: var(--nv-track); border-radius: 4px; }
.lg-key { display: flex; gap: 14px; font-size: 12px; color: var(--nv-mute); margin-top: 7px; flex-wrap: wrap; }
.lg-key span { display: inline-flex; align-items: center; gap: 6px; }
.lg-key b { color: var(--nv-ink); font-weight: 600; }
.sw { width: 10px; height: 10px; display: inline-block; border-radius: 1px; flex: none; }
.sw.lg { background: var(--nv-green); }
.sw.nl { background: repeating-linear-gradient(-45deg, var(--nv-nolog) 0 3px, var(--nv-nolog-2) 3px 4.5px); }

/* ---------- Page header ---------- */
.nv-tabs { margin-bottom: 18px; }
.nv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nv-head .meta { margin-top: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nv-head .meta b { color: var(--nv-mute); font-weight: 500; }
.dot { width: 3px; height: 3px; background: var(--nv-stone); display: inline-block; }
.sample { font-family: var(--font-geist-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--nv-stone); border: 1px dashed var(--nv-hairline-strong); padding: 1px 6px; border-radius: 2px; }

/* ---------- Sections (hierarchy through rhythm) ---------- */
.sec { margin-top: 44px; }
.sec-first { margin-top: 28px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-h .q { display: flex; flex-direction: column; gap: 4px; }
.sec-h .q .t-sec { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.sec-h .q .t-sec::before { content: ""; width: 8px; height: 8px; background: var(--nv-green); display: inline-block; }
.sec-h .help { font-size: 12.5px; color: var(--nv-stone); }
.sec-h .tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }

.box { position: relative; background: var(--nv-surface); border: 1px solid var(--nv-hairline); border-radius: 2px; }
.box-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--nv-hairline); font-size: 12px; color: var(--nv-stone); }

/* ---------- Level 1: Needs your attention ---------- */
.attn { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.attn-c { position: relative; background: var(--nv-surface); border: 1px solid var(--nv-hairline-strong); border-radius: 2px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 168px; }
.attn-c::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; background: var(--nv-green); }
.attn-c .top { display: flex; align-items: center; gap: 8px; }
.attn-c .ic { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 2px; }
.attn-c .ic svg { width: 15px; height: 15px; }
.attn-c .ic.warn { color: var(--nv-warn); background: var(--nv-warn-tint); }
.attn-c .ic.crit { color: var(--nv-crit); background: var(--nv-crit-tint); }
.attn-c .big { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.025em; color: var(--nv-ink); }
.attn-c .say { font-size: 13px; color: var(--nv-body); line-height: 1.45; }
.attn-c .say b { font-weight: 600; color: var(--nv-ink); }
.attn-c .act { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quick { display: flex; gap: 24px; margin-top: 14px; font-size: 12.5px; color: var(--nv-stone); flex-wrap: wrap; align-items: center; }
.quick b { color: var(--nv-ink); font-weight: 600; }
.quick .meter { width: 120px; height: 4px; background: var(--nv-track); display: inline-block; vertical-align: middle; margin: 0 8px; }
.quick .meter i { display: block; height: 100%; background: var(--nv-green); }

/* ---------- Level 2: Projects ---------- */
.person-strip { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--nv-hairline); background: var(--nv-surface); margin-bottom: 14px; flex-wrap: wrap; }
.person-strip .nm { font-size: 13px; font-weight: 600; color: var(--nv-ink); }
.person-strip .rl { font-size: 12px; color: var(--nv-stone); }
.person-strip .facts { display: flex; gap: 18px; font-size: 12.5px; color: var(--nv-mute); margin-left: auto; flex-wrap: wrap; align-items: center; }
.person-strip .facts b { color: var(--nv-ink); font-weight: 600; }
.proj-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.pc { position: relative; background: var(--nv-surface); border: 1px solid var(--nv-hairline); border-radius: 2px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pc:hover { border-color: var(--nv-hairline-strong); }
.pc .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pc .hd > div { min-width: 0; }
.pc .nm { font-size: 13px; font-weight: 600; color: var(--nv-ink); }
.pc .sp { font-size: 11.5px; color: var(--nv-stone); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc .blk { display: flex; flex-direction: column; gap: 6px; }
.pc .blk .row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--nv-stone); }
.pc .blk .row b { color: var(--nv-ink); font-size: 13px; font-weight: 600; }
.pc .blk .row .big { font-size: 20px; font-weight: 600; color: var(--nv-ink); letter-spacing: -.02em; }
.prog { height: 8px; background: var(--nv-track); border-radius: 4px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--nv-green); }
.pc .when { font-size: 12px; color: var(--nv-mute); display: flex; gap: 6px; align-items: center; }
.pc .when svg { width: 12px; height: 12px; color: var(--nv-stone); flex: none; }
.pc .when.crit { color: var(--nv-crit); } .pc .when.crit svg { color: var(--nv-crit); }
.pc .div { height: 1px; background: var(--nv-hairline); }
.pc .nosprint { font-size: 12px; color: var(--nv-stone); line-height: 1.5; }

/* Compare view */
.cmp { padding: 6px 18px; }
.cmp-row { display: grid; grid-template-columns: 150px minmax(0,1fr) 190px; gap: 16px; align-items: center; height: 42px; border-bottom: 1px solid var(--nv-hairline); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row .nm { font-size: 13px; font-weight: 500; color: var(--nv-ink); }
.cmp-row .lg-bar { height: 14px; }
.cmp-row .v { font-size: 12px; color: var(--nv-mute); text-align: right; white-space: nowrap; }
.cmp-row .v b { color: var(--nv-ink); font-weight: 600; }

/* Combobox */
.combo { position: relative; }
.combo-btn { height: 28px; min-width: 210px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border: 1px solid var(--nv-hairline); border-radius: 2px; background: var(--nv-canvas); color: var(--nv-ink); text-align: left; font-size: 12px; font-weight: 600; }
.combo-btn:hover { border-color: var(--nv-hairline-strong); }
.combo-btn[aria-expanded="true"] { border-color: var(--nv-green); }
.combo-btn .pre { color: var(--nv-stone); font-weight: 500; }
.combo-btn .lbl { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-btn svg { width: 14px; height: 14px; color: var(--nv-stone); }
.combo-pop { position: absolute; z-index: 40; top: calc(100% + 4px); right: 0; width: 300px; background: var(--nv-surface); border: 1px solid var(--nv-hairline-strong); border-radius: 2px; box-shadow: 0 12px 32px -8px rgba(0,0,0,.5); display: none; }
.combo-pop.open { display: block; }
.combo-pop input { width: 100%; height: 34px; border: 0; border-bottom: 1px solid var(--nv-hairline); background: transparent; padding: 0 10px; color: var(--nv-ink); font-size: 12.5px; outline: none; font-family: inherit; }
.combo-list { max-height: 300px; overflow: auto; padding: 4px; }
.combo-opt { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 2px; cursor: pointer; font-size: 12.5px; }
.combo-opt:hover, .combo-opt.act { background: var(--nv-soft); }
.combo-opt[aria-selected="true"] { background: var(--nv-green-tint); }
.combo-opt .nm { flex: 1; color: var(--nv-ink); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-opt .sub { font-size: 11px; color: var(--nv-stone); white-space: nowrap; }
.combo-group { padding: 8px 6px 4px; }

/* ---------- Level 3: reminders + late/stuck ---------- */
.lst { list-style: none; margin: 0; padding: 0; }
.li { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--nv-hairline); }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--nv-soft); }
.li .nm { font-size: 13px; font-weight: 500; color: var(--nv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .sub { font-size: 12px; color: var(--nv-stone); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .sub b { font-weight: 600; }
.li .ic { width: 26px; height: 26px; border-radius: 2px; display: grid; place-items: center; }
.li .ic svg { width: 13px; height: 13px; }
.li .ic.crit { color: var(--nv-crit); background: var(--nv-crit-tint); }
.li .ic.warn { color: var(--nv-warn); background: var(--nv-warn-tint); }
.li .r { display: flex; align-items: center; gap: 8px; }
.box-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--nv-hairline); font-size: 12.5px; color: var(--nv-mute); }
.box-top b { color: var(--nv-ink); font-weight: 600; }
.compose { padding: 14px 18px; border-top: 1px solid var(--nv-hairline); background: var(--nv-soft); display: flex; flex-direction: column; gap: 10px; }
.compose textarea { width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--nv-hairline); border-radius: 2px; background: var(--nv-canvas); color: var(--nv-ink); padding: 8px 10px; font-family: inherit; font-size: 12.5px; line-height: 1.5; outline: none; }
.compose .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.urg { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 2px; }
.urg.p0 { color: var(--nv-crit); background: var(--nv-crit-tint); }
.urg.p1 { color: var(--nv-warn); background: var(--nv-warn-tint); }

/* ---------- Level 4: Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.tc { position: relative; background: var(--nv-surface); border: 1px solid var(--nv-hairline); border-radius: 2px; padding: 18px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tc:hover { border-color: var(--nv-hairline-strong); }
.tc .top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.tc .top > div { min-width: 0; }
.tc .nm { font-size: 13px; font-weight: 600; color: var(--nv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc .rl { font-size: 12px; color: var(--nv-stone); margin-top: 1px; }
.tc .top .pill { margin-left: auto; }
.tc .lbl-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--nv-stone); margin-bottom: 8px; }
.tc .lbl-row b { color: var(--nv-ink); font-weight: 600; font-size: 13px; }
.tc .facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--nv-hairline); padding-top: 12px; }
.tc .facts > div { display: flex; flex-direction: column; gap: 2px; }
.tc .facts .v { font-size: 17px; font-weight: 600; color: var(--nv-ink); letter-spacing: -.01em; }
.tc .facts .v.zero { color: var(--nv-stone); } .tc .facts .v.crit { color: var(--nv-crit); }
.tc .facts .l { font-size: 12px; color: var(--nv-stone); }
.tc .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.more { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 16px; font-size: 12px; color: var(--nv-stone); }

/* ---------- Level 5: Activity ---------- */
.ev { display: grid; grid-template-columns: 26px minmax(0,1fr) auto; gap: 12px; align-items: start; padding: 12px 18px; border-bottom: 1px solid var(--nv-hairline); }
.ev:last-child { border-bottom: 0; }
.ev .ic { width: 26px; height: 26px; border: 1px solid var(--nv-hairline); border-radius: 2px; display: grid; place-items: center; color: var(--nv-mute); }
.ev .ic svg { width: 13px; height: 13px; }
.ev .ic.time { color: var(--nv-green-text); border-color: var(--nv-green); }
.ev .line { font-size: 13px; color: var(--nv-mute); line-height: 1.5; }
.ev .line b { color: var(--nv-ink); font-weight: 600; }
.ev .line q { color: var(--nv-ink); quotes: "“" "”"; }
.ev .note { font-size: 12px; color: var(--nv-stone); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .tm { font-size: 11.5px; color: var(--nv-stone); white-space: nowrap; padding-top: 2px; }
.act-cols { display: grid; grid-template-columns: 1fr 1fr; }
.act-cols > .lst:first-child { border-right: 1px solid var(--nv-hairline); }
.act-cols > .lst:first-child .ev:nth-last-child(1) { border-bottom: 0; }

/* ---------- Tooltip / toast ---------- */
.tip { position: fixed; z-index: 100; pointer-events: none; background: var(--nv-elevated); color: var(--nv-ink); border: 1px solid var(--nv-hairline-strong); border-radius: 2px; padding: 8px 10px; font-size: 12px; min-width: 160px; display: none; }
html.light .tip { background: #fff; }
.tip .tt { font-weight: 600; margin-bottom: 4px; }
.tip .tr { display: flex; justify-content: space-between; gap: 14px; color: var(--nv-stone); line-height: 1.7; align-items: center; }
.tip .tr span { display: inline-flex; gap: 6px; align-items: center; }
.tip .tr b { color: var(--nv-ink); font-weight: 600; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; background: var(--nv-elevated); border: 1px solid var(--nv-green); color: var(--nv-ink); padding: 10px 14px; border-radius: 2px; font-size: 12.5px; min-width: 240px; transform: translateY(16px); opacity: 0; transition: all .2s; pointer-events: none; }
html.light .toast { background: #fff; }
.toast.show { transform: none; opacity: 1; }
.toast b { display: block; font-weight: 600; }
.toast span { color: var(--nv-stone); font-size: 12px; }
.empty { padding: 28px; text-align: center; color: var(--nv-stone); font-size: 12.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1300px) { .proj-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 1050px) { .attn, .grid2 { grid-template-columns: 1fr; } .act-cols { grid-template-columns: 1fr; } .act-cols > .lst:first-child { border-right: 0; } }
.attn-c .act .good-t { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---------- Workload (chart + active sprint) ---------- */
.wl-body { padding: 18px; }
.wl-stats { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); border-bottom: 1px solid var(--nv-hairline); margin: -18px -18px 18px; }
.wl-stats > div { padding: 14px 18px; border-right: 1px solid var(--nv-hairline); }
.wl-stats > div:last-child { border-right: 0; }
.wl-stats .v { font-size: 17px; font-weight: 600; color: var(--nv-ink); margin-top: 3px; letter-spacing: -.01em; }
.wl-stats .v.warn { color: var(--nv-nolog); } .wl-stats .v.crit { color: var(--nv-crit); }
html.dark .wl-stats .v.warn { color: #f0703c; }
.wl-head, .hbar-row, .axis { display: grid; grid-template-columns: 140px minmax(0,1fr) 72px 270px; gap: 16px; }
.wl-head { padding-bottom: 8px; border-bottom: 1px solid var(--nv-hairline); }
.hbar-row { align-items: center; height: 40px; border-bottom: 1px solid var(--nv-hairline); }
.hbar-row:hover { background: var(--nv-soft); }
.hbar-row .pn { font-size: 13px; font-weight: 500; color: var(--nv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 2px; }
.hbar-track { position: relative; height: 14px; }
.hbar-track .grid { position: absolute; top: -13px; bottom: -13px; width: 1px; background: var(--nv-hairline); opacity: .7; }
.hbar-fill { position: absolute; top: 0; bottom: 0; left: 0; }
.hbar-fill .lg-bar { height: 14px; }
.hbar-fill .lg-bar .lg { border-radius: 0; }
.hbar-fill .lg-bar .nl { border-radius: 0 2px 2px 0; }
.hbar-fill .lg-bar i:only-child { border-radius: 0 2px 2px 0; }
.hbar-row .vals { font-family: var(--font-geist-mono); font-size: 11.5px; color: var(--nv-stone); text-align: right; white-space: nowrap; }
.hbar-row .vals b { color: var(--nv-ink); font-weight: 500; }
.axis { margin-top: 6px; }
.axis .ticks { position: relative; height: 12px; font-family: var(--font-geist-mono); font-size: 10px; color: var(--nv-stone); }
.axis .ticks span { position: absolute; transform: translateX(-50%); }
.spc { display: grid; grid-template-columns: minmax(0,1fr) 36px auto; gap: 10px; align-items: center; cursor: default; }
.spc .pct { font-family: var(--font-geist-mono); font-size: 11.5px; color: var(--nv-ink); text-align: right; }
.spc .pill { justify-self: start; }
.segbar { display: flex; gap: 2px; height: 6px; min-width: 0; }
.segbar i { display: block; height: 100%; }
.segbar i:first-child { border-radius: 3px 0 0 3px; }
.segbar i:last-child { border-radius: 0 3px 3px 0; }
.segbar i:only-child { border-radius: 3px; }
.s-done { background: var(--nv-green); }
.s-review { background: #b9d97a; }
html.light .s-review { background: #a8cf5a; }
.s-prog { background: #8a8a8a; }
.s-todo { background: var(--nv-track); box-shadow: inset 0 0 0 1px var(--nv-hairline); }
.s-blocked { background: var(--nv-crit); }
.table-plain { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table-plain th { text-align: left; padding: 8px; border-bottom: 1px solid var(--nv-hairline); }
.table-plain td { padding: 9px 8px; border-bottom: 1px solid var(--nv-hairline); }
.table-plain .n { text-align: right; font-variant-numeric: tabular-nums; }
.ev .av { margin-top: 1px; }

/* ---------- v6: calmer sprint column, people, attention cards ---------- */
.wl-head, .hbar-row, .axis { grid-template-columns: 140px minmax(0,1fr) 72px 118px 220px; }
.hbar-row { height: 58px; }
.hbar-track .grid { top: -22px; bottom: -22px; }
.ppl { display: flex; align-items: center; }
.stack { display: inline-flex; align-items: center; }
.stack .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--nv-surface); }
.stack .av:first-child { margin-left: 0; }
.stack .plus { font-size: 8.5px; color: var(--nv-mute); background: var(--nv-soft); }
.spc { display: flex; flex-direction: column; align-items: stretch; gap: 5px; grid-template-columns: none; cursor: default; min-width: 0; }
.spc .l1 { display: flex; justify-content: space-between; font-size: 12px; color: var(--nv-mute); }
.spc .l1 b { color: var(--nv-ink); font-weight: 600; }
.spc .l2 { font-size: 11.5px; color: var(--nv-stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thin { height: 3px; background: var(--nv-track); border-radius: 2px; overflow: hidden; }
.thin i { display: block; height: 100%; background: var(--nv-green); }

.attn-c { gap: 14px; padding: 20px 22px 18px; }
.attn-c .hd .t-label { display: inline-flex; align-items: center; gap: 7px; }
.sq { width: 7px; height: 7px; display: inline-block; }
.sq.warn { background: var(--nv-nolog); } .sq.crit { background: var(--nv-crit); }
.attn-c .head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.attn-c .head .big { font-size: 30px; line-height: 36px; }
.attn-c .head .say { font-size: 13px; color: var(--nv-mute); }
.attn-c .head .say b { color: var(--nv-ink); font-weight: 600; }
.attn-c .who { display: flex; align-items: center; gap: 10px; }
.attn-c .who .stack .av { width: 24px; height: 24px; font-size: 9px; }
.attn-c .mini { border-top: 1px solid var(--nv-hairline); }
.attn-c .mini .r { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--nv-hairline); font-size: 12.5px; }
.attn-c .mini .r2 { grid-template-columns: minmax(0,1fr) auto auto; }
.attn-c .mini .t { color: var(--nv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.attn-c .mini .t b { font-weight: 600; }
.attn-c .mini .t .thin { margin-top: 6px; max-width: 160px; }
.attn-c .mini .v { font-size: 12px; white-space: nowrap; font-weight: 500; }
.attn-c .act { padding-top: 2px; }
.ppl .stack .av { width: 24px; height: 24px; font-size: 9px; margin-left: -5px; } .ppl .stack .av:first-child { margin-left: 0; }

/* ---------- v7: glance panel, colored avatars, one-line sprint ---------- */
.glance { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); background: var(--nv-surface); border: 1px solid var(--nv-hairline); border-radius: 2px; position: relative; }
.gl { padding: 20px 20px 16px; border-right: 1px solid var(--nv-hairline); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gl:last-child { border-right: 0; }
.gl .t-label { display: inline-flex; align-items: center; gap: 7px; }
.gl .gv { font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--nv-ink); }
.gl .gv small { font-size: 12px; font-weight: 500; color: var(--nv-stone); margin-left: 6px; letter-spacing: 0; }
.gl .lg-bar, .gl .thin { height: 6px; }
.gl .thin { border-radius: 3px; }
.gl-lines { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--nv-stone); line-height: 1.4; }
.gl-lines b { color: var(--nv-ink); font-weight: 600; }
.gl-lines b.crit-t { color: var(--nv-crit); } .gl-lines b.warn-t { color: var(--nv-nolog); }
html.dark .gl-lines b.warn-t { color: #f0703c; }
.gl-act { margin-top: auto; padding-top: 6px; font-size: 12px; }
.gl-act .good-t { font-weight: 600; }
.sq.good { background: var(--nv-green); }
@media (max-width: 1300px) { .glance { grid-template-columns: repeat(3, minmax(0,1fr)); } .gl:nth-child(3) { border-right: 0; } .gl:nth-child(-n+3) { border-bottom: 1px solid var(--nv-hairline); } }

.av.c { color: #fff; border-color: transparent; }
.stack .av.c { box-shadow: 0 0 0 2px var(--nv-surface); }

.wl-head, .hbar-row, .axis { grid-template-columns: 140px minmax(0,1fr) 72px 110px 160px; }
.hbar-row { height: 44px; }
.hbar-track .grid { top: -15px; bottom: -15px; }
.spl { font-size: 12.5px; color: var(--nv-mute); white-space: nowrap; cursor: default; }
.spl b { color: var(--nv-ink); font-weight: 600; }

/* ---------- v8 · quieter: color only where it means something ---------- */
/* Neutral avatars */
.nv .av { background: var(--nv-elevated); color: var(--nv-mute); border: 1px solid var(--nv-hairline); box-shadow: none; }
html.light .nv .av { background: #eceee8; color: #3a3c36; border-color: #dcdfd7; }

/* Activity: text-first rows */
.ev { grid-template-columns: minmax(0,1fr) auto; }

/* Team load label: plain text, red only when overloaded */
.load { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--nv-stone); white-space: nowrap; margin-left: auto; }
.load.crit { color: var(--nv-crit); font-weight: 600; }
.sq.mute { background: var(--nv-ash); }
.nl-t { color: #c2410c; }
html.dark .nl-t { color: #f0703c; }

/* Workload: people as a count, tasks action */
.wl-head, .hbar-row, .axis { grid-template-columns: 140px minmax(0,1fr) 72px 86px 150px 104px; }
.ppl { font-size: 12.5px; color: var(--nv-stone); cursor: default; white-space: nowrap; }
.ta { display: flex; justify-content: flex-end; }
.tbtn { border-color: var(--nv-hairline); color: var(--nv-mute); gap: 4px; padding: 0 8px 0 10px; }
.tbtn:hover { border-color: var(--nv-hairline-strong); color: var(--nv-ink); }
.tbtn svg { width: 13px; height: 13px; transition: transform .2s cubic-bezier(.25,1,.5,1); }
.tbtn[aria-expanded="true"] { color: var(--nv-ink); border-color: var(--nv-hairline-strong); }
.tbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.hbar-row.open { background: var(--nv-soft); border-bottom-color: transparent; }

/* Inline project task list */
.tp { border-top: 1px solid var(--nv-hairline); border-bottom: 1px solid var(--nv-hairline); background: transparent; margin: 0 0 12px; }
.tp-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--nv-hairline); flex-wrap: wrap; }
.tp-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tp-t th { text-align: left; padding: 8px 16px; border-bottom: 1px solid var(--nv-hairline); font-weight: 500; }
.tp-t td { padding: 9px 16px; border-bottom: 1px solid var(--nv-hairline); color: var(--nv-mute); white-space: nowrap; }
.tp-t td:first-child { white-space: normal; }
.tp-t .tt { color: var(--nv-ink); font-weight: 500; margin-left: 6px; }
.tp-t tr:hover td { background: var(--nv-soft); }
.tp-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 16px; font-size: 12px; color: var(--nv-stone); }
.tp-row td { padding: 0 8px 10px !important; border-bottom: 1px solid var(--nv-hairline); }
.tp-row:hover td { background: transparent !important; }
.combo-opt[aria-selected="true"] .nm { font-weight: 600; }

/* ---------- v9 ---------- */
/* Colored avatars (People column, task assignees) */
.nv .av.avc { color: #fff; border-color: transparent; }
.ppl .stack .av { width: 24px; height: 24px; font-size: 9px; margin-left: -6px; box-shadow: 0 0 0 2px var(--nv-surface); }
.ppl .stack .av:first-child { margin-left: 0; }
.ppl .stack .plus { background: var(--nv-soft); color: var(--nv-mute); border: 1px solid var(--nv-hairline); font-size: 9px; }
.hbar-row.open .ppl .stack .av { box-shadow: 0 0 0 2px var(--nv-soft); }
.asg { display: inline-flex; align-items: center; gap: 8px; color: var(--nv-body); }
/* Activity: avatar + text */
.ev { grid-template-columns: 26px minmax(0,1fr) auto; }
/* Glance: identical structure per column */
.gl { gap: 10px; }
.gbar { height: 6px; background: var(--nv-track); border-radius: 3px; overflow: hidden; display: flex; }
.gbar > i { display: block; height: 100%; border-radius: 3px; }
.gbar > i.g { background: var(--nv-green); }
.gbar > i.r { background: var(--nv-crit); }
.gbar .lg-bar { height: 6px; width: 100%; }
.gl-line { font-size: 12.5px; color: var(--nv-stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-line b { color: var(--nv-ink); font-weight: 600; }
.gl-line b.crit-t { color: var(--nv-crit); } .gl-line b.warn-t { color: #c2410c; }
html.dark .gl-line b.warn-t { color: #f0703c; }
.gl-act { padding-top: 2px; }
.wl-head, .hbar-row, .axis { grid-template-columns: 140px minmax(0,1fr) 72px 100px 150px 104px; }
/* Sidebar "Workspace" group: Trackflow fades it to 65%, which drops its label below 4.5:1. Keep it readable. */
[data-slot="sidebar-inner"] .opacity-65 { opacity: 1; }
[data-slot="sidebar-inner"] .opacity-65 a, [data-slot="sidebar-inner"] .opacity-65 button { color: var(--fg-subtle); }

/* ---------- Light mode polish: layered surfaces (tinted canvas, white cards, white controls) ---------- */
html.light .nv .av.avc { color: #fff; border-color: transparent; }
html.light .ppl .stack .plus { background: #f7f8f4; color: #464842; border-color: #dcdfd7; }
html.light .input, html.light .select, html.light .combo-btn,
html.light .seg, html.light .chip, html.light .btn-quiet, html.light .tbtn { background: #fff; }
html.light .seg button[aria-selected="true"], html.light .seg button[aria-pressed="true"],
html.light .chip[aria-pressed="true"] { background: var(--nv-ink); color: #fff; border-color: var(--nv-ink); }
html.light .combo-pop { background: #fff; box-shadow: 0 12px 32px -12px rgba(28,30,24,.18); }
html.light .tp { background: var(--nv-soft); }
html.light .tp-t tr:hover td { background: #fff; }
html.light .sample { border-color: #b9bcb3; color: #5f615a; }
html.light .wl-stats, html.light .box-top, html.light .box-f, html.light .tp-h { background: var(--nv-soft); }
html.light .tp-h { background: #fff; }
html.light .gl:hover { background: var(--nv-soft); }

/* ---------- Activity: columns (person · update · project · type · when) ---------- */
.ev-head, .ev.ev-row { display: grid; grid-template-columns: 190px minmax(0,1fr) 170px 150px 84px; gap: 16px; align-items: center; }
.ev-head { padding: 10px 18px; border-bottom: 1px solid var(--nv-hairline); }
html.light .ev-head { background: var(--nv-soft); }
.ev.ev-row { padding: 12px 18px; }
.ev-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ev-who span { font-size: 13px; font-weight: 600; color: var(--nv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-what { min-width: 0; }
.ev-what .line { font-size: 13px; }
.ev-proj { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--nv-body); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psq { width: 8px; height: 8px; border-radius: 1px; flex: none; }
.typ { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1px solid var(--nv-hairline); border-radius: 2px; background: var(--nv-soft); font-size: 11.5px; font-weight: 500; color: var(--nv-mute); white-space: nowrap; }
.typ.typ-time { color: var(--nv-green-text); background: var(--nv-green-tint); border-color: transparent; }
.ev.ev-row .tm { text-align: right; padding-top: 0; }
@media (max-width: 1100px) {
  .ev-head { display: none; }
  .ev.ev-row { grid-template-columns: minmax(0,1fr) auto; row-gap: 6px; }
  .ev-who { grid-column: 1; } .ev.ev-row .tm { grid-column: 2; grid-row: 1; }
  .ev-what { grid-column: 1 / -1; }
  .ev-proj { grid-column: 1; } .ev-type { grid-column: 2; }
}



/* ---- Team cards v12: projects · tasks · hours, then logged vs not logged ---- */
.tc4 { padding: 14px; gap: 12px; }
.tc4 .top { gap: 10px; }
.tc4 .tc-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--nv-hairline); border-radius: 2px; }
.tc4 .tc-stats > div { padding: 8px 10px; display: flex; flex-direction: column-reverse; gap: 1px; }
.tc4 .tc-stats > div + div { border-left: 1px solid var(--nv-hairline); }
.tc4 .tc-stats dt { font-size: 12px; color: var(--nv-stone); }
.tc4 .tc-stats dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--nv-ink); letter-spacing: -.01em; }
.tc4 .tc-log { display: flex; flex-direction: column; gap: 6px; }
.tc4 .tc-log-h { display: flex; justify-content: space-between; font-size: 12px; color: var(--nv-mute); }
.tc4 .tc-log-h span { display: inline-flex; align-items: center; gap: 6px; }
.tc4 .tc-log-h i { width: 6px; height: 6px; border-radius: 50%; }
.tc4 i.ok { background: var(--nv-good); }
.tc4 i.bad { background: var(--nv-crit); }
.tc4 .tc-bar { display: flex; gap: 2px; height: 4px; background: var(--nv-track); border-radius: 2px; overflow: hidden; }
.tc4 .tc-bar i { display: block; height: 100%; min-width: 2px; }
.tc4 .tc-foot { font-size: 12px; color: var(--nv-ink); border-top: 1px solid var(--nv-hairline); padding-top: 10px; }

/* ---- Team cards v13: same logged / not-logged encoding as Workload (green · striped orange-red) ---- */
.tc4 .tc-bar { height: 5px; }
.tc4 .tc-bar i.ok { background: var(--nv-green); }
.tc4 .tc-bar i.bad { background: repeating-linear-gradient(-45deg, var(--nv-nolog) 0 3px, var(--nv-nolog-2) 3px 4.5px); }
.tc4 .tc-log-h i { width: 8px; height: 8px; border-radius: 1px; }
.tc4 .tc-log-h i.ok { background: var(--nv-green); }
.tc4 .tc-log-h i.bad { background: repeating-linear-gradient(-45deg, var(--nv-nolog) 0 2px, var(--nv-nolog-2) 2px 3px); }
.tc4 .top .tc-go { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tc4 .top .tc-go svg { width: 13px; height: 13px; }

/* ---- Items at risk table ---- */
.pri { display: inline-block; font-size: 12px; white-space: nowrap; color: var(--nv-mute); }
.pri-urgent { color: var(--nv-crit); font-weight: 600; } .pri-high { color: var(--nv-warn); font-weight: 600; }
.stg { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--nv-ink); }
.stg i { width: 8px; height: 8px; border-radius: 50%; background: var(--nv-stone); }
.stg i.prog { background: #3b82f6; } .stg i.rev { background: #a855f7; }
.rk { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; white-space: nowrap; }
.rk i { width: 8px; height: 8px; border-radius: 1px; }
.rk-crit { color: var(--nv-crit); } .rk-crit i { background: var(--nv-crit); }
.rk-warn { color: var(--nv-warn); } .rk-warn i { background: var(--nv-warn); }

/* remind bell (late / overdue items) */
.rmd { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--nv-hairline); border-radius: 2px; background: transparent; color: var(--nv-mute); cursor: pointer; }
.rmd svg { width: 14px; height: 14px; }
.rmd:hover { border-color: var(--nv-green); color: var(--nv-ink); }
.rmd.sent { border-color: var(--nv-green); color: var(--nv-green-text); background: var(--nv-green-tint); }
.rmd:focus-visible { outline: 2px solid var(--nv-green); outline-offset: 1px; }
.tp-t .rk-a { padding-right: 10px; }

/* ---- Person tasks side panel ---- */
.pd { position: fixed; inset: 0; z-index: 400; }
.pd-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
html.light .pd-scrim { background: rgba(20,22,15,.35); }
.pd-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--nv-canvas); border-left: 1px solid var(--nv-hairline-strong); display: flex; flex-direction: column; animation: pd-in .18s ease-out; font-family: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif; color: var(--nv-body); }
@keyframes pd-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pd-panel { animation: none; } }
.pd-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.pd-who { min-width: 0; flex: 1; }
.pd-who h2 { margin: 0; font-size: 15px; font-weight: 600; color: var(--nv-ink); }
.pd-who .faint { font-size: 12px; }
.pd-x { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--nv-hairline); border-radius: 2px; background: transparent; color: var(--nv-mute); cursor: pointer; }
.pd-x:hover { color: var(--nv-ink); border-color: var(--nv-hairline-strong); }
.pd-x svg { width: 16px; height: 16px; }
.pd-stats { margin: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--nv-hairline); border-radius: 2px; }
.pd-stats > div { padding: 8px 12px; display: flex; flex-direction: column-reverse; gap: 1px; }
.pd-stats > div + div { border-left: 1px solid var(--nv-hairline); }
.pd-stats dt { font-size: 12px; color: var(--nv-stone); } .pd-stats dd { margin: 0; font-size: 16px; font-weight: 600; color: var(--nv-ink); }
.pd-bar { padding: 14px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.pd-tabs { padding: 14px 20px 10px; border-bottom: 1px solid var(--nv-hairline); overflow-x: auto; }
.pd-body { flex: 1; overflow-y: auto; padding: 4px 20px 24px; }
.pd-g { padding-top: 14px; }
.pd-gh { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--nv-ink); }
.pd-gh .psq { width: 8px; height: 8px; border-radius: 1px; }
.pd-gh .faint { font-weight: 400; font-size: 12px; }
.pd-l { list-style: none; margin: 0; padding: 0; border: 1px solid var(--nv-hairline); border-radius: 2px; }
.pd-l li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 12px; font-size: 13px; }
.pd-l li + li { border-top: 1px solid var(--nv-hairline); }
.pd-t { min-width: 0; display: flex; gap: 8px; align-items: baseline; }
.pd-t .key { font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: 12px; color: var(--nv-stone); flex: none; }
.pd-t .tt { color: var(--nv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-m { display: flex; align-items: center; gap: 10px; flex: none; font-size: 12px; }
.pd .empty { padding: 24px 0; color: var(--nv-stone); font-size: 13px; }

/* ---- Items at risk v2: compact list beside reminders ---- */
.rk-l .nm { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.rk-l .nm .key { font-family: var(--font-geist-mono), ui-monospace, monospace; font-size: 12px; color: var(--nv-stone); font-weight: 400; flex: none; }
.rk-l .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-l .sub { display: flex; align-items: center; gap: 6px; }
.rk-l .sub .pri, .rk-l .sub .stg { font-size: 12px; }
.rk-l .sub .stg { color: var(--nv-stone); gap: 5px; }
.rk-l .sub .stg i { width: 6px; height: 6px; }
.rk-l .r .rk { font-size: 12.5px; }
#s-risk .sec-h, #s-risk .sh { flex-wrap: wrap; row-gap: 8px; }
.rk-l .li { grid-template-columns: minmax(0, 1fr) auto; }
.rk-a { width: 40px; text-align: right; }

/* ---- Team: filters left, search fills the rest of the row ---- */
.team-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.team-bar .chips { flex: none; }
.team-search { flex: 1 1 240px; display: block; }
.team-search .input { width: 100%; height: 30px; padding-left: 30px; }
