:root{--bg:#141414;--surface-1:#1c1c1c;--surface-2:#242424;--surface-3:#2e2e2e;--gold:#dfb017;--gold-soft:#f0cf5e;--gold-tint:#dfb0171f;--text:#f4f4f4;--text-dim:#b5b5b5;--text-mute:#7d7d7d;--line:#333;--line-soft:#2a2a2a;--success:#4ade80;--danger:#f87171;--font-lat:Aptos, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-jp:"Yu Gothic", "Noto Sans JP", sans-serif;color:var(--text);background:var(--bg);font-family:var(--font-lat);font-size:15px}@font-face{font-family:Aptos;src:url(/fonts/aptos.ttf)format("truetype");font-weight:100 900;font-display:swap}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.app-shell{background:var(--bg);align-items:stretch;min-height:100vh;display:flex}.sidebar{background:var(--surface-1);border-right:1px solid var(--line-soft);flex-direction:column;flex:none;width:240px;height:100vh;padding:0;display:flex;position:sticky;top:0}.brand{color:var(--gold);align-items:center;gap:10px;padding:18px 16px 14px;display:flex}.brand-mark{object-fit:cover;border-radius:8px;flex:none;width:38px;height:38px;display:block}.brand-copy{gap:2px;min-width:0;display:grid}.brand strong{letter-spacing:.06em;font-size:13px;font-weight:700}.brand small{color:var(--text-mute);font-size:11px}.brand.compact{display:none}.brand-link{cursor:pointer;text-align:left;font:inherit;background:0 0;border:0}.nav-list{flex-direction:column;flex:1;gap:2px;padding:8px 12px 8px 0;display:flex;overflow:auto}.nav-item{min-height:44px;color:var(--text-dim);text-align:left;background:0 0;border:0;border-left:3px solid #0000;border-radius:0 8px 8px 0;align-items:center;gap:11px;padding:10px 16px;font-weight:500;text-decoration:none;transition:background .15s ease-out,color .15s ease-out,border-color .15s ease-out;display:flex}.nav-item.active{background:var(--gold-tint);color:var(--gold);border-left-color:var(--gold);font-weight:600}.nav-item:hover,.ghost-button:hover,.secondary-button:hover{background:var(--surface-2)}.nav-icon{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;opacity:.9;flex:none;width:18px;height:18px}.sidebar-user{border-top:1px solid var(--line-soft);align-items:center;gap:10px;padding:14px 16px;display:flex}.sidebar-user div{flex:1;min-width:0}.sidebar-user strong{color:var(--text-dim);text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;display:block;overflow:hidden}.sidebar-user span{color:var(--text-mute);margin-top:2px;font-size:11px;display:block}.icon-button{border:1px solid var(--line);width:36px;height:36px;color:var(--text-dim);background:0 0;border-radius:8px;flex:none;place-items:center;display:grid}.icon-button:hover{background:var(--surface-2);color:var(--text)}.danger-hover:hover{color:var(--danger)}.main{flex:1;width:100%;min-width:0;max-width:1120px;margin:0 auto;padding:clamp(16px,3vw,32px) clamp(16px,3vw,32px) 96px}.mobile-header{border-bottom:1px solid var(--line-soft);justify-content:space-between;align-items:center;display:none}.user-pill{background:var(--surface-2);border:1px solid var(--line);color:var(--text-dim);border-radius:10px;max-width:58vw;padding:5px 10px}.user-pill strong,.user-pill span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.user-pill strong{font-size:11px;font-weight:500}.user-pill span{color:var(--text-mute);margin-top:1px;font-size:10px}.page{padding:0}.page-head{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}h1{margin:0;font-size:28px;line-height:34px}h2{font-size:20px;line-height:26px}.page-head p,.hint,.info-panel p{color:var(--text-dim);margin:6px 0 0;line-height:22px}.section-title{margin:24px 0 12px;font-size:20px}.section-title span{color:var(--text-mute);font-weight:400}.gate{background:radial-gradient(circle at top right, #dfb0171f, transparent 34%), var(--bg);place-items:center;min-height:100vh;padding:24px;display:grid}.gate-panel{background:var(--surface-1);border:1px solid var(--line-soft);border-radius:20px;width:min(460px,100%);padding:28px;box-shadow:0 12px 40px #00000080}.gate-panel h1{margin-top:22px}.gate-panel>p{color:var(--text-dim);line-height:22px}.stack{gap:10px;margin-top:22px;display:grid}label{color:var(--text-dim);font-size:13px;font-weight:600}input,select{border:1px solid var(--line);background:var(--surface-3);width:100%;min-height:44px;color:var(--text);border-radius:8px;padding:0 12px}input::placeholder{color:var(--text-mute)}.form-error{color:var(--danger);margin:0}.primary-button,.secondary-button,.ghost-button{border-radius:8px;min-height:44px;padding:0 16px;font-weight:700}.primary-button{background:var(--gold);color:#141414;border:0}.primary-button:hover{background:var(--gold-soft)}.print-button{align-items:center;gap:8px;display:inline-flex}.button-icon{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.secondary-button{border:1px solid var(--line);color:var(--text);background:0 0}.ghost-button{color:var(--text-dim);background:0 0;border:0}.danger-text,.secondary-button.danger{color:var(--danger)}.secondary-button.success{color:var(--success)}.stat-grid{grid-template-columns:repeat(6,minmax(120px,1fr));gap:12px;margin-bottom:20px;display:grid}.stat-card,.info-panel,.shortcut-card,.progress-panel{background:var(--surface-1);border:0;border-radius:14px}.stat-card{padding:16px}.stat-card strong{color:var(--gold);font-size:32px;line-height:36px;display:block}.stat-card span{color:var(--text-dim);font-size:13px}.dashboard-head{margin-bottom:24px}.dashboard-head p{color:var(--text-dim);margin:6px 0 0;line-height:22px}.dashboard-stats{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));margin-bottom:24px}.dashboard-stats .stat-card{padding:18px 20px}.dashboard-stats .stat-card strong{font-size:34px;line-height:1.1}.dashboard-progress{background:var(--surface-1);border-radius:14px;margin-bottom:24px;padding:20px 24px}.dashboard-section-title{margin:0 0 14px}.shortcut-grid{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px;display:grid}.shortcut-card{text-align:left;min-height:124px;color:var(--text);background:var(--gold-tint);border:1px solid #dfb01740;flex-direction:column;align-items:flex-start;gap:8px;padding:20px;display:flex}.shortcut-glyph{font-family:var(--font-jp);color:var(--gold);font-size:26px;line-height:1}.shortcut-card strong{font-size:17px;display:block}.shortcut-card span{color:var(--text-dim);line-height:22px}.shortcut-card .shortcut-glyph{color:var(--gold)}.shortcut-card:hover{background:#dfb0172e;transform:translateY(-2px)}.info-panel{padding:20px}.info-panel h2{margin:0 0 10px}.jp-inline{font-family:var(--font-jp)}.guide-panel{padding:0;overflow:hidden}.guide-toggle{width:100%;min-height:56px;color:var(--text);text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;padding:0 24px;font-size:17px;font-weight:700;display:flex}.guide-toggle:hover{background:var(--surface-2)}.guide-toggle span:last-child{color:var(--text-mute);font-size:13px;font-weight:600}.guide-steps{gap:12px;padding:0 24px 20px;display:grid}.guide-step{align-items:flex-start;gap:12px;display:flex}.guide-step>span{background:var(--surface-3);width:24px;height:24px;color:var(--gold);border-radius:999px;flex:none;place-items:center;font-size:13px;font-weight:700;display:grid}.guide-step p{color:var(--text-dim);margin:1px 0 0}.search-box{border:1px solid var(--line);background:var(--surface-3);border-radius:14px;align-items:center;gap:12px;height:64px;margin-bottom:24px;padding:0 18px;display:flex;position:relative}.search-box span{color:var(--text-mute);font-size:22px}.search-box input{font-family:var(--font-jp);background:0 0;border:0;padding:0;font-size:28px}.kanji-hero{background:var(--surface-1);text-align:center;border:0;border-radius:20px;padding:32px;animation:.25s ease-out reveal;display:block;position:relative;box-shadow:0 1px #ffffff08,0 8px 24px #00000059}.kanji-display,.quiz-kanji{font-family:var(--font-jp);text-align:center;min-width:0;font-size:84px;font-weight:600;line-height:1.15}.kanji-info p{margin:8px 0 0;font-size:16px}.reading{font-size:20px}.reading span{font-family:var(--font-jp)}.reading small,.tile-rom{color:var(--text-dim);letter-spacing:.03em}.series-chip{border:1px solid var(--line);background:var(--surface-3);color:var(--text-dim);border-radius:999px;justify-content:center;align-items:center;gap:6px;margin-top:18px;padding:6px 16px;font-size:13px;display:inline-flex}.badge{white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;padding:3px 10px;font-size:12px;font-weight:700;display:inline-flex}.kanji-hero>.badge{position:absolute;top:20px;right:20px}.badge.joyo{background:var(--gold);color:#141414}.badge.nonjoyo{background:var(--surface-3);color:var(--text-dim);border:1px solid var(--line)}.kanji-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px;display:grid}.kanji-tile{background:var(--surface-1);text-align:center;border:0;border-radius:14px;min-height:142px;padding:16px;transition:transform .15s,background .15s,box-shadow .15s;position:relative}.kanji-tile[role=button]{cursor:pointer}.kanji-tile:hover{background:var(--surface-2);transform:translateY(-2px);box-shadow:0 8px 24px #00000059}.kanji-tile.selected{border-color:var(--gold);background:var(--surface-2)}.tile-kanji{font-family:var(--font-jp);margin-bottom:6px;font-size:38px;line-height:1.1}.kanji-tile p{min-height:18px;color:var(--text-dim);white-space:nowrap;text-overflow:ellipsis;margin:4px 0 0;font-size:13px;line-height:18px;overflow:hidden}.kanji-tile .badge{display:none}.check{width:20px;height:20px;accent-color:var(--gold);position:absolute;top:10px;left:10px}.section-kanji{font-family:var(--font-jp);color:var(--gold)}.phonetic-group{margin-top:28px}.phonetic-group-head{justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:14px;display:flex}.phonetic-group-head h2{margin:0;font-size:20px;font-weight:700}.phonetic-group-head p{color:var(--text-dim);margin:6px 0 0}.phonetic-group-head p strong{color:var(--text);letter-spacing:.03em}.phonetic-group-head>span{background:var(--surface-3);color:var(--text-dim);border-radius:999px;flex:none;padding:6px 12px;font-size:13px}.reading-search-results{margin-top:4px}.reading-group-list{gap:16px;display:grid}.reading-group-card{background:var(--surface-1);border-radius:16px;padding:18px}.reading-group-title{align-items:center;gap:14px;margin-bottom:14px;display:flex}.reading-group-title>div:first-child{background:var(--surface-3);width:54px;height:54px;color:var(--gold);font-family:var(--font-jp);border-radius:12px;flex:none;place-items:center;font-size:34px;line-height:1;display:grid}.reading-group-title strong{font-size:17px;display:block}.reading-group-title span{color:var(--text-dim);margin-top:3px;font-size:13px;display:block}.cari-state{text-align:center;background:var(--surface-1);border-radius:20px;padding:48px 24px}.state-kanji{font-family:var(--font-jp);color:var(--surface-3);font-size:48px;font-weight:700;line-height:1}.cari-state p,.cari-idle p{color:var(--text-dim);margin:12px 0 0}.cari-idle{text-align:center;color:var(--text-mute);padding:40px 24px}.suggestion-row{flex-wrap:wrap;justify-content:center;gap:10px;margin-top:14px;display:flex}.suggestion-row button{border:1px solid var(--line-soft);background:var(--surface-1);min-height:44px;color:var(--text);font-family:var(--font-jp);border-radius:8px;padding:8px 20px;font-size:22px}.cari-state .suggestion-row button{background:var(--surface-3);border-color:var(--line)}.suggestion-row button:hover{border-color:var(--gold)}.control-row{align-items:center;gap:10px;margin-bottom:18px;display:flex}.control-row input{max-width:360px}.control-row select{max-width:220px}.segmented{background:var(--surface-1);border:1px solid var(--line);border-radius:10px;padding:4px;display:inline-flex}.segmented button{min-height:36px;color:var(--text-dim);background:0 0;border:0;border-radius:7px;padding:0 14px}.segmented button.active{background:var(--gold);color:#141414;font-weight:700}.segmented.wide{margin-bottom:18px}.reading-search{max-width:420px;height:48px;margin-bottom:16px}.reading-pills{flex-wrap:wrap;gap:8px;margin-bottom:28px;display:flex}.reading-pill{border:1px solid var(--line);background:var(--surface-3);min-height:36px;color:var(--text);border-radius:999px;align-items:center;gap:7px;padding:8px 14px;font-size:13px;font-weight:500;transition:border-color .15s ease-out,background .15s ease-out;display:inline-flex}.reading-pill:hover{border-color:var(--gold)}.reading-pill.active{border-color:var(--gold);background:var(--gold);color:#141414}.reading-pill span:nth-child(2){font-family:var(--font-jp);opacity:.75}.reading-pill span:nth-child(3){opacity:.6}.reading-selected h2{margin:0 0 4px;font-size:20px;font-weight:700}.reading-selected>p{color:var(--text-mute);margin:0 0 20px;font-size:13px}.reading-series-list{flex-direction:column;gap:24px;display:flex}.reading-series-head{align-items:baseline;gap:10px;margin-bottom:12px;display:flex}.reading-series-head span:first-child{font-family:var(--font-jp);color:var(--gold);font-size:28px;font-weight:600}.reading-series-head span:last-child{color:var(--text-mute);font-size:13px}.quiz-card{background:var(--surface-1);border:1px solid var(--line-soft);text-align:center;border-radius:20px;max-width:560px;margin:0;padding:40px 28px;transition:border-color .2s ease-out;box-shadow:0 1px #ffffff08,0 8px 24px #00000059}.quiz-card.revealed{border-color:var(--line)}.quiz-setup{background:var(--surface-1);border-radius:20px;max-width:560px;padding:28px}.quiz-setup label{margin-bottom:8px;display:block}.quiz-size-options{gap:8px;margin-bottom:20px;display:flex}.quiz-size-options button{border:1px solid var(--line);background:var(--surface-3);height:44px;color:var(--text);border-radius:8px;flex:1;font-weight:700}.quiz-size-options button.active{border-color:var(--gold);background:var(--gold);color:#141414}.quiz-setup select{height:48px}.quiz-start{width:100%;margin-top:24px}.quiz-active{max-width:560px}.quiz-status{color:var(--text-dim);justify-content:space-between;align-items:center;margin-bottom:12px;font-size:13px;display:flex}.score-right{color:var(--success)}.score-wrong{color:var(--danger)}.quiz-progress{background:var(--surface-3);border-radius:999px;height:6px;margin-bottom:20px;overflow:hidden}.quiz-progress span{background:var(--gold);border-radius:inherit;height:100%;transition:width .4s ease-out;display:block}.answer-box{gap:12px;animation:.2s ease-out reveal;display:grid}.answer-box p{margin:0;font-size:18px}.quiz-series{color:var(--text-mute);font-size:13px}.answer-actions{justify-content:center;gap:10px;display:flex}.quiz-reveal{margin-top:24px;padding:0 28px}.quiz-mark{background:0 0;border-radius:8px;min-height:48px;padding:0 24px;font-weight:700}.quiz-mark.correct{border:1px solid var(--success);color:var(--success)}.quiz-mark.correct:hover{background:#4ade801a}.quiz-mark.wrong{border:1px solid var(--danger);color:var(--danger)}.quiz-mark.wrong:hover{background:#f871711a}.quiz-back{color:var(--text-mute);background:0 0;border:0;margin-top:16px;font-size:13px}.quiz-back:hover{color:var(--text)}.quiz-finished{background:var(--surface-1);text-align:center;border-radius:20px;max-width:560px;padding:36px 28px;animation:.25s ease-out reveal}.quiz-finished>div{color:var(--text-dim);letter-spacing:.06em;text-transform:uppercase;font-size:13px}.quiz-finished>strong{color:var(--gold);margin-top:8px;font-size:56px;line-height:1;display:block}.quiz-finished p{color:var(--text-dim);margin:10px 0 24px}.progress-panel{margin-bottom:14px;padding:18px}.progress-head{justify-content:space-between;margin-bottom:12px;display:flex}.progress-head span{color:var(--text-dim)}.progress-bar{background:var(--surface-3);border-radius:999px;height:10px;overflow:hidden}.progress-bar span{border-radius:inherit;background:var(--success);height:100%;transition:width .4s;display:block}.progress-summary-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:16px;display:grid}.progress-stat{background:var(--surface-1);border-radius:14px;padding:16px 18px}.progress-stat strong{color:var(--text);font-size:28px;line-height:1.1;display:block}.progress-stat.success strong{color:var(--success)}.progress-stat.gold strong{color:var(--gold)}.progress-stat span{color:var(--text-dim);margin-top:4px;font-size:13px;display:block}.progress-main-bar{margin-bottom:24px}.progress-tools{flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:20px;display:flex}.progress-filter{background:var(--surface-1);border-radius:8px;gap:4px;padding:4px;display:flex}.progress-filter button{height:36px;color:var(--text-dim);background:0 0;border:0;border-radius:6px;padding:0 16px;font-size:13px;font-weight:700}.progress-filter button.active{background:var(--gold);color:#141414}.progress-tools input{flex:1;min-width:160px;max-width:280px;height:44px}.progress-tools .secondary-button,.progress-tools .ghost-button{font-size:13px}.progress-tool-spacer{flex:1}.progress-list{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;display:grid}.progress-row{background:var(--surface-1);min-height:62px;color:var(--text);text-align:left;border:0;border-radius:12px;align-items:center;gap:12px;padding:12px 14px;transition:background .15s ease-out;display:flex}.progress-row:hover{background:var(--surface-2)}.progress-check{border:1.5px solid var(--line);color:#141414;border-radius:6px;flex:none;place-items:center;width:22px;height:22px;font-size:14px;font-weight:800;transition:background .15s ease-out,border-color .15s ease-out;display:grid}.progress-check.checked{border-color:var(--gold);background:var(--gold)}.progress-kanji{color:var(--text);font-family:var(--font-jp);flex:none;font-size:26px;font-weight:500}.progress-copy{min-width:0}.progress-copy span{display:block}.progress-copy span:first-child{color:var(--text-dim);letter-spacing:.03em;font-size:13px}.progress-copy span:last-child{color:var(--text-mute);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.load-more-wrap{text-align:center;margin-top:20px}.level-toggle{background:var(--surface-1);border-radius:8px;gap:4px;width:fit-content;margin-bottom:8px;padding:4px;display:flex}.level-toggle button{height:40px;color:var(--text-dim);background:0 0;border:0;border-radius:6px;padding:0 20px;font-size:15px;font-weight:700}.level-toggle button.active{background:var(--gold);color:#141414}.level-count{color:var(--text-mute);margin:0 0 20px;font-size:13px}.cheat-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px;display:grid}.cheat-card{background:var(--surface-1);border:0;border-radius:14px;padding:18px 20px}.cheat-induk{float:left;font-family:var(--font-jp);color:var(--gold);margin-right:14px;font-size:40px;font-weight:600;line-height:1}.cheat-body{min-height:42px;margin-bottom:12px}.cheat-body strong{font-size:15px;display:block}.cheat-body strong span{font-family:var(--font-jp)}.cheat-body small{color:var(--text-dim);letter-spacing:.03em;font-size:13px}.cheat-body p{color:var(--text-mute);margin:2px 0 0;font-size:13px}.kanji-chips{clear:both;flex-wrap:wrap;gap:6px;display:flex}.kanji-chips button{font-family:var(--font-jp);background:var(--surface-3);color:var(--text);border:0;border-radius:6px;padding:4px 7px;font-size:18px}.kanji-chips button:hover{background:var(--surface-2);color:var(--gold)}.kanji-chips button small{display:none}.modal-backdrop{z-index:40;background:#000000ad;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.kanji-modal{background:var(--surface-1);border:1px solid var(--line);text-align:center;border-radius:20px;width:min(420px,100%);padding:28px;position:relative;box-shadow:0 12px 40px #00000080}.modal-close{border:1px solid var(--line);width:36px;height:36px;color:var(--text-dim);background:0 0;border-radius:8px;font-size:18px;position:absolute;top:12px;right:12px}.modal-close:hover{background:var(--surface-2);color:var(--text)}.kanji-modal .badge{position:absolute;top:18px;left:18px}.modal-kanji{font-family:var(--font-jp);margin-top:12px;font-size:86px;font-weight:600;line-height:1.1}.kanji-modal p{margin:10px 0 18px;font-size:17px}.modal-meta{border-top:1px solid var(--line-soft);color:var(--text-dim);gap:8px;padding-top:16px;font-size:13px;display:grid}.modal-meta strong{color:var(--text)}.statistik-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-bottom:28px;display:grid}.statistik-card{background:var(--surface-1);border-radius:14px;padding:20px}.statistik-card strong{color:var(--gold);font-size:38px;line-height:1.1;display:block}.statistik-card span{color:var(--text-dim);margin-top:6px;font-size:13px;display:block}.top-series-list{background:var(--surface-1);border-radius:14px;padding:8px 20px}.top-series-row{border-bottom:1px solid var(--line-soft);align-items:center;gap:14px;padding:12px 0;display:flex}.top-series-row:last-child{border-bottom:0}.series-rank{width:24px;color:var(--text-mute);flex:none;font-size:13px}.series-induk{width:36px;color:var(--text);font-family:var(--font-jp);text-align:left;background:0 0;border:0;flex:none;padding:0;font-size:26px;font-weight:600}.series-induk:hover{color:var(--gold)}.series-reading{width:70px;color:var(--text-dim);letter-spacing:.03em;flex:none;font-size:13px}.series-bar{background:var(--surface-3);border-radius:999px;flex:1;height:8px;overflow:hidden}.series-bar span{border-radius:inherit;background:var(--gold);height:100%;display:block}.series-count{width:70px;color:var(--text-dim);text-align:right;flex:none;font-size:13px}.database-tools{flex-wrap:wrap;gap:10px;margin-bottom:20px;display:flex}.database-tools input{flex:1;min-width:180px;max-width:360px;height:44px}.database-filter{background:var(--surface-1);border-radius:8px;gap:4px;padding:4px;display:flex}.database-filter button{height:36px;color:var(--text-dim);background:0 0;border:0;border-radius:6px;padding:0 14px;font-size:13px;font-weight:700}.database-filter button.active{background:var(--gold);color:#141414}.database-card{background:var(--surface-1);border-radius:14px;overflow:hidden}.table-wrap{background:var(--surface-1);border:0;border-radius:14px;overflow:auto}table{border-collapse:collapse;width:100%;min-width:560px}th,td{text-align:left;border-bottom:1px solid var(--line-soft);padding:10px 16px}th{background:var(--surface-2);color:var(--text-dim);font-size:13px;font-weight:700;position:sticky;top:0}tbody tr{cursor:pointer;transition:background .12s ease-out}tbody tr.zebra td{background:#ffffff04}tr:hover td{background:var(--surface-2)}.table-kanji{font-family:var(--font-jp);font-size:26px}.table-kana{font-family:var(--font-jp);font-size:15px}.table-rom{color:var(--text-dim);letter-spacing:.03em}.table-induk{font-family:var(--font-jp);color:var(--text-dim);font-size:17px}.pager{color:var(--text-dim);justify-content:center;align-items:center;gap:14px;margin-top:16px;display:flex}.database-pager{border-top:1px solid var(--line-soft);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding:14px 16px;display:flex}.database-pager>span{color:var(--text-mute);font-size:13px}.database-pager div{gap:8px;display:flex}.database-pager .secondary-button{min-height:38px;font-size:13px}.empty{background:var(--surface-1);border:1px dashed var(--line);min-height:220px;color:var(--text-dim);text-align:center;border-radius:20px;place-items:center;padding:24px;display:grid}.empty strong{color:var(--text-mute);font-size:44px}.toast{background:var(--surface-2);border-left:3px solid var(--gold);border-radius:10px;padding:12px 14px;position:fixed;bottom:18px;right:18px;box-shadow:0 12px 40px #00000080}.route-loader{z-index:20;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#14141485;place-items:center;display:grid;position:fixed;inset:0}.loader-card{border:1px solid var(--line);background:var(--surface-1);border-radius:14px;align-items:center;gap:14px;min-width:260px;padding:16px;display:flex;box-shadow:0 12px 40px #00000080}.loader-mark{background:var(--gold-tint);width:48px;height:48px;color:var(--gold);font-family:var(--font-jp);border-radius:12px;place-items:center;font-size:26px;display:grid}.loader-card strong{margin-bottom:8px;display:block}.loader-card div span{background:linear-gradient(90deg, var(--surface-3), var(--gold), var(--surface-3));background-size:220% 100%;border-radius:999px;width:150px;height:8px;animation:.5s ease-in-out infinite loading-bar;display:block}.bottom-nav{display:none}@keyframes reveal{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes loading-bar{0%{background-position:100% 0}to{background-position:0 0}}@media (width<=1023px){.app-shell{display:block}.sidebar{display:none}.main{max-width:none;padding:0 16px 88px}.mobile-header{z-index:10;background:var(--surface-1);height:52px;margin:0 -16px 18px;padding:0 16px;display:flex;position:sticky;top:0}.brand.compact{justify-content:flex-start;padding:0;display:flex}.brand.compact .brand-mark{border-radius:7px;width:30px;height:30px}.brand.compact .brand-copy small{display:none}.stat-grid{grid-template-columns:repeat(3,1fr)}.shortcut-grid{grid-template-columns:repeat(2,1fr)}.cheat-grid{grid-template-columns:1fr}.bottom-nav{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:10;background:var(--surface-1);border:1px solid var(--line-soft);border-radius:20px;grid-template-columns:repeat(5,1fr);height:60px;display:grid;position:fixed;box-shadow:0 12px 32px #00000073}.bottom-nav a,.bottom-nav button{color:var(--text-dim);background:0 0;border:0;place-items:center;gap:1px;font-size:12px;text-decoration:none;display:grid}.bottom-nav span{font-size:17px}.bottom-nav a.active,.bottom-nav button.active{color:var(--gold)}.mobile-more{left:12px;right:12px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:11;border:1px solid var(--line-soft);background:var(--surface-1);border-radius:14px;grid-template-columns:repeat(2,1fr);gap:8px;padding:10px;display:grid;position:fixed;box-shadow:0 12px 40px #00000080}.mobile-more a{background:var(--surface-3);min-height:44px;color:var(--text);border-radius:10px;align-items:center;gap:10px;padding:0 12px;text-decoration:none;display:flex}.mobile-more a.active{background:var(--gold-tint);color:var(--gold)}.mobile-more .mobile-logout{background:var(--surface-3);min-height:48px;color:var(--danger);border:0;border-radius:12px;grid-column:1/-1;justify-content:center;align-items:center;gap:10px;padding:0 14px;font-size:15px;font-weight:700;display:flex}}@media (width<=720px){.page-head,.control-row{flex-direction:column;align-items:stretch}.control-row input,.control-row select{max-width:none}.stat-grid{grid-template-columns:repeat(2,1fr)}.shortcut-grid{grid-template-columns:1fr}.kanji-hero{text-align:center;gap:14px;padding:24px 18px;display:grid}.kanji-display,.quiz-kanji{min-width:0;font-size:68px}.kanji-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))}.segmented{width:100%}.segmented button{flex:1;padding:0 8px}.answer-actions,.pager{flex-direction:column}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}@media print{body,.app-shell,.main{color:#111;background:#fff}.sidebar,.mobile-header,.bottom-nav,.page-head .primary-button,.modal-backdrop{display:none!important}.app-shell{display:block}.main{max-width:none;padding:0}.page-head{margin-bottom:18px}.page-head h1{color:#111}.page-head p{color:#444}.cheat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.cheat-card{break-inside:avoid;page-break-inside:avoid;color:#111;box-shadow:none;background:#fff;border:1px solid #cfcfcf;padding:14px}.cheat-induk,.cheat-body strong,.cheat-body small,.cheat-body p{color:#111}.kanji-chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.kanji-chips button{color:#111;text-align:left;background:#f3f3f3;border:1px solid #ddd;grid-template-columns:30px 1fr;align-items:center;gap:6px;padding:5px 7px;display:grid}.kanji-chips button span{font-size:20px;line-height:1}.kanji-chips button small{color:#333;font-family:var(--font-lat);font-size:10px;line-height:1.25;display:block}}
