/* Nelo iOS components. Tokens come from nelo-theme.css. */

/* ---------- base ---------- */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background: var(--nelo-bg);
}
/* iOS Dynamic Type: the root follows the reader's text size setting. */
@supports (font: -apple-system-body) {
  html { font: -apple-system-body; }
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--nelo-bg);
  color: var(--nelo-ink);
  font-family: var(--nelo-font-text);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overscroll-behavior-y: none;
}
html.nelo-sheet-open, html.nelo-sheet-open body { overflow: hidden; }
button { font: inherit; color: inherit; }
.nelo-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- app shell ---------- */
.nelo-app {
  max-width: var(--nelo-content-max);
  margin: 0 auto;
  padding-bottom: calc(var(--nelo-tab-bar-height) + env(safe-area-inset-bottom) + var(--nelo-space-8));
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.nelo-gutter { padding-left: var(--nelo-space-4); padding-right: var(--nelo-space-4); }

/* ---------- logo and build footer ---------- */
.nelo-logo { display: block; width: auto; flex: none; }
.nelo-logo__lead { fill: var(--nelo-accent); }
.nelo-logo__line { fill: var(--nelo-ink); }
/* The fine print that closes a screen (iPhone) or the sidebar (iPad): who built it and which build is running. */
.nelo-build {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--nelo-space-8) var(--nelo-space-4) 0;
  color: var(--nelo-ink-muted); font-size: 0.75rem; line-height: 1.1rem; text-align: center;
}
.nelo-build__credit {
  display: inline-flex; align-items: center; gap: 0.25em; min-height: 32px; padding: 0 var(--nelo-space-2);
  color: inherit; text-decoration: none; border-radius: var(--nelo-radius-sm);
}
.nelo-build__credit span { color: var(--nelo-accent); font-weight: 600; }
.nelo-build__info {
  font-family: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", monospace; font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
}
.nelo-build__update {
  min-height: 32px; padding: 0 var(--nelo-space-2); border: 0; border-radius: var(--nelo-radius-sm);
  background: none; color: var(--nelo-accent); font: inherit; cursor: pointer;
}
.nelo-build__update:disabled { color: var(--nelo-ink-muted); cursor: default; }
.nelo-build.is-sidebar { padding: 0 0 var(--nelo-space-1); }

/* ---------- navigation bar + large title ---------- */
.nelo-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: transparent;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.nelo-navbar__inner {
  max-width: var(--nelo-content-max); margin: 0 auto;
  height: var(--nelo-nav-bar-height);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--nelo-space-2);
}
.nelo-navbar__title {
  grid-column: 2;
  font-family: var(--nelo-font-text); font-size: 1rem; font-weight: 600;
  opacity: 0; transition: opacity 200ms ease;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60vw;
}
.nelo-navbar__leading { grid-column: 1; justify-self: start; }
.nelo-navbar__trailing { grid-column: 3; justify-self: end; }
.nelo-navbar.is-collapsed, .nelo-navbar--solid {
  background: var(--nelo-bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0.5px 0 var(--nelo-separator);
}
.nelo-navbar.is-collapsed .nelo-navbar__title, .nelo-navbar--solid .nelo-navbar__title { opacity: 1; }

.nelo-largetitle {
  padding: calc(env(safe-area-inset-top) + var(--nelo-nav-bar-height)) var(--nelo-space-4) var(--nelo-space-2);
}
.nelo-largetitle__eyebrow {
  margin: 0;
  font-size: 0.8125rem; line-height: 1.15rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--nelo-accent);
}
.nelo-largetitle__title {
  margin: 0;
  font-family: var(--nelo-font-display);
  font-size: 2rem; line-height: 2.4rem; font-weight: 800; letter-spacing: -0.02em;
}
.nelo-largetitle__title:focus { outline: none; }

/* ---------- text styles ---------- */
.nelo-source {
  display: block;
  font-size: 0.7rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--nelo-ink-muted);
}
/* "Opinion" / "Analysis" beside the source: a column never passes for news. */
.nelo-kind {
  display: inline-block; margin-left: 6px; padding: 0 5px; border-radius: 4px; vertical-align: 1px;
  background: var(--nelo-fill); color: var(--nelo-ink); font-size: 0.625rem; line-height: 0.95rem; letter-spacing: 0.04em;
}
.nelo-meta { display: block; font-size: 0.8125rem; line-height: 1.1rem; color: var(--nelo-ink-muted); }
.nelo-section-title {
  margin: var(--nelo-space-6) 0 var(--nelo-space-2);
  padding: 0 var(--nelo-space-4);
  font-family: var(--nelo-font-display);
  font-size: 1.25rem; line-height: 1.5rem; font-weight: 700;
}
.nelo-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- thumbnails (tint shows while the picture loads, or if it fails) ---------- */
.nelo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.nelo-img.is-broken { display: none; }
.nelo-thumb {
  position: relative; overflow: hidden;
  flex: none; width: var(--nelo-thumb); height: var(--nelo-thumb);
  border-radius: var(--nelo-radius-sm);
  background: hsl(var(--hue, 215) var(--nelo-thumb-s) var(--nelo-thumb-l));
  display: grid; place-items: center; color: hsl(var(--hue, 215) 30% 40% / 0.6);
}
.dark .nelo-thumb { color: hsl(var(--hue, 215) 30% 70% / 0.5); }

/* ---------- lead story card ---------- */
.nelo-card {
  display: block; width: calc(100% - 2 * var(--nelo-space-4)); margin: var(--nelo-space-2) var(--nelo-space-4) 0;
  padding: 0; border: 0; text-align: left; cursor: pointer;
  background: var(--nelo-surface); border-radius: var(--nelo-radius-lg);
  box-shadow: var(--nelo-shadow-card); overflow: hidden;
  transition: transform 150ms ease;
}
.nelo-card:active { transform: scale(0.98); }
.nelo-card__image {
  position: relative; aspect-ratio: 4 / 3;
  background: hsl(var(--hue, 215) var(--nelo-thumb-s) var(--nelo-thumb-l));
  display: flex; align-items: flex-end;
}
.nelo-card__image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, transparent 35%, var(--nelo-image-scrim));
}
.nelo-card__overlay { position: relative; z-index: 2; padding: var(--nelo-space-4); color: var(--nelo-on-image); }
.nelo-card__overlay .nelo-source, .nelo-card__overlay .nelo-meta { color: var(--nelo-on-image); opacity: 0.9; }
.nelo-card__headline {
  display: block; margin: var(--nelo-space-1) 0;
  font-family: var(--nelo-font-display); font-size: 1.3rem; line-height: 1.6rem; font-weight: 700; letter-spacing: -0.01em;
}
.nelo-card__excerpt { display: block; padding: var(--nelo-space-3) var(--nelo-space-4) var(--nelo-space-4); font-size: 0.9rem; line-height: 1.25rem; color: var(--nelo-ink-muted); }

/* ---------- grouped list ---------- */
.nelo-group {
  margin: 0 var(--nelo-space-4);
  background: var(--nelo-surface); border-radius: var(--nelo-radius-md);
  overflow: hidden; list-style: none; padding: 0;
}
.nelo-group > li + li .nelo-row__content::before {
  content: ""; position: absolute; top: 0; left: var(--nelo-space-4); right: 0;
  height: 0.5px; background: var(--nelo-separator);
}

/* ---------- swipe row ---------- */
.nelo-row { position: relative; overflow: hidden; background: var(--nelo-surface); }
.nelo-row.is-removing { animation: nelo-collapse 220ms var(--nelo-ease) forwards; }
@keyframes nelo-collapse { to { height: 0; opacity: 0; } }
.nelo-row__content {
  position: relative; z-index: 1;
  display: flex; gap: var(--nelo-space-3); align-items: flex-start; width: 100%;
  padding: var(--nelo-space-3) var(--nelo-space-4);
  border: 0; margin: 0; text-align: left; cursor: pointer;
  background: var(--nelo-surface); color: var(--nelo-ink);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  will-change: transform;
}
.nelo-row__content:active { background: color-mix(in srgb, var(--nelo-surface), var(--nelo-ink) 6%); }
.nelo-row.is-dragging .nelo-row__content { background: var(--nelo-surface); }
.nelo-row__text { flex: 1; min-width: 0; }
.nelo-row__headline {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin: 2px 0 var(--nelo-space-1);
  font-size: 1.0625rem; line-height: 1.375rem; font-weight: 600;
}
.nelo-row__saved { display: inline-block; color: var(--nelo-accent); margin-left: var(--nelo-space-1); vertical-align: -1px; }
.nelo-row__action {
  position: absolute; inset: 0; display: flex; align-items: stretch;
  visibility: hidden;
}
.nelo-row__action--lead { justify-content: flex-start; background: var(--nelo-accent); }
.nelo-row__action--trail { justify-content: flex-end; background: var(--nelo-danger); }
.nelo-row.is-leading .nelo-row__action--lead, .nelo-row.is-trailing .nelo-row__action--trail { visibility: visible; }
.nelo-row__action button {
  border: 0; background: transparent; cursor: pointer;
  min-width: 88px; padding: 0 var(--nelo-space-4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 0.8125rem; font-weight: 600;
  transition: transform 200ms var(--nelo-ease);
}
.nelo-row__action--lead button { color: var(--nelo-on-accent); }
.nelo-row__action--trail button { color: var(--nelo-on-danger); }
/* When a full swipe is armed, the label follows the finger, like Mail. */
.nelo-row.is-armed .nelo-row__action--lead button { transform: translateX(calc(var(--reveal) * 1px - 88px)); }
.nelo-row.is-armed .nelo-row__action--trail button { transform: translateX(calc(88px - var(--reveal) * 1px)); }

/* ---------- tab bar (on Blazor Blueprint's BbBottomNav) ---------- */
.nelo-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--nelo-bar) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0 !important;
  box-shadow: 0 -0.5px 0 var(--nelo-separator);
  padding-bottom: env(safe-area-inset-bottom);
}
.nelo-tabbar > div { display: block !important; }
.nelo-tabbar__items {
  width: 100%;
  max-width: var(--nelo-content-max); margin: 0 auto;
  height: var(--nelo-tab-bar-height);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.nelo-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding-top: 4px;
  color: var(--nelo-ink-muted); text-decoration: none;
  /* Fixed, as on iOS: the tab bar keeps its height whatever the text size, so labels don't grow with it. */
  font-size: 10px; line-height: 12px; font-weight: 500;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.nelo-tab[aria-current="page"] { color: var(--nelo-accent); }
.nelo-tab svg { width: 24px; height: 24px; }

/* ---------- pushed screen ---------- */
.nelo-screen-dim {
  position: fixed; inset: 0; z-index: 34;
  background: var(--nelo-overlay);
  animation: nelo-fade-in 350ms var(--nelo-ease);
}
.nelo-screen {
  position: fixed; inset: 0; z-index: 35;
  bottom: 0;
  background: var(--nelo-bg);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  animation: nelo-push-in 350ms var(--nelo-ease);
}
/* Only while the edge swipe drags it. At rest the screen must have no transform or will-change: either
   makes it the containing block for position: fixed, so a story sheet or full coverage opened inside it
   would sit at the top of its scrolled content instead of on screen. */
.nelo-screen.is-dragging { will-change: transform; }
.nelo-screen .nelo-navbar { position: sticky; }
.nelo-screen__body {
  max-width: var(--nelo-content-max); margin: 0 auto;
  padding-bottom: calc(var(--nelo-tab-bar-height) + env(safe-area-inset-bottom) + var(--nelo-space-8));
}
.nelo-back {
  display: inline-flex; align-items: center; gap: 0;
  min-height: var(--nelo-tap-target); padding: 0 var(--nelo-space-2) 0 0;
  border: 0; background: transparent; color: var(--nelo-accent); cursor: pointer;
  font-size: 1.0625rem;
}
a.nelo-back { text-decoration: none; }
.nelo-back svg { width: 28px; height: 28px; margin-right: -2px; }
@keyframes nelo-push-in { from { transform: translate3d(100%, 0, 0); } }
@keyframes nelo-fade-in { from { opacity: 0; } }

/* ---------- story sheet ---------- */
.nelo-sheet-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: var(--nelo-overlay);
  animation: nelo-fade-in 350ms var(--nelo-ease);
}
.nelo-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
  max-width: var(--nelo-content-max); margin: 0 auto;
  height: calc(100dvh - env(safe-area-inset-top) - 12px);
  background: var(--nelo-surface-raised);
  border-radius: var(--nelo-radius-lg) var(--nelo-radius-lg) 0 0;
  box-shadow: var(--nelo-shadow-sheet);
  display: flex; flex-direction: column;
  animation: nelo-sheet-up 380ms var(--nelo-ease);
  touch-action: pan-y; will-change: transform;
  overflow: hidden;
  /* Dragging the sheet must not start a text selection; long-press to copy still works on iOS. */
  -webkit-user-select: none; user-select: none;
}
.nelo-sheet:focus { outline: none; }
@keyframes nelo-sheet-up { from { transform: translate3d(0, 100%, 0); } }
.nelo-sheet__grabber { flex: none; display: grid; place-items: center; height: 20px; }
.nelo-sheet__grabber span { width: 36px; height: 5px; border-radius: 3px; background: var(--nelo-separator); }
.nelo-sheet__top {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--nelo-space-4) var(--nelo-space-2);
}
.nelo-sheet__pager { font-size: 0.8125rem; color: var(--nelo-ink-muted); font-variant-numeric: tabular-nums; }
.nelo-sheet__close {
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--nelo-fill); color: var(--nelo-ink-muted);
  position: relative;
}
.nelo-sheet__close::after { content: ""; position: absolute; inset: -7px; }
/* Save, beside the text size and close buttons. */
.nelo-sheet__icon {
  width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: grid; place-items: center; background: var(--nelo-fill); color: var(--nelo-ink-muted);
  position: relative;
}
.nelo-sheet__icon::after { content: ""; position: absolute; inset: -7px; }
.nelo-sheet__icon[aria-pressed="true"] { background: var(--nelo-accent-soft); color: var(--nelo-accent); }
.nelo-sheet__actions { display: flex; align-items: center; gap: var(--nelo-space-3); }
.nelo-sheet__scroller {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 0 var(--nelo-space-4) calc(env(safe-area-inset-bottom) + var(--nelo-space-6));
}
.nelo-sheet__page { will-change: transform, opacity; }
.nelo-sheet__headline {
  margin: var(--nelo-space-1) 0 var(--nelo-space-2);
  font-family: var(--nelo-font-display); font-size: 1.65rem; line-height: 2rem; font-weight: 700; letter-spacing: -0.01em;
}
.nelo-sheet__hero {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--nelo-radius-md); margin: var(--nelo-space-3) 0;
  background: hsl(var(--hue, 215) var(--nelo-thumb-s) var(--nelo-thumb-l));
}
.nelo-sheet__body { font-size: 1.0625rem; line-height: 1.5rem; margin: 0 0 var(--nelo-space-5); }
.nelo-sheet__hint { margin-top: var(--nelo-space-5); text-align: center; font-size: 0.8125rem; color: var(--nelo-ink-muted); }

/* ---------- buttons ---------- */
.nelo-button {
  display: flex; align-items: center; justify-content: center; gap: var(--nelo-space-2);
  width: 100%; min-height: 50px; margin-top: var(--nelo-space-3);
  border: 0; border-radius: var(--nelo-radius-md); cursor: pointer; text-decoration: none;
  font-size: 1.0625rem; font-weight: 600;
  transition: opacity 120ms ease;
}
.nelo-button:active { opacity: 0.7; }
.nelo-button--primary { background: var(--nelo-accent); color: var(--nelo-on-accent); }
.nelo-button--tinted { background: var(--nelo-accent-soft); color: var(--nelo-accent); }
.nelo-button--plain { background: transparent; color: var(--nelo-accent); }

/* ---------- share ---------- */
/* Share opens the system sheet; browsers without one get a WhatsApp link in its place. */
.nelo-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nelo-space-3); margin-top: var(--nelo-space-3); }
.nelo-share-actions .nelo-button { margin-top: 0; }
html:not([data-share="native"]) .nelo-share--native,
html[data-share="native"] .nelo-share--fallback { display: none; }
.nelo-row--shareable { display: flex; align-items: center; }
.nelo-row--shareable .nelo-row__content { flex: 1; min-width: 0; }
.nelo-row__share {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; margin-right: var(--nelo-space-2);
  border: 0; border-radius: var(--nelo-radius-pill); background: none; color: var(--nelo-accent); cursor: pointer;
}
.nelo-row__share:active { background: var(--nelo-fill); }
.nelo-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: var(--nelo-radius-pill);
  background: var(--nelo-accent-soft); color: var(--nelo-accent);
  font-size: 0.75rem; font-weight: 600;
}

/* ---------- "Updated 35 min ago · Refresh": Today says it may be out of date ---------- */
.nelo-updated { display: flex; justify-content: center; padding: 0 var(--nelo-space-4) var(--nelo-space-2); }
.nelo-updated__pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 14px;
  border: 0; border-radius: var(--nelo-radius-pill); background: var(--nelo-fill); color: var(--nelo-ink-muted);
  font: inherit; font-size: 0.8125rem; font-weight: 500; cursor: pointer;
  animation: nelo-fade-in 0.25s ease-out;
  -webkit-tap-highlight-color: transparent;
}
.nelo-updated__pill:active { opacity: 0.6; }
.nelo-updated__pill:focus-visible { outline: 2px solid var(--nelo-accent); outline-offset: 2px; }
.nelo-updated__action { display: inline-flex; align-items: center; gap: 4px; color: var(--nelo-accent); font-weight: 600; }
.nelo-updated__pill.is-busy { cursor: default; }
.nelo-updated__pill.is-busy svg { animation: nelo-spin 0.8s linear infinite; }
/* "New version available · Update": the same pill, floating under the status bar on every screen. */
.nelo-update {
  position: fixed; z-index: 60; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 8px);
  display: flex; justify-content: center; pointer-events: none;
}
.nelo-update__pill {
  pointer-events: auto; background: var(--nelo-surface); color: var(--nelo-ink);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.14), 0 0 0 0.5px var(--nelo-separator, rgb(0 0 0 / 0.08));
}
.nelo-update__pill[disabled] { cursor: default; }
.nelo-update__pill[disabled] svg { animation: nelo-spin 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .nelo-updated__pill, .nelo-updated__pill.is-busy svg, .nelo-update__pill[disabled] svg { animation: none; }
}

/* ---------- search field ---------- */
.nelo-search {
  display: flex; align-items: center; gap: var(--nelo-space-2);
  margin: var(--nelo-space-2) var(--nelo-space-4) var(--nelo-space-3);
  padding: 0 var(--nelo-space-2);
  min-height: 36px; border-radius: 10px; background: var(--nelo-fill); color: var(--nelo-ink-muted);
}
.nelo-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--nelo-ink);
  font-size: 1.0625rem; /* 17px stops iOS zooming on focus */
}

/* ---------- chips ---------- */
.nelo-chips { display: flex; gap: var(--nelo-space-2); overflow-x: auto; padding: var(--nelo-space-2) var(--nelo-space-4); scrollbar-width: none; }
.nelo-chips::-webkit-scrollbar { display: none; }
.nelo-chip {
  flex: none; display: inline-flex; align-items: center; gap: 4px;
  min-height: 34px; padding: 0 14px; border-radius: var(--nelo-radius-pill); border: 0; cursor: pointer;
  background: var(--nelo-fill); color: var(--nelo-ink); font-size: 0.9375rem; font-weight: 500;
}
.nelo-chips--wrap { flex-wrap: wrap; overflow: visible; }
.nelo-chip[aria-pressed="true"] { background: var(--nelo-accent); color: var(--nelo-on-accent); }

/* ---------- empty state ---------- */
.nelo-empty { padding: 15vh var(--nelo-space-8) 0; text-align: center; color: var(--nelo-ink-muted); }
.nelo-empty > svg { display: block; width: 44px; height: 44px; margin: 0 auto var(--nelo-space-3); }
.nelo-empty--compact { padding-top: var(--nelo-space-8); }
.nelo-empty strong { display: block; color: var(--nelo-ink); font-size: 1.25rem; margin-bottom: var(--nelo-space-1); }
/* "Couldn't load · Retry" */
.nelo-load-failed__retry { display: inline-flex; width: auto; margin-top: var(--nelo-space-3); padding: 0 var(--nelo-space-5); }
.nelo-load-failed__retry svg { width: 18px; height: 18px; margin: 0; }
.nelo-load-failed--inline { display: flex; align-items: baseline; gap: var(--nelo-space-2); flex-wrap: wrap; margin: var(--nelo-space-2) 0; }
.nelo-load-failed--inline .nelo-meta { display: inline; }
.nelo-spin { animation: nelo-spin 0.8s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .nelo-spin, .nelo-skeleton { animation: none; }
}

/* ---------- skeleton ---------- */
.nelo-skeleton { background: var(--nelo-fill); border-radius: var(--nelo-radius-sm); animation: nelo-pulse 1.4s ease-in-out infinite; }
@keyframes nelo-pulse { 50% { opacity: 0.5; } }

/* ---------- toasts: a compact pill above the tab bar (on BbToastProvider) ---------- */
.nelo-toasts {
  bottom: calc(var(--nelo-tab-bar-height) + env(safe-area-inset-bottom) + 12px) !important;
  width: auto !important; max-width: calc(100% - 2 * var(--nelo-space-4)); padding: 0 !important;
}
.nelo-toasts > div {
  padding: 8px 8px 8px 18px !important; gap: var(--nelo-space-4);
  border: 0 !important; border-radius: var(--nelo-radius-pill) !important;
  background: var(--nelo-ink) !important; color: var(--nelo-bg) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
  font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
}
.nelo-toasts > div * { font-size: inherit !important; }
.nelo-toasts > div button {
  min-height: 32px; padding: 0 12px !important; border: 0 !important; border-radius: var(--nelo-radius-pill) !important;
  background: transparent !important; color: var(--nelo-toast-action) !important; font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .nelo-screen { animation: nelo-fade-in 150ms ease; }
  .nelo-sheet { animation: nelo-fade-in 150ms ease; }
  .nelo-card, .nelo-row__action button { transition: none; }
}

/* ---------- pull to refresh ---------- */
.nelo-ptr { position: relative; }
.nelo-ptr.is-pulling { -webkit-user-select: none; user-select: none; }
.nelo-ptr__indicator {
  position: absolute; top: 0; left: 50%; z-index: 1;
  width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: var(--nelo-surface-raised); color: var(--nelo-ink-muted);
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.12);
  opacity: var(--pull-progress, 0);
  transform: translateY(calc(var(--pull, 0px) / 2 - 18px)) rotate(calc(var(--pull-progress, 0) * 180deg));
}
.nelo-ptr.is-armed .nelo-ptr__indicator { color: var(--nelo-accent); }
.nelo-ptr.is-refreshing .nelo-ptr__indicator { opacity: 1; transform: translateY(10px); color: var(--nelo-accent); }
.nelo-ptr.is-refreshing .nelo-ptr__indicator svg { animation: nelo-spin 0.8s linear infinite; }
@keyframes nelo-spin { to { transform: rotate(360deg); } }

/* ---------- section links and the "more" chevron ---------- */
.nelo-section-link {
  display: flex; align-items: center; gap: 2px; width: 100%;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0;
}
.nelo-section-link svg { color: var(--nelo-ink-muted); }

/* ---------- view transitions between tabs (Safari 18+, Chrome) ---------- */
.nelo-tabbar { view-transition-name: nelo-tabbar; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .nelo-ptr.is-refreshing .nelo-ptr__indicator svg { animation: none; }
}

/* ---------- action sheet (long press on a story) ---------- */
.nelo-action-backdrop {
  position: fixed; inset: 0; z-index: 60; background: var(--nelo-overlay);
  animation: nelo-fade-in 250ms var(--nelo-ease);
}
.nelo-action-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-width: var(--nelo-content-max); margin: 0 auto;
  padding: 0 var(--nelo-space-2) calc(var(--nelo-space-2) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--nelo-space-2);
  animation: nelo-sheet-up 320ms var(--nelo-ease);
  outline: none;
}
.nelo-action-sheet__group, .nelo-action-sheet__cancel {
  background: var(--nelo-surface-raised); border-radius: var(--nelo-radius-lg); overflow: hidden;
}
.nelo-action-sheet__title {
  padding: var(--nelo-space-3) var(--nelo-space-4); text-align: center;
  font-size: 0.8125rem; color: var(--nelo-ink-muted);
  border-bottom: 0.5px solid var(--nelo-separator);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nelo-action-sheet__item {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 56px; padding: 0 var(--nelo-space-4); border: 0; background: none; cursor: pointer;
  color: var(--nelo-accent); font: inherit; font-size: 1.0625rem; text-align: left;
}
.nelo-action-sheet__item + .nelo-action-sheet__item { border-top: 0.5px solid var(--nelo-separator); }
.nelo-action-sheet__item.is-destructive { color: var(--nelo-danger); }
.nelo-action-sheet__item:active, .nelo-action-sheet__cancel:active { background: var(--nelo-fill); }
.nelo-action-sheet__cancel {
  min-height: 56px; border: 0; cursor: pointer; width: 100%;
  color: var(--nelo-accent); font: inherit; font-size: 1.0625rem; font-weight: 600;
}
/* A long press shouldn't select text or show Safari's link callout. */
.nelo-row__content { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.nelo-row.is-pressed .nelo-row__content { background: var(--nelo-fill); transition: background 150ms var(--nelo-ease); }
@media (prefers-reduced-motion: reduce) {
  .nelo-action-sheet, .nelo-action-backdrop { animation: none; }
}

/* ---------- large title accessory (account button) ---------- */
.nelo-largetitle { display: flex; align-items: flex-end; gap: var(--nelo-space-3); }
.nelo-largetitle__text { flex: 1; min-width: 0; }
.nelo-largetitle__accessory { flex: none; padding-bottom: 6px; display: flex; align-items: center; gap: var(--nelo-space-2); }

/* ---------- theme and language toggles ---------- */
.nelo-toggles { display: contents; }
.nelo-toggle__lang { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; }

/* ---------- text size (A− 100% A+) ---------- */
.nelo-textsize {
  display: flex; align-items: center; gap: var(--nelo-space-2);
  margin: 0 var(--nelo-space-4); padding: 2px; background: var(--nelo-fill); border-radius: 9px;
}
.nelo-textsize__step {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 1px; line-height: 1;
  min-height: var(--nelo-tap-target); border: 0; border-radius: 7px; background: var(--nelo-surface-raised, var(--nelo-surface));
  color: var(--nelo-ink); font: inherit; font-weight: 600; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.nelo-textsize__step:disabled { color: var(--nelo-ink-muted); opacity: 0.5; cursor: default; }
.nelo-textsize__step:focus-visible { outline: 2px solid var(--nelo-accent); outline-offset: 2px; }
.nelo-textsize__a--small { font-size: 0.8125rem; }
.nelo-textsize__a--large { font-size: 1.1875rem; }
.nelo-textsize__value { flex: 0 0 4.5em; text-align: center; font-size: 0.9375rem; font-variant-numeric: tabular-nums; color: var(--nelo-ink-muted); }
.nelo-textsize + .nelo-gutter { margin-top: var(--nelo-space-2); }
/* In the story sheet's top bar: two small round buttons beside Close. */
.nelo-textsize--compact { margin: 0; padding: 0; gap: var(--nelo-space-2); background: none; }
.nelo-textsize--compact .nelo-textsize__step {
  flex: none; width: 30px; min-height: 30px; height: 30px; border-radius: 50%; position: relative;
  background: var(--nelo-fill); color: var(--nelo-ink-muted); box-shadow: none; font-size: 0.75rem;
}
.nelo-textsize--compact .nelo-textsize__step::after { content: ""; position: absolute; inset: -7px -3px; }
.nelo-textsize--compact .nelo-textsize__a--small { font-size: 0.6875rem; }
.nelo-textsize--compact .nelo-textsize__a--large { font-size: 0.875rem; }

/* iOS segmented control */
.nelo-segmented {
  display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; gap: 2px;
  margin: 0 var(--nelo-space-4); padding: 2px;
  background: var(--nelo-fill); border-radius: 9px;
}
.nelo-segmented__option {
  min-height: 32px; padding: 0 var(--nelo-space-2);
  border: 0; border-radius: 7px; background: transparent; color: var(--nelo-ink);
  font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer;
}
.nelo-segmented__option[aria-checked="true"] {
  background: var(--nelo-surface-raised, var(--nelo-surface)); font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04);
}
.nelo-avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--nelo-fill); color: var(--nelo-accent); text-decoration: none;
  font-weight: 700; font-size: 1rem; border: 0; cursor: pointer;
}
.nelo-avatar.is-signed-in { background: var(--nelo-accent); color: var(--nelo-on-accent); }
.nelo-avatar--large { width: 56px; height: 56px; font-size: 1.5rem; }

/* ---------- account screen ---------- */
.nelo-account-card {
  display: flex; align-items: center; gap: var(--nelo-space-3);
  margin: var(--nelo-space-2) var(--nelo-space-4) 0; padding: var(--nelo-space-4);
  background: var(--nelo-surface); border-radius: var(--nelo-radius-lg);
}
.nelo-account-card__name { font-size: 1.25rem; font-weight: 700; }
.nelo-field { display: flex; flex-direction: column; gap: var(--nelo-space-1); }
.nelo-field span { font-size: 0.8125rem; color: var(--nelo-ink-muted); }
.nelo-field input {
  min-height: 48px; padding: 0 var(--nelo-space-3); border-radius: var(--nelo-radius-md);
  border: 0; background: var(--nelo-surface); color: var(--nelo-ink); font: inherit; font-size: 1.0625rem;
}
.nelo-field input:focus-visible { outline: 2px solid var(--nelo-accent); outline-offset: 0; }
.nelo-field textarea {
  min-height: 132px; padding: var(--nelo-space-3); border-radius: var(--nelo-radius-md); resize: vertical;
  border: 0; background: var(--nelo-surface); color: var(--nelo-ink); font: inherit; font-size: 1.0625rem; line-height: 1.4;
}
.nelo-field textarea:focus-visible { outline: 2px solid var(--nelo-accent); outline-offset: 0; }

/* ---------- report a problem ---------- */
.nelo-report { display: flex; flex-direction: column; gap: var(--nelo-space-2); max-width: 40rem; padding-top: var(--nelo-space-3); }
.nelo-report .nelo-button { margin-top: var(--nelo-space-3); }
.nelo-report .nelo-notice { margin: var(--nelo-space-2) 0 0; }
.nelo-section-title--flush { padding: 0; margin-bottom: 0; }
.nelo-report__attached {
  display: grid; grid-template-columns: auto 1fr; gap: 6px var(--nelo-space-4); margin: 0;
  padding: var(--nelo-space-3); border-radius: var(--nelo-radius-md); background: var(--nelo-surface);
  font-size: 0.875rem;
}
.nelo-report__attached dt { color: var(--nelo-ink-muted); }
.nelo-report__attached dd { margin: 0; color: var(--nelo-ink); overflow-wrap: anywhere; }
.nelo-button--destructive { background: none; color: var(--nelo-danger); }
.nelo-button:disabled { opacity: 0.5; cursor: default; }
.nelo-notice { margin: var(--nelo-space-3) var(--nelo-space-4) 0; color: var(--nelo-danger); font-size: 0.9375rem; }

/* ---------- places (Preferences, place picker) ---------- */
.nelo-place { align-items: center; }
.nelo-place .nelo-row__text { display: flex; flex-direction: column; gap: 2px; }
.nelo-place__name { font-size: 1.0625rem; color: var(--nelo-ink); }
.nelo-place__name--muted { color: var(--nelo-accent); }
.nelo-place:disabled { cursor: default; opacity: 0.6; }
.nelo-section-link .lucide-house, .nelo-section-title svg:first-child:not(:last-child) { margin-right: 2px; }
a.nelo-row__content { text-decoration: none; }
.nelo-section-title--sub { margin-top: var(--nelo-space-4); font-size: 1.125rem; }

/* ======================================================================== iPad
   The layout follows the window's width, not the device, so Split View, Slide Over and Stage Manager get the
   right one (WindowLayout.cs uses the same widths):
   - compact, under 700px: the iPhone layout above, unchanged;
   - regular, 700px and up (iPad portrait, wide Split View): no tab bar, a sidebar on demand, Today as a
     two-column grid, stories in a centred sheet;
   - wide, 1024px and up (iPad landscape): the sidebar always shown, a three-column grid, and stories in a
     reading pane on the right while the list stays usable on the left. */

.nelo-sidebar, .nelo-sidebar-toggle { display: none; }

.nelo-sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 45;
  width: calc(var(--nelo-sidebar-w) + env(safe-area-inset-left));
  padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left);
  box-sizing: border-box;
  background: var(--nelo-surface);
}
.nelo-sidebar__scroller {
  display: flex; flex-direction: column;
  height: 100%; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
  padding: 0 var(--nelo-space-3) calc(env(safe-area-inset-bottom) + var(--nelo-space-4));
}
.nelo-sidebar__brand {
  display: flex; align-items: center; height: 2.4rem; box-sizing: content-box;
  padding: calc(var(--nelo-nav-bar-height) + var(--nelo-space-1)) var(--nelo-space-3) var(--nelo-space-3);
}
.nelo-sidebar__footer { margin-top: auto; padding-top: var(--nelo-space-6); }
.nelo-sidebar__heading {
  margin: var(--nelo-space-5) var(--nelo-space-3) var(--nelo-space-1);
  font-family: var(--nelo-font-display); font-size: 1.0625rem; line-height: 1.4rem; font-weight: 700;
}
.nelo-sidebar__group + .nelo-sidebar__group:not(:has(.nelo-sidebar__heading)) {
  margin-top: var(--nelo-space-4); padding-top: var(--nelo-space-3); border-top: 0.5px solid var(--nelo-separator);
}
.nelo-sidebar__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nelo-sidebar__item {
  display: flex; align-items: center; gap: var(--nelo-space-3);
  min-height: var(--nelo-tap-target); padding: 0 var(--nelo-space-3); border-radius: 10px;
  color: var(--nelo-ink); text-decoration: none; font-size: 1.0625rem;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.nelo-sidebar__item svg { flex: none; color: var(--nelo-accent); }
.nelo-sidebar__item[aria-current="page"] { background: var(--nelo-accent); color: var(--nelo-on-accent); font-weight: 600; }
.nelo-sidebar__item[aria-current="page"] svg { color: var(--nelo-on-accent); }
.nelo-sidebar__item:active { background: var(--nelo-fill); }
.nelo-sidebar-backdrop {
  position: fixed; inset: 0; z-index: 44; background: var(--nelo-overlay);
  animation: nelo-fade-in 250ms var(--nelo-ease);
}
.nelo-sidebar-toggle {
  position: fixed; z-index: 32;
  top: env(safe-area-inset-top); left: calc(env(safe-area-inset-left) + var(--nelo-space-2));
  width: var(--nelo-tap-target); height: var(--nelo-nav-bar-height);
  place-items: center; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  background: none; color: var(--nelo-accent);
}

@keyframes nelo-pane-in { from { transform: translate3d(100%, 0, 0); } }
@keyframes nelo-pop-in { from { opacity: 0; transform: scale(0.96); } }

/* ---------- hover and keyboard focus (trackpad, mouse, Magic Keyboard) ---------- */
@media (hover: hover) and (pointer: fine) {
  .nelo-build__credit:hover { background: var(--nelo-fill); }
  .nelo-row__content:hover { background: color-mix(in srgb, var(--nelo-surface), var(--nelo-ink) 4%); }
  .nelo-row.is-dragging .nelo-row__content:hover { background: var(--nelo-surface); }
  .nelo-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
  .nelo-sidebar__item:not([aria-current="page"]):hover { background: var(--nelo-fill); }
  .nelo-sidebar-toggle:hover, .nelo-back:hover, .nelo-sheet__close:hover, .nelo-row__share:hover { background: var(--nelo-fill); }
  .nelo-sheet__icon:hover, .nelo-sheet__close:hover { background: color-mix(in srgb, var(--nelo-fill), var(--nelo-ink) 8%); }
  .nelo-back { border-radius: 10px; }
  .nelo-button--primary:hover { background: color-mix(in srgb, var(--nelo-accent), var(--nelo-ink) 10%); }
  .nelo-button--tinted:hover { background: color-mix(in srgb, var(--nelo-accent-soft), var(--nelo-accent) 12%); }
  .nelo-chip:not([aria-pressed="true"]):hover { background: color-mix(in srgb, var(--nelo-fill), var(--nelo-ink) 8%); }
  .nelo-section-link:hover { color: var(--nelo-accent); }
  .nelo-action-sheet__item:hover, .nelo-action-sheet__cancel:hover { background: var(--nelo-fill); }
  .nelo-tab:hover { color: var(--nelo-ink); }
}
:where(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 2px solid var(--nelo-accent); outline-offset: 2px;
}
/* Inside clipped lists and cards the ring goes inside the edge. */
.nelo-row__content:focus-visible, .nelo-action-sheet__item:focus-visible, .nelo-sidebar__item:focus-visible { outline-offset: -3px; }
.nelo-search input:focus-visible { outline: none; }
.nelo-search:focus-within { box-shadow: 0 0 0 2px var(--nelo-accent); }

/* ---------- regular: iPad portrait, wide Split View ---------- */
@media (min-width: 700px) {
  .nelo-tabbar { display: none; }
  .nelo-build.is-page { display: none; }
  .nelo-app, .nelo-screen__body { padding-bottom: calc(env(safe-area-inset-bottom) + var(--nelo-space-8)); }
  .nelo-toasts { bottom: calc(env(safe-area-inset-bottom) + var(--nelo-space-6)) !important; }
  .nelo-app:has(.nelo-today) { max-width: var(--nelo-grid-max); }

  /* The sidebar slides in over the page from a button at the top left. */
  .nelo-sidebar-toggle { display: grid; }
  .nelo-navbar__inner { padding-left: calc(var(--nelo-tap-target) + var(--nelo-space-3)); }
  .nelo-screen .nelo-navbar__inner { padding-left: var(--nelo-space-2); }
  .nelo-sidebar {
    display: block; visibility: hidden; transform: translate3d(-100%, 0, 0);
    transition: transform 300ms var(--nelo-ease), visibility 0s linear 300ms;
  }
  .nelo-sidebar.is-open {
    visibility: visible; transform: none; box-shadow: var(--nelo-shadow-popover);
    transition: transform 300ms var(--nelo-ease);
  }

  /* A story opens as a centred sheet, like a form sheet on iPad. */
  .nelo-sheet {
    inset: 0; margin: auto; max-width: none;
    width: min(640px, calc(100vw - 2 * var(--nelo-space-8)));
    height: min(900px, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 2 * var(--nelo-space-8)));
    border-radius: var(--nelo-radius-lg);
    box-shadow: var(--nelo-shadow-popover);
  }
  .nelo-sheet__scroller { padding-bottom: var(--nelo-space-6); }
  .nelo-sheet__body { font-size: 1.125rem; line-height: 1.6rem; }
  .nelo-sheet__hint { display: none; }

  /* The story menu: centred after a long press, at the pointer after a right click (placeMenu in nelo.js). */
  .nelo-action-sheet {
    inset: 0; margin: auto; width: min(400px, calc(100vw - 2 * var(--nelo-space-4))); height: fit-content;
    padding: 0; animation: nelo-pop-in 200ms var(--nelo-ease);
  }
  .nelo-action-sheet.is-popover { inset: auto; margin: 0; width: 290px; animation-duration: 140ms; transform-origin: top left; }
  .nelo-action-sheet.is-popover .nelo-action-sheet__group { box-shadow: var(--nelo-shadow-popover); border-radius: var(--nelo-radius-md); }
  .nelo-action-sheet.is-popover .nelo-action-sheet__item { min-height: var(--nelo-tap-target); font-size: 1rem; }
  .nelo-action-sheet.is-popover .nelo-action-sheet__cancel { display: none; }
  .nelo-action-backdrop:has(+ .nelo-action-sheet.is-popover) { background: transparent; animation: none; }

  /* Today: the lead story across the grid, then each section as a grid of cards. */
  .nelo-today .nelo-card__image { aspect-ratio: 16 / 9; }
  .nelo-today .nelo-card__headline { font-size: 1.75rem; line-height: 2.15rem; }
  .nelo-today .nelo-card__excerpt { font-size: 1rem; line-height: 1.4rem; }
  .nelo-group--grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--nelo-space-4);
    background: none; border-radius: 0; overflow: visible;
  }
  .nelo-group--grid > li {
    display: flex; min-width: 0;
    background: var(--nelo-surface); border-radius: var(--nelo-radius-lg); overflow: hidden;
    box-shadow: var(--nelo-shadow-tile);
  }
  .nelo-group--grid > li + li .nelo-row__content::before { content: none; }
  .nelo-group--grid .nelo-row { flex: 1; display: flex; min-width: 0; }
  .nelo-group--grid .nelo-row__content {
    flex-direction: column-reverse; justify-content: flex-end; align-items: stretch;
    gap: var(--nelo-space-3); padding: 0 0 var(--nelo-space-4);
  }
  .nelo-group--grid .nelo-thumb { width: auto; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
  .nelo-group--grid .nelo-row__text { flex: 1 1 auto; padding: 0 var(--nelo-space-4); }
  .nelo-group--grid .nelo-row__headline { font-size: 1.125rem; line-height: 1.45rem; }
}

/* ---------- wide: iPad landscape ---------- */
@media (min-width: 1024px) {
  :root { --nelo-main-left: calc(var(--nelo-sidebar-w) + env(safe-area-inset-left)); }
  /* A story, or its full coverage, is open in the pane on the right. */
  html:has(.nelo-sheet, .nelo-screen--pane) { --nelo-main-right: var(--nelo-pane-w); }

  body { padding-left: var(--nelo-main-left); padding-right: var(--nelo-main-right); }
  .nelo-app { padding-left: 0; }

  .nelo-sidebar { visibility: visible; transform: none; transition: none; box-shadow: 0.5px 0 0 var(--nelo-separator); }
  .nelo-sidebar.is-open { box-shadow: 0.5px 0 0 var(--nelo-separator); }
  .nelo-sidebar-toggle, .nelo-sidebar-backdrop { display: none; }
  .nelo-navbar__inner { padding-left: var(--nelo-space-2); }

  /* Fixed chrome sits between the sidebar and the pane. A sticky bar inside a screen keeps its own place. */
  .nelo-navbar, .nelo-screen, .nelo-screen-dim { left: var(--nelo-main-left); right: var(--nelo-main-right); }
  .nelo-screen .nelo-navbar { left: 0; right: 0; }
  .nelo-screen--pane {
    left: auto; right: 0; width: var(--nelo-pane-w);
    background: var(--nelo-surface-raised); box-shadow: -0.5px 0 0 var(--nelo-separator);
    animation: nelo-pane-in 300ms var(--nelo-ease);
  }
  .nelo-screen--pane-dim { display: none; }

  /* The story docks as a reading pane. The list beside it keeps scrolling and stays tappable. */
  html.nelo-sheet-open, html.nelo-sheet-open body { overflow: visible; }
  .nelo-sheet-backdrop { display: none; }
  .nelo-sheet {
    inset: 0 0 0 auto; margin: 0; width: var(--nelo-pane-w); height: auto;
    padding-top: env(safe-area-inset-top); padding-right: env(safe-area-inset-right); box-sizing: border-box;
    border-radius: 0; box-shadow: -0.5px 0 0 var(--nelo-separator);
    animation: nelo-pane-in 300ms var(--nelo-ease);
  }
  .nelo-sheet__grabber { visibility: hidden; height: var(--nelo-space-3); }

  /* Today: the lead story beside the top stories, then three columns. */
  .nelo-today__top {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--nelo-space-4); align-items: start;
    margin-top: var(--nelo-space-2); padding: 0 var(--nelo-space-4);
  }
  .nelo-today__top .nelo-card { width: 100%; margin: 0; }
  .nelo-today__top .nelo-section-title { margin-top: 0; padding: 0; }
  .nelo-today__top .nelo-group--grid { margin: 0; }
  .nelo-group--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Top stories beside the lead, and every list while a story is open in the pane, are plain rows again. */
  .nelo-today__top .nelo-group--grid,
  html:has(.nelo-sheet, .nelo-screen--pane) .nelo-group--grid {
    display: block; background: var(--nelo-surface); border-radius: var(--nelo-radius-md); overflow: hidden;
  }
  :is(.nelo-today__top, html:has(.nelo-sheet, .nelo-screen--pane)) .nelo-group--grid > li {
    display: block; background: none; border-radius: 0; box-shadow: none; overflow: visible;
  }
  :is(.nelo-today__top, html:has(.nelo-sheet, .nelo-screen--pane)) .nelo-group--grid > li + li .nelo-row__content::before { content: ""; }
  :is(.nelo-today__top, html:has(.nelo-sheet, .nelo-screen--pane)) .nelo-group--grid .nelo-row { display: block; }
  :is(.nelo-today__top, html:has(.nelo-sheet, .nelo-screen--pane)) .nelo-group--grid .nelo-row__content {
    flex-direction: row; align-items: flex-start; padding: var(--nelo-space-3) var(--nelo-space-4);
  }
  :is(.nelo-today__top, html:has(.nelo-sheet, .nelo-screen--pane)) .nelo-group--grid .nelo-thumb {
    width: var(--nelo-thumb); height: var(--nelo-thumb); aspect-ratio: auto; border-radius: var(--nelo-radius-sm);
  }
  :is(.nelo-today__top, html:has(.nelo-sheet, .nelo-screen--pane)) .nelo-group--grid .nelo-row__text { padding: 0; }
  :is(.nelo-today__top, html:has(.nelo-sheet, .nelo-screen--pane)) .nelo-group--grid .nelo-row__headline { font-size: 1.0625rem; line-height: 1.375rem; }

  /* While reading, the list is iPhone-narrow: the lead story goes back above the top stories. */
  html:has(.nelo-sheet, .nelo-screen--pane) .nelo-today__top { display: block; padding: 0; }
  html:has(.nelo-sheet, .nelo-screen--pane) .nelo-today__top .nelo-card { width: calc(100% - 2 * var(--nelo-space-4)); margin: var(--nelo-space-2) var(--nelo-space-4) 0; }
  html:has(.nelo-sheet, .nelo-screen--pane) .nelo-today__top .nelo-section-title { margin-top: var(--nelo-space-6); padding: 0 var(--nelo-space-4); }
  html:has(.nelo-sheet, .nelo-screen--pane) .nelo-today__top .nelo-group--grid { margin: 0 var(--nelo-space-4); }
  html:has(.nelo-sheet, .nelo-screen--pane) .nelo-today .nelo-card__image { aspect-ratio: 4 / 3; }
  html:has(.nelo-sheet, .nelo-screen--pane) .nelo-today .nelo-card__headline { font-size: 1.3rem; line-height: 1.6rem; }
}

/* Moving with the keyboard keeps a story clear of the bar at the top. */
.nelo-row, .nelo-card { scroll-margin-top: calc(env(safe-area-inset-top) + var(--nelo-nav-bar-height) + var(--nelo-space-2)); scroll-margin-bottom: var(--nelo-space-4); }

/* The story being read is marked in the list beside the pane, and follows J, K and the arrows. */
@media (min-width: 1024px) {
  .nelo-row.is-reading .nelo-row__content,
  .nelo-row.is-reading .nelo-row__content:hover { background: var(--nelo-accent-soft); }
  .nelo-card.is-reading { box-shadow: 0 0 0 2px var(--nelo-accent); }
}

/* ---------- desktop: a computer's browser window ----------
   The wide layout, roomier: a wider reading pane, the list capped at a comfortable reading width while a story is
   open, and on very wide screens the whole frame (sidebar, list, pane) stops at --nelo-frame-max and sits centred. */
@media (min-width: 1280px) {
  :root {
    --nelo-pane-w: clamp(440px, 34vw, 600px);
    --nelo-grid-max: 1320px;
    --nelo-frame-gutter: max(0px, calc((100vw - var(--nelo-frame-max)) / 2));
    --nelo-main-left: calc(var(--nelo-frame-gutter) + var(--nelo-sidebar-w));
    --nelo-main-right: var(--nelo-frame-gutter);
  }
  html:has(.nelo-sheet, .nelo-screen--pane) { --nelo-main-right: calc(var(--nelo-frame-gutter) + var(--nelo-pane-w)); }

  .nelo-sidebar, .nelo-sidebar.is-open { left: var(--nelo-frame-gutter); box-shadow: 0.5px 0 0 var(--nelo-separator), -0.5px 0 0 var(--nelo-separator); }
  .nelo-sheet { inset: 0 var(--nelo-frame-gutter) 0 auto; box-shadow: -0.5px 0 0 var(--nelo-separator), 0.5px 0 0 var(--nelo-separator); }
  .nelo-screen--pane { right: var(--nelo-frame-gutter); }

  /* While reading, the list keeps to a comfortable width in the middle column. */
  html:has(.nelo-sheet, .nelo-screen--pane) .nelo-app { max-width: var(--nelo-content-max); }

  /* The pane reads like a page: a measure of about 70 characters and a larger headline. */
  .nelo-sheet__scroller { padding-left: var(--nelo-space-6); padding-right: var(--nelo-space-6); }
  .nelo-sheet__page { max-width: 34rem; margin: 0 auto; }
  .nelo-sheet__headline { font-size: 1.875rem; line-height: 2.3rem; }

  /* A mouse wheel scrolls whichever column is under the pointer, and stops at its ends. */
  .nelo-screen--pane, .nelo-sidebar__scroller, .nelo-sheet__scroller { overscroll-behavior: contain; }
}

/* ---------- hover previews (desktop, with a mouse or trackpad) ---------- */
.nelo-preview {
  position: fixed; z-index: 60; width: 340px; max-width: calc(100vw - 2 * var(--nelo-space-4)); box-sizing: border-box;
  padding: var(--nelo-space-3) var(--nelo-space-4); border-radius: var(--nelo-radius-md);
  background: var(--nelo-surface-raised); color: var(--nelo-ink); box-shadow: var(--nelo-shadow-popover);
  font-size: 0.9375rem; line-height: 1.35rem; pointer-events: none;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
  animation: nelo-fade-in 120ms ease;
}

/* ---------- keyboard shortcuts (? on a hardware keyboard) ---------- */
.nelo-keys-backdrop { position: fixed; inset: 0; z-index: 70; background: var(--nelo-overlay); animation: nelo-fade-in 200ms var(--nelo-ease); }
.nelo-keys {
  position: fixed; inset: 0; z-index: 71; margin: auto; height: fit-content; max-height: calc(100dvh - 2 * var(--nelo-space-8));
  width: min(520px, calc(100vw - 2 * var(--nelo-space-4))); box-sizing: border-box; overflow-y: auto;
  padding: var(--nelo-space-4) var(--nelo-space-6) var(--nelo-space-6); border-radius: var(--nelo-radius-lg);
  background: var(--nelo-surface-raised); color: var(--nelo-ink); box-shadow: var(--nelo-shadow-popover);
  animation: nelo-pop-in 200ms var(--nelo-ease);
}
.nelo-keys:focus { outline: none; }
.nelo-keys__top { display: flex; align-items: center; justify-content: space-between; gap: var(--nelo-space-3); }
.nelo-keys__title { margin: 0; font-size: 1.25rem; line-height: 1.6rem; font-weight: 700; }
.nelo-keys__group { margin: var(--nelo-space-4) 0 0; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--nelo-ink-muted); }
.nelo-keys__list { margin: var(--nelo-space-2) 0 0; padding: 0; display: grid; grid-template-columns: 4.5rem 1fr; gap: var(--nelo-space-2) var(--nelo-space-4); align-items: center; }
.nelo-keys__list dt { display: flex; gap: 4px; margin: 0; }
.nelo-keys__list dd { margin: 0; font-size: 0.9375rem; }
.nelo-keys kbd {
  display: inline-grid; place-items: center; min-width: 1.75rem; height: 1.75rem; padding: 0 6px; box-sizing: border-box;
  border-radius: 6px; background: var(--nelo-fill); box-shadow: inset 0 -1px 0 var(--nelo-separator);
  font: 600 0.8125rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--nelo-ink);
}

@media (prefers-reduced-motion: reduce) {
  .nelo-sidebar, .nelo-sidebar.is-open { transition: none; }
  .nelo-sheet, .nelo-screen--pane, .nelo-action-sheet { animation: nelo-fade-in 150ms ease; }
  .nelo-action-sheet.is-popover { animation: none; }
  .nelo-preview, .nelo-keys, .nelo-keys-backdrop { animation: none; }
}

/* ---------- story tone (AI tagging) ---------- */
.nelo-tone {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--nelo-space-1);
  font-size: 0.8125rem; line-height: 1.1rem; font-weight: 600; color: var(--nelo-tone-neutral);
}
.nelo-tone__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.nelo-tone--positive { color: var(--nelo-tone-positive); }
.nelo-tone--negative { color: var(--nelo-tone-negative); }

/* ---------- switch row (iOS style) ---------- */
.nelo-switch-row { align-items: center; cursor: pointer; }
.nelo-switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 0;
  width: 51px; height: 31px; border-radius: 16px; background: var(--nelo-fill); cursor: pointer;
  transition: background-color 0.2s ease;
}
.nelo-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: transform 0.2s ease;
}
.nelo-switch:checked { background: var(--nelo-tone-positive); }
.nelo-switch:checked::after { transform: translateX(20px); }
.nelo-switch:focus-visible { outline: 2px solid var(--nelo-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .nelo-switch, .nelo-switch::after { transition: none; } }

/* ---------- muting: the quiet line at the end of Today, and Preferences › Muted ---------- */
.nelo-muted-line {
  margin: var(--nelo-space-6) var(--nelo-space-4) var(--nelo-space-4); padding: var(--nelo-space-3) var(--nelo-space-4);
  border-radius: var(--nelo-radius-lg); background: var(--nelo-surface);
  text-align: center; color: var(--nelo-ink-muted); font-size: 0.9375rem;
}
.nelo-link-button {
  border: 0; padding: 0; background: none; color: var(--nelo-accent);
  font: inherit; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nelo-link-button:focus-visible { outline: 2px solid var(--nelo-accent); outline-offset: 2px; border-radius: 4px; }
.nelo-mute-add { display: flex; align-items: center; gap: var(--nelo-space-2); margin-right: var(--nelo-space-4); }
.nelo-mute-add .nelo-search { flex: 1; margin-right: 0; }
.nelo-mute-add__button {
  flex: none; min-height: 36px; margin: var(--nelo-space-2) 0 var(--nelo-space-3); padding: 0 var(--nelo-space-3);
  border: 0; border-radius: 10px; background: none; color: var(--nelo-accent);
  font: inherit; font-size: 1.0625rem; font-weight: 600; cursor: pointer;
}
.nelo-mute-add__button:disabled { opacity: 0.4; cursor: default; }
.nelo-mute-chips {
  display: flex; flex-wrap: wrap; gap: var(--nelo-space-2);
  margin: 0 var(--nelo-space-4); padding: var(--nelo-space-3); list-style: none;
  border-radius: var(--nelo-radius-lg); background: var(--nelo-surface);
}
.nelo-mute-chip {
  display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 4px 0 14px;
  border-radius: var(--nelo-radius-pill); background: var(--nelo-fill); color: var(--nelo-ink); font-size: 0.9375rem;
}
.nelo-mute-chip__left { color: var(--nelo-ink-muted); white-space: pre; }
.nelo-mute-chip button {
  display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: none; color: var(--nelo-ink-muted); cursor: pointer;
}
.nelo-mute-chip button:active { background: var(--nelo-surface); }
.nelo-mute-topic { display: flex; flex-direction: column; gap: 2px; }

/* ---------- prose pages (Privacy) ---------- */
.nelo-prose { padding: var(--nelo-space-2) var(--nelo-space-4) var(--nelo-space-4); max-width: 40rem; }
.nelo-prose p { margin: 0 0 var(--nelo-space-3); font-size: 1.0625rem; line-height: 1.5; }
.nelo-prose .nelo-section-title { margin-left: 0; margin-right: 0; padding-left: 0; }
.nelo-prose__lead { font-weight: 600; }
.nelo-prose__list { margin: 0 0 var(--nelo-space-3); padding-left: 1.25rem; font-size: 1.0625rem; line-height: 1.5; }
.nelo-prose__list li + li { margin-top: var(--nelo-space-1); }

/* A section title with an action at its end ("Recent searches · Clear"). */
.nelo-section-title--row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--nelo-space-3); }
.nelo-section-title--row .nelo-link-button { font-family: inherit; font-size: 1rem; font-weight: 500; }

/* ---------- grouped settings (Account) ---------- */
/* A tinted rounded square behind each row's icon, as in iOS Settings. White glyph on a solid colour: 4.5:1 or more. */
.nelo-settings-icon {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  color: #fff; background: var(--nelo-accent);
}
.nelo-settings-icon--blue { background: #2350d8; }
.nelo-settings-icon--red { background: #c2413b; }
.nelo-settings-icon--orange { background: #b45309; }
.nelo-settings-icon--green { background: #1a7f52; }
.nelo-settings-icon--purple { background: #6d3fc0; }
.nelo-settings-icon--pink { background: #b8306b; }
.nelo-settings-icon--grey { background: #5f6470; }

/* A − 6 + stepper (digest stories). */
.nelo-stepper { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 9px; background: var(--nelo-fill); }
.nelo-stepper__button {
  display: grid; place-items: center; width: 44px; height: 32px; border: 0; border-radius: 7px;
  background: transparent; color: var(--nelo-ink); cursor: pointer;
}
.nelo-stepper__button:disabled { color: var(--nelo-ink-muted); opacity: 0.45; cursor: default; }
.nelo-stepper__button:focus-visible { outline: 2px solid var(--nelo-accent); outline-offset: 1px; }
.nelo-stepper__value { min-width: 2ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.nelo-time {
  min-height: 34px; padding: 0 var(--nelo-space-2); border: 0; border-radius: 8px;
  background: var(--nelo-fill); color: var(--nelo-ink); font: inherit; font-variant-numeric: tabular-nums;
}
.nelo-time:focus-visible { outline: 2px solid var(--nelo-accent); outline-offset: 1px; }
/* A segmented control inside a list row: the full width of the row. */
.nelo-segmented--inline { flex: 1; margin: 0; }

/* ---------- outlet icons ---------- */
/* 16px icon beside the outlet's name; its tinted monogram shows until the icon loads, or when there's none. */
.nelo-source-icon {
  position: relative; display: inline-block; width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px;
  border-radius: 4px; overflow: hidden; background: hsl(var(--hue, 215) 45% 42%);
}
.nelo-source-icon::before {
  content: attr(data-letter); position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 10px; line-height: 1; font-weight: 700; letter-spacing: 0;
}
.nelo-source-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Listen ---------- */
.nelo-share-actions .nelo-listen { grid-column: 1 / -1; }
html:not([data-speech]) .nelo-listen { display: none; }
.nelo-listen[aria-pressed="true"] .nelo-listen__start,
.nelo-listen:not([aria-pressed="true"]) .nelo-listen__stop { display: none; }

/* ---------- Catch me up ---------- */
/* "Developing story · day 3": the red dot says it's still going. */
.nelo-live { display: inline-flex; align-items: center; gap: 6px; }
.nelo-live::before {
  content: ""; flex: none; width: 7px; height: 7px; margin-left: 3px; border-radius: 50%;
  background: var(--nelo-tone-negative); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nelo-tone-negative), transparent 78%);
}

/* The way in, in the story sheet. */
.nelo-catchup-entry {
  display: flex; align-items: center; gap: var(--nelo-space-3); width: 100%; margin: var(--nelo-space-3) 0 var(--nelo-space-1);
  padding: var(--nelo-space-3) 14px; border: 0; border-radius: var(--nelo-radius-md); text-align: left; cursor: pointer;
  background: var(--nelo-accent-soft); color: var(--nelo-ink);
  transition: opacity 120ms ease;
}
.nelo-catchup-entry:active { opacity: 0.7; }
.nelo-catchup-entry__icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: var(--nelo-accent); color: var(--nelo-on-accent);
}
.nelo-catchup-entry__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nelo-catchup-entry__eyebrow, .nelo-catchup-teaser__eyebrow {
  font-size: 0.6875rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nelo-accent);
}
.nelo-catchup-entry__title { font-size: 1.0625rem; line-height: 1.35rem; font-weight: 600; }
.nelo-catchup-entry__hint { font-size: 0.8125rem; line-height: 1.1rem; color: var(--nelo-ink-muted); }
.nelo-catchup-entry > svg { flex: none; color: var(--nelo-ink-muted); }

/* Full coverage's "In short" card. */
.nelo-catchup-teaser {
  margin: var(--nelo-space-4) var(--nelo-space-4) 0; padding: var(--nelo-space-4);
  border-radius: var(--nelo-radius-md); background: var(--nelo-surface); box-shadow: var(--nelo-shadow-tile);
}
.nelo-catchup-teaser p { margin: 6px 0 0; font-size: 1.0625rem; line-height: 1.5rem; }
.nelo-catchup-teaser .nelo-catchup-teaser__hint { color: var(--nelo-ink-muted); font-size: 0.9375rem; }
.nelo-catchup-teaser .nelo-button { min-height: 44px; font-size: 1rem; }

/* The recap screen. */
.nelo-catchup__head { padding-top: var(--nelo-space-4); }
.nelo-catchup__eyebrow {
  margin: 0; font-size: 0.8125rem; line-height: 1.15rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--nelo-tone-negative);
}
.nelo-catchup__title {
  margin: 4px 0 6px; font-family: var(--nelo-font-display);
  font-size: 1.75rem; line-height: 2.1rem; font-weight: 800; letter-spacing: -0.015em;
}
.nelo-catchup__title:focus { outline: none; }
.nelo-catchup__lead { margin: var(--nelo-space-3) var(--nelo-space-4) 0; font-size: 1.0625rem; line-height: 1.55rem; }
.nelo-catchup__lead--muted { color: var(--nelo-ink-muted); }
.nelo-catchup__loading { display: flex; flex-direction: column; gap: var(--nelo-space-2); padding-top: var(--nelo-space-3); }
.nelo-catchup__skeleton { height: 1.1rem; margin-top: var(--nelo-space-2); }
.nelo-catchup__skeleton--short { width: 60%; }
.nelo-catchup-card {
  list-style: none; margin: 0 var(--nelo-space-4); padding: 4px var(--nelo-space-4);
  background: var(--nelo-surface); border-radius: var(--nelo-radius-md); box-shadow: var(--nelo-shadow-tile);
}
.nelo-timeline li { position: relative; padding: var(--nelo-space-3) 0 var(--nelo-space-3) 22px; }
.nelo-timeline li::before {
  content: ""; position: absolute; left: 3px; top: 18px; width: 9px; height: 9px; box-sizing: border-box;
  border-radius: 50%; background: var(--nelo-surface); border: 2px solid var(--nelo-accent);
}
.nelo-timeline li::after { content: ""; position: absolute; left: 7px; top: 30px; bottom: -14px; width: 1.5px; background: var(--nelo-separator); }
.nelo-timeline li:last-child::after { display: none; }
.nelo-timeline--next li::before { border-color: var(--nelo-ink-muted); }
.nelo-timeline__when {
  display: block; font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--nelo-ink-muted);
}
.nelo-timeline__text { display: block; margin-top: 2px; font-size: 1rem; line-height: 1.4rem; }
.nelo-catchup__latest li { padding: var(--nelo-space-3) 0; }
.nelo-catchup__latest li + li { border-top: 0.5px solid var(--nelo-separator); }
.nelo-catchup__new {
  display: inline-block; margin-bottom: 4px; padding: 1px 7px; border-radius: var(--nelo-radius-pill);
  background: var(--nelo-accent); color: var(--nelo-on-accent);
  font-size: 0.6875rem; line-height: 1rem; font-weight: 700; letter-spacing: 0.02em;
}
.nelo-cite {
  display: inline-flex; align-items: center; gap: 3px; margin-top: 6px; padding: 2px 8px 2px 4px;
  border-radius: var(--nelo-radius-pill); background: var(--nelo-fill); color: var(--nelo-ink-muted);
  font-size: 0.75rem; line-height: 1.1rem; font-weight: 600; text-decoration: none;
  position: relative;
}
.nelo-cite::after { content: ""; position: absolute; inset: -8px -2px; } /* a bigger target than it looks */
.nelo-cite .nelo-source-icon { width: 14px; height: 14px; margin-right: 2px; vertical-align: 0; }
.nelo-cite .nelo-source-icon::before { font-size: 9px; }
.nelo-cite:active { opacity: 0.6; }
.nelo-catchup__ai {
  display: flex; gap: 10px; align-items: flex-start; margin: var(--nelo-space-5) var(--nelo-space-4) 0;
  font-size: 0.8125rem; line-height: 1.15rem; color: var(--nelo-ink-muted);
}
.nelo-catchup__ai svg { flex: none; margin-top: 1px; color: var(--nelo-accent); }
.nelo-catchup__useful {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; box-sizing: border-box;
  margin: var(--nelo-space-3) var(--nelo-space-4) 0; padding: 6px 6px 6px var(--nelo-space-4);
  border-radius: var(--nelo-radius-md); background: var(--nelo-surface); box-shadow: var(--nelo-shadow-tile);
  font-size: 0.9375rem; font-weight: 600;
}
.nelo-catchup__thumbs { display: flex; gap: 4px; }
.nelo-catchup__thumbs button {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--nelo-accent);
  display: grid; place-items: center; cursor: pointer;
}
.nelo-catchup__thumbs button:active { background: var(--nelo-fill); }
.nelo-catchup__coverage { margin-top: var(--nelo-space-4); }
@media (hover: hover) and (pointer: fine) {
  .nelo-catchup-entry:hover { background: color-mix(in srgb, var(--nelo-accent-soft), var(--nelo-accent) 8%); }
  .nelo-cite:hover { color: var(--nelo-accent); }
  .nelo-catchup__thumbs button:hover { background: var(--nelo-fill); }
}
