:root{font-family:system-ui,"Microsoft YaHei",sans-serif;color:#172b35;background:#f0f4f8}*{box-sizing:border-box}body{margin:0}header,main{max-width:760px;margin:auto;padding:20px}header{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between}h1{font-size:28px;margin:12px 0}h2{font-size:21px}p{line-height:1.7}a{color:#166a59}small,.muted{color:#52616b}.eyebrow{color:#166a59;font-weight:700}.card{background:white;border:1px solid #dbe3e9;border-radius:20px;padding:24px;margin:20px 0}label{display:block;margin:16px 0;font-weight:600}input,select,button,.button{font:inherit;min-height:48px;border-radius:12px;padding:12px;border:1px solid #b8c8cf}input,select{display:block;width:100%;margin-top:8px;background:white;color:inherit}button,.button{display:inline-block;background:#16745c;color:white;text-decoration:none;cursor:pointer}button:disabled{opacity:.6;cursor:wait}.secondary{background:white;color:#166a59}#notice{color:#93441b}progress{width:100%;height:12px;accent-color:#16745c}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #635bd8;outline-offset:3px}@media(max-width:400px){header,main{padding:16px}.card{padding:16px}h1{font-size:25px}}
:root{color:#1e2b40;background:#f6f8fc;--brand:#315fc4}body{background:linear-gradient(155deg,#eaf2fc,#f5f3fb 55%,#f7f9fc);min-height:100dvh}header,main{max-width:720px}header{align-items:center;padding-bottom:8px}main{padding-top:8px}h1{font-size:28px;line-height:1.35}h2{font-size:22px}.card{border:1px solid #dce4f0;box-shadow:none;border-radius:22px;background:#fff}.eyebrow,a{color:var(--brand)}button,.button{border:1px solid #dce4f0;min-height:46px;border-radius:14px;box-shadow:none}.primary{background:var(--brand);color:#fff;width:100%;border-color:var(--brand)}.secondary,.quiet,.choice,.topic{background:#fff;color:#1e2b40}.quiet{border-color:transparent;color:#526b95}.choices{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.choice[aria-pressed=true]{background:#eaf0ff;color:#315fc4;border-color:#315fc4}.topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.topic{text-align:left;padding:14px;display:flex;flex-direction:column;gap:7px}.topic b{font-size:17px}.topic span,.topic small{font-size:13px;line-height:1.5}.topic[aria-pressed=true]{border:2px solid #315fc4;background:#f2f6ff}.topic:disabled{opacity:1;background:#f5f7fa;color:#718096;cursor:default}.chat-head{display:flex;align-items:start;gap:12px;justify-content:space-between}.chat-head h2{margin-top:8px}.messages{display:flex;flex-direction:column;gap:16px;margin:24px 0}.message{max-width:90%;padding:14px 16px;background:#f1f5fb;border-radius:16px;overflow-wrap:anywhere}.message.user{align-self:flex-end;background:#e9efff}.message p{margin:6px 0 0}.message small{color:#526b95}.review{background:#f6f8fc;border:1px solid #dce4f0;padding:16px;border-radius:16px;margin-bottom:20px}.review h3{margin-top:0}textarea{font:inherit;font-size:18px;line-height:1.6;width:100%;min-height:100px;resize:vertical;border:1px solid #c9d7eb;border-radius:14px;padding:14px;color:#1e2b40}.composer-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.composer-actions .primary{width:auto;flex:1}.muted{font-size:14px;color:#627189}details{margin-top:20px;line-height:1.7}summary{cursor:pointer;min-height:44px;display:flex;align-items:center}#working{color:#526b95}progress{accent-color:#315fc4}@media(max-width:360px){.topics{grid-template-columns:1fr}.chat-head{flex-wrap:wrap}.card{padding:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Interview is a conversation surface, independent of the four-answer UI. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.chat-mode{position:fixed;inset:0;top:var(--chat-top,0px);height:min(var(--chat-height,100dvh),100dvh);min-height:0;overflow:hidden;background:#ededed}
.chat-mode>header{display:none}.chat-mode main{height:100%;max-width:720px;padding:0;display:flex;flex-direction:column;background:#ededed}.chat-mode main>p:not(#notice):not(#working),.chat-mode main>h1,.chat-mode #courses{display:none}.chat-mode #setup{flex:1;min-height:0;display:flex}.chat-mode .chat{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}
.chat-mode .chat-head{flex:none;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;padding:10px 12px;background:#f7f7f7;border-bottom:1px solid #ddd}.chat-title{flex:1;min-width:0}.chat-title h2{margin:0!important;font-size:17px;line-height:1.5}.chat-title span{font-size:12px;color:#77818b}.chat-mode .chat-head button{padding:8px;min-width:44px;background:transparent;font-size:14px;color:#58616c}.chat-mode .chat-head .chat-back{font-size:32px;line-height:1;padding:0}
.chat-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 14px 22px;scroll-padding-bottom:16px}.chat-tip{font-size:12px!important;text-align:center;color:#899097;margin:2px 0 22px;line-height:1.6}.chat-mode .messages{margin:0;gap:22px}.chat-mode .message{display:flex;gap:10px;align-items:flex-start;max-width:100%;padding:0;border-radius:0;background:none;align-self:stretch}.chat-mode .message.user{flex-direction:row-reverse;background:none}.avatar{display:flex;flex:0 0 36px;height:36px;align-items:center;justify-content:center;border-radius:9px;background:#dce6da;color:#46604a;font-family:Georgia,serif;font-size:24px}.user .avatar{background:#dce6f5;color:#49617c;font-family:inherit;font-size:14px}.bubble{position:relative;max-width:calc(100% - 92px);padding:11px 13px;border-radius:4px 12px 12px;background:white;color:#25302c}.bubble:before{content:'';position:absolute;top:13px;left:-6px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:7px solid white}.user .bubble{background:#cdecb5;border-radius:12px 4px 12px 12px}.user .bubble:before{left:auto;right:-6px;border-right:0;border-left:7px solid #cdecb5}.chat-mode .message small{display:none}.chat-mode .message p{font-size:16px;line-height:1.65;margin:0;white-space:pre-wrap}.chat-mode .review{margin:22px 0 0 46px;background:white;border:1px solid #e0e3df;border-radius:12px;padding:16px}.chat-mode .review h3{font-size:16px}.chat-mode .review p{font-size:14px;line-height:1.65}.chat-mode .review .primary{font-size:15px}
.chat-mode #answer-form{flex:none;padding:10px 12px max(8px,env(safe-area-inset-bottom));background:#f7f7f7;border-top:1px solid #ddd}.chat-mode .composer-actions{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:8px;margin:0}.chat-mode textarea{min-height:44px;height:44px;max-height:188px;overflow-y:hidden;overscroll-behavior:contain;resize:none;border:1px solid #e3e5e7;border-radius:8px;padding:9px 10px;font-size:16px;line-height:24px;flex:1;min-width:0}.chat-mode .composer-actions button{flex:none;width:auto;min-height:44px;padding:8px 12px;border-radius:8px;font-size:15px}.chat-mode #record{max-width:84px;background:transparent;border-color:#d6dce1;padding:8px}.chat-mode #record-hint{margin:6px 0 0;font-size:11px;line-height:1.4;color:#858b90;text-align:center}.chat-mode #working,.chat-mode #notice{flex:none;background:#f7f7f7;margin:0;padding:0 14px;font-size:13px;line-height:1.5}.chat-mode #working:not(:empty),.chat-mode #notice:not(:empty){padding:6px 14px}.chat-mode button:focus-visible,.chat-mode textarea:focus-visible{outline:2px solid #315fc4;outline-offset:2px}
@media(min-width:721px){.chat-mode main{border-left:1px solid #ddd;border-right:1px solid #ddd}.chat-mode .chat-scroll{padding:22px 24px}}

[hidden]{display:none!important}.fact-row{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #e3e8ed;padding:10px 0}.fact-row span{min-width:0;overflow-wrap:anywhere}.fact-row small{color:#687789}#new-learning{margin:16px 0;width:100%}

#courses .button{display:block;text-align:center;text-decoration:none}#courses progress{display:block;width:100%;margin:14px 0}
