:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f7f4ee;--panel:#fffdf8;--ink:#241f1a;--muted:#6f675e;--line:#ddd5c8;--accent:#246b61;--accent-strong:#174b45;--warn:#b84a31;--mark:#f3d26b}*{box-sizing:border-box}html,body{background:var(--bg);min-height:100%;color:var(--ink);margin:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.shell{width:min(1120px,100% - 32px);margin:0 auto}.header{z-index:20;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#f7f4eef0;position:sticky;top:0}.header-inner{justify-content:space-between;align-items:center;gap:24px;min-height:64px;display:flex;position:relative}.brand{letter-spacing:0;font-weight:800}.nav{color:var(--muted);align-items:center;gap:16px;font-size:14px;display:flex}.nav-button{color:inherit;cursor:pointer;background:0 0;border:0;padding:0}.nav a:hover,.nav-button:hover{color:var(--ink)}.mobile-menu-button{border:1px solid var(--line);background:var(--panel);width:40px;height:40px;color:var(--ink);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;display:none}.mobile-menu-button:hover{background:#f1eadf;border-color:#246b6166}.main{padding:36px 0 56px}.narrow-page{max-width:760px}.page-title{margin:0 0 10px;font-size:clamp(28px,4vw,48px);line-height:1.08}.lede{max-width:720px;color:var(--muted);line-height:1.7}.grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:28px;display:grid}.compact-grid{grid-template-columns:repeat(auto-fit,minmax(240px,360px))}.book-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.card{border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:18px}.vocabulary-card{scroll-margin:120px;transition:border-color .18s,box-shadow .18s,transform .18s}.vocabulary-card.active{border-color:#246b61b8;transform:translateY(-1px);box-shadow:0 0 0 3px #246b6124,0 14px 34px #241f1a1f}.vocabulary-floating-stop{right:50%;bottom:max(18px, env(safe-area-inset-bottom));z-index:85;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#fffdf8d1;border:1px solid #b84a314d;border-radius:999px;justify-content:space-between;align-items:center;gap:12px;min-width:320px;max-width:min(520px,100vw - 36px);padding:8px 9px 8px 14px;display:flex;position:fixed;transform:translate(50%);box-shadow:0 12px 32px #241f1a2e}.vocabulary-floating-stop span{min-width:0;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800;overflow:hidden}.book-card{overflow-wrap:anywhere;align-content:space-between;min-height:260px;transition:border-color .16s,transform .16s;display:grid}.book-card:hover{border-color:var(--accent);transform:translateY(-2px)}.book-card{position:relative}.book-card-head{color:inherit;text-decoration:none}.book-card-head:after{content:"";border-radius:inherit;position:absolute;inset:0}.book-card-collapsed{min-height:210px}.book-card-title{align-items:center;gap:8px;display:flex}.book-card-toggle{z-index:1;width:26px;height:26px;color:var(--accent);cursor:pointer;background:0 0;border:0;border-radius:5px;flex:none;justify-content:center;align-items:center;padding:0;font-size:.62em;line-height:1;transition:transform .16s,background-color .16s;display:inline-flex;position:relative}.book-card-toggle:hover{background-color:var(--line)}.book-card-toggle[aria-expanded=true]{transform:rotate(180deg)}.placement-entry{justify-content:space-between;align-items:center;gap:18px;margin-top:24px;display:flex}.placement-entry h2{margin:0 0 6px;font-size:20px}.experimental-card{border-style:dashed;min-height:220px}.section-heading{max-width:720px}.eyebrow{color:var(--accent);letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px;font-size:12px;font-weight:800}.meta{color:var(--muted);font-size:14px;line-height:1.6}.chapter-subtitle{color:var(--muted);margin:-2px 0 16px;font-size:22px;line-height:1.45}.inline-meta{margin-left:8px;font-size:13px;font-weight:500}.source-sentence{color:var(--ink);margin:14px 0 8px;font-family:Georgia,Times New Roman,serif;font-size:16px;line-height:1.65}.source-word{font-weight:800}.usage-note{border-left:3px solid var(--warn);background:#fff8ec;margin-top:12px;padding:10px 12px;line-height:1.7}.usage-note p{color:var(--ink);margin:6px 0 0;font-size:14px;line-height:1.6}.usage-note .eyebrow{margin:0}.badge-row{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.badge-pair{gap:8px;display:inline-flex}.badge{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:999px;padding:5px 9px;font-size:12px}.badge.success{color:var(--accent-strong);background:#edf8f1;border-color:#246b6157;font-weight:800}.footnote-marker{color:var(--accent);vertical-align:super;cursor:help;margin-left:1px;font-size:.62em;font-weight:700;line-height:0}.translator-note{margin-bottom:10px}.translator-note-number{min-width:18px;color:var(--accent);margin-right:5px;font-size:12px;font-weight:800;display:inline-block}.translator-note details{margin-top:3px}.translator-note summary{color:var(--muted);cursor:pointer;font-size:12px}.translator-note-source{border-left:2px solid var(--line);color:var(--muted);margin-top:4px;padding-left:10px;font-size:13px}.book-card-skeleton{pointer-events:none;-webkit-user-select:none;user-select:none}.skeleton-bar,.badge.skeleton-badge{background-color:#ddd3c2;background-image:linear-gradient(90deg,#fff0 0% 30%,#fffffff2 50%,#fff0 70% 100%);background-repeat:no-repeat;background-size:200% 100%;border-radius:4px;animation:2.4s linear infinite skeleton-sweep,2.8s ease-in-out infinite skeleton-pulse}.skeleton-bar{vertical-align:middle;display:inline-block}.skeleton-bar-eyebrow{width:84px;height:11px}.skeleton-bar-title{flex:auto;max-width:62%;height:28px}.skeleton-bar-toggle{border-radius:5px;flex:none;width:26px;height:26px}.badge.skeleton-badge{color:#0000;border-color:#0000;height:27px;display:inline-block}.skeleton-badge-coverage{width:104px}.skeleton-badge-audio{width:68px}.skeleton-badge-chapters{width:96px}@keyframes skeleton-sweep{0%{background-position:100% 0}to{background-position:-100% 0}}@keyframes skeleton-pulse{0%,to{opacity:1}50%{opacity:.6}}.badge.danger{color:#8a4a3b;background:#fff0eb;border-color:#8a4a3b6b;font-weight:800}.badge.audio-badge{color:var(--accent-strong);background:#edf8f1;border-color:#246b6157;align-items:center;gap:5px;font-weight:800;display:inline-flex}.badge.audio-badge.audio-badge-partial{border-color:var(--line);color:var(--muted);background:#fff;font-weight:600}.badge.coverage-badge{letter-spacing:-.01em;border-width:1.5px;border-radius:10px;flex:1 0 100%;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 14px;font-size:15px;font-weight:900;display:inline-flex;box-shadow:0 2px #26201a1a}.badge.coverage-badge-good{color:var(--accent-strong);background:linear-gradient(#e8f8f0fa,#bfe2d0d1);border-color:#246b6161}.badge.coverage-badge-challenge{color:#5d4410;background:linear-gradient(#fff2b8 0%,#e9c95f 100%);border-color:#a8842f9e}.badge.coverage-badge-hard{color:#7a3f32;background:linear-gradient(#ffede7fa,#e8bfb5d1);border-color:#8a4a3b6b}.rich-text-paragraph{margin:0}.rich-text-paragraph+.rich-text-paragraph{margin-top:.9em}.meta code,.lede code,.usage-note code,.difficulty-note code{background:#174b4512;border-radius:3px;padding:0 3px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em}.difficulty-note{overflow-wrap:anywhere;border:1px solid var(--line);color:var(--muted);background:#ffffff9e;border-radius:6px;margin:14px 0 0;padding:10px 12px;font-size:14px;line-height:1.6}.button{border:1px solid var(--accent);background:var(--accent);color:#fff;border-radius:6px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:0 14px;font-weight:700;display:inline-flex}.button.secondary{color:var(--accent-strong);background:0 0}.button.danger{background:#8a4a3b;border-color:#8a4a3b}.button.compact{min-height:34px;padding:0 11px;font-size:13px}.button.disabled,.button:disabled{border-color:var(--line);color:var(--muted);cursor:not-allowed;opacity:.58;background:0 0}.prestudy-open-button{color:#5d4410;background:linear-gradient(#fff7cf 0%,#e6c565 100%);border-color:#a8842f94}.prestudy-status-button{border-color:var(--line);color:var(--muted);cursor:default}.prestudy-status-button.warning{color:#7a5a12;background:#fff7cf7a;border-color:#a8842f5c}.prestudy-panel{background:linear-gradient(#fffdf7f5,#f6f1e5e6);border:1px solid #a8842f5c;border-radius:10px;gap:10px;margin:18px 0 12px;padding:14px;display:grid;box-shadow:0 8px 22px #26201a14}.modal-backdrop{z-index:80;overscroll-behavior:contain;background:#241f1a6b;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow:hidden}.prestudy-modal-panel{overscroll-behavior:contain;flex-direction:column;width:min(720px,100%);height:min(860px,100vh - 48px);max-height:calc(100vh - 48px);margin:0;display:flex;position:relative;overflow:hidden}.prestudy-modal-panel .prestudy-coverage{margin-top:28px}.modal-close-button{z-index:2;width:34px;height:34px;color:var(--muted);cursor:pointer;background:#fffdf7eb;border:1px solid #ddd5c8e6;border-radius:999px;justify-content:center;align-items:center;display:inline-flex;position:absolute;top:10px;right:10px}.modal-close-button:hover{color:var(--accent-strong);border-color:#246b615c}.prestudy-modal-panel>.prestudy-header{min-height:0;margin:0}.prestudy-modal-panel .prestudy-card{flex:1 1 0;height:auto;min-height:0;overflow:hidden}.prestudy-modal-panel .prestudy-card-topline,.prestudy-modal-panel .prestudy-card h3,.prestudy-modal-panel .prestudy-pronunciation,.prestudy-modal-panel .prestudy-meaning,.prestudy-modal-panel .prestudy-counter,.prestudy-modal-panel .prestudy-actions{flex:none}.prestudy-modal-panel .prestudy-scroll-body{flex:1 1 0;height:auto;min-height:0;max-height:none}.prestudy-modal-panel .prestudy-review-list{overscroll-behavior:contain;scrollbar-gutter:stable;flex:1 1 0;min-height:0;padding-right:4px;overflow-y:auto}.prestudy-modal-panel .prestudy-feedback p{scrollbar-gutter:stable;max-height:150px;overflow-y:auto}.prestudy-loading-message{min-height:320px;color:var(--accent-strong);text-align:center;flex:auto;justify-content:center;align-items:center;gap:12px;margin:0;font-size:21px;font-weight:900;display:flex}.prestudy-loading-spinner{border:3px solid #246b612e;border-top-color:var(--accent);border-radius:999px;width:24px;height:24px;animation:.8s linear infinite prestudy-spin}.loading-dots:after{text-align:left;content:"";width:1.4em;animation:1.2s steps(4,end) infinite loading-dots;display:inline-block}@keyframes prestudy-spin{to{transform:rotate(360deg)}}@keyframes loading-dots{0%{content:""}25%{content:"."}50%{content:".."}75%,to{content:"..."}}.prestudy-header,.prestudy-card-topline,.prestudy-actions,.prestudy-coverage{justify-content:space-between;align-items:center;gap:12px;display:flex}.prestudy-header>div{flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0;display:flex}.prestudy-header .eyebrow{display:none}.prestudy-header h2{margin:0;font-size:18px;line-height:1.25}.prestudy-header .meta{margin:0;font-size:12px;line-height:1.3}.prestudy-coverage{border:1px dashed var(--line);color:var(--muted);background:#ffffff94;border-radius:8px;padding:6px 10px;font-size:13px;line-height:1.35}.prestudy-coverage strong{color:var(--accent-strong)}.prestudy-coverage span{color:var(--muted);white-space:nowrap;font-size:12px;font-weight:800}.prestudy-card{background:#ffffffb8;border-radius:8px;flex-direction:column;gap:9px;min-height:560px;padding:14px;display:flex}.prestudy-card h3{color:var(--ink);margin:0;font-family:Georgia,Times New Roman,serif;font-size:clamp(30px,6vw,46px);line-height:1.1}.prestudy-card-topline,.prestudy-pronunciation{color:var(--muted);font-size:15px;font-weight:800}.prestudy-frequency-badge{color:#6c5014;background:#a8842f24;border:1px solid #a8842f75;border-radius:999px;align-items:center;padding:4px 8px;font-size:13px;font-weight:900;display:inline-flex}.prestudy-meaning{color:var(--accent-strong);margin:0;font-size:25px;font-weight:900}.prestudy-counter{color:#6c5014;background:#a8842f24;border-radius:999px;justify-self:start;margin:0;padding:5px 10px;font-size:13px;font-weight:900}.prestudy-scroll-body{overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#246b61b8 #ddd5c88c;scrollbar-width:auto;background:#fffdf7b8;border:1px solid #ddd5c8cc;border-radius:8px;gap:12px;min-height:0;max-height:310px;padding:12px 14px 12px 12px;display:grid;overflow-y:scroll}.prestudy-scroll-body::-webkit-scrollbar{width:10px}.prestudy-scroll-body::-webkit-scrollbar-track{background:#ddd5c88c;border-radius:999px}.prestudy-scroll-body::-webkit-scrollbar-thumb{background:#246b61b8;border-radius:999px}.prestudy-scroll-body>.meta{margin:0;font-size:18px;line-height:1.6}.prestudy-source{max-height:190px;color:var(--text);border-left:3px solid #a8842f99;margin:0;padding-left:12px;font-family:Georgia,Times New Roman,serif;font-size:20px;line-height:1.7;overflow-y:auto}.prestudy-scroll-body .prestudy-source{max-height:none;overflow:visible}.prestudy-source strong,.prestudy-review-list strong+article strong{color:var(--accent-strong)}.prestudy-actions{margin-top:auto;padding-top:12px}.prestudy-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.prestudy-choice{border:1px solid var(--line);min-height:58px;color:var(--ink);cursor:pointer;text-align:left;background:#fffdf7;border-radius:8px;padding:12px 14px;font-size:18px;font-weight:850}.prestudy-choice:hover:not(:disabled){border-color:var(--accent);background:#246b610f}.prestudy-choice:disabled{cursor:default;opacity:.62}.prestudy-choice.correct{color:var(--accent-strong);opacity:1;background:#e8f8f0fa;border-color:#246b619e}.prestudy-choice.incorrect{color:#7a3f32;opacity:1;background:#ffede7fa;border-color:#8a4a3b9e}.prestudy-choice.dimmed{opacity:.42}.prestudy-feedback{border:1px solid var(--line);background:#ffffffb3;border-radius:8px;gap:10px;padding:12px;display:grid}.prestudy-feedback.correct{border-color:#246b615c}.prestudy-feedback.incorrect{border-color:#8a4a3b5c}.prestudy-feedback strong{color:var(--accent-strong)}.prestudy-feedback.incorrect strong{color:#7a3f32}.prestudy-feedback p{max-height:160px;color:var(--muted);margin:0;font-family:Georgia,Times New Roman,serif;font-size:19px;line-height:1.6;overflow-y:auto}.prestudy-result-coverage{color:var(--accent-strong);margin:0;font-size:20px;font-weight:900}.prestudy-error{color:#8a3f32;margin:0;font-size:14px;font-weight:800}.prestudy-review-list{gap:10px;min-height:0;display:grid}.prestudy-review-list>strong{color:var(--ink)}.prestudy-review-list article{border:1px solid var(--line);background:#f6f1e58c;border-radius:8px;padding:10px 12px}.prestudy-review-list article span{color:var(--accent-strong);font-weight:900}.prestudy-review-list article p,.prestudy-review-list article small{color:var(--muted);margin:4px 0 0;line-height:1.55;display:block}.placement-panel{gap:18px;margin-top:28px;display:grid}.placement-panel h2{margin:0}.placement-progress{color:var(--muted);justify-content:space-between;align-items:center;font-size:14px;font-weight:800;display:flex}.placement-word{color:var(--accent-strong);text-align:center;margin:0;font-size:clamp(42px,10vw,76px);line-height:1}.placement-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.placement-choice{border:1px solid var(--line);min-height:56px;color:var(--ink);cursor:pointer;background:#fff;border-radius:8px;padding:10px 12px;font-weight:800}.placement-choice:hover{border-color:var(--accent);background:#246b610f}.placement-choice.unknown{color:var(--muted);grid-column:1/-1}.placement-result{color:var(--ink);margin-top:30px;font-family:Georgia,Times New Roman,Noto Serif KR,serif}.placement-result>.eyebrow,.result-level,.shelf-caption{text-align:center}.result-level h2{color:var(--ink);margin:0;font-family:ui-serif,Georgia,Times New Roman,serif;font-size:clamp(32px,7vw,46px);line-height:1.1}.result-level p{color:var(--muted);margin:8px 0 0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px}.result-rule{opacity:.82;background:#a8842f;width:56px;height:2px;margin:22px auto 32px}.shelf-caption{color:var(--muted);letter-spacing:.06em;margin:0 0 18px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;font-weight:700}.coverage-shelf{border-bottom:6px solid #183546;justify-content:center;align-items:flex-end;gap:18px;padding:0 8px;display:flex;overflow-x:auto}.coverage-spine{border:1px solid var(--line);width:82px;height:280px;color:inherit;background:#ece5d3;border-radius:4px 4px 1px 1px;flex-direction:column;flex:none;justify-content:flex-end;text-decoration:none;transition:border-color .16s,transform .16s;display:flex;position:relative;overflow:hidden}.coverage-spine:hover{border-color:#a8842f;transform:translateY(-3px)}.coverage-spine:focus-visible{outline-offset:4px;outline:2px solid #a8842f}.coverage-spine-fill{background:linear-gradient(#24485c 0%,#183546 100%);border-top:2px solid #a8842f;width:100%;transition:height 1.1s cubic-bezier(.25,.7,.3,1);display:block}.coverage-spine-title{z-index:2;color:var(--ink);letter-spacing:.1em;text-shadow:0 0 6px #f6f1e56b;writing-mode:vertical-rl;font-family:ui-serif,Georgia,Times New Roman,serif;font-size:16px;font-weight:900;line-height:1.12;position:absolute;top:14px;left:50%;transform:translate(-50%)}.coverage-spine.filled-high .coverage-spine-title{color:#f2e7c8;text-shadow:none}.coverage-spine-pct{z-index:2;color:#f2e7c8;text-align:center;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:15px;font-weight:800;position:absolute;bottom:8px;left:0;right:0}.coverage-spine-pct.low{color:var(--muted)}.book-verdicts{gap:6px;max-width:520px;margin:22px auto 0;display:grid}.book-verdict{border-bottom:1px dashed var(--line);color:var(--ink);justify-content:space-between;gap:16px;padding:7px 4px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;text-decoration:none;transition:background .16s,border-color .16s;display:flex}.book-verdict:hover{background:#a8842f14;border-color:#a8842f73}.book-verdict:focus-visible{outline-offset:3px;outline:2px solid #a8842f}.book-verdict strong{white-space:nowrap}.book-verdict .good{color:#3d6b4f}.book-verdict .warn{color:#8a6d2f}.book-verdict .hard{color:#8a4a3b}.placement-debug{max-width:520px;color:var(--muted);margin:34px auto 0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px}.placement-debug summary{cursor:pointer;letter-spacing:.03em;font-weight:700}.placement-debug p{margin:10px 0}.placement-debug table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;margin-top:10px}.placement-debug th,.placement-debug td{border-bottom:1px solid var(--line);text-align:left;padding:4px 6px}.placement-result-actions{justify-content:center;margin-top:34px}.segmented-control{border:1px solid var(--line);background:#fff;border-radius:8px;gap:2px;margin-top:16px;padding:3px;display:inline-flex}.segmented-control button{min-height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 12px;font-size:14px;font-weight:800}.segmented-control button.active{background:var(--accent);color:#fff}.two-col{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:24px;display:grid}.section{margin-top:28px}.admin-actions{flex-wrap:wrap;gap:10px;display:flex}.section h2{margin:0 0 12px;font-size:22px}.chapter-list{gap:10px;display:grid}.chapter-list-grouped{gap:18px}.chapter-volume-group{gap:12px;display:grid}.chapter-volume-group h3{color:var(--text);margin:0;font-size:19px}.chapter-section-group{border-left:2px solid var(--line);gap:10px;padding-left:14px;display:grid}.chapter-section-group h4{color:var(--muted);margin:0;font-size:14px;font-weight:800}.chapter-row{border:1px solid var(--line);background:var(--panel);border-radius:8px;flex-direction:column;align-items:stretch;gap:12px;padding:14px;display:flex}.chapter-row-actions{flex-shrink:0;justify-content:flex-start;align-items:center;gap:8px;display:flex}.chapter-prestudy-button{white-space:nowrap}.chapter-read-button{min-width:44px}.reader-illustration{margin:24px 0}.reader-illustration img{border:1px solid var(--line);background:var(--panel);border-radius:8px;width:100%;height:auto;display:block}.reader-illustration figcaption{color:var(--muted);margin-top:8px;font-size:13px;line-height:1.5}.empty-state{margin-top:24px}.empty-state p:last-child{margin-bottom:0}.feedback-list{gap:14px;margin-top:24px;display:grid}.feedback-card{gap:14px;display:grid}.feedback-card-header{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.feedback-card h2{margin:0;font-size:18px}.feedback-content{white-space:pre-wrap;margin:0;line-height:1.7}.admin-user-form{gap:14px;margin-top:24px;display:grid}.admin-user-toolbar{justify-content:flex-end;margin-top:24px;display:flex}.password-notice{gap:8px;margin-top:24px;display:grid}.password-notice h2{margin:0;font-size:18px}.password-notice code{border:1px solid var(--line);width:fit-content;color:var(--accent-strong);background:#fff;border-radius:6px;padding:10px 12px;font-size:18px;font-weight:800;display:inline-block}.admin-user-list{scroll-behavior:smooth;gap:12px;margin-top:10px;display:grid}.admin-user-count{color:var(--muted);margin:24px 0 0;font-size:14px}.admin-user-pagination{justify-content:center;align-items:center;gap:16px;margin-top:18px;display:flex}.admin-user-pagination span{min-width:64px;color:var(--muted);text-align:center;font-size:14px;font-weight:700}.admin-user-card{gap:16px;display:grid}.admin-user-card h2{margin:0;font-size:18px}.admin-user-summary{color:var(--muted);margin:8px 0 0;font-size:14px}.admin-user-memo{max-width:min(640px,58vw);color:var(--text);text-overflow:ellipsis;white-space:nowrap;margin:6px 0 0;font-size:14px;overflow:hidden}.admin-user-card-header,.admin-user-actions{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.admin-user-card-header>div:first-child{min-width:0}.admin-user-actions.compact{flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;max-width:min(560px,48vw)}.admin-user-profile{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.admin-user-profile .wide{grid-column:1/-1}.reader-layout{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:22px;display:grid}.reader-loading{min-height:60vh}.reader-completion-marker{width:100%;height:1px}.auth-loading{min-height:60vh}.chapter-navigation{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:18px 0 10px;display:grid}.chapter-navigation.bottom{margin:28px 0 0}.chapter-navigation.loading{opacity:.72;pointer-events:none}.chapter-nav-button{text-align:left;justify-content:flex-start;min-height:54px;padding:8px 12px}.chapter-nav-button.next{text-align:right;justify-content:flex-end}.chapter-nav-button span{gap:2px;min-width:0;display:grid}.chapter-nav-button strong{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700;line-height:1.25;overflow:hidden}.chapter-nav-button.disabled strong{color:inherit}.chapter-audio-player{z-index:80;will-change:transform;overscroll-behavior-x:contain;width:auto;max-width:none;padding:9px 10px calc(9px + env(safe-area-inset-bottom));background:#fffdf8;border:0;border-top:1px solid #24485c2e;border-radius:0;flex-wrap:nowrap;justify-content:center;align-items:center;gap:8px;margin:0;display:flex;position:fixed;bottom:0;left:0;right:0;overflow-x:auto;transform:translateZ(0);box-shadow:0 -8px 28px #241f1a1f}.reader-has-floating-audio{--chapter-audio-player-space:112px;padding-bottom:calc(var(--chapter-audio-player-space) + env(safe-area-inset-bottom))}.chapter-audio-button{border:1px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer;border-radius:999px;flex-shrink:0;align-items:center;gap:7px;padding:8px 12px;font-weight:800;display:inline-flex}.chapter-audio-expand-button{color:var(--accent);cursor:pointer;background:#fff;border:1px solid #24485c29;border-radius:999px;flex-shrink:0;align-items:center;gap:5px;padding:7px 10px;font-size:12px;font-weight:800;display:none}.chapter-audio-progress{background:#24485c24;border-radius:999px;flex:0 0 clamp(84px,10vw,128px);min-width:84px;height:7px;position:relative;overflow:hidden}.chapter-audio-progress span{border-radius:inherit;background:linear-gradient(90deg, var(--accent), #db972d);position:absolute;inset:0 auto 0 0}.chapter-audio-time{color:var(--muted);font-variant-numeric:tabular-nums;flex-shrink:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:700}.chapter-audio-rate,.chapter-audio-loop-controls{background:#24485c0d;border:1px solid #24485c24;border-radius:999px;flex-shrink:0;align-items:center;gap:4px;padding:3px;display:inline-flex}.chapter-audio-loop-controls{min-width:max-content}.chapter-audio-rate button,.chapter-audio-loop-controls button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:999px;align-items:center;gap:4px;padding:5px 8px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:800;display:inline-flex}.chapter-audio-rate .chapter-audio-rewind-button{padding-inline:7px}.chapter-audio-loop-controls button{min-height:28px}.chapter-audio-rate button.active,.chapter-audio-loop-controls button.active{color:var(--accent);background:#fff;box-shadow:0 1px 4px #241f1a1f}.chapter-audio-loop-controls .dictation-launch-button{color:#4d3510;white-space:nowrap;background:linear-gradient(#fff4c2 0%,#f0c256 100%);border:1px solid #b0631885;flex:none;min-width:max-content;padding:6px 12px;box-shadow:0 2px #4d35102e,0 8px 18px #b0631829}.chapter-audio-loop-controls .dictation-launch-button:hover:not(:disabled){color:#3e2b0d;background:linear-gradient(#fff8d6 0%,#eab744 100%);border-color:#b06318b8}.chapter-audio-rate button:disabled,.chapter-audio-loop-controls button:disabled{cursor:not-allowed;opacity:.45}.chapter-audio-loop-controls .chapter-audio-loop-clear{padding-inline:7px}.chapter-audio-loop-controls .dictation-launch-button:disabled{opacity:.58}.dictation-launch-button-mobile{display:none}.chapter-audio-loop-status{color:var(--muted);white-space:nowrap;flex:none;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:800;display:none}.dictation-modal-backdrop{z-index:110;overscroll-behavior:contain;background:#241f1a6b;place-items:center;padding:24px;display:grid;position:fixed;inset:0;overflow:hidden}.dictation-panel{overscroll-behavior:contain;background:#fffdf8;border:1px solid #24485c29;border-radius:8px;gap:9px;width:min(720px,100%);height:auto;max-height:calc(100vh - 48px);padding:16px 16px 20px;display:grid;position:relative;overflow-y:auto;box-shadow:0 24px 70px #241f1a47}.dictation-header,.dictation-actions{justify-content:space-between;align-items:center;gap:10px;display:flex}.dictation-actions{flex-wrap:wrap}.dictation-controls{grid-template-columns:1fr;align-items:stretch;gap:10px;display:grid}.dictation-nav{flex:none;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) minmax(0,1fr);gap:8px;width:100%;display:grid}.dictation-nav .button{flex:1 1 0;justify-content:center}.dictation-options-row{flex:none;grid-template-columns:minmax(0,1fr) 104px;align-items:center;gap:10px;width:100%;display:grid}.dictation-rate{background:#24485c0d;border:1px solid #24485c24;border-radius:999px;flex:220px;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;min-width:0;height:38px;padding:2px;display:grid}.dictation-rate button{min-width:0;color:var(--muted);cursor:pointer;text-align:center;white-space:nowrap;background:0 0;border:0;border-radius:999px;justify-content:center;align-items:center;padding:0 2px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:800;display:inline-flex;overflow:hidden}.dictation-rate button.active{color:var(--accent);background:#fff;box-shadow:0 1px 4px #241f1a1f}.dictation-header h2{color:var(--accent-strong);margin:0;font-size:18px}.dictation-instruction{margin:-2px 0 2px;line-height:1.45}.dictation-mode{width:104px;height:38px;color:var(--muted);white-space:nowrap;background:#24485c0d;border:1px solid #24485c24;border-radius:999px;justify-content:center;align-items:center;gap:6px;padding:0 8px;font-size:13px;font-weight:700;display:inline-flex}.dictation-hint-row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:10px;display:flex}.dictation-hint-box{color:var(--ink);background:#fff7df;border:1px solid #a8842f47;border-radius:6px;margin-top:8px;padding:10px 12px;font-family:Georgia,Times New Roman,serif;font-size:16px;line-height:1.65}.dictation-input{border:1px solid var(--line);width:100%;min-height:132px;color:var(--ink);resize:vertical;background:#fff;border-radius:6px;margin:10px 0;padding:10px 12px;font:16px/1.55 Georgia,Times New Roman,serif}.dictation-result{overscroll-behavior:contain;border:1.5px solid var(--line);scrollbar-gutter:stable;border-radius:8px;gap:12px;max-height:min(270px,31dvh);margin:10px 0 8px;padding:14px 14px 18px;display:grid;overflow-y:auto}.dictation-result.perfect{background:#edf8f1;border-color:#246b6161}.dictation-result.good{background:#edf2fb;border-color:#2b5fb847}.dictation-result.retry{background:#fff0eb;border-color:#b84a3157}.dictation-verdict-row{justify-content:space-between;align-items:baseline;gap:10px;display:flex}.dictation-verdict-row strong{color:var(--accent-strong);font-size:16px}.dictation-verdict-row span{color:var(--muted);font-size:13px;font-weight:800}.dictation-comparison{gap:5px;display:grid}.dictation-comparison .eyebrow{margin:6px 0 0}.dictation-comparison p{margin:0;font-family:Georgia,Times New Roman,serif;font-size:16px;line-height:1.7}.dictation-comparison .eyebrow,.dictation-result .meta,.dictation-result-note{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.dictation-model{font-weight:700}.dictation-extra-token{color:#9d2f22;text-decoration:line-through;text-decoration-thickness:1.5px}.dictation-missing-token{color:#9d2f22;border-bottom:2px solid #9d2f22;font-weight:800}.dictation-result-note{color:var(--muted);border-top:1px dashed #00000024;margin:0;padding-top:6px;font-size:13px;line-height:1.45}.paragraph{border-bottom:1px solid var(--line);white-space:pre-line;padding:20px 0;font-family:Georgia,Times New Roman,serif;font-size:20px;line-height:1.85}.reader-paragraph-block{border-left:3px solid #0000;padding-left:12px;scroll-margin-top:88px;transition:background .16s,border-color .16s}.reader-paragraph-block.selected{border-left-color:var(--accent);background:#246b610e}.paragraph-translation{border-bottom:1px solid var(--line);color:var(--muted);white-space:pre-line;margin:-8px 0 0;padding:0 0 18px;font-size:16px;line-height:1.75}.translated-paragraph{white-space:pre-line;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:17px;line-height:1.85}.analysis-translation{white-space:pre-line}.admin-translation-editor{background:#246b6109;border:1px solid #246b612e;border-radius:8px;margin:-8px 0 18px;padding:12px}.admin-translation-editor.collapsed{background:0 0;border:0;justify-content:flex-end;margin:8px 0 18px;padding:0 0 14px;display:flex}.admin-translation-editor-header,.admin-translation-actions{justify-content:space-between;align-items:center;gap:10px;display:flex}.admin-translation-editor-header{color:var(--ink);margin-bottom:10px;font-size:14px}.admin-translation-editor-header span,.admin-translation-segment small,.admin-translation-segment em{color:var(--muted);font-size:12px;font-style:normal}.admin-translation-segment-list{gap:10px;display:grid}.admin-translation-segment{gap:7px;min-width:0;display:grid}.admin-translation-segment>span{color:var(--accent-strong);align-items:center;gap:8px;font-size:13px;font-weight:800;display:flex}.admin-translation-segment small{overflow-wrap:anywhere;line-height:1.55;display:block}.admin-translation-segment textarea{resize:vertical;border:1px solid var(--line);width:100%;max-width:100%;color:var(--ink);font:inherit;background:#fff;border-radius:6px;padding:9px 10px;font-size:14px;line-height:1.7}.admin-translation-actions{justify-content:flex-end;margin-top:12px}.admin-translation-history{border-top:1px solid #246b6124;margin-top:14px;padding-top:12px}.admin-translation-history-header{color:var(--ink);justify-content:space-between;align-items:center;gap:10px;font-size:13px;display:flex}.admin-translation-history-list{gap:8px;margin-top:10px;display:grid}.admin-translation-history-item{border:1px solid var(--line);background:#fff;border-radius:7px;gap:8px;padding:10px;display:grid}.admin-translation-history-item>div{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.admin-translation-history-item strong{color:var(--accent-strong);font-size:12px}.admin-translation-history-item span,.admin-translation-history-empty{color:var(--muted);font-size:12px}.admin-translation-history-item span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.admin-translation-history-item p{color:var(--ink);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.admin-translation-history-item button{justify-self:end}.admin-translation-history-empty{margin:10px 0 0}.admin-translation-error{color:#a23b3b;margin:10px 0 0;font-size:13px;font-weight:700}.source-segment{cursor:text;border-radius:5px;scroll-margin-top:88px;transition:background .14s,box-shadow .14s}.source-segment:hover{background:#246b6114;box-shadow:0 0 0 2px #246b6114}.reader-audio-playing .source-segment:hover,.reader-audio-playing .translation-segment:hover{box-shadow:none;background:0 0}.source-segment.active,.source-segment.active:hover{background:#fff1c7;box-shadow:0 0 0 2px #db972d38}.translation-segment{cursor:pointer;border-radius:5px;transition:background .14s,box-shadow .14s,color .14s}.translation-segment.active,.translation-segment.active:hover{color:var(--ink);background:#fff1c7;box-shadow:0 0 0 2px #db972d38}.source-segment.dictation-masked,.source-segment.dictation-masked:hover,.source-segment.active.dictation-masked,.source-segment.active.dictation-masked:hover,.translation-segment.dictation-masked,.translation-segment.dictation-masked:hover,.translation-segment.active.dictation-masked,.translation-segment.active.dictation-masked:hover{-webkit-box-decoration-break:clone;box-decoration-break:clone;color:#0000!important;text-shadow:none!important;background:#3f3a34!important;box-shadow:0 0 0 2px #3f3a34!important}.translation-segment.dictation-masked,.translation-segment.dictation-masked:hover,.translation-segment.active.dictation-masked,.translation-segment.active.dictation-masked:hover{padding:.08em .18em .1em;line-height:2.05}.source-segment.dictation-masked *,.translation-segment.dictation-masked *{color:#0000!important;text-shadow:none!important;background:0 0!important}.reader-audio-playing .source-segment.active:hover,.reader-audio-playing .translation-segment.active:hover{background:#fff1c7;box-shadow:0 0 0 2px #db972d38}.source-segment.active .word:hover,.source-segment.active .word.difficult:hover,.translation-segment.active .word:hover,.translation-segment.active .word.difficult:hover{background:inherit}.word{color:inherit;cursor:pointer;background:#7bb3dc29;border:0;border-radius:0;padding:0;text-decoration:none}.word:hover{background:#7bb3dc42}.word.difficult{color:inherit;background:#f497ba2e;font-weight:600}.reader-audio-playing .source-segment.active .word,.reader-audio-playing .source-segment.active .word:hover,.reader-audio-playing .source-segment.active .word:active{background:#7bb3dc29;transition:none}.reader-audio-playing .source-segment.active .word.difficult,.reader-audio-playing .source-segment.active .word.difficult:hover,.reader-audio-playing .source-segment.active .word.difficult:active{background:#f497ba2e;transition:none}.phrase-expression{box-shadow:none;cursor:pointer;border-bottom:1px solid #8e5697d1}.phrase-expression:hover{border-bottom-color:#8e5697d1}.phrase-expression.difficult{border-bottom-style:solid;border-bottom-color:#8e5697d1;font-weight:600}.structure-expression{color:#4c327a;font-weight:inherit;background:0 0;border-bottom:0;border-radius:4px;box-shadow:inset 0 -.32em #7952b347}.saved-passage-highlight{background:#fff1c7;border-radius:4px;box-shadow:0 0 0 2px #db972d38}.current-passage-highlight{background:#b7d7ff;border-radius:3px;box-shadow:0 0 0 1px #458bda3d}.word:focus-visible{outline-offset:3px;outline:2px solid #246b616b}.word-marker{min-width:0;height:auto;color:inherit;vertical-align:super;background:0 0;border:0;border-radius:0;margin-left:0;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:10px;font-weight:800;line-height:1;display:none}.phrase-marker{background:#ffefd5}.word-tooltip{z-index:50;border:1px solid var(--line);background:#fffdf8;border-radius:8px;width:min(340px,100vw - 28px);padding:14px;position:fixed;box-shadow:0 18px 48px #241f1a2e}.word-tooltip.above{transform:translate(-50%,-100%)}.word-tooltip.below{transform:translate(-50%)}.word-tooltip:after{content:"";background:#fffdf8;width:14px;height:14px;position:absolute;left:50%;transform:translate(-50%)rotate(45deg)}.word-tooltip.above:after{border-right:1px solid var(--line);border-bottom:1px solid var(--line);bottom:-8px}.word-tooltip.below:after{border-top:1px solid var(--line);border-left:1px solid var(--line);top:-8px}.word-tooltip h3{flex-wrap:wrap;align-items:baseline;gap:8px;margin:0 28px 8px 0;display:flex}.tooltip-audio-button{color:var(--accent-strong);cursor:pointer;background:#246b6114;border:1px solid #246b6138;border-radius:999px;align-items:center;gap:5px;margin:0 0 2px;padding:6px 9px;font-size:13px;font-weight:800;display:inline-flex}.pronunciation{color:var(--muted);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:13px;font-weight:600}.word-tooltip p{margin:8px 0 0;line-height:1.55}.passage-selection-toolbar{z-index:45;border:1px solid var(--line);background:#fffdf8;border-radius:8px;align-items:center;gap:6px;padding:6px;display:inline-flex;position:fixed;transform:translate(-50%,-100%);box-shadow:0 12px 32px #241f1a29}.selection-toolbar-close{border:1px solid var(--line);width:30px;height:30px;color:var(--muted);cursor:pointer;background:#fff;border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.selection-notice-popup{z-index:46;color:var(--ink);background:#fffdf8;border:1px solid #7952b347;border-radius:8px;padding:9px 12px;font-size:13px;font-weight:800;position:fixed;transform:translate(-50%,-100%);box-shadow:0 12px 32px #241f1a29}.word-tooltip .badge-row{margin-top:10px}.tooltip-close{border:1px solid var(--line);width:26px;height:26px;color:var(--muted);cursor:pointer;background:#fff;border-radius:999px;justify-content:center;align-items:center;display:inline-flex;position:absolute;top:8px;right:8px}.side-panel{overscroll-behavior:contain;border:1px solid var(--line);background:var(--panel);border-radius:8px;max-height:calc(100vh - 108px);padding:16px;position:sticky;top:86px;overflow-y:auto}.character-story-group{gap:14px;display:grid}.character-story-group+.character-story-group{border-top:1px solid var(--line);padding-top:14px}.character-story-group h3{color:var(--muted);margin:0;font-size:14px;font-weight:800}.book-characters-more{width:100%;margin-top:12px}@media (min-width:821px){.reader-has-floating-audio .side-panel{max-height:calc(100vh - 70px - var(--chapter-audio-player-space,112px))}}.side-panel-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.side-panel-close,.analysis-fab,.side-panel-backdrop{display:none}.side-panel-close{border:1px solid var(--line);width:38px;height:38px;color:var(--muted);cursor:pointer;background:#fff;border-radius:999px;flex:none;justify-content:center;align-items:center}.side-panel h2,.side-panel h3{margin-top:0}.selected-paragraph-label{color:var(--muted);margin:-6px 0 14px;font-size:13px;font-weight:800}.analysis{gap:14px;display:grid}.expression-list{flex-wrap:wrap;gap:8px;display:flex}.analysis-note{width:100%;color:var(--muted);font:inherit;text-align:left;cursor:pointer;background:#ffffff85;border:0;border-left:3px solid #7952b329;border-radius:6px;margin:0 0 8px;padding:8px 10px;line-height:1.65;display:block}.analysis-note:hover,.analysis-note.active{color:var(--ink);background:#7952b314;border-left-color:#7952b3a6}.analysis-note-select{width:100%;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;padding:0;display:block}.structure-expression-list{flex-wrap:wrap;gap:6px;margin-bottom:8px;display:flex}.structure-expression-label{color:#4c327a;background:#7952b314;border-radius:4px;padding:2px 5px;font-size:12px;font-weight:700;line-height:1.35;display:inline}.analysis-note-body{gap:6px;display:grid}.analysis-note-body p{margin:0}.expression-chip{border:1px solid var(--line);min-height:30px;color:var(--ink);cursor:pointer;background:#fff;border-radius:999px;align-items:center;gap:6px;padding:0 10px 0 6px;font-size:13px;display:inline-flex}.expression-chip span{width:18px;height:18px;color:var(--warn);background:#fff0e8;border-radius:999px;justify-content:center;align-items:center;font-size:11px;font-weight:800;display:inline-flex}.expression-chip.active{border-color:var(--warn);background:#fff8ec}.save-word-button{border:1px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:8px;min-height:38px;margin-top:12px;padding:0 12px;font-size:14px;font-weight:800;display:inline-flex}.save-word-button.saved{border-color:var(--line);color:var(--muted);cursor:default;background:#f1eee8}.save-word-button:disabled{opacity:1}.save-grammar-button{color:#4c327a;cursor:pointer;background:#fff;border:1px solid #7952b359;border-radius:6px;justify-content:center;align-items:center;gap:6px;min-height:32px;margin-top:10px;padding:0 10px;font-size:12px;font-weight:800;display:inline-flex}.save-grammar-button.saved{border-color:var(--line);color:var(--muted);cursor:default;background:#f1eee8}.save-grammar-button:disabled{opacity:1}.delete-word-button{border:1px solid var(--line);min-height:34px;color:var(--warn);cursor:pointer;background:0 0;border-radius:6px;justify-content:center;align-items:center;gap:7px;margin-top:12px;padding:0 10px;font-size:13px;font-weight:800;display:inline-flex}.grammar-grid{align-items:start}.vocabulary-audio-toolbar{border:1px solid var(--line);background:#246b610f;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;margin:18px 0 20px;padding:12px 14px;display:flex}.vocabulary-audio-toolbar .eyebrow,.vocabulary-audio-toolbar .meta{margin:0}.vocabulary-audio-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.vocabulary-audio-actions .sentence-card-action.active{color:var(--accent-strong);background:#246b611a;border-color:#246b6159}.grammar-card{gap:10px;display:grid}.grammar-card h2{color:#4c327a;background:#7952b314;border-radius:6px;width:fit-content;max-width:100%;padding:4px 7px}.grammar-card .source-sentence{margin:14px 0 8px}.grammar-source-expression{color:#4c327a;background:0 0;border-radius:4px;font-weight:800;box-shadow:inset 0 -.32em #7952b347}.grammar-note-explanation{background:#7952b314;border-left-color:#7952b3a6;margin-top:2px}.grammar-note-explanation .eyebrow{color:#4c327a}.grammar-card-actions{align-items:center;gap:8px;display:grid}.note-card-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.memo-editor-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.sentence-card{gap:12px;display:grid}.saved-passage-text{color:var(--ink);background:#fff8ec;border-left:3px solid #db972d80;margin:0;padding:12px 14px;font-family:Georgia,Times New Roman,serif;font-size:18px;line-height:1.65}.passage-memo,.passage-memo-editor,.note-memo,.note-memo-editor{background:#7952b30f;border-left:3px solid #7952b361;border-radius:6px;padding:12px 14px}.passage-memo p,.note-memo p{margin:6px 0 0;line-height:1.6}.passage-memo+.grammar-card-actions,.note-memo+.grammar-card-actions{margin-top:12px}.passage-memo-editor,.note-memo-editor{gap:8px;display:grid}.passage-memo-editor textarea,.note-memo-editor textarea{resize:vertical;width:100%;min-height:92px}.sentence-card-action{color:#4c327a;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #7952b359;border-radius:6px;justify-content:center;align-items:center;gap:6px;min-height:34px;padding:0 8px;font-size:11.5px;font-weight:800;line-height:1;text-decoration:none;display:inline-flex}.sentence-card-action.danger{color:#8a3f35;border-color:#9e4e3e47}.study-card{border:1px solid var(--line);background:var(--panel);border-radius:8px;gap:18px;max-width:780px;margin-top:28px;padding:24px;display:grid}.study-mode-row{border:1px solid var(--line);background:#fff;border-radius:8px;gap:2px;margin-top:18px;padding:3px;display:inline-flex}.study-mode-row button{min-height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0 12px;font-size:14px;font-weight:800}.study-mode-row button.active{background:var(--accent);color:#fff}.study-progress{color:var(--muted);justify-content:space-between;align-items:center;gap:16px;font-size:14px;display:flex}.study-sentence{margin:0;font-size:22px;line-height:1.75}.word-blank{border-bottom:2px solid var(--warn);min-width:72px;color:var(--warn);letter-spacing:.08em;justify-content:center;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:800;display:inline-flex}.study-answer{border-top:1px solid var(--line);padding-top:16px}.study-answer h2{margin:0 0 8px}.muted-answer{color:var(--muted)}.quiz-prompt h2{margin:0 0 12px;font-size:34px}.choice-list{gap:10px;display:grid}.choice-button{border:1px solid var(--line);width:100%;min-height:52px;color:var(--ink);cursor:pointer;text-align:left;background:#fff;border-radius:8px;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:10px;padding:10px 12px;display:grid}.choice-button span{width:28px;height:28px;color:var(--muted);background:#f1eee8;border-radius:999px;justify-content:center;align-items:center;font-size:13px;font-weight:800;display:inline-flex}.choice-button:hover:not(:disabled){border-color:var(--accent)}.choice-button.correct{border-color:var(--accent);background:#edf7f3}.choice-button.correct span{background:var(--accent);color:#fff}.choice-button.incorrect{border-color:var(--warn);background:#fff3ee}.choice-button.incorrect span{background:var(--warn);color:#fff}.choice-button:disabled{cursor:default;opacity:1}.quiz-feedback{border-radius:6px;align-items:center;gap:8px;min-height:38px;padding:0 12px;font-weight:800;display:inline-flex}.quiz-feedback.correct{color:var(--accent-strong);background:#edf7f3}.quiz-feedback.incorrect{color:var(--warn);background:#fff3ee}.study-actions,.study-stats{flex-wrap:wrap;gap:10px;display:flex}.study-stats span{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:999px;padding:8px 12px;font-size:14px;font-weight:700}.form{gap:12px;max-width:420px;display:grid}.text-link{width:fit-content;color:var(--accent-strong);font-size:14px;font-weight:700;text-decoration:none}.text-link:hover{text-decoration:underline}.feedback-form{max-width:640px}.field{gap:6px;display:grid}.field input,.field select,.field textarea{border:1px solid var(--line);background:var(--panel);border-radius:6px;min-height:42px;padding:0 12px}.field textarea{resize:vertical;min-height:180px;padding:12px;line-height:1.6}.form-success{color:var(--accent-strong);margin:0;font-weight:700}.waitlist-card{background:linear-gradient(180deg, #fffdf7 0%, var(--panel) 100%);max-width:520px;margin-top:28px}.waitlist-card h2{margin:0 0 8px;font-size:21px}.waitlist-form{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:14px;display:grid}.waitlist-honeypot{width:1px;height:1px;position:absolute;left:-10000px;overflow:hidden}.waitlist-turnstile{grid-column:1/-1;min-height:65px}.waitlist-privacy{color:var(--muted);margin:12px 0 0;font-size:12px;line-height:1.5}.waitlist-contact{color:#5d4410;background:#fff8dc;border:1px solid #a8842f61;border-radius:6px;margin:14px 0 0;padding:10px 12px;font-size:14px;line-height:1.55}.waitlist-contact a{color:#5d4410;text-underline-offset:2px;font-weight:900;text-decoration:underline}.waitlist-user-agent{color:var(--muted);word-break:break-word;font-size:13px}.waitlist-summary-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-top:24px;display:grid}.waitlist-metric-card{padding:14px}.waitlist-metric-card .eyebrow{margin-bottom:4px}.waitlist-metric-card strong{color:var(--accent-strong);font-size:26px;line-height:1}.waitlist-metric-card.warn{background:#fff4ef;border-color:#8a4a3b6b}.waitlist-metric-card.warn strong{color:#8a4a3b}.waitlist-monitor-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px;margin-top:18px;display:grid}.waitlist-monitor-card h2{margin:0 0 12px;font-size:18px}.waitlist-monitor-list{gap:8px;display:grid}.waitlist-monitor-row{border-bottom:1px dashed var(--line);justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:8px;display:flex}.waitlist-monitor-row span{overflow-wrap:anywhere;min-width:0;color:var(--muted);font-size:13px}.waitlist-monitor-row strong{color:var(--accent-strong)}@media (max-width:820px){.reader-has-floating-audio{--chapter-audio-player-space:128px}.modal-backdrop{padding:8px 10px calc(42px + env(safe-area-inset-bottom));align-items:start}.prestudy-modal-panel{width:min(100%,620px);height:calc(100dvh - 58px - env(safe-area-inset-bottom));max-height:calc(100dvh - 58px - env(safe-area-inset-bottom));gap:3px;min-height:0;padding:8px}.prestudy-modal-panel .prestudy-coverage{margin-top:38px;padding:4px 8px;font-size:12px;line-height:1.2}.prestudy-modal-panel .prestudy-card{gap:3px;min-height:0;padding:8px 10px 10px}.prestudy-card h3{font-size:clamp(25px,9vw,34px);line-height:1.02}.prestudy-card-topline,.prestudy-pronunciation{font-size:13px;line-height:1.08}.prestudy-card-topline{flex-wrap:wrap;gap:2px 8px}.prestudy-frequency-badge{padding:2px 7px;font-size:12px}.prestudy-meaning{font-size:22px;line-height:1.12}.prestudy-counter{padding:3px 8px;font-size:12px;line-height:1.15}.prestudy-scroll-body{gap:9px;padding:10px 12px 10px 10px}.prestudy-scroll-body>.meta{font-size:17px;line-height:1.5}.prestudy-source{padding-left:9px;font-size:17px;line-height:1.58}.prestudy-actions{padding-top:6px;padding-bottom:max(8px, env(safe-area-inset-bottom));gap:8px}.prestudy-actions .button{min-height:42px;padding:10px 12px}.prestudy-choice{min-height:48px;padding:10px 12px;font-size:16px}.word-tooltip{right:max(14px, env(safe-area-inset-right));width:auto;left:max(14px, env(safe-area-inset-left))!important}.word-tooltip.above{transform:translateY(-100%)}.word-tooltip.below{transform:none}.vocabulary-card{scroll-margin:74px}.vocabulary-main{padding-bottom:calc(112px + env(safe-area-inset-bottom))}.vocabulary-floating-stop{right:max(12px, env(safe-area-inset-right));bottom:max(12px, env(safe-area-inset-bottom));left:max(12px, env(safe-area-inset-left));gap:10px;min-width:0;max-width:none;padding:8px 9px 8px 14px;transform:none}.dictation-modal-backdrop{padding:8px 10px calc(42px + env(safe-area-inset-bottom));align-items:start}.chapter-audio-player{padding:8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));flex-wrap:wrap;justify-content:flex-start;gap:7px;overflow-x:hidden}.chapter-audio-button{order:1;padding:7px 10px}.chapter-audio-expand-button{order:3;display:inline-flex}.chapter-audio-progress{flex:100%;order:4;width:100%;min-width:0;height:5px}.chapter-audio-time{order:2;margin-left:auto;font-size:11px}.chapter-audio-rate{flex:1 1 0;order:5;grid-template-columns:repeat(5,minmax(0,1fr));justify-content:stretch;min-width:0;margin-left:0;display:grid}.chapter-audio-rate button{justify-content:center;min-width:0;padding-inline:4px;overflow:hidden}.dictation-launch-button-mobile{color:#4d3510;cursor:pointer;white-space:nowrap;background:linear-gradient(#fff4c2 0%,#f0c256 100%);border:1px solid #b0631885;border-radius:999px;flex:none;order:6;justify-content:center;align-items:center;gap:4px;min-width:max-content;padding:6px 9px;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:12px;font-weight:800;display:inline-flex;box-shadow:0 2px #4d35102e,0 8px 18px #b0631829}.dictation-launch-button-mobile:disabled{cursor:not-allowed;opacity:.58}.chapter-audio-loop-controls{flex-wrap:nowrap;flex:100%;order:7;justify-content:stretch;display:flex;overflow-x:visible}.chapter-audio-loop-controls .dictation-launch-button-desktop{display:none}.chapter-audio-loop-controls button{white-space:nowrap;flex:1 1 0;justify-content:center;gap:1px;width:100%;min-width:0;padding:5px 3px;font-size:11px}.chapter-audio-loop-status{text-align:center;flex:100%;order:8;display:block}.dictation-panel{width:min(100%,620px);height:auto;max-height:calc(100dvh - 58px - env(safe-area-inset-bottom));border-radius:10px;min-height:0;padding:12px}.dictation-panel .dictation-header{padding-right:36px}.dictation-header h2{font-size:16px}.dictation-controls{grid-template-columns:1fr;align-items:stretch;gap:8px;display:grid}.dictation-controls .dictation-nav{flex:none;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr) minmax(0,1fr);width:100%;display:grid}.dictation-controls .dictation-listen-button{justify-content:center;width:100%}.dictation-options-row{flex:none;grid-template-columns:minmax(0,1fr) 92px;gap:8px;width:100%;display:grid}.dictation-controls .dictation-rate{flex:none;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;width:100%;min-width:0;padding:2px;display:grid;overflow:hidden}.dictation-controls .dictation-rate button{text-align:center;white-space:nowrap;justify-content:center;min-width:0;padding:6px 0;font-size:10px;overflow:hidden}.dictation-controls .dictation-mode{white-space:nowrap;background:#24485c0d;border:1px solid #24485c24;border-radius:999px;justify-content:center;gap:4px;width:92px;height:38px;min-height:38px;padding:0 6px}.dictation-submit-row{flex-flow:row;align-items:center}.dictation-submit-row .button{flex:0 0 132px;width:auto}.dictation-submit-row .meta{text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:1 1 0;min-width:0;overflow:hidden}.dictation-result{max-height:min(250px,30dvh)}.dictation-input{min-height:150px;font-size:15px}.chapter-audio-player.collapsed .chapter-audio-advanced,.chapter-audio-player.collapsed .dictation-launch-button-mobile{display:none}.chapter-audio-player.collapsed{gap:6px 8px}.two-col,.reader-layout{grid-template-columns:1fr}.placement-entry{flex-direction:column;align-items:stretch}.placement-options,.prestudy-choice-grid{grid-template-columns:1fr}.coverage-shelf{justify-content:flex-start;gap:12px;padding:0 4px}.coverage-spine{width:70px;height:230px}.coverage-spine-title{letter-spacing:.08em;font-size:14px}.book-verdict{flex-direction:column;align-items:flex-start;gap:2px}.chapter-navigation{grid-template-columns:1fr}.chapter-row-actions,.chapter-row-actions .button{width:100%}.admin-user-card-header,.admin-user-actions{flex-direction:column;align-items:flex-start}.admin-user-list{overscroll-behavior-x:none;overscroll-behavior-y:contain;scrollbar-color:var(--accent) #eee8e2;scrollbar-gutter:stable;scrollbar-width:auto;touch-action:pan-y;-webkit-overflow-scrolling:touch;width:100%;min-width:0;max-height:min(68vh,720px);padding-right:8px;overflow:hidden auto}.admin-user-list::-webkit-scrollbar{width:8px}.admin-user-list::-webkit-scrollbar-track{background:#eee8e2;border-radius:4px}.admin-user-list::-webkit-scrollbar-thumb{background:var(--accent);border:2px solid #eee8e2;border-radius:4px}.admin-user-card{-moz-text-size-adjust:100%;text-size-adjust:100%;width:100%;min-width:0;max-width:100%;padding:16px}.admin-user-card-header,.admin-user-actions,.admin-user-actions.compact{width:100%;min-width:0;max-width:100%}.admin-user-card-header>div:first-child{width:100%;min-width:0}.admin-user-card h2,.admin-user-summary,.admin-user-memo{overflow-wrap:anywhere}.admin-user-card h2{font-size:16px}.admin-user-card .badge-row{flex-wrap:wrap}.admin-user-actions,.admin-user-actions.compact,.admin-user-actions .button{width:100%}.admin-user-actions .button{overflow-wrap:anywhere;white-space:normal;text-align:center;min-width:0;max-width:100%}.admin-user-pagination .button{min-height:40px;padding:0 14px}.admin-user-profile,.waitlist-form{grid-template-columns:1fr}.admin-user-memo{text-overflow:clip;white-space:normal;max-width:100%;font-size:14px;line-height:1.55;overflow:visible}.analysis-fab{right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:35;min-height:44px;color:var(--ink);font:inherit;cursor:pointer;background:#fff;border:1px solid #6e419138;border-radius:999px;align-items:center;gap:7px;padding:0 15px;font-size:14px;font-weight:800;display:inline-flex;position:fixed;box-shadow:0 14px 32px #37281c2e}.side-panel-backdrop{z-index:40;cursor:pointer;background:#221c1647;border:0;display:block;position:fixed;inset:0}.side-panel{top:calc(12px + env(safe-area-inset-top));z-index:45;max-height:min(74vh,620px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:14px;padding:14px 16px 16px;transition:transform .16s,visibility .16s;position:fixed;bottom:auto;left:12px;right:12px;transform:translateY(0);box-shadow:0 18px 44px #37281c3d}.reader-has-floating-audio .side-panel{max-height:calc(100dvh - 24px - env(safe-area-inset-top) - var(--chapter-audio-player-cover,100px))}.side-panel.mobile-closed{visibility:hidden;transform:translateY(calc(-100% - 24px))}.side-panel.mobile-open{visibility:visible}.book-characters-panel{z-index:auto;border:1px solid var(--line);max-height:none;box-shadow:none;visibility:visible;border-radius:8px;padding:16px;transition:none;position:static;transform:none}.side-panel-header{z-index:2;border-bottom:1px solid var(--line);background:var(--panel);align-items:center;margin:-14px -16px 12px;padding:12px 16px 10px;position:sticky;top:-14px}.side-panel-close{display:inline-flex}.side-panel h2{align-items:center;gap:6px;margin:0;font-size:18px;display:flex}.selected-paragraph-label{margin:4px 0 0}.header-inner{flex-direction:row;align-items:center;gap:12px;min-height:58px;padding:8px 0}.mobile-menu-button{display:inline-flex}.nav{z-index:60;border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:8px;flex-direction:column;align-items:stretch;gap:2px;padding:8px;display:none;position:absolute;top:calc(100% + 8px);left:0;right:0;box-shadow:0 18px 42px #37281c2e}.nav.open{display:flex}.nav a,.nav-button{text-align:left;border-radius:6px;align-items:center;width:100%;min-height:44px;padding:0 10px;display:flex}.nav a:hover,.nav-button:hover{background:#f1eadf}}.grammar-course-part{border-top:1px solid var(--line);padding-top:18px}.grammar-course-part-head h2{margin:0 0 4px;font-size:1.15rem}.grammar-course-part-index{color:var(--accent);font-weight:800}.grammar-course-part-subtitle{color:var(--muted);margin:0 0 2px}.grammar-course-part-note{color:var(--muted);margin:0;font-size:.9rem}.grammar-course-pending{color:var(--warn);font-size:.9rem}.grammar-course-units{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;margin:14px 0 0;padding:0;list-style:none;display:grid}.grammar-course-unit-card{border:1px solid var(--line);background:var(--panel);height:100%;color:inherit;border-radius:8px;gap:4px;padding:12px 14px;text-decoration:none;display:grid}.grammar-course-unit-card:hover{border-color:#7952b373}.grammar-course-unit-title{font-weight:700}.grammar-course-unit-meta{color:var(--muted);font-size:.85rem}.grammar-course-unit-flag{width:fit-content;color:var(--warn);background:#b84a311a;border-radius:4px;padding:1px 6px;font-size:.78rem}.grammar-course-examples{counter-reset:grammar-course-example;gap:14px;margin:18px 0 0;padding:0;list-style:none;display:grid}.grammar-course-example{border:1px solid var(--line);background:var(--panel);border-left:3px solid #7952b380;border-radius:8px;padding:14px 16px}.grammar-course-example-en{margin:0 0 6px;font-size:1.02rem;line-height:1.65}.grammar-course-example-ko{color:var(--muted);margin:0}.grammar-course-example-note{background:#7952b314;border-left:3px solid #7952b3a6;border-radius:0 6px 6px 0;margin:10px 0 0;padding:8px 12px;line-height:1.6}.grammar-course-example-source{margin:8px 0 0;font-size:.85rem}.grammar-course-example-source a{color:var(--muted)}.grammar-course-nav{justify-content:space-between;gap:10px;display:flex}.grammar-course-heading{margin:0 0 8px;font-size:1.05rem}.grammar-course-learner-note{border:1px solid var(--line);background:#7952b312;border-left:3px solid #7952b38c;border-radius:0 8px 8px 0;margin:0 0 18px;padding:12px 16px}.grammar-course-learner-note .eyebrow{color:#4c327a;margin:0 0 4px}.grammar-course-learner-note p:last-child{margin:0;line-height:1.7}.grammar-course-sections{counter-reset:grammar-course-section;gap:16px;margin:0;padding:0;list-style:none;display:grid}.grammar-course-section{counter-increment:grammar-course-section;border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:14px 16px}.grammar-course-section h3{margin:0 0 8px;font-size:1rem}.grammar-course-section h3:before{content:counter(grammar-course-section) ". ";color:var(--accent);font-weight:800}.grammar-course-pattern{color:var(--accent-strong);background:#246b6114;border-radius:6px;margin:0 0 10px;padding:8px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9rem;line-height:1.6}.grammar-course-explanation{margin:0;line-height:1.8}.grammar-course-explanation strong{font-weight:700;box-shadow:inset 0 -.32em #f3d26b8c}.grammar-course-section-examples{gap:10px;margin:12px 0 0}.grammar-course-section-examples .grammar-course-example{background:0 0;border-left-width:2px;padding:10px 12px}.grammar-course-example-case{width:fit-content;color:var(--accent-strong);background:#246b6117;border-radius:4px;margin:0 0 6px;padding:2px 7px;font-size:.8rem;font-weight:700}.grammar-course-cases{counter-reset:grammar-course-case;gap:12px;margin:12px 0 0;padding:0;list-style:none;display:grid}.grammar-course-case{counter-increment:grammar-course-case;border-left:2px solid #246b6159;padding:0 0 0 12px}.grammar-course-case-label{color:var(--accent-strong);margin:0;font-weight:700}.grammar-course-case-label:before{content:counter(grammar-course-case, lower-alpha) ". ";color:var(--muted);font-weight:400}.grammar-course-case-text{margin:4px 0 0;line-height:1.75}.grammar-course-case-reason{color:var(--muted);margin:4px 0 0;font-size:.88rem}.grammar-course-case .grammar-course-section-examples{margin-top:8px}
