:root, html.dark {
  color-scheme: dark;
  --bg: #151b1d;
  --bg-2: #1b2326;
  --surface: #20292c;
  --surface-raised: #283337;
  --surface-soft: rgba(224,235,235,.045);
  --text: #f2f3ef;
  --muted: #aebec3;
  --muted-strong: #ced9dc;
  --accent: #80cdc1;
  --accent-2: #a1c4bd;
  --line: rgba(223,234,236,.15);
  --line-strong: rgba(223,234,236,.3);
  --shadow: 0 8px 24px rgba(0,0,0,.2);
}
html.light {
  color-scheme: light;
  --bg: #f7f5ef;
  --bg-2: #eeece5;
  --surface: #fcfbf7;
  --surface-raised: #fffefb;
  --surface-soft: rgba(32,35,38,.035);
  --text: #202326;
  --muted: #596870;
  --muted-strong: #45535a;
  --accent: #236c65;
  --accent-2: #466f68;
  --line: rgba(32,35,38,.14);
  --line-strong: rgba(32,35,38,.28);
  --shadow: 0 8px 24px rgba(32,35,38,.08);
}
@media (prefers-color-scheme: light) {
  html:not(.dark):not(.light) {
    color-scheme: light;
    --bg: #f7f5ef;
    --bg-2: #eeece5;
    --surface: #fcfbf7;
    --surface-raised: #fffefb;
    --surface-soft: rgba(32,35,38,.035);
    --text: #202326;
    --muted: #596870;
    --muted-strong: #45535a;
    --accent: #236c65;
    --accent-2: #466f68;
    --line: rgba(32,35,38,.14);
    --line-strong: rgba(32,35,38,.28);
    --shadow: 0 8px 24px rgba(32,35,38,.08);
  }
}
/* Resolve the pinned UI library's aliases on the same element as its themes. */
:root, html.dark, html.light {
  --surface-2: var(--surface-raised);
  --border: var(--line);
  --radius: 5px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: Iowan Old Style, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --topbar-height: 90px;
  --mobile-topbar-height: 140px;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font: 400 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
#app {
  position: relative;
  inset: auto;
  transform: none;
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  max-height: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
}
#app :where(main, section, article, aside, nav, form, div, header, footer) { min-width: 0; }
#app :where(h1, h2, h3, p, a, label, span, button) { overflow-wrap: anywhere; }
#app #topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: block;
  min-height: var(--topbar-height);
  margin: 0;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  background: var(--bg);
  backdrop-filter: blur(18px);
}
#app #topbar::after { content: none; }
#app .masthead { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; max-width: 1440px; margin: auto; }
#app .brand { display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 44px; color: var(--text); text-decoration: none; }
#app .brand-mark { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--accent); background: var(--surface-soft); font: 600 20px var(--display); }
#app .brand-copy { display: grid; }
#app .brand-name { color: var(--text); font: 600 clamp(23px, 2.5vw, 34px)/1.1 var(--display); letter-spacing: -.045em; }
#app .brand-deck { margin-top: 4px; color: var(--muted-strong); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
#app .topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
#app .publication-layout { display: grid; grid-template-columns: minmax(0,1fr); width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }
#app #news-main { min-width: 0; width: 100%; height: auto; color: var(--text); background: var(--bg); padding: 24px 0 48px; container-type: inline-size; }
#app #sidebar {
  display: none;
  visibility: hidden;
  pointer-events: none;
  color: var(--text);
  background: var(--bg-2);
}
#app #sidebar.is-open {
  display: block;
  visibility: visible;
  pointer-events: auto;
  position: fixed;
  z-index: 30;
  inset: var(--mobile-topbar-height) auto 0 16px;
  width: min(340px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  height: auto;
  max-height: calc(100dvh - var(--mobile-topbar-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 18px 36px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: none;
}
#app #menu-toggle { position: relative; z-index: 41; }
#app .sidebar-heading { margin-bottom: 24px; }
#app .sidebar-heading h2 { margin: 4px 0 8px; font: 600 29px/1.15 var(--display); letter-spacing: -.035em; }
#app .sidebar-intro, #app .sidebar-footer, #app .form-note { color: var(--muted); font-size: 12px; }
#app .sidebar-section, #app .source-settings, #app .sidebar-footer { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
#app .eyebrow, #app .sidebar-section h3 { margin: 0 0 10px; color: var(--muted); font: 750 12px/1.4 var(--font); letter-spacing: .1em; text-transform: uppercase; }
#app #source-list, #app #source-filter { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
#app .source-row { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; padding: 0; list-style: none; }
#app .source-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; min-height: 44px; margin: 0; cursor: pointer; }
#app #source-all, #app .source-choice {
  appearance: none;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted-strong);
  background: var(--surface-soft);
  box-shadow: none;
  font: 600 13px/1.4 var(--font);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  cursor: pointer;
}
#app #source-all:hover, #app .source-choice:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-raised); }
#app #source-all[aria-pressed='true'], #app .source-choice[aria-pressed='true'] { color: var(--accent); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: inset 3px 0 var(--accent); }
#app .source-choice:focus-visible, #app #source-all:focus-visible, #app .source-toggle:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
#app .source-name { flex: 1; min-width: 0; }
#app .source-count, #app .source-leaning { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
#app .source-count { margin-left: auto; }
#app .source-toggle input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
#app #add-source-form { display: grid; gap: 10px; margin-top: 18px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
#app #add-source-form button[type='submit'] { appearance: none; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: var(--radius); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); box-shadow: none; font: 650 13px/1.4 var(--font); cursor: pointer; }
#app #add-source-form button[type='submit']:hover { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); }
#app .field, #app #add-source-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
#app input:not([type="checkbox"]), #app select, #app textarea, #app #query {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface);
  font: 400 16px/1.4 var(--font);
  box-shadow: none;
}
#app input::placeholder, #app textarea::placeholder { color: var(--muted); opacity: 1; }
#app select option { color: var(--text); background: var(--surface); }
#app :is(input, select, textarea, button, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#app .btn { min-width: 44px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); background: var(--surface-raised); font: 650 12px/1.25 var(--font); box-shadow: none; white-space: normal; }
#app .btn[disabled] { opacity: 1; color: var(--muted); cursor: wait; }
#app .btn.ghost { background: var(--surface-soft); }
#app .btn.primary { color: var(--text); background: color-mix(in srgb, var(--accent) 17%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
#app .btn:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface-raised)); }
#app .edition-header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
#app .edition-header h1 { margin: 0; font: 550 clamp(32px, 4vw, 52px)/1.05 var(--display); letter-spacing: -.045em; }
#app .edition-summary { max-width: 48ch; margin: 10px 0 0; color: var(--muted); font-size: 12px; }
#app .search-field { flex: 0 1 280px; width: 100%; }
#app #status { margin: 0; padding: 12px 0; color: var(--muted-strong); font-size: 13px; line-height: 1.5; }
#app #status:empty { display: none; }
#app #feed { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); grid-auto-flow: row; gap: 1.5rem; column-count: auto; column-width: auto; align-items: start; width: 100%; margin: 24px 0 0; padding: 0; }
#feed > article[data-card-variant='standard'] { grid-column: auto; min-width: 0; }
#feed > article[data-card-variant='hero'] { grid-column: 1 / -1; min-width: 0; }
#app .story-card {
  display: grid;
  grid-column: auto;
  grid-template-columns: minmax(0,1fr);
  min-width: 0;
  max-width: 100%;
  align-content: start;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  box-shadow: none;
}
#app .story-media { display: block; position: relative; min-width: 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
#app .news-story-card .story-media[hidden] { display: none; }
#app .story-media img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
#app .story-media img[hidden] { display: none; }
#app .image-caption { position: absolute; bottom: 8px; left: 8px; max-width: calc(100% - 16px); padding: 4px 8px; color: var(--text); background: var(--bg); font-size: 12px; border-radius: 4px; }
#app .story-body { display: flex; flex-direction: column; min-width: 0; padding: 20px; }
#app .story-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
#app .story-source { color: var(--accent); font-weight: 750; }
#app .story-title, #app .story-headline { margin: 0 0 12px; font: 600 clamp(22px,2vw,28px)/1.25 var(--display); letter-spacing: -.025em; }
#app .story-title a, #app .story-headline .story-title-link { display: block; min-height: 44px; color: var(--text); text-decoration: none; }
#app .story-title a:hover, #app .story-headline .story-title-link:hover { color: var(--accent); text-decoration: none; }
#app .story-headline .story-title-link:focus-visible { color: var(--accent); outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
/* Summaries expand naturally; paragraph visibility is managed by view.js. */
#app .story-description, #app .story-summary { height: auto; max-height: none; overflow: visible; margin: 0 0 12px; color: var(--muted-strong); font: 400 15px/1.6 var(--font); }
#app .story-summary p { max-width: 66ch; margin: 0 0 1em; }
#app .story-summary > p:first-child { font-size: 1.08em; }
#app .story-summary p:last-child { margin-bottom: 0; }
#app .story-description:empty, #app .story-summary:empty, #app .story-summary-more[hidden] { display: none; }
#app .story-expand { appearance: none; display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; margin: 4px 0 0; padding: 6px 2px; border: 0; border-radius: 3px; color: var(--accent); background: transparent; box-shadow: none; font: 650 13px/1.4 var(--font); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#app .story-expand:hover { color: var(--text); }
#app .story-expand[hidden] { display: none; }
#app .story-og { display: none; }
#app .story-og[hidden] { display: none; }
#app .og-site-name { color: var(--muted-strong); font-weight: 700; }
#app .story-links { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 4px 12px; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
#app .story-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted-strong); font-size: 12px; font-weight: 750; text-underline-offset: 3px; }
#app .story-links .discussion-link { color: var(--accent); }
#app .story-links .story-link { gap: 6px; color: var(--muted-strong); font-weight: 600; text-decoration: none; }
#app .story-links .story-link::after { content: '↗'; color: var(--muted); }
#app .story-links .story-link:hover { color: var(--text); text-decoration: underline; }
#app .discussion-meta, #app .seen-flag { color: var(--muted); font-size: 12px; }
#app .is-seen .seen-flag { color: var(--accent-2); }
#app .is-seen .story-media img { filter: saturate(.78); }
/* Preserve DOM order and stable variant slots through refresh and enrichment. */
#feed > .news-story-card {
  display: grid;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  grid-area: auto;
}
#feed, #feed > .news-story-card, #feed .story-media, #feed .story-body { transition: none; animation: none; }
#app .news-story-card .story-media { display: block; height: auto; min-height: 0; max-height: 280px; aspect-ratio: 16 / 9; }
#app .news-story-card[data-card-variant='hero'] .story-headline { font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
#app .news-story-card[data-card-variant='hero'] .story-media { max-height: 360px; }
#app .photo-placeholder { display: none; }
#app .news-story-card .story-body { height: auto; min-height: 0; max-height: none; }
/* Break on available feed width, including when the desktop sidebar is present. */
@container (min-width: 584px) {
  #app .news-story-card[data-card-variant='hero'] .story-media { aspect-ratio: 2 / 1; }
  #app .news-story-card[data-card-variant='hero'] .story-body { padding: 24px; }
}
#app .feed-empty-state, #app .empty-state, #app .loading-state, #app .error-state { grid-column: 1 / -1; width: 100%; }
#app .feed-empty-state { padding: 48px 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: var(--surface); text-align: center; }
#app .feed-empty-state h2 { margin: 0 0 16px; color: var(--text); font: 600 28px/1.25 var(--display); }
#app .feed-empty-state p { margin: 0; }
#app .feed-heading { margin-bottom: 24px; }
#app #feed-title { margin: 0; font: 600 clamp(32px,4vw,48px)/1.15 var(--display); letter-spacing: -.035em; }
#app .feed-deck { margin: 8px 0 0; color: var(--muted); }
#app .feed-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; }
#app .feed-tools .field { flex: 1 1 240px; }
#app .search-icon { display: none; }
#page-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
  margin: 8px auto;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: var(--shadow);
  font: 600 13px/1.5 var(--font);
  pointer-events: none;
}
#page-loading .page-loading-spinner { flex: 0 0 12px; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: news-loading .8s linear infinite; }
#page-loading[hidden] { display: none !important; }
@keyframes news-loading { to { transform: rotate(360deg); } }
#app .muted { color: var(--muted); }
#app .badge, #app .chip { color: var(--muted-strong); border: 1px solid var(--line); background: var(--surface-soft); border-radius: var(--radius); }
#app .empty-state, #app .loading-state, #app .error-state { grid-column: 1 / -1; padding: 40px 24px; border: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); text-align: center; }
#app .empty-state h2, #app .error-state h2 { color: var(--text); font-family: var(--display); }
#app #toast, #app .toast { z-index: 50; color: var(--text); background: var(--surface-raised); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
@media (min-width: 1024px) {
  #app .publication-layout { grid-template-columns: 240px minmax(0,1fr); gap: 24px; }
  #app #sidebar, #app #sidebar.is-open {
    position: sticky;
    align-self: start;
    top: var(--topbar-height);
    inset-inline: auto;
    bottom: auto;
    z-index: 10;
    display: block;
    visibility: visible;
    pointer-events: auto;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100dvh - var(--topbar-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 24px 16px 32px;
    border: 0;
    border-right: 1px solid var(--line);
    box-shadow: none;
    transform: none;
  }
  #app #news-main { grid-column: 2; grid-row: 1; }
  #app #menu-toggle { display: none; }
}
@media (max-width: 1023px) {
  #app .masthead { gap: 10px 14px; }
  #app .brand { flex: 1; }
  #app .topbar-actions { flex: 0 0 auto; }
}
@media (max-width: 600px) {
  :root, html.dark, html.light { --topbar-height: 112px; --mobile-topbar-height: 112px; }
  #app #topbar { min-height: var(--topbar-height); padding: 8px 16px; }
  #app .masthead { display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 8px; }
  #app .brand { gap: 0; min-height: 44px; }
  #app .brand-mark, #app .brand-deck, #app .menu-toggle-label { display: none; }
  #app .brand-name { font-size: clamp(20px, 5.3vw, 26px); white-space: normal; letter-spacing: -.035em; }
  #app .topbar-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0; }
  #app #theme-cycle .theme-icon { display: none; }
  #app .btn { min-height: 44px; padding: 8px; }
  #app #menu-toggle, #app #theme-cycle, #app #refresh { width: 44px; height: 44px; padding: 0; }
  /* Keep the button text as its accessible name; compact glyphs are visual only. */
  #app #theme-cycle { font-size: 0; }
  #app #theme-cycle::before { content: "◐"; font-size: 22px; }
  #app #theme-cycle[data-mode="light"]::before { content: "☀"; }
  #app #theme-cycle[data-mode="dark"]::before { content: "☾"; }
  #app #refresh span:last-child { display: none; }
  #app #refresh span:first-child { font-size: 22px; }
  #app #news-main { padding-top: 16px; }
  #app .feed-heading { margin: 0 0 12px; padding: 0; }
  #app .feed-heading .eyebrow, #app .feed-deck { display: none; }
  #app #feed-title { margin: 0; font: 550 30px/1.1 var(--display); letter-spacing: -.035em; }
  #app .edition-mark { display: none; }
  #app .feed-tools { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; margin: 0; padding: 0; }
  #app .feed-tools .field { display: block; margin: 0; }
  #app .search-icon { display: none; }
  #app #query, #app select#source-filter { display: block; width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; }
  #app #status { padding: 8px 0; line-height: 1.4; }
  #app #feed { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  #app .story-body { padding: 16px; }
  #app .story-meta { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #app *, #app *::before, #app *::after { transition: none !important; animation: none !important; }
  #page-loading, #page-loading::before, #page-loading::after { transition: none !important; animation: none !important; }
}

/* Readable summaries and persistent headline slots. */
#app .story-summary { max-width: 68ch; color: var(--muted-strong); font-size: 15px; line-height: 1.75; }
#app .story-summary p { margin: 0 0 1em; overflow-wrap: anywhere; }
#app .story-summary .story-summary__lead { color: var(--text); font-size: 16px; line-height: 1.7; }
#app .story-expand { min-height: 44px; margin: 0 0 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface-soft); color: var(--accent); font: 700 13px/1.4 var(--body); cursor: pointer; }
#app .story-expand:hover { background: var(--surface-raised); border-color: var(--accent); }
#app .story-expand:focus-visible, #app .source-choice:focus-visible, #app .source-enable:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
#app .story-card[data-card-variant='hero'] { grid-column: 1 / -1; border-top: 3px solid var(--accent); }
#app .story-card[data-card-variant='hero'] .story-headline { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.13; letter-spacing: -.035em; }
#app .story-card[data-card-variant='hero'] .story-summary__lead { font-size: 18px; line-height: 1.7; }
#app .story-card[data-card-variant='hero']:not(.has-photo) .story-body { padding: clamp(22px, 4vw, 42px); }
#app .story-card[data-card-variant='hero']:not(.has-photo) .story-headline { max-width: 25ch; }
#app .story-card[data-card-variant='hero'] .story-media { height: 300px; }
#app #source-list { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 12px 0 18px; list-style: none; }
#app #source-list .source-item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 0; border: 0; }
#app .source-choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-soft); color: var(--muted-strong); font: 650 13px/1.4 var(--body); text-align: left; cursor: pointer; }
#app #source-list .source-choice { flex: 1; }
#app #source-all.source-choice { width: 100%; }
#app .source-choice:hover { background: var(--surface-raised); border-color: var(--line-strong); }
#app .source-choice[aria-pressed='true'] { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 15%, var(--surface)); }
#app .source-choice .source-label { overflow-wrap: anywhere; }
#app .source-choice .source-count { flex: none; min-width: 24px; padding: 2px 6px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 11px; text-align: center; }
#app .source-enable { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 0 4px; color: var(--muted); font: 12px/1.4 var(--body); cursor: pointer; }
#app .source-enable input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); cursor: pointer; }
@media (min-width: 1000px) {
  #app .story-card[data-card-variant='hero'].has-photo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  #app .story-card[data-card-variant='hero'].has-photo .story-media { height: 100%; min-height: 360px; }
  #app .story-card[data-card-variant='hero'] .story-body { padding: 30px; }
}
@media (max-width: 680px) {
  #app .story-card[data-card-variant='hero'] .story-media { height: 230px; }
}
