.zh-entry{border-color:rgba(255,99,72,.55);background:linear-gradient(145deg,rgba(93,24,35,.8),rgba(15,31,39,.94))}
.zh-entry .eyebrow{color:#ff9b79}
.zh-entry h2{color:#fff0dc}
.zh-entry .go.v,.zh-scout .go.v,.zh-scout-done .go.v{background:#b94c36;color:#fff7e9;box-shadow:0 5px 0 #713022,0 10px 24px rgba(185,76,54,.25)}
.zh-scout{display:grid;justify-items:center;gap:18px;border-color:rgba(255,194,75,.35);background:linear-gradient(150deg,rgba(34,22,30,.94),rgba(13,28,34,.96))}
.zh-scout .eyebrow,.zh-scout-done .eyebrow{color:#e9b86b}
.zh-scout-char{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  font-size:96px;font-weight:500;line-height:1.2;color:#fff0dc;text-shadow:0 0 28px rgba(91,225,174,.3);text-align:center}
.zh-scout-actions{justify-content:center;width:100%;gap:12px}
.zh-scout-meanings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,620px);gap:12px}
.zh-scout-meanings .ch{min-width:0;min-height:64px;white-space:normal;overflow-wrap:anywhere;border-color:rgba(91,225,174,.32)}
.zh-scout-meanings .ch:hover{border-color:#5be1ae}
.zh-scout-done{border-color:rgba(91,225,174,.35);background:linear-gradient(145deg,rgba(17,48,44,.96),rgba(17,27,38,.96))}
.zh-scout-ready{margin:8px 0 14px;padding-left:20px;color:#e9dcc3;font-size:14px;line-height:1.5}
.zh-scout-ready li{margin:4px 0}
.zh-compose-tray-mark{justify-content:center;background:#2a221a}
.zh-scout-rank{margin:12px 0;color:#5be1ae;font-family:var(--mono);font-size:20px;font-weight:700}
/* Z5 Story Scroll: the peek strip (character + pinyin after a tap) and the 2D fallback
   panels shown when WebGL is off, so the comprehension question stays answerable. */
.zh-peek{margin:2px 0 8px;min-height:20px;font-family:var(--mono);font-size:14px;letter-spacing:.04em;
  color:#9cebd0;opacity:.72}
.zh-peek.on{opacity:1;color:#5be1ae;text-shadow:0 0 12px rgba(91,225,174,.35)}
.zh-sentence{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  font-size:30px;letter-spacing:.12em;color:#fff0dc}
.zh-slot{display:inline-block;min-width:34px;color:#5be1ae;text-shadow:0 0 14px rgba(91,225,174,.45)}
.zh-story-note{display:flex;gap:6px;align-items:center;margin:4px 0 0;font-size:12px;color:#e9b86b}
.zh-scroll-dom{margin:10px 0 4px;padding:12px 14px;border:1px solid rgba(91,225,174,.28);border-radius:14px;
  background:linear-gradient(160deg,rgba(243,231,200,.07),rgba(11,17,26,.42))}
.zh-scroll-title{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  font-size:18px;color:#5be1ae;letter-spacing:.14em}
.zh-scroll-panel{margin-top:10px;padding-left:10px;border-left:2px solid rgba(91,225,174,.35)}
.zh-scroll-zh{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  font-size:22px;line-height:1.5;color:#fff0dc;letter-spacing:.08em}
.zh-scroll-py{margin-top:2px;font-family:var(--mono);font-size:12px;color:#9cebd0}
/* Z8 P2-B Long Read: the per-panel "Read aloud" row (practice only, never graded) and the
   Echo Pond slot it opens. Buttons are numbered rather than showing the line, so the row
   stays short on a 12-panel passage. */
.zh-aloud{margin:10px 0 4px;padding:10px 12px;border:1px solid rgba(91,225,174,.22);border-radius:12px;
  background:linear-gradient(160deg,rgba(243,231,200,.05),rgba(11,17,26,.35))}
.zh-aloud-h{font-family:var(--disp);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#9cebd0;margin-bottom:8px}
.zh-aloud-row{display:flex;flex-wrap:wrap;gap:6px}
.zh-aloud-btn{font-family:var(--mono);font-size:13px;padding:6px 10px;border-radius:8px;cursor:pointer;
  border:1px solid rgba(91,225,174,.4);background:rgba(91,225,174,.08);color:#fff4df}
.zh-aloud-btn:hover{border-color:#5be1ae;background:rgba(91,225,174,.16)}
.zh-aloud-pond{margin-top:8px}
.zh-aloud-pond:empty{display:none}
/* Z8 P2-C parent view: the characters the child tapped, grouped by passage. */
.zh-peeks{margin-top:18px}
.zh-peeks-list{display:grid;gap:12px}
.zh-peek-row{padding:10px 12px;border:1px solid rgba(91,225,174,.22);border-radius:12px;
  background:linear-gradient(160deg,rgba(243,231,200,.05),rgba(11,17,26,.35))}
.zh-peek-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:8px}
.zh-peek-title{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  font-size:17px;color:#5be1ae;letter-spacing:.08em}
.zh-peek-day{font-family:var(--mono);font-size:12px;color:var(--dim)}
.zh-peek-chars{display:flex;flex-wrap:wrap;gap:7px}
.zh-peek-chip{display:inline-flex;align-items:baseline;gap:6px;padding:5px 9px;border-radius:999px;
  border:1px solid rgba(91,225,174,.32);background:rgba(91,225,174,.07)}
.zh-peek-ch{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  font-size:19px;color:#fff0dc}
.zh-peek-py{font-style:normal;font-family:var(--mono);font-size:11.5px;color:#9cebd0}
.zh-peek-n{font-family:var(--mono);font-size:11px;color:var(--dim)}
/* Z4 This week in Chinese: review chips, week meta and the parent strand table. */
.zh-week{display:grid;gap:14px}
.zh-week-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.zh-live{font-family:var(--mono);font-size:13px;color:#5be1ae}
.zh-passage{width:100%;box-sizing:border-box;min-height:96px}
.zh-chips{display:grid;gap:10px}
.zh-group{display:flex;align-items:flex-start;gap:10px}
.zh-group-h{flex:0 0 118px;padding-top:8px;font-family:var(--disp);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.zh-row{display:flex;flex-wrap:wrap;gap:8px}
.zh-none{padding:8px 4px;color:var(--dim);font-size:13px}
.zh-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 8px 7px 11px;border-radius:999px;
  border:1px solid rgba(91,225,174,.4);background:rgba(91,225,174,.08)}
.zh-chip b{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-size:18px;font-weight:600;color:#fff0dc}
.zh-chip i{font-style:normal;font-family:var(--mono);font-size:11.5px;color:#9cebd0}
.zh-chip.bad{border-color:rgba(255,99,72,.55);background:rgba(255,99,72,.08)}
.zh-chip.bad i{color:#ff9b79}
.zh-x{border:1px solid var(--line2);background:var(--slab2);color:#fff;border-radius:50%;width:22px;height:22px;
  font-size:13px;line-height:1;cursor:pointer;padding:0}
.zh-x:hover{border-color:#ff9b79}
.zh-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.zh-field{display:grid;gap:4px;font-size:12px;color:var(--dim)}
.zh-field .field{width:100%;box-sizing:border-box}
.zh-strands td.zh-cell{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-size:20px}
.zh-strands td.ok{color:#5be1ae;font-weight:700}
.zh-strands td.some{color:#e9b86b}
/* Z6 speaking tools, surfaced on the parent Chinese tab and (for the mirror) on the
   Tone Mountain card. The mirror and echo pond are DOM widgets; the 3D tool is the
   M3D.tonemirror companion shape inside the tone mountain room. */
.zh-try{border:1px solid rgba(91,225,174,.18);border-radius:14px;padding:14px;
  background:linear-gradient(160deg,rgba(243,231,200,.04),rgba(11,17,26,.55))}
.zh-try .sect-h{margin-bottom:8px}
.zh-try-mic{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:6px 0 10px;border-bottom:1px dashed rgba(255,255,255,.08);margin-bottom:10px}
.zh-mic-state{font-family:var(--mono);font-size:12px;color:var(--dim);letter-spacing:.04em}
.zh-mic-state.on{color:#5be1ae}
.zh-try-block{display:grid;gap:8px;padding:12px 4px;border-top:1px dashed rgba(255,255,255,.06)}
.zh-try-block:first-of-type{border-top:none}
.try-h{font-family:var(--disp);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#9cebd0}
.try-l{font-family:var(--mono);font-size:11px;color:var(--dim);margin-right:4px}
.zh-try-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.zh-try-controls select{min-width:84px;background:var(--slab2);color:#fff;border:1px solid var(--line2);border-radius:8px;padding:6px 8px;font-family:inherit}
.zh-mirror{position:relative;width:100%;min-height:160px;border-radius:10px;overflow:hidden;border:1px solid rgba(91,225,174,.22);
  background:linear-gradient(180deg,rgba(8,16,24,.96),rgba(15,31,39,.96))}
.zh-mirror-svg{display:block;width:100%;height:160px}
.zh-mirror-strip{display:grid;gap:8px;margin:12px 0 4px;padding:12px;border-radius:12px;border:1px solid rgba(91,225,174,.18);background:rgba(8,16,24,.5)}
.zh-mirror-out{min-height:18px;font-family:var(--mono);font-size:12px;color:#9cebd0;opacity:.9}
.zh-echo{display:grid;gap:10px;padding:6px 0 0}
.zh-echo-phrase{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.zh-echo-hanzi{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-size:30px;color:#fff0dc;letter-spacing:.08em}
.zh-echo-py{font-family:var(--mono);font-size:13px;color:#9cebd0}
.zh-echo-status{font-family:var(--mono);font-size:12px;color:var(--dim);min-width:0}
.zh-echo-controls{display:grid;gap:8px}
.zh-echo-controls .ansrow{flex-wrap:wrap;gap:8px}
.zh-mic-status{font-family:var(--mono);font-size:12px;color:var(--dim);letter-spacing:.04em}
.zh-mic-status.on{color:#5be1ae}
@media(max-width:520px){
  .zh-scout-char{font-size:80px}
  .zh-scout-meanings{grid-template-columns:1fr}
  .zh-scout-actions{flex-wrap:wrap}
  .zh-scroll-zh{font-size:20px}
  .zh-echo-hanzi{font-size:26px}
}.zh-lanes{display:flex;gap:8px;flex-wrap:wrap}
.zh-lanes:empty{display:none}
.zh-lane{flex:1 1 96px;min-width:96px;max-width:150px;padding:6px;border-radius:10px;border:1px solid rgba(91,225,174,.18);background:rgba(8,16,24,.5)}
.zh-lane-h{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-size:13px;color:#fff0dc}
.zh-lane-svg{display:block;width:100%;height:84px}
.zh-lane-out{font-family:var(--mono);font-size:11px;color:#9cebd0;min-height:14px}
/* Z3 — Ink Brush widget (writing) and Radical Forge (components). The DOM
   widget is the answer: the 3D scene around it is the parchment scroll. The
   widget itself sits inside `.zh-ink` and stretches the card's full width. */
.zh-ink{display:flex;flex-direction:column;gap:10px;width:100%;padding:6px 0}
.zh-ink-head{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}
.zh-ink-title{font-family:var(--disp);font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#9cebd0}
.zh-ink-py{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-size:18px;color:#fff4df}
.zh-ink-canvas{position:relative;width:100%;max-width:560px;aspect-ratio:1/1;margin:0 auto;background:#f7ebcf;border-radius:14px;border:1px solid rgba(91,225,174,.18);overflow:hidden}
.zh-ink-canvas svg{max-width:100%;max-height:100%;display:block;margin:auto}
.zh-ink-hint{min-height:18px;font-family:var(--mono);font-size:13px;color:var(--dim)}
.zh-ink-actions{display:flex;gap:10px;flex-wrap:wrap}
.zh-ink-actions .ghost{font-size:13px;padding:6px 12px}
/* The Dictation Dragon card sits in the same `.card` slot the engine uses. */
.zh-dictation .eyebrow{color:#cf3f3a}
.zh-dictation .stem{font-size:22px}
.zh-dictation-done h2{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",sans-serif}
.zh-dictation-row .sub{color:var(--dim);font-family:var(--mono);font-size:12px}
/* The Radical Forge crystal choice buttons inherit the standard `.ch` button; the
   parent's "Run the Dictation Dragon now" button is the same `ghost v` class. */
/* Z8a: the Compose / Journal / writew widget (M3D.compose scene renders below it) */
.zh-compose{display:flex;flex-direction:column;gap:10px;padding:6px 0}
.zh-compose-head{display:flex;flex-direction:column;gap:6px}
.zh-compose-title{font-family:var(--disp);font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:#9cebd0}
.zh-compose-frame{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",serif;font-size:22px;color:#2a1a18;background:#f7ebcf;padding:8px 14px;border-radius:8px;border:1px solid rgba(91,225,174,.18);text-align:center}
.zh-compose-frame .zh-slot{display:inline-block;min-width:1.5em;border-bottom:2px dashed #cf3f3a;color:#cf3f3a;text-align:center;padding:0 4px}
.zh-compose-draft{min-height:54px;background:#f7ebcf;border-radius:10px;border:1px dashed rgba(91,225,174,.25);display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 10px}
.zh-compose-empty{color:var(--dim);font-style:italic}
.zh-compose-tile{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",serif;font-size:24px;background:#fff4df;border:1px solid rgba(91,225,174,.4);color:#2a1a18;border-radius:8px;padding:4px 10px;cursor:pointer}
.zh-compose-brushes{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start}
.zh-compose-brush{display:flex;flex-direction:column;align-items:center;background:#f7ebcf;border-radius:10px;border:1px solid rgba(91,225,174,.25);padding:8px;gap:4px}
.zh-compose-brush.done{outline:2px solid #5be1ae}
.zh-compose-brush-py{font-family:"Chakra Petch",system-ui,sans-serif;color:#5a4d3e;font-size:12px}
.zh-compose-brush-target{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",serif;font-size:36px;color:#9c8d70}
.zh-compose-brush-canvas{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px}
.zh-compose-brushpad{width:120px;height:120px;border-radius:6px;border:1px solid rgba(91,225,174,.25);background:#f7ebcf;touch-action:none}
.zh-compose-tray-h{font-family:var(--mono);font-size:12px;color:var(--dim);margin-top:4px}
.zh-compose-tray{display:flex;flex-wrap:wrap;gap:6px;max-height:120px;overflow:auto;padding:4px;background:#0f0e0d;border-radius:10px;border:1px solid rgba(91,225,174,.18)}
.zh-compose-tray-tile{display:flex;flex-direction:column;align-items:center;background:#1a1816;border-radius:6px;padding:4px 8px;cursor:pointer;border:1px solid transparent;color:#fff4df;min-width:44px}
.zh-compose-tray-tile:hover{border-color:rgba(91,225,174,.5)}
.zh-compose-tray-ch{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",serif;font-size:20px}
.zh-compose-tray-py{font-family:"Chakra Petch",system-ui,sans-serif;font-size:9px;color:#9cebd0}
.zh-compose-picker{display:flex;flex-direction:column;gap:6px}
.zh-compose-pinput{width:100%;max-width:240px;background:#0f0e0d;color:#fff4df;border:1px solid rgba(91,225,174,.25)}
.zh-compose-plist{display:flex;flex-wrap:wrap;gap:6px}
.zh-compose-plist-tile{display:flex;flex-direction:column;align-items:center;background:#1a1816;border-radius:6px;padding:4px 8px;cursor:pointer;border:1px solid transparent;color:#fff4df}
.zh-compose-plist-ch{font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",serif;font-size:20px}
.zh-compose-plist-py{font-family:"Chakra Petch",system-ui,sans-serif;font-size:10px;color:#9cebd0}
.zh-compose-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:6px}
.zh-compose-actions .go{background:#9a3b30;color:#fff4df;font-weight:700}
