:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --sunken: #f0efeb;
  --border: rgba(20, 18, 14, 0.08);
  --border-strong: rgba(20, 18, 14, 0.14);
  --text: #141310;
  --text-2: #57544d;
  --text-3: #8f8b82;
  --ink: #141310;
  --on-ink: #ffffff;
  --bar-idle: #e3e0d9;
  --bar-hover: #cfcbc1;
  --finance: #b45309;
  --tech: #0d9488;
  --security: #ef4444;
  --search: #2563eb;
  --ai: #6d28d9;
  --good: #2f8a57;
  --trend: #34d399;
  --trend-hover: #047857;
  --bad: #c2412d;
  --brand: #e5533a;
  --ring: rgba(20, 18, 14, 0.18);
  --shadow-sm: 0 1px 2px rgba(20, 18, 14, 0.04);
  --shadow: 0 1px 2px rgba(20, 18, 14, 0.04), 0 4px 16px rgba(20, 18, 14, 0.04);
  --shadow-lg: 0 2px 6px rgba(20, 18, 14, 0.06), 0 24px 64px rgba(20, 18, 14, 0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --logo: "Atkinson Hyperlegible", Verdana, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0d0d0c;
  --surface: #151514;
  --surface-2: #1a1a19;
  --sunken: #111110;
  --border: rgba(255, 255, 250, 0.07);
  --border-strong: rgba(255, 255, 250, 0.13);
  --text: #f1f0ec;
  --text-2: #a9a69e;
  --text-3: #74716a;
  --ink: #f1f0ec;
  --on-ink: #111110;
  --bar-idle: #2a2a28;
  --bar-hover: #3a3a37;
  --finance: #fbbf24;
  --tech: #2dd4bf;
  --security: #ff5c5c;
  --search: #60a5fa;
  --ai: #c084fc;
  --good: #58b87f;
  --trend: #86efac;
  --trend-hover: #064e3b;
  --bad: #e2705c;
  --brand: #ef6a50;
  --ring: rgba(255, 255, 250, 0.22);
  --shadow-sm: none;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0c;
    --surface: #151514;
    --surface-2: #1a1a19;
    --sunken: #111110;
    --border: rgba(255, 255, 250, 0.07);
    --border-strong: rgba(255, 255, 250, 0.13);
    --text: #f1f0ec;
    --text-2: #a9a69e;
    --text-3: #74716a;
    --ink: #f1f0ec;
    --on-ink: #111110;
    --bar-idle: #2a2a28;
    --bar-hover: #3a3a37;
    --finance: #fbbf24;
    --tech: #2dd4bf;
    --security: #ff5c5c;
    --search: #60a5fa;
  --ai: #c084fc;
    --good: #58b87f;
    --trend: #86efac;
    --trend-hover: #064e3b;
    --bad: #e2705c;
    --brand: #ef6a50;
    --ring: rgba(255, 255, 250, 0.22);
    --shadow-sm: none;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--security) 22%, transparent); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
[hidden] { display: none !important; }

/* Progress */

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
.progress.on { opacity: 1; }
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 500ms var(--ease);
}

/* Bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.bar-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 60px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "brand beats zones tools";
  align-items: center;
  gap: 16px;
}
.brand { grid-area: brand; }
.beats { grid-area: beats; justify-self: center; }
.zones { grid-area: zones; }
.bar-end { grid-area: tools; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
.mark { width: 26px; height: 26px; }
.mark .tile { fill: var(--ink); }
.mark .glyph { fill: var(--on-ink); }
.mark .dot { fill: var(--brand); }
.wordmark {
  font-family: var(--logo);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark .w1 { color: var(--text); }
.wordmark .w2 { color: var(--brand); }
.bar-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar.reading .bar-inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand . tools";
}
.desk-back {
  grid-area: tools;
  justify-self: end;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.desk-back:hover { color: var(--text); }
.reading-nav {
  grid-area: tools;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.reading-nav a:hover { color: var(--text); }
.changelog-page .changelog-status {
  margin: 0 0 28px;
  font-size: 12.5px;
  color: var(--text-3);
}
.changelog-page section {
  margin: 0 0 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.changelog-page section:last-of-type { border-bottom: 0; }
.changelog-page h2 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
}
.changelog-version {
  color: var(--text-3);
  font-weight: 400;
}
.changelog-page ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
}
.changelog-page li { margin: 0 0 8px; }
.changelog-page li strong {
  font-weight: 600;
  color: var(--text);
}
.page.essay { max-width: 680px; padding-top: 48px; }
.essay h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.essay .prose { font-size: 16px; line-height: 1.7; }
.essay .prose .lead { font-size: 18px; line-height: 1.55; }
.essay .prose h3 { margin-top: 36px; }

/* Segmented control */

.seg {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 10px;
  background: var(--sunken);
  box-shadow: inset 0 0 0 1px var(--border);
}
.seg button {
  height: 30px;
  padding: 0 14px;
  border-radius: 7px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  transition: color 150ms var(--ease), background 150ms var(--ease), box-shadow 150ms var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button.active {
  color: var(--text);
  font-weight: 600;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong), 0 1px 2px rgba(20, 18, 14, 0.1);
}
.seg.small button { height: 26px; padding: 0 10px; font-size: 12.5px; }
.seg.small.zones button.active {
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--border-strong),
    inset 0 -2px 0 var(--good);
}
.beats button[data-desk=""].active {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: none;
}
.beats button[data-desk="Finance"].active {
  background: color-mix(in srgb, var(--finance) 24%, var(--sunken));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--finance) 50%, var(--border-strong));
}
.beats button[data-desk="Tech"].active {
  background: color-mix(in srgb, var(--tech) 24%, var(--sunken));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tech) 50%, var(--border-strong));
}
.beats button[data-desk="Security"].active {
  background: color-mix(in srgb, var(--security) 22%, var(--sunken));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--security) 45%, var(--border-strong));
}
.beats button[data-desk="Search"].active {
  background: color-mix(in srgb, var(--search) 24%, var(--sunken));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--search) 50%, var(--border-strong));
}
.beats button[data-desk="AI"].active {
  background: color-mix(in srgb, var(--ai) 24%, var(--sunken));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ai) 50%, var(--border-strong));
}
.beats button.active:not([data-desk=""])::before {
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--text) 12%, transparent);
}
.beats button[data-desk]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--text-3);
}
.beats button[data-desk=""]::before { display: none; }
.beats button[data-desk="Finance"]::before { background: var(--finance); }
.beats button[data-desk="Tech"]::before { background: var(--tech); }
.beats button[data-desk="Security"]::before { background: var(--security); }
.beats button[data-desk="Search"]::before { background: var(--search); }
.beats button[data-desk="AI"]::before { background: var(--ai); }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  transition: background 150ms var(--ease), box-shadow 150ms var(--ease), opacity 150ms var(--ease), transform 150ms var(--ease);
}
.btn svg, .icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn.primary { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-sm); }
.btn.primary:hover { opacity: 0.88; }
.btn.primary:active { transform: translateY(0.5px); }
.btn.ghost {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm);
}
.btn.ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.spinning svg { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  color: var(--text-2);
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.icon-btn:hover { background: var(--sunken); color: var(--text); }
.icon-btn:disabled { opacity: 0.35; cursor: default; background: none; }
.icon-btn circle { fill: currentColor; stroke: none; }

.link {
  color: var(--text-2);
  font-weight: 500;
  font-size: 12.5px;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
}
.link:hover { color: var(--text); text-decoration-color: currentColor; }

.daynav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}
.day-label {
  min-width: 96px;
  text-align: center;
  font-weight: 500;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Menu */

.menu-wrap { position: relative; }
.menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 248px;
  padding: 6px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-lg);
  animation: pop 140ms var(--ease);
  transform-origin: top right;
}
@keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(-4px); } }
.menu > button, .menu > a {
  display: flex;
  width: 100%;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
}
.menu > button:hover, .menu > a:hover { background: var(--sunken); }
.menu-sep { height: 1px; margin: 6px 4px; background: var(--border); }
.menu-label {
  padding: 4px 10px 6px;
  font-size: 11.5px;
  color: var(--text-3);
}
.bar-theme { flex-shrink: 0; }
.bar-theme button[data-theme="light"] {
  background: #ffffff;
  color: #141310;
  box-shadow: inset 0 0 0 1px rgba(20, 18, 14, 0.14);
}
.bar-theme button[data-theme="dark"] {
  background: #121211;
  color: #f1f0ec;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 250, 0.12);
}
.bar-theme button[data-theme="light"]:hover { color: #141310; }
.bar-theme button[data-theme="dark"]:hover { color: #f1f0ec; }
.bar-theme button[data-theme="light"].active {
  background: #ffffff;
  color: #141310;
  box-shadow: inset 0 0 0 1px rgba(20, 18, 14, 0.2), 0 0 0 2px #7ec8e8;
}
.bar-theme button[data-theme="dark"].active {
  background: #121211;
  color: #f1f0ec;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 250, 0.18), 0 0 0 2px #7ec8e8;
}

/* Page */

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 96px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 0 28px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.01em;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-optical-sizing: auto;
}
.hero h1 .num { font-feature-settings: "lnum", "tnum"; }
.sub {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
}
.kpis {
  display: flex;
  margin: 0;
  gap: 0;
}
.kpis > div {
  padding: 0 22px;
  border-left: 1px solid var(--border);
  min-width: 120px;
}
.kpis > div:first-child { border-left: 0; }
.kpis dt {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.kpis dd {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.kpis dd small { color: var(--text-3); font-weight: 400; font-size: 13px; margin-left: 4px; }

/* Card */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border), var(--shadow);
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 0;
}
.card-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.card-head p { margin: 0; font-size: 12.5px; }

/* Chart */

.chart-card { padding-bottom: 14px; }

.fomc-banner {
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), inset 4px 0 0 var(--finance);
}
.fomc-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 24px;
  padding: 14px 20px 16px;
}
.fomc-banner-copy h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.fomc-banner-copy .muted {
  margin: 4px 0 0;
  font-size: 13px;
}
.fomc-banner-list {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fomc-banner-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  font-size: 13.5px;
}
.fomc-banner-list a {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.fomc-banner-list a:hover { text-decoration: underline; }
.fomc-banner-time {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.across-desk,
.overlap-page {
  margin-top: 18px;
  padding-bottom: 16px;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 28%, var(--border)),
    inset 4px 0 0 var(--brand);
}
.across-desk-head { align-items: flex-start; }
.across-desk-head h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.01em;
}
.across-desk-head .link {
  color: var(--brand);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent);
}
.across-desk-head .link:hover,
.across-desk-head .link:focus-visible {
  color: var(--text);
  text-decoration-color: currentColor;
}
.across-desk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  padding: 14px 20px 0;
}
.across-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, var(--border));
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.across-card:hover,
.across-card:focus-visible {
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 40%, var(--border)),
    var(--shadow);
  outline: none;
}
.across-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.across-meta {
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.across-pubs {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.chart {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  gap: 4px;
  height: 148px;
  padding: 18px 16px 0;
}
.col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 9px;
  height: 100%;
  border-radius: 8px;
}
.col .fill {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 5px;
  background: var(--bar-idle);
  transition: background 150ms var(--ease), height 400ms var(--ease);
}
.col:not(.weekend):not(.on):not(.today) .fill {
  background: color-mix(in srgb, var(--good) 26%, var(--bar-idle));
}
.col:not(.weekend):not(.on):not(.today):hover .fill {
  background: color-mix(in srgb, var(--good) 38%, var(--bar-hover));
}
.col.weekend:not(.on):not(.today) .fill {
  background: color-mix(in srgb, var(--text-3) 42%, var(--bar-idle));
}
.col.weekend:not(.on):not(.today):hover .fill {
  background: color-mix(in srgb, var(--text-3) 55%, var(--bar-hover));
}
.col.today:not(.on) .fill {
  background: color-mix(in srgb, var(--brand) 62%, var(--bar-idle));
}
.col.today:not(.on):hover .fill {
  background: color-mix(in srgb, var(--brand) 78%, var(--bar-hover));
}
.col.today.on .fill {
  background: var(--brand);
}
.col.today.on:hover .fill {
  background: color-mix(in srgb, var(--brand) 90%, #fff);
}
.col.on:not(.weekend):not(.today) .fill {
  background: color-mix(in srgb, var(--good) 82%, var(--bar-idle));
}
.col.on:not(.weekend):not(.today):hover .fill {
  background: var(--good);
}
.col.weekend.on:not(.today) .fill { background: var(--ink); }
.col .lbl {
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  height: 12px;
}
.col.on .lbl,
.col.today .lbl {
  font-weight: 500;
}
.col.today .lbl {
  color: var(--brand);
}
.col.on:not(.weekend):not(.today) .lbl {
  color: color-mix(in srgb, var(--good) 70%, var(--text));
}
.col.on.weekend:not(.today) .lbl {
  color: var(--text);
}
.col .tip {
  position: absolute;
  left: 50%;
  bottom: calc(var(--h, 0px) + 30px);
  transform: translate(-50%, 4px);
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms var(--ease), transform 120ms var(--ease);
  z-index: 2;
}
.col .tip b { font-weight: 600; font-variant-numeric: tabular-nums; }
.col:hover .tip { opacity: 1; transform: translate(-50%, 0); }
.col:nth-child(-n + 2) .tip { left: 0; transform: translate(0, 4px); }
.col:nth-child(-n + 2):hover .tip { transform: none; }
.col:nth-last-child(-n + 2) .tip { left: auto; right: 0; transform: translate(0, 4px); }
.col:nth-last-child(-n + 2):hover .tip { transform: none; }
.col:disabled { cursor: default; }

/* Grid */

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  margin-top: 32px;
  align-items: start;
}

/* Feed */

.feed-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  left: 12px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
  stroke-linecap: round;
}
.search input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 36px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-sm);
  outline: none;
  font-size: 13.5px;
  transition: box-shadow 150ms var(--ease);
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { box-shadow: 0 0 0 1px var(--text-3), 0 0 0 4px var(--border); }
.search input::-webkit-search-cancel-button { display: none; }
kbd {
  position: absolute;
  right: 10px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.search input:focus ~ kbd { opacity: 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 4px;
}
.chips:empty { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
  text-transform: capitalize;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.chip:hover { color: var(--text); box-shadow: 0 0 0 1px var(--border-strong); }
.chip b {
  font-weight: 500;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.chip.active { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.chip.active b { color: inherit; opacity: 0.7; }
.chip .x {
  color: inherit;
  opacity: 0.55;
  font-size: 13px;
  line-height: 1;
}
.chip .x:hover { opacity: 1; }

.official {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  margin-left: 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--on-ink);
  background: var(--search);
  vertical-align: middle;
}
.pub-name .official,
.story-meta .official { margin-left: 4px; }

.clusters {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cluster {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.cluster header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.cluster header b { color: var(--text); font-weight: 500; }
.cluster a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--text);
}
.cluster a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cluster a span { color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cluster .who-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-right: 8px;
  color: var(--text);
}
.cluster-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.cluster-bar .hour { margin: 0; }
.cluster-bar .link {
  margin-left: auto;
  font-size: 13px;
}
.cluster-open {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.cluster-open:hover { text-decoration: underline; text-underline-offset: 3px; }

.overlap-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px 0;
}
.overlap-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.overlap-head h2.overlap-section-label {
  font-size: 14px;
  color: var(--brand);
  letter-spacing: -0.01em;
}
#overlap-back {
  flex: none;
  color: var(--brand);
  font-weight: 600;
  text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent);
}
#overlap-back:hover,
#overlap-back:focus-visible {
  color: var(--text);
  text-decoration-color: currentColor;
}
#overlap-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: color-mix(in srgb, var(--brand) 55%, var(--text-2));
  font-variant-numeric: tabular-nums;
}
.overlap-body {
  margin-top: 12px;
  padding: 0 20px 4px;
}
.overlap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.overlap-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, var(--border));
}
.overlap-card-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}
.overlap-first-filed,
.cluster-first {
  font-weight: 500;
  color: color-mix(in srgb, var(--brand) 62%, var(--text-2));
  font-variant-numeric: tabular-nums;
}
.overlap-first-badge {
  flex: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
}
.cluster-head-meta {
  font-size: 12px;
  color: var(--text-3);
  text-align: right;
}
.overlap-detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.overlap-copy,
.overlap-dismiss {
  font-size: 12.5px;
  padding: 4px 10px;
}
.overlap-detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.overlap-official {
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--search) 6%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--search) 18%, var(--border));
}
.overlap-official h3 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.overlap-official-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overlap-official-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.overlap-official-list a {
  color: var(--text);
  font-weight: 500;
}
.overlap-official-list a:hover { text-decoration: underline; }
.overlap-official-list span {
  font-size: 12px;
  color: var(--text-3);
}
.overlap-step-first::before {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, var(--surface));
}
.overlap-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-3);
}
.overlap-card header .link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
}
.overlap-preview {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-3);
}
.overlap-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.overlap-step {
  position: relative;
  padding: 0 0 18px 20px;
  border-left: 2px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  margin-left: 8px;
}
.overlap-step:last-child { padding-bottom: 4px; }
.overlap-step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}
.overlap-who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
}
.overlap-story {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}
.overlap-story:hover { text-decoration: underline; text-underline-offset: 3px; }
.overlap-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.overlap-all { margin-top: 16px; }
.overlap-empty { margin: 8px 0 0; }

/* Filing order (overlap cluster detail) */

.filing-order {
  margin: 16px 0 20px;
  padding: 16px 16px 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 16%, var(--border));
}
.filing-order-head {
  margin-bottom: 12px;
}
.filing-order-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.filing-order-hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-3);
}
.filing-order-track-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.filing-order-track {
  --marker-stack: 1;
  position: relative;
  height: 44px;
  margin-top: calc(24px + var(--marker-stack) * 34px);
  border-radius: 10px;
  background: color-mix(in srgb, var(--text) 6%, var(--surface));
  box-shadow: inset 0 0 0 1px var(--border);
  overflow: visible;
}
.filing-order-marker-stack {
  position: absolute;
  bottom: 100%;
  left: calc(var(--pos) * 100%);
  transform: translate(-50%, 6px);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 6px;
  z-index: 2;
  pointer-events: none;
}
.filing-order-marker-stack-multi {
  z-index: 4;
  padding-bottom: 2px;
}
.filing-order-marker-stack .filing-order-marker {
  pointer-events: auto;
}
:root[data-theme="dark"] .filing-order-track {
  background: var(--bar-idle);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .filing-order-track {
    background: var(--bar-idle);
    box-shadow: inset 0 0 0 1px var(--border-strong);
  }
}
.filing-order-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.filing-order-marker .avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
  box-shadow:
    0 0 0 2px var(--surface),
    0 1px 3px rgba(0, 0, 0, 0.12);
}
.filing-order-marker-first .avatar {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--brand) 50%, var(--surface)),
    0 1px 4px rgba(0, 0, 0, 0.14);
}
:root[data-theme="dark"] .filing-order-marker .avatar {
  box-shadow:
    0 0 0 2px var(--bar-hover),
    0 2px 6px rgba(0, 0, 0, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .filing-order-marker .avatar {
    box-shadow:
      0 0 0 2px var(--bar-hover),
      0 2px 6px rgba(0, 0, 0, 0.45);
  }
}
.filing-order-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.filing-order-roster {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filing-order-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.filing-order-row-first {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 28%, var(--border));
}
.filing-order-row-flash {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 45%, var(--border));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}
.filing-order-rank {
  flex: none;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filing-order-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #2a1f06;
  background: linear-gradient(165deg, #fff0a8 0%, #ffd24a 42%, #f0a800 100%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, #d49200 55%, transparent),
    0 1px 4px color-mix(in srgb, #f0a800 35%, transparent);
}
:root[data-theme="dark"] .filing-order-medal {
  color: #1f1604;
  background: linear-gradient(165deg, #ffe566 0%, #ffc933 45%, #e8a000 100%);
  box-shadow:
    0 0 0 1px rgba(255, 210, 74, 0.45),
    0 0 10px color-mix(in srgb, #ffc933 25%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .filing-order-medal {
    color: #1f1604;
    background: linear-gradient(165deg, #ffe566 0%, #ffc933 45%, #e8a000 100%);
    box-shadow:
      0 0 0 1px rgba(255, 210, 74, 0.45),
      0 0 10px color-mix(in srgb, #ffc933 25%, transparent);
  }
}
.filing-order-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filing-order-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
}
.filing-order-title-row b {
  font-size: 13px;
  font-weight: 600;
}
.filing-order-time {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.filing-order-lag {
  font-size: 12px;
  font-weight: 500;
  color: color-mix(in srgb, var(--brand) 55%, var(--text-2));
  font-variant-numeric: tabular-nums;
}
.filing-order-story {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
}
.filing-order-story:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.watch-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--sunken);
  font-size: 13px;
}
.watch-banner p { margin: 0; color: var(--text-2); }
.lag { color: var(--text-3); }

.hours {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  align-items: end;
  height: 72px;
  margin: 8px 0 4px;
}
.hours i {
  display: block;
  height: calc(4px + (100% - 4px) * var(--r, 0));
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.8;
}
.hour-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.profile-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 18px;
}
.profile-kpis div { min-width: 0; }
.profile-kpis dt {
  font-size: 11.5px;
  color: var(--text-3);
}
.profile-kpis dd {
  margin: 2px 0 0;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.profile-series {
  display: grid;
  grid-template-columns: repeat(90, minmax(0, 1fr));
  gap: 1px;
  align-items: end;
  height: 48px;
  margin: 8px 0 18px;
}
.profile-series i {
  display: block;
  height: calc(2px + (100% - 2px) * var(--r, 0));
  background: var(--bar-hover);
  border-radius: 1px;
}
.profile-series i.on { background: var(--ink); }

.focus {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.focus h2 {
  margin: 1px 0 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.focus p { margin: 0; color: var(--text-2); max-width: 44rem; }
.focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-3);
}
.focus-meta a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.focus-meta a:hover { color: var(--text); }
.focus-actions { display: flex; gap: 6px; }

/* Stream */

.stream { margin-top: 18px; }
.hour {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.hour::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.hour span { color: var(--text-3); font-weight: 400; order: 2; }
.hour::after { order: 1; }
.stream > .hour:first-child { margin-top: 6px; }

.story {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 12px;
  margin: 0 -12px;
  border-radius: 12px;
  transition: background 150ms var(--ease);
}
.story:hover { background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.story time {
  padding-top: 3px;
  font-size: 12.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.story-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-2);
}
.story-meta .who,
.story-meta a.who {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.story-meta .who:hover,
.story-meta a.who:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-strong); }
.ssr-more { margin: 12px 0 0; font-size: 13px; }
.ssr-overlap-list { margin: 0; padding-left: 1.25rem; }
.story-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); opacity: 0.6; }
.story-meta .t-inline { display: none; color: var(--text-3); font-variant-numeric: tabular-nums; }
.story-meta .sec { text-transform: capitalize; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-meta .story-overlap {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.hero-extra {
  font-size: 0.42em;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: -0.01em;
}
.story-sitemap-updated {
  background: color-mix(in srgb, var(--text) 2.5%, var(--surface));
  box-shadow: inset 3px 0 0 color-mix(in srgb, #6b7c93 55%, var(--border));
}
.story-sitemap-updated:hover {
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, #6b7c93 55%, var(--border)),
    0 0 0 1px var(--border);
}
.story-sitemap-badge {
  flex: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: color-mix(in srgb, #5a6d85 70%, var(--text-2));
  background: color-mix(in srgb, #6b7c93 10%, var(--surface));
  border-radius: 4px;
  padding: 1px 6px;
}
.story-filed-orig {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.story h3 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.28;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  text-wrap: pretty;
}
.story h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.story .who, .story .kw button { position: relative; z-index: 1; }
.story .kw {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-3);
}
.story .kw button:hover { color: var(--text); }
.story .ext {
  position: absolute;
  top: 16px;
  right: 14px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 150ms var(--ease);
}
.story:hover .ext { opacity: 1; }

.avatar {
  --tone: var(--text-3);
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--sans);
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 13%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 18%, transparent);
  flex: none;
  line-height: 1;
  text-transform: none;
}
.avatar.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }
.avatar.md { width: 30px; height: 30px; border-radius: 8px; font-size: 10.5px; }
.avatar.Finance { --tone: var(--finance); }
.avatar.Tech { --tone: var(--tech); }
.avatar.Security { --tone: var(--security); }
.avatar.Search { --tone: var(--search); }
.avatar.AI { --tone: var(--ai); }
.story-meta .avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.avatar.logo {
  background: transparent;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 22%, transparent);
  overflow: hidden;
}
:root[data-theme="dark"] .avatar.logo {
  --avatar-tile: #f3f2ee;
  background: var(--avatar-tile);
  box-shadow:
    0 0 0 1px color-mix(in srgb, #141310 10%, var(--avatar-tile)),
    0 1px 2px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .avatar.logo {
    --avatar-tile: #f3f2ee;
    background: var(--avatar-tile);
    box-shadow:
      0 0 0 1px color-mix(in srgb, #141310 10%, var(--avatar-tile)),
      0 1px 2px rgba(0, 0, 0, 0.35);
  }
}
.avatar.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.more { display: flex; margin: 24px auto 0; }

.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-2);
}
.empty h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.empty p { margin: 0 auto; max-width: 30rem; }

.skeleton .line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--sunken), var(--bar-idle), var(--sunken));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Side */

.side { position: sticky; top: 84px; }
.pubs { padding-bottom: 8px; }
.rail { padding: 10px 8px 0; }
.pub {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 150ms var(--ease);
}
.pub:hover { background: var(--surface-2); }
.pub.active { background: var(--sunken); }
.pub-main { min-width: 0; }
.pub-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pub-sub.bad { color: var(--bad); }
.pub-sub.pub-sub-official .status-dot { background: var(--search); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); flex: none; }
.status-dot.bad { background: var(--bad); }
.status-dot.idle { background: var(--text-3); opacity: 0.5; }
.pub-end { display: flex; align-items: center; gap: 10px; }
.pub-end svg { display: block; }
.pub-end rect { fill: var(--bar-idle); }
.pub-end rect.last { fill: var(--text-3); }
.pub-end rect.last.today { fill: var(--good); }
.pub.spike .pub-end rect { fill: color-mix(in srgb, var(--bad) 20%, var(--bar-idle)); }
.pub.spike .pub-end rect.last { fill: color-mix(in srgb, var(--bad) 40%, var(--text-3)); }
.pub.spike .pub-end rect.last.today { fill: var(--bad); }
.pub-count {
  min-width: 28px;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.pub-count.zero { color: var(--text-3); font-weight: 400; }
.busy {
  height: 17px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--bad);
  background: color-mix(in srgb, var(--bad) 10%, transparent);
  flex: none;
}
.quiet {
  height: 17px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--sunken);
  flex: none;
}
.record {
  margin-left: auto;
  padding: 2px 7px;
  margin-right: -7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--trend);
  flex: none;
  transition:
    color 150ms var(--ease),
    background 150ms var(--ease),
    box-shadow 150ms var(--ease);
}
.record:hover,
.record:focus-visible {
  color: #ffffff;
  background: var(--trend-hover);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--trend) 55%, transparent);
  outline: none;
}
:root[data-theme="dark"] .record:hover,
:root[data-theme="dark"] .record:focus-visible {
  color: #bbf7d0;
  background: var(--trend-hover);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--trend) 40%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .record:hover,
  :root:not([data-theme="light"]) .record:focus-visible {
    color: #bbf7d0;
    background: var(--trend-hover);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--trend) 40%, transparent);
  }
}
.pub-name .name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
#profile-body h3 {
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 500;
}
#profile-body p {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.45;
}
.chip button { font: inherit; color: inherit; }
.rail-group {
  margin: 12px 10px 4px;
  font-size: 11.5px;
  color: var(--text-3);
}
.rail-group:first-child { margin-top: 2px; }
.side-note {
  margin: 14px 6px 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-3);
}
.side-note .link { font-size: 12px; }

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  animation: rise 200ms var(--ease);
  white-space: nowrap;
}
.toast.bad { background: var(--bad); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* Dialogs */

dialog {
  border: 0;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong), var(--shadow-lg);
}
dialog::backdrop {
  background: rgba(10, 10, 9, 0.32);
  backdrop-filter: blur(3px);
}
dialog[open] { animation: pop 180ms var(--ease); }
.sheet {
  width: min(560px, 100vw);
  height: 100vh;
  max-height: 100vh;
  margin: 0 0 0 auto;
  border-radius: 0;
}
.sheet[open] { animation: slide 240ms var(--ease); }
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
.sheet form { padding: 28px 32px 40px; }
.modal {
  width: min(480px, calc(100vw - 32px));
  border-radius: 16px;
}
.modal form { padding: 24px; }
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.sheet-head .eyebrow { margin-bottom: 6px; }
.sheet-head h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.prose { color: var(--text-2); font-size: 14px; line-height: 1.65; }
.prose .lead { color: var(--text); font-size: 16px; line-height: 1.55; margin-top: 0; }
.prose h3 {
  margin: 28px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.prose p { margin: 8px 0; }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--brand); }
.brand-name {
  font-family: var(--logo);
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-name .w1 { color: var(--text); }
.brand-name .w2 { color: var(--brand); }
.essay h1 .brand-name {
  font-size: 0.88em;
  vertical-align: baseline;
}
.prose code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--sunken);
  padding: 1px 5px;
  border-radius: 4px;
}

.field { display: block; margin-top: 14px; }
.field > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}
.field em { font-style: normal; font-weight: 400; color: var(--text-3); font-size: 12px; }
.field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
  outline: none;
  transition: box-shadow 150ms var(--ease);
}
.field input:focus { box-shadow: 0 0 0 1px var(--text-3), 0 0 0 4px var(--border); }
.form-error { margin: 14px 0 0; color: var(--bad); font-size: 13px; }
.unlock-note { margin: 0; font-size: 13px; line-height: 1.5; }
.unlock-note .code {
  font-family: var(--mono);
  font-size: 12px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }

.pubs-fab {
  display: none;
}
.pubs-drawer {
  margin: 0;
  padding: 0;
  border: 0;
  width: min(100%, 480px);
  max-width: none;
  max-height: min(78vh, 640px);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin-inline: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}
.pubs-drawer::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.pubs-drawer-head {
  padding: 16px 16px 8px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.rail-drawer {
  display: block;
  overflow-y: auto;
  max-height: calc(min(78vh, 640px) - 72px);
  padding: 0 12px calc(16px + env(safe-area-inset-bottom));
}
.rail-drawer .pub {
  width: 100%;
  box-shadow: 0 0 0 1px var(--border);
}
.rail-drawer .rail-group {
  display: block;
  padding: 12px 8px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Responsive */

@media (max-width: 1080px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .side { position: static; order: -1; }
  .pubs .card-head { padding-bottom: 2px; }
  .rail {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px 6px;
    scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail-group { display: none; }
  .pub {
    width: auto;
    flex: none;
    box-shadow: 0 0 0 1px var(--border);
    padding: 7px 10px;
  }
  .pub-end svg { display: none; }
  .side-note { display: none; }
  .kpis > div { padding: 0 16px; min-width: 0; }
}

@media (max-width: 1180px) {
  .bar-inner {
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "zones zones"
      "beats beats";
    padding: 10px 16px;
    row-gap: 10px;
  }
  .zones { justify-self: start; }
  .beats { justify-self: stretch; overflow-x: auto; scrollbar-width: none; }
}

@media (max-width: 820px) {
  .pubs-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: calc(16px + env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 40;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: var(--surface);
    background: var(--ink);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  }
  .side {
    display: none;
  }
  .filing-order-track-wrap {
    width: 100%;
  }
  .heatmap .cell-hit {
    min-width: 44px;
    min-height: 44px;
  }
  .bar-inner {
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand tools"
      "zones zones"
      "beats beats";
    padding: 10px 16px;
    row-gap: 10px;
  }
  .beats { justify-self: stretch; overflow-x: auto; scrollbar-width: none; }
  .beats button { flex: 1; }
  .day-label { min-width: 78px; }
  .page { padding: 0 16px 72px; }
  .hero { flex-direction: column; align-items: flex-start; padding: 28px 0 20px; gap: 22px; }
  .hero h1 { font-size: 42px; }
  .page.essay { padding-top: 28px; }
  .essay h1 { font-size: 36px; }
  .kpis { width: 100%; }
  .kpis > div { flex: 1; padding: 0 12px; }
  .kpis > div:first-child { padding-left: 0; }
  .chart-card.desk-overview {
    display: none;
  }
  .card-head { padding: 14px 16px 0; }
  .feed-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .feed-head .mode { align-self: flex-start; }
  .story { grid-template-columns: 1fr; gap: 0; padding: 12px 10px; margin: 0 -10px; }
  .story > time { display: none; }
  .story-meta .t-inline { display: inline-block; }
  .story .ext { display: none; }
  .story h3 { font-size: 18.5px; }
  .focus { grid-template-columns: auto minmax(0, 1fr); }
  .focus-actions { grid-column: 1 / -1; }
}

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

@media (max-width: 480px) {
  .bar-inner { padding: 10px 14px; column-gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
  .wordmark { font-size: 16px; }
  .brand { gap: 8px; }
  .bar-end { gap: 4px; }
  .day-label { min-width: 64px; }
}

@media (max-width: 400px) {
  .wordmark { font-size: 15px; }
  .mark { width: 24px; height: 24px; }
}

/* Desk hours (“When they filed”) */

.hours-card { margin-bottom: 20px; }
.hours-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
}
.hours-card-intro { min-width: 0; }
.hours-peak-compact {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-2);
}
.hours-peak-compact b { color: var(--brand); font-weight: 500; }
.hours-expand {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 13px;
}
.hours-details[hidden] { display: none !important; }
.hours-details:not([hidden]) .hours-summary .peak { display: none; }
.hours-frame {
  margin: 0 20px 18px;
  padding: 0 18px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.hours-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 4px 0 18px;
}
.hours-summary .peak {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
}
.hours-summary .peak b { color: var(--brand); font-weight: 400; }
.hours-summary .meta { margin: 0; font-size: 13px; color: var(--text-2); }
.hours-stack {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  align-items: end;
  height: 88px;
  margin: 0 0 4px;
}
.hours-stack .slot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-width: 0;
  border-radius: 2px;
  overflow: hidden;
  background: var(--sunken);
}
.hours-stack .slot.is-peak { box-shadow: 0 0 0 1px var(--brand); }
.hours-stack .slot i { display: block; width: 100%; border-radius: 1px; }
.hours-stack .slot .fin { background: var(--finance); opacity: 0.85; }
.hours-stack .slot .tec { background: var(--tech); opacity: 0.85; }
.hours-stack .slot .sec { background: var(--security); opacity: 0.85; }
.hours-stack .slot .srch { background: var(--search); opacity: 0.85; }
.hours-stack .slot .ai { background: var(--ai); opacity: 0.85; }
.desk-hour-scale {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.desk-hour-scale span { text-align: center; min-width: 0; }
.hours-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 12px 0 20px;
  font-size: 12px;
  color: var(--text-2);
}
.hours-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hours-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.hours-by-room { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.hours-frame .heatmap-wrap { overflow: auto; margin: 0 -18px; padding: 4px 18px; }
.heatmap {
  display: grid;
  grid-template-columns: minmax(132px, 1.55fr) repeat(24, minmax(14px, 1fr)) minmax(36px, auto);
  gap: 2px;
  font-size: 11px;
  min-width: 640px;
}
.heatmap .h {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-3);
  text-align: center;
  padding-bottom: 4px;
}
.heatmap .h.peak { color: var(--brand); font-weight: 500; }
.heatmap .name {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-weight: 500;
}
.heatmap .name i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--tone, var(--text-3));
}
.heatmap .cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--sunken);
  min-height: 14px;
}
.heatmap .cell[data-n="0"] { opacity: 0.45; }
.heatmap .cell-hit {
  cursor: pointer;
}
.heatmap .cell-hit:hover,
.heatmap .cell-hit:focus-visible {
  box-shadow: 0 0 0 1px var(--brand);
  outline: none;
}
.story.heatmap-focus {
  box-shadow: 0 0 0 1px var(--brand), 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: var(--radius-sm);
}
.heatmap-wrap { position: relative; }
.heatmap-popover {
  position: fixed;
  z-index: 50;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow), 0 12px 40px rgba(0, 0, 0, 0.18);
  max-height: min(320px, 70vh);
  overflow: auto;
}
.heatmap-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.heatmap-popover-head h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
}
.heatmap-popover-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.heatmap-popover-list li { margin: 0; }
.heatmap-popover-link {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
}
.heatmap-popover-link:hover { background: var(--sunken); }
.heatmap-popover-title-line {
  display: block;
  font-size: 13.5px;
  line-height: 1.35;
  margin-bottom: 2px;
}
.heatmap-popover-time {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.heatmap .tot {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  text-align: right;
  align-self: center;
}
.heatmap .row-sum {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  align-self: center;
  color: var(--text-2);
}
.heatmap .row-sum.peak { color: var(--brand); }
