/* Compact comparison cells on the left, one shared scene on the right. */
.reader-workspace.near-workspace .word-identity{padding-bottom:0}.near-lesson .review-reader-note{margin-bottom:20px}
.near-workspace{display:block!important;max-width:1300px;margin:auto}.near-lesson{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:26px 29px 0;min-width:0}
.near-focus{padding-bottom:21px;border-bottom:1px solid var(--line)}.near-focus .word-head{display:flex!important;align-items:center;gap:18px;position:relative}.near-focus .word-head>div{width:auto;flex:1}.near-focus .word-eyebrow{padding:0;min-height:0}.near-focus .word-head h1{font:48px/1.15 var(--latin)!important;margin:10px 0 5px!important;letter-spacing:-1px}.near-focus .pronunciation{gap:10px}.near-focus .pronunciation>span{font-size:18px}.near-focus .pronunciation .audio-button{width:33px;height:33px}.near-focus .conceal-button{position:static!important;flex:none}.near-focus .word-meaning{margin:9px 0 0;min-height:0;gap:10px}.near-focus .word-meaning strong{font-size:23px}.near-focus .word-meaning .part-of-speech{font-size:17px}.near-focus-note{font-size:11px;color:var(--muted);margin-top:10px}.near-focus-note b{font:700 14px var(--latin);color:var(--green)}
.near-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(270px,.95fr);gap:30px;padding:23px 0}.near-comparison,.near-connection{min-width:0}.near-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.near-section-heading h2{font-size:16px;font-weight:700;line-height:1.6}.near-section-heading p{font-size:10px;color:var(--muted);margin-top:4px}.near-play-all{display:flex;align-items:center;gap:6px;min-height:37px;padding:8px 11px;border:1px solid #91b8c4;background:#e6f1f3;border-radius:7px;color:#326476;font-size:11px;font-weight:700;white-space:nowrap}.near-play-all svg{width:16px;height:16px}.near-play-all[aria-pressed=true]{background:#326476;color:#fff}

.near-member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
.near-member{--cell-ink:var(--ink);--cell-muted:var(--muted);min-width:0;padding:12px 15px 14px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--cell-ink);display:flex;flex-direction:column;align-items:flex-start}
.near-member.is-target{--cell-ink:#56351e;--cell-muted:#855831;background:#fbe5cc;border-color:#e8bd8f}
.near-member.is-helper{--cell-ink:#234859;--cell-muted:#4c6e81;background:#dcebf3;border-color:#a9c5d5}
.near-member.is-current{border-color:#b76724;box-shadow:inset 0 0 0 1px #b76724}
.near-cell-top{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;margin-bottom:2px;min-height:32px}
.near-target-tag{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:700;line-height:1.4;color:var(--cell-muted);white-space:nowrap}
.is-helper .near-target-tag{font-weight:400}.near-current-tag{color:var(--cell-ink)}.near-marked{display:inline-flex}.near-marked svg{height:12px;width:12px}
.near-word-select,.near-word-name{display:block;font:700 29px/1.25 var(--latin);min-height:0;color:var(--cell-ink);padding:0;letter-spacing:-.5px;overflow-wrap:anywhere;text-align:left;max-width:100%}
.near-word-select:hover{text-decoration:underline;text-underline-offset:4px}.near-word-select:focus-visible{outline-color:var(--cell-ink)}
.near-cell-top .audio-button{width:32px;height:32px;min-width:32px;min-height:32px;padding:6px;background:var(--surface);border-color:var(--line);color:var(--cell-ink);flex-shrink:0}
.is-target .near-cell-top .audio-button{background:#fff5e9;border-color:#d7ab7d}.near-cell-top .audio-button span{display:none}.near-cell-top .audio-button svg{height:17px;width:17px}.near-cell-top .audio-button:hover{background:var(--green-light)}.near-cell-top .audio-button.playing{background:#985522;border-color:#985522;color:#fff}
.near-member-meaning{display:flex;gap:6px;align-items:baseline;margin-top:6px;flex-wrap:wrap}.near-member-meaning>strong{font-size:18px;font-weight:700;line-height:1.6}.near-member-meaning>small{font:italic 13px var(--latin);color:var(--cell-muted)}
.near-member-ipa{font:17px/1.5 var(--latin);color:var(--cell-muted);margin-top:4px;overflow-wrap:anywhere;max-width:100%}
.near-list-note{font-size:10px;color:var(--muted);line-height:1.8;margin-top:10px}
.is-helper .near-cell-top .audio-button{background:#f0f7fb;border-color:#a5c4d4}.is-helper .near-cell-top .audio-button:hover{background:#c7dfea}.is-helper .near-cell-top .audio-button.playing{background:#326476;border-color:#326476;color:#fff}
.near-scene-heading{margin-bottom:12px}.near-scene-heading>span{font-size:10px;color:var(--muted)}.near-scene-heading h2{font:700 23px/1.5 var(--serif);margin-top:4px;color:var(--green)}.near-connection .learning-visual{box-shadow:none}.near-connection .learning-visual figcaption{display:none}.near-story{font-size:calc(var(--reading-size) - 2px);line-height:1.95;margin-top:15px}.near-story b{font:700 22px var(--latin);color:var(--green);white-space:nowrap}.near-story .current-story-word{background:#e1edf1;color:#2f6678;border-radius:3px;padding:1px 4px}.near-bridge{font-size:11px;line-height:1.8;color:var(--muted);margin-top:9px}.near-listen-note{margin-top:17px;border-left:3px solid #79a8b7;background:var(--soft);padding:13px 15px}.near-listen-note>span{display:flex;gap:6px;align-items:center;font-size:10px;font-weight:700;color:var(--muted)}.near-listen-note svg{width:14px;height:14px}.near-listen-note>strong{font-size:13px;line-height:1.85;display:block;margin-top:6px;color:var(--green)}.near-listen-note p{font-size:11px;line-height:1.8;margin-top:7px;color:var(--muted)}.near-lesson-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--line);padding:12px 0;font-size:10px;color:var(--muted)}.near-lesson-foot .text-button{font-size:11px;flex:none}
.near-recall{text-align:center;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 15px}.near-recall>span{font:italic 42px var(--latin);color:var(--muted)}.near-recall h2{font-size:23px;margin:14px 0}.near-recall p{font-size:13px;color:var(--muted);line-height:1.8}.near-recall .button{margin-top:22px}

:root[data-theme=night] .near-member.is-target{--cell-ink:#ffe2c1;--cell-muted:#e8b783;background:#493425;border-color:#916338}
:root[data-theme=night] .near-member.is-helper{--cell-ink:#d8eaf4;--cell-muted:#a6c8db;background:#273e4b;border-color:#53788f}
:root[data-theme=night] .near-member.is-current{border-color:#edac69;box-shadow:inset 0 0 0 1px #edac69}
:root[data-theme=night] .is-target .near-cell-top .audio-button{background:#60452f;border-color:#b58351;color:#ffe2c1}
:root[data-theme=night] .near-cell-top .audio-button.playing{background:#e3a564;border-color:#e3a564;color:#2f2017}
:root[data-theme=night] .is-helper .near-cell-top .audio-button{background:#344f60;border-color:#688da2;color:#d8eaf4}:root[data-theme=night] .is-helper .near-cell-top .audio-button.playing{background:#91bdcf;border-color:#91bdcf;color:#18313e}
:root[data-theme=night] .near-play-all{background:#304953;border-color:#5c8b9a;color:#b7dae5}
:root[data-theme=night] .near-play-all[aria-pressed=true]{background:#6aa0b0;color:#10292e}
:root[data-theme=night] .near-story .current-story-word{background:#354e54;color:#b7dae5}
@media(min-width:1100px){.near-focus .word-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;position:relative}.near-focus .word-head{padding-right:145px}.near-focus .word-head h1{display:inline-block;margin-right:18px!important}.near-focus .pronunciation{display:inline-flex}.near-focus .word-meaning{padding-right:5px;margin:0}.near-focus .word-head .conceal-button{position:absolute!important;right:0;left:auto;bottom:0;top:auto}.near-focus .recall-toggle .recall-label{display:none}.near-focus .word-meaning strong{font-size:24px}}
@media(max-width:1100px){.near-lesson{padding:22px 22px 0}.near-layout{gap:22px;grid-template-columns:minmax(265px,1fr) minmax(235px,.9fr)}.near-section-heading{align-items:flex-start}.near-section-heading h2{font-size:14px}.near-play-all{font-size:10px;padding:7px;gap:4px}.near-scene-heading h2{font-size:21px}}
@media(max-width:960px){.near-layout{grid-template-columns:1fr}.near-connection{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px}.near-scene-heading{grid-column:1/-1}.near-connection .learning-visual{grid-column:1;grid-row:2/5;align-self:start}.near-story{margin-top:0}.near-listen-note{grid-column:1/-1}.near-focus .recall-label{display:none}}
@media(max-width:760px){.near-lesson{padding:18px 16px 0;border-radius:10px}.near-focus{padding-bottom:15px}.near-focus .word-head h1{font-size:34px!important;margin:7px 0 4px!important}.near-focus .pronunciation{gap:6px}.near-focus .pronunciation>span{font-size:14px}.near-focus .pronunciation .audio-button{width:29px;height:29px;min-height:29px}.near-focus .word-identity{position:relative}.near-focus .word-meaning{position:absolute;right:0;bottom:2px;max-width:49%;margin:0;gap:5px}.near-focus .word-meaning strong{font-size:17px}.near-focus .word-meaning .part-of-speech{font-size:13px}.near-focus .word-meaning.concealed{font-size:10px}.near-focus-note{display:none}.near-focus .word-eyebrow{padding-right:0}.near-focus .word-head{align-items:flex-start}.near-focus .recall-toggle{padding:8px!important;min-width:44px;min-height:38px}.near-focus .recall-toggle>svg{display:none}.near-layout{padding:18px 0;gap:23px}.near-section-heading h2{font-size:14px}.near-section-heading p{font-size:10px}.near-play-all{min-height:36px}.near-list-note{font-size:10px;line-height:1.8}.near-connection{display:block}.near-scene-heading h2{font-size:23px}.near-story{margin-top:15px;font-size:16px}.near-story b{font-size:23px}.near-bridge{font-size:11px}.near-listen-note{margin-top:14px}.near-lesson-foot{flex-wrap:wrap;gap:2px;font-size:10px;line-height:1.8}.near-lesson-foot .text-button{margin-left:auto}.near-recall{min-height:270px}.near-recall h2{font-size:21px}.near-recall p{font-size:12px}}

@media(max-width:1100px){.near-member{padding:10px 12px 12px}.near-word-select,.near-word-name{font-size:25px}.near-member-meaning>strong{font-size:16px}.near-member-ipa{font-size:16px}}
@media(max-width:960px) and (min-width:761px){.near-member-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}}
@media(max-width:760px){.near-member-grid{gap:8px}.near-member{padding:9px 10px 12px;border-radius:8px}.near-cell-top{margin-bottom:4px}.near-target-tag{font-size:9px;gap:2px}.near-word-select,.near-word-name{font-size:24px;letter-spacing:-.4px}.near-member-meaning{gap:4px;margin-top:5px}.near-member-meaning>strong{font-size:16px}.near-member-meaning>small{font-size:12px}.near-member-ipa{font-size:15px;margin-top:4px}.near-cell-top .audio-button{width:32px;height:32px}}
@media(max-width:360px){.near-member{padding:8px}.near-word-select,.near-word-name{font-size:22px}.near-target-tag{font-size:8px}.near-member-meaning>strong{font-size:15px}.near-member-ipa{font-size:14px}}

/* Text-only connections keep the full column at tablet widths. */
.near-connection.without-visual{display:block}.near-scene-symbol{font-size:30px;line-height:1.5;margin:8px 0 12px}.near-lesson-foot{flex-wrap:wrap}
