:root{--bg:#f6f8fc;--white:#fff;--ink:#18243c;--muted:#8290a4;--border:#e9edf4;--blue:#3c68f2;--blue2:#527cff;--violet:#7665eb;--shadow:0 14px 38px rgba(32,56,105,.045);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",Arial,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #bed0ff;outline-offset:2px}svg{width:19px;height:19px;flex-shrink:0}[hidden]{display:none!important}a{color:var(--blue)}.app-shell{display:flex;min-height:100dvh}.sidebar{display:flex;flex-direction:column;position:sticky;top:0;width:248px;height:100dvh;padding:31px 17px 20px;background:#fff;border-right:1px solid var(--border);flex-shrink:0;z-index:20}.brand-block{display:flex;align-items:center;gap:12px;padding:0 12px 27px}.brand-mark{height:44px;width:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(140deg,#3a64ed,#7453da);box-shadow:0 8px 18px rgba(70,97,214,.16);color:white;font-size:25px;font-weight:850;letter-spacing:-2px}.brand-mark span{color:#91e4f7}.brand-name{font-size:18px;font-weight:810;letter-spacing:-.5px}.brand-spark{font-size:10px;color:#ffaf6c;vertical-align:super;margin-left:2px}.brand-description{font-size:11px;color:#9aa4b5;margin-top:3px}.sidebar-divider{height:1px;background:#f0f2f7;margin:0 10px 27px}.side-large{margin:26px 10px 27px}.nav-label{font-size:11px;font-weight:800;letter-spacing:.6px;color:#9aa6bc;padding-left:15px;margin-bottom:13px}.main-nav{display:flex;flex-direction:column;gap:7px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;padding:13px 12px;background:transparent;border:0;border-radius:11px;color:#6d7891;font-size:13px;font-weight:670;text-align:left;transition:.18s}.nav-item:hover{background:#f5f7fd;color:var(--blue)}.nav-item.active{background:#edf2ff;color:#3762dc}.nav-item svg{height:20px;width:20px}.nav-arrow,.nav-counter{margin-left:auto;color:#5076e5;font-size:13px}.nav-counter{color:#8b98ac;font-size:11px;background:#edf1f6;padding:2px 7px;border-radius:7px}.about-card{background:#f8f9fd;border:1px solid #f0f2f7;border-radius:12px;padding:17px 14px;display:flex;gap:9px}.about-dot{width:7px;height:7px;margin-top:6px;flex-shrink:0;border-radius:50%;background:#6f7df5;box-shadow:0 0 0 4px #e7eaff}.about-card strong{font-size:12px}.about-card p{font-size:11px;line-height:1.7;color:#9aa4b5;margin:7px 0 0}.sidebar-spacer{flex:1}.sidebar-footer{border-top:1px solid var(--border);padding:21px 8px 0;display:flex;align-items:center;gap:10px}.footer-avatar{width:35px;height:35px;display:grid;place-items:center;border-radius:12px;background:#e9eeff;color:#4769d7;font-weight:800}.sidebar-footer strong{display:block;font-size:11px;color:#4f5e78}.sidebar-footer span{display:block;font-size:10px;color:#a0aabd;margin-top:4px}.main-area{display:flex;flex-direction:column;flex:1;min-width:0;min-height:100dvh}.topbar{height:74px;background:rgba(255,255,255,.91);border-bottom:1px solid var(--border);padding:0 clamp(22px,4.5vw,70px);display:flex;align-items:center;justify-content:space-between;gap:20px}.top-left,.top-actions{display:flex;align-items:center;gap:13px}.top-left{font-size:12px;color:#8d9aaf}.top-left strong{color:#39465c;font-weight:740}.crumb-separator{color:#cad2e0}.status{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:#777f8e;background:#f5f6f8;border:1px solid #edf0f5;border-radius:30px;padding:8px 12px;white-space:nowrap}.status-dot{width:6px;height:6px;background:#aab4c4;border-radius:50%}.status.ready{color:#33856d;background:#eef9f4;border-color:#d9f0e6}.status.ready .status-dot{background:#3fbb86;box-shadow:0 0 0 3px #d8f4e8}.status.missing{color:#a4763b;background:#fff9ec;border-color:#fff0d1}.status.missing .status-dot{background:#e7ae48}.small-action,.outline-btn,.icon-btn{background:white;border:1px solid #e4e9f2;color:#53627b;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;font-weight:700;transition:.18s}.small-action:hover,.outline-btn:hover,.icon-btn:hover{border-color:#b8c7ed;color:#3a61d5;box-shadow:0 4px 14px #e0e8fc}.small-action{padding:9px 13px;border-radius:9px}.small-action svg{width:16px;height:16px}.icon-btn{width:36px;height:36px;border-radius:10px}.menu-btn,.close-sidebar{display:none}.main-content{width:100%;max-width:1290px;padding:clamp(30px,4.2vw,57px) clamp(22px,4.5vw,70px) 26px;margin:0 auto;flex:1;display:flex;flex-direction:column}.panel{display:none;flex:1;min-height:0;flex-direction:column}.panel.active{display:flex}.view-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:30px}.view-top h1{font-size:clamp(27px,3vw,35px);letter-spacing:-1.3px;line-height:1.3;margin:12px 0 9px;font-weight:800}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#7c8cab;display:flex;gap:8px;align-items:center}.eyebrow-bar{display:inline-block;width:20px;height:3px;background:#6479f2;border-radius:3px}.gradient-text{background:linear-gradient(115deg,#4769e8,#7d60e9);background-clip:text;-webkit-background-clip:text;color:transparent}.subheading{font-size:13px;color:#8a97ac;margin:0;line-height:1.75}.outline-btn{padding:11px 13px;border-radius:10px;white-space:nowrap}.outline-btn svg{width:16px;height:16px}.chat-empty{text-align:center;margin:auto auto 30px;max-width:850px;width:100%;padding-top:4px}.empty-illustration{width:182px;height:152px;position:relative;margin:0 auto 10px}.empty-circle{position:absolute;border-radius:50%;left:50%;top:49%;transform:translate(-50%,-50%)}.ring1{height:141px;width:141px;border:1px dashed #d7defb}.ring2{height:115px;width:115px;background:radial-gradient(circle,#f0f3ff 15%,#e8efff 72%,transparent 75%)}.floating-r{width:72px;height:72px;border-radius:23px;background:linear-gradient(150deg,#4a7cf6,#665be2);box-shadow:0 13px 28px rgba(75,110,225,.25);color:#fff;font-weight:840;font-size:40px;display:grid;place-items:center;position:absolute;left:55px;top:39px;transform:rotate(-8deg)}.floating-chip{position:absolute;background:white;box-shadow:0 5px 15px #e4e8f4;padding:8px 12px;border:1px solid #f0f1f8;color:#7b85ea;border-radius:12px;font-family:monospace;font-weight:800}.chip-one{left:5px;top:12px;transform:rotate(-9deg)}.chip-two{right:-5px;bottom:8px;transform:rotate(8deg);color:#e39d77}.floating-spark{position:absolute;top:5px;right:9px;color:#f4bd70;font-size:20px}.chat-empty h2{font-size:19px;margin:0 0 7px;letter-spacing:-.6px}.chat-empty p{color:#9aa6b8;font-size:12px;margin:0 0 26px;line-height:1.8}.suggestion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;text-align:left}.suggestion{border:1px solid #e9edf5;border-radius:13px;background:white;display:flex;align-items:center;gap:13px;padding:17px 18px;text-align:left;box-shadow:var(--shadow);transition:.18s}.suggestion:hover{border-color:#aabcf9;transform:translateY(-2px);box-shadow:0 12px 30px #e7ebfb}.suggestion-icon{width:40px;height:40px;flex-shrink:0;border-radius:12px;display:grid;place-items:center;font-size:21px;font-weight:800}.purple{background:#f0edff;color:#7b60d7}.blue{background:#e8f0ff;color:#5986ec}.orange{background:#fff3e7;color:#e69e5a}.green{background:#e9f8f2;color:#43ab85}.suggestion strong{display:block;font-size:12px;font-weight:760}.suggestion small{display:block;font-size:11px;color:#9ca8bc;margin-top:6px}.suggestion-next{margin-left:auto;color:#afb8c7}.chat-scroll{display:none;flex:1;overflow-y:auto;min-height:230px;max-height:calc(100dvh - 365px);padding:2px 2px 18px}.chat-scroll.has-messages{display:block}.messages{display:flex;flex-direction:column;gap:22px;padding:15px 0 18px}.message{display:flex;align-items:flex-start;gap:13px}.message.user{flex-direction:row-reverse}.msg-avatar{height:34px;width:34px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;font-size:14px;font-weight:790}.assistant .msg-avatar{background:linear-gradient(150deg,#4d80f2,#7963e5);color:#fff}.user .msg-avatar{background:#edf1f9;color:#667691}.message-body{min-width:0;max-width:min(730px,88%)}.msg-role{font-size:11px;color:#8a99b0;margin-bottom:7px;font-weight:750}.user .msg-role{text-align:right}.msg-content{font-size:13px;line-height:1.9;overflow-wrap:anywhere}.assistant .msg-content{background:white;border:1px solid #eaedf5;padding:17px 19px;border-radius:4px 15px 15px 15px;box-shadow:var(--shadow)}.user .msg-content{background:#eaf0ff;padding:13px 16px;border-radius:15px 4px 15px 15px;color:#314a84}.msg-content p{margin:0 0 9px}.msg-content p:last-child{margin-bottom:0}.msg-content ul,.msg-content ol{margin:7px 0 12px;padding-left:22px}.msg-content li{margin:4px 0}.msg-content h3{font-size:13px;margin:12px 0 5px}.msg-content code{font-size:12px;background:#eef1f8;border-radius:4px;padding:2px 4px;font-family:Consolas,Menlo,monospace}.code-container{margin:12px 0;background:#18253b;border-radius:10px;overflow:hidden;color:#e5edff}.code-head{padding:7px 12px;border-bottom:1px solid #37455b;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#a5b2ca;font-weight:700}.copy-code{border:0;background:transparent;color:#c5d2ec;font-size:10px}.copy-code:hover{text-decoration:underline}.code-container pre{margin:0;overflow:auto;padding:12px 15px;line-height:1.65;font-size:12px;font-family:Consolas,Menlo,monospace;white-space:pre}.code-container code{padding:0;background:none;color:inherit}.chat-bottom{max-width:880px;width:100%;margin:22px auto 0}.composer{background:white;border:1px solid #e3e8f3;border-radius:16px;padding:12px 15px 10px;box-shadow:0 12px 35px rgba(31,65,138,.07);transition:.2s}.composer:focus-within{border-color:#a9bdf9;box-shadow:0 12px 35px rgba(69,101,225,.09)}.composer textarea{width:100%;border:0;outline:0!important;resize:none;font-size:13px;min-height:47px;max-height:155px;color:#34425b;line-height:1.65;background:transparent}.composer textarea::placeholder{color:#a5b0c0}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#aab3c3;font-size:10px}.keyboard-hint{color:#8090a7;font-size:10px}.send-button{border:0;background:linear-gradient(135deg,#3c69ee,#6c5ee4);width:35px;height:35px;color:white;border-radius:11px;display:grid;place-items:center;box-shadow:0 5px 12px #c8d4fb}.send-button svg{width:17px;height:17px}.send-button:hover:not(:disabled){transform:translateY(-1px)}.bottom-note{text-align:center;font-size:10px;color:#a6b1c1;margin:12px 0 0}.global-footer{padding:0 clamp(22px,4.5vw,70px) 18px;max-width:1290px;width:100%;margin:0 auto;display:flex;justify-content:space-between;gap:20px;color:#b2bccb;font-size:10px}.debug-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:22px;align-items:stretch}.debug-card,.debug-result,.quiz-main,.quiz-aside{background:#fff;border:1px solid #e9edf5;border-radius:17px;box-shadow:var(--shadow)}.debug-card{padding:22px}.card-title{display:flex;align-items:center;gap:9px;margin-bottom:12px}.section-number{font-size:10px;color:#637df0;background:#edf1ff;padding:6px;border-radius:6px;font-weight:800}.card-title h2{font-size:13px;margin:0}.card-title .tag{font-size:10px;margin-left:auto;border:1px solid #e5e9f2;padding:3px 8px;border-radius:5px;color:#a4b0c4}.code-input,.error-input{display:block;width:100%;border:1px solid #e7ebf3;border-radius:10px;padding:13px;color:#263956;background:#f8fafe;resize:vertical;font-size:12px;line-height:1.75;outline:0;font-family:Consolas,Menlo,monospace}.code-input:focus,.error-input:focus{border-color:#a9b9ef}.code-input{min-height:275px}.error-input{min-height:80px;max-height:170px}.error-title{margin-top:19px}.primary-cta{background:linear-gradient(120deg,#3c69ed,#655ee7);color:white;border:0;border-radius:10px;padding:12px 18px;font-size:12px;font-weight:720;display:inline-flex;align-items:center;justify-content:space-between;gap:25px;box-shadow:0 6px 15px #d7dffc;transition:.2s}.primary-cta:hover:not(:disabled){filter:brightness(1.05);transform:translateY(-1px)}.debug-card .primary-cta{width:100%;margin-top:22px}.debug-result{display:flex;flex-direction:column;padding:23px;min-height:500px}.result-header{display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f2f7;padding-bottom:17px}.result-icon{height:37px;width:37px;display:grid;place-items:center;border-radius:12px;background:#f0edff;color:#7e67e3;font-size:20px}.result-header h2{font-size:13px;margin:0 0 4px}.result-header p{color:#99a6b8;font-size:11px;margin:0}.debug-output{flex:1;min-height:200px;max-height:490px;overflow:auto}.debug-output.has-content{font-size:12px;line-height:1.8;padding:10px 0}.debug-output.has-content .msg-content{line-height:1.8}.result-placeholder{text-align:center;max-width:250px;margin:93px auto 0;color:#a5afbf}.result-placeholder-icon{display:grid;place-items:center;width:74px;height:74px;margin:0 auto 18px;border-radius:22px;background:#f3f5ff;color:#6f81ea;font:800 21px Consolas,monospace}.result-placeholder h3{font-size:13px;color:#66738c}.result-placeholder p{font-size:11px;line-height:1.8}.loading-bar{color:#5b78dc;font-size:12px;padding-top:8px}.quiz-layout{display:grid;grid-template-columns:minmax(0,1fr) 265px;gap:22px;align-items:start}.quiz-main{padding:28px}.quiz-topline{display:flex;justify-content:space-between;align-items:center;gap:12px}.quiz-label{font-size:11px;font-weight:700;color:#7988a0}.quiz-count{font-size:13px;font-weight:800;color:#5974e4}.progress-track{height:6px;border-radius:9px;background:#eef1f9;margin:17px 0 32px;overflow:hidden}.progress-value{height:100%;background:linear-gradient(90deg,#6d80ff,#9f78ed);border-radius:9px;transition:width .3s}.quiz-category{display:inline-block;background:#eff3ff;color:#6980da;padding:7px 10px;border-radius:7px;font-size:10px;font-weight:750}.quiz-question{font-size:21px;line-height:1.6;letter-spacing:-.5px;margin:18px 0 21px}.quiz-option{width:100%;display:flex;gap:12px;align-items:flex-start;text-align:left;border:1px solid #e9edf4;background:#fff;border-radius:11px;padding:14px 15px;margin:9px 0;color:#536078;font-size:12px;line-height:1.75}.quiz-option:hover:not(:disabled){border-color:#adbbf5;background:#f8faff}.quiz-option.selected{border-color:#7d94f2;background:#f4f7ff}.quiz-option.correct{border-color:#63b68f;background:#f0faf4;color:#226e4c}.quiz-option.wrong{border-color:#ea9a9a;background:#fff6f6;color:#aa5252}.quiz-option .letter{display:grid;place-items:center;background:#f0f3fa;color:#8895ad;border-radius:6px;width:24px;height:24px;flex-shrink:0;font-weight:800;font-size:11px}.quiz-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #f0f2f7;margin-top:22px;padding-top:20px}.quiz-footer span{font-size:11px;color:#a2afc1}.quiz-feedback{margin-top:19px;padding:15px;border-radius:11px;font-size:12px;line-height:1.85;background:#f2f7ff;border:1px solid #e4ebff}.quiz-feedback strong{display:block;color:#506bcc;margin-bottom:6px}.quiz-feedback code{font-family:Consolas,monospace;background:#e4eafd;padding:1px 4px;border-radius:4px}.quiz-aside{padding:23px}.quiz-aside-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#f0edff;color:#8067e6;font-size:25px}.quiz-aside h3{font-size:14px;margin:19px 0 7px}.quiz-aside p{font-size:11px;color:#97a4b6;line-height:1.85;margin:0 0 23px}.aside-stat{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8794a8;margin:15px 0}.aside-stat strong{color:#4964c5;font-size:14px}.aside-rule{height:1px;background:#f0f2f7;margin:19px 0}.quiz-aside small{font-size:10px;color:#b0b9c7;line-height:1.8;display:block}.quiz-completion{text-align:center;padding:30px 0 36px}.quiz-completion .completion-medal{font-size:55px}.quiz-completion h2{font-size:24px;margin:18px 0 6px}.quiz-completion p{color:#8493ac;font-size:13px;margin:0 0 25px}.quiz-completion .primary-cta{margin:auto}.modal-backdrop{position:fixed;inset:0;background:rgba(26,38,65,.5);display:grid;place-items:center;z-index:40;padding:20px}.modal{background:#fff;border-radius:18px;padding:30px;max-width:375px;width:100%;box-shadow:0 20px 90px #172a4e4f;text-align:center}.modal-icon{font-size:35px}.modal h2{font-size:18px}.modal p{font-size:12px;color:#8593a6;line-height:1.8}.modal form{display:flex;flex-direction:column;gap:12px;margin:22px 0 12px}.modal input{padding:13px;border:1px solid #e2e6f0;border-radius:10px}.modal .primary-cta{justify-content:center}.text-button{border:0;background:transparent;color:#9ca9bb;font-size:11px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:60;background:#1e304e;color:white;border-radius:11px;padding:12px 17px;box-shadow:0 10px 32px #14263f33;font-size:12px;white-space:nowrap;max-width:90vw}.sidebar-scrim{position:fixed;inset:0;background:#1a274a66;z-index:15}
@media(max-width:980px){.sidebar{width:215px;padding-left:12px;padding-right:12px}.main-content{padding:35px 26px 20px}.topbar{padding:0 26px}.global-footer{padding:0 26px 18px}.quiz-layout{grid-template-columns:minmax(0,1fr) 210px}.quiz-aside{padding:18px}.debug-grid{gap:14px}}
@media(max-width:760px){.sidebar{position:fixed;left:0;top:0;transform:translateX(-102%);transition:transform .22s;width:255px;box-shadow:10px 0 40px #1729480d}.sidebar.open{transform:translateX(0)}.menu-btn,.close-sidebar{display:grid}.close-sidebar{margin-left:auto;border:none}.topbar{height:64px;padding:0 17px}.crumb-parent,.crumb-separator{display:none}.top-left{gap:10px}.top-actions{gap:7px}.status{font-size:10px;padding:7px 9px}.small-action{padding:8px 9px}.small-action span{display:none}.main-content{padding:26px 17px 20px}.view-top{margin-bottom:24px}.view-top h1{font-size:27px;letter-spacing:-.6px}.subheading{font-size:12px}.chat-view-top .outline-btn{font-size:0;gap:0}.chat-view-top .outline-btn svg{width:18px;height:18px}.chat-empty{padding-top:0}.empty-illustration{width:150px;height:122px}.ring1{height:118px;width:118px}.ring2{height:98px;width:98px}.floating-r{width:60px;height:60px;left:45px;top:31px;font-size:33px}.chip-one{left:0;top:5px}.chip-two{right:-4px;bottom:-1px}.chat-empty h2{font-size:16px}.chat-empty p{font-size:11px;margin-bottom:16px}.suggestion-grid{gap:9px}.suggestion{padding:12px 10px;gap:7px;min-height:75px}.suggestion-icon{width:29px;height:29px;font-size:16px;border-radius:9px}.suggestion strong{font-size:11px}.suggestion small{font-size:10px;line-height:1.3;margin-top:4px}.suggestion-next{display:none}.chat-bottom{margin-top:14px}.chat-scroll{max-height:calc(100dvh - 310px)}.global-footer{padding:0 17px 14px}.global-footer span:last-child{display:none}.debug-grid,.quiz-layout{grid-template-columns:1fr}.quiz-aside{display:none}.debug-card{padding:17px}.debug-result{padding:17px;min-height:350px}.result-placeholder{margin-top:40px}.quiz-main{padding:19px}.quiz-question{font-size:18px}.chat-scroll .message-body{max-width:calc(100% - 47px)}.assistant .msg-content{padding:12px 14px}.keyboard-hint{display:none}}
@media(max-width:380px){.suggestion-grid{grid-template-columns:1fr}.suggestion{min-height:54px}.empty-illustration{display:none}.chat-empty h2{margin-top:15px}.view-top h1{font-size:23px}.view-top{gap:7px}.topbar{padding:0 12px}}
