/* レイアウト：上に語を選ぶ棚、中央に組み立て中のチャンク（読む画面と同じ見た目＋パズル）、下に「形」と「はまる語」の棚。
     色は DiglotWeave と同じ：学ぶ語＝緑、つなぐ語＝紫、覚えた＝茶 */
  :root {
    --bg: #f6f3ec; --panel: #fffdf8; --ink: #23211c; --muted: #5f5852; --line: #e2dccf; --soft: #efe9dd;
    --word: #0f6b63; --word-f: #e3f1ee; --word-t: #0b4f49;
    --aux: #534ab7; --aux-f: #eeedfe; --aux-t: #3c3489;
    --end: #8a857c; --end-f: #efede8; --end-t: #4a463f;   /* 文の終わりの語（よ・ね・な・か）＝灰色 */
    --gloss: #55504a;   /* 2026-11-08：--muted を #5f5852 に濃くしたので一段濃く（UIUX）。2026-11-03 講評 mock-9 案A：語の上の英語・⚑・暦の日付。--muted より一段濃く（語の緑の地でも 4.5:1 以上） */
    --learned: #9a5b00; --learned-f: #fbeed6; --learned-line: #d9a960;
    --gold: #8a6400; --gold-f: #fff3c2; --gold-hi: #fffbe6; --gold-glow: rgba(214, 168, 20, .45);
    --danger: #a33b2b; --hl: #ba7517; --hl-f: #faeeda; --pr-ink: #8f5a0f; --rd-ink: #3b3833;
    --shadow: 0 6px 24px rgba(40, 32, 18, .12);
    --logo-pita: #1f8a7d; --logo-maru: #e2574c; --chg: #c2410c; --chg-on: #ffcf9e;   /* ロゴ pitamaru JP（ブランドの色：pita＝ミント・maru＝墨・。＝朱） */
    --font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
    --font-en: "Noto Sans", "Segoe UI", system-ui, sans-serif;
    --moon: #f2c14e; --moon-ink: #2a241c; --press: #0b4f49; --paper: #ffffff;   /* Home（ちぎり絵 V2。2026-11-23）：月の黄色・押せるボタンの影・貼った紙 */
  }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
    --logo-pita: #5cc2b5; --logo-maru: #f0786b; --chg: #ff9a5c; --chg-on: #9a3412; --bg: #1b1a17; --panel: #24221e; --ink: #ece7dc; --muted: #a39c90; --line: #3a362f; --soft: #2e2b26;
    --word: #5cc2b5; --word-f: #17332f; --word-t: #b8ebe3;
    --aux: #a9a2f0; --aux-f: #29264a; --aux-t: #d6d2fb;
    --end: #9c968b; --end-f: #34312c; --end-t: #ddd7cc; --gloss: #a39c90;
    --learned: #c4975f; --learned-f: #3b2b12; --learned-line: #8a6428;   /* 茶色（覚えた語）：#e3a64a はオレンジに見えた（学習者役 12 回目 uma-11・持ち主 11-25 D-82 の 11）。地との比 6.0 */
    --gold: #ffd25e; --gold-f: #4a3a0e; --gold-hi: #6b5414; --gold-glow: rgba(255, 210, 94, .45);
    --danger: #e58a78; --hl: #e3a64a; --hl-f: #3b2b12; --pr-ink: #e3a64a; --rd-ink: #ddd6c9; --shadow: 0 6px 24px rgba(0, 0, 0, .4); --moon: #d9ad47; --moon-ink: #1b1a17; --press: #2b7d73; --paper: #2e2b26; color-scheme: dark; } }
  :root[data-theme="dark"] {
    --logo-pita: #5cc2b5; --logo-maru: #f0786b; --chg: #ff9a5c; --chg-on: #9a3412; --bg: #1b1a17; --panel: #24221e; --ink: #ece7dc; --muted: #a39c90; --line: #3a362f; --soft: #2e2b26;
    --word: #5cc2b5; --word-f: #17332f; --word-t: #b8ebe3;
    --aux: #a9a2f0; --aux-f: #29264a; --aux-t: #d6d2fb;
    --end: #9c968b; --end-f: #34312c; --end-t: #ddd7cc; --gloss: #a39c90;
    --learned: #c4975f; --learned-f: #3b2b12; --learned-line: #8a6428;
    --gold: #ffd25e; --gold-f: #4a3a0e; --gold-hi: #6b5414; --gold-glow: rgba(255, 210, 94, .45);
    --danger: #e58a78; --hl: #e3a64a; --hl-f: #3b2b12; --pr-ink: #e3a64a; --rd-ink: #ddd6c9; --shadow: 0 6px 24px rgba(0, 0, 0, .4); --moon: #d9ad47; --moon-ink: #1b1a17; --press: #2b7d73; --paper: #2e2b26; color-scheme: dark; }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html, body { margin: 0; }
  body { background: var(--bg); color: var(--ink); font-family: var(--font-en); font-size: 15px; line-height: 1.5; }
  /* 上の余白（ノッチ・時計の帯）は、ホーム画面に置いたアプリとして開いたときだけ取る。
     ブラウザの中（Android の Bing・Chrome など）は帯の下からページが始まるのに、値だけ返す端末があり、ヘッダーの上に空きができるため */
  :root { --sat: 0px; }
  @media (display-mode: standalone), (display-mode: fullscreen) { :root { --sat: env(safe-area-inset-top, 0px); } }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: var(--sat); z-index: 10; background: var(--panel); }
  button { font: inherit; color: inherit; cursor: pointer; }
  button:focus-visible, svg.piece:focus-visible, summary:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; }
  :is(input, textarea):focus-visible { outline: 2px solid var(--hl); outline-offset: 1px; }   /* 入力欄も同じオレンジ（2026-11-05 確認：ダークで白い既定の枠だった） */
  /* 2026-11-04 講評10：本文の語・単語カード・結果の1行のフォーカス枠（--hl はライト・ダークで変わる）。マウスの .open（灰色の枠）と見分ける */
  [data-gi]:focus-visible, [data-ev-gi]:focus-visible { outline: 3px solid var(--hl); outline-offset: 2px; border-radius: 4px; }
  .tip:focus-visible, .qz-line:focus-visible, .build-sheet .qz-line:focus-visible { outline: 2px solid var(--hl); outline-offset: 2px; }
  .qz-line:focus:not(:focus-visible), .tip:focus:not(:focus-visible) { outline: none; }
  /* 2026-11-04 講評10：Skip to story text（読む画面の最初の Tab。フォーカスしたときだけ見える） */
  .skip-link { position: fixed; left: 8px; top: -80px; z-index: 50; padding: 8px 14px; border-radius: 8px; border: 2px solid var(--hl);
               background: var(--panel); color: var(--ink); font-weight: 600; text-decoration: none; }
  .skip-link:focus { top: calc(var(--sat, 0px) + 8px); }
  body[data-tab]:not([data-tab="read"]) #skip-text, body:has(#library:not([hidden])) #skip-text, .skip-link[hidden] { display: none; }   /* 本棚を開いている間も出さない */
  /* 物語のほかの画面は Skip to content（D-82 の 3。持ち主 11-25「それで」。学習者役 12・13 回目 kim8-9・kim9-13）。物語を開いている間は Skip to story text だけ */
  body:not([data-tab]) #skip-main, body[data-tab="read"]:has(#library[hidden]) #skip-main { display: none; }
  .ja { font-family: var(--font-ja); }

  header { position: sticky; top: var(--sat); z-index: 5; background: var(--panel); border-bottom: 1px solid var(--line);
           padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .head { max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
  h1 { font-size: 17px; margin: 0; letter-spacing: .01em; font-weight: 600; }
  /* ロゴ：pitamaru JP（丸ゴシック Zen Maru Gothic。「。」は朱の輪、JP は小さく） */
  .logo { font-family: "Zen Maru Gothic", var(--font-en); font-weight: 900; font-size: 26px; line-height: 1; letter-spacing: -.03em;
          display: flex; align-items: baseline; color: var(--ink); }   /* baseline：「。」と JP の下を文字の下（ベースライン）にそろえる */
  .logo .lg-pita { color: var(--logo-pita); }
  .logo .lg-dot { width: .23em; height: .23em; margin-left: .04em; position: relative; top: .01em; overflow: visible; fill: none; stroke: var(--logo-maru); stroke-width: 8; flex: none; }   /* 箱の下＝輪の下＝ベースライン */
  .logo .lg-jp { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: .3em; letter-spacing: .06em; }
  nav { display: flex; flex-wrap: wrap; gap: 4px; }
  nav button, .seg button { border: 0; background: none; padding: 6px 12px; border-radius: 6px; color: var(--muted); }
  nav button.on { background: var(--word-f); color: var(--word); font-weight: 600; }
  .px-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); width: fit-content; margin-bottom: 12px; }
  .px-tabs button { border: 0; background: none; padding: 7px 16px; border-radius: 7px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
  .px-tabs button:hover { color: var(--ink); }
  .px-tabs button.on { background: var(--word); color: var(--panel); }
  .px-tabs button { min-height: 44px; }
  /* Practice の一覧（2026-11-08 案E mock5）。カード全体が一つのボタン・高さ 56px 以上 */
  .hb-list { display: flex; flex-direction: column; gap: 8px; }
  .hb-h { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 14px 0 0; }
  .hb-h:first-child { margin-top: 0; } .hb-pair .hb-h { margin-top: 14px; }
  .hb-grid { display: flex; flex-direction: column; gap: 8px; }
  .hb-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; font: inherit; color: var(--ink);
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
  .hb-row.big { border: 2px solid var(--word); padding: 12px 14px; }
  .hb-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--word-f); color: var(--word); font-weight: 600; font-size: 17px; }
  .hb-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .hb-tx b { font-weight: 700; }
  .hb-tx small { color: var(--muted); font-size: 13px; }
  .hb-chev { color: var(--word); font-weight: 700; font-size: 18px; }
  .hb-go { flex: none; pointer-events: none; }
  .hb-row.lock { cursor: default; }
  .hb-row.lock .hb-tx b, .hb-row.lock .hb-tx small, .hb-row.lock .hb-lock { color: var(--muted); }
  .hb-row.lock .hb-ic { background: color-mix(in srgb, var(--line) 70%, transparent); color: var(--muted); }
  .hb-bar { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 25%, transparent); margin-top: 4px; max-width: 220px; overflow: hidden; }
  .hb-bar i { display: block; height: 100%; background: var(--word); border-radius: 3px; }
  .hb-cont { width: 100%; min-height: 44px; text-align: left; font: inherit; font-weight: 600; color: var(--word); background: var(--word-f); border: 1px solid var(--word); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
  .hb-note { margin: 4px 2px; color: var(--muted); font-size: 14px; }
  @media (hover: hover) { .hb-row:hover, .hb-cont:hover { border-color: var(--word); } }
  @media (min-width: 900px) {
    .hb-today { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .hb-today .hb-cont, .hb-today .hb-note { grid-column: 1 / -1; }
    .hb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .hb-kana { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .hb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .hb-pair .hb-grid { grid-template-columns: 1fr; }
  }
  /* 選び方の欄は一覧に移した（隠すだけ。今までの練習の道は #qz-mode の値で動く） */
  #tab-quiz .qz-target label[for="qz-mode"], #qz-mode { display: none; }
  /* Pick a word・Pick a group or ending：選ぶまで問題を出さない（2026-11-08 講評 learner-practice-e） */
  body.qz-choosing #tab-quiz .card.qz, body.qz-choosing #qz-ord, body.qz-choosing #qz-none, body.qz-choosing #qz-first, body.qz-choosing #qz-rest, body.qz-choosing #qz-ord-none { display: none !important; }
  /* 課題の英語：主語・補いの（）は薄く細く、動詞を太く。(polite) は札（2026-10-26） */
  .g-par { font-weight: 400; color: var(--muted); }
  .g-tag { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600;
    letter-spacing: .02em; color: var(--word); background: var(--word-f); border: 1px solid color-mix(in srgb, var(--word) 35%, transparent); }
  /* 課題の英語とピースを色でつなぐ（2026-10-31）：? の語＝語の色（下線）、つなぐ語から来た語と札＝つなぐ語の色。主語には not said の小札 */
  .g-w { color: var(--word-t); box-shadow: inset 0 -3px 0 var(--word); }
  .g-a { color: var(--aux-t); box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--aux) 55%, transparent); }
  .g-q { font-weight: 700; }
  .g-tag.g-tag-a { color: var(--aux-t); background: var(--aux-f); border-color: color-mix(in srgb, var(--aux) 45%, transparent); }
  /* not said：(someone) の真上の小さな札（polite と同じ形・灰色）。2026-11-05 講評11 */
  .g-I { font-family: Georgia, "Times New Roman", serif; }   /* (I) の I が細い字で | に見えた（2026-11-05 講評11） */
  /* 札（not in the Japanese）は左にそろえ、幅に数えない（右にはみ出す）。(I) のような短い主語のあとに大きな隙間ができていた（2026-11-06 講評13） */
  .g-subj { display: inline-flex; flex-direction: column; align-items: flex-start; vertical-align: bottom; line-height: 1.15; }
  .g-subj > .g-whorow { margin-right: -200px; display: inline-flex; align-items: center; gap: 4px; }
  .g-why { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); background: var(--soft); color: var(--muted);
    font: 600 12px/16px var(--font-en); cursor: pointer; }
  .g-why-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
  .g-who { display: inline-block; margin: 0 0 1px; padding: 0 7px; border: 1px solid color-mix(in srgb, var(--muted) 45%, transparent); border-radius: 999px; background: var(--soft);
    font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; line-height: 1.5; white-space: nowrap; }
  .qz-gap.qz-m { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
  .qz-mean { font-size: 12px; font-weight: 600; border-radius: 6px; padding: 0 6px; line-height: 1.5; max-width: 140px; text-align: center; }
  .qz-mean.w { color: var(--word-t); background: var(--word-f); }
  .qz-mean.a { color: var(--aux-t); background: var(--aux-f); }
  .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-left: auto; }
  .seg button { border-radius: 0; padding: 4px 10px; font-size: 13px; }
  .seg button.on { background: var(--word); color: var(--panel); }
  /* 組の中のボタンは枠を内側に（.seg は角を丸めるため overflow: hidden で、外に出した枠が切れて細い線しか見えなかった：学習者役 10 回目 kim6-4。C-35） */
  .seg button:focus-visible { outline-offset: -3px; }
  /* No hints のあいだ Meanings above は効かない（All が選ばれたままで食い違って見えた：otto-10）：薄く */
  body[data-nohints="1"] #meanings { opacity: .45; }
  .kb-hint { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; margin: 0; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--panel); font-size: 13px; box-shadow: var(--shadow); max-width: calc(100vw - 24px); transition: opacity .4s; pointer-events: none; }   /* キーの使い方（一度だけ。read-keys.js）。画面の下に浮かべる（xia-4） */
  .kb-hint.out { opacity: 0; }
  @media (max-width: 720px) { .kb-hint { bottom: 90px; } }   /* スマホの下のバーの上 */
  .nh-off { display: none; font-weight: 400; color: var(--muted); }   /* 灰色のわけを目に見える字でも（学習者役 12 回目 uma-7・wren-11） */
  body[data-nohints="1"] .nh-off { display: inline; }
  /* 組み立ての板の朱の点の説明（otto-8・mei-10・pia-6）。点の色はピースの .ex と同じ */
  .b-ex { margin: 4px 0 0; font-size: 13px; }
  .b-ex-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--logo-maru); vertical-align: middle; }
  /* 表記・読みの切り替えに何の切り替えかを書く（PC。どちらが何か分かりにくい、とユーザー 2026-10-26）。スマホのメニューでは上の見出しがあるので出さない */
  .seg-cap { display: inline-flex; align-items: center; padding: 0 9px; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--muted);
    background: var(--soft); border-right: 1px solid var(--line); white-space: nowrap; }

  main { max-width: 980px; margin: 0 auto; padding-block: 20px 80px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
         display: flex; flex-direction: column; gap: 18px; }
  .label { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
  .hint { color: var(--muted); font-size: 13px; margin: 0; }

  /* 語の棚 */
  .shelf { display: flex; flex-direction: column; gap: 8px; }
  .shelf-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 18px; }
  .shelf-groups > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
  .shelf-q { font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-height: 36px; max-width: 360px; }
  .shelf-more { font-size: 13px; color: var(--muted); align-self: center; padding: 4px 6px; }
  /* スマホ（〜720px）：一覧は盤の下で畳み、このボタンで開く。PC（721px〜）は今まで通りいつも開いていてボタンなし（2026-11-05 講評） */
  .shelf-box { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  /* 2026-11-06 講評12：PC でも一覧は畳み、このボタンで開く（前は スマホだけ） */
  .shelf-toggle { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; width: 100%; min-height: 44px; padding: 8px 14px;
                  text-align: left; font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
  .shelf-toggle:hover { border-color: var(--word); }
  .shelf-toggle .st-cur { min-width: 0; overflow-wrap: anywhere; }
  .shelf-toggle .st-cur b { font-weight: 700; color: var(--word-t); }
  .shelf-toggle .st-sep { white-space: pre; color: var(--muted); }
  .shelf-toggle .st-act { flex: none; font-weight: 700; color: var(--word); white-space: nowrap; }
  .shelf-box.closed .shelf { display: none; }
  @media (min-width: 721px) { .shelf-toggle { width: auto; max-width: 100%; align-self: flex-start; } }
  .chips { display: flex; flex-wrap: wrap; gap: 5px; }
  .chip { border: 1px solid var(--line); background: var(--panel); border-radius: 7px; padding: 3px 9px; font-size: 14px; }
  /* 棚の語の読み：漢字の上に ふりがな、横に ローマ字（読めない人のために） */
  small { font-size: max(12px, .8333em); }   /* 字は 12px 以上（決まり C-34。持ち主 2026-11-19「全画面に当ててそろえる」）。ルビ・下の読み・札の二段・絵の中の字は例外 */
  .chip ruby rt { font-size: 9px; color: var(--muted); }
  .chip .chip-rd { font-family: var(--font-en); font-size: 12px; color: var(--muted); margin-left: 4px; }
  .chip .chip-rd + small::before { content: "· "; }
  /* パズルの英訳のもう一つの読み（食べられる：is eaten / can eat） */
  /* て-form のページ：かな・漢字の横に小さくローマ字 */
  #tab-te small.rd { font-family: var(--font-en); font-size: .72em; color: var(--muted); margin-left: .3em; font-weight: 400; }
  #tab-te .q-word small.rd { display: block; font-size: 15px; margin: 2px 0 0; }
  #tab-te .q-word small.q-en { display: block; font-family: var(--font-en); font-size: 15px; color: var(--muted); margin: 0; }
  #tab-te .opt small.rd { display: block; margin: 0; }
  .gloss .alt { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
  .chip small { color: var(--muted); font-family: var(--font-en); font-size: 12px; margin-left: 4px; }
  .chip.on { border-color: var(--word); background: var(--word-f); color: var(--word-t); font-weight: 600; }
  .chip.learned { box-shadow: inset 0 -2px 0 var(--learned-line); border-color: var(--learned-line); }
  .chip .prog { font-family: var(--font-en); font-size: 12px; color: var(--learned); margin-left: 5px; font-variant-numeric: tabular-nums; }

  /* 組み立て中のチャンク */
  .board { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
  .reading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
  .chunk { font-family: var(--font-ja); font-size: 28px; line-height: 1.9; }
  .chunk .pc { cursor: pointer; border-radius: 4px; padding: 0 1px; color: var(--word); border-bottom: 2px solid transparent; }
  .chunk .pc.aux { color: var(--aux); }
  .chunk .pc.learned { color: var(--learned); background: var(--learned-f); }
  .chunk rt { font-size: 11px; color: var(--muted); font-family: var(--font-ja); }
  .gloss { font-size: 17px; padding-left: 12px; border-left: 2px solid var(--learned-line); }
  .gloss .tk { border-radius: 3px; padding: 0 1px; }
  .gloss .tk.subj { color: var(--muted); font-size: 14px; }
  .gloss .tk.learned { color: var(--learned); background: var(--learned-f); }
  .gloss .tk.some { text-decoration: underline 2px var(--learned-line); text-underline-offset: 3px; }
  .tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; margin-left: 6px; vertical-align: 2px; }
  .hl { background: var(--hl-f) !important; box-shadow: 0 0 0 2px var(--hl); }
  .romaji { font-size: 13px; color: var(--muted); width: 100%; }
  .scroll { overflow-x: auto; padding-bottom: 4px; }
  .notes { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
  .notes b { font-family: var(--font-ja); color: var(--ink); font-weight: 600; }
  .row-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .btn { border: 1px solid var(--line); background: var(--panel); border-radius: 7px; padding: 4px 12px; font-size: 13px; color: var(--muted); }
  .btn:hover { border-color: var(--word); color: var(--word); }

  /* パズルのピース（SVG） */
  svg.piece, svg.chain { overflow: visible; display: block; }
  svg.piece { cursor: pointer; }
  .p-word path.body { fill: var(--word-f); stroke: var(--word); }
  .p-word text { fill: var(--word-t); }
  .p-aux path.body { fill: var(--aux-f); stroke: var(--aux); }
  .p-aux text { fill: var(--aux-t); }
  /* つなぎ目ピース（ます形と て・た の間）：語のピースと同じ色で、境目（path.seam）だけ点線＝一語（住｜ん）。
     空は細い。例外（行っ）は右上に朱の点。棚・解説の て・た の前の空のつなぎ目は点線の枠だけ */
  path.body.seam { stroke-dasharray: 2.5 2; }
  .p-joint path.body { fill: var(--aux-f); stroke: var(--aux); }
  .p-joint text { fill: var(--aux-t); }
  /* ローマ字の活用で変わる所（kak[i]・hana[shi]）。core/conj-mark.js。かな・漢字の画面には出ない */
  svg text tspan.chg { fill: var(--chg); font-weight: 800; }
  .p-joint-slot path.body { fill: none; stroke: var(--muted); stroke-dasharray: 3 2; }
  circle.ex { fill: var(--logo-maru); }
  .p-end path.body { fill: var(--end-f); stroke: var(--end); }
  .p-end text { fill: var(--end-t); }
  .p-punct path.body { fill: var(--soft); stroke: var(--muted); }
  .p-punct text { fill: var(--ink); }
  .p-learned path.body { fill: var(--learned-f); stroke: var(--learned); }
  .p-learned text { fill: var(--learned); }
  /* マスターした語（すべての形がレベル4）：金色に光らせる */
  .p-mastered path.body { fill: var(--gold-f); stroke: var(--gold); stroke-width: 2; }
  .p-mastered text { fill: var(--gold); }
  text.mark { font-size: 9px; fill: var(--gold) !important; }
  text.ptag { font: 600 9px var(--font-en); fill: var(--aux, var(--muted)) !important; }
  text.rt { font-size: 9px; fill: var(--muted) !important; font-family: var(--font-ja); }
  g.p-mastered { filter: drop-shadow(0 0 3px var(--gold-glow)); }
  .lg-gold { color: var(--gold); background: linear-gradient(135deg, var(--gold-f), var(--gold-hi)); border: 1px solid var(--gold); }
  .pc.mastered { color: var(--gold) !important; background: linear-gradient(135deg, var(--gold-f), var(--gold-hi)) !important; border-radius: 3px; }
  .t-mastered { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 13px; color: var(--gold);
                background: linear-gradient(135deg, var(--gold-f), var(--gold-hi)); border: 1.5px solid var(--gold); border-radius: 7px; padding: 3px 10px;
                box-shadow: 0 0 8px var(--gold-glow); }
  path.body { stroke-width: 1.4; stroke-linejoin: round; }
  text.sub { font-size: 11px; fill: var(--muted) !important; }
  text.badge { font-size: 10.5px; fill: var(--muted) !important; }
  path.ghost { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 3 3; }
  g.hl path.body { stroke: var(--hl); stroke-width: 2.6; }
  svg.piece.on path.body { stroke-width: 2.6; }
  /* 選んでいる形：塗りつぶして、ほかは少し薄く（ナビのボタンと同じ見せ方） */
  .forms svg.piece.on path.body { fill: var(--word); stroke: var(--word); stroke-width: 2; }
  .forms svg.piece.on text { fill: var(--panel) !important; font-weight: 700; }
  .forms svg.piece.on text.sub { fill: var(--panel) !important; opacity: .8; }
  .forms svg.piece.on tspan.chg { fill: var(--chg-on) !important; }
  .forms svg.piece.on text.badge { fill: var(--word) !important; font-weight: 700; }
  text.badge.use { fill: var(--ink) !important; font-weight: 600; }   /* 意味（上の行）を濃く。名前（下の行）は薄いまま（2026-11-05 mock19） */
  .forms svg.piece.on text.badge.use { fill: var(--word) !important; font-weight: 700; } .forms svg.piece.on text.badge:not(.use) { font-weight: 400; }
  .forms svg.piece:not(.on) { opacity: .6; }
  .forms svg.piece:not(.on):hover { opacity: 1; }
  /* 変わる字の区画（Quiz・Build の五段の語。ui/pieces.js の cellPiece・2026-11-01）：区画の地を少し濃く、縁（右はつまみ）を濃く太く、境目は点線。
     色はピースの色の同系（緑・紫・茶・金）。区画の中の母音（ローマ字）は太く濃く */
  path.cell { fill: color-mix(in srgb, var(--word) 20%, var(--word-f)); stroke: var(--word-t); stroke-width: 2.4; stroke-linejoin: round; }
  path.cell-seam { fill: none; stroke: var(--word); stroke-width: 1.2; stroke-dasharray: 2.5 2; }
  /* 分類の一言（Build の形の棚の見出し・Quiz の答えたあと。2026-11-01） */
  .forms-group { text-transform: none; letter-spacing: 0; font-weight: 500; }
  .forms-group .grp-name { font: inherit; color: inherit; text-decoration: underline dotted 1.5px; text-underline-offset: 3px; padding: 0; }
  /* 組み立ての板の案内（build-ui.js の tourLine）：板の下の説明の行を案内にする（窓は重ねない）。光らせるところは枠だけ */
  .build-sheet .why:has(.b-tour) { background: none; padding: 0; }
  .build-sheet .why .b-tour { display: block; background: var(--word-f); border-left: 3px solid var(--word); border-radius: 8px; padding: 9px 12px; color: var(--ink); line-height: 1.5; }
  /* 案内の帯（板の上に細く。build-ui.js の tourStrip） */
  .term-tip { display: block; margin-top: 8px; background: var(--word-t); color: var(--panel); border-radius: 8px; padding: 7px 10px; font-size: 13px; line-height: 1.45; }
  .term-tip b { color: var(--panel); } .term-tip small { opacity: .8; }
  .bm-note { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 10px; padding: 6px 8px 6px 14px; border-radius: 12px; background: var(--word-f);   /* 2026-11-05 講評11：999px はスマホで2行に折れると大きな楕円になった */ color: var(--word-t); font-size: 14px; }
  .bm-note .btn { margin-left: auto; padding: 2px 12px; font-size: 13px; border-radius: 999px; }
  /* 語尾のクイズの段（ui/endings.js。2026-11-03 ユーザー：a＋b1） */
  .en-card { padding: 12px 16px; }
  .en-box + .en-box { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
  .en-box { display: grid; gap: 6px; }
  .en-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  .en-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 10px; font-size: 14px; border: 1px solid var(--line); background: var(--panel); }
  .en-chip.got { background: var(--word); color: var(--panel); border-color: var(--word); }
  .en-chip.open { border-color: var(--word); color: var(--word-t); }
  .en-chip small { font-size: 12px; }
  .en-dots { display: inline-flex; gap: 2px; }
  .en-dots i { width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--word) 25%, transparent); }
  .en-dots i.on { background: var(--word); }
  .en-hint b { color: var(--word-t); }
  .en-unlock { display: block; margin-top: 8px; background: var(--word-f); border-left: 3px solid var(--word); border-radius: 8px; padding: 7px 10px; color: var(--ink); }
  .qz-intro .en-unlock { margin: 0; flex: 1 1 100%; }
  .qz-intro .en-unlock { border-left: 0; background: none; padding: 0; border-radius: 0; }   /* 外の枠（qz-intro）と線が二重だった（2026-11-05 講評11） */
  .build-sheet .b-strip { display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin: -4px 0 8px; padding: 5px 10px; border-radius: 8px; background: var(--word-f); color: var(--word); font-size: 12px; }
  .build-sheet .b-strip-l { display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; }
  .build-sheet .b-strip b { font-size: 12px; letter-spacing: .06em; }
  .build-sheet .b-strip .linkish { font-size: 12px; }
  @media (max-width: 480px) { .build-sheet .b-strip-sub { display: none; } .build-sheet .b-strip { flex-wrap: nowrap; } }   /* スマホは1行（何番目か・Exit tour だけ。いまやることは下の文にある） */
  .build-sheet .why .b-tour small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--word); }
  .build-sheet .why .b-tour .btn { margin-left: 6px; }
  .build-sheet .why .b-tour-end { background: var(--word); color: var(--panel); border-left-color: var(--word-t); }
  .build-sheet .why .b-tour-end b { color: var(--panel); }
  .build-sheet .why .b-tour-end .b-tour-done { display: block; font-size: 17px; margin-bottom: 2px; }
  .build-sheet .why .b-tour-end .btn { background: var(--panel); color: var(--word-t); border-color: var(--panel); font-weight: 700; }
  .build-sheet .qz-choice[disabled] { pointer-events: none; }   /* 押せない選択肢は押下をまわりへ（案内の「tap anywhere」が、ここを押すと効かなかった。2026-11-03 講評） */
  .build-sheet .qz-choices.b-glow { outline: 3px solid var(--word); outline-offset: 4px; border-radius: 10px; animation: tut-glow 1.6s ease-in-out infinite; }
  .grp-q.b-glow { outline: 3px solid var(--word); outline-offset: 2px; animation: tut-glow 1.6s ease-in-out infinite; }
  /* 案内の3歩め：? を「? How it changes」の塗りの札に（2026-11-02 ユーザー：小さな ? が見つけにくかった） */
  .grp-q.b-label { width: auto; height: auto; padding: 3px 10px; border-radius: 999px; gap: 4px; display: inline-flex; align-items: center;
    background: var(--word); border-color: var(--word); color: var(--panel); font-size: 13px; letter-spacing: 0; }
  .grp-q.b-label:hover, .grp-q.b-label[aria-expanded="true"] { color: var(--panel); }
  /* 案内の札は見出しの下の行に（2026-11-02 講評：スマホで光る枠が見出しの字に重なった） */
  .forms-group .grp-q.b-label { display: flex; width: fit-content; margin: 8px 0 2px; }
  .b-tour-q { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--word); color: var(--panel); font-size: .92em; }
  .b-how { width: 22px; height: 22px; margin-right: 8px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--muted);
           font: 700 12px var(--font-en); cursor: pointer; }
  .b-how:hover { color: var(--word); border-color: var(--word); }
  /* パズルの説明「How the pieces fit」（puzzle-intro.js。2026-11-04）：組み立ての板・Quiz・Build で同じ札。盤と手本のピースは札の中に収める */
  .qz-ask-l { display: inline-flex; align-items: center; gap: 8px; }
  .qz-ask-l .b-how { margin-right: 0; }
  #qz-why [data-forms-again] { margin-right: 8px; }   /* Practice them again と Review other words がくっついていた */
  .pi-card { display: grid; gap: 8px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
    border-left: 3px solid var(--word); box-shadow: var(--shadow); font-size: 15px; animation: welcome-in .3s ease-out; min-width: 0; }
  .pi-card .pi-t { font-size: 16px; }
  .pi-card .pi-p { margin: 0; }
  .pi-demo { display: grid; gap: 10px; padding: 10px; border-radius: 10px; background: var(--soft); min-width: 0; overflow: hidden; }
  .pi-board, .pi-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
  .pi-board { gap: 0; }
  .pi-choices { gap: 8px 14px; }
  .pi-card svg { max-width: 100%; }
  .pi-joint .pi-rows { display: grid; gap: 6px; }
  .pi-hl { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; } .pi-hl.no { stroke: var(--danger); } .pi-hl.ok { stroke: var(--word); }   /* つなぎ目の札：違いのある縁（puzzle-intro.js 案B） */
  .pi-joint .pi-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  .pi-joint .pi-mk { width: 16px; font-weight: 800; } .pi-joint .pi-mk.no { color: var(--danger); } .pi-joint .pi-mk.ok { color: var(--word); }
  .pi-acts { margin: 0; }
  /* 広い画面のつなぎ目の札（2026-11-06 講評12：札だけで画面がうまり、盤が下へ押し出された）：説明は左、見比べる絵は右に二列。✗ の行は二列ぶん */
  @media (min-width: 1000px) {
    .pi-joint { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: start; }
    .pi-joint > :not(.pi-rows) { grid-column: 1; }
    .pi-joint > .pi-rows { grid-column: 2; grid-row: 1 / span 4; grid-template-columns: auto auto; gap: 6px 18px; align-content: start; }
    .pi-joint .pi-row:first-child { grid-column: 1 / -1; }
  }
  .pi-mean { margin: 0; font-size: 14px; color: var(--muted); } .pi-mean b { color: var(--ink); }   /* 手本ではまった形と意味（puzzle-intro.js settleOf） */
  /* 小さい説明札（2026-11-09 持ち主。学習者 09g #3）：見出しと説明と Skip を1段、手本は1列（? ない ← いく いか） */
  .pi-card:not(.pi-joint) { gap: 6px; padding: 8px 10px; font-size: 14px; }
  .pi-card:not(.pi-joint) .pi-t { font-size: 14px; margin-right: 4px; }
  .pi-card .pi-ex { display: inline-block; font-size: 12px; line-height: 1.5; padding: 0 7px; margin-right: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }   /* 見本の語（2026-11-12 持ち主 案4） */
  .pi-card .pi-ex span { color: var(--ink); font-weight: 600; }
  .pi-card .pi-skip { float: right; margin-left: 8px; font-size: 13px; }
  .pi-card:not(.pi-joint) .pi-demo { display: flex; align-items: center; justify-content: flex-start; gap: 6px 14px; padding: 6px 8px; flex-wrap: nowrap; }
  .pi-card:not(.pi-joint) .pi-demo svg { height: 36px; width: auto; }
  .pi-card:not(.pi-joint) .pi-board { flex-wrap: nowrap; flex: none; }
  .pi-card:not(.pi-joint) .pi-choices { flex-wrap: nowrap; gap: 6px; }
  .pi-arrow { color: var(--muted); font-size: 14px; }
  .pi-cap { min-height: 84px; } .pi-card:not(.pi-joint) .pi-cap { min-height: 52px; }   /* 手本の一歩ずつの札（ui/fly.js の slot）の場所。札の大きさを先に取っておく（出てから伸びると Your turn が画面の下に押し出された） */
  .pi-one { margin: 6px 2px 0; font-size: 14.5px; line-height: 1.5; }   /* 1 枚の説明の一文と Got it（2026-11-17 持ち主 C11） */
  .pi-one .btn { margin-left: 6px; padding: 4px 14px; min-height: 36px; }
  @media (min-width: 560px) { .pi-cap { min-height: 48px; } }
  #tab-puzzle .pi-card { margin: 0; }
  @media (prefers-reduced-motion: reduce) { .pi-card { animation: none; } }
  @media (prefers-reduced-motion: reduce) { .build-sheet .qz-choices.b-glow, .grp-q.b-glow { animation: none; } }
  /* 分類の ? と小窓（web/group-pop.js） */
  .grp-q { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
           background: var(--panel); color: var(--muted); font: 700 12px var(--font-en); cursor: pointer; vertical-align: 1px; text-transform: none; }
  .grp-q:hover, .grp-q[aria-expanded="true"] { color: var(--word); border-color: var(--word); }
  .grp-pop { position: fixed; z-index: 70; max-width: min(460px, calc(100vw - 16px)); background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
             box-shadow: var(--shadow); padding: 10px 12px; font-size: 13.5px; color: var(--ink); text-transform: none; letter-spacing: 0; }
  .grp-pop .grp-h { margin: 0 0 8px; line-height: 1.5; }
  .grp-pop .grp-forms { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 8px; }
  .grp-pop .grp-forms svg { height: 40px; width: auto; }
  .qz-group { display: block; margin-bottom: 6px; color: var(--ink); }
  .qz-group .g { display: inline-block; font-size: 12px; color: var(--muted); border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 0 8px; margin-right: 6px; }
  path.cell-line { fill: none; stroke: var(--word-t); stroke-width: 2.4; stroke-linejoin: round; }
  .p-aux path.cell-line { stroke: var(--aux-t); } .p-learned path.cell-line { stroke: var(--learned); } .p-mastered path.cell-line { stroke: var(--gold); }
  .p-aux path.cell { fill: color-mix(in srgb, var(--aux) 20%, var(--aux-f)); stroke: var(--aux-t); }
  .p-aux path.cell-seam { stroke: var(--aux); }
  .p-learned path.cell { fill: color-mix(in srgb, var(--learned) 22%, var(--learned-f)); stroke: var(--learned); }
  .p-learned path.cell-seam { stroke: var(--learned); }
  .p-mastered path.cell { fill: color-mix(in srgb, var(--gold) 22%, var(--gold-f)); stroke: var(--gold); }
  .p-mastered path.cell-seam { stroke: var(--gold); }
  /* つなぎ目（ui/pieces.js jointPiece）：はまる相手の て・た と同じ紫＋斜めの縞（持ち主 11-25 D-80 案 A。色が分からなくても・白黒でも縞で分かる）。
     語の色（緑・覚えた・金）には合わせない。字の後ろは無地の札 */
  g.p-jt { --jt-bg: color-mix(in srgb, var(--aux) 22%, var(--aux-f)); }
  g.p-jt path.body, g.p-jt path.cell { fill: var(--jt-bg); stroke: var(--aux-t); }
  g.p-jt path.cell-line, g.p-jt path.jt-line { stroke: var(--aux-t); }
  g.p-jt path.cell-seam { stroke: var(--aux); }
  g.p-jt text, g.p-jt text.cell-t { fill: var(--aux-t); }
  path.jt-hatch { fill: url(#jt-hatch); stroke: none; pointer-events: none; opacity: .6; }   /* 縞は少し薄く（字の縁取りの外まで縞が来るので。持ち主 11-25「縞を少し薄く」→「それで」。白黒でも縞は見える＝P6-1） */
  /* つなぎ目の字：四角の地はやめ、ピースの地と同じ色の縁（D-87 案 B）。縁の色は地の色の変わる所（選んだ形の一覧）でも地に合わせる（色の輪を残さない） */
  g.p-jt text.jt-t { paint-order: stroke; stroke: var(--jt-bg); stroke-width: 5px; stroke-linejoin: round; }
  .forms svg.piece.on g.p-jt { --jt-bg: var(--word); }
  .forms svg.piece.on g.p-jt text.cell-t { stroke: var(--word-t); }
  .jt-hatch-l { stroke: var(--aux); stroke-width: 1.7; }
  text tspan.cv { font-weight: 800; }
  .forms svg.piece.on path.cell { fill: var(--word-t); stroke: var(--word-t); }
  .forms svg.piece.on path.cell-seam { stroke: var(--panel); opacity: .6; }
  svg.piece.nofit { opacity: .32; }
  svg.piece.nofit:hover { opacity: .55; }
  .shake { animation: shake .35s; }
  @keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
  @media (prefers-reduced-motion: reduce) { .shake { animation: none; } }

  .step { display: flex; flex-direction: column; gap: 8px; }
  /* 2026-10-28 認知負荷の見直し 8：日本語の出てこない画面（進み具合・作者のことば・報告）では、表記と効果音の切り替えを出さない */
  /* 2026-11-04 講評10：↑ をやめた。画面ごとにヘッダーの段・高さが変わった（Progress・Note で Theme が上がる）。ヘッダーはどの画面でも同じに
     （Progress にも語の一覧があり、表記の切り替えが効く） */
  .qz-set { position: relative; }
  /* ⚙ は丸ボタンだけ（2026-11-06 ユーザー：PC でも文字なし。三択と一行に収める） */
  .qz-set > summary { list-style: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; }
  .qz-set > summary::-webkit-details-marker { display: none; }
  .qz-set[open] > summary { color: var(--ink); }
  .qz-set[open] .qz-opts { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 18px #0002; white-space: nowrap; }
  .pcs-fit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 10px; }
  .pz-all { grid-column: 1 / -1; margin: 10px 0 0; font-size: 13px; }
  .sockets > .hint { grid-column: 1 / -1; }
  .pg-latest { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
  .pg-latest > span:last-child { display: flex; flex-direction: column; gap: 2px; }
  .pg-latest b { font-size: 16px; }
  .pg-stats { display: flex; gap: 10px; flex-wrap: wrap; }
  .pg-stat { flex: 1 1 90px; display: flex; flex-direction: column; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: var(--soft); }
  .pg-stat b { font-size: 26px; line-height: 1.1; }
  .pg-stat span { font-size: 13px; color: var(--muted); }
  .pg-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 12px 0 0; }
  .pg-later ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
  .pg-later li { margin: 4px 0; }
  .pg-later li b { color: var(--ink); }
  .pz-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
  .btn.sm { font-size: 13px; padding: 4px 10px; }
  .pz-learn-hint { margin: 6px 0 0; }
  .forms { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-start; }
  /* 言い切れない形の訳（app.js boundHtml）：次にはめるピースと、はめたあとの英訳 */
  .g-need { color: var(--muted); font-size: .85em; margin-right: 4px; }
  .g-next { display: inline-block; padding: 0 7px; border-radius: 6px; background: var(--aux-f, var(--word-f)); font-weight: 700; margin-right: 2px; }
  .g-or { color: var(--muted); font-size: .85em; margin: 0 4px; }
  /* て-form・た-form の近道（app.js shortcutsHtml）：形の一覧のあとに「or jump to」と点線の枠 */
  .forms-or { align-self: center; font-size: 12px; color: var(--muted); padding: 0 2px 0 8px; border-left: 1px solid var(--line); margin-left: 4px; min-height: 40px; display: flex; align-items: center; }
  @media (max-width: 720px) { .forms-or { flex-basis: 100%; border-left: 0; border-top: 1px solid var(--line); margin: 4px 0 0; padding: 6px 0 0; min-height: 0; } }   /* スマホ：「or jump to」を見出しの行にして、下のピースと離れないように（2026-11-05 UI 確認） */
  .forms svg.piece.short { opacity: .75; }
  .forms svg.piece.short:hover { opacity: 1; }
  .sockets { display: grid; grid-template-columns: 112px 1fr; gap: 8px 12px; align-items: center; }
  .sockets .rowname { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
  .sockets .rowname b { font-family: var(--font-ja); color: var(--ink); font-weight: 600; }
  .sockets .pcs { display: flex; flex-wrap: wrap; gap: 6px 4px; min-width: 0; }
  .why { min-height: 2.6em; font-size: 14px; background: var(--soft); border-radius: 8px; padding: 10px 14px; margin: 0; }
  .no { color: var(--danger); font-weight: 600; }
  .why .ja { font-weight: 600; }

  /* て形 */
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
  .card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; }
  .card h2 { font-size: 15px; margin: 0 0 10px; }
  .card p, .card li { font-size: 14px; }
  .card ul { padding-left: 18px; margin: 6px 0; }
  .tbl { overflow-x: auto; }
  table { border-collapse: collapse; width: 100%; font-size: 14px; }
  th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 8px; border-bottom: 1px solid var(--line); }
  td { padding: 5px 8px; border-bottom: 1px solid var(--soft); vertical-align: top; }
  td.ja { white-space: nowrap; }
  #te-table td { white-space: normal; }   /* スマホで表がはみ出ないように折り返す（te-ui.js。2026-11-13） */
  .quiz { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
  .q-word { font-family: var(--font-ja); font-size: 34px; line-height: 1.6; }
  .q-word rt { font-size: 12px; color: var(--muted); }
  .opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .opt { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 6px 16px; font-family: var(--font-ja); font-size: 18px; }
  .opt.right { border-color: var(--word); background: var(--word-f); color: var(--word-t); }
  .opt.wrong { border-color: var(--danger); color: var(--danger); text-decoration: line-through; }
  .opt:disabled { cursor: default; }
  .fb { font-size: 14px; margin: 0; }
  .score { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }


  /* 読む画面 */
  .read { display: flex; flex-direction: column; gap: 14px; }
  /* 本棚：上の小さな欄（今の教材・続き・おすすめ）と、全部を探す画面 */
  #tab-read.lib-open > :not(#library):not(#boot):not(#lb-back) { display: none !important; }
  #lb-back { display: none; margin: 0 0 12px; } #tab-read.lib-open > #lb-back:not([hidden]) { display: block; }   /* ハンコ帳・秘印の戻る（枠の外・上。2026-11-09 UIUX M7） */   /* 起動の骨組み（#boot）は、入れ替え終わるまで残す */
  .rd-top { display: flex; gap: 8px; }
  /* 次に読む物語は本文の下（2026-11-01 ユーザー案・認知科学：選ぶのは読み終えたとき）。一枚目（Up next）を大きく、まだ開いていない次は薄く */
  .rd-next-h { margin: 22px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .lb-card.lb-upnext { flex-basis: 240px; border: 2px solid var(--word); box-shadow: 0 6px 18px color-mix(in srgb, var(--word) 18%, transparent); }
  .lb-card.lb-upnext .lb-title { font-size: 16px; }
  .lb-card.lb-upcoming { cursor: default; opacity: .8; border-style: dashed; display: flex; flex-direction: column; justify-content: center; gap: 4px; text-align: left; padding: 12px 14px; }
  button.lb-card.lb-upcoming { cursor: pointer; }
  .lb-card.lb-upcoming .lb-meta, .lb-card.lb-upcoming .lb-title { white-space: normal; }
  /* 2026-10-28 認知負荷の見直し 3：スマホで物語を開いたら、本文が1画面目に来るように。上の物語カードはたたむ（Switch story ▾ で開く）、
     説明は1行、Test yourself と設定は小さく一列に */
  @media (max-width: 720px) {
    #mat-note { display: block; font-size: 12px; }   /* 2026-11-03 講評：1行で切ると（Bas…）続きを読む手がなかった。折り返す（題の帯があるときは ⓘ About で開く） */
    #tab-read .controls { gap: 6px 10px; padding: 8px 10px; }
    #tab-read .rd-test { gap: 6px; }
    #tab-read .rd-test-h { font-size: 13px; }
    #tab-read .rd-chip { padding: 3px 9px 3px 7px; font-size: 13px; }
    #tab-read .rd-chip small { display: none; }
    #tab-read .rd-opts > summary, #tab-read .howto > summary { font-size: 13px; }
    #tab-read .rd-opts, #tab-read .howto { display: inline-block; }
  }
  /* ハンコ（ui/stamps.js）：本のカードの隅の小さな読了印・読了ボタンの横の印・ハンコ帳 */
  .stamp { flex: none; display: block; }
  .lb-card { position: relative; }
  /* 読了印・蔵書印は表紙の絵の上に（2026-11-09 学習者の講評：本のカードでは後ろの .lb-main（position: relative）の表紙に隠れて見えなかった） */
  .lb-stamp { position: absolute; top: 4px; right: 6px; pointer-events: none; opacity: .9; z-index: 2; }
  .lb-own { position: absolute; top: 6px; right: 46px; pointer-events: none; z-index: 2; }
  /*   絵の上では、印の下に紙の色の丸を敷く（暗い絵の上で朱が沈んだ） */
  .lb-card.has-cover > .lb-stamp, .lb-card:has(.lb-cover-work) > .lb-stamp { top: 6px; right: 8px; line-height: 0; border-radius: 50%; background: color-mix(in srgb, var(--panel) 88%, transparent); box-shadow: 0 1px 3px #0003; }
  .lb-own svg { height: 36px; width: auto; display: block; }
  .lb-card.lb-work:has(.lb-own) .lb-title { padding-right: 76px; }
  /* 蔵書印の設定・My library */
  .seal-set .seal-row { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
  .seal-saved { align-self: center; font-size: 13px; font-weight: 600; color: var(--word); opacity: 0; transition: opacity .3s; }
  .seal-saved.on { opacity: 1; }
  .seal-preview { min-width: 120px; min-height: 124px; display: grid; place-items: center; background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: 8px; }
  .seal-empty { font: 600 12px/1.3 var(--font-en); color: var(--muted); text-align: center; border: 2px dashed var(--line); border-radius: 8px; padding: 14px 10px; }
  .seal-form { flex: 1; min-width: 240px; display: grid; gap: 8px; }
  .seal-name input { display: block; width: 100%; max-width: 320px; box-sizing: border-box; margin-top: 4px; font: inherit; font-size: 16px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
  .seal-opts { display: flex; gap: 8px; flex-wrap: wrap; }
  .seal-opts .seg { margin-left: 0; }
  .seal-teaser { margin: 4px 0 12px; }
  .ml-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .ml-book { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 12px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
  .ml-book:not(.done) { opacity: .7; border-style: dashed; }
  .ml-seal { min-height: 64px; display: grid; place-items: center; }
  .ml-seal svg { height: 60px; width: auto; }
  .lb-card:has(.lb-stamp) .lb-title, .lb-card:has(> .lb-stamp) .lb-label { padding-right: 34px; }
  .lb-card.has-cover:has(.lb-stamp) .lb-title, .lb-card.has-cover:has(> .lb-stamp) .lb-label, .lb-card:has(.lb-cover-work) .lb-title { padding-right: 0; }
  .fin-stamps { display: flex; align-items: center; gap: 6px; }
  .fin-stamps > span { display: inline-block; }
  .press { animation: press .45s cubic-bezier(.2,.9,.3,1.3) both; }
  @keyframes press { 0% { transform: scale(1.8); opacity: 0; } 60% { transform: scale(.94); opacity: 1; } 100% { transform: scale(1); } }
  @media (prefers-reduced-motion: reduce) { .press { animation: none; } }
  .lb-tools { display: flex; gap: 8px; flex-wrap: wrap; }
  .st-sec { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
  .st-sec h3 { margin: 0; font-size: 15px; }
  .st-sec h3 small { font-weight: 400; margin-left: 6px; }
  /* 読み終えた本の棚（2026-10-27）：作品ごとに1冊。読んだ段の分だけ絵に色が付く（--s 0〜1）。完成は影、金は金の縁 */
  .rb-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px 12px; }
  .rb-shelf.compact { grid-template-columns: repeat(auto-fill, minmax(64px, 76px)); gap: 8px; }
  .rb-book { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .rb-art { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--soft); }
  /* 蔵書印：全部読み終えた本の表紙の右下に（ui/stamps.js の rb-own。2026-10-29） */
  .rb-own { position: absolute; right: 6%; bottom: 6%; transform: rotate(-8deg); line-height: 0; filter: drop-shadow(0 1px 1px #0004); }
  .rb-own:empty { display: none; }
  .rb-shelf.compact .rb-own svg { width: 28px; height: 28px; }
  .rb-jig { display: block; width: 100%; height: 100%; }
  .rb-edge { fill: none; stroke: #b9ae9c; stroke-width: 1.4; stroke-dasharray: 4 3; }
  .rb-edge.on { stroke: #fff; stroke-opacity: .65; stroke-width: 1; stroke-dasharray: none; }
  .rb-edge.plus { stroke: var(--gold); }
  .rb-lv { font: 700 10px var(--font-en); fill: var(--muted); }
  .rb-lv-plus { fill: var(--gold); }   /* 有料の段の札（鍵はその上。2026-11-04） */
  .rb-lock { font-size: 9px; }
  .rb-seals { display: flex; gap: 3px; }   /* 段が多くても1列：幅に収まるよう印が縮む */
  .rb-seals i { flex: 0 1 17px; min-width: 7px; aspect-ratio: 1; border-radius: 50%; border: 1.3px dashed #c9bfae; display: grid; place-items: center; font: 700 9px/1 var(--font-ja); font-style: normal; color: transparent; }
  .rb-seals i.done { border: 1.4px solid var(--danger); color: var(--danger); transform: rotate(-8deg); }
  .rb-seals i.gold { border: 1.4px solid var(--gold); color: var(--gold); transform: rotate(-8deg); }
  .rb-seals i.plus { border-color: var(--gold); opacity: .6; }
  .rb-soon { fill: var(--soft); stroke: var(--line); stroke-width: 1; stroke-dasharray: 1 3; }
  .rb-lv-soon { font-weight: 600; font-size: 12px; opacity: .7; }
  .rb-seals i.soon { border: 1px dotted var(--line); opacity: .7; }
  .rb-shelf.compact .rb-seals { gap: 2px; }
  .rb-shelf.compact .rb-seals i { flex-basis: 12px; font-size: 7px; }
  .rb-art.plain { background: var(--soft); color: var(--ink); font: 700 22px/1 "Noto Serif JP", serif; writing-mode: vertical-rl; letter-spacing: .1em; }
  .rb-book.complete .rb-art { box-shadow: 0 3px 10px #0003; border-color: transparent; }
  .rb-book.gold .rb-art { box-shadow: 0 0 0 3px var(--gold), 0 3px 10px #0003; }
  .rb-title { font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
  .rb-dots { display: flex; gap: 3px; flex-wrap: wrap; }
  .rb-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line); }
  .rb-dots i.done { background: #c8352b; border-color: #c8352b; }
  .rb-dots i.gold { background: #d4a83a; border-color: #b8892c; }
  .rb-dots i.plus { border-style: dashed; border-color: var(--gold); }
  .rb-state { font-size: 12px; }
  .rb-shelf.compact .rb-state { font-size: 12px; }
  .pg-books { display: grid; gap: 6px; }
  .st-lv.plus { border-color: var(--gold); opacity: .75; }
  .st-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
  .st-work { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
  .st-work.complete { border-color: #c8352b55; box-shadow: inset 0 0 0 1px #c8352b22; }
  .st-seal { width: 88px; height: 88px; display: grid; place-items: center; flex: none; }
  .st-empty { width: 70px; height: 70px; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 8px;
    font-family: var(--font-ja); font-size: 17px; line-height: 1.1; color: var(--line); text-align: center; }
  .st-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .st-levels { display: flex; gap: 4px; flex-wrap: wrap; }
  .st-lv { width: 20px; height: 20px; border-radius: 50%; border: 1.5px dashed var(--line); display: grid; place-items: center;
    font-family: var(--font-ja); font-size: 11px; color: var(--panel); }
  .st-lv.done { border: 0; background: #c8352b; }
  /* ダークでは地をダークの朱（--danger）に（2026-11-09 UIUX 講評 L2：暗い字が #c8352b の上で 3.02:1。明るい字でも 4.26:1） */
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-lv.done:not(.gold) { background: var(--danger); } }
  :root[data-theme="dark"] .st-lv.done:not(.gold) { background: var(--danger); }   /* 金はそのまま */
  .st-lv.gold { background: linear-gradient(135deg, #7a5512, #e9c766 55%, #8a6216); }
  .st-read.gold { border-color: #c99a3588; box-shadow: inset 0 0 0 1px #e9c76633; }
  .st-goldtxt { color: var(--gold); }
  /* 金になった瞬間：画面の下に金の印をポンと押す */
  .gold-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 12px;
    background: var(--panel); border: 1px solid #c99a35; border-radius: 14px; padding: 10px 18px 10px 12px; box-shadow: 0 8px 30px #0003;
    max-width: calc(100vw - 32px); transition: opacity .4s; }
  .gold-toast b { display: block; }
  .gold-toast .hint b { display: inline; }   /* 説明の中の太字は文の中のまま（2026-11-20 学習者役 leo-13・nana-17：Build the verbs のあとの「.」だけが一行になった。C-40） */
  .gold-toast.red { border-color: #c8352b88; }
  .gold-toast.out { opacity: 0; }
  .gold-toast .share-btn { flex: none; padding: 6px 12px; font-size: 13px; }
  /* スマホ：画面の下の端に小さく（真ん中をふさがない。講評 2） */
  @media (max-width: 520px) { .gold-toast { left: 10px; right: 10px; bottom: 10px; transform: none; gap: 8px; padding: 8px 10px; font-size: 13px; }
    .gold-toast .press svg { width: 40px; height: 40px; } .gold-toast .first-stamp { font-size: 12px; } .gold-toast .share-btn { padding: 4px 8px; font-size: 12px; } }
  /* 隠し印（秘印・Secret stamps。2026-11-02）：藍。知らせは読了の知らせと同じ形で、重なるときはその上に */
  :root { --ai: #2f4f86; }
  :root[data-theme="dark"] { --ai: #8fa9da; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ai: #8fa9da; } }
  .sc-ai { color: var(--ai); }
  .secret-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 51; display: flex; align-items: center; gap: 12px;
    background: #1f2f4f; color: #f4f1ea; border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: 0 8px 30px #0004;
    width: max-content; max-width: min(560px, calc(100vw - 32px)); transition: opacity .4s; }
  /* ✕（uma-13）。前はこの 2 行が上の宣言の途中に入り（入れ子として読まれ）当たらず、✕ が白い四角に見えた（学習者役 13 回目 yusuf-1・kim9-2・zoe-1） */
  .secret-toast:has(.sc-x) { padding-right: 40px; }
  .secret-toast .sc-x { position: absolute; top: 4px; right: 4px; min-width: 32px; min-height: 32px; border: 0; background: none; color: inherit; font-size: 15px; cursor: pointer; opacity: .75; }
  .secret-toast.out { opacity: 0; }
  .secret-toast .press { background: #f4f1ea; border-radius: 50%; padding: 3px; flex: none; display: grid; }
  .secret-toast .sc-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .sc-t1 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
  .secret-toast b { font-size: 15px; }
  .sc-tl { font-size: 13px; font-style: italic; opacity: .92; }
  .sc-first { font-size: 12.5px; opacity: .8; border-top: 1px solid #f4f1ea33; margin-top: 4px; padding-top: 4px; }
  .sc-more { font-size: 12px; opacity: .75; }
  .secret-toast .btn { flex: none; margin-left: auto; background: #f4f1ea; color: #1f2f4f; border-color: #f4f1ea; font-size: 13px; padding: 6px 12px; }
  @media (max-width: 520px) { .secret-toast { left: 10px; right: 10px; bottom: 10px; transform: none; width: auto; gap: 8px; padding: 8px 10px; } .secret-toast .press svg { width: 40px; height: 40px; } .secret-toast .btn { padding: 4px 8px; font-size: 12px; } }
  /* 小さな札（ui/toast-fit.js。2026-11-06）：大きいままではどこに置いても押すものに重なるとき。判子と題だけ、右に寄せる。押すと開く */
  .secret-toast.mini { left: auto; right: 10px; width: auto; max-width: calc(100vw - 20px); padding: 5px 10px 5px 6px; gap: 6px; transform: none; cursor: pointer; }
  .secret-toast.mini:has(.sc-x) { padding-right: 38px; }   /* 小さい札でも ✕ の場所を空ける（xia-3） */
  .secret-toast.mini .sc-x { top: 50%; transform: translateY(-50%); }
  .secret-toast.mini .press svg { width: 26px; height: 26px; }
  .secret-toast.mini.title-toast .press svg { width: 17px; height: 28px; }
  .secret-toast.mini :is(.sc-t1, .sc-tl, .sc-first, .sc-more, .sc-go, .btn) { display: none; }
  .secret-toast.mini b { font-size: 13px; }
  .st-secret-btn { color: var(--ai); border-color: #2f4f8655; }
  /* 隠し称号（2026-11-05 ユーザー。web/title-ui.js・ui/titles.js）：知らせは隠し印と同じ札。判子は縦長なので台紙も縦長に */
  .title-toast .press { border-radius: 8px; padding: 4px 6px; }
  @media (max-width: 520px) { .secret-toast.title-toast .press svg { width: 27px; height: 45px; } }
  .tt-fam { margin: 10px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .tt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 18px; }
  .tt-item { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
  .tt-seal { flex: none; display: grid; }
  .tt-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .tt-txt b { font-family: var(--font-ja); font-size: 17px; }
  .tt-txt .hint { font-size: 12.5px; }
  .tt-txt p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
  .sc-lead { margin: 4px 0 12px; }
  .sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
  .sc-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 4px 10px;
    background: var(--panel); color: var(--ink); font: inherit; font-size: 12px; text-align: center; min-height: 118px; }
  button.sc-cell { cursor: pointer; } button.sc-cell:hover { border-color: var(--ai); }
  .sc-cell.found { border-color: #2f4f8655; } .sc-cell.sel { box-shadow: 0 0 0 2px var(--ai); }
  .sc-cell b { font-size: 12px; line-height: 1.2; } .sc-cell small { color: var(--muted); }
  .sc-cnt { position: absolute; top: 4px; right: 5px; font: 700 12px var(--font-en); color: var(--ai); background: var(--panel); border: 1px solid #2f4f8644; border-radius: 99px; padding: 0 5px; }
  .sc-cell.silver .sc-cnt { color: var(--ink); border-color: #6c747e66; } .sc-cell.gold .sc-cnt { color: #8a6216; border-color: #c99a3566; }
  .sc-q { width: 58px; height: 58px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; margin: 2px 0 6px; color: var(--muted); font: 700 22px var(--font-en); }
  .sc-cell.hint .sc-q { border-color: var(--ai); color: var(--ai); } .sc-cell.hint small { color: var(--ai); font-style: italic; }
  .sc-detail { margin-top: 12px; display: flex; gap: 16px; align-items: center; background: var(--soft); border-radius: 12px; padding: 14px 16px; }
  .sc-detail > svg { flex: none; }
  .sc-k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .sc-detail h3 { margin: 2px 0 6px; } .sc-detail h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
  /* 日本語の名前（つきからのししゃ）は小さい ゃ だけ次の行に落ちないように（学習者役 7 回目 dai-10） */
  .sc-detail h3 small[lang="ja"] { line-break: strict; word-break: keep-all; display: inline-block; }
  .sc-line { font-size: 16px; font-style: italic; margin: 0 0 6px; }
  .sc-note { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
  .sc-how { font-size: 13.5px; margin: 0 0 4px; } .sc-how b { color: var(--ai); }
  .sc-meta { font-size: 12px; margin: 0; }
  .sc-earlier { margin-top: 6px; font-size: 13px; } .sc-earlier p { margin: 4px 0; font-style: italic; } .sc-earlier p.sc-note { font-style: normal; }
  .sc-foot { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; }
  @media (max-width: 520px) { .sc-detail { flex-direction: column; align-items: flex-start; } .sc-detail > svg { width: 84px; height: 84px; } }
  /* 秘印の点は上の真ん中（右上の ×N の札が点を覆い、凡例の • が見えなかった：学習者役 10 回目 otto-6。左上は日付・下は印） */
  .dy-cell.secret::before { content: ""; position: absolute; left: calc(50% - 4px); top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ai); box-shadow: 0 0 0 1.5px var(--panel); }
  .dm.sec-m { --c: var(--ai); }
  /* ハンコのシェア：共有画面が使えない端末で出す窓（share-ui.js） */
  .share-box { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); padding: 18px 20px 14px;
    width: min(640px, calc(100vw - 32px)); box-shadow: 0 20px 60px #0004; }
  .share-box::backdrop { background: rgb(0 0 0 / .45); }
  .share-box h3 { margin: 0 0 12px; font-size: 17px; }
  .share-box img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
  .share-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
  .share-acts a.btn { text-decoration: none; }
  .share-box .hint { margin: 4px 0 0; font-size: 12px; }
  /* Build the verbs（build-ui.js）：組み立て中の塊と、下の板 */
  /* 組み立てる動詞（2026-10-28 作り直し）：パズルと同じ絵。語のピース（緑の枠・右に丸いつまみ）＋紫の点線の空きピースに「?」＝ここにピースが入る。
     前のオレンジの点線と「?」の札は、警告・エラーに見えた */
  .b-wip { display: inline-flex; align-items: stretch; cursor: pointer; vertical-align: baseline; }
  /* 本文の行（.jt は高さ 46px 固定）の中に収める（2026-11-02 ユーザー：上の英訳が隠れた。字の高さは書体で違い、ベースラインで揃えると
     端末によってピースが上にはみ出して英訳にかぶった）。上に揃え、高さを決めて、どの書体でも英訳の下から始める */
  .c-ja .jt .b-wip { vertical-align: top; height: 38px; margin-top: 5px; line-height: 35px; box-sizing: border-box; }
  .c-ja .jt .b-wip > span { box-sizing: border-box; }
  .b-word { position: relative; padding: 0 9px 0 5px; color: var(--word); background: var(--word-f); border: 1.5px solid var(--word); border-radius: 6px 0 0 6px; }
  .b-word::after { content: ""; position: absolute; right: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--word-f);
    border: 1.5px solid var(--word); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); z-index: 1; }
  .b-made { color: var(--ink); } .b-dict { color: var(--word); }
  .b-slot { display: inline-grid; place-items: center; min-width: 1.7em; margin-left: 1px; padding: 0 4px 0 8px; border: 1.5px dashed var(--aux); border-left: 0; border-radius: 0 6px 6px 0;
    font-family: var(--font-en); font-size: .8em; font-weight: 700; color: var(--aux); background: color-mix(in srgb, var(--aux) 8%, transparent); }
  .b-slot-inline { display: inline-grid; border-left: 1.5px dashed var(--aux); border-radius: 6px; padding: 0 5px; font-size: 12px; vertical-align: 1px; }
  .b-wip:hover .b-slot { background: color-mix(in srgb, var(--aux) 16%, transparent); }
  .try-ping .b-wip { animation: try-ping 1.2s ease-out 2; }
  @keyframes try-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--aux) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
  .try-bar { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; width: min(640px, calc(100vw - 24px)); padding: 10px 14px; border-radius: 12px;
    background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--hl); box-shadow: var(--shadow); font-size: 14px; }
  /* 組み立ての板（下）が開いている間は、力試しの帯を上へ（2026-11-19 学習者役 leo-11：次の動詞の板が自動で開き、帯の Stop を隠していた） */
  body:has(.build-sheet) .try-bar { bottom: auto; top: calc(var(--head-b, 0px) + 8px + env(safe-area-inset-top, 0px)); z-index: 41; }   /* 上のメニューの下（read-try.js が --head-b） */
  .try-bar > span:first-child { flex: 1 1 260px; }
  .try-count { font-weight: 700; color: var(--hl); white-space: nowrap; }
  /* 数え方を小文字にそろえる（2026-11-05 講評11：BUILD THE VERB · 1 OF 2 と 1 of 5 が別の数に見えた）。板は「step 1 of 2」、力試しは「1 of 5 built」 */
  .b-head .b-count { text-transform: none; letter-spacing: 0; font-weight: 600; }
  .b-on .b-slot { border-style: solid; border-width: 2px; border-left-width: 0; background: none; }   /* いま組み立てている塊：枠だけ（地を塗ると、読み上げ中の語の灰色の地と似た：持ち主 11-26 D-96 の ②。学習者役 13 回目 yusuf-10） */
  .b-pop { animation: b-pop .5s ease-out; }
  @keyframes b-pop { 40% { transform: scale(1.08); } }
  .build-sheet { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40;
    width: min(620px, calc(100vw - 20px)); max-height: 62vh; overflow-y: auto; background: var(--panel); color: var(--ink);
    border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px #0006; padding: 12px 16px 10px; display: grid; gap: 10px; }
  .build-sheet > * { min-width: 0; }   /* 中身（長い動詞の列）でシートが横に広がらない（2026-11-07） */
  .build-sheet .b-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
  .build-sheet .b-tools { display: flex; align-items: center; gap: 14px; }
  .build-sheet .b-kn { margin: 2px 0 6px; }   /* つまみの見せ方（Practice と同じ値。2026-11-07） */
  /* ⚙ の中（2026-11-17 持ち主 C11）：Show knobs・グループ・How the pieces fit */
  .build-sheet .b-gear { font-size: 13px; line-height: 1; }
  .build-sheet .b-gear[aria-expanded="true"] { color: var(--word); border-color: var(--word); }
  .b-gear-panel { margin: 4px 0 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 14px; }
  .b-gear-panel .b-kn { margin: 4px 0; }
  .b-gear-l { margin: 4px 0; }
  .build-sheet .b-voice { font-size: 13px; margin: 0; }
  /* ✕ は板の右上に固定（2026-11-05 講評11：Read aloud の隣にあり、読み上げを消すボタンに見えた）。押せる範囲は 40px */
  .build-sheet .b-head { padding-right: 40px; }
  .build-sheet .b-close { position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 18px; text-decoration: none; border-radius: 8px; }
  .build-sheet .b-close:hover { background: var(--soft); }
  .build-sheet .b-voice input { width: 18px; height: 18px; }
  .build-sheet .b-goal { font-size: 18px; font-weight: 600; }
  .build-sheet .why { margin: 0; }
  @media (prefers-reduced-motion: reduce) { .b-pop { animation: none; } }
  .qz-ask-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
  .qz-knobs, .qz-fly { font-size: 14px; }
  .qz-knobs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }   /* 320px では三択を札の下へ */
  .kn-cap { font-size: 13px; color: var(--muted); white-space: nowrap; }
  .kn-seg { margin-left: 0; }
  .kn-seg button { white-space: nowrap; padding: 4px 9px; }
  .card.qz.qz-end .qz-ask-tools, .card.qz.qz-end .report-here, .card.qz.qz-end .qz-ask-l .b-how { display: none; }   /* 「i」だけ残っていた（講評13） */   /* 2026-11-04 講評10：おしまいの画面に問題の部品が残っていた（quiz-ui.js） */
  .qz-ask-tools { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  /* スマホでは ⚙ を「Which form fits? ⓘ」の行の右へ。三択は次の行に一列で（⚙ が一行を取っていた） */
  @media (max-width: 720px) {
    .qz-ask-tools { display: contents; }
    .qz-ask-row .qz-set { order: 1; }
    .qz-ask-row .qz-knobs { order: 2; flex-basis: 100%; }
  }
  .qz-knob-tip { display: block; margin-top: 8px; }
  /* 物語にない形に置きかえた問い（2026-11-17 持ち主 C11）：Same verb, new form の札と、物語の形 */
  .qz-swap { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
  .qz-swap-tag { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; background: var(--gold-f); color: var(--ink); font-size: 12.5px; font-weight: 600; }
  /* つまみを、迷っていると浮かばせる（ui/knob-fade.js。2026-11-04）：つまみなし（kf-a）とつまみあり（kf-b）を重ね、kf-on で入れ替える */
  .kf { display: inline-grid; vertical-align: top; }
  .kf > span { grid-area: 1 / 1; transition: opacity 1.1s ease; }
  .kf-b { opacity: 0; }
  .kf-on .kf-b { opacity: 1; }
  .kf-on .kf-a { opacity: 0; }
  .kf-instant .kf > span { transition: none; }
  .kf-on ~ .why .kf-now, .kf-on + .why .kf-now { display: none; }
  .kf-note { display: block; margin-top: 6px; }
  @media (prefers-reduced-motion: reduce) { .kf > span { transition: none; } }
  .qz-opts { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .gold-toast .first-stamp { display: block; margin-top: 4px; font-size: 13px; color: var(--ink); }
  .gold-toast .first-stamp b { display: inline; }   /* 「gold」のあとの「.」が次の行に落ちていた（講評 3） */
  /* 光る枠（組み立ての板の b-glow。前は はじめの案内の枠と同じ。名前はそのまま） */
  @keyframes welcome-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }   /* ふわっと出る（一言・知らせ。前は はじめの窓の名前） */
  @keyframes tut-glow { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--word) 60%, transparent); } }
  .voice-foot { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
  .voice-credit { white-space: nowrap; }
  /* pitamaru Plus の窓（plus-ui.js）。形は .share-box と同じ */
  .plus-perks { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
  .plus-prices { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 8px; }
  .plus-price { display: grid; gap: 2px; padding: 10px 18px; font-size: 15px; text-align: left; }
  .plus-price span { font-size: 12px; font-weight: 400; opacity: .85; }
  .acct-plus { margin: 10px 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .share-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
  .st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .st-read { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; background: var(--panel);
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; min-width: 0; }
  .st-read:hover { border-color: var(--word); }
  .st-title { font-weight: 600; font-size: 13px; line-height: 1.3; }
  .st-read .hint { font-size: 12px; }
  .st-samples { display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
  .st-sample { display: grid; grid-template-columns: 170px repeat(5, 96px); align-items: center; gap: 8px; }
  .st-cols span { font-size: 12px; color: var(--muted); text-align: center; }
  .st-face { font-size: 12px; display: flex; flex-direction: column; }
  .account { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; }
  .account a.btn { text-decoration: none; }
  .acct { position: relative; }
  .acct summary { list-style: none; cursor: pointer; }
  .acct summary::-webkit-details-marker { display: none; }
  .acct-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; width: min(300px, 86vw); display: grid; gap: 8px; padding: 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgb(0 0 0 / .12); }
  .acct-pop p { margin: 0; }
  .acct-code code { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
  .acct-pop .btn[data-signout] { justify-self: start; }
  @media (max-width: 720px) { .acct-pop { position: static; width: auto; box-shadow: none; margin-top: 6px; } }
  .shelf-note { margin: 0 0 4px; grid-column: 1 / -1; }
  .st-face code { color: var(--muted); font-size: 12px; }
  @media (max-width: 520px) { .st-sample { grid-template-columns: 100px repeat(5, 96px); } }
  /* 物語の絵（リンクカードのちぎり絵から切り出した web/story/cover/<作品>.webp。2026-10-27）
     A：本棚のカードの上に。B：読む画面の上に細い帯。C：はじめの窓の上に。D：読み終えたら絵に印を押す
     どれも background-size: cover で枠に合わせて切る（字は絵の上に置かない・枠からはみ出さない。スマホでも見切れない） */
  .lb-cover { display: block; flex: none; height: 84px; margin: -9px -12px 6px; border-radius: 9px 9px 0 0;
    background: #26305a no-repeat; background-size: cover; }
  .lb-cover.dim { filter: grayscale(.8) brightness(.8); }
  .lb-card.lb-work .lb-main .lb-cover { margin: -9px -12px 6px; }
  .rd-hero { position: relative; display: flex; align-items: center; min-height: 64px; margin: 2px 0 8px; border-radius: 12px; overflow: hidden;
    background: #26305a no-repeat; background-size: cover; }
  .rd-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(20 24 52 / .92) 0%, rgb(20 24 52 / .75) 45%, rgb(20 24 52 / 0) 85%); }
  .rd-hero .t { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 9px 14px; min-width: 0; max-width: 78%; }
  .rd-hero .ja { font: 700 clamp(19px, 4.6vw, 24px)/1.2 "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; color: #fbf3dc; letter-spacing: .06em; }
  .rd-hero .en { font-size: 12.5px; font-weight: 600; color: #f6d77a; overflow-wrap: anywhere; }
  /* 広い画面の帯：絵は右に原寸ほどで置き、左は夜空の色（引き伸ばしてぼかさない） */
  @media (min-width: 560px) { .rd-hero { background-size: 440px auto; } }
  .fin-art { position: relative; flex-basis: 100%; max-width: 420px; aspect-ratio: 2 / 1; border-radius: 12px; overflow: hidden;
    background: #26305a no-repeat; background-size: cover; box-shadow: 0 4px 14px #0002; }
  .fin-art .press { position: absolute; right: 12px; bottom: 10px; line-height: 0; padding: 5px; border-radius: 50%; background: rgb(247 242 230 / .9); box-shadow: 0 2px 6px #0005; }
  .fin-art + * { margin-right: auto; }
  .fin-art .press svg { display: block; width: clamp(64px, 20vw, 88px); height: auto; }
  /* 踏破（2026-11-07）：読了の左に少し重ねて、読了のあとにもう一度ポンと押す */
  .fin-art .press.touha { right: calc(12px + clamp(64px, 20vw, 88px) - 4px); animation-delay: .5s; }
  .finish { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .fin-done { color: var(--learned); font-weight: 600; }
  /* 読み終わり（2026-11-16 持ち主 C5）：主の塗りボタン＋枠の Test yourself・覚えた語の一行・残りの ○✗ を聞く一行・More */
  .fin-next { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
  .fin-next .btn { min-height: 44px; }
  .fin-ma.fin-ma-line { margin: 4px 0 0; }
  .fin-ma.fin-ma-line .hint { font-size: 13px; }
  .fin-tf-left { flex-basis: 100%; margin: 6px 0 0; font-size: 14px; }
  .fin-more-in > p { margin: 8px 0; }
  .fin-done .linkish { font-weight: 400; font-size: 13px; }
  /* まとめて覚えた（2026-11-07。read.js maHtml） */
  .fin-ma { flex-basis: 100%; margin: 0; font-size: 14px; }
  .fin-ma > b:first-child { color: var(--ink); }   /* 2026-11-08 講評f：覚えた色（茶）の数が注意の色に見え、読み終えたのに借りが残った気分になった */
  section.fin-ma { box-sizing: border-box; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
  /* 2026-11-07 講評d：小さな枠の中でスクロールすると、ページと枠のどちらが動くか分かりにくい。枠はやめ、ボタンを下に貼り付ける */
  .fin-ma .ma-list { margin: 8px 0; border-top: 1px solid var(--line); }
  .ma-it { display: grid; grid-template-columns: 22px auto 1fr; gap: 4px 8px; align-items: baseline; padding: 7px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
  .ma-it input { width: 18px; height: 18px; margin: 0; accent-color: var(--word); align-self: center; }
  .ma-it .ja { font-size: 16px; } .ma-it small { color: var(--muted); overflow-wrap: anywhere; }
  /* 案1（はじめは全部 ✓ なし）：✓ のない行を薄くすると、使えないように見えた（講評d）。✓ のある行に色を付ける */
  .ma-it:has(input:checked) { background: color-mix(in srgb, var(--word) 8%, transparent); }
  .fin-ma .nb { white-space: nowrap; }
  .fin-ma .ma-left { margin: 4px 0; padding-left: 1.2em; }
  .fin-ma .ma-left li { margin: 2px 0; }
  div.fin-ma .fin-ma-msg { display: block; }
  .fin-ma .ma-sw { color: var(--learned); background: var(--learned-f); border-radius: 3px; padding: 0 3px; font-weight: 600; }
  .fin-ma .ma-h { margin: 12px 0 0; padding: 0 2px 4px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .ma-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: var(--panel, var(--bg));
    border-top: 1px solid var(--line); box-shadow: 0 -8px 12px -8px rgba(0, 0, 0, .18); }   /* 2026-11-08 UIUX H3：帯の下で行が途中で切れて見えた */
  .fin-ma .ma-h0 { margin-top: 4px; }
  .fin-ma details.ma-sec > summary.ma-h { cursor: pointer; list-style: none; padding: 10px 2px 8px; }
  .fin-ma details.ma-sec > summary.ma-h::-webkit-details-marker { display: none; }
  .fin-ma details.ma-sec > summary.ma-h::before { content: "▸ "; } .fin-ma details.ma-sec[open] > summary.ma-h::before { content: "▾ "; }
  .fin-ma .ma-hn { font-weight: 400; }
  @media (min-width: 900px) { .fin-ma details.ma-sec { grid-column: 1 / -1; } .fin-ma details.ma-sec[open] { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } .fin-ma details.ma-sec > summary { grid-column: 1 / -1; } }
  .fin-ma .btn.ma-open { display: inline-block; margin-top: 6px; color: var(--ink); border-color: var(--learned-line); font-size: 14px; min-height: 40px; padding: 8px 14px; }   /* 2026-11-08 UIUX H2：12px の灰色のリンクでは見落とした */
  @media (min-width: 900px) { .fin-ma .ma-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } .fin-ma .ma-list .ma-h { grid-column: 1 / -1; } }
  .ma-acts .btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
  /* 物語の終わりの Up next（2026-11-07 持ち主のモック：一番下に小さく） */
  .nx-up { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel, var(--bg)); }
  .nx-up .nx-k { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
  .nx-up .nx-t { display: block; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 600; color: var(--word); text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
  .nx-up .nx-o { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
  .nx-up .nx-o + .nx-o { margin-top: 4px; }
  .nx-up .nx-why { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
  .fin-ma-msg { color: var(--word-t); font-weight: 600; background: var(--word-f); border-radius: 8px; padding: 4px 10px; display: inline-block; }
  .fin-try-done { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--learned); }
  .fin-try-done .hint { color: var(--muted); }
  /* 読み終えたあとの「ほかの練習」は畳む（2026-11-05 講評11 mock-13 3-3）。開くと ○✗ と Quiz yourself */
  .fin-more { flex-basis: 100%; box-sizing: border-box; padding: 10px 14px; margin: 0; }
  .fin-more > summary { font-weight: 600; cursor: pointer; min-height: 32px; display: flex; align-items: center; gap: 6px; list-style: none; }
  .fin-more > summary::-webkit-details-marker { display: none; }
  .fin-more > summary::after { content: "▾"; color: var(--muted); } .fin-more[open] > summary::after { content: "▴"; }
  .fin-more-in { display: grid; gap: 12px; margin-top: 10px; justify-items: start; }
  .fin-more-in .tf-card { width: 100%; box-sizing: border-box; }
  /* おしまいのカード（2026-11-03 講評 mock-9 案B）：もらえる印の見本・何が開くか・緑の Mark as read */
  .fin-card { flex-basis: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 12px 18px; padding: 14px 18px; border: 1.5px solid var(--word);
    border-radius: 12px; background: var(--panel); }
  .fin-preview { flex: none; line-height: 0; }
  .fin-preview svg { display: block; }
  .fin-card-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .fin-card-t b { font-size: 17px; }
  .fin-card-t .hint { font-size: 14px; }
  .fin-card-t .nw { white-space: nowrap; }   /* 題・Level n は途中で折らない（2026-11-09 学習者の講評：「かぐやひ／め」） */
  .fin-card-acts { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .fin-card-acts .btn.primary { font-size: 16px; padding: 8px 18px; }
  @media (max-width: 600px) { .fin-card { flex-wrap: wrap; padding: 12px 14px; } .fin-card-t { flex-basis: calc(100% - 82px); } .fin-card-acts { flex-basis: 100%; } }
  /* 落語のオチの問い（ui/ochi.js。2026-10-29） */
  .ochi-card { flex-basis: 100%; width: 100%; box-sizing: border-box; margin: 0 0 14px; padding: 14px 16px; border: 1.5px solid var(--danger); border-radius: 12px;
    background: color-mix(in srgb, var(--danger) 5%, var(--panel)); text-align: left; }
  .ochi-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
  .ochi-fan { font-size: 22px; }
  /* 笑の印：答案に押すハンコのように、問いと答えの上に大きく（下の字は透けて読める）。答えた瞬間だけポンと押す（.pressing、read.js） */
  .ochi-paper { position: relative; }
  .ochi-seal { position: absolute; right: 4%; top: 50%; transform: translateY(var(--sy, -50%)) rotate(-14deg); pointer-events: none; mix-blend-mode: multiply; opacity: .82; }
  .ochi-seal svg { display: block; }
  /* スマホ：真ん中に押すと正解の行の字に重なって読めない（2026-10-30 講評 9）。見出しの右の余白に小さく */
  @media (max-width: 600px) { .ochi-seal { --sy: 0; top: -50px; right: -6px; } .ochi-seal svg { width: 60px; height: 60px; } }
  .ochi-seal.pressing { animation: ochi-press .55s cubic-bezier(.2,.9,.3,1.2) both; }
  @keyframes ochi-press {
    0% { transform: translateY(var(--sy, -50%)) rotate(-14deg) scale(2.4); opacity: 0; }
    55% { transform: translateY(var(--sy, -50%)) rotate(-14deg) scale(.9); opacity: .95; }
    75% { transform: translateY(var(--sy, -50%)) rotate(-14deg) scale(1.04); }
    100% { transform: translateY(var(--sy, -50%)) rotate(-14deg) scale(1); opacity: .82; } }
  .ochi-card.thud { animation: ochi-thud .3s .3s ease-out; }   /* 押した瞬間、紙が少し沈む */
  @keyframes ochi-thud { 0%, 100% { transform: none; } 40% { transform: translateY(2px) scale(.997); } }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ochi-seal { mix-blend-mode: normal; opacity: .9; } }
  :root[data-theme="dark"] .ochi-seal { mix-blend-mode: normal; opacity: .9; }
  @media (prefers-reduced-motion: reduce) { .ochi-seal.pressing, .ochi-card.thud { animation: none; } }
  .ochi-q { margin: 8px 0 10px; font-weight: 600; }
  .ochi-choices { display: grid; gap: 8px; margin: 0 0 8px; }
  .ochi-choice { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink); }
  .ochi-pick { flex: none; width: 30px; height: 30px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--danger); background: var(--panel); color: var(--danger); font: 700 14px/1 var(--font-en); cursor: pointer; }
  .ochi-pick { position: relative; } .ochi-pick::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }   /* 押せる所は 44px（見た目は 30px のまま。2026-11-18 学習者役：A/B/C が小さい） */
  @media (hover: hover) { .ochi-pick:hover { background: #c0392b; color: #fff; } }   /* 2026-11-08 UIUX H4：タッチではホバーの色が残り、選んだように見えた */
  .ochi-line { flex: 1; min-width: 0; }
  .ochi-mark { flex: none; display: inline-block; width: 22px; font-weight: 700; }
  .ochi-choices.done li { display: flex; align-items: flex-start; gap: 6px; }
  /* オチの文は語の上の英語を出さない（翻訳なし。タップで意味だけ） */
  #ochi .c-ja .ilg { display: none; }
  /* 読んだあとの ○✗（ui/tf.js。2026-10-30）：文は日本語だけ（上の英語は出さない。押すと意味） */
  #tf .c-ja .ilg { display: none; }
  .tf-card .c-ja .jt { font-size: 20px; }   /* 動詞（ピースの塊）だけ字が小さかった（ほかの語の jw-ja と同じ 20px。2026-11-02 講評） */
  .tf-card { flex-basis: 100%; width: 100%; box-sizing: border-box; margin: 0 0 14px; padding: 14px 16px; border: 1.5px solid var(--word); border-radius: 12px;
    background: color-mix(in srgb, var(--word) 5%, var(--panel)); text-align: left; }
  .tf-chal { display: block; font-size: 13px; color: var(--ink); margin: 2px 0; }   /* 2026-11-05 講評11：英語なしの○✗を「Challenge」と名乗る */
  .tf-ev-en { display: block; font-size: 13px; color: var(--gloss); margin: 2px 0 6px; }   /* 答えたあとの根拠の文の英語 */
  .tf-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 16px; }
  .tf-list { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 10px; }
  .tf-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .tf-s { flex: 1 1 260px; font-family: var(--font-ja); }
  .tf-s .punct, .tf-ev .punct, #ochi .punct { font-size: 20px; line-height: 46px; display: inline-block; vertical-align: bottom; }   /* 「。」が小さく、語の下に落ちて見えた（2026-11-06 講評13）。本文（.line）と同じ大きさ */
  .tf-btns { display: flex; gap: 8px; }
  .tf-b { font: 600 16px/1 var(--font-en); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--word); background: var(--panel); color: var(--word); cursor: pointer; }
  .tf-b small { font-size: 12px; font-weight: 500; }
  @media (hover: hover) { .tf-b:hover { background: var(--word-f); } }   /* 2026-11-08 UIUX H4：タッチではホバーの色が残り、選んだように見えた */
  .tf-f { border-color: var(--danger); color: var(--danger); }
  @media (hover: hover) { .tf-f:hover { background: color-mix(in srgb, var(--danger) 10%, var(--panel)); } }   /* 2026-11-08 UIUX H4：タッチではホバーの色が残り、選んだように見えた */
  .tf-res { flex-basis: 100%; font-size: 14px; }
  .tf-done.ok .tf-res b:first-child { color: var(--word); } .tf-done.ng .tf-res b:first-child { color: var(--danger); }
  .tf-why { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-left: 3px solid var(--line); background: var(--soft); border-radius: 0 8px 8px 0; font-size: 14px; }
  .tf-ev { font-family: var(--font-ja); }
  .tf-ev .c-ja .ilg { display: none; }
  .tf-go { align-self: flex-start; font-size: 13px; }
  .ochi-choices.done { list-style: none; padding: 0; }
  .ochi-choices.done li { padding: 6px 10px; border-radius: 8px; color: var(--muted); }
  .ochi-choices.done li.right { color: var(--ink); background: color-mix(in srgb, var(--learned) 14%, transparent); font-weight: 600; }
  .ochi-choices.done li.wrong { text-decoration: line-through; }
  .ochi-explain p { margin: 8px 0 0; line-height: 1.55; }
  .ochi-explain h4 { margin: 12px 0 0; font-size: 14px; letter-spacing: .02em; color: var(--danger); }
  .ochi-explain p[lang="ja"] { font-family: var(--font-ja); }
  .ochi-q[lang="ja"] { font-family: var(--font-ja); font-size: 1.06em; }
  .ochi-reread { margin-top: 10px; }
  .sent.ochi-flash { animation: ochi-flash 1.6s ease-out; border-radius: 8px; }
  @keyframes ochi-flash { 0%, 30% { background: color-mix(in srgb, var(--danger) 14%, transparent); } 100% { background: transparent; } }
  @media (prefers-reduced-motion: reduce) { .sent.ochi-flash { animation: none; outline: 2px solid var(--danger); } }
  .ochi-choice [lang="ja"], .ochi-choices.done [lang="ja"] { font-family: var(--font-ja); font-size: 1.06em; }
  .pc-sep { color: var(--muted); opacity: .55; font-weight: 400; margin: 0 .04em; }
  .pc-sep.eol { visibility: hidden; }   /* 行の終わりの切れ目は隠す（read.js endSeps） */   /* ローマ字のピースの切れ目（ui/views.js） */
  /* 2026-11-04 講評10：360px で長い動詞（kaera·nakereba·nari·mase·n）が折り返さず、物語が横にはみ出した。
     ローマ字の動詞の塊は、ピースの切れ目（· のあとの <wbr>）で折り返せる（折り返した行も 46px の高さ） */
  .c-ja.g:has(.pc-sep) { max-width: 100%; white-space: normal; }
  .c-ja .jt:has(.pc-sep) { height: auto; min-height: 46px; max-width: 100%; white-space: normal; }
  .c-ja .jt:has(.pc-sep) .pc, .c-ja .jt .pc-end { white-space: nowrap; }
  /* 🧩：その語だけピースで見せる（read.js。2026-10-29） */
  .pc-toggle { display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 2px; padding: 0; border: 1px solid var(--line); border-radius: 6px;
    background: var(--panel); font-size: 12px; line-height: 1; cursor: pointer; vertical-align: middle; opacity: .75; }
  .pc-toggle:hover, .pc-toggle.on { opacity: 1; border-color: var(--aux, #534ab7); }
  .t-btns { display: flex; flex-wrap: wrap; gap: 6px; }
  .en-btn.ochi-q-btn { color: var(--danger); border-color: var(--danger); font-weight: 700; }
  .finish [data-finish].fin-nudge { animation: fin-nudge 1.4s ease-out 2; }
  /* 波紋だけ（2026-11-05 講評11：字の色を --word にしていたので、緑の塗りのボタンで字が約3秒見えなかった） */
  @keyframes fin-nudge { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--word) 60%, transparent); }
    70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
  .pg-guest { border-left: 3px solid var(--word); }
  .pg-guest p { margin: 0 0 6px; }
  .pg-guest a.btn { text-decoration: none; }
  .pg-guest-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 0 !important; }
  .fin-try { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 10px;
    background: var(--word-f); border-left: 3px solid var(--word); margin-bottom: 6px; animation: welcome-in .35s ease-out; }
  .fin-try > span:first-child { flex: 1 1 240px; }
  .fin-try-acts { display: flex; align-items: center; gap: 12px; }
  .t-culture { font-size: 13px; background: var(--soft); border-radius: 8px; padding: 6px 9px; margin: 6px 0; line-height: 1.45; }
  .t-culture b { color: var(--word); margin-right: 4px; }
  .t-culture a { color: var(--word); white-space: nowrap; }
  /* 小窓：多義語の基本の意味と、ここでの意味。敬語の札（2026-11-01） */
  .t-sense { font-size: 14px; margin: 2px 0 6px; }
  .t-kg { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--aux-t); background: var(--aux-f); border: 1px solid color-mix(in srgb, var(--aux) 40%, transparent); border-radius: 999px; padding: 0 7px; margin-right: 4px; }
  .sect { font-size: 15px; margin: 14px 0 2px; color: var(--muted); font-weight: 600; }
  .sect:first-child { margin-top: 0; }
  /* 読書の日記帳（ui/diary.js）：今週読んだ日・今月のハンコ */
  .dy-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 48px; max-width: 460px; justify-content: space-between; margin-bottom: 10px; }
  .dy-top h2 { margin: 0; }
  /* 前の月・次の月（Plus だけ。2026-11-02） */
  .dy-mh { display: flex; align-items: center; gap: 6px; }
  .dy-nav { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--ink); font: 700 18px/1 var(--font-en); cursor: pointer; padding: 0 0 2px; }
  .dy-nav:hover:not([disabled]) { border-color: var(--word); color: var(--word); }
  .dy-nav[disabled] { opacity: .3; cursor: default; }
  @media (pointer: coarse) { .dy-nav { width: 40px; height: 40px; font-size: 20px; } }
  /* 指で押す端末：小さな押し所（✕・?・i・⚑・▶・EN）の押せる範囲を見えない縁で広げる（見た目は変えない。2026-11-02 講評） */
  @media (pointer: coarse) {
    .grp-q, .b-how, .sent .flag, .sent .play, .en-btn { position: relative; }
    .grp-q::after, .b-how::after, .sent .flag::after, .sent .play::after, .en-btn::after { content: ""; position: absolute; inset: -10px; }
    /* 2026-11-09 UIUX 講評 L1：残っていた小さな押し所。? は 44px に。たたみの見出し（Which story next?・More waiting・How stamps work）は高さ 44px（読む画面の How to read は 30px あり、上の行と重なるので除く）。
       Reading options のチェックは上下の行と重ならないように、行の間（10px）と横の間（22px）の半分まで */
    .g-why, .howto:not(.rd-pop) > summary, .pg-wait > summary, #rd-opts label.check { position: relative; }
    .g-why::after { content: ""; position: absolute; inset: -13px; }
    .howto:not(.rd-pop) > summary::after, .pg-wait > summary::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
    #rd-opts label.check::after { content: ""; position: absolute; inset: -5px -11px; }
  }
  /* 2026-11-16 UIUX（アプリ全体の見直し）：毎日押す所で、まだ小さかった所。Mark learned と ○× は 44px の高さに（見た目も大きく）、
     読む速さ・表記などの切り替えの列は上下だけ見えない縁で広げる（横は隣と重なるので広げない） */
  @media (pointer: coarse) {
    .t-learn { min-height: 44px; }
    .tf-b { min-height: 44px; }
    .seg button { position: relative; }
    .seg button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  }
  /* 2026-11-16 UIUX：キーボードで動いたとき・続きから開いたとき、上の帯と下のバー（スマホ）の裏に文やボタンが隠れないように */
  html { scroll-padding-top: calc(var(--sat, 0px) + 64px); }
  /* 上に貼り付いたメニューの中の物は、フォーカスしてもページを動かさない（scroll-padding のぶん隠れていると見なされ、Tab のたびに約 400px 上へ飛び、
     通り過ぎた文が読んだになった：学習者役 9 回目 kim5-1） */
  header :is(a, button, input, select, [tabindex]) { scroll-margin-top: calc(-1 * (var(--sat, 0px) + 64px)); }
  @media (max-width: 720px) { html { scroll-padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); } }   /* 下のバーは 720px 以下（sent-bar.js） */
  /* どの端末でも：小さな押し所の押せる範囲を 44px に（見た目は変えない。2026-11-05 講評11 mock-13 3-2：PC でも EN 28・⚑ 20×24・About 64×20） */
  .rd-hero-back, .rd-about, .ord-i, .grp-q, .b-how, .sent .flag, .en-btn { position: relative; }
  :is(.rd-hero-back, .rd-about, .ord-i, .grp-q, .b-how, .sent .flag, .en-btn)::after { content: ""; position: absolute; left: 50%; top: 50%;
    width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }   /* 指で押しやすく（2026-11-02 講評：30px は小さい） */
  /* 月の名前（押すと 10月 → 神無月 → October。2026-11-02） */
  .dy-name { border: 0; background: none; padding: 0 2px; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: baseline; gap: 6px; border-radius: 6px; }
  .dy-name:hover .dy-mn { text-decoration: underline dotted 1.5px; text-underline-offset: 4px; }
  .dy-mn.ja { font-family: var(--font-ja); }
  .dy-rd { font: 400 12px var(--font-en); color: var(--muted); }
  .dy-note { margin: 2px 0 0; font-size: 12.5px; font-style: italic; color: var(--muted); max-width: 260px; }
  .dy-dow.ja, .dy-w { font-family: var(--font-ja); }
  /* Month / Year（Plus）と 1年を一枚に（2026-11-02 案①） */
  .dy { position: relative; }
  .dy-main, .dy-side { display: contents; }
  @media (min-width: 1000px) {   /* 二段組み（ui/diary.js。2026-11-05 ユーザー mock17 案A） */
    .dy:not(.dy-year) { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); column-gap: 36px; align-items: start; }
    .dy:not(.dy-year) > .dy-main, .dy:not(.dy-year) > .dy-side { display: block; min-width: 0; }
    .dy:not(.dy-year) > .dy-side > :first-child:not([hidden]) { margin-top: 0; }
    .dy.dy-tog:not(.dy-year) > .dy-side { padding-top: 52px; }   /* 右上の Month/Year の切り替えに右の列の文が重なった（2026-11-05 ユーザー） */
  }
  /* 続きから：最後に読んだ文の札（2026-11-02） */
  .sent { position: relative; }
  .resume-tag { position: absolute; top: -10px; left: 8px; z-index: 2; font: 700 12px var(--font-en); letter-spacing: .04em; color: var(--panel); background: var(--word);
    border-radius: 99px; padding: 2px 10px; transition: opacity .5s; pointer-events: none; }
  .resume-tag.out { opacity: 0; }
  /* 札は残すので、その文だけ上を空けて語の上の英語・札に重ねない（PC で the crane・topic に重なった：学習者役 11 回目 quinn-13） */
  .sent:has(> .resume-tag:not(.out)) { padding-top: 22px; }
  .dy-view { position: absolute; top: 14px; right: 14px; display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .dy-view button { border: 0; background: var(--panel); color: var(--muted); font: 600 13px var(--font-en); padding: 4px 12px; cursor: pointer; }
  .dy-view button.on { background: var(--word); color: var(--panel); }
  .dy-year .dy-top { padding-right: 130px; }
  .yh-sum { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 4px 0 12px; }
  .yh-sum div { font-size: 12px; color: var(--muted); } .yh-sum b { display: block; font-size: 22px; color: var(--ink); } .yh-sum b.ja { font-family: var(--font-ja); }
  .yh-scroll { overflow-x: auto; padding-bottom: 4px; }
  .yh-swipe { display: none; margin: 2px 0 0; font-size: 12px; }
  @media (max-width: 900px) { .yh-swipe { display: block; } }   /* 表が幅に入らないとき（2026-11-02 講評：7月〜11月しか見えず The last 12 months と合わなかった） */
  .yh { display: block; }
  .yh-t { font: 10px var(--font-en); fill: var(--muted); } .yh-t.ja { font-family: var(--font-ja); }
  .yh-day { cursor: pointer; }
  .yh-l0 { fill: var(--soft); background: var(--soft); }
  .yh-l1 { fill: color-mix(in srgb, var(--word) 25%, var(--soft)); background: color-mix(in srgb, var(--word) 25%, var(--soft)); }
  .yh-l2 { fill: color-mix(in srgb, var(--word) 50%, var(--soft)); background: color-mix(in srgb, var(--word) 50%, var(--soft)); }
  .yh-l3 { fill: color-mix(in srgb, var(--word) 75%, var(--soft)); background: color-mix(in srgb, var(--word) 75%, var(--soft)); }
  .yh-l4 { fill: var(--word); background: var(--word); }
  .yh-fin { fill: var(--logo-maru); } .yh-fin.gold { fill: var(--gold); }
  .yh-day.today rect:not(.yh-selring) { stroke: var(--word); stroke-width: 1.5; }   /* 今日は月の表示と同じ緑（2026-11-05 UI 確認：選んだ日の墨と見分けにくかった） */
  .yh .yh-selring { fill: none; stroke: none; pointer-events: none; }
  .yh-day.sel .yh-selring { stroke: var(--ink); stroke-width: 2; }   /* 選んだ枠は角の三角の上に描く（三角で枠が途切れていた） */
  .yh-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12px; color: var(--muted); margin-top: 6px; }
  .yh-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
  .yh-legend .yh-k { margin-left: 10px; display: inline-flex; align-items: center; gap: 4px; }
  .yh-legend i.yh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--logo-maru); }
  .yh-legend i.yh-revk { width: 8px; height: 8px; border-radius: 0; background: linear-gradient(225deg, var(--word) 50%, transparent 50%); }
  .yh .yh-rev { fill: var(--word); stroke: var(--panel); stroke-width: 1; }
  .yh .yh-bd { fill: var(--aux); stroke: var(--panel); stroke-width: 1; }
  .yh .yh-pr { fill: var(--pr-ink); stroke: var(--panel); stroke-width: 1; }
  .yh-legend i.yh-prk { width: 8px; height: 8px; border-radius: 0; background: linear-gradient(45deg, var(--pr-ink) 50%, transparent 50%); }
  .yh-legend i.yh-bdk { width: 8px; height: 8px; border-radius: 0; background: linear-gradient(315deg, var(--aux) 50%, transparent 50%); }
  @media (max-width: 620px) { .dy-tog .dy-top { padding-right: 0; padding-top: 34px; } .dy-view { top: 10px; right: 10px; } }
  .dy-top .hint { margin: 2px 0 0; }
  .dy-week { min-width: 210px; }
  .dy-ws { display: flex; gap: 6px; margin-top: 4px; }
  .dy-w { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }
  .dy-w i { display: block; width: 20px; height: 20px; margin: 0 auto 2px; border-radius: 50%; border: 1.5px dashed var(--line); }
  .dy-w i.on { background: var(--word); border: none; }
  .dy-w i.today { outline: 2px solid var(--word); outline-offset: 2px; }
  .dy-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 460px; }
  .dy-dow { font-size: 12px; color: var(--muted); text-align: center; }
  .dy-dow .dy-en { display: block; font-family: var(--font, inherit); font-size: 12px; letter-spacing: .02em; }   /* 2026-11-16 UIUX：9px・薄くした字はコントラストが足りなかった */   /* 英語話者が読めるように（2026-11-03 講評：月火水… だけだった） */
  .dy-cell { aspect-ratio: 1; border-radius: 9px; background: var(--soft); position: relative; display: flex; align-items: center; justify-content: center;
    border: 0; padding: 0; font: inherit; color: inherit; }
  button.dy-cell { cursor: pointer; }
  .dy-cell.empty { background: none; }
  .dy-cell.future { background: none; box-shadow: inset 0 0 0 1px var(--line); }   /* 2026-11-03 講評 mock-9：薄くする（.45）と日付が読めない。枠だけで「まだ」を見せる */
  /* 何もしなかった過去の日も塗らない（塗るのは読んだ日・練習した日＝押せる日だけ。2026-11-05 講評11：来ていない日が読んだ日に見えた） */
  span.dy-cell:not(.empty, .future) { background: none; }
  span.dy-cell:not(.empty, .future, .today, .wk, .sel) { box-shadow: inset 0 0 0 1px var(--line); }
  .dy-cell.today { box-shadow: inset 0 0 0 2px var(--word); }
  .dy-cell.sel { box-shadow: inset 0 0 0 2px var(--ink); }   /* 選んだ日：赤はまちがいの色に見えた（2026-11-05 UI 確認）→ 墨 */
  /* 今週の行（2026-11-03 講評 案A：上の週の丸の代わり）。今日の枠・選んだ枠はその上に */
  .dy-cell.wk { box-shadow: 0 0 0 2px color-mix(in srgb, var(--word) 22%, transparent); }
  .dy-cell.wk.today { box-shadow: inset 0 0 0 2px var(--word), 0 0 0 2px color-mix(in srgb, var(--word) 22%, transparent); }
  .dy-cell.wk.sel { box-shadow: inset 0 0 0 2px var(--ink); }
  .dm-part { width: 60%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--rd-ink); color: var(--rd-ink); display: inline-flex; align-items: center; justify-content: center;
    font: 700 clamp(9px, 2.6vw, 13px)/1 var(--font-en, inherit); margin-top: 6%; }
  .dy-rule { margin: 10px 0 0; font-size: 13px; }
  .dy-num { position: absolute; top: 2px; left: 5px; font-size: 12px; line-height: 1.3; color: var(--gloss); }   /* 2026-11-03 講評：10px・muted は 3.99:1 */
  .dy-cell:has(.dy-subs, .dm-part, svg, img) .dy-num { z-index: 2; padding: 0 2px; margin-left: -2px; border-radius: 4px; background: color-mix(in srgb, var(--panel) 82%, transparent); }   /* 印が多い日も日付が読める（学習者役 13 回目 xia-13） */
  .dm { --c: var(--rd-ink); width: 60%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--c); color: var(--c); display: inline-flex; align-items: center; justify-content: center;
    font: 700 clamp(10px, 3.2vw, 17px)/1 var(--font-ja); transform: rotate(var(--r, -6deg)); position: relative; margin-top: 6%; }
  .dm::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 1px solid currentColor; opacity: .35; }
  .dm.t-low { opacity: .75; }
  .dm.ring2 { outline: 1.5px solid var(--c); outline-offset: 2px; }   /* 10文から二重丸（2026-11-05 ユーザー mock17 案1。ui/diary.js markOnly） */
  .dm.t-high { --c: var(--gold); }
  .dm.fin { --c: var(--danger); }   /* 朱。ロゴの朱（--logo-maru）はライトで 3.05:1 だった（2026-11-09 UIUX 講評 L2） */
  .dm.fin.gold { --c: var(--gold); background: var(--gold-f); }
  .dm-dot { width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--word); opacity: .7; margin-top: 6%; display: inline-block; }
  .dm.rev { --c: var(--aux); }
  /* 復・組・練（2026-11-05 ユーザー。見本 mock15 の .mainst2・.subst）：真ん中は丸い枠の判子（枠と字が同じ色・少し傾ける）、
     真ん中に出なかったものは右下の角に小さな色つきの四角。色：復 --word・組 --aux・練 --hl */
  .k-first { --c: var(--rd-ink); }   /* 初（2026-11-06）：読 と同じ墨 */
  .k-rev { --c: var(--word); } .k-bd { --c: var(--aux); } .k-pr { --c: var(--pr-ink); }   /* 練：--hl（#ba7517）は白字で 3.6:1 → 濃くした --pr-ink（2026-11-05 UI 確認） */
  .dm2 { width: 54%; aspect-ratio: 1; border-radius: 50%; border: 2.5px solid var(--c); color: var(--c); display: inline-flex; align-items: center; justify-content: center;
    font: 700 clamp(11px, 3.4vw, 15px)/1 var(--font-ja); transform: rotate(-8deg); margin-top: 6%; box-sizing: border-box; }
  .dy-subs { position: absolute; right: 2px; bottom: 2px; display: flex; gap: 1px; }
  /* スマホ：四角が3つでもマスに収まるよう少し重ねる（2026-11-05 UI 確認：44px でマスからはみ出し、判子を隠した） */
  @media (max-width: 720px) { .dy-subs:not(.dy-subs-l):has(> :nth-child(3)) { gap: 1px; right: 1px; } .dy-subs:not(.dy-subs-l):has(> :nth-child(3)) .dy-sub { width: 14px; height: 14px; font-size: 10px; border-radius: 3px; } }   /* 3つのときは少し小さく（重ねると字が隠れた）。字は 10px より小さくしない（8px で読めなかった：学習者役 11 回目 quinn-15・持ち主 11-25 D-81「それで」） */
  .dy-sub { width: clamp(14px, 3.6vw, 16px); height: clamp(14px, 3.6vw, 16px); border-radius: 4px; background: var(--c); color: var(--panel);
    font: 700 clamp(10px, 2.6vw, 10.5px)/1 var(--font-ja); font-style: normal; display: grid; place-items: center; }
  .dy-subs.dy-subs-l { position: static; flex: none; align-items: center; gap: 2px; min-width: 40px; }
  .dy-subs.dy-subs-l .dy-sub { width: 16px; height: 16px; font-size: 10.5px; }
  .dy-subs .d-first { width: 5px; height: 5px; border-radius: 50%; background: var(--word); margin-right: 2px; }
  .dy-legend .dm2, .dy-detail .dm2 { width: 24px; font-size: 12px; border-width: 2px; margin: 0; flex: none; }
  .dy-legend { margin-top: 10px; font-size: 13px; color: var(--muted); }
  .dy-legend summary { cursor: pointer; text-decoration: underline dotted; display: inline-block; }
  .dy-legend ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
  .dy-legend li { display: flex; align-items: center; gap: 10px; }
  .dy-legend .dm { width: 24px; font-size: 12px; margin: 0; flex: none; transform: rotate(-6deg); }
  /* 凡例：読 → 励 → 秀 を並べる・×3（その日に読み終えた段の数。2026-11-20 持ち主「それでいいよ」D-25 案 B） */
  .dy-legend .dy-tiers { display: inline-flex; gap: 3px; flex: none; }
  .dy-legend .dm-n { position: static; margin-left: -6px; font-size: 12px; line-height: 16px; flex: none; }
  .dy-legend .dm-dot { width: 8px; margin: 0 8px; flex: none; }
  .dm-dot.pr { background: var(--aux); opacity: .55; }   /* 練習だけの日 */
  .pg-wait { margin-top: 4px; font-size: 12.5px; } .pg-wait summary { cursor: pointer; color: var(--muted); text-decoration: underline dotted; }
  .dy-sec-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ai); margin: 0 8px; flex: none; }
  .dy-dots { position: absolute; left: 0; right: 0; bottom: 3px; display: flex; justify-content: center; gap: 3px; }
  .dy-dots.dy-dots-l { position: static; width: 24px; flex: none; }
  .dy-dots i { width: 5px; height: 5px; border-radius: 50%; }
  .dy-dots .d-first { background: var(--word); } .dy-dots .d-rev { background: var(--aux); } .dy-dots .d-pr { background: var(--aux); opacity: .5; }
  .dy-rev { position: absolute; left: 2px; bottom: 2px; font: 700 10px/14px var(--font-ja); color: var(--aux); border: 1.5px solid var(--aux); border-radius: 50%; width: 15px; height: 15px; display: grid; place-items: center; background: var(--panel); }
  /* ×N は右上に（右下の小さな四角 初・組・練 に重なって見えなかった：学習者役 8・9 回目 finn-13・gus-19・ivan-6・hana-14） */
  .dm-n { position: absolute; right: 2px; top: 1px; font: 700 10px/14px var(--font-en); color: var(--logo-maru); background: var(--panel); border-radius: 99px; padding: 0 4px; }
  .dy-detail { margin-top: 10px; background: var(--soft); border-radius: 10px; padding: 10px 12px; font-size: 14px; max-width: 460px; }
  .dy-detail div { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
  .dy-detail .dm { width: 24px; font-size: 12px; margin: 0; flex: none; }
  .dy-detail .dm-dot { width: 8px; margin: 0 8px; }
  /* 読む力（ui/reach.js） */
  .rc-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
  .rc-big b { font-size: 34px; color: var(--word); font-variant-numeric: tabular-nums; }
  .rc-big span { color: var(--muted); }
  .rc-up { color: var(--word); font-weight: 600; }
  .rc h3 { font-size: 15px; margin: 16px 0 6px; }
  .rc-list { display: flex; flex-direction: column; gap: 4px; }
  .rc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 12px; padding: 4px 0; border-top: 1px solid var(--line); font-size: 14px; }
  .rc-bar { display: block; width: 110px; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
  .rc-bar i { display: block; height: 100%; background: var(--learned); }
  .rc-bar.ok i { background: var(--word); }
  /* スマホ：題を1行目に、棒と数を2行目に（2026-11-02 講評：題が4行に折れていた） */
  @media (max-width: 520px) { .rc-row:not(.rc-read) { grid-template-columns: auto minmax(0, 1fr); } .rc-row:not(.rc-read) > span:first-child { grid-column: 1 / -1; } .rc-row:not(.rc-read) .hint { text-align: right; } }
  .rc-rate { font-variant-numeric: tabular-nums; color: var(--ink); }
  .rc-read { display: flex; flex-wrap: wrap; align-items: baseline; }
  .rc-read > span:first-child { flex: 1 1 200px; }
  /* More to read（2026-11-05）：題（押すと開く）・棒・理由の一行。理由は折り返す */
  .rc-row.rc-more { grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1.2fr); padding: 6px 0; }
  .rc-row.rc-more > button { font-size: 14px; color: var(--ink); text-align: left; text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent); }
  .rc-row.rc-more .hint { font-size: 12.5px; line-height: 1.35; }
  .rc-list + .rc-big, .rc-list + .hint { margin-top: 14px; }
  @media (max-width: 520px) { .rc-row.rc-more { grid-template-columns: auto minmax(0, 1fr); } .rc-row.rc-more > button { grid-column: 1 / -1; } .rc-row.rc-more .hint { text-align: left; } }
  /* つまずきやすい所（ui/weak.js） */
  .wk-slip { display: grid; grid-template-columns: 1fr minmax(80px, 160px) auto; align-items: center; gap: 6px 14px; padding: 8px 0; border-top: 1px solid var(--line); }
  .wk-slip:first-of-type { border-top: 0; }
  .wk-slip .hint { margin-left: 6px; }
  @media (max-width: 520px) { .wk-slip { grid-template-columns: 1fr auto; } .wk-slip .wk-bar { grid-column: 1 / -1; grid-row: 2; } }
  .wk-bar { display: block; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
  .wk-bar span { display: block; height: 100%; background: var(--word); }
  .wk-more { margin-top: 8px; } .wk-more summary { cursor: pointer; color: var(--muted); font-size: 14px; }
  .wk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 28px; margin-top: 8px; }
  .wk-row { display: grid; grid-template-columns: 1fr 70px 64px auto; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; }
  /* 列の見出し（2026-11-06 講評：右の列は全グループの合計なのに Group I の下に見え、上の「20 of 25」と数が合わないように見えた） */
  .wk-h { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 6px 0 2px; font-weight: 600; }
  .wk-row .hint { font-variant-numeric: tabular-nums; margin: 0; }
  /* 過去の自分と比べる・復習のペース */
  .pg-grow { display: flex; flex-wrap: wrap; gap: 10px 28px; }
  .pg-grow div { display: flex; align-items: baseline; gap: 8px; }
  .pg-grow b { font-size: 26px; color: var(--word); font-variant-numeric: tabular-nums; }
  .pg-grow span { color: var(--muted); font-size: 14px; }
  .pg-pace { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 12px; }
  .pg-pace .seg { margin-left: 0; }
  .lb-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .lb-card { flex: 0 0 190px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; text-align: left;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; }
  .lb-card:hover { border-color: var(--word); }
  .lb-card.current { border-color: var(--word); box-shadow: inset 3px 0 0 var(--word); }
  .lb-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--word); }
  .lb-title { font-weight: 600; font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lb-level { font-size: 12px; font-weight: 700; color: var(--word); }
  .lb-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* 2026-11-03 講評 mock-9 案B：題は切らずに2行（日本語／読み）。新作は絵の左上に NEW、棚の上に一行（どの棚に入ったか） */
  .lb-title:has(.lb-title-en) { display: flex; flex-direction: column; white-space: normal; overflow: visible; }
  .lb-title > span { overflow-wrap: anywhere; }
  .lb-title-en { font-weight: 500; color: var(--muted); }
  .lb-main, .lb-card { position: relative; }
  .lb-newb { display: inline-block; padding: 1px 8px; border-radius: 999px; background: #c0392b; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 18px; }
  .lb-main > .lb-newb { position: absolute; top: 8px; left: 8px; text-transform: uppercase; box-shadow: 0 1px 3px #0004; }
  .lb-newline { margin: 4px 0 10px; font-size: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
  .lb-newline .lb-newline-go { font-size: 14px; color: var(--ink); text-decoration-color: var(--line); }
  .lb-newline .lb-newline-go b { font-weight: 600; }
  .lb-newline:has(.lb-new-it) { column-gap: 18px; }   /* 作と作の間（区切りの「·」の代わり。2026-11-09） */
  .lb-card.lb-w-jump { animation: flash 1.6s ease-out; }
  .lb-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-top: 4px; font-size: 12px; }
  .lb-foot > .lb-tag { margin-left: auto; }   /* 折り返しても札は右下（2026-11-05 講評11：768px で左に落ちる札と右の札が混ざった） */
  .lb-known { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .lb-bar { width: 40px; flex: none; height: 5px; border-radius: 3px; background: var(--soft); overflow: hidden; }
  .lb-bar i { display: block; height: 100%; background: var(--muted); }
  .lb-known.fit { color: var(--word); font-weight: 600; }
  .lb-known.fit .lb-bar i { background: var(--word); }
  .lb-tag { font-size: 12px; padding: 1px 6px; border-radius: 5px; background: var(--soft); color: var(--muted); white-space: nowrap; }
  .lb-tag.reading { background: var(--hl-f); color: var(--pr-ink); }   /* --hl はライトで 3.24:1（2026-11-09 UIUX 講評 L2）。ダークは同じ色 */
  .lb-tag.done { background: var(--learned-f); color: var(--learned); }
  .lb-tag.plus { background: var(--gold-f); color: var(--gold); }
  /* 有料の段を押したときの知らせ：金の枠で目立たせ、ふわっと出して軽く光らせる。8 秒で消える */
  .lb-plus-msg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px;
                 background: var(--gold-f); color: var(--gold); border: 1.5px solid var(--gold); font-size: 14px;
                 box-shadow: 0 0 0 0 var(--gold-glow); animation: plus-in .35s ease-out, plus-glow 1.6s ease-out .35s; transition: opacity .4s; }
  .lb-plus-msg b { color: var(--gold); }
  .lb-plus-msg span:nth-child(2) { flex: 1 1 200px; }
  .lb-plus-msg .btn { border-color: var(--gold); color: var(--gold); background: transparent; }
  .lb-plus-msg.out { opacity: 0; }
  @keyframes plus-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  @keyframes plus-glow { 0% { box-shadow: 0 0 0 0 var(--gold-glow); } 60% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: none; } }
  @media (prefers-reduced-motion: reduce) { .lb-plus-msg { animation: none; } }
  .lb-all { flex: 0 0 120px; display: flex; flex-direction: column; justify-content: center; gap: 2px; text-align: left;
    background: var(--soft); border: 1px dashed var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; }
  .lb-all span { color: var(--muted); font-size: 12px; }
  .lb-all:hover { border-color: var(--word); }
  .lb { display: flex; flex-direction: column; gap: 12px; }
  /* 作品のカード：上は今読む段（押すと開く）、下に段の札 */
  .lb-work { padding: 0; gap: 0; }
  .lb-main { display: flex; flex-direction: column; gap: 2px; text-align: left; background: none; border: 0; padding: 9px 12px; min-width: 0; }
  .rungs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 10px; }
  .rung { font-size: 12px; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); white-space: nowrap; }
  .rung.open { border-color: var(--word); color: var(--word); font-weight: 600; }
  .rung.open b { background: var(--word); color: var(--panel); border-radius: 4px; padding: 0 4px; margin-left: 3px; font-size: 12px; }
  .rung.done { background: var(--learned-f); border-color: var(--learned-line); color: var(--learned); }
  .rung.next { border-style: dashed; }
  .rung.plus { background: var(--gold-f); border-color: var(--gold); color: var(--gold); }
  .rung.soon { opacity: .6; }
  .lb-next { display: block; font-size: 12px; color: var(--muted); padding: 0 12px 10px; }
  /* 進み具合の画面のハンコ帳の入口 */
  .pg-stamps { display: grid; gap: 10px; }
  .pg-stamps-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
  .pg-stamps-head h3 { margin: 0; }
  .pg-stamp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .pg-stamps .btn { justify-self: start; }
  .lb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .lb-head h2 { margin: 0; }
  .lb-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
  /* 本が少ないうちは絞り込みをたたむ（ui/library.js の fold。2026-10-30） */
  .lb-more > summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 8px 2px; list-style: none; white-space: nowrap; }
  .lb-more > summary::-webkit-details-marker { display: none; }
  .lb-more > summary::after { content: " ▾"; }
  .lb-more[open] { flex-basis: 100%; }
  .lb-more[open] > summary::after { content: " ▴"; }
  .lb-more-in { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 4px; }
  .lb-f { display: flex; flex-direction: column; gap: 3px; }
  .lb-q { flex: 1 1 220px; }
  .lb-q input { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 5px 9px; width: 100%; }
  .lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
  .lb-grid .lb-card { flex: none; }
  .lb-genre { display: flex; flex-direction: column; gap: 8px; }
  .lb-genre + .lb-genre { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
  .lb-genre h3 { margin: 0; font-size: 15px; }
  .lb-genre h3 small { font-weight: 400; margin-left: 6px; }
  /* 作品の札（2026-11-13 持ち主の決まり。モック docs/design/library-stack-2026-11-13.html。ui/library.js の workStackHtml）
     スマホ（〜720px。決まり C-61 2026-11-19：前は 759px）：重ねる＋のぞく。札はみな同じ升に重ね（grid-area 1/1）、升の高さは一番高い札に合う。前後の段は左右に少し（字は消す）
     PC（721px〜）：札＋Lv のグリッド。同じ列の札は同じ高さ（ここ一か所で。align-items:stretch → .lb-stk → .lb-stage → .lb-lv）。Read は札の下にそろえる */
  .lb-stks { display: flex; flex-direction: column; gap: 22px; }
  .lb-stk { position: relative; min-width: 0; display: flex; flex-direction: column; }
  .lb-stk > .lb-newb { position: absolute; top: 10px; left: calc(9% + 8px); z-index: 4; text-transform: uppercase; box-shadow: 0 1px 3px #0004; }
  .lb-stage { display: grid; overflow: hidden; margin: 0 -14px; padding: 4px 0 8px; touch-action: pan-y; }
  .lb-lv { grid-area: 1 / 1; margin: 0 9%; min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
           border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgb(60 40 20 / .1); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s, filter .35s; }
  .lb-lv.lb-drag { transition: none; }
  .lb-lv[data-k="0"] { z-index: 3; }
  .lb-lv[data-k="1"] { z-index: 2; transform: translateX(84%) scale(.9); filter: brightness(.94); cursor: pointer; }
  .lb-lv[data-k="-1"] { z-index: 2; transform: translateX(-84%) scale(.9); filter: brightness(.94); cursor: pointer; }
  .lb-lv[data-k="far"] { z-index: 1; transform: translateX(168%) scale(.8); opacity: 0; }
  .lb-lv[data-k="-far"] { z-index: 1; transform: translateX(-168%) scale(.8); opacity: 0; }
  .lb-lv:not([data-k="0"]) .lb-lv-body { opacity: 0; }   /* のぞく札は絵と Level の札だけ（2026-11-13 デザイナー講評 4：切れた字が並んだ） */
  .lb-lv-body { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 12px; transition: opacity .35s; }
  .lb-lv-top { position: relative; }
  /* 絵・題を押しても Read → と同じ（決まり L1-7。read-library.js・ui/library.js の cardReadOf）。まだの段（soon）は押せない */
  .lb-lv:not(.lb-lv-soon) .lb-lv-top, .lb-lv:not(.lb-lv-soon) .lb-lv-body > .lb-title { cursor: pointer; }
  .lb-lv-cv { display: block; height: 128px; background: #26305a no-repeat; background-size: cover; }
  .lb-lv-cv.dim { filter: grayscale(.6) brightness(.85); }
  .lb-lv-plus .lb-lv-top::after { content: "🔒"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; }
  .lb-lv-soon { background: var(--soft); }
  .lb-lv-soon .lb-lv-cv { opacity: .3; filter: grayscale(.6); }
  .lb-lv-name { position: absolute; left: 10px; bottom: 10px; background: color-mix(in srgb, var(--panel) 92%, transparent); border-radius: 999px; padding: 2px 10px;
                font-weight: 700; font-size: 13px; color: var(--word); }
  .lb-lv-top > .lb-stamp { top: 8px; right: 10px; line-height: 0; border-radius: 50%; background: color-mix(in srgb, var(--panel) 88%, transparent); box-shadow: 0 1px 3px #0003; }
  .lb-lv-top > .lb-own { top: 8px; right: 56px; }
  .lb-rd { position: absolute; right: 10px; top: 10px; background: color-mix(in srgb, var(--panel) 94%, transparent); color: var(--pr-ink); border-radius: 999px;
           padding: 2px 9px; font-size: 12px; font-weight: 700; }
  .lb-lv .lb-title { font-size: 16px; }
  .lb-lv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; min-height: 22px; }
  .lb-lv-tags > span { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--muted); background: var(--soft); }
  .lb-new { font-size: 12px; color: var(--muted); }
  .lb-new > span { color: var(--word); margin-right: 4px; }
  .lb-new.lb-first { color: var(--muted); }
  .lb-lv .lb-foot { justify-content: flex-start; margin-top: auto; }
  .lb-lv .lb-parts { margin-top: auto; padding-top: 8px; }   /* Part の札は語の帯のさらに上（下の端は 語の帯 → Read でどの札も同じ高さ。持ち主 11-25「wordsがそろっていない」。L1-1） */
  .lb-lv .lb-parts + .lb-foot { margin-top: 6px; }
  .lb-lv .lb-foot + .lb-go { margin-top: 0; }   /* words learned も Read のすぐ上の下の端にそろえる（持ち主 11-25「words learnedもそろっていないので」。前は New: の行の長さで高さがばらばら） */
  .lb-go { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .lb-read { min-height: 44px; }
  .lb-parts { display: flex; flex-wrap: wrap; gap: 4px; }   /* 語の帯と Read の上の一行（Read・語の帯は隣のカードと同じ下の端。持ち主 11-25） */
  .lb-pt { min-height: 44px; min-width: 44px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
  .lb-pt.on { border-color: var(--word); color: var(--word); font-weight: 700; background: var(--word-f); }
  .lb-pt.done { color: var(--learned); }
  .lb-lvs { display: flex; justify-content: center; gap: 6px; flex-wrap: nowrap; margin-top: 2px; }
  .lb-lvb { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted);
            font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
  .lb-lvb.on { border-color: var(--word); color: var(--word); font-weight: 700; background: var(--word-f); }
  .lb-lvb.ok::after { content: " ✓"; color: var(--shu, #c0392b); }
  .lb-lvb.reading::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d98a1c; margin-left: 5px; vertical-align: middle; }
  .lb-lvb.soon small { font-size: 12px; opacity: .85; margin-left: 3px; }
  .lb-lvb .lk { font-size: .8em; margin-right: 2px; }
  .lb-lvs.compact { gap: 4px; }
  .lb-lvs.compact .lb-lvb { min-width: 36px; padding: 0 7px; }
  .lb-lvs.compact .lb-lvb .lk { position: absolute; top: -6px; right: -4px; font-size: 11px; margin: 0; }
  .lb-swipe { text-align: center; margin: 4px 0 0; font-size: 12px; }
  .lb-flash { animation: lb-flash .6s ease-out; }
  @keyframes lb-flash { from { background: color-mix(in srgb, var(--hl-f) 70%, transparent); } to { background: transparent; } }
  @media (min-width: 721px) {   /* スマホとパソコンの境目は 720px（決まり C-61。前は 760） */
    .lb-stks { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; align-items: stretch; }
    .lb-stk { border-radius: 12px; box-shadow: 0 2px 10px rgb(60 40 20 / .1); }
    .lb-stk > .lb-newb { left: 8px; }
    .lb-stage { flex: 1; display: flex; margin: 0; padding: 0; overflow: visible; }
    .lb-lv { flex: 1; margin: 0; transform: none !important; opacity: 1; filter: none; box-shadow: none; border-radius: 12px 12px 0 0; }
    .lb-lv:not([data-k="0"]) { display: none; }
    .lb-lvs { margin: 0; gap: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; overflow: hidden; background: var(--panel); }
    .lb-lvb, .lb-lvs.compact .lb-lvb { flex: 1; min-width: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 2px; }
    .lb-lvb:first-child { border-left: 0; }
    .lb-lvb.on { background: var(--word); color: var(--panel); }
    .lb-lvb.on.ok::after { color: var(--panel); }
    .lb-lvb:focus-visible { outline-offset: -4px; }   /* 親の overflow:hidden で外側の輪が切れて見えなかった（kim9-3。C-32） */
    .lb-lvs.compact .lb-lvb .lk { top: 2px; right: 3px; font-size: 9px; }
    .lb-swipe { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { .lb-lv, .lb-lv-body { transition: none; } }
  @media (max-width: 520px) { .lb-card { flex-basis: 180px; } .lb-all { flex-basis: 120px; } }
  select { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px; }
  .player { aspect-ratio: 16 / 9; max-height: 320px; width: 100%; max-width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
  .player-box, .player-box > * { width: 100%; height: 100%; }
  .player.mini .player-box { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 320px; height: 180px; z-index: 15; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
  .demo { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
  .demo input { flex: 1; min-width: 0; accent-color: var(--word); }
  /* 全部を聞く：目立たせない（2026-11-01 ユーザー：初心者は一文ずつ ▶ で聞くほうがよい。音は流れて消えるので、続けて流すと追いつけない）。
     枠のない細い一行・小さな灰色のボタン。主役は文ごとの ▶ */
  .demo { background: none; border: 0; padding: 0 2px; gap: 10px; }
  .demo #demo-play { font-size: 13px; padding: 3px 10px; color: var(--muted); background: transparent; border-color: var(--line); }
  .demo #demo-play:hover { color: var(--ink); }
  .demo input { max-width: 280px; height: 14px; opacity: .75; }
  .demo .time { font-size: 12px; color: var(--muted); }
  .time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; min-width: 3em; }
  .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 12px 16px; background: var(--panel);
              border: 1px solid var(--line); border-radius: 10px; }   /* 前は sticky：読むときに本文の上に残って文を隠した（2026-11-02 講評）。上に置いたまま */
  .controls .seg { margin-left: 6px; }
  .ratio { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; min-width: 0; }
  .ratio input { flex: 1; min-width: 0; accent-color: var(--word); }
  .ratio output { font-variant-numeric: tabular-nums; width: 3.6em; flex: none; text-align: right; font-weight: 600; color: var(--word); }
  .check { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; min-height: 24px; }   /* 押す所は 24px 以上（C-33） */
  .check input { accent-color: var(--word); }
  /* 細かい使い方：ふだんは閉じておき、見たいときに開く */
  .lb-back { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px;
    background: var(--word-f); border-left: 3px solid var(--word); }
  .lb-back-hi { font-weight: 600; margin-right: 4px; }
  /* Today の一行（2026-11-02 案B）：チップ。主（続き）だけ塗り。帯は低く、本棚を押し下げない */
  .lb-today { padding: 8px 12px; gap: 8px; }
  .td-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--panel); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; max-width: 100%; white-space: nowrap; min-width: 0; }
  .td-chip:hover { border-color: var(--word); }
  .td-chip b { color: var(--word); }
  .td-chip small { color: var(--muted); font-size: 12.5px; flex: none; }
  .td-chip.td-done { cursor: default; color: var(--word-t); background: var(--word-f); border-color: transparent; }   /* 今日の分を終えた印（押せない） */
  .td-chip.main { background: var(--word); border-color: var(--word); color: var(--panel); font-weight: 600; }
  .td-chip.main b, .td-chip.main small { color: color-mix(in srgb, var(--panel) 85%, transparent); }
  .td-chip span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  @media (max-width: 560px) { .lb-today .lb-back-hi { width: 100%; font-size: 13px; color: var(--muted); } .td-chip { flex: 1 1 100%; flex-wrap: wrap; white-space: normal; border-radius: 18px; text-align: left; }
    .td-chip span { overflow: visible; white-space: normal; }
    .td-chip small { flex-basis: 100%; } .td-chip .td-sep { display: none; } }   /* 二行目を「·」で始めない（2026-11-06 UI 確認14） */
  .td-sep { font-style: normal; }   /* スマホでは切らずに折り返す（話の名前とレベルが切れていた。2026-11-02 講評） */
  /* お勧めの理由の一行（core/library.js の whyNext。2026-11-05）。カードの中は2行まで */
  .nx-why { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
  .lb-card .nx-why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; margin-top: 2px; }
  /* 週の丸（core/practice-week.js・ui/diary.js weekDotsHtml。2026-11-05）：練習した日は塗る・今日は輪郭を強く・未来は薄く。曜日の頭文字は下に */
  .wd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
  .wd-days { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
  .wd { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 24px; }
  .wd-dot { box-sizing: border-box; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--word) 45%, var(--line)); background: var(--panel); }
  .wd.on .wd-dot { background: var(--word); border-color: var(--word); }
  .wd.today .wd-dot { border: 3px solid var(--ink); }
  .wd.today.on .wd-dot { box-shadow: inset 0 0 0 2px var(--panel); }   /* 塗った今日：濃い輪郭と塗りの間に細い隙間（外へははみ出さない） */
  .wd.future .wd-dot { width: 8px; height: 8px; margin: 6px; border: 0; background: var(--line); }   /* これからの日：小さな点（2026-11-05 UI 確認：ダークで、過ぎた練習なしの日と見分けがつかなかった） */
  .wd.before .wd-dot { border-style: dashed; border-color: var(--line); background: none; }   /* はじめて練習した日より前（2026-11-06 講評12）：休んだ日に見せない */
  .wd-l { font-size: 12px; line-height: 1; color: var(--muted); }
  .wd.today .wd-l { color: var(--ink); font-weight: 700; }
  .wd-sum { margin: 0; font-size: 14px; color: var(--ink); }
  .lb-today .td-week { flex: 1 1 100%; padding: 2px 0 4px; }
  .pg-week { padding: 12px 18px; margin-bottom: 12px; }
  /* 85% のお知らせ（本棚の一番上。core/ready-notice.js。2026-11-05） */
  .rdy { margin-bottom: 14px; border: 2px solid var(--word); background: var(--word-f); }
  .rdy p { margin: 0 0 6px; }
  .rdy-hi b { color: var(--word-t); }
  .rdy-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 10px 0 0 !important; }
  .t-all { margin: 4px 0 2px; }
  .t-all .btn { font-size: 13px; padding: 4px 10px; }
  .t-kana-lite { font-size: 13px; }
  /* 力試し（Test yourself）：設定の外に1行。Build the verbs と Read without hints を押せる札（オンで緑・✓）。場所をとらないよう1行に */
  .rd-test { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
  .rd-test-h { font-size: 14px; font-weight: 700; color: var(--ink); margin-right: 2px; }
  .rd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px; border: 1.5px solid var(--line); border-radius: 999px;
    background: var(--panel); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .2s, background .2s; }
  .rd-chip:hover { border-color: var(--word); }
  .rd-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .rd-chip small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
  .rd-chip::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); box-sizing: border-box; }
  /* Test yourself のオン・オフは Reading options と同じ四角のチェック（丸は「どれか1つ」に見えた。2026-11-09 持ち主。UIUX M7） */
  .rd-test-pop .rd-chip { border: none; background: none; padding: 6px 4px; border-radius: 0; font-weight: 400; color: var(--ink); }
  .rd-test-pop .rd-chip:has(input:checked) { background: none; color: var(--ink); }
  .rd-test-pop .rd-chip::before { border-radius: 3px; width: 18px; height: 18px; }
  .rd-test-pop .rd-chip:has(input:checked)::before { background: var(--word); border-color: var(--word); content: "✓"; content: "✓" / ""; color: var(--panel); font-size: 13px; line-height: 15px; text-align: center; }
  .rd-test-pop .rd-chip:has(input:focus-visible) { outline: 2px solid var(--word); outline-offset: 2px; }
  .rd-chip:has(input:checked) { border-color: var(--word); background: var(--word-f); color: var(--word); }
  .rd-chip:has(input:checked)::before { border: 0; background: var(--word) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.6L12 5.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
  .rd-chip:has(input:focus-visible) { outline: 2px solid var(--word); outline-offset: 2px; }
  .rd-chip[hidden] { display: none; }
  .rd-opts { width: 100%; }   /* 閉じても開いても同じ行（開くと場所が動いていた。2026-10-26 ユーザー） */
  .rd-opts > summary { cursor: pointer; width: fit-content; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink);
    padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; }
  .rd-opts > summary::-webkit-details-marker { display: none; }
  .rd-opts > summary:hover { border-color: var(--word); }
  .rd-opts[open] > summary { margin-bottom: 10px; }
  .rd-opts-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
  .rd-row { display: flex; align-items: center; gap: 4px 8px; flex-basis: 100%; flex-wrap: wrap; }
  .rd-row .seg button { white-space: nowrap; }   /* 360px で「say it」が2行・「かな」が縦に割れていた（2026-11-05 講評11）：割らずに行ごと折り返す */
  .rd-script { display: none; }
  @media (max-width: 720px) { .rd-script { display: flex; } }
  .howto { width: 100%; font-size: 13px; color: var(--muted); }
  .howto > summary { cursor: pointer; width: fit-content; list-style: none; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
  .howto > summary::-webkit-details-marker { display: none; }
  .howto > summary::before { content: "ⓘ "; }
  .howto[open] > summary { margin-bottom: 8px; }
  .howto > p { margin: 0 0 6px; }
  .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); width: 100%; }
  .lg { font-weight: 600; padding: 0 5px; border-radius: 4px; font-family: var(--font-en); }
  /* 見本は本文と同じ形（2026-11-05 UI 確認：本文は字の下の線になったのに、見本は塗った箱のままだった） */
  .legend .lg.s-picked { background: none; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--word) 55%, transparent); border-radius: 0; }
  .legend .lg.s-learned { background: none; box-shadow: inset 0 -2px 0 var(--learned-line); border-radius: 0; }
  .legend .lg.lg-dotl { color: var(--word-t); text-decoration: underline dotted 2px color-mix(in srgb, var(--word) 55%, transparent); text-underline-offset: 4px; }
  .text { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 0; }
  .sent { display: flex; gap: 12px; padding: 10px 18px; border-left: 3px solid transparent; }
  /* 読んでいる文：語のピース・語の札（--word-f）と同じ色にすると境目が消えるので、背景はそれより淡く（濃淡で分ける） */
  .sent.now { border-left-color: var(--word); background: color-mix(in srgb, var(--word-f) 45%, var(--panel)); }
  /* スマホ：文ごとのボタンの列をやめ、下の一つのバー（sent-bar.js。2026-11-08 持ち主・UIUX：列が場所を取り1文が約1000px） */
  .rbar { display: none; }
  @media (max-width: 720px) {
    body.rbar-on .sent .btns, body.rbar-on .sent .flag { display: none; }
    body.rbar-on .sent { padding: 8px 12px; }
    body.rbar-on #tab-read { padding-bottom: 8px; }   /* 下のバーの分は body の padding（下のほう。フッターも含めて上へ送る。2026-11-18） */
    .rbar:not([hidden]) { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; align-items: center; gap: 6px; padding: 6px 8px;
      background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
    .rbar button { min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--word); font: 700 15px var(--font-en, system-ui); padding: 0 10px; cursor: pointer; }
    .rbar button:disabled { opacity: .4; cursor: default; }
    .rbar .rb-play { background: var(--word); color: var(--panel); border-color: var(--word); min-width: 60px; font-size: 18px; }
    .rbar .rb-en { color: var(--gloss); }
    .rbar .rb-en.on { background: var(--word-f); color: var(--word); border-color: var(--word); }
    .rbar .rb-n { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; min-width: 44px; text-align: center; }
    .rbar .rb-sp { flex: 1; }
  }
  .sent .btns { flex: none; display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
  .sent .btns button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--word); font-size: 12px; padding: 0; }
  .sent .btns .lang { font-family: var(--font-ja); font-size: 12px; color: var(--muted); }
  .sent .btns .lang.on { color: var(--word); border-color: var(--word); }
  .sent .play.stop { background: var(--word); color: var(--panel); }
  .sent .body { min-width: 0; flex: 1; }
  .line { font-size: 20px; line-height: 2.6; position: relative; z-index: 0; }
  .en-line { font-size: 13px; color: var(--muted); margin-top: 6px; }   /* 下の読み（発音・かな）と重ならないように */
  /* はじめはぼかす。押すと見える（read.js の enLine・revealEn） */
  .en-line.veil { cursor: pointer; user-select: none; }
  /* 隠しているあいだは「EN · tap to show」の札だけ（ぼかした英文は札があるなら邪魔。2026-10-26 ユーザー） */
  .en-line.veil { display: none; }
  /* 動詞・形容詞（ピースで出していないとき）：下に点線。押すとカードでピースに分かれる */
  #text [data-chain]:not(:has(svg)) :is(.pc, .pc > .jw > .jw-ja) { text-decoration: underline dotted color-mix(in srgb, var(--aux) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 5px; }   /* .pc > .jw：ローマ字で下に かな を出す動詞（2026-11-11）。下の線は inline-flex の中へ伝わらないので字にも */
  .sent .btns .en-btn { font-size: 12px; font-weight: 700; color: var(--gloss); letter-spacing: 0; }   /* 2026-11-03 講評：10px は小さすぎた */
  .sent .btns .en-btn:hover { color: var(--ink); border-color: var(--muted); }
  /* 開いている：押した印に塗る（押すと隠す）。前は薄くして使えないボタンに見えた（学習者役 7 回目 kim3-10。2026-11-18：前は消えてフォーカスが落ち、隠せなかった） */
  .sent .btns .en-btn.done { background: color-mix(in srgb, var(--word) 14%, var(--panel)); border-color: var(--word); color: var(--word); }
  /* ふりがなを消す（漢字のとき。2026-11-06 講評：中級者が読みを全部切ってもふりがなが残った）。場所は残して字の位置を動かさない */
  #text[data-furi="off"] .rt, #text[data-furi="off"] rt { visibility: hidden; }   /* 開いたあとも列の幅は残す */
  #chunk[data-furi="off"] :is(.rt, rt) { display: none; }   /* Build の上の大きな語も設定どおり（C-1。kim-9） */
  #text[data-furi="off"] ~ #finish :is(#tf, #ochi) :is(.rt, rt) { visibility: hidden; }   /* 読んだあとの ○✗・落語のオチの問いも同じ（2026-11-13 学習者役：ふりがなを消しても ○✗ に残った） */
  .en-line.veil:focus-visible { outline: 2px solid var(--word); outline-offset: 3px; }
  /* 隠れた英文の札：ぼかさない。押せることが分かる形（小さなボタン風） */
  .en-cue { display: inline-block; margin-right: 8px; padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--soft);
    color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; line-height: 18px; vertical-align: 1px; }
  .en-line.veil:hover .en-cue { color: var(--ink); border-color: var(--muted); }
  .en-tip { font-size: 12px; color: var(--word); margin-top: 2px; }
  .c-en { cursor: pointer; border-radius: 4px; padding: 1px 2px; }
  .c-en:hover, .c-en.open { background: var(--soft); }
  .c-ja { font-family: var(--font-ja); cursor: pointer; border-radius: 5px; padding: 1px 4px; white-space: nowrap; }
  .c-ja rt { font-size: 11px; color: var(--muted); }
  .s-picked, .s-sentence { color: var(--word-t); background: var(--word-f); }
  .s-learned { color: var(--learned); background: var(--learned-f); }
  /* 一部だけ覚えた塊：枠は付けない（2026-11-01 ユーザー：覚えたピースが茶の字・茶の地でもう見えている。枠は同じことの3つめの印で、
     塊全体が特別な状態に見え、目がまだ覚えていない塊より先にそこへ行く）。見本の lg-part は 待っ＋茶の た */
  .s-partial { color: var(--word-t); }
  .lg-part .pc-l { color: var(--learned); background: var(--learned-f); border-radius: 3px; padding: 0 2px; }
  .c-ja:has(svg) { background: none; box-shadow: none; padding: 1px 2px; }
  .c-ja .pc.learned { color: var(--learned); background: var(--learned-f); border-radius: 3px; }
  /* 日本語の塊の上の対訳 */
  .c-ja.g { display: inline-flex; flex-direction: column; align-items: flex-start; vertical-align: bottom; line-height: 1.2; }
  .kp { white-space: nowrap; }
  #text .c-ja .jt { white-space: nowrap; }   /* 動詞の塊（kaera·nakereba·nari·mase·n）をピースの間で折り返さない（2026-11-06 講評：一語の途中で改行） */
  #text .kp.kp-wrap { white-space: normal; }  #text .c-ja.ilg-wrap .ilg { white-space: normal; max-width: 100%; }   /* 行より長いまとまり・英訳だけは折る（read.js fitLong。長い一語は字を小さくして収める） */
  .kp .c-ja.g:has(.pc-sep) { white-space: normal; }
  .c-ja .ilg { font-family: var(--font-en); font-size: 13px; color: var(--gloss); white-space: nowrap; padding: 0 1px; }   /* 2026-11-03 講評 mock-9 案A：12px・muted では 4.5:1 に届かなかった */
  /* 2026-11-08 持ち主：英語のヒントと下の日本語の間をせばめる（どの行のヒントか分かるように。上の行の読みにくっついて見えた）。
     ふりがなのある語は、ふりがなとくっつかないように今の間のまま */
  /*   文の中にふりがなが一つでもあれば今のまま（漢字・読みなし：ふりがなのある語とない語で英語の高さがずれた） */
  #text .sent:not(:has(ruby, .rt, svg)) .c-ja.g .ilg { margin-bottom: -6px; line-height: 1.1; }   /* svg：Show verbs as pieces のピースにかぶった */
  .c-ja.g:has(ruby) .ilg { margin-bottom: 3px; }   /* 漢字：英語とふりがなの間をあける（2026-11-05 講評11：くっついて見えた） */
  /* ヒントなしで読む：英語のヒントと英文を隠す。押した塊（peek）だけ出す。行の高さはそのまま（隠すのは見た目だけ） */
  /* スマホの下のタブ（2026-11-16 持ち主 C6 案 T1）。☰ の中の画面の切り替えは外す（☰ は表記・音・明るさ・アカウント） */
  .btabs { display: none; }
  @media (max-width: 720px) {
    .btabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
    .btabs button { border: 0; background: none; min-height: 52px; padding: 6px 0 7px; font: inherit; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 0; }
    .btabs button.on { color: var(--word); font-weight: 700; }
    .btabs .bt-i { font-size: 18px; line-height: 1; }
    body:has(#tab-read:not([hidden]):not(.lib-open)) .btabs { display: none; }   /* 物語を読んでいる間（下は文のバー） */
    body:has(.btabs) { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
    body:has(#tab-read:not([hidden]):not(.lib-open)) { padding-bottom: 0; }
    /* Build の下の帯（できた形・See it ↑）は下のタブの上に（2026-11-20 学習者役 nana-2：タブ（z-index 30）の後ろに隠れて読めなかった） */
    body:not(:has(#tab-read:not([hidden]):not(.lib-open))) .chain-tray { bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
    /* 文のバー（.rbar）があるときは、ページのいちばん下（作者のことば・VOICEVOX のクレジット）もバーの上まで送れるように（2026-11-18 学習者役：下のリンクにバーが重なった） */
    body.rbar-on:has(#tab-read:not([hidden]):not(.lib-open)) { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
    .head-menu nav { display: none; }
    .gold-toast, .secret-toast { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  }
  /* スマホの読む画面の上を 1 行に（2026-11-16 持ち主 C6 案 A）：▶ Whole story・速さ ▾・⚙。Test yourself・Reading options・How to read は ⚙ のシート */
  .dp-s, .rd-speed-sel, .rd-gear { display: none; }
  @media (max-width: 720px) {
    #tab-read .dp-l { display: none; } #tab-read .dp-s { display: inline; }
    #tab-read .controls { flex-wrap: nowrap; gap: 6px; }
    #tab-read .controls .demo { flex: 0 0 auto; }
    #tab-read #demo-seek, #tab-read #demo-time, #tab-read .rd-speed > .label, #tab-read .rd-speed > .seg { display: none; }
    #tab-read .rd-speed-sel { display: inline-block; font: inherit; font-size: 14px; min-height: 40px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
    #tab-read .rd-gear { display: inline-flex; min-width: 44px; min-height: 40px; justify-content: center; font-size: 17px; margin-left: auto; }
    #tab-read .controls > details.rd-pop { display: none; }   /* details を付けて強く：下の「#tab-read .controls .rd-pop { display: block }」が後ろにあって勝っていた（round 193 で直した。スマホで画面が横に広がっていた） */
  }
  @media (max-width: 340px) {   /* とても細い画面（320px）：「Play the whole story」で 1 行に収まるように（2026-11-16 ChatGPT の言葉に合わせた） */
    #tab-read .controls #demo-play.btn { padding-left: 7px; padding-right: 7px; }
  }
  .rd-sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 85vh; border-radius: 16px 16px 0 0; background: var(--panel); color: var(--ink); box-shadow: 0 -6px 24px rgb(0 0 0 / .18); }
  .rd-sheet::backdrop { background: rgb(0 0 0 / .28); }
  .rd-sheet-in { padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0px)); overflow: auto; max-height: 85vh; }
  .rd-sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 2px auto 10px; }
  .rd-sheet details { display: block; margin: 0 0 10px; }
  .rd-sheet details > summary { font-weight: 700; padding: 6px 0; }
  /* ⚙ の板の Test yourself と Reading options は同じ幅（板いっぱい）に（2026-11-17 持ち主「長さは合わせたほうがいいんじゃない？」） */
  .rd-sheet .rd-pop:not(.howto) > summary { display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box; padding: 8px 12px; }
  .rd-sheet .rd-pop:not(.howto) > summary::after { margin-left: auto; }
  .rd-sheet .rd-pop[open] > .rd-pop-body { position: static; display: flex; flex-wrap: wrap; box-shadow: none; border: 0; padding: 4px 0 8px; max-width: none; width: auto; }
  .rd-sheet-acts { text-align: right; margin: 6px 0 0; }
  /* クイズの細い進み具合の棒（2026-11-16 C4） */
  .qz-bar { display: block; height: 3px; border-radius: 2px; background: var(--line); margin: 4px 0 2px; overflow: hidden; }
  .qz-bar i { display: block; height: 100%; width: 0; background: var(--word); transition: width .3s; }
  @media (prefers-reduced-motion: reduce) { .qz-bar i { transition: none; } }
  /* 覚えた語の一覧（Progress の Words you've marked。2026-11-16 C2-A） */
  .pg-marked { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
  .pg-marked li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 4px 0; }
  .pg-marked .pg-mk-w { font-weight: 600; } .pg-marked .linkish { margin-left: auto; }
  .hb-note.hb-anki { font-size: 13px; }
  /* 物語の助詞の札（2026-11-16。決まり：プロジェクト「決めたこと：物語の助詞の札」）：緑の枠・かっこなし・細く（余白 3px・字 12px）。
     には・では は二段（上に に・で、下に は。二段のときだけ 11px） */
  .c-ja .ilg.fuda { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 0; color: var(--word-t, var(--word)); }
  .c-ja .ilg.fuda .fd { font-size: 12px; line-height: 1.25; padding: 0 3px; border: 1px solid color-mix(in srgb, var(--word) 55%, transparent); border-radius: 6px; white-space: nowrap; }
  .c-ja .ilg.fuda.two .fd { font-size: 11px; }
  /* No hints：英語の行を詰める（Meanings off と同じ display: none。2026-11-19 持ち主：学習者役 leo-17 札の場所に隙間が残った）。押した語（peek）だけ出す */
  #text.no-hints .c-ja:not(.peek) .ilg { display: none; }
  #text.no-hints .c-ja.peek .ilg { color: var(--hl); }
  #text.no-hints .en-line.veil { display: none; }   /* EN で開いた文の英訳は No hints でも出す（押した色になるのに出なかった・オチの答えのあとも：学習者役 9 回目 jo-2） */
  .c-ja .ilg .tk.learned { color: var(--learned); background: var(--learned-f); border-radius: 3px; }
  .c-ja .ilg .tk.some { text-decoration: underline 2px var(--learned-line); text-underline-offset: 3px; }
  .c-ja .ilg .tk.subj { color: var(--gloss); font-style: italic; }   /* 2026-11-03 講評：(they) は不透明度 .75 で 2:1 だった。薄くせず斜体で控えめに */
  .s-particle { color: var(--muted); background: none; padding: 1px 1px; }
  /* かかり受け：説明する語の右に 線＋●、説明される語の左に 受け（ↄ）。どちらも文字の行（.jt）の上下の真ん中にそろえる。
     すぐ隣なら ● が受けに収まる（間の空白をなくし、余白で位置を合わせる） */
  /* 塊の字の行は高さを固定（46px＝ピースの高さ）。ルビや字体で行が伸びて、上の対訳や枠の高さがずれないように */
  .c-en .jt, .c-ja .jt { display: inline-block; height: 46px; line-height: 46px; position: relative; vertical-align: bottom; }
  /* ピースと同じ決まり：漢字の上にふりがな、下に発音（ひらがなだけの語・助詞にも）。高さはピースと同じ 46px */
  .c-ja .jt { height: 46px; line-height: 46px; box-sizing: border-box; }
  /* 2026-11-03 講評：動詞・形容詞の塊（.jt 直下の .pc）は外の字の大きさを継ぎ、オチの問いなど（15.9px）では隣の語（.jw-ja は 20px）より小さかった（kagiru・tabe·ta）。
     いつも 20px に（箱は字に合わせて広がる） */
  .c-ja .jt { font-size: 20px; }
  .c-ja .jt:not(:has(svg)) { top: var(--ja-shift, 0px); }   /* 字体の差を read.js の alignJa が測って直す */
  .jw { display: inline-flex; flex-direction: column; align-items: center; vertical-align: top; height: 46px; line-height: 1; }
  .jw-ja { margin-top: 13px; font-size: 20px; line-height: 1; white-space: nowrap; }
  .jw-ja .rb { position: relative; display: inline-block; }
  .jw-ja .rt { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: -2px; font-size: 9.5px; line-height: 1; color: var(--muted); font-weight: 400; white-space: nowrap; }
  /* 下の読み（romaji・say it・かな）は 46px の字の行から少しはみ出す：その分、行の下をあける（2026-11-06 講評12 B2：スマホで次の行の英語と重なった） */
  #text[data-under]:not([data-under="none"]) .line .c-ja .jt { margin-bottom: 9px; }   /* romaji の本文でも下にかなを出すとき（say it）は場所をとる（2026-11-07 初心者の講評：次の行の英語と重なった） */
  .jw-say { margin-top: 7px; font-family: var(--font-en); font-size: 11px; line-height: 1; color: var(--muted); white-space: nowrap; }
  .c-ja .jt:has(svg) { line-height: 0; }
  .c-ja .jt svg.chain.inline { height: 46px; vertical-align: top; max-width: 100%; }   /* 長い鎖はスマホの幅に合わせて縮める（はみ出さない） */
  .m-src { margin-right: 18px; }
  .m-src.near { margin-right: 0; }
  .m-src > .jt::before { content: ""; position: absolute; left: calc(100% + 3px); top: 50%; width: 7px; border-top: 1.5px solid var(--word); }
  .m-src > .jt::after { content: ""; position: absolute; left: calc(100% + 8px); top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--word); }
  .m-tgt { margin-left: 14px; }
  .m-tgt > .jt::before { content: ""; position: absolute; left: -16px; top: calc(50% - 6px); width: 12px; height: 12px; box-sizing: border-box;
                         border: 1.5px solid var(--word); border-left-color: transparent; border-radius: 50%; }
  /* 離れた語にかかるときも、受けには ● をはめておく（どの受けにも ● が入っている） */
  .m-tgt:not(.near) > .jt::after { content: ""; position: absolute; left: -14px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--word); }
  /* すぐ隣にかかるとき：線と ● は受ける語の側で描く（受けと同じ要素なので、字体が変わってもずれない） */
  .m-src.near > .jt::before, .m-src.near > .jt::after { display: none; }
  .m-tgt.near > .jt::after { content: ""; position: absolute; left: -22px; top: calc(50% - 4px); width: 16px; height: 8px;
    background: radial-gradient(circle at 12px 4px, var(--word) 3.6px, transparent 4.2px),
                linear-gradient(var(--word), var(--word)) 0 3.25px / 10px 1.5px no-repeat; }
  /* 乗せたとき：かかり先までうっすら線を引き、かかる先の語に薄い下線（さりげなく） */
  .text { position: relative; }
  svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
  svg.links path { fill: none; stroke: var(--word); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .55; }
  .m-on > .jt { text-decoration: underline 1.5px color-mix(in srgb, var(--word) 55%, transparent); text-underline-offset: 5px; }
  @media (prefers-reduced-motion: no-preference) { svg.links path { animation: draw .25s ease-out; } }
  @keyframes draw { from { opacity: 0; } to { opacity: .55; } }
  .c-part { color: var(--muted); }
  .c-ja.open { outline: 2px solid var(--line); }
  /* 本文の語：箱をやめ、日本語の下に色の線（緑＝新しい・茶＝覚えた）。2026-11-05 講評11 mock-13 案A：
     どの語も淡い箱で、箱の幅が上の英語に引っぱられ、文が表に見えた。押した語（open）・指を乗せた語・キーボードで選んだ語は今までどおり箱 */
  :is(#text, .tf-card) .c-ja:is(.s-picked, .s-learned):not(.open, :focus-visible) { background: none; }
  /* 線は字のすぐ下（箱の下から 7px 上）。2026-11-05 講評11b：箱の底に引くと字から離れ、次の行の英語に近くて、どの語の線か迷った */
  :is(#text, .tf-card) .c-ja.s-picked:not(.open, :focus-visible) .jt { --st-line: color-mix(in srgb, var(--word) 55%, transparent); }
  :is(#text, .tf-card) .c-ja.s-learned:not(.open, :focus-visible) .jt { --st-line: var(--learned-line); }
  :is(#text, .tf-card) .c-ja.s-partial:not(.open, :focus-visible) .jt { --st-line: color-mix(in srgb, var(--word) 55%, transparent); }   /* 一部だけ覚えた動詞も、点線は緑（2026-11-05 UI 確認：紫のまま残っていた） */
  :is(#text, .tf-card) .c-ja:is(.s-picked, .s-learned):not(.open, :focus-visible, [data-chain]) .jt { background: linear-gradient(var(--st-line), var(--st-line)) 0 calc(100% - 7px) / 100% 2px no-repeat; }
  /* 動詞・形容詞（点線のある塊）：線を2本引かない。点線をその語の色に（緑・茶）。点線は「押すとピースに分かれる」の印のまま */
  :is(#text, .tf-card) .c-ja[data-chain]:is(.s-picked, .s-learned, .s-partial):not(.open, :focus-visible):not(:has(svg)) .pc { text-decoration-color: var(--st-line); }
  /* 指を乗せた語の箱は、マウスのある端末だけ（2026-11-05 講評11b：スマホでは :hover が指の位置に残り、箱を閉じたあとも語に箱が残った） */
  @media (hover: hover) {
    .c-ja:hover { outline: 2px solid var(--line); }
    :is(#text, .tf-card) .c-ja.s-picked:hover { background: var(--word-f); }
    :is(#text, .tf-card) .c-ja.s-learned:hover { background: var(--learned-f); }
    :is(#text, .tf-card) .c-ja:is(.s-picked, .s-learned):hover .jt { background: none; }
  }
  /* 読み上げ中の語の印（C-77。2026-11-25 持ち主 D-85「B＋その語の字を濃く」）：鳴っている間だけ、灰色の地とその語の字をいちばん濃い色に。
     新しい色は足さない（C-42。前の橙の下線は覚えた語の茶色とまぎれた）。読む画面と Home の一文で同じ（Home の止めた一文は塊ごとの data-ci） */
  .qz-step-i { min-width: 24px; min-height: 24px; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; vertical-align: baseline; }
  .qz-step-note { display: block; margin-top: 4px; }
  .qz-step-note[hidden] { display: none; }
  .speaking { box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--ink) 13%, transparent) !important; border-radius: 6px; }
  /* ダークは地との差が薄かったので 22%（明るい表示は 13% のまま。持ち主 11-26 D-89 案 A。学習者役 13 回目 xia-7・kim9-15） */
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .speaking { box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--ink) 22%, transparent) !important; } }
  :root[data-theme="dark"] .speaking { box-shadow: inset 0 0 0 999px color-mix(in srgb, var(--ink) 22%, transparent) !important; }
  .speaking :is(.jt, .jt *), [data-ci].speaking, [data-ci].speaking * { color: var(--ink) !important; }
  svg.chain.inline { display: inline-block; height: 2.3em; width: auto; vertical-align: middle; }
  .punct { font-family: var(--font-ja); }
  .with-open, .with-punct { white-space: nowrap; }
  .ja-nb { white-space: nowrap; }   /* 説明文・例文の語と句読点・かぎかっこ（ui/views.js の withPunct）。行の頭に 」。 が来ないように */
  .with-punct > .punct { cursor: pointer; position: relative; }   /* 押すと前の語を開く（read.js） */
  /* 押せる範囲だけ広げる（見た目の間は同じ）。右は次の語にかからないよう少しだけ（2026-11-05 UI 確認：18×20px は小さかった） */
  .with-punct > .punct::after { content: ""; position: absolute; top: -12px; bottom: -12px; left: -6px; right: -3px; }
  @media (hover: none) { .kb-only { display: none !important; } }
  .legend kbd { font: 600 12px/1 var(--font-en); padding: 2px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--panel); }
  /* つながる語（m-src.near → m-tgt.near）が行をまたいだら、行の頭の「-●」は出さない（read.js の markWrapped。2026-11-02 講評） */
  .m-tgt.near.wrapped > .jt::before, .m-tgt.near.wrapped > .jt::after { display: none; }   /* 「 と次の語を同じ行に（並び方はふつうの行のまま） */
  /* 語のカードの ✕（2026-11-08 持ち主：rdm-card.png。外を押す・Esc でも閉じる） */
  #tip .t-close { position: absolute; top: 4px; right: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
  #tip .t-close:hover { background: var(--soft); color: var(--ink); }
  #tip .t-ja { padding-right: 40px; }
  .tip { position: fixed; z-index: 20; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
         padding: 12px 14px; width: min(320px, calc(100vw - 16px)); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; overscroll-behavior: contain; }   /* 入りきらないときは中を巻き取る（read.js の placeTip が max-height を決める） */
  /* スマホ：画面の下に出すカード（read.js placeTip。2026-11-08 持ち主 案C） */
  .tip.sheet { left: 8px; right: 8px; top: auto; width: auto; box-shadow: 0 -6px 24px rgb(0 0 0 / .18); }
  /* かなの行をたたむ・読めるかなは緑（✓ は Mark learned だけ） */
  #tip .t-kana-fold > summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 40px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; list-style: none; font-size: 14px; }
  #tip .t-kana-fold > summary::-webkit-details-marker { display: none; }
  #tip .t-kana-fold > summary::after { content: "▸"; margin-left: auto; color: var(--muted); }
  #tip .t-kana-fold[open] > summary::after { content: "▾"; }
  #tip .t-kana-fold > summary .ja { font-size: 17px; color: var(--word); }
  #tip .t-kana .kana-cell.on { border-width: 2px; border-color: var(--word); background: color-mix(in srgb, var(--word) 14%, var(--panel)); color: var(--word); }
  #tip .t-kana .kana-cell.on::after { display: none; }
  .t-ja { font-size: 26px; line-height: 1.8; color: var(--word-t); text-wrap: balance; }   /* 長い語で 1 字だけ次の行へ落ちた（見つかるようになっ／た：学習者役 8 回目 finn-14） */
  .t-ja .pc.learned { color: var(--learned); }
  .t-ja rt { font-size: 11px; color: var(--muted); }
  .pg-dict rt { font-size: 11px; color: var(--muted); font-weight: 400; }
  .pf rt { font-size: 9.5px; color: var(--muted); line-height: 1; }
  .t-roman { color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
  .t-roman .say b { color: var(--ink); font-weight: 600; }
  #reading { margin-left: 0; }
  .t-en { font-size: 15px; }
  .t-units { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
  .t-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
  .t-learn.t-main { font-size: 13.5px; padding: 5px 12px; border-radius: 8px; font-weight: 600; }
  .t-learn.t-sub { font-size: 12.5px; padding: 4px 10px; border-radius: 8px; }   /* 動詞のカード：主は Build it、Mark learned は枠だけで控えめに（2026-11-05 講評11） */
  .t-acts .btn { font-size: 13.5px; padding: 5px 12px; }
  .t-more { margin-top: 8px; font-size: 13.5px; }
  .t-more > summary { cursor: pointer; color: var(--muted); display: inline-block; list-style: none; text-decoration: underline dotted; padding: 3px 0; }   /* 押す所は 24px 以上（C-33） */
  .t-more > summary::-webkit-details-marker { display: none; }
  .t-more > summary::after { content: " ▾"; }
  .t-more[open] > summary::after { content: " ▴"; }
  .t-more[open] > summary { margin-bottom: 6px; }
  .t-more .t-units { border-top: 0; padding-top: 0; }
  .t-more-h { margin: 0 0 4px; }
  .t-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
  /* 指（pointer: coarse）では押せる高さ 44px（C-33）が上下のリンクと重なり、上の「Show the pieces」を押すと下の「Open in Build」になった
     （2026-11-19 学習者役 nana-1）。行の間を 44px にして重ならないように（見た目の字は同じ） */
  @media (pointer: coarse) { .t-links { gap: 26px; padding-top: 18px; } }
  .t-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 14px; }
  .t-row.t-row-one { grid-template-columns: 1fr; }
  .t-row small { color: var(--muted); word-break: keep-all; }   /* かなの辞書形を途中で折らない（く／る。2026-11-07） */
  .t-learn { border: 1px solid var(--learned); background: var(--panel); color: var(--learned); border-radius: 6px; padding: 2px 8px; font-size: 12px; }
  .t-learn.on { background: var(--learned); color: var(--panel); }
  .t-learn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
  /* 動詞・形容詞の部品の札（押した札だけ覚えた。D-98 の ①・W-tip-5）：かなの札と同じ形。覚えた札は茶色 */
  .t-pcs-h { margin: 8px 0 4px; font-size: 12.5px; }
  .t-pcs { display: flex; flex-wrap: wrap; gap: 6px; }
  #tip .t-pc { display: inline-flex; flex-direction: column; align-items: center; min-width: 44px; min-height: 44px; padding: 3px 8px; border: 1px dashed var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 16px; line-height: 1.25; }
  #tip .t-pc small { font: 12px/1.2 var(--font-en); color: var(--muted); }   /* 12px 以上（C-34） */
  #tip .t-pc.on { border: 1px solid var(--learned-line); background: var(--learned-f); color: var(--learned); }
  #tip .t-pc.on small { color: var(--learned); }
  #tip .t-pc.gold { border: 1px solid var(--gold); color: var(--ink); }   /* 琥珀の枠に同じ琥珀の輪が重なり見分けにくかった（学習者役 13 回目 kim9-11。C-32） */
  .t-review { font-size: 12px; color: var(--muted); margin-right: 6px; white-space: nowrap; }
  .err { color: var(--danger); padding: 8px 18px; font-size: 14px; }
  /* 活用クイズ */
  .qz { display: flex; flex-direction: column; gap: 12px; }
  .qz-head { display: flex; justify-content: space-between; align-items: baseline; }
  .qz-goal { font-size: 24px; font-weight: 600; }
  .qz-goal:focus { outline: none; }   /* 次の問題で読み上げのために focus するだけ。枠は出さない */
  .qz-alt { font-size: 14px; color: var(--muted); margin-top: -4px; }
  .qz-usage { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
  .qz-board { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; min-height: 76px; }
  .qz-gap { display: inline-block; }
  .qz-right { display: flex; flex-direction: column; gap: 4px; width: 100%; }
  .qz-mark { font-size: 26px; font-weight: 700; }
  .qz-mark.ok { color: var(--word); } .qz-mark.no { color: var(--danger); }
  .qz-choices { display: flex; flex-wrap: wrap; gap: 10px 12px; }
  .qz-choice { border: 0; background: none; padding: 2px; border-radius: 8px; }
  /* 順番に並べるクイズ（order-ui.js。2026-11-04 mock-12 の 3・4）。色は今のトークンだけ */
  .qz-ord, .qz-ord .ord-body { display: flex; flex-direction: column; gap: 12px; }
  .qz-ord[hidden], .qz-ord-none[hidden] { display: none; }
  .qz-ord .qz-head { gap: 4px 10px; flex-wrap: wrap; }
  /* スマホ：点数の行の高さをはじめから取っておく（2026-11-05 UI 確認：終わった瞬間に点数が折り返して、鎖が 23px 下がった） */
  .qz-ord .qz-head { min-height: 1.5em; align-items: center; }   /* 見出しの行の高さを先に取る（点数が出ても鎖が動かない。2026-11-05 UI 確認） */
  .qz-ord .qz-head .score { min-height: 1.5em; }
  @media (max-width: 520px) { .qz-ord .qz-head { flex-direction: column; align-items: flex-start; } }
  .ord-new { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--word-f); color: var(--word-t); font-size: 14px; }
  .ord-i { flex: none; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: italic 700 13px/1 Georgia, serif; cursor: pointer; }
  .ord-i:hover { color: var(--ink); border-color: var(--muted); }
  .ord-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 56px; min-width: 0; }
  .ord-chain { position: relative; display: inline-block; max-width: 100%; min-width: 0; }
  .ord-slots.done { flex-wrap: nowrap; }   /* できた鎖と ✓ は一行に（狭い画面では鎖のほうが少し縮む） */
  .ord-slots.done .ord-chain { flex: 0 1 auto; }
  .ord-slots.done .qz-mark { flex: none; }
  .ord-chain svg { display: block; max-width: 100%; height: auto; }
  .ord-placed { position: absolute; top: 0; bottom: 0; border: 0; padding: 0; background: none; border-radius: 6px; cursor: pointer; }
  .ord-placed:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .ord-placed:focus-visible { outline: 2px solid var(--word); outline-offset: 1px; }
  .ord-slot { display: inline-block; }
  .ord-undo[hidden], .ord-tray[hidden] { display: none; }
  .ord-tray { display: flex; flex-wrap: wrap; gap: 8px 10px; padding: 10px; border-radius: 10px; background: var(--soft); min-width: 0; }
  .ord-piece { border: 0; background: none; padding: 2px; border-radius: 8px; max-width: 100%; cursor: pointer; }
  .ord-piece svg { display: block; max-width: 100%; height: auto; }
  .ord-piece:hover:not([disabled]) { background: var(--panel); }
  .ord-piece.used { opacity: .18; cursor: default; }
  .ord-piece.bad path.body { stroke: var(--danger); stroke-dasharray: 4 3; }
  .ord-why .hint { font-size: inherit; }
  .ord-tray.kf-on ~ .why .kf-now { display: none; }
  .qz-ord-none p { color: var(--ink); }
  /* ひらがなの練習（kana-ui.js） */
  /* かなの練習の進み具合（kana-ui.js progressHtml・summaryHtml。2026-10-28） */
  .kana-prog { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
  .kp-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 2px; }
  .kp-cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 38px; padding: 3px 6px; border-radius: 8px; border: 1px solid var(--line); font-size: 20px; line-height: 1.2; }
  .kp-cell.now { border-color: var(--word); box-shadow: 0 0 0 2px var(--word-f); }
  .kp-cell.got { background: var(--word-f); }
  .kp-dots { font-size: 12px; letter-spacing: 2px; color: var(--word); }
  /* 助詞の は・へ（は@p・へ@p）：字の下に小さく「particle」（字の は と見分ける。2026-11-08） */
  .kana-u { display: inline-flex; flex-direction: column; align-items: center; vertical-align: top; line-height: 1.1; }   /* 字と札で一つ（文の中でも割れない。UIUX） */
  .kana-pmark { display: block; margin-top: 1px; font: 600 12px/1.2 var(--font-en, system-ui); letter-spacing: 0; color: var(--word); }
  .kana-sum .kana-u, .kana-fb .kana-u { display: inline; }   /* 文の中（Next up・物語の一言）は横に「は particle」 */
  .kana-sum .kana-pmark, .kana-fb .kana-pmark, .hint .kana-pmark { display: inline; margin: 0 2px 0 3px; }   /* Next up の行でも字と離す（はparticle と詰まった：学習者役 11 回目 pablo-18） */
  .kana-prog.has-p .kp-cell { min-height: 57px; justify-content: flex-end; }   /* 札のある字と高さをそろえる */
  .kp-count { margin-left: auto; font-size: 13px; color: var(--muted); }
  .kana-sum { text-align: center; padding: 18px 8px; }
  .kana-sum h3 { margin: 0 0 6px; }
  .kana-sum-big { font-size: 40px; font-weight: 800; margin: 4px 0; color: var(--word); }
  .kana-sum-big small { font-size: 16px; font-weight: 600; color: var(--muted); }
  .kana-sum-ch { font-size: 24px; font-weight: 700; }
  .kana-sum .row-acts { justify-content: center; }
  /* 答えたあと（2026-10-28）：書き順は大きな字のすぐ横（同じ字の説明は同じ場所に）、Next は答え合わせの帯の右（目が今いる所） */
  .kana-top { display: flex; align-items: center; justify-content: center; gap: 18px 28px; flex-wrap: wrap; margin-bottom: 12px; }
  .kana-side { display: flex; flex-direction: column; align-items: center; }
  .kana-side .label { margin: 0 0 2px; }
  .kana-side .kana-strokes { margin: 0; flex-direction: column; align-items: center; }
  .kana-side .kana-stroke { width: 84px; height: 84px; }
  .kana-fb { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
  .kana-fb[hidden] { display: none; }
  .kana-fb > p { flex: 1 1 240px; margin: 0; }
  .kana-fb .kana-next { flex: 0 0 auto; margin-left: auto; }
  .kana-card .kana-big { font-family: var(--font-ja); font-size: 72px; line-height: 1.1; text-align: center; margin: 10px 0 14px; color: var(--ink); }
  /* 初めての字（2026-11-24 持ち主 D-55 ②）：見せて音を聞かせるだけのカード */
  .kana-study { margin: 10px 0 8px; padding: 14px 16px 12px; border-radius: 14px; background: var(--gold-f); border: 2px solid var(--gold-glow); text-align: center; }
  .kana-study .kana-new { font: 700 12px var(--font-en, system-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
  .kana-study .kana-big { margin: 2px 0 0; }
  .kana-study-r { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
  .kana-study-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 0 0 6px; }
  .kana-study .hint { margin: 0; }
  /* 助詞として問う（2026-11-08 持ち主）：字の上に札 */
  .kana-ptag { display: block; width: fit-content; margin: 0 auto 4px; padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, var(--word) 12%, var(--panel)); color: var(--word); font: 700 15px var(--font-en, system-ui); line-height: 1.6; }
  .kana-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 6px 0 4px; }
  /* 選択肢はボタンらしく（枠を太く・影・押せる色）。答える前は「= ?」の空欄と「Which sound is it? Tap one ↓」（2026-10-26） */
  .kana-choice { font-size: 20px; font-weight: 600; padding: 12px 0; border: 2px solid color-mix(in srgb, var(--word) 45%, var(--line)); border-radius: 10px;
    background: var(--panel); color: var(--ink); box-shadow: 0 2px 0 color-mix(in srgb, var(--word) 30%, transparent); cursor: pointer; transition: transform .08s; }
  @media (hover: hover) { .kana-choice:hover:not([disabled]) { background: var(--word-f); border-color: var(--word); transform: translateY(-1px); } }   /* 2026-11-08 UIUX H4：タッチではホバーの色が残り、選んだように見えた */
  .kana-choice[disabled]:not(.right):not(.wrong) { opacity: .45; box-shadow: none; }
  .kana-choice:active:not([disabled]) { transform: translateY(1px); box-shadow: none; }
  .kana-eq { font-family: inherit; font-size: 36px; color: var(--muted); margin-left: 14px; vertical-align: middle; }
  .kana-blank { display: inline-block; min-width: 1.6em; padding: 0 6px; border: 2px dashed var(--muted); border-radius: 8px; text-align: center; color: var(--muted); }
  .kana-ask { margin: 0 0 4px; }
  .kana-know { margin-top: 14px; }
  .kana-know > summary { cursor: pointer; width: fit-content; font-size: 13.5px; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
  .kana-choice.right { border-color: var(--learned); background: var(--learned-f); }
  .kana-choice.wrong { border-color: var(--danger); }
  .kana-grid { display: grid; grid-template-columns: repeat(auto-fill, 56px); grid-auto-rows: 1fr; gap: 6px; margin-top: 14px; }   /* 枠の大きさをそろえる（札のある字だけ大きかった。UIUX 2026-11-08） */
  .kana-grid .kana-cell { min-height: 48px; justify-content: center; }
  .kana-cell { display: inline-flex; flex-direction: column; align-items: center; min-width: 40px; padding: 4px 6px; border: 1px dashed var(--line); border-radius: 7px; background: none; color: var(--muted); font-family: var(--font-ja); font-size: 20px; line-height: 1.1; }
  .kana-cell small { font-family: var(--font-en); font-size: 12px; }
  .kana-cell.on { border-style: solid; border-color: var(--learned-line); background: var(--learned-f); color: var(--ink); }
  .kana-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 14px; }
  .kana-all-msg { color: var(--word-t); font-weight: 600; background: var(--word-f); border-radius: 8px; padding: 4px 10px; }
  .c-ja .jw-ja.kana-swap { font-family: var(--font-ja); }
  .gold-toast.kana-toast { border-color: var(--line); }
  .kana-says { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -6px 0 12px; }
  .kana-say { font-size: 15px; padding: 4px 14px; color: var(--ink); }
  .kana-say small { color: var(--muted); }
  .kana-strokes { display: flex; align-items: flex-end; gap: 4px; margin: 4px 0 8px; }
  .kana-stroke { width: 110px; height: 110px; border: 1px dashed var(--line); border-radius: 8px; background: var(--panel); }
  .kana-stroke + .kana-stroke { width: 70px; height: 70px; }   /* きゃ の小さい ゃ */
  .kana-stroke path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
  .kana-stroke path.g { stroke: var(--line); }
  .kana-stroke path.s { stroke: var(--ink); }
  .kana-strokes .linkish { margin-left: 8px; font-size: 13px; }
  .kana-credit { margin: 10px 0 0; font-size: 12px; }
  .kana-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }   /* 2026-11-03 講評：ブラウザの青のままだった。ほかのリンク（.linkish）にそろえる */
  .kana-credit a:hover { color: var(--ink); }
  .kana-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
  .kana-tab { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 3px 12px; font-size: 13px; color: var(--muted); }
  .kana-tab.on { background: var(--soft); color: var(--ink); border-color: var(--muted); }
  .kana-tab small { opacity: .75; }
  .kana-toast-big { font-family: var(--font-ja); font-size: 40px; line-height: 1; color: var(--ink); }
  .kana-cell { position: relative; }
  .kana-cell.on::after { content: "✓"; position: absolute; top: -6px; right: -5px; font: 700 11px/16px var(--font-en); width: 16px; height: 16px; border-radius: 50%;
    background: var(--learned-line); color: var(--panel); text-align: center; }
  #tip .t-kana-msg, .kana-grid-msg { margin: 2px 0 0; font-size: 12.5px; }
  .kana-grid-msg { margin-top: 14px; }
  .kana-grid { margin-top: 6px !important; }
  #tip .t-kana { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin: 6px 0 2px; }
  #tip .t-kana .kana-cell { min-width: 32px; font-size: 17px; padding: 2px 5px; }
  #tip .t-kana .linkish { margin-left: 4px; font-size: 13px; }
  @media (hover: hover) { .qz-choice:hover:not([disabled]) { background: var(--soft); } }   /* 2026-11-08 UIUX H4：タッチではホバーの色が残り、選んだように見えた */
  .qz-choice.done { opacity: .55; }
  /* 答えるときにピースが空欄へ動く・はじめての手本（ui/fly.js） */
  /* はじめの一問の一言・手本の説明（ピースの横）・光る受け口・やさしくした問題（2026-10-27） */
  .qz-intro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 10px; padding: 10px 14px; border-radius: 10px;
    background: var(--word-f); border-left: 3px solid var(--word); font-size: 15px; animation: welcome-in .35s ease-out; }
  .qz-intro[hidden] { display: none; }
  .qz-intro > span { flex: 1 1 220px; }
  .fly-cap { position: fixed; z-index: 59; pointer-events: none; padding: 5px 10px; border-radius: 8px; background: var(--word-t); color: var(--panel);
    font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px #0004; animation: welcome-in .25s ease-out; }
  .fly-glow { animation: fly-glow 1.2s ease-in-out infinite; border-radius: 6px; }
  @keyframes fly-glow { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 6px var(--word)) drop-shadow(0 0 2px var(--word)); } }
  @media (prefers-reduced-motion: reduce) { .fly-glow { animation: none; filter: drop-shadow(0 0 4px var(--word)); } }
  .qz-choice.faded { opacity: .28; filter: grayscale(1); cursor: not-allowed; }
  .qz-tip { display: block; margin-top: 6px; color: var(--ink); }
  .fly-piece { filter: drop-shadow(0 6px 10px #0003); }
  .fly-piece.fly-no { filter: drop-shadow(0 0 4px var(--danger)) drop-shadow(0 0 2px var(--danger)); }
  .fly-piece.fly-ok { filter: drop-shadow(0 0 4px var(--word)); }
  /* 手本のあいだの選択肢：押せないと分かる形（薄く・点線・白黒寄り）。押すと .demo-watch が揺れる（ui/fly.js）。動くピースは複製なので色のまま */
  .qz-choices.demo { cursor: default; }
  .qz-choices.demo .qz-choice { pointer-events: none; opacity: .4; filter: grayscale(.6); transition: opacity .2s; }
  .qz-choices.demo .qz-choice svg :is(path, rect, polygon) { stroke-dasharray: 5 3; }
  .demo-watch { display: inline-block; }
  .demo-shake { animation: demo-shake .4s ease-in-out; }
  @keyframes demo-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
  @media (prefers-reduced-motion: reduce) { .demo-shake { animation: none; text-decoration: underline; } }
  /* 答えた瞬間の印（ui/fly.js markAt）と、一歩ずつの手本（stepCap） */
  .fly-mark { position: fixed; z-index: 60; pointer-events: none; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; white-space: nowrap;
    color: var(--panel); box-shadow: 0 3px 10px #0003; animation: mark-in .18s ease-out; }
  .fly-mark.no { background: var(--danger); }
  .fly-mark.on-piece { padding: 1px 8px; font-size: 12px; }   /* ピースの上の縁にのせる小さな札（ui/fly.js markAt。2026-11-03 講評 案B） */
  .fly-mark.ok { background: var(--word); }
  @keyframes mark-in { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
  .fly-cap.fly-step { pointer-events: auto; white-space: normal; max-width: min(420px, calc(100vw - 16px)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 10px; z-index: 1001; }
  .fly-step .fs-b { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
  .fs-btn { font: inherit; font-size: 13px; padding: 3px 9px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--panel) 50%, transparent); background: transparent; color: var(--panel); cursor: pointer; }
  .fs-btn.fs-next { background: var(--panel); color: var(--ink); border-color: var(--panel); }
  .fs-btn:disabled { opacity: .35; cursor: default; }
  /* 動いている間はボタンを隠し（場所は取っておく）、動き終わったら現れる。Next は少し大きく、3回だけ脈打つ（2026-10-31 ユーザー：Next に気づかない） */
  .fly-step:not(.on) .fs-b { visibility: hidden; }
  .fly-step.on .fs-b { animation: fs-in .22s ease-out; }
  .fs-btn.fs-next { font-size: 14px; font-weight: 700; padding: 5px 13px; }
  .fly-step.on .fs-next { animation: fs-pulse 1s ease-in-out .25s 3; }
  @keyframes fs-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  @keyframes fs-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--panel) 70%, transparent); transform: scale(1); }
                        50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--panel) 0%, transparent); transform: scale(1.06); } }
  @media (prefers-reduced-motion: reduce) { .fly-step.on .fs-b, .fly-step.on .fs-next { animation: none; } .fly-step.on .fs-next { outline: 3px solid var(--logo-maru); outline-offset: 2px; } }
  .fs-n { font-size: 12px; opacity: .7; font-weight: 500; }
  /* 手本を見ないまま止まっている人に ▶ Show me を数回だけ脈打たせる（quiz-ui.js armNudge。2026-10-31） */
  .qz-showme.qz-nudge { animation: qz-nudge 1.1s ease-in-out 3; }
  @keyframes qz-nudge { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--word) 55%, transparent); transform: scale(1); }
                        50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--word) 0%, transparent); transform: scale(1.06); } }
  @media (prefers-reduced-motion: reduce) { .qz-showme.qz-nudge { animation: none; outline: 3px solid var(--logo-maru); outline-offset: 2px; } }
  /* 2026-11-03 講評（案A）：正解＝緑の枠＋✓、選んで外れ＝赤いピース＋✗、外れたあとに示す正解＝点線＋「Answer ✓」。茶色（--learned）は「覚えた語」だけ。
     札の字は --panel（ライトでは白、ダークでは濃い色）：ダークの明るい赤・緑の上でも読める */
  .qz-choice.wrong, .qz-choice.right { position: relative; }
  .qz-choice.wrong::after, .qz-choice.right::after { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; border-radius: 999px; color: var(--panel); font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; box-sizing: border-box; }
  .qz-choice.wrong::after { content: "✗"; background: var(--danger); }
  .qz-choice.wrong { outline: 2px solid var(--danger); }
  .qz-choice.right { outline: 2px solid var(--word); }
  .qz-choice.right::after { content: "✓"; background: var(--word); }
  .qz-choice.right.reveal { outline: 2px dashed var(--word); outline-offset: 1px; }
  .qz-choice.right.reveal::after { content: "Correct ✓"; padding: 0 6px; font-size: 12px; white-space: nowrap; }
  .p-wrong path.cell { fill: color-mix(in srgb, var(--danger) 24%, var(--panel)); stroke: var(--danger); }
  .p-wrong path.cell-seam, .p-wrong path.cell-line { stroke: var(--danger); }
  /* 答えたあとの説明（quiz-ui.js whyHtml）：1行と「Why? ▾」 */
  .qz-line { font-weight: 500; }
  .qz-line.is-miss > b:first-child { color: var(--danger); }
  .qz-why-t { font-size: 13px; margin-left: 4px; white-space: nowrap; }
  .qz-detail { display: block; margin-top: 8px; }
  .qz-detail[hidden] { display: none; }
  .p-blank path.body { fill: var(--soft); stroke: var(--muted); stroke-dasharray: 4 3; }
  .p-blank text { fill: var(--muted); }
  .p-wrong path.body { fill: color-mix(in srgb, var(--danger) 13%, var(--panel)); stroke: var(--danger); }
  .p-wrong text { fill: var(--danger); }
  .snap { display: inline-block; animation: snap .35s ease-out; }
  /* パズル：下のトレイ（上の鎖が見えないとき）。ピースが着いたところは軽く跳ねる */
  .chain-tray { position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20;
                display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 6px 12px 6px 8px;
                background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); cursor: pointer; color: var(--ink); }
  .chain-tray[hidden] { display: none; }
  .chain-tray text.badge { display: none; }   /* 札は省く（トレイは今の鎖を見せるだけ） */
  #tab-puzzle { padding-bottom: 84px; }       /* トレイが最後の行のピースに重ならないように */
  .chain-tray .tray-chain { overflow: hidden; min-width: 0; flex: 0 1 auto; }
  .chain-tray .tray-chain svg { display: block; overflow: visible; }
  .chain-tray .tray-txt { display: flex; flex-direction: column; min-width: 0; text-align: left; }
  .chain-tray .tray-text { font-size: 15px; font-weight: 600; white-space: nowrap; }
  .chain-tray .tray-en { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chain-tray .tray-go { flex: none; font-size: 13px; font-weight: 700; color: var(--word); border: 1.5px solid var(--word); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
  .chain-tray:hover .tray-go { background: var(--word-f); }
  @media (max-width: 520px) { .chain-tray .tray-chain { display: none; } .chain-tray { width: calc(100vw - 24px); justify-content: space-between; } }
  /* はまったら一度だけ光る。はじめの数回は上に一言（Tap to see…） */
  .chain-tray.pulse { animation: tray-pulse 1.1s ease-out; }
  @keyframes tray-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--word) 55%, transparent), var(--shadow); } 70% { box-shadow: 0 0 0 10px transparent, var(--shadow); } }
  .tray-hint { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 8px;
    background: var(--word-t); color: var(--panel); font-size: 13px; font-weight: 600; pointer-events: none; animation: welcome-in .25s ease-out; }
  .tray-hint[hidden] { display: none; }
  @media (prefers-reduced-motion: reduce) { .chain-tray.pulse { animation: none; } }
  g.landed { animation: landed .32s ease-out; transform-box: fill-box; transform-origin: center; }
  /* g は transform 属性（位置）を持つので、transform ではなく scale プロパティで跳ねる（位置を上書きしない） */
  @keyframes landed { 0% { scale: 1.12; } 60% { scale: .97; } 100% { scale: 1; } }
  @keyframes snap { from { transform: translateX(-14px); opacity: .4; } to { transform: none; opacity: 1; } }
  /* 並べるクイズのできた鎖は、その場で（左から滑らせると、枠の左の端から 14px はみ出して見えた。2026-11-05 講評11） */
  .ord-chain.snap { animation-name: snap-here; }
  @keyframes snap-here { from { transform: scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .snap { animation: none; } }
  .t-quiz { border-color: var(--word) !important; color: var(--word) !important; margin-left: 4px; }
  /* 練習のターゲットとレベル */
  .qz-target { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
  .qz-target select { max-width: 100%; }
  .qz-pick { display: flex; flex-direction: column; gap: 8px; margin: -4px 0 12px; }
  .qz-pick[hidden] { display: none; }
  .qz-targets .label { margin: 4px 0 0; }
  .pz-more { align-self: center; font-size: 13px; padding: 4px 12px; border-style: dashed; }
  .lb-empty { background: var(--soft); border-radius: 12px; padding: 14px 16px; }
  .lb-empty p { margin: 0 0 10px; }
  .qz-first { text-align: center; padding: 22px 18px; }
  .qz-stop { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); text-align: center; }
  .qz-stop[hidden], .qz-cleared[hidden] { display: none; }
  .qz-stop p { margin: 0 0 10px; }
  .qz-stop .row-acts { justify-content: center; }
  .qz-stop .btn { min-width: 9em; }
  .qz-cleared { margin: 10px 0 0; font-size: 14px; color: var(--aux-t); }
  .rev-ink { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border: 1.5px solid var(--word); border-radius: 50%; color: var(--word); font: 700 .85em/1 var(--font-ja); transform: rotate(-6deg); margin: 0 2px; vertical-align: -.35em; }   /* 日記の 復（.k-rev の --word）と同じ色に（2026-11-06 講評12：クイズの箱では紫、日記では緑だった） */
  .qz-rest .linkish { display: inline-block; margin-top: 10px; }
  .qz-first[hidden] { display: none; }
  .qz-first h3 { margin: 0 0 6px; font-size: 18px; }
  .qz-first p { margin: 0 auto 14px; max-width: 34em; color: var(--muted); }
  .qz-first .row-acts { justify-content: center; flex-wrap: wrap; }
  .qz-retry-ok { color: var(--word); margin-right: 4px; }   /* やり直しで正解（quiz-ui.js） */
  .qz-pick-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .qz-pick-list .hint { margin: 0; }
  .qz-pick-list .qz-pick-h { flex-basis: 100%; margin: 6px 0 0; }   /* 検索の「From your stories」「More words」（2026-11-08） */
  .qz-pick-list .qz-pick-h:first-child { margin-top: 0; }
  .qz-pick-row { display: contents; }
  .lvl { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
  .lvl.up { color: var(--word); font-weight: 600; }   /* 茶色は「覚えた語」だけ（2026-11-03 講評 案A） */ .lvl.down { color: var(--danger); }
  /* 進み具合 */
  /* 畳んだ箱（2026-11-05 講評11：スマホで長すぎた）：見出しだけ。開くと中身（中の枠と重なる見出しは消す） */
  /* Anki に持ち出す（anki-ui.js。2026-11-13） */
  .pg-anki p { margin: 0 0 10px; } .pg-anki-skip { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; cursor: pointer; }
  .pg-anki-h { font-size: 1rem; margin: 16px 0 4px; } .pg-anki-decks { margin: 6px 0 0; padding-left: 1.2em; } .pg-anki-decks li { min-height: 36px; display: list-item; } .pg-anki-decks a { display: inline-block; min-height: 32px; line-height: 32px; color: var(--word); }
  .pg-fold { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin: 0 0 12px; }
  .pg-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 18px; min-height: 44px; box-sizing: border-box; }
  .pg-fold > summary::-webkit-details-marker { display: none; }
  .pg-fold > summary h2 { margin: 0; font-size: 17px; }
  .pg-fold > summary::after { content: "▾"; color: var(--muted); } .pg-fold[open] > summary::after { content: "▴"; }
  .pg-fold-in { padding: 0 2px 4px; }
  .pg-fold-in > .card { border: 0; background: none; box-shadow: none; margin: 0; padding-top: 4px; }
  .pg-fold-in > :is(.wk, .pg-you, .rc) > h2:first-of-type, .pg-fold-in .pg-stamps-head h3 { display: none; }
  .pg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
  /* スマホ：2列に3枚で1枚が取り残されていた（2026-11-05 講評11）→ 今日の復習の札（3枚目）は横いっぱいに */
  @media (max-width: 560px) { .pg-tiles { grid-template-columns: 1fr 1fr; } .pg-tiles > .pg-tile, .pg-vg { grid-column: 1 / -1; } }
  .pg-vg { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
  .pg-vg-h { grid-column: 1 / -1; font-size: 12px; line-height: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  /* 横に並ぶとき、今日の復習の札（3枚目）の上を、見出しの下の 2 枚にそろえる（見出し 18px ＋ 間 6px。2026-11-20 学習者役 leo-14：3 枚目だけ上に飛び出た） */
  @media (min-width: 561px) { .pg-tiles > .pg-tile { margin-top: 24px; } }
  .pg-tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
  .pg-tile b { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .pg-tile span { font-size: 13px; color: var(--muted); }
  .pg-tile.due { border-color: var(--hl); }
  .pg-word { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
  .pg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
  .pg-dict { font-size: 20px; font-weight: 600; }
  .pg-bar { width: 120px; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
  .pg-bar span { display: block; height: 100%; background: var(--learned); }
  .pg-pct { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--learned); min-width: 3ch; }
  .pg-due { color: var(--hl); font-weight: 600; }
  .pg-forms { display: flex; flex-wrap: wrap; gap: 6px; }
  .pg-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
  .pg-tools input, .pg-tools select { font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; min-height: 36px; }
  .pg-tools input { flex: 1 1 220px; min-width: 0; }
  .pg-count { margin: 4px 0; }
  .pg-toggle { font-size: 13px; color: var(--muted); }
  .pg-all { margin-top: 10px; }
  button.pg-dict, button.pg-card { font-family: var(--font-ja); font-size: 20px; font-weight: 600; line-height: inherit; cursor: pointer; }
  button.pg-dict { background: none; border: 0; color: inherit; padding: 0; text-decoration: underline dotted var(--muted); text-underline-offset: 5px; }
  button.pg-dict:hover { color: var(--word); }
  button.pg-card:hover { filter: brightness(1.15); }
  /* 語のページ */
  /* 見出しの語は語の途中で折らない（2026-11-09 UIUX 講評 H2：スマホで「たべ／る」と折れ、語の切れ目を誤って見せた）。
     右の列（英語・グループ・進み）が縮み、それでも入らない狭い画面では語の下に積む */
  .wp-head { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; }
  .wp-dict { font-size: 40px; font-weight: 600; white-space: nowrap; flex: none; max-width: 100%; }
  .wp-head > div { flex: 1 1 7em; min-width: 0; overflow-wrap: break-word; }
  .wp-dict rt { font-size: 13px; color: var(--muted); font-weight: 400; }
  .wp-badge { color: var(--gold); background: linear-gradient(135deg, var(--gold-f), var(--gold-hi)); border: 1px solid var(--gold); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
  .wp-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
  .wp-forms td { vertical-align: top; }
  /* スマホ：例の英訳が右で切れていた（2026-11-07 中級の講評）。形と段を上に、例を下の一行全部に */
  @media (max-width: 560px) {
    .wp-forms tr:first-child { display: none; }
    .wp-forms tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .wp-forms td { border: 0; padding: 0; }
    .wp-forms td:nth-child(3) { grid-column: 1 / -1; }
  }
  .wp-ex { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
  .wp-ex svg { height: 34px; width: auto; }
  .wp-ex span { font-size: 13px; color: var(--muted); }
  .wp-dots { color: var(--learned); letter-spacing: 1px; }
  /* 語のページ（2026-11-08 持ち主 mock v2・v3）：上の検索欄・In the stories・Phrases・畳んだ Forms */
  .wp-find { margin: 0 0 12px; }
  #wp-body > * + * { margin-top: 12px; }
  .wp-find .shelf-q { width: 100%; box-sizing: border-box; margin: 0; }
  .wp-res { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
  .wp-res .hint { margin: 0; }
  .wp-btns .btn { white-space: nowrap; }
  @media (max-width: 420px) { .wp-btns { gap: 6px; } .wp-btns .btn { padding-left: 10px; padding-right: 10px; } }
  .wp-sts { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
  .wp-st { display: grid; grid-template-columns: 18px minmax(0, 1fr) 14px; align-items: center; gap: 8px; width: 100%; min-height: 44px; text-align: left;
           padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: inherit; font: inherit; cursor: pointer; }
  @media (hover: hover) { .wp-st:hover { border-color: var(--word); } }
  .wp-st b { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
  .wp-st-ja { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wp-st-ja em { font-style: normal; font-weight: 700; color: var(--word); }
  .wp-ck { color: var(--learned); font-weight: 700; text-align: center; }
  .wp-chev { color: var(--muted); font-size: 18px; }
  .wp-plus { font-size: 12px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
  .wp-more { display: inline-block; margin-top: 2px; padding: 12px 0; }
  .wp-btns .btn { min-height: 44px; }
  .wp-fold > summary { min-height: 44px; align-items: center !important; }
  #wp-res .chip { min-height: 40px; }
  .wp-find .shelf-q { min-height: 44px; }
  /* ✓ の列は、読み終えた行があるときだけ（UIUX） */
  .wp-sts:not(:has(.wp-ck:not(:empty))) .wp-st { grid-template-columns: minmax(0, 1fr) 14px; }
  .wp-sts:not(:has(.wp-ck:not(:empty))) .wp-ck { display: none; }
  .lb-found { margin: 4px 0 14px; }   /* 本棚の検索の「Words」（2026-11-08） */
  .lb-found .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .lb-found .hint { margin: 0; }
  #wp-res .wp-first { border-color: var(--word); }   /* Enter で開く語（UIUX） */
  .chip-go::after { content: "›"; margin-left: 6px; color: var(--muted); }   /* 押すと語のページへ（押すと問題の札と見分ける。学習者） */
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .wp-sub { margin: 14px 0 4px; }
  /* 句は押せないので札にしない（点で区切る一覧。UIUX 2026-11-08） */
  .wp-phs { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 15px; line-height: 1.6; }
  .wp-ph-more { padding: 10px 0; }
  .wp-ph small { color: var(--muted); margin-left: 4px; font-size: 12px; }
  .wp-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .wp-fold > summary::-webkit-details-marker { display: none; }
  .wp-fold > summary h2 { margin: 0; }
  .wp-fold > summary small::after { content: " ▸"; }
  .wp-fold[open] > summary small::after { content: " ▾"; }
  .wp-fold[open] > summary { margin-bottom: 10px; }
  .wp-colls { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
  .wp-colls li { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
  .wp-colls li.here { border-color: var(--gold); box-shadow: 0 0 6px var(--gold-glow); }
  .wp-phrase { font-size: 20px; font-weight: 600; }
  .wp-mean { font-size: 15px; font-weight: 500; margin-left: 8px; }
  .wp-here { color: var(--gold); margin-right: 6px; }
  .wp-use { margin-top: 6px; font-size: 14px; }
  .pf { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 7px; padding: 1px 8px 1px 2px; line-height: 1.9; background: var(--panel); }
  .pf svg { width: 14px; height: 17px; }
  .pf small { font-size: 9px; letter-spacing: 1px; color: var(--learned); }
  .pf.unseen { opacity: .55; }
  .pf.due { border-color: var(--hl); background: var(--hl-f); }
  .pf.lv-4 { border-color: var(--learned-line); background: var(--learned-f); }
  .pg-cards { display: flex; flex-wrap: wrap; gap: 8px; }
  .pg-card { border: 1.5px solid var(--gold); background: linear-gradient(135deg, var(--gold-f), var(--gold-hi)); color: var(--gold); box-shadow: 0 0 10px var(--gold-glow); padding-top: 14px; border-radius: 8px; padding: 10px 14px; font-size: 20px; font-weight: 600; }
  /* 解説 */
  .guide { display: flex; flex-direction: column; gap: 16px; }
  /* Guide の入口（2026-10-27）：PC は4列、スマホは見出しを押して開く1列。見本は web/dev/guide-hub.html */
  .gh { display: flex; flex-direction: column; gap: 16px; }
  .gh-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
  .gh-head h2 { margin: 0; font-size: 22px; }
  .gh-head p { margin: 0; }
  .gh-start { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; background: var(--word-f); border-left: 4px solid var(--word); border-radius: 12px; padding: 14px 18px; }
  .gh-start span { flex: 1 1 260px; }
  .gh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px 12px; }
  .gh-col > summary { list-style: none; }
  .gh-col > summary::-webkit-details-marker { display: none; }
  .gh-col h3 { margin: 0 0 6px; font-size: 16px; padding: 0 0 8px 10px; border-left: 4px solid var(--word); border-bottom: 1px solid var(--line); line-height: 1.3; }
  .gh-col.plus h3 { border-left-color: var(--gold); }
  .gh-col ul { list-style: none; margin: 0 0 14px; padding: 0; }
  .gh-link { display: block; width: 100%; text-align: left; background: none; border: 0; font: inherit; padding: 8px 0 8px 14px; position: relative; color: var(--ink);
    text-decoration: none; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
  .gh-link::before { content: ""; position: absolute; left: 2px; top: 14px; border: 4px solid transparent; border-left: 5px solid var(--word); }
  .gh-col.plus .gh-link::before { border-left-color: var(--gold); }
  .gh-link:hover { color: var(--word); text-decoration: underline; }
  .gh-link small { color: var(--muted); font-size: 12.5px; }
  .gh .soon { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--gold-f); color: var(--gold); font-size: 12px; font-weight: 700; vertical-align: 1px; }
  @media (min-width: 721px) { .gh-col > summary { pointer-events: none; } }   /* 境目は 720px（C-61） */
  @media (max-width: 720px) {
    .gh-grid { grid-template-columns: 1fr; padding: 4px 16px; }
    .gh-col h3 { border-bottom: 0; padding: 12px 0 12px 10px; margin: 0; display: flex; justify-content: space-between; cursor: pointer; }
    .gh-col h3::after { content: "⌄"; color: var(--muted); }
    .gh-col[open] h3::after { content: "⌃"; }
    .gh-col + .gh-col { border-top: 1px solid var(--line); }
  }
  .gh-back { margin: 0 0 12px; }   /* 戻るは枠付きボタン（.btn）・見出しの上・左寄せ（2026-11-09 持ち主。UIUX M7） */
  .gh-art h2 { margin: 0 0 10px; font-size: 20px; }
  .gh-art p, .gh-art li { line-height: 1.65; }
  .gh-steps, .gh-list { padding-left: 1.3em; margin: 0 0 12px; display: grid; gap: 6px; }
  .gh-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }

  .g-sec h2 { font-size: 17px; margin: 0 0 8px; }
  .g-sec h2 small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 6px; }
  .g-sec p, .g-sec li { font-size: 14px; max-width: 70ch; }
  .g-sec li { margin-bottom: 6px; }
  .g-focus { background: var(--hl-f); border-radius: 8px; padding: 8px 12px; }
  .g-forms td.g-pc { display: flex; gap: 6px; flex-wrap: wrap; }
  /* 2026-11-16 持ち主 C12「やって」：読む字で 12px より小さかったもの（カレンダーの曜日・ロゴの JP・本棚の小さな札など）を 12px に。ふりがな・図の中の字・物語の札（持ち主の決めた 11px）は変えない */
  /* Forms of …：先頭の How the pieces fit の 3 行・長い一覧のたたみ（2026-11-16 C12） */
  .g-intro h2 { margin-top: 0; }
  .g-intro-3 { margin: 6px 0 8px; padding-left: 1.4em; }
  .g-intro-3 li { margin: 2px 0; }
  .g-rest { display: inline; }
  .g-rest > summary { display: inline-block; cursor: pointer; color: var(--word); font-size: 13.5px; margin-left: 6px; list-style: none; padding: 4px 0; }   /* 押す所は 24px 以上（C-33） */
  .g-rest > summary::-webkit-details-marker { display: none; }
  .g-rest[open] > summary { display: block; margin: 4px 0 2px; }
  .g-hl td { background: var(--hl-f); }
  .g-mini { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
  .g-aux { font: inherit; font-family: var(--font-ja); color: var(--aux-t); background: none; border: 0; padding: 0 1px; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
  .g-aux:hover { color: var(--aux); text-decoration-style: solid; }
  .g-aux-pc { text-decoration: none; border-radius: 6px; }
  .g-aux-pc:hover { background: var(--aux-f); }
  .g-aux-pc.g-off { opacity: .32; }   /* 2026-11-14 講評3 N04：その語のあとにははまらないピース（Knob shapes の表） */
  .g-aux-pc.g-off:hover, .g-aux-pc.g-off:focus-visible { opacity: .7; }
  .g-focus-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
  .g-focus-card .g-mini svg { height: 52px; }
  .g-more { margin-top: 12px; }
  .g-more > summary { cursor: pointer; color: var(--muted, inherit); padding: 8px 4px; font-size: .95rem; }
  .g-more[open] > summary { margin-bottom: 8px; }
  .g-mini svg { height: 34px; width: auto; }
  .g-link { margin-left: 6px; font-size: 12px; padding: 2px 10px; border-color: var(--word); color: var(--word); }
  #finish :is([data-gi], [data-ev-gi]) { scroll-margin: calc(var(--sat, 0px) + 72px) 0 96px; }   /* ○✗ の語へ戻ったとき、上の帯・下のバーに隠れない（学習者役 15 回目 bea-2・dina-9） */
  .g-sec { scroll-margin-top: calc(var(--sat) + 64px); }   /* 7-1：頼んだ節へ動いたとき、上の帯に隠れないように */
  /* 2026-11-14 講評3 4-2：Same shape, but it doesn't fit の表は、スマホでは行ごとのカード（ピース → 例 の 1 段＋下に Rule）。HTML は変えない */
  @media (max-width: 520px) {
    #g-exceptions table, #g-exceptions tbody, #g-exceptions tr { display: block; }
    #g-exceptions tr:first-child { display: none; }
    #g-exceptions tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
    #g-exceptions td { display: block; border: 0; padding: 0; }
    #g-exceptions td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  }
  /* パズルから物語へ戻るボタン（画面の上に貼り付く） */
  .back-bar { position: sticky; top: calc(var(--sat) + 58px); z-index: 4; display: flex; align-items: center; gap: 12px;
              background: var(--bg); padding-block: 6px; margin-block: -6px; }
  /* 上の帯（1024 以上は 51px）との間の数 px にも地を敷く（助詞のページで本文の字がのぞいた：学習者役 14 回目 bilal-13） */
  .back-bar::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 8px; background: var(--bg); pointer-events: none; }
  /* 帯のすぐ下で切れた字（上半分）がのぞかないよう、下に短いぼかし（練習の画面の MAKE IT SAY：学習者役 15 回目 kim11-6） */
  .back-bar::after { content: ""; position: absolute; inset-inline: 0; top: 100%; height: 14px; background: linear-gradient(var(--bg) 40%, transparent); pointer-events: none; }
  /* 作者のことば・間違いの報告・フッター（ひっそり） */
  .note { max-width: 680px; margin: 0 auto 16px; }
  .note p { font-size: 15px; line-height: 1.7; margin: 0 0 12px; }
  .note-sign { color: var(--muted); }
  .note-sign a { color: inherit; }
  .x-link { font-size: 13px; }
  .note-read .btn { margin: 6px 6px 0 0; }
  .linkish.inline { font-size: inherit; color: inherit; }
  .report label { display: block; font-size: 14px; margin: 0 0 12px; }
  .report select, .report input[type=number], .report textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px;
    font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; }
  .report input[type=number] { max-width: 140px; }
  .report .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .site-foot { text-align: center; padding: 0 16px 32px; }
  @media (pointer: coarse) { .site-foot .linkish::after, .site-foot a::after { height: 28px; } }   /* 行の間が約27px：下の行のリンクに当たらないように（2026-11-08 UIUX） */
  .linkish { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
  /* 押せる範囲を広げる（見た目は変えない。2026-11-08 持ち主：small.png・UIUX：リンクの高さが 18px だった）
     指（pointer: coarse）は高さ 44px、マウスも 24px（決まり C-33。持ち主 2026-11-19「それで」） */
  .linkish, .g-aux { position: relative; }
  .linkish::after, .g-aux::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 24px; transform: translateY(-50%); }
  @media (pointer: coarse) { .linkish::after, .g-aux::after { height: 44px; } }
  .linkish:hover { color: var(--ink); }
  .report-line { text-align: right; margin: 8px 0 0; }
  /* 文ごとの ⚑（間違いの報告）。ふだんは薄く、文にマウスを乗せる・タッチの端末では見える */
  /* 2026-11-03 講評 mock-9 案A：薄い ⚑（1.4:1）を全部の文に出すのをやめ、今の文・マウスを乗せた文・フォーカスのある文だけに濃く出す（ほかは隠す＝静か） */
  .sent .flag { flex: none; align-self: flex-start; margin-top: 6px; border: 0; background: none; color: var(--gloss); font-size: 13px; padding: 2px 4px;
    visibility: hidden; cursor: pointer; border-radius: 4px; }
  .sent.now .flag, .sent:hover .flag, .sent .flag:focus-visible, .sent:focus-within .flag, .sent:has(.report-inline) .flag { visibility: visible; }
  .sent .flag:hover { color: var(--ink); background: var(--soft); }
  .report-inline { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); display: grid; gap: 8px; max-width: 560px; }
  .report-inline .ri-head { font-size: 13px; }
  .report-here { margin: 10px 0 0; font-size: 12px; } .report-here .linkish { color: var(--muted); }
  .report-inline select, .report-inline textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 7px; padding: 6px 8px; width: 100%; box-sizing: border-box; }
  .report-inline .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .report-inline .ri-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  /* 2026-10-28 認知負荷の見直し 7：緑は「新しい語」の色。ボタンは墨色にして、意味がぶつからないように */
  .btn.back { border-color: var(--ink); color: var(--ink); background: var(--panel); font-weight: 600; }
  .btn.back:hover { background: var(--soft); }
  /* 助詞のページ（ui/particle-page.js・particle-ui.js。2026-11-16 モックをアプリに）。ページの中身の CSS は materials/particles/common.json（.pm-wrap の中だけ）。
     ここはアプリの部品（例文の .jw・上の前後のリンク・入口の一覧）だけ */
  .pm-wrap { position: relative; }
  .pm-wrap [id] { scroll-margin-top: 72px; }   /* 目次から飛んだ小見出しが上の帯に隠れない */
  .pm-wrap .jw { height: auto; vertical-align: baseline; }
  .pm-wrap .jw-ja { margin-top: 0; font-size: inherit; line-height: 1.25; }
  .pm-wrap[data-script="kanji"][data-furi="on"] .jw-ja { margin-top: .7em; }   /* ふりがなの場所（漢字の表記で Furigana over kanji のとき） */
  .pm-wrap .jw-ja .rt { font-size: max(9.5px, .5em); margin-bottom: 0; }
  .pm-wrap .jw-say { margin-top: 3px; font-size: 11.5px; }
  .pm-wrap .jw-say:empty { display: none; }
  .pm-wrap .jw-say:not(:empty) { padding-inline: 2px; }   /* 下のローマ字が隣とくっつかない（nuno wamachi：学習者役 14 回目 ada-7） */
  .pm-wrap[data-furi="off"] :is(.rt, rt) { display: none; }
  .pm-wrap .ex .ja { line-height: 1.35; }
  .pm-wrap [data-pj] ruby rt { font-size: .55em; color: var(--muted); font-weight: 400; }
  .pm-wrap ruby, .pm-wrap ruby rt { ruby-align: center; }   /* 兵十（ひょうじゅう）のように読みが長い語で、字の間が空かないように */
  .pp-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin: 0 0 12px; font-size: 14px; }
  .pm-wrap > .pp-nav:last-child { margin: 16px 0 0; }
  .pp-nav a { color: var(--word); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .pp-nav a:hover { text-decoration: underline; }
  .pp-step { display: inline-flex; gap: 12px; margin-left: auto; }
  .pp-step a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 32px; }   /* ‹ へ が幅 27px で押しにくかった（学習者役 12 回目 uma-17） */
  .pp-nav small { color: var(--muted); }
  .pp-group h3 { margin: 18px 0 6px; font-size: 16px; }
  .pp-list { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
  .pp-list li + li { border-top: 1px solid var(--line); }
  .pp-list a { display: grid; grid-template-columns: 4.6em 1fr 16px; grid-template-areas: "ja d go" "en d go"; align-items: center; column-gap: 10px; padding: 10px 12px; min-height: 44px; box-sizing: border-box; color: inherit; text-decoration: none; }
  .pp-list a:hover { background: var(--soft); }
  .pp-list .pp-ja { grid-area: ja; font-size: 20px; font-weight: 700; color: var(--word); }
  .pp-list .pp-en { grid-area: en; font-size: 12px; color: var(--muted); }
  .pp-list .pp-d { grid-area: d; font-size: 14px; }
  .pp-list .pp-go { grid-area: go; color: var(--word); font-weight: 700; }
  .pp-list li.pp-more a { padding-left: 28px; }
  .pp-list.pp-cmp a { grid-template-columns: 1fr 16px; grid-template-areas: "ja go"; }
  .pp-list.pp-cmp .pp-ja { font-size: 17px; white-space: nowrap; }
  .pp-list li.pp-more .pp-ja { font-size: 16px; }
  .pp-sub { margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
  /* 助詞の短い説明（ページのない助詞。前の Guide › Particles の札。2026-10-30） */
  .pt-group h3 { margin: 18px 0 8px; font-size: 16px; }
  .pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
  .pt-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--panel); }
  .pt-card.on { border-color: var(--learned-line); }
  .pt-card.focus { box-shadow: 0 0 0 3px var(--word); }
  /* カードの見出しは貼り付けない（上の header { position: sticky } はアプリの帯のため。助詞のカードの見出しまで貼り付いて本文に重なった：2026-11-10 学習者） */
  .pt-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; position: static; z-index: auto; }
  .pt-card .pt-learn { margin-left: auto; }
  .pt-ja { font-family: var(--font-ja); font-size: 22px; font-weight: 700; }
  .pt-say { color: var(--muted); font-size: 13px; }
  .pt-card p { margin: 6px 0; font-size: 14px; line-height: 1.5; }
  .pt-ex { list-style: none; margin: 0; padding: 0; }
  .pt-ex li { display: flex; flex-direction: column; padding: 4px 0; border-top: 1px dashed var(--line); }
  .pt-ex .ja { font-family: var(--font-ja); font-size: 16px; }
  .pt-ex small { color: var(--muted); }
  /* 上の英語の札：Reading options の Meanings above（shared.js の setMeanings。2026-10-30）。押せば意味は出る */
  body[data-meanings="off"] #text .ilg, body[data-meanings="first"] #text .c-ja:not(.first) .ilg { display: none; }
  /* ローマ字の画面：日本語（ローマ字）を少し太く、英語の札を少し薄く（英字の上に英字で、どれが日本語か見分けにくかった。2026-10-30） */
  #text[data-script="romaji"] .c-ja .jt { font-weight: 600; }
  /* かな・漢字も 600（2026-11-05 ユーザー mock19：ローマ字だけ太く、かなに替えると細く見えた）。助詞は灰色のまま色で分ける。下の読み・ふりがなは普通の太さ */
  :is(#text, .tf-card) .c-ja .jt { font-weight: 600; }
  :is(#text, .tf-card) .c-ja .jt :is(.jw-say, .rt, rt) { font-weight: 400; }
  #text[data-script="romaji"] .ilg { font-weight: 400; }   /* 2026-11-03 講評：不透明度 .72 をやめた（2.6:1 だった）。見分けは字の太さで */
  /* ローマ字の本文の開きかっこ " は英語のように次の語にくっつける（2026-11-19 持ち主「それで」："␣arigatō に見えた）。
     語の箱の左の余白（.c-ja の 4px）を、かっこの側だけ 1px に（助詞の箱 s-particle と同じ）。かな・漢字の 「 は字の中に空きがあるのでそのまま。
     閉じかっこ・, . の側は変えない（後ろの語とのあいだの空きもこの余白で出しているので、つめると "…"to のようにくっつく） */
  #text[data-script="romaji"] .with-open > .c-ja, #text[data-script="romaji"] .with-open > .with-punct > .c-ja { padding-left: 1px; }
  .kana-nudge { margin: 0 0 12px; }
  .tip > * { flex-shrink: 0; }   /* 高さを決められたとき、中身をつぶさずに巻き取る */
  .btn.danger { border-color: var(--danger); color: var(--danger); font-weight: 600; }
  .btn.danger:disabled { opacity: .45; cursor: not-allowed; }
  .acct-del { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
  .acct-del > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
  .acct-del input { font: inherit; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink); }
  .btn.primary { border-color: var(--word); background: var(--word); color: var(--panel); font-weight: 600; }   /* 黒 → 緑（題字・札と同じ色。2026-10-30 ユーザー：黒い板は統一感がない） */
  .btn.primary:hover { border-color: var(--word-t); background: var(--word-t); color: var(--panel); }
  .flash { animation: flash 1.6s ease-out; }
  @keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--hl); } 100% { box-shadow: 0 0 0 3px transparent; } }
  @media (prefers-reduced-motion: reduce) { .flash { animation: none; outline: 2px solid var(--hl); } }
  /* 2026-11-04 講評10：リンク（#/story/<id>/<文>）で開いた文を、しばらく目立たせる */
  #text .sent.link-hit { animation: link-hit 3.2s ease-out; }
  @keyframes link-hit { 0%, 55% { box-shadow: inset 4px 0 0 var(--hl), 0 0 0 3px var(--hl); background-color: var(--hl-f); } 100% { box-shadow: inset 4px 0 0 transparent, 0 0 0 3px transparent; } }
  @media (prefers-reduced-motion: reduce) { #text .sent.link-hit { animation: none; outline: 3px solid var(--hl); } }
  @media (max-width: 560px) {
    .controls { position: static; }
    .back-bar { position: static; margin-block: 0; flex-wrap: wrap; }
    .back-bar::before, .back-bar::after { display: none; }
    .line { font-size: 18px; }
    .sent { padding: 10px 12px; }
    .sockets { grid-template-columns: 1fr; gap: 4px; }
    .sockets .rowname { margin-top: 6px; }
    .chunk { font-size: 24px; }
    .seg { margin-left: 0; }
  }

  /* ---- スマホのヘッダー：1行（ロゴ＋メニューのボタン）。メニューは押すと下に開く。下へ読み進めるとヘッダーは隠れ、戻ると出る ---- */
  .menu-btn, .menu-label { display: none; }
  .head-menu { display: contents; }   /* PC：中身をそのまま .head の行に並べる */
  /* PC：表示の切り替えは2行目にまとめて左から（表記 → 読み → 音）。右に2段でずれていたのが見苦しかった（ユーザー 2026-10-26） */
  .head-break { flex-basis: 100%; height: 0; order: 1; }
  #script { order: 2; margin-left: 0; }
  #reading { order: 3; margin-left: 0; }
  #snd-box { order: 4; margin-left: 0; }
  #theme { order: 5; margin-left: 0; }   /* 2026-11-03：明るさも2行目に。Progress（表記・音を隠す画面）でも2行目が残り、高さが跳ねない */
  /* PC では明るさは絵だけ（☀️ 🌙 🌓）：1280 で Theme だけ 2 段目に落ちた（学習者役 10・11 回目 mei-16・otto・nora-17・持ち主 11-25 D-81 の 3「1 段に収める」）。
     前は 1400px までだけで、1441px 以上（ヘッダーの幅は 1240px で止まる）と Getting started の札が出たときに 2 段に戻った（学習者役 13 回目 yusuf-3・kim9-1） */
  @media (min-width: 721px) { #theme .seg-cap, #theme .th-t { display: none; } #theme button { min-width: 30px; } }   /* 絵だけでも押す所は 24px 以上（C-33。Auto の絵が 22px になった） */
  @media (max-width: 720px) {
    header { padding-block: 8px; transition: transform .2s ease; }
    header.head-hide:not(.menu-open) { transform: translateY(-110%); }
    /* ← Back の帯も上の帯と一緒に隠す（200% の拡大・スマホで本文の行を隠した：学習者役 12 回目 kim8-6） */
    .back-bar { transition: transform .2s ease; }
    body:has(header.head-hide:not(.menu-open)) .back-bar { transform: translateY(calc(-100% - 70px)); }
    .head { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
    .logo { font-size: 22px; }
    .menu-btn { display: inline-grid; place-content: center; gap: 4px; width: 40px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 0; }
    .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .2s, opacity .2s; }
    header.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    header.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
    header.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .head-menu { display: none; }
    header.menu-open .head-menu { display: grid; gap: 8px; position: absolute; left: 0; right: 0; top: 100%; background: var(--panel);
      border-bottom: 1px solid var(--line); box-shadow: 0 10px 24px rgb(0 0 0 / .12); padding: 12px max(16px, env(safe-area-inset-left, 0px)) 16px;
      max-height: calc(100dvh - 60px); overflow-y: auto; }
    header.menu-open nav { display: grid; gap: 2px; }
    header.menu-open nav button { text-align: left; font-size: 16px; padding: 10px 12px; }
    .seg-cap { display: none; }
    .head-break { display: none; }
    #script, #reading, #snd-box, #theme { order: 0; }   /* スマホのメニューは見出しの順のまま */
    .menu-label { display: block; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }
    header.menu-open .seg, header.menu-open #reading { justify-self: start; margin-left: 0; }
    header.menu-open .seg button { padding: 8px 14px; font-size: 14px; }
    header.menu-open .snd, header.menu-open #snd-box, header.menu-open #sound, header.menu-open #theme { justify-self: start; margin-left: 0; }
    header .snd-pop { position: static; margin-top: 8px; box-shadow: none; }   /* スマホのメニューの中は下に並べる */
    header.menu-open .account { justify-self: start; }
  }
  /* 音の設定（2026-11-11 持ち主。sound-ui.js）：Sound の ▾ で開く小窓と、鳴らない音のボタンの斜線 */
  .snd-box { position: relative; display: inline-flex; flex-direction: column; }
  #sound .snd-more { padding: 4px 8px; border-left: 1px solid var(--line); color: var(--muted); }
  #sound .snd-more[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
  .snd-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 230px; display: grid; gap: 6px; padding: 10px 12px;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgb(0 0 0 / .14); }
  .snd-pop[hidden] { display: none; }
  .snd-pop .snd-h { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .snd-pop small { color: var(--muted); }
  .snd-box.flash #sound { animation: snd-flash .6s ease-in-out 3; }
  @keyframes snd-flash { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--word) 45%, transparent); } }
  :is(body.mute-voice :is(#text .sent .play, #rbar [data-rb="play"], #demo-play), body.mute-kana .kana-say) { position: relative; opacity: .6; }
  :is(body.mute-voice :is(#text .sent .play, #rbar [data-rb="play"], #demo-play), body.mute-kana .kana-say)::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 26px; border-top: 2px solid currentColor; transform: translate(-50%, -50%) rotate(-40deg); pointer-events: none; }
  body.mute-voice #demo-play::after { left: 21px; width: 16px; }   /* 「▶ Play whole story」は ▶ の上だけ */
  @media (prefers-reduced-motion: reduce) { .snd-box.flash #sound { animation: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--word) 45%, transparent); } }
  /* テキストの素材（動画なし）：再生まわりを隠す */
  .text-mode .media-only, .text-mode .sent .btns .play, .text-mode .sent .btns:not(:has(.en-btn)) { display: none !important; }   /* 音声なし：▶ は隠す。EN（英文を見る）は残す */
  .snd { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; cursor: pointer; font-size: 15px; opacity: .55; color: var(--ink); }
  .snd.on { opacity: 1; }
  /* 起動中の骨組み：中身が届くまで本棚の形を灰色で出し、届いたら同じ場所で短く入れ替える（動かさない・間を空けない。read.js の bootDone）。
     JS が動かなくても 8 秒で骨組みを消して中身を出す（止まったままにしない） */
  #tab-read { position: relative; isolation: isolate; z-index: 1; }   /* z-index 1：この中の下のバー（z 40）・札・窓を、後ろのフッターのリンク（position: relative）より上に。
     前は z が auto で、話の終わり近くで下のバーの ‹ › ▶ EN ⚑ の上にフッターのリンクが重なり、押すと A note from the maker などへ移った（学習者役 12 回目 wren-1）。
     上の帯（z 5）・← Back の帯（z 4）・下のタブ（z 30）はこれより上のまま */   /* 骨組みを z-index: -1 にしても、この中（中身の下・ページの地の上）に置くため */
  .boot { position: absolute; top: 0; left: 0; right: 0; display: grid; gap: 14px; pointer-events: none; }
  body:not(.booting):not(.boot-in) .boot { display: none; }
  body.booting #tab-read > :not(.boot) { visibility: hidden; animation: boot-show 0s 8s forwards; }
  body.booting .boot { animation: boot-gone 0s 8s forwards; }
  @keyframes boot-show { to { visibility: visible; } }
  @keyframes boot-gone { to { visibility: hidden; } }
  /* 入れ替え：骨組みは中身の「下」に回して見せたまま、上に中身が 0.25 秒で現れる（カードの地の色が骨組みを隠していく）。
     そのあと骨組みの残り（中身より長い部分）を消す。背景だけの瞬間を作らない */
  body.boot-in .boot { z-index: -1; animation: boot-out .15s linear .22s both; }
  body.boot-in #tab-read > :not(.boot) { animation: boot-up .25s ease-out both; }
  @keyframes boot-up { from { opacity: 0; } }
  @keyframes boot-out { to { opacity: 0; } }
  .sk { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--soft) 0%, var(--panel) 50%, var(--soft) 100%);
    background-size: 200% 100%; animation: sk-shine 1.3s linear infinite; }
  @keyframes sk-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
  .boot-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .boot-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; }
  .boot-filters .sk { height: 42px; border-radius: 8px; flex: 0 0 96px; }
  .boot-filters .sk:first-child { flex: 1 1 220px; }
  .boot-book { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
  /* 物語を開くのに時間がかかるとき（read.js の openStory）：本文の骨組みだけを出し、ほかの欄は届くまで見せない */
  #tab-read.mat-loading > :not(.rd-top):not(#text) { visibility: hidden; }
  .boot-text { display: grid; gap: 18px; padding: 18px 20px; }
  .boot-line { display: flex; flex-wrap: wrap; gap: 8px; }
  .boot-line .sk { height: 40px; border-radius: 8px; }
  #tab-read.mat-in > :not(.rd-top) { animation: boot-up .25s ease-out both; }

  /* ---- 2026-11-03 講評 mock-9 案A：ヘッダーを1行に・読む画面の上を詰める（1024×700 で最初の文が一画面目に入るように） ---- */
  /* PC：2行目（表記・音）をやめ、右の端へ。ヘッダーはタブ（Library・Practice・Progress・Guide）に共通 */
  @media (min-width: 721px) {
    header { padding-block: 7px; }
    .head { gap: 8px 18px; }
  }
  /* 1024px から1行（2026-11-05 講評11：768・900px では札を外しても折り返し、段の分かれ方が幅ごとにばらばらだった）。
     721〜1023px は基の2段（1段目 ロゴ・見出し、2段目 表記・音・明るさ）。札は Sound・Theme だけ出す（表記は romaji／かな／漢字 で分かる） */
  @media (min-width: 1024px) {
    .head-break { display: none; }
    #script { margin-left: auto; }
  }
  @media (min-width: 721px) and (max-width: 1023px) { #script .seg-cap { display: none; } }
  /* PC で Theme だけ2段目に落ちていた（2026-11-05 講評11）：ヘッダーの幅を広げ、狭い PC では札（Japanese text・Sound・Theme）を外して1行に */
  @media (min-width: 721px) { .head { max-width: min(1240px, 100%); } }
  @media (min-width: 1024px) and (max-width: 1279px) { .seg-cap { display: none; } }   /* 1行にするには幅が足りないときは札を外す（切り替えの title に説明がある） */
  /* Getting started の札が出ている間も 1 段（札が出た瞬間に帯が 2 段になり本文が下へずれた：学習者役 13 回目 yusuf-3・kim9-1）。
     札の間は切り替えの名前（Japanese text・Sound）を外し、1279px までは札も「1/4」だけ（名前は aria-label と title）。1024px 前後は間も詰める */
  @media (min-width: 1024px) { header:has(#gs-pill:not([hidden])) .seg-cap { display: none; } }
  /* 1024〜1279 は短く「Intro 1/4」（前は 1/4 だけで何の数か分からなかった：学習者役 bilal-5・kim10-6。持ち主 11-25 D-97 の ②「それで」。Start → Intro：持ち主 11-26「これで」（AD6。Tutorial は 1024px で 2 行））） */
  .gs-pill-s { display: none; }
  @media (min-width: 1024px) and (max-width: 1279px) { .gs-pill .gs-pill-t { display: none; } .gs-pill .gs-pill-s { display: inline; } .head { gap: 8px 12px; } }
  @media (min-width: 1024px) and (max-width: 1150px) { header nav button { padding-inline: 8px; } #theme button { padding-inline: 7px; } header:has(#gs-pill:not([hidden])) nav button { padding-inline: 5px; } header:has(#gs-pill:not([hidden])) .head { column-gap: 6px; } }

  /* 題の帯：← Library・題・Level・ⓘ About を1列に。帯があるときは上の ← Library の行を出さない */
  #tab-read:has(#rd-hero:not([hidden])) > .rd-top { display: none; }
  .rd-hero { min-height: 46px; margin: 0; gap: 10px; padding: 6px 10px; }
  .rd-hero .t { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 12px; padding: 0; max-width: none; }
  .rd-hero .ja { font-size: clamp(19px, 4.6vw, 22px); }
  .rd-hero .en { font-size: 13px; }
  .rd-hero .rd-hero-back { position: relative; flex: none; font-size: 14px; padding: 4px 10px; color: #fbf3dc; background: rgb(255 255 255 / .06); border-color: rgb(251 243 220 / .45); }
  .rd-hero .rd-hero-back:hover { background: rgb(255 255 255 / .16); border-color: #fbf3dc; }
  .rd-about { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 600; color: #f6d77a; cursor: pointer;
    text-decoration: underline dotted; text-underline-offset: 3px; white-space: nowrap; }
  .rd-about:hover, .rd-about[aria-expanded="true"] { color: #fbf3dc; }
  .rd-about:focus-visible, .rd-hero .rd-hero-back:focus-visible { outline: 2px solid #f6d77a; outline-offset: 2px; }
  /* 2026-11-04 講評10：スマホでは題の帯の字が表紙の絵の明るい所（月・竹）に乗り、黄色い字が読みにくかった。
     字の後ろに夜空の色の薄い幕（どの絵の上でも 4.5:1 以上：白の上でも #f6d77a は約 7.9:1） */
  .rd-hero .ja, .rd-hero .en, .rd-hero .rd-about { background: rgb(20 24 52 / .85); border-radius: 5px; padding: 0 5px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  /* 説明（と声のクレジット）は ⓘ About で開く。帯のない教材は今までどおり見せる */
  #tab-read:has(#rd-hero:not([hidden]) .rd-about) > #mat-note:not(.open) { display: none; }
  #tab-read > #mat-note.open { display: block; margin-top: -6px; }
  /* 道具の列：▶ 全部を聞く・位置・時間・速さ・Test yourself・Reading options・How to read */
  #tab-read .controls { position: relative; gap: 8px 12px; padding: 6px 10px; }
  #tab-read .controls .demo { flex: 1 1 260px; padding: 0; gap: 10px; }
  #tab-read .controls .demo[hidden] { display: none; }
  #tab-read .controls .demo input { max-width: none; width: 80px; min-width: 80px; }   /* 狭い幅で位置のつまみがつぶれないように（足りなければ列を折り返す） */
  #tab-read .controls .demo .time { font-size: 13px; white-space: nowrap; }
  /* 全部を聞く：案A では緑のボタン（2026-11-01 には目立たせない灰色にしていた。文ごとの ▶ が主なのは変わらない） */
  #tab-read .controls #demo-play { font-size: 13px; padding: 4px 12px; white-space: nowrap; border-color: var(--word); background: var(--word); color: var(--panel); font-weight: 600; }
  #tab-read .controls #demo-play:hover { background: var(--word-t); border-color: var(--word-t); }
  .rd-speed { display: flex; align-items: center; gap: 6px; }
  .rd-speed .label { display: none; }   /* 1列に収めるため「SPEED」の札は出さない（0.7〜1.0 の切り替えに aria-label Speed・title がある） */
  #tab-read .controls .rd-speed .seg { margin-left: 0; }
  #tab-read .controls .rd-speed .seg button { padding: 4px 8px; }
  #tab-read .controls .rd-pop { width: auto; display: block; }
  .rd-pop > summary { cursor: pointer; list-style: none; white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink);
    padding: 4px 10px; border: 1px solid var(--line); border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; }
  .rd-pop > summary::-webkit-details-marker { display: none; }
  .rd-pop > summary:hover, .rd-pop[open] > summary { border-color: var(--word); }
  .rd-pop:not(.howto) > summary::after { content: "▾"; font-size: 12px; color: var(--muted); margin-left: 2px; }
  #tab-read .controls .rd-pop[open] > summary { margin-bottom: 0; }
  .howto.rd-pop > summary { border-color: transparent; font-weight: 400; color: var(--muted); font-size: 13px; padding-inline: 4px; }
  /* 開いた中身は列の下に浮かせる（本文を押し下げない。列の場所も動かない） */
  .rd-pop[open] > .rd-pop-body { position: absolute; z-index: 4; top: calc(100% + 6px); right: 0; width: min(560px, 100%); box-sizing: border-box;
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 12px 14px; }
  .rd-test.rd-pop-body { gap: 8px; }
  .legend.rd-pop-body { font-size: 13px; }
  /* Test yourself を閉じていても、オンの切り替えは札で見える */
  /* 🧩 Reading practice の Build・No hints の札は見た目だけ（読み上げは summary の名前に入れない：11 回目 kim7-14。状態は中のスイッチで聞ける） */
  .rd-on { display: none; margin-left: 4px; padding: 0 7px; border-radius: 999px; background: var(--word); color: var(--panel); font-size: 12px; font-weight: 700; line-height: 18px; }
  #rd-test-pop:has(#rd-build:checked) .rd-on-build, #rd-test-pop:has(#rd-nohints:checked) .rd-on-nh { display: inline-block; }
  #rd-test-pop:has(input:checked) > summary { border-color: var(--word); }
  @media (max-width: 720px) {
    .rd-hero { padding: 6px 8px; gap: 8px; }
    .rd-hero .rd-hero-back { font-size: 13px; padding: 3px 8px; }
    .rd-hero .t { column-gap: 8px; }
    #tab-read .controls { gap: 6px 8px; padding: 6px 8px; }
    #tab-read .controls .demo { flex-basis: 100%; }
    #tab-read .controls .demo input { width: 40px; min-width: 40px; }   /* 360 幅で時間が箱からはみ出さないように */
    .rd-speed .label { display: none; }
    .rd-pop > summary { font-size: 13px; padding: 4px 8px; }
    .rd-pop[open] > .rd-pop-body { left: 0; width: auto; }
  }
  @media (prefers-reduced-motion: reduce) {
    .sk { animation: none; }
    #tab-read.mat-in > * { animation: none; }
    body.boot-in #tab-read > :not(.boot) { animation: none; }
    body.boot-in .boot { animation: none; opacity: 0; }
  }

  /* ---- トップページ（Home。画面 H1。2026-11-23 持ち主「一度みてみたのでつくってみて」：ちぎり絵 V2）---- */
  #tab-home { max-width: 1180px; margin: 0 auto; }
  .home { --hm-r: 26px; display: flex; flex-direction: column; }
  .home .hm-small { font-size: 13px; color: var(--muted); margin: 0; }
  /* 題と読みは語の途中で折らない（つるのおん／がえし と折れた：学習者役 10 回目 pia-14）。· の前後の空白では折れる。入りきらないときだけ折る */
  .home [data-keep-ja] { word-break: keep-all; overflow-wrap: break-word; }
  .home .hm-center { text-align: center; }
  .home .hm-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .home h2 { font-family: "Zen Maru Gothic", var(--font-en); font-weight: 700; font-size: 20px; margin: 0; }
  .hm-hero { position: relative; margin: -12px -16px 0; }
  .hm-cover { height: 210px; background-size: cover; background-color: var(--soft); position: relative; }
  .hm-cover[data-open] { cursor: pointer; }
  .hm-sticker { position: absolute; left: 16px; top: 16px; background: var(--paper); color: var(--ink); padding: 8px 14px 9px; border-radius: 4px; transform: rotate(-2.5deg);
                box-shadow: 0 3px 8px rgba(60, 40, 10, .18); display: flex; flex-direction: column; line-height: 1.25; max-width: calc(100% - 32px); }
  .hm-sticker-ja { font-family: "Zen Maru Gothic", var(--font-ja); font-weight: 900; font-size: 20px; }
  .hm-sticker-sub { font-size: 12px; color: var(--muted); }
  .hm-torn { display: block; width: 100%; height: 24px; margin-top: -23px; position: relative; }
  .hm-torn-fiber { fill: var(--paper); opacity: .85; }
  .hm-torn-edge { fill: var(--bg); }
  .hm-body { display: flex; flex-direction: column; gap: 20px; padding: 6px 0 28px; }
  .hm-card { background: var(--panel); border-radius: var(--hm-r); padding: 16px; box-shadow: 0 8px 24px rgba(60, 40, 10, .10); display: flex; flex-direction: column; gap: 12px; }
  .hm-kick { display: flex; align-items: center; gap: 8px; margin: 0; font-family: "Zen Maru Gothic", var(--font-en); font-weight: 700; font-size: 17px; }
  .hm-moon { width: 14px; height: 14px; border-radius: 50%; background: var(--moon); flex: none; }
  .hm-script { display: flex; gap: 8px; }
  .hm-sc { flex: 1; min-height: 72px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 4px; }
  .hm-sc.on { border: 2px solid var(--word); background: var(--word-f); }
  .hm-sc-sample { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
  .hm-sc-sample > span { font-family: var(--font-ja); font-size: 18px; font-weight: 700; }
  .hm-sc-sample small, .hm-sc-name { font-size: 12px; color: var(--muted); }
  .hm-sc.on .hm-sc-name { color: var(--word-t); font-weight: 700; }
  .hm-try-line { display: flex; gap: 12px; align-items: flex-start; }
  .hm-play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--word); color: var(--panel); font-size: 18px; box-shadow: 0 3px 0 var(--press); }
  .hm-play.soft { background: var(--word-f); color: var(--word); box-shadow: none; width: 48px; height: 48px; }
  .gs-stamp { display: flex; justify-content: center; margin: 2px 0 -4px; }   /* 入門の印（D-84 案 A）。そろった札の一言の上 */
  .hm-play-col { flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; }   /* ▶ と、その下の速さ（D-83 案 A。物語と同じ一つの値） */
  .hm-speed { font: inherit; font-size: 13px; min-height: 32px; min-width: 52px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); }
  .hm-play.pulse { animation: hm-pulse 1.8s infinite; }
  @keyframes hm-pulse { 0% { box-shadow: 0 3px 0 var(--press), 0 0 0 0 rgba(242, 193, 78, .9); } 100% { box-shadow: 0 3px 0 var(--press), 0 0 0 14px rgba(242, 193, 78, 0); } }
  .hm-line { flex: 1; min-width: 0; }
  /* 下の読み（Hiragana を選ぶと かなの下に romaji）があるときは、本文と同じく下に場所をとる（次の行の語の箱に重なった：学習者役 7 回目 ben-10） */
  .hm-try .hm-line .c-ja .jt { margin-bottom: 9px; }
  .hm-bubble { align-self: flex-start; position: relative; background: var(--word-f); border-radius: 16px; padding: 10px 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .hm-bubble::before { content: ""; position: absolute; left: var(--tail, 28px); top: -7px; width: 14px; height: 14px; background: var(--word-f); transform: rotate(45deg); }
  .hm-try [data-gi].hm-tapped { outline: 2px solid var(--word); outline-offset: 1px; border-radius: 6px; }   /* 吹き出しの語（2026-11-23 学習者役 mia-8） */
  .hm-bubble-ja { font-family: var(--font-ja); font-size: 18px; font-weight: 700; color: var(--word-t); position: relative; }
  .hm-bubble-en { font-size: 15px; position: relative; }
  /* 吹き出しの読み・辞書の形（D-52 案 A） */
  .hm-bubble-rd { font-size: 13px; color: var(--muted); position: relative; }
  .hm-bubble-dict { font-size: 15px; font-weight: 500; color: var(--muted); }
  /* Some kanji の見本の一行（D-52 案 B-1） */
  .hm-kanji-note { margin: 2px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--soft); }
  .hm-kanji-w { font-family: var(--font-ja); font-size: 20px; font-weight: 700; }
  .hm-hint { margin: 0; font-size: 14px; font-weight: 600; color: var(--word); }
  .hm-ok { font-family: "Zen Maru Gothic", var(--font-en); font-weight: 700; font-size: 14px; color: var(--word); }
  .hm-go { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--word); color: var(--panel);
           font-family: "Zen Maru Gothic", var(--font-en); font-weight: 700; font-size: 16px; box-shadow: 0 4px 0 var(--press); width: 100%; }
  .hm-go:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--press); }
  .hm-stop { min-width: 0; }
  .hm-stop-ja { margin: 0; font-family: var(--font-ja); font-size: 19px; line-height: 1.7; }
  .hm-stop-en { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
  .hm-left { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 2px dashed var(--line); }
  .hm-dots { display: flex; flex-wrap: wrap; gap: 6px; }
  .hm-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
  .hm-dots span.on { background: var(--word); }
  .hm-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
  .hm-bar span { display: block; height: 100%; background: var(--word); }
  .hm-verbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
  .hm-verb { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--word-f); }
  .hm-verb [lang="ja"] { font-family: var(--font-ja); font-weight: 700; color: var(--word-t); }
  .hm-verb span:last-child { font-size: 13px; }
  .hm-next-t { margin: 0; font-size: 15px; }
  .hm-next-t b { font-family: "Zen Maru Gothic", var(--font-ja); font-size: 22px; }
  .hm-pitch { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
  .hm-pitch-ja { margin: 0; font-family: "Zen Maru Gothic", var(--font-ja); font-weight: 900; font-size: 32px; line-height: 1.2; }
  .hm-pitch-en { margin: 0; font-family: "Zen Maru Gothic", var(--font-en); font-weight: 700; font-size: 19px; }
  .hm-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hm-tiles li { background: var(--panel); border-radius: 20px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; box-shadow: 0 2px 0 var(--line); }
  .hm-tiles b { font-weight: 500; font-size: 13px; line-height: 1.35; }
  .hm-tile-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--word-f); color: var(--word); display: grid; place-items: center; }
  .hm-today { display: flex; flex-direction: column; gap: 10px; }
  .hm-week { justify-content: space-between; }
  .hm-rows { padding: 4px 14px; gap: 0; }
  .hm-row-i { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 0; border: 0; background: none; text-align: left; width: 100%; color: inherit; }
  .hm-row-t { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .hm-row-t b { font-family: "Zen Maru Gothic", var(--font-en); font-size: 15px; }
  .hm-ic { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--word-f); color: var(--word); display: grid; place-items: center; font-size: 18px; }
  .hm-thumb { width: 40px; height: 40px; flex: none; border-radius: 50%; background-size: cover; }
  .hm-chev { color: var(--muted); font-size: 20px; }
  .hm-sep { display: block; height: 0; border-top: 2px dashed var(--line); }
  .hm-stamp { flex-direction: row; align-items: center; gap: 14px; }
  .hm-shelf { display: flex; flex-direction: column; gap: 14px; }
  .hm-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; padding: 0 4px; }
  .hm-paper { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--paper); padding: 6px 6px 10px; border: 0; border-radius: 6px; box-shadow: 0 3px 10px rgba(60, 40, 10, .12);
              transform: rotate(var(--tilt, 0deg)); text-align: left; color: var(--ink); transition: transform .15s; }
  .hm-paper:hover { transform: rotate(0deg) translateY(-2px); }
  .hm-paper-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 3px; background-size: cover; }
  .hm-paper-ja { font-family: "Zen Maru Gothic", var(--font-ja); font-weight: 700; font-size: 15px; padding: 0 4px; }
  .hm-paper .hm-small { padding: 0 4px; }
  .hm-badge { margin: 2px 4px 0; font-size: 12px; font-weight: 700; color: var(--word); }
  .hm-more { font-family: "Zen Maru Gothic", var(--font-en); font-weight: 700; color: var(--word); min-height: 44px; }
  .hm-loading { display: flex; flex-direction: column; gap: 14px; padding: 16px 0; }
  .hm-loading .sk:first-child { height: 200px; border-radius: 18px; }
  .hm-loading .sk { height: 60px; border-radius: 18px; }
  /* Getting started（gs.js・ui/home.js） */
  .gs-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--moon); color: var(--moon-ink);
             font-family: "Zen Maru Gothic", var(--font-en); font-weight: 700; font-size: 13px; }
  .gs-pill-n { background: var(--panel); color: var(--ink); border-radius: 999px; padding: 0 7px; font-size: 12px; }
  body[data-tab="home"]:has(#home .gs-card) .gs-pill { display: none; }   /* Home に同じ札があるときは上のボタンを出さない（二つ並ばない） */
  /* 開いた直後（どの画面か決まる前・Home を描き終える前）も出さない。前は読み込むたびに上の札が一瞬出て消えた（持ち主 11-26。W-gs-1） */
  body:not([data-tab]) .gs-pill, body[data-tab="home"]:not(:has(#home .hm-card, #home .gs-card)) .gs-pill { display: none; }
  /* Show me：押す所を少し光らせる（gs.js の pointAt。2.6 秒） */
  .gs-glow { outline: 3px solid var(--moon); outline-offset: 3px; border-radius: 8px; animation: gs-glow 1.3s ease-in-out 2; }
  @keyframes gs-glow { 50% { outline-color: color-mix(in srgb, var(--moon) 35%, transparent); outline-offset: 6px; } }
  @media (prefers-reduced-motion: reduce) { .gs-glow { animation: none; } }
  .gs-tip { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--moon) 22%, var(--panel)); border: 1px solid var(--moon); font-size: 15px; }
  .home h2.hm-kick { font-size: 17px; }
  .hm-script-note { margin: -4px 0 0; }
  .hm-phone-only { display: none; }
  @media (max-width: 720px) { .hm-phone-only { display: inline; } }
  .gs-card { border: 2px solid var(--moon); }
  .gs-head { display: flex; align-items: center; gap: 10px; }
  .gs-head h2 { font-family: "Zen Maru Gothic", var(--font-en); font-weight: 700; font-size: 19px; margin: 0; }
  .gs-count { margin-left: auto; font-family: "Zen Maru Gothic", var(--font-en); font-weight: 700; font-size: 14px; color: var(--word); }
  .gs-pieces { display: flex; max-width: 340px; }
  .gs-pc { flex: 1 1 0; min-width: 0; height: auto; overflow: visible; }
  .gs-pc + .gs-pc { margin-left: -10%; }
  .gs-pc path:first-child { fill: var(--panel); stroke: var(--line); stroke-width: 2; stroke-dasharray: 5 4; }
  .gs-pc.on path:first-child { fill: var(--word); stroke: var(--word); stroke-dasharray: none; }
  .gs-pc .gs-ck { fill: none; stroke: var(--panel); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .gs-list { list-style: none; margin: 0; padding: 0; }
  .gs-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 2px dashed var(--line); }
  .gs-ck-c { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
  .gs-item.done .gs-ck-c { background: var(--word); border-color: var(--word); color: var(--panel); }
  .gs-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .gs-txt b { font-family: "Zen Maru Gothic", var(--font-en); font-size: 15px; }
  .gs-item.done .gs-txt b { color: var(--muted); text-decoration: line-through; }
  .gs-how { font-size: 13px; color: var(--muted); }
  .gs-show { flex: none; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--word-f); color: var(--word); font-weight: 700; font-size: 13px; }
  .gs-all { margin: 0; font-size: 15px; }
  .hm-tagline { margin: 0 0 12px; font-size: 17px; font-weight: 600; color: var(--ink); }   /* 初めての人の一行（持ち主 11-25 案 B） */
  .gs-guest { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }   /* サインインしていない人だけ（持ち主 11-25 案 A） */
  .gs-foot { margin: 0; text-align: right; }
  .gs-foot .linkish { min-height: 44px; font-size: 13px; color: var(--muted); }
  .gs-sheet { border: 0; padding: 0; width: min(440px, calc(100% - 24px)); border-radius: 24px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); }
  .gs-sheet::backdrop { background: rgba(30, 24, 16, .45); }
  .gs-sheet-in { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
  .gs-x { width: 44px; height: 44px; border: 0; background: none; font-size: 22px; color: var(--muted); margin-right: -10px; }
  .gs-head .gs-x { margin-left: 4px; }
  /* 明るい色の箱（暗い画面で反転してまぶしかった：前は background: var(--ink)。2026-11-23 学習者役 mia-9） */
  .gs-note { margin-top: 10px; background: color-mix(in srgb, var(--moon) 20%, var(--panel)); color: var(--ink); border: 1px solid var(--moon); border-radius: 14px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; line-height: 1.45; }
  .gs-note > span { flex: 1 1 220px; }
  .gs-note .gs-q { color: var(--aux-t); }
  .gs-note .btn { min-height: 40px; }
  @media (max-width: 720px) {
    .hm-hero { margin: -12px -12px 0; }
    .gs-pill { margin-left: auto; order: 1; }
    .menu-btn { order: 2; }
    header:has(#gs-pill:not([hidden])) .menu-btn { margin-left: 8px; }
    .gs-pill .gs-pill-t { font-size: 12px; }
    .gs-sheet { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  }
  @media (min-width: 721px) {
    .gs-pill { order: 6; margin-left: 0; }   /* PC は右の端（Tab の順と同じ。kim9-6） */
    .home { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; }
    .hm-hero { margin: 18px 0 0; grid-column: 1; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; }
    .hm-cover { flex: 1 1 auto; height: auto; min-height: 300px; border-radius: 28px 28px 0 0; }   /* 右の札と同じ高さ（2026-11-23 見た目：下が空いていた） */
    .hm-body { display: contents; }
    .hm-body > .hm-try, .hm-body > .hm-cont, .hm-body > .hm-next { grid-column: 2; grid-row: 1; margin-top: 18px; }
    .hm-body > :not(.hm-try):not(.hm-cont):not(.hm-next) { grid-column: 1 / -1; margin-top: 22px; }
    .hm-sticker-ja { font-size: 26px; }
    .hm-pitch-ja { font-size: 44px; }
  }
  @media (prefers-reduced-motion: reduce) { .hm-play.pulse { animation: none; } .hm-paper, .hm-paper:hover { transform: none; transition: none; } }
