:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --card: #ffffff;
  --cinnabar: #111111;
  --cinnabar-ink: #ffffff;
  --ok: #0b7a3b;
  --bad: #c8102e;
  --dark: #000000;
  --cream: #ffffff;
  --nav-muted: #c8c8c8;
  --gold: #ffd100;
}
* { box-sizing: border-box; }
html {
  interpolate-size: allow-keywords;
}
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Figtree", "Noto Sans", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
}
a { color: inherit; }
button, input { font: inherit; }
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 24px;
  min-height: 56px;
  background: #000;
  color: #fff;
  border-bottom: 0;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
}
.brand-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  padding: 2px;
  border-radius: 2px;
  line-height: 0;
}
.brand-plate img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}
.menu-btn {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.menu-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  transition: background 0.15s ease;
}
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  transition: transform 0.15s ease, top 0.15s ease;
}
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.top.menu-open .menu-bars { background: transparent; }
.top.menu-open .menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.top.menu-open .menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
.hero-mark {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 2px;
  margin: 0;
  background: var(--card);
  display: block;
  flex: none;
}
.news-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
}
.news-hero .kicker { margin: 0; }
.news-hero .lead { margin: 0; max-width: 36em; }
.auth-page .wrap,
.auth-page .auth-card {
  max-width: 24rem;
}
.auth-card {
  margin: 28px auto 56px;
  padding: 28px 22px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.auth-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 18px;
}
.auth-mark {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  background: var(--paper);
}
.auth-card h1 {
  text-align: center;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.auth-card .lead {
  text-align: center;
  margin: 0 0 22px;
  color: var(--muted);
}
.auth-note {
  text-align: center;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}
.auth-stack {
  display: grid;
  gap: 10px;
}
.auth-stack .btn,
.auth-stack .text-btn {
  width: 100%;
  margin: 0;
}
.auth-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.auth-social svg { flex: none; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 18px 0;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-or span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.site-foot {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 24px 16px 40px;
  background: #000;
  color: #9a9a9a;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.legal {
  max-width: 40rem;
  padding-bottom: 56px;
}
.legal .lead {
  color: var(--ink);
  font-size: 1.05rem;
}
.legal h2 {
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.7rem 0 0.45rem;
}
.legal ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.legal li { margin: 0 0 0.4rem; }
.legal a { text-decoration: underline; }
.contact-form {
  display: grid;
  gap: 14px;
  margin: 1.5rem 0 0;
  max-width: 28rem;
}
.contact-form p { margin: 0; }
.contact-form label {
  display: block;
  margin: 0 0 6px;
  font-weight: 650;
  font-size: 0.88rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #111;
  border-radius: 2px;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.contact-consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--gold);
}
.contact-consent label {
  margin: 0;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}
.contact-form .btn:hover {
  background: var(--gold);
  color: #111;
}
.human-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.human-check-label {
  font-weight: 650;
  font-size: 0.88rem;
  width: 100%;
}
.human-eq {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}
.human-eq b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  background: var(--gold);
  color: #111;
  font-family: Figtree, system-ui, sans-serif;
}
.human-eq span { color: var(--ink); }
.human-check #c-human {
  width: 4.5rem;
  min-height: 44px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
}
.account-wrap { max-width: 44rem; padding-bottom: 48px; }
.account-wrap h1 {
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.acct-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 18px 18px 16px;
  margin: 0 0 14px;
}
.acct-panel h2 {
  font-size: 0.95rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.acct-panel h2::before,
.account-wrap > h1::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
.acct-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.acct-who .text-btn { margin-left: auto; }
.acct-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: var(--dark);
  color: var(--cream);
  font-weight: 700;
}
.acct-email { margin: 0; font-weight: 650; }
.acct-who .muted { margin: 2px 0 0; }
.usage {
  height: 6px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 0 14px;
}
.usage i {
  display: block;
  height: 100%;
  background: var(--cinnabar);
  border-radius: 2px;
}
.acct-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}
.acct-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.practice-pick {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
}
@media (min-width: 560px) {
  .practice-pick { grid-template-columns: 1fr 1fr; }
}
.practice-door {
  display: block;
  padding: 18px 16px;
  border: 1px solid #111;
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  color: inherit;
  text-decoration: none;
}
.practice-door h2 {
  margin: 0 0 6px;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.practice-door p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.practice-door:hover { background: var(--gold); }
.practice-door:hover p { color: #111; }
.acct-danger {
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.acct-danger h2 {
  font-size: 0.95rem;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.acct-danger h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
.acct-danger p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36em;
}
.acct-danger .btn-danger {
  background: #fff;
  color: var(--bad);
  border: 1px solid var(--bad);
}
.acct-danger .btn-danger:hover {
  background: var(--bad);
  color: #fff;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
  color: var(--muted);
}
.seg button.on {
  background: var(--gold);
  color: #111;
  font-weight: 700;
}
.plan-compare {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  align-items: stretch;
}
@media (min-width: 720px) {
  .plan-compare { grid-template-columns: 1fr 1fr 1fr; }
}
.plan-col {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  min-height: 0;
}
.plan-col.on {
  border-color: #111;
  border-left: 4px solid var(--gold);
}
.plan-col h3 {
  margin: 0 0 4px;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-blurb {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
}
.plan-col .plan-price { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 6px; }
.plan-col .plan-price span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.plan-save {
  display: inline-block;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.plan-col ul {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1 1 auto;
}
.plan-col li { margin: 0 0 4px; }
.plan-col .btn:hover {
  background: var(--gold);
  color: #111;
}
.plan-col .btn,
.plan-col .plan-now {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: #000;
  color: #fff;
  font-family: Figtree, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.plan-col .plan-now {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  cursor: default;
  font-weight: 650;
}
.acct-banner {
  background: var(--card);
  border: 1px solid var(--cinnabar);
  color: var(--cinnabar);
  border-radius: 2px;
  padding: 12px 14px;
  margin: 0 0 14px;
}
.acct-panel.danger h2 { color: var(--muted); font-weight: 650; }
.ops-wrap h2 { font-size: 1.05rem; margin: 8px 0 12px; }
.ops-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.ops-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.ops-tab.on {
  color: #111;
  border-color: #111;
  background: var(--gold);
}
.sheet-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 1.5rem;
  margin: -8px 0 16px;
  font-size: 0.92rem;
}
.sheet-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}
body.sheet-view { background: #e8e8e8; }
body.sheet-view .wrap { max-width: 52rem; }
.sheet-chrome {
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0 18px;
  margin: 0 0 22px;
}
.sheet-chrome-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sheet-chrome-title {
  margin: 0 0 4px;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.sheet-chrome-lead {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 36rem;
}
.sheet-article {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fafafa;
}
.sheet-article-level {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.sheet-article-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}
.sheet-article-zh {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.35;
}
.sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}
.sheet-pack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0;
  padding: 0;
  border: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.sheet-pack-chip {
  appearance: none;
  border: 0;
  background: none;
  margin: 0;
  padding: 6px 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 40px;
  box-shadow: inset 0 -2px 0 transparent;
}
.sheet-pack-chip:hover { color: var(--ink); }
.sheet-pack-chip.is-on {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.sheet-pack-chip:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.sheet-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
  align-items: center;
}
.pack-stage { padding: 0 0 24px; }
.pack-paper {
  background: #fff;
  max-width: 8.5in;
  margin: 0 auto 20px;
  padding: 0.55in 0.65in 0.6in;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  break-after: page;
  page-break-after: always;
}
.pack-paper:last-child {
  break-after: avoid;
  page-break-after: avoid;
  margin-bottom: 0;
}
.pack-sheet {
  width: 100%;
}
.pack-head {
  break-inside: avoid;
  page-break-inside: avoid;
}
.pack-body { min-height: 0; }
.pack-mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 2px solid #111;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.pack-brand { color: #111; }
.pack-ver, .pack-pg { color: #555; }
.pack-head-title {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pack-head-zh {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.pack-head-task {
  margin: 0 0 1.4em;
  font-size: 0.92rem;
  color: #333;
}
.pack-n {
  display: inline-block;
  min-width: 1.7em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pack-read {
  margin: 0;
  padding-left: 1.4em;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.15rem;
  line-height: 1.85;
}
.pack-read li { margin: 0 0 10px; }
.pack-drill { list-style: none; margin: 0; padding: 0; }
.pack-item {
  margin: 0 0 18px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.pack-prompt { margin: 0 0 8px; font-size: 1rem; }
.ditto-zh {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.18rem;
  line-height: 1.55;
  margin: 0 0 8px;
}
.ditto-lab {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ditto-blank {
  margin: 4px 0 8px;
  min-height: 1.65rem;
  border-bottom: 1px solid #bbb;
}
.ditto-blank-lg { min-height: 2.1rem; }
.cloze-blank {
  display: inline-block;
  min-height: 1.1em;
  margin: 0 2px;
  border-bottom: 1px solid #111;
  vertical-align: baseline;
}
@media print {
  .top, .sheet-chrome, .sheet-link, .site-foot { display: none !important; }
  body.sheet-view { background: #fff; }
  body.sheet-view .wrap { max-width: none; padding: 0; }
  .pack-stage { padding: 0; }
  .pack-paper {
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-width: none;
  }
  .pack-paper:last-child {
    break-after: avoid !important;
    page-break-after: avoid !important;
  }
  .pack-head {
    break-after: avoid;
    page-break-after: avoid;
  }
  @page { size: letter; margin: 0.55in 0.65in 0.6in; }
}
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 8px;
}
@media (min-width: 720px) {
  .ops-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.ops-card {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 2px;
}
.ops-label { margin: 0; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ops-value { margin: 4px 0 0; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; }
.ops-table-wrap { overflow: auto; margin: 0 0 16px; }
.ops-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ops-table th, .ops-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ops-table th { color: var(--muted); font-weight: 650; }
.ops-row-btn {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
}
.ops-flags { display: grid; gap: 12px; margin: 0 0 24px; }
.ops-flag {
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.ops-flag.is-done { opacity: 0.72; }
.ops-fix {
  display: block;
  width: 100%;
  max-width: 36rem;
  min-height: 64px;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #111;
  font: inherit;
}
.ops-flag .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}
.legal h2 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal ul { margin: 0 0 16px; padding-left: 1.2em; }
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
}
.nav-link {
  color: #d0d0d0;
  text-decoration: none;
  min-height: 56px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
}
.nav-link:hover {
  color: #fff;
  background: transparent;
}
.nav-link.on {
  color: var(--gold);
  background: transparent;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.news-wrap { max-width: 48rem; }
body.landing {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --card: #ffffff;
  --gold: #ffd100;
  --cinnabar: #111111;
  --dark: #000000;
  background: #f0f0f0;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body.landing > .wrap,
body.landing > main {
  flex: 1 0 auto;
}
body.landing > .site-foot {
  margin-top: auto;
  flex-shrink: 0;
}
body.landing::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: max(0px, calc(50% - 28rem));
  right: max(0px, calc(50% - 28rem));
  width: auto;
  background: #fff;
  z-index: 0;
  pointer-events: none;
}
body.landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("../branding/mark-tile.svg?v=2");
  background-repeat: repeat;
  background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(
    to right,
    #000 calc(50% - 28rem),
    transparent calc(50% - 28rem),
    transparent calc(50% + 28rem),
    #000 calc(50% + 28rem)
  );
  mask-image: linear-gradient(
    to right,
    #000 calc(50% - 28rem),
    transparent calc(50% - 28rem),
    transparent calc(50% + 28rem),
    #000 calc(50% + 28rem)
  );
}
body.landing > * {
  position: relative;
  z-index: 1;
}
body.landing .top {
  max-width: none;
  margin: 0;
  padding: 0 28px;
  background: #000;
}
body.landing .brand {
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: none;
  color: #fff;
}
body.landing .brand-plate { background: var(--gold); padding: 2px; }
body.landing .nav-link { margin-left: 6px; }
body.landing .hero-mark {
  background: transparent;
  border-radius: 2px;
  box-shadow: 0 10px 28px rgba(27, 122, 106, 0.22);
}
body.landing .story-dock {
  background: #fff;
  color: var(--ink);
  border: 1px solid #111;
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  box-shadow: none;
}
body.landing .news-card.no-photo .news-card-copy { padding-top: 0; }
body.landing .news-card.is-lead.no-photo {
  padding-top: 16px;
}
body.landing .story-dock .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}
body.landing .story-chop {
  background: transparent;
  box-shadow: none;
}
body.landing .kicker {
  color: #111;
  letter-spacing: 0.12em;
  font-weight: 800;
}
.mast-sub {
  background: var(--gold);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 28px;
}
.desk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin: 0 0 8px;
  padding: 12px 0 16px;
  border-bottom: 2px solid #000;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.desk-left { margin: 0; font-weight: 800; color: #111; }
.desk-left:not([hidden])::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
.desk-left.is-out { color: var(--muted); }
.desk-left.is-out::before { background: var(--muted); }
.news-offer { margin: 0; color: var(--muted); font-size: inherit; }
.news-offer a { text-decoration: none; }
.news-offer a:hover { color: var(--ink); }
.desk-archived {
  margin: 16px 0 0;
  font-size: 0.88rem;
}
.desk-archived a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.desk-archived a:hover { color: var(--ink); }
.news-hero { margin: 8px 0 28px; }
.news-hero h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.05rem, 4.15vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 8px;
  font-weight: 800;
}
.news-hero .lead {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(0.92rem, 3.2vw, 1.2rem);
  margin: 0;
  color: var(--muted);
}
@media (max-width: 720px) {
  .news-hero h1,
  .news-hero .lead {
    white-space: normal;
  }
}
.news-grid {
  display: grid;
  gap: 0;
}
@media (min-width: 720px) {
  body.landing .news-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
  body.landing .news-card.is-lead {
    grid-column: 1 / -1;
  }
}
.corpus {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  margin: 0 0 28px;
}
.story-dock {
  margin: 0 0 20px;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  overflow: hidden;
  box-shadow: none;
  border: 1px solid #111;
}
.story-dock .add-form {
  margin: 0;
  padding: 10px 12px;
  gap: 0;
}
.offscreen {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.add-lead {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
}
.add-form { gap: 16px; }
.add-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
}
.add-slot input,
.add-slot textarea {
  flex: 1 1 12rem;
  min-width: 0;
  width: auto;
}
.add-slot textarea {
  flex: 1 1 12rem;
  align-self: center;
  field-sizing: fixed;
}
.add-or {
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.add-slot .card-act {
  margin: 0;
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
/* Desk Add — black slab, no gold underline */
.story-dock .add-slot .card-act,
body.landing .story-dock .add-slot .card-act {
  background: #000;
  color: #fff;
  box-shadow: none;
  border: 0;
  text-decoration: none;
}
.story-dock .add-slot .card-act:hover,
body.landing .story-dock .add-slot .card-act:hover {
  background: #111;
  color: #fff;
}
.story-dock .news-url input,
.story-dock .news-url textarea {
  background: #fff;
}

.version-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.version-card.is-main h2 {
  font-size: 1.35rem;
}
.version-card h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.simplify-kicker { margin: 28px 0 4px; }
.flagged-block {
  margin: 0 0 8px;
  padding: 4px 0 18px;
  border-bottom: 1px solid var(--line);
}
.flagged-block h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.flagged-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 8px 0 14px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.15rem;
}
.flagged-row span {
  color: var(--cinnabar);
  box-shadow: inset 0 -2px 0 var(--cinnabar);
}
.flash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 16rem;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  padding: 28px 18px;
  color: inherit;
  border-radius: 2px;
}
.flash .hanzi {
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 650;
  line-height: 1.2;
}
.flash .en { font-size: 1.05rem; }
.flash-note {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  max-width: 22rem;
}
.card-note {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--muted);
}
.card-edit {
  margin: 8px 0 0;
}
.card-edit .word-sheet-new {
  margin-bottom: 6px;
}
.study-edit {
  max-width: 22rem;
  margin: 0 auto 12px;
  text-align: left;
}
.study-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px;
}
.study-flag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.study-flag:hover { color: var(--ink); }
.study-h {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 10px;
}
.study-h::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
#desk > h1::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
.study-new {
  margin: 0 0 18px;
  padding: 14px 16px 16px;
  border: 1px solid #111;
  border-left: 4px solid var(--gold);
  background: #fff;
}
.study-new-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.study-new-kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
.study-create {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  margin: 0;
}
.study-create input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #111;
  font: inherit;
}
.study-create .card-act {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}
.study-rows { margin: 0 0 28px; }
.study-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.study-row-main {
  flex: 1 1 10rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.study-row-main b { font-size: 1.05rem; }
.study-row-main:hover b { box-shadow: inset 0 -3px 0 var(--gold); }
.study-row-main span { color: var(--muted); font-size: 0.85rem; }
.hsk-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.hsk-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #111;
  color: inherit;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}
.hsk-chip span { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.hsk-chip:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px 12px;
  margin: 0 0 8px;
}
.study-pack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 108px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
}
.study-pack b {
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}
.study-pack span {
  color: var(--muted);
  font-size: 0.9rem;
}
a.news-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.news-card > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.pill.on { border-color: var(--cinnabar); color: var(--cinnabar); cursor: default; }
.lesson-path { margin: 0 0 16px; }
.lesson-skip { margin: 12px 0 0; }
.deck-ask {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.deck-ask select {
  width: 100%;
  min-height: 44px;
  margin: 8px 0 12px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1;
}
.page-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}
.page-meta:empty { display: none; }
.wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
h1 {
  font-size: 1.7rem;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.lead, .muted { color: var(--muted); }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 12px;
  min-height: 72px;
}
.stat b { display: block; font-size: 1.3rem; }
.stat span { color: var(--muted); font-size: 0.8rem; }
.stages { display: grid; gap: 8px; margin: 16px 0 24px; }
.stage {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 44px;
}
.stage.open { border-color: var(--cinnabar); }
.stage.done { border-color: var(--ok); }
.stage.locked { opacity: 0.5; }
.stage small { color: var(--muted); }
.stage .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}
.btn[disabled] { opacity: 0.45; cursor: default; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
  line-height: 1;
  box-sizing: border-box;
  vertical-align: middle;
}
.prompt {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 16px 18px;
  min-height: 12rem;
}
.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
.hanzi {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(3.4rem, 18vw, 5.2rem);
  line-height: 1.1;
  margin: 8px 0 6px;
  font-weight: 500;
}
.en { font-size: 1.15rem; margin: 0 0 8px; }
.hint { color: var(--muted); min-height: 1.3em; }
.row {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.row-2 { grid-template-columns: 1fr 1fr; }
.row-tones { grid-template-columns: repeat(5, 1fr); }
.syl-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.syl-char {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.8rem;
  text-align: center;
}
.choice, .tone, .ime-pick, .play {
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  color: var(--ink);
}
.choice {
  font-size: 1.7rem;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.tone { padding: 8px 4px; }
.tone b { display: block; font-size: 1.1rem; }
.tone span { color: var(--muted); font-size: 0.72rem; }
.choice.ok, .ime-pick.ok, .tone.ok { border-color: var(--ok); background: #eef6f1; }
.choice.bad, .ime-pick.bad, .tone.bad { border-color: var(--bad); background: #f8ecec; }
.pinyin {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.ime-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ime-pick {
  min-width: 48px;
  padding: 8px 12px;
  font-size: 1.4rem;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
.bar {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}
.feedback {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
}
.feedback.pass { border-color: var(--ok); }
.feedback.fail { border-color: var(--bad); }
.speak-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.story-box { font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.story-line { margin: 0 0 10px; line-height: 2; }
.tok {
  display: inline;
  margin: 0;
  padding: 4px 1px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}
.tok.punct { cursor: default; min-height: 0; padding: 0; }
.tok.target { color: var(--cinnabar); }
.tok.reading {
  background: #ffe96a;
  border-radius: 2px;
  box-shadow: 0 0 0 2px #ffd100;
}
.syl.reading {
  background: #ffd100;
  color: #111;
  border-radius: 2px;
}
.story-line.reading { background: transparent; }
.tok.unknown {
  color: var(--cinnabar);
  box-shadow: inset 0 -2px 0 var(--cinnabar);
}
.tok.hole {
  display: inline-block;
  min-width: 2.4rem;
  border-bottom: 2px solid var(--cinnabar);
  color: var(--cinnabar);
  cursor: default;
}
.tok.filled { color: var(--ok); }
.gloss {
  min-height: 2.4em;
  margin: 8px 0 16px;
  color: var(--muted);
}
.word-tip {
  position: fixed;
  z-index: 40;
  max-width: min(22rem, calc(100vw - 24px));
  padding: 10px 12px;
  background: var(--dark);
  color: var(--cream);
  border-radius: 2px;
  font-size: 0.98rem;
  line-height: 1.4;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
.word-tip[hidden] { display: none; }
.reader-dock {
  position: sticky;
  top: 0;
  z-index: 12;
  margin: 0 0 10px;
  padding: 10px 10px 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 8px 18px rgba(28, 23, 18, 0.08);
}
.reader-dock .rate { margin: 0 0 10px; padding: 8px; }
.reader-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px;
}
.reader-controls .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}
.reader-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.reader-tools {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 8px 0 0;
}
.reader-tools .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}
.reader-tools .btn.is-on {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}
.cost-ask {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--card);
}
.cost-ask p { margin: 0 0 12px; }
.cost-ask-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.reader-pane {
  max-height: min(70vh, calc(100dvh - 16rem));
  overflow: auto;
  overscroll-behavior: auto;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 12px 12px 20px;
  margin: 0 0 16px;
}
.line-play { display: inline; margin-left: 8px; min-height: 44px; }
.line-en {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.pick-list { display: grid; gap: 8px; margin: 16px 0 24px; }
.pick-row { text-decoration: none; }
.complete-line { font-size: 1.35rem; line-height: 2; margin: 12px 0 18px; }
.rate {
  display: grid;
  gap: 4px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--card);
}
.rate input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--cinnabar);
}
.news-mast {
  background: var(--dark);
  color: var(--cream);
  padding: 22px 16px 24px;
  margin: -20px -16px 20px;
}
.news-date {
  margin: 0 0 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nav-muted);
  font-size: 0.78rem;
}
.news-mast h1 {
  font-size: 2rem;
  margin: 0 0 6px;
}
.news-tag { margin: 0; color: #cfc6ba; }
.news-actions { display: grid; gap: 10px; margin: 0 0 28px; }
.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.lang-btn {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 2px;
}
.lang-btn.on {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}
.lang-btn.dim { opacity: 0.55; }
.story-box.lang-latin .tok { margin-right: 0.28em; }
.story-box.lang-latin .tok.punct { margin-right: 0; margin-left: -0.12em; }
.news-url { display: grid; gap: 8px; }
.news-url input,
.news-url textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}
.news-url textarea {
  min-height: 44px;
  height: auto;
  max-height: 10rem;
  line-height: 1.35;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
  field-sizing: content;
}
.news-url input:focus,
.news-url textarea:focus {
  outline: 2px solid var(--gold);
  border-color: #111;
}
.news-section {
  font-size: 1.05rem;
  margin: 28px 0 8px;
}
.news-feed { display: grid; gap: 0; }
.news-links .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}
.news-card {
  position: relative;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.news-card-body { min-width: 0; }
.news-card-copy { min-width: 0; }
.news-card-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
}
.card-act {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  margin: 0 -10px;
  border: 0;
  background: none;
  color: #111;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.card-act.quiet {
  color: var(--muted);
  font-weight: 500;
  box-shadow: none;
}
.card-act:hover { color: #111; background: var(--gold); }
.beginner-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 0;
}
.beginner-tools .card-act {
  margin: 0;
}
body.landing .news-card {
  display: grid;
  gap: 20px;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
body.landing .news-card.is-lead {
  padding: 8px 0 24px;
  border-bottom: 2px solid #000;
  box-shadow: inset 0 3px 0 var(--gold);
  margin-bottom: 4px;
  grid-template-columns: 1fr;
  gap: 12px;
}
body.landing .news-card.is-lead .news-thumb {
  grid-row: auto;
}
body.landing .news-card.is-lead .news-photo {
  aspect-ratio: auto;
  max-height: 320px;
  min-height: 0;
  height: auto;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
}
body.landing .news-card.is-lead h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 800;
}
body.landing .news-thumb {
  display: block;
  min-width: 0;
}
body.landing .news-card-body {
  display: block;
  padding: 0;
  color: inherit;
  text-decoration: none;
}
@media (min-width: 720px) {
  body.landing .news-card:not(.is-lead) {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }
  body.landing .news-card:not(.is-lead) .news-thumb {
    grid-row: auto;
  }
  body.landing .news-card:not(.is-lead) .news-photo {
    aspect-ratio: auto;
    max-height: 220px;
    min-height: 0;
  }
}
body.landing .news-photo {
  margin: 0;
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  background: #f3f3f3;
}
body.landing .news-lede {
  margin: 0;
  font-size: 1.12rem;
  color: var(--ink);
}
body.landing .news-card h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.035em;
  margin: 0 0 8px;
  font-weight: 800;
}
body.landing .news-card.is-lead h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
body.landing .news-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 4px 0 0;
}
body.landing .wrap.news-wrap { padding: 20px 28px 96px; }
.news-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.news-card h2 {
  font-size: 1.25rem;
  margin: 0 0 6px;
  line-height: 1.3;
}
.news-card h2.news-en { color: var(--ink); }
.news-photo {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
  margin: 0 0 10px;
  background: var(--line);
}
.article-photo {
  margin: 0 0 16px;
}
.article-photo .news-photo {
  max-height: 220px;
}
.news-en { margin: 0 0 8px; color: var(--ink); }
.news-lede {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.news-lede .tok {
  font-size: inherit;
  min-height: 0;
  padding: 0 1px;
  cursor: help;
}
.news-source {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.news-source a,
.news-source .text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  color: var(--cinnabar);
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
}
.news-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.band-bar {
  margin: 0 0 20px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.band-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.band-source {
  margin: 0 0 16px;
}
.band-source .band-kicker { display: block; }
.band-source-link {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.band-source-link:hover { color: var(--ink); }
.band-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  align-items: start;
}
.band-col { min-width: 0; }
@media (max-width: 560px) {
  .band-split { grid-template-columns: 1fr; }
}
.band-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.band-gap {
  width: 1px;
  align-self: stretch;
  margin: 6px 6px 6px 8px;
  background: var(--line);
}
.band-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}
.band-tool:hover {
  background: var(--ink);
  color: var(--paper, #fff);
}
.band {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.band.on {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
  cursor: default;
}
.band.is-fetch:hover {
  border-color: var(--gold);
  color: #111;
}
.band.dim {
  opacity: 0.45;
  cursor: default;
}
.band.is-fetch {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}
.article-body { margin: 18px 0 24px; }
.sent {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sent-zh {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.2rem;
  line-height: 1.7;
}
.sent-en-btn {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.sent-en {
  grid-column: 1 / -1;
  color: var(--muted);
  margin: 0;
}
.write-wait {
  width: 64px;
  height: 80px;
  margin: 2px 0 14px;
}
.write-wait svg {
  width: 100%;
  height: 100%;
  display: block;
}
.write-wait path {
  fill: none;
  stroke: var(--cinnabar);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ink-write 3.6s ease-in-out infinite;
}
.write-wait path:nth-child(1) { animation-delay: 0s; }
.write-wait path:nth-child(2) { animation-delay: 0.18s; }
.write-wait path:nth-child(3) { animation-delay: 0.36s; }
.write-wait path:nth-child(4) { animation-delay: 0.54s; }
.write-wait path:nth-child(5) { animation-delay: 0.78s; }
@keyframes ink-write {
  0%, 3% { stroke-dashoffset: 1; opacity: 1; }
  20% { stroke-dashoffset: 0; opacity: 1; }
  62% { stroke-dashoffset: 0; opacity: 1; }
  76% { stroke-dashoffset: 0; opacity: 0; }
  78%, 100% { stroke-dashoffset: 1; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .write-wait path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
@media (min-width: 720px) {
  .wrap { padding-top: 32px; }
  .top { padding-left: 28px; padding-right: 28px; }
  .news-mast { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .news-wrap { max-width: 48rem; }
}
body.landing .news-wrap { max-width: 48rem; }
.article-hero { margin: 0 0 18px; }
.article-hero .news-photo {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  background: #f3f3f3;
}
.word-sheet-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}
.word-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 51;
  background: #fff;
  color: #111;
  padding: 10px 20px 28px;
  max-height: 78vh;
  overflow: auto;
  border-top: 3px solid var(--gold);
}
.word-sheet-handle {
  width: 40px;
  height: 4px;
  margin: 6px auto 14px;
  border-radius: 2px;
  background: #ddd;
}
.word-sheet-kicker {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.word-sheet-hanzi {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
}
.word-sheet-py {
  margin: 0 0 4px;
  color: #555;
}
.word-sheet-en {
  margin: 0 0 8px;
  font-weight: 650;
}


.word-sheet-more {
  margin: 0 0 12px;
}
.word-sheet-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.word-sheet-more-btn:hover,
.word-sheet-more-btn:focus-visible {
  color: #111;
  outline: none;
}
.word-sheet-more-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.word-sheet-senses {
  margin: 8px 0 0;
  padding: 0 0 0 1.1rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.45;
}
.word-sheet-senses li {
  margin: 0 0 4px;
}

.word-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 4px;
}
.word-sheet-head-main {
  min-width: 0;
  flex: 1;
}
.word-sheet-head .word-sheet-hanzi {
  margin: 0;
}

.word-sheet-hanzi-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.word-sheet-play.audio-btn {
  min-height: 36px;
  min-width: 36px;
  padding: 0 6px;
  color: #666;
  font-size: 0.85rem;
  opacity: 0.85;
}
.word-sheet-play.audio-btn:hover,
.word-sheet-play.audio-btn:focus-visible {
  color: #111;
  opacity: 1;
  outline: none;
}
.word-sheet-play.audio-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.word-sheet-play.audio-btn.is-on {
  color: var(--gold);
}
.word-sheet-dicts {
  flex: 0 0 auto;
  margin: 2px 0 0;
  max-width: 58%;
}
.word-sheet-dicts .word-sheet-kicker {
  text-align: right;
}
.word-sheet-dict-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}
.word-sheet-dict {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 2px;
  color: #555;
  background: #f7f7f7;
  border: 1px solid #e8e8e8;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.word-sheet-dict:hover,
.word-sheet-dict:focus-visible {
  color: #111;
  background: var(--gold);
  border-color: var(--gold);
  outline: none;
}
.word-sheet-dict-ico {
  display: block;
  flex: 0 0 auto;
}
.word-sheet-dict-name {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.word-sheet-memo {
  margin: -4px 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
}
.word-sheet-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.word-sheet-reset:hover { background: #f5f5f5; }
.word-sheet-sent {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.word-sheet-sz {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.word-sheet-sz .ws-live {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.word-sheet-sz .ws-live.on { font-weight: 700; }
.word-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 16px 0 0;
}
.word-sheet-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  background: var(--gold);
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.word-sheet-select,
.word-sheet-new {
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #111;
  background: #fff;
  font: inherit;
}
.word-sheet-other {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #ddd;
  background: #fff;
  color: #555;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.word-sheet-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.word-sheet-report { margin: 0 0 12px; }
.word-sheet-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.word-sheet-kinds button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #111;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.word-sheet-kinds button.on {
  background: var(--gold);
  border-color: var(--gold);
}
.study-report {
  margin: 12px 0 0;
  max-width: 22rem;
  text-align: left;
}
.study-note {
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #111;
  font: inherit;
}
.word-sheet-report input {
  width: 100%;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #111;
  font: inherit;
}
.word-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
body.sheet-open { overflow: hidden; }
.audio-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #000;
  color: #fff;
  border-top: 3px solid var(--gold);
}
.audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}
.audio-btn:disabled { opacity: 0.35; }
.audio-play {
  background: var(--gold);
  color: #111;
  min-width: 64px;
  font-weight: 800;
}
.audio-btn.is-on { color: var(--gold); }
.audio-bar .reader-status {
  margin: 0;
  flex: 1;
  min-width: 4.5rem;
  font-size: 0.75rem;
  color: #c8c8c8;
  font-weight: 700;
}
.audio-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #aaa;
  font-size: 0.72rem;
  font-weight: 700;
}
.audio-rate input { width: 72px; accent-color: var(--gold); }
.reader-pane { padding-bottom: 20px; }
body:has(.audio-bar) .wrap { padding-bottom: 120px; }
@media (max-width: 719px) {
  html, body { overflow-x: hidden; }
  .top {
    padding: 0 max(12px, env(safe-area-inset-left, 0px)) 0 max(12px, env(safe-area-inset-right, 0px));
    min-height: 52px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .top.menu-open { flex-wrap: wrap; }
  body.landing .top { padding: 0 max(12px, env(safe-area-inset-left, 0px)) 0 max(12px, env(safe-area-inset-right, 0px)); }
  .brand-row { min-height: 52px; flex: 1; }
  .brand { gap: 8px; font-size: 1rem; }
  body.landing .brand { font-size: 1rem; }
  .brand-plate img { width: 28px; height: 28px; }

  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-top: 1px solid #222;
    padding: 6px 0 10px;
  }
  .top.menu-open .nav { display: flex; }
  .nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding: 0 4px;
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    justify-content: flex-start;
  }
  .wrap { padding: 16px max(16px, env(safe-area-inset-right, 0px)) 88px max(16px, env(safe-area-inset-left, 0px)); }
  body.landing .wrap.news-wrap { padding: 12px max(16px, env(safe-area-inset-right, 0px)) 88px max(16px, env(safe-area-inset-left, 0px)); }

  /* desk dock  -  stack */
  .add-slot {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
  }
  .add-slot textarea,
  .add-slot input {
    width: 100%;
    flex: none;
    min-width: 0;
  }
  .add-slot .card-act {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* hero type — headline dominates segment */
  .news-hero {
    margin: 4px 0 12px;
  }
  .news-hero .kicker {
    margin: 0 0 4px;
    font-size: 0.7rem;
  }
  .news-hero h1,
  .news-hero .lead {
    white-space: normal !important;
    overflow-wrap: anywhere;
    max-width: 100%;
  }
  .news-hero h1 {
    font-size: clamp(1.55rem, 7vw, 1.85rem);
    line-height: 1.12;
    margin: 0 0 6px;
  }
  .news-hero .lead { font-size: 0.9rem; line-height: 1.35; }

  /* CTAs — scoped fat only (not global .btn / chrome) */
  .story-dock .add-slot .card-act {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    justify-content: center;
    align-items: center;
    line-height: 1;
    min-height: 44px;
    display: inline-flex;
    background: #000;
    color: #fff;
    box-shadow: none;
  }
  .sheet-tools .btn {
    width: 100%;
    justify-content: center;
    align-items: center;
    line-height: 1;
    min-height: 44px;
  }

  /* reader */
  .speak-row { grid-template-columns: 1fr; }
  .band-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .band-tool { flex: 1 1 auto; min-height: 40px; justify-content: center; }
  .band {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.75rem;
  }
  .story-line,
  .tok { overflow-wrap: anywhere; }
  .reader-tools { flex-wrap: wrap; }
  .reader-tools .btn { width: auto; min-width: 44px; }

  /* sheet worksheet  -  screen */
  body.sheet-view .wrap { padding: 12px 12px 88px; max-width: 100%; }
  .pack-paper {
    max-width: 100%;
    margin: 0 0 16px;
    padding: 16px 14px;
    box-sizing: border-box;
  }
  .pack-mast { flex-wrap: wrap; gap: 6px 10px; }
  .sheet-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .sheet-tools { flex-direction: row; flex-wrap: wrap; }
  .sheet-tools .btn { flex: 1 1 auto; }
  .pack-stage { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* global insurance */
  img, svg, video, canvas { max-width: 100%; height: auto; }
  table { max-width: 100%; }
  .desk-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 4px 0 8px;
    margin: 0 0 4px;
    text-transform: none;
    letter-spacing: 0;
  }
  .news-offer { overflow-wrap: anywhere; }

  .audio-bar { gap: 4px; }
  .audio-btn {
    min-width: 44px;
    padding: 0 6px;
    font-size: 0.7rem;
  }
  .audio-play { min-width: 56px; }
  .audio-rate { width: 100%; }
  .audio-rate input { flex: 1; }
  .study-row { align-items: flex-start; }
  .word-sheet { padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .reader-pane { max-height: min(62vh, calc(100dvh - 14rem)); }
}
@media (max-width: 430px) {
  .top {
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  body.landing .top {
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .news-hero {
    margin: 2px 0 10px;
  }
  .news-hero .kicker {
    letter-spacing: 0.04em;
    font-size: 0.65rem;
  }
  .news-hero h1 {
    font-size: clamp(1.5rem, 6.8vw, 1.75rem);
    line-height: 1.12;
  }
  .news-hero .lead {
    font-size: 0.88rem;
  }
  .add-slot .card-act,
  .story-dock .add-slot .card-act {
    margin-left: 0;
    margin-right: 0;
  }
  .site-foot {
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    font-size: 0.75rem;
    gap: 12px;
  }
  /* empty desk — "Nothing here yet." */
  #news-list > .muted {
    padding: 0.85rem 0 0.35rem;
    font-size: 0.92rem;
  }
}
.word-sheet { z-index: 51; }
.write-veil,
body.landing > .write-veil {
  position: fixed !important;
  inset: 0 !important;
  z-index: 400 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}
.write-panel { display: none; }
.write-card {
  position: relative;
  z-index: 1;
  width: min(22rem, 100%);
  background: #fff;
  color: #111;
  border: 1px solid #111;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.write-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #000;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.write-card-body { padding: 18px 16px 16px; }
.write-card-body h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.write-plan {
  margin: 0 0 4px;
  font-weight: 800;
}
.write-line { margin: 0 0 8px; }
.write-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.write-card-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: #000;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
}

/* Your pages | Desk — editorial underline (not pill bar) */
#desk-mode.desk-mode,
.desk-mode#desk-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 1.5rem;
  width: auto;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line, #ddd);
  border-radius: 0;
  overflow: visible;
  box-sizing: border-box;
  background: none;
}
#desk-mode button,
.desk-mode button {
  appearance: none;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 44px;
  margin: 0 0 -1px;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none !important;
  color: var(--muted, #777);
  font-family: Figtree, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  cursor: pointer;
}
#desk-mode button + button,
.desk-mode button + button {
  border-left: 0 !important;
}
#desk-mode-beginner {
  margin-left: auto;
}
#desk-mode button.is-on,
#desk-mode button[aria-selected="true"],
.desk-mode button.is-on,
.desk-mode button[aria-selected="true"] {
  background: none !important;
  color: var(--ink, #111) !important;
  border-bottom-color: var(--gold, #ffd100);
}
#desk-mode button:hover,
.desk-mode button:hover {
  color: var(--ink, #111);
  background: none !important;
}
#story-dock[hidden] { display: none !important; }

.desk-empty {
  margin: 4px 0 0;
}
.desk-empty-add,
.desk-add-chip,
.desk-add-dismiss {
  appearance: none;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 2px;
}
.desk-empty-add {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: 100%;
  justify-content: center;
  background: #fff;
  color: #111;
  border-color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: 0;
  padding: 6px 0;
  min-height: 0;
  font-weight: 700;
  font-size: 0.92rem;
}
.desk-empty-add:hover { background: transparent; color: #111; }
.desk-add-row { margin: 2px 0 8px; }
.desk-add-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0 10px;
}
.desk-add-dismiss {
  background: transparent;
  color: var(--muted);
  border-color: var(--line, #ccc);
  font-weight: 600;
  min-height: 32px;
  font-size: 0.78rem;
}
@media (max-width: 719px) {
  #desk {
    display: flex;
    flex-direction: column;
  }
  /* Tabs → Add dock (when open) → list. Meta/offer last. */
  #desk-mode { order: 1; }
  #desk #desk-add-panel { order: 2; }
  #desk #news-list { order: 3; }
  #desk #news-err { order: 4; }
  #desk .desk-meta { order: 5; }
  #desk-add-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 8px;
  }
  #desk-add-panel[hidden] { display: none !important; }
  #desk-add-actions:empty { display: none; }
  #desk .desk-meta {
    margin: 10px 0 0;
    padding: 8px 0 0;
    gap: 2px;
    font-size: 0.78rem;
    border-bottom: 0;
    border-top: 1px solid var(--line, #ddd);
  }
  #desk .desk-meta:empty,
  #desk .desk-meta:not(:has(:not([hidden]))) {
    display: none;
  }
  #desk #news-err,
  #desk #news-err.hint {
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  #desk #news-err:empty {
    display: none;
  }
  #news-list {
    margin-top: 0;
    padding-top: 0;
  }
  #news-list > .muted,
  #news-list > .desk-empty {
    margin: 2px 0 0;
    padding: 0;
  }
  .desk-mode {
    margin-bottom: 6px !important;
  }
  body.landing .wrap.news-wrap {
    padding-top: 8px;
    padding-bottom: 72px;
  }
  .desk-mode {
    display: flex;
    width: auto;
    margin: 0 0 8px;
  }
  .desk-mode button {
    flex: 1 1 50%;
    min-height: 40px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: pointer;
  }
  .desk-mode button + button {
    border-left: 1px solid #111;
  }
  .desk-mode button.is-on,
  .desk-mode button[aria-selected="true"] {
    background: none !important;
    color: var(--ink, #111) !important;
    border-bottom-color: var(--gold, #ffd100);
  }
  /* Hide paste/Add dock until intentional open on mobile */
  body.landing #desk:not(.desk-add-open) .story-dock,
  #desk:not(.desk-add-open) .story-dock {
    display: none;
  }
  #desk.desk-add-open .story-dock,
  body.landing #desk.desk-add-open .story-dock {
    display: block;
    margin: 0 0 8px;
  }
}
@media (min-width: 720px) {
  .desk-mode { display: inline-flex; width: auto; }
  .desk-add-row { display: none !important; }
  .desk-add-actions { display: none !important; }
  #desk-add-panel,
  #desk-add-panel[hidden] {
    display: contents !important;
  }
  body.landing #desk:not(.desk-add-open) .story-dock,
  #desk:not(.desk-add-open) .story-dock {
    display: block !important;
  }
}

/* Desk tags v1 */
.desk-tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}
.tag-chip {
  appearance: none;
  border: 1px solid var(--line, #ccc);
  background: #fff;
  color: var(--ink, #111);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 2px;
  cursor: pointer;
}
.tag-chip.is-on,
.tag-chip-static.is-on {
  border-color: var(--cinnabar, #b44);
  color: var(--cinnabar, #b44);
  background: #fff8f6;
}
.tag-chip-static {
  cursor: default;
  display: inline-flex;
  align-items: center;
}
.tag-chip.is-custom,
.tag-chip-static.is-custom {
  border-style: dashed;
  font-weight: 500;
  color: var(--muted, #666);
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 0;
}
.article-tags {
  margin: 12px 0 18px;
}
.article-tags .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}
.tag-add-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 6px;
}
.tag-add-form input {
  flex: 1 1 160px;
  min-width: 140px;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line, #ccc);
  border-radius: 2px;
}
.ops-retag {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
  margin: 0 0 6px;
  max-width: 280px;
}
.ops-tag {
  font-size: 0.72rem;
  color: var(--muted, #666);
  white-space: nowrap;
}


/* Archive — quiet editorial control (Your pages only) */
.card-tags-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin: 8px 0 0;
  flex-wrap: wrap;
}
.card-tags-row .card-tags {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.card-tags-row .archive-btn {
  margin-left: auto;
  flex: 0 0 auto;
}
.card-actions {
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.archive-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  min-height: 40px;
  box-sizing: border-box;
}
.archive-btn .archive-ico { flex: 0 0 auto; opacity: 0.85; }
.archive-btn span {
  box-shadow: inset 0 -1px 0 transparent;
  transition: color 0.15s ease, box-shadow 0.15s ease;
}
.archive-btn:hover,
.archive-btn:focus-visible {
  color: var(--ink);
  outline: none;
}
.archive-btn:hover span,
.archive-btn:focus-visible span {
  box-shadow: inset 0 -2px 0 var(--gold);
}
.reader-archive {
  margin: 10px 0 14px;
}
.reader-archive.is-done { margin-top: 6px; }
.archive-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}
.archive-link:hover {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.desk-archived a {
  font-weight: 650;
}
.desk-archived a:hover {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.ops-gloss { font-variant-numeric: tabular-nums; font-weight: 650; }
.ops-gloss.is-good { color: var(--ok); }
.ops-gloss.is-ok { color: var(--ink); }
.ops-gloss.is-low { color: var(--bad); }
