/* HarveyOS cross-product clarity release.
   Loaded last so shell-wide usability corrections stay explicit and removable. */
:root {
  --font-speak: var(--exec-display);
  --font-work: var(--exec-body);
  --font-mono: var(--exec-data);
  --micro-copy: .8125rem;
  --micro-copy-mobile: .8125rem;
  --support-copy: .875rem;
  --reading-copy: .9375rem;

  /* Dark instrument with one muted green-to-blue product spectrum. */
  --bg-app: #08090d;
  --bg-surface: #11131a;
  --bg-raised: #191c27;
  --border-subtle: #343943;
  --border-focus: #5f8faa;
  --text-main: #f7f8ff;
  --text-dim: #d0d4dc;
  --text-secondary: #c4cad3;
  --steel: #4f7898;
  --steel-soft: #70b198;
  --accent-green: #4fa477;
  --accent-mid: #528f91;
  --accent-blue: #5f8faa;
  --accent-gradient:linear-gradient(118deg,#4fa477 0%,#528f91 50%,#5f8faa 100%);
  --accent-gradient-soft:linear-gradient(118deg,rgba(79,164,119,.18),rgba(82,143,145,.14) 50%,rgba(95,143,170,.18));
  --success: #4fa477;
  --danger: #c86268;
  --warning: #c7a847;
  --exec-muted: #c4cad3;
  --exec-steel-soft: #70b198;
  --exec-amber: #c7a847;
  --exec-border: #343943;
  --exec-panel: linear-gradient(180deg,#17191e,#111318);
  --surface-a: linear-gradient(180deg,rgba(23,25,30,.98),rgba(15,17,21,.98));
  --surface-b: linear-gradient(180deg,#181a20,#111318);
  --surface-c: rgba(18,20,24,.84);
  --line-soft: rgba(82,143,145,.14);
  --line-med: rgba(95,143,170,.24);
  --ink-faint: #b8c0cb;
  --amber: #c7a847;
}

/* Desktop is an executive reading surface, not a 13px monitoring console.
   Scale with the available viewport, but cap it so laptop layouts remain
   composed and browser zoom stays an accessibility preference—not a repair. */
@media (min-width:1024px) {
  html { font-size:clamp(17px,1vw,19px); }
  body:not(.page-login) { font-size:1rem; }
}

/* Today v2 — the executive judgment loop. The primary screen is intentionally
   not a dashboard: three decisions, their evidence, and explicit correction. */
.page-today main { width:100%; max-width:none; padding:0; }
.page-today .foot { margin-top:0; }
.judgment-shell {
  width:min(100%,1560px);
  margin:0 auto;
  padding:34px clamp(22px,3vw,48px) 56px;
}
.judgment-header {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:24px;
}
.judgment-header h1 {
  margin:0;
  color:#f7f8ff;
  font:700 clamp(2.4rem,4vw,3.5rem)/.98 var(--font-display);
  letter-spacing:-.045em;
}
.judgment-header p {
  margin:10px 0 0;
  color:#c6cbd3;
  font:500 1.08rem/1.45 var(--exec-body);
}
.judgment-freshness { display:flex; align-items:center; gap:16px; color:#aeb5c0; font-size:.85rem; }
.judgment-freshness a { min-height:44px; display:inline-flex; align-items:center; color:#84b7aa; }
.judgment-alert {
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  margin-bottom:18px; padding:13px 16px;
  border:1px solid rgba(200,98,104,.48); border-radius:8px;
  background:rgba(200,98,104,.08);
}
.judgment-alert b { color:#e8a1a6; }
.shift-totals {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  margin:0 0 16px; border:1px solid #343a44; border-radius:11px;
  background:linear-gradient(180deg,#12161b,#0d1014); overflow:hidden;
}
.shift-totals a {
  min-width:0; min-height:88px; display:grid; align-content:center; gap:3px;
  padding:14px 16px; border-right:1px solid #303640; color:#dfe3e9;
  text-decoration:none;
}
.shift-totals a:last-child { border-right:0; }
.shift-totals a:hover,.shift-totals a:focus-visible { background:#171c22; }
.shift-totals b { color:#f5f7fb; font:750 1.55rem/1 var(--font-num); }
.shift-totals span { font-size:.84rem; font-weight:750; }
.shift-totals small { color:#a3acb8; font-size:.8rem; }
.shift-totals .has-alert { background:rgba(199,168,71,.055); }
.shift-totals .has-alert b,.shift-totals .has-alert span { color:#d7bf6d; }
.shift-changes {
  margin:0 0 22px; border:1px solid #34434c; border-radius:10px;
  background:rgba(79,120,152,.045); overflow:hidden;
}
.shift-changes > header {
  display:flex; align-items:end; justify-content:space-between; gap:18px;
  padding:15px 17px 12px;
}
.shift-changes header small,.judgment-section-heading > div > small {
  color:#6fb7ae; font:750 .72rem var(--exec-data); letter-spacing:.09em;
  text-transform:uppercase;
}
.shift-changes h2 { margin:3px 0 0; color:#edf0f4; font-size:1rem; }
.shift-changes header a { color:#80b8ab; font-size:.75rem; }
.shift-changes > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid #303640; }
.shift-changes > div a { min-width:0; display:grid; gap:4px; padding:13px 16px; border-right:1px solid #303640; border-bottom:1px solid #303640; color:#dfe3e9; text-decoration:none; }
.shift-changes > div a:nth-child(3n) { border-right:0; }
.shift-changes > div span { color:#75b3aa; font:700 .64rem var(--exec-data); text-transform:uppercase; }
.shift-changes > div b { font-size:.82rem; line-height:1.35; }
.shift-changes > div small { color:var(--text-secondary); font-size:.72rem; line-height:1.4; }
.shift-changes > p { margin:0; padding:10px 16px; color:var(--text-secondary); font-size:.72rem; }
.work-radar-census {
  display:grid; grid-template-columns:repeat(8,minmax(0,1fr));
  margin:0 0 16px; border:1px solid #343a44; border-radius:10px;
  background:#0d1014; overflow:hidden;
}
.work-radar-census a {
  min-width:0; min-height:78px; display:grid; align-content:center; gap:2px;
  padding:12px 14px; border-right:1px solid #303640; color:#dfe3e9;
  text-decoration:none;
}
.work-radar-census a:last-child { border-right:0; }
.work-radar-census a:hover,.work-radar-census a:focus-visible { background:#15191f; }
.work-radar-census b { color:#f5f7fb; font:700 1.35rem/1 var(--font-num); }
.work-radar-census span { font-size:.8rem; font-weight:700; }
.work-radar-census small { color:var(--text-secondary); font-size:.72rem; }
.work-radar-census .has-alert { background:rgba(200,98,104,.07); }
.work-radar-census .has-alert b,.work-radar-census .has-alert span { color:#e5a1a6; }
.master-caution {
  margin:0 0 20px; border:1px solid rgba(199,168,71,.46); border-radius:10px;
  background:rgba(199,168,71,.045); overflow:hidden;
}
.master-caution > header,.judgment-section-heading,.work-radar-heading {
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.master-caution > header { padding:14px 17px; }
.master-caution h2,.judgment-section-heading h2,.work-radar-heading h2 { margin:0; color:#f1f3f7; font-size:1rem; }
.master-caution header p,.judgment-section-heading p,.work-radar-heading p { margin:4px 0 0; color:#adb5c0; font-size:.88rem; line-height:1.45; }
.master-caution header a,.judgment-section-heading > a,.work-radar-heading a { color:#80b8ab; font-size:.84rem; }
.master-caution.is-clear { border-color:rgba(79,164,119,.32); background:rgba(79,164,119,.035); }
.master-caution-clear { margin:0; padding:0 17px 15px; color:#8db9aa; font-size:.82rem; }
.master-caution-rows { display:grid; border-top:1px solid rgba(199,168,71,.25); }
.master-caution-rows a {
  display:grid; grid-template-columns:110px minmax(0,1fr) auto; gap:14px;
  min-height:46px; align-items:center; padding:8px 17px; border-bottom:1px solid #2b3038;
  color:#dce0e6; text-decoration:none;
}
.master-caution-rows a:last-child { border-bottom:0; }
/* One-tap clear (2026-09-10): the row is a link plus two verbs. The link keeps
   its grid; the verbs sit in a slim rail on the right and never wrap the copy. */
.master-caution-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:stretch; border-bottom:1px solid #2b3038; }
.master-caution-row:last-child { border-bottom:0; }
.master-caution-row > a { border-bottom:0; }
.master-caution-verbs { display:flex; gap:6px; align-items:center; padding:0 12px 0 8px; border-left:1px solid rgba(255,252,248,.07); }
.master-caution-verbs button {
  min-height:32px; padding:0 12px; border:1px solid rgba(82,237,171,.32); border-radius:8px;
  background:rgba(82,237,171,.06); color:#d8fff0; font:700 .74rem var(--exec-data); letter-spacing:.04em; text-transform:uppercase; cursor:pointer;
}
.master-caution-verbs button:last-child { border-color:rgba(255,252,248,.16); background:rgba(255,252,248,.04); color:#c8cdd4; }
.master-caution-verbs button:hover, .master-caution-verbs button:focus-visible { filter:brightness(1.18); outline:none; }
.today-exception-quick { display:flex; gap:6px; margin-top:8px; }
.today-exception-quick button { flex:1; min-height:36px; margin:0; font-size:.74rem; letter-spacing:.04em; text-transform:uppercase; }
.today-exception-quick button:last-child { color:#c8cdd4; border-color:rgba(255,252,248,.16); background:rgba(255,252,248,.04); }
.master-caution-rows span { color:#d0b861; font:700 .72rem var(--exec-data); text-transform:uppercase; }
.master-caution-rows .is-overdue span { color:#e29ca1; }
.master-caution-rows b { font-size:.92rem; }
.master-caution-rows small { color:#a4adb8; font-size:.8rem; text-transform:capitalize; }
.master-coverage {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  border-top:1px solid rgba(199,168,71,.22);
}
.master-coverage > div { display:grid; gap:3px; padding:12px 17px; border-right:1px solid #303640; }
.master-coverage > div:last-child { border-right:0; }
.master-coverage b { color:#e4e8ee; font:700 1.15rem var(--font-num); }
.master-coverage span { color:#c0c6cf; font-size:.84rem; font-weight:700; }
.master-coverage small { color:#9ca5b1; font-size:.8rem; line-height:1.4; }
.master-coverage a { display:inline-flex; margin-top:5px; color:#80b8ab; font-size:.8rem; }
.master-coverage .has-gap { background:rgba(199,168,71,.045); }
.master-coverage .has-gap b { color:#d6be6b; }
.judgment-section-heading { margin:4px 0 12px; padding:0 2px; }
.judgment-section-heading h2 { margin-top:3px; font-size:1.2rem; }
.judgment-layout { display:block; }
.judgment-main { min-width:0; }
.judgment-list { display:grid; gap:10px; }
.judgment-item {
  position:relative;
  border:1px solid #343a44;
  border-radius:10px;
  background:#111419;
  overflow:hidden;
  transition:opacity .22s ease,transform .22s ease,border-color .16s ease;
}
.judgment-item.is-primary { border-color:#466872; box-shadow:inset 3px 0 0 #528f91; }
.judgment-item.is-resolved { opacity:0; transform:translateY(-8px); pointer-events:none; }
.judgment-item-header { display:grid; grid-template-columns:46px minmax(0,1fr); gap:14px; padding:20px 20px 12px; }
.judgment-rank {
  width:38px; height:38px; display:grid; place-items:center;
  border:1px solid #528f91; border-radius:50%; color:#8dc8ca;
  font:600 1.15rem var(--font-num);
}
.judgment-item-header small {
  display:block; margin:1px 0 6px; color:#6eb1a4;
  font:600 .72rem/1.2 var(--exec-data); letter-spacing:.09em; text-transform:uppercase;
}
.judgment-item-header h2 { margin:0; color:#f1f3f7; font:700 1.22rem/1.28 var(--exec-body); letter-spacing:-.012em; }
.judgment-subject { margin:7px 0 0; color:var(--text-secondary); font-size:.78rem; line-height:1.4; }
.custody-strip {
  display:grid; grid-template-columns:.72fr 1fr 1.55fr;
  margin:0 20px 12px 80px; border:1px solid #303640; border-radius:8px;
  background:#0e1115; overflow:hidden;
}
.custody-strip section { min-width:0; display:grid; align-content:start; gap:4px; padding:11px 13px; border-right:1px solid #303640; }
.custody-strip section:last-child { border-right:0; }
.custody-strip small,.custody-state-machine small {
  color:#6fb7ae; font:750 .72rem var(--exec-data); letter-spacing:.07em; text-transform:uppercase;
}
.custody-strip b { color:#e7eaf0; font-size:.8rem; line-height:1.35; overflow-wrap:anywhere; }
.custody-strip span { color:var(--text-secondary); font-size:.72rem; line-height:1.35; }
.custody-state-machine {
  display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:stretch;
  gap:0; margin:0 20px 11px 80px;
}
.custody-state-machine section { min-width:0; padding:11px 12px; border:1px solid #303640; border-radius:7px; background:#14181e; }
.custody-state-machine > span { display:grid; place-items:center; width:28px; color:#5f8faa; font-size:1rem; }
.custody-state-machine p { margin:5px 0 0; color:#cbd0d8; font-size:.76rem; line-height:1.42; overflow-wrap:anywhere; }
.judgment-facts {
  display:grid;
  grid-template-columns:1.1fr 1fr .82fr .9fr 1.12fr;
  margin:0 20px 14px 80px;
  border-top:1px solid #303640;
  border-bottom:1px solid #303640;
}
.judgment-facts > section { min-width:0; padding:14px 15px; border-right:1px solid #303640; }
.judgment-facts > section:first-child { padding-left:0; }
.judgment-facts > section:last-child { padding-right:0; border-right:0; }
.judgment-facts small,.judgment-evidence h3 {
  display:block; margin:0 0 7px; color:var(--text-secondary);
  font:600 .71rem/1.25 var(--exec-data); letter-spacing:.045em; text-transform:uppercase;
}
.judgment-facts p { margin:0; color:#e5e8ee; font-size:.91rem; line-height:1.42; overflow-wrap:anywhere; }
.judgment-facts span { display:block; margin-top:5px; color:var(--text-secondary); font-size:.78rem; line-height:1.4; overflow-wrap:anywhere; }
.judgment-consequence p { color:#e0a0a4; }
.judgment-move p { color:#a8d3c6; }
.judgment-evidence { margin:0 20px 0 80px; border-bottom:1px solid #303640; }
.judgment-evidence > summary,.judgment-teach > summary,.judgment-more-context > summary {
  min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px;
  color:#8dbeb3; cursor:pointer; font-size:.84rem; font-weight:600;
}
.judgment-evidence > summary::after,.judgment-teach > summary::after { content:"⌄"; color:#75808e; }
.judgment-evidence[open] > summary::after,.judgment-teach[open] > summary::after { transform:rotate(180deg); }
.judgment-evidence > div { display:grid; grid-template-columns:1fr 1fr; gap:0; padding:0 0 14px; }
.judgment-evidence section { padding:12px 18px 4px 0; }
.judgment-evidence section + section { padding-left:20px; border-left:1px solid #303640; }
.judgment-evidence h3 { color:#6fb7ae; }
.judgment-evidence p { position:relative; margin:7px 0; padding-left:15px; color:#c7ccd4; font-size:.84rem; line-height:1.45; }
.judgment-evidence p::before { content:""; position:absolute; left:0; top:.55em; width:5px; height:5px; border-radius:50%; background:#528f91; }
.judgment-evidence section + section p::before { background:#c7a847; }
.judgment-actions { display:grid; grid-template-columns:minmax(180px,1fr) 170px; gap:10px; padding:14px 20px 18px 80px; }
.judgment-actions > form { display:flex; margin:0; }
.judgment-actions > form .judgment-open-source { width:100%; }
.judgment-open-source {
  min-height:44px; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid #5b8e92; border-radius:7px;
  background-color:#4f967f;
  background-image:linear-gradient(100deg,#4fa477,#5f8faa); color:#fff !important;
  font-size:.9rem; font-weight:700; text-decoration:none !important;
}
.judgment-open-source:hover,.judgment-open-source:focus-visible { filter:brightness(1.08); }
.judgment-teach { position:relative; border:1px solid #3a414c; border-radius:7px; }
.judgment-teach > summary { padding:0 12px; color:#c2c8d0; justify-content:center; }
.judgment-teach > div {
  position:absolute; z-index:20; right:0; top:calc(100% + 6px); width:180px;
  display:grid; padding:6px; border:1px solid #414957; border-radius:8px;
  background:#171b21; box-shadow:0 18px 50px rgba(0,0,0,.5);
}
.judgment-feedback-note {
  width:100%; min-height:42px; padding:8px 10px; border:0; border-bottom:1px solid #3a414c;
  border-radius:0; background:#11151a; color:#eef1f5; font-size:.84rem;
}
.judgment-teach button { min-height:42px; border:0; border-radius:5px; background:transparent; color:#d7dbe2; text-align:left; padding:0 11px; font-size:.84rem; }
.judgment-teach button:hover,.judgment-teach button:focus-visible { background:#242a32; color:#fff; }
.judgment-clear-state { padding:54px 28px; border:1px solid #343a44; border-radius:10px; background:#111419; }
.judgment-clear-state h2 { margin:0 0 8px; font-size:1.5rem; }
.judgment-clear-state p { max-width:650px; color:#aab1bc; line-height:1.6; }
.judgment-clear-state a { display:inline-flex; min-height:44px; align-items:center; color:#82bbae; }
.judgment-more-context { margin-top:14px; border:1px solid #303640; border-radius:9px; background:#0e1115; }
.judgment-more-context > summary { padding:13px 18px; color:#e2e5ea; }
.judgment-more-context > summary span { font-size:.95rem; }
.judgment-more-context > summary small { color:var(--text-secondary); font-size:.76rem; font-weight:400; }
.judgment-context-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); border-top:1px solid #303640; }
.judgment-context-groups > section { padding:18px; border-right:1px solid #303640; }
.judgment-context-groups > section:last-child { border-right:0; }
.judgment-context-groups h2 { margin:0 0 10px; color:#aeb6c2; font-size:.82rem; text-transform:uppercase; letter-spacing:.05em; }
.judgment-context-groups a { display:grid; gap:3px; min-height:44px; padding:8px 0; border-top:1px solid #252a32; color:#d8dce3; text-decoration:none; }
.judgment-context-groups a:first-of-type { border-top:0; }
.judgment-context-groups b { font-size:.84rem; }
.judgment-context-groups small { color:var(--text-secondary); line-height:1.35; }
.judgment-rail {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px;
  width:100%; margin:22px 0 0; align-items:start;
}
.judgment-rail > section {
  min-width:0; padding:20px 22px 22px; overflow:hidden;
  border:1px solid #343b46; border-radius:11px;
  background:linear-gradient(180deg,rgba(22,25,31,.96),rgba(13,16,20,.98));
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.judgment-rail > section:first-child {
  border-top-color:rgba(49,120,255,.56);
  background:radial-gradient(90% 70% at 4% 0%,rgba(49,120,255,.08),transparent 68%),#0e1115;
}
.judgment-rail > section.custody-gaps {
  border-top-color:rgba(255,201,64,.58);
  background:radial-gradient(90% 70% at 4% 0%,rgba(255,201,64,.075),transparent 68%),#0e1115;
}
.judgment-rail > section:last-child {
  border-top-color:rgba(167,164,160,.44);
}
.judgment-rail header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:7px; }
.judgment-rail h2 { margin:0; color:#eef0f4; font-size:1rem; }
.judgment-rail header a { color:#76b5aa; font-size:.75rem; }
.judgment-rail-row { display:grid; grid-template-columns:minmax(0,1fr); gap:4px; padding:12px 0; border-bottom:1px solid #292f38; color:#d9dde4; text-decoration:none; }
.judgment-rail-row b { font-size:.84rem; line-height:1.35; }
.judgment-rail-row small { color:var(--text-secondary); font-size:.7rem; }
.judgment-rail-row span { color:var(--text-secondary); font-size:.76rem; line-height:1.4; }
.judgment-rail-empty { margin:0; padding:12px 0; color:var(--text-secondary); font-size:.82rem; line-height:1.55; }
.judgment-rail-intro { margin:4px 0 8px; color:var(--text-secondary); font-size:.75rem; line-height:1.45; }
.custody-gaps { background:rgba(199,168,71,.025); }
.custody-gaps .judgment-rail-row small { color:#d1b960; text-transform:capitalize; }
.judgment-rail-gap { border-bottom:1px solid #292f38; }
.judgment-rail-gap .judgment-rail-row { border-bottom:0; }
.judgment-rail-gap details { padding:0 0 9px; }
.judgment-rail-gap summary,.commitment-custody-edit > summary {
  min-height:36px; display:flex; align-items:center; color:#80b8ab;
  cursor:pointer; font-size:.75rem; list-style:none;
}
.judgment-rail-gap summary::-webkit-details-marker,
.commitment-custody-edit > summary::-webkit-details-marker { display:none; }
.judgment-rail-gap summary::before,.commitment-custody-edit > summary::before { content:"+"; margin-right:6px; }
.judgment-rail-gap details[open] summary::before,.commitment-custody-edit[open] > summary::before { content:"−"; }
.judgment-rail-gap form { display:grid; gap:7px; padding:5px 0; }
.judgment-rail-gap :is(input,select,button) { width:100%; min-height:42px; font-size:1rem; }
.judgment-rail-gap > .record-editor-trigger {
  width:100%; min-height:44px; display:inline-flex; align-items:center;
  justify-content:center;
}
.judgment-spine p { margin:12px 0 0; color:#dce0e6; line-height:1.5; }
.judgment-spine form { display:grid; gap:9px; margin-top:12px; }
.judgment-spine label { color:#aab2be; font-size:.8rem; }
.judgment-spine :is(input,button) { min-height:44px; }

.recommendation-timestamps { display:flex; flex-wrap:wrap; gap:5px 14px; align-items:center; }
.recommendation-timestamps time { color:#94a8b4; font-variant-numeric:tabular-nums; }

.commitment-custody-edit { width:100%; }
.commitment-custody-edit > summary { min-height:42px; justify-content:center; border:1px solid var(--border-subtle); border-radius:6px; }
.commitment-custody-edit form { display:grid; gap:6px; margin-top:7px; }
.commitment-custody-edit :is(input,select,button) { min-height:42px; width:100%; font-size:1rem; }
.commitment-detail-edit form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding:10px; border:1px solid var(--border-subtle); border-radius:9px; background:rgba(9,12,15,.72); }
.commitment-detail-edit label { display:grid; gap:4px; min-width:0; }
.commitment-detail-edit label > span { color:var(--text-dim); font-size:.69rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.commitment-detail-edit .is-wide { grid-column:1/-1; }
.commitment-detail-edit :is(input,select,textarea) { width:100%; min-width:0; font-size:.86rem; }
.commitment-edit-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.commitment-edit-footer small { color:var(--text-dim); font-size:.72rem; line-height:1.4; }
.commitment-edit-footer button { width:auto; min-width:142px; }

/* A selected flow route becomes a URL-addressable working field, never a
   detached overlay. Its source hue emits the local light; record controls
   remain the same durable controls used by the complete inventory. */
.flow-cohort {
  position:relative; isolation:isolate; margin:16px 0 24px; overflow:hidden;
  scroll-margin-top:82px; border:1px solid color-mix(in srgb,var(--cohort-hue) 52%,#343943);
  border-radius:12px; background:
    radial-gradient(75% 130% at 4% -20%,color-mix(in srgb,var(--cohort-hue) 17%,transparent),transparent 68%),
    linear-gradient(180deg,#12151a,#0d1014);
  box-shadow:0 18px 46px -34px color-mix(in srgb,var(--cohort-hue) 74%,transparent);
}
.flow-cohort::before {
  content:""; position:absolute; z-index:-1; inset:0 auto auto 0; width:38%; height:2px;
  background:linear-gradient(90deg,var(--cohort-hue),transparent);
  box-shadow:0 0 18px color-mix(in srgb,var(--cohort-hue) 82%,transparent);
}
.flow-cohort-head {
  display:flex; align-items:end; justify-content:space-between; gap:28px;
  padding:24px clamp(20px,2.5vw,34px) 20px;
}
.flow-cohort-eyebrow {
  color:var(--cohort-hue); font:750 .76rem var(--exec-data);
  letter-spacing:.1em; text-transform:uppercase;
  text-shadow:0 0 18px color-mix(in srgb,var(--cohort-hue) 62%,transparent);
}
.flow-cohort h2 { margin:6px 0 0; color:var(--text-main); font-size:clamp(1.35rem,2.2vw,2rem); }
.flow-cohort-head p { max-width:720px; margin:7px 0 0; color:var(--text-secondary); line-height:1.5; }
.flow-cohort-count { display:flex; align-items:baseline; gap:8px; color:var(--text-secondary); white-space:nowrap; }
.flow-cohort-count b {
  color:var(--cohort-hue); font:750 clamp(2rem,4vw,3.2rem)/1 var(--font-num);
  text-shadow:0 0 24px color-mix(in srgb,var(--cohort-hue) 76%,transparent);
}
.flow-cohort-count span { font-weight:650; }
.flow-cohort-path {
  display:grid; grid-template-columns:auto minmax(60px,1fr) auto auto;
  align-items:center; gap:14px; min-height:58px; padding:8px clamp(20px,2.5vw,34px);
  border-block:1px solid rgba(255,255,255,.075); color:var(--text-main); font-weight:700;
}
.flow-cohort-path i {
  position:relative; height:1px; background:color-mix(in srgb,var(--cohort-hue) 46%,transparent);
  box-shadow:0 0 12px color-mix(in srgb,var(--cohort-hue) 64%,transparent);
}
.flow-cohort-path i::after {
  content:""; position:absolute; right:0; top:-3px; width:7px; height:7px;
  border-radius:50%; background:var(--cohort-hue); box-shadow:0 0 15px var(--cohort-hue);
}
.flow-cohort-path a {
  min-height:44px; display:inline-flex; align-items:center; margin-left:14px;
  color:var(--text-secondary); font-size:.82rem; font-weight:600;
}
.flow-cohort > .work-radar-rows { margin:20px clamp(20px,2.5vw,34px) 26px; }
.flow-cohort-zero {
  margin:0; padding:22px clamp(20px,2.5vw,34px) 26px;
  color:var(--text-secondary); line-height:1.55;
}
.flow-cohort-zero a { color:var(--cohort-hue); }

.work-radar { margin-top:28px; border-top:1px solid #38404a; }
.work-radar-heading { padding:24px 0 18px; }
.work-radar-heading h2 { font-size:1.35rem; }
.work-radar-heading nav { display:flex; flex-wrap:wrap; justify-content:end; gap:16px; }
.work-radar-lane { border-top:1px solid #303640; }
.work-radar-lane > header {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding:16px 2px 12px;
}
.work-radar-lane > header h3 { margin:0; color:#e8ebf0; font-size:.94rem; }
.work-radar-lane > header h3 span {
  display:inline-grid; min-width:24px; height:24px; margin-left:5px; place-items:center;
  border:1px solid #3b444f; border-radius:50%; color:#94a0ad; font:600 .72rem var(--font-num);
}
.work-radar-lane > header p { margin:4px 0 0; color:var(--text-secondary); font-size:.77rem; }
.work-radar-lane > header > a { min-height:44px; display:inline-flex; align-items:center; color:#7fb5aa; font-size:.76rem; }
.work-radar-rows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid #303640; border-radius:9px; overflow:hidden; background:#0e1115; }
.work-radar-row {
  display:grid; grid-template-columns:5px minmax(0,1fr) 132px; gap:0 14px;
  min-width:0; border-right:1px solid #292f37; border-bottom:1px solid #292f37;
}
.work-radar-row:nth-child(2n) { border-right:0; }
.work-radar-state { background:#4f7898; }
.work-radar-row.is-waiting .work-radar-state { background:#c7a847; }
.work-radar-row.is-triage .work-radar-state { background:#5f8faa; }
.work-radar-row.is-deferred .work-radar-state { background:#716f8c; }
.work-radar-row.is-dismissed .work-radar-state { background:#67707b; }
.work-radar-row.is-background .work-radar-state { background:#528f91; opacity:.55; }
.work-radar-row.has-deadline .work-radar-state { background:#c86268; }
.work-radar-copy { min-width:0; padding:13px 0; }
.work-radar-copy > a { color:#e8ebf0; text-decoration:none; }
.work-radar-copy b { display:block; font-size:.88rem; line-height:1.35; overflow-wrap:anywhere; }
.work-radar-copy p { margin:4px 0; color:#a7afb9; font-size:.77rem; line-height:1.4; }
.work-radar-copy small { display:block; color:var(--text-secondary); font-size:.69rem; line-height:1.4; text-transform:capitalize; }
.work-radar-copy .work-radar-note { margin-top:4px; color:#b2a97e; text-transform:none; }
.work-radar-flags { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:5px; }
.work-radar-flags span {
  padding:2px 6px; border:1px solid #3a424c; border-radius:4px;
  color:var(--text-secondary); font:600 .63rem var(--exec-data); text-transform:uppercase;
}
.work-radar-flags .is-focus { border-color:#3f716c; color:#78b7aa; }
.work-radar-flags .is-new { border-color:#455d78; color:#7eacd0; }
.work-radar-flags .is-overdue { border-color:#75434a; color:#e29ca1; }
.work-radar-flags :is(.is-today,.is-soon) { border-color:#6e6134; color:#d2bb67; }
.work-radar-actions {
  display:grid; align-content:center; gap:6px; padding:10px 12px 10px 0;
}
.work-radar-actions :is(a,button) {
  width:100%; min-height:40px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid #3b4651; border-radius:6px; background:#14181e;
  color:#bec6d0; font-size:.74rem; text-decoration:none;
}
.work-radar-actions form { margin:0; }
.work-radar-actions button { cursor:pointer; }
.work-radar-classify { position:relative; }
.work-radar-classify:not([open]) > div { display:none; }
.work-radar-classify > summary {
  min-height:40px; display:flex; align-items:center; justify-content:center;
  border:1px solid #3b4651; border-radius:6px; background:#14181e;
  color:#80b8ab; cursor:pointer; font-size:.74rem; font-weight:750; list-style:none;
}
.work-radar-classify > summary::-webkit-details-marker { display:none; }
.work-radar-classify[open] > div {
  position:absolute; z-index:4; right:0; top:calc(100% + 7px);
  width:min(22rem,calc(100vw - 2rem)); padding:12px;
  border:1px solid #47525e; border-radius:9px; background:#171b21;
  box-shadow:0 18px 40px rgba(0,0,0,.48); display:grid; gap:9px;
}
.work-radar-classify label { color:#a1aab5; font-size:.74rem; line-height:1.35; }
.work-radar-classify input { width:100%; min-height:42px; }
.work-radar-classify span { display:flex; gap:7px; }
.work-radar-classify button { flex:1; min-height:40px; }
.work-radar-empty { margin:0; padding:16px; color:var(--text-secondary); font-size:.8rem; }
.signal-reservoir {
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  margin-top:16px; padding:18px; border:1px solid #303640; border-radius:9px;
  background:#0e1115;
}
.signal-reservoir h3 { margin:0; color:#dfe3e9; font-size:.92rem; }
.signal-reservoir h3 span { margin-left:5px; color:#78aaa3; font:700 .9rem var(--font-num); }
.signal-reservoir p { max-width:820px; margin:5px 0 0; color:var(--text-secondary); font-size:.77rem; line-height:1.45; }
.signal-reservoir > a { min-height:44px; display:inline-flex; align-items:center; color:#80b8ab; font-size:.78rem; white-space:nowrap; }

@media (max-width:1050px) {
  .shift-totals { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .shift-changes > div { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shift-changes > div a:nth-child(3n) { border-right:1px solid #303640; }
  .shift-changes > div a:nth-child(2n) { border-right:0; }
  .work-radar-census { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .work-radar-census a:nth-child(4) { border-right:0; }
  .work-radar-census a:nth-child(-n+4) { border-bottom:1px solid #303640; }
  .judgment-rail { gap:10px; }
  .judgment-rail > section { padding:18px; }
  .judgment-facts { grid-template-columns:1fr 1fr; }
  .judgment-facts > section { border-bottom:1px solid #303640; }
  .judgment-facts > section:nth-child(2n) { border-right:0; }
  .judgment-facts > section:nth-last-child(-n+2) { border-bottom:0; }
  .judgment-facts > .judgment-move { grid-column:1/-1; border-top:1px solid #303640; border-bottom:0; }
  .work-radar-rows { grid-template-columns:1fr; }
  .work-radar-row { border-right:0; }
}

/* The desktop rail consumes 272px before Today is laid out. At laptop widths,
   keeping a second fixed column left only ~150px for the custody titles and
   produced word-by-word wrapping beside an empty canvas. Collapse based on
   the real shell geometry, before the mobile navigation breakpoint. */
@media (min-width:1024px) and (max-width:1380px) {
  .judgment-layout { display:block; }
  .judgment-rail-row { grid-template-columns:minmax(0,1fr); }
}

@media (max-width:760px) {
  .judgment-shell { padding:22px 12px 42px; display:block; }
  .flow-cohort-head { align-items:start; padding:20px 16px 16px; }
  .flow-cohort-head p { font-size:.92rem; }
  .flow-cohort-count { display:grid; gap:1px; text-align:right; }
  .flow-cohort-path { grid-template-columns:auto minmax(24px,1fr) auto; gap:10px; padding:8px 16px; }
  .flow-cohort-path a { grid-column:1/-1; justify-self:start; margin:0; }
  .flow-cohort > .work-radar-rows { margin:16px; }
  .judgment-header { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:12px; margin-bottom:17px; }
  .judgment-header h1 { font-size:2.25rem; }
  .judgment-header p { margin-top:7px; font-size:1rem; }
  .shift-totals { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shift-totals a { min-height:76px; border-bottom:1px solid #303640; }
  .shift-totals a:nth-child(2n) { border-right:0; }
  .shift-totals a:last-child { grid-column:1/-1; border-bottom:0; }
  .shift-totals b { font-size:1.2rem; }
  .shift-changes > header { align-items:start; }
  .shift-changes > div { grid-template-columns:1fr; }
  .shift-changes > div a,.shift-changes > div a:nth-child(2n),.shift-changes > div a:nth-child(3n) { border-right:0; }
  .work-radar-census { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .work-radar-census a { min-height:70px; border-bottom:1px solid #303640; }
  .work-radar-census a:nth-child(2n) { border-right:1px solid #303640; }
  .work-radar-census a:nth-child(4n) { border-right:0; }
  .work-radar-census a:nth-child(n+5) { border-bottom:0; }
  .work-radar-census b { font-size:1.05rem; }
  .work-radar-census span { font-size:.72rem; line-height:1.2; }
  .work-radar-census small { font-size:.72rem; line-height:1.2; }
  .master-caution > header,.judgment-section-heading,.work-radar-heading { align-items:flex-start; }
  .master-caution-rows a { grid-template-columns:86px minmax(0,1fr); gap:7px 10px; }
  .master-caution-row { grid-template-columns:1fr; }
  .master-caution-verbs { border-left:0; border-top:1px dashed rgba(255,252,248,.08); padding:8px 17px 10px; }
  .master-caution-verbs button { flex:1; }
  .master-caution-rows small { grid-column:2; }
  .master-coverage { grid-template-columns:1fr; }
  .master-coverage > div { border-right:0; border-bottom:1px solid #303640; }
  .master-coverage > div:last-child { border-bottom:0; }
  .judgment-section-heading > a { min-height:44px; display:inline-flex; align-items:center; text-align:right; }
  .judgment-freshness {
    display:flex; justify-content:space-between; width:100%; gap:14px; padding-top:10px;
    border-top:1px solid rgba(126,145,159,.18); font-size:.72rem;
  }
  .judgment-layout { display:block; }
  .judgment-main,.judgment-rail { width:100%; }
  .judgment-item { border-radius:9px; }
  .judgment-item-header { grid-template-columns:38px minmax(0,1fr); gap:10px; padding:15px 13px 10px; }
  .judgment-rank { width:34px; height:34px; font-size:1rem; }
  .judgment-item-header h2 { font-size:1.05rem; }
  .custody-strip { grid-template-columns:1fr 1fr; margin:0 13px 10px 61px; }
  .custody-strip section:nth-child(2) { border-right:0; }
  .custody-strip section:last-child { grid-column:1/-1; border-top:1px solid #303640; }
  .custody-state-machine { grid-template-columns:1fr; gap:0; margin:0 13px 10px 61px; }
  .custody-state-machine > span { width:100%; height:24px; transform:rotate(90deg); }
  .judgment-facts { grid-template-columns:1fr 1fr; margin:0 13px 8px 61px; }
  .judgment-facts > section { padding:10px 9px; border-right:1px solid #303640; border-bottom:1px solid #303640; }
  .judgment-facts > section:first-child { padding-left:0; }
  .judgment-facts > section:nth-child(2n) { padding-right:0; border-right:0; }
  .judgment-facts > section:nth-last-child(-n+2) { border-bottom:1px solid #303640; }
  .judgment-facts > .judgment-move { grid-column:1/-1; padding-left:0; padding-right:0; border:0; }
  .judgment-facts small { margin-bottom:4px; font-size:.66rem; }
  .judgment-facts p { font-size:.82rem; line-height:1.35; }
  .judgment-facts span { font-size:.72rem; }
  .judgment-evidence { margin:0 13px 0 61px; }
  .judgment-evidence > summary { font-size:.77rem; }
  .judgment-evidence > div { grid-template-columns:1fr; }
  .judgment-evidence section { padding:8px 0; }
  .judgment-evidence section + section { padding-left:0; border:0; border-top:1px solid #303640; }
  .judgment-actions { grid-template-columns:1fr; padding:12px 13px 15px 61px; }
  .judgment-open-source { min-height:46px; }
  .judgment-teach > summary { min-height:44px; }
  .judgment-teach > div { position:static; width:auto; grid-template-columns:repeat(3,minmax(0,1fr)); border:0; border-top:1px solid #3a414c; border-radius:0; box-shadow:none; padding:0; }
  .judgment-feedback-note { grid-column:1/-1; min-height:46px; font-size:16px; }
  .judgment-teach button { min-height:44px; padding:6px; text-align:center; border-right:1px solid #3a414c; border-radius:0; }
  .judgment-teach button:last-child { border-right:0; }
  .judgment-more-context > summary { display:grid; gap:3px; }
  .judgment-more-context > summary small { line-height:1.4; }
  .judgment-context-groups { grid-template-columns:1fr; }
  .judgment-context-groups > section { border-right:0; border-bottom:1px solid #303640; }
  .judgment-context-groups > section:last-child { border-bottom:0; }
  .judgment-rail { grid-template-columns:1fr; gap:10px; margin-top:18px; }
  .judgment-rail > section { padding:18px 16px 20px; }
  .work-radar { margin-top:10px; }
  .work-radar-heading { display:grid; }
  .work-radar-heading nav { justify-content:start; }
  .work-radar-lane > header { align-items:flex-start; }
  .work-radar-row { grid-template-columns:5px minmax(0,1fr); }
  .work-radar-actions { grid-column:2; grid-template-columns:1fr 1fr; padding:0 12px 12px 0; }
  .signal-reservoir { display:grid; gap:8px; }
  .signal-reservoir > a { white-space:normal; }
}

@media (max-width:420px) {
  .judgment-item-header { padding-inline:11px; }
  .custody-strip,.custody-state-machine { margin-left:11px; margin-right:11px; }
  .judgment-facts,.judgment-evidence { margin-left:11px; margin-right:11px; }
  .judgment-actions { padding-left:11px; padding-right:11px; }
  .work-radar-classify[open] > div {
    position:fixed; left:1rem; right:1rem; top:auto; bottom:1rem; width:auto;
  }
  .work-radar-census { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .work-radar-census a:nth-child(n) {
    min-width:0; border-right:1px solid #303640; border-bottom:1px solid #303640;
    overflow:hidden;
  }
  .work-radar-census a:nth-child(2n) { border-right:0; }
  .work-radar-census a:nth-last-child(-n+2) { border-bottom:0; }
  .master-caution > header,.judgment-section-heading,.work-radar-lane > header { display:grid; gap:5px; }
  .judgment-section-heading > a { text-align:left; }
  .work-radar-row { column-gap:10px; }
  .work-radar-copy p { font-size:.75rem; }
}

body { background-color:var(--bg-app); }
.atmosphere-glow {
  background:radial-gradient(circle at 42% 42%,rgba(79,164,119,.12),rgba(82,143,145,.052) 34%,rgba(95,143,170,.032) 52%,transparent 72%);
}
.atmosphere-orbit {
  border-color:rgba(112,177,152,.15);
  box-shadow:0 0 0 62px rgba(95,143,170,.028),0 0 0 124px rgba(112,177,152,.014);
}
.topbar nav a.on { color:#fff; box-shadow:none; background-image:var(--accent-gradient); background-size:100% 2px; background-position:left bottom; background-repeat:no-repeat; }
.brand span { color:var(--accent-green); background:var(--accent-gradient); background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.accent { color:var(--accent-green); }
.btn-primary {
  background:var(--accent-gradient); border-color:rgba(95,143,170,.72);
  color:#fff; box-shadow:0 7px 18px rgba(0,0,0,.22); font-weight:700;
}
.btn-primary:hover { filter:brightness(1.08) saturate(1.05); }
.btn-secondary { background:rgba(82,143,145,.035); border-color:rgba(95,143,170,.54); color:#b9d7db; }

/* Muted copy must remain subordinate, not disappear into the surface. */
input::placeholder, textarea::placeholder {
  color:#929bad;
  opacity:1;
}
html,body { max-width:100%; overflow-x:clip; }
.page-header-copy { display:grid; justify-items:start; width:100%; min-width:0; text-align:left; }
.page-header h1 { max-width:100%; overflow-wrap:anywhere; }
.page-header :is(.page-eyebrow,h1,p) { justify-self:start; text-align:left; }

.command-trigger { display:inline-flex; align-items:center; justify-content:center; gap:4px; }
.command-trigger .command-search { display:none; margin:0; color:var(--exec-steel-soft); font:500 1.05rem/1 var(--exec-body); }
.command-trigger .command-key { margin:0; color:var(--text-dim); }
.command-trigger .command-key i { margin-right:2px; color:var(--exec-steel-soft); font-style:normal; }
.interaction-toast { position:fixed; right:18px; bottom:max(18px,env(safe-area-inset-bottom)); z-index:190; padding:10px 13px; border:1px solid rgba(95,143,170,.4); border-radius:9px; background:#171a1d; color:var(--text-main); box-shadow:0 16px 50px rgba(0,0,0,.55); font:600 .72rem var(--exec-body); }
form.is-submitting { opacity:.72; pointer-events:none; }
form.is-submitting button { min-width:88px; }
.is-navigating main { opacity:.94; transition:opacity .12s ease; }

/* Metadata stays subordinate without becoming microscopic. */
main :is(.cardmeta,.page-eyebrow,.intel-state,.intel-fresh,.intel-dark,.buyer-label,
  .connection-state,.enrichment-state,.contact-history-scope,.contact-history-empty,
  .baseline-library-link span,.baseline-library-search a,.conference-card p) {
  font-size:var(--micro-copy);
  line-height:1.4;
}
/* Page eyebrows carry navigational meaning and must not inherit the generic
   11px label treatment from the type system. */
body[class] main .page-eyebrow {
  font-size:var(--micro-copy) !important;
  line-height:1.4 !important;
}
main :is(.intel-index-facts,.contact-index-signal,.contact-signal-strip,.buyer-command,
  .buyer-visual-card,.buyer-demand-surface,.buyer-commercial,.buyer-learning-card,
  .baseline-library-list,.contact-workspace,.connection-contract) small {
  font-size:var(--micro-copy);
  line-height:1.35;
}
/* Fine-tooth pass: semantic metadata must remain readable even when an older
   component carries its own microtype rule. This is presentation hierarchy,
   not a change to what is ranked or visible. */
body[class] main :is(small,time,dt,legend,th) {
  font-size:var(--micro-copy) !important;
  line-height:1.4;
}

/* --------------------------------------------------------------------------
   Closed decision-learning loop
   Dense enough for an operating instrument; roomy enough to read on a phone.
   Color encodes state and direction, never entire surfaces.
   -------------------------------------------------------------------------- */
.loop-spine {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px;
  margin:0 0 14px; overflow:hidden; border:1px solid var(--border-subtle);
  border-radius:12px; background:var(--border-subtle);
}
.loop-spine a {
  display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center;
  min-height:78px; padding:13px 15px; background:linear-gradient(180deg,#171a20,#111319);
  color:var(--text-main); text-decoration:none;
}
.loop-spine a:hover { background:linear-gradient(180deg,rgba(79,164,119,.09),rgba(95,143,170,.06)),#14171d; }
.loop-spine a > b {
  display:grid; place-items:center; width:25px; height:25px; border:1px solid rgba(95,143,170,.38);
  border-radius:50%; color:var(--accent-green); font-family:var(--font-num); font-size:.82rem;
}
.loop-spine a > span { display:grid; font-weight:700; }
.loop-spine small { color:var(--text-dim); font-weight:400; }

.learning-kpis,.commitment-kpis {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-bottom:22px;
}
.learning-kpis a,.commitment-kpis a {
  position:relative; display:grid; grid-template-columns:auto 1fr; gap:1px 12px;
  min-height:104px; align-content:center; padding:16px 18px; overflow:hidden;
  border:1px solid var(--border-subtle); border-radius:12px;
  background:linear-gradient(180deg,rgba(25,28,39,.82),rgba(15,17,23,.94));
  color:var(--text-main); text-decoration:none;
}
.learning-kpis a::after,.commitment-kpis a::after {
  content:""; position:absolute; inset:auto 0 0; height:2px; background:var(--accent-gradient); opacity:.72;
}
.learning-kpis b,.commitment-kpis b {
  grid-row:span 2; align-self:center; color:var(--text-main); font-family:var(--font-num); font-size:2rem; line-height:1;
}
.learning-kpis span,.commitment-kpis span { align-self:end; font-weight:700; }
.learning-kpis small,.commitment-kpis small { color:var(--text-dim); }
.commitment-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); }
.commitment-kpis a.is-active { border-color:rgba(95,143,170,.56); background:var(--accent-gradient-soft),#14171d; }

.learning-section { margin-top:26px; scroll-margin-top:90px; }
.learning-section + .learning-section { padding-top:26px; border-top:1px solid var(--border-subtle); }
.learning-section-head { display:flex; align-items:end; justify-content:space-between; gap:24px; margin-bottom:12px; }
.learning-section-head h2 { margin:4px 0 0; font-size:clamp(1.15rem,2vw,1.5rem); }
.learning-section-head > p { max-width:520px; margin:0; color:var(--text-dim); text-align:right; }
.hypothesis-list,.outcome-list { display:grid; gap:10px; }
.hypothesis-card,.outcome-card {
  border:1px solid var(--border-subtle); border-radius:13px;
  background:linear-gradient(180deg,rgba(23,26,34,.94),rgba(13,15,20,.96));
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
.hypothesis-card { padding:17px 18px; }
.hypothesis-card > header,.outcome-card > header {
  display:flex; align-items:center; gap:9px; color:var(--text-dim); text-transform:uppercase;
  letter-spacing:.08em; font-size:.75rem;
}
.hypothesis-card > header b { margin-left:auto; color:var(--accent-mid); }
.hypothesis-card > header a,.outcome-card > header a { color:var(--accent-blue); }
.hypothesis-card h3,.outcome-card h3 { margin:10px 0 13px; font-size:1.16rem; line-height:1.35; }
.hypothesis-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; }
.hypothesis-card dl > div { padding:11px 12px; border:1px solid rgba(255,255,255,.065); border-radius:9px; background:rgba(255,255,255,.018); }
.hypothesis-card dl > div.flip-condition { border-left:3px solid var(--accent-blue); background:rgba(95,143,170,.045); }
.hypothesis-card dt,.outcome-contract span {
  color:var(--text-dim); font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em;
}
.hypothesis-card dd { margin:4px 0 0; line-height:1.5; }
.hypothesis-resolution { display:grid; grid-template-columns:minmax(200px,1fr) auto; gap:8px; margin-top:10px; }
.hypothesis-resolution > div,.outcome-grade > div { display:flex; gap:7px; }
.hypothesis-resolution button,.outcome-grade button { min-height:38px; padding:7px 11px; border-radius:8px; }
.hypothesis-watch-queue {
  margin-top:12px; border:1px solid var(--border-subtle); border-radius:10px;
  background:rgba(17,19,26,.66);
}
.hypothesis-watch-queue > summary,.hypothesis-watch-item > summary {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  min-height:52px; padding:11px 14px; cursor:pointer;
}
.hypothesis-watch-queue > summary span,.hypothesis-watch-item > summary span {
  display:grid; gap:3px; min-width:0;
}
.hypothesis-watch-queue > summary b,.hypothesis-watch-item > summary b {
  color:var(--text-main); overflow-wrap:anywhere;
}
.hypothesis-watch-queue > summary small,.hypothesis-watch-item > summary small { color:var(--text-dim); }
.hypothesis-watch-queue > summary i,.hypothesis-watch-item > summary i {
  flex:0 0 auto; color:var(--exec-steel-soft);
  font:600 var(--micro-copy) var(--exec-data); font-style:normal;
}
.hypothesis-watch-queue > div { border-top:1px solid var(--border-subtle); }
.hypothesis-watch-item { border-bottom:1px solid rgba(255,255,255,.06); }
.hypothesis-watch-item:last-child { border-bottom:0; }
.hypothesis-watch-detail {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px;
  padding:0 14px 14px;
}
.hypothesis-watch-detail > p {
  margin:0; padding:10px; border:1px solid rgba(255,255,255,.07);
  border-radius:7px; color:var(--text-dim); font-size:var(--support-copy); line-height:1.5;
}
.hypothesis-watch-detail > p span {
  display:block; margin-bottom:5px; color:var(--exec-steel-soft);
  font:600 var(--micro-copy) var(--exec-data); text-transform:uppercase; letter-spacing:.05em;
}
.hypothesis-watch-detail > div,.hypothesis-watch-detail > form { grid-column:1/-1; }
.hypothesis-watch-detail > div a { color:var(--exec-steel-soft); font-size:var(--support-copy); }
.hypothesis-resolution.compact { margin-top:0; }
.hypothesis-rank,.hypothesis-evidence {
  display:grid; grid-template-columns:150px minmax(0,1fr); gap:12px;
  align-items:start; padding:10px 12px; border:1px solid var(--border-subtle);
  background:rgba(255,255,255,.018);
}
.hypothesis-rank { border-radius:10px 10px 0 0; }
.hypothesis-evidence { border-top:0; border-radius:0 0 10px 10px; }
.hypothesis-rank > span,.hypothesis-evidence > span,.hypothesis-move > span,
.hypothesis-logic span,.hypothesis-effect span {
  color:var(--text-dim); font-size:.72rem; font-weight:700;
  letter-spacing:.075em; text-transform:uppercase;
}
.hypothesis-rank p,.hypothesis-evidence q { margin:0; line-height:1.45; }
.hypothesis-evidence q { color:var(--text-main); font-style:normal; }
.hypothesis-move {
  display:grid; grid-template-columns:150px minmax(0,1fr); gap:12px;
  align-items:center; margin:9px 0; padding:10px 12px; border-radius:9px;
  background:linear-gradient(90deg,rgba(79,164,119,.10),rgba(95,143,170,.06));
  border:1px solid rgba(95,143,170,.22);
}
.hypothesis-move b { font-size:.94rem; line-height:1.4; }
.hypothesis-logic {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px;
  margin:0; padding:0; list-style:none; overflow:hidden;
  border:1px solid var(--border-subtle); border-radius:10px;
  background:var(--border-subtle);
}
.hypothesis-logic li { min-width:0; padding:11px 12px; background:#11141a; }
.hypothesis-logic li.flip-condition { box-shadow:inset 3px 0 var(--accent-blue); }
.hypothesis-logic p { margin:5px 0 0; line-height:1.45; }
.hypothesis-effect { margin:7px 0 0; color:var(--text-dim); font-size:.84rem; line-height:1.45; }
.hypothesis-effect span { margin-right:9px; }
.learning-history { margin-top:10px; border:1px solid var(--border-subtle); border-radius:10px; }
.learning-history > summary { padding:11px 13px; }
.learning-history > a { display:grid; grid-template-columns:84px minmax(0,1fr); gap:2px 10px; padding:10px 13px; border-top:1px solid var(--border-subtle); }
.learning-history > a span { grid-row:span 2; align-self:center; text-transform:uppercase; font-size:.7rem; }
.learning-history > a small { color:var(--text-dim); }
.status-flipped { color:var(--accent-blue); }.status-confirmed { color:var(--accent-green); }.status-bypassed { color:var(--text-dim); }

.outcome-card { overflow:hidden; padding:0 17px 16px; border-left:3px solid var(--accent-mid); }
.outcome-card.status-disproven { border-left-color:var(--danger); }
.outcome-card.status-supported { border-left-color:var(--success); }
.outcome-card > header { margin:0 -17px; padding:10px 14px; border-bottom:1px solid var(--border-subtle); background:rgba(255,255,255,.018); }
.outcome-card > header a { margin-left:auto; }
.outcome-state { color:var(--accent-green); font-weight:700; }
.outcome-prediction,.outcome-observed { display:grid; grid-template-columns:86px minmax(0,1fr); margin:0 0 11px; line-height:1.5; }
.outcome-prediction span,.outcome-observed span { color:var(--text-dim); text-transform:uppercase; letter-spacing:.08em; font-size:.72rem; font-weight:600; }
.outcome-contract { display:grid; grid-template-columns:120px 120px 1fr 1fr; gap:1px; overflow:hidden; border:1px solid var(--border-subtle); border-radius:9px; background:var(--border-subtle); }
.outcome-contract > div { display:grid; align-content:start; gap:4px; min-height:72px; padding:10px 11px; background:#11141a; }
.outcome-contract b { font-size:.86rem; line-height:1.4; }
.outcome-grade { display:grid; grid-template-columns:minmax(240px,1fr) auto; gap:8px; margin-top:10px; }
.outcome-grade textarea { width:100%; resize:vertical; }
.calibration-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.calibration-grid article { display:grid; gap:3px; padding:14px; border:1px solid var(--border-subtle); border-radius:10px; background:var(--bg-surface); }
.calibration-grid article > span { color:var(--text-dim); text-transform:uppercase; letter-spacing:.08em; font-size:.72rem; }
.calibration-grid article > b { font-family:var(--font-num); font-size:1.65rem; }
.calibration-grid small { color:var(--text-dim); }

.commitment-capture { margin-bottom:12px; border:1px solid rgba(79,164,119,.28); border-radius:12px; background:linear-gradient(180deg,rgba(79,164,119,.05),rgba(17,19,25,.7)); }
.commitment-capture > summary { display:flex; align-items:center; gap:9px; padding:13px 16px; }
.commitment-capture > summary small { margin-left:4px; }
/* The DUE column must fit a datetime-local input's intrinsic width (~207px)
   or the whole form overflows its card. minmax + min-width:0 children keep
   the grid honest at every viewport. */
.commitment-capture form { display:grid; grid-template-columns:150px minmax(240px,1.5fr) minmax(160px,.8fr) minmax(208px,.6fr); gap:9px; padding:0 16px 16px; }
.commitment-capture form > * { min-width:0; }
.commitment-capture :is(input,select) { width:100%; min-width:0; }
.commitment-capture label,.outcome-forecast label { display:grid; gap:4px; }
.commitment-capture label > span,.outcome-forecast label > span { color:var(--text-dim); font-size:.72rem; font-weight:600; text-transform:uppercase; letter-spacing:.07em; }
.commitment-capture .commitment-evidence-input { grid-column:1/-2; }
.commitment-capture button { align-self:end; min-height:40px; }
select,textarea { font:inherit; border-radius:8px; border:1px solid var(--border-subtle); background:var(--bg-raised); color:var(--text-main); padding:.45rem .8rem; }
select:focus,textarea:focus { outline:none; border-color:var(--border-focus); }
.commitment-view-links { display:flex; justify-content:space-between; gap:12px; margin:11px 2px; }
.commitment-view-links a.is-active { color:var(--text-main); }
.commitment-list { border-top:1px solid var(--border-subtle); }
.commitment-row { display:grid; grid-template-columns:112px minmax(0,1fr) minmax(240px,330px); gap:17px; padding:17px 5px; border-bottom:1px solid var(--border-subtle); }
.commitment-row.is-overdue { border-left:3px solid var(--danger); padding-left:12px; }
.commitment-direction { display:grid; grid-template-columns:9px minmax(0,1fr); align-content:start; gap:3px 8px; padding-top:4px; }
.commitment-direction .signal-dot { grid-row:span 2; margin-top:5px; }
.commitment-direction b { text-transform:uppercase; letter-spacing:.08em; font-size:.75rem; }
.commitment-direction small { color:var(--text-dim); }
.commitment-body h2 { margin:0; font-size:1rem; line-height:1.4; }
.commitment-meta { display:flex; flex-wrap:wrap; gap:5px 14px; margin-top:6px; color:var(--text-dim); font-size:.8rem; }
.commitment-meta b { color:var(--text-main); }
.commitment-body blockquote { margin:10px 0 0; padding:9px 11px; border-left:2px solid var(--accent-mid); background:rgba(82,143,145,.04); color:var(--text-dim); font-size:.85rem; }
.commitment-source-evidence { margin-top:10px; }
.commitment-source-evidence > span,.commitment-correction-note > span { display:block; color:var(--accent-mid); font-size:.68rem; font-weight:700; letter-spacing:.075em; text-transform:uppercase; }
.commitment-source-evidence blockquote { margin-top:5px; }
.commitment-correction-note { margin:8px 0 0; padding:9px 11px; border-left:2px solid var(--accent-green); background:rgba(79,164,119,.045); color:var(--text-dim); font-size:.85rem; }
.commitment-correction-note > span { margin-bottom:4px; color:var(--accent-green); }
.settlement-receipt { margin:10px 0 0; padding:9px 11px; border:1px solid rgba(79,164,119,.22); border-radius:8px; color:var(--text-dim); }
.settlement-receipt span { display:block; color:var(--accent-green); text-transform:uppercase; letter-spacing:.08em; font-size:.7rem; }
.commitment-actions { display:grid; align-content:start; gap:7px; }
.commitment-actions > a { width:max-content; padding:7px 10px; border:1px solid var(--accent-mid); border-radius:8px; }
/* Scoped to DIRECT child forms (settle / review) — a descendant selector here
   leaked into the nested Edit <dialog> form and shattered its layout. */
.commitment-actions > form { display:grid; grid-template-columns:minmax(120px,1fr) auto auto; gap:6px; }
.commitment-actions > form input { grid-column:1/-1; }
.commitment-actions button { min-height:37px; padding:7px 10px; }
.commitment-review-form { grid-template-columns:minmax(140px,1fr) minmax(140px,1fr) !important; }
.commitment-review-form input, .commitment-review-form select { grid-column:span 1 !important; min-width:0; }
.commitment-review-form input[name="note"] { grid-column:1/-1 !important; }
.commitment-review-form button { min-height:37px; }
/* Manage row: edit / flag-wrong / delete, on every commitment */
.commitment-manage { display:flex; flex-wrap:wrap; gap:6px; align-items:center;
  margin-top:2px; padding-top:8px; border-top:1px solid rgba(42,42,40,.55); }
.commitment-manage-form { display:inline !important; grid-template-columns:none !important; gap:0 !important; }
.commitment-manage .record-editor-trigger { min-height:32px; padding:5px 12px; font-size:.8rem; }
.commitment-manage-form button { min-height:32px; padding:5px 11px; border:1px solid transparent;
  border-radius:8px; background:transparent; color:#8b939d; font:600 .78rem/1 var(--exec-body); cursor:pointer; }
.commitment-manage-form button:hover { color:#c6cbd3; background:rgba(255,255,255,.045); }
.commitment-flag-btn:hover { color:#C7A847 !important; background:rgba(199,168,71,.09) !important; }
.commitment-delete-btn:hover { color:#C86268 !important; background:rgba(200,98,104,.1) !important; }
.consequence-badge { padding:2px 8px; border-radius:999px; border:1px solid var(--border-subtle); font-size:.7rem; text-transform:uppercase; letter-spacing:.07em; }
.consequence-badge.is-comp_linked { color:var(--warning); border-color:var(--warning); }
.consequence-badge.is-high { color:var(--accent-blue); border-color:var(--accent-blue); }
.consequence-badge.is-low { color:var(--text-dim); }
.signal-dot { width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:var(--accent-mid); box-shadow:0 0 10px rgba(82,143,145,.24); }
.signal-dot.is-green { background:var(--accent-green); }.signal-dot.is-blue { background:var(--accent-blue); }.signal-dot.is-mid { background:var(--accent-mid); }

.decision-flip-preview { margin-top:9px; border-top:1px solid rgba(255,255,255,.07); }
.decision-flip-preview > summary { padding:9px 0 2px; color:var(--accent-blue); font-size:.78rem; font-weight:600; }
.decision-flip-preview > div { display:grid; grid-template-columns:118px minmax(0,1fr); gap:7px; padding:5px 0; }
.decision-flip-preview > div > span { color:var(--text-dim); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; }
.decision-flip-preview > div > p { margin:0; color:var(--text-main); font-size:.82rem; }
.decision-flip-preview > div.flip { color:var(--accent-blue); }
.decision-flip-preview form { display:grid; grid-template-columns:minmax(160px,1fr) auto auto; gap:6px; margin-top:6px; }
.decision-flip-preview form button { min-height:36px; padding:6px 9px; }
.exec-background-note { margin:9px 0 0; color:var(--text-dim); font-size:.82rem; }
.learning-loop-numbers { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin:11px 0; border:1px solid var(--border-subtle); border-radius:8px; overflow:hidden; background:var(--border-subtle); }
.learning-loop-numbers a { display:grid; padding:9px; background:#11141a; color:var(--text-main); }
.learning-loop-numbers b { font-family:var(--font-num); font-size:1.25rem; }.learning-loop-numbers span { color:var(--text-dim); font-size:.7rem; }
.learning-loop-card > .exec-action { display:inline-flex; align-items:center; justify-content:center; }

.outcome-forecast { margin:11px 0 0; border:1px solid rgba(82,143,145,.24); border-radius:9px; background:rgba(82,143,145,.035); }
.outcome-forecast > summary { display:flex; align-items:center; gap:8px; padding:10px 12px; }.outcome-forecast > summary span { color:var(--text-dim); }
.outcome-forecast form { display:grid; grid-template-columns:minmax(240px,1.4fr) 120px 130px; gap:8px; padding:0 12px 12px; }
.outcome-forecast form label:nth-of-type(n+4) { grid-column:span 1; }
.outcome-forecast form > button { width:max-content; align-self:end; }

@media (max-width:900px) {
  .commitment-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .commitment-capture form { grid-template-columns:1fr 1fr; }
  .commitment-capture .commitment-title-input,.commitment-capture .commitment-evidence-input { grid-column:1/-1; }
  .commitment-row { grid-template-columns:96px minmax(0,1fr); }
  .commitment-actions { grid-column:2; }
  .outcome-contract { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .calibration-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .page-decisions main button,.page-commitments main button,
  .page-approvals .outcome-forecast button { min-height:44px; }
  .page-today .decision-flip-preview button,
  .page-today .learning-loop-card .exec-action { min-height:44px; }
  .loop-spine { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .loop-spine a { min-height:68px; padding:10px; }
  .learning-kpis,.commitment-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .learning-kpis a,.commitment-kpis a { min-height:88px; padding:12px; }
  .learning-kpis b,.commitment-kpis b { font-size:1.65rem; }
  .learning-section-head { display:block; }.learning-section-head > p { margin-top:6px; text-align:left; }
  .hypothesis-card { padding:14px 12px; }.hypothesis-card dl { grid-template-columns:1fr; }
  .hypothesis-card > header { flex-wrap:wrap; }
  .hypothesis-card > header b { margin-left:0; }
  .hypothesis-card > header a { margin-left:auto; }
  .hypothesis-rank,.hypothesis-evidence,.hypothesis-move { grid-template-columns:1fr; gap:4px; }
  .hypothesis-logic { grid-template-columns:1fr; }
  .hypothesis-resolution,.outcome-grade { grid-template-columns:1fr; }
  .hypothesis-resolution > div,.outcome-grade > div { display:grid; grid-template-columns:1fr 1fr; }
  .outcome-card { padding-inline:12px; }.outcome-card > header { margin-inline:-12px; flex-wrap:wrap; }
  .outcome-contract { grid-template-columns:1fr 1fr; }
  .commitment-capture form { grid-template-columns:1fr; }
  .commitment-capture .commitment-title-input,.commitment-capture .commitment-evidence-input { grid-column:auto; }
  .commitment-row { grid-template-columns:1fr; gap:8px; padding:15px 2px; }
  .commitment-actions { grid-column:auto; }
  .commitment-actions > form { grid-template-columns:1fr 1fr; }
  .commitment-actions > form input { grid-column:1/-1; }
  .commitment-actions > form button:last-child { grid-column:1/-1; }
  .commitment-detail-edit form { grid-template-columns:1fr; }
  .commitment-detail-edit .is-wide { grid-column:auto; }
  .commitment-edit-footer { align-items:stretch; flex-direction:column; }
  .commitment-edit-footer button { width:100%; }
  .decision-flip-preview > div { grid-template-columns:1fr; gap:1px; }
  .decision-flip-preview form { grid-template-columns:1fr 1fr; }.decision-flip-preview form input { grid-column:1/-1; }
  .learning-loop-numbers { grid-template-columns:1fr 1fr 1fr; }
  .outcome-forecast form { grid-template-columns:1fr; }
  .calibration-grid { grid-template-columns:1fr; }
}

/* Relationship directories are operating lists, not galleries. Search, scope,
   ownership, evidence coverage, and ordering stay together as one explorer. */
.relationship-explorer {
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
  min-width:0;
}
.relationship-query {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:8px;
  align-items:center;
  min-width:0;
}
.relationship-query input { width:100%; min-width:0; min-height:46px; }
.relationship-query .live-filter-status { grid-column:auto; min-width:68px; text-align:right; }
.relationship-filters {
  display:grid;
  grid-template-columns:repeat(5,minmax(130px,1fr)) auto;
  gap:8px;
  align-items:end;
  min-width:0;
  padding-top:10px;
  border-top:1px solid var(--intel-divider);
}
.relationship-filters label {
  display:grid;
  gap:5px;
  min-width:0;
}
.relationship-filters label > span {
  color:var(--text-dim);
  font:700 var(--micro-copy)/1.2 var(--exec-body);
  letter-spacing:.025em;
}
.relationship-filters select {
  width:100%;
  min-width:0;
  min-height:42px;
  padding:7px 31px 7px 10px;
  border-color:var(--intel-divider);
  background-color:#090b10;
  color:var(--text-main);
  font:var(--support-copy)/1.2 var(--exec-body);
}
.filter-reset {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:8px 12px;
  border:1px solid var(--intel-divider);
  border-radius:7px;
  color:var(--exec-steel-soft);
  font:700 var(--micro-copy)/1 var(--exec-body);
  white-space:nowrap;
}
.filter-reset:hover { border-color:rgba(95,143,170,.5); text-decoration:none; }
.intel-command-main:has(.relationship-explorer) { grid-template-columns:minmax(0,1fr) auto; }
.intel-index-facts { grid-template-columns:repeat(4,minmax(0,1fr)); }
.intel-index-card > p { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.intel-index-card > p span { color:var(--exec-steel-soft); text-align:right; }
.baseline-library-search.relationship-explorer {
  position:sticky;
  z-index:8;
  top:64px;
  padding:12px;
  border:1px solid var(--intel-divider);
  border-radius:11px;
  background:rgba(11,13,16,.95);
  backdrop-filter:blur(14px);
}
.baseline-mapped-state {
  display:grid;
  gap:6px;
  min-width:190px;
  padding:10px 12px;
  border:1px solid rgba(79,164,119,.35);
  border-radius:8px;
  background:rgba(79,164,119,.055);
}
.baseline-mapped-state span { color:#75bea0; font:700 var(--micro-copy)/1.3 var(--exec-body); text-transform:uppercase; }
.baseline-mapped-state a { color:var(--text-main); font:700 var(--support-copy)/1.35 var(--exec-body); }

@media (max-width:1180px) {
  .relationship-filters { grid-template-columns:repeat(3,minmax(150px,1fr)); }
}
@media (max-width:780px) {
  .intel-command-main:has(.relationship-explorer) { grid-template-columns:1fr; }
  .relationship-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-reset { width:100%; }
  .baseline-library-search.relationship-explorer { position:static; top:auto; }
}
@media (max-width:520px) {
  .relationship-query { grid-template-columns:minmax(0,1fr) auto; }
  .relationship-query .live-filter-status { grid-column:1/-1; text-align:left; }
  .relationship-filters { grid-template-columns:1fr; }
  .intel-index-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .intel-index-card > p { align-items:flex-start; flex-direction:column; }
  .intel-index-card > p span { text-align:left; }
  .baseline-mapped-state { min-width:0; }
}

/* ---------- ClickUp execution workbench ---------- */
.page-clickup main { width:min(1280px,calc(100% - 44px)); }
.clickup-health { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) auto; margin:18px 0; border:1px solid #343943; border-radius:13px; overflow:hidden; background:rgba(13,16,20,.9); }
.clickup-health > div { display:grid; gap:4px; min-height:92px; align-content:center; padding:14px 16px; border-right:1px solid #343943; }
.clickup-health span,.clickup-create .page-eyebrow,.clickup-lane .page-eyebrow { color:var(--exec-teal); font:700 .62rem var(--exec-data); letter-spacing:.1em; text-transform:uppercase; }
.clickup-health b { font:700 1.18rem var(--exec-display); overflow-wrap:anywhere; }
.clickup-health small,.clickup-create header p,.clickup-lane header p { color:var(--exec-muted); font-size:.68rem; }
.clickup-health .has-alert b { color:#e7a49e; }
.clickup-health form { display:grid; align-items:center; padding:12px; }
.clickup-create,.clickup-lane { margin:14px 0; padding:20px; border:1px solid #343943; border-radius:13px; background:linear-gradient(145deg,rgba(22,26,31,.95),rgba(12,15,19,.97)); }
.clickup-create header h2,.clickup-lane header h2 { margin:5px 0; font:700 1.2rem var(--exec-display); }
.clickup-create header p,.clickup-lane header p { max-width:78ch; margin:0 0 14px; }
.clickup-create form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.clickup-create form .wide,.clickup-create form > button { grid-column:1/3; }
.clickup-create label { display:grid; gap:6px; color:var(--exec-muted); font-size:.7rem; }
.clickup-create input,.clickup-create textarea,.clickup-create select { width:100%; }
.clickup-task-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.clickup-task-list article { min-width:0; padding:15px; border:1px solid #303740; border-radius:10px; background:rgba(7,10,13,.62); }
.clickup-task-list article.is-overdue { border-left:3px solid #bf716b; }
.clickup-task-state,.clickup-task-list article footer { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.clickup-task-state span { color:var(--exec-teal); font:700 .61rem var(--exec-data); text-transform:uppercase; }
.clickup-task-state b { color:#e7a49e; font-size:.64rem; }
.clickup-task-list h3 { margin:9px 0 5px; font:700 .92rem/1.35 var(--exec-display); overflow-wrap:anywhere; }
.clickup-task-list article > p,.clickup-task-list details { color:var(--exec-muted); font-size:.69rem; overflow-wrap:anywhere; }
.clickup-task-list details p { white-space:pre-wrap; line-height:1.5; }
.clickup-task-list article footer { margin-top:12px; padding-top:10px; border-top:1px solid #2c333b; }
.state-empty-line { grid-column:1/3; color:var(--exec-muted); }
@media (max-width:900px) {
  .clickup-health { grid-template-columns:repeat(3,1fr); }
  .clickup-health form { grid-column:1/4; }
}
@media (max-width:640px) {
  .page-clickup main { width:100%; padding-inline:14px; }
  .clickup-health { grid-template-columns:1fr 1fr; }
  .clickup-health > div { min-height:78px; padding:11px; border-bottom:1px solid #343943; }
  .clickup-health form { grid-column:1/3; }
  .clickup-create,.clickup-lane { padding:15px; }
  .clickup-create form,.clickup-task-list { grid-template-columns:1fr; }
  .clickup-create form .wide,.clickup-create form > button,.state-empty-line { grid-column:1; }
  .clickup-task-list article footer { align-items:flex-start; flex-direction:column; }
}

/* Today is read at a glance and often from a full-width display. Keep every
   operational label above the product floor, including older dense selectors. */
body.page-today main :is(.exec-pipeline-roof,.exec-stage > span,.exec-stage small,
  .exec-regime,.exec-return-stats,.exec-brief-preview h2,.exec-anatomy,.exec-eyebrow,
  .exec-band-head span,.exec-chip,.exec-quiet-band summary b,
  .exec-quiet-row > span,.exec-quiet-row small,.exec-metrics small,
  .operating-chart header small,.operating-chart header > span,.exec-questions p,
  .exec-rail-title > small,.exec-rail-line > small,.exec-system-drawer > summary,
  .dismiss-action,.exec-stack-actions button) {
  font-size:var(--micro-copy) !important;
  line-height:1.4 !important;
}
body.page-today main :is(.exec-return p,.exec-stack-body p,.exec-first-action,
  .exec-rail-line > a,.exec-rail-line > button) {
  font-size:var(--support-copy);
}

/* Today uses one muted product spectrum plus four consistent indicator roles.
   Color stays on emphasis, data, and state—not whole surfaces. */
.page-today { background-color:#08090d; background-image:linear-gradient(180deg,rgba(95,143,170,.045),transparent 340px); }
.page-today .topbar { background:rgba(8,9,13,.9); }
.page-today .command-trigger { border-color:#3a404b; }
.page-today .exec-stage:hover { background:rgba(255,255,255,.035); }
.page-today .exec-stage { justify-items:center; text-align:center; }
.page-today .exec-stage b { font-family:var(--font-num); font-size:1.35rem; }
.page-today .exec-stage.is-active { border-color:var(--steel); }
.page-today .exec-stage.is-active > span { color:var(--text-main); }
.page-today .exec-return {
  border-color:#3a404b;
  background:var(--exec-panel);
  box-shadow:inset 3px 0 0 var(--accent-green),inset 0 1px 0 rgba(255,255,255,.045);
}
.page-today .exec-regime { display:inline-flex; align-items:center; gap:7px; color:var(--text-dim); border-color:#414752; }
.page-today .exec-regime::before { content:""; width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:var(--accent-mid); }
.page-today .exec-return-stats { color:var(--text-dim); }
.page-today .exec-return-stats .accent { color:var(--text-dim); }
.page-today .exec-return-stats b { color:var(--text-main); }
.page-today .exec-return-stats a:nth-child(2) b { color:var(--warning); }
.page-today .exec-return-stats a:nth-child(3):not(.errc) b { color:var(--success); }
.page-today .exec-return-stats a { border-bottom:1px solid transparent; }
.page-today .exec-return-stats a:hover,.page-today .exec-return-stats a:focus-visible { border-color:currentColor; text-decoration:none; }
.page-today .exec-band-head span { display:inline-flex; align-items:center; gap:8px; color:var(--text-main); }
.page-today .exec-band-head span { white-space:nowrap; }
.page-today .exec-band-head span::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--accent-blue); }
.page-today .exec-band-head i { background:linear-gradient(90deg,rgba(255,255,255,.22),transparent); }
.page-today .exec-band-head.watch span { color:var(--text-main); }
.page-today .exec-band-head.watch span::before { background:var(--warning); }
.page-today .exec-band-head.watch i { background:linear-gradient(90deg,rgba(255,255,255,.22),transparent); }
.page-today .exec-stack-row,.page-today .exec-stack-row:nth-of-type(n+6) { border-left-color:#454b56; }
.page-today .exec-stack-row.is-hero {
  border-color:#3a404b;
  border-left:3px solid var(--accent-green);
  background:var(--exec-panel);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045);
}
.page-today .is-hero .exec-score b { color:var(--text-main); }
.page-today .is-hero .exec-score > span i { background:var(--accent-gradient); }
.page-today .exec-output,.page-today .exec-chip { color:var(--text-dim); border-color:#4a505b; background:transparent; }
.page-today .exec-output::before,.page-today .exec-chip.kind-understanding::before { content:""; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:var(--accent-blue); }
.page-today .exec-chip.kind-understanding::before { background:var(--success); }
.page-today .exec-chip.danger { color:var(--danger); border-color:rgba(239,68,68,.55); }
.page-today .exec-chip.danger::before { content:none; }
.page-today .exec-return-actions .exec-action.primary,.page-today .exec-stack-row.is-hero .exec-action.primary {
  background-color:var(--accent-mid);
  background-image:var(--accent-gradient);
  border-color:#5b8e92;
  color:#f7f8ff !important;
  box-shadow:0 8px 24px rgba(33,78,83,.22);
}
.page-today .exec-action { border-radius:7px; padding:9px 14px; }
.page-today .exec-stack-row:not(.is-hero) .exec-action.primary {
  background:var(--accent-gradient-soft);
  border-color:rgba(95,143,170,.46);
  color:#9cc9ba !important;
}
.page-today .exec-stack-actions .dismiss-action {
  border-color:transparent;
  background:transparent;
  color:var(--exec-muted) !important;
}
.page-today .exec-return-actions .focus-action { color:var(--text-main) !important; border-color:#454b56; }
.page-today .exec-return-actions .focus-action span { color:var(--steel-soft); }
.page-today .exec-output-map :is(.output-move,.output-understanding,.output-question) > span { display:flex; align-items:center; gap:7px; color:var(--text-dim); }
.page-today .exec-output-map :is(.output-move,.output-understanding,.output-question) > span::before { content:""; width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:var(--accent-blue); }
.page-today .exec-output-map .output-understanding > span::before { background:var(--success); }
.page-today .exec-output-map .output-question > span::before { background:var(--warning); }
.page-today .exec-metrics a { position:relative; border-color:#343943; }
.page-today .exec-metrics a::before { content:none; }
.page-today .exec-metrics small { display:flex; align-items:center; gap:7px; }
.page-today .exec-metrics small::before { content:""; width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:var(--accent-blue); }
.page-today .exec-metrics a:nth-child(2) small::before { background:var(--warning); }
.page-today .exec-metrics a:has(b.okc) small::before { background:var(--success); }
.page-today .exec-metrics a:has(b.errc) small::before { background:var(--danger); }
.page-today .exec-metrics a:nth-child(4) small::before { background:var(--success); }
.page-today .exec-metrics b { color:var(--text-main); }
.page-today .exec-metrics i::after { background:var(--accent-gradient); }
.page-today .exec-metrics a:nth-child(2) i::after { background:var(--warning); }
.page-today .exec-metrics a:nth-child(3):has(b.okc) i::after,
.page-today .exec-metrics a:nth-child(4) i::after { background:var(--success); }
.page-today .exec-metrics a:nth-child(3):has(b.errc) i::after { background:var(--danger); }
.page-today .operating-chart {
  border-color:#343943;
  background:linear-gradient(180deg,#17191e,#111318);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  cursor:pointer;
  transition:border-color .15s,background .15s,transform .15s;
}
.page-today .operating-chart:nth-child(n) { border-top-color:#343943; }
.page-today .operating-chart header b { color:#f7f8ff; font-size:.875rem; }
.page-today .operating-chart:hover,.page-today .operating-chart:focus-visible { border-color:rgba(95,143,170,.62); background:linear-gradient(180deg,#1a2024,#12171b); transform:translateY(-1px); }
.page-today .operating-chart:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; }
.page-today .exec-rail-card.accent { border-color:#3a404b; box-shadow:inset 3px 0 0 var(--accent-blue); }
.page-today .exec-rail-card.danger-card { border-color:#3a404b; box-shadow:inset 3px 0 0 var(--danger); }
.page-today .exec-rail-card.source-coverage { border-color:#3a404b; box-shadow:inset 3px 0 0 var(--success); }
.page-today .exec-learning-number { color:var(--text-main); }
.page-today .coverage-counts b { color:var(--text-main); }

@media (max-width:640px) {
  .page-today .exec-pipeline { padding-block:10px 11px; }
  .page-today .exec-pipeline-grid { gap:7px; }
  .page-today .exec-stage {
    flex-basis:96px;
    min-height:62px;
    padding:8px 7px;
    border-color:#3c424d;
    background:#14171c;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  }
  .page-today .exec-stage > span { color:#c9ced6; letter-spacing:.09em; }
  .page-today .exec-stage b { margin-top:2px; font-size:1.45rem; }
  .page-today .exec-return-context { width:100%; min-width:0; }
  .page-today .exec-return-context > * { min-width:0; max-width:100%; }
  .page-today .exec-regime { width:fit-content; overflow-wrap:anywhere; }
  .page-today .exec-stack-actions {
    grid-column:2;
    justify-content:flex-start;
    align-items:center;
    width:auto;
    gap:7px;
  }
  .page-today .exec-stack-actions .exec-action {
    flex:0 0 auto !important;
    width:auto !important;
    min-height:44px;
    padding:8px 14px;
    border-radius:7px;
  }
  .page-today .exec-stack-actions .exec-action.primary {
    min-width:84px;
    justify-content:center;
  }
  .page-today .exec-stack-actions .dismiss-action { padding-inline:9px; }
  .page-today .exec-stack-row[data-kind="understanding"] .exec-stack-actions {
    display:flex;
    grid-column:2;
  }
  .page-today .exec-stack-row[data-kind="understanding"] .dismiss-action {
    grid-column:auto;
    width:auto;
    min-height:44px;
  }
  .page-today .exec-return-actions .exec-action { min-height:44px; border-radius:7px; }
  .page-today .exec-return-actions .focus-action {
    width:max-content;
    min-height:44px;
    padding:6px 0;
    border:0;
    justify-self:start;
  }
  .page-today .exec-output-map { grid-template-columns:.85fr 1.2fr .95fr; }
  .page-today .exec-output-map :is(.output-move,.output-understanding,.output-question) > span {
    gap:4px;
    letter-spacing:0;
  }
  .page-today .exec-output-map :is(.output-move,.output-understanding,.output-question) > span::before {
    width:5px;
    height:5px;
    flex-basis:5px;
  }
}
body[class] main :is(.exec-regime,.exec-output,.exec-output-map > a > span,
  .exec-output-map > span > span,.meeting-tag,.intel-state,
  .intel-fresh,.intel-dark,.buyer-label,.channel-counts span,.profile-tags span,
  .profile-form label,.profile-form legend,.asset-form label,.buyer-source-stamp span,
  .buyer-type-line span,.buyer-smart-reads article > span,.buyer-connected-strip b,
  .buyer-chip-groups p span,.buyer-baseline-contact span,
  .buyer-baseline-contact em,.buyer-open-questions p span,.buyer-evidence-drawer p,
  .buyer-contact-linker label,.buyer-contact-linker > p,.buyer-learning-meter,
  .buyer-learning-form label,.buyer-learning-history span,
  .buyer-unmatched article span,.buyer-link-form label,.baseline-library-hero > span,
  .baseline-library-identity p,
  .baseline-library-economics em,.baseline-library-list > article > form label,
  .conference-date,.conference-attendees span,.contact-section-heading > span,
  .contact-section-heading > a,.contact-section-heading > button,
  .contact-resolution-gaps span,.contact-evidence summary,
  .contact-evidence a,.contact-evidence span,.contact-fact-actions > a,
  .contact-fact-correct > summary,.contact-fact-actions .fact-reject,
  .contact-claim-list article > a,.contact-filter-row button,
  .contact-administration > summary i,.contact-capture-form label) {
  font-size:var(--micro-copy) !important;
  line-height:1.35;
}
/* The intelligence workspaces inherited unusually specific microtype from
   their dense first release. Keep values/headlines expressive, but never let
   their supporting words collapse below the product floor. */
body[class] main .buyer-command :is(span,summary,label,em),
body[class] main .contact-workspace :is(span,summary,label,legend),
body[class] main .intel-hero-meta > span,
body[class] main .intel-section-head > :is(a,span),
body[class] main .contact-local-nav > span,
body[class] main .contact-local-nav > span b {
  font-size:var(--micro-copy) !important;
  line-height:1.35;
}
body[class] main .baseline-library-list > article > form :is(select,button) {
  font-size:var(--micro-copy);
}
.page-decisions main :is([class^="status-"],[class*=" status-"]) {
  font-size:var(--micro-copy) !important;
}
.page-settings main :is(.stat span,.metric-source-state span),
.page-contacts main :is(.intel-scope span,.contact-index-partners span) {
  font-size:var(--micro-copy) !important;
  line-height:1.4 !important;
}
.page-header-copy,.contact-command-hero > div,.baseline-library-hero > div { text-wrap:pretty; }
.page-header p { max-width:68ch; }
.card,.intel-index-card,.contact-index-list,.conference-card,.connection-contract { scroll-margin-top:82px; }

/* Relationship record lifecycle: creation is fast; removal is deliberate and
   provenance-preserving. Keep the accent on controls and state, not surfaces. */
.record-status-banner {
  display:flex;
  align-items:center;
  gap:8px 14px;
  margin:0 0 12px;
  padding:11px 14px;
  border:1px solid rgba(79,164,119,.32);
  border-left:3px solid var(--accent-green);
  border-radius:9px;
  background:rgba(79,164,119,.055);
  color:var(--text-dim);
  font:var(--support-copy)/1.4 var(--exec-body);
}
.record-status-banner b { color:var(--text-main); }
.intel-command-main {
  display:grid;
  grid-template-columns:minmax(280px,1fr) auto;
  gap:8px;
  min-width:0;
}
.intel-command-main .intel-search { min-width:0; }
.intel-create { position:relative; z-index:35; }
.intel-create > summary {
  display:inline-flex;
  min-height:48px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 15px;
  border:1px solid rgba(82,143,145,.48);
  border-radius:8px;
  background:var(--accent-gradient-soft);
  color:var(--text-main);
  cursor:pointer;
  list-style:none;
  white-space:nowrap;
  font:600 var(--support-copy)/1 var(--exec-body);
}
.intel-create > summary::-webkit-details-marker { display:none; }
.intel-create > summary span {
  color:#79baa0;
  font:700 1.1rem/1 var(--exec-body);
}
.intel-create[open] > summary { border-color:rgba(79,164,119,.62); }
.intel-create-form {
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  width:min(700px,calc(100vw - 56px));
  padding:18px;
  border:1px solid rgba(82,143,145,.48);
  border-radius:12px;
  background:#12151b;
  box-shadow:0 28px 90px rgba(0,0,0,.72),inset 0 1px rgba(255,255,255,.04);
}
.intel-create-heading {
  grid-column:1/-1;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
  padding-bottom:12px;
  border-bottom:1px solid var(--exec-border);
}
.intel-create-heading h2 { margin:3px 0 0; font:700 1.3rem/1.1 var(--exec-display); }
.intel-create-heading p { max-width:330px; margin:0; color:var(--text-dim); text-align:right; font:var(--micro-copy)/1.4 var(--exec-body); }
.intel-create-heading .intel-create-close {
  flex:0 0 auto;
  width:44px;
  min-height:44px;
  padding:0;
  border-radius:999px;
  color:var(--text-dim);
  font-size:1.35rem;
}
.intel-create-form label {
  display:grid;
  gap:6px;
  min-width:0;
  color:var(--text-dim);
  font:600 var(--micro-copy)/1.3 var(--exec-body);
}
.intel-create-form label.wide,.intel-create-actions { grid-column:1/-1; }
.intel-create-form :is(input,select,textarea) {
  width:100%;
  min-width:0;
  background:#090b10;
  color:var(--text-main);
  font-family:var(--exec-body);
}
.intel-create-form textarea { resize:vertical; }
.intel-create-actions { display:flex; align-items:center; gap:14px; }
.intel-create-actions small { color:var(--text-dim); font:var(--micro-copy)/1.4 var(--exec-body); }
.record-lifecycle {
  margin-top:16px;
  padding-top:13px;
  border-top:1px solid rgba(200,98,104,.22);
}
.record-lifecycle > summary {
  width:max-content;
  color:#d78287;
  cursor:pointer;
  font:600 var(--micro-copy)/1.3 var(--exec-body);
}
.record-lifecycle > div { display:grid; gap:5px; margin-top:11px; }
.record-lifecycle > div > b { color:var(--text-main); font:600 var(--support-copy)/1.3 var(--exec-body); }
.record-lifecycle p { margin:0; color:var(--text-dim); font:var(--micro-copy)/1.45 var(--exec-body); }
.record-lifecycle form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; margin-top:8px; }
.record-lifecycle label { display:grid; gap:5px; min-width:0; color:var(--text-dim); font:var(--micro-copy)/1.4 var(--exec-body); }
.record-lifecycle input { width:100%; min-width:0; background:#090b10; font-family:var(--exec-body); }
.record-lifecycle .btn-danger { min-height:44px; }

@media (max-width: 700px) {
  .hypothesis-watch-detail { grid-template-columns:1fr; }
  .hypothesis-watch-detail > div,.hypothesis-watch-detail > form { grid-column:1; }
  .hypothesis-watch-item > summary { align-items:flex-start; }
  .record-status-banner { align-items:flex-start; flex-direction:column; }
  .intel-command-main { grid-template-columns:1fr; }
  .intel-create > summary { width:100%; }
  .intel-create-form {
    position:static;
    grid-template-columns:1fr;
    width:100%;
    margin-top:8px;
    padding:15px;
  }
  .intel-create-heading,.intel-create-form label.wide,.intel-create-actions { grid-column:1; }
  .intel-create-heading { align-items:start; flex-direction:column; }
  .intel-create-heading p { text-align:left; }
  .intel-create-actions { align-items:stretch; flex-direction:column; }
  .intel-create-actions button { width:100%; }
  .record-lifecycle form { grid-template-columns:1fr; }
  .record-lifecycle .btn-danger { width:100%; }
}
details > summary { transition:color .15s,background .15s; }
details > summary:hover { color:var(--text-main); }
.contact-index-row { grid-template-columns:46px minmax(200px,1.25fr) minmax(150px,.9fr) minmax(150px,.55fr) 105px; }
.contact-index-signals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }

/* Empty charts remain honest without charging a full chart's scroll cost. */
.operating-chart.is-empty { background:rgba(15,17,19,.72); }
.operating-chart.is-empty [data-chart] { height:96px !important; min-height:0; }

/* Instant filtering preserves the server GET fallback and deep-link contract. */
form[data-live-filter] { position:relative; }
.live-filter-status { align-self:center; color:var(--exec-muted); font:var(--micro-copy) var(--exec-data); white-space:nowrap; }
.intel-search .live-filter-status { grid-column:1/-1; }
.baseline-library-search { grid-template-columns:minmax(0,1fr) auto auto auto; }
[data-filter-item][hidden] { display:none !important; }
.is-filtered-empty::after { content:attr(data-filter-empty); display:block; grid-column:1/-1; padding:30px 18px; border:1px dashed var(--exec-border); border-radius:10px; color:var(--exec-muted); text-align:center; font:.76rem var(--exec-body); }

/* Meeting intelligence is an explorable evidence graph. The first release
   styled nodes like controls but emitted inert spans. These selectors pair
   the new links with an honest, visible drill-through state. */
.meeting-metrics span { font-size:var(--micro-copy); line-height:1.35; }
.meeting-metrics > a { transition:border-color .15s,background .15s,transform .15s; }
.meeting-metrics > a:hover,.meeting-metrics > a:focus-visible { border-color:rgba(95,143,170,.52); background:rgba(95,143,170,.08); text-decoration:none; transform:translateY(-1px); }
.meeting-metrics > a:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; }
.meeting-view-switch {
  display:flex;
  gap:24px;
  margin:0 0 16px;
  border-bottom:1px solid var(--exec-border);
}
.meeting-view-switch a {
  position:relative;
  display:grid;
  gap:2px;
  min-width:190px;
  padding:10px 2px 12px;
  color:var(--exec-muted);
  text-decoration:none;
}
.meeting-view-switch a::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:2px;
  background:transparent;
}
.meeting-view-switch a b { color:var(--text-dim); font:600 .9375rem var(--exec-body); }
.meeting-view-switch a small { font:var(--micro-copy)/1.35 var(--exec-body); }
.meeting-view-switch a.is-active b { color:var(--text-main); }
.meeting-view-switch a.is-active::after { background:var(--accent-gradient); }
.meeting-view-switch a:hover b { color:var(--text-main); }
.meeting-overview { scroll-margin-top:86px; }
.meeting-audience { align-items:stretch; }
.meeting-audience-link {
  position:relative;
  display:grid;
  grid-template-columns:1fr auto;
  gap:2px 10px;
  min-width:108px;
  padding:11px 12px;
  border:1px solid transparent;
  border-left:2px solid var(--steel);
  background:rgba(95,143,170,.06);
  color:var(--exec-muted);
  text-decoration:none;
  transition:border-color .15s,background .15s,transform .15s;
}
.meeting-audience-link b { grid-column:1/-1; color:var(--text-main); font:600 1.25rem var(--exec-display); }
.meeting-audience-link span { font:var(--micro-copy) var(--exec-data); text-transform:capitalize; }
.meeting-audience-link i { align-self:end; color:var(--exec-steel-soft); font:600 var(--micro-copy) var(--exec-body); font-style:normal; opacity:.72; }
.meeting-audience-link:hover,.meeting-audience-link:focus-visible { border-color:rgba(95,143,170,.48); background:rgba(95,143,170,.12); text-decoration:none; transform:translateY(-1px); }
.topic-cloud > .meeting-topic-link {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:3px 10px;
  min-width:150px;
  padding:9px 11px;
  border:1px solid var(--exec-border);
  border-radius:7px;
  color:var(--text-main);
  text-decoration:none;
  transition:border-color .15s,background .15s,transform .15s;
}
.meeting-topic-link b { font:600 .875rem/1.3 var(--exec-body); }
.meeting-topic-link small { grid-column:1; color:var(--exec-muted); font:var(--micro-copy) var(--exec-data); }
.meeting-topic-link i { grid-column:2; grid-row:1/3; align-self:center; color:var(--exec-steel-soft); font:600 .9rem var(--exec-body); font-style:normal; opacity:.7; }
.meeting-topic-link:hover,.meeting-topic-link:focus-visible { border-color:rgba(95,143,170,.5); background:rgba(95,143,170,.08); text-decoration:none; transform:translateY(-1px); }
.meeting-series-card { position:relative; min-height:142px; transition:border-color .15s,background .15s,transform .15s; }
.meeting-series-card:hover { border-color:rgba(95,143,170,.46); background:rgba(95,143,170,.055); transform:translateY(-1px); }
.meeting-series-main { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:start; color:var(--text-main); text-decoration:none; }
.meeting-series-main::after { content:""; position:absolute; inset:0; z-index:1; border-radius:9px; }
.meeting-series-main b { overflow-wrap:anywhere; font:600 .9375rem/1.35 var(--exec-body); }
.meeting-series-main > span { color:var(--exec-steel-soft); font:600 var(--micro-copy)/1.4 var(--exec-body); white-space:nowrap; opacity:.72; }
.meeting-series-card > div { position:relative; z-index:2; }
.meeting-series-card > small { font-size:var(--micro-copy) !important; }
.meeting-tag { position:relative; z-index:2; min-height:26px; align-items:center; padding:4px 7px; font-size:var(--micro-copy) !important; line-height:1.25; text-decoration:none; }
a.meeting-tag:hover,a.meeting-tag:focus-visible { border-color:rgba(95,143,170,.6); background:rgba(95,143,170,.1); color:var(--text-main); text-decoration:none; }
.meeting-filter-state { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 14px; padding:12px 14px; border:1px solid rgba(95,143,170,.38); border-left:3px solid var(--steel); border-radius:9px; background:rgba(95,143,170,.055); }
.meeting-filter-state > div { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 10px; }
.meeting-filter-state span,.meeting-filter-state small { color:var(--exec-muted); font:var(--micro-copy) var(--exec-data); }
.meeting-filter-state b { color:var(--text-main); font:600 .875rem var(--exec-body); text-transform:capitalize; }
.meeting-filter-state a { min-height:36px; display:inline-flex; align-items:center; padding:0 10px; border:1px solid var(--exec-border); border-radius:6px; color:var(--exec-steel-soft); font:600 var(--micro-copy) var(--exec-body); white-space:nowrap; }
.meeting-filter-state a:hover { border-color:rgba(95,143,170,.52); text-decoration:none; }
.meeting-row,.meeting-claim { gap:9px; padding:15px 0; }
.meeting-row small,.meeting-claim small { font-size:var(--micro-copy) !important; line-height:1.45; }
.meeting-row-top > span { color:var(--exec-steel-soft); font:600 var(--micro-copy) var(--exec-data); text-transform:capitalize; }
.meeting-row > b,.meeting-claim > b { font-size:.9375rem; line-height:1.42; }
.meeting-row > b a { color:var(--text-main); }
.meeting-row > b a span { color:var(--exec-steel-soft); font-size:.75rem; }
.meeting-claim blockquote { font-size:var(--support-copy); line-height:1.55; }
.meeting-claim > small a { color:var(--exec-steel-soft); }
.meeting-columns.is-replay { grid-template-columns:minmax(0,1fr); }
.meeting-replay-row {
  position:relative;
  padding:18px 16px 18px 18px;
  border:1px solid var(--exec-border);
  border-left:3px solid var(--accent-mid);
  border-radius:10px;
  background:linear-gradient(125deg,rgba(79,164,119,.035),rgba(95,143,170,.035) 58%,rgba(12,14,16,.22));
}
.meeting-replay-row + .meeting-replay-row { margin-top:9px; }
.meeting-replay-signals { display:flex; flex-wrap:wrap; gap:7px 16px; padding:9px 0; border-block:1px solid rgba(255,255,255,.055); }
.meeting-replay-signals span { display:inline-flex; align-items:center; gap:6px; color:var(--exec-muted); font:var(--micro-copy) var(--exec-body); }
.meeting-replay-signals span::before { content:""; width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:#69717d; }
.meeting-replay-signals .is-blue::before { background:var(--accent-blue); }
.meeting-replay-signals .is-green::before { background:var(--success); }
.meeting-replay-signals .is-red::before { background:var(--danger); }
.meeting-replay-signals b { color:var(--text-main); font-family:var(--font-num); }
.meeting-replay-delta { display:flex; flex-wrap:wrap; gap:6px 18px; margin:0; color:var(--exec-muted); font:var(--micro-copy)/1.45 var(--exec-body); }
.meeting-replay-delta b { color:var(--exec-steel-soft); }
.meeting-replay-evidence { border-top:1px solid rgba(255,255,255,.06); }
.meeting-replay-evidence > summary { display:flex; justify-content:space-between; gap:12px; min-height:42px; align-items:center; color:var(--exec-steel-soft); font:600 var(--micro-copy) var(--exec-body); }
.meeting-replay-evidence > summary span { color:var(--exec-muted); font-weight:400; }
.meeting-replay-evidence > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:2px 0 5px; }
.meeting-replay-evidence article { display:grid; gap:5px; min-width:0; padding:11px; border:1px solid rgba(255,255,255,.07); border-radius:7px; background:rgba(5,6,7,.34); }
.meeting-replay-evidence article > small { color:var(--accent-blue); text-transform:capitalize; }
.meeting-replay-evidence article > b { font:600 .875rem/1.4 var(--exec-body); overflow-wrap:anywhere; }
.meeting-replay-evidence blockquote { margin:0; padding:7px 9px; border-left:2px solid var(--success); color:var(--text-dim); background:rgba(79,164,119,.04); font:var(--support-copy)/1.48 var(--exec-body); }
.meeting-empty { margin:14px 0 0; padding:18px; border:1px dashed var(--exec-border); border-radius:8px; color:var(--text-dim); font:var(--support-copy)/1.5 var(--exec-body); }
.meeting-empty a { color:var(--exec-steel-soft); }
@media (max-width:640px) {
  .meeting-view-switch { gap:12px; }
  .meeting-view-switch a { min-width:0; flex:1; }
  .meeting-replay-row { padding:15px 12px 15px 14px; }
  .meeting-replay-evidence > div { grid-template-columns:1fr; }
}

/* Relationship intelligence uses dense evidence, but dense does not mean
   miniature. Keep labels/data at 12px and prose that must be understood at
   13-14px across both the buyer and contact workspaces. */
.buyer-command :is(input,select,textarea),
.contact-workspace :is(input,select,textarea),
.contact-capture-dialog :is(input,select,textarea) { font-size:var(--support-copy); }
.buyer-command :is(p,li,dd,blockquote),
.buyer-thesis p,.buyer-smart-reads p,.buyer-demand-surface p,
.buyer-commercial b,.buyer-open-questions p,.buyer-learning-card p,
.buyer-evidence-drawer p,.buyer-unmatched p {
  font-size:var(--support-copy) !important;
  line-height:1.55 !important;
}
.buyer-command :is(h2,.buyer-section-title) { line-height:1.25; }
.buyer-learning-form :is(input,textarea),.buyer-contact-linker select { min-height:44px; }
.contact-command-hero p,.contact-next p,.contact-record dd,
.contact-memory-list p,.contact-claim-list b,.contact-claim-list q,
.contact-history p,.contact-history b,.contact-overlap p,
.contact-inline-empty,.contact-empty-prepare,
.contact-evidence p,.contact-evidence blockquote {
  font-size:var(--support-copy) !important;
  line-height:1.55 !important;
}
.contact-section-heading h2 { font-size:1.2rem; line-height:1.28; }
.contact-prepare-grid article > b,.contact-prepare-lists b,
.contact-record dd b,.contact-memory-list b { font-size:var(--reading-copy); line-height:1.45; }
.contact-signal-strip b { font-size:1.08rem; }
.contact-local-nav a { font-size:var(--micro-copy); }
.contact-quick-actions a,.contact-quick-actions button { font-size:var(--micro-copy); }
.contact-capture-dialog-head p,.contact-capture-form > div small { font-size:var(--support-copy); line-height:1.5; }
.contact-index-name { min-width:0; }
.contact-index-name small { display:block; max-width:100%; overflow-wrap:anywhere; word-break:break-word; }

/* High-specificity first-release rules still carried a handful of 8-11px
   values. Raise the actual information, not the decorative chart scale. */
body.page-partner main :is(.intel-back,.intel-avatar,.channel-mark),
body.page-contact main :is(.intel-back,.intel-avatar,.channel-mark) {
  font-size:var(--micro-copy) !important;
}
body.page-partner main :is(.buyer-source-stamp b,.buyer-connected-strip b,
  .buyer-vehicle-ledger b) {
  font-size:var(--micro-copy) !important;
  line-height:1.4;
}
body.page-partner main :is(.buyer-smart-reads b,.buyer-demand-anchors b,
  .buyer-commercial > div > span b,.buyer-baseline-contact b,
  .buyer-learning-history b,.interaction-timeline p,.partner-record dd) {
  font-size:var(--support-copy) !important;
  line-height:1.5 !important;
}
body.page-partner main .fact-capture > summary {
  font-size:var(--micro-copy) !important;
  line-height:1.4;
}
body.page-contact main :is(.interaction-timeline p,.relationship-facts b,
  .contact-hooks b,.contact-claim-list b,.contact-memory-list b) {
  font-size:var(--support-copy) !important;
  line-height:1.5 !important;
}
body.page-contact main :is(.contact-empty-prepare p,.contact-empty-prepare b,
  .contact-affiliations b,.contact-memory-list q,.contact-memory-add,
  .contact-inline-empty p,.contact-inline-empty b,.conference-links b) {
  font-size:var(--support-copy) !important;
  line-height:1.5 !important;
}

/* Profile correction is a primary workflow, not a footer utility. The dialog
   keeps identity, relationship role, and enrichment visible at desktop and
   phone sizes without displacing the executive record underneath it. */
.profile-edit-dialog { width:min(940px,calc(100vw - 28px)); }
.intel-hero { position:relative; }
.partner-record-actions {
  position:absolute;
  top:22px;
  right:24px;
  z-index:2;
  display:flex;
  gap:8px;
}
.partner-edit-trigger,
.partner-record-actions .record-delete-trigger {
  min-height:44px;
  padding:9px 13px;
}
.partner-edit-trigger {
  border-color:rgba(95,143,170,.44);
  background:rgba(95,143,170,.08);
  color:var(--exec-steel-soft);
}
.record-delete-trigger {
  border-color:rgba(200,98,104,.34) !important;
  background:rgba(200,98,104,.045) !important;
  color:#d99599 !important;
}
.record-delete-trigger:hover,.record-delete-trigger:focus-visible {
  border-color:rgba(200,98,104,.72) !important;
  background:rgba(200,98,104,.11) !important;
  color:#f1b3b6 !important;
}
.profile-edit-form { display:block; }
.profile-edit-section {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px 18px;
  padding:20px 22px;
  border-bottom:1px solid var(--exec-border);
}
.profile-edit-section > header {
  grid-column:1/-1;
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  margin-bottom:2px;
}
.profile-edit-section > header span { color:var(--text-main); font:600 1rem/1.3 var(--exec-display); }
.profile-edit-section > header small { max-width:58ch; color:var(--exec-muted); text-align:right; }
.profile-edit-section label {
  display:grid;
  align-content:start;
  gap:7px;
  color:var(--text-dim) !important;
  font:600 var(--micro-copy)/1.35 var(--exec-body) !important;
  letter-spacing:0 !important;
  text-transform:none !important;
}
.profile-edit-section label > small { color:var(--exec-muted); font-weight:400; }
.profile-edit-section :is(input,select,textarea) {
  width:100%;
  min-height:46px;
  padding:11px 12px;
  background:#0a0c0f;
  color:var(--text-main);
  font:var(--reading-copy)/1.4 var(--exec-body) !important;
}
.profile-edit-section textarea { min-height:112px; resize:vertical; }
.profile-edit-section .wide { grid-column:1/-1; }
.profile-edit-section fieldset {
  display:flex;
  flex-wrap:wrap;
  gap:9px 16px;
  padding:13px;
  border:1px solid var(--exec-border);
  border-radius:8px;
}
.profile-edit-section fieldset .check,.profile-edit-section > .check {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:8px;
  min-height:46px;
}
.profile-edit-section .check input { width:18px; min-height:18px; padding:0; }
.profile-edit-actions {
  position:sticky;
  z-index:2;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:9px;
  padding:14px 22px;
  border-bottom:1px solid var(--exec-border);
  background:rgba(17,19,21,.96);
  backdrop-filter:blur(12px);
}
.profile-edit-actions span { margin-right:auto; color:var(--exec-muted); font:var(--micro-copy)/1.4 var(--exec-body); }
.profile-edit-actions button { min-height:44px; padding-inline:16px; }
.profile-edit-utilities {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px 18px;
  padding:16px 22px max(18px,env(safe-area-inset-bottom));
  background:rgba(7,9,11,.5);
}
.profile-edit-utilities .asset-form { display:flex; align-items:end; gap:8px; }
.profile-edit-utilities .asset-form label { min-width:220px; }
.profile-edit-utilities .record-lifecycle { width:100%; }
.record-delete-dialog { width:min(580px,calc(100vw - 28px)); }
.record-delete-dialog > form { position:relative; display:grid; gap:16px; padding:24px; }
.record-delete-dialog > form > .dialog-close { position:absolute; top:12px; right:12px; width:40px; min-height:40px; padding:0; border-radius:999px; font-size:1.25rem; }
.record-delete-dialog > form h2 { margin:2px 42px 0 0; font:700 1.55rem/1.2 var(--exec-display); }
.record-delete-dialog > form p { margin:0; color:var(--text-dim); font:var(--reading-copy)/1.55 var(--exec-body); }
.record-delete-dialog > form label { display:grid; gap:8px; color:var(--text-dim); font:600 var(--support-copy)/1.45 var(--exec-body); }
.record-delete-dialog > form input { width:100%; min-height:48px; background:#090b10; font:var(--reading-copy)/1.4 var(--exec-body); }
.record-delete-dialog > form footer { display:flex; justify-content:flex-end; gap:9px; padding-top:4px; }
.conference-hero-actions { position:absolute; top:28px; right:0; display:flex; gap:9px; }
.conference-hero-actions .record-delete-trigger { color:#d78287; border-color:rgba(200,98,104,.45); }
.record-delete-body { display:grid; gap:18px; padding:20px 22px 22px; }
.record-delete-impact {
  display:grid;
  gap:6px;
  padding:14px 15px;
  border:1px solid rgba(200,98,104,.25);
  border-left:3px solid rgba(200,98,104,.7);
  border-radius:9px;
  background:rgba(200,98,104,.045);
}
.record-delete-impact b { color:var(--text-main); font:600 var(--reading-copy)/1.35 var(--exec-body); }
.record-delete-impact p { margin:0; color:var(--text-dim); font:var(--support-copy)/1.55 var(--exec-body); }
.record-delete-body form { display:grid; gap:15px; }
.record-delete-body form > label { display:grid; gap:7px; color:var(--text-dim); font:600 var(--support-copy)/1.4 var(--exec-body); }
.record-delete-body input { width:100%; min-height:46px; background:#090b10; font:var(--reading-copy)/1.4 var(--exec-body); }
.record-delete-body form > div { display:flex; justify-content:flex-end; gap:9px; }
.record-delete-body button { min-height:44px; padding-inline:16px; }
body.page-contact main .contact-prepare :is(p,b),
body.page-contact main .contact-record dd,
body.page-contact main .contact-memory-list > article > b,
body.page-contact main .contact-claim-list article > b,
body.page-contact main .interaction-timeline p {
  font-size:var(--reading-copy) !important;
  line-height:1.55 !important;
}
body.page-contact main .contact-next-move p { font-size:1rem !important; }

@media (max-width:640px) {
  .profile-edit-dialog { width:calc(100vw - 12px); }
  .partner-record-actions { top:13px; right:13px; }
  .profile-edit-section { grid-template-columns:1fr; gap:13px; padding:17px 14px; }
  .profile-edit-section > header,.profile-edit-section .wide { grid-column:1; }
  .profile-edit-section > header { display:grid; gap:4px; }
  .profile-edit-section > header small { text-align:left; }
  .profile-edit-actions { display:grid; grid-template-columns:1fr 1fr; padding:12px 14px; }
  .profile-edit-actions span { grid-column:1/-1; margin:0; }
  .profile-edit-actions button { width:100%; }
  .profile-edit-utilities { display:grid; padding-inline:14px; }
  .profile-edit-utilities .asset-form { display:grid; }
  .profile-edit-utilities .asset-form label { min-width:0; }
}

/* Relationship workspace repair: progressive disclosure and explicit evidence
   scopes replace long form walls and visually ambiguous economics. */
.profile-edit-dialog[open] {
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.profile-edit-dialog > .contact-capture-dialog-head { flex:0 0 auto; }
.profile-edit-scroll {
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.internal-designation {
  grid-template-columns:22px minmax(0,1fr) !important;
  align-items:start !important;
  padding:12px 13px;
  border:1px solid rgba(95,143,170,.34);
  border-radius:9px;
  background:rgba(95,143,170,.055);
}
.internal-designation input { width:18px !important; min-height:18px !important; margin-top:2px; }
.internal-designation span { display:grid; gap:3px; }
.internal-designation b { color:var(--text-main); font:600 var(--reading-copy)/1.35 var(--exec-body); }
.internal-designation small { color:var(--exec-muted); font:var(--support-copy)/1.45 var(--exec-body); }

.intel-dark-strip { grid-template-columns:auto minmax(0,1fr) auto; align-items:center; }
.intel-dark-strip a { color:var(--warning); font:600 var(--micro-copy)/1.4 var(--exec-body); white-space:nowrap; }

.partner-operations-drawer {
  margin:14px 0;
  border:1px solid var(--border-subtle);
  border-radius:11px;
  background:rgba(14,16,19,.78);
  overflow:hidden;
}
.partner-operations-drawer > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:64px;
  padding:12px 16px;
  cursor:pointer;
}
.partner-operations-drawer > summary span { display:grid; gap:3px; }
.partner-operations-drawer > summary b { color:var(--text-main); font:600 var(--reading-copy)/1.35 var(--exec-display); }
.partner-operations-drawer > summary small { color:var(--exec-muted); font:var(--support-copy)/1.4 var(--exec-body); }
.partner-operations-drawer > summary i { color:var(--exec-steel-soft); font:600 var(--micro-copy)/1.4 var(--exec-data); font-style:normal; white-space:nowrap; }
.partner-operations-drawer[open] > summary { border-bottom:1px solid var(--border-subtle); }
.partner-operations-drawer > :not(summary) { margin-inline:14px; }
.partner-operations-drawer > :last-child { margin-bottom:14px; }
.operator-guard-grid { align-items:start; }
.scope-check-form label,.scope-ingest form label,.case-quick-create label,
.demand-gap-panel details form label {
  display:grid;
  align-content:start;
  gap:6px;
  min-width:0;
  margin:0;
  color:var(--text-dim);
  font:600 var(--micro-copy)/1.4 var(--exec-body);
}
.scope-check-form :is(textarea,input),.scope-ingest form :is(textarea,input),
.case-quick-create :is(textarea,input),.demand-gap-panel details form :is(textarea,input) {
  width:100%; min-width:0;
}
.partner-create-drawer { margin-top:12px; border-top:1px solid var(--border-subtle); }
.partner-create-drawer > summary { min-height:46px; padding:12px 2px; color:var(--exec-steel-soft); cursor:pointer; font:600 var(--support-copy)/1.4 var(--exec-body); }
.partner-create-drawer .case-quick-create { padding-top:4px; }
.buyer-learning-grid { align-items:start; }

.buyer-source-ledger {
  display:grid;
  grid-template-columns:minmax(0,2.5fr) minmax(250px,1fr);
  gap:9px;
  margin-bottom:9px;
}
.buyer-source-scope {
  min-width:0;
  overflow:hidden;
  border:1px solid var(--exec-border);
  border-radius:9px;
  background:rgba(15,17,19,.72);
}
.buyer-source-scope > header {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:10px 13px;
  border-bottom:1px solid var(--exec-border);
}
.buyer-source-scope > header span { color:var(--text-main); font:600 var(--micro-copy)/1.4 var(--exec-data); text-transform:uppercase; letter-spacing:.055em; }
.buyer-source-scope > header small { color:var(--exec-muted); font:var(--micro-copy)/1.4 var(--exec-body); text-align:right; }
.buyer-source-scope.is-healthcare { border-left:3px solid var(--success); }
.buyer-source-scope.is-healthcare > header span { color:var(--success); }
.buyer-source-scope.is-excel { border-left:3px solid var(--warning); }
.buyer-source-scope.is-excel > header span { color:var(--warning); }
.buyer-source-scope .buyer-floor-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; border:0; border-radius:0; }
.buyer-history-stat { display:grid; gap:5px; padding:13px 14px; }
.buyer-history-stat > span { color:var(--exec-muted); font:var(--micro-copy) var(--exec-data); text-transform:uppercase; }
.buyer-history-stat b { color:var(--warning); font:600 1.32rem var(--exec-display); }
.buyer-history-stat small { color:var(--exec-muted); font:var(--micro-copy)/1.4 var(--exec-body); }
.buyer-visual-card.is-excel { border-top:2px solid rgba(199,168,71,.5); }

.contact-workspace {
  grid-template-areas:"prepare prepare" "crm crm" "signals record" "history context" "admin admin";
}
.contact-crm { grid-area:crm; }
.contact-context-rail {
  grid-area:context;
  display:grid;
  align-self:start;
  gap:14px;
  min-width:0;
}
.contact-context-rail > .card {
  min-width:0;
  margin:0;
  padding:18px 19px;
  scroll-margin-top:126px;
}
.contact-context-rail > .contact-memory,
.contact-context-rail > .contact-overlap { grid-area:auto; }
.contact-thread-timeline article > div > footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:9px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.055);
}
.contact-thread-timeline footer span { color:var(--exec-muted); font:var(--micro-copy)/1.4 var(--exec-data); }
.contact-thread-timeline footer a { color:var(--exec-steel-soft); font:600 var(--micro-copy)/1.4 var(--exec-body); }
.contact-thread-timeline p { max-width:78ch; }

@media (max-width:1050px) {
  .contact-workspace { grid-template-areas:"prepare" "crm" "record" "context" "signals" "history" "admin"; }
  .buyer-source-ledger { grid-template-columns:1fr; }
}

/* Read-only CRM evidence: compact enough to scan, explicit enough to trust. */
.crm-intelligence {
  margin:0 0 14px;
  padding:19px 20px;
  border-color:rgba(79,171,143,.28);
  background:linear-gradient(145deg,rgba(79,171,143,.07),rgba(15,17,19,.94) 48%);
}
.crm-intelligence-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding-bottom:14px;
  border-bottom:1px solid var(--exec-border);
}
.crm-intelligence-head h2 { margin:3px 0 4px; font:600 1.15rem/1.25 var(--exec-display); }
.crm-intelligence-head p { max-width:72ch; margin:0; color:var(--exec-muted); font:.72rem/1.5 var(--exec-body); }
.crm-intelligence-head > span { color:var(--exec-steel-soft); font:600 .6rem var(--exec-data); white-space:nowrap; }
.crm-account-strip {
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr)) auto;
  align-items:stretch;
  margin-top:12px;
  overflow:hidden;
  border:1px solid var(--exec-border);
  border-radius:9px;
  background:rgba(5,7,8,.58);
}
.crm-account-strip > span { display:grid; gap:5px; padding:12px 13px; border-right:1px solid var(--exec-border); }
.crm-account-strip small,.crm-deal dt { color:var(--exec-muted); font:.52rem var(--exec-data); text-transform:uppercase; letter-spacing:.045em; }
.crm-account-strip b { overflow:hidden; color:var(--text-main); font:600 .75rem var(--exec-body); text-overflow:ellipsis; white-space:nowrap; }
.crm-account-strip > a { display:grid; place-items:center; min-height:54px; padding:10px 14px; color:var(--exec-steel-soft); font:600 .63rem var(--exec-body); white-space:nowrap; }
.crm-deal-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:10px; margin-top:10px; }
.crm-deal { position:relative; display:grid; gap:11px; min-width:0; padding:14px; border:1px solid var(--exec-border); border-left:3px solid var(--steel); border-radius:9px; background:rgba(8,10,11,.82); }
.crm-deal.is-won { border-left-color:var(--green); }
.crm-deal.is-closed { border-left-color:var(--exec-muted); opacity:.78; }
.crm-deal h3 { margin:4px 0 0; color:var(--text-main); font:600 .88rem/1.3 var(--exec-display); }
.crm-deal > div > small { color:var(--exec-muted); font:.52rem var(--exec-data); text-transform:uppercase; }
.crm-stage { justify-self:start; padding:4px 7px; border:1px solid rgba(79,171,143,.25); border-radius:999px; color:var(--exec-steel-soft); font:600 .52rem var(--exec-data); }
.crm-deal dl { display:grid; grid-template-columns:auto 1fr; gap:5px 10px; margin:0; }
.crm-deal dd { margin:0; color:var(--text-dim); font:.65rem/1.35 var(--exec-body); text-align:right; }
.crm-deal > a { padding-top:9px; border-top:1px solid var(--exec-border); color:var(--exec-steel-soft); font:600 .6rem var(--exec-body); }
.crm-empty { grid-column:1/-1; display:grid; gap:4px; padding:15px; border:1px dashed var(--exec-border); border-radius:8px; color:var(--exec-muted); font:.67rem var(--exec-body); }

@media (max-width:850px) {
  .crm-account-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .crm-account-strip > a { grid-column:1/-1; border-top:1px solid var(--exec-border); }
}
@media (max-width:560px) {
  .crm-intelligence { padding:15px 13px; }
  .crm-intelligence-head { display:grid; gap:8px; }
  .crm-account-strip { grid-template-columns:1fr; }
  .crm-account-strip > span { border-right:0; border-bottom:1px solid var(--exec-border); }
  .crm-deal-grid { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  .intel-dark-strip { grid-template-columns:1fr; }
  .partner-operations-drawer > summary { align-items:flex-start; }
  .partner-operations-drawer > summary i { white-space:normal; text-align:right; }
  .partner-operations-drawer > :not(summary) { margin-inline:8px; }
  .buyer-source-scope > header { display:grid; }
  .buyer-source-scope > header small { text-align:left; }
  .buyer-source-scope .buyer-floor-grid { grid-template-columns:1fr; }
  .contact-context-rail { gap:10px; }
  .contact-context-rail > .card { padding:15px 13px; scroll-margin-top:110px; }
  .contact-thread-timeline article > div > footer { align-items:flex-start; flex-direction:column; }
}

.relationship-operating-panel {
  margin-block:14px;
  padding:20px;
  border-color:rgba(82,143,145,.32);
  background:linear-gradient(125deg,rgba(79,164,119,.045),rgba(95,143,170,.035) 62%,transparent),var(--exec-panel);
}
.relationship-command-deck { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr); gap:12px; margin-bottom:12px; }
.dossier-shortcut { display:block; width:max-content; margin:-8px 0 13px auto; color:var(--exec-steel-soft); font:600 var(--support-copy) var(--exec-body); }
.dossier-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.dossier-toolbar a,.dossier-toolbar span { min-height:40px; padding:10px 12px; border:1px solid var(--exec-border); border-radius:7px; color:var(--text-dim); font:var(--micro-copy) var(--exec-body); }
.dossier-toolbar span { margin-left:auto; border:0; color:var(--exec-muted); }
.meeting-dossier-list { display:grid; gap:12px; }
.meeting-dossier { margin:0; padding:20px; border-color:rgba(95,143,170,.3); }
.meeting-dossier > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:14px; }
.meeting-dossier > header h2 { margin:4px 0; font:600 1.3rem/1.25 var(--exec-display); }
.meeting-dossier > header p { margin:0; color:var(--text-dim); font:var(--support-copy) var(--exec-body); }
.meeting-dossier > header > a { min-height:40px; padding:9px 11px; border:1px solid var(--exec-border); border-radius:7px; color:var(--exec-steel-soft); }
.meeting-dossier-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.meeting-dossier-grid > section { min-width:0; padding:12px; border:1px solid var(--exec-border); border-radius:8px; background:rgba(6,8,10,.34); }
.meeting-dossier-grid > section > small { display:block; margin-bottom:8px; color:var(--exec-steel-soft); font-weight:700; text-transform:uppercase; }
.meeting-dossier-grid p { display:grid; gap:3px; margin:0; padding:7px 0; border-top:1px solid rgba(255,255,255,.05); }
.meeting-dossier-grid p:first-of-type { border-top:0; }
.meeting-dossier-grid b { font:600 var(--support-copy)/1.4 var(--exec-body); }
.meeting-dossier-grid p span { color:var(--text-dim); font:var(--micro-copy)/1.45 var(--exec-body); }
.dossier-darkness { margin-top:9px; padding:9px 11px; border:1px dashed rgba(95,143,170,.28); border-radius:7px; color:var(--exec-muted); font:var(--micro-copy) var(--exec-body); }
.relationship-command-deck > .card { margin:0; min-width:0; }
.relationship-quick-capture { display:grid; grid-template-columns:minmax(220px,.68fr) minmax(300px,1.32fr); gap:14px 18px; padding:18px; }
.relationship-quick-capture h2,.relationship-daily-menu h2 { margin:4px 0 5px; font:600 1.18rem/1.3 var(--exec-display); }
.relationship-quick-capture p,.relationship-daily-menu p { margin:0; color:var(--text-dim); font:var(--support-copy)/1.5 var(--exec-body); }
.relationship-quick-capture label { display:grid; gap:6px; color:var(--text-dim); font:600 var(--micro-copy) var(--exec-body); }
.relationship-quick-capture > label { grid-row:span 2; }
.relationship-quick-capture textarea { min-height:110px; resize:vertical; font-size:var(--reading-copy); line-height:1.5; }
.relationship-quick-capture > div:last-child { grid-column:2; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:end; }
.relationship-quick-capture :is(input,button) { min-height:44px; }
.relationship-capture-reviews { display:grid; gap:12px; margin-bottom:12px; border-color:rgba(95,143,170,.34); }
.relationship-capture-reviews > .operator-panel-head { margin-bottom:0; padding-bottom:12px; border-bottom:1px solid var(--exec-border); }
.relationship-capture-reviews > .operator-panel-head h2 { margin:4px 0 5px; font:600 1.22rem/1.3 var(--exec-display); }
.relationship-capture-reviews > .operator-panel-head p { max-width:74ch; margin:0; color:var(--text-dim); font:var(--support-copy)/1.5 var(--exec-body); }
.relationship-capture-review { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr) auto; gap:14px; align-items:start; padding:14px; border:1px solid var(--exec-border); border-radius:9px; background:rgba(5,7,9,.38); }
.relationship-capture-review > div { min-width:0; }
.relationship-capture-review p { margin:6px 0; color:var(--text-main); font:var(--support-copy)/1.55 var(--exec-body); white-space:pre-wrap; }
.relationship-capture-review small { color:var(--exec-muted); }
.relationship-capture-review dl { display:grid; grid-template-columns:120px minmax(0,1fr); gap:8px; margin:7px 0 0; padding-top:7px; border-top:1px solid rgba(255,255,255,.06); }
.relationship-capture-review dt { color:var(--exec-steel-soft); font:700 var(--micro-copy) var(--exec-body); text-transform:uppercase; }
.relationship-capture-review dd { display:grid; gap:4px; margin:0; }
.relationship-capture-review dd span { color:var(--text-dim); font:var(--micro-copy)/1.45 var(--exec-body); }
.relationship-capture-review dd i { margin-right:5px; color:var(--exec-muted); font-style:normal; text-transform:capitalize; }
.relationship-capture-review q { margin-top:3px; padding-left:8px; border-left:2px solid rgba(79,164,119,.5); color:var(--text-main); font:var(--micro-copy)/1.5 var(--exec-body); }
.relationship-capture-review > .appr-verbs { display:grid; gap:7px; }
.relationship-capture-review > .appr-verbs form,.relationship-capture-review > .appr-verbs button { width:100%; }
.relationship-capture-review > .appr-verbs button { min-height:42px; white-space:nowrap; }
.relationship-daily-menu { display:grid; align-content:start; gap:7px; padding:18px; }
.relationship-rotation-person { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; }
.relationship-rotation-person > a { display:flex; justify-content:space-between; align-items:center; gap:10px; min-width:0; padding:9px 10px; border:1px solid var(--exec-border); border-radius:7px; }
.relationship-rotation-person > a span { display:grid; gap:3px; min-width:0; }
.relationship-rotation-person > a b { color:var(--text-main); font:600 var(--support-copy) var(--exec-body); }
.relationship-rotation-person > a small { overflow:hidden; color:var(--exec-muted); text-overflow:ellipsis; white-space:nowrap; }
.relationship-rotation-person > a i { color:var(--exec-steel-soft); font-style:normal; }
.relationship-rotation-person button { min-width:44px; min-height:44px; padding-inline:8px; color:var(--exec-muted); }
.relationship-orphan-count { display:flex; align-items:center; gap:9px; margin-top:3px; padding:8px 10px; border:1px solid rgba(199,168,71,.35); border-radius:7px; color:var(--text-dim); font:var(--micro-copy) var(--exec-body); }
.relationship-orphan-count b { color:var(--warning); font:600 1.05rem var(--exec-display); }
.relationship-operating-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.relationship-operating-head h2 { margin:4px 0 5px; font:600 1.25rem/1.25 var(--exec-display); }
.relationship-operating-head p { max-width:70ch; margin:0; color:var(--text-dim); font:var(--support-copy)/1.5 var(--exec-body); }
.relationship-operating-head > button { min-height:44px; white-space:nowrap; color:var(--exec-steel-soft); }
.relationship-orphan {
  display:grid;
  gap:4px;
  margin-top:15px;
  padding:12px 14px;
  border:1px solid rgba(199,168,71,.46);
  border-left:3px solid var(--warning);
  border-radius:8px;
  background:rgba(199,168,71,.055);
}
.relationship-orphan b { font:600 var(--reading-copy)/1.35 var(--exec-body); }
.relationship-orphan span { color:var(--text-dim); font:var(--support-copy)/1.5 var(--exec-body); }
.relationship-action-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:14px; margin-top:15px; }
.relationship-action-list { display:grid; align-content:start; gap:7px; }
.relationship-action-list article {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:62px;
  padding:11px 12px;
  border:1px solid var(--exec-border);
  border-left:3px solid var(--accent-mid);
  border-radius:8px;
  background:rgba(5,7,9,.38);
}
.relationship-action-list article > div { display:grid; gap:4px; min-width:0; }
.relationship-action-list article small { color:var(--exec-steel-soft); }
.relationship-action-list article b { font:600 var(--reading-copy)/1.4 var(--exec-body); }
.relationship-action-list article button { min-height:40px; }
.relationship-action-form {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:13px;
  border:1px solid rgba(95,143,170,.27);
  border-radius:9px;
  background:rgba(8,10,12,.48);
}
.relationship-action-form label,.relationship-sequence-picker label { display:grid; gap:6px; color:var(--text-dim); font:600 var(--micro-copy) var(--exec-body); }
.relationship-action-form label:first-child { grid-column:1/-1; }
.relationship-action-form :is(input,textarea),.relationship-sequence-picker :is(input,select) { min-height:44px; font-size:var(--support-copy); }
.relationship-action-form button { grid-column:1/-1; min-height:44px; }
.relationship-sequence-picker { margin-top:12px; border-top:1px solid var(--exec-border); }
.relationship-sequence-picker > summary { min-height:44px; padding-top:13px; color:var(--exec-steel-soft); font:600 var(--support-copy) var(--exec-body); cursor:pointer; }
.relationship-sequence-picker form { display:grid; grid-template-columns:minmax(220px,1fr) 170px 170px auto; gap:9px; align-items:end; padding:9px 0 2px; }
.relationship-sequence-picker button { min-height:44px; }
.relationship-no-obligation { margin-top:15px; padding:16px; border:1px dashed rgba(95,143,170,.28); border-radius:8px; }
.relationship-no-obligation b { font:600 var(--reading-copy) var(--exec-body); }
.relationship-no-obligation p { margin:5px 0 0; color:var(--text-dim); font:var(--support-copy)/1.5 var(--exec-body); }
.relationship-counter-strip { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin-top:14px; overflow:hidden; border:1px solid var(--exec-border); border-radius:8px; }
.relationship-counter-strip span { display:grid; gap:4px; padding:10px 12px; border-right:1px solid var(--exec-border); }
.relationship-counter-strip span:last-child { border:0; }
.relationship-counter-strip b { font:600 1.05rem var(--exec-display); }
.relationship-counter-strip small { color:var(--exec-muted); text-transform:uppercase; }

@media (max-width:780px) {
  .meeting-dossier-grid { grid-template-columns:1fr 1fr; }
  .relationship-command-deck { grid-template-columns:1fr; }
  .relationship-quick-capture { grid-template-columns:1fr; }
  .relationship-quick-capture > label { grid-row:auto; }
  .relationship-quick-capture > div:last-child { grid-column:1; }
  .relationship-capture-review { grid-template-columns:1fr; }
  .relationship-capture-review > .appr-verbs { grid-template-columns:1fr 1fr; }
  .relationship-action-grid { grid-template-columns:1fr; }
  .relationship-sequence-picker form { grid-template-columns:1fr 1fr; }
  .relationship-sequence-picker form button { width:100%; }
}
@media (max-width:640px) {
  .dossier-shortcut { margin:-4px 0 12px; }
  .dossier-toolbar { flex-wrap:wrap; }
  .dossier-toolbar span { width:100%; margin:0; padding-left:0; }
  .meeting-dossier { padding:15px 13px; }
  .meeting-dossier > header { display:grid; }
  .meeting-dossier > header > a { width:100%; text-align:center; }
  .meeting-dossier-grid { grid-template-columns:1fr; }
  .relationship-quick-capture > div:last-child { grid-template-columns:1fr; }
  .relationship-quick-capture button { width:100%; }
  .relationship-capture-reviews { padding:15px 13px; }
  .relationship-capture-review { padding:12px; }
  .relationship-capture-review dl { grid-template-columns:1fr; }
  .relationship-capture-review > .appr-verbs { grid-template-columns:1fr; }
  .relationship-operating-panel { padding:16px 13px; }
  .relationship-operating-head { display:grid; }
  .relationship-operating-head > button { width:100%; }
  .relationship-action-list article { align-items:flex-start; }
  .relationship-action-form,.relationship-sequence-picker form { grid-template-columns:1fr; }
  .relationship-action-form label:first-child,.relationship-action-form button { grid-column:1; }
  .relationship-counter-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .relationship-counter-strip span { border-bottom:1px solid var(--exec-border); }
  .relationship-counter-strip span:nth-child(even) { border-right:0; }
  .record-delete-dialog { width:calc(100vw - 12px); }
  .record-delete-body { padding:17px 14px max(17px,env(safe-area-inset-bottom)); }
  .record-delete-body form > div { display:grid; grid-template-columns:1fr 1fr; }
}

/* Connections are operational infrastructure, not a pair of unlabeled text
   boxes. The editor exposes the complete contract while keeping credentials
   write-only and the card scannable when collapsed. */
.connection-contract { gap:12px; }
.connection-contract > p { font-size:var(--support-copy); line-height:1.5; }
.connection-facts > span { font-size:var(--micro-copy); line-height:1.4; }
.connection-error { display:grid; gap:5px; padding:11px 12px; font:var(--micro-copy)/1.5 var(--exec-data); }
.connection-error b { color:var(--text-main); font:600 var(--support-copy)/1.35 var(--exec-body); }
.connection-error span { color:var(--danger); overflow-wrap:anywhere; }
.connection-error small { color:var(--text-dim); font:var(--micro-copy)/1.5 var(--exec-body) !important; }
.connection-editor { grid-column:1/-1; margin-top:2px; border-top:1px solid var(--exec-border); }
.connection-editor-launch { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; grid-column:1/-1; padding-top:10px; border-top:1px solid var(--exec-border); }
.connection-editor-launch small { flex:1 1 230px; color:var(--exec-muted); font-size:var(--micro-copy); line-height:1.4; }
.connection-editor-dialog { width:min(880px,calc(100vw - 28px)); }
.connection-editor > summary {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:4px 12px;
  min-height:44px;
  padding:10px 2px;
  color:var(--exec-steel-soft);
  cursor:pointer;
  list-style-position:inside;
}
.connection-editor > summary span { font:600 var(--support-copy)/1.35 var(--exec-body); }
.connection-editor > summary small { color:var(--exec-muted); font:var(--micro-copy)/1.35 var(--exec-data) !important; }
.connection-editor[open] > summary { border-bottom:1px solid var(--exec-border); color:var(--text-main); }
.connection-editor-form,.connection-create-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding-top:14px;
}
.connection-editor-form fieldset {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;
  gap:11px;
  min-width:0;
  margin:0;
  padding:13px;
  border:1px solid var(--exec-border);
  border-radius:9px;
  background:rgba(95,143,170,.025);
}
.connection-editor-form legend {
  padding:0 6px;
  color:var(--text-main);
  font:600 var(--micro-copy)/1.35 var(--exec-data) !important;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.connection-editor-form label,.connection-create-form label {
  display:grid;
  align-content:start;
  gap:6px;
  min-width:0;
  color:var(--text-dim);
  font:600 var(--micro-copy)/1.35 var(--exec-body);
}
.connection-editor-form :is(input,select,textarea),
.connection-create-form :is(input,select,textarea) {
  width:100%;
  min-width:0;
  min-height:44px;
  font-size:var(--reading-copy);
}
.connection-editor-form textarea,.connection-create-form textarea { min-height:76px; resize:vertical; }
.connection-editor-wide,.connection-editor-actions,.connection-auth-state,
.connection-create-form .wide { grid-column:1/-1; }
.connection-editor-wide label { grid-column:1/-1; }
.connection-auth-state {
  display:grid;
  gap:3px;
  padding:9px 10px;
  border-left:2px solid var(--success);
  background:rgba(79,164,119,.055);
}
.connection-auth-state b { color:var(--text-main); font:600 var(--support-copy)/1.35 var(--exec-body); }
.connection-auth-state span { color:var(--exec-muted); font:var(--micro-copy)/1.45 var(--exec-body); }
.connection-editor-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
}
.connection-editor-actions button { min-height:44px; }
.connection-editor-actions span {
  flex:1 1 240px;
  color:var(--exec-muted);
  font:var(--micro-copy)/1.45 var(--exec-body);
}
.connection-delete { margin-top:10px; padding-top:10px; border-top:1px solid var(--exec-border); }
.connection-delete button { min-height:44px; }
.connection-create-form > button { align-self:end; min-height:44px; }
.connection-create .cardmeta { margin-top:12px; font-size:var(--micro-copy); line-height:1.5; }
.connection-create-summary { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.connection-create-summary h2 { margin:2px 0 5px; }
.connection-create-summary p { margin:0; color:var(--exec-muted); }
.connection-lens-callout { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:14px; padding:17px 20px; border:1px solid var(--exec-border); border-radius:12px; background:rgba(8,13,17,.82); }
.connection-lens-callout h2 { margin:2px 0 5px; font-size:1.1rem; }
.connection-lens-callout p { margin:0; color:var(--exec-muted); }
.connection-lens-callout > a { white-space:nowrap; }

/* One calm editing model across record types. Dialogs use the browser top
   layer, so editing never stretches one grid column or shifts nearby work. */
.record-editor-dialog {
  width:min(720px,calc(100vw - 28px));
  max-height:min(86vh,820px);
  margin:auto;
  padding:0;
  overflow:hidden;
  color:var(--text-main);
  border:1px solid var(--exec-border-strong);
  border-radius:14px;
  background:color-mix(in srgb,var(--bg-raised) 96%,#09151a);
  box-shadow:0 28px 90px rgba(0,0,0,.72);
}
.record-editor-dialog::backdrop { background:rgba(2,5,8,.78); backdrop-filter:blur(5px); }
.record-editor-shell { display:grid; grid-template-rows:auto minmax(0,1fr); max-height:min(86vh,820px); }
.record-editor-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
  padding:20px 22px 17px; border-bottom:1px solid var(--exec-border);
}
.record-editor-head h2 { margin:3px 0 0; font-size:clamp(1.15rem,2vw,1.45rem); }
.record-editor-head p { margin:5px 0 0; color:var(--exec-muted); font-size:var(--support-copy); line-height:1.45; }
.record-editor-close { flex:0 0 44px; width:44px; min-height:44px; padding:0; font-size:1.25rem; }
.record-editor-body { overflow:auto; padding:20px 22px 22px; overscroll-behavior:contain; }
/* Mobile-first: single column by default, two columns only on wider screens.
   (A max-width override here was being beaten in the cascade, cramming the
   dialog into two narrow columns on phones.) */
.record-editor-form { display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width:721px) { .record-editor-form { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.record-editor-form label { display:grid; align-content:start; gap:6px; min-width:0; color:var(--text-dim); font:600 var(--micro-copy)/1.35 var(--exec-body); }
.record-editor-form label > span { text-transform:uppercase; letter-spacing:.055em; }
.record-editor-form :is(input,select,textarea) { width:100%; min-width:0; font:400 var(--reading-copy)/1.4 var(--exec-body); color:var(--text-main); }
.record-editor-form textarea { resize:vertical; min-height:88px; }
.record-editor-form .is-wide,.record-editor-form > small,.record-editor-footer { grid-column:1/-1; }
.record-editor-form > small { color:var(--exec-muted); line-height:1.5; }
.record-editor-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:5px; }
.record-editor-footer small { max-width:32rem; color:var(--exec-muted); line-height:1.45; }
.record-editor-trigger { min-height:44px; }
.record-editor-danger { margin-top:16px; padding-top:16px; border-top:1px solid var(--exec-border); }

.baseline-reconciliation-explainer { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr); gap:22px; margin:0 0 14px; padding:20px 22px; border:1px solid var(--exec-border); border-radius:12px; background:rgba(8,14,18,.78); }
.baseline-reconciliation-explainer h2 { margin:2px 0 7px; font-size:1.15rem; }
.baseline-reconciliation-explainer p { margin:0; color:var(--exec-muted); line-height:1.55; }
.baseline-reconciliation-rules { display:grid; gap:8px; }
.baseline-reconciliation-rules span { display:grid; grid-template-columns:90px 1fr; gap:9px; padding:9px 10px; color:var(--exec-muted); font-size:var(--support-copy); border-left:2px solid var(--accent-teal); background:rgba(95,143,170,.04); }
.baseline-reconciliation-rules b { color:var(--text-main); }
.baseline-state-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); margin:0 0 14px; overflow:hidden; border:1px solid var(--exec-border); border-radius:12px; background:rgba(7,11,15,.82); }
.baseline-state-tabs a { display:grid; gap:2px; min-width:0; padding:13px 15px; color:var(--exec-muted); border-left:1px solid var(--exec-border); text-decoration:none; }
.baseline-state-tabs a:first-child { border-left:0; }
.baseline-state-tabs a.is-active { color:var(--text-main); background:rgba(80,174,138,.09); box-shadow:inset 0 -2px var(--accent-teal); }
.baseline-state-tabs b { color:var(--accent-teal); font:700 1.15rem/1 var(--exec-data); }
.baseline-state-tabs span { font-weight:650; }
.baseline-state-tabs small { color:var(--exec-muted); font-size:var(--micro-copy); }
.baseline-review-actions { display:flex; flex-wrap:wrap; align-items:end; justify-content:flex-end; gap:8px; }
.baseline-review-actions form:first-child { display:grid; grid-template-columns:minmax(165px,1fr) auto; gap:8px; align-items:end; }
.baseline-review-actions label { display:grid; gap:4px; color:var(--exec-muted); font-size:var(--micro-copy); }
.baseline-automatic-state,.baseline-reference-state { display:grid; gap:4px; min-width:220px; padding:10px 12px; border:1px solid var(--exec-border); border-radius:8px; }
.baseline-automatic-state span,.baseline-reference-state > span { color:var(--accent-teal); font-size:var(--micro-copy); font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.baseline-automatic-state small,.baseline-reference-state small { color:var(--exec-muted); line-height:1.4; }
.baseline-reference-state details { margin-top:3px; }
.baseline-reference-state summary { color:var(--exec-steel-soft); cursor:pointer; font-size:var(--micro-copy); }
.baseline-reference-state details > div { display:flex; gap:7px; margin-top:8px; }

.source-lens-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(250px,.34fr); gap:18px; align-items:stretch; margin-bottom:14px; }
.source-lens-summary > div { padding:18px 20px; border:1px solid var(--exec-border); border-radius:12px; background:rgba(8,13,17,.82); }
.source-lens-summary h2 { margin:2px 0 7px; }
.source-lens-summary p { margin:0; color:var(--exec-muted); line-height:1.55; }
.source-lens-health { display:grid; align-content:center; gap:5px; border-left:2px solid var(--exec-steel-soft) !important; }
.source-lens-health.is-healthy,.source-lens-health.is-active { border-left-color:var(--success) !important; }
.source-lens-health.is-error,.source-lens-health.is-stale { border-left-color:var(--danger) !important; }
.source-lens-health span { color:var(--exec-muted); font-size:var(--micro-copy); text-transform:uppercase; letter-spacing:.07em; }
.source-lens-health b { font-size:1.08rem; text-transform:capitalize; }
.source-lens-health small { color:var(--exec-muted); line-height:1.4; }
.source-lens-tabs { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); overflow:hidden; margin-bottom:14px; border:1px solid var(--exec-border); border-radius:12px; background:rgba(6,10,14,.84); }
.source-lens-tabs a { display:grid; gap:3px; min-width:0; padding:13px 14px; color:var(--exec-muted); text-decoration:none; border-right:1px solid var(--exec-border); border-bottom:1px solid var(--exec-border); }
.source-lens-tabs a.is-active { background:rgba(80,174,138,.09); box-shadow:inset 0 -2px var(--accent-teal); }
.source-lens-tabs span { color:var(--text-main); font-weight:650; }
.source-lens-tabs b { color:var(--accent-teal); font:700 1.05rem/1 var(--exec-data); }
.source-lens-tabs small { overflow:hidden; color:var(--exec-muted); font-size:var(--micro-copy); text-overflow:ellipsis; white-space:nowrap; }
.source-lens-filters { display:grid; grid-template-columns:minmax(280px,1fr) 170px 180px auto; gap:10px; align-items:end; margin-bottom:14px; padding:14px; border:1px solid var(--exec-border); border-radius:12px; background:rgba(8,13,17,.82); }
.source-lens-filters label { display:grid; gap:5px; color:var(--exec-muted); font-size:var(--micro-copy); }
.source-lens-filters :is(input,select) { width:100%; font-size:var(--reading-copy); }
.source-record-feed { overflow:hidden; border:1px solid var(--exec-border); border-radius:12px; background:rgba(8,13,17,.84); }
.source-record-feed > header { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; padding:18px 20px; border-bottom:1px solid var(--exec-border); }
.source-record-feed > header h2 { margin:2px 0 0; }
.source-record-feed > article { display:grid; grid-template-columns:145px minmax(0,1fr) auto; gap:16px; align-items:start; padding:16px 20px; border-top:1px solid var(--exec-border); }
.source-record-feed > article:first-of-type { border-top:0; }
.source-record-marker { display:grid; gap:4px; }
.source-record-marker span { color:var(--accent-teal); font-size:var(--micro-copy); font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.source-record-marker small,.source-record-feed article small { color:var(--exec-muted); }
.source-record-feed h3 { margin:0 0 5px; font-size:1rem; line-height:1.35; }
.source-record-feed article p { display:-webkit-box; margin:0 0 7px; overflow:hidden; color:var(--text-dim); line-height:1.48; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
.source-record-feed article > a,.source-record-retained { align-self:center; white-space:nowrap; font-size:var(--micro-copy); }
.source-record-retained { color:var(--exec-muted); }

@media (max-width:900px) {
  .source-lens-summary { grid-template-columns:1fr; }
  .source-lens-tabs { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
  .source-lens-tabs a { min-width:135px; scroll-snap-align:start; }
  .source-lens-filters { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .source-lens-filters .is-search { grid-column:1/-1; }
  .source-lens-filters button { width:100%; }
  .source-record-feed > article { grid-template-columns:115px minmax(0,1fr); }
  .source-record-feed article > a,.source-record-retained { grid-column:2; justify-self:start; }
}

@media (max-width:760px) {
  .contact-index-row { grid-template-columns:44px minmax(0,1fr); align-items:start; }
  .contact-index-row > .intel-avatar { grid-row:1/4; }
  .contact-index-name,.contact-index-partners,.contact-index-signals { grid-column:2; }
  .contact-index-partners { display:flex; margin-top:3px; }
  .contact-index-signals { display:flex; gap:18px; margin-top:5px; }
  .contact-index-row .contact-index-signals .contact-index-signal { display:flex; align-items:baseline; gap:5px; text-align:left; }
  .contact-index-signal b { font-size:1rem; }
}

@media (max-width:640px) {
  :root { --micro-copy:var(--micro-copy-mobile); }
  /* Keep every editable surface above Safari's auto-zoom threshold. This
     lives in the final responsive layer so later component font shorthands
     cannot quietly shrink newly added fields. */
  body[class] :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,[contenteditable="true"]) {
    font-size:16px !important;
  }
  body:not(.page-today) main { padding:16px 12px 34px; }
  .topbar,.page-today .topbar { min-height:60px; }
  .command-trigger .command-key { display:none; }
  .command-trigger .command-search { display:inline; }
  .page-header { min-height:0; margin:-16px -12px 16px; padding:22px 15px 18px; }
  .page-header h1 { font-size:clamp(1.75rem,9vw,2.15rem); }
  .page-header p { margin-top:7px; font-size:.86rem; line-height:1.45; }
  .page-eyebrow { margin-bottom:6px; letter-spacing:.13em; }
  .card { border-radius:12px; }
  .foot { gap:5px 8px; padding:18px 12px max(18px,env(safe-area-inset-bottom)); }
  .foot > span { flex-basis:auto; }
  .interaction-toast { left:12px; right:12px; bottom:max(12px,env(safe-area-inset-bottom)); text-align:center; }
  .operating-chart.is-empty { padding-bottom:8px; }
  .operating-chart.is-empty [data-chart] { height:82px !important; }
  .operating-chart header b { font-size:.88rem; }
  .operating-chart header small { font-size:var(--micro-copy-mobile); }
  .exec-week { margin-top:20px; padding-top:18px; }
  .exec-section-head { align-items:flex-start; }
  .exec-section-head small { font-size:var(--micro-copy-mobile); line-height:1.3; }
  .contact-command-topline { margin-bottom:14px; }
  .contact-quick-actions { gap:7px; }
  .contact-quick-actions a,.contact-quick-actions button { font-size:var(--micro-copy-mobile); }
  .meeting-audience { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .meeting-audience-link { min-width:0; }
  .topic-cloud { display:grid; grid-template-columns:1fr; }
  .topic-cloud > .meeting-topic-link { min-width:0; }
  .meeting-filter-state { align-items:flex-start; }
  .meeting-series-main { grid-template-columns:1fr; gap:4px; }
  .meeting-series-main > span { white-space:normal; }
  .baseline-library-search,.intel-search { gap:8px; }
  .baseline-library-search { grid-template-columns:1fr; }
  .live-filter-status { justify-self:start; }
  .connection-editor > summary { grid-template-columns:1fr; padding:11px 0; }
  .connection-editor-form,.connection-create-form { grid-template-columns:1fr; gap:11px; }
  .connection-editor-form fieldset { grid-template-columns:1fr; padding:12px; }
  .connection-editor-form :is(input,select,textarea),
  .connection-create-form :is(input,select,textarea) { font-size:16px; }
  .connection-editor-form fieldset > *,
  .connection-editor-wide,.connection-editor-actions,.connection-auth-state,
  .connection-create-form .wide { grid-column:1; }
  .connection-editor-actions { display:grid; grid-template-columns:1fr 1fr; }
  .connection-editor-actions span { grid-column:1/-1; }
  .connection-editor-actions button,.connection-create-form > button { width:100%; }
  .record-editor-dialog { width:calc(100vw - 12px); max-height:calc(100dvh - 16px); border-radius:12px; }
  .record-editor-shell { max-height:calc(100dvh - 16px); }
  .record-editor-head { padding:16px 15px 13px; }
  .record-editor-body { padding:15px; }
  .record-editor-form { grid-template-columns:1fr; gap:12px; }
  .record-editor-form .is-wide,.record-editor-form > small,.record-editor-footer { grid-column:1; }
  .record-editor-footer { align-items:stretch; flex-direction:column; }
  .record-editor-footer button { width:100%; }
  .baseline-reconciliation-explainer { grid-template-columns:1fr; padding:17px 15px; }
  .baseline-state-tabs { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
  .baseline-state-tabs a { min-width:145px; scroll-snap-align:start; }
  .baseline-review-actions,.baseline-review-actions form:first-child { display:grid; grid-template-columns:1fr; width:100%; }
  .source-lens-summary { grid-template-columns:1fr; }
  .source-lens-tabs { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; }
  .source-lens-tabs a { min-width:135px; scroll-snap-align:start; }
  .source-lens-filters { grid-template-columns:1fr 1fr; }
  .source-lens-filters .is-search { grid-column:1/-1; }
  .source-lens-filters button { width:100%; }
  .source-record-feed > article { grid-template-columns:1fr; gap:7px; padding:15px; }
  .source-record-marker { display:flex; gap:8px; }
  .source-record-feed article > a,.source-record-retained { justify-self:start; }
  .connection-create-summary,.connection-lens-callout { align-items:stretch; flex-direction:column; }
  .connection-create-summary button,.connection-lens-callout > a { width:100%; text-align:center; }
}
/* Completed operator system: native extensions to the existing dark command UI. */
.settings-thresholds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border-subtle);border:1px solid var(--border-subtle);border-radius:10px;overflow:hidden;margin-top:1rem}
.setting-threshold{display:grid;grid-template-columns:minmax(0,1fr) minmax(5rem,12rem);align-items:end;gap:1rem;background:var(--surface);padding:1rem;margin:0}
.setting-threshold label{display:grid;gap:.25rem;margin:0}.setting-threshold label span{color:var(--text-dim);font-size:.82rem;line-height:1.4}.setting-threshold input[type=number]{font-size:1rem;min-height:42px;width:100%}
.setting-threshold-wide{grid-template-columns:1.3fr .8fr auto auto;border:1px solid var(--border-subtle);border-radius:10px;margin-top:1rem}.setting-check{display:flex!important;align-items:center;gap:.5rem!important;padding-bottom:.65rem}.setting-check input{width:auto!important}
.terminology-control{display:grid;gap:1.25rem}.terminology-head,.terminology-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem}.terminology-head h2,.terminology-section-head h3{margin:.2rem 0 .35rem}.terminology-stats{display:grid;grid-template-columns:repeat(3,minmax(6.5rem,1fr));border:1px solid var(--border-subtle);border-radius:10px;overflow:hidden;min-width:min(100%,25rem)}.terminology-stats span{display:grid;gap:.1rem;padding:.75rem;color:var(--text-dim);font-size:.78rem;border-left:1px solid var(--border-subtle)}.terminology-stats span:first-child{border-left:0}.terminology-stats b{color:var(--text-main);font-size:1.05rem}.terminology-create-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(17rem,.75fr);gap:1rem}.terminology-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:.8rem;padding:1rem;border:1px solid var(--border-subtle);border-radius:10px;background:var(--bg-raised)}.terminology-form h3,.terminology-form p{grid-column:1/-1;margin:0}.terminology-form p,.terminology-section-head p{color:var(--text-dim);font-size:.88rem}.terminology-form label,.terminology-edit-form label{display:grid;gap:.35rem;color:var(--text-dim);font-size:.8rem}.terminology-form button{justify-self:start}.terminology-remove-form{grid-template-columns:1fr}.terminology-section-head{padding-top:.25rem;border-top:1px solid var(--border-subtle)}.terminology-section-head>div>p{margin:0}.terminology-section-head>b{min-width:2.5rem;text-align:center;padding:.35rem .55rem;border:1px solid var(--border-subtle);border-radius:999px}.terminology-rule-list{display:grid;gap:.6rem}.terminology-rule{border:1px solid var(--border-subtle);border-radius:10px;background:var(--bg-raised);padding:.9rem 1rem}.terminology-rule.is-proposed{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-left:3px solid var(--warning)}.terminology-rule h4{margin:.28rem 0 .2rem;font-size:1rem}.terminology-rule h4 span{color:var(--text-dim);font-weight:500}.terminology-rule p,.terminology-rule small{margin:0;color:var(--text-dim)}.terminology-rule summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;cursor:pointer;list-style:none}.terminology-rule summary::-webkit-details-marker{display:none}.status-chip{display:inline-block;padding:.18rem .42rem;border:1px solid var(--border-subtle);border-radius:999px;color:var(--warning);font-size:.7rem;text-transform:uppercase;letter-spacing:.06em}.status-chip.is-suppression{color:var(--danger)}.terminology-actions{display:flex;gap:.5rem}.terminology-actions form{margin:0}.terminology-edit-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:end;gap:.7rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-subtle)}.terminology-retire{display:flex;align-items:center;gap:.7rem;margin:.8rem 0 0}.terminology-retire small{color:var(--text-dim)}
.terminology-detection{display:grid;grid-template-columns:minmax(16rem,1fr) 9rem 9rem auto auto;gap:.75rem;align-items:end;padding:.85rem 1rem;border:1px solid var(--border-subtle);border-radius:10px}.terminology-detection h3,.terminology-detection p{margin:0}.terminology-detection p{color:var(--text-dim);font-size:.82rem}.terminology-detection label{display:grid;gap:.3rem;color:var(--text-dim);font-size:.78rem}.terminology-detection button{white-space:nowrap}
.terminology-control,.terminology-control>*{min-width:0;max-width:100%}.terminology-stats{width:100%;min-width:0}.terminology-control input,.terminology-control select,.terminology-control button{min-width:0;max-width:100%}
.table-scroll{overflow:auto}.table-scroll input[type=number]{min-width:6rem;font-size:1rem}
.operator-guard-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:1rem;margin:1rem 0}.operator-guard-grid>.card{margin:0;min-width:0}
.operator-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border-subtle)}.operator-panel-head h2{margin:.2rem 0}.operator-panel-head p{color:var(--text-dim);margin:.3rem 0 0;max-width:58rem}.operator-panel-head>span{color:var(--accent-teal);font-size:.8rem;white-space:nowrap}
.operator-notice{padding:.7rem .9rem;border:1px solid color-mix(in srgb,var(--accent-teal) 45%,transparent);background:color-mix(in srgb,var(--accent-teal) 9%,transparent);border-radius:8px}
.scope-check-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem;align-items:end;margin:1rem 0}.scope-check-form label{margin:0}.scope-check-form textarea{font-size:1rem}
.scope-result{border:1px solid var(--border-subtle);border-radius:8px;margin:.65rem 0;overflow:hidden}.scope-result>summary{display:grid;grid-template-columns:auto 1fr auto;gap:.7rem;align-items:center;padding:.8rem;cursor:pointer}.scope-result>summary b{text-transform:uppercase;font-size:.72rem;letter-spacing:.08em}.scope-result.is-covered>summary b{color:var(--success)}.scope-result.is-not_covered>summary b{color:var(--danger)}.scope-result.is-ambiguous>summary b{color:var(--warning)}.scope-result>p,.scope-result>.scope-clauses,.scope-result>.scope-draft{margin:.8rem}
.scope-clauses blockquote{margin:.5rem 0;padding:.7rem;border-left:3px solid var(--accent-blue);background:var(--bg);display:grid;gap:.4rem}.scope-clauses cite{font-size:.75rem;color:var(--text-dim)}.scope-draft pre{white-space:pre-wrap;font:inherit;font-size:.88rem;background:var(--bg);padding:.8rem;border-radius:6px}
.scope-ingest{margin-top:1rem;border-top:1px solid var(--border-subtle);padding-top:1rem}.scope-ingest>summary{cursor:pointer;font-weight:700}.scope-ingest form{display:grid;gap:.75rem;margin-top:.8rem}.scope-ingest textarea,.scope-ingest input{font-size:1rem}.scope-ingest label small{display:block;color:var(--text-dim);margin-top:.25rem}
.scope-item-list{display:grid;gap:.6rem;margin-top:1rem}.scope-item-list article{display:grid;gap:.35rem;padding:.8rem;border:1px solid var(--border-subtle);border-radius:8px}.scope-item-list article>span{text-transform:uppercase;letter-spacing:.07em;font-size:.68rem;color:var(--text-dim)}.scope-item-list q{font-size:.85rem;color:var(--text-muted)}.scope-item-list small{color:var(--text-dim)}.scope-item-list article.is-confirmed{border-left:3px solid var(--success)}.scope-item-list form,.decay-list form{display:flex;gap:.5rem;margin-top:.5rem}
.decay-list{display:grid;gap:.7rem;margin-top:1rem}.decay-list article{border:1px solid var(--border-subtle);padding:.9rem;border-radius:8px}.decay-list article>div{display:flex;justify-content:space-between;text-transform:uppercase;font-size:.7rem;letter-spacing:.06em}.decay-list article>div b{color:var(--warning)}.decay-list article.is-confirmed{border-left:3px solid var(--danger)}.decay-list article.is-confirmed>div b{color:var(--danger)}.decay-list p{margin:.6rem 0}.decay-list article>small{display:block;color:var(--text-dim);line-height:1.5}.operator-empty{padding:1rem;border:1px dashed var(--border-subtle);border-radius:8px}.operator-empty p{color:var(--text-dim)}
.partner-continuity{margin:1rem 0}.partner-case-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin:1rem 0}.partner-case-list a{display:grid;gap:.3rem;border:1px solid var(--border-subtle);padding:.8rem;border-radius:8px}.partner-case-list a span{text-transform:uppercase;font-size:.67rem;letter-spacing:.07em;color:var(--accent-teal)}.partner-case-list a small{color:var(--text-dim);line-height:1.4}.case-quick-create{display:grid;grid-template-columns:1fr 1.5fr .7fr auto;gap:.7rem;align-items:end}.case-quick-create label{margin:0}.case-quick-create input,.case-quick-create textarea{font-size:1rem}.external-object-rail{display:flex;gap:.7rem;align-items:center;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-subtle)}.external-object-rail a{display:flex;gap:.5rem}

@media (max-width:900px){.operator-guard-grid{grid-template-columns:1fr}.settings-thresholds{grid-template-columns:1fr}.setting-threshold-wide,.case-quick-create{grid-template-columns:1fr 1fr}.partner-case-list{grid-template-columns:1fr 1fr}.terminology-head{display:grid}.terminology-create-grid{grid-template-columns:1fr}.terminology-edit-form,.terminology-detection{grid-template-columns:1fr 1fr}.terminology-detection>div{grid-column:1/-1}}
@media (max-width:600px){.setting-threshold,.setting-threshold-wide,.scope-check-form,.case-quick-create{grid-template-columns:1fr}.partner-case-list{grid-template-columns:1fr}.operator-panel-head{display:grid}.scope-result>summary{grid-template-columns:1fr}.operator-guard-grid{margin-inline:0}.scope-item-list form,.decay-list form{flex-wrap:wrap}.terminology-head,.terminology-stats,.terminology-form,.terminology-edit-form,.terminology-detection{grid-template-columns:minmax(0,1fr);width:100%}.terminology-stats span{border-left:0;border-top:1px solid var(--border-subtle)}.terminology-stats span:first-child{border-top:0}.terminology-rule.is-proposed,.terminology-section-head{display:grid}.terminology-actions{width:100%}.terminology-actions form,.terminology-actions button{flex:1;width:100%}.terminology-detection button{white-space:normal}}
.case-command-grid{display:grid;grid-template-columns:1.1fr .9fr .9fr;gap:1rem}.case-command-grid>.card{margin:0}.case-create,.goal-control,.backlog-control{display:grid;align-content:start;gap:.7rem}.case-create label,.goal-control label{margin:0}.case-create input,.case-create textarea,.case-create select,.goal-control input,.goal-control textarea,.goal-control select,.backlog-control textarea{font-size:1rem}.goal-control article,.backlog-control article{display:grid;gap:.25rem;padding:.6rem 0;border-bottom:1px solid var(--border-subtle)}.goal-control article span,.backlog-control article span{text-transform:uppercase;letter-spacing:.07em;font-size:.68rem;color:var(--accent-teal)}.goal-control article small,.backlog-control article small{color:var(--text-dim)}.goal-control details form{display:grid;gap:.5rem;margin-top:.7rem}.backlog-control form{display:grid;margin-bottom:.7rem}
.case-board{display:grid;gap:.7rem;margin:1rem 0}.case-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;padding:1rem 1.2rem;border:1px solid var(--border-subtle);border-left:3px solid var(--accent-blue);border-radius:9px;background:var(--surface)}.case-row>div>span,.case-hero>div>span{text-transform:uppercase;letter-spacing:.08em;font-size:.68rem;color:var(--accent-teal)}.case-row h2{margin:.25rem 0}.case-row p{margin:.25rem 0;color:var(--text-dim)}.case-row aside{display:grid;grid-template-columns:auto auto;gap:.2rem .6rem;align-content:center;text-align:right}.case-row aside small{color:var(--text-dim)}.case-row aside time{grid-column:1/-1;color:var(--text-dim);margin-top:.3rem}.case-row.is-resolved,.case-row.is-abandoned{opacity:.65;border-left-color:var(--text-dim)}
.artifact-shelf-preview>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin-top:1rem}.artifact-shelf-preview>div>a,.case-evidence-grid .card>a{display:grid;gap:.2rem;padding:.7rem;border:1px solid var(--border-subtle);border-radius:7px}.artifact-shelf-preview span,.case-evidence-grid span{font-size:.68rem;letter-spacing:.07em;text-transform:uppercase;color:var(--text-dim)}.artifact-shelf-preview small{color:var(--text-dim);overflow-wrap:anywhere}
.case-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2rem;padding:1.5rem 0;border-bottom:1px solid var(--border-subtle)}.case-hero h1{font-size:clamp(2rem,5vw,4rem);margin:.3rem 0}.case-hero p{font-size:1.1rem;max-width:70ch}.case-hero aside{display:grid;grid-template-columns:auto auto;gap:.35rem 1rem;align-content:center}.case-hero aside small{color:var(--text-dim)}.case-transition{display:grid;grid-template-columns:1fr .7fr 1.4fr auto;gap:.7rem;align-items:end}.case-transition p{margin:0;color:var(--text-dim)}.case-transition input,.case-transition select{font-size:1rem}.case-evidence-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.case-evidence-grid>.card{margin:0}.case-evidence-grid article{display:grid;gap:.25rem;padding:.7rem 0;border-bottom:1px solid var(--border-subtle)}.case-event{display:grid;grid-template-columns:8rem 8rem 1fr;gap:1rem;padding:.7rem 0;border-bottom:1px solid var(--border-subtle)}.case-event p{margin:0}.case-event time{color:var(--text-dim)}
.artifact-shelf{display:grid;gap:.7rem}.artifact-shelf>article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;padding:1rem;border:1px solid var(--border-subtle);border-radius:8px;background:var(--surface)}.artifact-shelf span{text-transform:uppercase;letter-spacing:.07em;font-size:.68rem;color:var(--accent-teal)}.artifact-shelf h2{margin:.25rem 0}.artifact-shelf p{color:var(--text-dim)}.artifact-shelf aside{display:grid;justify-items:end;gap:.5rem}.artifact-shelf code{max-width:35rem;overflow-wrap:anywhere;color:var(--text-dim)}.artifact-shelf time{color:var(--text-dim);font-size:.75rem}
@media(max-width:1000px){.case-command-grid{grid-template-columns:1fr 1fr}.case-command-grid>.backlog-control{grid-column:1/-1}.artifact-shelf-preview>div{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.case-command-grid,.case-evidence-grid,.case-transition,.case-hero{grid-template-columns:1fr}.case-command-grid>.backlog-control{grid-column:auto}.case-row,.artifact-shelf>article{grid-template-columns:1fr}.case-row aside{justify-content:start;text-align:left}.artifact-shelf-preview>div{grid-template-columns:1fr}.artifact-shelf aside{justify-items:start}.case-event{grid-template-columns:1fr}.case-hero aside{grid-template-columns:auto 1fr}}
.daily-operator-sections{margin:1rem 0;border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface)}.daily-operator-sections>summary{display:flex;justify-content:space-between;gap:1rem;padding:.85rem 1rem;cursor:pointer}.daily-operator-sections>summary b{font-size:.78rem;color:var(--text-dim)}.daily-operator-sections>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--border-subtle);border-top:1px solid var(--border-subtle)}.daily-operator-sections section{background:var(--surface);padding:.8rem}.daily-operator-sections section header{display:flex;justify-content:space-between;margin-bottom:.5rem}.daily-operator-sections section header span{color:var(--accent-teal)}.daily-operator-sections section a{display:grid;gap:.15rem;padding:.45rem 0;border-top:1px solid var(--border-subtle)}.daily-operator-sections section a small,.daily-operator-sections section p{color:var(--text-dim);font-size:.78rem}.daily-operator-sections section a.is-overdue strong{color:var(--danger)}.daily-operator-sections section a.is-today strong{color:var(--warning)}
@media(max-width:650px){.daily-operator-sections>summary{display:grid}.daily-operator-sections>div{grid-template-columns:1fr}}
.run-narration,.failure-diagnosis{margin:.55rem 0;padding:.55rem .7rem;border:1px solid var(--border-subtle);border-radius:7px}.run-narration summary,.failure-diagnosis summary{cursor:pointer;font-size:.78rem;color:var(--text-dim)}.run-narration ol{margin:.6rem 0 0;padding-left:1.3rem}.run-narration li{padding:.2rem}.run-narration li span{display:block;color:var(--text-dim);font-size:.78rem}.failure-diagnosis{border-left:3px solid var(--warning)}.failure-diagnosis>p,.failure-diagnosis li{font-size:.82rem;color:var(--text-dim)}
.case-task-rail article{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.7rem 0;border-bottom:1px solid var(--border-subtle)}.case-task-rail article>div{display:grid;gap:.2rem}.case-task-rail article span{font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;color:var(--accent-teal)}.case-task-rail details form,.case-link-form{display:grid;grid-template-columns:1fr auto;gap:.6rem;margin-top:.7rem}.case-task-rail input,.case-link-form select{font-size:1rem}
@media(max-width:600px){.case-task-rail article,.case-task-rail details form,.case-link-form{display:grid;grid-template-columns:1fr;align-items:start}}
.demand-gap-panel{margin:1rem 0}.demand-gap-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem;margin:1rem 0}.demand-gap-list article{display:grid;gap:.3rem;padding:.75rem;border:1px solid var(--border-subtle);border-radius:7px}.demand-gap-list span{font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;color:var(--accent-teal)}.demand-gap-list small{color:var(--text-dim)}.demand-gap-panel details form{display:grid;grid-template-columns:1.4fr .7fr .7fr 1.4fr auto;gap:.6rem;align-items:end;margin-top:.7rem}.demand-gap-panel input,.demand-gap-panel textarea{font-size:1rem}
@media(max-width:800px){.demand-gap-list{grid-template-columns:1fr}.demand-gap-panel details form{grid-template-columns:1fr 1fr}.demand-gap-panel details form label:first-child,.demand-gap-panel details form label:nth-child(4){grid-column:1/-1}}
@media(max-width:500px){.demand-gap-panel details form{grid-template-columns:1fr}.demand-gap-panel details form label:first-child,.demand-gap-panel details form label:nth-child(4){grid-column:auto}}
.metric-source-state{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:1rem 0}.metric-source-state article{display:grid;gap:.25rem;padding:.8rem;border:1px solid var(--border-subtle);border-radius:7px}.metric-source-state article span{text-transform:uppercase;font-size:.68rem;letter-spacing:.07em;color:var(--warning)}.metric-source-state article.is-healthy span{color:var(--success)}.metric-source-state article small{color:var(--text-dim)}.metric-import-form{display:grid;grid-template-columns:.5fr 1.5fr auto;gap:.7rem;align-items:end;margin-top:.8rem}.metric-import-form textarea,.metric-import-form select{font-size:1rem}.metric-import-form small{display:block;color:var(--text-dim);margin-top:.25rem}
@media(max-width:700px){.metric-source-state,.metric-import-form{grid-template-columns:1fr}}
.equality-map-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;align-items:end;margin:.8rem 0}.equality-map-form input{font-size:1rem}.equality-map-form label{margin:0}.equality-map-form button{min-height:44px}
@media(max-width:850px){.equality-map-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:500px){.equality-map-form{grid-template-columns:1fr}}

/* --------------------------------------------------------------------------
   Executive Intelligence layout system

   These routes share one reading contract: consequence first, interpretation
   second, source material on demand. The final layer intentionally reduces
   border noise, restores a humane type floor, and keeps every mobile
   destination discoverable without changing the underlying information model.
   -------------------------------------------------------------------------- */
body:is(.page-partners,.page-contacts,.page-conferences,.page-meetings,.page-decisions,.page-commitments,.page-cases) main {
  --intel-surface:linear-gradient(180deg,rgba(22,25,31,.94),rgba(13,15,19,.97));
  --intel-surface-quiet:rgba(13,15,19,.72);
  --intel-divider:rgba(132,145,159,.2);
}
body:is(.page-partners,.page-contacts,.page-conferences,.page-meetings,.page-decisions,.page-commitments,.page-cases) main .card {
  border-color:var(--intel-divider);
  background:var(--intel-surface);
  box-shadow:inset 0 1px rgba(255,255,255,.025),0 16px 42px rgba(0,0,0,.08);
}
body:is(.page-partners,.page-contacts,.page-conferences,.page-meetings,.page-decisions,.page-commitments,.page-cases) main :is(p,li,dd,blockquote) {
  line-height:1.55;
}
body:is(.page-partners,.page-contacts,.page-conferences,.page-meetings,.page-decisions,.page-commitments,.page-cases) main :is(a,button,summary) {
  text-underline-offset:3px;
}
/* Old dense components encoded hierarchy by shrinking words below a useful
   executive reading size. Preserve value emphasis, but give labels and source
   context the same 13px floor as the rest of the product. */
body:is(.page-partners,.page-contacts,.page-conferences) main :is(
  .intel-scope span,.baseline-library-link b,.baseline-library-link span,
  .intel-source-strip b,.intel-source-strip span,.intel-source-strip a,
  .intel-dark-strip b,.intel-dark-strip span,.intel-dark-strip a,
  .intel-index-facts span,.intel-index-card > p,.intel-coverage b,
  .conference-card p,.conference-attendees span,.metric-source-note,
  .partner-people b,.partner-metric-frame th,.partner-metric-frame td
) { font-size:var(--micro-copy) !important; line-height:1.42; }
.outcome-prediction span,.outcome-observed span,.outcome-contract span,
.commitment-capture label > span,.commitment-direction b {
  font-size:var(--micro-copy) !important;
}

/* A 531-record evidence library is a browse surface, not one enormous form. */
.baseline-library-hero { margin-bottom:18px; }
.baseline-library-hero p { font-size:var(--support-copy); }
.baseline-library-hero > span { gap:3px; font-size:var(--micro-copy); }
form.baseline-library-search { position:sticky; z-index:8; top:64px; padding:10px; border:1px solid var(--intel-divider); border-radius:11px; background:rgba(11,13,16,.94); backdrop-filter:blur(14px); }
.baseline-library-search :is(input,button) { min-height:44px; }
.baseline-library-status { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:4px 2px 11px; color:var(--text-dim); }
.baseline-library-status p,.baseline-library-status span { margin:0; font-size:var(--micro-copy); line-height:1.45; }
.baseline-library-status span { max-width:62ch; text-align:right; }
.baseline-library-list { gap:8px; }
.baseline-library-list > article { padding:16px; border-color:var(--intel-divider); background:var(--intel-surface-quiet); transition:border-color .15s,background .15s; }
.baseline-library-list > article:hover { border-color:rgba(95,143,170,.42); background:rgba(18,21,26,.9); }
.baseline-library-identity h2 { font-size:1rem; line-height:1.3; }
.baseline-library-identity small,.baseline-library-identity p,
.baseline-library-economics small,.baseline-library-economics em,
.baseline-library-list > article > form label { font-size:var(--micro-copy) !important; line-height:1.4; }
.baseline-library-economics b { font-size:.95rem; line-height:1.3; }
.baseline-library-list > article > form :is(select,button) { min-height:42px; }
.baseline-library-pagination { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; margin:18px 0 4px; padding-top:16px; border-top:1px solid var(--intel-divider); }
.baseline-library-pagination a,.baseline-library-pagination > span { display:flex; align-items:center; justify-content:center; width:max-content; min-height:44px; padding:9px 13px; border:1px solid var(--intel-divider); border-radius:8px; color:var(--exec-steel-soft); font:600 var(--support-copy) var(--exec-body); }
.baseline-library-pagination a:last-child,.baseline-library-pagination > span:last-child { justify-self:end; }
.baseline-library-pagination > span { color:var(--exec-muted); opacity:.58; }
.baseline-library-pagination p { margin:0; color:var(--text-dim); font-size:var(--support-copy); }

/* Dossiers are conversation control rooms: direct person evidence first,
   account-wide state explicitly separated, and every admitted artifact explains why. */
.meeting-dossier { padding:22px; }
.meeting-dossier > header { padding-bottom:15px; border-bottom:1px solid var(--intel-divider); }
.dossier-control-room { margin:16px 0 12px; border:1px solid rgba(82,143,145,.38); border-radius:12px; overflow:hidden; background:linear-gradient(135deg,rgba(82,143,145,.065),rgba(10,13,16,.5) 55%); }
.dossier-control-room > header { display:flex; align-items:start; justify-content:space-between; gap:18px; padding:15px 17px; border-bottom:1px solid var(--intel-divider); }
.dossier-control-room > header h3 { margin:3px 0 0; font:600 1.12rem/1.3 var(--exec-display); }
.dossier-control-room > header > span { color:var(--exec-steel-soft); font:600 var(--micro-copy) var(--exec-body); }
.dossier-control-grid { display:grid; grid-template-columns:1.15fr .85fr; }
.dossier-control-grid > section { min-width:0; padding:16px; }
.dossier-control-grid > section + section { border-left:1px solid var(--intel-divider); }
.dossier-control-grid > section > small,.dossier-evidence-grid > section > small { display:block; margin-bottom:10px; color:var(--exec-steel-soft); font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.dossier-signal,.dossier-account-lane > article { display:grid; gap:6px; padding:12px 0; border-top:1px solid var(--intel-divider); }
.dossier-signal:first-of-type,.dossier-account-lane > article:first-of-type { border-top:0; padding-top:2px; }
.dossier-signal > div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.dossier-signal span,.dossier-account-lane article > span { color:var(--exec-steel-soft); font:700 var(--micro-copy) var(--exec-body); text-transform:uppercase; }
.dossier-signal em { color:var(--text-dim); font:normal var(--micro-copy) var(--exec-body); }
.dossier-signal b,.dossier-account-lane article > b { font:600 var(--reading-copy)/1.4 var(--exec-body); }
.dossier-signal p,.dossier-account-lane article > p { margin:0; color:var(--text-dim); font-size:var(--support-copy); }
.dossier-signal q { padding:9px 11px; border-left:2px solid var(--accent-mid); background:rgba(82,143,145,.045); color:var(--text-dim); font:var(--support-copy)/1.45 var(--exec-body); }
.dossier-signal a,.dossier-interaction a,.dossier-person-context a { width:max-content; color:var(--exec-steel-soft); font:700 var(--micro-copy) var(--exec-body); }
.dossier-signal.is-critical,.dossier-signal.is-high { padding-left:11px; border-left:3px solid var(--accent-amber); }
.dossier-honest-empty { padding:13px; border:1px dashed rgba(95,143,170,.28); border-radius:8px; background:rgba(6,8,10,.28); }
.dossier-honest-empty b { font:600 var(--support-copy) var(--exec-body); }
.dossier-honest-empty p { margin:5px 0 0; color:var(--text-dim); font-size:var(--support-copy); }
.meeting-dossier-grid { gap:0; border:1px solid var(--intel-divider); border-radius:11px; overflow:hidden; }
.meeting-dossier-grid.dossier-evidence-grid { grid-template-columns:minmax(0,1.45fr) minmax(230px,.72fr) minmax(230px,.83fr); }
.meeting-dossier-grid > section { padding:15px; border:0; border-right:1px solid var(--intel-divider); border-bottom:1px solid var(--intel-divider); border-radius:0; background:transparent; }
.meeting-dossier-grid > section:nth-child(3n) { border-right:0; }
.meeting-dossier-grid > section:nth-last-child(-n+3) { border-bottom:0; }
.meeting-dossier-grid > section > small { margin-bottom:9px; letter-spacing:.06em; }
.meeting-dossier-grid :is(p,b,span,summary) { min-width:0; overflow-wrap:anywhere; word-break:break-word; }
.meeting-dossier-grid p span { font-size:var(--support-copy); }
.dossier-interaction { display:grid; gap:7px; padding:13px 0; border-top:1px solid rgba(255,255,255,.06); }
.dossier-interaction:first-of-type { border-top:0; }
.dossier-interaction > div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.dossier-interaction > div span,.dossier-interaction > small,.dossier-interaction > div em { color:var(--text-dim); font:normal var(--micro-copy)/1.4 var(--exec-body); }
.dossier-interaction > div em { color:var(--exec-steel-soft); text-align:right; }
.dossier-interaction > b { font-size:var(--reading-copy); }
.dossier-interaction > p { margin:0; color:var(--text-dim); font:var(--support-copy)/1.5 var(--exec-body); }
.dossier-interaction > small { padding:7px 9px; border-radius:6px; background:rgba(95,143,170,.07); color:var(--exec-steel-soft); }
.dossier-interaction > summary { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; min-height:48px; padding:8px 0; cursor:pointer; }
.dossier-interaction > summary::marker { color:var(--accent-blue); }
.dossier-interaction > summary span { color:var(--exec-steel-soft); font:600 var(--micro-copy) var(--exec-body); white-space:nowrap; }
.dossier-interaction > p { margin:0 0 10px; padding:10px 11px; border-left:2px solid var(--accent-mid); background:rgba(82,143,145,.045); color:var(--text-dim); font-size:var(--support-copy); }
.dossier-interaction > p { margin:0; padding:0; border-left:0; background:transparent; }
.dossier-attendees article,.dossier-person-context article { display:grid; gap:4px; padding:10px 0; border-top:1px solid var(--intel-divider); }
.dossier-attendees article:first-of-type,.dossier-person-context article:first-of-type { border-top:0; }
.dossier-attendees span,.dossier-attendees em,.dossier-person-context span { color:var(--text-dim); font:normal var(--micro-copy) var(--exec-body); }
.dossier-person-context q { color:var(--text-dim); font:var(--support-copy)/1.45 var(--exec-body); }
.dossier-evidence-contract { display:flex; align-items:center; gap:12px; margin-top:10px; padding:10px 12px; border:1px solid var(--intel-divider); border-radius:8px; color:var(--text-dim); font:var(--micro-copy)/1.45 var(--exec-body); }
.dossier-evidence-contract b { color:var(--exec-steel-soft); white-space:nowrap; }
.dossier-evidence-contract span + span { padding-left:12px; border-left:1px solid var(--intel-divider); }

/* Decision Lab reads as one argument instead of a stack of equally loud boxes. */
.learning-section-head { align-items:start; padding-bottom:13px; border-bottom:1px solid var(--intel-divider); }
.hypothesis-list { gap:14px; }
.hypothesis-card { padding:20px; border-color:var(--intel-divider); background:var(--intel-surface); }
.hypothesis-card > header { min-height:44px; padding-bottom:11px; border-bottom:1px solid var(--intel-divider); font-size:var(--micro-copy); text-transform:none; letter-spacing:0; }
.hypothesis-card > header b { font-size:var(--micro-copy); }
.hypothesis-source-link { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 11px; border:1px solid rgba(95,143,170,.38); border-radius:8px; color:var(--exec-steel-soft) !important; font-weight:700; white-space:nowrap; }
.hypothesis-card h3 { margin:15px 0; font-size:1.25rem; }
.hypothesis-rank,.hypothesis-evidence { grid-template-columns:170px minmax(0,1fr); padding:12px 14px; }
.hypothesis-rank > span,.hypothesis-evidence > span,.hypothesis-move > span,
.hypothesis-logic span,.hypothesis-effect span { font-size:var(--micro-copy); letter-spacing:.045em; }
.hypothesis-rank p,.hypothesis-evidence q,.hypothesis-logic p { font-size:var(--support-copy); }
.hypothesis-move { grid-template-columns:170px minmax(0,1fr); margin:10px 0; padding:12px 14px; border-left:3px solid var(--accent-green); }
.hypothesis-move b { font-size:var(--reading-copy); }
.hypothesis-logic li { padding:14px; }
.hypothesis-resolution { margin-top:13px; }
.hypothesis-resolution :is(input,button) { min-height:44px; }
.hypothesis-effect { font-size:var(--support-copy); }

/* A hidden horizontal rail made Conferences and Record effectively absent.
   Six destinations fit as a calm 3×2 command strip on a phone. */
@media (max-width:780px) {
  .dossier-control-grid { grid-template-columns:1fr; }
  .dossier-control-grid > section + section { border-left:0; border-top:1px solid var(--intel-divider); }
  .meeting-dossier-grid.dossier-evidence-grid { grid-template-columns:1fr 1fr; }
  .dossier-interactions { grid-column:1/-1; }
  .meeting-dossier-grid > section:nth-child(3n) { border-right:1px solid var(--intel-divider); }
  .meeting-dossier-grid > section:nth-child(2n) { border-right:0; }
  .meeting-dossier-grid > section:nth-last-child(-n+3) { border-bottom:1px solid var(--intel-divider); }
  .meeting-dossier-grid > section:nth-last-child(-n+2) { border-bottom:0; }
}
@media (max-width:640px) {
  form.baseline-library-search { position:static; top:auto; padding:10px; }
  .baseline-library-status { display:grid; gap:5px; }
  .baseline-library-status span { text-align:left; }
  .baseline-library-economics > span { padding:9px 0; border-left:0; border-top:1px solid var(--intel-divider); }
  .baseline-library-list > article > form :is(select,button) { min-height:44px; }
  .baseline-library-pagination { grid-template-columns:1fr 1fr; }
  .baseline-library-pagination p { grid-column:1/-1; grid-row:1; text-align:center; }
  .baseline-library-pagination a,.baseline-library-pagination > span { width:100%; }

  .contact-local-nav { top:110px; padding:8px 12px !important; }
  .contact-local-nav > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; overflow:visible; }
  .contact-local-nav a { display:flex; align-items:center; justify-content:center; min-width:0; min-height:44px; padding:8px 4px; border:1px solid transparent; border-radius:7px; font-size:var(--micro-copy); line-height:1.15; text-align:center; white-space:normal; }
  .contact-local-nav a:hover,.contact-local-nav a:focus-visible { border-color:rgba(95,143,170,.42); background:rgba(95,143,170,.08); }
  .contact-workspace > .card,.contact-context-rail > .card { scroll-margin-top:212px; }

  .meeting-dossier { padding:16px 13px; }
  .dossier-control-room > header { display:grid; gap:5px; }
  .dossier-control-grid > section { padding:14px 12px; }
  .dossier-signal > div,.dossier-interaction > div { display:grid; gap:4px; }
  .dossier-signal em,.dossier-interaction > div em { text-align:left; }
  .meeting-dossier-grid.dossier-evidence-grid { grid-template-columns:1fr; }
  .dossier-interactions { grid-column:auto; }
  .dossier-evidence-contract { display:grid; gap:6px; }
  .dossier-evidence-contract span + span { padding:6px 0 0; border-left:0; border-top:1px solid var(--intel-divider); }
  .meeting-dossier-grid { border-left:0; border-right:0; border-radius:0; }
  .meeting-dossier-grid > section,
  .meeting-dossier-grid > section:nth-child(2n),
  .meeting-dossier-grid > section:nth-child(3n),
  .meeting-dossier-grid > section:nth-last-child(-n+2),
  .meeting-dossier-grid > section:nth-last-child(-n+3) { border-right:0; border-bottom:1px solid var(--intel-divider); }
  .meeting-dossier-grid > section:last-child { border-bottom:0; }
  .dossier-interaction > summary { grid-template-columns:1fr; gap:3px; }
  .dossier-interaction > summary span { white-space:normal; }

  .learning-section-head { display:grid; gap:8px; }
  .learning-section-head > p { max-width:none; text-align:left; }
  .hypothesis-card { padding:15px 13px; }
  .hypothesis-card > header { display:grid; grid-template-columns:auto minmax(0,1fr); gap:7px; }
  .hypothesis-card > header b { grid-column:2; margin:0; }
  .hypothesis-source-link { grid-column:1/-1; width:100%; min-height:44px; }
  .hypothesis-rank,.hypothesis-evidence,.hypothesis-move { grid-template-columns:1fr; gap:5px; }
  .hypothesis-resolution > div { grid-template-columns:1fr; }

  .loop-spine { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .loop-spine a { grid-template-columns:1fr; justify-items:center; min-height:72px; padding:9px 4px; text-align:center; }
  .loop-spine a > b { width:24px; height:24px; }
  .loop-spine a > span { margin-top:5px; font-size:.78rem; }
  .loop-spine small { display:none; }
  .learning-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin-bottom:20px; }
  .learning-kpis a { display:grid; grid-template-columns:1fr; justify-items:start; min-height:92px; padding:12px 10px; }
  .learning-kpis b { grid-row:auto; font-size:1.65rem; }
  .learning-kpis span { align-self:auto; font-size:.78rem; line-height:1.25; }
  .learning-kpis small { display:none; }
}

/* Company intelligence first viewport -------------------------------------------------
   Keep record administration available without letting it outrank identity, evidence,
   and the next useful read. HubSpot remains source-labelled while becoming visible
   enough to make a linked account materially more useful. */
body.page-partner main .intel-hero {
  grid-template-columns:minmax(0,1fr) minmax(430px,.72fr);
  align-items:end;
  gap:18px 28px;
  padding:14px 0 20px;
}
.intel-hero-toolbar {
  grid-column:1/-1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:44px;
}
.intel-hero-toolbar .intel-back {
  grid-column:auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  color:var(--text-dim);
  font:600 var(--support-copy)/1.2 var(--exec-body) !important;
}
.intel-hero-toolbar .intel-back span { color:var(--exec-steel-soft); font-size:1rem; }
.intel-hero-toolbar .partner-record-actions {
  position:static;
  display:flex;
  gap:7px;
}
.intel-hero-toolbar .partner-record-actions button {
  min-width:64px;
  min-height:44px;
  padding:9px 13px;
  font:600 var(--support-copy)/1 var(--exec-body);
}
body.page-partner main .intel-hero-main { align-items:flex-start; }
body.page-partner main .intel-hero-main :is(.intel-avatar,.intel-profile-photo) {
  width:64px;
  height:64px;
  flex-basis:64px;
}
.intel-hero-identity { min-width:0; }
.intel-hero-status {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:5px 12px;
  color:var(--exec-steel-soft);
  font:700 var(--micro-copy)/1.25 var(--exec-body);
  text-transform:capitalize;
}
.intel-hero-status span + span { position:relative; }
.intel-hero-status span + span::before {
  content:"";
  position:absolute;
  top:50%;
  left:-7px;
  width:3px;
  height:3px;
  border-radius:50%;
  background:var(--exec-muted);
}
.intel-hero-status .is-source { color:#74b99f; }
body.page-partner main .intel-hero h1 { margin:6px 0 4px; }
body.page-partner main .intel-hero-main > div > p {
  color:var(--text-dim);
  font-size:var(--support-copy);
  line-height:1.4;
}
.intel-hero-crm {
  display:flex;
  flex-wrap:wrap;
  gap:4px 13px;
  margin-top:8px;
  color:var(--exec-muted);
  font:var(--micro-copy)/1.4 var(--exec-body);
}
.intel-hero-crm b { color:var(--text-dim); font-weight:600; }
.intel-hero-signals { min-width:0; }
body.page-partner main .intel-hero-meta {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  overflow:hidden;
  border:1px solid rgba(95,143,170,.25);
  border-radius:10px;
  background:rgba(7,9,11,.5);
}
body.page-partner main .intel-hero-meta > span {
  display:grid;
  align-content:center;
  gap:4px;
  min-width:0;
  min-height:74px;
  padding:10px 12px;
  border:0;
  border-right:1px solid var(--exec-border);
}
body.page-partner main .intel-hero-meta > span:last-child { border-right:0; }
body.page-partner main .intel-hero-meta b {
  color:var(--text-main);
  font:600 1.35rem/1 var(--exec-display);
}
body.page-partner main .intel-hero-meta small {
  margin:0;
  color:var(--text-dim);
  font:600 var(--micro-copy)/1.25 var(--exec-body);
  text-transform:none;
}
.continuity-explainer {
  margin:7px 2px 0 !important;
  color:var(--exec-muted) !important;
  font:var(--micro-copy)/1.4 var(--exec-body) !important;
}
.relationship-replay.is-empty {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.55fr);
  gap:7px 26px;
  align-items:center;
  padding:17px 20px;
}
.relationship-replay.is-empty .replay-head { display:contents; }
.relationship-replay.is-empty .replay-head > div { grid-column:1; grid-row:1; }
.relationship-replay.is-empty .replay-head form { grid-column:2; grid-row:1/3; }
.relationship-replay.is-empty .replay-head button { width:100%; min-height:46px; }
.relationship-replay.is-empty .replay-empty-copy {
  grid-column:1;
  margin:0;
  max-width:76ch;
  color:var(--text-dim);
  font:var(--support-copy)/1.5 var(--exec-body);
}
.crm-account-strip { grid-template-columns:repeat(6,minmax(105px,1fr)) auto; }
.crm-account-context {
  margin:10px 0 0;
  padding:10px 12px;
  border-left:2px solid rgba(79,171,143,.45);
  background:rgba(79,171,143,.04);
  color:var(--text-dim);
  font:var(--support-copy)/1.5 var(--exec-body);
}
.crm-evidence-grid {
  display:grid;
  grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);
  gap:12px;
  margin-top:12px;
}
.crm-evidence-grid > section {
  min-width:0;
  padding:14px;
  border:1px solid var(--exec-border);
  border-radius:10px;
  background:rgba(6,8,9,.42);
}
.crm-evidence-grid > section > header {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  margin-bottom:8px;
}
.crm-evidence-grid > section > header small {
  color:var(--exec-steel-soft);
  font:700 var(--micro-copy)/1.2 var(--exec-body);
  text-transform:uppercase;
  letter-spacing:.05em;
}
.crm-evidence-grid > section > header h3 {
  margin:3px 0 0;
  color:var(--text-main);
  font:600 1rem/1.25 var(--exec-display);
}
.crm-evidence-grid > section > header > span {
  max-width:24ch;
  color:var(--exec-muted);
  font:var(--micro-copy)/1.35 var(--exec-body);
  text-align:right;
}
.crm-people-list { display:grid; }
.crm-people-list article {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:6px 10px;
  align-items:center;
  min-height:55px;
  padding:9px 0;
  border-top:1px solid var(--exec-border);
}
.crm-people-list article:first-child { border-top:0; }
.crm-people-list article > div { min-width:0; }
.crm-people-list article b,.crm-people-list article span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.crm-people-list article b { color:var(--text-main); font:600 var(--support-copy)/1.3 var(--exec-body); }
.crm-people-list article span,.crm-people-list article > small { color:var(--exec-muted); font:var(--micro-copy)/1.35 var(--exec-body); }
.crm-people-list article > a { color:var(--exec-steel-soft); font:700 var(--micro-copy)/1.2 var(--exec-body); white-space:nowrap; }
.crm-overflow-note { margin:8px 0 0; color:var(--exec-muted); font:var(--micro-copy)/1.4 var(--exec-body); }
.crm-deals .crm-deal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:0; }
body:is(.page-partner,.page-contact) main .crm-intelligence :is(
  .crm-intelligence-head > span,.crm-account-strip small,.crm-account-strip > a,
  .crm-evidence-grid > section > header small,.crm-evidence-grid > section > header > span,
  .crm-people-list article span,.crm-people-list article > small,.crm-people-list article > a,
  .crm-overflow-note,.crm-stage,.crm-deal > div > small,.crm-deal dt,.crm-deal dd,
  .crm-deal > a,.crm-empty
) {
  font-size:var(--micro-copy) !important;
  line-height:1.4;
}
.crm-unresolved {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.crm-unresolved h2 { margin:4px 0; font:600 1.1rem/1.3 var(--exec-display); }
.crm-unresolved p { max-width:76ch; margin:0; color:var(--text-dim); font:var(--support-copy)/1.5 var(--exec-body); }
.crm-unresolved > button { flex:0 0 auto; min-height:44px; }

@media (max-width:980px) {
  body.page-partner main .intel-hero { grid-template-columns:1fr; align-items:start; }
  .intel-hero-signals { grid-column:1; }
  .crm-account-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .crm-account-strip > a { grid-column:1/-1; border-top:1px solid var(--exec-border); }
  .crm-evidence-grid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  body.page-partner .topbar {
    min-height:calc(92px + env(safe-area-inset-top));
    padding-top:calc(5px + env(safe-area-inset-top));
  }
  body.page-partner .mobile-more-panel { top:calc(92px + env(safe-area-inset-top)); }
  body.page-partner main { padding-top:10px; }
  body.page-partner main .intel-hero {
    gap:12px;
    margin:0 0 12px;
    padding:0 0 14px;
  }
  .intel-hero-toolbar { min-height:44px; }
  .intel-hero-toolbar .partner-record-actions button { min-width:58px; padding-inline:10px; }
  body.page-partner main .intel-hero-main {
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    gap:12px;
  }
  body.page-partner main .intel-hero-main :is(.intel-avatar,.intel-profile-photo) {
    width:52px;
    height:52px;
    flex-basis:52px;
  }
  body.page-partner main .intel-hero h1 { margin-top:5px; font-size:1.9rem; line-height:1.05; }
  .intel-hero-status { gap:4px 11px; font-size:.75rem; }
  .intel-hero-crm { gap:3px 10px; margin-top:7px; font-size:.75rem; }
  body.page-partner main .intel-hero-meta { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.page-partner main .intel-hero-meta > span {
    min-height:66px;
    padding:9px 11px;
    border-right:1px solid var(--exec-border);
    border-bottom:1px solid var(--exec-border);
  }
  body.page-partner main .intel-hero-meta > span:nth-child(2n) { border-right:0; }
  body.page-partner main .intel-hero-meta > span:nth-last-child(-n+2) { border-bottom:0; }
  body.page-partner main .intel-hero-meta b { font-size:1.25rem; }
  .continuity-explainer { margin-top:6px !important; font-size:.75rem !important; }
  .relationship-replay.is-empty {
    display:grid;
    grid-template-columns:minmax(0,1fr) 112px;
    gap:8px 12px;
    padding:12px 14px;
    margin-bottom:4px;
  }
  .relationship-replay.is-empty .replay-head { display:contents; }
  .relationship-replay.is-empty .replay-head > div { grid-column:1; grid-row:1; }
  .relationship-replay.is-empty .replay-head form { grid-column:2; grid-row:1; align-self:center; }
  .relationship-replay.is-empty .replay-empty-copy { grid-column:1/-1; grid-row:2; }
  .relationship-replay.is-empty .replay-head h2 { font-size:1.1rem; }
  .relationship-replay.is-empty .replay-head button { min-height:44px; padding-inline:8px; }
  .relationship-replay.is-empty .replay-empty-copy { font-size:.86rem; }
  .crm-account-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .crm-account-strip > span { min-height:62px; border-right:1px solid var(--exec-border); border-bottom:1px solid var(--exec-border); }
  .crm-account-strip > span:nth-child(2n) { border-right:0; }
  .crm-account-strip > a { grid-column:1/-1; min-height:46px; }
  .crm-evidence-grid { gap:9px; }
  .crm-evidence-grid > section { padding:12px 11px; }
  .crm-evidence-grid > section > header { display:grid; gap:4px; }
  .crm-evidence-grid > section > header > span { max-width:none; text-align:left; }
  .crm-people-list article { grid-template-columns:minmax(0,1fr) auto; }
  .crm-people-list article > small { grid-column:1; }
  .crm-people-list article > a { grid-column:2; grid-row:1/3; align-self:center; }
  .crm-deals .crm-deal-grid { grid-template-columns:1fr; }
  .crm-unresolved { display:grid; gap:13px; padding:15px 14px; }
  .crm-unresolved > button { width:100%; }
}

/* One disclosure owns the complete communication-history region. Individual
   messages stay intact after expansion so chronology remains readable. */
.communication-history-block { overflow:hidden; }
.communication-history-block > summary {
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.communication-history-block > summary::-webkit-details-marker { display:none; }
.communication-history-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  min-height:54px;
}
.communication-history-summary h2,
.communication-history-summary h3 { margin:3px 0 0; }
.communication-history-state {
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  color:var(--exec-muted);
  font:600 .78rem/1.35 var(--exec-body);
}
.communication-history-state > b {
  min-width:92px;
  color:var(--exec-steel-soft);
  text-align:right;
}
.communication-history-state::after {
  width:18px;
  height:18px;
  content:"";
  background:center/18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ca5b7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition:transform .18s ease;
}
.communication-history-block .when-open { display:none; }
.communication-history-block[open] .when-open { display:inline; }
.communication-history-block[open] .when-closed { display:none; }
.communication-history-block[open] .communication-history-state::after { transform:rotate(180deg); }
.communication-history-content {
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--exec-border);
}
.communication-history-block.is-embedded {
  padding:13px 15px;
  border:1px solid var(--exec-border);
  border-radius:10px;
  background:rgba(8,10,12,.42);
}
.communication-history-block.is-embedded .communication-history-summary { min-height:42px; }
.communication-history-block.is-embedded .communication-history-content { margin-top:10px; padding-top:10px; }

@media (max-width:640px) {
  .communication-history-summary { align-items:flex-start; gap:10px; min-height:58px; }
  .communication-history-summary h2 { font-size:1.08rem; }
  .communication-history-state {
    display:grid;
    grid-template-columns:auto 18px;
    gap:2px 7px;
    max-width:150px;
    font-size:.75rem;
    text-align:right;
  }
  .communication-history-state > span { grid-column:1; }
  .communication-history-state > b { grid-column:1; min-width:0; }
  .communication-history-state::after { grid-column:2; grid-row:1/3; align-self:center; }
}

/* ADR-0010: passive executive state. Expected and observed state stay visually
   distinct; the layout compresses attention without hiding the census. */
.today-sentinel,.executive-state-section,.state-command-bar,.executive-state-audit {
  border:1px solid #34434c;
  border-radius:12px;
  background:linear-gradient(180deg,rgba(20,24,29,.97),rgba(12,15,18,.97));
}
.today-sentinel { margin:0 0 22px; padding:20px; }
.today-sentinel > header,.executive-state-section > header {
  display:flex; align-items:flex-start; justify-content:space-between; gap:22px;
}
.today-sentinel > header small,.executive-state-section .page-eyebrow {
  color:#70b198; font:750 .8rem/1.2 var(--exec-data); letter-spacing:.1em;
  text-transform:uppercase;
}
.today-sentinel h2,.executive-state-section h2 {
  margin:4px 0 5px; color:#f1f3f7; font-size:1.2rem;
}
.today-sentinel > header p,.executive-state-section > header p {
  max-width:760px; margin:0; color:#b9c0ca; font-size:.92rem; line-height:1.5;
}
.today-sentinel > header > a,.executive-state-section > header > a {
  min-height:44px; display:inline-flex; align-items:center; color:#80b8ab;
  font-size:.86rem; text-decoration:none;
}
.today-sentinel-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:16px; }
.today-sentinel-grid article {
  min-width:0; padding:15px; border:1px solid #3a4650; border-radius:9px;
  background:rgba(8,10,13,.64);
}
.today-sentinel-grid article > span { color:#c7a847; font:700 .72rem var(--exec-data); text-transform:uppercase; }
.today-sentinel-grid h3 { margin:7px 0 12px; color:#f3f5f8; font-size:.98rem; line-height:1.3; }
.today-sentinel-grid article > div { display:grid; grid-template-columns:68px 1fr; gap:9px; padding:8px 0; border-top:1px solid #29303a; }
.today-sentinel-grid article > div b,.today-sentinel-grid footer > b { color:#8da2b0; font-size:.72rem; text-transform:uppercase; }
.today-sentinel-grid p { margin:0; color:#c7ccd4; font-size:.78rem; line-height:1.42; }
.today-sentinel-grid footer { display:grid; gap:5px; margin-top:8px; padding-top:10px; border-top:1px solid rgba(79,164,119,.3); }
.today-sentinel-grid footer small { color:#7f8996; font-size:.72rem; }
.today-sentinel-clear,.state-empty-line { margin:16px 0 0; padding:15px; border:1px dashed #34434c; border-radius:8px; color:#aeb4bf; }
.today-collision-strip { display:grid; grid-template-columns:auto repeat(3,minmax(0,1fr)); align-items:stretch; margin-top:12px; border:1px solid #343943; border-radius:8px; overflow:hidden; }
.today-collision-strip > b { display:flex; align-items:center; padding:12px; color:#70b198; font-size:.7rem; text-transform:uppercase; }
.today-collision-strip a { min-width:0; display:grid; gap:3px; padding:10px 12px; border-left:1px solid #343943; color:#e7eaf0; text-decoration:none; }
.today-collision-strip span { font-size:.76rem; font-weight:700; }
.today-collision-strip small { color:#9099a5; font-size:.68rem; line-height:1.35; }
.today-monitor-strip { display:grid; grid-template-columns:150px repeat(3,minmax(0,1fr)); align-items:stretch; margin-top:8px; border:1px solid #343943; border-radius:8px; overflow:hidden; }
.today-monitor-strip > b { display:flex; align-items:center; padding:12px; color:#8fa4b1; font-size:.68rem; line-height:1.25; text-transform:uppercase; }
.today-monitor-strip a { min-width:0; display:grid; gap:3px; padding:10px 12px; border-left:1px solid #343943; color:#dfe3e9; text-decoration:none; }
.today-monitor-strip span { font-size:.74rem; font-weight:700; line-height:1.3; }
.today-monitor-strip small { color:#89939f; font-size:.67rem; line-height:1.35; }
.today-sentinel-census { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:12px; border-top:1px solid #343943; }
.today-sentinel-census a { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:9px; min-height:52px; padding:8px 12px; border-right:1px solid #343943; color:#bfc5ce; text-decoration:none; }
.today-sentinel-census a:last-child { border-right:0; }
.today-sentinel-census b { color:#f2f4f7; font:750 1.1rem var(--exec-data); }
.today-sentinel-census span { font-size:.72rem; line-height:1.25; }

.page-executive-state main { width:min(1500px,calc(100% - 40px)); }
.state-command-bar { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)) auto; margin-bottom:18px; overflow:hidden; }
.state-command-bar > div { display:grid; align-content:center; gap:3px; min-height:78px; padding:13px 16px; border-right:1px solid #343943; }
.state-command-bar b { color:#f1f3f7; font:750 1.4rem var(--exec-data); }
.state-command-bar span { color:#aab2bd; font-size:.8rem; }
.state-command-bar .has-alert b { color:#c7a847; }
.state-command-bar form { display:flex; align-items:center; padding:10px 14px; }
.executive-state-section { margin-bottom:18px; padding:20px; }
.executive-state-section > header > b { color:#70b198; font:700 1rem var(--exec-data); }
.sentinel-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(390px,100%),1fr)); gap:12px; margin-top:16px; }
.sentinel-card { min-width:0; padding:17px; border:1px solid #3b444f; border-radius:10px; background:#0b0e12; }
.sentinel-card.is-intervene { border-top:2px solid #c7a847; }
.sentinel-card > header { display:flex; justify-content:space-between; gap:10px; color:#9ca7b3; font-size:.8rem; }
.sentinel-card > header span { color:#c7a847; font-weight:750; text-transform:uppercase; }
.sentinel-card h3 { margin:8px 0 13px; color:#f3f5f8; font-size:1.12rem; line-height:1.35; }
.sentinel-card dl { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:0; }
.sentinel-card dl div { padding:11px; border:1px solid #29313a; border-radius:7px; }
.sentinel-card dt,.sentinel-consequence b,.sentinel-probe b { color:#95a4b1; font-size:.78rem; font-weight:750; text-transform:uppercase; }
.sentinel-card dd { margin:5px 0 0; color:#d4d8df; font-size:.86rem; line-height:1.45; }
.sentinel-consequence,.sentinel-probe { margin-top:9px; padding:11px; border-left:2px solid #4f7898; background:#11161c; }
.sentinel-probe { border-left-color:#4fa477; }
.sentinel-synthesis { margin-top:9px; padding:11px; border:1px solid rgba(82,143,145,.34); border-radius:7px; background:rgba(82,143,145,.07); }
.sentinel-synthesis b { color:#70b198; font-size:.78rem; text-transform:uppercase; }
.sentinel-synthesis p { margin:5px 0; color:#d0d5dc; font-size:.86rem; line-height:1.47; }
.sentinel-synthesis small { color:#9aa4b0; font-size:.78rem; }
.sentinel-consequence p,.sentinel-probe p { margin:5px 0 0; color:#c7ccd4; font-size:.86rem; line-height:1.45; }
.sentinel-card details { margin-top:10px; color:#b9c0ca; font-size:.82rem; }
.sentinel-card details li { margin:5px 0; }
.sentinel-card > footer { display:grid; gap:9px; margin-top:12px; padding-top:11px; border-top:1px solid #29313a; }
.sentinel-card > footer > span { color:#9ba5b1; font-size:.8rem; }
.sentinel-card > footer form { display:grid; grid-template-columns:1fr auto; gap:7px; }
.sentinel-card > footer input { min-width:0; }
.sentinel-action-row { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.sentinel-actions details { min-width:0; }
.sentinel-actions details > summary {
  display:flex; align-items:center; justify-content:center; min-height:44px;
  padding:9px 12px; border:1px solid #3a4550; border-radius:7px;
  color:#d5dbe2; background:#12171c; cursor:pointer; font-weight:650;
  list-style:none; text-align:center;
}
.sentinel-actions details > summary::-webkit-details-marker { display:none; }
.sentinel-action-edit > summary { border-color:rgba(95,143,170,.5) !important; color:#a9c7d5 !important; }
.sentinel-action-complete > summary { border-color:rgba(79,164,119,.55) !important; color:#9dd0b5 !important; }
.sentinel-actions details[open] > summary { border-radius:7px 7px 0 0; background:#171d23; }
.sentinel-actions details form {
  grid-template-columns:1fr; gap:10px; padding:12px;
  border:1px solid #36414c; border-top:0; border-radius:0 0 7px 7px;
  background:#101419;
}
.sentinel-actions details form label { display:grid; gap:5px; min-width:0; }
.sentinel-actions details form label > span { color:#b7c0ca; font-size:.8rem; font-weight:700; }
.sentinel-actions details form :is(input,textarea) { width:100%; min-width:0; font-size:1rem; }
.sentinel-actions details form small { color:#9ba5b0; font-size:.78rem; line-height:1.45; }
.sentinel-action-suppress > summary {
  justify-content:flex-start !important; min-height:38px !important; padding-inline:0 !important;
  border:0 !important; color:#929ca8 !important; background:transparent !important;
  font-size:.8rem; font-weight:550 !important;
}
.sentinel-compact-list { display:grid; gap:8px; margin-top:14px; }
.sentinel-compact-list article { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr); gap:15px; padding:14px; border:1px solid #343943; border-radius:8px; background:#0b0e12; }
.sentinel-compact-list span { color:#70b198; font:700 .72rem var(--exec-data); text-transform:uppercase; }
.sentinel-compact-list h3 { margin:4px 0; color:#eff2f6; font-size:.94rem; }
.sentinel-compact-list p { margin:0; color:#aeb4bf; font-size:.78rem; line-height:1.4; }
.sentinel-compact-list aside { padding-left:15px; border-left:1px solid #343943; }
.sentinel-compact-list aside b { color:#8fa4b1; font-size:.72rem; text-transform:uppercase; }
.executive-state-split { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(350px,.65fr); gap:18px; }
.state-row-list,.detector-table,.assertion-list,.state-object-table { display:grid; gap:8px; margin-top:14px; }
.state-row-list article { display:grid; grid-template-columns:125px 1fr 40px; gap:13px; align-items:start; padding:12px; border:1px solid #343943; border-radius:8px; }
.state-row-list article > span { color:#70b198; font:700 .72rem var(--exec-data); text-transform:uppercase; }
.state-row-list h3 { margin:0 0 4px; color:#eef1f5; font-size:.86rem; }
.state-row-list p,.state-row-list small { margin:0; color:#aeb4bf; font-size:.74rem; line-height:1.35; }
.state-row-list article > b { color:#9eb5c2; font:700 .85rem var(--exec-data); text-align:right; }
.detector-table article { display:grid; grid-template-columns:1fr auto; gap:3px 12px; padding:11px; border:1px solid #343943; border-radius:8px; }
.detector-table article div { display:grid; gap:2px; }
.detector-table b { color:#e7eaf0; font-size:.78rem; text-transform:capitalize; }
.detector-table small,.detector-table span { color:#8f98a5; font-size:.72rem; }
.detector-table strong { color:#70b198; font:750 1.05rem var(--exec-data); }
.detector-table span { grid-column:1/3; }
.assertion-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
.assertion-list > article { min-width:0; padding:15px; border:1px solid #343943; border-radius:9px; background:#0b0e12; }
.assertion-list > article.is-candidate { border-left:2px solid #4f7898; }
.assertion-list > article.is-active { border-left:2px solid #4fa477; }
.assertion-list article > header { display:flex; justify-content:space-between; color:#89939f; font-size:.72rem; text-transform:uppercase; }
.assertion-list h3 { margin:9px 0 13px; color:#edf0f4; font-size:.9rem; line-height:1.4; }
.assertion-proof { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid #29313a; border-radius:7px; }
.assertion-proof span { display:grid; gap:2px; padding:8px; border-right:1px solid #29313a; color:#8e98a5; font-size:.72rem; }
.assertion-proof span:last-child { border:0; }
.assertion-proof b { color:#e9ecf1; font:700 .9rem var(--exec-data); }
.assertion-list details { margin-top:12px; }
.assertion-evidence > div { display:grid; gap:5px; margin-top:8px; }
.assertion-evidence p { display:grid; grid-template-columns:74px 1fr auto; gap:7px; align-items:start; margin:0; padding:7px 8px; border:1px solid #29313a; border-radius:6px; }
.assertion-evidence p span { color:#8ca1ae; font-size:.67rem; font-weight:750; text-transform:uppercase; }
.assertion-evidence p.is-supports span { color:#70b198; }
.assertion-evidence p.is-contradicts span { color:#d28b8b; }
.assertion-evidence p b { color:#cbd0d8; font-size:.7rem; line-height:1.35; }
.assertion-evidence p small { color:#8c96a2; font-size:.67rem; }
.assertion-evidence p > * { min-width:0; overflow-wrap:anywhere; }
.assertion-controls { display:grid; grid-template-columns:1fr 230px; gap:10px; margin-top:10px; }
.assertion-controls form { display:grid; gap:7px; align-content:start; padding:10px; border:1px solid #29313a; border-radius:7px; }
.assertion-controls label { display:grid; gap:4px; color:#aeb4bf; font-size:.72rem; }
.assertion-controls textarea { min-height:80px; }
.assertion-controls small { color:#89939f; font-size:.72rem; line-height:1.35; }
.state-object-table details { border:1px solid #343943; border-radius:8px; background:#0b0e12; }
.state-object-table summary { display:grid; grid-template-columns:150px 1fr auto; gap:12px; align-items:center; min-height:50px; padding:10px 13px; cursor:pointer; }
.state-object-table summary span { color:#70b198; font:700 .72rem var(--exec-data); text-transform:uppercase; }
.state-object-table summary b { color:#e7eaf0; font-size:.8rem; }
.state-object-table summary small { color:#8e98a5; font-size:.72rem; }
.state-object-table details > div { display:grid; gap:7px; padding:12px 14px; border-top:1px solid #343943; color:#aeb4bf; font-size:.75rem; }
.state-object-table p { margin:0; overflow-wrap:anywhere; }
.executive-state-audit { margin-bottom:20px; padding:16px 20px; }
.executive-state-audit > summary { cursor:pointer; color:#aeb4bf; font-weight:700; }
.executive-state-audit .executive-state-split { margin-top:14px; }
.executive-state-audit article { display:grid; gap:2px; padding:9px 0; border-bottom:1px solid #29313a; }
.executive-state-audit article b { color:#dfe3e9; font-size:.76rem; }
.executive-state-audit article small { color:#89939f; font-size:.72rem; }

.entity-state-panel { margin-bottom:18px; padding:20px; border-color:#34434c; }
.entity-state-panel > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.entity-state-panel > header h2 { margin:4px 0; font-size:1.16rem; }
.entity-state-panel > header p { max-width:700px; margin:0; color:#9da6b2; font-size:.8rem; }
.entity-state-panel > header a { min-height:44px; display:flex; align-items:center; color:#78b49f; font-size:.78rem; text-decoration:none; }
.entity-exception-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-top:15px; }
.entity-exception-grid article { min-width:0; padding:14px; border:1px solid #35404a; border-top:2px solid #4f7898; border-radius:9px; background:#0b0e12; }
.entity-exception-grid article.is-intervene { border-top-color:#c7a847; }
.entity-exception-grid article.is-monitor { border-top-color:#59717e; }
.entity-exception-meta { display:grid; grid-template-columns:auto 1fr auto; gap:8px; align-items:center; color:#8e98a5; font-size:.68rem; }
.entity-exception-meta span { color:#70b198; font-weight:750; text-transform:uppercase; }
.entity-exception-meta b { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.entity-exception-meta small { color:#a9b9c3; font:700 .74rem var(--exec-data); }
.entity-exception-grid h3 { margin:9px 0 10px; color:#eff2f6; font-size:.9rem; line-height:1.35; }
.entity-exception-grid dl { display:grid; gap:6px; margin:0; }
.entity-exception-grid dl div { display:grid; grid-template-columns:65px 1fr; gap:7px; padding:7px 0; border-top:1px solid #29313a; }
.entity-exception-grid dt { color:#84929f; font-size:.68rem; font-weight:750; text-transform:uppercase; }
.entity-exception-grid dd,.entity-exception-grid p { margin:0; color:#c5cbd3; font-size:.74rem; line-height:1.4; }
.entity-exception-grid p { display:grid; gap:3px; margin-top:9px; padding:9px; border-left:2px solid #4fa477; background:#11161c; }
.entity-exception-grid p b { color:#8da49c; font-size:.68rem; text-transform:uppercase; }
.entity-exception-grid article > small { display:block; margin-top:9px; color:#7f8996; font-size:.68rem; line-height:1.35; }
.entity-state-census { margin-top:12px; border:1px solid #343943; border-radius:8px; background:#0b0e12; }
.entity-state-census > summary { display:flex; justify-content:space-between; gap:12px; min-height:48px; padding:10px 13px; align-items:center; cursor:pointer; color:#aeb5bf; font-size:.76rem; }
.entity-state-census > summary b { color:#c7a847; }
.entity-state-census > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:10px; border-top:1px solid #343943; }
.entity-state-census article { display:grid; grid-template-columns:78px 1fr; gap:9px; padding:9px; border:1px solid #29313a; border-radius:6px; }
.entity-state-census article > span { color:#70b198; font-size:.67rem; font-weight:750; text-transform:uppercase; }
.entity-state-census article.is-waiting > span { color:#c7a847; }
.entity-state-census article div { display:grid; gap:3px; min-width:0; }
.entity-state-census article b { color:#dfe3e9; font-size:.75rem; }
.entity-state-census article small { color:#87919e; font-size:.68rem; line-height:1.35; }

@media (max-width:1000px) {
  .today-sentinel-grid,.sentinel-grid,.entity-exception-grid { grid-template-columns:1fr; }
  .today-collision-strip,.today-monitor-strip { grid-template-columns:1fr; }
  .today-collision-strip a,.today-monitor-strip a { border-left:0; border-top:1px solid #343943; }
  .state-command-bar { grid-template-columns:repeat(3,1fr); }
  .state-command-bar form { grid-column:1/4; justify-content:flex-end; border-top:1px solid #343943; }
  .executive-state-split { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .page-executive-state main { width:100%; padding-left:14px; padding-right:14px; }
  .today-sentinel { padding:15px; }
  .today-sentinel > header,.executive-state-section > header { display:grid; gap:8px; }
  .today-sentinel > header > a,.executive-state-section > header > a { min-height:44px; }
  .today-sentinel-census { grid-template-columns:1fr 1fr; }
  .today-sentinel-census a:nth-child(2) { border-right:0; }
  .today-sentinel-census a:nth-child(n+3) { border-top:1px solid #343943; }
  .state-command-bar { grid-template-columns:1fr 1fr; }
  .state-command-bar form { grid-column:1/3; }
  .executive-state-section { padding:15px; }
  .sentinel-card dl { grid-template-columns:1fr; }
  .sentinel-card > footer form { grid-template-columns:1fr; }
  .sentinel-action-row { grid-template-columns:1fr; }
  .sentinel-compact-list article { grid-template-columns:1fr; }
  .sentinel-compact-list aside { padding:10px 0 0; border-left:0; border-top:1px solid #343943; }
  .state-row-list article { grid-template-columns:1fr auto; }
  .state-row-list article > span { grid-column:1; }
  .state-row-list article > div { grid-column:1/3; grid-row:2; }
  .state-row-list article > b { grid-column:2; grid-row:1; }
  .assertion-list { grid-template-columns:1fr; }
  .assertion-evidence p { grid-template-columns:64px minmax(0,1fr); }
  .assertion-evidence p small { grid-column:2; }
  .assertion-proof { grid-template-columns:1fr 1fr; }
  .assertion-proof span:nth-child(2) { border-right:0; }
  .assertion-proof span:nth-child(n+3) { border-top:1px solid #29313a; }
  .assertion-controls { grid-template-columns:1fr; }
  .state-object-table summary { grid-template-columns:1fr auto; }
  .state-object-table summary span { grid-column:1; }
  .state-object-table summary b { grid-column:1/3; grid-row:2; }
  .state-object-table summary small { grid-column:2; grid-row:1; }
  .entity-state-panel { padding:15px; }
  .entity-state-panel > header { display:grid; gap:5px; }
  .entity-state-census > div { grid-template-columns:1fr; }
  .entity-state-census article { grid-template-columns:68px 1fr; }
}

/* ---------- objective attention ledger ---------- */
.page-time-intelligence main { width:min(1380px,calc(100% - 44px)); }
.attention-command { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) auto; margin:18px 0; border:1px solid #343943; border-radius:13px; background:rgba(13,16,20,.88); overflow:hidden; }
.attention-command > div { display:grid; align-content:center; min-height:96px; padding:15px 18px; border-right:1px solid #343943; }
.attention-command span,.attention-panel header span,.attention-evolution header span,.attention-session-evidence summary span { color:var(--exec-teal); font:700 .64rem/1.2 var(--exec-data); letter-spacing:.12em; text-transform:uppercase; }
.attention-command b { margin:5px 0 2px; font:700 1.55rem/1 var(--exec-display); }
.attention-command small { color:var(--exec-muted); font:.68rem/1.3 var(--exec-body); }
.attention-command form { display:grid; align-items:center; padding:14px; }
.attention-range-picker { display:flex; align-items:center; gap:7px; margin:0 0 14px; padding:10px; border:1px solid #343943; border-radius:11px; background:rgba(10,13,17,.9); }
.attention-range-picker > span { margin:0 5px; color:var(--exec-muted); font:700 .65rem var(--exec-data); text-transform:uppercase; letter-spacing:.09em; }
.attention-range-picker a { flex:0 0 auto; padding:8px 11px; border:1px solid #343943; border-radius:999px; color:var(--exec-muted); font:700 .69rem var(--exec-data); text-decoration:none; }
.attention-range-picker a:hover,.attention-range-picker a.on { border-color:var(--exec-steel); color:#eef4f7; background:rgba(95,143,170,.17); }
.attention-range-picker small { margin-left:auto; color:var(--exec-muted); font-size:.65rem; text-align:right; }
.attention-read-card,.attention-panel,.attention-evolution,.attention-session-evidence,.attention-coverage,.attention-ledger-brief,.entity-time-investment { border:1px solid #343943; border-radius:13px; background:linear-gradient(145deg,rgba(22,26,31,.94),rgba(12,15,19,.96)); }
.attention-read-card { padding:clamp(18px,3vw,32px); border-left:3px solid var(--exec-steel); }
.attention-read-card > h2 { max-width:54ch; margin:7px 0 11px; font:700 clamp(1.2rem,2vw,1.75rem)/1.25 var(--exec-display); }
.attention-read-card > p { color:var(--exec-muted); }
.attention-shifts { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:10px; margin-top:18px; }
.attention-shifts article { padding:14px; border:1px solid #303741; border-radius:9px; background:rgba(7,10,13,.58); }
.attention-shifts span { color:var(--exec-teal); font:700 .64rem var(--exec-data); text-transform:uppercase; letter-spacing:.08em; }
.attention-shifts b { display:block; margin:7px 0; font:700 1.35rem var(--exec-display); }
.attention-shifts p,.attention-shifts small { margin:0; color:var(--exec-muted); font-size:.72rem; }
.attention-driver-list { display:grid; gap:5px; margin:10px 0; }
.attention-driver-list small { display:grid; grid-template-columns:48px minmax(0,1fr); gap:0 8px; padding:7px; border:1px solid #29313a; border-radius:7px; overflow-wrap:anywhere; }
.attention-driver-list strong { grid-row:1/3; color:#eef4f7; }
.attention-grounding-limit { display:block; padding-top:9px; border-top:1px solid #29313a; line-height:1.45; }
.attention-shifts details { margin-top:9px; color:var(--exec-muted); font-size:.68rem; }
.attention-shifts details p { padding-top:6px; line-height:1.45; }
.attention-primary-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr); gap:14px; margin:14px 0; }
.attention-panel { padding:20px; min-width:0; }
.attention-panel header h2,.attention-evolution h2,.attention-session-evidence h2 { margin:5px 0; font:700 1.15rem var(--exec-display); }
.attention-panel header p,.attention-evolution header p { margin:0 0 14px; color:var(--exec-muted); font-size:.78rem; }
.attention-allocation { display:grid; gap:12px; }
.attention-allocation article > div { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:5px; }
.attention-allocation article b { text-transform:capitalize; }
.attention-allocation article span { color:var(--exec-muted); font:.7rem var(--exec-data); }
.attention-allocation article p { margin:0 0 7px; color:var(--exec-muted); font:.65rem/1.45 var(--exec-body); }
.attention-allocation progress { display:block; width:100%; height:8px; overflow:hidden; border:0; border-radius:999px; appearance:none; -webkit-appearance:none; background:#222831; }
.attention-allocation progress::-webkit-progress-bar { border-radius:999px; background:#222831; }
.attention-allocation progress::-webkit-progress-value { border-radius:999px; background:linear-gradient(90deg,#67b48f,var(--exec-steel)); }
.attention-allocation progress::-moz-progress-bar { border-radius:999px; background:linear-gradient(90deg,#67b48f,var(--exec-steel)); }
.attention-entity-list { display:grid; }
.attention-entity-list > a { display:grid; grid-template-columns:1fr auto; gap:3px 12px; padding:11px 0; border-bottom:1px solid #2b3139; color:inherit; text-decoration:none; }
.attention-entity-list > a:hover b { color:var(--exec-teal); }
.attention-entity-list span { grid-column:1/3; color:var(--exec-teal); font:700 .58rem var(--exec-data); text-transform:uppercase; }
.attention-entity-list strong { grid-column:2; grid-row:2; font:700 .92rem var(--exec-display); }
.attention-entity-list small { color:var(--exec-muted); font:.65rem var(--exec-data); }
.attention-evolution { margin:14px 0; padding:20px; }
.attention-evolution > header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; border-bottom:1px solid #343943; }
.attention-evolution-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; padding-top:16px; }
.attention-evolution-grid h3 { font:700 .82rem var(--exec-display); }
.attention-table { max-height:320px; overflow:auto; scrollbar-width:thin; }
.attention-table > div { display:grid; grid-template-columns:minmax(68px,.7fr) minmax(0,1.4fr) auto; gap:8px; padding:7px 0; border-bottom:1px solid #292f37; font-size:.69rem; }
.attention-table > div:has(> span:first-child) { grid-template-columns:minmax(0,1fr) auto; }
.attention-table time,.attention-table span { color:var(--exec-muted); text-transform:capitalize; overflow-wrap:anywhere; }
.attention-session-evidence,.attention-coverage { margin:14px 0; overflow:hidden; }
.attention-session-evidence > summary,.attention-coverage > summary { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:20px; cursor:pointer; }
.attention-session-evidence > p,.attention-coverage > p { margin:0; padding:0 20px 16px; color:var(--exec-muted); }
.attention-session-evidence > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; background:#303640; border-top:1px solid #303640; }
.attention-session-evidence article { min-width:0; padding:15px 18px; background:#11151a; }
.attention-session-evidence article > time,.attention-session-evidence article > span { color:var(--exec-muted); font:.62rem var(--exec-data); text-transform:capitalize; }
.attention-session-evidence article > span { float:right; color:var(--exec-teal); }
.attention-session-evidence h3 { margin:7px 0 4px; overflow-wrap:anywhere; font:700 .84rem/1.35 var(--exec-body); }
.attention-session-evidence article > small { color:var(--exec-muted); overflow-wrap:anywhere; }
.attention-session-links { display:grid; gap:5px; margin-top:10px; }
.attention-session-links form { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px; border:1px solid #303740; border-radius:7px; }
.attention-session-links span { font:.62rem var(--exec-data); }
.attention-coverage > div { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid #303640; }
.attention-coverage article { display:grid; gap:4px; padding:15px 20px; border-right:1px solid #303640; }
.attention-coverage small { color:var(--exec-muted); }
.attention-ledger-brief { margin:18px 0; padding:18px; }
.attention-ledger-brief > header,.entity-time-investment > header { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.attention-ledger-brief > header small { color:var(--exec-teal); font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; }
.attention-ledger-brief h2,.entity-time-investment h2 { margin:3px 0; font-size:1.16rem; }
.attention-ledger-brief header p,.entity-time-investment header p { margin:0; color:var(--exec-muted); font-size:.9rem; }
.attention-ledger-read { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin-top:14px; border-top:1px solid #303740; }
.attention-ledger-read > div { display:grid; gap:3px; padding:14px; border-right:1px solid #303740; }
.attention-ledger-read span { color:var(--exec-teal); font:.78rem var(--exec-data); text-transform:uppercase; }
.attention-ledger-read b { font:700 1.18rem var(--exec-display); }
.attention-ledger-read small { color:var(--exec-muted); font-size:.8rem; line-height:1.4; }
.attention-ledger-read > p { grid-column:1/5; margin:0; padding:14px; background:rgba(6,9,12,.45); font-size:.9rem; line-height:1.5; }
.attention-brief-grounding { grid-column:1/5; padding:0 14px 14px; color:var(--exec-muted); background:rgba(6,9,12,.45); font-size:.86rem; line-height:1.5; }
.entity-time-investment { margin:14px 0; padding:18px; }
.entity-time-summary { display:grid; grid-template-columns:auto 1fr; gap:2px 12px; margin:14px 0; padding:12px 0; border-block:1px solid #303740; }
.entity-time-summary b { grid-row:1/3; align-self:center; font:700 1.6rem var(--exec-display); color:var(--exec-teal); }
.entity-time-summary small { color:var(--exec-muted); }
.entity-time-modes { display:flex; flex-wrap:wrap; gap:8px; }
.entity-time-modes span { display:flex; gap:5px; padding:7px 9px; border:1px solid #303740; border-radius:7px; color:var(--exec-muted); text-transform:capitalize; }
.entity-time-investment details { margin-top:12px; }
.entity-time-investment details article { display:grid; grid-template-columns:70px 110px minmax(0,1fr) auto; gap:10px; padding:8px 0; border-bottom:1px solid #293039; font-size:.7rem; }
.entity-time-investment details span,.entity-time-investment details small { color:var(--exec-muted); }

@media (max-width:900px) {
  .attention-command { grid-template-columns:repeat(2,1fr); }
  .attention-command form { grid-column:1/3; }
  .attention-primary-grid,.attention-evolution-grid { grid-template-columns:1fr; }
  .attention-session-evidence > div { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .page-time-intelligence main { width:100%; padding-inline:14px; }
  .attention-command { grid-template-columns:1fr 1fr; }
  .attention-command > div { min-height:82px; padding:12px; }
  .attention-command > div:nth-child(2n) { border-right:0; }
  .attention-command > div:nth-child(n+3) { border-top:1px solid #343943; }
  .attention-read-card,.attention-panel,.attention-evolution { padding:15px; }
  .attention-range-picker { overflow-x:auto; align-items:center; scrollbar-width:thin; }
  .attention-range-picker > span { position:sticky; left:0; padding:9px 8px; margin:0; background:#0d1115; z-index:1; }
  .attention-range-picker small { display:none; }
  .attention-evolution > header,.attention-ledger-brief > header,.entity-time-investment > header { display:grid; }
  .attention-ledger-read { grid-template-columns:1fr 1fr; }
  .attention-ledger-read > div:nth-child(2n) { border-right:0; }
  .attention-ledger-read > div:nth-child(n+3) { border-top:1px solid #303740; }
  .attention-ledger-read > p { grid-column:1/3; }
  .attention-brief-grounding { grid-column:1/3; }
  .attention-coverage > div { grid-template-columns:1fr; }
  .attention-coverage article { border-right:0; border-bottom:1px solid #303640; }
  .attention-session-links form { align-items:flex-start; flex-direction:column; }
  .entity-time-investment details article { grid-template-columns:64px 1fr; }
  .entity-time-investment details article b,.entity-time-investment details article small { grid-column:1/3; }
}
/* Work composition surfaces: readable, deliberate, and structurally distinct
   from their history lists. */
body:is(.page-cases,.page-commitments,.page-clickup,.page-projects) main { --work-label:.82rem; --work-body:1rem; }
body:is(.page-cases,.page-commitments,.page-clickup,.page-projects) main :is(input,select,textarea,button) { font-size:var(--work-body); }
body:is(.page-cases,.page-commitments,.page-clickup,.page-projects) main :is(p,small,label) { line-height:1.5; }
.case-compose { margin-bottom:16px; padding:0; overflow:hidden; }
.case-compose-head { display:flex; align-items:start; justify-content:space-between; gap:24px; padding:20px 22px; border-bottom:1px solid var(--border-subtle); }
.case-compose-head h2 { margin:4px 0 5px; font-size:1.45rem; }
.case-compose-head p { max-width:72ch; margin:0; color:var(--text-dim); font-size:var(--work-body); }
.case-compose-head > span { flex:0 0 auto; padding:7px 10px; border:1px solid rgba(82,143,145,.35); border-radius:999px; color:var(--accent-teal); font-size:var(--work-label); }
.case-compose > form { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.7fr); }
.case-compose-core,.case-compose-routing { display:grid; align-content:start; gap:15px; padding:22px; }
.case-compose > form > *,.case-compose label,.case-compose :is(input,select,textarea) { min-width:0; }
.case-compose :is(input,select,textarea) { width:100%; }
.case-compose-routing { border-left:1px solid var(--border-subtle); background:rgba(7,9,12,.25); }
.case-compose label,.backlog-control label,.goal-control label { display:grid; gap:7px; margin:0; color:var(--text-dim); font-size:var(--work-label); font-weight:600; }
.case-compose label > span { color:var(--text-main); font-size:.9rem; }
.case-compose label small { color:var(--text-dim); font-weight:400; }
.case-support-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.case-support-grid > .card { margin:0; padding:20px; }
.case-support-grid header { display:flex; align-items:start; justify-content:space-between; gap:16px; }
.case-support-grid header h2 { margin:3px 0; font-size:1.25rem; }
.case-support-grid > section > p { color:var(--text-dim); font-size:.95rem; }
.case-support-grid summary { padding:10px 0; font-size:.92rem; font-weight:600; }
.commitment-capture { margin-bottom:16px; padding:0; border:1px solid rgba(79,164,119,.28); border-radius:12px; background:linear-gradient(180deg,rgba(79,164,119,.05),rgba(17,19,25,.7)); }
.commitment-capture > header { display:flex; align-items:start; justify-content:space-between; gap:20px; padding:18px 20px; border-bottom:1px solid var(--border-subtle); }
.commitment-capture > header h2 { margin:4px 0; font-size:1.3rem; }
.commitment-capture > header p { max-width:72ch; margin:0; color:var(--text-dim); font-size:.95rem; }
.commitment-capture > header > small { max-width:34ch; color:var(--text-dim); text-align:right; }
.commitment-capture form { display:grid; grid-template-columns:170px minmax(280px,1.4fr) minmax(200px,.7fr) minmax(210px,.55fr); gap:12px; padding:18px 20px 20px; }
.commitment-capture label { display:grid; gap:6px; min-width:0; margin:0; }
.commitment-capture label > span { color:var(--text-main); font-size:var(--work-label) !important; letter-spacing:.03em; text-transform:none; }
.commitment-capture label > span i { color:var(--text-dim); font-style:normal; font-weight:400; }
.commitment-capture .commitment-evidence-input { grid-column:1/-2; }
.commitment-capture .commitment-evidence-input textarea { min-height:72px; resize:vertical; }
.commitment-capture .commitment-evidence-input small { color:var(--text-dim); font-weight:400; }
.commitment-capture button { align-self:end; min-height:48px; }
.clickup-create { padding:0; overflow:hidden; }
.clickup-create > header { display:flex; justify-content:space-between; align-items:start; gap:24px; padding:20px 22px; border-bottom:1px solid var(--border-subtle); }
.clickup-create > header h2 { margin:4px 0; font-size:1.4rem; }
.clickup-create > header p { max-width:72ch; margin:0; color:var(--text-dim); font-size:.96rem; }
.clickup-write-boundary { max-width:30ch; padding:9px 11px; border:1px solid rgba(82,143,145,.34); border-radius:8px; color:var(--accent-teal); font-size:var(--work-label); }
.clickup-create > form { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr); padding:0; gap:0; }
.clickup-compose-core,.clickup-compose-routing { display:grid; align-content:start; gap:15px; padding:22px; }
.clickup-compose-routing { border-left:1px solid var(--border-subtle); background:rgba(7,9,12,.25); }
.clickup-compose-routing > div { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.clickup-create label { display:grid; gap:7px; margin:0; color:var(--text-dim); font-size:var(--work-label); font-weight:600; }
.clickup-create label > span { color:var(--text-main); font-size:.88rem; }
.clickup-create > form > footer { grid-column:1/-1; display:flex; align-items:center; justify-content:flex-end; gap:18px; padding:15px 22px; border-top:1px solid var(--border-subtle); }
.clickup-create > form > footer span { margin-right:auto; color:var(--text-dim); font-size:var(--work-label); }
.clickup-create > form > footer button { min-height:48px; }
@media(max-width:900px){.case-compose > form,.clickup-create > form{grid-template-columns:minmax(0,1fr)}.case-compose-routing,.clickup-compose-routing{border-left:0;border-top:1px solid var(--border-subtle)}.commitment-capture form{grid-template-columns:1fr 1fr}.commitment-capture .commitment-title-input,.commitment-capture .commitment-evidence-input{grid-column:1/-1}}
@media(max-width:700px){.case-compose-head,.commitment-capture > header,.clickup-create > header{display:grid}.case-compose-head > span,.commitment-capture > header > small,.clickup-write-boundary{text-align:left}.case-support-grid{grid-template-columns:1fr}.commitment-capture form{grid-template-columns:1fr}.commitment-capture .commitment-title-input,.commitment-capture .commitment-evidence-input{grid-column:auto}.clickup-compose-routing > div{grid-template-columns:1fr}.clickup-create > form > footer{align-items:stretch;flex-direction:column}.clickup-create > form > footer button{width:100%}.conference-hero-actions{position:static;display:flex;margin:10px 0 0}.record-delete-dialog > form footer{align-items:stretch;flex-direction:column-reverse}.record-delete-dialog > form footer button{width:100%}.intel-create-heading{position:relative;padding-right:45px}.intel-create-heading .intel-create-close{position:absolute;top:-4px;right:0}}
/* Manual focus ordering is intentionally compact: it changes today's sequence,
   never deadline visibility or the complete inventory. */
.judgment-order-tools { display:grid; justify-items:end; gap:6px; max-width:390px; }
.judgment-order-tools span { color:var(--text-dim); text-align:right; font-size:var(--micro-copy); }
.judgment-order-tools > div,.judgment-order-tools { align-items:center; }
.judgment-order-tools button { min-height:38px; padding:7px 11px; }
.judgment-item-header { grid-template-columns:auto minmax(0,1fr) auto; }
.judgment-order-controls { display:grid; grid-template-columns:repeat(2,40px); gap:6px; }
.judgment-order-controls button { min-height:40px; padding:0; font-size:1.05rem; }
.judgment-order-controls button:disabled { opacity:.3; cursor:not-allowed; }
@media(max-width:700px){.judgment-order-tools{justify-items:start;max-width:none}.judgment-order-tools span{text-align:left}.judgment-item-header{grid-template-columns:auto minmax(0,1fr)}.judgment-order-controls{grid-column:2;justify-self:start}}
@media(max-width:700px){.judgment-order-tools button{min-height:44px}.judgment-order-controls{grid-template-columns:repeat(2,44px)}.judgment-order-controls button{min-height:44px}}

/* The prior workbench layer used 10–11px operational copy. These screens are
   read and composed on phones, so metadata receives the same humane floor as
   the executive intelligence surfaces. */
.page-clickup main .clickup-health span,
.page-clickup main .clickup-create .page-eyebrow,
.page-clickup main .clickup-lane .page-eyebrow,
.page-clickup main .clickup-task-state span,
.page-clickup main .clickup-task-state b { font-size:var(--micro-copy) !important; line-height:1.4; }
.page-clickup main :is(.clickup-health small,.clickup-lane header p,
  .clickup-task-list article > p,.clickup-task-list details) { font-size:.86rem !important; line-height:1.5; }
.page-clickup main .clickup-task-list h3 { font-size:1rem; }
.page-cases main :is(.case-row > div > span,.goal-control article span,
  .backlog-control article span,.artifact-shelf-preview span) { font-size:var(--micro-copy); }
.page-cases main :is(.case-row p,.goal-control article small,.backlog-control article small) { font-size:.92rem; }
.page-commitments main .commitment-meta,
.page-commitments main .commitment-source-evidence blockquote,
.page-commitments main .commitment-correction-note { font-size:.9rem; line-height:1.55; }
.page-projects main table { font-size:.92rem; }
.page-projects main th { font-size:var(--micro-copy); }

/* Today hero: one dramatic moment, made of scale — not effects. The page's
   job is a consequence-first re-entry, so the judgment count IS the headline:
   an Archivo numeral at ~2.2x the Apfel statement it anchors, signed with a
   single spectrum rule. Everything else on the page gets *quieter* so this
   reads as the only loud thing (contrast, the doctrine's version of bold).
   Numbers never render in Apfel — the count is explicitly var(--font-num). */
.judgment-header { align-items:start; margin-bottom:30px; }
.judgment-hero-eyebrow {
  display:block; margin-bottom:14px; color:#8d96a3;
  font:600 .72rem/1 var(--font-body); letter-spacing:var(--label-tracking);
  text-transform:uppercase;
}
.judgment-hero-statement { margin:0; }
.judgment-hero-statement a {
  display:flex; align-items:baseline; gap:22px; color:inherit;
  text-decoration:none;
}
.judgment-hero-statement a:hover .judgment-hero-words,
.judgment-hero-statement a:focus-visible .judgment-hero-words {
  text-decoration:underline; text-decoration-color:var(--accent-blue);
  text-decoration-thickness:2px; text-underline-offset:6px;
}
.judgment-hero-count {
  font:750 clamp(4.2rem,9vw,6.8rem)/.86 var(--font-num);
  letter-spacing:-.035em; color:#f7f8ff;
  font-feature-settings:"tnum" 1;
}
.judgment-hero-words {
  font:700 clamp(1.9rem,3.2vw,2.9rem)/1.04 var(--font-display);
  letter-spacing:-.035em; color:#f7f8ff;
}
.judgment-hero-statement.is-quiet .judgment-hero-words { color:#c6cbd3; }
.judgment-hero-rule {
  display:block; width:86px; height:3px; margin:18px 0 0;
  border-radius:2px; background:var(--accent-gradient);
}
.judgment-hero p { max-width:56ch; }
.judgment-header p { margin-top:12px; color:#98a1ad; font-size:.98rem; }

/* Entrance: the count arrives once, decisively. Transform + opacity only,
   silenced with the rest of the motion system. */
.motion-ready .judgment-hero-count {
  animation:judgment-count-in .65s cubic-bezier(.16,.8,.26,1) both;
}
.motion-ready .judgment-hero-rule {
  transform-origin:left center;
  animation:judgment-rule-in .55s cubic-bezier(.16,.8,.26,1) .25s both;
}
@keyframes judgment-count-in {
  from { opacity:0; transform:translateY(16px); }
  to { opacity:1; transform:none; }
}
@keyframes judgment-rule-in {
  from { opacity:0; transform:scaleX(0); }
  to { opacity:1; transform:scaleX(1); }
}
.no-motion .judgment-hero-count,.no-motion .judgment-hero-rule { animation:none !important; }
@media (prefers-reduced-motion: reduce) {
  .judgment-hero-count,.judgment-hero-rule { animation:none !important; }
}

/* The shift strip cedes the stage: it stays the page's nav ledger, but its
   numerals drop below the hero's voice so five tiles stop competing. */
.shift-totals a { min-height:64px; padding:11px 16px; }
.shift-totals b { font-size:1.12rem; }
.shift-totals span { font-size:.78rem; font-weight:600; }
.shift-totals small { font-size:.72rem; }

@media (max-width: 640px) {
  .judgment-hero-statement a { gap:14px; }
  .judgment-hero-count { font-size:3.6rem; }
  .judgment-hero-words { font-size:1.55rem; }
  .judgment-hero-rule { margin-top:14px; }
}

/* Brief entrance: after the hero count lands, the shift ledger and master
   caution cascade in behind it — one choreographed arrival, not scattered
   effects. Composes with the hero keyframes above; silenced whenever
   motion-ready is absent (reduced motion, coarse pointer, motion toggle). */
.motion-ready .shift-totals a {
  animation:judgment-count-in .5s cubic-bezier(.16,.8,.26,1) both;
}
.motion-ready .shift-totals a:nth-child(1) { animation-delay:.22s; }
.motion-ready .shift-totals a:nth-child(2) { animation-delay:.28s; }
.motion-ready .shift-totals a:nth-child(3) { animation-delay:.34s; }
.motion-ready .shift-totals a:nth-child(4) { animation-delay:.40s; }
.motion-ready .shift-totals a:nth-child(5) { animation-delay:.46s; }
.motion-ready .master-caution { animation:judgment-count-in .55s cubic-bezier(.16,.8,.26,1) .5s both; }
.no-motion .shift-totals a,.no-motion .master-caution { animation:none !important; }
@media (prefers-reduced-motion: reduce) {
  .shift-totals a,.master-caution { animation:none !important; }
}

/* Attention Studio + Memory Observatory — chart surfaces. Marks carry series
   color; every word wears text tokens. Grids recessive, seams 2px surface. */
.studio-findings-rail { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:10px; }
.studio-finding { display:grid; gap:4px; padding:12px 14px; border:1px solid #2A2A28;
  border-radius:10px; background:#12161b; color:inherit; text-decoration:none; }
.studio-finding:hover { border-color:#3a4048; background:#151a20; text-decoration:none; }
.studio-finding b { color:#f2f3f4; font-size:.92rem; }
.studio-finding small { color:#98a1ad; line-height:1.4; }
.studio-block header { display:flex; justify-content:space-between; gap:16px; align-items:start; margin-bottom:10px; }
.studio-range { display:flex; gap:6px; }
.studio-range .is-on { border-color:#5F8FAA; color:#f2f3f4; }
.studio-legend, .observatory-legend { display:flex; flex-wrap:wrap; gap:14px; margin:2px 0 10px; color:#98a1ad; font-size:.8rem; }
.studio-legend i, .observatory-legend i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.observatory-legend .is-active-chip { background:#f2f3f4; }
.observatory-legend .is-draft-chip { background:#5b636e; opacity:.6; }
.observatory-legend .is-retired-chip { background:transparent; border:1px solid #5b636e; }
.observatory-legend-note { color:#6f7883; font-size:.74rem; font-style:italic; }
.observatory-legend-note i { display:none; }
.studio-plot { position:relative; min-height:300px; }
.studio-plot-bars { min-height:380px; }
.studio-plot-bars:has(.studio-leaderboard) { min-height:0; height:auto; }
/* Top applications — designed ranked leaderboard */
.studio-leaderboard { list-style:none; display:grid; gap:12px; margin:2px 0 0; padding:0; }
.studio-leaderboard li { display:grid; grid-template-columns:1.7em 1fr; gap:12px; align-items:start; }
.studio-leaderboard .lb-rank { font:700 .92rem/1.55 var(--font-num); color:#697280; text-align:right; font-variant-numeric:tabular-nums; }
.studio-leaderboard .lb-main { min-width:0; }
.studio-leaderboard .lb-head { display:flex; justify-content:space-between; align-items:baseline; gap:10px; }
.studio-leaderboard .lb-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e8ebef; font-size:.9rem; }
.studio-leaderboard .lb-hours { white-space:nowrap; color:#aab1ba; font-size:.76rem; font-variant-numeric:tabular-nums; }
.studio-leaderboard .lb-hours b { color:#f4f6f8; font:700 1.02rem/1 var(--font-num); margin-right:1px; }
.studio-leaderboard .lb-bar { height:7px; margin:6px 0 5px; border-radius:5px; background:rgba(255,255,255,.05); overflow:hidden; }
.studio-leaderboard .lb-bar i { display:block; height:100%; border-radius:5px; background:var(--accent-gradient); box-shadow:0 0 10px rgba(79,164,119,.22); transition:width .95s cubic-bezier(.22,1,.36,1); }
.studio-leaderboard .lb-meta { display:flex; justify-content:space-between; gap:10px; color:#808892; font-size:.72rem; font-variant-numeric:tabular-nums; }
@media (prefers-reduced-motion:reduce) { .studio-leaderboard .lb-bar i { transition:none; } }
/* Data table: fixed layout, numeric columns right-aligned so values sit under headers */
.studio-table table { width:100%; border-collapse:collapse; table-layout:fixed; }
.studio-table table th, .studio-table table td { padding:5px 8px; border-bottom:1px solid rgba(42,42,40,.6); }
.studio-table table th:first-child, .studio-table table td:first-child { text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.studio-table table th:not(:first-child), .studio-table table td:not(:first-child) { text-align:right; width:7.5ch; font-variant-numeric:tabular-nums; white-space:nowrap; }
.studio-table table th { color:#8b939d; font-weight:600; }
.studio-table table td { color:#c6cbd3; }
.studio-duo { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.studio-tooltip { position:absolute; top:14px; pointer-events:none; z-index:5;
  background:#181B1E; border:1px solid #2A2A28; border-radius:9px; padding:9px 11px;
  display:grid; gap:3px; font-size:.78rem; color:#c6cbd3; min-width:170px; }
.studio-tooltip b { color:#f2f3f4; }
.studio-tooltip .studio-tooltip-total { margin:1px 0 4px; padding-bottom:5px;
  border-bottom:1px solid #2A2A28; color:#aeb4bd; font-size:.75rem; }
.studio-tooltip span i { display:inline-block; width:8px; height:8px; border-radius:2px; margin-right:6px; }
.studio-sparks { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.studio-spark { border:1px solid #2A2A28; border-radius:10px; padding:10px 12px 4px; background:#12161b; }
.studio-spark header { display:flex; align-items:center; gap:8px; margin-bottom:2px; }
.studio-spark header i { width:10px; height:10px; border-radius:3px; }
.studio-spark header b { font-size:.88rem; color:#f2f3f4; flex:1; }
.studio-spark header span { color:#f2f3f4; font-feature-settings:"tnum" 1; }
.studio-table summary { color:#98a1ad; padding:8px 0; cursor:pointer; }
.studio-table table td, .studio-table table th { font-size:.82rem; }
.observatory-stats { display:grid; grid-template-columns:minmax(230px,300px) 1fr; gap:16px; margin-bottom:16px; }
.observatory-compound { border:1px solid #2A2A28; border-radius:12px; padding:18px;
  background:linear-gradient(160deg,#12161b,#0d1116); display:grid; gap:6px; align-content:center; }
.observatory-compound b { font:750 clamp(2.6rem,4.5vw,3.6rem)/1 var(--font-num); color:#f2f3f4; font-feature-settings:"tnum" 1; }
.observatory-compound span { color:#98a1ad; text-transform:uppercase; letter-spacing:.14em; font-size:.72rem; font-weight:600; }
.observatory-compound small { color:#7d8794; line-height:1.45; }
.observatory-tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; }
.observatory-tiles > div { border:1px solid #2A2A28; border-radius:10px; padding:12px 14px;
  background:#12161b; display:grid; gap:2px; align-content:center; }
.observatory-tiles b { font:700 1.4rem/1 var(--font-num); color:#f2f3f4; font-feature-settings:"tnum" 1; }
.observatory-tiles span { color:#98a1ad; font-size:.78rem; }
.observatory-field { position:relative; }
.observatory-field-card header { display:flex; justify-content:space-between; align-items:start; gap:14px; }
.observatory-hover { min-height:44px; margin:10px 2px 0; font-size:.84rem; line-height:1.5; }
@media (max-width: 900px) {
  .studio-duo { grid-template-columns:1fr; }
  .observatory-stats { grid-template-columns:1fr; }
}

/* Whole-card click: a stretched link covers the card so the entire surface is
   the target, while explicit actions layer above it. No nested-interactive
   trap — the link sits over static text but under the action row. */
.is-clickable { position:relative; }
.card-stretch-link { position:absolute; inset:0; z-index:0; border-radius:inherit; }
.is-clickable:hover { border-color:#4f6070; background:rgba(12,16,20,.72); }
.today-sentinel-grid article.is-clickable h3 { color:#fff; }
.card-actions { position:relative; z-index:1; display:flex; align-items:center;
  justify-content:space-between; gap:10px; margin-top:8px; }
.card-actions a { color:var(--accent-blue,#5F8FAA); font-size:.8rem; font-weight:600; }
.card-actions form { margin:0; }

/* Hero on mobile: a 3.6rem numeral baseline-aligned to 1.55rem words drifts
   low and reads as misaligned. Stack the count above the words on narrow
   screens so the number owns its own line and the phrase sits beneath it. */
@media (max-width: 560px) {
  .judgment-hero-statement a { flex-direction:column; align-items:flex-start; gap:2px; }
  .judgment-hero-count { line-height:1; }
  .judgment-hero-words { line-height:1.08; }
}

/* Interactive accretion field */
.observatory-field { position:relative; }
.observatory-canvas { display:block; border-radius:10px; cursor:grab;
  background:radial-gradient(120% 90% at 50% 0%, rgba(20,30,26,.5), rgba(9,10,13,.2)); }
.observatory-canvas:active { cursor:grabbing; }
.observatory-zoom { position:absolute; top:10px; right:10px; z-index:2; display:flex; flex-direction:column; gap:6px; }
.observatory-zoom button { width:38px; height:38px; border-radius:9px; font-size:1.15rem; line-height:1;
  background:rgba(17,19,21,.82); border:1px solid #2A2A28; color:#c6cbd3; cursor:pointer;
  backdrop-filter:blur(6px); display:flex; align-items:center; justify-content:center; }
.observatory-zoom button:hover { color:#f2f3f4; border-color:#4f6070; }

/* ---- Mobile chart sizing: the studio charts were desktop-tuned. Give each
   an explicit, readable height and let the JS drop dense labels below 640px. */
.studio-plot { position:relative; min-height:300px; }
@media (max-width: 640px) {
  .studio-block header { flex-direction:column; gap:8px; }
  .studio-plot { min-height:260px; }
  .studio-duo { gap:12px; }
  .studio-legend { gap:10px 14px; font-size:.75rem; }
  .observatory-field .observatory-canvas { min-height:360px; }
}

.observatory-field-actions { display:flex; gap:8px; }
.observatory-field-actions .is-on { border-color:#5F8FAA; color:#f2f3f4; background:rgba(95,143,170,.14); }
@media (max-width:640px){ .observatory-field-actions{flex-wrap:wrap} }

/* Attention Studio — range bar, clickable mode chips, drill-in panel */
.studio-rangebar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 16px; }
.studio-rangebar .page-eyebrow { margin-right:4px; }
.studio-rangebar .is-on { border-color:#5F8FAA; color:#f2f3f4; background:rgba(95,143,170,.14); }
.studio-legend-modes { gap:8px; }
.studio-mode-chip { display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  padding:5px 11px; border:1px solid #2A2A28; border-radius:999px; background:#12161b;
  color:#c6cbd3; font-size:.8rem; }
.studio-mode-chip:hover { border-color:#4f6070; color:#f2f3f4; }
.studio-mode-chip i { width:10px; height:10px; border-radius:3px; }
.studio-spark { cursor:pointer; text-align:left; width:100%; font:inherit; }
.studio-spark:hover { border-color:#4f6070; }
.studio-mode-swatch { display:inline-block; width:14px; height:14px; border-radius:4px; margin-right:8px; vertical-align:-2px; }
.studio-breakdown-body { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.studio-breakdown-body h3 { color:#c6cbd3; font-size:.82rem; text-transform:uppercase; letter-spacing:.1em; margin:0 0 8px; }
.studio-doc-list { list-style:none; margin:0; padding:0; display:grid; gap:2px; }
.studio-doc-list li { display:grid; grid-template-columns:52px 1fr; gap:2px 10px; align-items:baseline;
  padding:8px 0; border-bottom:1px solid #22262b; }
.studio-doc-list li b { color:#f2f3f4; font:700 .9rem/1 var(--font-num); font-feature-settings:"tnum" 1; }
.studio-doc-list li span { color:#c7ccd4; font-size:.82rem; word-break:break-word; }
.studio-doc-list li small { grid-column:2; color:#7f8996; font-size:.72rem; }
@media (max-width:640px){ .studio-breakdown-body{ grid-template-columns:1fr; } }

/* ==========================================================================
   Ranked work → selected action

   The visual hierarchy follows the operating hierarchy: aggregate before
   enumerate, compare before inspect, and keep mutation beside its evidence.
   Light belongs to the selected source/record; neutral surfaces do not glow.
   ========================================================================== */
.master-caution {
  border-color:rgba(95,143,170,.38);
  background:linear-gradient(135deg,rgba(95,143,170,.055),rgba(13,16,21,.92) 45%);
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.master-caution.has-deadline-alert { box-shadow:inset 3px 0 #c86268,inset 0 1px rgba(255,255,255,.025); }
.master-caution-rows { border-top-color:rgba(95,143,170,.22); }
.master-caution-rows span { color:#8fb4c7; }
.master-caution-rows .is-overdue span { color:#f0a4aa; text-shadow:0 0 12px rgba(200,98,104,.2); }
.master-caution-copy { min-width:0; display:grid; gap:6px; }
.master-caution-copy > b { line-height:1.4; }
.master-caution-rows .master-caution-people {
  min-width:0; display:flex; align-items:center; gap:6px; flex-wrap:wrap;
  color:#aeb8c4; font:500 .78rem/1.35 var(--exec-body); letter-spacing:0;
  text-transform:none; text-shadow:none;
}
.master-caution-rows .master-caution-people-label {
  color:#aeb8c4; font:600 .78rem/1.35 var(--exec-body); letter-spacing:0;
  text-transform:none; text-shadow:none;
}
.master-caution-rows .master-caution-person {
  --person-light:#0bebe9;
  min-height:25px; display:inline-flex; align-items:center; gap:6px; padding:3px 8px;
  border:1px solid color-mix(in srgb,var(--person-light) 23%,transparent);
  border-radius:999px; background:color-mix(in srgb,var(--person-light) 7%,transparent);
  color:#c9e7e5; font:600 .78rem/1.25 var(--exec-body); letter-spacing:0;
  text-transform:none; text-shadow:none;
}
.master-caution-rows .master-caution-person::before {
  content:""; width:5px; height:5px; flex:0 0 5px; border-radius:50%;
  background:var(--person-light); box-shadow:0 0 9px color-mix(in srgb,var(--person-light) 68%,transparent);
}
.master-caution-rows .master-caution-person.is-company { --person-light:#9d5cff; }
.master-caution-rows .master-caution-person.is-more {
  --person-light:#5f8faa; color:#b8c5cf; background:rgba(95,143,170,.065);
}
.master-coverage { border-top-color:rgba(95,143,170,.2); }
.master-coverage .has-gap { background:linear-gradient(135deg,rgba(79,120,152,.075),rgba(79,120,152,.018)); }
.master-coverage .has-gap b { color:#a7d2e4; text-shadow:0 0 14px rgba(95,143,170,.18); }

.work-radar-aperture {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  margin-bottom:10px; overflow:hidden; border:1px solid #303842;
  border-radius:9px; background:#0c1014;
}
.work-radar-aperture > * {
  position:relative; min-width:0; min-height:82px; display:grid; align-content:center;
  gap:2px; padding:13px 15px; border-right:1px solid #303842; color:#dce3ea;
  text-decoration:none;
}
.work-radar-aperture > *:last-child { border-right:0; }
.work-radar-aperture > *::after {
  content:""; position:absolute; inset:auto 14px 0; height:1px;
  background:linear-gradient(90deg,#4f7898,rgba(79,120,152,0));
  box-shadow:0 0 8px rgba(95,143,170,.26);
}
.work-radar-aperture > *:first-child::after { background:linear-gradient(90deg,#4fa477,rgba(79,164,119,0)); box-shadow:0 0 9px rgba(79,164,119,.3); }
.work-radar-aperture span { color:#c5cdd6; font-size:.8rem; font-weight:700; }
.work-radar-aperture b { color:#f5f7fa; font:700 1.3rem/1 var(--font-num); }
.work-radar-aperture small { color:#9da8b4; font-size:.76rem; }
.work-radar-overflow { margin-top:8px; border:1px solid #303842; border-radius:9px; background:#0c1014; }
.work-radar-overflow > summary {
  min-height:58px; display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding:10px 15px; color:#d8e0e8; cursor:pointer;
}
.work-radar-overflow > summary span { font-weight:700; }
.work-radar-overflow > summary small { color:#9faab6; font-size:.78rem; }
.work-radar-overflow > .work-radar-rows { border:0; border-top:1px solid #303842; border-radius:0; }

.page-stack main { width:min(1580px,calc(100% - 44px)); max-width:none; }
.stack-overview {
  margin:0 0 14px; overflow:hidden; border:1px solid #303842; border-radius:14px;
  background:linear-gradient(145deg,rgba(17,22,28,.96),rgba(10,13,17,.98));
  box-shadow:inset 0 1px rgba(255,255,255,.03),0 22px 60px rgba(0,0,0,.12);
}
.stack-overview > header { display:flex; justify-content:space-between; gap:32px; padding:23px 25px 20px; }
.stack-overview h2 { margin:7px 0 6px; color:#f5f7fa; font-size:clamp(1.45rem,2.2vw,2rem); }
.stack-overview p { max-width:720px; margin:0; color:#b4bec9; font-size:.92rem; }
.stack-overview-total { min-width:170px; display:grid; align-content:center; justify-items:end; }
.stack-overview-total b { color:#a9f0d0; font:700 2.8rem/1 var(--font-num); text-shadow:0 0 22px rgba(79,164,119,.25); }
.stack-overview-total span { margin-top:5px; color:#9aa6b2; font-size:.76rem; text-transform:uppercase; letter-spacing:.1em; }
.stack-horizon { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid #303842; }
.stack-horizon a { position:relative; min-height:100px; display:grid; align-content:center; gap:2px; padding:16px 20px 20px; border-right:1px solid #303842; color:#e0e6ec; text-decoration:none; overflow:hidden; }
.stack-horizon a:last-child { border-right:0; }
.stack-horizon span { color:#c3cbd4; font-size:.8rem; font-weight:700; }
.stack-horizon b { color:#f4f6f8; font:700 1.65rem/1 var(--font-num); }
.stack-horizon small { color:#98a4b0; font-size:.76rem; }
.stack-horizon i { position:absolute; right:20px; bottom:0; left:20px; width:auto; height:2px; border-radius:2px; background:#252c34; }
.stack-horizon i::before { content:""; position:absolute; inset:0 auto 0 0; width:var(--horizon-width); border-radius:2px; background:#5f8faa; box-shadow:0 0 12px rgba(95,143,170,.5); }
.stack-horizon a:first-child i::before { background:#4fa477; box-shadow:0 0 13px rgba(79,164,119,.55); }
.stack-horizon a.has-deadline i::before { background:#c86268; box-shadow:0 0 13px rgba(200,98,104,.5); }
.stack-query { display:grid; grid-template-columns:minmax(260px,1fr) auto auto; align-items:end; gap:12px; margin:0 0 14px; }
.stack-query label,.commitment-query label { display:grid; gap:5px; }
.stack-query label span,.commitment-query label span { color:#b4bec9; font-size:.78rem; font-weight:700; }
.stack-query input,.commitment-query input { width:100%; min-height:46px; }
.stack-query > span,.stack-query > a { min-height:46px; display:flex; align-items:center; color:#aab5c1; font-size:.8rem; }
.stack-query > a { color:#88bdb4; }
.stack-workbench { display:grid; grid-template-columns:minmax(0,1fr) minmax(380px,450px); gap:14px; align-items:start; }
.stack-index,.stack-inspector { min-width:0; border:1px solid #303842; border-radius:13px; background:#0d1116; overflow:hidden; }
.stack-inspector { position:sticky; top:24px; max-height:calc(100vh - 48px); overflow:auto; scrollbar-gutter:stable; }
.stack-table th:nth-child(1) { width:74px; }.stack-table th:nth-child(2) { width:34%; }.stack-table th:nth-child(3) { width:31%; }.stack-table th:nth-child(4) { width:150px; }.stack-table th:nth-child(5) { width:122px; }
.stack-table td { color:#dfe5eb; font-size:.84rem; }
.stack-table tbody tr.is-selected { background:linear-gradient(90deg,rgba(79,164,119,.11),rgba(79,164,119,.025) 65%); box-shadow:inset 3px 0 #4fa477; }
.stack-rank-number { color:#dfe7ee; font:700 1rem var(--font-num); }
.stack-object-cell a { display:grid; gap:4px; color:#f0f3f6; text-decoration:none; }
.stack-object-cell a b { line-height:1.35; }
.stack-object-cell small,.stack-table td > small { display:block; color:#9eabb7; font-size:.76rem; }
.stack-score-beam { display:grid; gap:6px; }
.stack-score-beam i,.stack-selected-beam i { position:relative; height:3px; border-radius:3px; background:#252c34; overflow:visible; }
.stack-score-beam i::before,.stack-selected-beam i::before { content:""; position:absolute; inset:0 auto 0 0; width:var(--score-fill); border-radius:3px; background:linear-gradient(90deg,#4f7898,#5f8faa); box-shadow:0 0 9px rgba(95,143,170,.38); }
.stack-score-beam span { color:#aeb8c3; font-size:.76rem; line-height:1.35; }
.stack-state { display:block; color:#b9c3cc; font-size:.76rem; font-weight:700; text-transform:capitalize; }
.stack-state.is-overdue { color:#efa0a7; }.stack-state.is-act { color:#8bd6b4; }.stack-state.is-watch { color:#9cc5da; }
.stack-select-action { min-height:44px; display:inline-flex; align-items:center; color:#8fc9bd; font-weight:700; text-decoration:none; }
.stack-more { border-top:1px solid #303842; }
.stack-more > summary,.stack-history > summary { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:12px 18px; color:#e4e9ee; cursor:pointer; }
.stack-more > summary span,.stack-history > summary span { font-weight:700; }.stack-more > summary small,.stack-history > summary small { color:#9ca8b4; }
.stack-history { margin-top:16px; border:1px solid #303842; border-radius:12px; background:#0d1116; }
.stack-history-list article { display:flex; justify-content:space-between; gap:14px; padding:13px 17px; border-top:1px solid #2b323a; }
.stack-history-list article > div { display:grid; grid-template-columns:52px minmax(0,1fr); gap:3px 10px; }
.stack-history-list article span { grid-row:span 2; color:#8e99a5; font:700 .85rem var(--font-num); }
.stack-history-list article small { color:#98a4b0; }

.stack-generic-inspector { padding:22px; }
.stack-generic-inspector header h2 { margin:8px 0 6px; color:#f4f6f8; font-size:1.35rem; line-height:1.3; }
.stack-generic-inspector header p { margin:0; color:#aab4bf; }
.stack-selected-beam { display:grid; gap:7px; margin:18px 0; }.stack-selected-beam span { color:#aeb8c2; font-size:.78rem; }
.stack-generic-inspector dl { display:grid; margin:0; border:1px solid #303842; border-radius:9px; overflow:hidden; }
.stack-generic-inspector dl > div { padding:12px 13px; border-bottom:1px solid #303842; }.stack-generic-inspector dl > div:last-child { border-bottom:0; }
.stack-generic-inspector dt,.stack-generic-inspector section > span,.commitment-proof span,.commitment-editor-form label > span,.commitment-primary-action label > span,.commitment-duplicate-tool label > span,.commitment-destructive-tool label > span { color:#9eabb7; font-size:.76rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.stack-generic-inspector dd { margin:4px 0 0; color:#e0e6eb; line-height:1.5; }
.stack-generic-inspector section { margin-top:12px; padding:13px; border:1px solid #303842; border-radius:9px; }
.stack-generic-inspector section p { margin:7px 0 0; color:#c1cad3; }
.stack-open-source { width:100%; min-height:46px; margin-top:13px; display:flex; align-items:center; justify-content:center; text-decoration:none; }
.stack-correction-form { display:grid; gap:9px; margin-top:14px; padding-top:14px; border-top:1px solid #303842; }
.stack-correction-form label { display:grid; gap:5px; }.stack-correction-form textarea { width:100%; }
.stack-correction-form > div { display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }.stack-correction-form button { min-height:44px; }
.stack-dismiss-form { display:grid; gap:6px; margin-top:9px; }.stack-dismiss-form button { min-height:44px; }.stack-dismiss-form small { color:#98a4b0; line-height:1.45; }

/* Mobile-first, like .record-editor-form. The two panes used to declare hard
   px floors (420 + 520 + gap), so the workspace demanded ~955px inside a page
   that is routinely narrower — the ledger overflowed rather than stacked. */
.commitment-workspace { display:grid; grid-template-columns:1fr; gap:14px; align-items:start; }
@media (min-width:1000px) { .commitment-workspace { grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr); } }
.commitment-index-pane,.commitment-action-pane { min-width:0; border:1px solid #303842; border-radius:13px; background:#0d1116; overflow:hidden; }
.commitment-index-pane > header { display:flex; justify-content:space-between; gap:16px; align-items:center; padding:18px; border-bottom:1px solid #303842; }
.commitment-index-pane h2 { margin:6px 0 0; color:#f1f4f7; font-size:1.25rem; }
.commitment-query { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:10px; padding:14px 18px; border-bottom:1px solid #303842; }
.commitment-query > span { min-height:46px; display:flex; align-items:center; color:#9eabb7; font-size:.78rem; }
.commitment-index-row { display:grid; grid-template-columns:10px minmax(0,1fr) 112px; align-items:center; gap:12px; min-height:78px; padding:12px 16px; border-bottom:1px solid #2b323a; color:#e4e9ee; text-decoration:none; }
.commitment-index-row:hover { background:rgba(95,143,170,.045); }
.commitment-index-row.is-selected { background:linear-gradient(90deg,rgba(79,164,119,.12),rgba(79,164,119,.025)); box-shadow:inset 3px 0 #4fa477; }
.commitment-index-row.is-selected .signal-dot { box-shadow:0 0 13px rgba(79,164,119,.8); }
.commitment-index-row.is-overdue:not(.is-selected) { box-shadow:inset 3px 0 #c86268; }
.commitment-index-row > div { min-width:0; display:grid; gap:4px; }
.commitment-index-row b { overflow:hidden; color:#eef2f5; font-size:.9rem; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.commitment-index-row small { overflow:hidden; color:#9da9b5; font-size:.77rem; text-overflow:ellipsis; white-space:nowrap; }
.commitment-index-row > div:last-child { text-align:right; }.commitment-index-row > div:last-child span { color:#b8c3cd; font-size:.78rem; }.commitment-index-row.is-overdue > div:last-child span { color:#efa0a7; }
.commitment-index-more > summary { min-height:58px; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 16px; color:#dfe5eb; cursor:pointer; }.commitment-index-more > summary small { color:#9ca8b4; }
.commitment-action-pane { position:sticky; top:24px; max-height:calc(100vh - 48px); overflow:auto; scrollbar-gutter:stable; }

.commitment-inspector { min-width:0; }
.commitment-inspector.is-overdue { box-shadow:inset 3px 0 #c86268; }
.commitment-inspector-head { display:flex; justify-content:space-between; gap:18px; padding:22px; border-bottom:1px solid #303842; background:radial-gradient(circle at 8% 0,rgba(79,164,119,.09),transparent 34%); }
.commitment-inspector-head h2 { margin:8px 0 7px; color:#f5f7fa; font-size:1.35rem; line-height:1.3; }.commitment-inspector-head p { margin:0; color:#abb6c1; }
.commitment-overdue { height:max-content; padding:5px 8px; border:1px solid rgba(200,98,104,.5); border-radius:999px; color:#efa0a7; font-size:.75rem; font-weight:700; }
.commitment-proof { display:grid; grid-template-columns:1fr 1fr; gap:1px; padding:1px 0; background:#303842; }
.commitment-proof > div { min-width:0; padding:14px 16px; background:#0d1116; }.commitment-proof > .is-source,.commitment-proof > .is-receipt { grid-column:1/-1; }
.commitment-proof p { margin:5px 0 0; color:#dce3e9; line-height:1.48; }
.commitment-proof blockquote { margin:7px 0 5px; padding:10px 12px; border-left:2px solid #528f91; background:rgba(82,143,145,.05); color:#ccd5dd; line-height:1.5; }
.commitment-proof small { color:#99a5b1; line-height:1.45; }
.commitment-primary-action { display:grid; gap:10px; padding:16px; border-top:1px solid #303842; border-bottom:1px solid #303842; background:linear-gradient(90deg,rgba(79,164,119,.055),rgba(79,164,119,.01)); }
.commitment-primary-action label { display:grid; gap:5px; }.commitment-primary-action input { width:100%; }.commitment-primary-action > div { display:grid; grid-template-columns:1.25fr .8fr .8fr; gap:7px; }.commitment-primary-action button { min-height:44px; }
.commitment-inspector-tools { display:grid; gap:8px; padding:14px; }.commitment-inspector-tools > a { min-height:44px; display:flex; align-items:center; color:#8fc8bd; }
.commitment-inspector-tools > details { border:1px solid #303842; border-radius:9px; background:#101419; }
.commitment-inspector-tools > details > summary { min-height:50px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 13px; color:#e2e7ec; cursor:pointer; font-weight:700; }.commitment-inspector-tools > details > summary span { color:#9eabb7; font-size:.76rem; font-weight:500; }
/* One column by default; a second only once there is room for it. The old
   hard 1fr 1fr lived inside a pane that is often ~300px wide, which crushed
   every label and select in the correction form. */
.commitment-editor-form { display:grid; grid-template-columns:1fr; gap:10px; padding:0 13px 13px; }
@media (min-width:721px) { .commitment-editor-form { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.commitment-editor-form label,.commitment-duplicate-tool label,.commitment-destructive-tool label { min-width:0; display:grid; gap:5px; }.commitment-editor-form .is-wide { grid-column:1/-1; }.commitment-editor-form :is(input,select,textarea),.commitment-duplicate-tool :is(input,select),.commitment-destructive-tool input { width:100%; min-width:0; }
.commitment-editor-form footer { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:14px; }.commitment-editor-form footer small,.commitment-duplicate-tool > small,.commitment-destructive-tool > small { color:#9ba7b3; line-height:1.45; }.commitment-editor-form footer button { min-height:44px; }
.commitment-duplicate-tool > form,.commitment-destructive-tool > div { display:grid; gap:9px; padding:0 13px 10px; }.commitment-duplicate-tool > form button,.commitment-destructive-tool button { min-height:44px; }.commitment-duplicate-tool > p,.commitment-duplicate-tool > small,.commitment-destructive-tool > small { display:block; margin:0; padding:0 13px 13px; }
.commitment-destructive-tool > div > form { display:grid; gap:7px; }.commitment-destructive-tool > div > form + form { padding-top:9px; border-top:1px solid #303842; }

/* Today legibility floor. These selectors deliberately exclude the locked
   Triage Flow instrument: its typography and geometry remain byte-for-byte
   under the dedicated today-flow stylesheet. */
.judgment-hero-eyebrow,.judgment-freshness a,
.master-caution-rows span,
.today-sentinel-grid article > span,.today-sentinel-grid article > div b,
.today-sentinel-grid article footer b,
.today-sentinel-census a span,
.today-monitor-strip > b,.today-monitor-strip a span,
.intelligence-delta-card header > span,.intelligence-delta-card header > b,
.intelligence-source-strip span,
.custody-strip section span,
.shift-changes > div span,
.work-radar-census span,
.work-radar-lane header h3 span,
.work-radar-flags span,
.work-radar-actions :is(a,summary,label,button),
.work-radar-actions a span {
  font-size:.75rem;
}
.master-caution :is(p,small),.today-sentinel :is(p,small),
.shift-changes :is(p,small),.work-radar :is(p,small),
.work-radar-copy :is(p,small),.work-radar-overflow small {
  color:#aeb8c4;
}

@media (max-width:1180px) {
  .stack-workbench,.commitment-workspace { grid-template-columns:1fr; }
  .stack-inspector,.commitment-action-pane { position:static; max-height:none; }
}
@media (max-width:760px) {
  .page-stack main { width:100%; padding-inline:12px; }
  .stack-overview > header { display:grid; padding:18px 16px; }.stack-overview-total { justify-items:start; }
  .stack-horizon,.work-radar-aperture { grid-template-columns:1fr 1fr; }
  .stack-horizon a:nth-child(2),.work-radar-aperture > *:nth-child(2) { border-right:0; }.stack-horizon a:nth-child(-n+2),.work-radar-aperture > *:nth-child(-n+2) { border-bottom:1px solid #303842; }
  .stack-query { grid-template-columns:1fr auto; }.stack-query > a { grid-column:1/-1; min-height:32px; }
  .page-stack table.stack-table,.page-stack table.stack-table tbody { display:block; width:100%; }
  .page-stack table.stack-table thead { display:none; }
  .page-stack table.stack-table tr { display:grid; grid-template-columns:48px minmax(0,1fr); gap:6px 10px; padding:12px; border-bottom:1px solid #303842; }
  .page-stack table.stack-table td { display:block; min-height:0; max-width:none; padding:0; border:0; }
  .page-stack table.stack-table td:nth-child(3),.page-stack table.stack-table td:nth-child(4),.page-stack table.stack-table td:nth-child(5) { grid-column:2; }
  .stack-score-beam span { display:none; }.stack-select-action { min-height:40px; }
  .stack-correction-form > div,.commitment-primary-action > div { grid-template-columns:1fr; }
  .commitment-workspace { display:flex; flex-direction:column; }.commitment-index-pane,.commitment-action-pane { width:100%; }
  .commitment-action-pane { order:-1; }
  .commitment-index-row { grid-template-columns:9px minmax(0,1fr); }.commitment-index-row > div:last-child { grid-column:2; display:flex; justify-content:space-between; text-align:left; }
  .commitment-editor-form { grid-template-columns:1fr; }.commitment-editor-form .is-wide,.commitment-editor-form footer { grid-column:auto; }.commitment-editor-form footer { display:grid; }
  .commitment-proof { grid-template-columns:1fr; }.commitment-proof > .is-source,.commitment-proof > .is-receipt { grid-column:auto; }
}
@media (max-width:520px) {
  .stack-horizon,.work-radar-aperture { grid-template-columns:1fr; }.stack-horizon a,.work-radar-aperture > * { border-right:0; border-bottom:1px solid #303842; }.stack-horizon a:last-child,.work-radar-aperture > *:last-child { border-bottom:0; }
  .stack-query { grid-template-columns:1fr; }.stack-query > span { min-height:30px; }.stack-query > a { grid-column:auto; }
  .commitment-inspector-head { display:grid; padding:18px 15px; }.commitment-overdue { width:max-content; }
  .commitment-inspector-tools { padding:10px; }.commitment-query { grid-template-columns:1fr; }.commitment-query > span { min-height:28px; }
}
@media (forced-colors:active) {
  .master-caution-rows .master-caution-person { border:1px solid CanvasText; background:Canvas; color:CanvasText; }
  .master-caution-rows .master-caution-person::before { background:CanvasText; box-shadow:none; }
}

/* -------------------------------------------------------------------------
   Today operating model — capability-first LUMEN repair

   These rules deliberately strengthen hierarchy and operability without
   turning the page into a generic neon dashboard. Observed state emits the
   light; containers remain matte, quiet, and well-spaced. */
.judgment-shell { --text-secondary:#b5bec8; padding-inline:max(24px,2vw); }
.judgment-shell :is(p,small) { text-wrap:pretty; }

.shift-totals {
  position:relative; gap:0; min-height:106px; margin-bottom:24px;
  border-color:#3a4651; background:linear-gradient(110deg,#11171d,#0b0f13 72%);
  box-shadow:0 20px 54px -42px rgba(50,120,255,.48),inset 0 1px rgba(255,255,255,.035);
}
.shift-totals a { --shift-light:#61d6b0; position:relative; min-height:106px; padding:20px 18px 16px; overflow:hidden; }
.shift-totals a:nth-child(2) { --shift-light:#65a1ff; }
.shift-totals a:nth-child(3) { --shift-light:#a88aff; }
.shift-totals a:nth-child(4) { --shift-light:#e7bd55; }
.shift-totals a:nth-child(5) { --shift-light:#57d9df; }
.shift-totals a::before { content:""; position:absolute; inset:0 auto auto 18px; width:36%; height:2px; background:linear-gradient(90deg,var(--shift-light),transparent); box-shadow:0 0 10px color-mix(in srgb,var(--shift-light) 70%,transparent); }
.shift-totals a::after { content:""; position:absolute; width:72px; height:72px; right:-24px; top:-30px; border:1px solid color-mix(in srgb,var(--shift-light) 18%,transparent); border-radius:50%; box-shadow:0 0 34px color-mix(in srgb,var(--shift-light) 7%,transparent); }
.shift-totals b { color:var(--shift-light); font-size:1.75rem; text-shadow:0 0 18px color-mix(in srgb,var(--shift-light) 34%,transparent); }
.shift-totals span { color:#eef2f5; font-size:.875rem; }
.shift-totals small { color:#b2bdc7; font-size:.78rem; }

.today-sentinel { border-color:#394550; background:linear-gradient(150deg,#11171c,#0b0f13 62%); }
.today-exception-desk { border-top-color:#394550; }
.today-exception-row { grid-template-columns:92px minmax(0,1fr) 340px; min-height:214px; border-bottom-color:#38434d; background:#0c1115; }
.today-exception-row + .today-exception-row { box-shadow:inset 0 1px rgba(255,255,255,.025); }
.today-exception-rank { position:relative; align-content:center; gap:3px; background:linear-gradient(180deg,color-mix(in srgb,var(--exception-light) 6%,#0c1115),#0a0f13); }
.today-exception-rank::after { content:""; position:absolute; right:0; bottom:18px; left:18px; height:3px; background:linear-gradient(90deg,var(--exception-light) 0 78%,#28313a 78%); box-shadow:0 0 10px color-mix(in srgb,var(--exception-light) 38%,transparent); }
.today-exception-rank b { color:#baf3dc; font-size:2rem; text-shadow:0 0 20px rgba(82,237,171,.34); }
.today-exception-core { padding:24px 24px 22px; }
.today-exception-core > span { color:#83cebd; }
.today-exception-core h3 { margin:9px 0 18px; font-size:1.15rem; }
.today-exception-context-line { display:flex; flex-wrap:wrap; gap:6px 12px; margin:-7px 0 15px; color:#b8c3cc; font-size:.76rem; }
.today-exception-context-line b { color:#dff9ef; }
.today-exception-context-line small { color:#95a2ad; }
.today-exception-record-context > div { display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.today-exception-record-context b { padding:6px 9px; border:1px solid #34414a; border-radius:999px; color:#d6e2e7; background:#11171c; font-size:.75rem; }
.today-exception-probe { padding:24px 22px; background:linear-gradient(165deg,rgba(82,237,171,.035),transparent 68%); }
.today-exception-actions > button { width:calc(100% - 30px); margin:0 15px 14px; min-height:46px; border-color:rgba(82,237,171,.34); color:#d8fff0; background:rgba(82,237,171,.06); font-weight:700; }

.today-monitor-strip { grid-template-columns:190px repeat(3,minmax(0,1fr)); margin-top:18px; border-color:#3a4650; border-radius:12px; }
.today-monitor-strip > b { position:relative; padding:18px; color:#bbcad2; font-size:.75rem; }
.today-monitor-strip > b::after { content:""; position:absolute; right:18px; bottom:14px; left:18px; height:2px; background:linear-gradient(90deg,#55d4ae,transparent); box-shadow:0 0 8px rgba(85,212,174,.5); }
.today-monitor-strip a { min-height:92px; align-content:center; gap:7px; padding:15px 17px; }
.today-monitor-strip span { color:#f0f3f5; font-size:.82rem; }
.today-monitor-strip small { color:#aeb9c3; font-size:.76rem; }
.today-sentinel-census { gap:8px; margin-top:14px; padding:10px 0 0; border-top:0; }
.today-sentinel-census a { position:relative; min-height:76px; padding:13px 15px; border:1px solid #35404a; border-radius:9px; background:#0b1014; }
.today-sentinel-census a::before { content:""; position:absolute; inset:0 auto 0 0; width:2px; background:#63d7b4; box-shadow:0 0 9px rgba(99,215,180,.52); }
.today-sentinel-census b { color:#b9f2dc; font-size:1.45rem; }
.today-sentinel-census span { color:#c5ced6; font-size:.8rem; }

.intelligence-delta { padding:28px; border:1px solid #35434a; border-radius:16px; background:radial-gradient(80% 70% at 0 0,rgba(22,224,223,.045),transparent 58%),#0b1014; }
.intelligence-delta > header { margin-bottom:20px; }
.intelligence-delta > header h2 { font-size:clamp(1.5rem,2.4vw,2.15rem); }
.intelligence-hypothesis-bench { grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr); align-items:start; gap:16px; }
.intelligence-hypothesis-bench .intelligence-delta-card { align-self:start; }
.intelligence-delta-card.is-primary-read { min-height:0; padding:28px; }
.intelligence-delta-card.is-primary-read h3 { font-size:clamp(1.05rem,1.5vw,1.32rem); line-height:1.42; }
.intelligence-alternate-stack { align-self:start; }
.intelligence-delta-card.is-alternate-read { padding:20px; }
.intelligence-confidence-source { min-width:168px; }

.judgment-section-heading { margin-top:30px; padding:18px 20px; border:1px solid #35414b; border-radius:12px; background:linear-gradient(105deg,rgba(82,237,171,.045),#0c1115 54%); }
.judgment-section-heading h2 { font-size:1.35rem; }
.judgment-item { border-color:#3a4650; border-radius:13px; background:linear-gradient(145deg,#12181d,#0c1115); }
.judgment-item.is-primary { box-shadow:0 18px 54px -42px rgba(82,237,171,.52),inset 0 1px rgba(255,255,255,.035); }
.judgment-actions > .record-editor-trigger { border-color:rgba(82,237,171,.36); color:#d6fff0; background:rgba(82,237,171,.055); }

.judgment-rail { gap:16px; margin-block:28px; }
.judgment-rail > section { padding:24px; border-radius:14px; }
.judgment-rail h2 { font-size:1.08rem; }
.judgment-rail-row { min-height:86px; justify-content:center; padding:14px 0; }
.judgment-rail-row b { color:#edf1f4; font-size:.9rem; }
.judgment-rail-row small,.judgment-rail-row span,.judgment-rail-intro { color:#b3bdc7; font-size:.78rem; }
.judgment-rail-gap > .record-editor-trigger { margin-top:7px; color:#dff8ef; border-color:rgba(82,237,171,.3); background:rgba(82,237,171,.045); }

.work-radar { margin:34px 0 0; padding:28px; border:1px solid #35414b; border-radius:16px; background:linear-gradient(155deg,#10161b,#090d11 68%); box-shadow:0 28px 72px -58px rgba(73,144,192,.45); }
.work-radar-heading { margin-bottom:18px; }
.work-radar-heading h2 { font-size:1.45rem; }
.work-radar-heading nav { display:flex; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.work-radar-heading nav :is(a,button) { min-height:44px; display:inline-flex; align-items:center; padding:8px 11px; color:#a9ddd1; border:1px solid transparent; background:transparent; font-size:.84rem; }
.work-radar-heading nav button { border-color:rgba(82,237,171,.35); border-radius:8px; background:rgba(82,237,171,.055); }
.work-radar-census { gap:8px; padding:8px; border:1px solid #3a4651; border-radius:13px; background:#090e12; }
.work-radar-census a { --radar-light:#65d7b5; position:relative; min-height:104px; padding:18px 14px 14px; border:1px solid #303b45 !important; border-radius:9px; background:linear-gradient(160deg,color-mix(in srgb,var(--radar-light) 3%,#11161b),#0c1115); overflow:hidden; }
.work-radar-census a:nth-child(2) { --radar-light:#f0c44f; }
.work-radar-census a:nth-child(3) { --radar-light:#ff7181; }
.work-radar-census a:nth-child(4) { --radar-light:#efb44c; }
.work-radar-census a:nth-child(5) { --radar-light:#6f9fff; }
.work-radar-census a:nth-child(6) { --radar-light:#a887ff; }
.work-radar-census a:nth-child(7) { --radar-light:#aab3bd; }
.work-radar-census a:nth-child(8) { --radar-light:#38d7dc; }
.work-radar-census a::after { content:""; position:absolute; right:14px; bottom:13px; left:14px; height:2px; background:linear-gradient(90deg,var(--radar-light),transparent 72%); box-shadow:0 0 8px color-mix(in srgb,var(--radar-light) 42%,transparent); }
.work-radar-census b { color:var(--radar-light); font-size:1.6rem; text-shadow:0 0 16px color-mix(in srgb,var(--radar-light) 28%,transparent); }
.work-radar-census span { color:#eef2f4; font-size:.82rem; }
.work-radar-census small { color:#b3bdc7; font-size:.75rem; }
.work-radar-lane { margin-top:18px; overflow:hidden; border:1px solid #35404a; border-radius:12px; background:#0a0f13; }
.work-radar-lane > header { padding:18px 20px 13px; }
.work-radar-aperture { margin:0 16px 14px; border-radius:9px; overflow:hidden; }
.work-radar-rows { border-inline:0; }
.work-radar-row { min-height:112px; }
.work-radar-disposition { display:grid; gap:4px; margin-top:10px; padding:10px 12px; border-left:2px solid #8e99a5; background:#11171c; }
.work-radar-disposition b { color:#e2e7eb; font-size:.78rem; }
.work-radar-disposition span,.work-radar-disposition small { color:#abb6c0; font-size:.74rem; }
.signal-reservoir { margin-top:18px; border:1px solid #35404a; border-radius:12px; }

.today-record-dialog { width:min(980px,calc(100vw - 32px)); }
.today-record-shell { max-height:min(92dvh,940px); }
.today-record-body { grid-template-columns:1fr; gap:18px; padding:24px; }
.today-record-head { padding:24px 26px 21px; }
.today-record-context { gap:14px; }
.today-record-linked-context { overflow:hidden; border:1px solid #34404a; border-radius:11px; background:#0b1014; }
.today-record-linked-context > header { display:flex; justify-content:space-between; gap:16px; padding:12px 15px; border-bottom:1px solid #303b45; }
.today-record-linked-context > header span { color:#d9f8ef; font-size:.78rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.today-record-linked-context > header small { color:#aeb9c3; font-size:.75rem; }
.today-record-linked-context > div { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.today-record-linked-context > div > * { min-width:0; display:grid; gap:4px; padding:13px 15px; border-right:1px solid #303b45; color:#dfe6eb; text-decoration:none; }
.today-record-linked-context > div > *:last-child { border-right:0; }
.today-record-linked-context span { color:#95a3af; font-size:.7rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase; }
.today-record-linked-context b { overflow:hidden; color:#edf3f4; font-size:.84rem; text-overflow:ellipsis; white-space:nowrap; }
.today-record-workbench { overflow:visible; }
.today-record-edit-grid { display:grid; grid-template-columns:1fr; gap:10px; }
@media (min-width:721px) { .today-record-edit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.today-record-edit [data-inspector-edit-form] { padding:16px; }
.today-record-edit [data-inspector-edit-form][hidden] { display:none; }
.today-record-continuation { padding-inline:26px; }

.today-flow-register[open] > summary { position:fixed; top:max(34px,calc(8dvh + 10px)); right:max(38px,calc(8vw + 10px)); z-index:82; padding:0 12px; border:1px solid #3a4650; border-radius:8px; background:#11171c; }

@media (max-width:1100px) {
  .work-radar-census { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .judgment-rail { grid-template-columns:1fr 1fr; }
  .judgment-rail > section:last-child { grid-column:1/-1; }
}

@media (max-width:760px) {
  .judgment-shell { padding-inline:16px; }
  .shift-totals a { min-height:92px; padding:16px 14px 13px; }
  .today-exception-row { grid-template-columns:62px minmax(0,1fr); min-height:0; }
  .today-exception-probe { grid-column:1/-1; }
  .today-monitor-strip { grid-template-columns:1fr; }
  .today-sentinel-census { grid-template-columns:1fr 1fr; }
  .intelligence-delta { padding:20px 16px; }
  .intelligence-hypothesis-bench { grid-template-columns:1fr; }
  .intelligence-confidence-source { min-width:126px; }
  .judgment-section-heading { align-items:flex-start; display:grid; padding:17px 15px; }
  .judgment-rail { grid-template-columns:1fr; }
  .judgment-rail > section:last-child { grid-column:auto; }
  .work-radar { margin-inline:0; padding:18px 14px; }
  .work-radar-heading { align-items:flex-start; display:grid; }
  .work-radar-heading nav { justify-content:flex-start; }
  .work-radar-census { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .work-radar-census a { min-height:96px; }
  .work-radar-lane > header { padding-inline:15px; }
  .work-radar-aperture { margin-inline:10px; }
  .today-record-dialog { inset:auto 6px max(6px,env(safe-area-inset-bottom)) 6px; width:auto; max-height:calc(100dvh - 12px); margin:0; border-radius:18px 18px 10px 10px; }
  .today-record-shell { max-height:calc(100dvh - 12px); }
  .today-record-head { padding:17px 15px 15px; }
  .today-record-body { padding:15px; }
  .today-record-linked-context > div { grid-template-columns:1fr 1fr; }
  .today-record-linked-context > div > *:nth-child(2) { border-right:0; }
  .today-record-linked-context > div > *:nth-child(-n+2) { border-bottom:1px solid #303b45; }
  .today-record-edit-grid { grid-template-columns:1fr; }
  .today-record-continuation { padding-inline:15px; }
}

/* Today record inspection -------------------------------------------------
   Selection opens a substantial in-context work surface before navigation.
   The luminous filament identifies the selected evidence source; neutral
   controls and surrounding surfaces remain quiet. */
.master-coverage button {
  width:max-content; min-height:44px; margin:2px 0 -5px; padding:0;
  border:0; background:transparent; color:#86c8b8; text-align:left;
  font:600 .8rem/1.35 var(--exec-body); cursor:pointer;
}
.master-coverage button:hover,.master-coverage button:focus-visible { color:#b9f4df; text-decoration:underline; }
.work-radar-actions :is(a,button) { min-height:44px; }

.today-coverage-dialog { width:min(780px,calc(100vw - 32px)); }
.today-coverage-dialog .record-editor-close,.today-intelligence-dialog .record-editor-close {
  flex-basis:auto; width:auto; min-width:68px; padding-inline:12px; font-size:.8rem;
}
.today-coverage-body { display:grid; gap:16px; }
.today-coverage-records { display:grid; overflow:hidden; border:1px solid #33404b; border-radius:11px; background:#0b0f13; }
.today-coverage-records > a {
  display:grid; grid-template-columns:112px minmax(0,1fr) auto; gap:13px;
  align-items:center; min-height:58px; padding:9px 13px; border-bottom:1px solid #2e3741;
  color:#eef2f5; text-decoration:none;
}
.today-coverage-records > a:last-child { border-bottom:0; }
.today-coverage-records > a:hover,.today-coverage-records > a:focus-visible { background:rgba(70,183,185,.07); }
.today-coverage-records > a span { color:#9cc6d8; font:700 .75rem/1.3 var(--exec-data); text-transform:uppercase; }
.today-coverage-records > a span.is-overdue { color:#ff9ba4; text-shadow:0 0 12px rgba(255,92,107,.24); }
.today-coverage-records > a b { min-width:0; font-size:.9rem; line-height:1.4; }
.today-coverage-records > a small { color:#9bd8c9; font-size:.75rem; white-space:nowrap; }
.today-coverage-records > p,.today-coverage-remainder { margin:0; padding:16px; color:#bec7d0; }
.today-coverage-footer,.today-inspector-continuation {
  display:flex; align-items:center; justify-content:space-between; gap:18px;
  padding-top:14px; border-top:1px solid #303b45;
}
.today-coverage-footer span,.today-inspector-continuation span { color:#aeb9c4; font-size:.8rem; line-height:1.45; }
.today-coverage-footer a,.today-inspector-continuation a { min-height:44px; display:inline-flex; align-items:center; color:#8ee0ca; white-space:nowrap; }

.today-record-dialog {
  --record-light:#16e0df;
  position:fixed; inset:0; width:min(920px,calc(100vw - 32px));
  max-height:min(90dvh,900px); margin:auto; padding:0; overflow:hidden;
  color:#f3f6f8; border:1px solid color-mix(in srgb,var(--record-light) 30%,#35404a);
  border-radius:18px; background:#0a0e12;
  box-shadow:0 34px 110px rgba(0,0,0,.78),0 0 44px color-mix(in srgb,var(--record-light) 8%,transparent);
}
.today-record-dialog[data-tone="mint"] { --record-light:#52edab; }
.today-record-dialog[data-tone="iris"] { --record-light:#a56cff; }
.today-record-dialog[data-tone="danger"] { --record-light:#ff6675; }
.today-record-dialog::backdrop { background:rgba(1,4,7,.82); backdrop-filter:blur(8px); }
.today-record-shell { display:grid; grid-template-rows:auto minmax(0,1fr) auto; max-height:min(90dvh,900px); }
.today-record-head {
  position:relative; display:grid; grid-template-columns:155px minmax(0,1fr) auto;
  gap:20px; align-items:start; padding:22px 24px 20px; overflow:hidden;
  border-bottom:1px solid #303b45;
  background:linear-gradient(118deg,color-mix(in srgb,var(--record-light) 7%,#0d1217),#0a0e12 48%);
}
.today-record-head::after {
  content:""; position:absolute; inset:auto 24px 0 24px; height:1px;
  background:linear-gradient(90deg,var(--record-light),color-mix(in srgb,var(--record-light) 22%,transparent) 38%,transparent 76%);
  box-shadow:0 0 14px color-mix(in srgb,var(--record-light) 58%,transparent);
}
.today-record-source { display:grid; grid-template-columns:auto minmax(16px,1fr); gap:6px 8px; align-items:center; min-width:0; padding-top:5px; }
.today-record-source > span { color:var(--record-light); font:750 .75rem/1.3 var(--exec-body); text-transform:uppercase; letter-spacing:.1em; }
.today-record-source > i {
  position:relative; height:1px; background:linear-gradient(90deg,var(--record-light),transparent);
  box-shadow:0 0 9px color-mix(in srgb,var(--record-light) 70%,transparent);
}
.today-record-source > i::before {
  content:""; position:absolute; left:-1px; top:50%; width:7px; height:7px; border-radius:50%;
  background:var(--record-light); transform:translateY(-50%);
  box-shadow:0 0 6px var(--record-light),0 0 18px color-mix(in srgb,var(--record-light) 72%,transparent);
}
.today-record-source > small { grid-column:1/-1; color:#b8c3cd; font-size:.75rem; line-height:1.4; overflow-wrap:anywhere; }
.today-record-heading { min-width:0; }
.today-record-heading h2 { margin:4px 0 6px; color:#f7f8f9; font-size:clamp(1.25rem,2.5vw,1.8rem); line-height:1.18; }
.today-record-heading p { max-width:680px; margin:0; color:#c2cbd4; font-size:.9rem; line-height:1.5; }
.today-record-close { min-width:72px; min-height:44px; color:#d8e0e6; border-color:#3a4651; background:#11171c; }
.today-record-body { display:grid; gap:16px; overflow:auto; padding:20px 24px 24px; overscroll-behavior:contain; }
.today-record-observation { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:hidden; border:1px solid #303b45; border-radius:11px; background:#0c1116; }
.today-record-observation > div { display:grid; gap:5px; padding:13px 15px; border-right:1px solid #303b45; }
.today-record-observation > div:last-child { border-right:0; }
.today-record-observation span,.today-record-evidence > span,.today-record-move > span,.today-record-relationship > span,.today-intelligence-inspector section > span {
  color:#aebac5; font:700 .75rem/1.35 var(--exec-body); text-transform:uppercase; letter-spacing:.07em;
}
.today-record-observation b { color:#f1f4f6; font-size:.86rem; line-height:1.35; text-transform:capitalize; }
.today-record-relationship { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:12px 14px; border-left:2px solid var(--record-light); background:color-mix(in srgb,var(--record-light) 5%,#0c1116); }
.today-record-relationship > div { display:flex; flex-wrap:wrap; gap:6px; }
.today-record-relationship b,.today-record-relationship small {
  display:inline-flex; align-items:center; min-height:28px; padding:4px 9px; border:1px solid color-mix(in srgb,var(--record-light) 28%,transparent);
  border-radius:999px; color:#daf8ee; background:color-mix(in srgb,var(--record-light) 7%,transparent); font-size:.78rem;
}
.today-record-evidence-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:12px; }
.today-record-evidence { min-width:0; padding:15px 16px; border:1px solid #303b45; border-radius:11px; background:#0c1116; }
.today-record-evidence:first-child { border-top-color:color-mix(in srgb,var(--record-light) 52%,#303b45); }
.today-record-evidence blockquote { margin:11px 0 8px; padding:10px 12px; border-left:2px solid var(--record-light); color:#edf2f3; background:color-mix(in srgb,var(--record-light) 5%,#090d11); font-size:.9rem; line-height:1.5; }
.today-record-evidence ul,.today-intelligence-inspector ul { display:grid; gap:7px; margin:10px 0 0; padding-left:18px; color:#c8d0d7; font-size:.84rem; line-height:1.5; }
.today-record-move { display:grid; gap:5px; padding:14px 16px; border:1px solid color-mix(in srgb,var(--record-light) 26%,#303b45); border-radius:11px; background:linear-gradient(120deg,color-mix(in srgb,var(--record-light) 6%,#0d1217),#0b1014); }
.today-record-move p { margin:0; color:#f2f5f6; font-weight:650; line-height:1.45; }
.today-record-move small { color:#b6c0c9; font-size:.8rem; line-height:1.45; }
.today-record-actions { overflow:hidden; border:1px solid #34404a; border-radius:11px; background:#0c1116; }
.today-record-actions > header { display:flex; justify-content:space-between; gap:18px; padding:14px 16px; border-bottom:1px solid #303b45; }
.today-record-actions h3 { margin:3px 0 0; color:#f1f4f6; font-size:1rem; }
.today-record-actions > header > small { max-width:220px; color:#aeb9c3; font-size:.75rem; line-height:1.4; text-align:right; }
.today-record-status-form,.today-record-actions > form:not(.record-editor-form),.today-record-classification-note { display:grid; gap:10px; padding:14px 16px; }
.today-record-actions label { display:grid; gap:6px; color:#b9c3cc; font-size:.78rem; font-weight:650; }
.today-record-actions :is(input,select,textarea) { width:100%; min-width:0; color:#f0f3f5; font-size:1rem; }
.today-record-status-form > div,.today-record-actions > form > div,.today-record-action-row { display:flex; flex-wrap:wrap; gap:8px; }
.today-record-status-form button,.today-record-actions > form button,.today-record-action-row button { min-height:44px; }
.today-record-actions > details { border-top:1px solid #303b45; }
.today-record-actions > details > summary { min-height:48px; display:flex; align-items:center; padding:0 16px; color:#bce4d9; cursor:pointer; font-size:.82rem; font-weight:700; }
.today-record-custody-form { padding:4px 16px 16px; }
.today-record-classification-note { padding-bottom:0; }
.today-record-action-row { padding:0 16px 16px; }
.today-record-remove { border:1px solid #3b3439; border-radius:11px; background:#0c1014; }
.today-record-remove > summary { min-height:48px; display:flex; align-items:center; padding:0 16px; color:#c9b8bd; cursor:pointer; font-size:.8rem; font-weight:700; }
.today-record-remove > div { padding:0 16px 16px; }
.today-record-remove p { margin:0 0 10px; color:#b9bfc6; font-size:.8rem; line-height:1.45; }
.today-record-remove button { min-height:44px; }
.today-record-continuation { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:20px; padding:13px 24px max(13px,env(safe-area-inset-bottom)); border-top:1px solid #303b45; background:#0b1014; }
.today-record-continuation > a { min-height:44px; display:inline-flex; align-items:center; color:#b7c7d4; }
.today-record-continuation > div { display:flex; align-items:center; justify-content:flex-end; gap:14px; }
.today-record-continuation span { color:#aeb9c3; font-size:.78rem; }
.today-record-continuation [data-inspector-full-link] { min-height:44px; display:inline-flex; align-items:center; color:var(--record-light); font-weight:700; white-space:nowrap; }

.intelligence-inspect-trigger { min-height:44px; color:#b8eadc; border-color:rgba(79,164,119,.45); background:rgba(79,164,119,.055); }
.today-intelligence-dialog { width:min(780px,calc(100vw - 32px)); }
.today-intelligence-inspector { display:grid; gap:12px; }
.today-intelligence-inspector > section { padding:14px 15px; border:1px solid #303b45; border-radius:10px; background:#0c1116; }
.today-intelligence-inspector section p { margin:6px 0 0; color:#d0d7dd; line-height:1.5; }
.today-intelligence-sources > div { display:flex; flex-wrap:wrap; gap:7px; margin-top:9px; }
.today-intelligence-sources b { padding:5px 9px; border:1px solid rgba(22,224,223,.28); border-radius:999px; color:#b9f4ef; background:rgba(22,224,223,.055); font-size:.78rem; text-transform:capitalize; }
.today-intelligence-feedback { display:grid; gap:10px; padding:15px; border:1px solid rgba(82,143,145,.42); border-radius:10px; background:rgba(82,143,145,.045); }
.today-intelligence-feedback label { display:grid; gap:6px; color:#bdc8d1; font-size:.78rem; font-weight:650; }
.today-intelligence-feedback textarea { width:100%; min-width:0; color:#f0f3f5; font-size:1rem; }
.today-intelligence-feedback > div { display:flex; flex-wrap:wrap; gap:8px; }
.today-intelligence-feedback button { min-height:44px; }

@media (max-width:700px) {
  html:has(.today-record-dialog[open]),
  html:has(.today-coverage-dialog[open]),
  html:has(.today-intelligence-dialog[open]) { overflow:hidden; }
  .today-record-dialog {
    inset:auto 6px max(6px,env(safe-area-inset-bottom)) 6px; width:auto;
    max-height:calc(100dvh - max(12px,env(safe-area-inset-top)) - max(6px,env(safe-area-inset-bottom)));
    margin:0; border-radius:18px 18px 10px 10px;
  }
  .today-record-shell { max-height:inherit; }
  .today-record-head { grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:17px 15px 15px; }
  .today-record-source { grid-column:1/-1; grid-template-columns:auto minmax(22px,110px) minmax(0,1fr); padding:0; }
  .today-record-source > small { grid-column:auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .today-record-heading h2 { font-size:1.28rem; }
  .today-record-heading p { font-size:.88rem; }
  .today-record-close { min-width:64px; }
  .today-record-body { gap:13px; padding:15px; }
  .today-record-observation { grid-template-columns:1fr 1fr; }
  .today-record-observation > div:nth-child(2) { border-right:0; }
  .today-record-observation > div:nth-child(-n+2) { border-bottom:1px solid #303b45; }
  .today-record-evidence-grid { grid-template-columns:1fr; }
  .today-record-actions > header { display:grid; gap:5px; }
  .today-record-actions > header > small { max-width:none; text-align:left; }
  .today-record-status-form > div,.today-record-actions > form > div,.today-record-action-row { display:grid; grid-template-columns:1fr; }
  .today-record-actions :is(input,select,textarea) { min-height:44px; }
  .today-record-status-form button,.today-record-actions > form button,.today-record-action-row button { width:100%; }
  .today-record-continuation { position:sticky; bottom:0; grid-template-columns:1fr; gap:4px; padding:8px 15px max(8px,env(safe-area-inset-bottom)); }
  .today-record-continuation > a { min-height:44px; }
  .today-record-continuation > div { justify-content:space-between; gap:10px; }
  .today-record-continuation > div span { max-width:48%; line-height:1.35; }
  .today-coverage-dialog,.today-intelligence-dialog {
    position:fixed; inset:auto 6px max(6px,env(safe-area-inset-bottom)) 6px;
    width:auto; max-height:calc(100dvh - 12px); margin:0; border-radius:18px 18px 10px 10px;
  }
  .today-coverage-records > a { grid-template-columns:94px minmax(0,1fr); gap:5px 10px; }
  .today-coverage-records > a small { grid-column:2; }
  .today-coverage-footer,.today-inspector-continuation { align-items:stretch; flex-direction:column; }
  .today-coverage-footer a,.today-inspector-continuation a { white-space:normal; }
  .today-intelligence-feedback > div { display:grid; grid-template-columns:1fr 1fr; }
}

@media (forced-colors:active) {
  .today-record-source > i,.today-record-source > i::before,.today-record-head::after { background:CanvasText; box-shadow:none; }
  .today-record-relationship,.today-record-evidence:first-child,.today-record-move { border-color:CanvasText; }
}

/* ========================================================================
   Today operating instruments — Lumen focal hierarchy

   Light is emitted by exact evidence, selection, and an actionable state.
   Neutral matter carries structure. These rules intentionally exclude the
   protected Triage Flow instrument and its stylesheet.
   ======================================================================== */

/* One statement, one visual baseline. The count is an optical anchor rather
   than a separate line of type that drags the phrase downward. */
.judgment-hero-statement a {
  display:grid; grid-template-columns:max-content minmax(0,1fr); align-items:center;
  column-gap:22px;
}
.judgment-hero-count { align-self:center; transform:translateY(-.025em); }
.judgment-hero-words { align-self:center; }

/* Canonical identity leads; raw email remains visible as provenance. */
.work-radar-identity {
  display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-top:2px;
  color:#c7d2dc; font-size:.8rem; line-height:1.35;
}
.work-radar-identity > span,.work-radar-identity > a:not(.work-radar-company) {
  color:#dff8ef; font-weight:700;
}
.work-radar-identity > span::before,.work-radar-identity > a:not(.work-radar-company)::before {
  content:""; display:inline-block; width:5px; height:5px; margin-right:7px;
  border-radius:50%; background:#52edab;
  box-shadow:0 0 7px #52edab,0 0 18px rgba(82,237,171,.36);
  vertical-align:2px;
}
.work-radar-identity > small { color:#aebac5; font-size:.78rem; }
.work-radar-identity > b,.work-radar-identity > .work-radar-company {
  padding:3px 7px; border:1px solid rgba(22,224,223,.22); border-radius:999px;
  color:#bce7e4; background:rgba(22,224,223,.045); font-size:.75rem;
}

/* Executive exception desk: rank, state delta, then the least-expensive
   resolving check. Equal cards obscured that reasoning sequence. */
.today-sentinel { padding:0; overflow:hidden; }
.today-sentinel > header { padding:23px 24px 20px; }
.today-exception-desk { border-top:1px solid #303b45; }
.today-exception-row {
  --exception-light:#52edab;
  position:relative; display:grid;
  grid-template-columns:76px minmax(0,1fr) minmax(280px,340px);
  min-width:0; border-bottom:1px solid #303b45; background:#0c1116;
}
.today-exception-row:last-of-type { border-bottom:0; }
.today-exception-row::before {
  content:""; position:absolute; inset:0 auto 0 0; width:2px;
  background:var(--exception-light);
  box-shadow:0 0 10px rgba(82,237,171,.62),0 0 24px rgba(82,237,171,.2);
}
.today-exception-rank {
  display:grid; align-content:center; justify-items:center; gap:2px; padding:18px 10px;
  border-right:1px solid #303b45; color:#aebac5;
}
.today-exception-rank span { color:#788692; font:700 .75rem var(--font-num); }
.today-exception-rank b {
  color:#c8f8e3; font:750 1.5rem/1 var(--font-num);
  text-shadow:0 0 15px rgba(82,237,171,.28);
}
.today-exception-rank small { color:#9ba8b3; font-size:.75rem; }
.today-exception-core { min-width:0; padding:18px 20px; }
.today-exception-core > span {
  color:#85cdb7; font-size:.75rem; font-weight:750; letter-spacing:.09em;
  text-transform:uppercase;
}
.today-exception-core h3 { margin:7px 0 14px; color:#f4f7f8; font-size:1.08rem; line-height:1.36; }
.today-exception-change {
  display:grid; grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr); align-items:stretch;
}
.today-exception-change section { min-width:0; padding:11px 12px; border:1px solid #2f3943; background:#0a0f13; }
.today-exception-change section:first-child { border-radius:9px 0 0 9px; }
.today-exception-change section:last-child { border-radius:0 9px 9px 0; border-color:rgba(82,237,171,.22); }
.today-exception-change small,.today-exception-probe > small,
.today-exception-inspector section > span,.today-exception-actions label > span,
.today-exception-invalid label > span {
  color:#aebac5; font-size:.75rem; font-weight:750; letter-spacing:.07em; text-transform:uppercase;
}
.today-exception-change p,.today-exception-probe p { margin:5px 0 0; color:#d4dbe1; font-size:.86rem; line-height:1.48; }
.today-exception-change i { display:grid; place-items:center; color:#63d7b4; font-style:normal; }
.today-exception-probe {
  position:relative; min-width:0; display:grid; align-content:center; gap:7px;
  padding:18px 20px; border-left:1px solid #303b45;
  background:linear-gradient(118deg,rgba(82,237,171,.035),transparent 52%);
}
.today-exception-probe::before {
  content:""; position:absolute; left:-1px; top:20px; width:1px; height:42px;
  background:var(--exception-light); box-shadow:0 0 11px var(--exception-light);
}
.today-exception-probe > span { color:#9eabb6; font-size:.75rem; line-height:1.4; }
.today-exception-probe button {
  min-height:44px; margin-top:3px; color:#d8fff0; border-color:rgba(82,237,171,.38);
  background:rgba(82,237,171,.07); font-weight:700;
}
.today-exception-dialog { width:min(900px,calc(100vw - 32px)); }
.today-exception-inspector { display:grid; gap:13px; }
.today-exception-inspector-change { display:grid; grid-template-columns:1fr 28px 1fr; align-items:stretch; }
.today-exception-inspector-change section,.today-exception-check,.today-exception-inspector > section {
  padding:15px; border:1px solid #303b45; border-radius:10px; background:#0c1116;
}
.today-exception-inspector-change i { display:grid; place-items:center; color:#52edab; font-style:normal; }
.today-exception-inspector p { margin:7px 0 0; color:#d1d9df; line-height:1.5; }
.today-exception-actions { overflow:hidden; border:1px solid rgba(82,237,171,.28); border-radius:11px; background:#0c1116; }
.today-exception-actions > header { display:flex; justify-content:space-between; gap:16px; padding:13px 15px; border-bottom:1px solid #303b45; }
.today-exception-actions > header span { color:#e4f6ef; font-weight:750; }
.today-exception-actions > header small { color:#aebac5; }
.today-exception-actions > form,.today-exception-actions details > form,.today-exception-invalid form { display:grid; gap:9px; padding:14px 15px; }
.today-exception-actions label,.today-exception-invalid label { display:grid; gap:6px; }
.today-exception-actions :is(input,textarea),.today-exception-invalid input { width:100%; min-width:0; font-size:1rem; }
.today-exception-actions button,.today-exception-invalid button { min-height:44px; }
.today-exception-actions details,.today-exception-invalid { border-top:1px solid #303b45; }
.today-exception-actions summary,.today-exception-invalid > summary { min-height:48px; display:flex; align-items:center; padding:0 15px; color:#bce4d9; cursor:pointer; font-weight:700; }
.today-collision-strip,.today-monitor-strip,.today-sentinel-census { margin-inline:20px; }
.today-sentinel-census { margin-bottom:18px; }

/* Ranked hypothesis bench. The lead read earns the focal field; alternative
   explanations stay comparable without three repeated essays. */
.intelligence-hypothesis-bench {
  display:grid; grid-template-columns:minmax(0,1.65fr) minmax(300px,.82fr);
  align-items:start; gap:12px;
}
.intelligence-hypothesis-bench .intelligence-delta-card {
  position:relative; border-radius:14px; background:#0d1216;
}
.intelligence-delta-card.is-primary-read {
  padding:24px; border-color:rgba(22,224,223,.34);
  background:
    radial-gradient(circle at 0 0,rgba(22,224,223,.075),transparent 29%),
    linear-gradient(145deg,#11181c,#0a0f13 74%);
}
.intelligence-alternate-stack { min-width:0; display:grid; align-content:start; gap:12px; }
.intelligence-delta-card.is-primary-read::before {
  content:""; position:absolute; left:-1px; top:24px; width:2px; height:72px;
  background:#16e0df; box-shadow:0 0 9px #16e0df,0 0 28px rgba(22,224,223,.38);
}
.intelligence-delta-card.is-alternate-read { padding:17px 18px; gap:9px; }
.intelligence-delta-card.is-alternate-read h3 { font-size:1rem; line-height:1.38; }
.intelligence-delta-card.is-alternate-read .intelligence-consequence { font-size:.84rem; line-height:1.45; }
.intelligence-delta-card.is-alternate-read footer { display:flex; justify-content:flex-end; padding-top:9px; }
.intelligence-delta-card.is-alternate-read .intelligence-inspect-trigger { min-height:44px; padding-inline:16px; }
.intelligence-confidence-source { display:grid; grid-template-columns:minmax(70px,120px) auto; align-items:center; gap:4px 10px; text-align:right; }
.intelligence-confidence-source i {
  position:relative; height:2px; overflow:visible; background:#273139;
}
.intelligence-confidence-source i::before {
  content:""; position:absolute; inset:0 auto 0 0; width:var(--confidence);
  background:#16e0df; box-shadow:0 0 7px #16e0df,0 0 20px rgba(22,224,223,.42);
}
.intelligence-confidence-source i::after {
  content:""; position:absolute; top:50%; left:var(--confidence); width:6px; height:6px;
  border-radius:50%; transform:translate(-50%,-50%); background:#6afff5;
  box-shadow:0 0 9px #16e0df,0 0 22px rgba(22,224,223,.58);
}
.intelligence-confidence-source b { color:#e9fffc; font:750 1rem var(--font-num); }
.intelligence-confidence-source small { grid-column:1/-1; color:#9faab5; font-size:.75rem; }
.intelligence-mechanism { max-width:72ch; }

/* Decision packet: the judgment, settlement boundary, and terminal action are
   visible before the full evidence trail. Gmail creation is explicitly a
   draft-only boundary. */
.judgment-decision-read {
  display:grid; grid-template-columns:1fr 1px 1fr; gap:16px;
  margin:0 20px 0 80px; padding:14px 16px; border:1px solid #303b45;
  border-radius:9px; background:linear-gradient(118deg,rgba(82,143,145,.055),#0c1116 48%);
}
.judgment-decision-read section { min-width:0; }
.judgment-decision-read small {
  color:#7fc7b8; font-size:.75rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase;
}
.judgment-decision-read p { margin:5px 0 0; color:#e2e7eb; font-size:.88rem; line-height:1.48; }
.judgment-decision-read i { background:linear-gradient(180deg,transparent,#52edab,transparent); box-shadow:0 0 10px rgba(82,237,171,.22); }
.judgment-actions {
  grid-template-columns:minmax(220px,1fr) auto; align-items:center;
  padding-top:12px; padding-bottom:12px;
}
.judgment-secondary-action,.judgment-actions > .record-editor-trigger {
  min-height:44px; display:inline-flex; align-items:center; justify-content:center;
  padding:8px 14px; white-space:nowrap;
}
.judgment-draft-boundary {
  grid-column:1; color:#aebac5; font-size:.78rem; line-height:1.4;
}
.judgment-evidence { margin-bottom:14px; }
.judgment-evidence > .judgment-state-evidence { display:grid; grid-template-columns:1fr; gap:12px; padding-bottom:15px; }
.judgment-evidence .custody-state-machine { margin:0; }
.judgment-evidence-columns { display:grid; grid-template-columns:1fr 1fr; }
.judgment-evidence-columns section { padding:12px 18px 4px 0; }
.judgment-evidence-columns section + section { padding-left:20px; border-left:1px solid #303b45; }
.judgment-evidence-columns h3 { color:#7fc7b8; }
.judgment-evidence-columns p { position:relative; margin:7px 0; padding-left:15px; color:#c7d0d8; font-size:.84rem; line-height:1.45; }
.judgment-evidence-columns p::before { content:""; position:absolute; left:0; top:.55em; width:5px; height:5px; border-radius:50%; background:#52edab; box-shadow:0 0 8px rgba(82,237,171,.55); }
.judgment-evidence-columns section + section p::before { background:#ff6675; box-shadow:0 0 8px rgba(255,102,117,.45); }

/* Record inspector: evidence and mutation remain visible together. The body
   owns scrolling; intrinsic rows cannot collapse inside the bounded dialog. */
.today-record-dialog { width:min(1120px,calc(100vw - 32px)); }
.today-record-body {
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr); align-items:start;
  align-content:start; grid-auto-rows:max-content; min-height:0; gap:16px;
}
.today-record-context,.today-record-workbench { min-width:0; display:grid; align-content:start; grid-auto-rows:max-content; gap:13px; }
.today-record-workbench {
  overflow:hidden; border:1px solid #34404a; border-radius:12px; background:#090e12;
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.today-record-workbench-head {
  display:flex; justify-content:space-between; gap:16px; padding:15px 16px;
  border-bottom:1px solid #303b45;
  background:linear-gradient(105deg,color-mix(in srgb,var(--record-light) 7%,#0d1217),#0a0e12 58%);
}
.today-record-workbench-head h3 { margin:3px 0 0; color:#f3f6f7; font-size:1rem; }
.today-record-workbench-head > small { max-width:220px; color:#aebac5; font-size:.75rem; line-height:1.45; text-align:right; }
.today-record-workbench > .today-record-actions { border:0; border-bottom:1px solid #303b45; border-radius:0; }
.today-record-workbench > .today-record-remove { margin:0 12px 12px; }

/* Durable adjudication instrument: evidence emits light; controls remain matter. */
.learning-instrument { --signal-hue:#41e7d3; position:relative; display:grid; gap:14px; padding:16px; overflow:hidden; border:1px solid #293640; border-radius:10px; background:linear-gradient(120deg,rgba(8,14,18,.98),rgba(10,16,21,.95)); isolation:isolate; }
.learning-instrument::before { content:""; position:absolute; inset:0 auto 0 0; width:2px; background:var(--signal-hue); box-shadow:0 0 8px color-mix(in srgb,var(--signal-hue) 78%,transparent),0 0 24px color-mix(in srgb,var(--signal-hue) 38%,transparent); opacity:.78; }
.learning-instrument-head { display:grid; grid-template-columns:minmax(220px,1.2fr) minmax(180px,.9fr) minmax(180px,.9fr); gap:12px 18px; align-items:start; }
.learning-instrument-head h4,.adjudication-confirm h4 { margin:3px 0 0; color:#f3f6f7; font-size:1rem; line-height:1.3; }
.learning-instrument-head p { display:grid; gap:3px; margin:0; padding-left:12px; border-left:1px solid #2b3842; color:#b7c2ca; font-size:1rem; line-height:1.35; }
.learning-instrument-head p b { color:#d9e1e5; font-size:.76rem; letter-spacing:.07em; text-transform:uppercase; }
.learning-scales { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:12px; }
.learning-scale { min-width:0; margin:0; padding:0; border:0; }
.learning-scale legend { width:100%; display:flex; justify-content:space-between; gap:12px; margin:0 0 8px; color:#dce4e8; font-size:1rem; font-weight:750; }
.learning-scale legend small { color:#aeb9c2; font-size:.76rem; font-weight:500; }
.learning-scale > div { display:grid; gap:6px; }
/* The scales wrap instead of demanding a row wide enough for every step.
   Fixed repeat() counts made the pair of scales insist on ~580px, which no
   inspector pane or record dialog on a phone can give them. */
.learning-scale.is-fit > div { grid-template-columns:repeat(auto-fit,minmax(52px,1fr)); }
.learning-scale.is-priority > div { grid-template-columns:repeat(auto-fit,minmax(64px,1fr)); }
.learning-scale label { --scale-color:#41e7d3; position:relative; min-width:0; min-height:52px; display:grid; grid-template-columns:10px minmax(0,1fr) auto; align-items:center; gap:7px; padding:8px 9px; overflow:hidden; border:1px solid #303b45; border-radius:8px; background:#0b1015; color:#c2ccd3; cursor:pointer; transition:border-color 150ms ease,background-color 150ms ease,box-shadow 150ms ease,color 150ms ease; }
.learning-scale label:has(input[value="1"]) { --scale-color:#ff5b72; }.learning-scale label:has(input[value="2"]) { --scale-color:#ffbf39; }.learning-scale.is-fit label:has(input[value="3"]) { --scale-color:#41b7ff; }.learning-scale.is-fit label:has(input[value="4"]) { --scale-color:#52e99b; }.learning-scale.is-fit label:has(input[value="5"]) { --scale-color:#22eee4; }
.learning-scale.is-priority label[data-level="1"] { --scale-color:#508dff; }.learning-scale.is-priority label[data-level="2"] { --scale-color:#28d9db; }.learning-scale.is-priority label[data-level="3"] { --scale-color:#ffc332; }.learning-scale.is-priority label[data-level="4"] { --scale-color:#ff526e; }
.learning-scale input { position:absolute; width:1px!important; height:1px!important; min-height:0!important; opacity:0; pointer-events:none; }
.learning-scale label > span { width:7px; height:24px; border-radius:999px; background:#25323a; box-shadow:none; }
.learning-scale label b { overflow:hidden; text-overflow:ellipsis; color:inherit; font-size:.86rem; white-space:nowrap; }.learning-scale label small { color:#8d9aa4; font-size:.75rem; }
.learning-scale label:has(input:checked) { border-color:color-mix(in srgb,var(--scale-color) 72%,#33404a); background:linear-gradient(110deg,color-mix(in srgb,var(--scale-color) 13%,#0b1015),#0b1015 68%); color:#f1f8f8; box-shadow:0 0 0 1px color-mix(in srgb,var(--scale-color) 26%,transparent) inset,0 0 16px color-mix(in srgb,var(--scale-color) 18%,transparent); }
.learning-scale label:has(input:checked) > span { background:var(--scale-color); box-shadow:0 0 6px var(--scale-color),0 0 18px color-mix(in srgb,var(--scale-color) 55%,transparent); }
.learning-scale label:has(input:focus-visible) { outline:0; border-color:var(--scale-color); box-shadow:0 0 0 2px color-mix(in srgb,var(--scale-color) 38%,transparent),0 0 18px color-mix(in srgb,var(--scale-color) 22%,transparent); }
.learning-instrument > footer { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #26323b; padding-top:10px; }
.learning-instrument > footer button { min-height:44px; padding:0 14px; border-color:#31505a; color:#c7f5ed; background:#0d181b; }
.learning-instrument > footer output { color:#aebdc5; font-size:.78rem; line-height:1.35; }
.learning-instrument.needs-signal { border-color:#d6a72f; }.learning-instrument.needs-signal::before { --signal-hue:#ffc332; }
.learning-quick { display:none; }

.adjudication-confirm[hidden],.reason-field[hidden] { display:none!important; }
.adjudication-confirm { --adjudication-color:#ff6b7e; display:grid; gap:13px; padding:14px; border:1px solid color-mix(in srgb,var(--adjudication-color) 46%,#303a44); border-radius:10px; background:linear-gradient(110deg,color-mix(in srgb,var(--adjudication-color) 6%,#0b1015),#0b1015 60%); box-shadow:0 0 22px color-mix(in srgb,var(--adjudication-color) 7%,transparent); }
.adjudication-confirm > header { display:flex; align-items:start; justify-content:space-between; gap:14px; }.adjudication-confirm > header button { min-height:44px; }
.reason-field { margin:0; padding:0; border:0; }.reason-field legend { margin-bottom:8px; color:#c7d0d6; font-size:1rem; font-weight:700; }
.reason-chip-grid { display:flex; flex-wrap:wrap; gap:7px; }.reason-chip-grid label { position:relative; min-height:44px; display:flex; align-items:center; cursor:pointer; }
.reason-chip-grid input { position:absolute; width:1px!important; height:1px!important; min-height:0!important; opacity:0; }.reason-chip-grid span { min-height:44px; display:flex; align-items:center; padding:8px 12px; border:1px solid #35414a; border-radius:999px; background:#0b1116; color:#c6d0d6; font-size:.86rem; line-height:1.2; }
.reason-chip-grid label:has(input:checked) span { border-color:var(--adjudication-color); background:color-mix(in srgb,var(--adjudication-color) 12%,#0b1116); color:#f3f6f7; box-shadow:0 0 12px color-mix(in srgb,var(--adjudication-color) 16%,transparent); }
.reason-chip-grid label:has(input:focus-visible) span { outline:0; border-color:var(--adjudication-color); box-shadow:0 0 0 2px color-mix(in srgb,var(--adjudication-color) 35%,transparent); }
.reason-field.needs-reason legend { color:#ffbdc6; }.reason-field.needs-reason { padding-left:10px; border-left:2px solid #ff5b72; }
.adjudication-submit { min-height:48px; }.adjudication-consequence { margin:0; color:#acb8c0; font-size:.8rem; line-height:1.55; }.adjudication-consequence b { color:#d7e0e4; }
.adjudication-actions { display:flex; flex-wrap:wrap; gap:8px; }.adjudication-actions > button { min-height:44px; }
.today-record-actions textarea[name="note"],.commitment-primary-action textarea[name="note"],.commitment-destructive-tool textarea[name="note"] { min-height:96px; resize:vertical; line-height:1.5; }

@media (max-width:900px) {
  .learning-instrument-head { grid-template-columns:1fr 1fr; }.learning-instrument-head > div { grid-column:1/-1; }
  .learning-scales { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  .learning-instrument { padding:14px; }.learning-instrument-head { grid-template-columns:1fr; }.learning-instrument-head > div { grid-column:auto; }.learning-instrument-head p { min-height:44px; }
  .learning-scale.is-fit > div { grid-template-columns:repeat(5,minmax(64px,1fr)); min-width:360px; }.learning-scale.is-priority > div { grid-template-columns:repeat(4,minmax(76px,1fr)); min-width:330px; }
  .learning-scale { overflow-x:auto; padding-bottom:4px; scrollbar-width:thin; }.learning-scale legend { position:sticky; left:0; }
  .learning-scale label { min-height:56px; }.learning-scale label b { font-size:.8rem; }
  .learning-instrument > footer { align-items:stretch; flex-direction:column; }.learning-instrument > footer button { width:100%; }
  .reason-chip-grid { display:grid; grid-template-columns:1fr; }.reason-chip-grid span { width:100%; border-radius:8px; }
  .adjudication-confirm > header { display:grid; grid-template-columns:1fr auto; }
}
@media (prefers-reduced-motion:reduce) { .learning-scale label { transition:none; } }
@media (forced-colors:active) {
  .learning-instrument::before,.learning-scale label > span { box-shadow:none; }
  .learning-scale label:has(input:checked),.reason-chip-grid label:has(input:checked) span { outline:2px solid Highlight; outline-offset:2px; }
}

@media (max-width:760px) {
  .learning-quick {
    --quick-light:#41e7d3; grid-column:2; display:grid; grid-template-columns:1fr;
    gap:8px; margin:0 12px 10px 0; padding:10px; border:1px solid #2d3b44;
    border-radius:10px; background:linear-gradient(120deg,rgba(10,18,22,.98),rgba(9,13,17,.98));
    box-shadow:0 12px 32px -29px rgba(65,231,211,.7); isolation:isolate;
  }
  .learning-quick-scale { min-width:0; margin:0; padding:0; border:0; }
  .learning-quick-scale legend { display:flex; align-items:baseline; gap:6px; margin:0 0 5px; color:#eef4f5; font-size:.78rem; font-weight:800; }
  .learning-quick-scale legend small { color:#aebac3; font-size:.7rem; font-weight:550; }
  .learning-quick-scale > div { display:grid; gap:5px; }
  .learning-quick-scale.is-fit > div { grid-template-columns:repeat(5,minmax(44px,1fr)); }
  .learning-quick-scale.is-priority > div { grid-template-columns:repeat(4,minmax(44px,1fr)); }
  .learning-quick-scale label {
    --quick-choice:#41e7d3; position:relative; min-width:44px; min-height:44px;
    display:grid; grid-template-rows:6px 1fr; place-items:center; gap:4px; padding:6px 3px;
    overflow:hidden; border:1px solid #34414a; border-radius:8px; background:#0c1216;
    color:#b9c5cc; cursor:pointer;
  }
  .learning-quick-scale label:has(input[value="1"]) { --quick-choice:#ff6578; }
  .learning-quick-scale label:has(input[value="2"]) { --quick-choice:#f5bd45; }
  .learning-quick-scale.is-fit label:has(input[value="3"]) { --quick-choice:#68a5ff; }
  .learning-quick-scale.is-fit label:has(input[value="4"]) { --quick-choice:#5de3a3; }
  .learning-quick-scale.is-fit label:has(input[value="5"]) { --quick-choice:#26eee2; }
  .learning-quick-scale.is-priority label[data-level="1"] { --quick-choice:#6a9cff; }
  .learning-quick-scale.is-priority label[data-level="2"] { --quick-choice:#36d8d2; }
  .learning-quick-scale.is-priority label[data-level="3"] { --quick-choice:#ffc749; }
  .learning-quick-scale.is-priority label[data-level="4"] { --quick-choice:#ff6178; }
  .learning-quick-scale input { position:absolute; width:1px!important; height:1px!important; min-height:0!important; opacity:0; }
  .learning-quick-scale label i { width:74%; height:2px; border-radius:99px; background:#33414a; }
  .learning-quick-scale label span { overflow:hidden; max-width:100%; color:inherit; font-size:.66rem; font-weight:720; text-overflow:ellipsis; white-space:nowrap; }
  .learning-quick-scale label:has(input:checked) {
    border-color:color-mix(in srgb,var(--quick-choice) 68%,#36434c);
    background:linear-gradient(150deg,color-mix(in srgb,var(--quick-choice) 13%,#0d1317),#0c1115 72%);
    color:#f2f8f8; box-shadow:0 0 14px color-mix(in srgb,var(--quick-choice) 15%,transparent),0 0 0 1px color-mix(in srgb,var(--quick-choice) 20%,transparent) inset;
  }
  .learning-quick-scale label:has(input:checked) i { background:var(--quick-choice); box-shadow:0 0 5px var(--quick-choice),0 0 13px color-mix(in srgb,var(--quick-choice) 48%,transparent); }
  .learning-quick-scale label:has(input:focus-visible) { outline:2px solid var(--quick-choice); outline-offset:2px; }
  .learning-quick > button { min-height:44px; border:1px solid #31535a; border-radius:8px; background:#0d1a1c; color:#d5faf3; font-size:.74rem; font-weight:760; }
  .learning-quick > output { min-height:0; color:#afbdc5; font-size:.7rem; line-height:1.35; }
  .learning-quick > output:empty { display:none; }
  .learning-quick.is-saving { border-color:#3c736f; }
  .learning-quick.is-saved { border-color:#386156; box-shadow:0 0 22px -17px rgba(65,231,211,.8); }
  .learning-quick.has-save-error { border-color:#8b4652; }
}

@media (max-width:980px) {
  .today-exception-row { grid-template-columns:64px minmax(0,1fr); }
  .today-exception-probe { grid-column:2; border-top:1px solid #303b45; border-left:0; }
  .today-exception-probe::before { left:20px; top:-1px; width:56px; height:1px; }
  .intelligence-hypothesis-bench { grid-template-columns:1fr; grid-template-rows:auto; }
  .intelligence-delta-card.is-primary-read { grid-row:auto; }
  .today-record-body { grid-template-columns:1fr; }
}

@media (max-width:700px) {
  .judgment-hero-statement a { display:flex; align-items:flex-start; }
  .today-sentinel > header { padding:18px 15px 16px; }
  .today-exception-row { grid-template-columns:52px minmax(0,1fr); }
  .today-exception-rank { padding:15px 7px; }
  .today-exception-rank b { font-size:1.22rem; }
  .today-exception-core { padding:15px 13px; }
  .today-exception-change,.today-exception-inspector-change { grid-template-columns:1fr; gap:8px; }
  .today-exception-change i,.today-exception-inspector-change i { transform:rotate(90deg); min-height:18px; }
  .today-exception-change section { border-radius:8px !important; }
  .today-exception-probe { grid-column:1/-1; padding:15px; }
  .today-collision-strip,.today-monitor-strip,.today-sentinel-census { margin-inline:14px; }
  .today-exception-dialog {
    position:fixed; inset:auto 6px max(6px,env(safe-area-inset-bottom)) 6px;
    width:auto; max-height:calc(100dvh - 12px); margin:0; border-radius:18px 18px 10px 10px;
  }
  .intelligence-delta-card.is-primary-read { padding:19px 16px; }
  .intelligence-delta-card > header { align-items:flex-start; }
  .intelligence-confidence-source { min-width:122px; }
  .judgment-decision-read { grid-template-columns:1fr; gap:10px; margin-inline:13px; }
  .judgment-decision-read i { width:100%; height:1px; }
  .judgment-actions { grid-template-columns:1fr; padding-inline:13px; }
  .judgment-draft-boundary { grid-column:1; }
  .judgment-secondary-action,.judgment-actions > .record-editor-trigger { width:100%; }
  .judgment-evidence { margin-inline:13px; }
  .judgment-evidence-columns { grid-template-columns:1fr; }
  .judgment-evidence-columns section { padding:9px 0; }
  .judgment-evidence-columns section + section { padding-left:0; border-left:0; border-top:1px solid #303b45; }
  .today-record-body { display:grid; align-content:start; grid-auto-rows:max-content; }
  .today-record-context,.today-record-workbench { gap:12px; }
  .today-record-workbench-head { display:grid; }
  .today-record-workbench-head > small { max-width:none; text-align:left; }
}

@media (forced-colors:active) {
  .today-exception-row::before,.today-exception-probe::before,
  .intelligence-delta-card.is-primary-read::before,
  .intelligence-confidence-source i::before,
  .work-radar-identity > span::before,
  .work-radar-identity > a:not(.work-radar-company)::before {
    background:CanvasText; box-shadow:none;
  }
}

/* Final cascade lock for the capability-first Today composition. This sits
   after the earlier v3.2 compatibility layer so old responsive patches cannot
   resurrect the split-scroll inspector or stretched intelligence cards. */
.today-exception-row { grid-template-columns:92px minmax(0,1fr) 340px; min-height:214px; border-bottom-color:#38434d; background:#0c1115; }
.today-exception-rank { position:relative; align-content:center; gap:3px; padding:20px 12px; background:linear-gradient(180deg,color-mix(in srgb,var(--exception-light) 6%,#0c1115),#0a0f13); }
.today-exception-rank::after { content:""; position:absolute; right:18px; bottom:18px; left:18px; height:3px; background:linear-gradient(90deg,var(--exception-light) 0 78%,#28313a 78%); box-shadow:0 0 10px color-mix(in srgb,var(--exception-light) 38%,transparent); }
.today-exception-rank b { font-size:2rem; }
.today-exception-core { padding:24px; }
.today-exception-core h3 { margin:9px 0 18px; font-size:1.15rem; }
.today-exception-probe { padding:24px 22px; }
.today-exception-actions > button { width:calc(100% - 30px); margin:0 15px 14px; min-height:46px; border-color:rgba(82,237,171,.34); color:#d8fff0; background:rgba(82,237,171,.06); font-weight:700; }
.intelligence-hypothesis-bench { grid-template-columns:minmax(0,1.35fr) minmax(360px,.85fr); align-items:start; gap:16px; }
.intelligence-hypothesis-bench .intelligence-delta-card { align-self:start; }
.intelligence-delta-card.is-primary-read { min-height:0; padding:28px; }
.intelligence-delta-card.is-alternate-read { padding:20px; }
.today-record-dialog { width:min(980px,calc(100vw - 32px)); }
.today-record-body { grid-template-columns:1fr; gap:18px; padding:24px; }
.today-record-workbench { overflow:visible; }
/* The inspector is intentionally narrower than a ledger page. Give each
   calibration question a complete reading lane instead of abbreviating the
   semantics that teach the system. */
.today-record-dialog .learning-scales { grid-template-columns:1fr; }

/* Maestro mounts inside an isolated shadow tree. These two hosts establish its
   page and stacking contracts without leaking component styles into HarveyOS. */
.maestro-floating-host { position:relative; z-index:78; }
.maestro-server-shell { display:block; width:100%; min-height:calc(100dvh - 150px); }
.page-chat main { width:min(1500px,calc(100% - 32px)); max-width:none; padding:16px 0 36px; }

@media (max-width:980px) {
  .today-exception-row { grid-template-columns:70px minmax(0,1fr); }
  .today-exception-probe { grid-column:2; }
  .intelligence-hypothesis-bench { grid-template-columns:1fr; }
}
@media (max-width:700px) {
  .today-exception-row { grid-template-columns:56px minmax(0,1fr); min-height:0; }
  .today-exception-core { padding:16px 14px; }
  .today-exception-probe { grid-column:1/-1; padding:16px; }
  .today-record-body { padding:15px; }
  .page-chat main { width:100%; padding:0; }
}


/* ===== LEDGER (2026-08-06) =====================================================
   /stack becomes lane-grouped and one-tap. Everything below this marker is
   additive — no rule above it is edited — and every colour is a token from the
   Ink + Green/Blue spectrum. Accents are signals: a hue says which lane a row
   belongs to and nothing else on the row is coloured for decoration.

   WHY THE ROWS ARE CARDS AND NOT COLUMNS. The inspector holds 380–450px, so
   the ranked index never gets more than ~860px even at 1920 — measured, not
   assumed. A five-column table needs ~910px, which means the Act column (the
   entire point of this surface) would have sat behind a horizontal scrollbar
   at every real width. So each <tr> is laid out as a grid card: rank badge,
   evidence, then a full-width verb row. It is still a <table>, so the sort
   header and the instrumented-table behaviour survive intact.

   Selectors are prefixed `.stack-index` deliberately: tables.css loads AFTER
   clarity.css, so a bare `.ledger-table` would lose every tie to it. ====== */

/* --- "Closed for you" receipts strip ---------------------------------------- */
.ledger-closed { margin:0 0 14px; border:1px solid var(--border-subtle); border-left:3px solid var(--accent-green); border-radius:14px; background:linear-gradient(145deg,rgba(17,22,28,.96),rgba(10,13,17,.98)); overflow:hidden; }
.ledger-closed.is-revealing,.ledger-questions.is-revealing { opacity:0; }
.ledger-closed.is-revealed,.ledger-questions.is-revealed { opacity:1; transition:opacity .3s ease; }
.ledger-closed > header { padding:18px 22px 12px; }
.ledger-closed h2 { margin:6px 0 5px; color:var(--text-main); font-size:1.1rem; }
.ledger-closed header p { margin:0; color:#9eabb7; font-size:.84rem; }
.ledger-receipt-list,.ledger-question-list { margin:0; padding:0; list-style:none; }
.ledger-receipt,.ledger-question { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; padding:13px 22px; border-top:1px solid var(--border-subtle); }
.ledger-receipt-body,.ledger-question-body { flex:1 1 300px; min-width:0; display:grid; gap:3px; }
.ledger-receipt-body b,.ledger-question-body b { color:#eef2f5; font-size:.92rem; line-height:1.35; }
.ledger-receipt-body small,.ledger-question-body small { color:#9eabb7; font-size:.78rem; }
.ledger-receipt.is-answered,.ledger-question.is-answered { opacity:.5; }
.ledger-receipt-actions,.ledger-question-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }

/* --- lane index inside the overview ---------------------------------------- */
.ledger-lane-index { display:flex; flex-wrap:wrap; border-top:1px solid var(--border-subtle); }
.ledger-lane-index a { flex:1 1 148px; min-height:52px; display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 18px; border-right:1px solid var(--border-subtle); border-bottom:2px solid transparent; color:#c3cbd4; font-size:.79rem; font-weight:700; text-decoration:none; }
.ledger-lane-index a:last-child { border-right:0; }
.ledger-lane-index a:hover,.ledger-lane-index a:focus-visible { color:var(--text-main); border-bottom-color:var(--lane-accent); text-decoration:none; }
.ledger-lane-index b { color:var(--lane-accent); font:700 1.05rem/1 var(--font-num); }

/* --- lanes ------------------------------------------------------------------ */
.ledger-lane { border-bottom:1px solid var(--border-subtle); }
.ledger-lane:last-child { border-bottom:0; }
.ledger-lane-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:16px 18px 13px; border-left:3px solid var(--lane-accent); }
.ledger-lane-head > div { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:baseline; gap:3px 10px; }
.ledger-lane-order { color:var(--lane-accent); font:700 .95rem/1 var(--font-num); }
.ledger-lane-head h2 { margin:0; color:#f2f5f8; font-size:1.02rem; letter-spacing:.01em; }
.ledger-lane-head p { grid-column:2; margin:0; color:#9eabb7; font-size:.79rem; }
.ledger-lane-count { color:var(--lane-accent); font:700 1.5rem/1 var(--font-num); }
.ledger-lane-empty { padding:0 18px 16px; }
.ledger-fold > summary { min-height:52px; padding:11px 18px; }
.ledger-fold > summary span { color:var(--lane-accent); }

/* --- the row: a table element laid out as a card --------------------------- */
.stack-index table.ledger-table { display:block; width:100%; max-width:none; }
.stack-index .ledger-table thead { display:block; }
.stack-index .ledger-table thead tr { display:flex; flex-wrap:wrap; align-items:center; border-top:1px solid var(--border-subtle); background:rgba(11,13,17,.96); }
/* `.stack-table th:nth-child()` above still pins the old column widths; the
   sort bar is a flex strip now, so each header sizes to its own label. */
.stack-index .ledger-table thead th { width:auto; flex:0 0 auto; min-height:0; padding:8px 13px; border:0; }
/* tables.js replaces the header text with a sort button that carries its own
   padding. Until it has (or if it never does), the label keeps its own. */
.stack-index .ledger-table thead th:has([data-tanstack-sort]) { padding:0; }
.stack-index .ledger-table thead [data-tanstack-sort] { width:auto; min-width:0; min-height:38px; padding:8px 13px; font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; }
.stack-index .ledger-table tbody { display:block; }
.stack-index .ledger-table tbody tr { display:grid; grid-template-columns:56px minmax(0,1fr); align-items:start; gap:5px 14px; padding:14px 16px; border-top:1px solid var(--border-subtle); }
/* app.css truncates every bare `td` with nowrap+ellipsis and offers `td.wrap`
   as the escape. A card row has no columns to protect, and a truncated
   `why_now` is a consequence claim the owner cannot read — so every cell
   in a ledger row wraps. */
.stack-index .ledger-table td { display:block; min-height:0; max-width:none; padding:0; border:0; white-space:normal; overflow:visible; text-overflow:clip; }
.stack-index .ledger-table td[data-label="Rank"] { grid-column:1; grid-row:1 / span 3; }
.stack-index .ledger-table td[data-label="State"] { display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 10px; }
.stack-index .ledger-table .stack-state { display:inline; }
.stack-index .ledger-table .stack-rank-number { display:flex; align-items:center; justify-content:center; min-height:36px; border:1px solid color-mix(in srgb,var(--lane-accent) 30%,transparent); border-radius:9px; background:color-mix(in srgb,var(--lane-accent) 9%,transparent); color:var(--lane-accent); font:700 .88rem/1 var(--font-num); }
.stack-index .ledger-table tbody tr.is-selected { background:color-mix(in srgb,var(--lane-accent) 8%,transparent); box-shadow:inset 3px 0 var(--lane-accent); }
.stack-index .ledger-table tbody tr:focus-within { background:color-mix(in srgb,var(--lane-accent) 6%,transparent); box-shadow:inset 3px 0 var(--lane-accent); }
.stack-index .ledger-table tbody tr.is-recorded { opacity:.48; }

/* --- one-tap verbs, on the row --------------------------------------------- */
.stack-index .ledger-table td.ledger-act { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-top:9px; }
.ledger-verbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.ledger-verb { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:0 14px; border:1px solid var(--border-subtle); border-radius:9px; background:var(--bg-raised); color:#c9d2da; font:600 .8rem/1 var(--font-body); cursor:pointer; text-decoration:none; }
.ledger-verb:hover:not(:disabled),.ledger-verb:focus-visible { color:var(--text-main); border-color:#3b464f; text-decoration:none; }
.ledger-verb:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; }
.ledger-verb:disabled { opacity:.45; cursor:progress; }
/* An author `display` beats the UA rule for [hidden]; the undo affordance
   must stay invisible until an endpoint has actually advertised one. */
.ledger-verb[hidden] { display:none; }
.ledger-verb.is-settle { color:#a9e5c6; border-color:rgba(79,164,119,.42); background:rgba(79,164,119,.08); }
.ledger-verb.is-handoff { color:#a8c9dd; border-color:rgba(95,143,170,.42); background:rgba(95,143,170,.08); }
.ledger-verb.is-undo { color:#e0c777; border-color:rgba(199,168,71,.42); background:rgba(199,168,71,.08); }
.ledger-verb-status { color:#9eabb7; font-size:.76rem; }
.ledger-verb-status:empty { display:none; }
.stack-index .ledger-table .stack-select-action { min-height:34px; margin-left:auto; font-size:.76rem; font-weight:600; }
tr.has-verdict-error .ledger-verb-status { color:var(--danger); }

/* --- the questions lane's closure proposals -------------------------------- */
.ledger-questions { padding:2px 18px 14px; }
.ledger-questions .ledger-question { padding:12px 0; border-top:1px solid var(--border-subtle); }

@media (prefers-reduced-motion: reduce) {
  .ledger-closed,.ledger-questions,
  .ledger-closed.is-revealed,.ledger-questions.is-revealed { opacity:1; transition:none; }
}

/* --- phone: tighter gutters, thumb-width verbs ------------------------------
   760px, not 700, so this lands inside the same breakpoint as the pre-existing
   `.page-stack table.stack-table` mobile block above and can answer it. That
   block hides `why_now` to keep a phone table narrow; a ledger row is a card,
   and the consequence evidence is the reason the row is ranked at all — so it
   comes back. The sort header stays hidden on a phone, which is that block's
   call and a fair one. --------------------------------------------------- */
@media (max-width:760px) {
  .stack-index .ledger-table .stack-score-beam span { display:block; }
  .ledger-closed > header { padding:15px 15px 10px; }
  .ledger-receipt,.ledger-question { padding:12px 15px; }
  .ledger-lane-index a { flex:1 1 45%; border-bottom:1px solid var(--border-subtle); }
  .ledger-lane-head { padding:14px 14px 11px; }
  .ledger-lane-count { font-size:1.25rem; }
  .ledger-fold > summary { padding:11px 14px; }
  .stack-index .ledger-table tbody tr { grid-template-columns:48px minmax(0,1fr); gap:5px 11px; padding:13px 14px; }
  .stack-index .ledger-table td.ledger-act { gap:8px; }
  .ledger-verbs { width:100%; }
  .ledger-verb { flex:1 1 auto; min-width:92px; }
  .stack-index .ledger-table .stack-select-action { margin-left:0; }
  .ledger-questions { padding:0 14px 12px; }
}

/* ===== MY WORK (2026-08-06) ===================================================
   The capture bar, the task lane's chip, and the project page's own sections.
   Additive only: nothing above this marker is edited, and every colour is a
   token from the Ink + Green/Blue spectrum. Accents stay signals — the only
   coloured things here are the lane accent on a landed row and the chip that
   says which project a task belongs to.

   THE BAR IS ONE LINE, DELIBERATELY. Its submit button exists (Enter needs a
   submit control) and is drawn at zero width, which is also the shape the
   mobile tap-target audit skips rather than fails: it measures `width === 0`,
   so a 1px sr-only button would have been a regression, not a courtesy.

   Inputs are pinned to 16px. iOS zooms the whole viewport on focus below that,
   and the same audit fails any input under it. ========================== */

.capture-bar { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin:0 0 14px; padding:6px 8px 6px 16px; border:1px solid var(--border-subtle); border-left:3px solid var(--steel-soft); border-radius:14px; background:linear-gradient(145deg,rgba(17,22,28,.96),rgba(10,13,17,.98)); }
.capture-field { flex:1 1 260px; min-width:0; display:block; }
.capture-field > span { position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.capture-field > input { width:100%; min-height:48px; padding:0 4px; border:0; background:transparent; color:var(--text-main); font:400 16px/1.4 var(--font-body); }
.capture-field > input::placeholder { color:#8e99a5; }
.capture-field > input:focus { outline:0; }
.capture-bar:focus-within,.dock-capture:focus-within { border-color:var(--border-focus); box-shadow:0 0 0 1px var(--border-focus); }
/* Present for Enter and for the no-JS path, never drawn. */
.capture-submit { position:absolute; width:0; height:0; padding:0; margin:0; border:0; opacity:0; overflow:hidden; }
.capture-status { flex:1 1 100%; display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; color:#9eabb7; font-size:.78rem; }
.capture-status:empty { display:none; }
.capture-convert { min-height:44px; padding:0 14px; border:1px solid rgba(112,177,152,.42); border-radius:9px; background:rgba(112,177,152,.08); color:#a9e5c6; font:600 .78rem/1 var(--font-body); cursor:pointer; }
.capture-convert:hover:not(:disabled),.capture-convert:focus-visible { color:var(--text-main); }
.capture-convert:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; }
.capture-convert:disabled { opacity:.45; cursor:progress; }

/* --- the same bar, at the top of the thumb's Work sheet --------------------- */
.dock-capture { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:0 0 10px; padding:4px 6px 4px 14px; border:1px solid var(--border-subtle); border-left:3px solid var(--steel-soft); border-radius:12px; background:var(--bg-raised); }
.dock-capture .capture-field { flex:1 1 200px; }
.dock-capture .capture-field > input { min-height:46px; }

/* --- a task row the server has not ranked yet ------------------------------- */
.stack-index .ledger-table .stack-rank-number.is-unranked { color:var(--text-dim); border-color:var(--border-subtle); background:transparent; font-size:.7rem; letter-spacing:.04em; text-transform:uppercase; }
.mywork-fresh { color:#9eabb7; font-size:.82rem; line-height:1.4; }
/* The lane keeps its table mounted while empty so a captured row has a place
   to land. Until one does, the header strip would be a table of nothing. */
.stack-index #lane-my-work .lumen-table-viewport:has(tbody:empty) { display:none; }
.stack-index .ledger-table tbody tr.is-landing { opacity:0; transform:translateY(-8px); }
.stack-index .ledger-table tbody tr.is-landed { opacity:1; transform:none; transition:opacity .3s ease,transform .3s ease; }

/* --- the project chip on a task row ---------------------------------------- */
.mywork-chip { min-height:44px; min-width:44px; display:inline-flex; align-items:center; padding:0 13px; border:1px solid rgba(112,177,152,.42); border-radius:9px; background:rgba(112,177,152,.08); color:#a9e5c6; font:600 .78rem/1 var(--font-body); cursor:pointer; }
.mywork-chip.is-unset { border-style:dashed; border-color:var(--border-subtle); background:transparent; color:#9eabb7; }
.mywork-chip:hover,.mywork-chip:focus-visible { color:var(--text-main); }
.mywork-chip:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; }
.mywork-chip.is-failed { border-color:var(--danger); color:var(--danger); }

.mywork-pop { position:fixed; z-index:60; width:min(288px,calc(100vw - 16px)); max-height:min(58vh,420px); display:flex; flex-direction:column; border:1px solid var(--border-subtle); border-radius:13px; background:var(--bg-surface); box-shadow:0 18px 44px rgba(0,0,0,.55); overflow:hidden; }
.mywork-pop[hidden] { display:none; }
.mywork-pop > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 8px 11px 15px; border-bottom:1px solid var(--border-subtle); }
.mywork-pop > header b { color:var(--text-main); font-size:.82rem; }
.mywork-pop-close { min-width:44px; min-height:44px; border:0; background:transparent; color:#9eabb7; font-size:.9rem; cursor:pointer; }
.mywork-pop-close:hover,.mywork-pop-close:focus-visible { color:var(--text-main); }
.mywork-pop-list { margin:0; padding:0; list-style:none; overflow-y:auto; }
.mywork-pop-option { width:100%; min-height:46px; padding:11px 15px; border:0; border-bottom:1px solid var(--border-subtle); background:transparent; color:#c9d2da; font:600 .82rem/1.35 var(--font-body); text-align:left; cursor:pointer; }
.mywork-pop-option:hover,.mywork-pop-option:focus-visible { background:color-mix(in srgb,var(--steel-soft) 10%,transparent); color:var(--text-main); }
.mywork-pop-option.is-current { color:var(--steel-soft); }
.mywork-pop-option.is-clear { color:#9eabb7; font-style:italic; }
.mywork-pop-empty { padding:14px 15px; color:#9eabb7; font-size:.8rem; }

/* --- the project page's own two sections ----------------------------------- */
.case-tasks,.case-commitments { margin:0 0 14px; }
.case-tasks .operator-panel-head,.case-commitments .operator-panel-head { align-items:flex-start; }
.case-count { color:var(--steel-soft); font:700 1.5rem/1 var(--font-num); }
.case-commitments .case-count { color:var(--accent-mid); }
.case-task { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px; padding:12px 0; border-top:1px solid var(--border-subtle); }
.case-task > div { flex:1 1 260px; min-width:0; display:grid; gap:3px; }
.case-task span { color:#9eabb7; font-size:.76rem; }
.case-task b { color:#eef2f5; font-size:.9rem; line-height:1.35; }
.case-task .btn-mini { min-height:44px; }
.case-task-compose { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 14px; margin-top:14px; padding-top:14px; border-top:1px solid var(--border-subtle); }
.case-task-compose label { flex:1 1 180px; min-width:0; display:grid; gap:5px; }
.case-task-compose label:first-of-type { flex:2 1 280px; }
.case-task-compose span { color:#9eabb7; font-size:.76rem; }
.case-task-compose input,.case-task-compose select { min-height:46px; font-size:16px; }
.case-task-compose button { min-height:46px; }
.case-commitment { display:grid; gap:3px; padding:12px 0; border-top:1px solid var(--border-subtle); text-decoration:none; }
.case-commitment span { color:#9eabb7; font-size:.76rem; }
.case-commitment b { color:#eef2f5; font-size:.9rem; line-height:1.35; }
.case-commitment:hover b,.case-commitment:focus-visible b { color:var(--steel-soft); }

@media (prefers-reduced-motion: reduce) {
  .stack-index .ledger-table tbody tr.is-landing,
  .stack-index .ledger-table tbody tr.is-landed { opacity:1; transform:none; transition:none; }
}

@media (max-width:760px) {
  .capture-bar { margin:0 0 12px; padding:5px 8px 5px 13px; border-radius:12px; }
  .capture-field { flex:1 1 100%; }
  .capture-status { font-size:.76rem; }
  .stack-index .ledger-table td.ledger-act .mywork-chip { flex:1 1 auto; justify-content:center; }
  .case-task-compose label { flex:1 1 100%; }
  .case-task-compose button { width:100%; }
}

/* ===== CONTEXT SPINE (2026-08-06) =====================================
   The related-context fold, the binding question, and the suggested-filing
   strip. Appended, never interleaved: the sections above are load-bearing and
   a change here must not be able to reach them.

   Three rules govern every rule below.

   1. COLOUR IS A SIGNAL. The panel itself is neutral — surface, border, dim
      text. The only accents that appear are the ones that mean something: the
      spectrum blue on a group heading (this is a link target), the spectrum
      green on a settle/file verb (this is the affirmative), platinum nowhere
      because nothing here is a warning.
   2. EVERY ANSWER IS A 44px TARGET. A binding question is answered by tapping
      a person, on a phone, once. A candidate button that a thumb misses is a
      question that does not get answered.
   3. MOTION IS OPTIONAL AND SMALL. The reveal is an opacity fade with a short
      translate, and prefers-reduced-motion removes both rather than shortening
      them. ========================================================== */

/* --- the related-context fold ---------------------------------------------- */
.related-context-card { margin:14px 0 0; }
.related-context { border-top:0; margin-top:0; }
.related-context > summary { justify-content:flex-start; gap:10px; }
.related-context > summary span { color:var(--text-main); font-weight:600; font-size:.92rem; }
.related-context > summary small { color:#9eabb7; font-size:.76rem; font-weight:400; }
.related-context-body { padding:4px 0 2px; }
.related-context-line { margin:6px 0; color:#9eabb7; font-size:.8rem; }
.related-context-line[hidden] { display:none; }
.related-context-group { margin:14px 0 6px; color:var(--accent-blue); font:600 .72rem/1 var(--font-body); letter-spacing:var(--label-tracking,.14em); text-transform:uppercase; }
.related-context-group:first-child { margin-top:4px; }
.related-context-list { margin:0; padding:0; list-style:none; }
.related-context-item { border-top:1px solid var(--border-subtle); }
.related-context-item:first-child { border-top:0; }
.related-context-item a { min-height:44px; display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:9px 2px; text-decoration:none; }
.related-context-item b { flex:1 1 220px; min-width:0; color:#eef2f5; font-size:.88rem; font-weight:600; line-height:1.35; }
.related-context-item small { color:#9eabb7; font-size:.76rem; }
.related-context-item a:hover b,.related-context-item a:focus-visible b { color:var(--steel-soft); }
.related-context-item a:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; border-radius:8px; }
.related-context-empty { margin:8px 0 2px; color:#9eabb7; font-size:.8rem; }

/* --- the binding question: one tap per candidate ---------------------------- */
.ledger-question-actions.is-choices { flex-wrap:wrap; align-items:stretch; }
.ledger-verb.is-choice { min-height:44px; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; padding:7px 13px; text-align:left; }
.ledger-verb.is-choice b { color:#eef2f5; font-size:.82rem; font-weight:600; line-height:1.2; }
.ledger-verb.is-choice small { color:#9eabb7; font-size:.72rem; line-height:1.2; }
.ledger-verb.is-choice:hover:not(:disabled) b,.ledger-verb.is-choice:focus-visible b { color:var(--steel-soft); }
.ledger-question[data-signal="bind_counterparty"] .ledger-question-body b,
.ledger-question[data-signal="file_into_case"] .ledger-question-body b { color:#eef2f5; }

/* --- suggested filings on a project page ------------------------------------ */
.case-filings { margin:0 0 14px; }
.case-filings[hidden] { display:none; }
.case-filings.is-revealing { opacity:0; transform:translateY(-6px); }
.case-filings.is-revealed { opacity:1; transform:none; transition:opacity .3s ease,transform .3s ease; }
.case-filing-list { margin:0; padding:0; list-style:none; }
.case-filing { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px; padding:12px 0; border-top:1px solid var(--border-subtle); }
.case-filing.is-answered { opacity:.5; }
.case-filing-body { flex:1 1 300px; min-width:0; display:grid; gap:3px; }
.case-filing-body b { color:#eef2f5; font-size:.9rem; line-height:1.35; white-space:normal; }
.case-filing-body small { color:#9eabb7; font-size:.76rem; }
.case-filing-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }

@media (prefers-reduced-motion: reduce) {
  .case-filings.is-revealing,.case-filings.is-revealed { opacity:1; transform:none; transition:none; }
  .related-context > summary::before { transition:none; }
}

@media (max-width:760px) {
  .related-context-item a { padding:11px 2px; }
  .related-context-item b { flex:1 1 100%; }
  .ledger-verb.is-choice { flex:1 1 100%; }
  .case-filing-actions { width:100%; }
  .case-filing-actions .ledger-verb { flex:1 1 auto; min-width:92px; }
}

/* --- THE OPENING: the ledger's first sentence ---------------------------------
   Same card grammar as the "Closed for you" strip below it — quiet border,
   raised gradient, one accented left edge — because it is the same class of
   claim: something happened, here is the citation. It differs in one way only,
   and the difference is the point: this one is above the fold.

   The spectrum appears exactly twice, and both times it is a SIGNAL rather
   than decoration: the all-clear check, and the numerals. Everything else is
   the neutral surface the rest of this file already uses. */
.ledger-opening { margin:0 0 14px; border:1px solid var(--border-subtle); border-left:3px solid var(--steel); border-radius:14px; background:linear-gradient(145deg,rgba(17,22,28,.96),rgba(10,13,17,.98)); overflow:hidden; }
.ledger-opening.is-clear { border-left-color:var(--accent-green); }
.ledger-opening > header { display:flex; align-items:center; gap:13px; padding:17px 22px 11px; }
.ledger-opening > header > div { min-width:0; }
.ledger-opening h2 { margin:5px 0 0; color:var(--text-main); font-size:1.1rem; line-height:1.3; }
.opening-check { flex:0 0 auto; width:26px; height:26px; fill:none; stroke:var(--accent-green); stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }

/* The numerals. HarveyOS enforces the number rule at the font level
   (type-system.css maps digits out of the display face by unicode-range), so
   this only has to ask for the numeral face and tabular figures. */
.opening-num { color:var(--accent-mid); font:700 1.32rem/1 var(--font-num); font-feature-settings:"tnum" 1; }
.ledger-opening.is-clear .opening-num { color:var(--accent-green); }

.opening-facts { display:flex; flex-wrap:wrap; gap:8px 26px; margin:0; padding:4px 22px 15px; list-style:none; }
.opening-fact { display:flex; align-items:baseline; gap:8px; min-height:26px; }
.opening-fact span { color:#9eabb7; font-size:.82rem; }

.opening-receipt { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; padding:13px 22px; border-top:1px solid var(--border-subtle); }
.opening-receipt-body { flex:1 1 300px; min-width:0; display:grid; gap:3px; }
.opening-receipt-body b { color:#eef2f5; font-size:.92rem; line-height:1.35; }
.opening-receipt-body small { color:#9eabb7; font-size:.78rem; }
.opening-receipt.is-answered { opacity:.5; }
.opening-receipt-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }

.opening-streak,.opening-week { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin:0; padding:12px 22px; border-top:1px solid var(--border-subtle); color:#9eabb7; font-size:.82rem; }
.opening-clear-line { margin:0; padding:0 22px 17px; color:var(--text-main); font-size:.92rem; font-weight:600; }

/* The one outbound link on this strip, and the only place it points away from
   the ledger: the brief for a meeting starting within the hour and a half.
   Same quiet meta row as the streak line above — it is a pointer, not a claim,
   so it gets no spectrum and no numeral treatment. */
.opening-next { margin:0; padding:12px 22px; border-top:1px solid var(--border-subtle); font-size:.82rem; }
.opening-next a { color:var(--steel-soft); text-decoration:none; font-weight:600; }
.opening-next a:hover { text-decoration:underline; }
.opening-next a:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; border-radius:3px; }

/* The entrance. A card that arrives is read; a card that is simply there is
   scrolled past. It is 260ms and it is off entirely for reduced motion. */
.ledger-opening { animation:opening-arrive .26s cubic-bezier(.2,.7,.3,1) both; }
@keyframes opening-arrive { from { opacity:0; transform:translateY(-5px); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) {
  .ledger-opening { animation:none; }
}

@media (max-width:760px) {
  .ledger-opening > header { padding:15px 15px 9px; }
  .opening-facts { gap:8px 18px; padding:4px 15px 13px; }
  .opening-receipt,.opening-streak,.opening-week,.opening-next { padding:12px 15px; }
  .opening-clear-line { padding:0 15px 15px; }
  .opening-receipt-actions { width:100%; }
  .opening-receipt-actions .ledger-verb { flex:1 1 auto; min-width:92px; }
}

/* ===== WALK-IN BRIEF (2026-08-07) =====================================
   Wave F appends here and nowhere else, so the three-way integration with
   Wave E (which also appends to this file) is trivially additive.

   THE ONE COLOUR RULE ON THIS PAGE. `.is-owed-to-you` is the only place the
   green→blue spectrum appears. It marks a promise someone else made and has
   not kept — the line Mike walks in to collect. Everything else stays on the
   neutral surface, because colour is reserved for signals.

   The grammar is the field/ledger card already in use elsewhere: a card per
   section, a title line, a quiet meta row, and a folded evidence quote. No
   new shell, no new layout primitive. ==================================== */

.wb-head { display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:12px 24px; margin:0 0 18px; padding:0 0 16px; border-bottom:1px solid var(--border-subtle); }
.wb-head-copy { min-width:0; flex:1 1 320px; }
.wb-title { margin:6px 0 8px; font-family:var(--font-display); font-size:clamp(1.55rem,3.4vw,2.2rem); line-height:1.12; color:var(--text-main); }
.wb-when { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; margin:0; color:#9eabb7; font-size:.85rem; }
.wb-countdown { color:var(--accent-blue); font-weight:600; }
.wb-attendees b { color:#eef2f5; }
.wb-head-links { display:flex; flex-wrap:wrap; gap:8px; }
.wb-head-links a { min-height:44px; display:inline-flex; align-items:center; padding:0 15px; border:1px solid var(--border-subtle); border-radius:9px; color:#eef2f5; font-size:.83rem; font-weight:600; text-decoration:none; }
.wb-head-links a.wb-join { border-color:var(--accent-mid); color:var(--steel-soft); }
.wb-head-links a:hover,.wb-head-links a:focus-visible { border-color:var(--border-focus); color:var(--steel-soft); }
.wb-head-links a:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; }

.wb-section { margin:0 0 14px; }
.wb-section-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 14px; margin:0 0 10px; }
.wb-section-head h2 { margin:0; font-size:.95rem; font-weight:600; color:var(--text-main); }
.wb-section-head small { color:#9eabb7; font-size:.76rem; }

/* --- the room -------------------------------------------------------- */
.wb-people { margin:0; padding:0; list-style:none; }
.wb-person { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; min-height:44px; padding:2px; border-top:1px solid var(--border-subtle); }
.wb-person:first-child { border-top:0; }
/* The name IS the tap target, so it carries the 44px rather than the row. */
.wb-person > a,.wb-person > b { flex:0 1 auto; display:inline-flex; align-items:center; min-height:44px; color:#eef2f5; font-size:.9rem; font-weight:600; text-decoration:none; }
.wb-person > a:hover,.wb-person > a:focus-visible { color:var(--steel-soft); }
.wb-person > a:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; border-radius:6px; }
.wb-person-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; color:#9eabb7; font-size:.76rem; }
.wb-chip { display:inline-flex; align-items:center; padding:2px 8px; border:1px solid var(--border-subtle); border-radius:999px; color:#9eabb7; font-size:.7rem; letter-spacing:.02em; }
.wb-chip.is-org { border-color:var(--accent-mid); color:var(--steel-soft); }
.wb-chip.is-suggested { border-color:var(--warning,#C7A847); color:var(--warning,#C7A847); }
.wb-chip.is-unresolved { border-style:dashed; }

/* --- the two ledgers ------------------------------------------------- */
.wb-ledger { margin:0; padding:0; list-style:none; }
.wb-line { display:grid; gap:2px; padding:4px 2px 10px 12px; border-top:1px solid var(--border-subtle); border-left:2px solid transparent; }
.wb-line:first-child { border-top:0; }
/* 44px on the title, and the row gives back the padding it no longer needs,
   so a touch target big enough to hit does not cost a taller ledger. */
.wb-line-title { display:flex; align-items:center; min-height:44px; color:#eef2f5; font-size:.9rem; font-weight:600; line-height:1.35; text-decoration:none; }
.wb-line-title:hover,.wb-line-title:focus-visible { color:var(--steel-soft); }
.wb-line-title:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; border-radius:6px; }
.wb-line-meta { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; color:#9eabb7; font-size:.76rem; }
.wb-due { font-weight:600; }
.wb-due.is-overdue { color:var(--danger,#C86268); }
.wb-due.is-due_today { color:var(--warning,#C7A847); }
.wb-due.is-undated { font-weight:400; font-style:italic; }
.wb-evidence { margin:2px 0 0; padding:0 0 0 10px; border-left:1px solid var(--border-subtle); color:#9eabb7; font-size:.78rem; line-height:1.45; }

/* THE ONE ACCENT. A promise made to Mike that is still open. */
.wb-line.is-owed-to-you { border-left-color:var(--accent-green); }
.wb-line.is-owed-to-you .wb-line-title { color:#f2f3f4; }
.wb-owed .wb-section-head h2 { color:var(--accent-green); }

/* --- live threads ----------------------------------------------------- */
.wb-last-meeting { display:grid; gap:3px; min-height:44px; padding:10px 12px; margin:0 0 8px; border:1px solid var(--border-subtle); border-radius:9px; text-decoration:none; }
.wb-last-meeting b { color:#eef2f5; font-size:.88rem; }
.wb-last-meeting span { color:#9eabb7; font-size:.76rem; }
.wb-last-meeting:hover,.wb-last-meeting:focus-visible { border-color:var(--border-focus); }
.wb-last-meeting:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; }
.wb-mail { margin:0; padding:0; list-style:none; }
.wb-mail li { border-top:1px solid var(--border-subtle); }
.wb-mail li:first-child { border-top:0; }
.wb-mail a { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:2px 12px; min-height:44px; padding:9px 2px; text-decoration:none; }
.wb-mail b { flex:1 1 220px; min-width:0; color:#eef2f5; font-size:.86rem; font-weight:600; }
.wb-mail span { color:#9eabb7; font-size:.75rem; }
.wb-mail a:hover b,.wb-mail a:focus-visible b { color:var(--steel-soft); }
.wb-mail a:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; border-radius:8px; }

/* --- worth asking ----------------------------------------------------- */
.wb-asks { margin:0; padding:0; list-style:none; }
.wb-ask { border-top:1px solid var(--border-subtle); }
.wb-ask:first-child { border-top:0; }
.wb-ask a { display:flex; align-items:center; min-height:44px; padding:10px 2px; color:#eef2f5; font-size:.87rem; line-height:1.4; text-decoration:none; }
.wb-ask a:hover,.wb-ask a:focus-visible { color:var(--steel-soft); }
.wb-ask a:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; border-radius:8px; }

/* --- the footer: what this was briefed from --------------------------- */
.wb-foot { margin:18px 0 0; padding:14px 0 0; border-top:1px solid var(--border-subtle); color:#9eabb7; font-size:.78rem; }
.wb-foot > span b { color:#eef2f5; }
.wb-sources { display:flex; flex-wrap:wrap; gap:6px 14px; margin:8px 0; padding:0; list-style:none; }
.wb-sources li { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border:1px solid var(--border-subtle); border-radius:999px; font-size:.74rem; }
.wb-sources b { color:#eef2f5; }
.wb-foot small { display:block; color:#7f8b96; font-size:.72rem; line-height:1.5; }

/* --- the index: one card per meeting ---------------------------------- */
.wb-cards { display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); margin:0 0 16px; }
.wb-card { display:grid; gap:6px; padding:16px; border:1px solid var(--border-subtle); border-radius:12px; background:var(--surface-raised,#181B1E); text-decoration:none; }
.wb-card:hover,.wb-card:focus-visible { border-color:var(--border-focus); }
.wb-card:focus-visible { outline:2px solid var(--border-focus); outline-offset:2px; }
.wb-card-when { color:#9eabb7; font-size:.75rem; letter-spacing:var(--label-tracking,.14em); text-transform:uppercase; }
.wb-card-when b { color:var(--accent-blue); }
.wb-card h2 { margin:0; font-size:1rem; font-weight:600; line-height:1.3; color:var(--text-main); }
.wb-card-room { margin:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; color:#9eabb7; font-size:.79rem; }
.wb-card-counts { display:flex; flex-wrap:wrap; gap:8px 18px; margin:6px 0 0; padding:10px 0 0; border-top:1px solid var(--border-subtle); }
.wb-count { display:grid; gap:1px; }
.wb-count b { color:#eef2f5; font-size:1.05rem; line-height:1; }
.wb-count small { color:#9eabb7; font-size:.7rem; }
.wb-count.is-owed-to-you b { color:var(--accent-green); }

@media (max-width:760px) {
  .wb-head { align-items:flex-start; }
  .wb-head-links { width:100%; }
  .wb-head-links a { flex:1 1 auto; justify-content:center; }
  .wb-person { padding:11px 2px; }
  .wb-person-meta { flex:1 1 100%; }
  .wb-mail b { flex:1 1 100%; }
  .wb-cards { grid-template-columns:1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-card,.wb-head-links a,.wb-last-meeting { transition:none; }
}
