:root {
    --paper: #f3efe6;
    --ink: #1c1914;
    --mute: #6b6458;
    --line: #ddd4c4;
    --card: #fffcf7;
    --accent: #1e4fbf;
    --accent-ink: #163a8a;
    --btn-fg: #fff;
    --btn-shadow: rgba(30,79,191,.18);
    --mark: #1e4fbf;
    --mark-soft: #dce5fb;
    --learn: #4a90e2;
    --learn-bg: rgba(74,144,226,.10);
    --learn-edge: rgba(74,144,226,.28);
    --story-px: 22px;
    --ok: #e7f3e7;
    --warn: #f8e6e4;
    --note: #efe8d8;
    --input: #efece4;
    --read: #fdfcf8;
    --admin: #ebe6da;
    --cover-bg: #fffcf7;
    --cover-ink: #1c1914;
    --cover-muted: #6b6458;
    --radius-card: 20px;
    --grain: .045;
    --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", serif;
    --ui: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; min-height: 100%; }
  body {
    font-family: var(--ui);
    color: var(--ink);
    background:
      radial-gradient(1200px 520px at 50% -12%, color-mix(in srgb, #fff 55%, transparent), transparent 62%),
      var(--paper);
  }
  body::before {
    content: "";
    position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--grain);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  }
  .app { position: relative; z-index: 1; min-height: 100vh; }
  button, input, textarea, select { font: inherit; }
  .top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 18px 36px; max-width: 1180px; margin: 0 auto;
  }
  .wordmark {
    font-family: var(--display); font-size: 24px; font-weight: 700;
    text-decoration: none; color: inherit; display: flex; gap: 10px; align-items: baseline;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .wordmark small {
    font-family: var(--ui); font-size: 11px; font-weight: 600;
    color: var(--mute); letter-spacing: .16em; text-transform: uppercase;
  }
  .nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 14px; }
  .link { background: none; border: 0; color: var(--mute); cursor: pointer; padding: 0; }
  .link:hover { color: var(--ink); }
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
    background: var(--accent); color: var(--btn-fg); cursor: pointer; font-weight: 600;
    box-shadow: 0 10px 22px var(--btn-shadow);
    text-decoration: none;
  }
  .btn:hover { background: var(--accent-ink); }
  .btn:disabled:hover { background: #e7dfcf; }
  .btn.ghost {
    background: transparent; color: var(--ink); border: 1px solid var(--ink); box-shadow: none;
  }
  .btn.dead, .btn:disabled { background: #e7dfcf; color: #8a8376; box-shadow: none; cursor: default; }
  .wrap { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
  .hero { padding: 36px 0 12px; max-width: 720px; }
  .kicker { color: var(--accent); font-size: 13px; letter-spacing: .14em; font-weight: 600; }
  .hero h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 68px); line-height: .95; margin: 10px 0 14px; }
  .lead { color: var(--mute); font-size: 17px; margin: 0 0 22px; line-height: 1.6; }
  .cover {
    min-height: 340px; border-radius: var(--radius-card); padding: 28px;
    background: var(--cover-bg); color: var(--cover-ink);
    box-shadow: 0 16px 40px rgba(28,25,20,.07); border: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: space-between;
  }
  .cover .tag { font-size: 12px; letter-spacing: .16em; color: var(--cover-muted); }
  .cover h2 { font-family: var(--display); font-size: 34px; margin: 14px 0 8px; line-height: 1.15; }
  .cover .price { font-size: 28px; font-family: var(--display); color: var(--accent); }
  .cover .price small { font-family: var(--ui); font-size: 13px; color: var(--cover-muted); margin-left: 8px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px 0 36px; }
  .step { background: var(--card); border-radius: var(--radius-card); padding: 18px; min-height: 132px; }
  .step b { display: block; font-family: var(--display); font-size: 28px; color: var(--accent); margin-bottom: 6px; }
  .sec { padding: 10px 0 32px; }
  .sec h2 { font-family: var(--display); font-size: 32px; margin: 0 0 8px; }
  .feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
  .feat { background: var(--card); border-radius: var(--radius-card); padding: 18px; min-height: 148px; }
  .feat h3 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; }
  .demo {
    background: var(--card); border-radius: var(--radius-card); padding: 22px 24px;
    box-shadow: 0 1px 0 var(--line); margin-top: 16px;
  }
  .demo .hint { color: var(--mute); font-size: 13px; margin: 0 0 10px; }
  .road {
    margin-top: 18px; padding: 16px 18px; background: var(--card);
    border-radius: var(--radius-card); color: var(--mute); font-size: 14px; line-height: 1.6;
  }
  .sku-rail { display: flex; align-items: stretch; gap: 10px; margin-top: 16px; }
  .sku-arrow {
    width: 44px; min-width: 44px; height: 44px; align-self: center;
    border-radius: 999px; border: 1px solid var(--line); background: var(--card);
    color: var(--ink); cursor: pointer; font-size: 22px; line-height: 1;
  }
  .sku-arrow:disabled { opacity: .35; cursor: default; }
  .sku-view { overflow: hidden; flex: 1; min-width: 0; }
  .skus { display: flex; gap: 12px; align-items: stretch; }
  .sku {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: none;
    padding: 20px 18px;
    height: 300px;
    display: flex;
    flex-direction: column;
    text-align: left;
    box-sizing: border-box;
    color: var(--ink);
    font: inherit;
  }
  .skus[data-vis="4"] .sku { flex: 0 0 calc((100% - 36px) / 4); width: calc((100% - 36px) / 4); }
  .skus[data-vis="3"] .sku { flex: 0 0 calc((100% - 24px) / 3); width: calc((100% - 24px) / 3); }
  .skus[data-vis="1"] .sku { flex: 0 0 100%; width: 100%; }
  .sku.soon { cursor: pointer; }
  .sku .kicker { height: 18px; margin: 0 0 8px; }
  .sku h3 {
    font-family: var(--display); font-size: 28px; line-height: 36px;
    height: 36px; margin: 0 0 8px; color: var(--ink);
  }
  .sku-name {
    height: 44px; margin: 0 0 6px; font-size: 15px; line-height: 22px;
    overflow: hidden;
  }
  .sku-meta { height: 20px; margin: 0 0 10px; color: var(--mute); font-size: 13px; line-height: 20px; }
  .sku-price {
    height: 34px; margin: 0 0 14px;
    font-family: var(--display); font-size: 26px; line-height: 34px; color: var(--accent);
  }
  .sku-price small { font-family: var(--ui); font-size: 13px; color: var(--mute); margin-left: 6px; }
  .sku .btn, .sku .btn.dead { width: 100%; height: 46px; margin-top: auto; }
  .legal { text-align: center; color: var(--mute); font-size: 12px; line-height: 1.7; padding: 28px 20px 80px; }
  .form-page { padding: 36px 0 80px; }
  .form-card {
    width: min(460px, 100%); margin: 0 auto; background: var(--card);
    border-radius: var(--radius-card); padding: 32px 28px; box-shadow: 0 18px 50px rgba(26,36,32,.06);
  }
  .form-card.wide { width: min(760px, 100%); }
  .form-card h1, .h1 { font-family: var(--display); font-size: 40px; margin: 8px 0 10px; }
  .form-card form { display: flex; flex-direction: column; }
  label { display: block; font-size: 13px; margin: 12px 0 6px; position: relative; }
  input[type=text], input[type=email], input[type=password], textarea {
    display: block; width: 100%; border: 0; border-radius: 14px; background: var(--input); padding: 12px 16px; outline: none;
  }
  input[type=text], input[type=email], input[type=password] { height: 48px; }
  textarea { min-height: 96px; resize: vertical; }
  input:focus, textarea:focus { box-shadow: 0 0 0 2px var(--accent); background: #fff; }
  .err { color: #8b2d1f; font-size: 12px; margin-top: 4px; }
  .check { font-size: 13px; color: var(--mute); margin: 16px 0; }
  .form-card .btn { width: 100%; margin-top: 8px; }
  .alt { text-align: center; margin-top: 16px; font-size: 13px; color: var(--mute); }
  .alt button { background: none; border: 0; color: var(--accent); cursor: pointer; }
  .banner { padding: 12px 14px; border-radius: 12px; margin: 0 0 16px; }
  .banner.ok { background: var(--ok); }
  .banner.warn { background: var(--warn); }
  .banner.note { background: var(--note); }
  .sheet { position: fixed; inset: 0; background: rgba(26,36,32,.38); display: grid; place-items: center; padding: 20px; z-index: 20; }
  .sheet .box { width: min(420px, 100%); background: #fff; border-radius: 20px; padding: 24px; }
  .pad { padding: 24px 0 80px; }
  .bookcard, .story, .item, .stat, .help {
    background: var(--card); border-radius: var(--radius-card); padding: 20px 18px;
    box-shadow: 0 1px 0 var(--line);
  }
  .story { text-align: left; border: 0; width: 100%; cursor: pointer; text-decoration: none; color: inherit; }
  .story:hover, .item:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(26,36,32,.06); }
  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .tiny { color: var(--mute); font-size: 13px; }
  .crumb { color: var(--mute); font-size: 13px; margin-bottom: 8px; }
  .crumb button { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; }
  th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
  th { color: var(--mute); font-size: 12px; font-weight: 600; }
  .reader-page, .sweep-page { background: #f7f4ee; min-height: 100vh; }
  .reader-page .wrap, .sweep-page .wrap {
    width: min(920px, calc(100% - 40px));
    padding: 8px 0 64px;
  }
  .toolbar {
    position: sticky; top: 0; z-index: 5;
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    padding: 12px 0; background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .toolbar b { flex: 1 1 180px; font-size: 15px; }
  .shelfbar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    min-height: 40px; padding: 6px 2px 10px;
  }
  .shelf-tag {
    font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--accent);
  }
  .shelf-name { font-size: 14px; color: var(--mute); }
  .shelfbar .ghost-link { margin-left: auto; }
  .ghost-link {
    background: none; border: 0; color: var(--accent); cursor: pointer;
    padding: 0; font-size: 13px; text-decoration: none;
  }
  .story-head { padding: 4px 2px 14px; }
  .story-head h1 {
    font-family: var(--display); font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.15; margin: 0 0 6px;
  }
  .story-head .sub { color: var(--mute); font-size: 13px; margin: 0; }
  .panel {
    background: #fff; border: 1px solid #ece4d6; border-radius: 20px;
    padding: 18px 20px 16px; margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(28,25,20,.04);
  }
  .panel-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 16px; padding: 12px 0; border-bottom: 1px solid #f0e9dc;
  }
  .panel-row:first-child { padding-top: 0; }
  .panel-row:last-child { padding-bottom: 0; border-bottom: 0; }
  .group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .group-label { font-size: 12px; color: var(--mute); font-weight: 600; }
  .font-controls {
    display: inline-flex; align-items: center; gap: 2px;
    background: #f7f4ee; padding: 3px; border-radius: 999px;
  }
  .font-controls button {
    min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: 999px;
    background: transparent; cursor: pointer; white-space: nowrap;
  }
  .font-controls button:disabled { opacity: .35; cursor: default; }
  .font-controls span { min-width: 40px; text-align: center; font-size: 13px; color: var(--mute); }
  .chip-group {
    display: inline-flex; gap: 2px; background: #f0ece3; padding: 3px; border-radius: 12px;
  }
  .chip {
    border: 0; background: transparent; border-radius: 8px;
    padding: 6px 18px; cursor: pointer; font-size: 13px; color: var(--mute);
  }
  .chip.on { background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 1px 4px rgba(28,25,20,.08); }
  .toggle {
    border: 0; background: transparent; color: var(--mute); font-size: 13px;
    padding: 4px 8px; border-radius: 8px; cursor: pointer;
  }
  .toggle.on { color: var(--accent); background: var(--learn-bg); font-weight: 650; }
  .stat-info { font-size: 13px; color: var(--mute); }
  .btn-sm {
    border: 1px solid var(--line); background: #fff; border-radius: 10px;
    padding: 6px 12px; font-size: 13px; cursor: pointer; text-decoration: none; color: inherit;
    display: inline-flex; align-items: center; min-height: 32px;
  }
  .btn-sm:disabled { opacity: .45; cursor: default; }
  .mode-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 14px; background: #f7f4ee; padding: 14px 16px; border-radius: 14px;
  }
  .mode-copy b { display: block; font-size: 14px; margin-bottom: 4px; }
  .mode-copy span { font-size: 13px; color: var(--mute); }
  .mode-pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .mode-pills .pill { font-size: 12px; padding: 6px 12px; }
  .pill { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; text-decoration: none; color: inherit; }
  .pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
  .pill:disabled { opacity: .35; cursor: default; }
  .pill.sweep { border-color: var(--accent); color: var(--accent); font-weight: 600; }
  .pill.sweep.on { background: var(--accent); color: #fff; }
  .font-ctrl { display: inline-flex; align-items: center; gap: 4px; margin-left: 2px; }
  .font-pt { min-width: 3.4em; text-align: center; font-size: 13px; color: var(--mute); }
  .readgrid {
    position: relative;
    display: block;
    text-align: left;
    padding: 0;
  }
  .story-frame {
    position: relative;
    margin: 8px 0 18px; padding: 32px 36px 16px;
    background: #fff; border: 1px solid #ece4d6; border-radius: 28px;
    box-shadow: 0 18px 40px rgba(28,25,20,.05);
    min-height: 62vh;
  }
  .wm {
    position: absolute; top: 36px; bottom: 36px; right: 10px; width: 18px;
    color: var(--accent); opacity: .14; font-size: 11px; letter-spacing: .28em;
    writing-mode: vertical-rl; display: flex; align-items: center; justify-content: center;
    user-select: none; pointer-events: none;
  }
  .story-frame .article {
    outline: none; caret-color: var(--learn);
    -webkit-user-select: text; user-select: text;
    touch-action: auto; cursor: text;
  }
  .article {
    font-family: var(--ui);
    font-size: var(--story-px, 22px); line-height: 1.8; color: #404040;
    text-align: left;
    touch-action: auto;
  }
  .article p { margin: 0 0 1.6em; text-align: left; }
  .article .danmu {
    color: inherit; font-size: inherit; line-height: inherit;
    margin: 0 0 1.6em; padding: 0;
  }
  .article .sec-num {
    font-size: 1.25em; font-weight: 500; color: #1a1a1a;
    margin: 2.5em 0 1.8em; letter-spacing: .04em;
  }
  /* 词是荧光笔：蓝底跟字齐，不要虚线格 */
  .mark {
    display: inline;
    padding: 0 .12em;
    margin: 0;
    background: var(--learn-bg);
    border-radius: 3px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    touch-action: auto;
    font-size: inherit;
    line-height: inherit;
  }
  .mark.ok { background: rgba(16,185,129,.12); }
  .mark.bad { background: rgba(220,38,38,.10); }
  .mark:focus-within { box-shadow: 0 0 0 2px rgba(74,144,226,.22); }
  .mark.flash { box-shadow: 0 0 0 2px var(--learn-edge); }
  .word {
    background: none; color: inherit; border-radius: 0;
    padding: 0; cursor: pointer; border: 0; font-weight: inherit;
  }
  .gloss { color: var(--mute); font-size: inherit; margin: 0; }
  .article .write {
    display: inline-block; vertical-align: baseline;
    width: 4.2em; min-width: 3em; height: 1.2em;
    margin: 0; padding: 0;
    font-size: max(16px, 1em); line-height: inherit;
    color: var(--ink); background: transparent; border: 0; border-radius: 0;
    box-shadow: none; outline: none; caret-color: var(--learn);
    touch-action: auto; -webkit-user-select: text; user-select: text; cursor: text;
  }
  .article .write:focus { background: transparent; box-shadow: none; }
  .article .write::placeholder { color: transparent; }
  .listen, .eye {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1em; height: 1em; margin: 0 0 0 .12em; padding: 0;
    border: 0; border-radius: 3px; vertical-align: -0.08em;
    background: transparent; color: var(--mute); cursor: pointer;
  }
  .listen { color: var(--learn); }
  .listen:hover, .eye:hover { color: var(--learn); }
  .listen svg, .eye svg { width: .92em; height: .92em; display: block; }
  .zh-paren { color: var(--mute); }
  .eye[aria-pressed="true"] { color: var(--learn); }
  .eye .off { display: none; }
  .eye[aria-pressed="true"] .on { display: none; }
  .eye[aria-pressed="true"] .off { display: block; }
  .zh-peek { display: none; font-size: .92em; color: var(--mute); margin-left: .2em; }
  .zh-peek.show { display: inline; }
  .blank-zh { color: inherit; }
  @media (any-pointer: coarse) {
    .article .write { height: 1.45em; min-height: 28px; }
  }
  .cta {
    margin: 8px 0 28px; padding: 22px 22px 20px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 20px;
  }
  .cta h2 { font-family: var(--display); font-size: 28px; margin: 0 0 8px; }
  .cta p { color: var(--mute); margin: 0 0 16px; line-height: 1.55; }
  .fab-toc {
    position: fixed; left: 18px; bottom: 22px; z-index: 8;
    width: 58px; height: 58px; border: 0; border-radius: 999px;
    background: var(--ink); color: #fff; cursor: pointer; font-weight: 700; font-size: 13px;
    box-shadow: 0 12px 28px rgba(28,25,20,.22);
  }
  .reader-page .jump {
    left: 18px; bottom: 92px; max-height: 56vh;
  }
  .jump-item, .jump-link {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    padding: 8px; cursor: pointer; border-radius: 8px; text-decoration: none; color: inherit;
    font-size: 13px;
  }
  .jump-item:hover, .jump-link:hover { background: var(--note); }
  .jump-item.on { background: var(--learn-bg); color: var(--accent); font-weight: 650; }
  .jump-item.preparing { color: var(--mute); cursor: default; }
  .sweep-page h1 {
    font-family: var(--display); font-size: 40px; margin: 8px 0 10px;
  }
  .sweep-page .row {
    display: grid; grid-template-columns: 36px 1fr auto auto;
    gap: 10px; align-items: center;
    padding: 14px 8px; border-bottom: 1px solid var(--line);
  }
  .sweep-page .row .en { font-weight: 650; }
  .sweep-page .row .zh { color: var(--mute); }
  .icon {
    width: 36px; height: 36px; border: 0; border-radius: 999px;
    background: var(--learn-bg); color: var(--accent); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .icon svg { width: 18px; height: 18px; }
  .icon.playing { background: var(--accent); color: #fff; }
  .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
  .drill {
    width: min(560px, 100%); margin: 24px auto 0; background: var(--card);
    border-radius: 24px; padding: 36px 28px 28px; box-shadow: 0 18px 50px rgba(28,25,20,.06);
    text-align: center;
  }
  .progress { color: var(--mute); font-size: 13px; margin-bottom: 8px; }
  .prompt {
    font-family: var(--display); font-size: clamp(36px, 7vw, 56px);
    margin: 8px 0 6px; line-height: 1.15;
  }
  .drill-en { min-height: 1.2em; color: var(--mute); font-size: 15px; margin-bottom: 18px; }
  .drill-en.show { color: var(--ink); }
  .typebox {
    width: 100%; height: 64px; border: 0; border-radius: 16px;
    background: var(--learn-bg); padding: 0 18px; text-align: center;
    font-size: max(18px, 1em); outline: none;
  }
  .typebox:focus { box-shadow: 0 0 0 2px var(--learn-edge); background: #fff; }
  .typebox.ok { background: var(--ok); }
  .typebox.bad { background: var(--warn); }
  .verdict { min-height: 28px; margin: 12px 0 4px; font-weight: 650; }
  .verdict.ok { color: #157347; }
  .verdict.bad { color: #8b2d1f; }
  .statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
  .statgrid .stat b { display: block; font-family: var(--display); font-size: 32px; color: var(--accent); }
  .wrong-list { margin: 0; padding-left: 1.2em; color: var(--mute); line-height: 1.8; }
  .navchap { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0 40px; }
  .toast {
    position: fixed; right: 20px; bottom: 64px; z-index: 25;
    background: var(--ink); color: #f7f1e4; padding: 10px 14px; border-radius: 999px; font-size: 13px;
  }
  .proto {
    position: fixed; left: 12px; bottom: 12px; z-index: 30;
    background: var(--ink); color: #f4efe4; font-size: 12px; padding: 8px 12px;
    border-radius: 999px; border: 0; cursor: pointer;
  }
  .jump {
    position: fixed; left: 12px; bottom: 52px; z-index: 30; width: min(280px, calc(100% - 24px));
    background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px;
    max-height: 52vh; overflow: auto; box-shadow: 0 16px 40px rgba(26,36,32,.12);
  }
  .jump button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 8px; cursor: pointer; border-radius: 8px; }
  .jump button:hover { background: var(--note); }
  .admin .top { max-width: 1280px; }
  .admin { background: var(--admin); min-height: 100vh; }
  @media (max-width: 860px) {
    .hero, .steps, .grid3, .grid2, .feats, .readgrid { grid-template-columns: 1fr; }
    .top { padding: 14px 16px; }
    .wm { writing-mode: horizontal-tb; letter-spacing: .12em; padding: 6px 0; top: 8px; bottom: auto; right: 12px; width: auto; }
    .hero h1, .form-card h1, .h1 { font-size: 36px; }
    .story-frame { padding: 20px 18px 8px; }
    .fab-toc { left: 12px; bottom: 12px; }
    .reader-page .jump { left: 12px; bottom: 80px; }
    .sweep-page .row { grid-template-columns: 36px 1fr auto; }
    .sweep-page .row .back { grid-column: 2 / -1; justify-self: start; }
  }

a { color: inherit; }
a.link { color: var(--accent); text-decoration: none; }
.save-status { font-size: 13px; color: var(--mute); margin-left: 8px; }
.story.preparing { cursor: default; opacity: .72; }
.story.preparing:hover { transform: none; box-shadow: 0 1px 0 var(--line); }
#app { min-height: 100vh; }
.lookup-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lookup-row > div { flex: 1; min-width: 160px; }
