@charset "UTF-8";
:root{--bg:#fbf8f1;--paper:#fffefa;--ink:#2e3834;--muted:#6c756c;--line:#dedfd4;--accent:#b74834;--accent-dark:#913825;--peach:#f5e1d5;--sage:#e5ebdf;--green:#496347;--error:#a3392b;--radius:24px;--shadow:0 10px 30px #2e383409;--font:'Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif;--jp:'Hiragino Kaku Gothic ProN','Yu Gothic','Noto Sans JP',sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0;background:none}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #536c50;outline-offset:4px}a{color:inherit;text-decoration:none}p,h1,h2,h3,h4{margin:0}h1,h2,h3{line-height:1.35;letter-spacing:-.045em}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.jp,[lang=ja]{font-family:var(--jp);letter-spacing:0}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:var(--ink);color:white;padding:12px}.skip-link:focus{top:12px}.app-shell{max-width:1600px;margin:0 auto;display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100dvh}.sidebar{padding:40px 25px 24px;position:sticky;top:0;height:100dvh;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;font-weight:800;font-size:21px;letter-spacing:-.05em}.brand small{display:block;font-size:8px;letter-spacing:1.25px;font-weight:600;color:var(--muted);margin-top:4px}.brand-seal{display:grid;place-items:center;width:43px;height:48px;border-radius:13px 13px 13px 3px;background:var(--accent);color:#fff8ef;font-family:var(--jp);font-size:32px;line-height:1}.sidebar-caption{font-size:12px;color:var(--muted);margin:32px 0 16px 8px}.side-nav{display:grid;gap:9px}.nav-button{display:flex;align-items:center;gap:14px;min-height:52px;text-align:left;padding:12px 15px;border-radius:12px;color:var(--muted);font-size:15px;font-weight:600}.nav-button.active{background:var(--sage);color:var(--ink)}.side-nav .nav-button.active:after{content:'';width:6px;height:6px;border-radius:50%;background:var(--green);margin-left:auto}.nav-button:hover{background:#e9ebdf}.sidebar-bottom{margin-top:auto;padding-top:50px}.trip-mini{padding:20px 0 24px;border-top:1px solid var(--line);display:grid;gap:5px}.tiny-label,.eyebrow{font-size:10px;letter-spacing:1.8px;line-height:1.5;font-weight:700}.tiny-label{color:var(--muted)}.trip-mini strong{font-size:23px;letter-spacing:-.05em}.trip-mini>span:last-child{font-size:13px;color:var(--muted)}.sidebar-bottom>p{font-size:12px;color:var(--muted);line-height:1.8;margin:26px 3px 0}.quiet{font-size:13px;display:flex;gap:8px;align-items:center;min-height:44px;color:var(--muted);padding:6px 0}.quiet span{margin-left:auto}.main-shell{min-width:0;padding:0 52px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;height:100px;border-bottom:1px solid var(--line)}.desktop-crumb{font-size:12px;color:var(--muted)}.desktop-crumb span{margin:0 14px;color:#b6bbae}.desktop-crumb b{font-weight:500;color:var(--ink)}.top-right{display:flex;align-items:center;gap:15px}.connection{font-size:11px;color:var(--muted)}.connection.offline{color:var(--accent)}.icon-button{display:inline-grid;place-items:center;width:44px;min-width:44px;height:44px;border:1px solid var(--line);border-radius:50%;font-size:19px;background:var(--paper)}.mobile-brand,.bottom-nav{display:none}main{padding:42px 0 50px;outline:none}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading h1{font-size:35px;letter-spacing:-.065em;font-weight:750;margin:8px 0 10px}.page-heading p{color:var(--muted);font-size:14px}.date-chip{white-space:nowrap;color:var(--green);border:1px solid #cdd7c5;border-radius:100px;font-size:12px;padding:7px 13px}.home-grid{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:25px;align-items:start}.home-main{min-width:0}.study-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.study-top{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:18px 23px;gap:12px}.lesson-badge{font-size:11px;text-transform:uppercase;letter-spacing:1.4px;font-weight:700}.small-muted{font-size:12px;color:var(--muted)}.study-body{padding:26px}.study-intro{display:flex;gap:22px;align-items:center;margin-bottom:26px}.kana-art{background:var(--peach);border:1px solid #ead1c0;border-radius:18px;position:relative;width:116px;min-width:116px;height:130px;display:grid;place-items:center;color:var(--accent)}.kana-art:after{content:'はじめの一歩';position:absolute;bottom:9px;font-family:var(--jp);font-size:8px;letter-spacing:1px;color:#a16350}.kana-art span{font-family:'Hiragino Mincho ProN','Yu Mincho',serif;font-size:72px;line-height:1;transform:translateY(-8px)}.study-intro h2{font-size:25px;margin:7px 0 10px}.study-intro p{font-size:13px;line-height:1.7;color:var(--muted)}.lesson-parts{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:23px}.lesson-parts span{padding:5px 10px;font-size:11px;border-radius:6px;background:#f3f2e9;color:var(--muted)}.primary,.secondary{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;padding:13px 18px;border-radius:12px;font-weight:700;font-size:15px}.primary{background:var(--accent);color:white;box-shadow:0 3px 0 #822f2021}.primary:hover{background:var(--accent-dark)}.primary .arrow{margin-left:auto}.secondary{border:1px solid var(--line);background:var(--paper);color:var(--ink)}.secondary:hover{background:var(--sage)}.inline-button{display:inline-flex;width:auto;min-height:44px;font-size:13px;padding:10px 17px}.micro-note{margin-top:12px;text-align:center;font-size:11px;color:var(--muted)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-title h2{font-size:18px}.section-title span{font-size:11px;color:var(--muted)}.journey{margin-top:29px}.journey-summary{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px;font-size:12px;color:var(--muted)}.journey-summary b{font-weight:600;color:var(--green)}.progress-track{height:5px;background:#e8e8df;border-radius:10px;overflow:hidden}.progress-track>div{height:100%;background:var(--green);border-radius:10px;transition:width .2s}.chapter-list{margin-top:16px}.chapter{border-bottom:1px solid var(--line)}.chapter summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:14px;padding:17px 1px;min-height:64px}.chapter summary::-webkit-details-marker{display:none}.chapter-number{font-size:11px;color:var(--muted);width:24px}.chapter-name{font-size:14px;font-weight:600;flex:1}.chapter-count{font-size:10px;color:var(--muted)}.chapter-chevron{font-size:16px;transition:transform .2s}.chapter[open] .chapter-chevron{transform:rotate(90deg)}.lesson-row{width:100%;display:flex;align-items:center;gap:12px;padding:12px 8px 12px 37px;min-height:50px;border-radius:8px;text-align:left}.lesson-row:hover{background:var(--sage)}.lesson-row.current{background:#eeeede}.lesson-row .num{font-size:10px;color:var(--muted);min-width:18px}.lesson-row .name{font-size:13px;flex:1}.lesson-row .done{color:var(--green);font-size:12px}.ticket{background:var(--sage);border-radius:20px;overflow:hidden;border:1px solid #d7dfcd}.ticket-top{padding:21px 22px 20px}.ticket-top .tiny-label{font-size:9px;letter-spacing:2px;color:#52634c}.ticket h2{font-size:43px;letter-spacing:-2px;font-weight:600;line-height:1.2;margin-top:17px}.ticket .jp{font-size:12px;color:#51644c;letter-spacing:5px}.ticket-line{display:flex;align-items:center;gap:10px;margin:20px 0 0;font-size:11px}.ticket-line .dash{flex:1;border-top:1px dashed #9cae92}.ticket-bottom{padding:15px 22px;border-top:1px dashed #adbaa4;display:flex;justify-content:space-between;gap:10px;position:relative}.ticket-bottom:before,.ticket-bottom:after{content:'';position:absolute;top:-9px;width:16px;height:16px;background:var(--bg);border-radius:50%}.ticket-bottom:before{left:-9px}.ticket-bottom:after{right:-9px}.ticket-bottom div{display:grid;font-size:10px;color:#607056;gap:3px}.ticket-bottom strong{font-size:17px;color:var(--ink);font-weight:600;letter-spacing:-.5px}.note-card{margin-top:22px;padding:20px 18px 20px;background:#f7eee5;border-radius:4px 19px 19px 19px;transform:rotate(-1deg);border:1px solid #ecdfd1}.note-card .tiny-label{font-size:9px;color:#916957}.note-card h3{font-size:18px;margin:10px 0 8px}.note-card .jp{font-size:24px;color:var(--accent);margin:12px 0}.note-card p{font-size:12px;color:#766458;line-height:1.8}.note-card .quiet{font-size:12px;color:var(--accent)}.review-banner{display:flex;gap:16px;align-items:center;background:#eeeee4;padding:18px 21px;border-radius:16px;margin-top:22px}.review-banner>div{flex:1}.review-banner h3{font-size:14px;margin-bottom:3px}.review-banner p{font-size:11px;color:var(--muted)}.round-arrow{min-width:44px;height:44px;border-radius:50%;border:1px solid #cdd1c3;display:grid;place-items:center}.page-footer{border-top:1px solid var(--line);font-size:10px;padding:22px 0 30px;display:flex;justify-content:space-between;color:var(--muted);gap:14px}.tabs-row,.filter-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.pill{min-height:44px;border:1px solid var(--line);padding:8px 15px;border-radius:100px;background:var(--paper);font-size:13px;white-space:nowrap}.pill.active{background:var(--ink);border-color:var(--ink);color:white}.pill:hover{border-color:var(--ink)}.help-note{font-size:12px;line-height:1.8;background:var(--sage);padding:16px 19px;border-radius:12px;margin-bottom:23px;color:#52634c}.kana-group-label{font-size:11px;color:var(--muted);margin:20px 0 10px}.kana-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.kana-cell{background:var(--paper);border:1px solid var(--line);border-radius:14px;min-height:91px;padding:13px 7px;display:grid;place-items:center;position:relative}.kana-cell:hover{background:var(--peach);border-color:#d7b9a4}.kana-cell .char{font-family:var(--jp);font-size:31px;line-height:1.4}.kana-cell .kana-label{font-size:11px;color:var(--muted)}.kana-cell .mastery{position:absolute;right:8px;top:7px;width:5px;height:5px;border-radius:50%;background:var(--green)}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.search{width:100%;border:1px solid var(--line);background:var(--paper);color:var(--ink);min-height:52px;border-radius:12px;padding:12px 17px;font-size:16px;margin-bottom:18px}.phrase-list{display:grid;gap:15px}.phrase-card{border:1px solid var(--line);border-radius:17px;background:var(--paper);padding:21px}.phrase-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.tag{font-size:10px;color:var(--green);background:var(--sage);padding:3px 9px;border-radius:5px}.bookmark{min-width:44px;min-height:44px;border-radius:50%;display:grid;place-items:center;color:var(--muted);margin:-8px -8px -4px 0}.bookmark.saved{color:var(--accent);background:var(--peach)}.phrase-card h3{font-size:17px;line-height:1.6;margin:5px 0 10px}.phrase-card .jp{font-size:23px;line-height:1.7;overflow-wrap:anywhere}.reading{font-family:var(--jp);font-size:12px;color:var(--muted);line-height:1.7;margin-top:4px}.hint{font-size:12px;color:#9b5c49;margin-top:5px}.phrase-note{font-size:12px;color:var(--muted);line-height:1.85;margin-top:13px}.audio-controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}.audio-button{border:1px solid var(--line);min-height:44px;padding:9px 14px;border-radius:100px;font-size:12px;display:inline-flex;gap:7px;align-items:center;background:var(--paper)}.audio-button svg{width:17px;height:17px}.audio-button.main-audio{color:var(--accent);border-color:#d9b1a1;background:#fdf2ea}.audio-button.is-playing{background:var(--accent);color:white;border-color:var(--accent)}.audio-button:hover{background:var(--peach)}.audio-button.is-playing:hover{background:var(--accent);color:white}.phrase-actions{display:flex;justify-content:space-between;gap:12px;align-items:center}.show-button{color:var(--green);font-size:12px;min-height:44px;padding:7px 0;margin-top:13px}.empty-state{padding:45px 20px;text-align:center;border:1px dashed var(--line);border-radius:20px}.empty-state h2{font-size:21px;margin-bottom:10px}.empty-state p{font-size:13px;color:var(--muted)}.dialogue-list{display:grid;gap:12px;margin-top:25px}.dialogue-link{display:flex;gap:14px;align-items:center;width:100%;padding:18px 19px;border:1px solid var(--line);border-radius:14px;background:var(--paper);text-align:left}.dialogue-link .number{color:var(--accent);font-size:12px}.dialogue-link .title{flex:1;font-size:14px;font-weight:600}.dialogue-link small{display:block;font-size:11px;color:var(--muted);font-weight:400;margin-top:4px}.travel-intro{padding:24px;background:var(--sage);border-radius:20px;margin-bottom:27px;display:flex;align-items:center;justify-content:space-between;gap:20px}.travel-intro h2{font-size:22px;margin-bottom:7px}.travel-intro p{font-size:12px;color:var(--muted)}.travel-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.travel-card{border:1px solid var(--line);border-radius:15px;padding:18px;background:var(--paper);min-height:102px;text-align:left;display:flex;flex-direction:column;justify-content:space-between}.travel-card strong{font-size:14px;line-height:1.5}.travel-card span{font-size:10px;color:var(--muted);margin-top:13px}.travel-card:hover{background:var(--peach)}.disclaimer{color:var(--muted);font-size:11px;line-height:1.85;margin-top:25px}.text-link{color:var(--accent);text-decoration:underline;text-underline-offset:3px;min-height:44px;padding:10px 0}.initial-loading{text-align:center;padding:60px 15px;display:grid;justify-items:center;gap:20px}.initial-loading h1{font-size:21px}.initial-loading p{font-size:13px;color:var(--muted)}
/* One task, one sheet. */
dialog{padding:0;border:1px solid var(--line);background:var(--bg);color:var(--ink);width:min(640px,calc(100vw - 40px));max-height:90dvh;border-radius:26px;box-shadow:0 25px 90px #25362630;overflow:auto}dialog::backdrop{background:#202a246b;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.dialog-header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:22px 28px 18px;border-bottom:1px solid var(--line)}.dialog-header h2{font-size:17px;letter-spacing:-.03em}.dialog-header .icon-button{width:44px;height:44px;border:0;background:transparent;font-size:24px}.dialog-body{padding:28px}.dialog-footer{padding:18px 28px 25px;border-top:1px solid var(--line);display:flex;gap:12px;align-items:center;position:sticky;bottom:0;background:var(--bg);z-index:2}.dialog-footer .back-step{width:48px;min-width:48px;min-height:50px;border:1px solid var(--line);border-radius:12px}.step-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-bottom:13px}.step-label{color:var(--accent);letter-spacing:1px;font-weight:700}.lesson-progress{height:4px;background:var(--line)}.lesson-progress div{height:100%;background:var(--accent);transition:width .2s}.lesson-title{font-size:30px;margin-bottom:15px}.lesson-goal{font-size:16px;line-height:1.85}.teacher-tip{font-size:14px;line-height:1.95;margin-top:22px;padding:20px;background:var(--sage);border-radius:15px;white-space:pre-line}.teacher-tip small{display:block;font-size:10px;letter-spacing:1px;font-weight:700;color:var(--green);margin-bottom:8px}.lesson-preview-chars{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.lesson-preview-chars span{width:48px;height:54px;display:grid;place-items:center;font-family:var(--jp);font-size:25px;background:var(--paper);border:1px solid var(--line);border-radius:10px}.big-kana-card{text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:32px 20px}.big-kana{font-family:var(--jp);font-size:125px;line-height:1.5;color:var(--ink)}.big-reading{font-size:19px;color:var(--accent)}.big-kana-card .audio-controls{justify-content:center}.big-kana-note{font-size:13px;line-height:1.9;color:var(--muted);margin-top:20px}.lesson-phrase{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:27px 24px}.lesson-phrase h3{font-size:20px;margin-bottom:20px}.lesson-phrase .jp{font-size:29px;line-height:1.8;overflow-wrap:anywhere}.try-speaking{font-size:12px;color:var(--green);margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.quiz-prompt{font-size:23px;line-height:1.6;margin-bottom:22px;letter-spacing:-.035em}.quiz-options{display:grid;gap:11px;margin:23px 0 0}.quiz-option{text-align:left;border:1px solid var(--line);background:var(--paper);border-radius:13px;padding:16px 18px;font-size:16px;line-height:1.6;display:flex;gap:13px;min-height:58px;align-items:center}.quiz-option .option-letter{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:1px 6px;align-self:center}.quiz-option:disabled{opacity:1}.quiz-option.correct{background:#e6edde;border-color:#94a989}.quiz-option.incorrect{background:#f4e4db;border-color:#cd927a}.quiz-option:hover:not(:disabled){border-color:var(--accent);background:#fbefe6}.feedback{margin-top:19px;border-radius:13px;padding:17px 18px;font-size:13px;line-height:1.8;background:var(--sage)}.feedback.wrong{background:#f4e4db}.feedback strong{display:block;font-size:15px;margin-bottom:5px}.listen-big{display:flex;align-items:center;justify-content:center;gap:14px;border:1px solid #d6baaa;background:var(--peach);border-radius:17px;padding:23px;min-height:95px;width:100%;font-weight:600;color:var(--accent)}.listen-big svg{width:31px;height:31px}.listen-note{text-align:center;font-size:11px;color:var(--muted);margin-top:10px}.completion{padding:18px 0;text-align:center}.completion-mark{display:grid;place-items:center;width:80px;height:80px;border:1px solid #b8c6ad;background:var(--sage);color:var(--green);font-size:36px;border-radius:50%;margin:0 auto 22px}.completion h2{font-size:29px;margin-bottom:12px}.completion p{font-size:14px;color:var(--muted);line-height:1.8}.result-line{display:flex;justify-content:center;gap:35px;margin:27px 0;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.result-line strong{display:block;font-size:25px;color:var(--ink);letter-spacing:-1px}.result-line span{font-size:11px;color:var(--muted)}.show-japanese{font-family:var(--jp);font-size:clamp(32px,6vw,47px);line-height:1.75;margin:25px 0;overflow-wrap:anywhere;word-break:normal}.show-ko{font-size:16px;color:var(--muted)}.show-meta{font-size:11px;letter-spacing:1px;color:var(--accent)}.setting-section+.setting-section{margin-top:25px;padding-top:25px;border-top:1px solid var(--line)}.setting-section h3{font-size:16px;margin-bottom:12px}.setting-section p{font-size:12px;color:var(--muted);line-height:1.85;margin:9px 0 15px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:48px;font-size:14px}.setting-row input[type=date]{padding:7px 10px;min-height:44px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:8px;max-width:180px}.setting-row input[type=checkbox]{width:24px;height:24px;accent-color:var(--accent)}.settings-actions{display:flex;gap:10px;flex-wrap:wrap}.settings-actions .secondary{width:auto;font-size:13px;min-height:44px;padding:9px 14px}.save-status{font-size:12px;color:var(--green);line-height:1.8;margin:10px 0}.install-list{font-size:13px;color:var(--muted);padding-left:21px;line-height:2}.bubble{padding:17px 20px;border-radius:18px 18px 18px 4px;background:var(--paper);border:1px solid var(--line);margin:13px 28px 13px 0}.bubble.me{background:var(--sage);margin:13px 0 13px 28px;border-radius:18px 18px 4px 18px}.bubble .role{font-size:10px;color:var(--muted);margin-bottom:7px}.bubble .jp{font-size:20px;line-height:1.8}.bubble .ko{font-size:12px;margin-top:10px}.bubble .audio-controls{margin-top:10px}.bubble .audio-button{font-size:11px;padding:7px 10px}.review-flash{text-align:center}.review-flash .jp{font-size:40px;line-height:1.6;margin:25px 0}.review-reveal{background:var(--paper);border:1px solid var(--line);border-radius:15px;margin:22px 0;padding:18px}.review-buttons{display:flex;gap:10px;margin-top:24px}.review-buttons button{flex:1}.footnote{font-size:11px;color:var(--muted);line-height:1.85;margin-top:18px}.danger{color:var(--error)}#toast{position:fixed;bottom:35px;left:50%;transform:translateX(-50%) translateY(15px);opacity:0;pointer-events:none;background:var(--ink);color:var(--paper);padding:13px 21px;border-radius:13px;z-index:100;font-size:13px;max-width:calc(100vw - 32px);width:max-content;transition:.2s}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.offline-meter{height:5px;background:var(--line);border-radius:5px;overflow:hidden;margin-top:15px}.offline-meter div{height:100%;width:0;background:var(--green)}
@media(min-width:1350px){.main-shell{padding:0 70px}.home-grid{grid-template-columns:minmax(0,1fr) 290px;gap:32px}.study-body{padding:32px}.study-intro h2{font-size:28px}.study-intro{gap:28px}.kana-art{width:130px;min-width:130px;height:143px}.kana-art span{font-size:83px}}
@media(max-width:1150px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:32px 18px}.brand{font-size:18px;gap:9px}.brand small{font-size:7px}.main-shell{padding:0 30px}.home-grid{grid-template-columns:minmax(0,1fr) 220px;gap:20px}.study-intro{gap:16px}.kana-art{width:90px;min-width:90px;height:110px}.kana-art span{font-size:64px}.study-intro h2{font-size:22px}.study-body{padding:23px}.page-heading h1{font-size:31px}.ticket-top{padding:19px}.connection{display:none}.ticket-bottom{padding:15px 19px}}
@media(max-width:920px) and (min-width:761px){.home-grid{grid-template-columns:1fr}.home-aside{display:grid;grid-template-columns:1fr 1fr;gap:20px}.note-card{margin:0}.ticket h2{font-size:35px}.ticket-line{margin-top:12px}.home-aside .review-banner{grid-column:1/-1;margin:0}.study-intro h2{font-size:27px}}
@media(max-width:760px){.app-shell{display:block}.sidebar{display:none}.main-shell{padding:0 23px}.topbar{height:83px;padding-top:env(safe-area-inset-top,0px);border-bottom:0}.desktop-crumb{display:none}.mobile-brand{display:flex;gap:8px;align-items:center;font-size:19px;font-weight:800;letter-spacing:-.05em}.mobile-brand>span{display:grid;place-items:center;font-family:var(--jp);width:29px;height:34px;font-size:24px;background:var(--accent);color:var(--paper);border-radius:8px 8px 8px 2px}.top-right .icon-button{width:40px;height:40px;font-size:18px;border-color:transparent;background:none}.bottom-nav{display:flex;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;z-index:10;padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px));background:#fbf8f1f7;border-top:1px solid var(--line);backdrop-filter:blur(12px)}.bottom-nav .nav-button{flex-direction:column;gap:3px;padding:3px 4px;min-height:51px;min-width:65px;font-size:10px;border-radius:10px}.bottom-nav .nav-button svg{width:21px;height:21px}.bottom-nav .nav-button.active{background:none;color:var(--accent)}.bottom-nav .nav-button.active svg{stroke-width:2.3}.bottom-nav .nav-button.active:after{display:none}main{padding:16px 0 27px}.page-heading{margin-bottom:25px;gap:8px}.page-heading h1{font-size:31px;letter-spacing:-.075em;margin:7px 0 10px}.page-heading p{font-size:12px}.eyebrow{font-size:9px;letter-spacing:1.7px}.date-chip{font-size:10px;padding:6px 10px;align-self:flex-start;margin-top:4px}.home-grid{display:flex;flex-direction:column;gap:24px}.home-main,.home-aside{width:100%}.study-top{padding:15px 18px}.study-body{padding:23px 20px}.study-intro{gap:18px;margin-bottom:22px}.study-intro h2{font-size:23px}.study-intro p{font-size:12px}.study-intro .tiny-label{font-size:9px}.kana-art{min-width:92px;width:92px;height:111px;border-radius:15px}.kana-art span{font-size:63px}.study-intro h2{margin-top:6px;margin-bottom:8px}.lesson-parts{gap:6px;margin-bottom:21px}.lesson-parts span{font-size:10px;padding:4px 8px}.primary,.secondary{min-height:53px;font-size:14px}.study-card{border-radius:20px}.micro-note{font-size:10px}.journey{margin-top:29px}.section-title h2{font-size:17px}.chapter summary{min-height:61px}.home-aside{display:grid;grid-template-columns:1fr 1fr;gap:13px}.ticket{border-radius:17px}.ticket-top{padding:16px}.ticket-top .tiny-label{font-size:7px;letter-spacing:1.5px}.ticket h2{font-size:29px;margin-top:12px}.ticket .jp{font-size:10px}.ticket-line{gap:6px;font-size:9px;margin-top:17px}.ticket-bottom{padding:11px 14px}.ticket-bottom strong{font-size:14px}.ticket-bottom div{font-size:8px}.note-card{margin:0;padding:16px 13px;align-self:stretch}.note-card h3{font-size:15px;margin:8px 0 6px}.note-card .tiny-label{font-size:7px}.note-card .jp{font-size:20px;margin:8px 0}.note-card p{font-size:10px}.note-card .quiet{font-size:10px;min-height:40px;padding:0}.home-aside>.review-banner{grid-column:1/-1;margin:0;padding:15px 18px}.review-banner h3{font-size:13px}.page-footer{font-size:9px;padding:20px 0 calc(100px + env(safe-area-inset-bottom,0px));gap:9px}.page-footer span{font-size:9px}.tabs-row,.filter-row{gap:7px}.pill{font-size:12px;padding:8px 13px}.help-note{font-size:12px;padding:15px 16px}.kana-grid{gap:8px}.kana-cell{min-height:79px;border-radius:11px;padding:10px 4px}.kana-cell .char{font-size:28px}.kana-cell .kana-label{font-size:10px}.toolbar{gap:8px}.toolbar .inline-button{font-size:12px;padding:8px 12px;min-height:44px}.toolbar .small-muted{font-size:11px}.phrase-card{padding:19px 18px;border-radius:16px}.phrase-card h3{font-size:16px}.phrase-card .jp{font-size:22px}.audio-button{font-size:11px;padding:9px 12px}.filter-row{flex-wrap:nowrap;overflow-x:auto;margin-left:-23px;margin-right:-23px;padding-left:23px;padding-right:23px;padding-bottom:4px;scrollbar-width:none}.filter-row::-webkit-scrollbar{display:none}.travel-intro{padding:21px;gap:10px}.travel-intro h2{font-size:21px}.travel-intro p{font-size:11px}.travel-card{padding:16px;min-height:107px}.travel-card strong{font-size:13px}.travel-grid{gap:11px}.dialogue-link{padding:16px}.dialogue-link .title{font-size:13px}dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}#dialog-content{min-height:100%;display:flex;flex-direction:column}.dialog-header{padding:calc(14px + env(safe-area-inset-top,0px)) 22px 14px}.dialog-header h2{font-size:16px}.dialog-body{padding:25px 23px;flex:1}.dialog-footer{padding:15px 23px calc(19px + env(safe-area-inset-bottom,0px))}.lesson-title{font-size:28px}.lesson-goal{font-size:15px}.teacher-tip{font-size:14px;padding:19px;line-height:1.95}.big-kana-card{padding:27px 19px}.big-kana{font-size:119px}.lesson-phrase{padding:25px 22px}.lesson-phrase .jp{font-size:27px}.quiz-prompt{font-size:23px}.quiz-option{font-size:15px;padding:16px}.show-japanese{font-size:37px}.bubble{padding:17px;margin-right:15px}.bubble.me{margin-left:15px;margin-right:0}.bubble .jp{font-size:19px}.bubble .audio-controls{gap:5px}.bubble .audio-button{padding:7px 10px}.setting-row input[type=date]{max-width:168px;font-size:14px}#toast{bottom:calc(89px + env(safe-area-inset-bottom,0px))}}
@media(max-width:360px){.main-shell{padding:0 17px}.study-body{padding:21px 16px}.study-intro{gap:12px}.kana-art{min-width:79px;width:79px;height:99px}.study-intro h2{font-size:21px}.page-heading h1{font-size:29px}.page-footer span{max-width:140px}.home-aside{gap:10px}.dialog-body{padding:23px 19px}.setting-row{font-size:12px}.kana-cell .char{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}
@media print{.sidebar,.topbar,.bottom-nav,.page-footer,.audio-controls,.bookmark,.show-button{display:none!important}.app-shell{display:block}.main-shell{padding:0}main{padding:0}body{background:white;font-size:12pt}.phrase-card{break-inside:avoid}.filter-row,.tabs-row,.search{display:none}}
