:root{color-scheme:light;--paper:#fbfaf6;--surface:#fffdf8;--ink:#1d1c1a;--text:#28231f;--muted:#686058;--line:rgba(222,216,207,.76);--soft:#f7f3ed;--pink:#f7dbea;--blue:#dce9fa;--green:#e3eddb;--shadow:0 12px 36px rgba(76,57,35,.045);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-size:16px}button,input,select,textarea{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{min-height:36px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:rgba(255,253,248,.82);color:var(--ink);font-size:13px;cursor:pointer;transition:background .15s,border-color .15s}button:hover{background:#f1ece5;border-color:#c9bdaf}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible{outline:2px solid #9c6a38;outline-offset:3px}input:focus,select:focus,textarea:focus{outline:2px solid #b89770;outline-offset:2px}a{color:inherit;text-decoration:none}a:hover{color:#8c633a}.primary,.active,button[aria-pressed=true]{background:var(--ink);color:var(--surface);border-color:var(--ink)}.primary:hover,.active:hover{background:#3e3830;color:var(--surface)}.muted{color:var(--muted)}.small,small{font-size:12px;line-height:1.7}.eyebrow{color:#897c6a;font-size:12px;letter-spacing:.1em;margin-bottom:12px}.full{width:100%}h1,h2,h3,h4,p{margin-top:0}h2{font-size:26px;line-height:1.4}h3{font-size:20px;line-height:1.5}p{line-height:1.8}input,select,textarea{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:12px;min-width:0}select{font-size:13px;max-width:100%}input[type=search]{min-height:44px}.panel{padding:26px;background:rgba(255,254,250,.88);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow)}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.chips{display:flex;flex-wrap:wrap;gap:6px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading h2,.section-heading h3{margin-bottom:0}.pill-link{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 15px;border:1px solid var(--line);border-radius:999px;font-size:13px;white-space:nowrap;background:var(--surface)}.pill-link.primary{background:var(--ink);color:var(--surface)}.empty{text-align:center;padding:50px 20px;line-height:1.8}.empty h3{font-size:20px}.text-action{border:0;background:transparent;padding-left:0;font-size:12px;color:var(--muted)}[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.soft-editorial {
  --paper: #F2EEDF;
  --surface: #FAF7EF;
  --ink: #2A241B;
  --text: #2A241B;
  --muted: #5C5345;
  --line: rgba(42,36,27,.18);
  --soft: #ECE6D2;
  --pink: #EED4DF;
  --blue: #E2DBED;
  --green: #DAE4D2;
  --word-highlight: #D6DD63;
  --word-highlight-rgb: 214,221,99;
  --shadow: none;
  --display: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--paper);
}
.soft-editorial ::selection { background: #D6DD63; color: #2A241B; }
.soft-editorial button:focus-visible, .soft-editorial a:focus-visible { outline: 3px solid #655179; outline-offset: 4px; }
.preview-note { min-height: 36px; padding: 8px 30px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); background: #ECE6D2; }
.preview-note a { text-decoration: underline; text-underline-offset: 3px; }
.editorial-shell { max-width: 1240px; padding: 0 44px 60px; }
.editorial-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.editorial-brand { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; letter-spacing: .04em; }
.brand-symbol { display: grid; place-items: center; width: 36px; height: 42px; border: 1px solid var(--ink); border-radius: 12px 12px 4px 4px; font-family: var(--display); font-weight: 400; font-size: 23px; }
.editorial-header nav { display: flex; align-items: center; gap: 28px; font-size: 13px; }
.editorial-header nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.editorial-header nav a[aria-current=page] { border-bottom-color: var(--ink); }
.editorial-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 72px; padding: 58px 0 64px; align-items: center; }
.issue-label { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.hero-copy h1 { font-family: var(--display); font-size: clamp(38px,4.5vw,60px); font-weight: 500; line-height: 1.45; letter-spacing: -.035em; margin: 0 0 22px; }
.hero-description { font-size: 14px; line-height: 1.95; color: var(--muted); margin-bottom: 26px; }
.editorial-start { display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--surface); border-radius: 50px; padding: 14px 27px; font-size: 14px; }
.editorial-start:hover { background: #443B2D; color: var(--surface); }
.opening-note { background: #B7C7A8; border-radius: 80px 28px 28px 28px; padding: 36px; min-height: 278px; display: flex; flex-direction: column; justify-content: space-between; }
.note-label { font-size: 12px; }
.opening-quote { font-family: inherit; font-size: var(--reader-font,19px); line-height: 2.05; margin: 18px 0; color: var(--ink); }
.sample-word { border-bottom: 2px solid rgba(42,36,27,.42); padding-bottom: 1px; }
.sample-gloss { font-size: .9em; color: #403D30; letter-spacing: .01em; }
.note-source { font-size: 11px; color: #403D30; }
.collection-heading { border-top: 1px solid var(--line); padding: 25px 0 24px; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.collection-heading h2 { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 500; }
.collection-heading>span { font-size: 12px; color: var(--muted); }
.editorial-stories { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.story-cover { border-radius: 28px; padding: 26px; display: block; border: 1px solid transparent; }
.story-cover:hover { color: var(--ink); border-color: #756653; }
.story-cover { background: #E1A4C2; }
.story-cover[data-cover-tone="2"] { background: #D6DD63; }
.story-cover[data-cover-tone="3"] { background: #E8C9B6; }
.story-cover[data-cover-tone="4"] { background: #BCCDB2; }
.story-cover[data-cover-tone="5"] { background: #CCBFDC; }
.story-cover[data-cover-tone="6"] { background: #BBD1DD; }
.story-cover[data-cover-tone="7"] { background: #E7D69A; }
.story-cover[data-cover-tone="8"] { background: #AFCCC5; }
.story-cover[data-cover-tone="9"] { background: #DBB5AC; }
.story-cover[data-cover-tone="10"] { background: #CDCFB5; }
.story-cover[data-cover-tone="11"] { background: #C5C6DD; }
.story-cover[data-cover-tone="12"] { background: #DFC2CD; }
.story-cover article { display: flex; flex-direction: column; height: 100%; }
.cover-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; margin-bottom: 30px; }
.story-cover h3 { font-family: var(--display); font-weight: 600; font-size: 25px; line-height: 1.65; margin: 0 0 18px; min-height: 124px; }
.cover-excerpt { font-size: 13px; line-height: 1.95; margin: 0 0 30px; flex: 1; }
.cover-bottom { padding-top: 18px; border-top: 1px solid rgba(42,36,27,.23); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; font-size: 11px; }
.cover-read { font-size: 14px; font-weight: 600; }
.cover-progress { font-size: 11px; margin-top: 12px; }
.reading-tip { margin: 32px 0 0; padding: 26px 30px; background: rgba(255,255,255,.45); border-radius: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.reading-tip h2 { font-family: var(--display); font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.reading-tip p { font-size: 12px; color: var(--muted); margin: 0; }
.tip-action { flex-shrink: 0; background: transparent; min-height: 44px; padding: 10px 20px; border-color: var(--ink); }
.editorial-footer { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.back-to-collection { display: block; max-width: 820px; margin: 26px auto 16px; font-size: 12px; color: var(--muted); }
.soft-editorial .reading-column { max-width: 820px; }
.soft-editorial .reading-column>.modebar { position: static; margin: 0 auto 26px; width: max-content; background: #E9E3D4; box-shadow: none; border: 0; padding: 5px; }
.soft-editorial .modebar button { min-width: 112px; min-height: 44px; height: auto; color: var(--muted); font-size: 13px; }
.soft-editorial .modebar button.active { background: var(--ink); color: var(--surface); box-shadow: none; }
.soft-editorial .chapter-panel { border: 0; background: transparent; padding: 8px 0 20px; box-shadow: none; text-align: center; }
.soft-editorial .chapter-panel .reading-label { font-size: 12px; margin-bottom: 16px; color: var(--muted); }
.soft-editorial .chapter-panel h2 { font-family: var(--display); font-size: clamp(25px,3vw,36px); font-weight: 600; line-height: 1.65; margin-bottom: 16px; }
.soft-editorial .reader-tools { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 14px 0; gap: 16px; margin: 4px 0 0; }
.soft-editorial .reader-tools button { min-height: 38px; height: auto; }
.soft-editorial .reader-card { padding: 36px 42px; border: 0; border-radius: 0 0 28px 28px; background: rgba(255,255,255,.38); font-size: var(--reader-font,19px); line-height: 2.2; }
.soft-editorial .reader-card p { line-height: 2.2; margin-bottom: 20px; }
.soft-editorial .story-section { color: var(--muted); margin-top: 34px; }
.soft-editorial .inline-word,
.soft-editorial .inline-word.verb,
.soft-editorial .inline-word.adjective {
  background: linear-gradient(rgba(255,255,255,.18),rgba(255,255,255,.04) 16%,transparent 30%),linear-gradient(rgba(var(--word-highlight-rgb),.82),rgba(var(--word-highlight-rgb),.74));
  border: 1px solid rgba(var(--word-highlight-rgb),.28);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 590;
  line-height: 1.45;
  padding: 0 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(var(--word-highlight-rgb),.04);
}
.soft-editorial .inline-word .gloss { font-size: .9em; font-weight: 400; }
.soft-editorial .inline-word:hover,
.soft-editorial .inline-word.verb:hover,
.soft-editorial .inline-word.adjective:hover {
  background: linear-gradient(rgba(255,255,255,.2),rgba(255,255,255,.05) 16%,transparent 30%),linear-gradient(rgba(var(--word-highlight-rgb),.86),rgba(var(--word-highlight-rgb),.78));
  border-color: rgba(var(--word-highlight-rgb),.42);
}
.soft-editorial .chapter-word-review { border: 0; padding: 28px 0; background: transparent; }
.soft-editorial .chapter-word-review .section-heading h3 { font-family: var(--display); font-weight: 500; font-size: 25px; }
.soft-editorial .review-word-card { background: rgba(255,255,255,.5); border: 0; border-radius: 24px; padding: 24px; }
.soft-editorial .review-word-card h4 { font: 500 29px/1.2 Georgia,serif; }
.soft-editorial .floating-tools { width: min(1070px,calc(100% - 32px)); }
.soft-editorial .floating-tools button { min-height: 46px; box-shadow: 0 4px 14px #2A241B15; }
.soft-editorial .floating-tools button:last-child { background: #D6DD63; color: var(--ink); border-color: #D6DD63; }
.soft-editorial .word-modal { width: min(510px,calc(100vw - 28px)); padding: 32px; border: 0; border-radius: 30px; background: #FAF7EF; }
.soft-editorial .word-modal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: #B7C7A8; }
.soft-editorial .word-modal::backdrop { background: rgba(42,36,27,.34); backdrop-filter: blur(5px); }
.soft-editorial .word-modal .word-counter { color: var(--muted); margin: 5px 0 18px; }
.soft-editorial .word-modal .word-title { font: 500 48px/1.1 Georgia,serif!important; letter-spacing: -.02em; margin-bottom: 14px; }
.soft-editorial .word-state { background: #E7ECDD; color: #37462D; border: 0; padding: 12px; }
.soft-editorial .word-origin { color: var(--muted); }
.soft-editorial .word-modal .two-columns { gap: 10px; }
.soft-editorial .word-modal .two-columns button { height: auto; min-height: 44px; }
.soft-editorial .word-modal .full { min-height: 44px; height: auto; }
.soft-editorial .story-context { background: #EEE8D8; border: 0; padding: 20px; border-radius: 20px; }
.soft-editorial .story-context .eyebrow { color: var(--muted); letter-spacing: 0; }
.soft-editorial .story-context p { font-size: 15px; line-height: 1.95; color: var(--ink); }
.soft-editorial .modal-close { background: #ECE6D2; border: 0; min-width: 36px; min-height: 36px; }
.soft-editorial .page-content:has(.notebook-summary) { max-width: 900px; margin: 0 auto; }
.soft-editorial .page-intro { padding: 38px 0 14px; }
.soft-editorial .page-intro .eyebrow { color: var(--muted); letter-spacing: 0; }
.soft-editorial .page-intro h2,
.soft-editorial .practice-shell>.section-heading h2 { font-family: var(--display); font-weight: 500; font-size: 34px; }
.soft-editorial .page-intro p { margin-bottom: 0; }
.soft-editorial .notebook-summary { gap: 16px; margin: 20px 0 28px; }
.soft-editorial .stat-box { padding: 26px; border: 0; border-radius: 24px; background: #DEE6D7; }
.soft-editorial .stat-box:nth-child(2) { background: #EED4DF; }
.soft-editorial .stat-box:nth-child(3) { background: #E8C9B6; }
.soft-editorial .stat-box strong { font: 500 44px/1.1 Georgia,serif; margin-bottom: 12px; }
.soft-editorial .stat-box span { color: var(--ink); }
.soft-editorial .notebook-controls { gap: 10px; }
.soft-editorial .notebook-controls input { background: rgba(255,255,255,.55); border-radius: 16px; }
.soft-editorial .notebook-controls button,
.soft-editorial .notebook-controls a { min-height: 44px; }
.soft-editorial .notebook-filters { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.soft-editorial .notebook-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.soft-editorial .notebook-list>.empty { grid-column: 1 / -1; }
.soft-editorial .notebook-word { min-width: 0; padding: 26px; background: rgba(255,255,255,.5); border: 0; border-radius: 26px; }
.soft-editorial .word-heading { font: 500 32px/1.2 Georgia,serif; color: var(--ink); max-width: 100%; }
.soft-editorial .context-snippet { font-size: 14px; line-height: 1.95; color: var(--muted); border-left: 3px solid #B7C7A8; padding-left: 14px; }
.soft-editorial .notebook-word .card-actions button { min-height: 40px; }
.soft-editorial .subtle { color: var(--muted); }
.soft-editorial .practice-shell { max-width: 820px; margin: 38px auto 0; }
.soft-editorial .practice-tabs { max-width: 380px; padding: 5px; background: #E9E3D4; border-radius: 28px; gap: 5px; }
.soft-editorial .practice-tabs .pill-link { border: 0; background: transparent; }
.soft-editorial .practice-tabs .primary { background: var(--ink); }
.soft-editorial .practice-options { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 20px; gap: 10px; }
.soft-editorial .practice-options select { background: rgba(255,255,255,.55); min-height: 44px; }
.soft-editorial .practice-options button { min-height: 44px; }
.soft-editorial .practice-progress { background: #DEE6D7; border: 0; border-radius: 18px; padding: 18px 22px; }
.soft-editorial .progress-track { background: #B7C7A8; height: 6px; }
.soft-editorial .progress-fill { background: #44583A; }
.soft-editorial .practice-policy { color: var(--muted); line-height: 1.8; }
.soft-editorial .practice-word { border: 0; padding: 28px; border-radius: 26px; background: rgba(255,255,255,.6); }
.soft-editorial .practice-word-heading h3 { font-family: var(--display); font-size: 27px; font-weight: 600; }
.soft-editorial .word-number { color: var(--muted); }
.soft-editorial .practice-word input { background: #FAF7EF; border-color: #A99E8C; padding: 17px 18px; }
.soft-editorial .practice-word input:focus { outline-color: #657A55; }
.soft-editorial .practice-answer-tools button { min-height: 44px; }
.soft-editorial .word-phonetic { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.soft-editorial .practice-answer-hint { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.soft-editorial .practice-answer-hint[hidden] { display: none; }
.soft-editorial .modal details { margin: 16px 0; }
.soft-editorial .modal summary { cursor: pointer; line-height: 1.8; }
.soft-editorial .correct { color: #36582E; }
.soft-editorial .wrong { color: #963D36; }
.soft-editorial .revealed { color: #765826; }
.soft-editorial .practice-result { background: #DEE6D7; border: 0; border-radius: 28px; }
.soft-editorial .practice-result h2 { font-family: var(--display); font-weight: 500; }
.soft-editorial .empty.panel { background: rgba(255,255,255,.45); border: 0; border-radius: 26px; }
.soft-editorial .settings-row .chips { flex-wrap: wrap; }
.sync-nav { background: #E7ECDD; border: 0; font-size: 12px; padding: 7px 12px; min-height: 36px; }
.sync-hint { min-height: 22px; padding-top: 6px; color: var(--muted); font-size: 11px; }
.sync-modal { width: min(530px,calc(100vw - 24px)); background: #FAF7EF; }
.sync-modal h2 { font-family: var(--display); font-weight: 500; padding-right: 30px; }
.sync-modal .full { margin: 8px 0; min-height: 44px; }
.sync-modal h3 { font-size: 17px; }
.sync-help { padding: 18px; border-radius: 20px; background: #E7ECDD; margin: 18px 0; }
.sync-help p:last-child { margin-bottom: 0; }
.sync-code-input { width: 100%; text-align: center; font-size: 24px; letter-spacing: .2em; }
.sync-code { text-align: center; font: 500 42px/1.4 Georgia,serif; letter-spacing: .16em; color: var(--ink); user-select: all; }
.catalog-layout { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 36px; align-items: start; scroll-margin-top: 24px; }
.directory-index { min-width: 0; color: var(--ink); }
.catalog-layout > .directory-index { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 20px 20px 20px 0; border-right: 1px solid var(--line); }
.directory-index h2 { font-size: 23px; margin: 0 0 8px; }
.directory-caption { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.directory-all { display: block; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; font-size: 14px; }
.directory-themes { list-style: none; padding: 0 0 12px; margin: 0; }
.directory-themes > li { margin: 2px 0; }
.directory-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.directory-theme-count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.directory-pending { color: var(--muted); }
.directory-index a:hover { background: #e9e3d6; }
.directory-index .directory-all[aria-current="page"],
.directory-index .directory-theme[aria-current="page"] { background: #ECE6D2; color: var(--ink); font-weight: 600; }
.directory-index .directory-chapter { border-left: 3px solid transparent; }
.directory-index .directory-chapter[aria-current="page"] { background: #DAE4D2; color: var(--ink); border-left-color: #65795D; font-weight: 600; }
.directory-chapters { padding: 0 0 6px 24px; margin: 4px 0; }
.directory-chapters li { padding: 2px 0; font-size: 12px; }
.directory-chapter { display: block; padding: 8px; border-radius: 8px; line-height: 1.7; }
.soft-editorial .chapter-drawer { background: #FAF7EF; color: #2A241B; border-color: rgba(42,36,27,.18); box-shadow: 0 12px 40px rgba(42,36,27,.12); scrollbar-width: thin; scrollbar-color: #B5AA99 #FAF7EF; }
.soft-editorial .chapter-drawer::backdrop { background: rgba(42,36,27,.22); backdrop-filter: blur(3px); }
.soft-editorial .chapter-drawer .directory-index { color: #2A241B; }
.soft-editorial .chapter-drawer .directory-index h2 { padding-right: 44px; }
.soft-editorial .chapter-drawer .directory-caption,
.soft-editorial .chapter-drawer .directory-theme-count,
.soft-editorial .chapter-drawer .directory-pending { color: #786E5F; }
.soft-editorial .chapter-drawer .directory-index a:hover { background: #F0EBDF; color: #2A241B; }
.soft-editorial .chapter-drawer .directory-all[aria-current="page"],
.soft-editorial .chapter-drawer .directory-theme[aria-current="page"] { background: #ECE6D2; color: #2A241B; font-weight: 600; }
.soft-editorial .chapter-drawer .directory-chapter { border-left: 3px solid transparent; }
.soft-editorial .chapter-drawer .directory-chapter[aria-current="page"] { background: #DAE4D2; color: #2A241B; border-left-color: #65795D; font-weight: 600; }
.soft-editorial .chapter-drawer .modal-close { display: grid; place-items: center; background: #ECE6D2; color: #2A241B; border: 0; }
.soft-editorial .chapter-drawer .modal-close:hover { background: #E2D9C1; color: #2A241B; }
.soft-editorial .chapter-drawer::-webkit-scrollbar { width: 8px; }
.soft-editorial .chapter-drawer::-webkit-scrollbar-track { background: #FAF7EF; }
.soft-editorial .chapter-drawer::-webkit-scrollbar-thumb { background: #B5AA99; border: 2px solid #FAF7EF; border-radius: 8px; }
.catalog-results { min-width: 0; }
.catalog-results .collection-heading { padding-top: 18px; }
.catalog-results .editorial-stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-results .story-cover h3 { font-size: clamp(26px, 2vw, 36px); min-height: 120px; }
.soft-editorial .card-actions button[aria-pressed="true"], .soft-editorial .mastery-actions button[aria-pressed="true"] { background: #d6dd63; color: var(--ink); border-color: #959b4c; }
.soft-editorial .word-learning-state { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.mastery-actions { margin: 12px 0; }
@media (max-width: 1000px) {
 .catalog-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
 .catalog-results .editorial-stories { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
 .catalog-layout { display: block; }
 .catalog-layout > .directory-index { position: static; max-height: 360px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; margin: 20px 0; }
 .directory-index h2 { font-size: 21px; }
 .catalog-results .story-cover h3 { min-height: 0; font-size: 27px; }
}
.sync-status { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 16px 0; font-size: 13px; }
.sync-status span { color: var(--muted); }
.sync-conflict { background: #F1DFD4; padding: 18px; border-radius: 20px; margin-top: 16px; overflow-wrap: anywhere; }
.sync-conflict p { font-size: 13px; margin-bottom: 8px; }
.sync-error { padding: 12px; border-radius: 12px; color: #84372E; background: #F5E3DB; font-size: 13px; margin-top: 14px; }
.sync-history-title { margin-top: 24px; }
.sync-history-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.sync-modal .two-columns button { min-height: 44px; }
@media (max-width: 1000px) {
  .editorial-shell { padding: 0 26px 72px; }
  .editorial-hero { gap: 36px; padding: 44px 0; }
  .opening-note { padding: 30px; }
  .story-cover { padding: 22px; }
  .story-cover h3 { font-size: 22px; min-height: 145px; }
  .soft-editorial .reader-tools { gap: 12px; }
}
@media (max-width: 760px) {
  .editorial-stories { grid-template-columns: 1fr; gap: 16px; }
  .story-cover h3 { min-height: 0; max-width: 25ch; font-size: 27px; }
  .cover-meta { margin-bottom: 24px; }
  .cover-excerpt { max-width: 42ch; margin-bottom: 24px; }
  .cover-bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .editorial-header nav { gap: 22px; }
  .reading-tip { align-items: flex-start; flex-direction: column; gap: 18px; }
}
@media (max-width: 600px) {
  .preview-note { font-size: 10px; padding: 8px 18px; }
  .editorial-shell { padding: 0 18px 80px; }
  .editorial-header { padding: 20px 0 16px; align-items: flex-start; gap: 18px; flex-direction: column; }
  .editorial-brand { font-size: 18px; }
  .brand-symbol { width: 30px; height: 36px; font-size: 21px; }
  .editorial-header nav { width: 100%; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; font-size: 12px; }
  .editorial-header nav a { padding: 7px 0; }
  .editorial-hero { grid-template-columns: 1fr; padding: 32px 0; gap: 28px; }
  .issue-label { margin-bottom: 16px; font-size: 12px; }
  .hero-copy h1 { font-size: clamp(30px,8.7vw,44px); margin-bottom: 18px; }
  .hero-description { font-size: 13px; margin-bottom: 22px; }
  .opening-note { min-height: 0; padding: 28px; border-radius: 54px 22px 22px 22px; }
  .opening-quote { margin: 16px 0; }
  .collection-heading { align-items: flex-start; flex-direction: column; gap: 10px; padding: 24px 0 20px; }
  .collection-heading h2 { font-size: 26px; }
  .story-cover { padding: 25px; }
  .story-cover h3 { font-size: 25px; }
  .cover-bottom { flex-wrap: wrap; }
  .reading-tip { padding: 24px; }
  .reading-tip h2 { font-size: 20px; line-height: 1.65; }
  .editorial-footer { flex-direction: column; gap: 6px; margin-top: 28px; }
  .back-to-collection { margin: 20px 0; }
  .soft-editorial .reading-column>.modebar { width: 100%; margin-bottom: 22px; }
  .soft-editorial .modebar button { min-width: 0; min-height: 42px; font-size: 12px; }
  .soft-editorial .chapter-panel { padding: 0 0 20px; }
  .soft-editorial .chapter-panel h2 { font-size: 26px; text-align: left; }
  .soft-editorial .chapter-panel .reading-label, .soft-editorial .chapter-panel p { text-align: left; }
  .soft-editorial .reader-tools { padding: 14px 0; }
  .soft-editorial .reader-card { margin-left: -6px; margin-right: -6px; padding: 26px 16px; border-radius: 0 0 20px 20px; }
  .soft-editorial .word-modal { padding: 27px 22px; border-radius: 25px; }
  .soft-editorial .word-modal .word-title { font-size: 43px!important; }
  .soft-editorial .story-context { padding: 16px; }
  .soft-editorial .word-grid { grid-template-columns: 1fr; }
  .soft-editorial .page-intro { padding-top: 28px; }
  .soft-editorial .page-intro h2,
  .soft-editorial .practice-shell>.section-heading h2 { font-size: 29px; }
  .soft-editorial .notebook-summary { gap: 8px; }
  .soft-editorial .stat-box { padding: 20px 14px; border-radius: 20px; }
  .soft-editorial .stat-box strong { font-size: 36px; }
  .soft-editorial .notebook-list { grid-template-columns: 1fr; }
  .soft-editorial .notebook-word { padding: 22px; }
  .soft-editorial .notebook-controls input { min-width: 0; width: 100%; }
  .soft-editorial .notebook-filters { gap: 14px; }
  .soft-editorial .practice-shell { margin-top: 28px; }
  .soft-editorial .practice-shell>.section-heading { gap: 14px; }
  .soft-editorial .practice-word { padding: 24px 18px; border-radius: 22px; }
  .soft-editorial .practice-word-heading h3 { font-size: 24px; }
  .soft-editorial .practice-progress { padding: 16px 18px; }
}

/* Focused home: one story and one primary action. */
.focused-shell .editorial-header { display:flex; flex-direction:row; align-items:center; gap:24px; }
.focused-shell .editorial-brand { margin-right:auto; }
.account-entry { background:transparent; border:0; color:var(--ink); padding:10px 8px; min-height:44px; font-size:13px; }
.reader-home { min-height:calc(100svh - 160px); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:48px 0 72px; }
.reader-home h1 { font-family:var(--display); font-size:clamp(28px,3.3vw,42px); font-weight:500; line-height:1.7; letter-spacing:.01em; margin:0; }
.reader-home h1 span { display:block; }
.home-story { margin-top:52px; display:flex; flex-direction:column; align-items:center; max-width:100%; }
.home-story h2 { font-weight:400; font-size:17px; line-height:1.8; max-width:30em; margin:0 0 6px; overflow-wrap:anywhere; }
.home-position { color:var(--muted); font-size:12px; margin:0 0 8px; }
.home-theme { color:var(--muted); font-size:13px; margin:0 0 10px; }
.home-start { min-width:200px; min-height:50px; margin-top:16px; }
.home-change { color:var(--muted); font-size:13px; padding:12px 20px; min-height:44px; margin-top:10px; }
.home-change:hover { text-decoration:underline; text-underline-offset:4px; }
.focused-shell .catalog-layout { margin-top:28px; }
.sync-error:empty { display:none; }
@media(max-width:760px) {
 .focused-shell { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
 .focused-shell .editorial-header { padding:16px 0; gap:12px; }
 .focused-shell .editorial-brand { font-size:16px; letter-spacing:0; gap:8px; }
 .focused-shell .editorial-header .primary-navigation { position:fixed; left:0; right:0; bottom:0; z-index:35; display:flex; flex-wrap:nowrap; justify-content:space-around; gap:0; width:100%; border-top:1px solid var(--line); background:var(--surface); padding:6px 18px calc(6px + env(safe-area-inset-bottom)); font-size:13px; }
 .focused-shell .primary-navigation a { display:grid; place-items:center; min-height:44px; min-width:72px; padding:8px 12px; }
 .focused-shell .primary-navigation a[aria-current=page] { font-weight:600; }
 .reader-home { min-height:calc(100svh - 166px - env(safe-area-inset-bottom)); padding:32px 0; }
 .reader-home h1 { font-size:clamp(24px,6.7vw,30px); line-height:1.8; }
 .home-story { margin-top:44px; }
 .home-story h2 { font-size:16px; max-width:24em; }
 .focused-shell.reading-shell .editorial-header { flex-wrap:wrap; }
 .reading-shell .editorial-header .account-entry { order:1; }
 .reading-shell .editorial-header .primary-navigation { position:static; order:2; padding:0; border:0; background:transparent; justify-content:flex-start; }
 .reading-shell .primary-navigation a { min-width:60px; }
}
@media(max-height:650px) and (max-width:760px) {
 .reader-home { padding:24px 0; }
 .home-story { margin-top:32px; }
}

/* Directory is a table of contents, without story covers or a nested scroll area. */
.focused-shell .catalog-only { display:block; max-width:820px; margin:28px auto 0; }
.catalog-layout.catalog-only > .directory-index { position:static; max-height:none; overflow:visible; border:0; border-radius:0; padding:0; margin:0; }
.catalog-only .directory-themes > li { padding:10px 0; border-bottom:1px solid var(--line); }
.catalog-only .directory-theme { font-size:16px; }
.directory-group > summary.directory-theme { cursor:pointer; list-style:none; }
.directory-group > summary::-webkit-details-marker { display:none; }
.directory-group > summary::after { content:'›'; color:var(--muted); font-size:20px; line-height:1; transform:rotate(0deg); }
.directory-group > summary .directory-theme-count { margin-left:auto; }
.directory-group[open] > summary::after { transform:rotate(90deg); }
.directory-group > summary:hover { background:#ECE6D2; }
.directory-group > summary:focus-visible { outline:2px solid var(--muted); outline-offset:2px; }
.catalog-only .directory-chapters { padding-left:28px; }
.catalog-only .directory-chapter { font-size:14px; padding:10px 8px; }
/* Persisted learning state colors apply only to the word, including repeated occurrences. */
.soft-editorial { --word-mastered:#BFD9BD; --word-review:#EDB6A2; }
.soft-editorial .reader-card .inline-word[data-learning-state="mastered"],
.soft-editorial .reader-card .inline-word[data-learning-state="mastered"]:hover { background:var(--word-mastered); border-color:#91B18D; color:var(--ink); }
.soft-editorial .reader-card .inline-word[data-learning-state="review"],
.soft-editorial .reader-card .inline-word[data-learning-state="review"]:hover { background:var(--word-review); border-color:#CA927E; color:var(--ink); }
.soft-editorial .linked-word-panel .dock-known[aria-pressed="true"] { background:var(--word-mastered); border-color:#91B18D; color:var(--ink); }
.soft-editorial .linked-word-panel .dock-unknown[aria-pressed="true"] { background:var(--word-review); border-color:#CA927E; color:var(--ink); }

/* Buyer account pages share the reader's paper, ink, display face and brand. */
.sale-account { min-height:100svh; display:flex; flex-direction:column; }
.sale-header { width:calc(100% - 88px); max-width:1152px; margin:0 auto; flex-direction:row; align-items:center; }
.sale-header .editorial-brand { font-size:17px; letter-spacing:0; }
.sale-home { font-size:13px; color:var(--muted); text-align:right; }
.phone-shell { width:min(100%,480px); margin:56px auto 36px; padding:0 24px; }
.phone-shell h1 { font:500 clamp(28px,4vw,34px)/1.55 var(--display); margin:0 0 12px; letter-spacing:-.025em; }
.phone-shell p { font-size:14px; overflow-wrap:anywhere; }
.phone-shell>.muted { margin:0 0 30px; line-height:1.9; }
.phone-shell label { display:block; font-size:14px; font-weight:500; margin:20px 0 0; }
.phone-shell input:not([type=checkbox]) { display:block; width:100%; min-width:0; min-height:52px; margin-top:8px; padding:13px 16px; border:1px solid rgba(42,36,27,.28); border-radius:14px; background:var(--surface); color:var(--ink); font-size:16px; line-height:1.5; }
.phone-shell input::placeholder { color:#746B5C; font-size:13px; }
/* Keep saved phone numbers and passwords on the same paper surface. */
.phone-shell input:-webkit-autofill,
.phone-shell input:-webkit-autofill:hover,
.phone-shell input:-webkit-autofill:focus,
.phone-shell input:-webkit-autofill:active {
 -webkit-box-shadow:0 0 0 1000px var(--surface) inset !important;
 box-shadow:0 0 0 1000px var(--surface) inset !important;
 -webkit-text-fill-color:var(--ink) !important;
 caret-color:var(--ink);
}
.phone-shell input:autofill {
 box-shadow:0 0 0 1000px var(--surface) inset !important;
 -webkit-text-fill-color:var(--ink) !important;
 caret-color:var(--ink);
}
.phone-shell input:focus-visible,.phone-shell summary:focus-visible { outline:3px solid #655179; outline-offset:3px; }
.phone-shell [type=submit] { width:100%; min-height:52px; padding:13px 24px; margin:26px 0 0; background:var(--ink); color:var(--surface); border-color:var(--ink); font-size:15px; font-weight:500; }
.phone-shell [type=submit]:hover { background:#443B2D; }
.phone-shell button:disabled { opacity:.55; cursor:wait; }
.code-line { display:flex; align-items:flex-end; gap:10px; }
.code-line label { flex:1; min-width:0; }
.code-line button { flex-shrink:0; min-height:52px; padding:12px 16px; border-color:rgba(42,36,27,.3); background:var(--soft); font-size:13px; white-space:nowrap; }
.phone-shell .check { display:flex; align-items:flex-start; gap:10px; font-size:13px; line-height:1.8; font-weight:400; }
.phone-shell input[type=checkbox] { width:18px; height:18px; flex-shrink:0; margin:3px 0 0; accent-color:var(--ink); }
.phone-shell [role=status] { min-height:0; margin:0; font-size:14px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.phone-shell [role=status]:not(:empty) { margin:16px 0; padding:12px 14px; border-left:3px solid #655179; background:var(--soft); }
.phone-shell a:not(.editorial-brand) { text-decoration:underline; text-underline-offset:4px; }
.sale-recovery { margin:18px 0 0; }
.sale-other-options { border-top:1px solid var(--line); margin-top:30px; padding-top:18px; }
.sale-other-options p { margin:8px 0; font-size:13px; color:var(--muted); }
.phone-shell details { margin-top:24px; color:var(--muted); font-size:13px; line-height:1.8; }
.phone-shell summary { cursor:pointer; padding:8px 0; }
.phone-shell details p { font-size:13px; margin:8px 0; }
.phone-shell .notice { padding:12px 14px; background:var(--soft); border-left:3px solid #655179; line-height:1.8; }
.sale-footer { margin-top:auto; padding:24px; text-align:center; color:var(--muted); font-size:12px; }
@media(max-width:600px) {
 .sale-header { width:calc(100% - 40px); padding:20px 0; gap:12px; }
 .sale-header .editorial-brand { font-size:15px; gap:9px; }
 .sale-header .brand-symbol { width:30px; height:36px; font-size:21px; }
 .sale-home { font-size:12px; }
 .phone-shell { margin:34px auto 28px; }
 .phone-shell>.muted { margin-bottom:24px; }
 .code-line { gap:8px; }
 .code-line button { padding:12px; }
}
