:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --app-bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #f4f5f7;
  --glass: rgba(255, 255, 255, 0.94);
  --text: #111318;
  --muted: #2f3742;
  --accent: #ff315d;
  --accent-soft: rgba(255, 49, 93, 0.12);
  --accent-strong: #7c3aed;
  --line: rgba(17, 19, 24, 0.12);
  --chrome: rgba(255, 255, 255, 0.82);
  --shadow: 0 18px 60px rgba(20, 22, 30, 0.18);
  --theme-a: #ff315d;
  --theme-b: #ffb000;
  --theme-c: #7c3aed;
  --theme-d: #00c2ff;
  --safe-top: max(env(safe-area-inset-top), 1.9rem);
  --safe-bottom: max(env(safe-area-inset-bottom), 1.75rem);
  --top-bar-height: calc(4rem + var(--safe-top));
  --bottom-bar-height: calc(3.75rem + var(--safe-bottom));
  --card-chrome-gap: 1.25rem;
}

html[data-mode="dark"] {
  color-scheme: dark;
  --bg: #050509;
  --app-bg: #050509;
  --panel: #121218;
  --panel-strong: #1c1c24;
  --glass: rgba(10, 10, 14, 0.9);
  --text: #ffffff;
  --muted: #e2e4ea;
  --accent: #ff4f7b;
  --accent-soft: rgba(255, 79, 123, 0.16);
  --accent-strong: #a78bfa;
  --line: rgba(255, 255, 255, 0.16);
  --chrome: rgba(5, 5, 9, 0.72);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  --theme-a: #ff315d;
  --theme-b: #ffb000;
  --theme-c: #7c3aed;
  --theme-d: #00c2ff;
}

html[data-theme="mono"] {
  color-scheme: light;
  --bg: #f8f8f8;
  --app-bg: #ffffff;
  --panel: #ffffff;
  --panel-strong: #eeeeee;
  --glass: rgba(255, 255, 255, 0.96);
  --text: #090909;
  --muted: #262626;
  --accent: #000000;
  --accent-soft: rgba(0, 0, 0, 0.08);
  --accent-strong: #525252;
  --line: rgba(0, 0, 0, 0.18);
  --chrome: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 58px rgba(0, 0, 0, 0.14);
  --theme-a: #101010;
  --theme-b: #d5d5d5;
  --theme-c: #ffffff;
  --theme-d: #777777;
}

html[data-theme="roses"] {
  color-scheme: light;
  --bg: #fff2f6;
  --app-bg: #fff8fb;
  --panel: #fff8fb;
  --panel-strong: #ffe7ef;
  --glass: rgba(255, 248, 251, 0.94);
  --text: #251019;
  --muted: #593342;
  --accent: #d91f5c;
  --accent-soft: rgba(217, 31, 92, 0.13);
  --accent-strong: #9f4f9f;
  --line: rgba(94, 22, 48, 0.16);
  --chrome: rgba(255, 248, 251, 0.84);
  --shadow: 0 18px 62px rgba(118, 31, 61, 0.18);
  --theme-a: #ff7aa8;
  --theme-b: #ffd1dc;
  --theme-c: #b96ed8;
  --theme-d: #ffb15f;
}

html[data-theme="mono"][data-mode="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --app-bg: #000000;
  --panel: #111111;
  --panel-strong: #1c1c1c;
  --glass: rgba(0, 0, 0, 0.92);
  --text: #ffffff;
  --muted: #e8e8e8;
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.13);
  --accent-strong: #999999;
  --line: rgba(255, 255, 255, 0.2);
  --chrome: rgba(0, 0, 0, 0.78);
  --theme-a: #ffffff;
  --theme-b: #7a7a7a;
  --theme-c: #1b1b1b;
  --theme-d: #d8d8d8;
}

html[data-theme="roses"][data-mode="dark"] {
  color-scheme: dark;
  --bg: #16070e;
  --app-bg: #16070e;
  --panel: #24111a;
  --panel-strong: #321724;
  --glass: rgba(36, 17, 26, 0.92);
  --text: #fff6f9;
  --muted: #ffd7e4;
  --accent: #ff6f9f;
  --accent-soft: rgba(255, 111, 159, 0.16);
  --accent-strong: #d9a7ff;
  --line: rgba(255, 214, 228, 0.2);
  --chrome: rgba(22, 7, 14, 0.78);
  --theme-a: #ff2f78;
  --theme-b: #7a1d44;
  --theme-c: #d9a7ff;
  --theme-d: #ffb15f;
}

html[data-accessible="true"] {
  --glass: var(--panel);
  --chrome: var(--panel);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

html[data-accessible="true"][data-mode="dark"] {
  --glass: var(--panel);
  --chrome: var(--panel);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  overscroll-behavior: none;
  touch-action: pan-y;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
  transition: background 240ms ease, color 200ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  position: relative;
  width: min(100%, 31rem);
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--app-bg);
  border-inline: 1px solid var(--line);
  transition: background 220ms ease, border-color 220ms ease;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  width: min(100%, 31rem);
  min-height: var(--top-bar-height);
  direction: ltr;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: calc(var(--safe-top) + 0.32rem) 0.45rem 0.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--chrome), color-mix(in srgb, var(--chrome), transparent 34%));
  backdrop-filter: blur(22px) saturate(1.25);
  transform: translateX(-50%);
  transition: background 220ms ease, border-color 220ms ease;
}

.top-actions {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0.35rem;
}

.top-actions::-webkit-scrollbar,
.bottom-bar::-webkit-scrollbar { display: none; }
html[dir="rtl"] .top-actions { direction: rtl; }
.top-actions .text-button {
  flex: 1 0 auto;
  min-width: 2.6rem;
  min-height: 3rem;
  padding-inline: 0.65rem;
  font-size: 0.84rem;
  white-space: nowrap;
}

.brand {
  display: flex;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  justify-content: center;
  padding: 0;
  overflow: visible;
  align-items: center;
  gap: 0.42rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.brand-logo {
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.eyebrow {
  display: none;
  margin: 0 0 0.1rem;
  color: var(--accent);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

h2,
p {
  margin-block: 0;
}

.icon-button {
  display: grid;
  width: 3.55rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: color-mix(in srgb, var(--panel), transparent 8%);
  color: var(--text);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.text-button,
.close-button,
.save-button {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel), transparent 8%);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.text-button {
  min-height: 2.6rem;
  padding: 0 0.5rem;
  border-radius: 0.9rem;
  font-size: 0.68rem;
}

button:active,
a:active {
  transform: scale(0.97);
}

.feed {
  overflow-anchor: none;
  height: 100dvh;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  scrollbar-width: none;
}

.feed-spacer { pointer-events: none; flex-shrink: 0; }
.storage-notice {
  pointer-events: none;
  position: fixed;
  z-index: 9;
  top: var(--top-bar-height);
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 29rem);
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}

.feed::-webkit-scrollbar {
  display: none;
}

.info-card {
  position: relative;
  display: flex;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--top-bar-height) + var(--card-chrome-gap)) 0.75rem calc(var(--bottom-bar-height) + var(--card-chrome-gap));
  isolation: isolate;
}

.info-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='80' viewBox='0 0 40 80'%3E%3Cpath d='M-40 80L0 0M0 80L40 0M40 80L80 0' fill='none' stroke='white' stroke-opacity='.15' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 80px;
  background-position: 0 var(--pattern-y, 0px);
}

.feed-ad-slot {
  position: absolute;
  left: 50%;
  bottom: -60px;
  width: min(360px, calc(100% - 48px));
  height: 120px;
  transform: translateX(-50%);
  pointer-events: none;
}

.media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.16) 36%, rgba(0, 0, 0, 0.74) 100%),
    var(--card-gradient, linear-gradient(135deg, #214a53, #4b3b68));
}

.media::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 255, 255, 0.42) 0 3.4rem, transparent 3.5rem),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.28) 0 2.2rem, transparent 2.3rem);
  opacity: 0.76;
}

.media::after {
  position: absolute;
  inset: auto -18% 16% -18%;
  height: 20rem;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255, 255, 255, 0.14) 16% 17%, transparent 17% 32%, rgba(255, 255, 255, 0.1) 32% 33%, transparent 33%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
  transform: rotate(-8deg);
}

.card-content {
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  padding: 1rem 1rem 1.55rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.12);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.ad-card {
  justify-content: center;
}

.ad-content {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: center;
}

.ad-content h2 {
  margin: 0;
}

.ad-content p {
  color: var(--muted);
  line-height: 1.5;
}

.ad-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retry-button {
  min-height: 2.75rem;
  border: 0;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0 0.65rem;
  border: 1px solid color-mix(in srgb, var(--accent), transparent 56%);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
}

.read-time {
  white-space: nowrap;
}

.listen-button {
  min-height: 1.9rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.like-button[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

h2 {
  margin-bottom: 0.72rem;
  font-size: clamp(1.65rem, 7.4vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.article-body {
  display: grid;
  gap: 0.8rem;
}

.article-body p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.66;
}

.article-body p:first-child {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 520;
}

.read-more {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  margin: 1rem 0 0.65rem;
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease, transform 160ms ease;
}

.attribution {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.attribution a {
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: none;
}

.read-more::after {
  content: ">";
  margin-inline-start: 0.45rem;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 3;
  display: flex;
  width: min(100%, 31rem);
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 0.7rem;
  min-height: var(--bottom-bar-height);
  align-items: start;
  padding: 0.45rem 0.7rem calc(var(--safe-bottom) + 0.18rem);
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, var(--chrome), color-mix(in srgb, var(--chrome), transparent 15%));
  backdrop-filter: blur(22px) saturate(1.25);
  transform: translateX(-50%);
  transition: background 220ms ease, border-color 220ms ease;
}

.control-button {
  flex: 1 0 auto;
  min-width: 3rem;
  white-space: nowrap;
  hyphens: none;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel), transparent 65%);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.control-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent), transparent 72%);
}

.icon-button.focus-toggle[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
}

html[data-bionic="true"] .article-body p {
  font-weight: 400;
}

.bionic-lead {
  color: var(--text);
  font-weight: 800;
}

.topic-editor {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: color-mix(in srgb, var(--bg), rgba(0, 0, 0, 0.5) 42%);
  backdrop-filter: blur(10px);
}

.theme-editor {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: color-mix(in srgb, var(--bg), rgba(0, 0, 0, 0.5) 42%);
  backdrop-filter: blur(10px);
}

.legal-editor {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: color-mix(in srgb, var(--bg), rgba(0, 0, 0, 0.5) 42%);
  backdrop-filter: blur(10px);
}

.access-editor,
.language-editor {
  position: fixed;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: end center;
  padding: 1rem;
  background: color-mix(in srgb, var(--bg), rgba(0, 0, 0, 0.5) 42%);
  backdrop-filter: blur(10px);
}

.access-editor[hidden],
.language-editor[hidden] {
  display: none;
}

.legal-editor[hidden] {
  display: none;
}

.theme-editor[hidden] {
  display: none;
}

.topic-editor[hidden] {
  display: none;
}

.topic-panel {
  width: min(100%, 31rem);
  max-height: min(44rem, calc(100vh - 2rem));
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem 1.25rem 0.75rem 0.75rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.editor-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.editor-header h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.close-button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.85rem;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.theme-options {
  display: grid;
  gap: 0.65rem;
}

.theme-choice {
  display: grid;
  grid-template-columns: 3.8rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.35rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.theme-choice.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.language-choice { grid-template-columns: 2.8rem minmax(0, 1fr) auto; }
.language-code { font-size: 0.9rem; font-weight: 850; text-align: center; }
.language-choice > span { min-width: 0; overflow-wrap: anywhere; }
.language-choice .choice-state { max-width: 5rem; }
.legal-copy { text-align: start; }
#legalLanguageNotice { margin-block: 1rem; color: var(--muted); }
html[dir="rtl"] .read-more::after { content: "<"; direction: ltr; unicode-bidi: isolate; }
.article-body, .info-card h2 { text-align: start; }

.theme-swatch {
  width: 3.4rem;
  height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--swatch);
}

.theme-name {
  display: block;
  font-weight: 850;
}

.theme-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.choice-state {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.access-swatch {
  background: linear-gradient(135deg, var(--accent), var(--panel), var(--accent-strong));
}

.bionic-swatch {
  background: linear-gradient(135deg, var(--text) 0 38%, var(--panel) 38% 62%, var(--accent) 62%);
}

.legal-copy {
  display: grid;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.legal-copy a {
  color: var(--accent-strong);
  font-weight: 850;
  text-decoration: none;
}

[hidden] { display: none !important; }
.ad-settings { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ad-settings h3 { margin: 0; }
.ad-settings p { font-size: 0.88rem; line-height: 1.5; }
.ad-settings button { margin: 0.3rem 0; min-height: 2.75rem; }
.legal-copy details { border-bottom: 1px solid var(--line); padding-bottom: 0.8rem; }
.legal-copy summary { font-weight: 850; color: var(--text); cursor: pointer; padding: 0.4rem 0; }
.legal-copy address { font-style: normal; }
.legal-copy h3 { font-size: 1rem; color: var(--text); }
.legal-copy a { overflow-wrap: anywhere; }

.topic-choice {
  display: flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: var(--panel-strong);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 750;
  transition: background 180ms ease, border-color 180ms ease, transform 160ms ease;
}

.topic-choice input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}

.editor-note {
  min-height: 1.45rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.save-button {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.75rem;
  border-color: color-mix(in srgb, var(--accent), transparent 50%);
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #ffffff;
}

.save-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.loading {
  position: relative;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: calc(var(--top-bar-height) + var(--card-chrome-gap)) 0.75rem calc(var(--bottom-bar-height) + var(--card-chrome-gap));
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18) 36%, rgba(0, 0, 0, 0.72) 100%),
    var(--card-gradient, linear-gradient(145deg, var(--theme-a), var(--theme-c), var(--theme-d)));
}

.loading-copy {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.skeleton-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--glass);
  box-shadow: var(--shadow);
}

.skeleton-row {
  height: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted), transparent 78%);
}

.skeleton-row::after {
  display: block;
  width: 45%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text), transparent 72%), transparent);
  animation: skeleton-sweep 1.15s ease-in-out infinite;
}

.skeleton-row.is-title {
  height: 2.1rem;
  width: 78%;
}

.skeleton-row.is-short {
  width: 52%;
}

@keyframes skeleton-sweep {
  from {
    transform: translateX(-120%);
  }

  to {
    transform: translateX(240%);
  }
}

html[data-accessible="true"] .feed {
  scroll-behavior: auto;
  scroll-snap-type: none;
}

html[data-accessible="true"] .info-card {
  min-height: auto;
  padding-block: calc(var(--top-bar-height) + var(--card-chrome-gap)) calc(var(--bottom-bar-height) + var(--card-chrome-gap));
}

html[data-accessible="true"] .card-content {
  max-height: none;
  overflow: visible;
  border-width: 2px;
  backdrop-filter: none;
}

html[data-accessible="true"] .article-body p {
  font-size: 1.2rem;
  line-height: 1.76;
}

html[data-accessible="true"] h2 {
  font-size: clamp(1.8rem, 8vw, 2.55rem);
  line-height: 1.08;
}

html[data-accessible="true"] .text-button,
html[data-accessible="true"] .icon-button,
html[data-accessible="true"] .control-button,
html[data-accessible="true"] .listen-button {
  min-height: 3rem;
}

html[data-accessible="true"] .listen-button {
  width: 100%;
  font-size: 1rem;
}

@media (min-width: 36rem) {
  body {
    padding-inline: 1rem;
  }

  .app-shell {
    box-shadow: 0 0 0 1px var(--line), 0 32px 120px rgba(0, 0, 0, 0.38);
  }
}

@media (max-height: 40rem) {
  .info-card {
    padding-top: calc(var(--top-bar-height) + 0.45rem);
  }

  .card-content {
    max-height: none;
    padding: 1rem;
  }

  h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .article-body p {
    font-size: 1rem;
    line-height: 1.55;
  }
}
