/* Wu Wei — Dojo · Seal. One cinnabar seal, two lights: lacquer (dark) and paper (light). Built for an iPad at the door.
   The device's setting picks the light; the ☀/☾ switch in the nav overrides it per device ("wuwei.theme" in
   localStorage, applied by a head script before first paint). Every colour is a token — never hard-code one below. */
:root {
  --ground: #0f1214; --surface: #171c1f; --surface-2: #1f262a; --line: #2a3135; --line-2: #384045; --line-3: #4a545b;
  --paper: #f4f1ea; --paper-2: #d7dcdf; --muted: #a3abb0; --seal: #dc4023; --seal-ink: #f4f1ea; --gold: #d9b45a;
  --watermark: #161b1e; --ok: #3f8f79;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;
  --cjk: "Noto Serif SC", "Songti SC", "SimSun", serif; /* the seals: engraved, sharp */
  --mono: "SF Mono", Menlo, Consolas, monospace; /* the system's voice: clock, micro-labels */
  --brush: "Wu Wei Brush", "Kaiti TC", "Kaiti SC", var(--cjk); /* the marks: brush, organic */
}
/* The brush hand: LXGW WenKai TC (OFL), subset to the characters we draw — see scripts/build_brush_font.py */
@font-face { font-family: "Wu Wei Brush"; src: url("fonts/brush.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* paper — the lit-hall light */
:root[data-theme="light"] { --ground: #f4f1ea; --surface: #fbf9f5; --surface-2: #ebe6dc; --line: #dcd6c9; --line-2: #cbc3b3; --line-3: #a9a08c;
  --paper: #191c1e; --paper-2: #3b4145; --muted: #545b61; --seal: #b62d18; --seal-ink: #f4f1ea; --gold: #7f5f14;
  --watermark: #ebe6db; --ok: #2e6f5e; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --ground: #f4f1ea; --surface: #fbf9f5; --surface-2: #ebe6dc; --line: #dcd6c9; --line-2: #cbc3b3; --line-3: #a9a08c;
  --paper: #191c1e; --paper-2: #3b4145; --muted: #545b61; --seal: #b62d18; --seal-ink: #f4f1ea; --gold: #7f5f14;
  --watermark: #ebe6db; --ok: #2e6f5e; } }
* { box-sizing: border-box; }
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: light) { html:not([data-theme="dark"]) { color-scheme: light; } }
body { margin: 0; background: var(--ground); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; padding-bottom: env(safe-area-inset-bottom); font-variant-numeric: tabular-nums; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--line-3); }
.cjk { font-family: var(--cjk); font-weight: 400; }

/* ---- chrome ---- */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) 28px 14px; background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; }
.seal { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--seal); color: var(--seal-ink); font-family: var(--cjk); font-weight: 700; font-size: 18px; line-height: 1; border-radius: 3px; transform: rotate(-4deg); writing-mode: vertical-rl; letter-spacing: -1px; flex: none; }
.seal-sm { width: 28px; height: 28px; font-size: 12px; border-radius: 2px; transform: rotate(-6deg); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--seal); }
.inline { display: inline; }
button.link { background: none; border: 0; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 0; cursor: pointer; }
button.link:hover { color: var(--paper); }
button.link.sound { font-family: var(--body); font-size: 17px; letter-spacing: 0; color: var(--paper-2); }
button.link.sound[aria-pressed="false"] { color: var(--muted); text-decoration: line-through; }
button.link.theme { font-family: var(--body); font-size: 19px; letter-spacing: 0; color: var(--paper-2); line-height: 1; }

.page { max-width: 1080px; margin: 0 auto; padding: 8px 28px 64px; }

/* ---- headings ---- */
.hero { padding: 28px 0 22px; }
.hero-tight { padding: 22px 0 16px; }
.eyebrow { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow .sep { margin: 0 8px; opacity: .5; }
.display { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 96px); line-height: .92; letter-spacing: -.03em; }
.display-sub { display: block; font-family: var(--display); font-weight: 600; font-size: .3em; color: var(--muted); margin-top: 12px; letter-spacing: 0; }
.display-small { font-size: clamp(36px, 5.2vw, 52px); line-height: .95; }
.count { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: .42em; margin-left: 12px; letter-spacing: .04em; }
.section-h { margin: 26px 0 10px; font-family: var(--display); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; align-items: baseline; gap: 10px; }
.section-h .count { font-size: 13px; margin: 0; }
.stat-line { margin: 12px 0 0; color: var(--paper-2); font-size: 16px; }
.muted { color: var(--muted); font-weight: 400; }
.dot { color: var(--muted); padding: 0 6px; }
.glyph { font-family: var(--brush); color: var(--line-3); line-height: 1; }
.watermark { position: fixed; right: 12px; top: 90px; font-family: var(--brush); font-size: 240px; line-height: 1; color: var(--watermark); writing-mode: vertical-rl; letter-spacing: 8px; pointer-events: none; user-select: none; z-index: 0; }
.page { position: relative; z-index: 1; }

/* ---- the day's line ---- */
.tao { margin: 18px 0 0; padding: 0; max-width: 560px; }
.tao p { margin: 0; font-size: 19px; line-height: 1.4; color: var(--paper-2); }
.tao cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--display); font-size: 12px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* ---- notices ---- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line-3); margin: 8px 0 18px; }
.notice-gold { border-color: var(--gold); }
.notice strong { display: block; }
.notice .muted { font-size: 14px; }

/* ---- cards (tonight) ---- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { border: 1px solid var(--line-3); padding: 20px 22px 18px; display: flex; flex-direction: column; gap: 18px; background: transparent; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-time { margin: 0; font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -.02em; }
.dash { color: var(--muted); padding: 0 .08em; font-weight: 400; }
.card-title { margin: 8px 0 0; font-family: var(--display); font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.card-title .to { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 17px; }
.card-meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.card .glyph { font-size: 34px; }

/* ---- strip / tiles ---- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); margin-top: 8px; }
.tile { padding: 18px 24px 18px 0; text-decoration: none; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--line); margin-right: 24px; }
.tile:last-child { border-right: 0; }
.tile .n { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -.02em; }
.tile .l { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile.is-seal .n { color: var(--seal); }
.tile.is-gold .n { color: var(--gold); }

/* ---- lists ---- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 66px; }
.row.is-archived { opacity: .5; }
.row.is-selected { background: var(--surface); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.grow { flex: 1; min-width: 0; }
.row-title { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.row-meta { display: block; color: var(--muted); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gold { color: var(--gold); }
.foot { margin-top: 16px; color: var(--muted); font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.empty, .empty-line { color: var(--muted); }
.empty { border: 1px dashed var(--line-3); padding: 24px; }
.link-plain { text-decoration: none; }
.link-plain:hover { text-decoration: underline; }

/* ---- register: tap grid + side panel ---- */
.split { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.3fr 1fr; align-items: start; } .pane-form { position: sticky; top: 88px; } }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.tap { margin: 0; }
.tap button { width: 100%; text-align: left; font: inherit; background: transparent; color: var(--paper); border: 1px solid var(--line-3); padding: 16px 18px; cursor: pointer; display: flex; align-items: center; gap: 14px; min-height: 88px; }
.tap button:hover { border-color: var(--paper); }
.tap button:active { background: var(--surface-2); }
.tap .name { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.01em; display: block; }
.tap .sub { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 6px; }
.tap.is-must button { border-color: color-mix(in srgb, var(--seal) 60%, var(--line-3)); }
.tap.is-must .sub { color: var(--seal); }
.search { width: 100%; font: inherit; font-size: 17px; padding: 13px 16px; border: 1px solid var(--line-3); background: transparent; color: var(--paper); margin: 0 0 12px; }
.search::placeholder { color: var(--muted); }
.search:focus { border-color: var(--paper); outline: none; }
.hidden { display: none !important; }
.panel { border: 1px solid var(--line-3); padding: 20px; background: var(--surface); position: sticky; top: 88px; }
.panel h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; }
.panel .kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.panel .kv span:first-child { color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }

/* ---- filters ---- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.filters a { text-decoration: none; padding: 8px 12px; border: 1px solid var(--line-3); font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filters a[aria-current="true"] { background: var(--paper); color: var(--ground); border-color: var(--paper); }

/* ---- forms ---- */
.form { display: flex; flex-direction: column; gap: 10px; }
.form-narrow { max-width: 480px; }
.pane-form .form, .card-form { border: 1px solid var(--line-3); padding: 18px; }
.card-form { margin-bottom: 10px; }
.label { display: block; font-family: var(--display); font-weight: 600; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; margin: 4px 0 0; }
.input { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1px solid var(--line-3); background: transparent; color: var(--paper); min-height: 50px; }
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--paper); outline: none; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.4; }
.select-wrap { position: relative; }
.select-wrap::after { content: "▾"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; }
select.input option { background: var(--surface); color: var(--paper); }
.two { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.seg { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { margin-bottom: 6px; }
.seg-stack { flex-direction: column; }
.seg label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line-3); cursor: pointer; min-height: 44px; font-size: 15px; }
.seg label:has(input:checked) { border-color: var(--paper); background: var(--surface-2); }
.seg input { accent-color: var(--paper); }
.hint { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.or { text-align: center; color: var(--muted); margin: 12px 0; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-family: var(--display); font-weight: 600; }
.more { margin-top: 6px; }
.more summary { cursor: pointer; color: var(--muted); font-weight: 700; padding: 10px 0; font-size: 15px; }

/* ---- buttons ---- */
.btn { font-family: var(--display); font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; padding: 14px 18px; border: 1.5px solid var(--paper); background: transparent; color: var(--paper); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; transition: background .12s ease, color .12s ease; }
.btn:hover { background: var(--paper); color: var(--ground); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-small { padding: 9px 14px; min-height: 40px; font-size: 13px; }
.btn-seal { background: var(--paper); color: var(--ground); }
.btn-seal:hover { background: var(--paper-2); }
.btn-jade { border-color: var(--paper); }
.btn-quiet { border-color: var(--line-3); color: var(--paper-2); }
.btn-quiet:hover { border-color: var(--paper); background: transparent; color: var(--paper); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---- chips ---- */
.chip { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid var(--line-3); font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--paper-2); }
.chip-quiet { color: var(--muted); }
.chip-jade { border-color: var(--paper-2); color: var(--paper); }
.chip-gold { border-color: var(--gold); color: var(--gold); }
.chip-seal { border-color: var(--seal); color: var(--seal); }

/* ---- the four-visit moon ---- */
.moon { flex: none; }
.moon-arc { fill: none; stroke: var(--line-3); stroke-width: 3.5; transform-origin: 22px 22px; transform: rotate(-90deg); }
.moon-arc.is-filled { stroke: var(--paper); }
.moon-must_join .moon-arc.is-filled { stroke: var(--seal); }
.moon-disc { fill: var(--paper); }
.moon-lapsed .moon-disc { fill: var(--muted); }
.moon-ring-broken { fill: none; stroke: var(--gold); stroke-width: 2.5; }
.moon-count { font-family: var(--display); font-size: 15px; font-weight: 700; fill: var(--paper); }
.moon-member .moon-count, .moon-lapsed .moon-count { fill: var(--ground); }
.moon-must_join .moon-count { fill: var(--seal); }
@media (prefers-reduced-motion: no-preference) {
  .moon-arc.is-filled { stroke-dasharray: 0 200; animation: moon-fill .45s ease-out forwards; }
  @keyframes moon-fill { to { stroke-dasharray: var(--seg, 24.27) 200; } }
}

/* ---- prices ---- */
.price { font-family: var(--display); font-weight: 800; font-size: 24px; white-space: nowrap; letter-spacing: -.01em; }
.price-none { color: var(--muted); font-weight: 400; }
.price-big { font-size: 34px; }

/* ---- toasts ---- */
.flashes { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: grid; gap: 8px; width: min(560px, calc(100% - 32px)); }
.flash { padding: 13px 16px; background: var(--paper); color: var(--ground); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.flash::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ground); flex: none; }
.flash-success::before { background: var(--ok); }
.flash-warning::before { background: var(--gold); }
.flash-error::before { background: var(--seal); }
@media (prefers-reduced-motion: no-preference) { .flash { animation: toast-in .25s ease-out both; } @keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } }
.flash.is-gone { opacity: 0; transition: opacity .3s ease; }

/* ---- kiosk ---- */
.kiosk { min-height: 100vh; display: flex; flex-direction: column; }
.kiosk-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(18px + env(safe-area-inset-top)) 32px 18px; border-bottom: 1px solid var(--line); }
.kiosk-classes { display: flex; gap: 8px; }
.kiosk-classes a { text-decoration: none; padding: 10px 16px; border: 1px solid var(--line-3); font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.kiosk-classes a[aria-current="true"] { border-color: var(--paper); color: var(--paper); }
.kiosk-body { padding: 24px 32px 0; flex: 1; }
.kiosk h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5vw, 52px); line-height: .95; letter-spacing: -.03em; }
.kiosk .grid { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.kiosk .tap button { min-height: 96px; }
.kiosk-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 32px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.kiosk-done { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.kiosk-done .seal-big { width: 120px; height: 120px; font-size: 56px; margin: 0 auto; border-radius: 6px; transform: rotate(-4deg); }
.kiosk-done h1 { margin: 26px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 64px); line-height: .95; letter-spacing: -.03em; }
.kiosk-done p { margin: 12px 0 0; font-size: 20px; color: var(--paper-2); }
.kiosk-done .bars { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.kiosk-done .bars span { width: 56px; height: 6px; background: var(--line-3); }
.kiosk-done .bars span.on { background: var(--paper); }
.kiosk-done .bars span.on-seal { background: var(--seal); }
.pin { font-family: var(--display); font-size: 40px; letter-spacing: .4em; text-align: center; }

/* ---- decision 24: One Stroke + the scroll + a calligraphy wordmark ---- */
.seal-chop { width: 22px; height: 22px; font-size: 9px; border-radius: 2px; transform: rotate(-6deg); letter-spacing: -.5px; }
.seal-brand { width: 32px; height: 32px; font-size: 13px; }
.brand-latin { font-size: 16px; letter-spacing: .14em; margin-left: 2px; }
.clock { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: var(--paper); min-width: 78px; text-align: right; }
.clock:empty { display: none; }
.glyph { color: var(--paper); }
.hero-line { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 26px 0 0; }
@media (min-width: 860px) { .hero-line { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; } }
.line { max-width: 720px; }
.line-hanzi { margin: 0 0 14px; font-family: var(--brush); font-size: clamp(40px, 5.6vw, 58px); line-height: 1.1; letter-spacing: .06em; color: var(--paper); }
.line-hanzi.is-long { font-size: clamp(32px, 4.4vw, 46px); }
.line-text { margin: 0; padding: 0; max-width: none; }
.line-text p { margin: 0; font-family: var(--body); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; color: var(--paper); }
.line-text cite { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.line-text cite .dot { padding: 0; }
.line-text cite [lang] { font-family: var(--cjk); letter-spacing: .08em; text-transform: none; }
.line-seal { margin-left: 4px; }
.term { padding-top: 4px; }
.term .eyebrow { margin: 0 0 4px; }
.term-date { margin: 0 0 12px; font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.term-date .num { font-weight: 800; font-size: 40px; letter-spacing: -.03em; }
.term-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.term-week { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.term-week .of { color: var(--muted); font-weight: 600; font-size: 13px; }
.term-end { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.seg { display: flex; gap: 4px; margin-top: 10px; }
.seg i { display: block; flex: 1 1 0; max-width: 28px; height: 8px; background: var(--line-2); }
.seg i.on { background: var(--paper); }
.seg i.brk { background: color-mix(in srgb, var(--gold) 45%, var(--ground)); }
.seg i.now { outline: 2px solid var(--seal); outline-offset: 1px; }
.term-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chip-must { margin-top: 14px; text-decoration: none; padding: 7px 10px; font-weight: 800; }
.sweep { display: block; width: 100%; height: auto; max-height: 72px; margin: 10px 0 2px; color: var(--paper); }
.sweep-small { max-height: 40px; margin: 2px 0 6px; }
.card-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.card .glyph { font-size: 44px; }
.reg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 20px 0 0; }
.reg-title { display: flex; align-items: center; gap: 16px; }
.reg-glyph { font-family: var(--brush); font-size: 44px; line-height: 1; color: var(--paper); }
.reg-meta { display: block; margin-top: 5px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---- the class's own line: on its register and on the kiosk ---- */
.reg-line { display: flex; align-items: center; gap: 22px; padding: 6px 0 4px; }
.reg-line-hanzi { margin: 0; font-family: var(--brush); font-size: 34px; line-height: 1; letter-spacing: .06em; white-space: nowrap; }
.reg-line-text { margin: 0; font-size: 17px; color: var(--paper-2); }
.reg-line-ref { margin: 4px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.reg-line-ref [lang] { font-family: var(--cjk); letter-spacing: .08em; text-transform: none; }
.kiosk-line { max-width: 820px; }
.kiosk-line-hanzi { margin: 0 0 10px; font-family: var(--brush); font-size: clamp(36px, 4.4vw, 48px); line-height: 1.1; letter-spacing: .06em; }
.kiosk-line-hanzi.is-long { font-size: clamp(28px, 3.4vw, 38px); }
.kiosk-line-text { margin: 0; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; }
.kiosk-line-ref { margin: 8px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kiosk-line-ref [lang] { font-family: var(--cjk); letter-spacing: .08em; text-transform: none; }

/* ---- the year's class list ---- */
.term-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.term-foot .chip-must { margin-top: 0; }
.term-year { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; margin-left: auto; }
.term-year:hover { color: var(--paper); }
.year-total { margin: 6px 0 0; font-size: 18px; color: var(--paper-2); }
.year-total strong { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--paper); letter-spacing: -.01em; }
.year-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.year { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.year-term-h { margin-top: 8px; }
.year-term-n { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-transform: none; color: var(--paper); }
.year-nights { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.year-night, .year-break { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.year-night.is-past { color: var(--muted); }
.year-night.is-tonight .year-date { font-weight: 700; }
.year-break { color: var(--muted); font-size: 14px; }
.year-date { font-family: var(--mono); font-size: 14px; min-width: 110px; letter-spacing: .02em; }
.year-holiday { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
/* ---- the term register: a line per student, a block per class night ---- */
.book { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.book-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 62px; flex-wrap: wrap; }
.book-who { flex: 1 1 190px; min-width: 0; }
.book-who .row-title { font-size: 19px; }
.book-strip { display: flex; gap: 3px; flex: 2 1 260px; min-width: 180px; }
.book-strip i, .book-key i { display: block; flex: 1 1 0; height: 24px; background: transparent; border: 1px solid var(--line); }
.book-strip i.came, .book-key i.came { background: var(--paper); border-color: var(--paper); }
.book-strip i.missed, .book-key i.missed { background: var(--line-2); border-color: var(--line-2); }
.book-strip i.not-yet, .book-key i.not-yet { border-style: dashed; }
.book-rate { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; min-width: 54px; text-align: right; }
.book-row.is-slipping .book-rate { color: var(--seal); }
.book-key { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.book-key i { width: 18px; flex: none; height: 12px; }

@media print {
  .top, .no-print, .sweep { display: none !important; }
  body { background: #fff; color: #000; }
  .year { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .year-night, .year-break { padding: 4px 0; }
}
