@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800&display=swap');
:root{--bg:#f7f8f3;--paper:#fffefa;--ink:#263a32;--muted:#7a847e;--green:#236b56;--green-dark:#1c5143;--green-soft:#e8f0e8;--line:#e4e8df;--coral:#c66c58;--yellow:#f5d580;--sidebar:236px;font-family:'Noto Sans JP','Yu Gothic UI',Meiryo,sans-serif;color:var(--ink);font-synthesis:none;background:var(--bg);font-size:14px;line-height:1.7}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.4}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,[tabindex]:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d2ac44;outline-offset:4px}button{border:0;background:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:700;letter-spacing:.015em}h1{font-size:30px;line-height:1.6;letter-spacing:.025em}h2{font-size:19px}h3{font-size:16px}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.sidebar{width:var(--sidebar);height:100dvh;position:fixed;inset:0 auto 0 0;background:#fffefa;border-right:1px solid var(--line);padding:34px 20px 22px;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:11px;padding:0 8px;font-weight:800;font-size:18px;letter-spacing:-.03em;white-space:nowrap}.brand img{width:38px;height:38px}.brand small{display:block;font-size:10px;letter-spacing:.17em;font-weight:500;color:var(--muted);margin-top:2px}.sidebar-label{font-size:9px;letter-spacing:.18em;color:#919b93;margin:52px 16px 13px}.sidebar nav{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:13px 16px;border-radius:9px;text-align:left;font-size:13px;font-weight:500;color:#6e7973;transition:.15s}.nav-item:hover{background:#f2f5ee}.nav-item.active{color:var(--green);background:#e9f0e7;font-weight:700}.nav-count{font-size:10px;margin-left:auto;padding:0 7px;background:white;border-radius:5px;line-height:20px;color:var(--muted)}.sidebar-note{margin:45px 8px 24px;padding:22px 17px 20px;border:1px dashed #d7ddce;border-radius:12px;background:#fafbf5}.tiny-pill{font-size:9px;color:#6e806d;letter-spacing:.03em}.sidebar-note p{font-size:16px;font-weight:600;line-height:1.8;margin:9px 0 14px}.friend-row{display:flex;padding-left:4px}.avatar{object-fit:contain;display:block;flex-shrink:0}.friend-row .avatar{width:42px;height:42px;background:#f2eedf;border:2px solid var(--paper);border-radius:50%;margin-left:-5px}.friend-row .avatar:last-child{background:#e5f1ef;padding:4px}.sidebar-note>small{font-size:9px;color:var(--muted);display:block;margin-top:8px}.settings-nav{margin-top:auto;font-size:11px;padding-left:11px;gap:9px}.settings-nav .icon{width:17px}.sidebar-footer{padding:15px 9px 0;border-top:1px solid var(--line);font-size:9px;color:#9a9f99;display:flex;justify-content:space-between}.sidebar-footer span{font-size:8px;border:1px solid var(--line);padding:0 4px;border-radius:3px}.workspace{margin-left:var(--sidebar);min-height:100dvh}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 44px;background:rgba(255,254,250,.55)}.breadcrumb{font-size:11px;color:#7b877f}.breadcrumb span{padding:0 16px;color:#c2c9bf}.topbar-right{display:flex;align-items:center;gap:22px;font-size:11px}.saved-note{color:#8b958b;display:flex;align-items:center;gap:5px;font-size:10px}.saved-note .icon{width:13px}.daily-count{display:flex;align-items:center;gap:7px;padding:5px 12px;border:1px solid var(--line);border-radius:20px;background:#fffefa;color:#617564}.daily-count .icon{width:15px}.daily-count b{color:var(--green)}.mobile-brand,.mobile-settings,.mobile-nav,.mobile-only{display:none}.main{max-width:1248px;margin:auto;padding:38px 44px 40px;outline:none}.page-intro{display:flex;align-items:end;justify-content:space-between;margin-bottom:25px;gap:15px}.eyebrow{font-size:10px;letter-spacing:.18em;font-weight:700;color:var(--green);margin-bottom:8px}.page-intro p{font-size:12px;color:var(--muted);margin-top:8px;letter-spacing:.02em}.intro-date{font-size:10px;color:#899186;padding-bottom:7px;white-space:nowrap}.welcome-bubble{display:flex;align-items:center;gap:17px;background:#eeefe4;border-radius:12px;padding:12px 22px;margin-bottom:23px;position:relative;min-height:81px}.welcome-bubble>.avatar{width:59px;height:59px;background:#fff9e9;border-radius:50%;border:3px solid #fffdf5}.speaker{display:block;color:#6e7b6e;font-weight:700;font-size:9px;margin-bottom:2px}.welcome-bubble p{font-size:12px;font-weight:500;letter-spacing:.03em}.bubble-spark{color:#a9b69c;margin-left:auto;font-size:25px;padding-right:4px}.practice-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:19px}.daily-hero{background:var(--green);border-radius:16px;min-height:280px;overflow:hidden;position:relative;color:white;padding:28px 29px;isolation:isolate;display:flex;align-items:center}.hero-dots{position:absolute;inset:0;z-index:-1;background-image:radial-gradient(#fff3 .8px,transparent .8px);background-size:17px 17px;opacity:.3}.daily-hero:after{content:'';position:absolute;width:250px;height:250px;border-radius:50%;border:1px solid #ffffff13;right:-56px;top:25px;z-index:-1;box-shadow:0 0 0 35px #ffffff04,0 0 0 70px #ffffff03}.hero-copy{position:relative;z-index:2;flex:1}.hero-label{font-size:10px;display:flex;align-items:center;gap:7px;color:#c3e0c8}.hero-label .icon{width:14px;height:14px;color:var(--yellow)}.daily-hero h2{font-size:32px;letter-spacing:.04em;margin:7px 0 6px}.daily-hero p{font-size:11px;line-height:1.95;color:#dbebdd;position:relative;z-index:2}.button{display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:46px;padding:11px 20px;border-radius:9px;font-size:12px;font-weight:700;transition:background .16s,transform .16s;border:1px solid transparent}.button:hover{transform:translateY(-1px)}.button.cream{color:#2f4f3a;background:#f8e5a6;margin-top:22px;min-width:196px;justify-content:space-between}.button.cream:hover{background:#ffedb5}.button.primary{background:var(--green);color:white}.button.primary:hover{background:var(--green-dark)}.button.secondary{background:white;border:1px solid #dce2d7;color:var(--green)}.button.secondary:hover{background:#f0f4ec}.button.danger{background:#b85e4b;color:white}.full{width:100%}.hero-foot{font-size:8px;display:flex;align-items:center;gap:5px;color:#bbd7c4;margin-top:12px;white-space:nowrap}.hero-foot .icon{width:12px;height:12px}.hero-foot span{margin:0 3px}.hero-art{width:37%;align-self:stretch;position:relative;display:flex;align-items:center;justify-content:center;min-width:130px;margin-left:-18px;pointer-events:none}.hero-matsuri{width:170px;max-width:130%;height:192px;object-fit:contain;transform:rotate(7deg);filter:drop-shadow(0 8px 8px #092f2b40);margin-top:-8px}.art-spark{position:absolute;color:#e9d776}.art-spark.one{left:4px;top:37px;font-size:25px}.art-spark.two{right:-4px;top:65px;font-size:18px}.mascot-label{position:absolute;bottom:28px;background:#fffdf0;color:#356950;padding:5px 11px;font-size:9px;font-weight:700;white-space:nowrap;transform:rotate(-6deg);border-radius:6px;box-shadow:0 3px 0 #153d3522}.mascot-label:before{content:'';position:absolute;top:-5px;left:20px;width:10px;height:10px;transform:rotate(45deg);background:#fffdf0}.side-modes{display:flex;flex-direction:column;gap:16px}.mode-card{display:flex;align-items:center;gap:14px;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:21px 20px;flex:1;transition:.18s;position:relative}.mode-card:hover{border-color:#a9bdab;transform:translateY(-2px);box-shadow:0 6px 16px #304d3006}.mode-icon{width:43px;height:43px;display:flex;align-items:center;justify-content:center;border-radius:12px;flex-shrink:0}.weak-mode .mode-icon{background:#faece5;color:#bd7a63}.all-mode .mode-icon{background:#edf0e4;color:#859165}.mode-text{flex:1}.mode-text h3{font-size:15px}.mode-text p{font-size:10px;color:var(--muted);margin:3px 0 6px}.mode-text>span{font-size:9px;color:#899387}.mode-text b{font-size:21px;color:var(--ink);font-weight:700;line-height:1.2}.mode-text small{font-size:9px;margin-left:9px;color:#93998b}.mode-arrow{width:16px;color:#a4ae9f}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px;gap:12px}.section-heading h2{font-size:15px;font-weight:700}.overview-section,.topics-section{margin-top:32px}.text-link{display:inline-flex;gap:7px;align-items:center;font-size:10px;color:#6c8371;font-weight:500;padding:0}.text-link .icon{width:14px;height:14px}.text-link:hover{color:var(--green);text-decoration:underline;text-underline-offset:4px}.overview-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:19px}.progress-overview{background:var(--paper);border:1px solid var(--line);padding:25px 21px;border-radius:12px;display:flex;gap:23px;align-items:center}.progress-ring{--progress:0deg;flex-shrink:0;width:122px;height:122px;border-radius:50%;background:conic-gradient(var(--green) var(--progress),#eff1e8 0);padding:8px;transform:rotate(-.01deg)}.progress-ring>div{width:100%;height:100%;border-radius:50%;background:var(--paper);display:flex;align-items:center;justify-content:center;flex-direction:column}.progress-ring strong{font-size:30px;font-weight:700;line-height:1.25;letter-spacing:-.05em}.progress-ring strong small{font-size:13px;font-weight:500;letter-spacing:0;color:#9ca597;margin-left:3px}.progress-ring span{font-size:8px;color:#859080;margin-top:7px}.mini-label{font-size:8px;letter-spacing:.12em;color:#91a086;font-weight:700}.progress-copy h3{font-size:13px;margin:5px 0 7px}.progress-copy p{font-size:9px;color:var(--muted);line-height:1.9}.progress-key{display:flex;gap:13px;margin-top:15px;font-size:8px;color:#7c8778;white-space:nowrap}.progress-key>span{display:flex;gap:4px;align-items:center}.progress-key b{color:#50634f;margin-left:2px;font-weight:500}.dot{width:6px;height:6px;display:inline-block;border-radius:50%}.dot.green{background:#568d64}.dot.coral{background:#d49a80}.dot.gray{background:#cfd5c5}.howto-card{border:1px solid var(--line);background:#f1f3e8;border-radius:12px;padding:21px 22px}.howto-card h3{font-size:12px;margin:6px 0 12px}.steps{display:flex;flex-direction:column;gap:9px}.steps>div{display:flex;align-items:center;gap:9px;font-size:10px;color:#74806e}.steps>div>span{font-size:9px;background:#e6ebdb;border-radius:50%;width:19px;height:19px;display:inline-flex;justify-content:center;align-items:center;color:#8a9b7c;font-weight:700}.steps em{font-style:normal;font-size:9px;font-weight:500}.steps em+em{margin-left:4px}.left-text{color:var(--coral)!important}.right-text{color:var(--green)!important}.topic-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.topic-card{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:16px 15px;text-align:left;transition:.18s}.topic-card:hover{border-color:#aabdac;background:#f8faf1}.topic-number{font-size:9px;color:#a8b39f;letter-spacing:.1em}.topic-card h3{font-size:11px;margin:6px 0 13px;white-space:nowrap}.mini-track{height:4px;border-radius:10px;overflow:hidden;background:#edf0e6}.mini-track i{display:block;height:100%;background:#7f9c71;border-radius:10px}.topic-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:9px;font-size:9px;color:#99a08f}.topic-bottom .icon{width:13px;height:13px}.app-footer{max-width:1248px;margin:auto;border-top:1px solid var(--line);padding:19px 44px 25px;display:flex;justify-content:space-between;font-size:9px;color:#9ba193;gap:15px}.app-footer button{display:flex;align-items:center;gap:5px;font-size:9px;color:#8f9b89;padding:0}.app-footer .icon{width:12px;height:12px}.small{font-size:10px}.muted{color:var(--muted)}.outline-pill{border:1px solid var(--line);background:var(--paper);border-radius:20px;padding:5px 11px;font-size:9px;color:var(--muted);white-space:nowrap}.icon-button{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px}.icon-button:hover{background:#edf2e8}.notice{background:#fff0cf;color:#805c1f;padding:12px 16px;border-radius:8px;font-size:12px;margin-bottom:20px}
/* The study desk */
.study-main{max-width:970px;padding-top:25px}.study-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:21px}.study-heading>span{font-weight:700;color:#6f806e}.study-progress{display:flex;align-items:center;gap:15px;margin:auto auto 20px;max-width:650px}.study-progress .track{height:5px;background:#e6eadf;border-radius:20px;overflow:hidden;flex:1}.study-progress .track i{height:100%;display:block;background:#66926a;border-radius:20px;transition:width .2s}.study-progress>span{font-size:10px;color:#97a08f;min-width:38px}.study-progress b{font-size:13px;color:var(--green)}.study-companion{max-width:650px;margin:0 auto 20px;display:flex;align-items:center;justify-content:center;gap:12px}.study-companion>.avatar{width:48px;height:48px;border-radius:50%;background:#edf0e5;padding:1px}.study-companion>.avatar[src*='matsuri']{padding:4px}.study-companion p{font-size:11px;line-height:1.6}.study-companion .speaker{font-size:8px;margin-bottom:3px}.card-stage{max-width:650px;position:relative;margin:0 auto 30px;perspective:1400px;isolation:isolate}.stack-card{position:absolute;inset:0;border-radius:20px;border:1px solid #e2e7d8;background:#edf0e5;z-index:-1;pointer-events:none}.stack-back{transform:translateY(13px) scale(.958)}.stack-middle{transform:translateY(7px) scale(.98);background:#f9faf2}.flashcard{position:relative;background:var(--paper);border:1px solid #dce3d3;border-radius:20px;box-shadow:0 7px 26px #364d3010;min-height:405px;padding:26px 34px 20px;transition:transform .18s,opacity .18s;touch-action:pan-y;overflow:hidden;user-select:none;-webkit-user-select:none;cursor:pointer;--wrong:0;--correct:0}.flashcard:focus-visible{outline-offset:7px}.flashcard.is-revealed{cursor:grab;min-height:405px;animation:reveal .22s ease-out}.flashcard.is-revealed:active{cursor:grabbing}.flashcard.dragging{transition:none}.flashcard.exit-right{transform:translateX(130px) rotate(8deg);opacity:0}.flashcard.exit-left{transform:translateX(-130px) rotate(-8deg);opacity:0}.card-meta{display:flex;justify-content:space-between;align-items:center;gap:15px}.category-pill{background:#eef2e7;color:#789067;font-size:10px;border-radius:5px;padding:4px 10px;font-weight:500}.card-kind{font-size:10px;color:#a1ab96}.question-side{display:flex;flex-direction:column;align-items:center;text-align:center;min-height:299px;padding:23px 10px 18px}.question-mark{font-size:30px;font-weight:500;font-family:Georgia,serif;color:#92a67b;line-height:1.2}.question-side h1{font-size:25px;line-height:1.8;margin:auto 0;font-weight:700;letter-spacing:.025em;word-break:normal;overflow-wrap:anywhere;padding:20px 0;max-width:510px}.reveal-hint{font-size:11px;color:#a0a68e;display:flex;gap:8px;align-items:center;border:1px dashed #d9dfcc;border-radius:20px;padding:6px 13px;margin-top:15px}.reveal-hint .icon{width:15px;height:15px}.card-bottom{display:flex;justify-content:space-between;border-top:1px solid #edf0e5;padding-top:14px;font-size:8px;letter-spacing:.14em;color:#acb39f}.card-bottom>span:last-child{letter-spacing:.02em}.answer-side{padding:18px 0 13px;user-select:text;-webkit-user-select:text}.original-question{font-size:11px;color:#93a08a;border-bottom:1px solid var(--line);padding-bottom:16px;margin-bottom:16px;line-height:1.8}.answer-label{font-size:8px;letter-spacing:.17em;color:#72916d;font-weight:700}.answer-side h2{font-size:23px;line-height:1.7;color:var(--green);margin:7px 0 14px;overflow-wrap:anywhere}.explanation{font-size:12px;line-height:1.95;color:#586a56}.criteria-box{display:flex;gap:10px;background:#eff4e8;border-radius:9px;padding:13px 15px;margin-top:20px;color:#6f8960}.criteria-box>.icon{width:17px;margin-top:2px}.criteria-box strong{font-size:10px;display:block;margin-bottom:4px}.criteria-box p{font-size:11px;line-height:1.8}.haruto-tip{display:flex;align-items:center;gap:10px;margin-top:14px}.haruto-tip>.avatar{width:38px;height:38px;border-radius:50%;background:#f3f1e6}.haruto-tip p{font-size:10px;color:#8b947d;line-height:1.8}.answer-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf0e5;padding-top:12px}.answer-bottom a{font-size:9px;color:#96a18d}.swipe-stamp{position:absolute;z-index:10;border:3px solid;font-size:22px;font-weight:800;padding:5px 12px;border-radius:7px;top:58px;pointer-events:none}.wrong-stamp{right:22px;color:var(--coral);background:#fff3e8;transform:rotate(12deg);opacity:var(--wrong)}.correct-stamp{left:22px;color:var(--green);background:#edf5e6;transform:rotate(-12deg);opacity:var(--correct)}.grade-controls{display:grid;grid-template-columns:1fr 1fr;gap:17px;max-width:650px;margin:auto}.grade-button{border:1px solid;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:14px 16px;gap:16px;transition:background .15s,transform .15s;min-height:74px}.grade-button:hover:not(:disabled){transform:translateY(-2px)}.grade-button.wrong{color:#b97860;background:#fbf0e9;border-color:#eedace}.grade-button.wrong:hover:not(:disabled){background:#f8e4d8}.grade-button.correct{color:#3c775a;background:#e7f0e4;border-color:#cfdfc8}.grade-button.correct:hover:not(:disabled){background:#d6e6d1}.grade-button b{font-size:14px;display:block;letter-spacing:.03em}.grade-button small{display:block;font-size:8px;font-weight:400;margin-top:2px;opacity:.7}.grade-button>.icon{width:19px}.grade-controls.waiting .grade-button{opacity:.38}.study-bottom{max-width:650px;margin:20px auto 0;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:8px;color:#9ba68f}.study-bottom .text-link{font-size:9px}.study-bottom .keyboard-hint{font-size:8px}.result-wrap{max-width:500px;margin:5px auto 35px;text-align:center}.result-stars{font-size:22px;color:#d6b767;letter-spacing:13px;line-height:1.2}.result-stars span{font-size:34px}.result-avatar{width:100px;height:100px;background:#f1ecdf;border-radius:50%;margin:5px auto 18px}.result-wrap h1{font-size:28px;margin:9px 0}.result-wrap>p{color:var(--muted);font-size:12px}.result-counts{display:grid;grid-template-columns:1fr 1fr;background:var(--paper);border:1px solid var(--line);border-radius:14px;margin:25px 0;padding:20px 0}.result-counts>div{display:flex;flex-direction:column;align-items:center}.result-counts>div+div{border-left:1px solid var(--line)}.result-counts strong{font-size:39px;line-height:1.5}.result-counts strong small{font-size:12px;margin-left:5px;font-weight:400}.result-counts span{font-size:11px}.result-message{display:flex;align-items:center;gap:13px;text-align:left;background:#eff2e8;border-radius:12px;padding:15px;margin:22px 0}.result-message .avatar{width:48px;height:48px;border-radius:50%}.result-message p{font-size:11px;color:#708268;line-height:1.9}.result-wrap>.button{margin-top:9px}.result-undo{margin:20px auto}.result-wrap>.small{font-size:9px}
/* Card collection and records */
.library-tools{display:flex;gap:14px;margin-bottom:22px}.search-box{display:flex;align-items:center;gap:11px;border:1px solid var(--line);background:var(--paper);padding:10px 15px;border-radius:8px;flex:1;color:#8b9984}.search-box input{background:none;border:0;outline:none;font-size:12px;min-width:0;width:100%;color:var(--ink)}.search-box input::placeholder{color:#a0a996}.search-box .icon{width:17px}.library-tools select{border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:10px 15px;color:#6c7f64;font-size:11px;max-width:200px}.filter-tabs{display:flex;border-bottom:1px solid var(--line);gap:22px;margin-bottom:20px}.filter-tabs button{color:#93a08b;font-size:12px;padding:8px 4px 13px;border-bottom:2px solid transparent}.filter-tabs button.active{color:var(--green);border-bottom-color:var(--green);font-weight:700}.list-heading{display:flex;justify-content:space-between;margin-bottom:14px;color:#8c9884;font-size:10px}.card-list{display:flex;flex-direction:column;gap:10px}.library-card{text-align:left;padding:20px 23px;background:var(--paper);border:1px solid var(--line);border-radius:11px;display:flex;align-items:center;justify-content:space-between;gap:20px}.library-card:hover{border-color:#a9bba0;background:#fdfef8}.library-card h3{font-size:13px;font-weight:500;margin-top:7px;line-height:1.85}.library-card .small{font-size:9px}.library-card-end{display:flex;align-items:center;gap:17px;flex-shrink:0}.library-card-end .icon{width:16px;color:#a0ad98}.status-chip{font-size:9px;padding:4px 9px;background:#eef1e7;color:#8b9781;border-radius:5px;white-space:nowrap}.status-chip.weak{color:#b5785e;background:#f8ece3}.status-chip.settled{color:#5d8256;background:#e8f0e2}.empty-state{text-align:center;padding:65px 25px;background:#fffef9;border-radius:13px;border:1px solid var(--line)}.empty-state>.icon{width:35px;height:35px;color:#adbba0;margin-bottom:15px}.empty-state h3{font-size:16px}.empty-state p{font-size:12px;color:#8c9a82;margin:12px 0 22px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:22px}.stat-box{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:22px 23px}.stat-box>span{font-size:10px;color:#87947c;display:block}.stat-box strong{font-size:34px;display:block;margin-top:7px;line-height:1.5;font-weight:600}.stat-box small{font-size:11px;color:#a5ae9b;font-weight:400;margin-left:8px}.record-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:22px}.panel{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:25px}.panel h2{font-size:14px}.week-chart{height:232px;display:flex;align-items:end;gap:14px;padding-top:24px}.day-column{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;gap:8px;color:#8c9d80;min-width:0}.day-column>span{font-size:11px}.bar-area{flex:1;position:relative;width:100%;display:flex;align-items:flex-end;justify-content:center}.bar-area i{width:26px;max-width:100%;background:#dce6d2;display:block;border-radius:5px 5px 2px 2px}.day-column.today i{background:#799c68}.day-column small{font-size:9px;white-space:nowrap}.day-column.today{color:var(--green);font-weight:600}.category-records{display:flex;flex-direction:column;gap:16px;margin-top:22px}.category-records>div{display:grid;grid-template-columns:1fr auto;font-size:11px;gap:7px;color:#75876a}.category-records b{font-size:10px;font-weight:500;color:var(--green)}.category-records small{color:#aab39f;font-weight:400}.category-records .mini-track{grid-column:span 2}.learning-note{margin-top:23px;background:#eef2e7;border-radius:12px;padding:22px;display:flex;gap:15px;color:#7b9270}.learning-note>.icon{margin-top:4px}.learning-note h3{font-size:12px;margin-bottom:7px}.learning-note p{font-size:10px;line-height:1.9;color:#84927a}.learning-note small{font-size:9px;color:#9aa68f;display:block;margin-top:9px}
/* Settings and feedback */
.modal-open{overflow:hidden}.modal-backdrop{position:fixed;inset:0;background:#213a3266;backdrop-filter:blur(4px);z-index:80;padding:24px;display:flex;align-items:center;justify-content:center}.modal{max-width:490px;width:100%;max-height:calc(100dvh - 48px);overflow:auto;background:var(--paper);border:1px solid #fff;border-radius:18px;box-shadow:0 24px 90px #18362830;padding:25px 28px}.modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:15px}.modal-heading h2{font-size:17px}.modal-heading .icon-button{flex-shrink:0}.modal>p{font-size:12px;color:#76866a;line-height:2;margin-bottom:20px}.modal .button{margin-top:10px}.modal-avatar{width:80px;height:80px;margin:10px auto 20px;border-radius:50%;background:#f5eddd}.setting-description{font-size:12px;color:#7c8972;line-height:1.9;margin-bottom:15px}.settings-actions{display:flex;flex-direction:column;gap:2px}.setting-toggle{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:25px 0 15px;gap:15px}.setting-toggle input{accent-color:var(--green);width:18px;height:18px}.settings-note{font-size:10px;line-height:1.9;color:#96a18a;padding:13px 15px;background:#f2f4e9;border-radius:8px;margin-bottom:12px}.danger-link{font-size:10px;color:#b67964;margin-top:14px;padding:0;text-decoration:underline;text-underline-offset:4px}.modal-buttons{display:flex;justify-content:flex-end;gap:10px}.help-list{padding-left:22px;font-size:12px;color:#718564}.help-list li{padding:4px 0 15px 7px}.help-list b{color:#47683c}.help-list p{font-size:11px;line-height:1.9;margin-top:7px;color:#87977c}.about-friends{display:flex;gap:12px;justify-content:center;margin-bottom:24px}.about-friends .avatar{width:62px;height:62px;border-radius:50%;background:#f2ecdc}.about-friends .avatar:last-child{padding:5px;background:#eaf1e6}.about-box{padding:15px 18px;background:#f0f3e7;border-radius:9px;margin-bottom:20px;font-size:12px;color:#718569}.about-box p{font-size:11px;line-height:1.9;margin-top:7px}#toast{position:fixed;z-index:100;bottom:26px;left:calc(50% + var(--sidebar)/2);transform:translate(-50%,15px);padding:11px 20px;background:#294d3f;color:#fffef6;border-radius:9px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;max-width:calc(100% - 40px);box-shadow:0 8px 25px #294d3f25;white-space:normal;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}
@keyframes reveal{from{opacity:.65;transform:rotateY(-8deg)}to{opacity:1;transform:rotateY(0)}}
@media(min-width:1500px){.main{padding-top:48px}.daily-hero{min-height:300px}.hero-art{width:38%}.hero-matsuri{width:190px;height:215px}.daily-hero h2{font-size:38px}.daily-hero p{font-size:12px}.progress-overview{padding:28px}.topic-card{padding:20px}.hero-copy{max-width:70%}}
@media(max-width:1200px){:root{--sidebar:210px}.sidebar{padding:28px 15px 20px}.brand{font-size:16px;gap:9px;padding:0 3px}.brand img{width:34px;height:34px}.main{padding:32px 30px}.topbar{padding:0 30px}.app-footer{padding-left:30px;padding-right:30px}.practice-grid,.overview-grid{grid-template-columns:1.5fr 1fr;gap:14px}.daily-hero{padding:25px}.hero-art{min-width:100px;width:31%;margin-left:-26px}.hero-matsuri{width:140px;height:170px;max-width:160%}.mascot-label{font-size:8px;bottom:35px;right:-10px}.mode-card{padding:18px 15px;gap:11px}.mode-icon{width:35px;height:35px;border-radius:9px}.mode-text h3{font-size:13px}.mode-text p{font-size:9px}.mode-text small{display:none}.progress-overview{padding:21px 17px;gap:15px}.progress-ring{width:96px;height:96px;padding:6px}.progress-ring span{font-size:6px}.progress-ring strong{font-size:26px}.progress-copy h3{font-size:11px}.progress-copy p{font-size:8px}.progress-key{gap:7px;font-size:7px}.howto-card{padding:18px}.howto-card h3{font-size:11px}.steps>div{font-size:9px}.steps em{font-size:8px}.topic-grid{gap:9px}.topic-card{padding:14px 10px}.topic-card h3{font-size:10px}.record-grid{grid-template-columns:1fr 1fr;gap:15px}.panel{padding:20px}.stat-box{padding:20px 16px}}
@media(max-width:1000px) and (min-width:761px){:root{--sidebar:186px}.sidebar{padding:28px 10px 16px}.brand{font-size:14px;gap:7px}.brand img{width:31px}.brand small{font-size:8px}.sidebar-note{margin:32px 7px 15px;padding:18px 13px}.sidebar-note p{font-size:14px}.sidebar-note>small{font-size:8px}.sidebar-footer{font-size:8px}.sidebar-footer span{display:none}.nav-item{font-size:11px;padding:12px}.settings-nav{font-size:9px;gap:6px}.main{padding:28px 23px}.topbar{padding:0 23px}.practice-grid{grid-template-columns:1fr}.daily-hero{min-height:245px;padding:25px 30px}.hero-art{width:40%;margin-left:0}.hero-matsuri{width:180px;height:190px}.mascot-label{right:18px;bottom:13px}.side-modes{flex-direction:row;gap:14px}.mode-card{padding:18px;min-height:123px}.overview-grid{grid-template-columns:1fr}.progress-overview{padding:25px;gap:25px}.progress-ring{width:115px;height:115px}.progress-ring span{font-size:8px}.progress-copy h3{font-size:13px}.progress-copy p{font-size:10px}.progress-key{font-size:9px;gap:18px}.howto-card{padding:20px 24px}.steps{flex-direction:row;justify-content:space-between;gap:6px}.steps>div{font-size:8px;gap:5px}.steps em{font-size:7px}.howto-card h3{font-size:12px}.topic-grid{grid-template-columns:repeat(3,1fr)}.topic-card h3{font-size:11px}.page-intro h1{font-size:26px}.intro-date{display:none}.stat-grid{grid-template-columns:repeat(2,1fr)}.record-grid{grid-template-columns:1fr}.study-bottom .keyboard-hint{display:none}.question-side h1{font-size:23px}}
@media(max-width:760px){:root{--sidebar:0px;font-size:14px}.sidebar{display:none}.workspace{margin-left:0}.topbar{height:62px;padding:0 20px;background:var(--paper)}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;letter-spacing:-.025em}.mobile-brand img{width:29px;height:29px}.topbar-right{gap:8px}.saved-note{display:none}.daily-count{border:0;background:#f0f3e9;padding:4px 9px;font-size:9px;gap:4px}.daily-count .icon{width:12px;height:12px}.mobile-settings{display:flex;width:28px;height:28px;color:#839478}.mobile-settings .icon{width:17px;height:17px}.main{padding:27px 20px 30px;max-width:600px}.page-intro{margin-bottom:21px}.page-intro h1{font-size:25px;line-height:1.6;letter-spacing:.03em}.eyebrow{font-size:8px;letter-spacing:.16em;margin-bottom:8px}.page-intro p{font-size:10px;line-height:1.9;margin-top:8px}.intro-date{display:none}.welcome-bubble{padding:10px 13px;gap:11px;min-height:73px;margin-bottom:18px}.welcome-bubble>.avatar{width:47px;height:47px;border-width:2px}.welcome-bubble p{font-size:10px;line-height:1.9}.speaker{font-size:8px}.bubble-spark{font-size:18px;padding:0}.practice-grid{grid-template-columns:1fr;gap:14px}.daily-hero{min-height:260px;padding:25px 23px;border-radius:14px}.daily-hero h2{font-size:33px;margin:8px 0 5px}.daily-hero p{font-size:10px}.hero-label{font-size:9px}.hero-foot{font-size:7px;gap:4px;margin-top:11px}.hero-art{width:34%;min-width:90px;margin-left:-25px}.hero-matsuri{height:175px;width:155px;max-width:175%}.mascot-label{bottom:24px;right:-8px;font-size:8px;padding:4px 8px}.art-spark.one{left:0;top:37px;font-size:20px}.art-spark.two{right:-4px;top:63px;font-size:13px}.button.cream{min-width:174px;font-size:11px;margin-top:20px;min-height:44px;padding:10px 15px}.button.cream .icon{width:16px}.side-modes{flex-direction:row;gap:12px}.mode-card{flex-direction:column;align-items:flex-start;padding:17px 15px;gap:12px;border-radius:11px}.mode-icon{width:32px;height:32px;border-radius:8px}.mode-icon .icon{width:17px;height:17px}.mode-text h3{font-size:12px}.mode-text p{font-size:8px;margin:4px 0 9px;line-height:1.7;white-space:nowrap}.mode-text b{font-size:20px}.mode-text small{display:none}.mode-arrow{position:absolute;right:14px;top:23px;width:14px}.overview-section,.topics-section{margin-top:28px}.section-heading{margin-bottom:13px}.section-heading h2{font-size:13px}.section-heading .text-link{font-size:9px}.overview-grid{grid-template-columns:1fr;gap:13px}.progress-overview{padding:23px 18px;gap:20px}.progress-ring{width:106px;height:106px;padding:7px}.progress-ring strong{font-size:28px}.progress-ring span{font-size:7px}.progress-copy h3{font-size:11px}.progress-copy p{font-size:8px}.progress-key{font-size:7px;gap:9px}.mini-label{font-size:7px}.howto-card{padding:20px}.howto-card h3{font-size:12px}.steps{gap:9px}.steps>div{font-size:10px}.steps em{font-size:10px}.topic-grid{grid-template-columns:repeat(2,1fr);gap:10px}.topic-card{padding:16px}.topic-card h3{font-size:12px;margin:6px 0 13px}.topics-section .small{font-size:7px}.topic-number{font-size:9px}.topic-bottom{font-size:9px}.app-footer{padding:18px 20px 100px;font-size:8px;max-width:600px}.app-footer button{font-size:8px}.app-footer .icon{width:11px;height:11px}.mobile-nav{position:fixed;inset:auto 0 0;background:#fffefbf5;backdrop-filter:blur(10px);border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:8px 15px calc(8px + env(safe-area-inset-bottom));z-index:40}.mobile-nav button{min-width:70px;padding:4px 13px;display:flex;flex-direction:column;align-items:center;gap:4px;color:#98a68e;font-size:9px;border-radius:9px}.mobile-nav button.active{color:var(--green);background:#eef3e6}.mobile-nav .icon{width:20px;height:20px}.mobile-only{display:block}.outline-pill{font-size:8px;padding:4px 9px}.study-main{padding:20px 17px 30px}.study-heading{margin-bottom:17px;font-size:10px}.study-heading .text-link{font-size:9px}.study-progress{margin-bottom:16px;gap:12px}.study-companion{margin-bottom:17px;gap:9px;justify-content:flex-start;padding-left:7px}.study-companion>.avatar{width:40px;height:40px}.study-companion p{font-size:9px}.study-companion .speaker{font-size:7px}.card-stage{margin-bottom:25px}.flashcard{min-height:350px;padding:21px 23px 16px;border-radius:17px}.flashcard.is-revealed{min-height:350px}.stack-card{border-radius:17px}.category-pill{font-size:8px;padding:4px 8px}.card-kind{font-size:8px}.question-side{min-height:263px;padding:25px 0 15px}.question-mark{font-size:25px}.question-side h1{font-size:21px;line-height:1.85;padding:21px 0;letter-spacing:.01em}.reveal-hint{font-size:9px;padding:5px 12px;margin-top:12px}.reveal-hint .icon{width:13px;height:13px}.card-bottom{font-size:6px;padding-top:12px;letter-spacing:.13em}.grade-controls{gap:11px}.grade-button{padding:12px 9px;gap:9px;min-height:68px;border-radius:10px}.grade-button b{font-size:12px}.grade-button small{font-size:6px}.grade-button>.icon{width:16px;height:16px}.study-bottom{font-size:7px;gap:8px;margin-top:18px;align-items:center}.study-bottom .text-link{font-size:8px;gap:5px}.study-bottom .keyboard-hint{display:none}.answer-side{padding-top:16px}.original-question{font-size:10px;margin-bottom:13px;padding-bottom:13px}.answer-side h2{font-size:19px;line-height:1.8;margin:7px 0 13px}.answer-label{font-size:7px}.explanation{font-size:11px;line-height:2}.criteria-box{padding:12px;gap:7px;margin-top:16px}.criteria-box strong{font-size:9px}.criteria-box p{font-size:10px}.criteria-box>.icon{width:15px}.haruto-tip .avatar{width:33px;height:33px}.haruto-tip p{font-size:9px}.answer-bottom .text-link,.answer-bottom a{font-size:8px}.swipe-stamp{font-size:19px}.result-wrap{margin-top:4px}.result-wrap h1{font-size:23px}.result-wrap>p{font-size:10px}.result-avatar{width:85px;height:85px}.result-counts{padding:16px 0;margin:23px 0}.result-counts strong{font-size:33px}.result-counts span{font-size:10px}.result-message p{font-size:10px}.result-message .avatar{width:41px;height:41px}.result-wrap .button{font-size:11px}.library-tools{gap:9px;flex-direction:column;margin-bottom:18px}.search-box{padding:11px 13px}.search-box input{font-size:12px}.library-tools select{max-width:none;font-size:11px}.filter-tabs{gap:20px;margin-bottom:17px}.filter-tabs button{font-size:11px}.list-heading{font-size:9px}.library-card{padding:16px;gap:12px;align-items:flex-start}.library-card h3{font-size:12px;margin-top:7px}.library-card .small{font-size:8px}.library-card-end{gap:8px;flex-direction:column;align-items:end;align-self:stretch;justify-content:space-between}.status-chip{font-size:8px;padding:3px 7px}.library-card-end .icon{width:13px}.stat-grid{grid-template-columns:1fr 1fr;gap:11px;margin-bottom:15px}.stat-box{padding:19px}.stat-box>span{font-size:9px}.stat-box strong{font-size:31px}.stat-box small{font-size:10px}.record-grid{grid-template-columns:1fr;gap:16px}.panel{padding:22px}.panel h2{font-size:13px}.week-chart{height:190px;gap:13px;padding-top:22px}.learning-note{padding:18px;gap:11px}.learning-note h3{font-size:11px}.learning-note p{font-size:9px}.learning-note small{font-size:8px}.learning-note>.icon{width:17px}.modal-backdrop{padding:18px}.modal{padding:22px;max-height:calc(100dvh - 36px);border-radius:15px}.modal-heading h2{font-size:15px}.modal>p{font-size:11px}.setting-description{font-size:11px}.setting-toggle{font-size:11px}.button{font-size:11px}.help-list{font-size:11px}.help-list p{font-size:10px}.settings-note{font-size:9px}#toast{left:50%;bottom:91px;font-size:10px;padding:11px 16px;max-width:calc(100% - 32px);width:max-content}.outline-pill{max-width:135px}}
@media(max-width:360px){.main{padding-left:15px;padding-right:15px}.topbar{padding:0 15px}.mobile-brand{font-size:13px}.daily-count{font-size:8px}.hero-art{margin-left:-48px;opacity:.9}.hero-matsuri{width:125px;height:150px}.mascot-label{font-size:7px;right:-10px}.daily-hero{padding:23px 18px}.daily-hero h2{font-size:29px}.mode-text p{font-size:7px}.mode-text h3{font-size:11px}.progress-overview{gap:14px;padding:21px 13px}.progress-ring{width:92px;height:92px}.progress-copy p{font-size:7px}.progress-copy h3{font-size:10px}.progress-key{gap:6px;font-size:6px}.question-side h1{font-size:19px}.grade-button{gap:5px}.grade-button b{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-motion='reduce'] *,html[data-motion='reduce'] *:before,html[data-motion='reduce'] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
/* A complete study session stays inside a single viewport. */
.mobile-settings{display:none}
.flashcard{touch-action:pan-y pinch-zoom}
.reveal-hint{color:#647452}
.criteria-box{color:#4e6945}
.grade-button.wrong{color:#9a4b35}
body.studying{overflow:hidden}
.studying .topbar,.studying .app-footer,.studying .mobile-nav{display:none}
.studying .workspace{height:100dvh;min-height:0}
.studying .study-main{height:100dvh;display:flex;flex-direction:column;padding:20px 30px 16px;max-width:900px;overflow:hidden}
.studying .study-heading{flex-shrink:0;margin:0 0 12px;height:29px}
.studying .study-progress{width:100%;flex-shrink:0;margin:0 auto 12px;height:18px}
.studying .study-companion{width:100%;flex-shrink:0;margin:0 auto 13px;min-height:42px}
.studying .study-companion>.avatar{width:40px;height:40px}
.studying .card-stage{width:100%;flex:1;min-height:0;margin:0 auto 23px}
.studying .flashcard{height:100%;min-height:0;padding:22px 30px 16px;display:flex;flex-direction:column}
.studying .card-meta{flex-shrink:0}
.studying .question-side{flex:1;min-height:0;padding:24px 5px 17px;justify-content:center}
.studying .question-side h1{margin:auto 0;padding:18px 0;font-size:clamp(23px,3.2vh,29px)}
.studying .reveal-hint{flex-shrink:0;margin-top:12px;font-size:12px}
.studying .card-bottom{flex-shrink:0}
.studying .answer-side{flex:1;min-height:0;display:flex;flex-direction:column;padding:14px 0}
.studying .original-question{font-size:12px;line-height:1.7;padding-bottom:12px;margin-bottom:12px;color:#64735e}
.studying .answer-side h2{font-size:clamp(20px,2.8vh,26px);line-height:1.65;margin:7px 0 13px}
.studying .explanation{font-size:14px;line-height:1.85;color:#506148}
.studying .criteria-box{margin-top:auto;padding:12px 14px;flex-shrink:0}
.studying .criteria-box strong{font-size:11px;margin-bottom:3px}
.studying .criteria-box p{font-size:12px;line-height:1.7}
.studying .answer-bottom{flex-shrink:0}
.studying .grade-controls{width:100%;flex-shrink:0}
.studying .grade-button{min-height:65px;padding:10px 15px}
.studying .grade-button small{font-size:10px;opacity:.9}
.studying .study-bottom{width:100%;flex-shrink:0;min-height:20px;margin:12px auto 0;font-size:9px}
.studying .study-bottom .text-link{font-size:10px}
.studying .notice{font-size:10px;padding:6px 10px;margin-bottom:8px}
@media(max-width:760px){
 .mobile-settings{display:flex}
 .hero-art{width:30%;min-width:75px;margin-left:-8px}
 .hero-matsuri{width:128px;height:159px;max-width:155%}
 .daily-hero p{max-width:185px}
 .studying .study-main{padding:12px 17px calc(12px + env(safe-area-inset-bottom));max-width:550px}
 .studying .study-heading{height:27px;margin-bottom:9px;font-size:11px}
 .studying .study-heading .text-link{font-size:10px}
 .studying .study-progress{margin-bottom:9px;height:16px}
 .studying .study-companion{margin-bottom:11px;min-height:34px;padding-left:4px}
 .studying .study-companion>.avatar{width:35px;height:35px}
 .studying .study-companion p{font-size:10px}
 .studying .study-companion .speaker{font-size:8px}
 .studying .card-stage{margin-bottom:22px}
 .studying .flashcard{padding:18px 21px 14px;border-radius:16px}
 .studying .category-pill,.studying .card-kind{font-size:10px}
 .studying .question-side{padding:22px 0 18px}
 .studying .question-side h1{font-size:clamp(20px,2.8vh,24px);line-height:1.85}
 .studying .question-mark{font-size:27px}
 .studying .reveal-hint{font-size:11px;margin-top:14px;padding:7px 13px}
 .studying .original-question{font-size:11px;line-height:1.7;padding-bottom:12px;margin-bottom:13px}
 .studying .answer-label{font-size:9px}
 .studying .answer-side h2{font-size:clamp(18px,2.6vh,22px);line-height:1.7;margin:7px 0 14px}
 .studying .explanation{font-size:13px;line-height:1.9}
 .studying .criteria-box{padding:12px 11px;gap:7px}
 .studying .criteria-box strong{font-size:10px}
 .studying .criteria-box p{font-size:12px}
 .studying .answer-bottom .text-link,.studying .answer-bottom a{font-size:9px}
 .studying .grade-button{min-height:63px;padding:10px 7px;gap:7px}
 .studying .grade-button b{font-size:13px}
 .studying .grade-button small{font-size:8px}
 .studying .study-bottom{margin-top:11px;font-size:8px;min-height:18px}
 .studying .study-bottom .text-link{font-size:10px}
}
@media(max-height:740px){
 .studying .study-main{padding-top:9px;padding-bottom:9px}
 .studying .study-heading{margin-bottom:5px;height:25px}
 .studying .study-progress{margin-bottom:6px;height:13px}
 .studying .study-companion{margin-bottom:7px;min-height:30px}
 .studying .study-companion>.avatar{width:30px;height:30px}
 .studying .study-companion .speaker{display:none}
 .studying .flashcard{padding:15px 20px 12px}
 .studying .card-stage{margin-bottom:19px}
 .studying .original-question{display:none}
 .studying .answer-side{padding:12px 0}
 .studying .answer-side h2{font-size:19px;margin:5px 0 11px;line-height:1.65}
 .studying .explanation{font-size:12px;line-height:1.85}
 .studying .criteria-box{padding:10px 11px}
 .studying .criteria-box p{font-size:11px}
 .studying .answer-bottom{padding-top:9px}
 .studying .question-side{padding:12px 0}
 .studying .question-side h1{font-size:21px;line-height:1.8;padding:13px 0}
 .studying .grade-button{min-height:59px}
 .studying .study-bottom{margin-top:8px;min-height:18px}
}
@media(max-height:600px){
 .studying .study-companion{display:none}
 .studying .flashcard{padding:12px 17px 10px}
 .studying .question-mark{font-size:21px}
 .studying .question-side h1{font-size:19px;line-height:1.7}
 .studying .answer-side h2{font-size:17px;line-height:1.6;margin:5px 0 9px}
 .studying .explanation{font-size:12px;line-height:1.7}
 .studying .criteria-box{padding:8px 10px}
 .studying .criteria-box strong{font-size:9px}
 .studying .criteria-box p{font-size:10px;line-height:1.6}
 .studying .answer-side{padding:8px 0}
 .studying .grade-button{min-height:54px}
 .studying .grade-button small{display:none}
 .studying .study-bottom>span{display:none}
 .studying .reveal-hint{margin-top:7px;padding:4px 10px}
}
