:root{font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#303343;background:#f8f9fc;font-synthesis:none;--purple:#6857df;--muted:#9698a9;--border:#e8e9f1}
*{box-sizing:border-box}body{margin:0;height:100vh;height:100dvh;display:flex;flex-direction:column}button,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,textarea:focus-visible{outline:3px solid #beb4ff;outline-offset:3px}[hidden]{display:none!important}.topbar{height:83px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.9)}.brand{display:flex;gap:12px;align-items:center}.brand-mark{font-family:ui-monospace,monospace;background:#eeeafd;color:var(--purple);font-weight:800;font-size:19px;width:42px;height:42px;border-radius:13px;display:grid;place-items:center}.brand strong{font-size:16px;letter-spacing:.5px}.brand-divider{margin:0 7px;color:#d1d0da;font-weight:400}.brand-subtitle{font-weight:500;font-size:14px}.brand-note{display:block;font-size:11px;color:var(--muted);margin-top:4px;letter-spacing:1px}.new-chat{background:#fff;border:1px solid #dedeea;border-radius:9px;padding:9px 14px;color:#5e6073;font-size:13px;transition:background .2s}.new-chat span{font-size:19px;line-height:14px;margin-right:3px}.new-chat:hover{background:#f1effc}.new-chat:disabled{opacity:.5}main{flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#dcdce8 transparent}.chat-container{max-width:800px;margin:0 auto;padding:32px 28px 24px}.intro{text-align:center;margin:0 0 26px}.avatar{display:inline-block;flex-shrink:0;background-image:url('/avatar-source.png');background-size:845.745% 1109.575%;background-position:48.502% 22.445%;background-color:#eeebe5;border-radius:14px;width:36px;height:36px}.hero-avatar{width:72px;height:72px;border-radius:21px;box-shadow:0 5px 16px #3f314c0a;border:3px solid #fff}.eyebrow{font-size:11px;color:#9185b3;letter-spacing:3px;margin:13px 0 7px}h1{font-size:26px;letter-spacing:.5px;line-height:1.45;font-weight:650;margin:0}h1 span{color:var(--purple);margin-left:6px}.intro-subtitle{font-size:13px;color:#9193a4;margin:9px 0 0}.welcome-card{border:1px solid var(--border);border-radius:18px;padding:25px 28px;background:#fff;box-shadow:0 5px 28px #30325203;font-size:14px;line-height:1.85}.hello{margin:0 0 22px;font-size:14px;color:#444457}.hello span{margin-left:3px}.mobile-break{display:none}.welcome-section{display:flex;gap:12px;margin-top:22px}.section-icon{width:30px;height:30px;border-radius:9px;font-size:16px;display:grid;place-items:center;flex-shrink:0}.lavender{background:#f1edff}.blue{background:#ebf4ff}.amber{background:#fff4df}.welcome-section>div{flex:1;min-width:0}.welcome-section h2{font-size:14px;margin:1px 0 5px;font-weight:650;color:#3b3a50}.welcome-section p{margin:0;color:#77788a}.welcome-section strong{font-weight:600;color:#545169}.steps{display:flex;list-style:none;gap:6px;padding:0;margin:10px 0 9px;flex-wrap:wrap}.steps li{flex:1;min-width:95px;display:flex;align-items:center;gap:6px;font-size:11px;background:#f7f6fd;color:#706887;padding:6px 8px;border-radius:6px;white-space:nowrap}.steps b{font-family:ui-monospace,monospace;color:#a99bcf;font-size:10px;font-weight:500}.steps li:first-child{background:#eee9ff;color:#6a50cd}.steps li:first-child b{color:#8a6be5}.notice-section{padding-top:19px;border-top:1px dashed var(--border)}.agreements{margin:0;padding-left:18px;color:#77788a;font-size:13px}.agreements li{padding-left:2px;margin-bottom:5px}.start-lesson{display:flex;gap:24px;align-items:center;margin:17px 0 0;padding:12px 17px;background:#f0edfe;color:#6b56ce;border:1px solid #e5dffc;border-radius:10px;font-size:13px;transition:all .2s}.start-lesson span{font-size:20px;line-height:16px}.start-lesson:hover{background:#e9e2ff;transform:translateY(-1px)}.start-lesson:disabled{opacity:.5;transform:none}.composer-area{flex-shrink:0;width:min(800px,100%);margin:auto;padding:12px 28px max(13px,env(safe-area-inset-bottom));background:#f8f9fc}.composer{background:#fff;border:1px solid #dddce9;border-radius:17px;padding:15px 17px 12px;box-shadow:0 3px 22px #2a235207}.composer:focus-within{border-color:#b6a9ee;box-shadow:0 0 0 3px #6c4dda06}textarea{display:block;width:100%;resize:none;max-height:160px;overflow-y:auto;border:0;outline:none!important;background:transparent;padding:0 0 13px;line-height:1.65;font-size:14px;color:#434154}textarea::placeholder{color:#a3a4b4}.composer-tools,.input-tools{display:flex;align-items:center;justify-content:space-between;gap:16px}.attach-button{display:flex;align-items:center;gap:6px;padding:6px 0;border:0;background:none;color:#9090a4;font-size:11px}.attach-button:hover{color:var(--purple)}.attach-button svg{width:18px;height:18px}.keyboard-hint{font-size:10px;color:#b4b4c2}.send-button{background:var(--purple);color:#fff;width:33px;height:33px;border:0;border-radius:10px;display:grid;place-items:center}.send-button:hover:enabled{background:#5947c9}.send-button:disabled{background:#eeebf7;color:#c0b9d6}.send-button svg{width:21px;height:21px}.footer-note{text-align:center;font-size:10px;color:#abacb9;margin:12px 0 0;line-height:1.5}.note-divider{margin:0 9px}.privacy-dot{display:inline-block;width:5px;height:5px;background:#a9bdab;border-radius:50%;vertical-align:middle;margin-right:5px}.status{font-size:12px;line-height:1.65;color:#8e6f34;background:#fff7e8;padding:9px 13px;border-radius:8px;margin:0 0 9px}.messages{display:flex;flex-direction:column;gap:26px}.messages:not(:empty){padding-top:26px}.message{display:flex;gap:12px;align-items:flex-start;min-width:0}.message.user{justify-content:flex-end}.message-body{min-width:0;max-width:calc(100% - 48px);font-size:14px;line-height:1.9;overflow-wrap:anywhere}.message-name{font-size:11px;color:#9493a4;display:block;margin:-3px 0 7px}.user .message-body{background:#eeebfb;padding:11px 17px;border-radius:14px 3px 14px 14px;color:#514768;white-space:pre-wrap}.assistant .message-text{background:#fff;border:1px solid var(--border);border-radius:3px 14px 14px 14px;padding:14px 18px}.message-text p{margin:0 0 10px;white-space:pre-wrap}.message-text p:last-child{margin:0}.message-text h3{font-size:15px;margin:9px 0}.message-text ul,.message-text ol{padding-left:22px;margin:7px 0}.message-text code{font-family:Consolas,monospace;background:#f1eef8;border-radius:4px;padding:2px 4px;font-size:12px}.code-wrap{position:relative;margin:12px 0}.code-wrap pre{background:#292935;color:#e8e5f5;padding:34px 15px 15px;border-radius:9px;overflow:auto;line-height:1.6}.code-wrap pre code{background:none;padding:0;white-space:pre}.copy-code{position:absolute;right:8px;top:6px;border:0;border-radius:5px;background:#ffffff15;color:#c5c1d5;font-size:11px;padding:3px 7px}.message-image{display:block;max-width:240px;max-height:200px;border-radius:8px;margin-bottom:8px}.loading-dots{display:flex;gap:5px;padding:11px 0}.loading-dots i{height:6px;width:6px;background:#aaa0cd;border-radius:50%;animation:pulse 1s infinite alternate}.loading-dots i:nth-child(2){animation-delay:.2s}.loading-dots i:nth-child(3){animation-delay:.4s}@keyframes pulse{to{opacity:.25;transform:translateY(-3px)}}.attachment-preview{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-size:12px;color:#868294}.attachment-preview img{width:45px;height:45px;border-radius:7px;object-fit:cover}.attachment-preview span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:75%}.attachment-preview button{border:0;background:#f3f1f8;color:#837c94;border-radius:50%;width:23px;height:23px}.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}dialog{border:1px solid var(--border);border-radius:18px;max-width:420px;width:calc(100% - 36px);padding:26px;color:#454057;box-shadow:0 20px 100px #20193826}dialog::backdrop{background:#25213755;backdrop-filter:blur(3px)}dialog h2{font-size:19px;margin:0 0 12px}dialog p{font-size:14px;line-height:1.8;color:#858093}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.dialog-actions button{border:1px solid var(--border);border-radius:8px;background:#fff;color:#777084;padding:9px 12px;font-size:12px}#confirm-reset{background:var(--purple);color:#fff;border-color:var(--purple)}
@media(min-width:1000px) and (min-height:950px){.chat-container{padding-top:48px}.intro{margin-bottom:30px}.welcome-card{padding:30px}.welcome-section{margin-top:25px}}
@media(max-width:600px){.topbar{height:66px;padding:0 17px}.brand{gap:9px}.brand-mark{width:35px;height:35px;border-radius:11px;font-size:16px}.brand strong{font-size:14px}.brand-subtitle{font-size:12px}.brand-divider{margin:0 3px}.brand-note{font-size:10px;letter-spacing:.5px}.new-chat{font-size:11px;padding:7px 9px}.chat-container{padding:24px 16px 18px}.hero-avatar{width:64px;height:64px;border-radius:19px}h1{font-size:22px}.intro-subtitle{font-size:11px;margin-top:8px}.eyebrow{font-size:10px}.intro{margin-bottom:21px}.welcome-card{padding:20px 17px;border-radius:14px;font-size:13px}.hello{font-size:13px;margin-bottom:15px}.mobile-break{display:block}.welcome-section{gap:9px;margin-top:18px}.welcome-section h2{font-size:13px}.section-icon{width:25px;height:25px;border-radius:7px;font-size:14px}.welcome-section p{font-size:12px}.steps{gap:5px}.steps li{flex:0 0 auto;min-width:0;font-size:10px;padding:5px 7px;gap:5px}.agreements{font-size:12px}.notice-section{padding-top:16px}.start-lesson{font-size:12px;padding:10px 14px;margin-top:14px}.composer-area{padding:8px 13px max(9px,env(safe-area-inset-bottom))}.composer{padding:12px 13px 10px;border-radius:14px}textarea{font-size:16px;padding-bottom:9px}.keyboard-hint{display:none}.footer-note{font-size:9px;margin-top:8px}.note-divider{margin:0 5px}.message-body{font-size:13px}.assistant .message-text{padding:12px 14px}.message{gap:9px}.message .avatar{width:30px;height:30px;border-radius:10px}.message-body{max-width:calc(100% - 39px)}.status{font-size:11px;padding:7px 10px}}
.reply-choices{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.reply-choices button{font-size:12px;line-height:1.7;border:1px solid #ddd5f5;border-radius:8px;background:#f4f0ff;padding:7px 11px;color:#6b56ce}.reply-choices button:hover{background:#eae2ff}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
