/* Shared product layer: predictable sizing, content-based chips and accessible controls. */
:root{--bg:#f5f5f1;--paper:#fffefa;--text:#252923;--muted:#72776f;--line:#e1e4da;--green:#204e3c;--orange:#c85418;--orangebg:#fff0e4;--blueink:#246c90;--bluebg:#e5f2f9;--red:#bf5353;--redbg:#fbecec;--shadow:0 16px 48px #17251b15}
.dark{--bg:#171d19;--paper:#202822;--text:#eef3eb;--muted:#aab6a8;--line:#39473b;--orange:#ffa66b;--orangebg:#493022;--blueink:#9bd4f5;--bluebg:#223e4c;--red:#ffa3a3;--redbg:#432d30}
body{background:var(--bg);text-rendering:optimizeLegibility}body *{box-sizing:border-box}button{color:inherit;line-height:1.4;touch-action:manipulation}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--orange);outline-offset:3px}button:disabled{opacity:.45}button:hover{filter:none}button:active{opacity:.78}button[hidden],nav[hidden]{display:none!important}input,textarea,select{color:var(--text);background:var(--paper)}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.85}svg{stroke-width:1.65}
.app{max-width:1040px;min-height:100dvh;background:var(--paper)}.app>header{min-height:84px;padding:18px 32px;gap:12px}.app>header .identity{flex:1;gap:4px;min-width:0}.app>header .brand{flex:1;min-width:0;gap:10px}.app>header #brandTitle{min-width:0;gap:6px;flex-wrap:nowrap}.app>header .title-name{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px;min-height:40px}.app>header .streak-badge{flex:none;white-space:nowrap;font-size:11px;min-height:36px;padding:4px 7px;background:#ffffff0a;border:1px solid #ffffff12;border-radius:20px}.app>header .avatar{width:40px;height:40px;flex:0 0 40px}.app>header .iconbtn{width:38px;min-width:38px;height:40px}.app>header .theme{width:58px;height:34px;flex-shrink:0}.app>header .theme span{width:24px;height:26px}.header-right{gap:4px}.header-right svg{width:20px;height:20px}
.workspace-nav{display:flex;gap:4px;padding:6px;margin:20px 32px 0;background:var(--bg);border:1px solid var(--line);border-radius:12px;width:fit-content}.workspace-nav button{min-height:38px;padding:8px 24px;font-size:13px;font-weight:600;border-radius:8px;color:var(--muted)}.workspace-nav .active{color:var(--green);background:var(--paper);box-shadow:0 1px 4px #17251b0d}.dark .workspace-nav .active{color:var(--text)}.app main{padding:24px 32px 48px}.workspace-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 18px}.section-kicker{display:block;font-size:9px;font-weight:700;letter-spacing:.14em;color:var(--muted);margin-bottom:5px}.workspace-heading h1{font-size:22px;line-height:1.3;letter-spacing:-.04em}.workspace-heading p{font-size:12px;color:var(--muted);margin-top:6px}.text-button{font-size:12px;min-height:40px;padding:8px 0;color:var(--muted);white-space:nowrap}
.teacher .studentstrip{display:flex!important;align-items:flex-start!important;flex-wrap:wrap;gap:7px!important;margin:0 0 20px;padding:0}.teacher .studentstrip .studentchip{flex:0 0 auto!important;width:auto!important;min-width:52px!important;height:36px!important;min-height:36px!important;padding:7px 13px!important;white-space:nowrap!important;word-break:keep-all;line-height:20px;font-size:12px!important;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--muted);box-shadow:none;justify-content:center}.teacher .studentstrip .studentchip.active{background:var(--green);color:#fff;border-color:var(--green);font-weight:600;box-shadow:none}.studentchip[draggable=true]{cursor:grab}.studentchip[draggable=true]:active{cursor:grabbing}.studentchip:focus-visible{outline-offset:3px}
.teacher .managebox{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:var(--bg);margin:0}.selected-student{min-width:0}.student-title{display:flex;gap:5px;align-items:center}.student-title strong{font-size:16px;overflow-wrap:anywhere}.student-preview{width:34px;height:34px}.shared-count{display:block;font-size:11px!important;line-height:1.5;color:var(--muted);margin-top:3px}.manageactions{display:flex;gap:6px;flex-shrink:0}.manageactions .outline,.manageactions .soft{font-size:12px;min-height:38px;white-space:nowrap;padding:8px 12px}.management-links{display:flex;flex-wrap:wrap;gap:3px!important;margin:8px 0 0;padding:0}.management-links button{color:var(--muted);font-size:11px;padding:8px 10px;min-height:34px}.management-links button:first-child{padding-left:0}.teacherpanel{margin-bottom:24px}.personal-space .teacherpanel{margin-bottom:20px}
.primary{background:var(--orange);color:#fff;border:1px solid transparent}.dark .primary{background:#b9501c;color:#fff}.soft{background:var(--bg);color:var(--text);border:1px solid var(--line)}.outline{background:var(--paper);border:1px solid var(--line);color:var(--text)}.primary,.soft,.outline{font-size:13px;min-height:42px;padding:10px 15px;border-radius:10px;font-weight:600}.toolbar{display:flex;gap:10px;align-items:stretch;margin:0 0 16px}.toolbar .lesson-picker{flex-basis:100%;min-width:0;position:relative}.toolbar .lesson-button{border:1px solid var(--line);background:var(--bg);color:var(--text);min-height:46px;padding:10px 14px;font-size:13px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:10px}.lesson-button>span:first-child{overflow-wrap:anywhere}.teacher-add{flex:1}.teacher .learning-buttons{flex:0 1 auto!important;width:auto!important}.teacher:not(.personal-space) .mission-button{min-height:42px;font-size:12px;padding:10px 14px;background:var(--paper);border:1px solid var(--line);color:var(--muted)}.personal-space .toolbar .learning-buttons{display:grid!important;grid-template-columns:1fr 1fr;flex:1 1 100%!important}.personal-space #missionButton{grid-column:1/-1;min-height:38px;font-size:12px}.personal-space .teacher-add{flex-basis:100%}.personal-space .management-links,.personal-space .work-students,.personal-space #composeForm .notify-toggle{display:none}
.searchbox{height:44px;margin:0 0 16px;border-color:var(--line);padding:0 13px;border-radius:10px}.searchbox svg{width:18px;height:18px}.searchbox input{font-size:13px;min-width:0}.filter-line{display:flex;align-items:center;justify-content:flex-start;gap:6px;margin-bottom:10px;flex-wrap:wrap}.filter-line .filters{display:flex;gap:4px;min-width:0;flex:0 0 auto;margin:0}.filter-line .filter{height:38px;min-width:38px;padding:0 11px;line-height:1;white-space:nowrap;font-size:12px;border-radius:9px}.filter-line .filter svg{width:19px;height:19px}.filter-line .passage-button,.filter-line .kana-compact{height:38px;min-height:38px;margin:0;font-size:11px;padding:0 10px;white-space:nowrap}.filter-line #passageButton{margin-left:auto}.statline{padding:0 0 14px!important;font-size:11px;gap:8px}.statline strong{font-size:12px;margin-left:3px}.export-button{min-height:36px;padding:6px 0 6px 8px;color:var(--muted)}.source-tabs{margin:8px 0 12px;background:var(--bg);border:1px solid var(--line);padding:4px;border-radius:10px;gap:4px}.source-tabs button{min-height:36px;font-size:12px;border-radius:7px}.source-tabs button.active{background:var(--paper);color:var(--orange);border-color:transparent;box-shadow:0 1px 4px #17251b08}.draft-actions{min-height:36px;padding:2px 0;margin-bottom:8px;gap:8px;flex-wrap:wrap}.draft-actions label,.draft-actions button{font-size:11px;min-height:32px}.draft-actions input{width:16px;height:16px}.tablehead,.wordrow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 24px;gap:20px}.tablehead{padding:10px 12px;background:var(--bg);border-radius:8px;color:var(--muted);font-size:11px}.wordrow{min-height:82px;padding:18px 12px;border-color:var(--line);align-items:center}.wordrow .wordcell{display:flex;align-items:center;gap:9px}.wordrow .jp{font-size:var(--word-size,19px);line-height:1.6;letter-spacing:0;min-width:0}.wordrow rt{font-size:var(--reading-size,11px);color:var(--muted);letter-spacing:0;line-height:1.6}.wordrow .meaning{font-size:var(--meaning-size,13px);line-height:1.65;padding:0;min-height:44px;border-radius:6px}.wordcell[role=button]{min-height:44px;border-radius:6px}.wordcell:active,.wordrow .meaning:active{background:var(--bg)}.draft-check{flex:none;width:16px;height:16px;padding:0}.publication-tag{font-size:9px;margin-top:3px;color:var(--muted)}.new-word-label{font-size:8px;letter-spacing:.04em;background:var(--orangebg);color:var(--orange);border:0;padding:2px 4px;border-radius:4px}.word-swipe .wordrow.new-word{background:color-mix(in srgb,var(--orangebg) 25%,var(--paper))}.empty{padding:48px 16px;text-align:center;color:var(--muted)}.empty strong{display:block;font-size:15px;color:var(--text);margin-bottom:7px}.empty p{font-size:12px;line-height:1.7}
.dialog{width:min(680px,calc(100vw - 24px));border-radius:18px!important;max-height:calc(100dvh - 24px);box-shadow:var(--shadow)}.dialogtop{padding:12px 18px!important;min-height:54px!important;align-items:center}.dialogtop h2{font-size:15px!important;font-weight:700;letter-spacing:-.02em}.dialogtop .iconbtn{width:36px;height:36px;min-width:36px;background:var(--bg);border-radius:50%}.dialog #modalBody{padding:20px;max-height:calc(100dvh - 110px);scroll-padding-bottom:90px}.dialog .field{margin-top:14px;margin-bottom:14px;color:var(--muted);font-size:12px;gap:7px}.dialog .field>input,.dialog .field>textarea,.dialog .field>select{color:var(--text)}.dialog textarea{line-height:1.6;padding:10px 12px}.dialog .thin-input{height:44px;min-height:44px}.dialogbottom{display:flex;gap:8px;justify-content:stretch}.dialogbottom>button{flex:1;min-width:0;min-height:44px}.work-footer{position:sticky;bottom:-20px;margin:20px -20px -20px;padding:14px 20px;background:var(--paper);border-top:1px solid var(--line);z-index:4}.work-tabs{padding:4px;gap:4px;border-radius:10px;background:var(--bg);margin:18px 0}.work-tabs button{min-height:38px;font-size:12px;border-radius:7px}.work-tabs button.active{box-shadow:0 1px 4px #17251b0a;background:var(--paper)}.import-actions{display:grid;grid-template-columns:1fr 1fr;margin:18px 0;gap:8px}.import-actions button{font-size:12px;min-height:42px}.work-students>div{display:flex!important;flex-wrap:wrap!important;align-items:flex-start;gap:6px!important}#composeForm .work-students label{position:relative;flex:0 0 auto!important;white-space:nowrap;height:34px;min-height:34px;padding:7px 12px;font-size:12px;border-radius:8px;color:var(--muted);border:1px solid var(--line)}#composeForm .work-students label:has(:checked){background:var(--orangebg);color:var(--orange);border-color:var(--orange)}#composeForm .work-students label:focus-within{outline:2px solid var(--orange);outline-offset:2px}#composeForm .notify-toggle{border:1px solid var(--line);border-radius:9px;height:40px;width:44px;margin:12px 0 0}#composeForm .notify-toggle:has(:checked){color:var(--orange);background:var(--orangebg);border-color:var(--orange);box-shadow:none}.notify-toggle span svg{width:20px;height:20px}.work-pending{border:1px solid var(--line);background:var(--bg);border-radius:10px;padding:12px;margin:14px 0}.work-pending>strong{font-size:12px}.queued-words>div{font-size:12px;border-bottom:1px solid var(--line);padding:8px 0}.queued-words button{min-width:32px;min-height:32px}.photo-queue{max-height:35dvh;overflow:auto}.photo-queue p{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:8px 0;font-size:12px}.photo-queue button{height:36px;width:36px}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions>button{min-height:42px;font-size:13px;padding:8px 14px}
select[data-enhanced]{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;min-height:0!important;pointer-events:none!important;padding:0!important;border:0!important}.select-trigger{width:100%;min-height:44px;padding:10px 36px 10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--text);font-size:13px;text-align:left;position:relative;line-height:1.5;overflow-wrap:anywhere}.select-trigger::after{content:'';position:absolute;right:14px;top:calc(50% - 4px);width:7px;height:7px;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg);transition:transform .16s}.select-trigger[aria-expanded=true]{border-color:var(--orange)}.select-trigger[aria-expanded=true]::after{transform:rotate(225deg);top:calc(50% - 1px)}.custom-select-menu{padding:5px;min-width:160px!important;max-width:calc(100vw - 24px)!important;box-shadow:var(--shadow);background:var(--paper);border:1px solid var(--line)}.custom-select-menu button{font-size:13px;min-height:42px;padding:10px 12px;color:var(--text)!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.5}.custom-select-menu button.selected{background:var(--orangebg);color:var(--orange)!important}.custom-select-menu button:hover{background:var(--bg)}.custom-select-menu button:focus-visible{outline-offset:-2px}.floating-menu button{min-height:44px;padding:10px 14px;font-size:13px;color:var(--text)}.floating-menu{padding:5px;max-width:calc(100vw - 24px)}
#pasteGrid{border:1px solid var(--line);border-radius:10px;max-height:45dvh;overscroll-behavior:contain}#pasteGrid table{border-collapse:collapse}#pasteGrid textarea{min-height:60px!important;line-height:1.5;font-size:12px!important;border-radius:0;resize:none}#pasteGrid th{background:var(--bg);color:var(--muted);height:32px;font-size:10px}#pasteGrid thead{position:sticky;top:0;z-index:2}#pasteGrid td{border:1px solid var(--line)}.paste-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.paste-columns .field{margin:0;font-size:11px}.paste-columns .select-trigger{min-height:38px;font-size:12px}.paste-sample{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paste-preview{display:none}.paste-header{font-size:11px;display:flex;align-items:center;gap:6px;padding:10px 0}.paste-header input{height:16px;width:16px}.edit-link{min-height:36px;font-size:12px}.dark .work-students label,.dark .select-trigger,.dark .paste-grid textarea,.dark .field input,.dark .field textarea,.dark .word-detail{color:var(--text)}
.study{isolation:isolate}.study .studyhead{top:max(18px,env(safe-area-inset-top));left:24px;right:24px;height:40px;gap:8px}.study .studyhead .study-brand{font-size:13px}.study .studyhead button{min-height:36px}.study .studyoptions{top:max(82px,calc(env(safe-area-inset-top) + 64px));left:20px;right:20px;gap:10px}.study-scope{display:flex;gap:8px;align-items:center}.study-scope>span{display:none}.study-scope .select-trigger{min-width:88px;width:auto;height:36px;min-height:36px;font-size:12px;padding:7px 30px 7px 12px}.study .quiz-direction-buttons{padding:3px;border-radius:10px}.study .quiz-direction-buttons button{font-size:11px;min-height:32px;padding:6px 12px}.study .studycontent,.study:has(.quiz-answer-zone) .studycontent{top:44%!important;left:max(20px,calc((100vw - 720px)/2));right:max(20px,calc((100vw - 720px)/2));max-height:34dvh;transform:translateY(-50%);gap:0}.study.memorize-layout .studycontent{top:40%!important}.study .study-count-pill{display:inline-block;font-size:11px;border:1px solid var(--line);background:var(--bg);padding:4px 11px;border-radius:20px;line-height:1.4;margin:0 auto 22px}.study .example{font-size:13px;line-height:1.7;color:var(--muted);margin:0 auto 16px;max-width:560px}.study .quiz-wordgroup{grid-template-columns:40px minmax(0,1fr) 40px;gap:8px}.study .quiz-wordgroup .study-edge{height:56px;width:40px;opacity:.35;font-size:32px}.study .quiz-wordgroup .prompt{line-height:1.45}.study .prompt rt{font-size:.32em;line-height:1.6}.study .learn-meaning{margin:18px auto 12px;font-size:20px;line-height:1.5}.study .learn-example{font-size:12px}.study .quiz-answer-zone{top:62%!important;bottom:10%!important;height:auto!important;left:max(24px,calc((100vw - 640px)/2))!important;right:max(24px,calc((100vw - 640px)/2))!important;z-index:1;pointer-events:auto}.study .quiz-answer-zone .showanswer{border:0;background:transparent;color:var(--orange);font-size:16px;padding-top:12px!important;align-items:flex-start}.study .answer{width:100%;padding:12px 0;min-height:80px}.study .answer .translation{font-size:24px}.study .answer .reading{font-size:16px;color:var(--muted)}.study .studybottom{top:71%;left:max(24px,calc((100vw - 600px)/2));right:max(24px,calc((100vw - 600px)/2));max-width:600px;pointer-events:none}.study .studybottom .statusactions{pointer-events:auto;gap:12px}.study .statusactions button{min-height:88px;padding:14px;font-size:12px;border:1px solid transparent}.study .statusactions .chosen{border-color:currentColor;box-shadow:inset 0 0 0 2px currentColor}.study .statusactions i svg{width:28px;height:28px}.study .study-complete{top:50%!important;text-align:center;pointer-events:auto}.study-complete .actions{justify-content:center;margin-top:24px}.study-complete h2{font-size:19px}.study .study-feedback:empty{display:none}
@media(min-width:850px){.teacher:not(.personal-space) .toolbar .lesson-picker{flex:1 1 auto}.teacher:not(.personal-space) .toolbar .learning-buttons{order:3}.teacher:not(.personal-space) .toolbar .teacher-add{flex:0 0 auto}.teacher:not(.personal-space) .toolbar{flex-wrap:nowrap}.personal-space .toolbar{display:grid;grid-template-columns:1fr auto}.personal-space .toolbar .lesson-picker{grid-column:1/-1}.personal-space .toolbar .learning-buttons{display:flex!important}.personal-space #missionButton{width:auto;flex:0 1 auto}}
@media(max-width:620px){.app>header{padding:14px 16px;min-height:112px;display:grid;grid-template-columns:1fr;gap:8px}.app>header .identity{display:flex;width:100%}.app>header .brand{margin-right:auto}.app>header #brandTitle{flex:1;display:flex;flex-wrap:nowrap;gap:6px}.app>header .title-name{max-width:min(44vw,210px);font-size:14px}.app>header .avatar{width:36px;height:36px;flex-basis:36px}.app>header .iconbtn{width:36px;min-width:36px;height:36px}.app>header .header-right{position:absolute;right:16px;bottom:12px;height:36px;gap:7px}.app>header .identity>.iconbtn{align-self:flex-start}.app>header .identity>.teacher-tools{margin-left:auto}.app>header .theme{display:flex!important;width:58px;height:32px}.app>header .theme span{height:24px}.app>header::after{content:none}.workspace-nav{margin:16px 16px 0;padding:4px}.workspace-nav button{padding:7px 22px;min-height:36px;font-size:12px}.app main{padding:20px 16px 36px}.workspace-heading{margin-bottom:16px}.workspace-heading h1{font-size:20px}.teacher .studentstrip{gap:6px!important;margin-bottom:16px}.teacher .studentstrip .studentchip{min-width:48px!important;height:34px!important;min-height:34px!important;padding:6px 11px!important}.teacher .managebox{padding:12px;gap:10px;flex-wrap:wrap}.selected-student{flex:1}.student-title strong{font-size:15px}.manageactions{gap:6px}.manageactions button{font-size:11px!important;padding:8px 9px!important;min-height:36px!important}.tablehead,.wordrow{gap:12px;grid-template-columns:minmax(0,1fr) minmax(0,.95fr) 22px}.wordrow{padding:18px 8px;min-height:80px}.tablehead{padding:10px 8px}.wordrow .jp{font-size:var(--word-size,19px)}.statline{gap:6px}.statline .export-button{font-size:10px}.filter-line .filter{height:36px;min-width:36px;padding:0 10px}.filter-line .passage-button,.filter-line .kana-compact{height:36px;min-height:36px;padding:0 7px;font-size:10px}.dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 20px);border-radius:16px!important}.dialog #modalBody{padding:16px;max-height:calc(100dvh - 105px)}.dialogtop{padding:10px 16px!important}.dialogtop h2{font-size:14px!important}.dialog input:not([type=checkbox]):not([type=radio]),.dialog textarea:not(#pasteGrid textarea){font-size:16px}.work-footer{bottom:-16px;margin:18px -16px -16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom))}.work-date-title{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:8px}.work-date-title .field{min-width:0}.work-date-title input{width:100%}.select-trigger{font-size:13px}.study .studyhead{left:14px;right:14px;gap:5px}.study .studyhead .study-brand{font-size:11px;gap:4px}.study .studyhead .study-brand img{width:20px;height:20px}.study .studyhead .shuffle-top{font-size:10px;padding:5px 6px}.study .studyhead .furigana-toggle{font-size:10px;padding:5px}.study .studyhead .loop-button{min-width:30px;width:30px}.study .studyoptions{left:14px;right:14px;gap:6px}.study .quiz-direction-buttons button{padding:5px 8px;font-size:10px}.study .studycontent{left:16px!important;right:16px!important}.study .quiz-wordgroup{grid-template-columns:32px minmax(0,1fr) 32px;gap:4px}.study .quiz-wordgroup .study-edge{width:32px;min-width:32px}.study .studybottom{left:22px;right:22px}.study .learn-meaning{font-size:19px}.study .studyhead .iconbtn{min-width:32px;width:32px}.study .example{font-size:12px}.study .learn-example{font-size:11px}}
@media(max-width:360px){.managebox .manageactions{width:100%;justify-content:flex-end}.management-links button{font-size:10px;padding:7px}.filter-line .filter{padding:0 8px;min-width:32px}.filter-line .filters{gap:3px}.filter-line .passage-button{padding:0 6px}.filter-line .kana-compact{padding:0 5px}.studyhead .study-brand img{display:none}.study .studyhead .shuffle-top{font-size:9px}.study .studyhead .study-brand{font-size:10px}}
@media(max-height:600px){.study .studyoptions{top:66px}.study .studycontent,.study:has(.quiz-answer-zone) .studycontent{top:45%!important;max-height:28dvh}.study .study-count-pill{margin-bottom:10px}.study .example{font-size:11px;margin-bottom:8px}.study .quiz-answer-zone{top:67%!important;bottom:2%!important}.study .studybottom{top:82%}.study .statusactions button{min-height:58px;padding:8px}.study .learn-prompt{max-height:16dvh;font-size:30px}.study .learn-meaning{font-size:16px;margin:8px 0}.study .examples{max-height:9dvh}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .16s ease,border-color .16s ease,color .16s ease,opacity .12s ease}.studentchip,.workspace-nav button{transition:background-color .18s ease,color .18s ease}.wordrow.settling{transition:transform .24s cubic-bezier(.2,.8,.2,1)}}
body.own-study #composeForm .work-students,body.own-study #composeForm .notify-toggle{display:none!important}
#composeForm .work-footer>button[hidden]{display:none!important}.select-trigger:disabled{cursor:default}.dark .study .study-count-pill,.dark .study .quiz-direction-buttons{color:var(--text)}
@media(max-width:620px){.app>header{padding:14px 16px 12px;display:block;min-height:112px}.app>header .identity{display:grid;grid-template-columns:36px 36px 36px minmax(0,1fr);column-gap:4px;row-gap:8px}.app>header .brand{grid-column:1/-1;width:100%;max-width:100%;margin:0}.app>header #brandTitle{flex:1;min-width:0}.app>header .title-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:none;min-width:0;text-align:left;font-size:14px;line-height:1.45;overflow-wrap:normal;min-height:36px}.app>header .streak-badge{margin-left:auto}.app>header .identity>.teacher-tools{margin:0}.app>header .header-right{bottom:12px;right:16px}.app>header .identity>.iconbtn{margin:0}}
/* Reading and beginner learning share the same restrained control sizes. */
.passage-tools{padding:10px 0;gap:6px;background:var(--paper);border-bottom:1px solid var(--line)}.passage-tools button{font-size:11px;min-height:36px;padding:7px 10px;border-radius:8px}.passage-body{padding:16px 0}.passage-original{font-size:15px;line-height:1.95;letter-spacing:0}.passage-translation{font-size:12px;line-height:1.8;color:var(--muted);padding:8px 0}.sentence-translate{width:32px;min-width:32px;min-height:32px;font-size:11px;border-radius:7px}.passage-word-popover{background:var(--paper);color:var(--text);border-color:var(--line);box-shadow:var(--shadow);border-radius:10px;padding:12px;font-size:13px}.book-management>section,.student-management-list>section{padding:14px 0;border-bottom:1px solid var(--line)}.settings-section{padding:16px 0;border-color:var(--line)}.report-metrics>div{padding:12px;background:var(--bg);border:1px solid var(--line);border-radius:9px}.usage-student{padding:16px 6px}.usage-student:hover{background:var(--bg)}.kana-script-tabs{padding:4px;background:var(--bg);border-radius:10px}.kana-script-tabs button{font-size:12px;min-height:38px;border-radius:7px}.kana-group-tabs{gap:6px;margin:14px 0;flex-wrap:wrap}.kana-group-tabs button{min-height:34px;font-size:11px;padding:6px 10px;border-radius:8px}.kana-summary{font-size:11px;margin:14px 0;gap:10px}.kana-summary .primary{font-size:11px;min-height:36px;padding:8px 12px}.kana-grid{gap:7px}.kana-tile{border:1px solid var(--line);border-radius:10px;padding:10px 2px;min-height:72px;background:var(--paper)}.kana-tile>span{font-size:28px;line-height:1.4}.kana-tile>small{font-size:10px;color:var(--muted)}.kana-tile i{font-size:11px}.kana-quiz-select{display:flex;align-items:center;justify-content:space-between;font-size:12px;gap:16px;margin:4px 0 18px}.kana-quiz-select .select-trigger{width:155px;max-width:60%}.kana-quiz-heading{font-size:11px;color:var(--muted)}.kana-choices{gap:10px}.kana-choices button{padding:14px;min-height:60px;border-radius:10px}.kana-choices strong{font-size:20px}.kana-choices span{font-size:12px}.kana-question{font-size:clamp(72px,18vw,120px)!important;margin:30px 0 28px!important;line-height:1.35}.kana-detail{min-height:0;padding:28px 12px 22px;gap:12px}.kana-detail .kana-big{font-size:clamp(90px,22vw,140px);line-height:1.4}.kana-detail>strong{font-size:23px}.kana-detail>p{font-size:16px;color:var(--muted)}.kana-speaker{width:44px;height:44px;min-height:44px;border-radius:50%;margin:12px auto}.kana-statusactions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.kana-statusactions button{width:100%;min-width:0;min-height:72px;padding:10px;border-radius:10px}.kana-statusactions i{font-size:28px}.kana-statusactions small{font-size:11px}.kana-feedback{font-size:13px;margin-top:18px}.dark .kana-tile,.dark .kana-detail,.dark .kana-choices button{color:var(--text)}
