@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans','Noto Sans SC',sans-serif;color:#242824;background:#f4f3ed}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a{cursor:pointer}.top{height:74px;padding:0 max(24px,calc((100vw - 1120px)/2));display:flex;align-items:center;justify-content:space-between;background:#f4f3ed;border-bottom:1px solid #dedfd8}.top a{color:#565d54;text-decoration:none}.brand{font-size:20px;font-weight:700}.brand i{font-style:normal;color:#9cac8b}main{max-width:1120px;margin:auto;padding:34px 24px 100px}.hero{background:#e5e9dc;border-radius:22px;padding:50px 58px 30px;min-height:365px;display:flex;flex-direction:column;align-items:flex-start}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.18em;color:#728366}.hero h1{font-size:clamp(34px,5vw,60px);line-height:1.18;letter-spacing:-.04em;margin:20px 0}.hero h1 em{font-style:normal;color:#697f5d}.hero p{max-width:610px;line-height:1.85;color:#596457;margin:0}.hero-bottom{display:flex;justify-content:space-between;align-items:center;align-self:stretch;margin-top:auto;padding-top:32px;color:#687565;font-size:13px}.hero-bottom #progress{font-weight:700;color:#38513e}.upload{display:flex;align-items:center;gap:28px;flex-wrap:wrap;margin:24px 0 50px;padding:25px 30px;border:1px solid #dce1d7;border-radius:18px;background:#fff}.upload h2,.section-heading h2{margin:0 0 8px;font-size:23px}.upload p{margin:0;color:#747d71;font-size:14px}.upload-button,.primary{margin-left:auto;border:0;border-radius:10px;background:#2d5438;color:white;padding:14px 20px;font-weight:600;white-space:nowrap}.upload-button input{display:none}#upload-state{font-size:13px;color:#526854}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:17px}.section-heading h2{margin:6px 0 0}.section-heading>span{color:#768073;font-size:13px}#items{display:grid;gap:10px}.item{display:flex;align-items:center;gap:18px;padding:20px 24px;width:100%;border:1px solid #e1e4dc;border-radius:15px;background:#fff;text-align:left;color:inherit}.item:hover{border-color:#7b9676;transform:translateY(-1px)}.number{width:42px;height:42px;border-radius:10px;background:#e9eee5;color:#4b694b;display:grid;place-items:center;font-weight:700}.item .text{flex:1;min-width:0}.item strong{display:block;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item small{display:block;margin-top:7px;color:#869084}.state{font-size:13px;color:#6a7968;padding:8px 12px;background:#edf1e9;border-radius:99px}.state.ready{background:#daeadc;color:#28643a}.state.review{background:#f6ebd7;color:#805f2d}dialog{width:min(940px,calc(100vw - 28px));max-height:calc(100vh - 38px);padding:0;border:0;border-radius:20px;box-shadow:0 25px 80px #1b302744;overflow:auto}dialog::backdrop{background:#17251ab3}.close{position:sticky;top:12px;float:right;z-index:5;border:0;background:#fff;border-radius:99px;width:42px;height:42px;font-size:28px;color:#627461;box-shadow:0 2px 10px #0002;margin:12px}.detail-content{padding:50px clamp(22px,6vw,68px) 68px}.detail-content h1{font-size:clamp(26px,4vw,42px);margin:12px 0 14px}.detail-content .problem{line-height:1.9;background:#f6f7f2;border-left:4px solid #829e77;padding:16px 20px;white-space:pre-wrap}.stage{color:#667664;font-size:14px}.board{margin-top:34px;border-radius:20px;background:#f9faf6;padding:30px}.board-head{border-bottom:1px solid #dee5d9;padding-bottom:20px}.board-head h2{font-size:26px;margin:4px 0}.board-head p{color:#647260;margin:0}.diagram{width:100%;max-height:320px;margin:22px auto;background:#fff;border-radius:14px}.step{display:grid;grid-template-columns:38px 1fr;gap:14px;margin:24px 0}.step-num{background:#dfe9d9;color:#385d40;border-radius:99px;width:34px;height:34px;display:grid;place-items:center;font-weight:700}.step h3{margin:2px 0 9px}.step p{line-height:1.8;margin:5px 0}.step .math{font-family:Georgia,serif;color:#26452f;background:#edf2e9;border-radius:9px;padding:12px 15px;overflow:auto}.why{color:#566751}.answer{border-top:1px solid #dee5d9;padding-top:22px;font-size:20px;font-weight:700}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.actions button{margin:0}.secondary{border:1px solid #aac0a4;color:#355b39;border-radius:10px;background:#fff;padding:13px 18px}.teach{margin-top:30px;padding:24px;border-radius:14px;background:#eaf0e5}.teach textarea,.reflection textarea{width:100%;min-height:85px;border:1px solid #c5d4c0;border-radius:10px;padding:12px;resize:vertical;margin:12px 0}.teach-log{display:grid;gap:12px;margin:14px 0}.bubble{padding:13px 16px;border-radius:12px;line-height:1.7;background:#fff}.bubble.me{background:#d7e5d5;margin-left:10%}.muted{color:#788376}.models{margin-top:30px;font-size:13px;color:#6d796c}.models summary{cursor:pointer}.models table{border-collapse:collapse;width:100%;margin-top:10px}.models td,.models th{padding:8px;text-align:left;border-bottom:1px solid #e1e5de}@media(max-width:650px){.top{height:60px}.hero{padding:34px 28px;min-height:380px}.hero-bottom{align-items:start;gap:12px;flex-direction:column}.upload{padding:22px}.upload-button{margin-left:0}.item{padding:15px;gap:12px}.state{font-size:11px}.detail-content{padding-top:55px}}
.learning{margin-top:36px;padding:24px;border:1px solid #dfe8db;border-radius:14px;background:#f7f9f4}.learning h2{margin-top:0}.learning p{line-height:1.8}.learning summary{cursor:pointer;margin:18px 0}.learning .teach-log{max-height:420px;overflow:auto}.learning .secondary{margin-top:14px}
.source-diagram{display:block;max-width:100%;max-height:300px;object-fit:contain;margin:22px auto;border:1px solid #e2e8de;border-radius:12px;background:#fff;padding:12px}.problem .katex-display{margin:.4em 0}.step .math .katex-display{margin:.6em 0}.step .math{line-height:1.75}
.standard-diagram{margin:20px 0;padding:14px;background:#fff;border:1px solid #e2e8de;border-radius:12px;text-align:center}.standard-diagram svg{width:100%;max-height:290px}.standard-diagram text{font:17px 'DM Sans',sans-serif;fill:#3b593d}.standard-diagram figcaption{color:#6d7e6b;font-size:13px;margin-top:4px}
.board-diagram,.source-figure{margin:20px 0;padding:14px;background:#fff;border:1px solid #e2e8de;border-radius:12px;text-align:center}.board-diagram .diagram,.source-figure .source-diagram{margin:0 auto}.board-diagram figcaption,.source-figure figcaption{color:#60715e;font-size:12px;line-height:1.6;margin-top:8px}
.prepared-reference{margin:20px 0;border:1px solid #dce5d8;border-radius:14px;background:#f8faf6}.prepared-reference>summary{cursor:pointer;padding:17px 20px;color:#375840;font-weight:700}.prepared-reference .board{margin:0;border-radius:0 0 14px 14px}.detail-content>.actions{margin:22px 0 30px}.detail-content>.actions .primary{margin-left:0}
.speak-step{margin-left:10px;border:1px solid #b5cab0;background:#fff;color:#426746;border-radius:99px;padding:5px 11px;font-size:12px;font-weight:600;vertical-align:middle}.speak-step:disabled{opacity:.6}
.upload .billing-policy{margin-top:10px;max-width:680px;color:#506a54;font-size:12px;line-height:1.65}.billing-policy #balance-note{font-weight:700}.models p{line-height:1.8;padding:10px 0}
.prep-progress{margin:18px 0 24px;padding:18px 20px;border:1px solid #dce6d7;border-radius:12px;background:#f7faf5}.prep-progress p{margin:0 0 14px;color:#355b39;font-weight:700}.prep-progress ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 12px;padding:0}.prep-progress li{padding:7px 10px;border-radius:8px;background:#e9ece7;color:#7b857b;font-size:12px}.prep-progress li.done{background:#e0ecdf;color:#55745a}.prep-progress li.current{background:#2d5438;color:#fff}.prep-progress small{display:block;color:#68766a;line-height:1.6}

.timing{color:#506a54;line-height:1.7;font-size:14px}.input-recovery{margin:20px 0;padding:18px;background:#f8faf6;border:1px solid #dce5d8;border-radius:12px}.input-recovery p{line-height:1.7}.input-recovery .upload-button{display:inline-flex}.input-recovery input[type=file]{max-width:100%}#queue-status{max-width:60%;line-height:1.7;text-align:right}
@media(max-width:600px){#queue-status{max-width:55%;font-size:12px}.input-recovery{padding:14px}}

.recovery-photo{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;margin-top:12px}.input-recovery summary{cursor:pointer;color:#375840}
.step{grid-template-columns:38px minmax(0,1fr)}.step>div:last-child{min-width:0}.step .math{max-width:100%}.math-line{max-width:100%;overflow-x:auto;overflow-y:hidden}.math-line+.math-line{margin-top:8px}.math-line .katex-display{margin:.2em 0}.board,.prepared-reference,.detail-content{min-width:0}
.math-scroll-hint{font-family:'DM Sans','Noto Sans SC',sans-serif;font-size:12px;color:#5a705d;margin:0 0 8px!important}.math-line:focus-visible{outline:2px solid #729678;outline-offset:2px}@media(max-width:600px){.step .math{font-size:13px}}
