@font-face {
  font-family: 'Geist';
  src: url('/fonts/Geist-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg:        #111013;
  --surface:   #18171b;
  --surface-2: #201e24;
  --surface-3: #27242c;
  --hairline:  rgba(255, 255, 255, 0.08);
  --hairline-2: rgba(255, 255, 255, 0.14);
  --ink:       #f0eef2;
  --ink-2:     #c3bfc9;
  --ink-3:     #a6a1ad;
  --ink-dim:   #736d7a;   /* decorative only, never body text */
  --red:       #f4525f;
  --red-soft:  #f07a83;
  --red-bg:    rgba(244, 82, 95, 0.12);
  --amber:     #d6a35c;
  --amber-bg:  rgba(214, 163, 92, 0.12);
  --green:     #74bd88;
  --green-bg:  rgba(116, 189, 136, 0.10);
  --r-card: 10px;
  --r-input: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --z-sticky: 10;
  --z-nav: 20;
  --z-overlay: 40;
  --z-toast: 50;
  --z-tooltip: 60;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; font-size: 14px; line-height: 1.45; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
button { cursor: pointer; background: none; border: none; -webkit-tap-highlight-color: transparent; }
::placeholder { color: var(--ink-3); opacity: 1; }

:focus-visible {
  outline: 2px solid rgba(244, 82, 95, 0.65);
  outline-offset: 2px;
  border-radius: 4px;
}

.hidden { display: none !important; }

/* Content text always wraps; long tokens break instead of panning. */
h1, h2, h3, p, .wraps { overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }

/* ── PIN overlay ──────────────────────────────────────────────────────────── */
#pin-overlay {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: var(--z-overlay);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
  padding-bottom: env(safe-area-inset-bottom);
}
#pin-star { width: 26px; height: 26px; color: var(--red); margin-bottom: 2px; }
#pin-label { font-size: 14px; font-weight: 500; color: var(--ink-3); }
#pin-dots { display: flex; gap: 18px; }
.pin-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--hairline-2); background: transparent;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.pin-dot.filled { background: var(--ink); border-color: var(--ink); }
.pin-dot.error  { background: var(--red); border-color: var(--red); }
#pin-dots.shake { animation: shake 0.4s var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-7px); }
  45% { transform: translateX(6px); }
  70% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}
#pin-keypad { display: grid; grid-template-columns: repeat(3, 74px); gap: 12px; margin-top: 6px; }
.pin-key {
  height: 70px; border-radius: 14px;
  background: var(--surface); color: var(--ink);
  font-size: 21px; font-weight: 450;
  touch-action: manipulation;
  transition: background 0.12s var(--ease-out), transform 0.12s var(--ease-out);
}
.pin-key:active { transform: scale(0.95); background: var(--surface-2); }
.pin-key.zero { grid-column: 2; }
.pin-key.del { font-size: 17px; color: var(--ink-3); }

/* ── Top nav ──────────────────────────────────────────────────────────────── */
#topnav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(17, 16, 19, 0.94);
  border-bottom: 1px solid var(--hairline);
  padding-top: env(safe-area-inset-top);
}
#topnav-inner {
  max-width: 1680px; margin: 0 auto;
  height: 52px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 20px;
}
#brand-star { width: 18px; height: 18px; color: var(--red); flex: none; margin-right: 10px; }
#nav-items {
  display: flex; gap: 2px; align-items: center;
  overflow-x: auto;               /* nav chrome may pan on small screens */
  scrollbar-width: none;
}
#nav-items::-webkit-scrollbar { display: none; }
.nav-item {
  flex: none;
  padding: 6px 12px;
  border-radius: var(--r-input);
  font-size: 13.5px; font-weight: 480;
  color: var(--ink-3);
  transition: color 0.15s var(--ease-out), background 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.nav-item:active { transform: scale(0.97); }
.nav-item.active { color: var(--ink); background: var(--surface-2); font-weight: 540; }
@media (hover: hover) {
  .nav-item:hover { color: var(--ink); }
}

/* ── Page shell ───────────────────────────────────────────────────────────── */
#page {
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 20px calc(60px + env(safe-area-inset-bottom));
}
.page-fade { animation: pagefade 0.14s var(--ease-out); }
@keyframes pagefade { from { opacity: 0; } to { opacity: 1; } }

.view-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.view-title { font-size: 22px; font-weight: 620; letter-spacing: -0.015em; }
.view-sub { font-size: 13.5px; color: var(--ink-3); }

.detail-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.detail-title { font-size: 21px; font-weight: 620; letter-spacing: -0.015em; overflow-wrap: anywhere; min-width: 0; }
.detail-head .health-dot { margin-top: 10px; }
.back-btn {
  flex: none; width: 32px; height: 32px; margin-top: 1px; margin-left: -6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-input); color: var(--ink-3);
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.back-btn:active { transform: scale(0.95); }
.back-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .back-btn:hover { background: var(--surface-2); color: var(--ink); } }

.section-title {
  font-size: 13px; font-weight: 560; color: var(--ink-2);
  margin: 26px 0 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-title:first-child { margin-top: 0; }
.section-count { color: var(--ink-3); font-weight: 460; font-variant-numeric: tabular-nums; }

.empty-note {
  border: 1px dashed var(--hairline-2);
  border-radius: var(--r-card);
  padding: 22px 18px;
  color: var(--ink-3); font-size: 13.5px;
  text-align: center;
  overflow-wrap: anywhere;
}
.empty-note .btn-quiet { margin-top: 10px; }

.inline-error {
  color: var(--red-soft); font-size: 12.5px; margin-top: 6px;
  animation: pagefade 0.15s var(--ease-out);
  overflow-wrap: anywhere;
}
#toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: var(--z-toast);
  background: var(--surface-3); border: 1px solid var(--hairline-2);
  border-radius: 8px; padding: 9px 14px;
  font-size: 13px; color: var(--ink);
  max-width: min(420px, calc(100vw - 32px));
  overflow-wrap: anywhere;
}

/* Skeletons: shaped like the layouts they precede */
.sk { border-radius: var(--r-card); background: var(--surface); position: relative; overflow: hidden; }
.sk::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.045) 50%, transparent 70%);
  animation: skshine 1.4s linear infinite;
}
@keyframes skshine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.sk-bar { height: 14px; width: 140px; border-radius: 4px; margin-bottom: 18px; }
.sk-card { height: 132px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }

/* Staggered first paint for card lists */
.stagger-in { opacity: 0; transform: translateY(6px); animation: riseIn 0.28s var(--ease-out) forwards; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

/* ── Shared atoms ─────────────────────────────────────────────────────────── */
.health-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
}
.health-dot.yellow { background: var(--amber); }
.health-dot.red {
  width: 10px; height: 10px;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-bg), 0 0 10px rgba(244, 82, 95, 0.55);
}

.stage-pipe { display: flex; flex-direction: column; gap: 5px; }
.stage-segs { display: flex; gap: 3px; }
.stage-segs span {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.10);
}
.stage-segs span.fill { background: #8d8795; }
.stage-segs span.cur { background: var(--ink); }
.stage-name { font-size: 11.5px; color: var(--ink-3); }

.owner-initials { display: flex; gap: 4px; flex-wrap: wrap; }
.owner-initials span {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-2);
  font-size: 9.5px; font-weight: 560;
  display: flex; align-items: center; justify-content: center;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-input);
  background: var(--surface-2); border: 1px solid var(--hairline);
  font-size: 12px; color: var(--ink-2);
  overflow-wrap: anywhere;
}
.chip.red    { color: var(--red-soft);  background: var(--red-bg);   border-color: transparent; }
.chip.amber  { color: var(--amber);     background: var(--amber-bg); border-color: transparent; }
.chip.green  { color: var(--green);     background: var(--green-bg); border-color: transparent; }
.chip.archived { color: var(--ink-3); border-style: dashed; }

.owner-chip {
  display: inline-block; padding: 1px 7px; border-radius: var(--r-input);
  background: var(--surface-3); color: var(--ink-2); font-size: 11.5px;
  overflow-wrap: anywhere;
}

.btn-quiet {
  padding: 6px 12px; border-radius: var(--r-input);
  border: 1px solid var(--hairline-2); background: var(--surface);
  font-size: 13px; color: var(--ink-2); font-weight: 500;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.btn-quiet:active { transform: scale(0.97); }
@media (hover: hover) { .btn-quiet:hover { background: var(--surface-2); color: var(--ink); } }
.btn-primary {
  padding: 6px 14px; border-radius: var(--r-input);
  background: var(--red); color: #17080a; font-weight: 580; font-size: 13px;
  transition: background 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.45; cursor: default; }
@media (hover: hover) { .btn-primary:hover { background: #f66671; } }

.text-input, .date-input, .sel {
  background: var(--surface); border: 1px solid var(--hairline-2);
  border-radius: var(--r-input);
  padding: 7px 10px; font-size: 13.5px; color: var(--ink);
  min-width: 0;
  transition: border-color 0.15s var(--ease-out);
}
.text-input:focus, .date-input:focus, .sel:focus { border-color: rgba(244, 82, 95, 0.5); outline: none; }
.date-input { font-variant-numeric: tabular-nums; color-scheme: dark; }
.sel { appearance: none; -webkit-appearance: none; padding-right: 26px; width: 100%; }
.sel-wrap { position: relative; display: flex; }
.sel-wrap::after {
  content: ''; position: absolute; right: 10px; top: 50%;
  width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3);
  transform: rotate(45deg); pointer-events: none;
}

textarea.notes-area {
  width: 100%; resize: none; overflow: hidden; /* auto-grown from JS */
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-input);
  padding: 10px 12px; font-size: 13.5px; line-height: 1.55; color: var(--ink);
  overflow-wrap: anywhere;
  transition: border-color 0.15s var(--ease-out);
}
textarea.notes-area:focus { border-color: rgba(244, 82, 95, 0.5); outline: none; }

/* ── Today ────────────────────────────────────────────────────────────────── */
/* Hero on top, then main column (triage buckets) + right rail (Overnight,
   On the horizon). Stacks to one column under 1000px. */
.today-cols { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) {
  .today-cols { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
}

.today-hero {
  display: flex; flex-direction: column; gap: 9px;
  padding: 20px 22px 18px;
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  margin-bottom: 26px;
}
.today-hero.red { border-color: rgba(244, 82, 95, 0.35); }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 590; color: var(--red-soft);
}
.hero-badge.quiet { color: var(--ink-2); }
.hero-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.hero-dot.red { background: var(--red); box-shadow: 0 0 0 3px var(--red-bg), 0 0 10px rgba(244, 82, 95, 0.55); }
.hero-dot.amber { background: var(--amber); }
.hero-dot.green { background: var(--green); }
.hero-name-row { display: flex; gap: 10px; align-items: flex-start; }
.hero-name-row .health-dot { margin-top: 9px; }
.hero-name {
  font-size: 21px; font-weight: 620; letter-spacing: -0.015em; line-height: 1.25;
  overflow-wrap: anywhere; min-width: 0;
}
.hero-why { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.hero-why.num { font-variant-numeric: tabular-nums; }
.today-hero .move-line { margin-top: 0; font-size: 13.5px; }
.hero-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

/* Collapsible sections: header (chevron · title · count) over an animated body */
.tsec { margin-bottom: 14px; }
.tsec-head {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  padding: 7px 2px; margin-bottom: 4px;
  font-size: 13px; font-weight: 560; color: var(--ink-2);
  transition: color 0.15s var(--ease-out);
}
.tsec-head svg { flex: none; width: 14px; height: 14px; color: var(--ink-3); transition: transform 0.18s var(--ease-out); }
.tsec-head.open svg { transform: rotate(90deg); }
@media (hover: hover) { .tsec-head:hover { color: var(--ink); } }
.tsec-collapse {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s var(--ease-out);
}
.tsec-collapse.open { grid-template-rows: 1fr; }
.tsec-inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0.2s; }
.tsec-collapse.open .tsec-inner { visibility: visible; }
.tsec-empty { font-size: 12.5px; color: var(--ink-3); padding: 3px 2px 9px; overflow-wrap: anywhere; }

/* Bucket rows: compact; the hero is the only big element */
.triage-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
@media (hover: hover) { .triage-row:hover { background: var(--surface-2); border-color: var(--hairline-2); } }
.triage-row.red { border-color: rgba(244, 82, 95, 0.35); }
.triage-row .health-dot { margin-top: 5px; }
.tr-main { min-width: 0; flex: 1; }
.tr-name { font-size: 14px; font-weight: 560; overflow-wrap: anywhere; }
.tr-trigger { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.tr-trigger .late, .hero-why .late { color: var(--red-soft); }
.tr-acts { flex: none; display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.row-chev {
  flex: none; width: 26px; height: 26px; border-radius: var(--r-input);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.row-chev:active { transform: scale(0.94); }
.row-chev svg { width: 15px; height: 15px; }
@media (hover: hover) { .row-chev:hover { background: var(--surface-3); color: var(--ink); } }

/* The suggested move: label + text (2-line clamp, tap to expand) + owner chip */
.move-line {
  display: block; text-align: left; padding: 0; margin-top: 5px;
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2);
  overflow-wrap: anywhere;
}
.move-label { color: var(--ink-2); font-weight: 590; margin-right: 6px; }
.today-hero .move-label { color: var(--red-soft); }
.move-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.move-text.expanded { display: inline; -webkit-line-clamp: unset; }
.move-line .owner-chip { margin-left: 6px; }

/* Far-horizon rows: one glanceable line each */
.hz-row {
  display: flex; gap: 10px; align-items: flex-start;
  width: 100%; text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  margin-bottom: 6px;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.hz-row:active { transform: scale(0.99); }
@media (hover: hover) { .hz-row:hover { background: var(--surface-2); border-color: var(--hairline-2); } }
.hz-date {
  flex: none; width: 50px;
  font-size: 12px; font-weight: 560; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}
.hz-date .in-days { display: block; font-weight: 440; color: var(--ink-3); font-size: 11px; margin-top: 2px; }
.hz-main { min-width: 0; flex: 1; }
.hz-label { font-size: 12.5px; font-weight: 520; overflow-wrap: anywhere; }
.hz-proj { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.hz-chev { flex: none; display: flex; align-items: center; color: var(--ink-3); margin-top: 3px; }
.hz-chev svg { width: 13px; height: 13px; }

.digest-row {
  display: flex; gap: 12px; align-items: flex-start;
  width: 100%; text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  margin-bottom: 8px;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.digest-row:active { transform: scale(0.99); }
@media (hover: hover) {
  .digest-row:hover { background: var(--surface-2); border-color: var(--hairline-2); }
}

.digest-kind {
  flex: none; margin-top: 1px;
  font-size: 10.5px; font-weight: 560; color: var(--ink-3);
  background: var(--surface-3); border-radius: 4px; padding: 2px 6px;
}
.digest-main { min-width: 0; flex: 1; }
.digest-name { font-size: 13px; font-weight: 540; overflow-wrap: anywhere; }
.digest-summary { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.digest-time { flex: none; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.since-note { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }

.today-add { margin-top: 26px; }

/* Add-project form (Today + Board) */
.add-proj-form {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 12px; border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface); margin-top: 10px;
}
.add-proj-form .text-input { flex: 1 1 220px; }

/* ── Board ────────────────────────────────────────────────────────────────── */
.filter-row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 6px;
}
.filter-chip {
  padding: 5px 13px; border-radius: 999px;   /* pills: filter chips only */
  border: 1px solid var(--hairline-2); background: transparent;
  font-size: 12.5px; color: var(--ink-2);
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out),
              border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.filter-chip:active { transform: scale(0.96); }
.filter-chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 560; }
.filter-chip.h-red.on { background: var(--red); border-color: var(--red); color: #17080a; }
.filter-chip.h-yellow.on { background: var(--amber); border-color: var(--amber); color: #1c1508; }
.filter-chip.h-green.on { background: var(--green); border-color: var(--green); color: #0a1a0f; }
@media (hover: hover) { .filter-chip:hover { border-color: var(--ink-3); color: var(--ink); } }
.filter-sep { width: 1px; height: 18px; background: var(--hairline-2); margin: 0 4px; }
.filter-row .text-input { flex: 1 1 160px; max-width: 260px; }
.filter-row .spacer { flex: 1; }

.board-group { margin-bottom: 8px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.proj-card {
  text-align: left;
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 15px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.proj-card:active { transform: scale(0.985); }
@media (hover: hover) { .proj-card:hover { background: var(--surface-2); border-color: var(--hairline-2); } }
.proj-card.red { border-color: rgba(244, 82, 95, 0.4); }
.proj-card.archived { opacity: 0.65; }
.pc-top { display: flex; gap: 9px; align-items: flex-start; }
.pc-top .health-dot { margin-top: 5px; }
.pc-name { font-size: 14.5px; font-weight: 570; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
.pc-deadline { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.pc-deadline .d { flex: none; font-variant-numeric: tabular-nums; font-weight: 560; color: var(--ink-2); }
.pc-deadline .d.soon { color: var(--red-soft); }
.pc-deadline .d.past { color: var(--ink-3); }
.pc-deadline .l { color: var(--ink-3); overflow-wrap: anywhere; min-width: 0; }
.pc-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.pc-count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pc-foot .owner-initials { margin-left: auto; }

.arch-toggle {
  display: flex; align-items: center; gap: 8px;
  margin-top: 30px; padding: 6px 2px;
  color: var(--ink-3); font-size: 13px; font-weight: 520;
  transition: color 0.15s var(--ease-out);
}
.arch-toggle svg { width: 14px; height: 14px; transition: transform 0.18s var(--ease-out); }
.arch-toggle.open svg { transform: rotate(90deg); }
@media (hover: hover) { .arch-toggle:hover { color: var(--ink); } }

/* ── Timeline ─────────────────────────────────────────────────────────────── */
.tl-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tl-legend { display: flex; gap: 14px; margin-left: auto; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.tl-legend i { display: inline-block; width: 8px; height: 8px; transform: rotate(45deg); border-radius: 1.5px; margin-right: 6px; background: #c9c5cf; }
.tl-legend .soon i { background: var(--red); }
.tl-legend .past i { background: var(--ink-dim); }

.tl-scroll {
  overflow-x: auto;                 /* the ONE horizontally panning surface */
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  overscroll-behavior-x: contain;
}
.tl-canvas { position: relative; }
.tl-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,0.04); }
.tl-gridline.month { background: rgba(255,255,255,0.09); }
.tl-todayline { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); opacity: 0.85; z-index: 1; }

.tl-head { position: relative; height: 40px; border-bottom: 1px solid var(--hairline); }
.tl-month {
  position: absolute; top: 8px;
  font-size: 11.5px; font-weight: 540; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tl-todaytag {
  position: absolute; top: 22px; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 600; color: var(--red);
  background: var(--bg); border-radius: 4px; padding: 0 5px;
  z-index: 2;
}

.tl-row { display: flex; position: relative; z-index: 2; }
.tl-row.grp { border-top: 1px solid var(--hairline); }
.tl-row.grp .tl-label {
  font-size: 12px; font-weight: 580; color: var(--ink-2);
  padding: 10px 12px 6px;
  cursor: default;
}
.tl-label {
  position: sticky; left: 0; z-index: 3;
  flex: 0 0 var(--tl-labelw, 220px);
  width: var(--tl-labelw, 220px);
  background: var(--surface);
  border-right: 1px solid var(--hairline);
  padding: 8px 12px;
  display: flex; flex-direction: column; gap: 3px;
  cursor: pointer;
}
.tl-row.proj .tl-label { min-height: 48px; justify-content: center; }
@media (hover: hover) { .tl-row.proj .tl-label:hover { background: var(--surface-2); } }
.tl-label-top { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tl-label-top .health-dot { flex: none; width: 7px; height: 7px; }
.tl-label-top .health-dot.red { width: 9px; height: 9px; }
.tl-name {
  font-size: 12.5px; font-weight: 540; line-height: 1.3;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}
.tl-stage { font-size: 10.5px; color: var(--ink-3); }
.tl-track { position: relative; flex: none; }
.tl-row.red .tl-track { background: rgba(244, 82, 95, 0.05); }
.tl-span {
  position: absolute; top: 50%; height: 4px; margin-top: -2px;
  background: rgba(255, 255, 255, 0.10); border-radius: 2px;
}
.tl-row.red .tl-span { background: rgba(244, 82, 95, 0.22); }
.tl-marker {
  position: absolute; top: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.tl-marker::before {
  content: ''; width: 9px; height: 9px;
  background: #c9c5cf; border-radius: 1.5px;
  transform: rotate(45deg);
  transition: transform 0.15s var(--ease-out);
}
.tl-marker.past::before { background: var(--ink-dim); }
.tl-marker.soon::before {
  background: var(--red);
  box-shadow: 0 0 8px rgba(244, 82, 95, 0.5);
}
@media (hover: hover) { .tl-marker:hover::before { transform: rotate(45deg) scale(1.35); } }

#tl-tip {
  position: fixed; z-index: var(--z-tooltip);
  max-width: 300px;
  background: var(--surface-3); border: 1px solid var(--hairline-2);
  border-radius: 8px; padding: 8px 11px;
  font-size: 12.5px; line-height: 1.45;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  overflow-wrap: anywhere;
}
#tl-tip .tip-date { font-weight: 580; font-variant-numeric: tabular-nums; margin-bottom: 2px; }
#tl-tip .tip-label { color: var(--ink-2); }
#tl-tip .tip-proj { color: var(--ink-3); font-size: 11.5px; margin-top: 3px; }

@media (max-width: 700px) {
  .tl-row { --tl-labelw: 120px; }
  .tl-label { padding: 6px 8px; }
  .tl-name { font-size: 11.5px; }
}

/* ── Team ─────────────────────────────────────────────────────────────────── */
.team-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
@media (max-width: 420px) { .team-grid { grid-template-columns: 1fr; } }
.person-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.pp-head { display: flex; align-items: flex-start; gap: 10px; text-align: left; width: 100%; }
.pp-avatar {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface-3); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600;
}
.pp-id { min-width: 0; flex: 1; }
.pp-name { font-size: 15px; font-weight: 590; overflow-wrap: anywhere; transition: color 0.15s var(--ease-out); }
.pp-role { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
@media (hover: hover) { .pp-head:hover .pp-name { color: var(--red-soft); } }
.pp-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-sentiment { font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
.pp-block-label { font-size: 11.5px; font-weight: 570; color: var(--ink-3); margin-bottom: 6px; }
.pp-proj-of-tasks { font-size: 12px; color: var(--ink-3); font-weight: 550; margin: 8px 0 4px; overflow-wrap: anywhere; }
.pp-proj-of-tasks:first-child { margin-top: 0; }
.pp-last { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }

.task-line { display: flex; gap: 9px; align-items: flex-start; padding: 5px 0; }
.task-check {
  flex: none; width: 17px; height: 17px; margin-top: 1px;
  border: 1.5px solid var(--hairline-2); border-radius: 5px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.task-check:active { transform: scale(0.9); }
.task-check svg { width: 11px; height: 11px; color: var(--bg); opacity: 0; transition: opacity 0.15s var(--ease-out); }
.task-check.done { background: var(--green); border-color: var(--green); }
.task-check.done svg { opacity: 1; }
@media (hover: hover) { .task-check:hover { border-color: var(--ink-3); } }
.task-body { min-width: 0; flex: 1; }
.task-text { font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.task-text.done { color: var(--ink-3); text-decoration: line-through; }
.task-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; align-items: center; }
.task-due { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.task-due.soon { color: var(--red-soft); }
.task-del {
  flex: none; width: 22px; height: 22px; border-radius: var(--r-input);
  color: var(--ink-dim); font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
@media (hover: hover) { .task-del:hover { color: var(--red-soft); background: var(--red-bg); } }
.task-edit-input { width: 100%; }

.item-line { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: 13px; }
.item-line .bullet { flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); margin-top: 8px; }
.item-line .item-text { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
.item-line .task-del { margin-top: 0; }

.show-more {
  font-size: 12px; color: var(--ink-3); padding: 4px 0; font-weight: 520;
  transition: color 0.15s var(--ease-out);
}
@media (hover: hover) { .show-more:hover { color: var(--ink); } }

.mini-proj {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  padding: 7px 10px; border-radius: var(--r-input);
  border: 1px solid var(--hairline);
  font-size: 12.5px; color: var(--ink-2);
  margin-bottom: 6px;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.mini-proj .mp-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
@media (hover: hover) { .mini-proj:hover { background: var(--surface-2); border-color: var(--hairline-2); } }

/* ── People ───────────────────────────────────────────────────────────────── */
.people-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.people-card {
  text-align: left;
  display: flex; flex-direction: column; gap: 8px;
  padding: 15px 16px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.people-card:active { transform: scale(0.985); }
@media (hover: hover) { .people-card:hover { background: var(--surface-2); border-color: var(--hairline-2); } }
.people-card .pp-name { font-size: 14.5px; }
.people-card .meta-line { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }

/* ── Insights ─────────────────────────────────────────────────────────────── */
.ins-cols { column-gap: 14px; }
@media (min-width: 1000px) { .ins-cols { columns: 2; } }
.insight-card {
  break-inside: avoid;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 16px;
  margin-bottom: 14px;
  display: flow-root;
}
.ic-toprow { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.ic-title { font-size: 14.5px; font-weight: 590; line-height: 1.35; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.ic-take { font-size: 13px; color: var(--ink-2); line-height: 1.5; overflow-wrap: anywhere; }
.ic-angle {
  margin-top: 12px; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-input);
  font-size: 13px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere;
}
.ic-angle b { color: var(--red-soft); font-weight: 590; }
.ic-detail { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.ic-detail p { margin-bottom: 8px; overflow-wrap: anywhere; }
.ic-foot { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.ic-src { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
a.ic-src { color: var(--red-soft); text-decoration: none; }
@media (hover: hover) { a.ic-src:hover { text-decoration: underline; } }
.ic-tag { font-size: 11px; color: var(--ink-3); background: var(--surface-2); border-radius: 4px; padding: 2px 7px; overflow-wrap: anywhere; }
.urgency-mark { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--ink-dim); }
.urgency-mark.critical { background: var(--red); box-shadow: 0 0 8px rgba(244,82,95,0.5); }
.urgency-mark.high { background: var(--red-soft); }
.urgency-mark.medium { background: var(--amber); }

/* ── Project detail ───────────────────────────────────────────────────────── */
/* One priority-ordered main column + slim meta rail. Main first in the DOM so
   the rail stacks below it under 1000px. */
.detail-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 44px; }
}
.detail-main { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.detail-main .section-title { margin-top: 0; }

/* Status strip: quiet one-line summary under the header */
.status-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: -6px 0 24px;
  font-size: 12.5px; color: var(--ink-2);
  min-height: 18px;
}
.status-strip .ss-init { font-weight: 550; }
.status-strip .ss-sep { color: var(--ink-dim); }
.status-strip .stage-pipe { flex-direction: row; align-items: center; gap: 7px; }
.status-strip .stage-segs { width: 54px; flex: none; }
.status-strip .stage-name { font-size: 12.5px; color: var(--ink-2); }
.status-strip .ss-deadline { font-variant-numeric: tabular-nums; }
.status-strip .ss-dl-label { color: var(--ink-3); overflow-wrap: anywhere; min-width: 0; }

/* Fold cards: collapsed sections that read as openable */
.fold-card { border: 1px solid var(--hairline); border-radius: var(--r-card); }
.fold-head {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; text-align: left;
  font-size: 13px; font-weight: 560; color: var(--ink-2);
  border-radius: var(--r-card);
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
@media (hover: hover) { .fold-head:hover { background: var(--surface-2); color: var(--ink); } }
.fold-head svg { flex: none; width: 13px; height: 13px; color: var(--ink-3); transition: transform 0.18s var(--ease-out); }
.fold-card.open .fold-head { border-radius: var(--r-card) var(--r-card) 0 0; }
.fold-card.open .fold-head svg { transform: rotate(90deg); }
.fold-label { flex: none; }
.fold-preview {
  flex: 1; min-width: 0; font-weight: 440; font-size: 12.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fold-card.open .fold-preview { visibility: hidden; }
.fold-body { padding: 2px 14px 14px; animation: foldin 0.18s var(--ease-out); }
@keyframes foldin { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* What's new feed */
.quiet-note { font-size: 12px; color: var(--ink-3); padding: 6px 0 2px; }
.feed-history { animation: foldin 0.18s var(--ease-out); }
.raw-edit { padding-top: 10px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.raw-edit .notes-area { width: 100%; }

/* Extra read paragraphs behind the "Full read" expand */
.read-more { animation: foldin 0.18s var(--ease-out); }
.read-more > p:first-child { margin-top: 10px; }
.rail-block { margin-bottom: 22px; }
.rail-label { font-size: 12px; font-weight: 570; color: var(--ink-3); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.rail-label .add-mini { margin-left: auto; }
.add-mini {
  width: 22px; height: 22px; border-radius: var(--r-input);
  color: var(--ink-3); font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
@media (hover: hover) { .add-mini:hover { background: var(--surface-2); color: var(--ink); } }

.seg-ctl { display: flex; border: 1px solid var(--hairline-2); border-radius: var(--r-input); overflow: hidden; }
.seg-ctl button {
  flex: 1; padding: 7px 4px; font-size: 12.5px; color: var(--ink-3); font-weight: 520;
  background: transparent;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.seg-ctl button + button { border-left: 1px solid var(--hairline); }
.seg-ctl button.on.green { background: var(--green-bg); color: var(--green); font-weight: 590; }
.seg-ctl button.on.yellow { background: var(--amber-bg); color: var(--amber); font-weight: 590; }
.seg-ctl button.on.red { background: var(--red-bg); color: var(--red-soft); font-weight: 590; }

.dl-line { display: flex; gap: 9px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.dl-line:last-of-type { border-bottom: none; }
.dl-line .dl-date { flex: none; width: 52px; font-size: 12px; font-weight: 560; font-variant-numeric: tabular-nums; color: var(--ink-2); padding-top: 1px; }
.dl-line.past .dl-date, .dl-line.past .dl-label { color: var(--ink-3); }
.dl-line.soon .dl-date { color: var(--red-soft); }
.dl-line .dl-label { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }

.link-line { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.link-line a {
  flex: 1; min-width: 0; font-size: 13px; color: var(--red-soft); text-decoration: none;
  overflow-wrap: anywhere;
}
@media (hover: hover) { .link-line a:hover { text-decoration: underline; } }

.mini-form { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.mini-form .row2 { display: flex; gap: 7px; }
.mini-form .row2 > * { flex: 1; }
.mini-form .actions { display: flex; gap: 7px; justify-content: flex-end; }

.archive-foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.archive-btn {
  width: 100%; padding: 9px; border-radius: var(--r-input);
  border: 1px solid var(--hairline-2);
  color: var(--ink-3); font-size: 13px; font-weight: 520;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), background 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.archive-btn:active { transform: scale(0.98); }
@media (hover: hover) { .archive-btn:hover { color: var(--red-soft); border-color: rgba(244,82,95,0.4); background: var(--red-bg); } }

.add-task-form { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.add-task-form .text-input.grow { flex: 1 1 200px; }
.add-task-form .text-input.owner-in { flex: 0 1 110px; }
.add-task-form .date-input { flex: 0 1 140px; }

.note-line { padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.note-line:last-child { border-bottom: none; }
.note-add { display: flex; gap: 7px; margin-bottom: 10px; }
.note-add .text-input { flex: 1; }

.act-line { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--hairline); align-items: flex-start; }
.act-line:last-child { border-bottom: none; }
.act-kind { flex: none; font-size: 10.5px; font-weight: 570; color: var(--ink-3); background: var(--surface-2); border-radius: 4px; padding: 2px 6px; margin-top: 1px; }
.act-body { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.act-when { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }

.collapse-toggle {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 0; margin-top: 4px;
  color: var(--ink-3); font-size: 12.5px; font-weight: 530;
  transition: color 0.15s var(--ease-out);
}
.collapse-toggle svg { width: 13px; height: 13px; transition: transform 0.18s var(--ease-out); }
.collapse-toggle.open svg { transform: rotate(90deg); }
@media (hover: hover) { .collapse-toggle:hover { color: var(--ink); } }

/* Person detail */
.person-grid { display: grid; gap: 28px; align-items: start; }
/* Columns never size to an unbreakable child (the fold preview is nowrap) */
.person-grid > div { min-width: 0; }
@media (min-width: 1000px) { .person-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; } }
.field-line { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.field-line .field-label { flex: none; width: 96px; font-size: 12px; color: var(--ink-3); }
.field-line .text-input { flex: 1; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
/* Two independent columns on desktop — narrow (health, questions, team load)
   beside wide (pipeline, deadline pressure, momentum). One stack on mobile. */
.dash-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) {
  .dash-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
}
.dash-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1100px) { .dash-col { gap: 24px; } }

.dash-sec {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 16px;
  min-width: 0;
}
.dash-sec > .section-title { margin-top: 0; }
.dash-empty { font-size: 12.5px; color: var(--ink-3); padding: 4px 0 2px; overflow-wrap: anywhere; }

/* Health: three counts, then the flagged projects named */
.dash-health-counts { display: flex; gap: 8px; margin-bottom: 6px; }
.dh-count {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 10px 12px; border-radius: var(--r-input);
  border: 1px solid var(--hairline); background: var(--surface-2);
  text-align: left;
  transition: border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.dh-count:active { transform: scale(0.97); }
@media (hover: hover) { .dh-count:hover { border-color: var(--hairline-2); } }
.dh-num { font-size: 24px; font-weight: 640; letter-spacing: -0.02em; line-height: 1.15; }
.dh-count.red .dh-num { color: var(--red-soft); }
.dh-count.yellow .dh-num { color: var(--amber); }
.dh-count.green .dh-num { color: var(--green); }
.dh-word { font-size: 11.5px; color: var(--ink-3); }

.dash-row {
  display: flex; gap: 10px; align-items: flex-start;
  width: 100%; text-align: left;
  padding: 10px 2px;
  border-top: 1px solid var(--hairline);
}
.dash-row .health-dot { margin-top: 5px; }
.dr-main { flex: 1; min-width: 0; }
.dr-name { font-size: 13.5px; font-weight: 550; overflow-wrap: anywhere; transition: color 0.15s var(--ease-out); }
.dr-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }
.dr-chev { flex: none; display: flex; color: var(--ink-3); margin-top: 4px; }
.dr-chev svg { width: 13px; height: 13px; }
@media (hover: hover) { .dash-row:hover .dr-name { color: var(--red-soft); } }

/* Pipeline: one segmented bar per initiative, brief → shipped */
.ps-brief      { --seg: rgba(255, 255, 255, 0.08); }
.ps-concept    { --seg: rgba(255, 255, 255, 0.15); }
.ps-production { --seg: rgba(255, 255, 255, 0.26); }
.ps-review     { --seg: rgba(214, 163, 92, 0.34); }
.ps-shipped    { --seg: rgba(116, 189, 136, 0.32); }
.pipe-row {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 7px 0;
}
.pipe-label { flex: none; width: 92px; font-size: 12.5px; font-weight: 540; color: var(--ink-2); overflow-wrap: anywhere; }
.pipe-bar {
  flex: 1; min-width: 0;
  display: flex; gap: 2px;
  height: 24px; border-radius: 5px; overflow: hidden;
  transition: opacity 0.15s var(--ease-out);
}
@media (hover: hover) { .pipe-row:hover .pipe-bar { opacity: 0.85; } }
.pipe-seg {
  display: flex; align-items: center; justify-content: center;
  min-width: 22px;
  font-size: 11px; font-weight: 570; color: var(--ink);
  background: var(--seg, var(--surface-3));
}
.pipe-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }
.pipe-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.pipe-legend i { width: 9px; height: 9px; border-radius: 2.5px; background: var(--seg, var(--surface-3)); }
@media (max-width: 480px) {
  .pipe-row { flex-direction: column; align-items: stretch; gap: 5px; }
  .pipe-label { width: auto; }
}

/* Deadline pressure: vertical bars per week, current week lit */
.week-chart {
  display: flex; gap: 5px; align-items: stretch;
  width: 100%; height: 128px;
  padding: 2px 0 0; text-align: center;
}
.wk-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wk-count { font-size: 11px; font-weight: 560; color: var(--ink-2); min-height: 15px; }
.wk-barwrap { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wk-bar {
  width: min(26px, 72%);
  border-radius: 3px 3px 1px 1px;
  background: var(--surface-3);
  transition: background 0.15s var(--ease-out);
}
.wk-label { font-size: 10.5px; color: var(--ink-3); line-height: 1.25; overflow-wrap: anywhere; }
.wk-col.cur .wk-bar { background: var(--red); }
.wk-col.cur .wk-count, .wk-col.cur .wk-label { color: var(--red-soft); }
.wk-col.past .wk-bar { background: rgba(255, 255, 255, 0.07); }
.wk-col.past .wk-count, .wk-col.past .wk-label { color: var(--ink-3); }
@media (hover: hover) { .week-chart:hover .wk-col.cur .wk-bar { background: #f66671; } }
@media (max-width: 480px) {
  .wk-col:nth-child(2n):not(.cur):not(.past) .wk-label { visibility: hidden; }
}

/* Team load: horizontal bars, red share = tasks on red projects */
.load-row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 7px 0;
}
.load-name { flex: none; width: 108px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; transition: color 0.15s var(--ease-out); }
@media (hover: hover) { .load-row:hover .load-name { color: var(--ink); } }
.load-track {
  flex: 1; min-width: 0;
  height: 10px; border-radius: 3px; overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
}
.load-fill { height: 100%; background: #8d8795; }
.load-fill.red { background: var(--red); }
.load-count { flex: none; min-width: 22px; text-align: right; font-size: 12px; color: var(--ink-3); }
.load-legend { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); }
.load-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2.5px; background: var(--red); }

/* Momentum: most-active vs gone-quiet */
.mom-block + .mom-block { margin-top: 18px; }
.mom-row {
  display: flex; align-items: baseline; gap: 10px;
  width: 100%; text-align: left;
  padding: 8px 2px;
  border-top: 1px solid var(--hairline);
}
.mom-name { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; transition: color 0.15s var(--ease-out); }
.mom-count { flex: none; font-size: 11.5px; color: var(--ink-3); }
@media (hover: hover) { .mom-row:hover .mom-name { color: var(--red-soft); } }

/* ── Questions (Today, Dashboard, project detail) ─────────────────────────── */
.q-card {
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  padding: 13px 14px; margin-bottom: 8px;
}
.dash-sec .q-card { background: var(--surface-2); }
.q-card.settled { padding: 9px 14px; animation: pagefade 0.15s var(--ease-out); }
.q-text { font-size: 13.5px; font-weight: 550; line-height: 1.45; overflow-wrap: anywhere; }
.q-context { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.45; overflow-wrap: anywhere; }
.q-src {
  display: inline-block; margin-top: 7px;
  font-size: 11.5px; color: var(--ink-3);
  background: var(--surface-3); border-radius: 4px; padding: 2px 7px;
  overflow-wrap: anywhere;
}
.q-src.linked { color: var(--red-soft); text-align: left; padding: 2px 7px; transition: background 0.15s var(--ease-out); }
@media (hover: hover) { .q-src.linked:hover { background: var(--red-bg); } }
.q-opts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.q-opt {
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--hairline-2); background: transparent;
  font-size: 12.5px; color: var(--ink-2);
  overflow-wrap: anywhere;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out),
              border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.q-opt:active { transform: scale(0.96); }
@media (hover: hover) { .q-opt:hover { border-color: var(--ink-3); color: var(--ink); } }
.q-free { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.q-free .text-input { flex: 1 1 150px; }
.q-dismiss {
  font-size: 12px; color: var(--ink-3); padding: 6px 8px;
  transition: color 0.15s var(--ease-out);
}
@media (hover: hover) { .q-dismiss:hover { color: var(--ink); } }
.q-undo-line { display: flex; gap: 10px; align-items: center; }
.q-undo-text { flex: 1; min-width: 0; font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.q-undo-btn { flex: none; font-size: 12.5px; font-weight: 560; color: var(--red-soft); padding: 2px 6px; }
.q-session-note { font-size: 12px; color: var(--ink-3); padding: 4px 2px 0; overflow-wrap: anywhere; }
.q-card.compact { padding: 11px 12px; }
.q-card.compact .q-text { font-size: 12.5px; }
.q-card.compact .q-context { font-size: 12px; }

/* ── Insights: read link + vault control ──────────────────────────────────── */
.ic-read { font-size: 12px; color: var(--red-soft); text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) { .ic-read:hover { text-decoration: underline; } }
.ic-vault { margin-left: auto; }
.ic-vault-btn {
  font-size: 12px; font-weight: 530; color: var(--ink-2);
  border: 1px solid var(--hairline-2); border-radius: var(--r-input);
  background: transparent; padding: 4px 10px;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.ic-vault-btn:active { transform: scale(0.96); }
@media (hover: hover) { .ic-vault-btn:hover { color: var(--ink); border-color: var(--ink-3); } }
.ic-vault-btn.queued, .ic-vault-btn:disabled { color: var(--ink-3); border-style: dashed; cursor: default; transform: none; }
.ic-vault-state { font-size: 12px; color: var(--green); }

/* ── Project detail: the read, vault refs, the system is asking ───────────── */
.read-sec {
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  padding: 16px 18px; margin-bottom: 26px;
}
.read-sec > .section-title { margin-top: 0; }
.read-asof { margin-left: auto; font-size: 12px; font-weight: 460; color: var(--ink-3); }
.read-body p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; overflow-wrap: anywhere; }
.read-body p:last-child { margin-bottom: 0; }
.read-play-label { font-size: 12px; font-weight: 580; color: var(--red-soft); margin: 14px 0 5px; }
.read-moves { margin: 0; padding-left: 20px; }
.read-moves li { font-size: 13px; line-height: 1.5; color: var(--ink); padding: 2px 0 2px 2px; overflow-wrap: anywhere; }
.read-moves li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.read-stale { font-size: 12px; color: var(--ink-3); margin-top: 12px; }

.vault-ref {
  display: block; text-decoration: none; color: inherit;
  padding: 8px 10px; margin-bottom: 6px;
  border: 1px solid var(--hairline); border-radius: var(--r-input);
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
@media (hover: hover) { .vault-ref:hover { background: var(--surface-2); border-color: var(--hairline-2); } }
.vr-top { display: flex; gap: 8px; align-items: baseline; }
.vr-title { flex: 1; min-width: 0; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.vr-type { flex: none; font-size: 10.5px; color: var(--ink-3); background: var(--surface-2); border-radius: 4px; padding: 1px 6px; }
.vr-hook { font-size: 12px; color: var(--ink-3); line-height: 1.45; margin-top: 3px; overflow-wrap: anywhere; }

.ask-block .q-card { background: var(--surface); }

/* ── People: add person + enrichment state ────────────────────────────────── */
.people-add { margin-top: 22px; }
.enrich-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.person-panel .enrich-row, .people-card .enrich-row { margin-bottom: 0; }
.enrich-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 540; color: var(--amber);
  background: var(--amber-bg); border-radius: var(--r-input);
  padding: 3px 9px;
}
.enrich-badge::before {
  content: ''; flex: none;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  animation: enrichpulse 1.8s var(--ease-out) infinite;
}
@keyframes enrichpulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .enrich-badge::before { animation: none; opacity: 1; } }
.enrich-copy { font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }
.people-card .enrich-badge { align-self: flex-start; }

.archive-btn.armed {
  color: var(--red-soft);
  border-color: rgba(244, 82, 95, 0.4);
  background: var(--red-bg);
}

/* ── Small screens ────────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  #topnav-inner { padding: 0 14px; height: 48px; }
  #page { padding: 18px 14px calc(48px + env(safe-area-inset-bottom)); }
  .view-title { font-size: 20px; }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .stagger-in { opacity: 1; transform: none; animation: none; }
}

/* ── Advisor additions (adv-*): "The read" rows on Today, Watch strip ───────── */
.adv-row {
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  margin-bottom: 6px;
  overflow: hidden;
}
.adv-head {
  display: block; width: 100%; text-align: left;
  padding: 10px 12px;
  transition: background 0.15s var(--ease-out);
}
@media (hover: hover) { .adv-head:hover { background: var(--surface-2); } }
.adv-name { font-size: 13px; font-weight: 590; margin-right: 8px; }
.adv-when { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.adv-line {
  display: block; margin-top: 3px;
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  overflow-wrap: anywhere;
}
.adv-row.open .adv-line { display: none; }
.adv-body { padding: 0 12px 12px; }
.adv-body p { font-size: 13px; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; overflow-wrap: anywhere; }
.adv-body p:last-of-type { margin-bottom: 0; }
.adv-acts { margin-top: 12px; }

.adv-watch-row {
  display: flex; gap: 10px; align-items: flex-start;
  width: 100%; text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  margin-bottom: 6px;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.adv-watch-row:active { transform: scale(0.99); }
@media (hover: hover) { .adv-watch-row:hover { background: var(--surface-2); border-color: var(--hairline-2); } }
.adv-watch-row .health-dot { margin-top: 3px; }
.adv-wr-main { min-width: 0; flex: 1; }
.adv-wr-name { font-size: 13px; font-weight: 560; overflow-wrap: anywhere; }
.adv-wr-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; overflow-wrap: anywhere; }

/* ── Ask AI: floating pill + slide-in panel ──────────────────────────────── */
.ask-ai-pill {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: var(--z-nav);
  display: flex; align-items: center; gap: 7px;
  padding: 11px 18px 11px 14px;
  background: var(--ink); color: var(--bg);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s var(--ease-out), opacity 0.16s var(--ease-out);
}
.ask-ai-pill svg { width: 15px; height: 15px; color: var(--red); }
.ask-ai-pill:active { transform: scale(0.96); }
@media (hover: hover) { .ask-ai-pill:hover { transform: translateY(-1px); } }
.ask-ai-pill.hidden { opacity: 0; transform: translateY(8px) scale(0.94); pointer-events: none; }

.ask-ai-panel {
  position: fixed; z-index: var(--z-overlay);
  right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 90px));
  background: var(--surface);
  border: 1px solid var(--hairline-2);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out);
}
.ask-ai-panel.open { opacity: 1; transform: none; }
.ask-ai-panel.hidden { display: none; }

.ask-ai-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 14px 14px 12px 18px;
  border-bottom: 1px solid var(--hairline);
}
.ask-ai-scope { flex: 1; min-width: 0; font-size: 13px; font-weight: 590; color: var(--ink); overflow-wrap: anywhere; }
.ask-ai-scope.coach { color: var(--amber); }

/* Ask / Coach switch in the panel header */
.ask-ai-mode {
  flex: none; display: flex;
  border: 1px solid var(--hairline-2); border-radius: 999px;
  overflow: hidden;
}
.ask-ai-mode button {
  padding: 4px 12px;
  font-size: 11.5px; font-weight: 540; color: var(--ink-3);
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.ask-ai-mode button.on { background: var(--ink); color: var(--bg); font-weight: 600; }
.ask-ai-mode button + button { border-left: 1px solid var(--hairline); }
@media (hover: hover) { .ask-ai-mode button:not(.on):hover { color: var(--ink); } }

.ask-ai-close { flex: none; padding: 4px; color: var(--ink-3); }
.ask-ai-close svg { width: 17px; height: 17px; }
@media (hover: hover) { .ask-ai-close:hover { color: var(--ink); } }

.ask-ai-log {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
}
.ask-ai-note {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-3);
  padding: 8px 2px 4px; overflow-wrap: anywhere;
}
.ask-ai-msg {
  max-width: 88%; font-size: 13.5px; line-height: 1.55;
  padding: 9px 12px; border-radius: 12px;
  overflow-wrap: anywhere; white-space: pre-wrap;
}
.ask-ai-msg.user {
  align-self: flex-end;
  background: var(--ink); color: var(--bg);
  border-bottom-right-radius: 4px;
}
.ask-ai-msg.assistant {
  align-self: flex-start;
  background: var(--surface-2); color: var(--ink);
  border-bottom-left-radius: 4px;
}
.ask-ai-msg.assistant.pending::after {
  content: ''; display: inline-block;
  width: 5px; height: 5px; margin-left: 2px;
  border-radius: 50%; background: var(--ink-3);
  animation: askaipulse 1s var(--ease-out) infinite;
}
@keyframes askaipulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.ask-ai-msg.assistant.error { color: var(--red-soft); }

.ask-ai-composer {
  flex: none; display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px; border-top: 1px solid var(--hairline);
}
.ask-ai-input {
  flex: 1; resize: none; max-height: 140px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--hairline); border-radius: var(--r-input);
  padding: 9px 11px; font-size: 13.5px; line-height: 1.4;
}
.ask-ai-input:focus { border-color: rgba(244, 82, 95, 0.5); outline: none; }
.ask-ai-send {
  flex: none; padding: 9px 14px;
  background: var(--red); color: #fff;
  border-radius: var(--r-input); font-size: 13px; font-weight: 600;
}
.ask-ai-send:active { transform: scale(0.96); }
.ask-ai-send:disabled { opacity: 0.45; }

@media (max-width: 700px) {
  .ask-ai-panel {
    right: 8px; left: 8px; bottom: calc(8px + env(safe-area-inset-bottom));
    width: auto; height: min(72vh, 560px);
  }
  .ask-ai-pill { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}

/* ── The brief (Now / Next / Watch) — project detail + Today ──────────────── */
.brief-sec {
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  padding: 16px 18px; margin-bottom: 26px;
}
.brief-sec > .section-title { margin-top: 0; }
.brief-title { flex: 1; min-width: 0; }
.brief-asof { font-size: 12px; font-weight: 460; color: var(--ink-3); }
.brief-asof:empty { display: none; }
.brief-refresh {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: var(--r-input); color: var(--ink-3);
  transition: color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.brief-refresh svg { width: 13px; height: 13px; }
.brief-refresh:active { transform: scale(0.94); }
@media (hover: hover) { .brief-refresh:hover { color: var(--ink); background: var(--surface-2); } }

.brief-updating {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 540; color: var(--ink-3);
}
.brief-updating-dot {
  flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  animation: enrichpulse 1.8s var(--ease-out) infinite;
}
@media (prefers-reduced-motion: reduce) { .brief-updating-dot { animation: none; opacity: 1; } }

.brief-lanes { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .brief-lanes { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
}
.brief-lanes .sk-card { height: 84px; }
.brief-lane-label { font-size: 12px; font-weight: 580; color: var(--ink-3); margin-bottom: 4px; }
.brief-lane-label.watch { color: var(--red-soft); }
.brief-line {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
  padding: 2px 0;
}
.brief-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.brief-when { flex: none; font-size: 11.5px; color: var(--ink-3); padding-top: 3px; }
.brief-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; margin-top: 7px; }
.brief-dot.good { background: var(--green); }
.brief-dot.risk { background: var(--amber); }

/* ── Follow-ups ───────────────────────────────────────────────────────────── */
.fu-add { margin-bottom: 22px; }
.fu-add .text-input.person-in { flex: 0 1 170px; }
.fu-add .text-input.grow { flex: 1 1 220px; }
.fu-add .date-input { flex: 0 1 140px; }

.fu-groups { max-width: 720px; }
.fu-group { margin-bottom: 24px; }
.fu-group-head {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 6px; margin-bottom: 2px;
  border-bottom: 1px solid var(--hairline);
}
.fu-group-name { font-size: 13px; font-weight: 560; color: var(--ink-2); }
button.fu-group-name.linked {
  color: var(--ink); padding: 0;
  transition: color 0.15s var(--ease-out);
}
@media (hover: hover) { button.fu-group-name.linked:hover { color: var(--red-soft); } }

.fu-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--hairline);
}
.fu-row:last-child { border-bottom: none; }
.fu-body { min-width: 0; flex: 1; }
.fu-top { display: flex; gap: 8px; align-items: flex-start; }
.fu-kind {
  flex: none; font-size: 10.5px; font-weight: 570;
  border-radius: 4px; padding: 2px 6px; margin-top: 2px; white-space: nowrap;
}
.fu-kind.owe { color: var(--red-soft); background: var(--red-bg); }
.fu-kind.waiting { color: var(--amber); background: var(--amber-bg); }
.fu-text { font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.fu-text.done { color: var(--ink-3); text-decoration: line-through; }
.fu-meta {
  display: flex; flex-wrap: wrap; gap: 4px 12px;
  font-size: 11.5px; color: var(--ink-3); margin-top: 3px;
}
.fu-age.amber { color: var(--amber); }
.fu-age.red { color: var(--red-soft); }
.fu-due.soon { color: var(--red-soft); }
.fu-proj { font-size: 11.5px; color: var(--ink-3); padding: 0; transition: color 0.15s var(--ease-out); }
@media (hover: hover) { .fu-proj:hover { color: var(--ink); } }
.fu-source { font-size: 12px; color: var(--ink-3); margin-top: 3px; overflow-wrap: anywhere; }
.fu-move { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; user-select: text; overflow-wrap: anywhere; }
.fu-move-label { color: var(--ink-3); font-weight: 560; }
.fu-done { margin-top: 4px; }

/* Today: one quiet aging line under the brief */
.fu-aging-line {
  display: block; text-align: left;
  font-size: 12.5px; color: var(--amber);
  padding: 4px 0; margin: -8px 0 14px;
  transition: color 0.15s var(--ease-out);
}
@media (hover: hover) { .fu-aging-line:hover { color: var(--ink); } }

/* Suggested-nudge copy button */
.fu-copy {
  margin-left: 8px; padding: 2px 9px;
  font-size: 11.5px; font-weight: 540; color: var(--ink-2);
  border: 1px solid var(--hairline-2); border-radius: var(--r-input);
  background: transparent; vertical-align: 1px;
  transition: color 0.15s var(--ease-out), border-color 0.15s var(--ease-out),
              background 0.15s var(--ease-out), transform 0.14s var(--ease-out);
}
.fu-copy:active { transform: scale(0.96); }
.fu-copy.copied { color: var(--green); background: var(--green-bg); border-color: transparent; }
@media (hover: hover) { .fu-copy:hover { color: var(--ink); border-color: var(--ink-3); } }

@media (max-width: 700px) {
  .fu-row { padding: 11px 0; }
  .fu-add .text-input.person-in { flex: 1 1 100%; }
}

/* ── Glance strip (top of Today) ──────────────────────────────────────────── */
/* Three quiet lines, not a card: Tend · Owed · Coach. An empty strip leaves
   no trace. */
.glance-strip {
  margin: -6px 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.glance-strip:empty { display: none; }
.glance-row {
  display: flex; align-items: baseline; gap: 10px;
  width: 100%; text-align: left;
  padding: 4px 0;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.glance-key { flex: none; width: 46px; font-size: 12px; font-weight: 580; color: var(--ink-3); }
.glance-val { flex: 1; min-width: 0; overflow-wrap: anywhere; transition: color 0.15s var(--ease-out); }
.glance-val strong { color: var(--ink); font-weight: 580; }
.glance-age { flex: none; font-size: 11.5px; color: var(--ink-3); }
@media (hover: hover) { button.glance-row:hover .glance-val { color: var(--ink); } }

/* ── Playbook (person detail) ─────────────────────────────────────────────── */
.pb-card {
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  background: var(--surface);
  padding: 16px 18px;
  margin-bottom: 18px;
}
/* The person column stacks without flex gap; the dossier fold spaces itself. */
.person-grid .fold-card { margin-bottom: 22px; }
.pb-card > .section-title { margin-top: 0; flex-wrap: wrap; }
.pb-temp {
  font-size: 11.5px; font-weight: 540; color: var(--ink-2);
  background: var(--surface-3); border-radius: 4px; padding: 2px 8px;
  overflow-wrap: anywhere;
}
.pb-last { margin-left: auto; font-size: 12px; font-weight: 460; color: var(--ink-3); }
.pb-grid {
  display: grid; gap: 7px 14px;
  grid-template-columns: 86px minmax(0, 1fr);
}
.pb-k { font-size: 12px; font-weight: 570; color: var(--ink-3); padding-top: 1px; }
.pb-v { font-size: 13px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.pb-landmines {
  margin-top: 12px; padding: 10px 12px;
  background: var(--amber-bg); border-radius: var(--r-input);
}
.pb-lm-label { display: block; font-size: 11.5px; font-weight: 580; color: var(--amber); margin-bottom: 3px; }
.pb-landmines .pb-v { color: var(--ink-2); }
.pb-commits { margin-top: 14px; }
.pb-commit { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.pb-commit .fu-kind { margin-top: 1px; }
.pb-commit .bullet {
  flex: none; width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-3); margin: 8px 20px 0 6px;
}
.pb-commit-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.pb-age { flex: none; font-size: 11.5px; color: var(--ink-3); padding-top: 2px; }
@media (max-width: 480px) { .pb-grid { grid-template-columns: 72px minmax(0, 1fr); } }

/* Full dossier fold: long prose keeps its line breaks */
.dossier-body p {
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
  margin-bottom: 10px; overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.dossier-body p:last-child { margin-bottom: 0; }

/* ── Overnight report + Worth thinking about ─────────────────────────────── */
.think-read {
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
  margin: 0 0 12px; overflow-wrap: anywhere;
}
.think-read:last-child { margin-bottom: 0; }
.ov-wrap { max-width: 760px; }
.ov-dates { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ov-h1, .ov-h2 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 26px 0 10px; }
.ov-h3, .ov-h4 { font-size: 14px; font-weight: 600; color: var(--ink); margin: 20px 0 8px; }
.ov-p {
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
  margin: 0 0 12px; overflow-wrap: anywhere;
}
.ov-list { margin: 0 0 14px; padding-left: 20px; }
.ov-list li {
  font-size: 14px; line-height: 1.6; color: var(--ink-2);
  margin-bottom: 6px; overflow-wrap: anywhere;
}
