:root{color:#152721;font-synthesis:none;--paper:#fff;--line:#dce5df;--muted:#51645b;--green:#155640;--green-dark:#103e30;--mint:#e4f1e7;--negative:#972d2b;--radius:18px;background:#f5f7f6;font:16px/1.55 system-ui,-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}*,:before,:after{box-sizing:border-box}body{min-width:280px;margin:0}h1,h2,p{margin:0}h1{letter-spacing:-.035em;overflow-wrap:anywhere;font-size:clamp(2rem,5vw,3.25rem);line-height:1.16}h2{font-size:1.24rem;line-height:1.35}p,li,dd,strong,span{overflow-wrap:anywhere}a{color:var(--green);text-underline-offset:.2em}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled,input:disabled,textarea:disabled{cursor:not-allowed}:focus-visible{outline-offset:3px;outline:3px solid #398b64}small,.muted{color:var(--muted)}small{font-size:.875rem}.wrap{overflow-wrap:anywhere}.preserve{white-space:pre-wrap}.negative{color:var(--negative)}.full{width:100%}.skip-link{background:var(--paper);z-index:5;padding:.7rem 1rem;position:fixed;top:-100px;left:1rem}.skip-link:focus{top:.5rem}.site-header{background:var(--paper);border-bottom:1px solid var(--line)}.header-inner,.container,.login-layout{width:min(100% - 3rem,68rem);margin-inline:auto}.header-inner{align-items:center;gap:clamp(1rem,4vw,3.5rem);min-height:4.4rem;display:flex}.brand{color:#162d23;flex-shrink:0;align-items:center;gap:.6rem;font-size:1.05rem;font-weight:750;text-decoration:none;display:inline-flex}.brand-mark{background:var(--green-dark);color:#fff;border-radius:8px;place-items:center;width:2rem;height:2rem;font-size:.95rem;display:grid}.site-header nav{align-items:center;gap:.25rem;display:flex}.site-header nav a{white-space:nowrap;color:var(--muted);border-radius:8px;padding:.55rem .7rem;font-size:.92rem;font-weight:600;text-decoration:none}.site-header nav a:hover,.site-header nav a.active{background:var(--mint);color:var(--green-dark)}.profile{align-items:center;gap:.75rem;min-width:0;margin-left:auto;display:flex}.profile>span{text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.9rem;overflow:hidden}.profile button{flex-shrink:0}.container{padding:clamp(2rem,5vw,4.2rem) 0 4rem}.page-heading{flex-wrap:wrap;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.65rem;display:flex}.page-heading p{color:var(--muted);margin-top:.65rem}.back-link{margin-bottom:.7rem;font-size:.9rem;font-weight:650;display:inline-block}.section-label{color:var(--green);font-size:.9rem;font-weight:680}.section-heading,.actions,.editor-footer{flex-wrap:wrap;align-items:center;gap:.55rem;display:flex}.section-heading,.editor-footer{justify-content:space-between}.panel,.empty,.notice,.confirm{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);min-width:0;padding:clamp(1rem,3vw,1.6rem)}.panel+.panel,.panel+.empty,.trend{margin-top:1rem}.notice{color:var(--muted);border-radius:10px;justify-content:space-between;align-items:center;gap:.65rem;margin:.75rem 0;padding:.7rem 1rem;display:flex}.notice.error{color:var(--negative);background:#fff2ef;border-color:#edc6bf}.empty{min-height:8rem;color:var(--muted);flex-direction:column;justify-content:center;align-items:start;gap:.5rem;display:flex}.confirm{background:#fff5f2;border-color:#f0d0c9;margin:1rem 0}.confirm p{color:#67443d;margin:.35rem 0 .8rem}.button{text-align:center;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:.5rem;min-height:2.75rem;padding:.6rem 1rem;font-weight:660;line-height:1.3;text-decoration:none;display:inline-flex}.button.primary{background:var(--green);color:#fff}.button.primary:hover:not(:disabled){background:var(--green-dark)}.button.subtle{background:var(--paper);color:var(--green-dark);border-color:var(--line)}.button.subtle.negative{color:var(--negative)}.button.subtle:hover:not(:disabled){background:#edf3ef;border-color:#a8c3b4}.button.compact{min-height:2.35rem;padding:.45rem .65rem;font-size:.875rem}.button:disabled{opacity:.6}.button.danger{color:#fff;background:#a33932}.button.danger:hover:not(:disabled){background:#842d29}.login-layout{grid-template-columns:.86fr 1.14fr;align-items:center;gap:clamp(2rem,6vw,6.1rem);min-height:calc(100svh - 4.4rem);padding:3rem 0;display:grid}.login-copy h1{margin:.75rem 0 1rem;font-size:clamp(2.8rem,6vw,5rem);line-height:1.04}.login-copy>p{max-width:24rem;color:var(--muted);font-size:1.07rem}.login-form,.form{gap:.62rem;display:grid}.login-form{max-width:24rem;margin-top:1.75rem}.login-form .button{margin-top:.15rem}.login-form .notice{margin:0}.login-visual{aspect-ratio:1.1;background:#dfeee4;border:1px solid #d4e6da;border-radius:30px;place-items:center;display:grid;position:relative;overflow:hidden}.sample-stack{isolation:isolate;width:71%;position:relative;transform:rotate(-4deg)}.sample-stack:before,.sample-stack:after{content:"";z-index:-1;border-radius:18px;position:absolute;inset:0}.sample-stack:before{background:#a8cbb3;transform:translateY(1rem)rotate(-5deg)}.sample-stack:after{background:#bcdac4;transform:translateY(.7rem)rotate(8deg)}.sample-card{background:var(--paper);border-radius:18px;align-content:center;gap:.8rem;min-height:clamp(9rem,19vw,15rem);padding:clamp(1rem,3vw,2rem);display:grid;box-shadow:0 15px 35px #193b1b17}.sample-card span{color:var(--muted);font-size:.875rem}.sample-card strong{color:var(--green-dark);letter-spacing:-.035em;font-size:clamp(1.1rem,3.8vw,2.5rem);line-height:1.08}.sample-card div{color:var(--muted)}.home-grid{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.home-card{border-radius:var(--radius);border:1px solid #0000;flex-direction:column;align-items:start;min-width:0;min-height:14rem;padding:clamp(1.2rem,3vw,2.1rem);text-decoration:none;display:flex}.home-card h2{color:inherit;margin:.7rem 0 .35rem;font-size:clamp(1.3rem,2.6vw,1.9rem)}.home-primary{background:var(--green-dark);color:#fff}.home-primary p{color:#d2e7db}.home-primary:hover{background:#184e3d}.home-secondary{color:#173d2e;background:#deeee3;border-color:#d2e7da}.home-secondary:hover{background:#d4eadc}.home-compact{background:var(--paper);color:#20372b;border-color:var(--line);min-height:auto}.home-compact p{color:var(--muted)}.home-compact h2{margin-top:0;font-size:1.18rem}.home-compact:hover{border-color:#8caa99}.card-symbol{background:#ffffff26;border-radius:9px;place-items:center;width:2.55rem;height:2.55rem;font-size:1.2rem;font-weight:750;display:grid}.home-secondary .card-symbol{background:#fff9}.card-cta{margin-top:auto;padding-top:1.15rem;font-size:.9rem;font-weight:700}.resume{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1.1rem;margin-bottom:1rem;display:flex}.resume-info{flex:18rem;min-width:0}.resume h2{margin:.28rem 0}.resume-progress{color:var(--muted);gap:.3rem;margin-top:.6rem;font-size:.9rem;display:grid}.resume-progress progress{max-width:20rem}.resume .confirm{width:100%;margin:0}.setup-layout,.result-grid{grid-template-columns:1.15fr .85fr;align-items:start;gap:1rem;display:grid}.setup-layout>.panel,.result-grid>.panel{margin:0}.choices{gap:.5rem;margin-top:.8rem;display:grid}.choice{border:1px solid var(--line);cursor:pointer;border-radius:10px;align-items:center;gap:.7rem;min-height:3.15rem;padding:.7rem .75rem;display:flex}.choice:has(input:checked){background:#edf6ef;border-color:#a2c8b0}.choice:has(input:disabled){cursor:not-allowed}.choice input{width:1.15rem;height:1.15rem;accent-color:var(--green);flex-shrink:0}.choice-label{flex:1;min-width:0;font-weight:600}.choice small{font-weight:400;display:block}.estimate{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;align-items:center;gap:.5rem;margin:1rem 0 .25rem;padding-top:.75rem;display:flex}.estimate strong{color:var(--green-dark);font-size:1.65rem}.setup-config>.button{margin-top:.75rem}.form label{font-weight:620}.book-password{width:min(100%,24rem)}.confirm .book-password{margin-bottom:.9rem}input:not([type=checkbox],[type=radio],[type=file]),textarea{width:100%;min-width:0;color:inherit;background:var(--paper);border:1px solid #b9cbbf;border-radius:9px;padding:.65rem .78rem;display:block}input[readonly]{background:#f1f4f2}textarea{resize:vertical;min-height:15rem;font-family:ui-monospace,Courier New,monospace}.editor-top{flex-wrap:wrap;justify-content:space-between;gap:1rem;display:flex}.editor-name{flex:16rem;max-width:30rem}.import-box{flex-direction:column;align-items:start;gap:.45rem;display:flex}.file-button{cursor:pointer;position:relative}.file-button input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.file-button:focus-within{outline-offset:3px;outline:3px solid #398b64}.format-help{background:#f0f5f1;border-radius:9px;margin:.6rem 0;padding:.65rem .8rem}summary{cursor:pointer}.format-help p{margin-top:.55rem}.format-help pre{white-space:pre-wrap;overflow-wrap:anywhere}.editor-footer{margin-top:.3rem}.preview-section{margin-top:1.35rem}.book-list,.entry-list,.history-list,.mistake-list{margin:0;padding-left:0;list-style:none}.book-list{padding:0 clamp(1rem,3vw,1.6rem)}.book-list>li,.history-list>li{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.9rem 0;display:flex}.book-list>li+li,.history-list>li+li{border-top:1px solid var(--line)}.book-info,.history-info{min-width:0}.book-name{overflow-wrap:anywhere;font-size:1.07rem;font-weight:680;display:inline-block}.book-info p{margin-top:.22rem;font-size:.9rem}.entry-list{gap:.75rem;margin-top:.8rem;display:grid}.entry-list>li{background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:1rem 1.25rem}.entry-list>li>strong{white-space:pre-wrap;font-size:1.16rem}.entry-list p{margin-top:.25rem}.attributes{gap:.75rem;margin:.85rem 0 0;display:grid}.attributes>div{border:1px solid var(--line);background:#f6f8f7;border-radius:9px;min-width:0;padding:.6rem .85rem}.attributes dt{color:var(--muted);overflow-wrap:anywhere;font-size:.875rem;font-weight:690}.attributes dd{white-space:pre-wrap;margin:.22rem 0 0}.training-layout{flex-direction:column;max-width:49rem;min-height:calc(100svh - 12rem);margin-inline:auto;display:flex}.training-top,.progress-row{justify-content:space-between;align-items:center;gap:.7rem;display:flex}.progress-panel{gap:.4rem;margin:.9rem 0 1.1rem;display:grid}.progress-row{font-size:.92rem}progress{width:100%;height:.58rem;color:var(--green);background:#e1e9e4;border:0;border-radius:99px;display:block;overflow:hidden}progress::-webkit-progress-bar{background:#e1e9e4;border-radius:99px}progress::-webkit-progress-value{background:var(--green);border-radius:99px}progress::-moz-progress-bar{background:var(--green);border-radius:99px}.flashcard{background:var(--paper);border:1px solid var(--line);border-radius:22px;flex:1;padding:clamp(1rem,5vw,2.4rem);box-shadow:0 6px 22px #172d2110}.prompt{text-align:center;align-content:center;gap:.85rem;min-height:13rem;display:grid}.prompt>div{white-space:pre-wrap;overflow-wrap:anywhere;font-size:clamp(1.65rem,4vw,2.8rem);font-weight:720;line-height:1.2}.answer{border-top:1px solid var(--line);padding-top:1.1rem}.answer-text{margin:.35rem 0 0;font-size:clamp(1.35rem,3vw,2rem);font-weight:680}.training-controls{z-index:1;padding:.75rem 0 max(.35rem, env(safe-area-inset-bottom));background:#f5f7f6f7;gap:.28rem;display:grid;position:sticky;bottom:0}.decision{gap:.6rem;display:flex}.decision .button{flex:1;min-height:3.2rem}.button.forget{color:#822e28;background:#f8e9e5;border-color:#eacdc6}.button.forget:hover:not(:disabled){background:#f4ded8}.undo{justify-self:center}kbd{opacity:.85;white-space:nowrap;border:1px solid;border-radius:.25rem;padding:.14rem .3rem;font:.76rem/1.25 system-ui,sans-serif}.metric-grid{grid-template-columns:repeat(3,1fr);gap:1rem;display:grid}.metric{align-content:start;gap:.3rem;min-width:0;display:grid}.metric span{color:var(--muted);font-size:.9rem}.metric strong{color:var(--green-dark);font-size:clamp(1.12rem,3.3vw,1.85rem);line-height:1.25}.result-meta{color:var(--muted);flex-wrap:wrap;align-items:baseline;gap:.5rem 1rem;margin-bottom:1rem;display:flex}.result-meta strong{color:#1e332a}.result-grid,.result-actions{margin-top:1rem}.round-table{border-collapse:collapse;width:100%;margin-top:.55rem}.round-table th,.round-table td{text-align:left;border-bottom:1px solid var(--line);padding:.5rem .4rem}.round-table tr:last-child>*{border-bottom:0}.round-table thead{color:var(--muted)}.mistake-list,.result-grid .muted{margin-top:.65rem}.mistake-list li{border-bottom:1px solid var(--line);padding:.55rem 0}.mistake-list li:last-child{border:0}.mistake-list summary strong{white-space:pre-wrap}.mistake-list summary span{color:var(--negative);margin-left:.6rem;font-size:.875rem}.history-info :is(time,p),.history-numbers span{color:var(--muted);font-size:.9rem}.history-numbers{text-align:right;display:grid}.history-numbers strong{color:var(--green);font-size:1.2rem}.chart{align-items:stretch;gap:.65rem;height:9rem;margin-top:1rem;font-size:.875rem;display:flex}.chart-scale{text-align:right;color:var(--muted);align-content:space-between;display:grid}.chart-scroll{flex:1;min-width:0;overflow:auto hidden}.chart ol{background:linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 100% 50%;border-bottom:1px solid var(--line);gap:.6rem;min-width:max-content;height:100%;margin:0;padding:0 .45rem;list-style:none;display:flex}.chart li{width:clamp(1.45rem,4vw,2.5rem)}.chart li a{justify-content:center;align-items:end;height:100%;display:flex}.chart li a:focus-visible{outline-offset:-2px}.chart li span{background:#2d7656;border-radius:4px 4px 0 0;width:72%;min-height:3px}.chart li a:hover span,.chart li a:focus span{background:#104531}.chart-dates{color:var(--muted);flex-wrap:wrap;justify-content:space-between;margin:.45rem 0 0 3.1rem;font-size:.875rem;display:flex}@media (width<=700px){.header-inner,.container,.login-layout{width:calc(100% - 2rem)}.header-inner{flex-wrap:wrap;gap:.2rem .55rem;padding:.55rem 0}.site-header nav{order:3;width:100%}.login-layout{grid-template-columns:1fr;align-content:start;gap:1.5rem;min-height:auto}.login-visual{aspect-ratio:auto;min-height:13rem;max-height:16rem}.login-form{max-width:none}.home-card{min-height:12rem}.home-compact{min-height:auto}.setup-layout,.result-grid{grid-template-columns:1fr}.training-layout{min-height:calc(100svh - 9rem)}.training-layout .prompt{min-height:11rem}.training-layout kbd{display:none}.container:has(.training-layout){padding-block:1.3rem .5rem}}@media (width<=400px){.home-grid{grid-template-columns:1fr;gap:.65rem}.home-card{min-height:auto}.profile>span{display:none}.metric-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}.history-numbers{text-align:left}}
