:root{--paper:#f8f7f2;--white:#fffefa;--ink:#24372e;--muted:#798077;--green:#284d41;--green-light:#e8eee7;--orange:#d6794f;--orange-light:#f7e9df;--line:#e4e5dc;--serif:Georgia,'Times New Roman',serif;--jp:'Hiragino Mincho ProN','Yu Mincho','Noto Serif JP',serif;--sans:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--radius:20px}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.5}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.42}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button svg{flex-shrink:0}svg.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.app-shell{display:flex;min-height:100vh}.sidebar{width:236px;position:fixed;top:0;bottom:0;padding:36px 22px 24px;background:#f1f2ea;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;font-size:19px;font-weight:650;letter-spacing:-.7px;line-height:1.3}.brand-mark{display:flex;align-items:center;justify-content:center;background:var(--green);color:var(--white);font-family:var(--jp);font-size:26px;border-radius:13px;width:45px;height:45px;flex-shrink:0;font-weight:400}.brand small{display:block;color:var(--muted);font-size:8px;letter-spacing:1.4px;margin-top:7px;font-weight:600}.sidebar nav{margin-top:48px;display:grid;gap:8px}.nav-link{display:flex;align-items:center;gap:14px;border:0;background:none;text-decoration:none;padding:13px 16px;border-radius:10px;color:#777f72;font-size:13px;font-weight:500;text-align:left;width:100%}.nav-link.active{background:var(--green);color:var(--white)}.nav-link:not(.active):hover{background:#e4e8de}.nav-link.active svg{opacity:.9}.sidebar-bottom{margin-top:auto;padding-top:36px}.daily-note{position:relative;border-top:1px solid #dce0d4;margin:0 8px 22px;padding-top:23px}.tiny-label{font-size:9px;letter-spacing:1.3px;color:var(--muted);font-weight:600}.daily-note p{font-family:var(--serif);font-size:18px;line-height:1.6}.note-kanji{font-family:var(--jp);font-size:73px;color:#d8ddcf;display:block;text-align:right;line-height:1.1;pointer-events:none}.storage-note{display:flex;align-items:center;gap:7px;padding:16px 10px 0;color:var(--muted);font-size:10px}.storage-note i{height:5px;width:5px;border-radius:50%;background:#82a281}.main-shell{margin-left:236px;width:calc(100% - 236px)}.topbar{height:87px;padding:0 48px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.topbar-caption{font-size:9px;color:var(--muted);letter-spacing:2px;font-weight:600}.topbar-right{display:flex;align-items:center;gap:22px}.connection{font-size:11px;color:var(--muted)}.connection:before{content:'';width:6px;height:6px;border-radius:50%;display:inline-block;background:#81a684;margin-right:7px}.connection.offline:before{background:var(--orange)}.avatar{font-family:var(--jp);background:#e6e9df;height:32px;width:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:17px}.icon-button{background:transparent;border:0;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:8px}.icon-button:hover{background:var(--green-light)}main{max-width:1300px;margin:auto;padding:37px 48px 48px;min-height:calc(100vh - 145px)}.page-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;gap:16px}.eyebrow{font-size:10px;letter-spacing:1.7px;color:var(--muted);font-weight:600;margin:0 0 8px;text-transform:uppercase}.page-head h1{font-size:28px;letter-spacing:-1px;margin:0;font-weight:600}.date-label{font-size:12px;color:var(--muted)}.hero{position:relative;background:var(--white);border:1px solid var(--line);border-radius:24px;padding:38px 38px 34px;display:grid;grid-template-columns:1fr 260px;gap:12px;overflow:hidden}.pill{background:var(--green-light);color:var(--green);border-radius:30px;font-size:10px;font-weight:650;letter-spacing:.6px;padding:7px 12px;display:inline-flex;gap:7px;align-items:center;width:max-content}.pill-dot{width:5px;height:5px;border-radius:50%;background:currentColor}.hero h2{font-family:var(--serif);font-weight:400;font-size:45px;line-height:1.1;letter-spacing:-1.6px;margin:23px 0 16px}.hero h2 em{font-style:normal;color:var(--orange)}.hero p{color:var(--muted);max-width:330px;font-size:13px;line-height:1.8;margin-bottom:23px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:12px;text-decoration:none;border:0;border-radius:10px;padding:13px 19px;font-size:12px;font-weight:600;background:var(--green);color:var(--white);min-height:44px}.primary:hover{background:#1b3d32}.secondary{background:var(--green-light);color:var(--green)}.secondary:hover{background:#dce5d9}.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hero-art{display:flex;align-items:center;justify-content:center;position:relative}.art-grid{width:218px;height:218px;background:linear-gradient(to right,transparent 49.7%,#dde1d5 49.7%,#dde1d5 50.3%,transparent 50.3%),linear-gradient(to bottom,transparent 49.7%,#dde1d5 49.7%,#dde1d5 50.3%,transparent 50.3%);border:1px solid #dde1d5;border-radius:50%;position:relative;transform:rotate(-4deg);background-color:#f2f3eb}.art-grid svg{width:100%;height:100%;padding:38px;stroke:var(--green);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;fill:none}.art-grid:before{content:'';position:absolute;inset:18px;border:1px dashed #dfe2d7;border-radius:50%}.art-seal{position:absolute;bottom:21px;right:2px;background:var(--orange);color:#fffefa;border-radius:6px;padding:9px 10px;font-family:var(--jp);font-size:14px;line-height:1.1;border:4px solid var(--white);transform:rotate(5deg)}.art-caption{position:absolute;bottom:3px;font-size:9px;letter-spacing:3px;color:var(--muted)}.stats-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:21px 0 32px}.stat-card{background:var(--white);border:1px solid var(--line);border-radius:14px;padding:18px 21px;display:flex;gap:15px;align-items:center}.stat-icon{width:36px;height:36px;background:var(--green-light);border-radius:10px;display:grid;place-items:center;color:var(--green)}.stat-icon.orange{color:var(--orange);background:var(--orange-light)}.stat-card strong{font-size:23px;line-height:1.3;font-weight:550;letter-spacing:-.7px}.stat-card strong small{font-size:12px;color:var(--muted);font-weight:400;letter-spacing:0}.stat-card p{font-size:10px;color:var(--muted);margin:2px 0 0}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;gap:12px}.section-head h2{font-size:17px;font-weight:550;letter-spacing:-.4px;margin:0}.text-button{background:none;border:0;padding:6px 0;color:var(--green);font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:6px;text-decoration:none}.text-button:hover{text-decoration:underline}.lesson-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.lesson-card{border:1px solid var(--line);border-radius:16px;background:var(--white);padding:17px;text-align:left;position:relative;transition:transform .2s,border-color .2s}.lesson-card:hover{transform:translateY(-3px);border-color:#adbbaa}.lesson-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:9px;letter-spacing:.3px}.lesson-char{font-family:var(--jp);font-size:54px;font-weight:400;line-height:1.5;text-align:center;display:block;margin:3px 0 10px}.lesson-card strong{font-size:12px;font-weight:550;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-card small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.status-dot{width:5px;height:5px;background:var(--line);border-radius:50%}.status-dot.learning{background:var(--orange)}.status-dot.review{background:#6d9978}.dashboard-bottom{display:grid;grid-template-columns:1.2fr 1fr;gap:22px;margin-top:30px}.course-summary,.tip-card{padding:21px 23px;border-radius:16px;border:1px solid var(--line);background:var(--white)}.course-summary h3,.tip-card h3{margin:0 0 10px;font-size:13px;font-weight:550}.progress-line{height:6px;border-radius:9px;background:#e9ede4;overflow:hidden}.progress-line>span{height:100%;display:block;background:var(--green);border-radius:9px}.progress-legend{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:9px}.tip-card{background:#edf0e7;border-color:#e4e8dd}.tip-card .tiny-label{color:#78876b}.tip-card p{font-size:12px;line-height:1.8;color:#65735e;margin:0}.footer{display:flex;justify-content:space-between;align-items:center;padding:0 48px 25px;color:var(--muted);font-size:10px;max-width:1300px;margin:auto}.mobile-brand,.mobile-nav{display:none}.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:var(--green);padding:12px;color:white}.skip-link:focus{top:10px}.loading{display:grid;place-items:center;padding:70px}.loading-kanji{font-family:var(--jp);font-size:75px;color:var(--green);animation:breathe 2s infinite}.loading p{font-size:13px;color:var(--muted)}@keyframes breathe{50%{opacity:.35}}.empty{padding:50px 24px;text-align:center;border:1px dashed #d9dfd2;border-radius:16px;background:var(--white)}.empty h2{font-family:var(--serif);font-weight:400;font-size:28px}.empty p{color:var(--muted);font-size:13px;max-width:420px;margin:0 auto 20px}.toast{position:fixed;bottom:27px;left:calc(50% + 100px);transform:translate(-50%,15px);background:var(--green);color:white;font-size:12px;padding:13px 22px;border-radius:12px;opacity:0;pointer-events:none;z-index:100;transition:opacity .2s,transform .2s;max-width:90vw;box-shadow:0 8px 40px #203e2920}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#9d4e3a}dialog{border:1px solid var(--line);border-radius:22px;background:var(--white);padding:30px;width:min(540px,calc(100% - 28px));max-height:85vh;color:var(--ink);box-shadow:0 25px 100px #24372e33}dialog::backdrop{background:#24372e55;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.modal-head h2{font-size:21px;margin:0;letter-spacing:-.6px}.modal-copy{font-size:12px;color:var(--muted);line-height:1.85}.form-field{display:grid;gap:7px;margin:20px 0;font-size:12px}.form-field input,.form-field select{border:1px solid #d6dbcf;border-radius:9px;padding:10px 12px;background:white;color:var(--ink);width:100%}.settings-divider{border-top:1px solid var(--line);margin:24px 0}.subtle-box{padding:13px 15px;border-radius:10px;background:var(--green-light);color:#61745c;font-size:11px;line-height:1.75}.danger-button{border:0;background:#f6e5de;color:#a2573c;border-radius:9px;padding:12px 16px;font-size:12px}.danger-button:hover{background:#edd3c8}.sources a{color:var(--green)}.sources li{margin-bottom:10px;font-size:12px}.sources ul{padding-left:20px}.filterbar{display:flex;gap:12px;align-items:center;margin:0 0 20px;flex-wrap:wrap}.tabs{display:flex;gap:5px;background:#eeefe6;border-radius:10px;padding:4px}.tabs button{border:0;padding:8px 15px;font-size:11px;border-radius:7px;background:none;color:var(--muted)}.tabs button.active{color:var(--green);background:var(--white);box-shadow:0 2px 6px #23342608}.search-field{position:relative;margin-left:auto;min-width:220px;flex:1;max-width:370px}.search-field svg{position:absolute;left:12px;top:12px;color:var(--muted)}.search-field input{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px 11px 39px;background:var(--white);font-size:12px;color:var(--ink)}.filter-select{padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--white);font-size:11px;color:var(--green)}.library-meta{font-size:11px;color:var(--muted);margin-bottom:15px}.library-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.library-grid .lesson-card{padding:13px}.library-grid .lesson-char{font-size:44px;margin:2px 0 7px}.library-grid .lesson-card strong{font-size:11px}.load-more{margin-top:24px;text-align:center}.path-list{display:grid;gap:18px}.path-card{display:grid;grid-template-columns:65px 1fr auto;gap:24px;align-items:center;padding:26px;background:var(--white);border:1px solid var(--line);border-radius:18px}.level-badge{height:65px;width:65px;display:grid;place-items:center;border-radius:17px;background:var(--green-light);color:var(--green);font-size:25px;font-weight:450;letter-spacing:-1.3px}.path-card.current{border-color:#93a98e}.path-card.current .level-badge{background:var(--green);color:var(--white)}.path-card h2{font-size:19px;letter-spacing:-.5px;margin:0 0 4px;font-weight:550}.path-card p{font-size:12px;color:var(--muted);margin:0 0 14px}.path-card .progress-line{max-width:370px}.path-card .progress-legend{max-width:370px}.path-card.future{background:transparent;opacity:.65}.future-label{font-size:11px;color:var(--muted);border:1px solid var(--line);padding:8px 12px;border-radius:30px}.notice{color:var(--muted);font-size:11px;line-height:1.9;padding:18px 0}.practice-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:16px}.back-button{border:0;background:none;display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted);padding:6px 0}.session-progress{display:flex;align-items:center;gap:12px;min-width:150px}.session-progress .progress-line{width:100px;height:4px}.session-progress span{color:var(--muted);font-size:11px}.practice-layout{display:grid;grid-template-columns:1fr 1.05fr;gap:24px;align-items:start}.kanji-info,.writing-card{border:1px solid var(--line);border-radius:21px;background:var(--white);padding:26px}.kanji-info-top{display:flex;justify-content:space-between;align-items:center}.mode-tag{font-size:10px;color:var(--orange);font-weight:600}.target-kanji{font-family:var(--jp);font-size:86px;line-height:1.3;margin:10px 0 0}.target-kanji.hidden-target{font-family:var(--serif);color:#bdc7b7;font-size:68px;line-height:1.65}.kanji-meaning{font-family:var(--serif);font-size:26px;font-weight:400;margin:4px 0 20px;line-height:1.2}.readings{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:16px;border-top:1px solid var(--line)}.reading-label{font-size:9px;letter-spacing:1px;color:var(--muted);display:block;margin-bottom:6px}.reading-value{font-size:13px;line-height:1.7}.info-section{border-top:1px solid var(--line);margin-top:20px;padding-top:17px}.info-section h3{font-size:11px;font-weight:550;margin:0 0 12px;color:#65715f}.components{display:flex;gap:7px;flex-wrap:wrap}.component{display:flex;align-items:center;gap:7px;background:#f1f2ea;border:1px solid #e3e7da;border-radius:8px;padding:5px 9px}.component .glyph{font-family:var(--jp);font-size:24px}.component small{font-size:10px;color:var(--muted);max-width:85px;line-height:1.4}.component.main{background:var(--green-light);border-color:#d4decf}.examples{display:grid;gap:13px}.example{position:relative;padding-left:15px;border-left:2px solid #dee6d6}.example .ja{font-family:var(--jp);font-size:17px;line-height:2.2;margin:0}.example .translation{font-size:11px;color:var(--muted);margin:1px 0}.example .example-credit{font-size:9px;color:#98a08f;text-decoration:none}ruby rt{font-family:var(--sans);font-size:.5em;color:#829279}.examples-hidden{display:flex;gap:10px;align-items:center;font-size:11px;color:var(--muted);padding:9px 0;line-height:1.8}.writing-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:15px}.writing-head h2{font-size:15px;font-weight:550;margin:0 0 5px}.writing-head p{font-size:11px;color:var(--muted);margin:0}.stroke-counter{background:var(--green-light);border-radius:7px;padding:6px 9px;color:var(--green);font-size:10px;white-space:nowrap}.canvas-wrap{position:relative;aspect-ratio:1;max-width:395px;margin:auto;border:1px solid #dce0d2;border-radius:13px;overflow:hidden;background:#fcfcf7}.canvas-wrap canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.canvas-status{position:absolute;left:12px;top:10px;color:#929e88;font-size:9px;letter-spacing:.5px;pointer-events:none}.canvas-complete{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);background:var(--green);color:white;padding:7px 15px;border-radius:20px;font-size:11px;pointer-events:none;white-space:nowrap}.canvas-tools{display:flex;justify-content:space-between;gap:10px;margin-top:12px}.canvas-tools button{display:flex;gap:5px;align-items:center;background:none;border:0;color:var(--muted);font-size:10px;padding:6px 3px}.canvas-tools button:hover{color:var(--green)}.canvas-tools button svg{width:14px;height:14px}.writing-feedback{min-height:38px;padding:12px 0 6px;font-size:11px;color:var(--muted);line-height:1.6}.writing-feedback.success{color:var(--green)}.writing-feedback.error{color:#b76845}.rating-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:12px}.rating-button{border:1px solid var(--line);border-radius:9px;padding:10px 4px;background:var(--white);font-size:11px}.rating-button span{display:block;margin-top:4px;font-size:9px;color:var(--muted)}.rating-button.good{border-color:#b5c5ab;background:var(--green-light);color:var(--green)}.rating-button.again{color:#ad684a}.rating-button:hover:enabled{border-color:var(--green)}.practice-note{font-size:10px;color:var(--muted);line-height:1.7;margin:17px 0 0}.practice-optional{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:18px}.practice-optional .text-button{font-weight:400;color:var(--muted)}.result-card{max-width:600px;text-align:center;margin:30px auto;padding:45px 35px;background:var(--white);border:1px solid var(--line);border-radius:24px}.result-glyph{display:grid;place-items:center;margin:0 auto 22px;height:85px;width:85px;border-radius:50%;background:var(--green-light);font-family:var(--jp);font-size:45px;color:var(--green)}.result-card h1{font-family:var(--serif);font-size:37px;font-weight:400;letter-spacing:-1px;margin:0 0 13px}.result-card p{color:var(--muted);font-size:13px;line-height:1.8}.result-card .button-row{justify-content:center;margin-top:24px}.result-stats{display:flex;justify-content:center;gap:35px;margin:25px 0}.result-stats strong{font-size:24px;font-weight:500;display:block}.result-stats span{font-size:10px;color:var(--muted)}.progress-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:25px}.progress-overview .stat-card{padding:25px}.activity-card{border:1px solid var(--line);border-radius:18px;background:var(--white);padding:26px;margin:22px 0}.activity-card h2{font-size:16px;letter-spacing:-.3px;font-weight:550;margin:0 0 5px}.activity-card p{font-size:11px;color:var(--muted);margin:0 0 23px}.activity-grid{display:grid;grid-template-columns:repeat(28,1fr);gap:5px}.activity-day{height:28px;border-radius:5px;background:#ecefe5;position:relative}.activity-day[data-count="1"]{background:#b2c7a4}.activity-day[data-count="2"]{background:#77a16b}.activity-day[data-count="3"]{background:var(--green)}.activity-legend{display:flex;align-items:center;justify-content:flex-end;gap:5px;font-size:9px;color:var(--muted);margin-top:12px}.activity-legend i{height:10px;width:10px;border-radius:2px;background:#ecefe5}.activity-legend i:last-child{background:var(--green)}.history-list{margin-top:20px}.history-row{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.history-char{font-family:var(--jp);font-size:28px;width:36px}.history-row small{display:block;color:var(--muted);font-size:10px}.history-rating{margin-left:auto;font-size:10px;color:var(--green)}.history-date{font-size:10px;color:var(--muted)}.error-page{padding:40px;border:1px solid var(--line);border-radius:18px;background:var(--white)}.error-page h1{font-size:23px}.error-page p{color:var(--muted)}
@media(min-width:1450px){main{padding-top:45px}.hero{grid-template-columns:1fr 300px;padding:46px}.hero h2{font-size:53px}.art-grid{width:245px;height:245px}.lesson-grid{gap:18px}}
@media(max-width:1150px){.sidebar{width:205px;padding:32px 17px}.main-shell{margin-left:205px;width:calc(100% - 205px)}main{padding:30px}.topbar{padding:0 30px}.footer{padding:0 30px 25px}.hero{grid-template-columns:1fr 200px;padding:29px}.hero h2{font-size:39px}.art-grid{width:185px;height:185px}.art-seal{right:-8px;bottom:18px}.art-caption{bottom:15px}.brand{font-size:17px}.stats-row{gap:10px}.stat-card{padding:15px;gap:10px}.library-grid{grid-template-columns:repeat(5,1fr)}.practice-layout{gap:17px}.kanji-info,.writing-card{padding:20px}.activity-grid{gap:3px}.activity-day{height:22px}}
@media(max-width:900px){.sidebar{width:178px;padding:29px 14px}.main-shell{margin-left:178px;width:calc(100% - 178px)}.brand{font-size:15px;gap:8px}.brand-mark{width:37px;height:37px;border-radius:11px;font-size:23px}.brand small{font-size:6px;letter-spacing:1px}.nav-link{font-size:12px;padding:12px 11px;gap:10px}main{padding:27px 24px}.topbar{padding:0 24px;height:75px}.hero{grid-template-columns:1fr 150px;padding:25px}.hero h2{font-size:34px}.hero p{font-size:12px}.art-grid{width:145px;height:145px}.art-grid svg{padding:23px}.art-caption{font-size:8px;letter-spacing:1px;bottom:35px}.art-seal{font-size:10px;bottom:50px;right:-5px}.stats-row{gap:8px}.stat-card{padding:14px 10px;gap:9px}.stat-icon{width:29px;height:29px}.stat-card strong{font-size:20px}.stat-card p{font-size:9px}.lesson-grid{gap:9px}.lesson-card{padding:13px}.lesson-char{font-size:43px}.dashboard-bottom{gap:14px}.course-summary,.tip-card{padding:17px}.library-grid{grid-template-columns:repeat(4,1fr)}.path-card{grid-template-columns:55px 1fr;gap:18px}.level-badge{height:55px;width:55px}.path-card>.button-row,.path-card>.future-label{grid-column:2}.practice-layout{grid-template-columns:1fr}.kanji-info{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.kanji-info-top{grid-column:1/-1}.target-kanji{grid-column:1;grid-row:2/4;font-size:80px}.kanji-meaning{grid-column:2;margin:12px 0 5px}.readings{grid-column:2;padding-top:10px;border:0}.info-section{grid-column:1/-1}.writing-card{max-width:540px;width:100%;margin:auto}.progress-overview{gap:10px}.progress-overview .stat-card{padding:15px}.activity-grid{grid-template-columns:repeat(14,1fr)}.daily-note .tiny-label{font-size:7px}.daily-note p{font-size:16px}}
@media(max-width:650px){body{padding-bottom:75px}.sidebar{display:none}.main-shell{margin:0;width:100%}.topbar{height:75px;padding:0 22px}.topbar-caption{display:none}.mobile-brand{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:600;letter-spacing:-.5px}.mobile-brand .brand-mark{height:33px;width:33px;font-size:20px;border-radius:9px}.topbar-right{gap:12px}.topbar-right>.icon-button{display:none}.avatar{width:28px;height:28px;font-size:16px}.connection{font-size:10px}main{padding:27px 20px 25px;min-height:calc(100vh - 200px)}.page-head{margin-bottom:20px;align-items:flex-end}.page-head h1{font-size:25px}.eyebrow{font-size:9px;letter-spacing:1.3px}.date-label{font-size:10px;max-width:86px;text-align:right}.hero{grid-template-columns:1fr 110px;padding:25px 23px;border-radius:20px;gap:0}.hero h2{font-size:33px;margin:20px 0 12px;letter-spacing:-1.1px}.hero p{font-size:11px;line-height:1.8;margin:0 0 20px;max-width:205px}.hero-art{align-items:flex-start;padding-top:42px}.art-grid{width:108px;height:108px}.art-grid svg{padding:15px;stroke-width:4}.art-grid:before{inset:11px}.art-seal{font-size:9px;bottom:auto;top:135px;padding:6px;border-width:3px;right:-5px}.art-caption{display:none}.hero .pill{font-size:8px;padding:6px 9px;white-space:nowrap}.hero .primary{font-size:11px;padding:12px 15px;gap:9px}.stats-row{gap:8px;margin:15px 0 28px}.stat-card{display:block;padding:13px 11px;border-radius:12px}.stat-icon{width:25px;height:25px;margin-bottom:8px;border-radius:7px}.stat-icon svg{width:15px;height:15px}.stat-card strong{font-size:21px}.stat-card strong small{font-size:10px}.stat-card p{font-size:9px}.lesson-grid{grid-template-columns:repeat(4,1fr);gap:7px}.lesson-card{padding:11px 9px;border-radius:12px}.lesson-top{font-size:8px}.lesson-char{font-size:38px;margin:6px 0 7px}.lesson-card strong{font-size:10px}.lesson-card small{font-size:8px}.section-head h2{font-size:15px}.section-head .text-button{font-size:10px}.section-head .text-button svg{width:13px}.dashboard-bottom{grid-template-columns:1fr;gap:12px;margin-top:22px}.course-summary,.tip-card{padding:19px}.tip-card{display:none}.footer{padding:0 20px 18px;font-size:9px}.footer .text-button{font-size:9px}.mobile-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;bottom:0;left:0;right:0;background:#fffefaf5;backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:8px 12px max(9px,env(safe-area-inset-bottom));z-index:20}.mobile-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;font-size:9px;color:#8b9285;text-decoration:none;padding:5px}.mobile-nav a.active{color:var(--green);font-weight:650}.mobile-nav svg{width:19px;height:19px}.toast{left:50%;bottom:88px;width:max-content;max-width:calc(100vw - 32px)}.filterbar{gap:10px}.search-field{order:-1;max-width:none;min-width:100%;margin:0}.tabs{flex:1}.tabs button{flex:1;padding:8px 10px}.filter-select{max-width:145px}.library-grid{grid-template-columns:repeat(4,1fr);gap:8px}.library-grid .lesson-card{padding:11px 9px}.library-grid .lesson-char{font-size:37px}.library-grid .lesson-card strong{font-size:10px}.path-card{padding:21px 19px;gap:15px;border-radius:16px}.path-card h2{font-size:18px}.path-card p{font-size:11px}.path-card>.button-row{gap:8px}.path-card .primary,.path-card .secondary{font-size:10px;padding:10px 13px}.path-card.future{padding-top:17px;padding-bottom:17px}.future-label{width:max-content}.practice-head{margin-bottom:16px}.session-progress{min-width:125px;gap:9px}.session-progress .progress-line{width:75px}.practice-layout{gap:15px}.kanji-info,.writing-card{padding:19px;border-radius:17px}.target-kanji{font-size:74px;margin:7px 0 0}.kanji-meaning{font-size:25px;line-height:1.2}.reading-value{font-size:12px}.readings{gap:9px}.info-section{margin-top:14px;padding-top:13px}.example .ja{font-size:16px}.writing-head h2{font-size:14px}.canvas-tools{gap:3px}.canvas-tools button{font-size:10px}.rating-grid{gap:6px}.rating-button{font-size:11px;padding:10px 3px}.practice-optional{margin-top:10px}.practice-note{font-size:9px}.result-card{margin:15px auto;padding:32px 22px}.result-card h1{font-size:30px}.result-card p{font-size:12px}.result-stats{gap:24px}.progress-overview{gap:8px}.progress-overview .stat-card{padding:14px 11px}.activity-card{padding:20px}.activity-grid{gap:5px}.activity-day{height:25px}.history-date{display:none}.history-row{font-size:11px}.history-rating{font-size:9px}dialog{padding:23px}.modal-head h2{font-size:19px}}
.lesson-card{min-width:0}
.mobile-practice-prompt{display:none}
.component-role{display:block;font-size:8px;font-style:normal;letter-spacing:.3px;color:#74896b;margin-top:4px}
.practice-mode-switch{display:flex;gap:5px;padding:4px;margin-bottom:18px;background:#eef0e7;border-radius:10px}.practice-mode-switch button{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 10px;border:0;border-radius:7px;background:transparent;font-size:11px;color:var(--muted)}.practice-mode-switch button[aria-pressed="true"]{background:var(--white);color:var(--green);box-shadow:0 2px 6px #24372e08}.practice-mode-switch svg{width:15px;height:15px}.review-cue{margin:20px 0}.review-reading{font-family:var(--jp);font-size:34px;line-height:1.6;font-weight:400;margin:0}.review-other-readings{font-family:var(--jp);font-size:15px;line-height:1.8;color:var(--muted);margin:7px 0}.review-front-note{font-size:12px;line-height:1.9;color:var(--muted);border-top:1px solid var(--line);padding-top:18px}.review-cue,.review-front-note{grid-column:1/-1}
@media(max-width:900px){.practice-layout{display:flex;flex-direction:column}.practice-layout>.kanji-info{width:100%}.practice-layout>.writing-card{order:-1}.mobile-practice-prompt{display:flex;align-items:center;gap:15px;margin:0 0 15px;padding-top:12px;border-top:1px solid var(--line)}.prompt-glyph{font-family:var(--jp);font-size:42px;line-height:1.2;min-width:48px;text-align:center}.prompt-glyph.unknown{color:#aebda3;font-family:var(--serif)}.mobile-practice-prompt strong{font-family:var(--serif);font-size:24px;font-weight:400;display:block;line-height:1.2}.mobile-practice-prompt small{font-size:11px;color:var(--muted);display:block;line-height:1.6;margin-top:5px}.kanji-info .readings{grid-column:1/-1}.kanji-info .kanji-meaning{align-self:center;margin:12px 0}.kanji-info .target-kanji{grid-row:2}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.study-card{padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--white);margin-bottom:28px;max-width:820px}.study-card h2{font-family:var(--serif);font-size:30px;font-weight:400;margin:20px 0 16px}.study-card p{font-size:13px;line-height:1.9;color:var(--muted);max-width:600px;margin:18px 0 24px}.daily-goal{max-width:520px;height:8px}.study-card h3{font-size:18px}.study-card .pill{white-space:normal}
@media(max-width:650px){.mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr));padding-left:5px;padding-right:5px}.mobile-nav a{font-size:8px;padding:5px 1px}.study-card{padding:22px}.study-card h2{font-size:26px}.page-head .text-button{font-size:10px;white-space:nowrap}}

.practice-kind{display:block;margin-bottom:16px}.review-task{font-family:var(--serif);font-size:29px;font-weight:400;line-height:1.4;margin:26px 0 20px;grid-column:1/-1}.review-example{margin-top:22px;padding:16px 0 0;border-top:1px solid var(--line);grid-column:1/-1}.review-example .ja{font-family:var(--jp);font-size:18px;line-height:1.9;margin:8px 0;overflow-wrap:anywhere}.review-example .translation{font-size:12px;color:var(--muted);line-height:1.7;margin:6px 0}.reveal-answer{width:100%;justify-content:center;margin-top:9px}.answer-reference{margin-top:24px;border-top:1px solid var(--line);padding-top:17px}.answer-reference svg{display:block;width:120px;max-width:100%;margin:auto;fill:none;stroke:var(--green);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.review-session .canvas-tools{justify-content:flex-start;gap:25px}.review-readings{grid-column:1/-1}
@media(min-width:901px){.mobile-practice-prompt{display:none}}
@media(max-width:900px){.review-front-panel{display:none!important}.review-session .mobile-practice-prompt:has(.review-task){display:block;margin-bottom:16px;padding-top:0;border:0}.review-session .mobile-practice-prompt .kanji-info-top{display:none}.review-task{font-size:23px;margin:0 0 12px}.review-session .review-readings{padding:0;border:0}.review-example{margin-top:12px;padding-top:12px}.review-example .ja{font-size:15px;line-height:1.6;margin:5px 0}.review-example .translation{font-size:10px;line-height:1.5}.review-session .canvas-wrap{max-width:280px}.review-session .writing-head{margin-bottom:12px}.review-session .practice-kind{margin-bottom:10px}}
@media(max-width:650px){.review-session .writing-card{padding:16px}.review-session .practice-kind{margin-bottom:8px}.review-session .writing-head{margin-bottom:10px;align-items:center}.review-session .writing-head p{display:none}.review-session .review-task{font-size:22px;margin-bottom:10px}.review-session .review-example{margin-top:9px;padding-top:9px}.review-session .canvas-wrap{max-width:min(280px,31svh)}.review-session .canvas-tools{margin-top:8px}.review-session .writing-card:has(.review-task) .writing-feedback{display:none}.review-session .reveal-answer{margin-top:10px}}

/* Kanji Michi · Codando no Japão — interface de estudo */
:root{
  --paper:#f5f6f3;--white:#fff;--ink:#21372d;--muted:#657269;
  --green:#234b3f;--green-light:#eaf0eb;--orange:#b96343;--line:#e2e7e1;
  --serif:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
body{font-size:15px;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.sidebar{width:244px;padding:32px 20px 24px;background:#f1f3ef;border-right:1px solid #e5e9e2}
.brand{gap:12px;font-size:20px;letter-spacing:-.7px;font-weight:700}
.brand-mark{display:block;width:44px;height:44px;border-radius:13px;background:transparent;object-fit:contain}
.brand small{font-size:10px;letter-spacing:0;font-weight:400;margin-top:5px;color:var(--muted)}
.sidebar nav{margin-top:42px;gap:26px}.nav-group{display:grid;gap:5px}
.nav-group-label{padding:5px 15px 7px;font-size:9px;letter-spacing:1.3px;color:#7b867d;font-weight:600}
.nav-link{min-height:47px;border-radius:12px;padding:12px 15px;font-size:14px;gap:13px;color:#5c6c61;transition:background .15s,color .15s}
.nav-link.active{color:#214f3e;background:#dfe9df;font-weight:650;box-shadow:inset 0 0 0 1px #d6e3d5}
.nav-link:not(.active):hover{background:#e8ede6}.nav-link svg{width:20px;height:20px}
.sidebar-bottom{padding-top:24px}.brand-signature{display:flex;align-items:flex-start;gap:9px;margin:0 14px 25px;font-size:12px;line-height:1.65;color:#4b6253}
.brand-signature small{display:block;margin-top:8px;font-size:10px;color:var(--muted)}.brand-signature strong{font-weight:600;color:#4e6054}
.japan-dot{width:8px;height:8px;border-radius:50%;background:#cd8368;display:inline-block;flex-shrink:0;margin-top:6px}
.storage-note{font-size:9px;line-height:1.65;padding-top:12px}.main-shell{margin-left:244px;width:calc(100% - 244px)}
.topbar{height:76px;padding:0 48px;border-bottom:1px solid #e5e9e2;background:#f5f6f3e8}
.topbar-caption{font-size:12px;letter-spacing:0;font-weight:400;color:#7b857d}.topbar-right{gap:18px}
.icon-button{width:40px;height:40px;border-radius:12px;background:#edf0e9}.connection{font-size:11px;color:#788578}
main{max-width:1184px;padding:40px 48px 48px;min-height:calc(100vh - 137px)}
.page-head{align-items:flex-start;margin-bottom:28px}.page-head h1{font-size:32px;line-height:1.2;letter-spacing:-1.2px;font-weight:650}
.eyebrow{font-size:11px;letter-spacing:.2px;text-transform:none;font-weight:500;color:#788479;margin-bottom:10px}
.page-description{font-size:14px;color:var(--muted);line-height:1.7;margin:12px 0 0}.date-label{font-size:12px}
.primary,.secondary{min-height:48px;border-radius:13px;font-size:13px;padding:13px 20px;gap:13px;transition:background .15s,transform .15s}
.primary{background:var(--green);box-shadow:0 3px 6px #234b3f0c}.primary:hover{background:#163b2f}.primary:active,.secondary:active{transform:scale(.985)}
.secondary{background:#eaf0e8;color:#31503b}.text-button{font-size:12px;min-height:36px}.pill{font-size:10px;letter-spacing:.4px;padding:7px 12px;background:#eef2eb;color:#5a735e}
.today-goal{display:flex;justify-content:space-between;align-items:center;gap:28px;padding:30px 34px;background:var(--white);border-radius:24px;border:1px solid #e4e8e1;box-shadow:0 5px 20px #263d2303}
.today-goal h2{font-size:26px;font-weight:550;letter-spacing:-.8px;line-height:1.3;margin:10px 0}.today-goal p{font-size:13px;color:var(--muted);margin:0 0 8px}.today-goal .eyebrow{font-size:10px;letter-spacing:1.3px}
.goal-ring{height:128px;width:128px;border-radius:50%;padding:7px;background:conic-gradient(var(--green) var(--goal-progress),#e9eee6 0);flex-shrink:0;transform:rotate(-90deg)}
.goal-ring>div{height:100%;width:100%;border-radius:50%;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;transform:rotate(90deg)}
.goal-ring strong{font-size:34px;letter-spacing:-1.6px;font-weight:550;line-height:1.2}.goal-ring strong span{font-size:18px;font-weight:400;letter-spacing:-.5px;color:#9aa398;margin-left:3px}.goal-ring small{font-size:10px;color:#7b897b;margin-top:4px}
.study-actions{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}
.study-action{position:relative;display:flex;gap:17px;align-items:flex-start;padding:26px;text-decoration:none;border:1px solid var(--line);background:#fff;border-radius:22px;min-width:0;transition:transform .18s,box-shadow .18s}
.study-action:hover{transform:translateY(-2px);box-shadow:0 9px 22px #233b2910}.action-icon{width:41px;height:41px;display:grid;place-items:center;background:#eef3eb;border-radius:12px;flex-shrink:0;color:#43644c}.action-icon svg{width:21px;height:21px}
.action-content{display:flex;flex-direction:column;min-width:0}.action-meta{font-size:10px;line-height:1.4;color:#6b7e6d;margin:2px 0 9px}.action-content strong{font-size:24px;letter-spacing:-.7px;font-weight:550;margin-bottom:6px}.action-content>span:last-child{font-size:12px;line-height:1.7;color:#6c7c70;max-width:200px}
.action-arrow{position:absolute;right:22px;top:26px;opacity:.7}.action-arrow svg{width:18px;height:18px}.learn-action{background:#234b3f;color:#fcfdf7;border-color:#234b3f}.learn-action .action-icon{background:#ffffff16;color:#e7efe0}.learn-action .action-meta{color:#b5c9b6}.learn-action .action-content>span:last-child{color:#d0ddce}
.quiet-stats{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 2px 29px;margin-bottom:24px;border-bottom:1px solid var(--line);font-size:11px;color:#7c867e}.quiet-stats span{display:flex;align-items:center;gap:6px}.quiet-stats strong{font-weight:600;color:#48634d}.quiet-stats svg{width:15px;height:15px}.quiet-stats a{display:flex;gap:5px;align-items:center;text-decoration:none;color:#516c56}
.section-head{margin-bottom:17px}.section-head h2{font-size:17px;font-weight:600;letter-spacing:-.4px}.lesson-grid{gap:14px}.lesson-card{border-color:#e4e9e1;border-radius:18px;padding:18px;box-shadow:0 2px 3px #2a412203;transition:background .15s,border-color .15s,transform .15s}.lesson-card:hover{border-color:#b1c6b1;background:#fcfdfb;transform:translateY(-2px)}
.lesson-top{font-size:10px;color:#8a968a}.lesson-char{font-size:54px;line-height:1.6;margin:6px 0 12px}.lesson-card strong{font-size:13px;font-weight:500}.lesson-card small{font-size:11px;margin-top:5px;color:#849080}
.study-card{max-width:none;border:1px solid #e3e9e0;border-radius:24px;padding:34px;background:#fff;box-shadow:0 4px 18px #234b3f03}.learn-summary{display:grid;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:40px}.study-copy{min-width:0}.learn-summary .goal-ring{width:146px;height:146px;padding:8px}.study-card h2{font-size:32px;letter-spacing:-1px;line-height:1.25;font-weight:550;margin:22px 0 20px}.study-card p{font-size:14px;line-height:1.8;margin:20px 0 25px;max-width:450px;color:#70806f}.daily-goal{height:6px;max-width:440px;background:#eaf0e7}.learn-summary .primary{padding-left:22px;padding-right:22px}.daily-lessons{grid-template-columns:repeat(5,minmax(0,1fr))}.learning-steps{list-style:none;padding:0 5px;margin:0 0 32px;display:flex;gap:28px;align-items:center;font-size:11px;color:#6f7f70}.learning-steps li{display:flex;gap:8px;align-items:center}.learning-steps li span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e8eee5;font-size:10px;color:#6c826a}
.review-summary{padding:44px;max-width:740px;text-align:center;margin:28px auto}.review-summary p{margin:18px auto 27px;max-width:430px}.review-emblem{display:grid;place-items:center;width:72px;height:72px;border-radius:24px;background:#eef4e9;color:#50774e;margin:0 auto 24px}.review-emblem svg{width:29px;height:29px;stroke-width:1.4}.review-summary h2{font-size:29px;margin-bottom:14px}.review-summary .primary{min-width:190px}
.footer{padding:8px 48px 26px;max-width:1184px;font-size:10px;gap:16px}.footer-brand{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.footer-brand strong{font-weight:500;color:#63725f}.footer .japan-dot{width:5px;height:5px;margin:0 3px 0 0}.footer .text-button{font-size:10px;font-weight:400}
.path-card,.activity-card,.course-summary{border-radius:20px;border-color:#e3e8df;box-shadow:none}.path-card h2{font-weight:550;font-size:20px}.path-card p{font-size:13px}.path-card.future{opacity:.6}.level-badge{background:#eaf0e5;color:#526e4d}.progress-overview .stat-card{border-radius:19px;padding:25px}.progress-overview .stat-card strong{font-size:29px;font-weight:500}.progress-overview .stat-card p{font-size:12px}.progress-overview strong small{font-size:14px}.activity-card h2{font-size:18px}.activity-card p{font-size:12px}.history-row{font-size:13px}.history-row small,.history-rating{font-size:11px}.notice{font-size:12px}
.filterbar{gap:13px;margin-top:8px}.tabs{padding:5px;border-radius:13px;background:#e9eee5}.tabs button{font-size:12px;padding:10px 16px;border-radius:9px}.filter-select{font-size:12px;border-radius:11px;padding:12px;background:#fff}.search-field input{font-size:13px;border-radius:12px;padding-top:13px;padding-bottom:13px}.search-field svg{top:14px}.library-meta{font-size:12px;margin:20px 0}.library-grid{gap:12px}.library-grid .lesson-card{padding:15px}.library-grid .lesson-card strong{font-size:12px}.library-grid .lesson-char{font-size:43px}
.kanji-info,.writing-card{border-radius:23px;border-color:#e0e7dc;background:#fff}.practice-head{margin-bottom:24px}.back-button{font-size:12px;min-height:32px}.practice-kind{font-size:10px;letter-spacing:.7px;color:#6f826b}.kanji-meaning{font-size:30px;letter-spacing:-.8px;font-weight:500}.reading-label{font-size:10px;letter-spacing:.7px}.reading-value{font-size:15px;line-height:1.8}.info-section h3{font-size:12px}.component{padding:7px 10px;border-radius:10px;background:#f3f6ef;border-color:#e5ebde}.component small{font-size:11px}.component-role{font-size:9px}.component.main{background:#eaf1e5}.example .ja{font-size:19px}.example .translation{font-size:12px;line-height:1.8}.example .example-credit{font-size:10px}.writing-head h2{font-size:17px;font-weight:550;letter-spacing:-.3px}.writing-head p{font-size:12px;line-height:1.65}.stroke-counter{background:#edf2e8;font-size:10px;color:#54714c}.canvas-wrap{border-radius:16px;background:#fbfcf8;border-color:#dfe6d8}.canvas-tools button{min-height:36px;font-size:11px}.canvas-tools button svg{width:16px;height:16px}.writing-feedback{font-size:12px;min-height:42px}.rating-button{border-radius:12px;min-height:55px;font-size:12px}.rating-button span{font-size:10px}.practice-note{font-size:11px}.review-task{font-size:27px;font-weight:500;letter-spacing:-.5px;line-height:1.4}.review-example .ja{font-size:18px}.review-example .translation{font-size:12px}.review-session .writing-feedback{font-size:12px}
dialog{padding:28px;border-radius:24px;border-color:#e2e8dc;box-shadow:0 20px 100px #1a362534}dialog::backdrop{background:#172e2548;backdrop-filter:blur(6px)}.modal-head h2{font-size:23px;letter-spacing:-.7px}.modal-copy{font-size:13px;line-height:1.8}.form-field{font-size:13px}.form-field select{border-radius:12px;padding:12px}.more-menu{display:grid;gap:8px}.more-menu a,.more-menu button{display:flex;gap:15px;align-items:center;padding:16px;border:1px solid #e5ebdf;border-radius:14px;text-decoration:none;background:#fafcf7;width:100%;text-align:left;color:#41633f}.more-menu>*>span{flex:1;font-size:14px;color:var(--ink)}.more-menu small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.more-signature{font-size:10px;color:#899680;margin:24px 0 0;text-align:center}
@media(max-width:1150px) and (min-width:651px){.sidebar{width:218px;padding:28px 17px}.main-shell{margin-left:218px;width:calc(100% - 218px)}.brand{font-size:18px;gap:9px}.brand-mark{height:39px;width:39px}.brand small{font-size:9px}main{padding:32px}.topbar{padding:0 32px}.footer{padding-left:32px;padding-right:32px}.learn-summary{gap:24px;grid-template-columns:minmax(0,1fr) 120px}.learn-summary .goal-ring{height:120px;width:120px}.study-actions{gap:14px}.study-action{padding:22px;gap:12px}.action-content strong{font-size:22px}.action-arrow{right:17px;top:23px}.action-content>span:last-child{max-width:170px}}
@media(max-width:900px) and (min-width:651px){.sidebar{width:196px;padding-left:13px;padding-right:13px}.main-shell{margin-left:196px;width:calc(100% - 196px)}.brand{font-size:16px}.brand small{font-size:8px}.brand-mark{width:36px;height:36px}.nav-link{font-size:13px}.brand-signature{font-size:11px}.today-goal{padding:25px;gap:20px}.today-goal h2{font-size:22px}.goal-ring{height:105px;width:105px}.study-actions{grid-template-columns:1fr}.study-action{min-height:125px}.action-content>span:last-child{max-width:none}.daily-lessons{grid-template-columns:repeat(3,minmax(0,1fr))}.learning-steps{gap:14px;font-size:10px}.study-card{padding:27px}.study-card h2{font-size:27px}.learn-summary{grid-template-columns:1fr}.learn-summary>.goal-ring{display:none}.page-head h1{font-size:29px}}
@media(max-width:650px){
  body{padding-bottom:78px}.sidebar{display:none}.main-shell{margin:0;width:100%}.topbar{height:72px;padding:0 21px;background:#f5f6f3f5;gap:10px}.topbar-caption{display:none}.topbar-right{gap:15px}.topbar-right>.icon-button{display:flex;width:36px;height:36px;border-radius:11px}.mobile-brand{display:flex;gap:10px;align-items:center;text-decoration:none;font-size:17px;line-height:1.15;letter-spacing:-.6px;font-weight:650;min-width:0}.mobile-brand .brand-mark{width:36px;height:36px;border-radius:11px}.mobile-brand small{display:block;font-size:9px;font-weight:400;letter-spacing:0;margin-top:5px;color:#7a8777}.connection{font-size:0;width:6px;height:6px;line-height:0}.connection:before{margin:0;width:6px;height:6px;vertical-align:top}
  main{padding:27px 21px 30px;min-height:calc(100vh - 150px)}.page-head{align-items:flex-start;gap:10px;margin-bottom:23px}.page-head h1{font-size:27px;line-height:1.2;letter-spacing:-.9px}.eyebrow{font-size:10px;letter-spacing:0;margin-bottom:10px}.page-description{font-size:12px;line-height:1.7;margin-top:10px;max-width:290px}.page-head .text-button{font-size:10px;white-space:nowrap;gap:4px}.page-head .text-button svg{width:14px}
  .today-goal{border-radius:21px;padding:23px 22px;gap:16px}.today-goal h2{font-size:21px;line-height:1.3;letter-spacing:-.65px;margin:10px 0}.today-goal p{font-size:11px;line-height:1.7;margin-bottom:7px}.today-goal .eyebrow{font-size:8px;letter-spacing:1px}.today-goal .text-button{font-size:10px}.goal-ring{width:88px;height:88px;padding:5px}.goal-ring strong{font-size:26px;letter-spacing:-1px}.goal-ring strong span{font-size:14px}.goal-ring small{font-size:8px}
  .study-actions{gap:12px;margin:14px 0;grid-template-columns:1fr}.study-action{padding:21px;gap:15px;border-radius:19px;align-items:center}.action-icon{width:39px;height:39px;border-radius:12px}.action-content strong{font-size:23px;margin-bottom:4px}.action-meta{font-size:9px;margin:0 0 5px}.action-content>span:last-child{font-size:11px;max-width:none}.action-arrow{top:50%;transform:translateY(-50%);right:20px}.action-arrow svg{width:17px;height:17px}
  .quiet-stats{font-size:9px;gap:10px;flex-wrap:wrap;padding:10px 2px 22px;margin-bottom:24px}.quiet-stats span{gap:5px}.quiet-stats svg{width:13px}.quiet-stats>a{font-size:10px}.section-head{margin-bottom:13px;gap:10px}.section-head h2{font-size:16px}.section-head .text-button{font-size:10px}.lesson-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.lesson-card{padding:13px 10px;border-radius:15px}.lesson-top{font-size:8px}.lesson-char{font-size:40px;line-height:1.5;margin:7px 0 9px}.lesson-card strong{font-size:11px}.lesson-card small{font-size:9px;line-height:1.6;margin-top:3px}.daily-lessons{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.daily-lessons .lesson-card{padding:14px}.daily-lessons .lesson-char{font-size:45px}.daily-lessons .lesson-card strong{font-size:12px}
  .study-card{padding:25px 23px;border-radius:21px;margin-bottom:24px}.learn-summary{grid-template-columns:1fr;gap:0}.learn-summary>.goal-ring{display:none}.study-card .pill{font-size:9px;letter-spacing:.4px;padding:7px 10px}.study-card h2{font-size:28px;line-height:1.25;letter-spacing:-.9px;margin:20px 0 19px;max-width:270px}.study-card p{font-size:13px;line-height:1.75;margin:19px 0 24px}.learn-summary .primary{width:100%;font-size:12px;min-height:49px}.learning-steps{gap:14px;justify-content:space-between;margin:0 0 28px;padding:0;font-size:9px}.learning-steps li{gap:6px;align-items:flex-start;line-height:1.5;flex:1}.learning-steps li span{width:19px;height:19px;min-width:19px;font-size:9px}.review-summary{padding:32px 24px;margin:24px 0}.review-summary h2{font-size:25px;max-width:none}.review-emblem{height:66px;width:66px;border-radius:22px;margin-bottom:22px}.review-summary .primary{width:100%}
  .mobile-nav{grid-template-columns:repeat(5,minmax(0,1fr));background:#fbfcf8f5;border-top:1px solid #e2e7df;box-shadow:0 -4px 25px #243d2003;padding:7px 10px max(9px,env(safe-area-inset-bottom));gap:3px}.mobile-nav a,.mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:48px;border:0;background:none;border-radius:11px;text-decoration:none;font-size:10px;font-weight:450;line-height:1.2;color:#8a9787;padding:5px 0}.mobile-nav .active{background:#e9f0e4;color:#315935;font-weight:600}.mobile-nav svg{width:20px;height:20px;stroke-width:1.65}.footer{padding:3px 21px 24px;gap:8px;flex-wrap:wrap;font-size:9px}.footer .text-button{font-size:9px}.footer-brand{gap:3px}.footer .japan-dot{width:4px;height:4px}
  .filterbar{gap:10px}.tabs{padding:4px}.tabs button{font-size:11px;padding:9px 10px}.filter-select{font-size:10px;max-width:140px;padding:11px 8px}.search-field input{font-size:12px}.library-meta{font-size:10px;margin-top:17px}.library-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.library-grid .lesson-card{padding:12px 9px}.library-grid .lesson-char{font-size:37px}.library-grid .lesson-card strong{font-size:10px}.path-card{padding:23px 20px}.path-card h2{font-size:18px}.path-card p{font-size:12px}.path-card>.button-row{flex-wrap:wrap}.progress-overview .stat-card{padding:16px 11px;border-radius:16px}.progress-overview .stat-card strong{font-size:23px}.progress-overview .stat-card p{font-size:10px}.progress-overview strong small{font-size:10px}.activity-card{padding:22px}.activity-card h2{font-size:16px}.activity-card p{font-size:11px}.activity-day{height:23px}
  .practice-head{margin-bottom:16px}.back-button{font-size:11px;min-height:27px}.kanji-info,.writing-card{padding:19px;border-radius:21px}.practice-kind{font-size:9px}.writing-head h2{font-size:15px}.writing-head p{font-size:11px}.kanji-meaning{font-size:26px}.reading-label{font-size:9px}.reading-value{font-size:13px}.example .ja{font-size:18px}.example .translation{font-size:12px}.example .example-credit{font-size:10px}.canvas-tools button{font-size:10px;min-height:34px}.canvas-tools button svg{width:14px;height:14px}.writing-feedback{font-size:11px;min-height:38px}.practice-note{font-size:10px}.review-task{font-size:22px;letter-spacing:-.6px}.review-example .ja{font-size:15px}.review-example .translation{font-size:10px}.review-session .canvas-wrap{max-width:min(280px,30svh)}.review-session .writing-head h2{font-size:15px}.review-session .writing-card{padding:16px}.review-session .canvas-tools{gap:24px}.review-session .reveal-answer{min-height:46px;font-size:12px}.stroke-counter{font-size:9px;padding:6px 8px}.rating-button{font-size:11px;min-height:53px}.rating-button span{font-size:9px}.review-session .writing-feedback{font-size:11px}.session-progress span{font-size:10px}.session-progress{min-width:115px}.session-progress .progress-line{width:65px}
  dialog{padding:24px;border-radius:24px}.modal-head h2{font-size:21px}.modal-copy{font-size:12px}.toast{font-size:11px;bottom:93px}
}
@media(prefers-reduced-motion:reduce){.study-action,.primary,.secondary,.nav-link,.lesson-card{transition:none;transform:none!important}}

/* Progresso do caminho e atividade anual */
.progress-level-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:4px 0 24px}.progress-level-head>span{font-size:12px;color:var(--muted)}
.path-progress-overview{grid-template-columns:1.05fr repeat(3,1fr);gap:12px}.path-progress-overview .stat-card{padding:23px 18px;align-items:flex-start;text-align:left;min-width:0}.studied-total strong{white-space:nowrap}.studied-total>div>small{display:block;color:#7b8878;font-size:10px;margin-top:8px}
.path-progress-overview .memory-stat{display:flex;flex-direction:column;gap:7px;border:1px solid #e0e7db;transition:background .15s,border-color .15s}.memory-stat strong{font-size:31px;font-weight:500;line-height:1.2}.memory-stat>span{font-size:12px;font-weight:550}.memory-stat>small{font-size:10px;line-height:1.6;color:#7c8776}.memory-stat.internalized strong{color:#28523b}.memory-stat.recent strong{color:#779669}.memory-stat.unseen strong{color:#8d9887}.memory-stat.selected{border-color:#9dbb91;background:#f3f7ee;box-shadow:inset 0 0 0 1px #b8cdb0}.memory-stat:hover{background:#f8faf5}
.progress-goal{display:grid;grid-template-columns:.85fr 1.15fr;gap:35px;padding:28px 30px;border:1px solid var(--line);border-radius:22px;background:#fff;margin-bottom:25px}.progress-goal h2{font-size:21px;font-weight:550;line-height:1.3;letter-spacing:-.5px;margin:9px 0 14px}.progress-goal p{font-size:12px;color:#71806b;line-height:1.8;margin:10px 0}.progress-goal .eyebrow{font-size:9px;letter-spacing:1px}.progress-goal .path-goal{border-left:1px solid var(--line);padding-left:35px}.path-goal>small{font-size:10px;line-height:1.8;color:#84917c;display:block;max-width:380px}.progress-goal .text-button{font-size:11px}
.year-card{min-width:0;padding:28px 27px}.annual-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.annual-heading h2{font-size:20px;font-weight:550;letter-spacing:-.5px;margin:0 0 6px}.annual-heading p{font-size:12px;margin:0!important;color:var(--muted)}.annual-total{font-size:10px;color:#75876b;white-space:nowrap;margin-top:5px}.year-card .calendar-guide{font-size:10px;color:#86907f;margin:18px 0 13px}
.annual-calendar{--cell-size:12px;--cell-gap:4px;display:flex;gap:10px;align-items:flex-end;min-width:0}.activity-weekdays{display:grid;grid-template-rows:repeat(7,var(--cell-size));gap:var(--cell-gap);padding-bottom:4px;font-size:8px;line-height:var(--cell-size);width:25px;flex-shrink:0;color:#86917e}.annual-scroll{overflow-x:auto;min-width:0;padding:4px 3px;scrollbar-width:thin;scrollbar-color:#c8d7bc transparent;overscroll-behavior-inline:contain;max-width:100%;border-radius:4px}.annual-canvas{width:max-content;max-width:none}.activity-months{display:grid;grid-template-columns:repeat(var(--week-count),var(--cell-size));column-gap:var(--cell-gap);height:23px;position:relative;font-size:9px;line-height:18px;color:#86917e}.activity-months span{grid-row:1;white-space:nowrap;overflow:visible;width:max-content}.activity-weeks{display:flex;gap:var(--cell-gap)}.activity-week{display:grid;grid-template-rows:repeat(7,var(--cell-size));gap:var(--cell-gap);min-width:var(--cell-size)}
.annual-calendar .activity-day,.activity-empty{display:block;width:var(--cell-size);height:var(--cell-size);border-radius:3px;min-height:0;padding:0;border:0;margin:0}.annual-calendar .activity-day{background:#edf0e6;cursor:pointer}.annual-calendar .activity-day[data-count="1"]{background:#b2c7a4}.annual-calendar .activity-day[data-count="2"]{background:#77a16b}.annual-calendar .activity-day[data-count="3"]{background:var(--green)}.annual-calendar .activity-day[aria-pressed="true"]{outline:1.5px solid #517746;outline-offset:1px}.annual-calendar .activity-day:focus-visible{outline:2px solid #cf825b;outline-offset:2px}.activity-empty{background:transparent}.calendar-foot{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;margin-top:18px}.year-card #activity-day-detail{font-size:10px;color:#6c8163;margin:0;line-height:1.7}.calendar-foot .activity-legend{margin:0;font-size:9px}.calendar-foot .activity-legend i{height:9px;width:9px;border-radius:3px}
.memory-section{background:#fff;border:1px solid var(--line);border-radius:22px;padding:28px;margin:26px 0}.memory-section .eyebrow{font-size:9px;letter-spacing:1px}.memory-description{font-size:12px;color:#7b8771;line-height:1.8;margin:0 0 20px}.memory-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:10px}.memory-kanji{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:13px 8px;border:1px solid #e0e8d9;border-radius:12px;background:#f7f9f3;min-width:0;min-height:90px}.memory-kanji>span{font-family:var(--jp);font-size:31px;line-height:1.3}.memory-kanji small{font-size:9px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#7c8871}.memory-grid.internalized .memory-kanji{background:#eaf1e4;border-color:#d3e0c7;color:#35582e}.memory-grid.recent .memory-kanji{background:#f1f5e9;color:#688454}.memory-grid.unseen .memory-kanji{background:#f8f9f6;color:#8a9582}.memory-kanji:hover{border-color:#9cba8c;background:#eaf1e2}.memory-more{margin-top:20px;font-size:11px}.memory-explanation{font-size:10px;line-height:1.85;color:#8a957e;margin:24px 0 0;border-top:1px solid var(--line);padding-top:17px}.memory-empty{padding:24px;border:1px dashed #dce6d4;border-radius:12px;color:#809073;font-size:12px;line-height:1.8}
@media(max-width:1100px){.path-progress-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.annual-heading{flex-direction:column;gap:9px}.annual-total{margin:0}.progress-goal{gap:24px}.progress-goal .path-goal{padding-left:24px}}
@media(max-width:650px){.progress-level-head{align-items:flex-start;gap:15px;margin-bottom:20px}.progress-level-head>span{font-size:10px;max-width:130px;text-align:right;line-height:1.7}.progress-level-head .tabs{flex:0 0 auto}.progress-level-head .tabs button{padding:9px 13px}.path-progress-overview{gap:10px;margin-bottom:20px}.path-progress-overview .stat-card{padding:18px 15px;border-radius:17px}.path-progress-overview .memory-stat strong{font-size:29px}.memory-stat>span{font-size:11px}.memory-stat>small{font-size:9px}.studied-total>div>small{font-size:9px}.progress-goal{grid-template-columns:1fr;padding:24px;gap:22px;border-radius:20px}.progress-goal .path-goal{border-left:0;border-top:1px solid var(--line);padding:22px 0 0}.progress-goal h2{font-size:21px}.progress-goal p{font-size:11px}.year-card{padding:23px 19px;border-radius:20px}.annual-heading h2{font-size:19px}.annual-heading p{font-size:11px}.annual-total{font-size:9px}.year-card .calendar-guide{font-size:9px}.annual-calendar{gap:6px}.activity-weekdays{width:22px;font-size:7px}.calendar-foot{gap:10px}.year-card #activity-day-detail{font-size:9px;flex:1 1 100%}.calendar-foot .activity-legend{margin-left:auto}.memory-section{padding:24px 20px;border-radius:20px}.memory-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.memory-kanji{padding:12px 5px;min-height:82px}.memory-kanji>span{font-size:29px}.memory-kanji small{font-size:8px}.memory-description{font-size:11px}.memory-explanation{font-size:9px}}

/* Assinatura editorial, com Michi em gesto cursivo. */
.brand-name{display:block;font-family:Georgia,'Times New Roman',serif;font-size:20px;font-weight:400;letter-spacing:-.8px;white-space:nowrap;line-height:1.1}
.brand-name em{font-size:27px;font-weight:500;letter-spacing:-1.2px;font-style:italic}
.brand .brand-mark{width:48px;height:48px;border-radius:14px}
@media(min-width:651px) and (max-width:1150px){.brand-name{font-size:17px}.brand-name em{font-size:24px}.brand .brand-mark{width:40px;height:40px}.brand{gap:9px}}
@media(min-width:651px) and (max-width:900px){.brand-name{font-size:15px}.brand-name em{font-size:21px}.brand .brand-mark{width:36px;height:36px}}
@media(max-width:650px){.mobile-brand .brand-name{font-size:17px;letter-spacing:-.6px}.mobile-brand .brand-name em{font-size:23px;letter-spacing:-.9px}.mobile-brand .brand-mark{width:40px;height:40px}.mobile-brand small{margin-top:4px}}

/* Leituras extensas rolam dentro do enunciado sem reduzir a escrita livre. */
@media(max-width:650px){
  .review-session .mobile-practice-prompt:has(.review-task){max-height:clamp(110px,calc(100svh - 675px),200px);overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#bccbb3 transparent}
}
