﻿: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;
  --gold-trim: 2px;
  --gold-trim-strong: 3px;
}
/* Mingby gold trim utilities (Agency lock) */
.trim-underline.is-on { box-shadow: inset 0 -2px 0 var(--gold); }
.trim-kicker::after { content:""; display:block; width:40px; height:2px; margin-top:10px; background:var(--gold); }
.trim-sheet { box-shadow: inset 0 3px 0 var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
* { box-sizing: border-box; }
html {
  interpolate-size: allow-keywords;
  background: #f0f0f0;
}
html, body { margin: 0; min-height: 100%; }
/* cjkfont1: system CJK before Google Noto SC — no Wingdings-like flash */
body {
  font-family: "Figtree", "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: #f0f0f0;
  color: var(--ink);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
body > .wrap,
body > main {
  flex: 1 0 auto;
}
body > .site-foot {
  margin-top: auto;
  flex-shrink: 0;
}
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: #fffdf8;
  padding: 0;
  border: 2.5px solid #e0b13a;
  border-radius: 8px;
  line-height: 0;
  overflow: hidden;
}
.brand-plate img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  background: transparent;
}
.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:not(.news-wrap),
.auth-page .auth-card {
  max-width: 24rem;
}
body.auth-page.landing .news-wrap {
  max-width: 48rem;
}
.auth-hero {
  margin: 8px 0 28px;
}
.auth-hero h1 {
  max-width: 20em;
  font-size: clamp(1.4rem, 4.15vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0 0 8px;
  font-weight: 800;
  text-align: left;
}
.auth-hero .lead {
  max-width: 28em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  text-align: left;
}
.auth-actions {
  max-width: 22rem;
  margin: 0 0 56px;
}
.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: left;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.page-meta:empty {
  display: none;
}
.auth-stack {
  display: grid;
  gap: 10px;
}
.auth-stack .btn,
.auth-stack .text-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.auth-social {
  gap: 10px;
  background: #fff;
  color: #111;
  border: 1px solid #111;
}
.auth-social:hover {
  background: var(--gold);
  color: #111;
}
.auth-logo {
  flex: none;
  display: block;
}
.auth-stack .btn:not(.auth-social) {
  background: #000;
  color: #fff;
  border: 0;
}
.auth-stack .btn:not(.auth-social):hover {
  background: var(--gold);
  color: #111;
}
.auth-stack .text-btn {
  background: none;
  border: 0;
  color: #111;
  font-weight: 650;
  box-shadow: inset 0 -2px 0 transparent;
}
.auth-stack .text-btn:hover {
  box-shadow: inset 0 -2px 0 var(--gold);
}
.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; }
.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-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;
}
.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(--dark);
  color: var(--cream);
}
.plan-compare {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}
@media (min-width: 720px) {
  .plan-compare { grid-template-columns: 1fr 1fr 1fr; }
}
.plan-col {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.plan-col.on { border-color: var(--cinnabar); }
.plan-col h3 { margin: 0 0 4px; font-size: 1rem; }
.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 10px; }
.plan-col .plan-price span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.plan-col ul { margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.plan-col li { margin: 0 0 4px; }
.plan-col .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;
}
.plan-now {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 10px 0;
}
.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: 10px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex: 0 0 auto;
}
.sheet-tools-bottom {
  margin: 16px 0 0;
  justify-content: flex-end;
}
.sheet-act {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.sheet-act-back {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}
.sheet-act-back:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}
.sheet-act-print {
  background: #000;
  color: #fff;
  border: 0;
}
.sheet-act-print:hover {
  background: var(--gold);
  color: #111;
}
.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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", 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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", 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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", 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, .sheet-tools, .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);
}
body.landing .nav-link { margin-left: 6px; }
.news-wrap { max-width: 48rem; }
/* deskdock1: restore centered content column */
.wrap {
  max-width: 48rem;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* deskdock1: free-stories counter */
.desk-left {
  display: block;
  width: 100%;
  margin: 0;
  font-weight: 800;
  color: #111;
  text-align: center;
}
.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); }
.article-left {
  margin: 0 0 1em;
  text-align: center;
}
.article-left a {
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.article-left a:hover {
  color: #111;
}
.desk-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px 18px;
  margin: 0 0 1em;
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
}

/* deskbak2: restore bak landing kicker gold square + Add dock chrome */
body.landing .kicker {
  color: #111;
  letter-spacing: 0.12em;
  font-weight: 800;
}
body.landing .kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
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 .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;
}
.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;
  }
}

body.landing {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --card: #ffffff;
  --gold: #ffd100;
  --gold-trim: 2px;
  --gold-trim-strong: 3px;
  --cinnabar: #111111;
  --dark: #000000;
}
body:not(.sheet-view)::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:not(.sheet-view)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("../branding/mark-tile.svg?v=logo12");
  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)
  );
}
@media (max-width: 900px) {
  body:not(.sheet-view)::before { opacity: 0; }
}
body:not(.sheet-view) > * {
  position: relative;
  z-index: 1;
}
body:not(.sheet-view) > .top {
  position: sticky;
  z-index: 60;
  overflow: visible;
}
body:not(.sheet-view) > .word-sheet-back {
  z-index: 50;
  position: fixed;
}
body:not(.sheet-view) > .word-sheet {
  z-index: 51;
  position: fixed;
}
body.sheet-open > .top {
  z-index: 40;
}
body.sheet-open > .word-sheet-back {
  z-index: 70;
  position: fixed;
}
body.sheet-open > .word-sheet {
  z-index: 71;
  position: fixed;
}
body:not(.sheet-view) > .write-veil {
  z-index: 400;
  position: fixed;
}
body.landing .top {
  max-width: none;
  margin: 0;
  padding: 0 28px;
  background: #000;
  overflow: visible;
}
body.landing .brand {
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: none;
  color: #fff;
}
body.landing .brand-plate { background: #fffdf8; padding: 0; border: 2.5px solid #e0b13a; border-radius: 8px; overflow: hidden; }
.brand-plate img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  background: transparent;
}

@media (max-width: 719px) {
  html, body { overflow-x: hidden; }
  .menu-btn { display: inline-flex; }
  /* Hamburger: compact panel like desktop Account dropdown */
  .top {
    overflow: visible;
  }
  .nav {
    display: none;
    position: absolute;
    left: auto;
    right: max(12px, env(safe-area-inset-right, 0px));
    top: calc(100% - 4px);
    width: auto;
    min-width: 12rem;
    max-width: calc(100vw - 24px);
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    border: 1.5px solid #e0b13a;
    border-radius: 2px;
    padding: 10px 0 8px;
    background: #fffdf8;
    z-index: 80;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  }
  .top.menu-open .nav { display: flex; }
  .nav-link,
  body.landing .nav-link {
    display: flex;
    align-items: center;
    min-height: 40px;
    width: auto;
    padding: 0 12px;
    margin: 0;
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #111;
    justify-content: flex-start;
    box-shadow: none;
  }
  .nav-link.on,
  .nav-link:hover,
  body.landing .nav-link.on,
  body.landing .nav-link:hover {
    color: #111;
    background: transparent;
    box-shadow: none;
  }
  .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 — one line */
  .add-slot {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .add-slot textarea,
  .add-slot input {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    resize: none;
    overflow: hidden;
    line-height: 1.25;
  }
  .add-slot .card-act {
    width: auto;
    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: auto;
    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 .sheet-act {
    flex: 1 1 auto;
    min-width: 9.5rem;
  }

  /* reader */
  .speak-row { grid-template-columns: 1fr; }
  .band-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .band-col:first-child .band-row {
    flex-wrap: nowrap;
    gap: 0 2px;
  }
  .band-tool { flex: 0 0 auto; min-height: 44px; }
  .band {
    min-height: 44px;
    padding: 0 6px;
    font-size: 0.7rem;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .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-bottom { justify-content: flex-start; }
  .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: 8px 16px calc(28px + env(safe-area-inset-bottom, 0px));
    max-height: min(74vh, calc(100dvh - 4.5rem));
  }
  .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 > .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 .sheet-act {
  min-width: 7.5rem;
}
.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;
  align-items: stretch;
  gap: 0.65rem;
  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;
  position: relative;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 44px;
  margin: 0 0 -1px;
  padding: 0.65rem 0.4rem;
  border: 0;
  border-bottom: 0;
  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;
  box-shadow: none;
}
#desk-mode button + button,
.desk-mode button + button {
  border-left: 0 !important;
}
#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: 0 !important;
  box-shadow: none !important;
}
#desk-mode button.is-on::after,
#desk-mode button[aria-selected="true"]::after,
.desk-mode button.is-on::after,
.desk-mode button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: -1px;
  height: 3px;
  background: var(--gold);
  pointer-events: none;
}
#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-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: 1px solid var(--line, #ddd);
}
#desk-toolbar #desk-mode.desk-mode,
.desk-toolbar .desk-mode {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  border: 0 !important;
}
.desk-story-add {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  padding: 0 0 8px;
}
.desk-story-add[hidden] {
  display: none !important;
}
.desk-story-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 2px;
  background: var(--gold);
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}
.desk-story-add-btn:hover {
  background: #e0b13a;
  color: #111;
}
.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 → tag filters → Add dock → list. Meta last. */
  #desk-toolbar { order: 1; }
  #desk > #desk-mode { order: 1; }
  .desk-toolbar #desk-mode { order: 0; }
  .desk-toolbar #desk-story-add {
    order: 1;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    padding: 0;
  }
  #desk-tag-filters { order: 2; }
  #desk #desk-add-panel { order: 3; }
  #desk .desk-meta { order: 4; }
  #desk #news-list { order: 5; }
  #desk #news-err { order: 6; }
  #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 {
    display: flex;
    justify-content: center;
    margin: 0 0 1em;
    padding: 0;
    gap: 2px;
    font-size: 0.78rem;
    border: 0;
    text-align: center;
  }
  #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-toolbar {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0 0 10px;
  }
  .desk-toolbar .desk-mode,
  .desk-toolbar #desk-mode {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    gap: 0.1rem;
    position: relative;
    z-index: 1;
  }
  /* Beat base #desk-mode button (0.95rem / 44px) — ID specificity required */
  .desk-toolbar #desk-mode button,
  #desk-mode button,
  .desk-toolbar .desk-mode button,
  .desk-mode button {
    flex: 0 1 auto;
    min-height: 36px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-left: 0 !important;
    border-radius: 0;
    background: none !important;
    color: #111;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
  }
  .desk-toolbar #desk-mode button.is-on::after,
  #desk-mode button.is-on::after,
  #desk-mode button[aria-selected="true"]::after,
  .desk-mode button.is-on::after,
  .desk-mode button[aria-selected="true"]::after {
    left: 2px;
    right: 2px;
  }
  .desk-story-add {
    padding: 0;
    flex: 0 0 auto;
    position: relative;
    z-index: 0;
  }
  /* Mobile: visible label "Add" (DOM text stays "Add Story" for a11y) */
  .desk-toolbar .desk-story-add-btn,
  .desk-story-add-btn {
    min-height: 36px;
    padding: 0 8px;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .desk-toolbar .desk-story-add-btn::after,
  .desk-story-add-btn::after {
    content: "Add";
    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #111;
  }
  .desk-mode button + button {
    border-left: 0;
  }
  #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: 0 !important;
    box-shadow: none !important;
  }
  body.landing #desk #story-dock:not([hidden]),
  #desk #story-dock:not([hidden]) {
    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;
  }
  /* Paste/Add dock is Your pages only. JS sets #story-dock[hidden] on Desk and Beginner. */
  body.landing #desk #story-dock:not([hidden]),
  #desk #story-dock:not([hidden]) {
    display: block;
  }
}

/* Desk tags v1 â€” Agency: micro editorial labels (no chip boxes) */
.desk-tag-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0 14px;
  margin: 6px 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line, #e6e0d6);
}
.desk-tag-filters .tag-chip {
  appearance: none;
  flex: 0 0 auto;
  white-space: nowrap;
  border: 0;
  background: none;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  margin: 0 0 -9px;
  padding: 8px 0;
  min-height: 44px;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted, #7a7268);
  cursor: pointer;
  line-height: 1;
}
.desk-tag-filters .tag-chip.is-on {
  color: var(--ink, #1c1914);
  background: none;
  border-color: transparent;
  border-bottom-color: transparent;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.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,
.card-tags-row .card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0 10px;
  margin: 4px 0 0;
}
.card-tags .tag-chip,
.card-tags .tag-chip-static {
  border: 0;
  background: none;
  border-radius: 0;
  padding: 0;
  min-height: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.card-tags .tag-chip.is-on,
.card-tags .tag-chip-static.is-on {
  color: var(--ink);
  background: none;
  border: 0;
  box-shadow: inset 0 -2px 0 var(--gold, #e0b13a);
}
.card-tags .tag-chip.is-custom,
.card-tags .tag-chip-static.is-custom {
  border: 0;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 650;
}
.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;
}
@media (max-width: 719px) {
  .desk-tag-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    gap: 0 16px;
    padding: 0 28px 8px 0;
    scrollbar-width: none;
  }
  .desk-tag-filters::-webkit-scrollbar { display: none; }
  .card-tags .tag-chip,
  .card-tags .tag-chip-static { font-size: 0.64rem; }
  .desk-tag-filters .tag-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.68rem;
    padding: 6px 0;
  }
  .desk-tag-filters.is-loop {
    gap: 0;
    padding-right: 0;
  }
  .desk-tag-set {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0 16px;
    flex: 0 0 auto;
    padding-right: 16px;
  }
}

/* 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); }

/* ===== Agency mobile lock 1+2+A (mobclip1) ===== */
@media (max-width: 719px) {
  /* 1) Containment + kill hero nowrap */
  body.landing .wrap.news-wrap,
  #desk,
  #news-list,
  .news-card,
  .news-card-copy,
  .news-card-body {
    min-width: 0;
    max-width: 100%;
  }

  .desk-tag-filters {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }

  .news-hero h1,
  .news-hero .lead,
  .news-hero .kicker {
    white-space: normal !important;
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .news-hero h1 {
    letter-spacing: -0.02em;
    font-size: clamp(1.35rem, 6.2vw, 1.65rem);
    line-height: 1.18;
  }
  .news-hero .kicker {
    letter-spacing: 0.06em;
  }
  .news-en,
  .news-card h2 {
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
  }

  /* 2) Tabs above filters (flex order). #desk already column flex here. */
  #desk-toolbar { order: 1; }
  #desk > #desk-mode { order: 1; }
  .desk-toolbar #desk-mode { order: 0; }
  .desk-toolbar #desk-story-add {
    order: 1;
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
    padding: 0;
  }
  #desk-tag-filters { order: 2; }
  #desk #desk-add-panel { order: 3; }
  #desk .desk-meta { order: 4; }
  #desk #news-list { order: 5; }
  #desk #news-err { order: 6; }

  /* A) Quieter filters + tags under H2 */
  .desk-tag-filters {
    margin: 0 0 10px;
    padding: 0;
    border-bottom: 0;
  }
  .desk-tag-filters .tag-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 0;
    padding: 4px 0;
    margin: 0;
    border-bottom: 0 !important;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .desk-tag-filters .tag-chip.is-on {
    color: var(--ink);
    border-bottom: 0 !important;
    box-shadow: inset 0 -2px 0 var(--gold);
  }
  .card-tags-row { margin: 2px 0 6px; }
  .card-tags .tag-chip-static {
    font-size: 0.6rem;
    letter-spacing: 0.05em;
    opacity: 0.85;
  }
}

/* Contact â€” compact editorial form (Send above the fold on phones) */
.legal.wrap {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  max-width: 40rem;
}
body:has(.contact-form) .wrap.legal {
  padding-top: 8px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  min-height: auto;
}
body:has(.contact-form) .legal .kicker { margin: 0 0 2px; }
body:has(.contact-form) .legal h1 {
  margin: 0 0 4px;
  font-size: clamp(1.45rem, 6vw, 1.85rem);
  line-height: 1.15;
}
body:has(.contact-form) .legal .lead {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.35;
  max-width: 36em;
}
.contact-form {
  width: 100%;
  max-width: 28rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.contact-form > p { margin: 0; min-width: 0; }
.contact-form .contact-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
}
.contact-form label {
  display: block;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #7a7268);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="number"],
.contact-form input:not([type]),
.contact-form textarea,
.contact-form #c-human {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line, #e6e0d6);
  border-radius: 2px;
  background: #fff;
  color: var(--ink, #1c1914);
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea {
  min-height: 4.75rem;
  max-height: 9rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink, #1c1914);
  box-shadow: 0 0 0 1px var(--ink, #1c1914);
}
.contact-form .human-check {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 8px 0 0;
  border-top: 1px solid var(--line, #e6e0d6);
  min-width: 0;
}
.contact-form .human-check[hidden] { display: none !important; }
.contact-form .human-check-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #7a7268);
}
.contact-form .human-eq {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink, #1c1914);
}
.contact-form .human-eq b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 8px;
  border-radius: 2px;
  background: #f6f2ea;
  font-variant-numeric: tabular-nums;
}
.contact-form #c-human {
  width: 100%;
  max-width: 7rem;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.contact-form .contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.contact-form .contact-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--ink, #1c1914);
}
.contact-form .contact-consent label {
  display: block;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink, #1c1914);
  line-height: 1.35;
}
.contact-form .contact-actions { margin: 2px 0 0; }
.contact-form .contact-actions .btn,
.contact-form .btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  border-radius: 2px;
}
.contact-form .hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
@media (max-width: 719px) {
  body:has(.contact-form) .wrap {
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:has(.contact-form) .site-foot {
    position: relative;
    margin-top: 16px;
  }
  body:has(.contact-form) .site-foot a {
    min-height: 44px;
    padding: 10px 8px;
    display: inline-flex;
    align-items: center;
  }
}
@media (min-width: 720px) {
  .contact-form { max-width: 28rem; gap: 12px; }
  .contact-form textarea { min-height: 7rem; }
  .contact-form .contact-actions .btn,
  .contact-form .btn {
    width: auto;
    min-width: 9rem;
  }
  .contact-form .human-check {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .contact-form .human-check-label { width: 100%; }
}



/* --- css-restore 2026-09-24 reader block --- */
.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: 12px;
}

.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;
}
.flash-sent {
  display: block;
  margin-top: 14px;
  max-width: 22rem;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #222;
  font-weight: 500;
}
.flash-sent .flash-hit {
  background: color-mix(in srgb, var(--gold) 45%, #fff);
  color: #111;
  padding: 0 0.12em;
  border-radius: 0.15em;
  font-weight: 700;
}
.flash-sent-py {
  display: block;
  margin-top: 4px;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #555;
  font-weight: 500;
}
.flash-sent-en {
  display: block;
  margin-top: 6px;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 500;
}

.hanzi {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", 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; }

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

.prompt {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 16px 18px;
  min-height: 12rem;
}
.prompt.is-booting {
  display: block;
  background: transparent;
  border: 0;
  min-height: 14rem;
  padding: 48px 16px;
}
.prompt.is-booting .story-boot {
  min-height: 8rem;
}
.story-boot {
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-boot-spin {
  width: 36px;
  height: 36px;
  border: 3px solid #f0f0f0;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: story-boot-spin 0.7s linear infinite;
}
@keyframes story-boot-spin {
  to { transform: rotate(360deg); }
}
#page-spin {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  pointer-events: all;
}
html.page-spinning #page-spin {
  display: flex;
}

.syl-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.syl-char {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 1.8rem;
  text-align: center;
}

.syl.reading {
  background: #ffd100;
  color: #111;
  border-radius: 2px;
}

.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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

.ime-list { display: flex; flex-wrap: wrap; gap: 8px; }

.ime-pick {
  min-width: 48px;
  padding: 8px 12px;
  font-size: 1.4rem;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.speak-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }

.story-box { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; }

.story-line { margin: 0 0 10px; line-height: 2; }

.story-line.reading { background: transparent; }

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

.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: 8px;
  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; }

.feedback {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
}

.feedback.pass { border-color: var(--ok); }

.feedback.fail { border-color: var(--bad); }

.complete-line { font-size: 1.35rem; line-height: 2; margin: 12px 0 18px; }

.corpus {
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  margin: 0 0 28px;
}

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

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

.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: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 1.15rem;
}

.flagged-row span {
  color: var(--cinnabar);
  box-shadow: inset 0 -2px 0 var(--cinnabar);
}

.hint { color: var(--muted); min-height: 1.3em; }
#desk #news-err,
#desk #news-err.hint {
  min-height: 0;
  margin: 0;
  padding: 0;
}
#desk #news-err:empty {
  display: none;
}

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

.reader-pane { padding-bottom: 20px; }

.reader-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.reader-tools .btn.is-on {
  border-color: var(--cinnabar);
  color: var(--cinnabar);
}

.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: 22px 24px calc(36px + env(safe-area-inset-bottom, 0px));
  max-height: min(86vh, calc(100dvh - 2rem));
  overflow: auto;
  border-top: 3px solid var(--gold);
}
.word-sheet-inner {
  max-width: 52rem;
  margin: 0 auto;
}
.ws-grid {
  display: grid;
  gap: 28px 40px;
  margin: 0;
}
.word-sheet-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 0 8px;
  background: #fff;
}
.word-sheet-handle-hit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.word-sheet-handle {
  width: 48px;
  height: 5px;
  margin: 0;
  border-radius: 4px;
  background: #ccc;
}
.word-sheet-top .word-sheet-close {
  min-width: 44px;
  padding: 0 12px;
  font-weight: 700;
  color: #111;
}
.word-sheet-kicker {
  margin: 0 0 10px;
  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.25;
  margin: 0;
}
.word-sheet-py {
  margin: 0 0 14px;
  color: #555;
  line-height: 1.55;
}
.word-sheet-en {
  margin: 0 0 16px;
  font-weight: 650;
  line-height: 1.55;
}


.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-dicts {
  margin: 28px 0 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  max-width: none;
}
.word-sheet-dicts .word-sheet-kicker {
  text-align: left;
}
.word-sheet-dict-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}
.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: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.word-sheet-sz {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.28rem;
  line-height: 1.95;
  margin: 0 0 16px;
}
.word-sheet-sz .ws-live {
  display: inline;
  margin: 0;
  padding: 0 0.08em;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.word-sheet-sz .ws-live.on { font-weight: 700; }
.word-sheet-sent .word-sheet-py {
  margin: 0 0 16px;
  line-height: 1.65;
}
.word-sheet-sent .word-sheet-en {
  margin: 0;
  font-weight: 500;
  line-height: 1.65;
}
.word-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.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;
  padding: 10px 12px;
  border: 1px solid #111;
  background: #fff;
  font: inherit;
}
.word-sheet-new + .word-sheet-new,
.word-sheet-select + .word-sheet-new {
  margin-top: 12px;
}
.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; }

.word-sheet-hanzi-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 12px;
}
.word-sheet-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}
.word-sheet-kicker-row .word-sheet-kicker { margin: 0; }
.ws-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: #111;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 0 var(--gold);
  cursor: pointer;
}
.ws-play:hover { background: var(--gold); }
@media (min-width: 720px) {
  .word-sheet {
    padding: 28px 40px calc(40px + env(safe-area-inset-bottom, 0px));
  }
  .ws-grid {
    grid-template-columns: minmax(10rem, 0.32fr) minmax(0, 1fr);
    align-items: start;
    gap: 32px 56px;
  }
  .word-sheet-sent {
    padding-left: 48px;
    border-left: 1px solid var(--line);
  }
  .word-sheet-dicts {
    margin-top: 32px;
    padding-top: 24px;
  }
}
@media (max-width: 719px) {
  .word-sheet-hanzi {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }
  .word-sheet-add,
  .word-sheet-other {
    flex: 1 1 calc(50% - 8px);
  }
  .word-sheet-sent {
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }
  .word-sheet-dicts {
    padding-top: 20px;
    margin-top: 12px;
    margin-bottom: 24px;
  }
}


.band-bar {
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.band-source-link {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}

.band-source-link:hover { color: var(--ink); }

.band-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 36px;
}

.band-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.band-col + .band-col {
  padding: 0;
  margin: 0;
  border: 0;
}

.band-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.band-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 44px;
}

.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: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--gold);
  cursor: pointer;
}

.band-tool:hover {
  background: var(--gold);
  color: #111;
}

.band {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.band.on {
  color: #111;
  font-weight: 700;
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--gold);
  cursor: default;
}

.band:hover {
  color: #111;
  background: var(--gold);
}

.band.dim {
  opacity: 0.45;
  cursor: default;
}

.band.is-fetch {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}

.band.is-fetch:hover {
  border-color: var(--gold);
  color: #111;
}

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

.article-photo {
  margin: 0 0 16px;
}

.article-photo .news-photo {
  max-height: 220px;
}

.article-body { margin: 18px 0 24px; }

.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-bar .reader-status {
  margin: 0;
  flex: 1;
  min-width: 4.5rem;
  font-size: 0.75rem;
  color: #c8c8c8;
  font-weight: 700;
}

.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.is-on { color: var(--gold); }

.audio-btn:disabled { opacity: 0.35; }

.audio-play {
  background: var(--gold);
  color: #111;
  min-width: 64px;
  font-weight: 800;
}

.audio-rate {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #aaa;
  font-size: 0.72rem;
  font-weight: 700;
}

.bar {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 12px;
}

.study-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.study-row-main {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.study-row-main b {
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}
.study-row-main:hover b {
  box-shadow: inset 0 -2px 0 var(--gold);
}
.study-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 28px 0 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.study-h::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold);
  flex: 0 0 auto;
}
.study-new {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #111;
  border-left: 4px solid var(--gold);
  border-radius: 2px;
  background: #fff;
  max-width: 100%;
  box-sizing: border-box;
}
.study-new-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.study-create {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
}
.study-create input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #111;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}
.study-create .card-act,
.study-create .sheet-act {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  min-width: 44px;
  padding: 0 16px;
  border: 0;
  box-sizing: border-box;
}
.study-create .card-act {
  background: #000;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.study-create .card-act:hover,
.study-create .sheet-act-print:hover {
  background: var(--gold);
  color: #111;
}
.hsk-chip {
  border-radius: 2px;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.hsk-chip:hover {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}
.flash {
  border-radius: 2px;
  border: 1px solid #111;
  box-shadow: inset 0 3px 0 var(--gold);
  background: #fff;
}
.study-panel {
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
  box-sizing: border-box;
}
.study-panel .flash,
.study-panel .study-actions,
.study-panel .study-actions-meta {
  width: 100%;
  box-sizing: border-box;
}
.study-actions {
  display: flex;
  margin: 12px 0 8px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
/* legacy wrappers (if any remain) — never fight for width */
.study-actions-main,
.study-actions-mid,
.study-actions-end {
  display: contents;
}
.study-actions .card-act,
.beginner-tools .card-act,
.beginner-tools .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 2px;
  background: #000;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}
.study-actions-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  width: 100%;
  box-sizing: border-box;
}
.study-actions-meta .card-act.quiet,
.beginner-tools .card-act.quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  background: #fffdf8;
  color: #111;
  border: 1px solid #ddd;
  border-radius: 2px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.study-actions-meta .text-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
/* keep beginner quiet buttons usable outside study meta */
.beginner-tools .card-act.quiet {
  background: #fffdf8;
  color: #111;
  border: 1px solid #ddd;
}
.study-flag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--gold);
  vertical-align: 1px;
}
.kicker a {
  color: inherit;
  text-decoration: none;
}
.kicker a:hover {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.story-box.lang-latin .tok { margin-right: 0.28em; }

.story-box.lang-latin .tok.punct { margin-right: 0; margin-left: -0.12em; }


/* --- Agency locks 2026-09-24: tokens / dock / Practice tabs --- */
.tok {
  appearance: none;
  -webkit-appearance: none;
  display: inline;
  margin: 0;
  padding: 4px 1px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.35rem;
  border-radius: 0;
  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 var(--gold, #e0b13a);
}
.tok.unknown {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--cinnabar);
}
.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 {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}
.band-tool {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 12px;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 var(--gold);
}
.band-tool:hover,
.band-tool[aria-current="page"] {
  color: #111;
  background: var(--gold);
  box-shadow: inset 0 -2px 0 var(--gold);
}
/* dock clearance */
body:has(.audio-bar) .wrap,
.reader-pane {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}
/* failpaste1 â€” scrape/paste failure card + paste-instead dock */
.news-card.failed {
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  padding: 18px 18px 16px;
  background: #fff;
}
.news-card.failed .news-kicker {
  margin: 0 0 8px;
}
.news-card.failed .news-en {
  margin: 0 0 10px;
}
.news-card.failed .fail-msg {
  margin: 0 0 14px;
  color: var(--muted, #5c5c5c);
  font-size: 0.95rem;
  line-height: 1.45;
}
.fail-actions {
  display: flex;
  gap: 18px;
  align-items: baseline;
  flex-wrap: wrap;
}
.btn-paste-instead {
  appearance: none;
  border: 1px solid #111;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 8px 12px;
  cursor: pointer;
}
.btn-paste-instead:hover {
  box-shadow: inset 0 -2px 0 #ffd100;
}
.btn-dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted, #5c5c5c);
  font: inherit;
  font-size: 0.9rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.story-dock.is-paste-instead {
  border-color: #111;
}
.paste-instead-dock {
  padding: 14px 12px 12px;
  background: #fafafa;
  border-top: 1px solid #e8e8e8;
}
.paste-instead-dock[hidden] {
  display: none !important;
}
.paste-instead-dock label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #5c5c5c);
  margin: 0 0 6px;
}
.paste-instead-dock input,
.paste-instead-dock textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 2px;
  font: inherit;
  padding: 8px 10px;
  margin: 0 0 10px;
  background: #fff;
}
.paste-instead-dock textarea {
  min-height: 110px;
  resize: vertical;
}
.paste-instead-helper {
  margin: -4px 0 12px;
  color: var(--muted, #5c5c5c);
  font-size: 0.88rem;
}
.paste-instead-send-row {
  display: flex;
  gap: 14px;
  align-items: center;
}
.paste-instead-dock .card-act {
  appearance: none;
  border: 1px solid #111;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 650;
  padding: 8px 14px;
  cursor: pointer;
}
.paste-instead-dock .card-act:hover {
  background: #222;
}

/* Archive Delete - never gold (Agency lock) */
[data-delete],
button[data-delete]:hover,
button[data-delete]:focus-visible {
  color: var(--muted);
  box-shadow: none;
  background: none;
}
button[data-delete]:hover,
button[data-delete]:focus-visible {
  color: var(--bad, #c8102e);
  outline: 2px solid var(--bad, #c8102e);
  outline-offset: 2px;
}

/* acctdrop1 â€” Account nav dropdown (Agency lock) */
.account-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.account-menu-btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  /* keep .nav-link size/weight/tracking — do not font:inherit */
  color: inherit;
  text-align: left;
}
.nav-link.account-menu-btn {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.account-menu-btn.on,
.account-menu.is-open .account-menu-btn {
  /* editorial gold (logo tile), not bright --gold #ffd100 */
  color: #e0b13a;
  box-shadow: inset 0 -3px 0 #e0b13a;
}
.account-menu-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 4px 0 0;
  padding: 10px 0 8px;
  background: #fffdf8; /* brand cream */
  border: 1.5px solid #e0b13a; /* brand gold square language */
  border-radius: 2px;
  min-width: 12rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 70;
}
.account-menu-panel[hidden] { display: none !important; }
.account-menu-email {
  margin: 0;
  padding: 4px 12px 8px;
  color: #6b6560;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  word-break: break-all;
}
.account-menu-item {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  border-radius: 0;
}
.account-menu-item:hover {
  background: transparent;
  color: #111;
  box-shadow: inset 0 -2px 0 #e0b13a;
}
.account-menu-item.on {
  color: #111;
  box-shadow: inset 0 -2px 0 #e0b13a;
}
.account-menu-item.text-btn {
  color: #6b6560;
  font-weight: 600;
  width: 100%;
}
.account-menu-item.text-btn:hover {
  color: var(--bad, #c8102e);
  box-shadow: none;
}
.account-menu-rule {
  margin: 6px 12px;
  border: 0;
  border-top: 1px solid #e8e0d0;
}
.account-menu-extra:empty,
.account-menu-extra[hidden] { display: none !important; }
.account-menu-extra:not([hidden]) { display: contents; }

@media (min-width: 720px) {
  .nav {
    overflow: visible;
  }
  .account-menu {
    width: auto;
    align-items: flex-end;
    position: relative;
    z-index: 70;
  }
  .account-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% - 4px);
    margin: 0;
  }
}

@media (max-width: 719px) {
  .top.menu-open .account-menu-btn {
    display: none !important;
  }
  .account-menu {
    width: auto;
    align-items: stretch;
  }
  .account-menu-btn.on,
  .account-menu.is-open .account-menu-btn {
    color: #111;
    box-shadow: none;
  }
  .account-menu-panel {
    position: static;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .account-menu-email { color: #6b6560; }
  .account-menu-item { color: #111; }
  .account-menu-item:hover {
    color: #111;
    box-shadow: none;
  }
  .account-menu-item.text-btn { color: #6b6560; }
  .account-menu-rule { border-top-color: #e8e0d0; }
}


/* deskbak1: Agency lock = bak Desk cards (photo-first, contain, gold crown) */
.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;
}
.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;
  }
}
body.landing .news-card {
  display: flex;
  flex-direction: column;
  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;
  gap: 12px;
}
body.landing .news-card.is-lead > .news-thumb { order: 1; }
body.landing .news-card.is-lead > .news-card-copy { order: 2; }
body.landing .news-card > .news-thumb { order: 1; }
body.landing .news-card > .news-card-copy { order: 2; }
body.landing .news-card.is-lead .news-thumb {
  display: block;
  min-width: 0;
  overflow: visible;
  line-height: 0;
}
body.landing .news-card.is-lead .news-photo {
  aspect-ratio: auto;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: 320px !important;
  min-height: 0;
  border-radius: 0;
  object-fit: contain !important;
  object-position: center !important;
  background: #f3f3f3;
}
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) {
    gap: 14px;
    padding: 28px 0;
  }
  body.landing .news-card:not(.is-lead) .news-photo {
    aspect-ratio: auto;
    max-height: 220px !important;
    height: auto !important;
    min-height: 0;
    object-fit: contain !important;
  }
}
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-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
  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);
}
.news-en { margin: 0 0 8px; color: var(--ink); }
.news-lede {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* deskbak2: story-dock base from bak */
.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;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  resize: none;
  overflow: hidden;
  line-height: 1.25;
}
.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;
}
.story-dock .add-slot {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.story-dock #article-in {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 12px;
  line-height: 44px;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
  field-sizing: fixed;
}

.version-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.version-card.is-main h2 {
  font-size: 1.35rem;
}

.deck-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 14px;
  margin: 0 -2px 8px;
  scrollbar-width: thin;
}
.deck-tile-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 min(20.5rem, calc(100% - 2.75rem));
  scroll-snap-align: start;
  min-width: 0;
}
.deck-tile {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 7.5rem;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid #111;
  box-shadow: inset 0 3px 0 var(--gold);
  overflow: hidden;
}
.deck-tile:hover .deck-tile-name,
.deck-tile:focus-visible .deck-tile-name {
  box-shadow: inset 0 -2px 0 var(--gold);
}
.deck-tile-art {
  flex: 0 0 7.5rem;
  width: 7.5rem;
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f3f3;
  overflow: hidden;
  flex-shrink: 0;
}
.deck-tile-art.is-hsk {
  background: var(--gold);
}
.deck-tile-art.is-mark {
  background: #000;
}
.deck-tile-photo,
.deck-tile-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.deck-tile-art .deck-tile-mark,
.deck-tile-mark {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: cover;
  border-radius: 2px;
  background: #fff;
}
.deck-tile-hsk {
  font-family: "Figtree", "Noto Sans", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #111;
}
.deck-tile-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
}
.deck-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.deck-tile-stat {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.deck-tile-stat strong {
  display: block;
  color: #111;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: none;
}
.deck-tile-del {
  align-self: flex-end;
  margin: 8px 0 0;
  z-index: 2;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.deck-tile-del:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.beginner-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.study-row .card-act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@media (min-width: 720px) {
  .deck-tile-wrap {
    flex-basis: 22rem;
  }
}
@media (max-width: 719px) {
  .deck-rail {
    gap: 10px;
    margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px)));
    margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px)));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 16px;
  }
  .deck-tile-wrap {
    flex: 0 0 calc(100% - 2.75rem);
    max-width: 22rem;
  }
  .deck-tile {
    min-height: 7rem;
  }
  .deck-tile-art {
    flex-basis: 6.5rem;
    width: 6.5rem;
    min-height: 7rem;
  }
  .deck-tile-meta {
    padding: 12px;
    gap: 6px;
  }
  .deck-tile-name {
    font-size: 0.98rem;
  }
  .deck-tile-stat strong {
    font-size: 1.5rem;
  }
  .wrap {
    overflow-x: hidden;
    max-width: 100%;
  }
  #desk {
    min-width: 0;
    max-width: 100%;
  }
  #desk .study-new,
  #desk .study-create {
    max-width: 100%;
  }
  .study-create {
    grid-template-columns: 1fr;
  }
  .study-create input {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    flex: 0 0 auto;
    min-width: 0;
    text-align: left;
    box-sizing: border-box;
  }
  .study-create .sheet-act,
  .study-create .card-act {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }
  #desk .study-actions {
    width: 100%;
  }
  .study-panel {
    max-width: none;
    width: 100%;
    margin-inline: 0;
  }
  .flash {
    min-height: min(52dvh, 22rem);
    padding: 28px 14px;
    width: 100%;
  }
  .study-actions .card-act {
    padding: 0 16px;
  }
  .study-actions-meta .card-act.quiet {
    padding: 0 12px;
  }
  .write-card {
    width: min(22rem, calc(100vw - 32px));
  }
  .write-card-actions .sheet-act {
    flex: 1 1 auto;
    min-width: 8rem;
  }
}

/* desksep23: pin — desktop Desk chrome matches Sep 23 (Add dock + gold kickers + photo-first contain).
   Logo/brand-plate logo11 and account-menu acctbrand1 unchanged. */

/* tile66: Agency familiar study — primary Show/Next + quiet meta (Back/Edit/Remove/End). */

/* tile67: study session stable (no hydrate reshuffle); beginner/sentenceZh on Show. */
