@charset "UTF-8";
:root{--ink:#193c34;--muted:#68766e;--paper:#f6f6f0;--white:#fff;--line:#dde3d9;--lime:#dff3a0;--green:#315b49;--red:#9f3d32;--orange:#96591d;--shadow:0 8px 32px #193c3406;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a,button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #658929;outline-offset:4px}button{border:0}button,.button{border-radius:10px;padding:13px 20px;font-weight:600;background:var(--ink);color:white;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;min-height:46px}button:hover,.button:hover{filter:brightness(1.09)}button.secondary,.button.secondary{background:#edf0e8;color:var(--ink);border:1px solid var(--line)}button.ghost,.button.ghost{color:var(--ink);background:transparent;border:1px solid var(--line)}button.small,.button.small{padding:9px 13px;min-height:38px;font-size:.85rem}.danger{background:#fae8e3!important;color:var(--red)!important}.muted,small,.help{color:var(--muted)}small{font-size:.8rem}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#163c34;color:#f7f9ec;display:flex;flex-direction:column;padding:34px 22px;z-index:20}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:32px;font-weight:650;letter-spacing:-1.5px;margin-bottom:48px}.brand-mark{width:45px;height:49px;display:grid;place-items:center;background:var(--lime);color:var(--ink);border-radius:14px;font-size:35px;font-weight:400}.brand small{display:block;font-size:10px;letter-spacing:.2px;color:#bed0c3;font-weight:400;margin-top:3px}.nav-label{font-size:9px;letter-spacing:1.6px;color:#b2c7b7;padding:0 12px;margin-bottom:16px}nav{display:grid;gap:7px}nav a{display:flex;align-items:center;text-decoration:none;gap:12px;padding:13px 12px;font-size:13px;border-radius:9px;color:#cfdbd0;min-height:45px}nav a:hover{background:#ffffff0c}nav a.active{background:var(--lime);color:#18392f;font-weight:650}nav a>span{font-size:21px;width:22px;text-align:center;line-height:1}nav b{margin-left:auto;font-size:10px;background:#ffffff1c;border-radius:20px;padding:3px 6px}nav a.active b{background:#163c3417}.sidebar-bottom{margin-top:auto;padding:30px 10px 0}.sidebar-bottom .pill{background:#ffffff0b;color:#c5d6ba;border-color:#ffffff20;font-size:9px;letter-spacing:.8px}.sidebar-bottom p{font-family:Georgia,serif;font-size:21px;line-height:1.4;color:#e2ebd8}.sidebar-bottom a{display:block;font-size:11px;text-decoration:none;margin:13px 0;color:#c3d4c9}#save-status{display:block;font-size:10px;color:#afc7b7;margin-top:25px}.workspace{margin-left:248px;min-height:100dvh}.topbar{display:flex;justify-content:space-between;align-items:center;padding:24px 5%;border-bottom:1px solid var(--line);font-size:10px;letter-spacing:1.4px}.topbar .muted{padding:0 12px}.local{display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:0;color:#617665}.local i{width:6px;height:6px;border-radius:50%;background:#6d935f}main{max-width:1280px;margin:auto;padding:42px 5% 60px;min-height:80dvh;outline:none}h1,h2,h3,p{margin-top:0}h1{font-family:Georgia,"Yu Mincho",serif;font-weight:400;font-size:clamp(32px,3.3vw,48px);line-height:1.15;letter-spacing:-1.4px;margin-bottom:17px}h2{font-size:21px;font-weight:600;letter-spacing:-.4px}h3{font-size:16px;line-height:1.4;letter-spacing:-.1px}p{font-size:14px;line-height:1.75}ul,ol{padding-left:21px;font-size:14px;line-height:1.8}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.9px;color:var(--muted);margin-bottom:13px;text-transform:uppercase}.hero{padding:35px 38px;background:#e9eedf;border:1px solid #dfe6d3;border-radius:20px;display:flex;align-items:center;gap:25px;margin-bottom:27px;position:relative;overflow:hidden}.hero>div:first-child{flex:1;position:relative;z-index:1}.hero h1{max-width:670px}.hero p{max-width:580px;color:#526655;margin-bottom:22px}.hero-art{width:140px;height:170px;flex-shrink:0;display:grid;place-items:center;border:1px solid #b3c3a5;border-radius:80px 80px 0 0;background:radial-gradient(ellipse at 60% 24%,#d9e5a7 0 20%,transparent 21%),linear-gradient(135deg,#d9e1ca,#e5edda);font-family:"Yu Mincho",serif;font-size:70px;line-height:1;color:#526c4d;writing-mode:vertical-rl;letter-spacing:10px;box-shadow:12px 12px 0 #dce4cf}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.between{justify-content:space-between}.section-title{margin:32px 0 16px;display:flex;align-items:center;justify-content:space-between;gap:20px}.section-title h2{margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0}.stat{padding:21px;border:1px solid var(--line);border-radius:14px;background:white}.stat>span{display:block;font-size:11px;color:var(--muted);margin-bottom:11px}.stat strong{font-size:29px;font-weight:550;letter-spacing:-1px}.stat small{display:block;font-size:10px;margin-top:7px;line-height:1.4}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.two{grid-template-columns:repeat(2,minmax(0,1fr))}.panel,.unit-card,.topic-card{background:white;border:1px solid var(--line);border-radius:15px;padding:25px;box-shadow:var(--shadow);min-width:0}.unit-card{display:flex;flex-direction:column;min-height:235px;position:relative}.unit-card .unit-num{font-family:Georgia,serif;font-size:26px;color:#78956d;margin-bottom:18px}.unit-card .jp{font-size:12px;color:#748166;margin-bottom:6px}.unit-card h3{font-size:18px;margin-bottom:9px}.unit-card p{font-size:12px;color:var(--muted);margin-bottom:23px}.unit-card .progress{margin-top:auto}.unit-card a{position:absolute;inset:0;border-radius:15px}.unit-card:hover{border-color:#a6b896;background:#fcfdf8}.progress{height:5px;background:#e9eee3;border-radius:10px;overflow:hidden;margin:11px 0}.progress>span{height:100%;display:block;background:#779b47;border-radius:10px}.progress-label{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.pill{display:inline-flex;padding:5px 9px;border:1px solid var(--line);border-radius:30px;background:#f5f7f0;color:#52674c;font-size:10px;font-weight:600;gap:5px;align-items:center}.pill.warn{background:#fbefdf;color:#8a5721;border-color:#ebd5b6}.pill.bad{background:#fae9e5;color:var(--red);border-color:#efcec4}.pill.good{background:#eaf2dc;color:#476339}.list-row{display:flex;gap:15px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border:0}.list-row>div:first-child{flex:1;min-width:0}.list-row h3{margin-bottom:3px}.list-row p{margin:0;color:var(--muted);font-size:12px}.topic-card h3{font-size:17px}.topic-card p{color:var(--muted);font-size:12px}.topic-card .row{margin-top:18px}.breadcrumbs{font-size:12px;margin-bottom:24px;color:var(--muted)}.breadcrumbs a{text-decoration:none}.intro{max-width:740px}.intro p{color:var(--muted);font-size:15px}.lesson{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:start}.lesson-body{padding:30px}.lesson-body h2{margin-top:30px}.lesson-body h2:first-child{margin-top:0}.lesson-aside{position:sticky;top:20px}.example{border-left:3px solid #a7c363;padding:15px 18px;background:#f5f8ed;margin:15px 0;border-radius:0 10px 10px 0}.example .jp{font-size:19px;line-height:1.8}.example p{margin:6px 0 0;color:var(--muted);font-size:13px}table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.6;margin:18px 0}td,th{padding:11px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}td:first-child{font-weight:550}tr:nth-child(odd){background:#f8f9f4}.callout{background:#fbf2e4;border:1px solid #ebdac0;border-radius:12px;padding:19px;margin:20px 0}.callout p{margin:6px 0 0}.callout.remedy{background:#edf4e4;border-color:#d8e3ca}.source-link{font-size:11px;color:#677864;line-height:1.8}.source-link a{display:inline-block;margin-right:9px}.filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:24px 0}.field{display:grid;gap:7px;flex:1;min-width:150px}.field label,label.field{font-size:12px;font-weight:600}select,input[type=text],input[type=password],textarea{width:100%;background:white;color:var(--ink);border:1px solid #b7c6b4;border-radius:9px;padding:12px;min-height:46px}textarea{min-height:120px;resize:vertical;line-height:1.7}input[type=radio],input[type=checkbox]{accent-color:var(--green);width:18px;height:18px;flex-shrink:0}.quiz-wrap{max-width:820px;margin:auto}.quiz-top{margin-bottom:22px}.question-card{padding:32px}.question-card h2{font-size:23px;line-height:1.6;letter-spacing:0;margin:23px 0}.choices{display:grid;gap:10px;margin:20px 0}.choice{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:10px;padding:15px;cursor:pointer;font-size:16px;line-height:1.7}.choice:hover{background:#f5f8ed}.choice:has(input:checked){background:#f0f6e4;border-color:#83a05e}.match-row{display:grid;grid-template-columns:1fr 1.4fr;gap:15px;align-items:center;margin:12px 0}.feedback{padding:23px;border-radius:12px;border:1px solid #cfdfb6;background:#f1f7e8;margin-top:24px}.feedback.wrong{background:#fff3ee;border-color:#efcfc0}.feedback h3{font-size:18px}.feedback .answer{font-size:19px;line-height:1.7;white-space:pre-wrap}.feedback p{margin-bottom:12px}.feedback a{font-size:12px}.quiz-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px;flex-wrap:wrap}.open-rubric label{display:flex;gap:10px;align-items:start;font-size:13px;line-height:1.6;margin:13px 0}.empty{padding:35px;text-align:center;background:#eff3e8;border:1px dashed #b6c7a4;border-radius:14px}.empty p{margin:10px auto 20px;max-width:520px;color:var(--muted)}.score{display:flex;align-items:center;gap:25px;margin:25px 0}.score-circle{width:115px;height:115px;border-radius:50%;background:var(--ink);color:var(--lime);display:grid;place-items:center;flex-shrink:0;font-size:32px;font-weight:500}.score p{margin:0}.flashcard{max-width:760px;margin:25px auto;text-align:center;min-height:310px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;background:#fff;border:1px solid var(--line);border-radius:20px}.flashcard h2{font-size:25px;line-height:1.6;font-weight:500;white-space:pre-wrap}.flashcard .flash-answer{border-top:1px solid var(--line);padding:25px 0;font-size:22px;line-height:1.9;white-space:pre-wrap;width:100%}.flashcard button{margin-top:18px}.ratings{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px auto;max-width:760px}.ratings button{display:flex;flex-direction:column;background:#e8eedc;color:var(--ink)}.ratings small{font-size:10px}.ratings button:first-child{background:#fae8df}.result-row{margin:15px 0}.result-row .row{font-size:12px}.mistake{margin:16px 0}.mistake summary{cursor:pointer;font-size:14px;line-height:1.7}.mistake p{margin:12px 0}.timeline{display:flex;gap:8px;margin:24px 0;flex-wrap:wrap}.timeline>span{padding:10px 13px;border-radius:9px;background:#e9eedf;font-size:11px}.timeline>span.current{background:var(--ink);color:var(--lime)}.session-timer{font-variant-numeric:tabular-nums;font-size:12px;color:var(--muted)}.history{font-size:12px}.search-label{font-size:12px}details.source-section{padding:18px 0;border-bottom:1px solid var(--line)}details.source-section summary{cursor:pointer;font-weight:600}.danger-zone{margin-top:50px;border:1px solid #e6c6bc;padding:25px;border-radius:15px}.notice{padding:15px 20px;background:#fbefdf;border-bottom:1px solid #e5c8aa;font-size:13px;line-height:1.6}#storage-warning{padding:15px 5%;background:#f9e6dc;font-size:13px;line-height:1.7}#toast{position:fixed;bottom:22px;right:24px;z-index:100;padding:14px 20px;background:var(--ink);color:white;box-shadow:0 5px 25px #0002;border-radius:12px;max-width:calc(100% - 40px);font-size:13px}#toast:empty{display:none}.skip{position:fixed;top:-100px;z-index:200;background:white;padding:15px}.skip:focus{top:0}footer{padding:20px 5%;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;font-size:10px;color:var(--muted)}.separator{border:0;border-top:1px solid var(--line);margin:28px 0}[hidden]{display:none!important}.link-btn{background:none;color:var(--ink);padding:0;min-height:35px;text-decoration:underline}.table-scroll{overflow-x:auto}.vertical-sample{writing-mode:vertical-rl;max-height:230px;line-height:2.4;font-size:19px;margin:20px auto;white-space:pre-line}.count-label{font-size:11px;color:var(--muted)}
@media(min-width:1550px){main{padding-top:50px}.hero{min-height:265px}.unit-card{min-height:260px}}@media(max-width:1100px){.sidebar{width:210px;padding:28px 15px}.workspace{margin-left:210px}.brand{font-size:29px}.brand small{font-size:9px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lesson{grid-template-columns:minmax(0,1fr)}.lesson-aside{position:static}.stats{grid-template-columns:repeat(2,1fr)}.hero{padding:28px}.hero-art{width:100px;height:145px;font-size:50px}.topbar{padding:20px 5%}}@media(max-width:720px){.sidebar{position:static;width:100%;padding:17px 18px 10px}.brand{font-size:26px;margin-bottom:16px}.brand-mark{width:37px;height:39px;font-size:28px}.brand small{font-size:9px}.nav-label,.sidebar-bottom{display:none}nav{display:flex;gap:5px;overflow-x:auto;padding-bottom:8px}nav a{white-space:nowrap;flex-shrink:0;font-size:11px;padding:10px;min-height:42px;gap:6px}nav a>span{font-size:18px;width:18px}.workspace{margin-left:0}.topbar{padding:16px 5%;font-size:9px}.local{font-size:9px}main{padding:27px 5% 40px}h1{font-size:34px}.hero{padding:25px;gap:12px}.hero-art{width:58px;height:120px;font-size:36px;box-shadow:5px 6px 0 #dce4cf}.hero h1{font-size:31px}.hero p{font-size:12px}.grid,.two{grid-template-columns:minmax(0,1fr)}.unit-card{min-height:215px}.stats{gap:10px}.stat{padding:17px}.stat strong{font-size:25px}.stat small{font-size:9px}.panel,.topic-card{padding:22px}.lesson-body,.question-card{padding:23px 20px}.question-card h2{font-size:20px}.ratings{grid-template-columns:repeat(2,1fr)}.flashcard{padding:28px 20px}.flashcard h2{font-size:22px}.list-row{align-items:start}.list-row .button{padding:9px 12px;min-height:40px;font-size:11px}footer{flex-direction:column;font-size:10px}.match-row{grid-template-columns:.8fr 1.2fr}.score-circle{width:93px;height:93px;font-size:27px}.filters>.field{min-width:130px}.source-link a{margin-bottom:6px}td{padding:9px 7px;font-size:12px}.hero .row button{font-size:12px;padding:12px}.question-card .row>.pill{font-size:9px}.row.mobile-stack{align-items:stretch;flex-direction:column}.quiz-bottom{gap:18px}.section-title{align-items:start}.session-timer{font-size:10px}}
@media(prefers-reduced-motion:no-preference){button,a,.unit-card{transition:background .15s,border-color .15s,filter .15s}main{animation:enter .18s ease-out}@keyframes enter{from{opacity:.7;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}}

.sidebar button.ghost{color:#dfe9d8;border-color:#476a5e;margin-top:9px}.notice p{margin:0 0 10px}.notice .row{margin-bottom:4px}
