/* AI Tracker page styles, served from /ai-tracker-assets/ai-tracker.css with
   a content-hash ?v= (see ASSET_VERSIONS in lib/ai-tracker-page.js). Tokens
   and the theming rules are documented under "Theming" in docs/ai-tracker.md. */
:root, :root[data-theme="light"] {
  --bg: #f3f2f2;
  --surface: #eae9e9;
  --text: #201f1d;
  --muted: #6a6763;
  --dim: #928e89;
  --accent: #b68235;
  --accent-deep: #7d5411;
  --accent-tint: rgba(182, 130, 53, 0.12);
  --divider: rgba(32, 31, 29, 0.16);
  --plate-mat: #eae9e9;
  --plate-grade: sepia(0.22) saturate(0.82) contrast(1.05);
}
:root[data-theme="dark"] {
  --bg: #1a1917;
  --surface: #232120;
  --text: #ece8e2;
  --muted: #a6a099;
  --dim: #7a746d;
  --accent: #d9a961;
  --accent-deep: #e1ad66;
  --accent-tint: rgba(217, 169, 97, 0.14);
  --divider: rgba(236, 232, 226, 0.18);
  --plate-mat: #2c2a28;
  --plate-grade: sepia(0.12) saturate(0.9) contrast(1.02);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Lora', Georgia, serif; font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; margin: 0; line-height: 1.12; letter-spacing: -0.015em; }
a { color: var(--accent-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-tint); }
button { font-family: 'Lora', Georgia, serif; }

/* Photographs are matted like a tipped-in plate rather than sitting flush
   on the page — the one image treatment used everywhere here. */
.plate {
  filter: var(--plate-grade);
  border: 4px solid var(--plate-mat);
  outline: 1px solid var(--divider);
  object-fit: cover; border-radius: 2px; flex: 0 0 auto;
}
.plate-blank { background: var(--surface); width: 92px; height: 52px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px 120px; }

/* — masthead — */
.masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 44px 0 14px; flex-wrap: wrap; }
.masthead h1 { font-weight: 400; font-size: 60px; }
.masthead p { margin: 10px 0 0; max-width: 46ch; color: var(--muted); }
.masthead .masthead-links { margin-top: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.masthead-links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--divider); padding-bottom: 1px; }
.masthead-links a:hover { color: var(--accent-deep); border-color: var(--accent); }
.masthead-links a + a { margin-left: 14px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 34px; width: auto; }
.controls { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; flex-wrap: wrap; }
.icons, .account { display: flex; align-items: center; gap: 10px; }

.search { display: flex; align-items: center; gap: 7px; border: 1px solid var(--divider); border-radius: 4px; padding: 7px 11px; }
.search svg { width: 15px; height: 15px; opacity: 0.5; flex: 0 0 auto; }
.search input { border: 0; background: transparent; outline: none; font-family: inherit; font-size: 13px; color: var(--text); width: 200px; }
.search input::placeholder { color: var(--dim); }

.seg { display: flex; border: 1px solid var(--divider); border-radius: 4px; overflow: hidden; }
.seg button {
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 9px 16px; min-height: 40px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.seg button.active { background: var(--text); color: var(--bg); }
/* Match count per view while a search is active (set by apply()). */
.seg button[data-count]::after {
  content: attr(data-count); margin-left: 6px; padding: 0 5px; border-radius: 999px;
  font-family: 'Lora', Georgia, serif; font-size: 10px; letter-spacing: 0;
  border: 1px solid currentColor; opacity: .7;
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--divider); border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { color: var(--accent-deep); border-color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
.phone-only { display: none; }
.icon-moon { display: block; } .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }

/* — iOS "Add to Home Screen" hint (Safari has no install prompt to hook) —
   a bottom sheet, so it never pushes the first headline down. */
.ios-install-hint {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 520px; margin: 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 14px; border: 1px solid var(--accent); border-radius: 4px;
  background: linear-gradient(var(--accent-tint), var(--accent-tint)), var(--bg);
  font-size: 12.5px; color: var(--text); line-height: 1.45;
}
.ios-install-hint .icon-btn { flex: 0 0 auto; width: 34px; height: 34px; border: 0; }

/* — Google sign-in — */
.auth-user { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.auth-user .avatar { width: 26px; height: 26px; border-radius: 50%; }
.auth-user .auth-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* — pin toggle, only rendered when signed in — */
.pin-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent;
  color: var(--dim); cursor: pointer; opacity: .35; transition: opacity .16s, color .16s, background-color .16s;
}
.pin-btn svg { width: 18px; height: 18px; }
.row:hover .pin-btn, .entry:hover .pin-btn, .pin-btn.on, .pin-btn:focus-visible { opacity: 1; }
.pin-btn.on { color: var(--accent-deep); }

/* — Discover's owner-only veto control — a button on the row itself,
   no separate admin queue (see docs/ai-tracker.md). */
.veto-btn {
  flex: 0 0 auto; align-self: center; font-family: 'Lora', Georgia, serif;
  font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 10px; min-height: 30px; border: 1px solid var(--divider); border-radius: 4px;
  background: transparent; color: var(--muted); cursor: pointer; opacity: 0;
  transition: opacity .16s, border-color .16s, color .16s;
}
.row:hover .veto-btn, .veto-btn:focus-visible, .veto-btn.vetoed { opacity: 1; }
.veto-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.veto-btn.vetoed { border-color: var(--accent); color: var(--accent-deep); }
/* Struck through rather than hidden — the owner needs to see what a
   veto removed in order to undo it. */
.row.vetoed .row-title { text-decoration: line-through; opacity: .55; }
.pin-btn:hover { color: var(--accent-deep); background: var(--accent-tint); }
/* Groups Discover's two owner/signed-in controls into one grid cell —
   .row is a 3-track grid (2 tracks at ≤620px) and an owner who is also
   signed in gets both a veto and a pin button; without this wrapper
   those are two separate grid children and the second one falls onto
   an implicit extra row on its own. */
.row-actions { display: flex; align-items: center; gap: 8px; }
/* Both controls are hover-revealed (opacity 0 / .35), which leaves them
   unreachable on a touch device — no hover state means the owner has
   no veto at all on a phone, the one lever the gate inversion depends
   on. Always visible when the device has no hover to reveal them with. */
@media (hover: none) {
  .veto-btn { opacity: 1; }
  .pin-btn { opacity: .55; }
}

/* — dateline — */
.dateline {
  border-top: 1px solid var(--text); border-bottom: 1px solid var(--divider);
  padding: 9px 0; display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  font-variant-numeric: tabular-nums; color: var(--muted);
}
.dateline .new { color: var(--accent-deep); }
.dateline .right { margin-left: auto; }

/* — section heads — */
.mode-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 9px; border-bottom: 1px solid var(--text); margin-bottom: 20px; flex-wrap: wrap; }
.mode-head h2 { font-weight: 400; font-size: 30px; }
.mode-blurb { font-size: 12px; color: var(--muted); }
.mode-count { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--dim); }
.mode { margin-bottom: 56px; }
.mode:last-child { margin-bottom: 0; }

.kicker { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.kicker h2 { font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.kicker span { font-size: 12px; color: var(--muted); }

/* — marks — replace the old three-step rating chip. The middle step was
   the default and sat on more than half the cards, so it prints nothing. */
.mark {
  display: inline-block; margin-left: 8px; padding: 1px 4px; border-radius: 2px;
  font-family: 'Lora', Georgia, serif; font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; vertical-align: middle;
  border: 1px solid var(--divider); color: var(--muted);
}
.mark-core { border-color: var(--accent); color: var(--accent-deep); }
.discover-badge { color: var(--accent-deep); }

/* — tiles: the quick links — */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 8px; }
.tile {
  display: flex; flex-direction: column; gap: 3px; min-height: 62px;
  border: 1px solid var(--divider); border-radius: 4px; padding: 11px 12px;
  text-decoration: none; color: var(--text); transition: border-color .16s, background .16s;
}
.tile:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--text); }
.tile-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 17px; line-height: 1.2; }
.tile-host { font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); }

/* — the river — */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 52px; align-items: start; padding-top: 34px; }
.river-group { margin-bottom: 34px; }
.river-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.river-head h2 { font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.river-head .rule { flex: 1; height: 1px; background: var(--divider); }
.river-head .n { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--dim); }
#river-new .river-head h2 { color: var(--accent-deep); }
#river-new .river-head .rule { background: var(--accent); }
#discover-fold { margin-top: 44px; }
.fold-note { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
/* A same-source burst: lead row plus a toggle for the rest, all inside
   one hairline so it reads as one story with extras, not a new row. */
.burst { border-bottom: 1px solid var(--divider); }
.burst .row { border-bottom: 0; padding-bottom: 6px; }
.burst .row.burst-follow { border-top: 1px dashed var(--divider); padding-top: 10px; }
.burst .row.burst-follow .row-title { font-size: 18px; }
.burst .row.collapsed { display: none; }
.burst-toggle {
  display: block; margin: 0 0 0 68px; padding: 0 0 12px; min-height: 30px; border: 0; background: none;
  font-family: 'Lora', Georgia, serif; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); cursor: pointer; text-align: left;
}
.burst-toggle::before { content: '+ '; }
.burst-toggle[aria-expanded="true"]::before { content: '\2212  '; }
.burst-toggle:hover { color: var(--accent-deep); }

.row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px;
  align-items: start; padding: 14px 8px 14px 0; border-bottom: 1px solid var(--divider);
  text-decoration: none; color: var(--text); transition: background .16s;
}
.row:hover { background: var(--accent-tint); color: var(--text); }
.row-age { font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-top: 5px; }
.row-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.row-title { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 20px; line-height: 1.25; text-wrap: pretty; }
.row-takeaway { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 1px; }
.cluster-coverage { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; letter-spacing: .02em; color: var(--muted); margin-top: 3px; }
.cluster-coverage a { color: var(--accent-deep); text-decoration: underline; }
.cluster-label { color: var(--dim); }
.row-meta { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.row-source { color: var(--accent-deep); }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.row .plate { width: 124px; height: 70px; }

/* Skim-only sources (Matt Wolfe, the hype subs) step back in the river so
   they don't sit at the same weight as Anthropic Research — present for
   signal-timing, but visibly secondary. Dims the content, not the whole
   row, so it composes with the read-state fade below. */
.row[data-noisy="1"] .row-main { opacity: .58; }

/* Clicked items stay on the page but step back, so the river reads as a
   list you are working through rather than one that empties as you go. */
.read { opacity: .42; }
.tick { opacity: 0; letter-spacing: 0; color: var(--accent-deep); }
.read .tick { opacity: 1; }

/* — rail — */
.rail { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 26px; }
.rail h3 { font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--text); }
.rail-note { font-size: 12px; line-height: 1.6; margin: 0 0 8px; color: var(--muted); }
.toggles { display: flex; flex-direction: column; gap: 7px; }
.toggle {
  font-size: 12px; text-align: left; padding: 9px 11px; min-height: 38px;
  border: 1px solid var(--divider); border-radius: 4px; background: transparent;
  color: var(--text); cursor: pointer; transition: border-color .16s, background .16s, color .16s;
}
.toggle:hover { border-color: var(--accent); }
.toggle.active { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-deep); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
  padding: 7px 11px; min-height: 34px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--divider); background: transparent; color: var(--muted);
  transition: border-color .16s, background .16s, color .16s;
}
.pill:hover { border-color: var(--accent); }
.pill.active { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-deep); }
.quiet a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; padding: 5px 0; border-bottom: 1px solid var(--divider); text-decoration: none; color: var(--text); }
.quiet a:hover { color: var(--accent-deep); }
.quiet-age { flex: 0 0 auto; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--dim); }
.linkish { align-self: flex-start; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: none; border: 0; border-bottom: 1px solid var(--divider); padding: 0 0 2px; color: var(--muted); cursor: pointer; }
.linkish:hover { color: var(--accent-deep); border-color: var(--accent); }

/* — directory cards — */
.cards { display: grid; gap: 26px 34px; }
.cards-read { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.cards-watch { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
/* Sections no longer head the page, so each card names the tab and section
   it lives in — otherwise renaming a section in the admin would have no
   visible effect anywhere on the public page. */
.card-origin { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.card-name { font-weight: 600; font-size: 21px; }
.card-name a { color: var(--text); text-decoration: none; }
.card-name a:hover { color: var(--accent-deep); }
.card-desc { font-size: 13px; line-height: 1.6; margin: 6px 0 0; color: var(--muted); }
.entries { margin-top: 12px; border-top: 1px solid var(--text); display: flex; flex-direction: column; }
.entry { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--divider); text-decoration: none; color: var(--text); }
.entry:hover { color: var(--accent-deep); }
.entry-video { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; }
.entry-title { font-size: 14px; line-height: 1.4; text-wrap: pretty; }
.entry-takeaway { font-size: 12px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.entry-age { font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--dim); }
.entry-empty { font-size: 12px; padding: 8px 0; color: var(--dim); }

.drow { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 12px 8px 12px 0; border-bottom: 1px solid var(--divider); text-decoration: none; color: var(--text); transition: background .16s; }
.drow:hover { background: var(--accent-tint); color: var(--text); }
.drow-name { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 18px; }
.drow-desc { font-size: 13px; line-height: 1.5; color: var(--muted); }
.drow-host { font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }

.empty-note { font-size: 14px; color: var(--muted); padding: 40px 0; }
.loading-note { font-style: italic; }
[hidden] { display: none !important; }
.filtered-out { display: none !important; }
/* Rows past the initial river cap — revealed by the "Show more" button. */
.capped { display: none !important; }
.river-more {
  display: block; width: 100%; margin-top: 18px; padding: 12px; min-height: 44px;
  font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--divider); border-radius: 4px; background: transparent;
  color: var(--muted); cursor: pointer; transition: border-color .16s, color .16s;
}
.river-more:hover { border-color: var(--accent); color: var(--accent-deep); }

/* — "About this list", the page footer — set like a colophon: a rule, a
   small caps heading, and the copy in two columns on wide screens. */
.about { margin-top: 72px; padding-top: 16px; border-top: 1px solid var(--text); }
.about h2 { font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }
.about-body { columns: 2 340px; column-gap: 44px; }
.about-body p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.65; color: var(--muted); break-inside: avoid; }
.about-links { margin: 8px 0 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.about-links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--divider); }
.about-links a:hover { color: var(--accent-deep); border-color: var(--accent); }
.about-links a + a { margin-left: 14px; }

/* — /ai-tracker/weekly: one issue, set as a numbered reading list — */
.weekly-page .masthead { padding-bottom: 18px; }
.weekly-page .tagline a { color: inherit; }
.issue { max-width: 760px; padding-top: 30px; }
.issue-title { font-weight: 400; font-size: 38px; margin-bottom: 18px; }
.issue-items { margin: 0; padding: 0; list-style: none; counter-reset: issue; }
.issue-items li { counter-increment: issue; position: relative; padding: 16px 0 16px 52px; border-bottom: 1px solid var(--divider); }
.issue-items li::before {
  content: counter(issue); position: absolute; left: 0; top: 12px;
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 34px; line-height: 1; color: var(--accent);
}
.issue-link { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 22px; line-height: 1.25; color: var(--text); text-decoration: none; }
.issue-link:hover { color: var(--accent-deep); }
.issue-source { display: inline-block; margin-top: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-deep); }
.issue-why { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.issue-narrative { margin: 18px 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--divider); }
.issue-narrative-p { font-size: 15px; line-height: 1.6; margin: 0 0 12px; color: var(--text); }
.issue-narrative-p:last-child { margin-bottom: 0; }
.issue-narrative-p a { color: var(--accent-deep); text-decoration: underline; }
.issue-archive { max-width: 760px; margin-top: 48px; }
.issue-archive h3 { font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 7px; border-bottom: 1px solid var(--text); margin-bottom: 8px; }
.issue-archive ul { list-style: none; margin: 0; padding: 0; }
.issue-archive li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--divider); font-size: 14px; }
.issue-archive a { color: var(--text); text-decoration: none; }
.issue-archive a:hover { color: var(--accent-deep); }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .rail { position: static; }
  .drow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .drow-host { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px 96px; }

  /* Phone masthead: one grid, fed by the desktop markup through
     display: contents, so nothing renders twice. Row 1 is the brand and
     a cluster of icon buttons; the tagline gets two short lines; the
     three views sit in one row. Search, sign-in and the links row only
     appear when their icon is tapped. Measured at 390x844: the first
     headline starts about 250px down, well above the fold. */
  .masthead {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    grid-template-areas: "brand icons" "tag tag" "links links" "account account" "search search" "seg seg";
    gap: 0; padding: 14px 0 10px;
  }
  .brand-block, .controls { display: contents; }
  .brand { grid-area: brand; gap: 10px; }
  .brand img { height: 26px; width: 26px; }
  .masthead h1 { font-size: 31px; }
  .masthead .tagline { grid-area: tag; margin: 6px 0 0; max-width: none; font-size: 13px; line-height: 1.45; }
  .masthead .masthead-links { grid-area: links; display: none; margin: 10px 0 0; }
  .account { grid-area: account; display: none; padding-top: 10px; }
  body.menu-open .masthead-links, body.menu-open .account { display: flex; }
  .icons { grid-area: icons; gap: 6px; }
  .icons .icon-btn { width: 38px; height: 38px; }
  .phone-only { display: inline-flex; }
  .search { grid-area: search; display: none; margin-top: 10px; }
  body.search-open .search { display: flex; }
  .search input { width: 100%; font-size: 16px; }
  .seg { grid-area: seg; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg button { flex: 1 0 auto; padding: 8px 12px; min-height: 40px; font-size: 12px; letter-spacing: .05em; }

  /* Stats: one line. The weekday, source count and read count go; the
     new count and refresh age stay. */
  .dateline { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; gap: 12px; padding: 7px 0; font-size: 10px; }
  .dl-date, .dl-read, .dl-sources { display: none; }
  .dateline .right { margin-left: auto; }

  .layout { padding-top: 18px; }
  .row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .row-title { font-size: 19px; }
  .row .plate { display: none; }
  .burst-toggle { margin-left: 52px; }
  .cards-read, .cards-watch { grid-template-columns: minmax(0, 1fr); }
  /* At 2 tracks a 3rd child (.row-actions) would auto-place onto a new
     row starting in column 1, under the timestamp gutter. Pin it to
     column 2 instead, so it sits under the title where it reads. */
  .row-actions { grid-column: 2; }
}    @media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
