.word-note .word-heading{display:flex;justify-content:space-between;align-items:center}
.word-note .word-label{font-size:12px;color:var(--muted);margin:0 0 10px}
.word-note h1{font-size:56px;margin:0;letter-spacing:-2px}
.word-note .speaker{border:1px solid #cbd8c7;border-radius:50%;width:44px;height:44px;background:transparent;color:var(--accent);font-size:20px}
.word-note .meaning{font-size:23px;margin:15px 0 20px}
.word-note .concepts{display:flex;gap:12px;flex-wrap:wrap}
.word-note .concepts button,.grammar-link{background:transparent;border:0;border-bottom:1px dotted #9aaa92;padding:2px 0;color:var(--accent);font-size:12px}
.word-note .usage{border-left:2px solid #bfd0b6;padding-left:16px;margin:28px 0}
.word-note .usage p{font-size:15px;margin:0 0 6px}
.word-note .usage small,.word-note .translation{color:var(--muted);font-size:13px}
.word-note .examples{background:#f1f5ed;padding:4px 20px;border-radius:10px}
.word-note .example{padding:18px 0}
.word-note .example+.example{border-top:1px solid #dbe3d6}
.word-note .example-line{display:flex;align-items:center;gap:10px;justify-content:space-between}
.word-note .example-line p{margin:0;font-size:20px;line-height:1.8}
.word-note .chunk{font:inherit;border:0;border-bottom:1px dotted #9cac92;background:transparent;padding:0;color:inherit}
.word-note .chunk:hover,.word-note .chunk[aria-expanded=true]{background:#dde9d4;border-radius:3px}
.word-note .example-speak{color:var(--accent);border:0;background:transparent;font-size:18px}
.word-note .translation{margin:5px 0 0}
.word-note .more{border-top:1px solid var(--line);padding:16px 0;font-size:14px}
.word-note .more summary{cursor:pointer;color:var(--muted)}
.word-note .more p{line-height:1.7}
.word-note .more a{font-size:12px;color:var(--accent)}
.word-note table{width:100%;border-collapse:collapse;margin-top:14px}
.word-note th{text-align:left;font-weight:400;color:var(--muted);font-size:13px}
.word-note td{padding:6px;text-align:right}
.word-note td button{border:0;background:transparent;color:var(--accent);font-size:15px}
.word-note textarea{box-sizing:border-box;width:100%;min-height:110px;border:1px solid var(--line);background:transparent;border-radius:6px;padding:12px;font:inherit;resize:vertical;margin:14px 0 5px}
.word-note .more small{color:var(--muted);font-size:11px}
#chunk-help{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:min(290px,calc(100vw - 24px));padding:18px 20px;border:1px solid #d4ddce;border-radius:10px;background:#fffefa;box-shadow:0 8px 35px #29382220}
.chunk-meaning{margin:0 0 12px;font-size:17px}
.grammar-link{text-align:left;cursor:pointer}
#grammar{box-sizing:border-box;width:min(480px,calc(100vw - 28px));max-height:85vh;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:32px;background:#fffefa;color:var(--ink)}
#grammar::backdrop{background:#20251e55}
#grammar h2{font-size:25px;font-weight:500;line-height:1.2}
#grammar-context{color:var(--accent);margin-bottom:4px}
#grammar-translation{font-size:13px;color:var(--muted);margin-top:0}
#grammar-text{line-height:1.75;font-size:15px}
.close{float:right;border:0;background:transparent;font-size:25px;color:var(--muted);cursor:pointer}
.word-note .note-audio{min-height:14px;font-size:12px;color:var(--muted);margin:10px 0}.word-note .note-storage{font-size:13px;color:#86511e}.word-note .note-storage:empty{display:none}.word-note .more small{display:block;line-height:1.6}.word-note :focus-visible,#grammar :focus-visible,#chunk-help :focus-visible{outline:2px solid var(--accent);outline-offset:4px}
@media(max-width:600px){.word-note .examples{padding:2px 14px}.word-note .example-line p{font-size:18px}.word-note .concepts{gap:10px}}

.lemma-card-link{display:block;width:fit-content;margin-top:10px;color:var(--accent);font-size:14px;line-height:1.5;text-decoration:none;border-bottom:1px dotted currentColor}
.lemma-card-link small{display:inline!important;margin:0!important;font-size:12px;color:var(--muted)}
.lemma-card-link:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.lemma-card-preview{position:fixed;width:min(1040px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:34px 12px 12px;border:1px solid var(--line);border-radius:20px;background:#fffefa;color:var(--ink);overflow:auto}
.lemma-card-preview::backdrop{background:rgb(30 29 25 / .25)}
.lemma-card-preview .preview-close{position:absolute;right:16px;top:4px;font-size:26px;min-width:32px;min-height:32px}
.lemma-card-preview .course-study{border:0;max-height:calc(100dvh - 80px);padding:16px;max-width:none}
.lemma-card-preview .lesson-footer{margin-top:16px}

/* Shared sentence words: study cards, notes, lookup cards and review. */
.quick-word{position:relative;display:inline-block}.word-sound{border:0;border-bottom:1px dotted #aab19f;background:none;padding:0;font:inherit;letter-spacing:inherit;line-height:inherit;color:inherit;text-align:inherit}.word-sound:hover,.word-sound:focus-visible{color:var(--accent)}.quick-meaning{display:none;position:absolute;z-index:20;bottom:calc(100% + 4px);left:0;min-width:140px;width:max-content;max-width:min(260px,70vw);padding:12px 15px;border:1px solid var(--line);border-radius:10px;background:#fffefa;color:var(--ink);box-shadow:0 5px 25px #282b2518;font-size:14px;line-height:1.5;font-weight:400;letter-spacing:0;text-transform:none;white-space:normal}.quick-meaning small{display:block;font-size:13px;color:var(--muted);margin-top:6px}.quick-word:hover>.quick-meaning,.quick-word:has(:focus-visible)>.quick-meaning{display:block}.quick-word:last-child>.quick-meaning{left:auto;right:0}

.quick-word.tip-dismissed>.quick-meaning{display:none}
.quick-meaning::after{content:'';position:absolute;top:100%;left:0;width:100%;height:8px}
.quick-meaning[popover]{display:none;position:fixed;inset:auto;margin:0;max-height:calc(100dvh - 24px);overflow:visible}
.quick-meaning[popover]:popover-open{display:block}
.quick-meaning[popover][data-side=below]::after{top:auto;bottom:100%}
.quick-meaning .grammar-link{display:block;margin-top:10px;font-size:13px}
.sentence-audio{display:inline-grid;place-items:center;vertical-align:middle;border:0;background:none;color:var(--muted);width:32px;height:32px;padding:4px;margin-left:6px;cursor:pointer}
.sentence-audio:hover,.sentence-audio:focus-visible{color:var(--accent)}
.sentence-audio:focus-visible,.word-sound:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.quick-word>.quick-meaning[popover]:not(:popover-open){display:none}

.supplemental-note .extra-usage p{font-size:16px;line-height:1.65;margin:0 0 16px}.supplemental-note .word-source{display:inline-block;font-size:13px;color:var(--muted);margin:18px 0}.supplemental-note .note-audio:empty{display:none}.supplemental-note .word-heading h1{margin:12px 0 24px}.supplemental-note .word-heading .say{font:inherit;color:inherit;background:none;border:0;border-bottom:1px dotted var(--line);padding:0;cursor:pointer}
/* Row examples retain separate pronunciation controls. */
.forms-table .example-row-select{font:inherit;color:inherit;text-align:left;border:0;background:transparent;padding:8px 0;cursor:pointer;width:100%}
.forms-table tr[data-example-row]{cursor:pointer}
.forms-table tr.example-selected{background:var(--soft,#e8f0e9)}
.forms-table .example-row-select:focus-visible,.forms-table .example-alternative:focus-visible{outline:2px solid var(--accent,#34735b);outline-offset:2px}
.forms-table .example-alternative{font:inherit;font-size:.75rem;color:inherit;border:0;background:transparent;padding:4px;text-decoration:underline;cursor:pointer}

/* Supplemental sections share a quiet, consistent disclosure hierarchy. */
.supplemental-note .info-label{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:.04em;margin:0 0 8px}
.supplemental-note .more{margin:0;border-bottom:1px solid var(--line);padding:0}
.supplemental-note .more summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 0;color:var(--ink);font-size:16px;line-height:1.45}
.supplemental-note .more summary::-webkit-details-marker{display:none}
.supplemental-note .more summary::after{content:'+';color:var(--muted);font-size:20px;flex:none}
.supplemental-note .more[open]>summary::after{content:'−'}
.supplemental-note .recall-usage section{padding:0 0 12px}
.supplemental-note .recall-usage section+section{border-top:1px solid var(--line);padding-top:12px}
.supplemental-note .recall-usage h3{font-size:15px;font-weight:600;margin:10px 0}
.supplemental-note .recall-usage .example{padding:8px 0}
.supplemental-note .recall-usage .word-source{margin:6px 0 10px}
.supplemental-note .concepts{margin-top:22px}
.supplemental-note .extra-usage{padding:4px 0 8px}
@supports(interpolate-size:allow-keywords){
 .supplemental-note .more{interpolate-size:allow-keywords}
 .supplemental-note .more::details-content{height:0;opacity:0;overflow:clip;transition:height 180ms ease,opacity 180ms ease,content-visibility 180ms allow-discrete}
 .supplemental-note .more[open]::details-content{height:auto;opacity:1}
}
@media(prefers-reduced-motion:reduce){.supplemental-note .more::details-content{transition:none}}
