/* Final cascade for the compact Lede editorial composition. */

@font-face {
  font-family: "Ma Shan Zheng";
  src: url("/fonts/MaShanZheng-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --header-height: 54px;
  --nav-height: 68px;
  --sheet-width: min(calc(100% - 20px), var(--max));
  --display-cn: "Ma Shan Zheng", "STXingkai", "KaiTi", cursive;
  --reader-size: 1rem;
  --reader-title-size: clamp(2rem, 3.4vw, 3.15rem);
  --reader-support-size: .9rem;
}

html[data-font="compact"] {
  --reader-size: .88rem;
  --reader-title-size: clamp(1.75rem, 3vw, 2.7rem);
  --reader-support-size: .8rem;
}

html[data-font="large"] {
  --reader-size: 1.16rem;
  --reader-title-size: clamp(2.2rem, 3.9vw, 3.55rem);
  --reader-support-size: 1rem;
}

body { background: var(--ground); }

.app-header,
body[data-surface="today"] .app-header {
  position: relative;
  inset: auto;
  width: var(--sheet-width);
  height: var(--header-height);
  margin: 18px auto 0;
  padding: 0 30px;
  transform: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-bottom-color: var(--line);
}

.header-brand,
.header-tools,
.header-tool,
.header-status { display: flex; align-items: center; }
.header-brand { min-width: 0; gap: 18px; }
.wordmark { gap: 9px; color: var(--ink); font-weight: 400; white-space: nowrap; }
.wordmark-cn { display: none; }
.wordmark-en { display: inline; font: 400 1.65rem/1 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.header-divider { width: 1px; height: 28px; background: var(--line); }
.header-tagline { color: var(--muted); font: 400 1rem/1 Georgia, "STSong", "SimSun", serif; letter-spacing: .035em; white-space: nowrap; }
.header-tools { gap: 17px; }
.header-tool { display: flex; align-items: center; gap: 8px; padding: 7px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.header-tool svg { width: 22px; height: 22px; }
.header-tool span { font: 400 .95rem/1 Georgia, "STSong", "SimSun", serif; }
.header-tool:hover { color: var(--ink); }
.header-tool-rule { width: 1px; height: 28px; background: var(--line); }
.header-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--plum); color: var(--color-inverse); font: 400 1.1rem/1 Georgia, serif; cursor: pointer; }
.header-menu { width: 24px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.header-menu svg { width: 20px; height: 20px; }
.header-timer { display: none; }
.header-timer[hidden] { display: none; }

body[data-surface="today"] #app,
#app { width: var(--sheet-width); min-height: calc(100dvh - 18px - var(--header-height)); margin: 0 auto; padding: 0 0 var(--nav-height); }
.page { animation: margin-sheet-arrival 360ms var(--ease-out) both; }

.today-page,
.discover-page,
.learn-page,
.me-page,
.settings-page {
  min-height: calc(100dvh - 18px - var(--header-height) - var(--nav-height));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-block: 0;
  background: var(--paper);
}

.bottom-nav { left: 50%; bottom: 0; width: var(--sheet-width); height: var(--nav-height); min-height: var(--nav-height); transform: translateX(-50%); background: var(--paper); border: 1px solid var(--line-strong); }
.bottom-nav a { min-height: calc(var(--nav-height) - 2px); flex-direction: row; gap: 10px; color: var(--muted); font: 400 .92rem/1 Georgia, "STSong", "SimSun", serif; }
.bottom-nav svg { width: 24px; height: 24px; stroke-width: 1.65; }
.bottom-nav a::after { inset: auto 29% 0; height: 3px; background: var(--accent) !important; transform-origin: center; }
.bottom-nav a.active { color: var(--accent); background: transparent; }

.today-issue,
.editorial-shell { grid-template-columns: clamp(218px, 16.5vw, 250px) minmax(0, 1fr); min-height: calc(100dvh - 18px - var(--header-height) - var(--nav-height)); }

.margin-rail { align-items: stretch; gap: 0; padding: 34px 28px 28px 38px; background: var(--paper); border-right: 1px solid var(--accent); }
.margin-rail::before,
.margin-rail::after { display: none; }
.rail-date { align-items: flex-start; padding-bottom: 18px; text-align: left; }
.rail-date strong { color: var(--primary); font: 400 2.9rem/.86 Georgia, serif; }
.rail-date span { margin-top: 5px; color: var(--primary); font: 400 .86rem/1 Georgia, serif; letter-spacing: .01em; text-transform: none; }
.rail-date span:last-child { margin-top: 12px; color: var(--ink); }
.rail-date::after { content: ""; width: 72px; height: 1px; margin-top: 10px; background: var(--primary); opacity: .65; }
.rail-mobile-issue,
.rail-mobile-bookmark { display: none; }
.rail-note { padding: 12px 0 18px; border-bottom: 1px solid var(--line); }
.rail-note > span,
.rail-section-title { color: var(--primary); font: 600 1rem/1 Georgia, "STSong", "SimSun", serif; letter-spacing: .04em; }
.rail-note p { margin-top: 10px; color: var(--muted); font: 400 .76rem/1.55 Georgia, "STSong", "SimSun", serif; }
.rail-facts-wrap { display: block; padding: 15px 0 18px; border-bottom: 1px solid var(--line); }
.rail-facts { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; border: 0; }
.rail-facts div { grid-template-columns: 54px minmax(0, 1fr); }
.rail-facts dt,
.rail-facts dd { color: var(--muted); font: 400 .78rem/1.35 Georgia, "STSong", "SimSun", serif; }
.rail-facts dd { min-width: 0; margin: 0; text-align: right; }
.source-stamp { display: inline-block; max-width: 100%; padding: 3px 5px; border: 1px solid var(--line); font-size: .62rem; line-height: 1.3; text-align: left; }
.rail-timer { display: flex; align-items: flex-start; margin-top: auto; padding-top: 16px; }
.rail-timer > span { margin: 0; color: var(--primary); font: 600 .88rem/1.3 Georgia, "STSong", serif; letter-spacing: .03em; text-transform: none; }
.rail-timer > div { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.rail-timer i { position: relative; width: 38px; height: 38px; border: 2px solid var(--accent); border-radius: 50%; }
.rail-timer i::before,
.rail-timer i::after { content: ""; position: absolute; left: 17px; top: 7px; width: 1px; height: 11px; background: var(--accent); transform-origin: bottom; }
.rail-timer i::after { transform: rotate(90deg); }
.rail-timer strong { margin: 0; color: var(--ink); font: 400 1.55rem/1 Georgia, serif; }
.rail-timer small { margin: 4px 0 0 54px; color: var(--muted); font: 400 .72rem/1 Georgia, "STSong", serif; }

.issue-content,
.editorial-content { min-width: 0; padding: 34px clamp(38px, 4.5vw, 66px) 24px; }
.issue-lead { position: relative; padding: 2px 92px 14px 0; border: 0; }
.issue-lead::after { left: 12px; right: auto; bottom: 11px; width: 118px; height: 2px; background: var(--plum); transform: rotate(-3deg); }
.issue-lead h1 { max-width: 960px; margin: 0; color: var(--plum); font: 400 clamp(2rem, 2.7vw, 2.55rem)/1.08 var(--display-cn); letter-spacing: 0; text-wrap: pretty; }
.issue-folio { position: absolute; top: 6px; right: 0; color: var(--primary); font: 400 1.15rem/1 Georgia, serif; }
.issue-folio::after { content: ""; display: block; width: 32px; height: 1px; margin-top: 8px; background: var(--primary); }
.issue-story { display: block; padding: 18px 0 16px; }
.issue-story h2 { max-width: none; margin: 0; color: #252524; font: 400 clamp(2.4rem, 3.7vw, 3.55rem)/1 Georgia, "Times New Roman", serif; letter-spacing: -.035em; text-wrap: balance; }
.story-subtitle { max-width: none; margin: 8px 0 0; color: var(--muted); font: 400 clamp(1rem, 1.3vw, 1.18rem)/1.35 Georgia, serif; }
.story-meta { display: flex; align-items: center; gap: 0; margin-top: 18px; color: var(--primary); font: 600 .74rem/1.2 Georgia, "STSong", serif; letter-spacing: .01em; }
.story-meta span { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-right: 1px solid var(--line); white-space: nowrap; }
.story-meta span:first-child { padding-left: 0; }
.story-meta span:last-child { max-width: 42%; border: 0; overflow: hidden; text-overflow: ellipsis; }
.story-meta svg { width: 21px; height: 21px; color: var(--primary); }
.story-value-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: end; margin-top: 18px; }
.story-value { max-width: 72ch; padding: 0; border: 0; }
.story-value h3 { color: var(--plum); font: 600 1rem/1 Georgia, "STSong", serif; }
.story-value p { margin-top: 7px; color: var(--muted); font: 400 .78rem/1.5 Georgia, "STSong", serif; }
.issue-cta { min-height: 52px; padding: 0 20px; border: 0; background: var(--accent); color: #fffaf3; font: 600 .92rem/1 Georgia, "STSong", serif; }

.today-page .next-programs { margin: 0; padding: 10px 0 0; border-top: 1px solid var(--primary); background: transparent; }
.today-page .section-title-row { margin: 0 0 7px; }
.today-page .section-title-row h2 { margin: 0; color: var(--primary); font: 600 1rem/1 Georgia, "STSong", serif; }
.today-page .program-list { border: 0; }
.today-page .program-list article { min-height: 34px; grid-template-columns: 42px minmax(0, 1fr) 140px 56px 62px 24px; gap: 10px; padding: 0; border-bottom: 1px solid var(--line); }
.today-page .program-list article:last-child { border-bottom: 0; }
.today-page .program-list .list-number { color: var(--primary); font: 400 .85rem/1 Georgia, serif; }
.today-page .program-list strong { overflow: hidden; color: var(--ink); font: 400 .88rem/1.2 Georgia, serif; text-overflow: ellipsis; white-space: nowrap; }
.today-page .program-list small { margin: 0; color: var(--primary); font: 400 .72rem/1 Georgia, "STSong", serif; }
.today-page .program-list button { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--primary); cursor: pointer; }
.today-page .program-list button svg,
.list-bookmark svg { width: 19px; height: 19px; }

.editorial-lead { min-height: 0; padding: 0 92px 14px 0; border-bottom: 1px solid var(--line); }
.editorial-lead::after { right: 0; width: 74px; height: 2px; background: var(--plum); }
.editorial-lead::before { position: absolute; top: 8px; right: 0; color: var(--primary); font: 400 .78rem/1 Georgia, serif; letter-spacing: .08em; }
.discover-lead::before { content: "DISCOVER 02"; }
.learn-lead::before { content: "LEARN 03"; }
.editorial-lead h1 { max-width: 930px; margin: 0; color: var(--plum); font: 400 clamp(2rem, 2.7vw, 2.55rem)/1.08 var(--display-cn); letter-spacing: 0; }
.editorial-lead p { max-width: 66ch; margin-top: 8px; color: var(--muted); font: 400 .78rem/1.5 Georgia, "STSong", serif; }
.section-margin-rail .rail-date { padding-bottom: 14px; }
.section-margin-rail .rail-date strong { font-size: 2.7rem; }
.section-margin-rail .rail-date span { font: 400 .72rem/1 var(--display); letter-spacing: .08em; }
.section-margin-rail .rail-issue { align-items: flex-start; margin: 4px 0 14px; padding: 12px 0; border-block: 1px solid var(--line); }
.section-margin-rail .rail-issue span { margin: 0; color: var(--primary); font: 600 .75rem/1.3 Georgia, "STSong", serif; letter-spacing: .04em; text-transform: none; }
.section-margin-rail .rail-issue strong { margin-top: 6px; color: var(--primary); font: 400 1.25rem/1.05 Georgia, serif; }
.section-margin-rail .rail-facts { display: grid; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

.editorial-filter { margin-top: 18px; border-color: var(--line); }
.editorial-filter button { background: var(--paper); font-family: Georgia, "STSong", serif; }
.editorial-filter button[aria-pressed="true"] { background: var(--primary); }
.editorial-catalogue { border-color: var(--line); }
.catalogue-heading,
.catalogue-feature,
.catalogue-list article { font-family: Georgia, "STSong", serif; }
.catalogue-feature { background: color-mix(in srgb, var(--paper) 80%, var(--color-fog)); }
.catalogue-heading { padding: 18px 20px 12px; }
.catalogue-heading h2 { font-size: 1.45rem; }
.catalogue-feature { gap: 16px; padding: 18px 20px; }
.catalogue-feature h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 2.8vw, 2.55rem); }
.catalogue-feature > button { min-height: 48px; }
.catalogue-list article { min-height: 66px; padding: 12px 20px; }

.learn-content .learning-directory { margin-top: 16px; }
.learning-directory { border-color: var(--primary); }
.learning-directory a { min-height: 58px; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 16px; padding: 10px 18px; font-family: Georgia, "STSong", serif; }
.learning-directory span { color: var(--primary); font: 600 .76rem/1 Georgia, "STSong", serif; }
.learning-directory strong { font-size: .88rem; }
.learn-content .next-study-action { min-height: 64px; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 16px; margin-top: 14px; padding: 10px 18px; border-color: var(--accent); font-family: Georgia, "STSong", serif; }
.next-study-action > span { font-size: .74rem; }
.next-study-action strong { font-size: .96rem; }
.next-study-action small { font-size: .72rem; }
.compact-calendar { margin-top: 16px; border-color: var(--primary); }
.compact-calendar-heading { padding: 10px 16px; background: color-mix(in srgb, var(--paper) 82%, var(--color-fog)); }
.compact-calendar-heading h2 { color: var(--plum); font-family: var(--display-cn); }
.compact-calendar-heading h2 { font-size: 1.25rem; }
.calendar-month-controls { min-height: 38px; grid-template-columns: 38px minmax(112px, auto) 38px; }
.calendar-month-controls strong { font-size: .86rem; }
.compact-calendar-grid { padding: 8px 14px 2px; }
.compact-calendar .calendar-weekdays span { min-height: 24px; font-size: .68rem; }
.compact-calendar .calendar-grid > * { min-height: 32px; }
.compact-calendar .calendar-day { padding: 4px; }
.compact-calendar .calendar-day-number { font-size: .68rem; }
.compact-calendar-action { min-height: 48px; padding: 6px 14px; }
.compact-calendar-action .checkin-button,
.compact-calendar-action .secondary-button { min-height: 38px; }
.learning-overview { margin-top: 16px; border: 1px solid var(--primary); }
.learn-content .learning-ticket { margin: 0; border: 0; border-bottom: 1px solid var(--primary); }
.learn-content .learning-ticket > div { min-height: 64px; padding: 10px 14px; }
.learn-content .learning-ticket span { font-size: .7rem; }
.learn-content .learning-ticket strong { font: 400 1.55rem/1 Georgia, serif; }
.learn-content .study-clock { border: 0; background: color-mix(in srgb, var(--paper) 82%, var(--color-fog)); }
.learn-content .study-clock > div,
.learn-content .study-clock > button { min-height: 58px; padding: 10px 14px; }
.learn-content .study-clock small { margin-bottom: 5px; font-size: .66rem; }
.learn-content .study-clock strong { font-size: 1.25rem; }

.profile-summary { min-height: 0; padding: 0 0 18px; }
.profile-summary .profile-avatar { width: 68px; height: 68px; font-size: 2rem; }
.profile-summary .profile-avatar { background: var(--plum); }
.profile-copy h1 { color: var(--plum); font: 400 clamp(2rem, 2.7vw, 2.55rem)/1 var(--display-cn); }
.profile-copy p,
.profile-copy span { font-family: Georgia, "STSong", serif; }
.settings-entry { align-self: start; border-color: var(--primary); font-family: Georgia, "STSong", serif; }
.learning-archive { margin-top: 18px; border-color: var(--primary); }
.learning-archive > header { background: color-mix(in srgb, var(--paper) 82%, var(--color-fog)); }
.learning-archive > header { padding: 16px 20px; }
.learning-archive h2 { color: var(--plum); font-size: 1.4rem; }
.archive-metrics > div { min-height: 84px; padding: 12px 14px; }
.archive-metrics strong { font-size: 1.7rem; }
.archive-note { padding: 14px 18px; }

.settings-content .settings-lead + .settings-section { margin-top: 18px; }
.settings-lead { padding-bottom: 16px; }
.settings-lead h1 { font-family: var(--display-cn); font-size: 2rem; }
.settings-content .settings-heading { padding: 14px 18px 10px; }
.settings-content .settings-heading h2 { font-size: 1.2rem; }
.settings-content .setting-row { min-height: 74px; padding: 12px 18px; }
.settings-content .skin-grid { padding: 0 18px 18px; }
.reader-size-preview { font: 400 var(--reader-size)/1.45 Georgia, serif; }

.reader-header { padding: 22px 30px; }
.reader-header h1 { max-width: 920px; font: 400 var(--reader-title-size)/1 Georgia, "Times New Roman", serif; letter-spacing: -.03em; }
.reader-subtitle { margin-top: 8px; font-size: var(--reader-support-size); }
.reader-meta { margin-top: 8px; font-size: .72rem; }
.pre-read-card { padding: 18px 30px; }
.pre-read-card > p { margin-block: 8px; font-size: var(--reader-support-size); line-height: 1.5; }
.article-paper { padding: 22px 30px 38px; }
.article-paragraph { padding: 18px 0 20px 40px; }
.article-paragraph > p { font-size: var(--reader-size); line-height: 1.72; }
.paragraph-tools { margin-top: 10px; }
.coach-body { font-size: var(--reader-support-size); }
.help-card,
.word-card { padding: 12px; }
.completion-zone { padding: 24px 30px; }

.welcome-copy h1,
.choice-stage > h1 { font-family: var(--display-cn); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.08; }
.topline { padding: 24px 30px; }
.page-heading h1 { font-family: var(--display-cn); font-size: clamp(1.9rem, 2.7vw, 2.45rem); line-height: 1.08; letter-spacing: 0; }

@media (max-width: 900px) {
  :root { --header-height: 50px; --nav-height: 64px; --sheet-width: 100%; }
  .app-header,
  body[data-surface="today"] .app-header { position: relative; inset: auto; width: 100%; margin: 0; padding: 0 14px; transform: none; border: 0; border-bottom: 1px solid var(--line-strong); }
  .header-brand { gap: 0; }
  .wordmark-cn { display: none; }
  .wordmark-en { font-size: 1.35rem; }
  .header-divider,
  .header-tagline,
  .header-tools { display: none; }
  .header-timer:not([hidden]) { min-height: 0; display: flex; padding: 0; border: 0; background: transparent; color: var(--ink); }
  .header-timer svg { width: 18px; height: 18px; }
  .header-timer > span { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .header-timer strong { font: 400 .82rem/1 Georgia, serif; }
  .header-timer small { color: var(--muted); font: 400 .58rem/1 var(--ui); }
  body[data-surface="today"] #app,
  #app { width: 100%; min-height: calc(100dvh - var(--header-height)); padding: 0 0 var(--nav-height); }
  .today-page,
  .discover-page,
  .learn-page,
  .me-page,
  .settings-page { min-height: calc(100dvh - var(--header-height) - var(--nav-height)); border: 0; }
  .bottom-nav { width: 100%; height: var(--nav-height); min-height: var(--nav-height); border-inline: 0; }
  .bottom-nav a { min-height: var(--nav-height); flex-direction: row; gap: 6px; font: 700 .78rem/1 var(--ui); }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav a::after { inset-inline: 25%; height: 3px; }
  .today-issue,
  .editorial-shell { grid-template-columns: 58px minmax(0, 1fr); min-height: calc(100dvh - var(--header-height) - var(--nav-height)); }
  .margin-rail { align-items: center; padding: 16px 6px 20px; }
  .rail-date { align-items: center; width: 100%; padding-bottom: 12px; text-align: center; }
  .rail-date strong { font-size: 2.15rem; }
  .rail-date span { margin-top: 4px; font-size: .58rem; }
  .rail-date span:last-child { margin-top: 8px; font-size: .58rem; }
  .rail-date::after { width: 34px; margin-top: 8px; }
  .rail-mobile-issue { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 12px; color: var(--primary); }
  .rail-mobile-issue span { font: 600 .52rem/1 var(--display); letter-spacing: .08em; }
  .rail-mobile-issue strong { font: 400 1.2rem/1 Georgia, serif; }
  .rail-mobile-bookmark { display: block; margin-top: auto; color: var(--primary); }
  .rail-mobile-bookmark svg { width: 24px; height: 24px; }
  .today-page .rail-note,
  .today-page .rail-facts-wrap,
  .today-page .rail-timer { display: none; }
  .issue-content,
  .editorial-content { padding: 18px 14px 26px 16px; }
  .issue-lead { padding: 0 0 16px; }
  .issue-lead h1 { max-width: none; font-size: clamp(1.7rem, 7.2vw, 2rem); line-height: 1.08; }
  .issue-lead::after { left: 4px; bottom: 8px; width: 58px; }
  .issue-folio { display: none; }
  .issue-story { padding: 18px 0 16px; }
  .issue-story h2 { font-size: clamp(2rem, 9.5vw, 2.7rem); line-height: 1; text-wrap: pretty; }
  .story-subtitle { margin-top: 9px; font-size: .86rem; }
  .story-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; margin-top: 16px; }
  .story-meta span { padding: 0 8px; border-right: 0; font-size: .64rem; white-space: normal; }
  .story-meta span:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .story-meta span:last-child { grid-column: 1 / 3; max-width: 100%; padding: 9px 0 0; border-top: 1px solid var(--line); }
  .story-meta svg { width: 17px; height: 17px; }
  .story-value-row { display: block; margin-top: 16px; }
  .story-value h3 { font-size: .82rem; }
  .story-value p { font-size: .72rem; }
  .issue-cta { width: 100%; min-height: 50px; margin-top: 14px; font-size: .86rem; }
  .today-page .next-programs { padding-top: 10px; }
  .today-page .section-title-row h2 { font-size: .9rem; }
  .today-page .program-list article { min-height: 44px; grid-template-columns: 28px minmax(0, 1fr) 20px; gap: 7px; }
  .today-page .program-list article > small { display: none; }
  .today-page .program-list strong { font-size: .76rem; white-space: normal; }
  .today-page .program-list button,
  .today-page .program-list .list-bookmark { grid-column: 3; }
  .section-margin-rail .rail-date { padding-bottom: 10px; }
  .section-margin-rail .rail-date strong { font-size: 2rem; }
  .section-margin-rail .rail-date span { font-size: .48rem; text-align: center; }
  .section-margin-rail .rail-issue { align-items: center; width: 100%; margin: 0; padding: 10px 0; text-align: center; }
  .section-margin-rail .rail-issue span { font-size: .52rem; }
  .section-margin-rail .rail-issue strong { font-size: .82rem; overflow-wrap: anywhere; }
  .section-margin-rail .rail-note,
  .section-margin-rail .rail-facts { display: none; }
  .editorial-lead { min-height: 0; padding: 0 0 14px; }
  .editorial-lead::before { display: none; }
  .editorial-lead h1 { font-size: clamp(1.65rem, 7.2vw, 1.95rem); line-height: 1.08; }
  .editorial-lead p { margin-top: 7px; font-size: .7rem; }
  .editorial-filter { margin-top: 14px; }
  .editorial-filter button { min-height: 40px; }
  .learn-content .learning-directory { margin-top: 14px; }
  .learning-directory a { min-height: 58px; grid-template-columns: 1fr auto; gap: 5px 10px; padding: 9px 10px; }
  .learning-directory a span { grid-column: 1 / 3; }
  .learning-directory strong { font-size: .76rem; line-height: 1.35; }
  .learn-content .next-study-action { min-height: 66px; grid-template-columns: 1fr auto; gap: 5px 10px; margin-top: 12px; padding: 10px 12px; }
  .next-study-action > span { grid-column: 1 / 3; }
  .compact-calendar { margin-top: 14px; }
  .compact-calendar-heading { grid-template-columns: 1fr auto; gap: 8px; padding: 9px 10px; }
  .compact-calendar-heading p { display: none; }
  .calendar-month-controls { width: auto; grid-template-columns: 32px minmax(88px, auto) 32px; min-height: 34px; }
  .compact-calendar-grid { padding: 7px 6px 2px; }
  .compact-calendar .calendar-grid > * { min-height: 30px; }
  .compact-calendar-action { display: flex; min-height: 44px; padding: 6px 8px; }
  .compact-calendar-action > span { display: none; }
  .compact-calendar-action .checkin-button,
  .compact-calendar-action .secondary-button { width: 100%; min-height: 36px; }
  .learning-overview { margin-top: 14px; }
  .learn-content .learning-ticket { grid-template-columns: repeat(2, 1fr); }
  .learn-content .learning-ticket > div { min-height: 68px; }
  .learn-content .learning-ticket > div:nth-child(2) { border-right: 0; }
  .learn-content .learning-ticket > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .learn-content .study-clock { grid-template-columns: repeat(2, 1fr); }
  .learn-content .study-clock > div,
  .learn-content .study-clock > button { min-height: 64px; }
  .profile-summary { grid-template-columns: 50px minmax(0, 1fr) 40px; gap: 10px; min-height: 0; padding-bottom: 16px; }
  .profile-summary .profile-avatar { width: 50px; height: 50px; font-size: 1.45rem; }
  .profile-copy h1 { font-size: 1.75rem; }
  .settings-entry { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .settings-entry span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .learning-archive { margin-top: 14px; }
  .learning-archive > header { padding: 12px 14px; }
  .learning-archive h2 { font-size: 1.2rem; }
  .archive-metrics > div { min-height: 72px; padding: 10px; }
  .archive-metrics strong { font-size: 1.45rem; }
  .archive-note { padding: 12px; }
  .settings-content .setting-row { min-height: 66px; padding: 10px 12px; }
  .reader-header { padding: 18px 16px; }
  .reader-actions { gap: 8px; }
  .reader-actions > * { min-height: 42px; }
  .pre-read-card { padding: 14px 16px; }
  .article-paper { padding: 16px 14px 28px; }
  .article-paragraph { padding: 14px 0 16px 28px; }
  .completion-zone { padding: 20px 16px; }
}

@media (max-width: 420px) {
  .catalogue-feature { grid-template-columns: 1fr; }
  .catalogue-feature > button { grid-column: 1; }
  .catalogue-feature h3 { font-size: 1.8rem; }
  .archive-metrics { grid-template-columns: repeat(2, 1fr); }
  .archive-note { grid-template-columns: 1fr; }
}

.verification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.verification-row .secondary-button {
  min-width: 118px;
  min-height: 48px;
  white-space: nowrap;
}

.method-switch button:disabled,
.onboarding-primary:disabled,
.verification-row button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

@media (max-width: 520px) {
  .verification-row { grid-template-columns: 1fr; }
  .verification-row .secondary-button { width: 100%; }
  .onboarding-welcome .onboarding-progress {
    position: static;
    width: 100%;
    height: 5px;
  }
}
