:root{--paper:#faf9f5;--ink:#233734;--muted:#62716b;--line:#d9e0d8;--accent:#286354;--tint:#edf3ed;--white:#fff;--sand:#f0ece1;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans KR","Apple SD Gothic Neo",sans-serif;color:var(--ink);background:var(--paper);font-size:16px;line-height:1.7}
*{box-sizing:border-box}html{scroll-padding-top:92px}body{margin:0}a{color:var(--accent);text-underline-offset:4px}button,input,select{font:inherit}button,select{min-height:44px}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:var(--ink);background:var(--white);border:1px solid var(--line);border-radius:10px;padding:8px 13px}button:hover{background:var(--tint)}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,[role=tabpanel]:focus-visible{outline:3px solid #bf692d;outline-offset:3px}button:disabled{opacity:.55;cursor:not-allowed}select{background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:8px 30px 8px 12px;max-width:100%}p{margin:0 0 12px}h1,h2,h3,h4,h5{line-height:1.4;margin:0 0 14px}h4{font-size:17px}h5{font-size:14px;color:var(--accent);margin-bottom:5px}ul,ol{padding-left:22px}li{margin:5px 0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.skip-link{position:fixed;top:-80px;left:10px;background:white;padding:12px;z-index:50}.skip-link:focus{top:10px}.masthead{height:82px;max-width:1220px;margin:auto;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line);gap:12px}.brand{display:flex;align-items:center;gap:10px;font-weight:650;text-decoration:none;color:var(--ink);font-size:15px}.brand-mark{width:34px;height:34px;border-radius:50%;background:var(--accent);color:#fff;text-align:center;line-height:34px;font-family:serif;font-size:22px}.edition,.eyebrow{font-size:12px;font-weight:650;letter-spacing:.08em;color:var(--muted)}.shell{display:grid;grid-template-columns:235px minmax(0,820px);gap:60px;max-width:1220px;margin:auto;padding:0 32px}.contents{position:sticky;top:28px;align-self:start;padding-top:48px;max-height:95vh;overflow-y:auto}.contents h2{font-size:19px}.contents ol{list-style:none;padding:0;margin:24px 0}.contents li{margin:3px 0}.contents a{display:flex;align-items:center;gap:13px;padding:10px 12px;border-radius:9px;color:var(--ink);text-decoration:none;min-height:44px;font-size:17px}.contents a:hover,.contents a[aria-current=true]{background:var(--tint);color:var(--accent)}.nav-number{font-size:11px;color:var(--muted);width:16px}.contents small{font-size:12px;margin-left:auto;color:var(--muted)}.sidebar-note{margin:32px 12px;color:var(--muted);font-size:13px}.main-column{min-width:0}.hero{padding:50px 0 34px}.hero h1{font-size:34px;letter-spacing:-.055em;max-width:550px;word-break:keep-all}.hero>p:last-child{font-size:15px;color:var(--muted)}.hero-sub{font-size:14px;color:var(--accent);margin:16px 0}.hero-sub span{padding:0 8px}.toolbar{position:sticky;top:0;z-index:10;display:flex;gap:8px;align-items:center;padding:12px 0;background:var(--paper);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.jump-label{flex:1;min-width:0}.jump-label select{width:100%}.toolbar button{white-space:nowrap;font-size:14px}.toolbar strong{font-size:11px;margin-left:5px;color:var(--accent)}.settings{padding:24px;background:var(--tint);border-radius:0 0 14px 14px}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.settings label{display:flex;flex-direction:column;gap:8px;font-size:14px;min-width:0}.settings select{width:100%;text-overflow:ellipsis}.settings input[type=range]{width:100%;min-height:30px;accent-color:var(--accent)}.settings output{font-variant-numeric:tabular-nums}.settings-actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:18px 0 10px}.settings .checkbox{flex-direction:row;align-items:center;min-height:44px}.checkbox input{width:18px;height:18px;accent-color:var(--accent)}#resume-line{font-size:14px;padding-top:16px}.entry{padding:48px 0 12px;border-bottom:1px solid var(--line);scroll-margin-top:88px}.entry-head{display:flex;gap:23px;align-items:flex-start;margin-bottom:20px}.entry-number{font-size:15px;color:var(--accent);padding-top:11px;font-variant-numeric:tabular-nums}.entry-number span{display:block;color:var(--muted);font-size:10px}.entry h2{font-family:"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;font-weight:600;font-size:42px;letter-spacing:.04em;margin-bottom:3px}.head-reading{font-size:14px;color:var(--muted);margin:0}.entry-intro{margin:0 0 24px}.pos{font-size:12px;color:var(--muted);margin-bottom:5px}.senses{padding:0;list-style:none;margin:0;font-size:18px;font-weight:550}.senses p{font-size:15px;font-weight:400}.fold{border-top:1px solid var(--line);margin:0}.fold:last-child{border-bottom:1px solid var(--line)}summary{cursor:pointer;list-style:none;min-height:48px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 3px;font-size:14px;font-weight:550;touch-action:manipulation}summary::-webkit-details-marker{display:none}summary::after{content:'+';font-size:22px;line-height:1;font-weight:350;color:var(--muted);flex:none}details[open]>summary::after{content:'−'}details[open]>summary{color:var(--accent)}.fold-body{padding:5px 3px 22px;min-width:0}.section-label{font-size:13px;letter-spacing:.03em;color:var(--accent);padding-top:32px;margin:0 0 6px}.sentence{padding:20px 0;border-bottom:1px solid var(--line);min-width:0}.sentence:last-child{border-bottom:0}.sentence-line{display:flex;gap:16px;align-items:flex-start;min-width:0}.ja{font-family:"Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif;font-size:21px;line-height:2.05;font-weight:500;flex:1;min-width:0;overflow-wrap:anywhere;line-break:strict;margin-bottom:8px;word-break:normal}.ja rt{font-size:.48em;font-weight:400;color:var(--muted)}html[data-furigana=off] .ja rt{display:none}html[data-furigana=off] .ja ruby{display:inline}.speak{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;font-size:12px;margin-top:3px;min-width:48px;border-color:transparent;background:var(--tint);color:var(--accent);padding:9px 10px}.speak[aria-pressed=true]{color:white;background:var(--accent)}.translation{font-size:16px;color:#596761;line-height:1.8;overflow-wrap:anywhere;word-break:keep-all;margin-right:60px}html[data-translations=off] .translation{display:none}.sentence-label{font-size:10px;letter-spacing:0;display:block;margin-bottom:5px}.sentence-details{border:0!important}.sentence-details>summary{font-size:13px;color:var(--muted);justify-content:flex-start;gap:8px;padding:3px 0;min-height:44px}.sentence-details>summary::after{font-size:17px;order:-1}.sentence-details>.fold-body{background:var(--tint);padding:18px;border-radius:10px;margin:6px 0}.explanation{margin:0 0 20px}.explanation:last-child{margin-bottom:0}.prose{white-space:pre-wrap;overflow-wrap:anywhere;word-break:keep-all;font-size:15px;line-height:1.9}.dialogue{margin:14px 0 24px;padding:22px;background:#f0f3ef;border-radius:16px}.dialogue-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}.dialogue-top h4{margin:0;font-size:14px;font-weight:600}.dialogue-tabs{display:flex;border:1px solid #cbd6cb;border-radius:9px;padding:2px;flex-shrink:0}.dialogue-tabs button{border:0;background:transparent;border-radius:7px;font-size:13px;min-height:40px;padding:8px 12px}.dialogue-tabs button[aria-selected=true]{background:var(--white);box-shadow:0 1px 3px #203b2020;color:var(--accent);font-weight:650}.situation{font-size:15px;font-weight:550;word-break:keep-all;overflow-wrap:anywhere}.relationship{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:8px}.turn{display:flex;gap:14px;padding:18px 0}.speaker{width:26px;height:26px;line-height:26px;flex:none;text-align:center;background:#dce7dc;color:var(--accent);border-radius:50%;font-size:12px;margin-top:8px}.sentence-body{flex:1;min-width:0}.turn .ja{font-size:20px}.turn .speak{background:#fff}.turn .speak[aria-pressed=true]{background:var(--accent)}.turn .translation{font-size:15px}.turn .sentence-details>.fold-body{background:var(--white)}.dialogue>.fold{margin-top:6px}.forms,.collocations{list-style:none;padding:0;margin:0 0 22px}.forms li,.collocations li{padding:12px 0;border-bottom:1px solid var(--line)}.forms li>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.forms strong{font-size:12px;color:var(--muted);min-width:70px}.forms span{font-size:18px}.forms small{color:var(--muted);font-size:13px}.forms p,.collocations p{font-size:14px;margin:4px 0}.form-steps{overflow-wrap:anywhere}.collocations strong{font-weight:550;font-size:18px}.muted{color:var(--muted);font-size:13px}.relation{padding:20px 0;border-bottom:1px solid var(--line)}.relation:first-child{padding-top:8px}.relation h4{font-size:18px;overflow-wrap:anywhere}.relation .sentence{padding:14px 0}.relation .ja{font-size:19px}.word{padding:12px 0;border-bottom:1px solid var(--line)}.word dt{font-size:17px;font-weight:550}.word small{font-size:12px;color:var(--muted)}.word dd{margin:10px 0 0}.word .explanation{margin:5px 0}.word .explanation h5{font-size:11px}.word .prose{font-size:14px}.entry-nav{display:flex;justify-content:space-between;gap:20px;margin:30px 0 18px}.entry-nav a{display:flex;align-items:center;min-height:44px;text-decoration:none;font-size:15px}.kanji{padding:18px 0}.kanji h4{font-size:26px}.kanji small{font-size:14px}.player{position:fixed;z-index:30;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(calc(100% - 24px),720px);background:var(--ink);color:white;border-radius:13px;padding:10px 12px 10px 18px;box-shadow:0 8px 28px #0002;display:flex;gap:14px;align-items:center}.player p{margin:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.player button{flex:none;min-height:44px;background:#fff;color:var(--ink)}.notice{position:fixed;z-index:35;left:12px;right:12px;bottom:80px;max-width:720px;margin:0 auto;padding:14px 18px;background:#fff;border:1px solid #b2c6b8;border-radius:12px;font-size:14px;box-shadow:0 5px 20px #0001}.noscript{padding:20px;background:var(--sand)}footer{padding:40px 0 110px;font-size:12px;color:var(--muted)}footer p{margin-bottom:4px}footer>a{display:inline-block;min-height:44px;padding-top:10px}body:has(.player:not([hidden])){padding-bottom:70px}
@media(max-width:960px){.shell{grid-template-columns:180px minmax(0,1fr);gap:28px;padding:0 24px}.masthead{padding:0 24px}.contents a{padding-left:4px;gap:8px}.contents small{display:none}.hero h1{font-size:30px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:700px){.masthead{height:64px;padding:0 20px}.brand{font-size:13px}.brand-mark{width:29px;height:29px;line-height:29px;font-size:19px}.edition{font-size:10px}.shell{display:block;padding:0 20px}.contents{display:none}.hero{padding:32px 0 24px}.hero h1{font-size:29px;max-width:330px}.hero-sub{margin:12px 0}.hero>p:last-child{font-size:14px}.toolbar{gap:6px;padding:9px 0}.toolbar select{font-size:14px;padding-left:10px}.toolbar button{font-size:12px;padding:8px 10px}.toolbar strong{margin-left:2px;font-size:10px}.settings{padding:18px 14px}.entry{padding-top:32px}.entry-head{gap:18px}.entry h2{font-size:36px}.senses{font-size:17px}.ja{font-size:20px;line-height:2.1}.sentence-line{gap:8px}.speak{padding:8px;min-width:44px;min-height:44px}.speak span{display:none}.translation{margin-right:0;font-size:15px}.dialogue{padding:18px 14px;margin-left:-6px;margin-right:-6px}.dialogue-top{gap:8px}.dialogue-top h4{font-size:13px}.dialogue-tabs button{padding:8px 10px;min-height:44px}.turn{gap:9px}.speaker{width:23px;height:23px;line-height:23px;font-size:11px}.turn .ja{font-size:19px}.sentence-details>.fold-body{padding:14px}.prose{font-size:15px}.section-label{padding-top:26px}.relation .sentence-line{gap:6px}.relation .ja{font-size:18px}footer{padding-bottom:100px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
@media print{.contents,.toolbar,.settings,.speak,.player,.notice,.entry-nav{display:none!important}.shell{display:block}.fold-body{break-inside:avoid}.entry{break-before:page}body{background:#fff}}

.hanja-component{display:inline-flex;align-items:baseline;gap:3px;white-space:nowrap;font-weight:650}
.hanja-component .hanja-char{font-size:18px;line-height:1}
.hanja-component .hanja-korean-reading{font-size:13px;font-weight:550;color:var(--muted)}
.settings-static{display:flex;flex-direction:column;gap:6px;font-size:14px;min-width:0}
.settings-static span{font-size:12px;color:var(--muted)}
.settings-static strong{font-size:14px;font-weight:600}

.dialogue-top>div:first-child .eyebrow{margin:.25rem 0 0;font-size:11px}


/* v0.2 enrichment */
.sticky-controls{position:sticky;top:0;z-index:25;background:var(--paper);box-shadow:0 1px 0 var(--line)}
.sticky-controls .toolbar{position:relative!important;top:auto!important;z-index:auto!important;border-top:0}
.sticky-controls .settings{max-height:min(58vh,470px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 10px 28px #00000012}
.usage-note{font-size:13px;color:var(--muted);line-height:1.75;margin:6px 0 0}
.structured-label{display:inline-block;font-size:12px;font-weight:700;color:var(--accent);background:#e3eee7;border-radius:6px;padding:1px 7px;margin:7px 4px 4px 0}
.advanced-forms{margin-top:28px;padding-top:4px}
.advanced-intro{margin-bottom:14px}
.advanced-form-card{padding:16px 0;border-top:1px solid var(--line)}
.advanced-form-head{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.advanced-form-head strong{font-size:20px;font-family:"Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif}
.advanced-form-head small{font-size:13px;color:var(--muted)}
.advanced-badge{font-size:11px;font-weight:700;color:var(--accent);background:#e2eee7;border-radius:999px;padding:3px 8px}
.advanced-meaning{font-size:15px;margin:6px 0 8px}
.advanced-example{padding:12px 14px;background:var(--tint);border-radius:10px;margin:8px 0}
.ja-mini{font-family:"Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif;font-size:18px;line-height:1.8;margin:0 0 3px}
.translation-mini{font-size:14px;color:#596761;margin:0}
.dialogue[data-enrichment="v0.2"]{border:1px solid #d8e6dc;background:#f4f7f3}
.kanji-structure{display:grid;grid-template-columns:110px 1fr;gap:7px 14px;margin-top:16px;padding:14px;background:var(--tint);border-radius:10px}
.kanji-label{font-size:12px;font-weight:700;color:var(--accent);margin:0}
.kanji-value{font-size:14px;margin:0;line-height:1.75}
@media(max-width:700px){
 .sticky-controls .settings{max-height:55vh;padding:16px 14px}
 .advanced-form-card{padding:14px 0}
 .kanji-structure{grid-template-columns:1fr;gap:2px;padding:12px}
 .kanji-label{margin-top:8px}.kanji-label:first-child{margin-top:0}
}

/* Production batch: approved labels are separate blocks. */
.label-block{display:block;margin:8px 0 12px}.label-block h6{font-size:12px;margin:0 0 3px;color:var(--accent)}.label-block p{margin:0;white-space:pre-wrap}.prose-block{font-size:15px;line-height:1.9;overflow-wrap:anywhere;word-break:keep-all}.hanja-char{font-size:17px;font-weight:650}.ja-mini{min-width:0;overflow-wrap:anywhere;flex:1}.ja-mini rt{font-size:.5em}html[data-furigana=off] rt{display:none}html[data-furigana=off] ruby{display:inline}html[data-translations=off] .translation-mini{display:none}.kanji-value .hanja-char{font-size:17px}.entry-nav{flex-wrap:wrap}.settings-static strong{overflow-wrap:anywhere}.dialogue-top{flex-wrap:wrap}.main-column{padding-bottom:100px}
/* Keep reading settings within reach without moving the reading position. */
.sticky-controls .settings{position:absolute;top:100%;left:0;right:0;max-height:min(55vh,470px);overflow:auto;border:1px solid var(--line);border-top:0}
