

  :root { --bg:#0a0b0d; --surface:#131519; --ink:#f4f6f8; --muted:#8a9099; --line:#23262c; --accent:#ff8c00; --accent-soft:rgba(255,140,0,.18); --on-accent:#fff; --cue:#ffd450; --jp-font:"Zen Kaku Gothic New","Hiragino Sans",sans-serif; --en-font:"Oswald","Arial Narrow",sans-serif; }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { background: var(--bg); color: var(--ink); font-family: var(--jp-font); font-size: 15px; line-height: 1.7;
         -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; }
  button { font: inherit; color: inherit; cursor: pointer; }
  button[disabled] { cursor: default; }
  .en { font-family: var(--en-font); }


  .gc { max-width: 1040px; margin: 0 auto; padding: 28px 20px 64px; }
  .gc-stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .gc-player { position: relative; }
  .gc-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; min-height: 200px; border-radius: 14px; overflow: hidden; background: var(--line); }
  .gc-frame[data-gc-wide="on"] { min-height: 0; }
  .gc-frame > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
  .gc-frame[data-gc-wide="on"] iframe { width: 1080px; height: 607.5px; transform-origin: 0 0; transform: scale(var(--gc-scale, 1)); }
  .gc-frame .gc-still { display: none; object-fit: cover; z-index: 2; background: var(--surface); }
  .gc-frame.gc-frame-still .gc-still { display: block; }
  .gc-play { display: block; margin: 14px auto 0; width: clamp(180px, 36%, 280px); min-height: 50px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 16px; font-weight: 700; }
  .gc-play[disabled] { opacity: .45; }
  .gc-play[data-mode="play"]::before { content: ''; display: inline-block; width: 0; height: 0; margin-right: 10px; vertical-align: -1px;
    border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

  .gc-play[data-mode="pause"]::before { content: ''; display: inline-block; width: 12px; height: 14px; margin-right: 10px; vertical-align: -2px; border: 0;
    background: linear-gradient(to right, currentColor 0 4.5px, transparent 4.5px 7.5px, currentColor 7.5px); }
  .gc-play::before { flex: none; }
  .gc-error { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 14px; }
  .gc-error[hidden] { display: none; }
  .gc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
  .gc-count { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
  .gc-sentence { margin: 0 0 22px; max-width: 34em; font-family: var(--en-font); font-size: var(--sentence-size, 22px); line-height: 1.45; color: var(--ink); }

  :root:has(#font button[data-v="narrow"][aria-pressed="true"]) .gc-sentence { font-weight: 500; }

  .gc-sentence:hover, .gc-sentence.seen { transition: color .2s, text-shadow .2s; }
  .gc-cut { padding: 0 .15em; color: var(--muted); user-select: none; }
  .gc-be { background: transparent; color: inherit; padding: 0 2px; font-weight: 700; box-shadow: inset 0 -.42em 0 var(--accent-soft); }
  .gc-line { display: block; color: var(--muted); }
  .gc-line-mark { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .12em; text-underline-offset: .2em; }
  .gc-sentence:not(:hover):not(.seen) .gc-line { color: transparent; text-decoration-color: transparent; }
  .gc-why { margin: -6px 0 18px; max-width: 34em; font-size: calc(var(--sentence-size, 22px) * .68); line-height: 1.75; color: var(--ink); padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
  .gc-why[hidden] { display: none; }

  .gc-note { list-style: none; margin: -8px 0 24px; max-width: 34em; display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
  .gc-note[hidden], .gc-note:not(.open), body[data-note="off"] .gc-note, body[data-note="off"] .gc-note-toggle { display: none; }

  .gc-note-toggle { display: inline-flex; align-items: center; gap: 7px; margin: -10px 0 18px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; cursor: pointer; }
  .gc-note-toggle::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .gc-note-toggle[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
  .gc-note-toggle:hover { color: var(--accent); }
  .gc-note-toggle[hidden] { display: none; }
  .gc-note.open { margin-top: -6px; }
  .gc-note-row { font-size: calc(var(--sentence-size, 22px) * .62); line-height: 1.6; color: var(--muted); }
  .gc-note-row + .gc-note-row { padding-top: 10px; border-top: 1px dashed var(--line); }
  .gc-note-en { display: block; font-family: var(--en-font); font-size: calc(var(--sentence-size, 22px) * .72); line-height: 1.4; color: var(--ink); margin-bottom: 2px; }

  .gc-reactions { display: grid; gap: 18px; margin: 6px 0 14px; }
  .gc-react-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .gc-react-label { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
  .gc-reaction { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14.5px; font-weight: 700; letter-spacing: .02em; transition: border-color .15s, color .15s, background .15s; }
  .gc-reaction::before { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-family: var(--en-font); font-size: 12px; font-weight: 700; opacity: .75; flex: none; }
  .gc-reaction[data-reaction$="_known"]::before { content: '✓'; }
  .gc-reaction[data-reaction$="_unknown"]::before { content: '✕'; }
  .gc-reaction:hover { border-color: var(--accent); color: var(--accent); }
  .gc-reaction[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
  .gc-reaction[aria-pressed="true"]::before { opacity: 1; }
  .gc-reaction[disabled] { opacity: .45; }
  .gc-reaction-prev { border-style: dashed; border-color: var(--accent); }

  @media all {
    .gc-reactions { display: flex; gap: 0; margin: 14px 0 0; }

    .gc-react-group { flex: 1 1 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
    .gc-react-group[data-gram-react-group="nosub"] { margin-left: 14px; }
    .gc-react-label { flex: 1 0 100%; text-align: center; margin-top: 2px; font-size: 0; letter-spacing: 0; color: var(--muted); }
    .gc-react-label::before { font-family: var(--en-font); display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .34em; text-indent: .34em; line-height: 1; transform: scale(1.06, .8); transform-origin: 50% 100%; }   
    .gc-react-group[data-gram-react-group="sub"] .gc-react-label::before { content: 'ON'; color: var(--ink); }
    .gc-react-group[data-gram-react-group="nosub"] .gc-react-label::before { content: 'OFF'; }
    .gc-reaction { flex: 1 1 0; min-height: 40px; padding: 0; font-size: 0; gap: 0; --rc: var(--muted); color: var(--rc); border-color: color-mix(in srgb, var(--rc) 45%, transparent); background: transparent; }
    .gc-reaction::before { width: 22px; height: 22px; font-size: 13px; opacity: 1; }
    @media (max-width: 480px) { .gc-react-group { gap: 4px; } .gc-react-group[data-gram-react-group="nosub"] { margin-left: 8px; } }
    .gc-reaction[data-reaction="sub_unknown"] { --rc: #e5484d; }
    .gc-reaction[data-reaction="sub_known"] { --rc: #34c07a; }
    .gc-reaction[data-reaction="nosub_unknown"] { --rc: #e9b83a; }
    .gc-reaction[data-reaction="nosub_known"] { --rc: #3b82f6; }
    .gc-reaction:hover { color: var(--rc); border-color: var(--rc); }
    .gc-reaction[aria-pressed="true"] { background: var(--rc); border-color: var(--rc); color: #fff; }
    .gc-reaction-prev { border-style: dashed; border-color: var(--rc); }
  }

  @media (max-width: 640px) {
    .gc-meta { margin-bottom: 16px; }
    .gc-sentence { margin-bottom: 24px; }
  }
  .gnav .back.review[hidden] { display: none; }
  .gc-next { border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); }
  .gc-next[disabled] { opacity: .45; }

  .gc-side .gc-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
  .gc-side .gc-ctl > .gc-play, .gc-side .gc-ctl > .gc-next { display: flex; align-items: center; justify-content: center; min-width: 0; width: auto; min-height: 44px; margin: 0; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .gc-done { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
  .gc-done[hidden] { display: none; }
  @media (max-width: 860px) { .gc-stage { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

  @media (min-width: 1100px) {
    body[data-view="clips"] .gc, body[data-view="clips"] .gc-pick { max-width: 1440px; }
    body[data-view="clips"] .gc-stage { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 44px; }
  }
  .gc-pick { max-width: 1040px; margin: 0 auto; padding: 24px 20px 0; display: grid; gap: 10px; }
  .gc-pick-row { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }

  .gc-pick-sum { justify-self: start; max-width: 100%; display: inline-flex; align-items: center; gap: 12px; padding: 9px 15px 9px 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.4; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
  .gc-pick-sum:hover { border-color: var(--muted); }
  .gc-pick-sum[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .gc-pick-k { font-family: var(--en-font); font-size: 11px; letter-spacing: .22em; color: var(--muted); font-weight: 500; }
  .gc-pick-pair { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
  .gc-pick-v { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gc-pick-sep { width: 1px; height: 14px; background: var(--line); flex: none; }
  .gc-pick-sum::after { content: ''; width: 7px; height: 7px; margin-left: 2px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-2px) rotate(45deg); transition: transform .2s; flex: none; }
  .gc-pick-sum[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); border-color: var(--accent); }
  .gc-pick-panel { display: grid; gap: 12px; padding: 14px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .gc-pick:not(.gc-pick-open) .gc-pick-panel { display: none; }

  .gc-pick.with-tools { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }

  @media (min-width: 1100px) {
    body[data-view="clips"] .gc-pick.with-tools { max-width: none; padding-left: calc(max(0px, (100% - 1440px) / 2) + 20px); padding-right: 24px; }
  }
  .gc-pick.with-tools .gc-pick-panel { grid-column: 1 / -1; }
  .o-tools { display: flex; align-items: center; gap: 18px; }
  .o-tools .o-clock { padding: 0; gap: 0; }
  .o-tools .o-clock::before { display: none; }
  .o-tools .o-flag { margin: 0; }
  .o-tools > :last-child { margin-right: -7px; }

  @media (max-width: 640px) {
    .gc-pick.with-tools { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    .gc-pick-sum { display: flex; min-width: 0; justify-self: stretch; align-items: center; min-height: 44px; padding: 0 16px; font-size: 14px; }
    .gc-pick-sum::after { margin-left: auto; }
    .gc-pick-sum > .gc-pick-v { flex: 1 1 auto; }
    .gc-pick-pair { flex-direction: row; justify-content: center; align-items: center; gap: 8px; }
    .gc-pick-sum:has(> .gc-pick-pair:only-of-type) { display: inline-flex; justify-self: start; gap: 8px; min-height: 0; padding: 5px 10px 4px 12px; font-size: 13px; }
    .gc-pick-sum:has(> .gc-pick-pair:only-of-type) .gc-pick-k { font-size: 11px; }
    .gc-pick-sum:has(> .gc-pick-pair:only-of-type) .gc-pick-pair { gap: 6px; }
    .gc-pick-sum:has(> .gc-pick-pair:only-of-type)::after { width: 6px; height: 6px; }
    .gc-pick.with-tools:has(> .gc-pick-sum > .gc-pick-pair:only-of-type) { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding-top: 8px; }
    .gc-pick.with-tools:has(> .gc-pick-sum > .gc-pick-pair:only-of-type) .gc-pick-sum { margin-right: 0; }
    .gc-pick.with-tools:has(> .gc-pick-sum > .gc-pick-pair:only-of-type) .o-tools { margin-left: 0; justify-content: flex-end; }
    .gc-pick.with-tools:has(> .gc-pick-sum > .gc-pick-pair:only-of-type) .gc-pick-panel { grid-column: 1 / -1; }
    .gc-pick-sum:has(> .gc-pick-pair:only-of-type)::after { margin-left: 2px; }
    .gc-pick-pair .gc-pick-v { max-width: 100%; }
    .gc-pick-sum > .gc-pick-sep { height: 18px; }
    .gc-pick-pair .gc-pick-sep { display: none; }
    .gc-pick-k { font-size: 11px; }
    .gc-pick.with-tools .o-tools { justify-self: stretch; justify-content: space-between; gap: 12px; margin: 0 22px; }
    .o-tools > :last-child { margin-right: 0; }
    .o-tools .o-clock { order: 0; flex: none; white-space: nowrap; font-size: 13px; padding: 5px 10px 4px; margin-left: 2px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
    .o-tools .o-ai { margin-left: auto; }
    .o-tools .o-goal { order: 1; flex: none; margin: 0; padding: 0; gap: 12px; }
    .o-tools .o-goal .g + .g::before { content: ''; display: inline-block; flex: none; width: 1px; height: 1em; margin-right: 4px; align-self: center; background: var(--line); }
    .o-tools .o-goal small { display: none; }
    .o-tools .o-goal b { font-size: 15px; }
    .o-tools .o-flag { width: 44px; height: 44px; }
    .gc-meta { display: none; }
    body:not([data-view="clips"]) .o-goal { display: none; }
  }
  .gc-pick-row::before { content: attr(data-gram-label); font-family: var(--en-font); font-size: 11px; letter-spacing: .22em; color: var(--muted); font-weight: 500; align-self: center; min-width: 68px; flex: none; }

  @media (max-width: 600px) {
    .gc-pick { padding: 16px 0 0; gap: 8px; }
    body[data-view="clips"] .gc { padding-top: 12px; }
    .gc-pick-sum { margin: 0 22px; gap: 9px; padding: 11px 14px 11px 15px; font-size: 13px; }
    .gc-pick-panel { margin: 0 22px; padding: 12px 0 14px; gap: 10px; }
    .gc-pick-row { padding: 0 22px; }
    .gc-pick-row::before { min-width: 62px; }
    .gc-pick-row { flex-wrap: nowrap; overflow-x: auto; padding: 0 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .gc-pick-row::-webkit-scrollbar { display: none; }
    .gc-pick-btn { flex: none; white-space: nowrap; padding: 8px 12px; font-size: 13px; position: relative; } .gc-pick-btn::before { content: ''; position: absolute; inset: -4px 0; }
  }
  .gc-pick-btn { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; line-height: 1.5; }
  .gc-pick-btn-on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 700; }
  .gc-none { max-width: 1040px; margin: 0 auto; padding: 40px 20px 64px; }
  .gc-none-title { margin: 0 0 8px; font-size: 18px; line-height: 1.6; color: var(--ink); }
  .gc-none-text { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
  .grammar__status { max-width: 1040px; margin: 0 auto; padding: 8px 20px; font-size: 12px; color: var(--muted); }


  .gc-songs { max-width: 1040px; margin: 0 auto; padding: 8px 20px 48px; }
  .gc-songs h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
  .gc-songs h3 .fav { color: var(--accent); }
  .gc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; margin-bottom: 26px; }
  .gc-grid.gc-more { margin-top: -6px; }
  .gc-grid[hidden] { display: none; }
  .o-ai[hidden] { display: none; }

  @media (max-width: 640px) {
    .gc-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
    .gc-card { border-radius: 14px; }
    .gc-card .q { left: 14px; right: 14px; bottom: 10px; font-size: 18px; }
    .gc-card .meta { padding: 10px 14px 12px; gap: 8px; }
    .gc-card .who b { font-size: 15px; }
    .gc-card .who span { font-size: 13px; }
    .gc-card .go { font-size: 12px; letter-spacing: .1em; }
  }
  .gc-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0,0,0,.10); cursor: pointer; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s; }
  .gc-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 18px 44px rgba(0,0,0,.16); }
  .gc-card.now, .gc-card.now:hover { transform: none; }
  .gc-card.now { box-shadow: 0 0 0 2px var(--accent), 0 18px 44px rgba(0,0,0,.16); }
  .gc-card .th { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
  .gc-card .th img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform .5s; }
  .gc-card:hover .th img { transform: scale(1.07); }
  .gc-card .th::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); pointer-events: none; }
  .gc-card .q { position: absolute; left: 16px; right: 16px; bottom: 12px; margin: 0; z-index: 1; color: #fff; font-family: var(--en-font); font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: .005em; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
  .gc-card .q::before { content: "“"; opacity: .6; } .gc-card .q::after { content: "”"; opacity: .6; }

  .gc-card .play { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
  .gc-card button.play { border: 0; background: transparent; cursor: pointer; }
  .gc-card .play b { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.7); background: rgba(0,0,0,.45); backdrop-filter: blur(4px); color: #fff; font-size: 16px; font-weight: 700; letter-spacing: .06em; }
  .gc-card:hover .play { opacity: 1; }
  @media (hover: none) { .gc-card:not(.now):hover { transform: none; box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(0,0,0,.10); } .gc-card:hover .th img { transform: scale(1.02); } .gc-card .play { display: none; } .gc-card:active { transform: scale(.985); } }
  .gc-card.now .play, .gc-card.now .q, .gc-card.now .lv, .gc-card.now .t, .gc-card.now .th::after { display: none; }
  .gc-card .meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 13px; }
  .gc-card .who { display: grid; min-width: 0; }
  .gc-card .who b { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gc-card .who span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gc-card .go { flex: none; font-family: var(--en-font); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-decoration: none; white-space: nowrap; }
  .eia-grammar-song-origin { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 1; }
  .eia-grammar-song-layer { position: absolute; overflow: hidden; z-index: 1; }
  .eia-grammar-song-slot { width: 100%; height: 100%; }
  .eia-grammar-song-layer iframe { width: 100%; height: 100%; border: 0; display: block; }
  .eia-grammar-song-controls { position: absolute; inset: 0; pointer-events: none; }
  .eia-grammar-song-controls .again { position: absolute; inset: 0; pointer-events: auto; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 12px; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); cursor: default; }
  .eia-grammar-song-controls .again button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 700; letter-spacing: .06em; color: #fff; background: rgba(255,255,255,.14); border: 1.5px solid rgba(255,255,255,.7); border-radius: 999px; padding: 12px 26px; cursor: pointer; }
  .eia-grammar-song-controls .again button svg { width: 16px; height: 16px; flex: none; }
  .eia-grammar-song-controls .again button[data-song="resume"] svg { fill: currentColor; stroke: none; }
  .eia-grammar-song-controls .again button[data-song="restart"] svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .eia-grammar-song-controls .again button:hover { background: rgba(255,255,255,.26); }
  body[data-song-player="loading"] .gc-card, body[data-song-player="error"] .gc-card,
  body[data-song-player="loading"] .eia-grammar-songs__play, body[data-song-player="error"] .eia-grammar-songs__play { cursor: default; }
  body[data-song-player="loading"] .gc-card .th img, body[data-song-player="error"] .gc-card .th img,
  body[data-song-player="loading"] .eia-grammar-songs__thumbnail img, body[data-song-player="error"] .eia-grammar-songs__thumbnail img { opacity: .55; }
  body[data-song-player="loading"] .gc-card .play, body[data-song-player="error"] .gc-card .play,
  body[data-song-player="loading"] .eia-grammar-songs__overlay, body[data-song-player="error"] .eia-grammar-songs__overlay { display: none; }
  body[data-song-player="loading"] .gc-card .th::before, body[data-song-player="loading"] .eia-grammar-songs__thumbnail::before,
  body[data-song-player="error"] .gc-card .th::before, body[data-song-player="error"] .eia-grammar-songs__thumbnail::before { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #fff; font: 700 14px var(--jp-font, sans-serif); text-shadow: 0 1px 6px #000; pointer-events: none; }
  body[data-song-player="loading"] .gc-card .th::before, body[data-song-player="loading"] .eia-grammar-songs__thumbnail::before { content: "読み込み中"; }
  body[data-song-player="error"] .gc-card .th::before, body[data-song-player="error"] .eia-grammar-songs__thumbnail::before { content: "再生できませんでした\Aページを再読み込みしてください"; white-space: pre-line; text-align: center; padding: 0 8px; }
  .gc-songs .empty, .gc-empty { font-size: 13px; color: var(--muted); }
  .gc-loading { font-size: 14px; font-weight: 500; color: var(--muted); padding: 24px 0; }
  .gc-loading span { display: inline-block; animation: gc-dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; width: 0; }
  @keyframes gc-dots { to { width: 1.4em; } }
  .gc-songs h3 .n { font-family: var(--en-font); font-weight: 700; color: var(--accent); }
  .gc-toggle { display: block; margin: 12px auto 0; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
  .gc-toggle:hover { color: var(--ink); }
  .grammar__status:empty { display: none; }
  .grammar-empty { max-width: 1040px; margin: 0 auto; padding: 60px 20px; }
  .grammar-empty__eyebrow { font-size: 11px; letter-spacing: .3em; color: var(--muted); }
  .grammar-empty__title { font-size: 22px; margin: 8px 0; }
  .grammar-empty__text { color: var(--muted); }
  .grammar-empty__back { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 24px; padding: 0 22px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 15px; font-weight: 700; text-decoration: none; }
  @media (max-width: 640px) { .grammar-empty { padding: 32px 22px; } .grammar-empty__title { font-size: 20px; } .grammar-empty__text { font-size: 15px; } .grammar-empty__back { display: flex; } }


  .gearbtn { position: relative; flex: none; z-index: 55; width: 36px; height: 36px; border-radius: 50%; padding: 0;
    display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    opacity: .9; box-shadow: 0 6px 18px -12px rgba(0,0,0,.5); }
  .gearbtn[hidden] { display: none; }

  .gearbtn.exflag svg { stroke-width: 1.8; stroke-linecap: round; }
  .gearbtn.exflag.sent { color: var(--accent); border-color: var(--accent); }
  body:not([data-view="examples"]) .gearbtn.exflag { display: none; }
  .gearbtn svg { width: 17px; height: 17px; display: block; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
  .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.7,.3,1);
    background: var(--surface); border-top: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 16px 20px 26px; max-height: 76vh; overflow: auto;
    box-shadow: 0 -16px 44px -22px rgba(0,0,0,.6); font-family: "Zen Kaku Gothic New","Hiragino Sans",sans-serif; }

  .sheet { overscroll-behavior: contain; }
  .sheet.open { transform: none; }
  @media (min-width: 600px) and (hover: none) { .sheet { max-width: 720px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }

  @media (min-width: 820px) and (hover: hover) and (pointer: fine) {
    .sheet { left: auto; right: 20px; bottom: auto; top: 20px; width: 390px; max-height: min(88vh, 820px); border: 1px solid var(--line); border-radius: 14px;
      transform: translateY(-8px) scale(.97); opacity: 0; pointer-events: none; transform-origin: top right; transition: transform .18s cubic-bezier(.2,.7,.3,1), opacity .18s ease; }
    .sheet.open { transform: none; opacity: 1; pointer-events: auto; }
    #prefs { top: 66px; max-height: min(calc(100vh - 86px), 820px); }
  }
  .sheet h3 { font-size: 17px; margin-bottom: 12px; }
  .row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: nowrap; }
  .row > .seg { flex: 1 1 auto; min-width: 0; }
  .row > span.label { font-size: 12px; color: var(--muted); width: 88px; }
  .seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
  .seg button { flex: 1 1 0; padding: 8px 13px; border: 0; background: transparent; font-size: 12px; text-align: center; white-space: nowrap; }
  .seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

  #bgmAlbum { border: 0; border-radius: 0; overflow: visible; flex-wrap: wrap; gap: 8px; }
  #bgmAlbum button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  #bgmAlbum button[aria-pressed="true"] { border-color: var(--accent); }
  #bgmBox .row > span.label { flex-shrink: 0; }
  .dots { display: flex; gap: 12px; flex-wrap: wrap; }

  .row.usage { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
  .row.usage .label b { font-family: var(--en-font); font-weight: 500; font-size: 15px; letter-spacing: .04em; color: var(--ink); margin-left: 6px; }
  .row.usage .ubar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
  .row.usage .ubar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--accent); transition: width .4s ease; }
  .row.usage.low .ubar i { background: var(--muted); }
  .row.usage small { display: block; margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
  .dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; padding: 0; background: var(--c); box-shadow: 0 0 0 1px var(--line); }
  .dot.on { border-color: var(--surface); box-shadow: 0 0 0 2px var(--ink); }
  .dot.def { margin-right: 8px; position: relative; }
  .dot.def::after { content: ""; position: absolute; right: -10px; top: 6px; width: 1px; height: 18px; background: var(--line); }
  .step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
  .step button { width: 40px; height: 34px; border: 0; background: transparent; color: var(--ink); font-size: 18px; line-height: 1; }
  .step button:active { background: var(--accent-soft); }
  .step .num { min-width: 44px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink); }
  #font button[data-v="gothic"] { font-family: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, sans-serif; }
  #font button[data-v="serif"] { font-family: "EB Garamond", Georgia, serif; font-size: 14px; }
  #font button[data-v="narrow"] { font-family: "Oswald", "Arial Narrow", sans-serif; letter-spacing: .04em; }
  #font button[data-v="mono"] { font-family: "IBM Plex Mono", ui-monospace, monospace; }
  .box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0 0; margin: 4px 0 16px; }
  .row > .num { font-size: 12px; min-width: 34px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
  .seg.track { flex: 1 1 auto; max-width: 220px; }
  .seg.track .num { flex: 1; min-width: 0; text-align: center; font-size: 12px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center; }
  .seg.track button { flex: 0 0 auto; font-size: 18px; line-height: 1; padding: 6px 14px; }
  .bgmplay { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent); background: transparent; color: var(--accent); display: grid; place-items: center; padding: 0; }
  .bgmplay svg { width: 18px; height: 18px; fill: currentColor; }
  .bgmplay .s, .bgmplay[aria-pressed="true"] .p { display: none; }
  .bgmplay[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
  .bgmplay[aria-pressed="true"] .s { display: block; }
  .row input[type="range"] { flex: 1 1 120px; min-width: 120px; margin: 0; height: 28px; background: transparent; -webkit-appearance: none; appearance: none; --p: 30%; }
  .row input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent)) 0 / var(--p) 100% no-repeat, var(--line); }
  .row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
  .row input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
  .row input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
  .row input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
  body.peek .sheet, body.peek .gearbtn, body.peek .gnav { display: none; }

  .gnav { display: flex; align-items: center; gap: 14px; padding: 18px 24px 14px; font-family: "Zen Kaku Gothic New","Hiragino Sans",sans-serif; }

  .gnav .home { font-family: var(--en-font); font-size: 44px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); text-decoration: none; flex: none; line-height: 1; margin-right: 6px; }
  .gnav .home small { margin-left: .4em; color: inherit; font: inherit; }

  .gnav .unit { min-width: 0; margin-left: 10px; padding-left: 22px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--ink); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .gnav .unit b { font-family: var(--en-font); font-size: 15px; font-weight: 700; letter-spacing: .1em; color: var(--accent); margin-right: 10px; }
  .gnav .unit b::after, .o-mob b::after { content: '.'; }
  .gnav .back { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink); text-decoration: none; white-space: nowrap; flex: none; line-height: 1;
    padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: border-color .18s, color .18s, transform .18s; }
  .gnav .back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .gnav .back .k { font-size: 12.5px; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding-left: 8px; border-left: 1px solid var(--line); margin-left: 2px; }
  .gnav .back:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-2px); }
  .gnav .back:hover .k { color: var(--accent); }
  .gnav .back.review { padding: 8px 16px; }
  .gnav #reviewLink { height: 36px; padding: 0 12px; font-size: 12px; gap: 6px; }
  .gnav .grow { flex: 1 1 auto; }

  body[data-review] .o-mob, body[data-review] .o-tabs-slot { display: none; }
  body[data-review] .o-row { flex-wrap: nowrap; align-items: center; gap: 14px; padding: 12px 0; }
  body[data-review] .o-crumb-slot { flex: 1 1 auto; min-width: 0; padding: 0; border-right: 0; }
  body[data-review] .o-clock { order: 0; margin-left: auto; padding: 0; gap: 0; }
  body[data-review] .o-clock::before { display: none; }
  body[data-review] .gc-pick { padding-top: 12px; }
  body[data-review] .gc { padding-top: 12px; }
  body[data-review] .gnav .gear-slot { display: none; }
  @media (max-width: 640px) { body[data-review] .o-deck { padding: 0 22px; } }
  .o-deck .back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--muted); text-decoration: none; white-space: nowrap; line-height: 1; }
  .o-deck .back svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .o-deck .back .k { font-size: 11.5px; letter-spacing: .1em; padding-left: 7px; margin-left: 1px; border-left: 1px solid var(--line); }
  .o-deck .back:hover { color: var(--accent); }
  .o-deck .seg { display: flex; gap: 28px; border: 0; border-radius: 0; background: transparent; overflow: visible; margin-bottom: -1px; }
  .o-deck .seg[hidden] { display: none; }
  .o-deck .seg button { flex: none; padding: 10px 2px 11px; border: 0; background: transparent; font-size: 14px; color: var(--ink); font-weight: 700; border-bottom: 2px solid transparent; white-space: nowrap; letter-spacing: .04em; }   
  .o-deck .seg button[aria-pressed="true"] { background: transparent; color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }

  @media (max-width: 640px) {
    .o-deck .seg { gap: 0; margin-bottom: 0; }
    .o-deck .seg button { flex: 1 1 0; padding: 10px 0 9px; text-align: center; }
  }   
  @media (max-width: 640px) { .gc-meta { justify-content: center; } .gc-sentence { text-align: center; margin-left: auto; margin-right: auto; } }   
  .gnav .seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
  .gnav .seg[hidden] { display: none; }
  .gnav .seg button { padding: 7px 16px; border: 0; background: transparent; font-size: 12.5px; color: var(--muted); white-space: nowrap; }


  @media (max-width: 640px) {
    .gnav { gap: 4px; padding: 16px 22px 10px; }
    .gnav .home { margin-right: 0; font-size: 46px; letter-spacing: .2em; transform: none; }
    .gnav .home small { display: none; }
    .gearbtn { width: 44px; height: 44px; }
    .gnav .unit { display: none; }
    .gnav .back { padding: 8px 14px 8px 10px; gap: 6px; font-size: 12px; }
    .gnav .back .k { display: none; }
    .gnav .seg { flex: none; }
    .gnav .seg button { padding: 7px 10px; font-size: 12px; }
    .gnav .seg button:first-child { padding-left: 11px; }
    .gnav .seg button:last-child { padding-right: 11px; }
    .gnav .back.review { padding: 8px 8px; }
    .gnav #reviewLink { height: 44px; padding: 0 8px; }
  }
  .gnav .seg button:first-child { padding-left: 16px; }
  .gnav .seg button:last-child { padding-right: 16px; }
  .gnav .seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }

  body:not([data-view="clips"]) .k-chip, body:not([data-view="clips"]) .o-clock, body:not([data-view="clips"]) .o-flag, body:not([data-view="clips"]) .o-ai, body:not([data-view="clips"]) .u-nights, body:not([data-view="clips"]) .o-goal { display: none; }

  body[data-view="slides"] [data-grammar-root], body[data-view="slides"] [data-grammar-status] { display: none; }
  @media (max-width: 640px) {
  }
  #slides { display: none; max-width: 760px; margin: 0 auto; padding: 24px 20px 64px; font-family: var(--jp-font); }
  body[data-view="slides"] #slides { display: block; }

  #slides .eia-grammar-slides-view { position: relative; }
  #slides .eia-grammar-slides-view__header { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; }
  #slides .eia-grammar-slides-view__counter { margin: 0; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: .06em; white-space: nowrap; }
  #slides .eia-grammar-slides-view__progress { flex: 1; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
  #slides .eia-grammar-slides-view__progress::before { content: ''; display: block; height: 100%; width: var(--eia-grammar-slides-progress, 0%); background: var(--accent); transition: width .25s; }
  #slides .eia-grammar-slides-view__slide { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
  #slides .eia-grammar-slides-view__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
  #slides .eia-grammar-slides-view__image-error { margin: 0; padding: 20px 24px; color: var(--muted); }

  #slides .eia-grammar-slides-view__text { margin: 0; padding: 20px 24px 24px; font-family: var(--jp-font); font-size: calc(var(--sentence-size, 22px) * .75); line-height: 1.75; color: var(--ink); }
  #slides .eia-grammar-slides-view__media:has(img) + .eia-grammar-slides-view__text { border-top: 1px solid var(--line); }
  @media (max-width: 600px) { #slides .eia-grammar-slides-view__text { padding: 20px 20px 22px; } }


  body[data-view="examples"] [data-grammar-root], body[data-view="examples"] [data-grammar-status] { display: none; }
  #examples { display: none; max-width: 760px; margin: 0 auto; padding: 34px 20px 64px; font-family: var(--jp-font); }
  @media (max-width: 600px) { #examples, #slides { padding-left: 22px; padding-right: 22px; } .ex-body { padding: 18px 18px 20px; } }
  body[data-view="examples"] #examples { display: block; }
  body[data-view="songs"] [data-grammar-root], body[data-view="songs"] [data-grammar-status] { display: none; }
  #songs { display: none; }
  body[data-view="songs"] #songs { display: block; }

  @media (max-width: 900px) {
    body[data-view="slides"] #slides, body[data-view="examples"] #examples { display: flex; flex-direction: column; max-width: min(760px, calc(100% - 92px)); }
    #examples .ex-head { order: 0; margin: 0 0 16px; }
    body[data-view="examples"] #examples { padding-top: 16px; }
    #examples .ex-nav { order: 3; }
    #examples .ex-ticks { order: 2; }
  }
  @media (max-width: 640px) {
    body[data-view="slides"] #slides, body[data-view="examples"] #examples { max-width: 480px; }
  }
  .ex-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
  .ex-head .bar { flex: 1 1 auto; height: 7px; margin: 0 16px; background: var(--line); border-radius: 4px; overflow: hidden; }
  .ex-head .bar i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: var(--accent); transition: width .25s; }

  .ex-stage { position: relative; }
  .ex-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 2; transition: transform .15s, color .15s; }
  .ex-arrow.prev { left: -58px; } .ex-arrow.next { right: -58px; }
  .ex-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .ex-arrow:hover { color: var(--accent); transform: translateY(-50%) scale(1.06); }
  .ex-arrow:disabled { opacity: .25; cursor: default; transform: translateY(-50%); }
  @media (max-width: 600px) { .ex-arrow { display: none; } }
  .ex-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; box-shadow: 0 18px 44px -30px rgba(0,0,0,.5); }
  .ex-art { position: relative; aspect-ratio: 16 / 9; background: var(--accent-soft); display: grid; place-items: center; color: var(--muted); font-size: 12px; letter-spacing: .2em; }
  .ex-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .ex-body { padding: 22px 24px 24px; }
  .ex-en { font-family: var(--en-font); font-size: calc(var(--sentence-size, 22px) * 1.05); line-height: 1.3; color: var(--ink); display: flex; align-items: flex-start; justify-content: center; text-align: center; gap: 12px; }

  .ex-say { display: flex; justify-content: center; margin-top: 14px; }
  .ex-say .say { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--accent); }
  .ex-say .say svg { width: 20px; height: 20px; fill: currentColor; }
  .ex-say .say[hidden] { display: none; }
  .ex-more { margin-top: 18px; }
  .ex-ja { font-size: calc(var(--sentence-size, 22px) * .68); line-height: 1.8; color: var(--ink); }
  .ex-why { margin-top: 12px; font-size: calc(var(--sentence-size, 22px) * .66); line-height: 1.75; color: var(--ink); padding: 12px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 10px 10px 0; }
  .ex-why .lab { display: block; font-size: 11px; letter-spacing: .24em; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
  .ex-nav { display: flex; gap: 10px; margin-top: 16px; }
  .ex-nav button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; }
  .ex-nav button::before { content: ''; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-family: var(--en-font); font-size: 12px; line-height: 1; }
  .ex-nav button[data-act="ex-ok"]::before { content: '✓'; }
  .ex-nav button[data-act="ex-ng"]::before { content: '✕'; }
  .ex-nav button:hover { border-color: var(--accent); color: var(--accent); }
  .ex-nav button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }

  .ex-ticks { display: flex; justify-content: center; align-items: center; gap: 5px; height: 40px; padding: 0 10px; margin-top: 14px; touch-action: none; user-select: none; -webkit-user-select: none; }
  .ex-ticks button { --h: 9px; --s: 3px; flex: none; width: 2px; height: var(--h); padding: 0; border: 0; background: none; position: relative; cursor: pointer; }
  .ex-ticks button::before { content: ''; position: absolute; left: -3px; right: -3px; top: -14px; bottom: -14px; }
  .ex-ticks button::after { content: ''; position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--v, var(--s)); transform: translate(-50%, -50%); border-radius: 999px; background: var(--muted); opacity: .45; pointer-events: none; transition: width .18s, height .18s; }
  .ex-ticks button[data-d="3"] { --h: 12px; --s: 4px; }
  .ex-ticks button[data-d="3"]::after { opacity: .55; }
  .ex-ticks button[data-d="2"] { --h: 16px; --s: 5px; }
  .ex-ticks button[data-d="2"]::after { opacity: .7; }
  .ex-ticks button[data-d="1"] { --h: 22px; --s: 6px; }
  .ex-ticks button[data-d="1"]::after { opacity: .85; }
  .ex-ticks button[data-m]::after { background: var(--accent); opacity: .6; }
  .ex-ticks button[data-d="0"] { --h: 30px; --s: 6px; --v: 20px; }
  .ex-ticks button[data-d="0"]::after { background: var(--accent); opacity: 1; z-index: 1; }
  .ex-head .bar { position: relative; }
  .ex-head .bar em { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); width: 3px; margin-left: -1px; background: var(--ink); opacity: .6; }
  .ex-reward { max-width: 520px; margin: 0 auto; }
  .ex-reward-eb { margin: 0 0 10px; font-family: var(--en-font); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; text-align: center; }
  .ex-nav.one { justify-content: center; }
  .ex-nav.one button { flex: 0 1 320px; }
  .ex-nav.one button::before { display: none; }
  #grammarSongs .ex-reward { margin: 0 auto 18px; }
  @media (max-width: 700px) { .ex-ticks { gap: 3px; height: 34px; margin-top: 10px; } .ex-ticks button { --s: 2px; } .ex-ticks button[data-d="3"] { --s: 3px; } .ex-ticks button[data-d="2"] { --s: 4px; } .ex-ticks button[data-d="1"] { --s: 5px; } .ex-ticks button[data-d="0"] { --h: 26px; --s: 5px; --v: 16px; } }
  @media (max-width: 640px) { .ex-ticks { gap: 4px; height: 44px; margin-top: 8px; } .ex-ticks button { width: 3px; } .ex-ticks button::before { left: -2px; right: -2px; top: -18px; bottom: -18px; } }
  .slides-more { margin-top: 18px; text-align: center; }
  .slides-more button { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }

  .gc-sentence, .ex-en > span { cursor: pointer; }




  .gc-sentence:not(:hover):not(.seen) { color: transparent; text-shadow: 0 0 17px var(--ink), 0 0 30px var(--ink); }
  .gc-sentence:not(:hover):not(.seen) .gc-be, .gc-sentence:not(:hover):not(.seen) .gc-cut { color: transparent; background: transparent; box-shadow: none; border-bottom-color: transparent; }

  .ex-en > span:not(:hover):not(.seen) { color: transparent; text-shadow: 0 0 17px var(--ink), 0 0 30px var(--ink); }

  .gc-sentence:not(:hover):not(.seen) .gc-h { color: var(--ink); text-shadow: none; }
  .gc-sentence:not(:hover):not(.seen) .gc-be .gc-h { color: var(--accent); }
  .gc-sentence .gc-cut:first-child { display: none; }
  .dict .word { font-size: 26px; font-weight: 700; }
  .dict .ipa { font-size: 13px; color: var(--muted); margin-top: 2px; }
  .dict .star { color: var(--accent); font-size: 13px; margin-top: 4px; letter-spacing: .1em; }
  .dict .lab { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin: 16px 0 4px; }
  .dict .desc { font-size: 15px; line-height: 1.7; }
  .dict .miss { color: var(--muted); font-size: 13px; margin-top: 16px; }
  .dict .illust { position: relative; width: 100%; height: 150px; overflow: hidden; border-radius: 8px; background: var(--accent-soft); margin: 16px 0 4px; }
  .dict .illust img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .dict .illust[hidden] { display: none; }
  .dict .knowbtn { margin-top: 18px; width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; }

  @media (min-width: 820px) and (hover: hover) and (pointer: fine) {
    .sheet.dict, .sheet.ai { top: auto; bottom: 20px; transform-origin: bottom right; transform: translateY(8px) scale(.97); }
    .sheet.dict.open, .sheet.ai.open { transform: none; }


    .sheet.inflow { position: static; width: auto; max-width: 560px; margin: 26px 0 0; max-height: max(280px, min(70vh, 680px, var(--sheet-room, 100vh))); transform: none; opacity: 1; pointer-events: auto; box-shadow: 0 18px 44px -26px rgba(0,0,0,.7); overscroll-behavior: auto; }
    .sheet.inflow:not(.open) { display: none; }
    .sheet.ai.inflow { max-width: none; margin: 22px 0 0; padding: 16px 20px; border-radius: 16px; max-height: max(280px, min(60vh, 600px, var(--sheet-room, 100vh))); }

    body[data-view="examples"] .sheet.dict, body[data-view="clips"] .sheet.dict { left: 0; right: 0; bottom: 0; width: auto; max-width: 720px; margin: 0 auto; border-radius: 22px 22px 0 0; border-bottom: 0;
      transform: translateY(105%); opacity: 0; pointer-events: none; transform-origin: bottom center; transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity 0s linear .3s; }
    body[data-view="examples"] .sheet.dict.open, body[data-view="clips"] .sheet.dict.open { transform: none; opacity: 1; pointer-events: auto; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
  }
  .dict .closebar { margin-top: 12px; }

  .sheet.ai { display: flex; flex-direction: column; }
  .ai .ai-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; font-size: 15px; line-height: 1.85; }
  .ai .ai-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .ai .ai-chat[hidden] { display: none; }
  .ai .ai-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .ai .ai-wait { display: flex; align-items: center; gap: 7px; padding: 12px 0; color: var(--muted); }
  .ai .ai-wait[hidden] { display: none; }
  .ai .ai-wait span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes ai-wait-pulse { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
    .ai .ai-wait span { animation: ai-wait-pulse 1.2s ease-in-out infinite; }
    .ai .ai-wait span:nth-child(2) { animation-delay: .2s; }
    .ai .ai-wait span:nth-child(3) { animation-delay: .4s; }
  }
  .ai .ai-text[hidden], .ai .ai-miss[hidden] { display: none; }

  .sheet.ai .ai-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
  .sheet.ai .ai-head h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
  .sheet.ai .ai-mark { width: 15px; height: 15px; fill: var(--accent); flex: none; }
  .sheet.ai .ai-x { margin: -4px -8px -4px auto; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
  .sheet.ai .ai-x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 9%, transparent); }
  .sheet.ai .ai-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

  .ai .ai-entry { flex: none; position: relative; display: block; margin-top: 14px; }
  .ai .ai-input { display: block; width: 100%; min-height: 46px; padding: 12px 54px 12px 16px; border: 1px solid var(--line); border-radius: 23px; background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.45; resize: none; }
  .ai .ai-send { position: absolute; right: 6px; bottom: 6px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; }
  .ai .ai-send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: translate(-1px, 1px); }
  @media (hover: none) { .ai .ai-input { font-size: 16px; } }
  .ai .ai-body .ai-text { white-space: pre-wrap; }
  .ai .ai-body .ai-text b { color: var(--accent); }
  .ai .ai-body .ai-miss { color: var(--muted); font-size: 14px; }

  .ai .ai-body .ai-note { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
  .ai .english-blue, .ai .english-green { padding: 2px 6px; border-radius: 4px; font-weight: 500; display: inline-block; margin: 4px; }
  .ai .english-blue { color: #1e90ff; background: rgba(30,144,255,.12); border: 1px solid rgba(30,144,255,.3); }
  .ai .english-green { color: #2ecc71; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3); }

  .report .clip { font-family: var(--en-font); font-size: 14px; color: var(--muted); margin: -4px 0 14px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .report .reasons { display: grid; gap: 8px; }
  .report .reasons button { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 14px; font-weight: 500; }
  .report .reasons button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
  .report textarea { display: block; width: 100%; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; resize: vertical; }
  .report .send { display: block; width: 100%; margin-top: 12px; padding: 13px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 700; }
  .report .send[disabled] { opacity: .4; }
  .report .thanks { margin-top: 12px; font-size: 14px; color: var(--accent); font-weight: 700; }
  .report .thanks.error { color: var(--ink); }
  .report .thanks[hidden] { display: none; }
  .report .closebar { margin-top: 12px; }

  .sheet.report.inflow, .sheet.report.pop { padding: 14px 16px 16px; margin-top: 18px; }
  .sheet.report.pop { position: absolute; left: auto; bottom: auto; margin: 0; width: 420px; max-height: none; transform-origin: top right; }
  .sheet.report.pop.open { transform: none; }
  .sheet.report.inflow h3, .sheet.report.pop h3 { font-size: 15px; margin-bottom: 10px; }
  .sheet.report.inflow .reasons, .sheet.report.pop .reasons { display: flex; flex-wrap: wrap; gap: 8px; }
  .sheet.report.inflow .reasons button, .sheet.report.pop .reasons button { padding: 8px 13px; border-radius: 999px; font-size: 13px; }
  .sheet.report.inflow textarea, .sheet.report.pop textarea { margin-top: 10px; padding: 8px 12px; font-size: 13px; min-height: 0; height: 58px; resize: none; }
  .sheet.report.inflow .send, .sheet.report.pop .send { display: inline-block; width: auto; margin-top: 10px; padding: 10px 22px; font-size: 14px; }
  .sheet.report.inflow .closebar, .sheet.report.pop .closebar { display: inline-block; margin: 10px 0 0 8px; vertical-align: top; }
  .sheet.report.inflow .closebar button, .sheet.report.pop .closebar button { width: auto; padding: 10px 18px; }
  .sheet.report.inflow .thanks, .sheet.report.pop .thanks { display: inline-block; margin: 14px 0 0 12px; }
  .sheet.report.inflow .thanks[hidden], .sheet.report.pop .thanks[hidden] { display: none; }
  .report .closebar button { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
  .dict .closebar button { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }


#grammarSongs { display: none; }
#usageRow[hidden] { display: none !important; }
#slides:has(.eia-grammar-slides-view__examples:not([hidden])) #grammarSongs { display: block; }
#slides .eia-grammar-slides-view { padding-top: 0; }
#slides .eia-grammar-slides-view__track { margin: 0; padding: 0; scroll-padding: 0; }
#slides .eia-grammar-slides-view__slide { flex-basis: 100%; box-shadow: 0 18px 44px -30px rgba(0,0,0,.5); }
#grammarSongs { padding: 18px 0 48px; }
.eia-grammar-songs__play.now { border-color: var(--accent); }
