@import url('/fonts.css');
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans SC",sans-serif;color:#263c35;background:#f6f7f2;font-synthesis:none;--green:#244b40;--muted:#7c8982;--line:#e3e8df;--lime:#e0eabc;--serif:"Yu Mincho","Hiragino Mincho ProN","Songti SC",serif}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:var(--green)}button:focus-visible,a:focus-visible{outline:3px solid #9cba74;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #9eb5a2;outline-offset:1px}button{border:0;background:none;color:inherit}h1,h2,h3,p{margin:0}h1{font-size:32px;letter-spacing:-1px;font-weight:600}h2{font-size:20px;font-weight:600}h3{font-size:16px;font-weight:600}p{line-height:1.8}.muted{color:var(--muted)}.eyebrow{font-size:11px;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.boot{padding:20vh 12%;font-size:32px}.boot span{font-size:12px;letter-spacing:3px}.boot p{font-size:14px;margin-top:20px}.layout{display:grid;grid-template-columns:236px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-right:1px solid var(--line);background:#fffef9;display:flex;flex-direction:column;padding:34px 22px 22px}.brand{display:flex;align-items:center;gap:11px;padding:0 10px 40px}.brand img{width:37px;height:37px}.brand strong{display:block;letter-spacing:3px;font-size:23px;font-family:var(--serif)}.brand small{display:block;font-size:9px;letter-spacing:3px;margin-top:3px;color:#889188}nav{display:grid;gap:8px}.nav{display:flex;align-items:center;gap:12px;padding:13px 15px;text-align:left;border-radius:9px;color:#738077;font-size:14px}.nav.active{background:var(--green);color:#fff}.nav svg{width:18px;height:18px}.nav .badge{margin-left:auto;background:#dfebbd;color:var(--green);padding:2px 7px;font-size:11px;border-radius:5px}.nav-caption{font-size:10px;letter-spacing:2px;color:#9ca69c;padding:23px 16px 12px}.sidebar-bottom{margin-top:auto}.sidebar-note{padding:20px 14px;margin-bottom:20px;border-top:1px solid var(--line);font-family:var(--serif);font-size:19px;line-height:1.7;color:#7d8d72}.sidebar-note small{display:block;font:11px sans-serif;color:#a1a99e;margin-top:8px}.profile{display:flex;align-items:center;gap:10px;padding:12px 5px 0;border-top:1px solid var(--line);font-size:12px}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#edf0e4;color:var(--green);font-size:13px}.profile small{display:block;font-size:10px;margin-top:3px;color:var(--muted)}.main{min-width:0}.topbar{height:82px;display:flex;justify-content:space-between;align-items:center;padding:0 48px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);background:#ffffff66}.topbar strong{font-weight:500;color:#42574b}.sync{display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#739260}.content{max-width:1280px;margin:auto;padding:39px 48px 50px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-head .eyebrow{margin-bottom:10px}.page-head p{font-size:13px;color:var(--muted);margin-top:10px}.date{font-size:12px;color:var(--muted)}.hero{background:var(--green);color:white;border-radius:16px;padding:34px 36px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative;gap:25px}.hero .eyebrow{color:#c2d2b8}.hero h2{font-size:27px;font-weight:500;line-height:1.6;margin:14px 0 10px;font-family:var(--serif)}.hero p{font-size:12px;color:#bdccbe}.hero .btn{margin-top:24px}.hero-art{font-family:var(--serif);font-size:100px;color:#dce8b4;writing-mode:vertical-rl;letter-spacing:12px;opacity:.8;padding-right:15px;transform:rotate(8deg);flex-shrink:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 21px;border-radius:8px;background:var(--green);color:white;font-size:13px;font-weight:500;min-height:43px}.btn.light{background:var(--lime);color:var(--green)}.btn.outline{background:white;border:1px solid var(--line);color:var(--green)}.btn.small{padding:8px 14px;min-height:35px;font-size:12px}.text-btn{font-size:12px;color:#5c7a5f;padding:7px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:23px 0 30px}.stat{background:#fffefb;border:1px solid var(--line);padding:21px 23px;border-radius:12px}.stat-label{font-size:12px;color:var(--muted)}.stat-value{font-size:31px;margin:14px 0 7px;letter-spacing:-1px;font-weight:500}.stat-value small{font-size:11px;color:var(--muted);font-weight:400;letter-spacing:0;margin-left:6px}.stat-foot{font-size:10px;color:#8c978c}.columns{display:grid;grid-template-columns:1.35fr 1fr;gap:22px}.panel{background:#fffefb;border:1px solid var(--line);padding:25px;border-radius:12px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.section-head h2{font-size:16px}.section-head small{font-size:11px;color:var(--muted)}.path-row{display:flex;align-items:center;gap:17px;padding:18px 0;border-top:1px solid #edf0e7}.path-icon{width:47px;height:47px;border-radius:11px;background:#edf1e3;display:grid;place-items:center;font-family:var(--serif);font-size:22px}.path-icon.gold{background:#f4eedb;color:#9d8747}.path-meta{flex:1}.path-meta h3{font-size:14px;margin-bottom:6px}.path-meta p{font-size:11px;color:var(--muted)}.arrow{font-size:20px;color:#8a9d83}.week{display:flex;justify-content:space-between;gap:8px;height:125px;margin:30px 0 15px;align-items:end}.week-day{display:flex;flex:1;min-width:0;align-items:center;flex-direction:column;gap:9px;font-size:10px;color:var(--muted)}.week-day progress{width:13px;height:72px;writing-mode:vertical-lr;transform:rotate(180deg);border:0;appearance:none;border-radius:4px;background:#edf0e5}.week-day progress::-webkit-progress-bar{background:#edf0e5;border-radius:4px}.week-day progress::-webkit-progress-value{background:#a3b77c;border-radius:4px}.week-day strong{font-size:10px;font-weight:500;color:#68805d}.footnote{font-size:11px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);padding-top:15px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px;flex-wrap:wrap}.search{background:#fffefb;border:1px solid var(--line);border-radius:9px;padding:12px 15px;min-width:260px;width:340px;font-size:13px}.tabs{display:flex;gap:5px;background:#e9ede2;padding:4px;border-radius:8px}.tab{padding:9px 16px;border-radius:6px;font-size:12px;color:#7c8778}.tab.active{background:#fffefb;color:var(--green);box-shadow:0 1px 4px #213a1c0b}.entry-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.entry{background:#fffefb;border:1px solid var(--line);border-radius:11px;padding:23px;display:flex;flex-direction:column;min-height:210px}.entry-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.tag{background:#edf1e4;color:#6f855d;border-radius:4px;font-size:10px;padding:4px 7px}.tag.gold{background:#f4efdf;color:#9b8957}.learned{font-size:10px;color:#8a9980}.jp{font-family:var(--serif);font-weight:500}.entry h3{font-size:24px;line-height:1.6;margin-bottom:5px;overflow-wrap:anywhere}.entry.grammar h3{font-size:18px}.reading{font-size:12px;color:var(--muted);margin-bottom:12px}.entry .meaning{font-size:13px;line-height:1.7;margin:6px 0 23px}.entry-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto;border-top:1px solid #edf0e7;padding-top:14px}.pager{display:flex;align-items:center;justify-content:center;gap:22px;margin:25px 0;font-size:12px}.empty{text-align:center;padding:65px 25px;background:#fffefb;border:1px solid var(--line);border-radius:14px}.empty .symbol{font-family:var(--serif);font-size:48px;color:#9cae79;margin-bottom:17px}.empty h2{font-weight:500;font-size:21px}.empty p{font-size:13px;color:var(--muted);margin:14px auto 25px;max-width:450px}.review-wrap{max-width:760px;margin:auto}.review-top{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin:10px 0 18px}.review-card{background:#fffefb;border:1px solid var(--line);border-radius:16px;padding:38px 46px}.review-prompt{text-align:center;padding:10px 0 28px}.review-prompt .eyebrow{margin-bottom:24px}.review-prompt h2{font-family:var(--serif);font-size:44px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}.review-prompt.grammar h2{font-size:31px}.review-prompt p{font-size:12px;color:var(--muted);margin-top:13px}.field{display:grid;gap:8px;margin-bottom:18px;font-size:12px}.field input,.field textarea,.field select{width:100%;background:#fffefb;border:1px solid #dce3d8;padding:12px 14px;border-radius:8px;color:#344d41;font-size:13px}.field textarea{resize:vertical;line-height:1.9;min-height:100px}.field label small{color:var(--muted);margin-left:5px}.full{width:100%}.answer-box{margin:5px 0 22px;border-top:1px dashed #d4dfcc;padding-top:23px}.answer-box .meaning{font-size:20px;line-height:1.7;margin:12px 0}.answer-box .notes,.example{font-size:13px;line-height:1.9;white-space:pre-wrap;margin:14px 0}.example{background:#f2f4e9;border-radius:8px;padding:15px 18px}.answer-box .eyebrow{margin-top:15px}.ratings{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.rate{border:1px solid #dce3d4;border-radius:8px;padding:13px 4px;font-size:12px;background:#f3f6eb}.rate:first-child{background:#faf0e9;border-color:#f0ddd0;color:#a57460}.rate:nth-child(2){background:#f7f3e6;color:#9b8759}.rate:last-child{background:#e5edd7;color:#537246}.rate small{display:block;margin-top:7px;font-size:10px;opacity:.8}.review-help{text-align:center;font-size:11px;line-height:1.8;color:var(--muted);padding:19px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:24px 0;border-top:1px solid var(--line)}.setting-row p{font-size:12px;color:var(--muted);margin-top:8px}.setting-row h3{font-size:14px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px}.two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.admin-list{max-height:430px;overflow:auto}.admin-entry{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.admin-entry span{overflow-wrap:anywhere}.admin-entry small{display:block;color:var(--muted);margin-top:4px}.import-preview{padding:13px;background:#eef2e4;border-radius:7px;font-size:12px;margin:15px 0;line-height:1.8}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:var(--green);color:white;padding:55px 12%;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.auth-story .brand{padding:0;color:white}.auth-story .brand small{color:#aebfae}.auth-story h1{font-family:var(--serif);font-size:47px;line-height:1.7;font-weight:400;margin:45px 0 26px}.auth-story .eyebrow{color:#b1c3a3}.auth-story p{font-size:13px;color:#bacdbb;max-width:330px}.auth-jp{font-family:var(--serif);font-size:92px;letter-spacing:15px;color:#d9e6b1;margin:35px 0}.auth-footer{font-size:10px;letter-spacing:2px;color:#a7bba7;line-height:1.8}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:45px 35px;background:#fffef9}.auth-form{max-width:365px;width:100%}.auth-form h2{font-size:27px;margin:14px 0}.auth-form>p{font-size:13px;color:var(--muted);margin-bottom:32px}.auth-switch{text-align:center;font-size:12px;color:var(--muted);margin-top:22px}.auth-form .btn{margin-top:10px}.recovery{padding:20px;background:#f1f4e5;border:1px solid #dce5c4;border-radius:9px;margin:20px 0;line-height:1.8;font-size:12px}.recovery code{display:block;overflow-wrap:anywhere;user-select:all;background:#fff;padding:12px;margin:12px 0;color:#375842}.error-box{padding:12px;color:#a9604e;font-size:12px;background:#f9eee6;border-radius:7px;margin-bottom:14px}.loading{padding:70px;text-align:center;color:var(--muted);font-size:13px}dialog{width:min(620px,calc(100% - 30px));border:1px solid var(--line);border-radius:16px;padding:32px;background:#fffef9;color:#263c35;max-height:90vh;overflow:auto}dialog::backdrop{background:#1f332d70;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.dialog-head h2{font-family:var(--serif);font-size:26px;font-weight:500}.dialog-head button{font-size:23px;color:var(--muted);padding:7px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:99;background:#244b40;color:#fff;border-radius:10px;padding:13px 22px;font-size:13px;box-shadow:0 5px 30px #203d3226;max-width:90vw;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}.small-copy{font-size:12px;color:var(--muted);line-height:1.9}.no-margin{margin:0}.space-top{margin-top:20px}.account-info{font-size:12px;color:var(--muted);padding:15px 0}.admin-form h3{margin-bottom:22px}.mobile-brand{display:none}footer{font-size:10px;color:#a0a99b;margin-top:34px;text-align:center;letter-spacing:1px}
@media(min-width:1600px){.content{padding-top:50px}.hero{min-height:260px}}
@media(max-width:1150px){.content{padding:30px}.topbar{padding:0 30px}.layout{grid-template-columns:200px 1fr}.sidebar{padding-left:15px;padding-right:15px}.entry-grid{grid-template-columns:repeat(2,1fr)}.stat{padding:18px}.hero-art{font-size:80px}.admin-grid{grid-template-columns:1fr}.auth-story h1{font-size:38px}}
@media(max-width:760px){h1{font-size:26px}.layout{display:block}.sidebar{height:auto;position:fixed;bottom:0;top:auto;width:100%;padding:8px 8px max(8px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);z-index:10}.sidebar .brand,.sidebar-bottom,.nav-caption{display:none}.sidebar nav{display:flex;justify-content:space-around;gap:3px}.nav{display:flex;flex-direction:column;gap:5px;padding:8px 12px;font-size:10px;min-width:56px}.nav .badge{display:none}.nav svg{height:18px}.topbar{height:62px;padding:0 20px}.topbar .date{display:none}.content{padding:25px 19px 110px}.page-head{margin-bottom:22px;align-items:start}.hero{padding:28px 25px}.hero h2{font-size:23px}.hero-art{font-size:65px;letter-spacing:5px;padding-right:0}.hero p{max-width:210px}.stat-grid{grid-template-columns:repeat(2,1fr);gap:11px;margin:17px 0 25px}.stat{padding:17px 19px}.stat-value{font-size:27px;margin-top:10px}.columns{grid-template-columns:1fr;gap:17px}.panel{padding:22px}.entry-grid{grid-template-columns:1fr 1fr;gap:11px}.entry{padding:18px 15px;min-height:210px}.entry h3{font-size:22px}.entry.grammar h3{font-size:17px}.entry-footer{flex-wrap:wrap;gap:8px}.search{width:100%;min-width:0}.toolbar{gap:13px}.toolbar .tabs{width:100%;justify-content:center}.tab{flex:1}.review-card{padding:27px 23px}.review-prompt h2{font-size:36px}.review-prompt.grammar h2{font-size:27px}.ratings{gap:7px}.rate{padding:13px 2px}.review-help{font-size:10px}.page-head .btn{padding:10px 13px;font-size:11px;white-space:nowrap}.auth{grid-template-columns:1fr}.auth-story{min-height:auto;padding:28px}.auth-story h1{font-size:29px;margin:22px 0 12px}.auth-story .eyebrow,.auth-jp,.auth-story .auth-footer{display:none}.auth-story p{font-size:12px;max-width:none}.auth-form-wrap{padding:35px 26px 50px}.auth-form h2{font-size:24px}.setting-row{align-items:flex-start}.setting-row .btn{flex-shrink:0;padding:10px 14px}.two{grid-template-columns:1fr}.hero .btn{margin-top:20px}.admin-grid{grid-template-columns:1fr}.sync{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* One-card learning and its dedicated detail screen. */
.study-wrap{max-width:760px;margin:0 auto}.study-progress{display:flex;justify-content:space-between;gap:16px;margin:26px 0 17px;color:var(--muted);font-size:12px}.study-progress strong{font-weight:500;color:var(--green);margin:0 3px}.study-card{position:relative;background:#fffefb;border:1px solid var(--line);border-radius:20px;padding:30px 42px;box-shadow:0 12px 38px #244b4008}.study-card-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.study-word{text-align:center;padding:48px 0 28px}.study-word h2{font-size:48px;line-height:1.6;overflow-wrap:anywhere;outline:none}.study-word.grammar h2{font-size:32px}.study-word .reading{margin:13px 0 0;font-size:15px}.study-hint{font-size:12px;color:var(--muted);margin-top:28px}.study-detail-button{display:flex;margin:0 auto 34px;min-width:230px}.study-actions{display:flex;gap:12px;justify-content:center;border-top:1px solid var(--line);padding-top:24px;margin-top:22px}.study-actions .btn{min-width:145px}.study-back{display:block;margin:20px 0 0;padding-left:0}.study-detail .study-word{padding:20px 0 26px;text-align:left}.study-detail .study-word h2{font-size:34px}.study-detail .study-word.grammar h2{font-size:28px}.study-answer{border-top:1px dashed #d4dfcc;padding-top:8px}.study-answer .meaning{font-size:21px;margin:14px 0 24px}.study-answer .notes{font-size:12px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0 24px}.study-answer .eyebrow{margin-top:20px}.study-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:18px 0}.study-bottom .small-copy{text-align:right;font-size:11px}.study-bottom button:disabled{cursor:default}.study-detail .study-actions{position:sticky;bottom:12px;background:#fffefbf5;padding:16px 0;margin-bottom:-10px;backdrop-filter:blur(8px)}
@media(max-width:760px){.study-card{padding:23px;border-radius:15px}.study-word{padding-top:38px}.study-word h2{font-size:38px}.study-word.grammar h2{font-size:27px}.study-detail .study-word h2{font-size:30px}.study-detail .study-word.grammar h2{font-size:25px}.study-actions{gap:9px}.study-actions .btn{min-width:0;flex:1;padding:12px 9px;font-size:12px}.study-progress{font-size:11px}.study-detail .study-actions{bottom:85px}.study-answer .meaning{font-size:19px}.study-bottom{align-items:flex-start}.study-bottom .small-copy{max-width:180px}}
.study-sources{font-size:11px;color:var(--muted);margin:20px 0;overflow-wrap:anywhere}.study-sources summary{cursor:pointer;padding:8px 0}.study-sources p{white-space:pre-wrap;margin-top:10px}
/* Keep the action row after the examples so short screens never obscure the text. */
.study-detail .study-actions{position:static;backdrop-filter:none;margin-bottom:0}

.excerpt{margin:0 0 1rem}.excerpt summary{cursor:pointer}.excerpt summary small{display:block;margin-top:.45rem}.excerpt-answer{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.excerpt summary strong{overflow-wrap:anywhere}#reading-card-form textarea{min-height:7em}
