:root {
  color-scheme: light;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Serif TC", serif;
  --serif: var(--font-serif);
  --font-display: clamp(42px, 7vw, 72px);
  --font-page: clamp(34px, 5vw, 54px);
  --font-section: clamp(24px, 3vw, 34px);
  --font-card: 22px;
  --font-reading: 20px;
  --font-body: 19px;
  --font-body-sm: 17px;
  --font-ui: 16px;
  --font-ui-strong: 16px;
  --font-meta: 15px;
  --weight-regular: 500;
  --weight-medium: 600;
  --weight-semibold: 700;
  --weight-bold: 800;
  --weight-black: 900;
  --radius-large: 16px;
  --radius-card: 12px;
  --radius-control: 8px;
  --radius-pill: 999px;
  --story-header-lift: -1px;
  --border-subtle: rgba(16, 42, 35, 0.14);
  --border-default: rgba(16, 42, 35, 0.22);
  --border-strong: rgba(7, 28, 23, 0.56);
  --hover-soft: rgba(185, 154, 91, 0.14);
  --hover-strong: #071c17;
  --selected-soft: rgba(185, 154, 91, 0.2);
  --bg: #f7efe1;
  --bg-soft: #fffaf0;
  --panel: #fff8ec;
  --panel-strong: #efe2c8;
  --text: #102a23;
  --panel-text: #102a23;
  --muted: #4f5d53;
  --line: rgba(16, 42, 35, 0.22);
  --accent: #102a23;
  --accent-strong: #fff8ec;
  --accent-soft: rgba(16, 42, 35, 0.08);
  --warning: #b56a5a;
  --positive: #8faf8a;
  --ink: #071c17;
  --radius: var(--radius-card);
  --shadow: 0 20px 40px rgba(16, 42, 35, 0.14);
  --card-bg: rgba(255, 248, 236, 0.94);
  --topbar-bg: rgba(255, 248, 236, 0.92);
  --reading-surface: #fbf3e5;
  --soft-surface: rgba(232, 221, 199, 0.34);
  --subtle-ink: rgba(16, 42, 35, 0.72);
  --quiet-ink: rgba(16, 42, 35, 0.62);
  --strong-border: rgba(7, 28, 23, 0.65);
  --focus-ring: rgba(185, 154, 91, 0.72);
  --theme-duration: 520ms;
  --page-inset: 34px;
  font-family: var(--font-serif);
}

html[data-theme="night"] {
  color-scheme: dark;
  --border-subtle: rgba(247, 239, 225, 0.12);
  --border-default: rgba(247, 239, 225, 0.18);
  --border-strong: rgba(212, 180, 110, 0.46);
  --hover-soft: rgba(212, 180, 110, 0.18);
  --hover-strong: #d4b46e;
  --selected-soft: rgba(212, 180, 110, 0.24);
  --bg: #071c17;
  --bg-soft: #0c241e;
  --panel: #102a23;
  --panel-strong: #18362e;
  --text: #f7efe1;
  --panel-text: #f7efe1;
  --muted: #c5d0c2;
  --line: rgba(247, 239, 225, 0.18);
  --accent: #d4b46e;
  --accent-strong: #071c17;
  --accent-soft: rgba(185, 154, 91, 0.18);
  --warning: #d79a86;
  --positive: #a9c89e;
  --ink: #f7efe1;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  --card-bg: rgba(16, 42, 35, 0.88);
  --topbar-bg: rgba(12, 36, 30, 0.9);
  --reading-surface: rgba(13, 39, 33, 0.9);
  --soft-surface: rgba(247, 239, 225, 0.08);
  --subtle-ink: rgba(247, 239, 225, 0.76);
  --quiet-ink: rgba(247, 239, 225, 0.62);
  --strong-border: rgba(185, 154, 91, 0.48);
  --focus-ring: rgba(212, 180, 110, 0.78);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 43% 27%, rgba(255, 252, 244, 0.86) 0%, rgba(255, 250, 240, 0.72) 28%, rgba(255, 250, 240, 0.34) 52%, rgba(255, 250, 240, 0) 72%),
    linear-gradient(135deg, rgba(255, 250, 240, 0.96) 0%, rgba(247, 239, 225, 0.84) 46%, rgba(247, 239, 225, 0.58) 100%),
    url("./assets/guotalk-morning-landscape.png"),
    linear-gradient(rgba(16, 42, 35, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 35, 0.024) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, cover, 22px 22px, 22px 22px, auto;
  background-position: center, center, right bottom, left top, left top, center;
  background-attachment: fixed, fixed, fixed, fixed, fixed, scroll;
  color: var(--text);
  font-size: 19px;
  transition:
    background-color var(--theme-duration) ease,
    color var(--theme-duration) ease;
}

html[data-theme="night"] body {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(212, 180, 110, 0.16) 0%, rgba(212, 180, 110, 0.08) 18%, rgba(7, 28, 23, 0) 42%),
    linear-gradient(90deg, rgba(7, 28, 23, 0.86) 0%, rgba(7, 28, 23, 0.64) 45%, rgba(7, 28, 23, 0.46) 100%),
    linear-gradient(180deg, rgba(7, 28, 23, 0.4) 0%, rgba(7, 28, 23, 0.92) 100%),
    url("./assets/guotalk-night-landscape.png"),
    linear-gradient(rgba(247, 239, 225, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 239, 225, 0.02) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, cover, 22px 22px, 22px 22px, auto;
  background-position: center, center, center, right bottom, left top, left top, center;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, scroll;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    radial-gradient(rgba(7, 28, 23, 0.18) 0.7px, transparent 0.7px);
  background-size: 5px 5px;
}

html[data-theme="night"] body::before {
  opacity: 0.18;
  background-image:
    radial-gradient(rgba(247, 239, 225, 0.2) 0.7px, transparent 0.7px);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(185, 154, 91, 0.72);
  outline-offset: 3px;
}

summary {
  border-radius: var(--radius-control);
}

button,
select,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(16, 42, 35, 0.12);
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.topbar {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
  padding: 18px 30px 18px 24px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius-large);
  background: var(--topbar-bg);
  backdrop-filter: blur(3px);
  box-shadow: 0 18px 42px rgba(16, 42, 35, 0.1);
  transition: none;
}

.brand {
  --brand-copy-width: 160px;
  display: grid;
  grid-template-columns: 82px var(--brand-copy-width);
  column-gap: 24px;
  align-items: center;
  border-radius: var(--radius);
  padding: 4px 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  min-height: 90px;
}

.brand-mark {
  width: 82px;
  height: 82px;
  grid-row: span 2;
  border-radius: var(--radius);
  background-image: url("./assets/guotalk-logo-display.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 8px 14px rgba(16, 42, 35, 0.14));
}

.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;
}

.brand strong {
  align-self: end;
  color: #071c17;
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 32px;
  letter-spacing: 0;
  line-height: 1;
  transition: none;
  white-space: nowrap;
}

.brand-tagline {
  align-self: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.25;
  margin-top: 7px;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--panel-text);
  border: 1px solid rgba(185, 154, 91, 0.28);
  padding: 7px 12px;
  font-size: var(--font-meta);
  font-weight: 700;
  white-space: nowrap;
}

.daily-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 190px;
  padding-left: 16px;
  padding-right: 8px;
  color: var(--ink);
  text-align: right;
}

.daily-status span {
  color: var(--muted);
  font-size: var(--font-meta);
  font-weight: 800;
}

.daily-status strong {
  font-size: 14px;
  line-height: 1.3;
}

.nav-pill {
  min-height: 42px;
  border: 1px solid rgba(16, 42, 35, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.74);
  color: var(--ink);
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.nav-pill:hover,
.nav-pill.active {
  border-color: rgba(7, 28, 23, 0.5);
  background: var(--ink);
  color: var(--accent-strong);
}

.auth-box {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 150px;
  color: var(--muted);
  font-size: var(--font-meta);
  font-weight: 800;
}

.auth-box.auth-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 104px;
}

.auth-box.signed-in span {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-box.disabled {
  opacity: 0.72;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.auth-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(16, 42, 35, 0.3);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.76);
  color: var(--ink);
  padding: 0;
}

.auth-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-icon-button:hover {
  background: var(--accent);
  color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(185, 154, 91, 0.12);
}

.account-menu {
  position: relative;
}

.account-menu-panel {
  position: absolute;
  top: 56px;
  right: 0;
  z-index: 200;
  display: none;
  gap: 12px;
  min-width: 226px;
  padding: 16px;
  border: 1px solid rgba(16, 42, 35, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 18px 36px rgba(16, 42, 35, 0.16);
}

.account-menu-panel.open {
  display: grid;
}

.account-menu-panel strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.account-menu-panel .auth-link {
  width: 100%;
  min-height: 42px;
}

.auth-button,
.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 42, 35, 0.3);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.76);
  color: var(--ink);
  padding: 8px 13px;
  font-size: var(--font-meta);
  font-weight: 900;
  white-space: nowrap;
}

.auth-button {
  min-height: 48px;
  font-size: var(--font-ui);
  line-height: 1.2;
}

.auth-button:hover,
.auth-link:hover {
  background: var(--accent);
  color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(185, 154, 91, 0.12);
}

.auth-error {
  max-width: 190px;
  color: var(--warning);
  line-height: 1.35;
  text-align: right;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 142px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.82);
  color: var(--ink);
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.theme-toggle:hover {
  border-color: rgba(185, 154, 91, 0.46);
  background: rgba(255, 248, 236, 0.96);
  box-shadow: 0 0 0 3px rgba(185, 154, 91, 0.12);
}

.theme-track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  pointer-events: none;
}

.theme-orb {
  position: absolute;
  left: 5px;
  top: 5px;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #f7efe1;
  box-shadow:
    0 8px 18px rgba(16, 42, 35, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateX(0);
  transition:
    transform 420ms cubic-bezier(0.16, 0.82, 0.22, 1),
    background-color 260ms ease,
    box-shadow 260ms ease;
}

.theme-icon {
  position: absolute;
  display: block;
  width: 18px;
  height: 18px;
}

.theme-icon-sun {
  border-radius: 999px;
  background: #d2a244;
  box-shadow:
    0 0 0 4px rgba(210, 162, 68, 0.2),
    0 0 14px rgba(210, 162, 68, 0.36);
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-sun::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background:
    linear-gradient(#d2a244, #d2a244) center / 2px 100% no-repeat,
    linear-gradient(90deg, #d2a244, #d2a244) center / 100% 2px no-repeat;
  opacity: 0.62;
  transform: rotate(45deg);
}

.theme-icon-moon {
  border-radius: 999px;
  background: #f7efe1;
  box-shadow:
    -5px -2px 0 0 rgba(13, 39, 33, 0.58) inset,
    0 0 14px rgba(247, 239, 225, 0.5);
  opacity: 0;
  transform: scale(1);
}

.theme-label {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  font-size: var(--font-meta);
  font-weight: var(--weight-bold);
  line-height: 1.1;
  letter-spacing: 0.08em;
  transition:
    color 260ms ease,
    opacity 220ms ease,
    transform 340ms cubic-bezier(0.16, 0.82, 0.22, 1);
}

.theme-label-left {
  left: 10px;
  opacity: 0;
  transform: translateY(-50%) translateX(-6px);
}

.theme-label-right {
  right: 10px;
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.theme-toggle.night {
  background: rgba(7, 28, 23, 0.76);
  color: #f7efe1;
  border-color: rgba(247, 239, 225, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(247, 239, 225, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.theme-toggle.night:hover {
  background: rgba(10, 38, 32, 0.9);
  box-shadow: 0 0 0 3px rgba(212, 180, 110, 0.16);
}

.theme-toggle.night .theme-orb {
  background: rgba(247, 239, 225, 0.13);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(247, 239, 225, 0.18);
  transform: translateX(94px);
}

.theme-toggle.night .theme-icon-sun {
  opacity: 0;
  transform: rotate(0deg) scale(1);
}

.theme-toggle.night .theme-icon-moon {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle.night .theme-label-left {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.theme-toggle.night .theme-label-right {
  opacity: 0;
  transform: translateY(-50%) translateX(6px);
}

.site-footer {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-top: 92px;
  padding: 22px 8px 0;
  border-top: 1px solid rgba(16, 42, 35, 0.12);
}

.footer-note {
  margin: 4px 0 0;
  color: rgba(16, 42, 35, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  width: 100%;
}

.footer-links a {
  color: rgba(16, 42, 35, 0.56);
  font-size: var(--font-meta);
  font-weight: 600;
  text-align: center;
}

.footer-links a:hover {
  color: rgba(16, 42, 35, 0.82);
}

.footer-note {
  padding-top: 2px;
  border-top: 0;
  text-align: center;
  font-size: var(--font-meta);
}

.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 28, 23, 0.54);
  backdrop-filter: blur(5px);
}

.legal-modal {
  width: min(680px, calc(100vw - 36px));
  max-height: min(92vh, 760px);
  overflow: auto;
  overflow-x: hidden;
  border: 1px solid rgba(16, 42, 35, 0.18);
  border-radius: var(--radius-large);
  background: rgba(255, 248, 236, 0.98);
  box-shadow: 0 26px 70px rgba(7, 28, 23, 0.32);
  padding: 28px;
}

.legal-modal h2 {
  margin: 4px 0 12px;
  color: var(--ink);
  font-size: 31px;
  line-height: 1.18;
}

.legal-modal p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.legal-modal-note {
  display: grid;
  gap: 6px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: 14px;
  background: rgba(16, 42, 35, 0.055);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.legal-modal-note strong {
  color: var(--ink);
}

.vocabulary-remove-modal {
  width: min(100%, 420px);
  padding: 26px;
}

.vocabulary-remove-backdrop {
  z-index: 70;
}

.vocabulary-remove-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.global-transition {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(255, 248, 236, 0.76);
  backdrop-filter: blur(8px);
}

.global-transition-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(100%, 320px);
  padding: 22px 24px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius-large);
  background: rgba(255, 252, 245, 0.96);
  box-shadow: 0 20px 52px rgba(7, 28, 23, 0.18);
  text-align: center;
}

.global-transition-panel strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.global-transition-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.global-transition-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(27, 95, 75, 0.18);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: buttonSpin 0.85s linear infinite;
}

.missing-route-screen {
  min-height: min(660px, calc(100svh - 168px));
  display: grid;
  place-items: center;
  padding: 38px var(--page-inset);
}

.static-page-shell .missing-route-screen {
  min-height: calc(100svh - 68px);
}

.missing-route-card {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 16px;
  width: min(100%, 640px);
  min-height: 310px;
  padding: 38px clamp(24px, 5vw, 52px);
  border-radius: var(--radius);
  text-align: center;
}

.missing-route-card .eyebrow {
  color: var(--quiet-ink);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.missing-route-card h1 {
  max-width: 520px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(36px, 4.6vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.missing-route-card p:not(.eyebrow) {
  max-width: 440px;
  min-height: 0;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: balance;
}

.missing-route-card .actions {
  justify-content: center;
  margin-top: 8px;
}

.missing-route-card .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 46px;
  padding-inline: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.legal-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 12px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: var(--weight-semibold);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.legal-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.legal-actions a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.legal-actions .button {
  margin-left: auto;
  min-width: 0;
}

.auth-gate-actions {
  justify-content: flex-end;
}

.auth-gate-actions .button {
  margin-left: 0;
}

.legal-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--warning);
  font-size: 14px;
  font-weight: 800;
}

.legal-status:empty {
  display: none;
}

.legal-page {
  padding-top: 24px;
}

.legal-page .panel {
  gap: 0;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 30px;
}

.legal-page .eyebrow {
  margin-bottom: 18px;
}

.legal-page h1 {
  margin: 0 0 24px;
  color: var(--panel-text);
  font-size: 40px;
  line-height: 1.18;
}

.legal-page h2 {
  margin: 26px 0 10px;
  color: var(--panel-text);
  font-size: 28px;
  line-height: 1.25;
}

.legal-page p {
  margin: 0 0 16px;
  color: rgba(16, 42, 35, 0.74);
  line-height: 1.7;
}

.legal-page .report-list {
  margin-bottom: 18px;
}

.legal-page .button {
  margin-top: 8px;
}

.hero {
  display: grid;
  gap: 16px;
  margin: 48px 0 34px;
  padding: 14px var(--page-inset) 0;
}

.eyebrow {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.2;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-statement {
  color: var(--ink);
  font-size: clamp(25px, 3.4vw, 36px);
  font-weight: var(--weight-semibold);
  line-height: 1.42;
}

.button-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(16, 42, 35, 0.22);
  border-top-color: var(--ink);
  border-radius: 999px;
  animation: buttonSpin 820ms linear infinite;
}

.feedback-submit-button.loading {
  min-width: 104px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.grid,
.story-list {
  display: grid;
  gap: 14px;
}

.grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  margin-top: 56px;
}

.collapse-world-row {
  display: flex;
  justify-content: center;
  margin: 42px 0 -42px;
}

.collapse-world-button {
  display: inline-grid;
  justify-items: center;
  gap: 14px;
  border: 0;
  background: transparent;
  color: rgba(16, 42, 35, 0.58);
  padding: 8px 14px;
  text-align: center;
}

.collapse-world-button:hover {
  color: var(--ink);
}

.collapse-chevron {
  display: block;
  width: 44px;
  height: 24px;
  position: relative;
}

.collapse-chevron::before,
.collapse-chevron::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 26px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(16, 42, 35, 0.68);
}

.collapse-chevron::before {
  left: 0;
  transform: rotate(-38deg);
  transform-origin: right center;
}

.collapse-chevron::after {
  right: 0;
  transform: rotate(38deg);
  transform-origin: left center;
}

.collapse-world-button strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.story-list.sealed {
  perspective: 1200px;
}

.story-list.revealed .story-option {
  animation: storyPushReveal 860ms cubic-bezier(0.16, 0.82, 0.22, 1) both;
}

.story-list.revealed .story-option:nth-child(2) {
  animation-delay: 180ms;
}

.story-list.revealed .story-option:nth-child(3) {
  animation-delay: 360ms;
}

.sealed-paper {
  position: relative;
  min-height: 300px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 248, 236, 0.92);
  box-shadow: 0 18px 42px rgba(16, 42, 35, 0.1);
  overflow: hidden;
  transform-origin: center top;
  isolation: isolate;
  padding: 18px;
}

.sealed-paper-button {
  display: block;
  width: 100%;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.sealed-paper-button:hover:not(:disabled) {
  border-color: rgba(185, 154, 91, 0.42);
  box-shadow: 0 0 0 4px rgba(185, 154, 91, 0.08);
}

.sealed-paper-button:focus-visible {
  outline: 3px solid rgba(185, 154, 91, 0.5);
  outline-offset: 4px;
}

.sealed-paper-button:disabled {
  cursor: wait;
}

.sealed-paper::before,
.sealed-paper::after {
  content: none;
}

.story-list.is-opening .sealed-paper {
  animation: paperUnlock 2800ms ease-in-out both;
}

.sealed-paper-inner {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 264px;
  padding: 44px calc(var(--page-inset) + 16px);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(16, 42, 35, 0.1);
  border-radius: var(--radius-control);
  background:
    linear-gradient(rgba(16, 42, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 35, 0.04) 1px, transparent 1px),
    rgba(255, 252, 244, 0.92);
  background-size: 22px 22px, 22px 22px, auto;
}

.sealed-paper-inner::before {
  content: none;
}

.manuscript-lines {
  display: grid;
  gap: 10px;
  width: min(560px, 82%);
  margin-left: 0;
}

.manuscript-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(16, 42, 35, 0.1);
}

.manuscript-lines span:nth-child(2) {
  width: 86%;
}

.manuscript-lines span:nth-child(3) {
  width: 64%;
}

.sealed-paper p {
  max-width: 620px;
  margin: 0;
  color: rgba(16, 42, 35, 0.72);
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: var(--weight-semibold);
  line-height: 1.6;
}

.story-option {
  display: grid;
  gap: 10px;
}

.story-list.revealed .story-option-header {
  animation: storyHeaderDrop 620ms cubic-bezier(0.16, 0.82, 0.22, 1) both;
}

.story-list.revealed .article-card {
  animation: storyCardDrop 760ms cubic-bezier(0.16, 0.82, 0.22, 1) both;
  animation-delay: 180ms;
}

.story-option-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
  transform: translateY(var(--story-header-lift));
}

.story-option-header .difficulty-badge {
  transform: translateY(-1px);
}

.story-option-header p {
  margin: 0;
  color: rgba(16, 42, 35, 0.76);
  font-size: 17px;
  font-weight: var(--weight-medium);
  line-height: 1.45;
}

.card {
  background: rgba(255, 248, 236, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--panel-text);
  backdrop-filter: blur(2px);
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 0;
  padding: 24px var(--page-inset);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.article-card:hover {
  border-color: rgba(7, 28, 23, 0.65);
  box-shadow: 0 0 0 4px var(--difficulty-shadow, rgba(16, 42, 35, 0.06));
}

.article-card-main {
  min-width: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  max-width: 100%;
  overflow: visible;
}

.tag {
  border-radius: var(--radius);
  background: rgba(7, 28, 23, 0.12);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 16px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.difficulty-low {
  --difficulty-accent: #6f986b;
  --difficulty-fill: #dcead8;
  --difficulty-border: rgba(111, 152, 107, 0.42);
  --difficulty-shadow: rgba(111, 152, 107, 0.34);
}

.difficulty-medium {
  --difficulty-accent: #b99a5b;
  --difficulty-fill: #f0e2bd;
  --difficulty-border: rgba(185, 154, 91, 0.42);
  --difficulty-shadow: rgba(185, 154, 91, 0.36);
}

.difficulty-high {
  --difficulty-accent: #b56a5a;
  --difficulty-fill: #ead4cd;
  --difficulty-border: rgba(181, 106, 90, 0.42);
  --difficulty-shadow: rgba(181, 106, 90, 0.34);
}

.difficulty-badge.low {
  --difficulty-accent: #6f986b;
  --difficulty-fill: #dcead8;
  --difficulty-border: rgba(111, 152, 107, 0.42);
  --difficulty-shadow: rgba(111, 152, 107, 0.34);
}

.difficulty-badge.medium {
  --difficulty-accent: #b99a5b;
  --difficulty-fill: #f0e2bd;
  --difficulty-border: rgba(185, 154, 91, 0.42);
  --difficulty-shadow: rgba(185, 154, 91, 0.36);
}

.difficulty-badge.high {
  --difficulty-accent: #b56a5a;
  --difficulty-fill: #ead4cd;
  --difficulty-border: rgba(181, 106, 90, 0.42);
  --difficulty-shadow: rgba(181, 106, 90, 0.34);
}

.difficulty-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 36px;
  border: 1px solid var(--difficulty-border, rgba(16, 42, 35, 0.14));
  border-radius: var(--radius);
  background: var(--difficulty-fill, rgba(16, 42, 35, 0.08));
  color: var(--ink);
  padding: 7px 12px;
  white-space: nowrap;
  box-shadow: 0 0 18px 2px var(--difficulty-shadow, rgba(16, 42, 35, 0.08));
}

.difficulty-badge strong,
.difficulty-badge em {
  font-size: 14px;
  line-height: 1;
}

.difficulty-badge strong {
  font-weight: 800;
}

.difficulty-badge em {
  color: rgba(16, 42, 35, 0.65);
  font-style: normal;
}

.difficulty-range {
  border-radius: var(--radius);
  background: rgba(7, 28, 23, 0.08);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 16px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
}

.article-card h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
}

.article-card p {
  margin: 0;
  color: rgba(16, 42, 35, 0.72);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.article-card .cta-row {
  margin-top: auto;
  padding-top: 18px;
}

@keyframes paperUnlock {
  0% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
  32% {
    opacity: 1;
    transform: rotateX(8deg) translateY(-4px);
  }
  62% {
    opacity: 0.82;
    transform: rotateX(-13deg) translateY(12px);
  }
  100% {
    opacity: 0;
    transform: rotateX(10deg) translateY(-18px);
  }
}

@keyframes storyPushReveal {
  from {
    opacity: 0;
    transform: translateY(-22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes storyHeaderDrop {
  from {
    opacity: 0;
    transform: translateY(calc(-16px + var(--story-header-lift)));
  }
  to {
    opacity: 1;
    transform: translateY(var(--story-header-lift));
  }
}

@keyframes storyCardDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonSpin {
  to {
    transform: rotate(360deg);
  }
}

.screen {
  display: grid;
  gap: 18px;
}

.records-screen {
  gap: 20px;
}

.records-hero {
  display: grid;
  gap: 10px;
  padding: 12px var(--page-inset) 4px;
}

.records-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.22;
}

.records-hero p:not(.eyebrow) {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.records-headline p {
  margin: 4px 0 0;
}

.records-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.records-tab {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.records-tab:hover,
.records-tab.active {
  border-color: rgba(16, 42, 35, 0.36);
  background: rgba(232, 221, 199, 0.58);
  color: var(--ink);
}

.local-test-switch {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px dashed rgba(16, 42, 35, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.7);
  padding: 14px 16px;
}

.local-test-switch div {
  display: grid;
  gap: 4px;
}

.local-test-switch strong {
  color: var(--ink);
}

.local-test-switch span {
  color: var(--muted);
  font-size: 14px;
}

.record-list {
  display: grid;
  gap: 14px;
}

.records-board {
  overflow: hidden;
}

.records-screen:not(.has-selection) .records-board {
  display: grid;
  align-items: start;
  min-height: 360px;
  padding: 32px 34px;
}

.records-workspace {
  display: grid;
  gap: 18px;
  align-items: start;
}

.records-screen:not(.has-selection) .records-workspace {
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: 0 auto;
}

.records-screen:not(.has-selection) .records-timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.records-login-gate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(100%, 920px);
  margin: 0 auto;
  border-color: rgba(185, 154, 91, 0.42);
  background: rgba(185, 154, 91, 0.14);
}

.records-login-gate h2,
.records-login-gate p {
  margin: 0;
}

.records-login-gate h2 {
  color: var(--ink);
  font-size: 24px;
}

.records-login-gate p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.vocabulary-workspace {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.vocabulary-library {
  display: grid;
  gap: 18px;
}

.vocabulary-limit-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-ui);
  line-height: 1.6;
  text-align: center;
}

.vocabulary-library-loading {
  min-height: 320px;
  place-items: center;
}

.vocabulary-loading-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--ink);
  text-align: center;
}

.vocabulary-loading-state .icon-spinner {
  width: 34px;
  height: 34px;
  border-width: 3px;
}

.vocabulary-loading-state p {
  margin: 0;
  color: rgba(16, 42, 35, 0.72);
  font-size: 17px;
  font-weight: var(--weight-semibold);
  line-height: 1.6;
}

.vocabulary-library-head {
  display: flex;
  justify-content: flex-end;
}

.vocabulary-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.vocabulary-filter-control {
  position: relative;
  width: 150px;
}

.vocabulary-filter-control:hover,
.vocabulary-filter-control:focus-within {
  z-index: 80;
}

.vocabulary-filter-button,
.vocabulary-filter-option {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(16, 42, 35, 0.18);
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink);
  font-size: 15px;
}

.vocabulary-filter-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-control);
  padding: 9px 12px;
  text-align: left;
  cursor: pointer;
}

.vocabulary-filter-button strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.vocabulary-filter-button em {
  color: rgba(16, 42, 35, 0.68);
  font-style: normal;
  font-weight: 700;
}

.vocabulary-filter-button:hover,
.vocabulary-filter-button:focus {
  background: rgba(16, 42, 35, 0.08);
}

.vocabulary-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  display: grid;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 35, 0.18);
  border-radius: var(--radius-control);
  background: #fffdf7;
  box-shadow: 0 12px 24px rgba(16, 42, 35, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.vocabulary-filter-control:hover .vocabulary-filter-menu,
.vocabulary-filter-control:focus-within .vocabulary-filter-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.vocabulary-filter-option {
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
}

.vocabulary-filter-option + .vocabulary-filter-option {
  border-top: 1px solid rgba(16, 42, 35, 0.08);
}

.vocabulary-filter-option:hover,
.vocabulary-filter-option.selected {
  background: rgba(16, 42, 35, 0.08);
}

.records-workspace.has-selection .records-headline {
  display: none;
}

.records-workspace.has-selection .records-timeline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.records-workspace.has-selection .timeline-day {
  gap: 10px;
  align-content: space-between;
  min-height: 132px;
  padding: 12px;
}

.records-workspace.has-selection .timeline-date strong {
  font-size: 15px;
}

.records-workspace.has-selection .timeline-score {
  font-size: 24px;
}

.records-workspace.has-selection .timeline-day.unpracticed .timeline-score {
  font-size: 22px;
}

.records-focus-panel {
  min-width: 0;
}

.records-timeline {
  display: grid;
  gap: 16px;
}

.timeline-day {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  width: 100%;
  border: 1px solid rgba(16, 42, 35, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.64);
  color: var(--ink);
  padding: 16px;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.records-screen:not(.has-selection) .timeline-day {
  min-height: 292px;
  padding: 24px;
}

.timeline-day:hover:not(.unpracticed):not(.locked),
.timeline-day.active {
  border-color: rgba(185, 154, 91, 0.5);
  background: rgba(185, 154, 91, 0.13);
}

.timeline-day.unpracticed {
  background: rgba(16, 42, 35, 0.045);
  color: rgba(16, 42, 35, 0.74);
  cursor: default;
}

.timeline-day.unpracticed .timeline-score {
  font-size: 28px;
}

.timeline-day.unpracticed:hover {
  border-color: rgba(16, 42, 35, 0.12);
  background: rgba(16, 42, 35, 0.045);
}

.timeline-date,
.timeline-summary {
  grid-column: 1;
  display: grid;
  gap: 5px;
}

.records-lock-note {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  margin: 0;
  border: 1px solid rgba(16, 42, 35, 0.08);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 247, 0.34);
  padding: 12px;
  color: var(--muted);
  font-size: var(--font-ui);
  font-weight: var(--weight-medium);
  line-height: 1.6;
  text-align: center;
}

.timeline-date strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.timeline-score {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1;
}

.timeline-date em,
.timeline-day small {
  color: var(--quiet-ink);
  font-size: var(--font-meta);
  font-style: normal;
  font-weight: var(--weight-bold);
}

.timeline-day small {
  font-size: var(--font-meta);
}

.timeline-summary {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.practice-light {
  min-height: 36px;
  padding: 8px 11px;
  font-size: var(--font-ui);
  font-weight: var(--weight-bold);
}

.practice-light.dim {
  --difficulty-fill: rgba(16, 42, 35, 0.055);
  --difficulty-border: rgba(16, 42, 35, 0.1);
  --difficulty-shadow: transparent;
  color: rgba(16, 42, 35, 0.48);
}

.timeline-correction-summary {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  border-top: 1px solid rgba(16, 42, 35, 0.1);
  padding-top: 10px;
  min-width: 0;
  color: var(--muted);
  font-size: var(--font-meta);
  font-weight: var(--weight-bold);
  line-height: 1.35;
}

.timeline-correction-summary.compact {
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}

.timeline-correction-summary.compact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.timeline-correction-summary.compact i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(16, 42, 35, 0.08);
  color: currentColor;
}

.timeline-correction-summary svg,
.timeline-correction-label svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-correction-summary strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08em;
}

.timeline-correction-summary .error {
  color: #b56a5a;
}

.timeline-correction-summary .error i {
  background: rgba(181, 106, 90, 0.18);
}

.timeline-correction-summary .better {
  color: #b99a5b;
}

.timeline-correction-summary .better i {
  background: rgba(185, 154, 91, 0.2);
}

.timeline-correction-summary .advanced {
  color: #6f986b;
}

.timeline-correction-summary .advanced i {
  background: rgba(111, 152, 107, 0.18);
}

.timeline-correction-bars {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(16, 42, 35, 0.1);
  padding-top: 16px;
}

.timeline-correction-bar {
  --correction-color: rgba(16, 42, 35, 0.44);
  --correction-fill: rgba(16, 42, 35, 0.18);
  display: grid;
  gap: 8px;
}

.timeline-correction-bar.error {
  --correction-color: #b56a5a;
  --correction-fill: #b56a5a;
}

.timeline-correction-bar.better {
  --correction-color: #b99a5b;
  --correction-fill: #b99a5b;
}

.timeline-correction-bar.advanced {
  --correction-color: #6f986b;
  --correction-fill: #6f986b;
}

.timeline-correction-label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: var(--font-body-sm);
  font-weight: var(--weight-bold);
  line-height: 1.25;
}

.timeline-correction-label svg {
  color: var(--correction-color);
}

.timeline-correction-label strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08em;
}

.timeline-correction-progress {
  display: block;
  width: 100%;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(16, 42, 35, 0.08);
  border-radius: 999px;
  background: rgba(16, 42, 35, 0.075);
  accent-color: var(--correction-fill);
  -webkit-appearance: none;
  appearance: none;
}

.timeline-correction-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: rgba(16, 42, 35, 0.075);
}

.timeline-correction-progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--correction-fill);
}

.timeline-correction-progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--correction-fill);
}

.older-record-note {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(16, 42, 35, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.7);
  padding: 18px;
}

.older-record-note h3,
.older-record-note p {
  margin: 0;
}

.older-record-note h3 {
  color: var(--ink);
}

.older-record-note p {
  color: var(--muted);
  line-height: 1.6;
}

.records-day-detail {
  display: grid;
  gap: 22px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.5);
  padding: 28px;
}

.day-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.day-detail-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
}

.day-article-stack {
  display: grid;
  gap: 18px;
}

.day-article {
  border: 1px solid rgba(16, 42, 35, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.64);
  overflow: hidden;
}

.day-article.unpracticed {
  border-color: rgba(16, 42, 35, 0.08);
  background: rgba(16, 42, 35, 0.045);
}

.day-article.unpracticed .day-article-link {
  cursor: default;
}

.day-article-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(84px, max-content);
  gap: 22px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 26px 28px;
  text-align: left;
}

.day-article-link:hover:not(:disabled):not(.day-article-empty) {
  background: rgba(185, 154, 91, 0.1);
}

.day-article-link:disabled {
  cursor: default;
  opacity: 1;
}

.day-article-link:disabled:hover {
  background: transparent;
}

.day-article-empty {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  cursor: default;
}

.day-article-empty:hover {
  background: transparent;
}

.day-article.unpracticed .day-article-link:hover {
  background: transparent;
}

.day-article-empty .article-score {
  justify-self: end;
}

.day-article-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: none;
}

.day-article-copy .meta {
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 0;
}

.day-article-title {
  display: block;
  min-height: 2.36em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.18;
  text-wrap: normal;
}

.article-score {
  justify-self: end;
  border: 1px solid rgba(16, 42, 35, 0.12);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.72);
  color: var(--ink);
  padding: 8px 12px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.article-score.empty {
  border-radius: var(--radius);
  background: rgba(7, 28, 23, 0.08);
  font-family: inherit;
  font-size: 16px;
  font-weight: var(--weight-medium);
  line-height: 1.15;
  padding: 6px 10px;
}

.day-article-body {
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(16, 42, 35, 0.1);
  padding: 16px;
}

.records-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 var(--page-inset);
  color: var(--muted);
}

.records-breadcrumb span::before {
  content: "/";
  margin-right: 10px;
  color: var(--quiet-ink);
}

.record-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--weight-bold);
}

.record-learning-block,
.question-detail-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(16, 42, 35, 0.1);
  border-radius: var(--radius-control);
  background: rgba(255, 248, 236, 0.48);
  padding: 14px;
}

.record-question-list {
  display: grid;
  gap: 10px;
}

.record-question-list article {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(16, 42, 35, 0.1);
  border-radius: var(--radius-control);
  background: rgba(255, 253, 247, 0.7);
  padding: 12px;
}

.record-question-list em {
  color: var(--muted);
  font-size: var(--font-meta);
  font-style: normal;
  font-weight: 900;
}

.record-question-list p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.recap-vocabulary {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 42, 35, 0.1);
}

.recap-vocabulary h4 {
  margin: 0;
}

.record-correction-panels {
  display: grid;
  gap: 10px;
}

.record-correction-panel {
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
  overflow: hidden;
}

.record-correction-panel summary {
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
}

.record-correction-panel summary::-webkit-details-marker {
  display: none;
}

.record-correction-panel summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 16px;
  line-height: 1;
}

.record-correction-panel[open] summary::before {
  content: "−";
}

.record-correction-panel summary span {
  flex: 1;
}

.record-correction-panel summary small {
  color: var(--quiet-ink);
  font-size: var(--font-meta);
  font-weight: 900;
}

.record-correction-panel.error {
  border-color: rgba(181, 106, 90, 0.42);
  background: rgba(181, 106, 90, 0.1);
}

.record-correction-panel.better {
  border-color: rgba(185, 154, 91, 0.42);
  background: rgba(185, 154, 91, 0.12);
}

.record-correction-panel.advanced {
  border-color: rgba(143, 175, 138, 0.42);
  background: rgba(143, 175, 138, 0.12);
}

.record-correction-list {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
}

.record-correction-list .fix-list.compact li {
  padding: 14px;
}

.record-correction-panel > .report-empty-note {
  margin: 0 14px 14px;
}

.record-correction-list article {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(16, 42, 35, 0.12);
  border-radius: var(--radius-control);
  background: rgba(255, 253, 247, 0.78);
  padding: 12px;
}

.record-correction-list em {
  color: var(--muted);
  font-size: var(--font-meta);
  font-style: normal;
  font-weight: 900;
}

.record-correction-list p {
  margin: 0;
  color: var(--subtle-ink);
  font-size: 15px;
  line-height: 1.6;
}

.question-detail-card h4,
.question-detail-card p {
  margin: 0;
}

.question-line {
  color: var(--ink);
  font-weight: var(--weight-bold);
}

.question-detail-card div {
  display: grid;
  gap: 5px;
}

.question-detail-card em {
  color: var(--quiet-ink);
  font-size: var(--font-meta);
  font-style: normal;
  font-weight: 900;
}

.question-detail-card strong {
  color: var(--ink);
  line-height: 1.55;
}

.question-detail-card small {
  color: var(--muted);
  line-height: 1.55;
}

.mini-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.mini-section-head strong {
  color: var(--ink);
  font-size: 15px;
}

.record-correction-card .mini-section-head strong {
  font-size: 24px;
  font-family: var(--serif);
  line-height: 1.2;
}

.mini-section-head span {
  color: var(--quiet-ink);
  font-size: var(--font-meta);
  font-weight: var(--weight-bold);
}

.session-stack {
  display: grid;
  gap: 9px;
}

.shelf-quote {
  display: grid;
  gap: 8px;
  border-radius: var(--radius-control);
  background: rgba(16, 42, 35, 0.06);
  padding: 13px;
}

.shelf-quote strong {
  color: var(--ink);
  line-height: 1.45;
}

.shelf-quote span {
  color: var(--muted);
  line-height: 1.45;
}

.empty-records {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid rgba(185, 154, 91, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
  padding: 18px;
}

.empty-records h3 {
  margin: 0;
  color: var(--ink);
}

.empty-records p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  padding: 22px 28px;
}

.article-detail {
  padding: 26px 28px;
  overflow: hidden;
}

.headline-row.article-headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "meta audio"
    "title audio";
  align-items: start;
  column-gap: 18px;
  row-gap: 12px;
  margin: 0 0 10px;
  padding: 0;
  border-bottom: 0;
  background: transparent;
}

.article-detail-meta {
  grid-area: meta;
  margin-bottom: 0;
}

.article-headline h2 {
  grid-area: title;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.16;
  margin: 0;
}

.article-audio-row {
  grid-area: audio;
}

.article-headline .tag {
  background: rgba(7, 28, 23, 0.1);
  color: var(--ink);
  border: 1px solid rgba(7, 28, 23, 0.16);
}

.article-headline .icon-button {
  border-color: rgba(16, 42, 35, 0.2);
  color: var(--ink);
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
  color: var(--panel-text);
}

.panel h2 {
  font-weight: 700;
}

.panel p {
  color: rgba(16, 42, 35, 0.74);
  line-height: 1.65;
}

.headline-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.summary {
  font-size: var(--font-reading);
  line-height: 1.78;
}

.reading-box {
  margin-top: 22px;
  border: 1px solid rgba(16, 42, 35, 0.16);
  border-radius: var(--radius);
  background: #fbf3e5;
  padding: 22px 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.reading-guidance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  gap: 16px;
  align-items: center;
  min-height: 54px;
  margin: 8px 0 14px;
}

.reading-guidance p {
  margin: 0;
  color: rgba(16, 42, 35, 0.72);
  font-size: var(--font-body-sm);
  line-height: 1.7;
}

.reading-guidance .audio-state-slot {
  margin-top: 0;
}

.article-detail .summary p {
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: rgba(16, 42, 35, 0.82);
}

.article-detail .summary p:last-child {
  margin-bottom: 0;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.vocabulary-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin: 0 0 12px;
}

.vocabulary-panel-header h3 {
  margin: 0;
}

.word {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.34);
  padding: 14px;
}

.word-head {
  display: block;
  margin-bottom: 0;
}

.word strong {
  display: block;
  padding-right: 34px;
  font-weight: 600;
}

.word strong em {
  color: rgba(16, 42, 35, 0.58);
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
}

.word span {
  display: block;
  color: rgba(16, 42, 35, 0.68);
  font-size: 15px;
  line-height: 1.45;
}

.word small {
  display: block;
  color: rgba(16, 42, 35, 0.82);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.word-bookmark {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(16, 42, 35, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
  color: rgba(16, 42, 35, 0.58);
  cursor: pointer;
}

.word-bookmark svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

.word-bookmark:hover,
.word-bookmark.saved {
  border-color: rgba(185, 154, 91, 0.48);
  background: rgba(185, 154, 91, 0.18);
  color: #7b5f24;
}

.word-bookmark.saved svg {
  fill: currentColor;
}

.word-bookmark.loading {
  pointer-events: none;
}

.word-bookmark .icon-spinner {
  width: 15px;
  height: 15px;
}

.vocabulary-more-button {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feedback-actions {
  align-items: center;
  margin-top: 12px;
  margin-bottom: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0 16px;
  border: 2px solid var(--ink);
  background: #fffdf7;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(25, 77, 57, 0.12);
}

.button.secondary {
  background: #fffdf7;
  color: var(--ink);
}

.button.secondary:hover:not(:disabled) {
  background: var(--ink);
  color: var(--accent-strong);
}

.button.ghost {
  background: #fffdf7;
  border: 2px solid var(--ink);
  color: var(--ink);
}

.button.ghost:hover:not(:disabled) {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent-strong);
}

.audio-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.34);
  color: var(--panel-text);
  font-size: 15px;
  font-weight: 600;
}

.icon-button svg,
.recording-replay svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.icon-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(16, 42, 35, 0.18);
  border-top-color: currentColor;
  border-radius: 999px;
  animation: buttonSpin 800ms linear infinite;
}

.icon-button:hover {
  border-color: rgba(185, 154, 91, 0.55);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(185, 154, 91, 0.12);
}

.practice-header {
  display: grid;
  gap: 14px;
  background: #fbf3e5;
  min-height: 190px;
  position: relative;
  padding-bottom: 20px;
}

.practice-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.practice-topline strong {
  flex: 0 0 auto;
  color: var(--ink);
}

.practice-meta-tags {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.practice-meta-tags .difficulty-badge,
.practice-meta-tags .tag {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding-block: 7px;
}

.progress-track {
  --progress-color: var(--ink);
  --progress-rest-color: rgba(16, 42, 35, 0.14);
  height: 6px;
  border-radius: 999px;
  background: var(--progress-rest-color);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--progress-color);
  transition: width 180ms ease;
}

.progress-fill.step-1 {
  width: calc(100% / 3);
}

.progress-fill.step-2 {
  width: calc(200% / 3);
}

.progress-fill.step-3 {
  width: 100%;
}

.question {
  font-size: 31px;
  line-height: 1.2;
  margin: 0;
}

.question-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.question-row .question {
  flex: 1 1 auto;
}

.question-audio-button {
  flex: 0 0 auto;
  margin-top: 1px;
}

.question-audio-button.loading {
  pointer-events: none;
}

.recorder {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid rgba(16, 42, 35, 0.12);
  border-radius: var(--radius);
  background: #fbf3e5;
}

.record-button {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--accent-strong);
  font-weight: var(--weight-medium);
  box-shadow: 0 10px 24px rgba(25, 77, 57, 0.25);
}

.record-button.recording {
  background: var(--warning);
}

.record-button:hover:not(:disabled) {
  box-shadow: 0 0 0 5px rgba(25, 77, 57, 0.14), 0 10px 24px rgba(25, 77, 57, 0.25);
}

.recording-meter {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.recording-meter strong {
  color: var(--panel-text);
  font-size: 31px;
  line-height: 1;
}

.recording-meter span {
  color: rgba(16, 42, 35, 0.62);
  font-size: 15px;
  font-weight: 500;
}

.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 72px;
  padding: 8px 10px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.28);
  overflow: hidden;
}

.waveform span {
  width: 5px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleY(0.16);
  transform-origin: center;
  transition: transform 80ms linear;
}

.recorder-status {
  margin: 0;
  text-align: center;
  color: rgba(16, 42, 35, 0.68);
}

.recording-replay {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid rgba(16, 42, 35, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink);
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
}

.recording-replay:hover {
  border-color: rgba(16, 42, 35, 0.42);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(185, 154, 91, 0.1);
}

.microphone-test-hover-zone {
  justify-self: center;
  display: grid;
  justify-items: center;
  width: min(560px, 100%);
}

.microphone-test-entry {
  justify-self: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.microphone-test-trigger,
.recorder > .recording-replay {
  width: 136px;
  justify-content: center;
}

.microphone-test-panel {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(560px, 100%);
  padding: 16px 18px 10px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius-control);
  background: rgba(255, 253, 247, 0.42);
}

.microphone-test-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.microphone-test-button {
  min-width: 168px;
  justify-content: center;
  text-align: center;
}

.microphone-test-actions .recording-replay {
  justify-content: center;
  text-align: center;
}

.microphone-device-picker {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(430px, 100%);
}

.microphone-device-label {
  color: rgba(16, 42, 35, 0.62);
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 1.35;
  text-align: center;
}

.microphone-device-control {
  position: relative;
  width: 100%;
}

.microphone-device-button,
.microphone-device-option {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(16, 42, 35, 0.18);
  background: rgba(255, 253, 247, 0.78);
  color: var(--ink);
  font-size: 15px;
}

.microphone-device-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-control);
  padding: 9px 12px;
  text-align: left;
}

.microphone-device-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  font-weight: 700;
  line-height: 1.35;
}

.microphone-device-button em {
  color: rgba(16, 42, 35, 0.68);
  font-style: normal;
  font-weight: 700;
}

.microphone-device-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  display: none;
  width: 100%;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(16, 42, 35, 0.18);
  border-radius: var(--radius-control);
  background: #fffdf7;
  box-shadow: 0 8px 16px rgba(16, 42, 35, 0.12);
}

.microphone-device-control:hover .microphone-device-menu,
.microphone-device-control:focus-within .microphone-device-menu,
.microphone-device-menu.open {
  display: grid;
}

.microphone-device-option {
  border: 0;
  border-radius: 0;
  padding: 9px 12px;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.35;
  white-space: normal;
}

.microphone-device-option + .microphone-device-option {
  border-top: 1px solid rgba(16, 42, 35, 0.1);
}

.microphone-device-option:hover,
.microphone-device-option.selected {
  background: rgba(16, 42, 35, 0.08);
}

.microphone-test-status {
  margin: 0;
  text-align: center;
  color: rgba(16, 42, 35, 0.62);
  font-size: 15px;
  line-height: 1.45;
}

.microphone-test-collapse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(16, 42, 35, 0.48);
  cursor: pointer;
}

.microphone-test-collapse span {
  width: 13px;
  height: 13px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(4px) rotate(45deg);
}

.microphone-test-collapse:hover {
  color: rgba(16, 42, 35, 0.72);
}

.microphone-test-status.success {
  color: #496d46;
}

.microphone-test-status.warning {
  color: #8b5d2c;
}

.microphone-test-status.error {
  color: var(--warning);
}

.manual-answer-entry {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.manual-answer-toggle {
  border: 0;
  background: transparent;
  color: rgba(16, 42, 35, 0.58);
  font-size: 15px;
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.manual-answer-toggle:hover {
  color: var(--ink);
}

.audio-state-slot {
  position: relative;
  min-height: 42px;
  margin-top: 8px;
}

.playing-indicator {
  display: inline-flex;
  align-items: center;
  position: absolute;
  right: 0;
  top: 0;
  width: fit-content;
  gap: 8px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(16, 42, 35, 0.07);
  color: var(--ink);
  padding: 7px 11px;
  font-size: 15px;
  font-weight: 600;
}

.playing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--positive);
  animation: pulse 900ms ease-in-out infinite;
}

.playing-indicator.paused span {
  background: var(--warning);
  animation: none;
}

.playing-indicator.stopped {
  color: rgba(16, 42, 35, 0.62);
}

@keyframes pulse {
  0%, 100% { transform: scale(0.72); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 1; }
}

audio {
  width: 100%;
}

.transcript-box {
  min-height: 112px;
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.34);
  color: var(--panel-text);
  padding: 12px;
  line-height: 1.55;
}

.transcript-editor {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 42, 35, 0.12);
}

.transcript-editor label {
  color: rgba(16, 42, 35, 0.65);
  font-size: 15px;
  font-weight: 500;
}

.manual-answer-submit {
  justify-self: center;
  min-width: 168px;
  width: auto;
}

.locked-feedback-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 28px 22px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: #fbf3e5;
  text-align: center;
}

.locked-feature-copy {
  max-width: 520px;
  margin: 0;
  color: rgba(16, 42, 35, 0.72);
  font-size: 17px;
  font-weight: var(--weight-medium);
  line-height: 1.7;
}

.locked-feedback-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(16, 42, 35, 0.08);
  color: var(--ink);
}

.locked-feedback-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.locked-feedback-button {
  min-width: 132px;
  border-color: #b99a5b;
  background: #d7b86d;
  color: #102a23;
  box-shadow:
    0 12px 24px rgba(185, 154, 91, 0.26),
    inset 0 1px 0 rgba(255, 253, 247, 0.46);
}

.locked-feedback-button:hover:not(:disabled) {
  border-color: #102a23;
  background: #caa65b;
  color: #102a23;
  box-shadow:
    0 0 0 4px rgba(185, 154, 91, 0.2),
    inset 0 1px 0 rgba(255, 253, 247, 0.38);
}

.review {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 22px;
}

.score-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(143, 175, 138, 0.16);
  padding: 14px;
}

.score-label {
  color: rgba(16, 42, 35, 0.65);
  font-size: 18px;
  font-weight: 900;
}

.score-comment {
  margin: 8px 0 0;
  color: rgba(16, 42, 35, 0.74);
  line-height: 1.58;
}

.practice-start-button.loading {
  min-width: 194px;
}

.stars {
  color: var(--panel-text);
  font-size: 22px;
  letter-spacing: 0;
  white-space: nowrap;
}

.review-sections {
  display: grid;
  gap: 12px;
}

.invalid-answer,
.model-answer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.34);
  padding: 14px;
}

.invalid-answer {
  border-color: rgba(181, 106, 90, 0.45);
  background: rgba(181, 106, 90, 0.16);
}

.invalid-answer h4,
.model-answer h4 {
  margin: 0 0 8px;
}

.invalid-answer p,
.model-answer p {
  margin: 0;
}

.model-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-color: rgba(143, 175, 138, 0.45);
  background: rgba(143, 175, 138, 0.18);
}

.fix-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fix-list li {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.34);
  padding: 16px 126px 14px 14px;
}

.fix-list li.no-tag {
  padding: 14px;
}

.review-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--ink);
  padding: 0;
  font-size: var(--font-meta);
  font-weight: 900;
}

.review-tag.error {
  background: rgba(181, 106, 90, 0.18);
  border-color: rgba(181, 106, 90, 0.34);
  color: #b56a5a;
}

.review-tag.better {
  background: rgba(185, 154, 91, 0.2);
  border-color: rgba(185, 154, 91, 0.38);
  color: #b99a5b;
}

.review-tag.advanced {
  background: rgba(111, 152, 107, 0.18);
  border-color: rgba(111, 152, 107, 0.34);
  color: #6f986b;
}

.review-tag svg {
  width: 17px;
  height: 17px;
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.review-tag::after {
  content: attr(title);
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 2;
  min-width: max-content;
  border-radius: var(--radius);
  background: var(--panel-text);
  color: var(--bg);
  padding: 6px 8px;
  font-size: var(--font-meta);
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.review-tag:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.change-line {
  display: grid;
  gap: 8px;
}

.change-line span {
  color: rgba(16, 42, 35, 0.65);
  line-height: 1.5;
}

.change-line strong {
  color: var(--text);
  line-height: 1.5;
}

.change-line em {
  display: block;
  color: var(--panel-text);
  font-size: var(--font-meta);
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.fix-list small {
  display: block;
  color: rgba(16, 42, 35, 0.64);
  font-size: 15px;
  margin-top: 5px;
  line-height: 1.45;
}

.transcript-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.transcript-details summary {
  cursor: pointer;
  color: var(--panel-text);
  font-weight: 900;
}

.transcript-details p {
  margin-bottom: 0;
}

.report-details {
  margin-top: 12px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.72);
  padding: 12px 14px;
}

.report-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.report-details[open] summary {
  margin-bottom: 12px;
}

.report-page-label {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 4px;
}

.report-empty-note {
  margin: -2px 0 16px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius-control);
  background: rgba(232, 221, 199, 0.28);
  padding: 12px 14px;
  color: var(--subtle-ink);
  font-size: 16px;
  line-height: 1.65;
}

.echo-card {
  border-color: rgba(185, 154, 91, 0.42);
  background: var(--panel);
}

.echo-title {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.24em;
}

.echo-title span {
  white-space: nowrap;
}

.echo-intro-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 18px;
  align-items: end;
}

.echo-intro-row .muted-copy {
  margin: -4px 0 0;
}

.echo-intro-row .audio-state-slot {
  min-height: 34px;
  margin-top: 0;
}

.echo-intro-row .playing-indicator {
  right: 0;
  bottom: 0;
}

.echo-card .report-details,
.echo-login-gate {
  margin-top: 10px;
}

.echo-card blockquote {
  margin: 0 0 12px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.32);
  padding: 14px 16px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.5;
}

.echo-method {
  margin-top: 14px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.28);
  padding: 14px 16px;
}

.echo-method h4,
.translation-grid h4 {
  margin: 0 0 10px;
  color: var(--ink);
}

.echo-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: rgba(16, 42, 35, 0.74);
  line-height: 1.6;
}

.translation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.translation-grid section {
  min-width: 0;
}

.muted-copy {
  color: rgba(16, 42, 35, 0.68);
  margin-top: -4px;
}

.free-chat {
  display: grid;
  gap: 12px;
}

.voice-chat {
  display: grid;
  gap: 14px;
}

.voice-chat-status {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid rgba(16, 42, 35, 0.16);
  border-radius: var(--radius);
  background: var(--accent-soft);
  padding: 12px 14px;
}

.voice-chat-status.warning {
  border-color: rgba(181, 106, 90, 0.45);
  background: rgba(181, 106, 90, 0.16);
}

.voice-chat-status strong {
  color: var(--panel-text);
  font-size: 30px;
  line-height: 1;
}

.voice-chat-status.warning strong {
  color: var(--warning);
}

.voice-chat-status span {
  color: rgba(16, 42, 35, 0.64);
  font-weight: 800;
}

.voice-chat-control {
  display: grid;
  gap: 12px;
  border-radius: var(--radius);
  background: rgba(16, 42, 35, 0.08);
  padding: 18px;
}

.chat-thread {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.34);
  padding: 12px;
}

.chat-empty {
  color: rgba(16, 42, 35, 0.66);
  margin: 0;
}

.chat-message {
  max-width: 82%;
  border-radius: var(--radius);
  padding: 10px 12px;
}

.chat-message span {
  display: block;
  margin-bottom: 4px;
  font-size: var(--font-meta);
  font-weight: 900;
  color: rgba(16, 42, 35, 0.64);
}

.chat-message p {
  margin: 0;
}

.chat-message.user {
  justify-self: end;
  background: var(--bg-soft);
  color: var(--panel-text);
}

.chat-message.user span {
  color: rgba(16, 42, 35, 0.68);
}

.chat-message.assistant {
  justify-self: start;
  background: rgba(232, 221, 199, 0.34);
  border: 1px solid var(--line);
}

.chat-input {
  min-height: 86px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.34);
  color: var(--panel-text);
  padding: 12px;
  line-height: 1.5;
}

.chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-actions span {
  color: rgba(16, 42, 35, 0.64);
  font-size: var(--font-meta);
  font-weight: 800;
}

.performance-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.performance-summary div {
  border: 1px solid rgba(16, 42, 35, 0.16);
  border-radius: var(--radius);
  background: rgba(16, 42, 35, 0.06);
  padding: 14px;
}

.performance-summary span {
  display: block;
  color: rgba(16, 42, 35, 0.64);
  font-size: 15px;
  font-weight: 500;
}

.performance-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--panel-text);
  font-size: 26px;
  line-height: 1;
}

.admin-code-block {
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 248, 236, 0.7);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.report-score-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.report-score-block {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 136px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft-surface);
  padding: 18px;
  text-align: center;
}

.report-score-block span {
  display: block;
  color: var(--subtle-ink);
  font-size: 16px;
  font-weight: 700;
}

.report-score-value {
  display: block;
  margin-top: 6px;
  color: var(--panel-text);
  font-size: 56px;
  font-weight: 800;
  line-height: 0.95;
}

.report-score-value.empty {
  font-size: 30px;
  line-height: 1.12;
}

.report-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding-left: 20px;
  color: rgba(16, 42, 35, 0.7);
  line-height: 1.55;
}

.rating-grid {
  display: grid;
  gap: 14px;
}

.rating-row {
  display: grid;
  gap: 8px;
}

.rating-row label {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  font-weight: 800;
}

.rating-boxes {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
}

.rating-boxes button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.34);
  color: rgba(16, 42, 35, 0.68);
  font-weight: 600;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.rating-boxes button:hover {
  border-color: var(--ink);
  background: rgba(16, 42, 35, 0.08);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(27, 43, 35, 0.08);
}

.rating-boxes button.selected {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent-strong);
}

.rating-row.locked label {
  color: rgba(16, 42, 35, 0.62);
}

.rating-row.locked .rating-boxes button {
  cursor: not-allowed;
  opacity: 1;
  border-color: rgba(16, 42, 35, 0.14);
  background: rgba(232, 221, 199, 0.28);
  color: rgba(16, 42, 35, 0.38);
  box-shadow: none;
  transform: none;
}

.rating-row.locked .rating-boxes button.selected {
  border-color: rgba(16, 42, 35, 0.38);
  background: rgba(16, 42, 35, 0.22);
  color: rgba(16, 42, 35, 0.72);
}

.rating-row.locked .rating-boxes button:hover {
  border-color: rgba(16, 42, 35, 0.14);
  background: rgba(232, 221, 199, 0.28);
  color: rgba(16, 42, 35, 0.38);
}

.rating-row.locked .rating-boxes button.selected:hover {
  border-color: rgba(16, 42, 35, 0.38);
  background: rgba(16, 42, 35, 0.22);
  color: rgba(16, 42, 35, 0.72);
}

.qualitative-feedback {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(16, 42, 35, 0.14);
  border-radius: var(--radius);
  background: rgba(232, 221, 199, 0.24);
  display: grid;
  gap: 10px;
}

.qualitative-feedback label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink);
  font-weight: 800;
}

.qualitative-feedback label small {
  color: rgba(16, 42, 35, 0.58);
  font-weight: 600;
}

.qualitative-feedback textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  border: 1px solid rgba(16, 42, 35, 0.18);
  border-radius: var(--radius-control);
  background: rgba(255, 252, 244, 0.78);
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.qualitative-feedback textarea:focus {
  border-color: rgba(16, 42, 35, 0.48);
  box-shadow: 0 0 0 3px rgba(143, 175, 138, 0.22);
}

.feedback-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(16, 42, 35, 0.64);
  font-size: 14px;
  line-height: 1.45;
}

.feedback-submit-row .button {
  flex: 0 0 auto;
}

.notice {
  border: 1px solid rgba(16, 42, 35, 0.14);
  background: rgba(16, 42, 35, 0.06);
  color: var(--panel-text);
  padding: 12px 14px;
  border-radius: var(--radius);
  line-height: 1.5;
}

.error-message {
  margin: 12px 0 0;
  border: 1px solid rgba(181, 106, 90, 0.32);
  border-radius: var(--radius);
  background: rgba(181, 106, 90, 0.08);
  color: var(--ink);
  padding: 11px 13px;
  font-size: 15px;
  font-weight: var(--weight-medium);
  line-height: 1.45;
}

.error-message + .feedback-actions {
  margin-top: 14px;
}

.feedback-panel {
  display: grid;
  gap: 12px;
}

.feedback-panel h3,
.feedback-panel .notice,
.feedback-panel .error-message {
  margin: 0;
}

.feedback-panel .feedback-notice {
  border: 0;
  background: transparent;
  padding: 0;
}

.feedback-panel .feedback-actions,
.feedback-panel .error-message + .feedback-actions {
  margin: 0;
}

.empty {
  padding: 28px;
  text-align: center;
}

.admin-article-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-article-group {
  margin-top: 22px;
}

.admin-article-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
}

.admin-article-card {
  border: 1px solid rgba(16, 42, 35, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 252, 244, 0.54);
  padding: 16px;
}

.admin-article-card.selected {
  border-color: rgba(16, 42, 35, 0.48);
  box-shadow: 0 12px 28px rgba(16, 42, 35, 0.08);
}

.admin-article-card h3 {
  margin: 8px 0 0;
  color: var(--ink);
}

.admin-article-card details {
  margin-top: 12px;
}

.admin-article-card summary {
  cursor: pointer;
  font-weight: 700;
}

html[data-theme="night"] .topbar {
  border-color: rgba(247, 239, 225, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
}

html[data-theme="night"] .brand-mark {
  background-image: url("./assets/guotalk-logo-night-display.png");
  background-color: transparent;
  background-size: contain;
  border: 0;
  filter:
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 14px rgba(185, 154, 91, 0.18));
}

html[data-theme="night"] .brand strong {
  color: #f7efe1;
  transition: none;
}

html[data-theme="night"] .brand-tagline,
html[data-theme="night"] .daily-status span,
html[data-theme="night"] .auth-box,
html[data-theme="night"] .hero p,
html[data-theme="night"] .panel p,
html[data-theme="night"] .article-card p,
html[data-theme="night"] .story-option-header p,
html[data-theme="night"] .reading-guidance p,
html[data-theme="night"] .article-detail .summary p,
html[data-theme="night"] .word span,
html[data-theme="night"] .word strong em,
html[data-theme="night"] .recorder-status,
html[data-theme="night"] .score-comment,
html[data-theme="night"] .transcript-editor label,
html[data-theme="night"] .footer-note,
html[data-theme="night"] .footer-links a,
html[data-theme="night"] .collapse-world-button {
  color: var(--quiet-ink);
}

html[data-theme="night"] .article-card p,
html[data-theme="night"] .article-detail .summary p {
  color: var(--panel-text);
}

html[data-theme="night"] .daily-status,
html[data-theme="night"] .auth-box.signed-in span,
html[data-theme="night"] .daily-status strong,
html[data-theme="night"] .hero-statement,
html[data-theme="night"] .eyebrow,
html[data-theme="night"] .hero h1,
html[data-theme="night"] .panel h2,
html[data-theme="night"] .panel h3,
html[data-theme="night"] .article-headline h2,
html[data-theme="night"] .word small,
html[data-theme="night"] .score-label,
html[data-theme="night"] .question,
html[data-theme="night"] .recording-meter strong,
html[data-theme="night"] .stars {
  color: var(--ink);
}

html[data-theme="night"] .card,
html[data-theme="night"] .sealed-paper,
html[data-theme="night"] .legal-modal,
html[data-theme="night"] .global-transition-panel {
  background: var(--card-bg);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

html[data-theme="night"] .article-card:hover {
  border-color: var(--strong-border);
  box-shadow: 0 0 0 4px var(--difficulty-shadow, rgba(185, 154, 91, 0.16));
}

html[data-theme="night"] .tag,
html[data-theme="night"] .difficulty-range,
html[data-theme="night"] .article-headline .tag {
  border-color: rgba(247, 239, 225, 0.16);
  background: rgba(247, 239, 225, 0.08);
  color: var(--ink);
}

html[data-theme="night"] .difficulty-badge {
  border-color: var(--difficulty-border, rgba(247, 239, 225, 0.16));
  background: var(--difficulty-fill, rgba(247, 239, 225, 0.08));
  color: var(--ink);
  box-shadow: 0 0 18px 2px var(--difficulty-shadow, rgba(247, 239, 225, 0.08));
}

html[data-theme="night"] .nav-pill,
html[data-theme="night"] .records-tab,
html[data-theme="night"] .local-test-switch,
html[data-theme="night"] .timeline-day,
html[data-theme="night"] .records-lock-note,
html[data-theme="night"] .older-record-note,
html[data-theme="night"] .records-login-gate,
html[data-theme="night"] .vocabulary-filter-button,
html[data-theme="night"] .vocabulary-filter-menu,
html[data-theme="night"] .vocabulary-filter-option,
html[data-theme="night"] .records-day-detail,
html[data-theme="night"] .day-article,
html[data-theme="night"] .record-learning-block,
html[data-theme="night"] .question-detail-card,
html[data-theme="night"] .shelf-quote,
html[data-theme="night"] .empty-records {
  border-color: rgba(247, 239, 225, 0.14);
  background: rgba(247, 239, 225, 0.08);
  color: var(--ink);
}

html[data-theme="night"] .nav-pill:hover,
html[data-theme="night"] .nav-pill.active,
html[data-theme="night"] .records-tab:hover,
html[data-theme="night"] .records-tab.active,
html[data-theme="night"] .timeline-day:hover:not(.unpracticed):not(.locked),
html[data-theme="night"] .timeline-day.active {
  border-color: rgba(212, 180, 110, 0.46);
  background: rgba(212, 180, 110, 0.2);
}

html[data-theme="night"] .vocabulary-filter-button:hover,
html[data-theme="night"] .vocabulary-filter-button:focus,
html[data-theme="night"] .vocabulary-filter-option:hover,
html[data-theme="night"] .vocabulary-filter-option.selected {
  background: rgba(212, 180, 110, 0.16);
}

html[data-theme="night"] .vocabulary-filter-menu {
  background: #0d241e;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

html[data-theme="night"] .vocabulary-filter-option {
  background: transparent;
}

html[data-theme="night"] .difficulty-badge em {
  color: rgba(247, 239, 225, 0.68);
}

html[data-theme="night"] .difficulty-low,
html[data-theme="night"] .difficulty-badge.low {
  --difficulty-accent: #a9c89e;
  --difficulty-fill: rgba(169, 200, 158, 0.18);
  --difficulty-border: rgba(169, 200, 158, 0.42);
  --difficulty-shadow: rgba(169, 200, 158, 0.3);
}

html[data-theme="night"] .difficulty-medium,
html[data-theme="night"] .difficulty-badge.medium {
  --difficulty-accent: #d4b46e;
  --difficulty-fill: rgba(212, 180, 110, 0.18);
  --difficulty-border: rgba(212, 180, 110, 0.42);
  --difficulty-shadow: rgba(212, 180, 110, 0.32);
}

html[data-theme="night"] .difficulty-high,
html[data-theme="night"] .difficulty-badge.high {
  --difficulty-accent: #d79a86;
  --difficulty-fill: rgba(215, 154, 134, 0.18);
  --difficulty-border: rgba(215, 154, 134, 0.42);
  --difficulty-shadow: rgba(215, 154, 134, 0.3);
}

html[data-theme="night"] .day-article-link:hover:not(:disabled):not(.day-article-empty) {
  background: rgba(212, 180, 110, 0.14);
}

html[data-theme="night"] .timeline-day.unpracticed,
html[data-theme="night"] .day-article.unpracticed {
  border-color: rgba(247, 239, 225, 0.1);
  background: rgba(247, 239, 225, 0.045);
}

html[data-theme="night"] .timeline-day.unpracticed:hover {
  border-color: rgba(247, 239, 225, 0.1);
  background: rgba(247, 239, 225, 0.045);
}

html[data-theme="night"] .practice-light.dim {
  --difficulty-fill: rgba(247, 239, 225, 0.06);
  --difficulty-border: rgba(247, 239, 225, 0.12);
  --difficulty-shadow: transparent;
  color: rgba(247, 239, 225, 0.48);
}

html[data-theme="night"] .timeline-correction-bars {
  border-top-color: rgba(247, 239, 225, 0.12);
}

html[data-theme="night"] .timeline-correction-summary {
  border-top-color: rgba(247, 239, 225, 0.12);
}

html[data-theme="night"] .timeline-correction-progress,
html[data-theme="night"] .timeline-correction-progress::-webkit-progress-bar {
  background: rgba(247, 239, 225, 0.09);
}

html[data-theme="night"] .timeline-correction-bar.error {
  --correction-color: #d79a86;
  --correction-fill: #d79a86;
}

html[data-theme="night"] .timeline-correction-bar.better {
  --correction-color: #d4b46e;
  --correction-fill: #d4b46e;
}

html[data-theme="night"] .timeline-correction-bar.advanced {
  --correction-color: #a9c89e;
  --correction-fill: #a9c89e;
}

html[data-theme="night"] .timeline-correction-summary .error {
  color: #d79a86;
}

html[data-theme="night"] .timeline-correction-summary .error i {
  background: rgba(215, 154, 134, 0.18);
}

html[data-theme="night"] .timeline-correction-summary .better {
  color: #d4b46e;
}

html[data-theme="night"] .timeline-correction-summary .better i {
  background: rgba(212, 180, 110, 0.2);
}

html[data-theme="night"] .timeline-correction-summary .advanced {
  color: #a9c89e;
}

html[data-theme="night"] .timeline-correction-summary .advanced i {
  background: rgba(169, 200, 158, 0.18);
}

html[data-theme="night"] .day-article.unpracticed .day-article-link:hover,
html[data-theme="night"] .day-article-link:disabled:hover,
html[data-theme="night"] .day-article-empty:hover {
  background: transparent;
}

html[data-theme="night"] .day-article-title,
html[data-theme="night"] .article-score {
  color: var(--ink);
}

html[data-theme="night"] .article-score {
  border-color: rgba(247, 239, 225, 0.16);
  background: rgba(247, 239, 225, 0.08);
}

html[data-theme="night"] .article-score.empty {
  border-color: rgba(247, 239, 225, 0.16);
  background: rgba(247, 239, 225, 0.08);
}

html[data-theme="night"] .sealed-paper-inner {
  border-color: rgba(247, 239, 225, 0.12);
  background:
    linear-gradient(rgba(247, 239, 225, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 239, 225, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(212, 180, 110, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 18% 20%, rgba(247, 239, 225, 0.05), transparent 32%),
    rgba(13, 39, 33, 0.86);
  background-size: 24px 24px, 24px 24px, 100% 48px, auto, auto;
  box-shadow:
    inset 0 0 0 1px rgba(247, 239, 225, 0.055),
    inset 0 18px 42px rgba(247, 239, 225, 0.026);
}

html[data-theme="night"] .sealed-paper-inner::before {
  content: none;
}

html[data-theme="night"] .sealed-paper-button:hover:not(:disabled) {
  border-color: rgba(212, 180, 110, 0.42);
  box-shadow: 0 0 0 4px rgba(212, 180, 110, 0.08);
}

html[data-theme="night"] .sealed-paper p {
  color: var(--subtle-ink);
}

html[data-theme="night"] .manuscript-lines span,
html[data-theme="night"] .collapse-chevron::before,
html[data-theme="night"] .collapse-chevron::after {
  background: rgba(247, 239, 225, 0.32);
}

html[data-theme="night"] .collapse-world-button:hover,
html[data-theme="night"] .footer-links a:hover {
  color: var(--ink);
}

html[data-theme="night"] .reading-box,
html[data-theme="night"] .practice-header,
html[data-theme="night"] .recorder,
html[data-theme="night"] .word,
html[data-theme="night"] .report-details,
html[data-theme="night"] .echo-card blockquote,
html[data-theme="night"] .echo-method,
html[data-theme="night"] .voice-chat-control,
html[data-theme="night"] .chat-thread,
html[data-theme="night"] .invalid-answer,
html[data-theme="night"] .model-answer,
html[data-theme="night"] .transcript-box,
html[data-theme="night"] .recording-replay,
html[data-theme="night"] .microphone-test-panel,
html[data-theme="night"] .locked-feedback-card,
html[data-theme="night"] .rating-boxes button,
html[data-theme="night"] .admin-article-card {
  background: var(--reading-surface);
  border-color: var(--line);
  color: var(--panel-text);
  box-shadow: none;
}

html[data-theme="night"] .word-bookmark {
  border-color: rgba(247, 239, 225, 0.16);
  background: rgba(247, 239, 225, 0.08);
  color: var(--quiet-ink);
}

html[data-theme="night"] .word-bookmark:hover,
html[data-theme="night"] .word-bookmark.saved {
  border-color: rgba(212, 180, 110, 0.5);
  background: rgba(212, 180, 110, 0.2);
  color: #d4b46e;
}

html[data-theme="night"] .manual-answer-toggle {
  color: rgba(247, 239, 225, 0.62);
}

html[data-theme="night"] .microphone-test-entry,
html[data-theme="night"] .microphone-test-status,
html[data-theme="night"] .microphone-device-label,
html[data-theme="night"] .microphone-test-collapse,
html[data-theme="night"] .vocabulary-more-button {
  color: var(--quiet-ink);
}

html[data-theme="night"] .microphone-device-button,
html[data-theme="night"] .microphone-device-option {
  border-color: rgba(247, 239, 225, 0.18);
  background: rgba(247, 239, 225, 0.08);
  color: var(--ink);
}

html[data-theme="night"] .microphone-device-button em {
  color: rgba(247, 239, 225, 0.68);
}

html[data-theme="night"] .microphone-device-menu {
  border-color: rgba(247, 239, 225, 0.18);
  background: #102a23;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

html[data-theme="night"] .microphone-device-option + .microphone-device-option {
  border-top-color: rgba(247, 239, 225, 0.1);
}

html[data-theme="night"] .microphone-device-option:hover,
html[data-theme="night"] .microphone-device-option.selected {
  background: rgba(212, 180, 110, 0.16);
}

html[data-theme="night"] .microphone-test-collapse:hover,
html[data-theme="night"] .vocabulary-more-button:hover {
  color: var(--panel-text);
}

html[data-theme="night"] .microphone-test-status.success {
  color: var(--positive);
}

html[data-theme="night"] .microphone-test-status.warning {
  color: #d4b46e;
}

html[data-theme="night"] .manual-answer-toggle:hover {
  color: var(--ink);
}

html[data-theme="night"] .locked-feedback-mark {
  background: rgba(247, 239, 225, 0.08);
  border-color: rgba(247, 239, 225, 0.16);
  color: var(--ink);
}

html[data-theme="night"] .locked-feature-copy {
  color: rgba(247, 239, 225, 0.78);
}

html[data-theme="night"] .report-details {
  background: rgba(247, 239, 225, 0.07);
}

html[data-theme="night"] .record-correction-panel,
html[data-theme="night"] .record-correction-list article {
  border-color: rgba(247, 239, 225, 0.14);
  background: rgba(247, 239, 225, 0.07);
}

html[data-theme="night"] .record-correction-panel.error {
  border-color: rgba(215, 154, 134, 0.42);
  background: rgba(215, 154, 134, 0.12);
}

html[data-theme="night"] .record-correction-panel.better {
  border-color: rgba(212, 180, 110, 0.42);
  background: rgba(212, 180, 110, 0.12);
}

html[data-theme="night"] .record-correction-panel.advanced {
  border-color: rgba(169, 200, 158, 0.42);
  background: rgba(169, 200, 158, 0.12);
}

html[data-theme="night"] .report-details summary,
html[data-theme="night"] .echo-method h4,
html[data-theme="night"] .translation-grid h4 {
  color: var(--ink);
}

html[data-theme="night"] .report-details p,
html[data-theme="night"] .echo-steps,
html[data-theme="night"] .report-list,
html[data-theme="night"] .chat-empty,
html[data-theme="night"] .chat-message span,
html[data-theme="night"] .muted-copy,
html[data-theme="night"] .report-empty-note,
html[data-theme="night"] .fix-list small,
html[data-theme="night"] .performance-summary span,
html[data-theme="night"] .rating-row label,
html[data-theme="night"] .chat-actions span,
html[data-theme="night"] .recording-meter span,
html[data-theme="night"] .change-line em,
html[data-theme="night"] .change-line span,
html[data-theme="night"] .review-meta,
html[data-theme="night"] .qualitative-feedback label small,
html[data-theme="night"] .feedback-submit-row,
html[data-theme="night"] .record-correction-list p,
html[data-theme="night"] .admin-article-card summary,
html[data-theme="night"] .admin-article-card p {
  color: var(--subtle-ink);
}

html[data-theme="night"] .report-list li::marker {
  color: rgba(212, 180, 110, 0.78);
}

html[data-theme="night"] .performance-summary div {
  border-color: var(--line);
  background: rgba(247, 239, 225, 0.08);
}

html[data-theme="night"] .admin-code-block {
  border-color: var(--line);
  background: rgba(247, 239, 225, 0.08);
  color: var(--panel-text);
}

html[data-theme="night"] .performance-summary strong,
html[data-theme="night"] .rating-row label span:first-child {
  color: var(--ink);
}

html[data-theme="night"] .report-empty-note {
  border-color: var(--line);
  background: rgba(247, 239, 225, 0.07);
}

html[data-theme="night"] .echo-card blockquote {
  background: rgba(247, 239, 225, 0.1);
  color: var(--ink);
}

html[data-theme="night"] .echo-method {
  background: rgba(7, 28, 23, 0.24);
}

html[data-theme="night"] .voice-chat-status {
  border-color: rgba(212, 180, 110, 0.32);
  background: rgba(212, 180, 110, 0.16);
}

html[data-theme="night"] .voice-chat-status strong {
  color: var(--ink);
}

html[data-theme="night"] .voice-chat-status span,
html[data-theme="night"] .chat-actions,
html[data-theme="night"] .chat-actions span {
  color: var(--subtle-ink);
}

html[data-theme="night"] .voice-chat-status.warning {
  border-color: rgba(215, 154, 134, 0.48);
  background: rgba(215, 154, 134, 0.16);
}

html[data-theme="night"] .voice-chat-status.warning strong {
  color: var(--warning);
}

html[data-theme="night"] .button,
html[data-theme="night"] .button.secondary,
html[data-theme="night"] .button.ghost,
html[data-theme="night"] .auth-button,
html[data-theme="night"] .auth-link,
html[data-theme="night"] .auth-icon-button,
html[data-theme="night"] .icon-button {
  border-color: rgba(247, 239, 225, 0.28);
  background: rgba(247, 239, 225, 0.08);
  color: var(--ink);
}

html[data-theme="night"] .account-menu-panel {
  border-color: rgba(247, 239, 225, 0.18);
  background: var(--card-bg);
}

html[data-theme="night"] .locked-feedback-button {
  border-color: #d4b46e;
  background: #d4b46e;
  color: #071c17;
  box-shadow:
    0 0 0 1px rgba(247, 239, 225, 0.12),
    0 14px 28px rgba(0, 0, 0, 0.28);
}

html[data-theme="night"] .locked-feedback-button:hover:not(:disabled) {
  border-color: #f0d28a;
  background: #f0d28a;
  color: #071c17;
}

html[data-theme="night"] .rating-boxes button {
  border-color: var(--line);
  background: rgba(247, 239, 225, 0.08);
  color: var(--subtle-ink);
}

html[data-theme="night"] .rating-boxes button.preview,
html[data-theme="night"] .rating-boxes button:hover,
html[data-theme="night"] .rating-boxes button:focus-visible {
  border-color: rgba(212, 180, 110, 0.72);
  background: rgba(212, 180, 110, 0.2);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(212, 180, 110, 0.16);
}

html[data-theme="night"] .rating-boxes button.preview.score-1,
html[data-theme="night"] .rating-boxes button.preview.score-2,
html[data-theme="night"] .rating-boxes button.preview.score-3 {
  border-color: rgba(215, 154, 134, 0.58);
  background: rgba(215, 154, 134, 0.18);
  color: #f7efe1;
}

html[data-theme="night"] .rating-boxes button.preview.score-8,
html[data-theme="night"] .rating-boxes button.preview.score-9,
html[data-theme="night"] .rating-boxes button.preview.score-10 {
  border-color: var(--accent);
  background: rgba(212, 180, 110, 0.34);
  color: #071c17;
}

html[data-theme="night"] .rating-boxes button.selected {
  border-color: rgba(212, 180, 110, 0.84);
  background: rgba(212, 180, 110, 0.28);
  color: var(--ink);
}

html[data-theme="night"] .rating-boxes button.selected.score-1,
html[data-theme="night"] .rating-boxes button.selected.score-2,
html[data-theme="night"] .rating-boxes button.selected.score-3 {
  border-color: rgba(215, 154, 134, 0.58);
  background: rgba(215, 154, 134, 0.18);
  color: #f7efe1;
}

html[data-theme="night"] .rating-boxes button.selected.score-4,
html[data-theme="night"] .rating-boxes button.selected.score-5,
html[data-theme="night"] .rating-boxes button.selected.score-6,
html[data-theme="night"] .rating-boxes button.selected.score-7 {
  border-color: rgba(212, 180, 110, 0.66);
  background: rgba(212, 180, 110, 0.24);
  color: #f7efe1;
}

html[data-theme="night"] .rating-boxes button.selected.score-8,
html[data-theme="night"] .rating-boxes button.selected.score-9,
html[data-theme="night"] .rating-boxes button.selected.score-10 {
  border-color: var(--accent);
  background: #d4b46e;
  color: #071c17;
  box-shadow:
    0 0 0 1px rgba(247, 239, 225, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="night"] .rating-boxes:hover button:not(:disabled):not(.preview) {
    border-color: rgba(247, 239, 225, 0.16);
    background: rgba(247, 239, 225, 0.06);
    color: rgba(247, 239, 225, 0.5);
  }

  html[data-theme="night"] .rating-boxes:hover button.selected {
    border-color: rgba(212, 180, 110, 0.84);
    background: rgba(212, 180, 110, 0.28);
    color: var(--ink);
  }

  html[data-theme="night"] .rating-boxes:hover button.selected.score-1,
  html[data-theme="night"] .rating-boxes:hover button.selected.score-2,
  html[data-theme="night"] .rating-boxes:hover button.selected.score-3 {
    border-color: rgba(215, 154, 134, 0.58);
    background: rgba(215, 154, 134, 0.18);
    color: #f7efe1;
  }

  html[data-theme="night"] .rating-boxes:hover button.selected.score-4,
  html[data-theme="night"] .rating-boxes:hover button.selected.score-5,
  html[data-theme="night"] .rating-boxes:hover button.selected.score-6,
  html[data-theme="night"] .rating-boxes:hover button.selected.score-7 {
    border-color: rgba(212, 180, 110, 0.66);
    background: rgba(212, 180, 110, 0.24);
    color: #f7efe1;
  }

  html[data-theme="night"] .rating-boxes:hover button.selected.score-8,
  html[data-theme="night"] .rating-boxes:hover button.selected.score-9,
  html[data-theme="night"] .rating-boxes:hover button.selected.score-10 {
    border-color: var(--accent);
    background: #d4b46e;
    color: #071c17;
  }

  html[data-theme="night"] .rating-boxes button:not(:disabled):hover {
    border-color: rgba(212, 180, 110, 0.78);
    background: rgba(212, 180, 110, 0.28);
    color: var(--ink);
    box-shadow: 0 0 0 3px rgba(212, 180, 110, 0.16);
  }

  html[data-theme="night"] .rating-boxes button.score-1:not(:disabled):hover,
  html[data-theme="night"] .rating-boxes button.score-2:not(:disabled):hover,
  html[data-theme="night"] .rating-boxes button.score-3:not(:disabled):hover {
    border-color: rgba(215, 154, 134, 0.62);
    background: rgba(215, 154, 134, 0.2);
  }

  html[data-theme="night"] .rating-boxes button.score-8:not(:disabled):hover,
  html[data-theme="night"] .rating-boxes button.score-9:not(:disabled):hover,
  html[data-theme="night"] .rating-boxes button.score-10:not(:disabled):hover {
    border-color: var(--accent);
    background: #d4b46e;
    color: #071c17;
  }
}

html[data-theme="night"] .qualitative-feedback {
  border-color: rgba(247, 239, 225, 0.16);
  background:
    linear-gradient(180deg, rgba(247, 239, 225, 0.07), rgba(247, 239, 225, 0.04)),
    rgba(13, 39, 33, 0.72);
  box-shadow: inset 0 1px 0 rgba(247, 239, 225, 0.05);
}

html[data-theme="night"] .qualitative-feedback label {
  color: var(--ink);
}

html[data-theme="night"] .qualitative-feedback textarea {
  border-color: rgba(247, 239, 225, 0.18);
  background: rgba(7, 28, 23, 0.72);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(247, 239, 225, 0.04),
    0 0 0 1px rgba(7, 28, 23, 0.24);
}

html[data-theme="night"] .qualitative-feedback textarea::placeholder {
  color: rgba(247, 239, 225, 0.5);
}

html[data-theme="night"] .qualitative-feedback textarea:focus {
  border-color: rgba(212, 180, 110, 0.74);
  background: rgba(9, 32, 27, 0.9);
  box-shadow:
    0 0 0 3px rgba(212, 180, 110, 0.18),
    inset 0 1px 0 rgba(247, 239, 225, 0.06);
}

html[data-theme="night"] .rating-row.locked label {
  color: var(--quiet-ink);
}

html[data-theme="night"] .rating-row.locked .rating-boxes button {
  border-color: rgba(247, 239, 225, 0.12);
  background: rgba(247, 239, 225, 0.05);
  color: rgba(247, 239, 225, 0.42);
}

html[data-theme="night"] .rating-row.locked .rating-boxes button.selected {
  border-color: rgba(212, 180, 110, 0.48);
  background: rgba(212, 180, 110, 0.24);
  color: var(--ink);
}

html[data-theme="night"] .button:hover:not(:disabled),
html[data-theme="night"] .button.secondary:hover:not(:disabled),
html[data-theme="night"] .button.ghost:hover:not(:disabled),
html[data-theme="night"] .auth-button:hover,
html[data-theme="night"] .auth-link:hover,
html[data-theme="night"] .auth-icon-button:hover,
html[data-theme="night"] .icon-button:hover,
html[data-theme="night"] .recording-replay:hover {
  border-color: rgba(212, 180, 110, 0.72);
  background: rgba(212, 180, 110, 0.18);
  color: var(--ink);
  box-shadow: 0 0 0 3px rgba(212, 180, 110, 0.16);
}

html[data-theme="night"] .button-spinner,
html[data-theme="night"] .icon-spinner {
  border-color: rgba(247, 239, 225, 0.2);
  border-top-color: currentColor;
}

html[data-theme="night"] .waveform,
html[data-theme="night"] .playing-indicator {
  border-color: var(--line);
  background: rgba(247, 239, 225, 0.08);
}

html[data-theme="night"] .progress-track {
  --progress-color: var(--accent);
  --progress-rest-color: rgba(247, 239, 225, 0.08);
  background: var(--progress-rest-color);
}

html[data-theme="night"] .progress-fill,
html[data-theme="night"] .waveform span {
  background: var(--accent);
}

html[data-theme="night"] .record-button {
  background: #d4b46e;
  color: #071c17;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

html[data-theme="night"] .record-button.recording {
  background: var(--warning);
  color: #071c17;
}

html[data-theme="night"] .score-card,
html[data-theme="night"] .model-answer {
  border-color: rgba(169, 200, 158, 0.36);
  background: rgba(169, 200, 158, 0.13);
}

html[data-theme="night"] .fix-list li {
  border-color: rgba(247, 239, 225, 0.16);
  background:
    linear-gradient(180deg, rgba(247, 239, 225, 0.075), rgba(247, 239, 225, 0.045)),
    rgba(7, 28, 23, 0.82);
  color: var(--panel-text);
  box-shadow: inset 0 1px 0 rgba(247, 239, 225, 0.05);
}

html[data-theme="night"] .fix-list li.error {
  border-color: rgba(215, 154, 134, 0.38);
  background:
    linear-gradient(180deg, rgba(215, 154, 134, 0.16), rgba(215, 154, 134, 0.07)),
    rgba(7, 28, 23, 0.84);
}

html[data-theme="night"] .fix-list li.better {
  border-color: rgba(212, 180, 110, 0.38);
  background:
    linear-gradient(180deg, rgba(212, 180, 110, 0.15), rgba(212, 180, 110, 0.06)),
    rgba(7, 28, 23, 0.84);
}

html[data-theme="night"] .fix-list li.advanced {
  border-color: rgba(169, 200, 158, 0.4);
  background:
    linear-gradient(180deg, rgba(169, 200, 158, 0.16), rgba(169, 200, 158, 0.06)),
    rgba(7, 28, 23, 0.84);
}

html[data-theme="night"] .review-tag.error {
  border-color: rgba(215, 154, 134, 0.38);
  background: rgba(215, 154, 134, 0.18);
  color: #d79a86;
}

html[data-theme="night"] .review-tag.better {
  border-color: rgba(212, 180, 110, 0.38);
  background: rgba(212, 180, 110, 0.2);
  color: #d4b46e;
}

html[data-theme="night"] .review-tag.advanced {
  border-color: rgba(169, 200, 158, 0.38);
  background: rgba(169, 200, 158, 0.18);
  color: #a9c89e;
}

html[data-theme="night"] .review-tag::after {
  background: #f7efe1;
  color: #071c17;
}

html[data-theme="night"] .change-line span {
  color: rgba(247, 239, 225, 0.78);
}

html[data-theme="night"] .change-line strong {
  color: #fff8ec;
}

html[data-theme="night"] .change-line em {
  color: rgba(212, 180, 110, 0.86);
}

html[data-theme="night"] .fix-list small {
  color: rgba(247, 239, 225, 0.72);
}

html[data-theme="night"] .invalid-answer {
  border-color: rgba(215, 154, 134, 0.42);
  background: rgba(215, 154, 134, 0.14);
}

html[data-theme="night"] .playing-indicator.stopped,
html[data-theme="night"] .recording-meter span {
  color: rgba(247, 239, 225, 0.58);
}

html[data-theme="night"] .transcript-box,
html[data-theme="night"] input,
html[data-theme="night"] textarea {
  background-color: rgba(13, 39, 33, 0.92);
  color: var(--panel-text);
  caret-color: var(--accent);
}

html[data-theme="night"] .legal-modal-backdrop {
  background: rgba(0, 0, 0, 0.62);
}

html[data-theme="night"] .global-transition {
  background: rgba(7, 28, 23, 0.72);
}

html[data-theme="night"] .global-transition-panel p {
  color: var(--muted);
}

html[data-theme="night"] .legal-modal-note {
  border-color: var(--line);
  background: rgba(247, 239, 225, 0.07);
  color: var(--muted);
}

html[data-theme="night"] .legal-modal-note strong,
html[data-theme="night"] .legal-check {
  color: var(--ink);
}

html[data-theme="night"] .legal-check input {
  accent-color: var(--accent);
}

html[data-theme="night"] .site-footer,
html[data-theme="night"] .review,
html[data-theme="night"] .daily-status {
  border-color: rgba(247, 239, 225, 0.14);
}

html[data-theme="night"] a:focus-visible,
html[data-theme="night"] button:focus-visible,
html[data-theme="night"] input:focus-visible,
html[data-theme="night"] textarea:focus-visible,
html[data-theme="night"] summary:focus-visible {
  outline-color: var(--focus-ring);
}

/* Centralized visual cleanup for radius, type, and interaction states. */
body {
  font-family: var(--font-serif);
  font-size: var(--font-reading);
}

.topbar,
.legal-modal,
.global-transition-panel,
.missing-route-card,
.records-login-gate,
.records-overview-card,
.records-day-detail,
.practice-card,
.review,
.report-card,
.article-card,
.article-detail {
  border-radius: var(--radius-large);
}

.story-option,
.sealed-paper-button,
.sealed-paper-inner,
.timeline-day,
.day-article-link,
.record-correction-panel,
.question-detail-card,
.word,
.panel,
.summary,
.reading-guidance,
.transcript-box,
.locked-feature-card,
.score-box,
.change-line,
.fix-list,
.echo-card,
.voice-chat-card,
.performance-summary,
.rating-row,
.qualitative-feedback textarea,
.notice,
.error-message {
  border-radius: var(--radius-card);
}

.article-card,
.article-detail {
  border-radius: var(--radius-large);
}

.tag,
.difficulty-range,
.difficulty-badge,
.record-meta-row,
.record-question-list,
.record-correction-list,
.shelf-quote,
.vocabulary-filter-menu,
.vocabulary-filter-button,
.microphone-device-picker,
.microphone-device-menu,
.microphone-device-button,
.microphone-test-panel,
.report-empty-note,
.transcript-details,
.report-details,
.invalid-answer {
  border-radius: var(--radius-control);
}

.pill,
.nav-pill,
.theme-toggle,
.theme-toggle-track,
.theme-toggle-thumb,
.auth-button,
.auth-link,
.auth-icon-button,
.button,
.icon-button,
.record-button,
.recording-replay,
.word-bookmark,
.review-tag,
.playing-indicator span,
.score-label,
.rating-boxes button {
  border-radius: var(--radius-pill);
}

.playing-indicator.stopped span {
  border-radius: 2px;
  background: #b56a5a;
  animation: none;
}

html[data-theme="night"] .playing-indicator.stopped span {
  background: #d79a86;
}

.hero h1 {
  font-size: var(--font-display);
}

.records-hero h1,
.legal-page h1 {
  font-size: var(--font-page);
}

.article-card h2,
.day-article-title,
.article-headline h2,
.day-detail-head h2 {
  font-size: var(--font-section);
}

.echo-card blockquote,
.stars,
.article-score {
  font-size: var(--font-card);
}

.timeline-score {
  font-size: 34px;
}

.hero p,
.records-hero p:not(.eyebrow),
.article-card p,
.locked-feature-copy {
  font-size: var(--font-body);
}

.summary,
.article-detail .summary {
  font-size: var(--font-reading);
}

.article-detail .summary p {
  line-height: 1.82;
}

.legal-modal p,
.records-login-gate p,
.reading-guidance p,
.record-question-list p,
.record-correction-list p,
.question-detail-card strong,
.question-detail-card small,
.report-empty-note {
  font-size: var(--font-body-sm);
}

.button,
.icon-button,
.vocabulary-filter-option,
.word strong em,
.word span,
.word small,
.practice-topline,
.recording-meter span,
.recording-replay,
.microphone-device-label,
.microphone-device-option,
.microphone-test-status,
.manual-answer-toggle,
.playing-indicator,
.transcript-editor label,
.review-tag::after,
.fix-list small,
.performance-summary span,
.feedback-submit-row,
.error-message {
  font-size: var(--font-ui);
}

.tag,
.difficulty-range,
.legal-check,
.article-detail-meta .tag,
.article-detail-meta .difficulty-badge strong,
.article-detail-meta .difficulty-badge em {
  font-size: var(--font-ui-strong);
}

.pill,
.daily-status span,
.daily-status strong,
.auth-box,
.auth-link,
.theme-label,
.footer-note,
.footer-links a,
.local-test-switch span,
.timeline-day small,
.record-meta-row,
.record-question-list em,
.record-correction-panel summary small,
.record-correction-list em,
.question-detail-card em,
.mini-section-head span,
.review-tag,
.change-line em,
.chat-message span,
.chat-actions span {
  font-size: var(--font-meta);
}

.records-tab {
  font-size: var(--font-body-sm);
}

.nav-pill:hover,
.auth-button:hover,
.auth-link:hover,
.auth-icon-button:hover,
.button:hover:not(:disabled),
.button.secondary:hover:not(:disabled),
.button.ghost:hover:not(:disabled) {
  background: var(--hover-strong);
  color: var(--accent-strong);
}

.records-tab:hover,
.records-tab.active,
.timeline-day:hover:not(.unpracticed):not(.locked),
.timeline-day.active,
.day-article-link:hover:not(:disabled):not(.day-article-empty),
.icon-button:hover,
.word-bookmark:hover,
.word-bookmark.saved,
.recording-replay:hover,
.manual-answer-toggle:hover,
.rating-boxes button:hover {
  border-color: var(--border-strong);
  background: var(--hover-soft);
  color: var(--ink);
}

.timeline-day.locked,
.timeline-day.unpracticed,
.day-article-empty,
.day-article-link:disabled,
.rating-row.locked .rating-boxes button,
.rating-row.locked .rating-boxes button:hover {
  cursor: default;
}

.timeline-day.locked:hover,
.timeline-day.unpracticed:hover {
  border-color: rgba(16, 42, 35, 0.12);
  background: rgba(16, 42, 35, 0.045);
}

.day-article.unpracticed .day-article-link:hover,
.day-article-empty:hover,
.day-article-link:disabled:hover {
  background: transparent;
}

@media (min-width: 1440px) {
  :root {
    --page-inset: 42px;
    --font-section: clamp(28px, 2.2vw, 40px);
  }

  .shell {
    width: min(calc(100% - 72px), 1280px);
    padding-top: 34px;
  }

  .topbar {
    margin-bottom: 42px;
    padding: 20px 34px 20px 28px;
  }

  .brand {
    --brand-copy-width: 160px;
    grid-template-columns: 88px var(--brand-copy-width);
    column-gap: 34px;
    min-height: 96px;
  }

  .brand-mark {
    width: 88px;
    height: 88px;
  }

  .brand strong {
    font-size: 32px;
  }

  .brand-tagline {
    gap: 16px;
    font-size: 16px;
    margin-top: 8px;
  }

  .global-transition {
    padding: 28px;
  }

  .global-transition-panel {
    gap: 12px;
    width: min(100%, 380px);
    padding: 28px 32px;
  }

  .global-transition-panel strong {
    font-size: 20px;
  }

  .global-transition-panel p {
    font-size: 16px;
  }

  .global-transition-spinner {
    width: 32px;
    height: 32px;
  }

  .story-list {
    gap: 40px;
    margin-top: 64px;
  }

  .records-tabs,
  .records-screen:not(.has-selection) .records-workspace,
  .vocabulary-workspace {
    width: min(100%, 1280px);
    max-width: 1280px;
  }

  .article-card {
    padding-block: 28px;
  }

  .panel,
  .article-detail {
    padding: 28px 34px;
  }
}

@media (min-width: 2200px) {
  :root {
    --page-inset: 52px;
    --story-header-lift: -2px;
    --font-section: clamp(32px, 1.8vw, 44px);
    --font-card: 26px;
    --font-reading: 22px;
    --font-body: 20px;
    --font-body-sm: 18px;
    --font-ui: 17px;
    --font-meta: 16px;
  }

  .shell {
    width: min(calc(100% - 128px), 1440px);
    padding-top: 44px;
  }

  .topbar {
    margin-bottom: 52px;
    padding: 24px 42px 24px 34px;
  }

  .records-tabs,
  .records-screen:not(.has-selection) .records-workspace,
  .vocabulary-workspace {
    width: min(100%, 1440px);
    max-width: 1440px;
  }

  .brand {
    --brand-copy-width: 168px;
    grid-template-columns: 94px var(--brand-copy-width);
    column-gap: 36px;
    min-height: 102px;
  }

  .brand-mark {
    width: 94px;
    height: 94px;
  }

  .brand strong {
    font-size: 34px;
  }

  .brand-tagline {
    gap: 18px;
    font-size: 16px;
    margin-top: 9px;
  }

  .global-transition {
    padding: 36px;
  }

  .global-transition-panel {
    gap: 14px;
    width: min(100%, 440px);
    padding: 34px 40px;
  }

  .global-transition-panel strong {
    font-size: 22px;
  }

  .global-transition-panel p {
    font-size: 17px;
  }

  .global-transition-spinner {
    width: 38px;
    height: 38px;
    border-width: 4px;
  }

  .story-list {
    gap: 48px;
    margin-top: 72px;
  }

  .article-card {
    padding-block: 32px;
  }

  .panel,
  .article-detail {
    padding: 32px 40px;
  }
}

@media (max-width: 1180px) {
  .records-screen:not(.has-selection) .records-board {
    min-height: auto;
    padding: 28px;
  }

  .records-screen:not(.has-selection) .timeline-day {
    min-height: 276px;
  }
}

@media (max-width: 960px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 14px;
    gap: 12px;
  }

  .brand {
    grid-column: 1 / -1;
    --brand-copy-width: 136px;
    grid-template-columns: 68px var(--brand-copy-width);
    width: 100%;
    min-height: 74px;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
  }

  .brand strong {
    font-size: 28px;
  }

  .brand-tagline {
    gap: 12px;
    font-size: 14px;
    letter-spacing: 0.08em;
    margin-top: 6px;
  }

  .daily-status {
    grid-column: 1 / -1;
    justify-items: start;
    width: 100%;
    min-width: 0;
    border-left: 0;
    border-top: 1px solid rgba(16, 42, 35, 0.18);
    padding: 10px 0 0;
    text-align: left;
  }

  .nav-pill {
    width: 100%;
  }

  .theme-toggle {
    grid-column: 1;
    justify-self: start;
  }

  .auth-box {
    grid-column: 2;
    justify-items: end;
    justify-self: end;
    width: auto;
    min-width: 0;
  }

  .auth-box.auth-icons {
    width: auto;
    min-width: 104px;
    align-self: center;
  }

  .account-menu-panel {
    right: 0;
  }

  .auth-box.signed-in span,
  .auth-error {
    max-width: 100%;
    text-align: left;
  }
}

@media (min-width: 821px) and (max-width: 960px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .daily-status {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .auth-box {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 820px) {
  :root {
    --page-inset: 24px;
    --radius-large: 16px;
    --radius-card: 12px;
    --radius-control: 8px;
  }

  body {
    background:
      radial-gradient(ellipse at 48% 22%, rgba(255, 252, 244, 0.84) 0%, rgba(255, 250, 240, 0.68) 28%, rgba(255, 250, 240, 0.26) 56%, rgba(255, 250, 240, 0) 76%),
      linear-gradient(135deg, rgba(255, 250, 240, 0.95) 0%, rgba(247, 239, 225, 0.82) 44%, rgba(247, 239, 225, 0.58) 100%),
      url("./assets/guotalk-morning-landscape-portrait.png"),
      linear-gradient(rgba(16, 42, 35, 0.024) 1px, transparent 1px),
      linear-gradient(90deg, rgba(16, 42, 35, 0.024) 1px, transparent 1px),
      var(--bg);
    background-size: auto, auto, cover, 22px 22px, 22px 22px, auto;
    background-position: center, center, right bottom, left top, left top, center;
    background-attachment: scroll, scroll, scroll, scroll, scroll, scroll;
  }

  html[data-theme="night"] body {
    background:
      radial-gradient(ellipse at 70% 26%, rgba(212, 180, 110, 0.18) 0%, rgba(212, 180, 110, 0.08) 22%, rgba(7, 28, 23, 0) 48%),
      linear-gradient(90deg, rgba(7, 28, 23, 0.88) 0%, rgba(7, 28, 23, 0.62) 55%, rgba(7, 28, 23, 0.52) 100%),
      linear-gradient(180deg, rgba(7, 28, 23, 0.32) 0%, rgba(7, 28, 23, 0.94) 100%),
      url("./assets/guotalk-night-landscape-portrait.png"),
      linear-gradient(rgba(247, 239, 225, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(247, 239, 225, 0.02) 1px, transparent 1px),
      var(--bg);
    background-size: auto, auto, auto, cover, 22px 22px, 22px 22px, auto;
    background-position: center, center, center, right bottom, left top, left top, center;
    background-attachment: scroll, scroll, scroll, scroll, scroll, scroll, scroll;
  }

  .shell {
    padding-top: 18px;
  }

  .missing-route-screen,
  .static-page-shell .missing-route-screen {
    min-height: calc(100svh - 86px);
    padding: 24px 18px;
  }

  .missing-route-card {
    min-height: 300px;
    padding: 34px 22px;
    gap: 16px;
    border-radius: var(--radius);
  }

  .missing-route-card h1 {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.18;
  }

  .missing-route-card p:not(.eyebrow) {
    min-height: 0;
    font-size: 16px;
    line-height: 1.7;
  }

  .grid,
  .word-grid,
  .translation-grid,
  .report-score-summary,
  .performance-summary {
    grid-template-columns: 1fr;
  }

  .word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .word {
    min-height: 158px;
    padding: 13px;
  }

  .word strong {
    padding-right: 30px;
  }

  .rating-boxes {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hero .eyebrow {
    letter-spacing: 0;
  }

  .hero h1 {
    max-width: 11.4em;
    font-size: 35px;
    line-height: 1.2;
  }

  .hero {
    padding-left: 4px;
    padding-right: 4px;
  }

  .article-card {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 20px 24px;
  }

  .article-card h2 {
    font-size: 25px;
    margin-bottom: 8px;
  }

  .article-card p {
    font-size: var(--font-body);
    line-height: 1.5;
    -webkit-line-clamp: 3;
  }

  .meta {
    gap: 6px;
    margin-bottom: 12px;
  }

  .tag,
  .difficulty-range {
    padding: 5px 8px;
    font-size: var(--font-meta);
  }

  .article-card .pill {
    padding: 7px 10px;
    font-size: var(--font-meta);
    white-space: nowrap;
  }

  .headline-row {
    align-items: flex-start;
  }

  .article-detail {
    padding: 24px 28px;
  }

  .sealed-paper-inner {
    padding: 74px calc(var(--page-inset) + 16px) 34px;
  }

  .headline-row.article-headline {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "meta"
      "audio"
      "title";
    gap: 16px;
    margin-bottom: 16px;
  }

  .article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: 100%;
    max-width: none;
    overflow: visible;
  }

  .article-detail-meta .tag,
  .article-detail-meta .difficulty-badge {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 6px 9px;
    white-space: nowrap;
  }

  .article-detail-meta .difficulty-badge {
    gap: 5px;
    box-shadow: none;
  }

  .article-detail-meta .difficulty-badge strong,
  .article-detail-meta .difficulty-badge em {
    font-size: var(--font-meta);
    white-space: nowrap;
  }

  .article-audio-row {
    width: 100%;
  }

  .article-audio-row .audio-controls {
    justify-content: flex-start;
  }

  .article-headline h2 {
    width: 100%;
    font-size: 29px;
    line-height: 1.14;
  }

  .echo-intro-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .echo-intro-row .playing-indicator {
    left: 0;
    right: auto;
  }

  .timeline-day {
    grid-template-columns: 1fr;
  }

  .timeline-date,
  .timeline-score,
  .timeline-summary,
  .timeline-correction-bars,
  .timeline-correction-summary {
    grid-column: 1;
    grid-row: auto;
  }

  .timeline-score {
    justify-self: start;
  }

  .timeline-summary {
    flex-wrap: wrap;
  }

  .fix-list li {
    padding-right: 14px;
    padding-top: 54px;
  }

  .review-tag {
    left: 12px;
    right: auto;
  }

  .day-detail-head,
  .day-article-link {
    display: grid;
    grid-template-columns: 1fr;
  }

  .day-article-copy {
    max-width: none;
  }

  .records-workspace {
    grid-template-columns: 1fr;
  }

  .records-screen:not(.has-selection) .records-board {
    padding: 20px;
  }

  .records-screen:not(.has-selection) .records-timeline {
    grid-template-columns: 1fr;
  }

  .records-screen:not(.has-selection) .timeline-day {
    min-height: 236px;
    padding: 20px;
  }

  .records-login-gate {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .vocabulary-library-head {
    justify-content: stretch;
  }

  .vocabulary-filters {
    width: 100%;
    justify-content: stretch;
  }

  .vocabulary-filter-control {
    flex: 1 1 150px;
  }

  .records-workspace.has-selection .records-timeline {
    grid-template-columns: 1fr;
  }

  .local-test-switch {
    grid-template-columns: 1fr;
  }

  .local-test-switch {
    display: grid;
  }

  .legal-modal {
    justify-self: stretch;
    width: auto;
    max-width: none;
    padding: 22px;
    border-radius: var(--radius-large);
  }

  .legal-modal h2 {
    font-size: 25px;
  }

  .legal-actions {
    justify-content: center;
    column-gap: 24px;
    row-gap: 16px;
  }

  .legal-actions .button {
    flex-basis: 100%;
    margin-left: 0;
    width: 100%;
  }

  .reading-guidance {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .reading-guidance br {
    display: none;
  }

  .reading-guidance .audio-state-slot {
    min-height: 38px;
  }

  .reading-guidance .playing-indicator {
    left: 0;
    right: auto;
  }

  .site-footer {
    gap: 18px;
    margin-top: 38px;
    padding: 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .question {
    font-size: 24px;
  }

  .question-row {
    gap: 10px;
  }

  .icon-button.question-audio-button {
    width: 44px;
    height: 44px;
  }

  .audio-controls {
    gap: 7px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  .error-message {
    font-size: var(--font-meta);
    margin-top: 12px;
    padding: 10px 12px;
  }

  .feedback-actions {
    gap: 10px;
    margin-top: 14px;
  }

  .feedback-actions .button {
    flex: 1 1 0;
    min-width: 118px;
  }

  .microphone-test-hover-zone,
  .microphone-test-entry,
  .microphone-test-panel,
  .microphone-test-actions {
    width: 100%;
  }

  .microphone-test-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .microphone-test-button,
  .microphone-test-actions .recording-replay {
    width: 100%;
    min-height: 44px;
  }

  .manual-answer-submit {
    width: 100%;
  }

  .microphone-device-picker {
    width: 100%;
  }

  .model-answer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  :root {
    --page-inset: 20px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .word-grid {
    gap: 8px;
  }

  .word {
    min-height: 148px;
    padding: 12px;
  }

  .word span,
  .word small {
    font-size: 14px;
  }

  .word-bookmark {
    top: 2px;
    right: 2px;
    width: 44px;
    height: 44px;
  }

  .article-detail {
    padding: 22px;
  }

  .article-headline h2 {
    font-size: 27px;
  }

  .article-detail-meta {
    gap: 6px;
  }

  .article-detail-meta .tag,
  .article-detail-meta .difficulty-badge {
    padding: 5px 8px;
  }

  .article-detail-meta .difficulty-badge strong,
  .article-detail-meta .difficulty-badge em,
  .article-detail-meta .tag {
    font-size: var(--font-meta);
  }
}

@media (max-width: 820px) {
  .recap-vocabulary .word-grid,
  .vocabulary-grid,
  .vocabulary-panel .article-vocabulary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-vocabulary-grid.collapsed .word:nth-child(n + 6),
  .recap-vocabulary-grid.collapsed .word:nth-child(n + 6),
  .vocabulary-grid.mobile-limit-5 .word:nth-child(n + 6),
  .vocabulary-grid.mobile-limit-10 .word:nth-child(n + 11),
  .vocabulary-grid.mobile-limit-15 .word:nth-child(n + 16),
  .vocabulary-grid.mobile-limit-20 .word:nth-child(n + 21) {
    display: none;
  }

  .recap-vocabulary .word,
  .vocabulary-grid .word,
  .vocabulary-panel .word {
    min-height: auto;
    padding: 16px 60px 16px 16px;
  }

  .recap-vocabulary .word strong,
  .vocabulary-grid .word strong,
  .vocabulary-panel .word strong {
    padding-right: 0;
    font-size: 22px;
    line-height: 1.2;
  }

  .recap-vocabulary .word span,
  .recap-vocabulary .word small,
  .vocabulary-grid .word span,
  .vocabulary-grid .word small,
  .vocabulary-panel .word span,
  .vocabulary-panel .word small {
    font-size: 15px;
  }

  .recap-vocabulary .word-bookmark,
  .vocabulary-grid .word-bookmark,
  .vocabulary-panel .word-bookmark {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
  }

  .vocabulary-more-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 32px;
    margin: 10px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(16, 42, 35, 0.48);
    cursor: pointer;
  }

  .vocabulary-more-button:hover {
    color: rgba(16, 42, 35, 0.72);
  }

  .vocabulary-more-chevron {
    width: 14px;
    height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
  }

  .vocabulary-more-button.expanded .vocabulary-more-chevron {
    transform: translateY(3px) rotate(225deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .story-list.revealed .story-option,
  .story-list.revealed .story-option-header,
  .story-list.revealed .article-card,
  .story-list.is-opening .sealed-paper {
    opacity: 1;
    transform: none;
  }

  .playing-indicator span {
    animation: none;
  }
}

.staging-gate-page {
  min-height: 100vh;
}

.staging-gate-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 6vw, 72px) 18px;
}

.staging-gate-card {
  width: min(100%, 540px);
  padding: clamp(30px, 6vw, 52px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-large);
  background: rgba(255, 248, 236, 0.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.staging-gate-logo {
  display: block;
  width: 86px;
  height: 86px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(16, 42, 35, 0.12));
}

.staging-gate-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--font-meta);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.staging-gate-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 6vw, 42px);
  line-height: 1.25;
}

.staging-gate-copy {
  max-width: 430px;
  margin: 18px auto 30px;
  color: var(--muted);
  line-height: 1.75;
}

.staging-gate-form {
  display: grid;
  gap: 10px;
  text-align: left;
}

.staging-gate-form label {
  color: var(--ink);
  font-size: var(--font-ui);
  font-weight: 700;
}

.staging-gate-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: #fffdf7;
  color: var(--ink);
  padding: 10px 14px;
}

.staging-gate-form input:focus-visible {
  border-color: var(--ink);
}

.staging-gate-error {
  margin: 0;
  color: var(--warning);
  font-size: var(--font-meta);
  font-weight: 700;
}

.staging-gate-submit,
.staging-gate-home {
  width: 100%;
}

.staging-gate-submit {
  margin-top: 8px;
}

.staging-gate-home {
  margin-top: 12px;
}

@media (max-width: 520px) {
  .staging-gate-card {
    padding: 30px 22px;
  }

  .staging-gate-copy {
    font-size: var(--font-body-sm);
  }
}
