@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');
:root{--paper:#f7f6fc;--ink:#27243c;--purple:#6554e8;--lavender:#eeebff;--line:#e5e1f0;--muted:#756c88;--yellow:#ffdb74;--mint:#c0eddf;--mono:'IBM Plex Mono',monospace}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'Be Vietnam Pro',system-ui,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible{outline:3px solid #b9a4ff;outline-offset:4px}input:focus,select:focus,textarea:focus{outline:2px solid #b4a4ff;outline-offset:2px}[hidden]{display:none!important}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.topbar{height:86px;max-width:1600px;margin:auto;padding:0 4%;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:11px;align-items:center;font-size:22px;letter-spacing:-.8px;text-decoration:none;font-weight:800}.brand b{font-weight:500}.brand small{display:block;font:7px var(--mono);letter-spacing:1.4px;color:var(--muted);margin-top:3px}.brand-mark{display:grid;place-items:center;position:relative;background:var(--purple);color:white;width:41px;height:41px;border-radius:13px 13px 13px 4px;transform:rotate(-6deg);font:700 29px var(--mono)}.brand-mark>span{position:absolute;color:var(--yellow);right:4px;top:3px;font-size:26px}.pilot{font:9px var(--mono);padding:7px 10px;border-radius:20px;background:#eee9ff;color:#7860aa;border:1px solid #e5dcfa}.top-right{margin-left:auto;display:flex;align-items:center;gap:8px;color:#857995;font-size:10px}.top-right>a{text-decoration:none;margin-left:24px;color:#5c526e;font-weight:600}.status-dot{width:6px;height:6px;border-radius:50%;background:#50a88c}main{max-width:1510px;margin:auto;padding:44px 4% 65px}.welcome{max-width:1250px;margin:auto;display:grid;grid-template-columns:minmax(0,1.16fr) minmax(365px,.84fr);gap:7%;align-items:start}.intro{padding-top:15px}.eyebrow{display:flex;align-items:center;gap:9px;font:9px var(--mono);letter-spacing:1px;color:#8c7b9e}.spark{font-size:20px;color:var(--purple)}.intro h1{font-size:clamp(45px,4.5vw,68px);line-height:1.17;letter-spacing:-2.7px;margin:25px 0;position:relative;isolation:isolate;display:inline-block;font-weight:800}.intro h1>span{color:var(--purple)}.intro h1>svg{position:absolute;width:90%;height:22px;left:0;bottom:-9px;stroke:var(--yellow);stroke-width:8;fill:none;z-index:-1}.lede{font-size:13px;line-height:2;max-width:480px;color:#83788f}.lede strong{font-weight:600;color:var(--purple)}.hero-scene{height:258px;position:relative;isolation:isolate;margin-top:20px}.scene-orbit{position:absolute;z-index:-1;border-radius:50%;pointer-events:none}.orbit-one{width:220px;height:220px;left:26%;top:20px;background:#ede7fc}.orbit-two{width:280px;height:180px;left:20%;top:45px;border:1px dashed #c7b9ec;transform:rotate(-27deg)}.scene-spark{position:absolute;right:15%;top:15px;color:#f6a68c;font-size:29px}.scene-dot{position:absolute;height:13px;width:13px;left:18%;bottom:46px;background:var(--mint);border-radius:50%}.hero-bot{position:absolute;left:34%;top:60px;background:none;color:var(--purple);width:150px;padding:0;transition:transform .3s}.hero-bot svg{width:150px;height:133px;filter:drop-shadow(0 10px 15px #6554e81a);animation:float 5s ease-in-out infinite}.hero-bot>span{display:block;font-size:8px;color:#a393b5}.hero-bot:hover{transform:rotate(5deg)}.hero-bot.waving{animation:wave .6s 2}.bot-eyes{transform-origin:center;animation:blink 6s infinite}.mini-code{position:absolute;left:0;top:3px;width:255px;border:1px solid var(--line);background:white;padding:12px 15px;border-radius:12px;transform:rotate(-5deg);box-shadow:0 10px 30px #5947790a}.mini-code>span{display:flex;align-items:center;gap:4px;font:8px var(--mono);color:#aaa0bb}.mini-code i{width:5px;height:5px;background:#e1d9ef;border-radius:50%;display:inline-block}.mini-code i:first-child{background:#ffb79f}.mini-code i:last-child{background:#b9e9d9;margin-right:6px}.mini-code code{display:block;margin-top:10px;font:11px/1.9 var(--mono);color:#695c82}.mini-code em{color:#996cc5;font-style:normal}.mini-code b{color:#4e9c81;font-weight:400}.mini-code small{font-size:8px;color:#a99bb8}.scene-bubble{position:absolute;padding:12px 15px;border:1px solid var(--line);background:white;border-radius:14px;font-size:10px;line-height:1.8;box-shadow:0 6px 20px #6554e809}.scene-bubble>span{display:block;font:7px var(--mono);letter-spacing:1px;color:#a392b7;margin-bottom:5px}.bubble-you{right:0;top:65px;transform:rotate(5deg);border-radius:14px 14px 3px 14px}.bubble-cloud{left:0;bottom:24px;transform:rotate(-3deg);background:#f0eaff;border-color:#e1d7f6;color:#795dab;border-radius:14px 14px 14px 3px}.scene-sticker{position:absolute;right:7%;bottom:12px;background:var(--yellow);padding:15px 24px 15px 16px;border-radius:6px;transform:rotate(8deg);font-size:9px;line-height:1.9;color:#7b6539}.scene-sticker>span{position:absolute;right:9px;top:6px;font-size:20px}.facts{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:21px;margin-top:15px;max-width:500px}.facts>div{display:flex;align-items:center;gap:8px}.facts strong{font:10px var(--mono);background:#ece5fa;color:#927bb7;padding:7px;border-radius:50%}.facts div>span{font-size:10px;color:#8b7d9c}.facts>span{color:#c8bed5}.intro-note{font-size:10px;color:#9c8cae;margin-top:16px}.start-card,.panel{background:white;border:1px solid var(--line);border-radius:21px}.start-card{padding:28px;box-shadow:0 14px 45px #6554e807;position:relative}.start-card:before{content:'';position:absolute;top:-1px;left:29px;width:43px;height:4px;background:var(--purple);border-radius:0 0 5px 5px}.step-label{font:8px var(--mono);letter-spacing:1.5px;color:#a695ba}.card-heading h2{font-size:26px;letter-spacing:-1px;margin:10px 0 7px}.card-heading p{font-size:11px;color:#9c8bac;margin:0 0 22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px}.form-grid label:not(:first-child):not(:nth-child(2)){margin-top:7px}.wide{grid-column:1/-1}label{font-size:10px;color:#796388;font-weight:500}input,select,textarea{width:100%;padding:11px 12px;background:#fbf9fe;color:#756080;border:1px solid #e5dfed;border-radius:9px;font-size:11px}select{padding-right:18px}.mode-options{border:0;padding:0;margin:22px 0 0}.mode-options legend{font-size:10px;color:#9881a7;margin-bottom:10px}.mode-option{display:flex;align-items:start;gap:9px;border:1px solid var(--line);padding:12px;border-radius:10px;margin-bottom:8px;cursor:pointer;transition:.2s}.mode-option:has(input:checked){background:#f3edff;border-color:#b397e2}.mode-option input{width:14px;height:14px;flex-shrink:0;margin:3px 0 0;accent-color:var(--purple)}.mode-option strong{display:block;font-size:10px;color:#8a6b9f;font-weight:600}.mode-option small{display:block;font-size:8px;color:#aa94b7;line-height:1.8;margin-top:5px}.privacy{font-size:9px;color:#a48eb3;line-height:1.95;margin:15px 0}.privacy summary{cursor:pointer;color:#967aa7}.primary,.secondary,.quiet{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:9px;padding:12px 17px;font-size:11px;font-weight:500;text-decoration:none;transition:background .2s,transform .2s}.primary{background:var(--purple);color:white;box-shadow:0 4px 8px #6554e80e}.primary:hover{background:#5140cd;transform:translateY(-1px)}.secondary{background:#f0eafb;color:#9573ac;border:1px solid #e3d8f0}.secondary:hover{background:#e8ddf8}.quiet{background:transparent;color:#a08aac;padding:8px}.quiet:hover{background:#f4eef9;color:#886c9d}.start-button{width:100%;justify-content:space-between;padding:14px 18px}.start-button>span{font-size:18px}.fine{font-size:8px;line-height:1.9;color:#ac97ba}.start-card>.fine{text-align:center;margin:12px 0 0}.error{color:#b45f67;font-size:11px;line-height:1.9}.session-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.session-strip h1{font-size:25px;letter-spacing:-.9px;font-weight:700;margin:9px 0 0}.tiny-star{font-size:17px;color:#e3bd59}.session-tools{display:flex;align-items:center;gap:17px}.time-pill{display:flex;gap:10px;align-items:center;padding:11px 15px;background:white;border:1px solid var(--line);border-radius:12px}.time-pill>span{font:7px var(--mono);letter-spacing:1px;color:#ad97bd}.time-pill strong{font:16px var(--mono);color:#9272a8}.session-tools>.quiet{font-size:10px}.journey-heading{display:flex;justify-content:space-between;color:#a58bb6;font-size:9px;margin-bottom:9px}.journey-track{height:3px;background:#e9dff2;overflow:hidden;border-radius:5px}.journey-track>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#c1a3f6,#6554e8);transition:width .6s}.problem-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:17px 0 22px}.problem-tab{display:flex;align-items:center;gap:11px;text-align:left;padding:16px;border:1px solid var(--line);border-radius:13px;background:white;color:#9677a9;transition:.2s}.problem-tab:hover{transform:translateY(-2px);box-shadow:0 5px 15px #6554e80a}.tab-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f1eafa;color:#aa8dc4;font-size:17px;flex-shrink:0}.tab-content{display:flex;flex-direction:column;gap:5px}.tab-content strong{font-size:11px;font-weight:600}.tab-content small{font:8px var(--mono);color:#ad92bd}.problem-tab.active{background:#f3ecff;border-color:#bea0e6;box-shadow:inset 0 0 0 1px #e9dcfa}.problem-tab.active .tab-icon{background:#e5d6fd;color:#9f76c7}.problem-tab.active .tab-content strong{color:#8f60ae}.tab-done{margin-left:auto;background:#daf2e7;color:#75ad90;border-radius:50%;display:grid;place-items:center;width:18px;height:18px;font-size:10px}.lab-grid{display:grid;grid-template-columns:minmax(0,1.13fr) minmax(340px,.87fr);gap:22px;align-items:start}.work-column{min-width:0;display:flex;flex-direction:column;gap:17px}.problem-panel{padding:24px 26px}.problem-top{display:flex;align-items:center;gap:13px}.problem-emoji{width:45px;height:45px;flex-shrink:0;display:grid;place-items:center;background:#fff0d7;color:#c8a471;font-size:24px;border-radius:13px}.panel-label{display:flex;align-items:center;gap:9px;color:#a78bb8;font:8px var(--mono)}.panel-label>span+span:before{content:'·';margin-right:9px;color:#c9b7d4}.problem-panel h2{font-size:21px;letter-spacing:-.8px;margin:7px 0 0}.lesson-number{margin-left:auto;font:9px var(--mono);color:#bea4cb}.problem-panel>p{font-size:11px;line-height:2.05;color:#987aa9;margin:17px 0 15px}.prediction-control{display:flex;gap:9px;margin-top:9px}.prediction-control .secondary{white-space:nowrap;font-size:9px}.hint-box{border:1px solid #f0e3c8;background:#fffbf2;color:#b59b72;border-radius:9px;padding:11px 14px;margin-top:15px;font-size:10px}.hint-box summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none}.hint-box summary:after{content:'+';margin-left:auto;font-size:17px;color:#cbb695}.hint-box[open] summary:after{content:'−'}.hint-box p{line-height:1.9;margin:10px 0 0}.problem-result{font-size:10px;line-height:1.8;color:#7caa91;margin-top:12px}.think-link{display:flex;gap:6px;align-items:center;width:100%;padding:12px 0 0;text-align:left;background:transparent;color:#9c77b5;font-size:9px}.think-link>span{margin-left:auto;font-size:15px}.editor-panel{overflow:hidden}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 17px;background:#28263f;border-bottom:1px solid #3a3553;color:#b5a5d0;font:10px var(--mono)}.file-icon{margin-right:4px;color:#89749f}.editor-heading>div{display:flex;gap:6px;align-items:center}.runtime-dot{height:4px;width:4px;background:#97bbaa;border-radius:50%}#python-status{font-size:8px;color:#aa98bd}.editor-heading .quiet{color:#a991b9}.small{font-size:9px;padding:4px 6px}.code-wrap{display:flex;position:relative;padding:20px 14px 15px 0;background:#28263f;min-height:240px}#line-numbers{width:43px;flex-shrink:0;padding-right:14px;text-align:right;white-space:pre;font:11px/1.95 var(--mono);color:#776286;user-select:none;overflow:hidden;max-height:360px}#code{font:11px/1.95 var(--mono);border:0;border-radius:0;background:transparent;color:#dcc8f0;padding:0;resize:vertical;min-height:220px;max-height:500px;white-space:pre;tab-size:4}#code:focus{outline:0}.code-wrap:focus-within:after{content:'';position:absolute;left:0;top:0;height:100%;width:2px;background:#b691e1}.editor-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 15px;background:#faf7fd;border-bottom:1px solid var(--line)}.editor-actions>div{display:flex;gap:8px}.editor-actions .quiet{font-size:9px}.editor-actions .primary,.editor-actions .secondary{font-size:10px;padding:11px 15px}.output-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 17px;color:#a88eb9;font:8px var(--mono);letter-spacing:1px}.output-heading>span{display:flex;align-items:center;gap:8px}.output-heading i{width:6px;height:6px;border:1px solid #a9c2b1;border-radius:50%}#output{font:10px/1.9 var(--mono);padding:0 17px 16px;margin:0;min-height:60px;max-height:210px;overflow:auto;white-space:pre-wrap;color:#a180b3}.test-summary{display:flex;align-items:center;gap:9px;padding:11px 17px;margin:0 17px 8px;border-radius:8px;background:#f3faf6;color:#7f9f8a;font-size:10px}.test-summary.needs-work{background:#fff6ec;color:#bb9676}.test-summary strong{margin-left:auto;font:10px var(--mono)}.test-results{padding:0 17px 11px;font:9px/2.1 var(--mono)}.test-pass{color:#7ca28a}.test-fail{color:#ba857b}.save-status{border-top:1px solid #f0e8f6;padding:11px 17px;color:#ab8fbf;font-size:8px;line-height:1.7}.learning-note{display:flex;align-items:center;gap:10px;padding:0 8px;color:#ab91bb}.learning-note>span{font-size:26px;color:#c5abd8}.learning-note p{font-size:9px;line-height:1.8}.parsons-row{display:flex;align-items:center;gap:5px;padding:7px 13px;background:#f4ecfa;border-bottom:1px solid #e8dbf2}.parsons-row input{font:10px var(--mono);white-space:pre;background:white;border-color:#e1d1ee}.parsons-row button{background:#e9daf5;color:#a484bd;padding:6px 8px;border-radius:6px}.ai-panel{position:sticky;top:18px;border-color:#e0d2f1;overflow:hidden;box-shadow:0 8px 30px #7657ad05}.ai-heading{display:flex;align-items:center;gap:10px;padding:20px 21px 15px}.avatar{width:45px;height:45px;flex-shrink:0;background:#eee4fa;color:#ab89cc;display:grid;place-items:center;border-radius:14px}.avatar svg{height:44px;width:45px}.ai-heading h2{display:flex;align-items:center;gap:8px;font-size:17px;letter-spacing:-.5px;margin:0 0 4px}.ai-heading h2>span{font:7px var(--mono);letter-spacing:.5px;color:#aa8cbd;padding:4px 6px;background:#f4ecfa;border-radius:4px}.ai-heading p{font-size:9px;color:#a88aba;margin:0}.chat-expand{margin-left:auto;background:transparent;color:#b095c1;font-size:21px;padding:6px;border-radius:7px}.chat-expand:hover{background:#f2e9fb}.ai-notice{margin:0 21px 14px;padding:9px 11px;border:1px solid #eee3f7;border-radius:7px;background:#f8f3fd;font-size:8px;line-height:1.8;color:#aa8cbd}.chat-goals{display:flex;gap:6px;padding:0 21px 13px;border-bottom:1px solid #eee4f7}.chat-goals button{flex:1;white-space:nowrap;border:1px solid #eadcf4;background:white;color:#a483bc;padding:8px 5px;border-radius:20px;font-size:8px}.chat-goals .active{background:#eee2fc;border-color:#dfcdf1;color:#9972b3}.chat-log{padding:18px 21px 10px;min-height:260px;max-height:370px;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:#ddcce9 transparent}.chat-empty{text-align:center;padding:12px 0 14px}.empty-spark{display:grid;place-items:center;width:48px;height:48px;margin:0 auto 14px;border-radius:15px;background:#f3e8ff;color:#ac84d0;font-size:28px;transform:rotate(-7deg)}.chat-empty h3{font-size:15px;letter-spacing:-.5px;font-weight:600;color:#a380ba;margin:0 0 10px}.chat-empty p{font-size:10px;line-height:2;color:#b299c1;max-width:285px;margin:0 auto}.empty-example{max-width:300px;text-align:left;margin:15px auto 0;padding:12px;border:1px dashed #e3d2ed;border-radius:12px;font-size:9px;color:#ac8fc1;line-height:1.9}.empty-example span{display:block;font:7px var(--mono);margin-bottom:5px;color:#c3a9d2}.chat-message{display:flex;gap:9px;margin-bottom:18px;animation:message-in .25s ease-out}.message-avatar{display:grid;place-items:center;height:23px;width:23px;flex-shrink:0;margin-top:19px;background:#eee1f9;color:#aa80c5;border-radius:9px;font-size:12px}.message-stack{min-width:0;max-width:calc(100% - 32px)}.message-meta{display:flex;align-items:center;gap:7px;font-size:7px;color:#baa0cb;margin-bottom:5px}.message-meta strong{font-size:8px;font-weight:500;color:#a784bc}.message-meta time{margin-left:auto}.message-body{font-size:10px;line-height:2;background:#f5ecfd;border:1px solid #eddeF7;border-radius:2px 13px 13px;padding:13px 15px;color:#9772ae;overflow-wrap:anywhere}.message-body p{margin:0 0 8px;white-space:pre-wrap}.message-body p:last-child{margin:0}.message-body code{font:9px var(--mono);background:#eadef4;color:#9470ab;border-radius:4px;padding:2px 4px}.message-body pre{font:9px/1.8 var(--mono);background:#ece0f7;padding:10px;border-radius:7px;white-space:pre-wrap;overflow:auto}.chat-message.user{flex-direction:row-reverse}.chat-message.user .message-avatar{background:#eee2f6;color:#b08ac5;font-size:9px}.chat-message.user .message-meta{justify-content:end}.chat-message.user .message-meta time{margin-left:0}.chat-message.user .message-body{background:#e9dbff;border-color:#e2cff7;border-radius:13px 2px 13px 13px;color:#9974b3}.message-origin{font-size:7px;color:#b99bca;margin-top:5px}.chat-message.system .message-body{background:#fff6eb;border-color:#efdec9;color:#b4997f}.typing-dots{display:flex;align-items:center;gap:4px}.typing-dots i{height:5px;width:5px;border-radius:50%;background:#bc98d6;animation:pulse 1.2s infinite}.typing-dots i:nth-child(2){animation-delay:.15s}.typing-dots i:nth-child(3){animation-delay:.3s}.typing-label{font-size:8px;margin-left:7px;color:#c2a4d4}.chat-context{margin:0 21px 12px;padding:10px 12px;background:#fff8eb;border:1px solid #f0e1c6;border-radius:9px;color:#bba17b;font-size:9px;line-height:1.8}.suggestion-heading{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:12px 21px 8px;border-top:1px solid #f2e8f9;font:7px var(--mono);letter-spacing:.4px;color:#bca4cd}.suggestion-heading>span+span{font:7px 'Be Vietnam Pro',sans-serif;letter-spacing:0;color:#c5aad7}.prompt-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:0 21px 12px}.prompt-chip{font-size:8px;line-height:1.6;text-align:left;background:#fbf8fe;border:1px solid #ecdef6;border-radius:8px;padding:7px 9px;color:#b08bc6;transition:.2s}.prompt-chip:hover{transform:translateY(-1px);background:#eee0fc;border-color:#d8bbeb;color:#986ab8}#chat-form{padding:0 21px}#chat-form>label{display:block;font-size:8px;color:#b89aca;margin:2px 0 8px}.composer{background:#fdfaff;border:1px solid #e2d0ef;border-radius:12px;transition:.2s}.composer:focus-within{border-color:#b48cd7;box-shadow:0 0 0 3px #efe0fb}#prompt{border:0;background:none;color:#a580bc;resize:vertical;max-height:170px;min-height:77px;font-size:10px;line-height:1.9;padding:13px}#prompt::placeholder{color:#c9a8db}#prompt:focus{outline:0}.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:0 8px 8px}.composer-tools>span{font-size:7px;color:#c5a6d7}.send-button{height:30px;width:30px;border-radius:9px;background:#b490d8;color:white;font:22px system-ui}.send-button:hover{background:#9870c1}.chat-footer{display:flex;justify-content:space-between;gap:9px;margin-top:8px;font-size:7px;color:#c0a0d4}.chat-footer>span+span{white-space:nowrap;font-family:var(--mono)}.chat-disclaimer{font-size:7px;line-height:1.9;margin:11px 21px 18px;color:#c1a4d1}.chat-focused .lab-grid{grid-template-columns:minmax(0,.8fr) minmax(400px,1.2fr)}.chat-focused .chat-log{min-height:360px;max-height:52vh}.finished{max-width:650px;margin:12px auto;padding:37px 40px;text-align:center}.finish-art{display:flex;justify-content:center;align-items:center;gap:20px;color:#d1b4e6;font-size:24px;margin-bottom:22px}.finish-art>span{display:grid;place-items:center;height:58px;width:58px;border-radius:19px;background:#eee1fc;color:#a784c5;font-size:25px;transform:rotate(-7deg)}.finished .eyebrow{justify-content:center;font-size:8px;letter-spacing:1px}.finished h1{font-size:27px;letter-spacing:-1px;margin:15px 0}.finished>p{font-size:11px;line-height:1.9;color:#a78ab9}.finished>label{display:block;margin:25px 0 10px}.finished select{text-align:center}.finished .primary{margin:18px auto 8px}.finish-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:10px}.finish-actions .quiet,.finish-actions .secondary{font-size:9px}#summary-results{text-align:left;background:#faf5fe;border-radius:12px;padding:15px 20px;font-size:10px;line-height:2.3;color:#ab87be;margin-top:22px}.conversation-summary{font-size:9px!important;color:#b091c7!important}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:30;background:#8965aa;color:white;padding:13px 20px;border-radius:12px;box-shadow:0 10px 30px #74579833;font-size:11px;line-height:1.8;max-width:90vw}.mobile-chat{display:none}.sr-only{position:absolute;height:1px;width:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}footer{max-width:1410px;margin:auto;padding:24px 4%;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);font-size:9px;color:#b194c4}.footer-brand{font-size:13px;font-weight:600;letter-spacing:-.5px;color:#a180b6}.footer-brand b{margin-left:6px;font-size:18px;color:#ba98d1}
/* Strong text contrast on soft, colourful surfaces. */
label,.mode-options legend{color:#665372}.lede,.problem-panel>p{color:#75647e}.mode-option strong{color:#654877}.mode-option small,.privacy,.fine{color:#85708f}.card-heading p{color:#867091}.intro-note,.facts div>span{color:#85748f}.panel-label,.lesson-number{color:#90769e}.hint-box{color:#947647}.think-link{color:#7d50a2}.problem-tab,.tab-content strong{color:#77508b}.problem-tab.active .tab-content strong{color:#63409c}.tab-content small{color:#9a7faa}.ai-heading p,.ai-notice{color:#896798}.chat-goals button{color:#8854a2}.chat-goals .active{color:#71429a}.chat-empty h3{color:#7e4da2}.chat-empty p,.empty-example{color:#9777a7}.message-body{color:#715080}.chat-message.user .message-body{color:#67467e}.message-meta strong{color:#8c62a2}.message-meta,.message-origin{color:#a284b3}.prompt-chip{color:#8655a5}.suggestion-heading{color:#a083b1}#chat-form>label{color:#9673a8}#prompt{color:#775187}.composer-tools>span,.chat-footer,.chat-disclaimer{color:#a183b4}.send-button{background:var(--purple)}#output{color:#8d709c}.test-pass{color:#61866e}.test-fail{color:#aa6f66}.save-status{color:#9478a4}.learning-note{color:#9678a5}.finished>p{color:#9270a0}#summary-results{color:#8e659f}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}@keyframes blink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}}@keyframes wave{0%,100%{transform:rotate(0)}30%{transform:rotate(-7deg)}70%{transform:rotate(9deg)}}@keyframes message-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media(min-width:1500px){main{padding-top:58px}.hero-scene{height:285px}.hero-bot{top:70px}.bubble-cloud{bottom:35px}.start-card{padding:32px}.chat-log{max-height:440px}}
@media(max-width:1050px){.welcome{gap:4%;grid-template-columns:minmax(0,1fr) minmax(350px,.9fr)}.intro h1{font-size:49px}.mini-code{width:220px}.bubble-you{font-size:8px;right:-3px;padding:11px;top:76px}.bubble-cloud{font-size:8px;max-width:210px}.scene-sticker{right:0;font-size:8px;padding:12px}.hero-bot{left:28%;top:70px}.facts{gap:10px}.facts>div{gap:6px}.facts div>span{font-size:8px}.lab-grid{gap:15px;grid-template-columns:minmax(0,1fr) minmax(330px,.85fr)}.problem-tab{padding:12px;gap:7px}.tab-icon{height:28px;width:28px;font-size:15px}.tab-content strong{font-size:9px}.tab-content small{font-size:7px}.problem-panel{padding:20px}.problem-panel h2{font-size:19px}.session-strip h1{font-size:22px}.chat-goals button{font-size:7px}}
@media(max-width:760px){.topbar{height:73px;padding:0 5%;gap:12px}.brand{font-size:19px}.brand-mark{width:35px;height:35px;font-size:26px}.brand-mark>span{font-size:24px;right:3px;top:1px}.pilot{font-size:8px;padding:6px 8px}.top-right{display:none}main{padding:29px 5% 60px}.welcome{display:flex;flex-direction:column;gap:26px}.intro{padding:0;width:100%}.eyebrow{font-size:8px;letter-spacing:.6px}.intro h1{font-size:49px;letter-spacing:-2.2px;margin:19px 0}.lede{font-size:12px;max-width:440px}.hero-scene{height:245px;width:100%;max-width:470px;margin:14px auto 0}.hero-bot{left:32%;top:58px;width:135px}.hero-bot svg{width:135px;height:122px}.mini-code{width:230px}.bubble-you{right:0;top:60px;font-size:9px}.bubble-cloud{bottom:20px;font-size:9px}.scene-sticker{right:4%;bottom:9px}.orbit-one{height:190px;width:190px;top:30px;left:27%}.orbit-two{width:260px;left:17%}.facts{gap:6px;padding-top:17px;margin-top:0}.facts div>span{font-size:8px}.intro-note{text-align:center;font-size:9px}.start-card{width:100%;max-width:500px;margin:auto;padding:25px}.card-heading h2{font-size:25px}.form-grid{gap:9px 11px}.mode-option strong{font-size:11px}.mode-option small{font-size:9px}.privacy{font-size:10px}.fine{font-size:9px}.session-strip{align-items:start;gap:12px}.session-strip h1{font-size:22px;max-width:230px;line-height:1.5}.session-tools{gap:6px;flex-direction:column;align-items:end}.time-pill{padding:10px;gap:7px}.time-pill>span{display:none}.time-pill strong{font-size:16px}.session-tools>.quiet{font-size:8px;padding:4px}.journey-heading{font-size:8px}.problem-tabs{grid-template-columns:1fr 1fr;gap:8px;margin:13px 0 18px}.problem-tab{padding:12px 11px}.tab-content strong{font-size:10px}.tab-done{width:15px;height:15px;font-size:9px}.lab-grid,.chat-focused .lab-grid{display:flex;flex-direction:column;gap:20px}.work-column,.ai-panel{width:100%}.problem-panel{padding:20px}.problem-panel h2{font-size:20px}.problem-panel>p{font-size:12px}.problem-emoji{height:40px;width:40px;font-size:21px}.lesson-number{font-size:8px}.prediction-control{flex-wrap:wrap}.prediction-control input{flex:1;min-width:150px}.prediction-control .secondary{font-size:9px}.hint-box{font-size:11px}.think-link{font-size:10px}.problem-result{font-size:11px}.editor-heading{font-size:10px;padding:12px}.editor-heading>div{gap:4px}#python-status{font-size:7px}.editor-actions{padding:12px 10px}.editor-actions .primary,.editor-actions .secondary{font-size:10px;padding:10px 13px}.editor-actions>div{gap:6px}#code{font-size:11px;min-height:240px}#line-numbers{width:35px;padding-right:11px}.save-status{font-size:9px}.learning-note p{font-size:10px}.ai-panel{position:static;scroll-margin-top:18px}.ai-heading{padding:20px 20px 15px}.ai-heading h2{font-size:19px}.ai-heading p{font-size:10px}.ai-heading h2>span{font-size:8px}.chat-goals{padding:0 20px 14px}.chat-goals button{font-size:9px;padding:10px 5px}.ai-notice{margin:0 20px 14px;font-size:9px}.chat-log,.chat-focused .chat-log{padding:20px;min-height:310px;max-height:470px}.chat-empty h3{font-size:17px}.chat-empty p{font-size:11px}.empty-example{font-size:10px}.message-body{font-size:12px;padding:13px}.message-body code{font-size:10px}.message-meta strong{font-size:9px}.message-meta,.message-origin{font-size:8px}.message-stack{max-width:calc(100% - 28px)}.message-avatar{height:21px;width:21px}.chat-context{margin:0 20px 12px;font-size:10px}.suggestion-heading{padding:13px 20px 9px;font-size:8px}.suggestion-heading>span+span{font-size:8px}.prompt-suggestions{padding:0 20px 15px}.prompt-chip{font-size:10px;padding:9px 11px}#chat-form{padding:0 20px}#chat-form>label{font-size:10px}#prompt{font-size:12px;min-height:95px}.composer-tools>span{font-size:8px}.send-button{height:35px;width:35px;font-size:25px}.chat-footer{font-size:8px}.chat-disclaimer{font-size:9px;margin:14px 20px 20px}.mobile-chat{display:flex;align-items:center;justify-content:center;gap:8px;position:fixed;bottom:15px;left:50%;transform:translateX(-50%);background:var(--purple);color:white;padding:12px 20px;border:1px solid #b8a0d6;border-radius:25px;box-shadow:0 7px 23px #7a5b9e33;font-size:11px;z-index:20;white-space:nowrap}.mobile-chat>span{font-size:18px;color:#eddaff}.mobile-chat>b{margin-left:8px;font-size:14px}.finished{padding:30px 23px;margin:0 auto}.finished h1{font-size:24px;line-height:1.5}.finished .eyebrow{font-size:7px;letter-spacing:.5px}.finish-actions .quiet,.finish-actions .secondary{font-size:9px}.toast{bottom:70px;font-size:10px}.chat-expand{display:none}footer{padding:22px 5% 28px;gap:8px;font-size:8px}footer>span:nth-child(2){display:none}.footer-brand{font-size:11px}}
.chat-in-view .mobile-chat{opacity:0;pointer-events:none}
/* Reading and conversation take priority over decorative small print. */
.form-grid label,.mode-options legend{font-size:11px}input,select{font-size:12px}.mode-option strong{font-size:11px}.mode-option small,.privacy{font-size:10px;color:#75627e}.fine{font-size:9px;color:#8b7795}.tab-content strong{font-size:12px;color:#5f4673}.tab-content small{font-size:9px;color:#937da1}.panel-label{font-size:10px}.lesson-number{font-size:10px}.problem-panel>p{font-size:13px;line-height:2;color:#665170}.hint-box{font-size:11px;color:#856535}.think-link{font-size:11px;color:#76509c}.problem-result{font-size:11px}.learning-note p{font-size:11px;color:#8b729d}.editor-heading{font-size:11px}#code,#line-numbers{font-size:12px}#python-status{font-size:9px}#output{font-size:11px;color:#755887}.test-results{font-size:10px}.save-status{font-size:9px;color:#8d739e}.ai-panel{display:flex;flex-direction:column;height:min(850px,calc(100dvh - 36px));max-height:calc(100dvh - 36px)}.ai-panel>:not(.chat-log){flex-shrink:0}.ai-heading{padding-top:17px;padding-bottom:13px}.ai-heading h2{font-size:20px}.ai-heading p{font-size:11px;color:#857095}.ai-notice{font-size:10px;color:#80618f;padding:8px 10px;margin-bottom:11px}.chat-goals{padding-bottom:11px}.chat-goals button{font-size:10px;padding:7px 6px}.chat-log{height:auto;flex:1 1 auto;min-height:80px;max-height:none;padding-top:13px}.chat-empty{padding-top:7px;padding-bottom:8px}.chat-empty .empty-spark{height:37px;width:37px;margin-bottom:10px;font-size:24px}.chat-empty h3{font-size:16px;color:#744893}.chat-empty p{font-size:12px;line-height:1.9;color:#876798}.empty-example{font-size:11px;color:#87639d}.empty-example span{font-size:8px}.message-body{font-size:13px;line-height:1.85;color:#533962}.chat-message.user .message-body{color:#53336e}.message-body code,.message-body pre{font-size:11px;color:#71508b}.message-meta strong{font-size:10px;color:#7a5490}.message-meta,.message-origin{font-size:9px;color:#9473a6}.suggestion-heading{font-size:8px;padding-top:10px}.suggestion-heading>span+span{font-size:8px;color:#a085b0}.prompt-suggestions{gap:5px;padding-bottom:10px}.prompt-chip{font-size:10px;color:#795393;padding:6px 8px}.chat-context{font-size:10px;margin-bottom:10px}.chat-focused .chat-log{min-height:80px;max-height:none}#chat-form>label{font-size:10px;color:#896a9b}#prompt{font-size:12px;min-height:65px;height:72px;color:#61436f;padding-top:10px;padding-bottom:7px}#prompt::placeholder{color:#ab91bf}.composer-tools>span{font-size:8px;color:#a083b3}.chat-footer{font-size:8px;color:#9a7cac}.chat-disclaimer{font-size:9px;color:#977caa;margin-top:9px;margin-bottom:13px}.send-button{width:32px;height:32px}.finished>p{font-size:12px}#summary-results{font-size:12px}.finished>label{font-size:12px}.time-pill>span{font-size:8px}.journey-heading{font-size:10px}
@media(max-width:1050px) and (min-width:761px){.tab-content strong{font-size:10px}.tab-content small{font-size:8px}.chat-goals button{font-size:8px}.problem-panel>p{font-size:12px}.prompt-chip{font-size:9px}.chat-empty p{font-size:11px}}
@media(max-width:760px){.ai-panel{height:auto;max-height:none}.chat-log,.chat-focused .chat-log{height:350px;max-height:470px;min-height:280px;flex:initial}.message-body{font-size:13px}.panel-label{font-size:9px}.tab-content strong{font-size:11px}.tab-content small{font-size:8px}.problem-panel>p{font-size:13px}.chat-goals button{font-size:10px}.prompt-chip{font-size:11px}#prompt{height:90px;min-height:90px;font-size:13px}.chat-disclaimer{font-size:10px}.chat-footer{font-size:9px}.mobile-chat{font-size:12px}.form-grid label{font-size:11px}.mode-option strong{font-size:12px}.mode-option small,.privacy{font-size:11px}.lesson-number{font-size:9px}}
@media(max-height:550px) and (min-width:761px){.ai-panel{position:static;max-height:none;height:auto}.chat-log{height:250px;min-height:150px;flex:initial}}
@media(prefers-reduced-motion:reduce){html,.chat-log{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

/* ==========================================================================
   CRISP EDITORIAL OVERRIDE — Khử chất "nhựa", tăng độ nét & tương phản chuẩn
   ========================================================================== */
:root {
  --paper: #f8fafc;
  --ink: #0f172a;
  --purple: #4f46e5;
  --lavender: #eef2ff;
  --line: #e2e8f0;
  --muted: #475569;
  --yellow: #fde047;
  --mint: #a7f3d0;
}

body {
  background-color: var(--paper);
  background-image: radial-gradient(#cbd5e1 0.75px, transparent 0.75px);
  background-size: 24px 24px;
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* 1. Làm sắc nét thẻ Card, bỏ vạch tím bị cắt ở góc .start-card */
.start-card, .panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
}
.start-card { overflow: hidden; }
.start-card:before {
  top: 0; left: 0; width: 100%; height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--purple), #818cf8, transparent);
}

/* 2. Custom <select> & Input sắc nét, không dùng mũi tên thô mặc định */
input, select, textarea {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

/* 3. Nâng cỡ chữ & độ tương phản toàn trang (bỏ chữ tím mờ 8px-10px) */
label, .form-grid label, .mode-options legend { color: #1e293b !important; font-size: 12px !important; font-weight: 600; }
.lede, .problem-panel > p { color: #334155 !important; font-size: 14px !important; line-height: 1.75 !important; }
.card-heading p, .intro-note, .facts div > span, .panel-label, .lesson-number { color: #475569 !important; font-size: 12px !important; }
.mode-option { border-color: #cbd5e1; border-radius: 10px; background: #ffffff; }
.mode-option:has(input:checked) { background: #eef2ff; border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.mode-option strong { color: #0f172a !important; font-size: 13px !important; }
.mode-option small, .privacy, .fine { color: #475569 !important; font-size: 11.5px !important; line-height: 1.6 !important; }

/* 4. Nút bấm có độ đanh (tactile depth) */
.primary {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 6px rgba(79, 70, 229, 0.25);
  font-size: 13px !important;
  font-weight: 600;
}
.primary:hover:not(:disabled) { background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%); }
.secondary { background: #f1f5f9; color: #1e293b; border: 1px solid #cbd5e1; font-size: 12.5px !important; font-weight: 600; }
.secondary:hover:not(:disabled) { background: #e2e8f0; }
.quiet { color: #475569; font-size: 12px !important; }

/* 5. Bên trong Phòng Lab: Tab bài tập, Khung Code & Console sắc nét */
.problem-tab { border-color: #cbd5e1; border-radius: 10px; color: #334155; }
.problem-tab.active { background: #eef2ff; border-color: var(--purple); box-shadow: 0 0 0 1px var(--purple); }
.tab-icon { background: #f1f5f9; color: #334155; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.problem-tab.active .tab-icon { background: var(--purple); color: #ffffff; }
.tab-content strong { color: #0f172a !important; font-size: 13px !important; }
.tab-content small { color: #64748b !important; font-size: 10.5px !important; }

.mini-code { background: #0f172a; border-color: #1e293b; color: #f8fafc; box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.25); }
.mini-code > span, .mini-code small { color: #94a3b8; }
.mini-code code { color: #e2e8f0; font-size: 12px; }
.mini-code em { color: #38bdf8; }
.mini-code b { color: #4ade80; }

.editor-heading { background: #0f172a; border-bottom: 1px solid #1e293b; color: #e2e8f0; font-size: 12px !important; }
#python-status { color: #94a3b8; font-size: 11px !important; }
.code-wrap { background: #0f172a; }
#line-numbers { color: #64748b; font-size: 13px !important; }
#code { color: #f8fafc; font-size: 13.5px !important; line-height: 1.75 !important; }
.editor-actions { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.output-heading { color: #475569; font-size: 11px !important; font-weight: 600; }
#output { color: #0f172a !important; font-size: 12.5px !important; background: #f8fafc; padding: 12px 17px !important; border-top: 1px solid #f1f5f9; }
.test-results { font-size: 12px !important; }
.test-pass { color: #15803d !important; font-weight: 500; }
.test-fail { color: #b91c1c !important; font-weight: 500; }
.save-status { color: #64748b !important; font-size: 11px !important; }

/* 6. Khung Chat AI (Mây): Sạch sẽ, dễ đọc như Linear/Claude */
.ai-panel { border-color: #cbd5e1; }
.ai-heading p, .ai-notice { color: #475569 !important; font-size: 11.5px !important; }
.ai-notice { background: #f8fafc; border-color: #e2e8f0; }
.chat-goals button { font-size: 11.5px !important; color: #334155 !important; border-color: #cbd5e1; font-weight: 500; }
.chat-goals .active { background: #eef2ff; border-color: var(--purple); color: var(--purple) !important; font-weight: 600; }
.message-body { background: #f8fafc; border: 1px solid #e2e8f0; color: #0f172a !important; font-size: 13.5px !important; line-height: 1.65 !important; }
.chat-message.user .message-body { background: #eef2ff; border-color: #c7d2fe; color: #1e1b4b !important; }
.message-body code, .message-body pre { background: #e2e8f0; color: #0f172a !important; font-size: 12px !important; }
.prompt-chip { background: #ffffff; border: 1px solid #cbd5e1; color: #334155 !important; font-size: 11.5px !important; }
.prompt-chip:hover:not(:disabled) { background: #eef2ff; border-color: var(--purple); color: var(--purple) !important; }
.composer { background: #ffffff; border: 1px solid #cbd5e1; }
#prompt { color: #0f172a !important; font-size: 13px !important; }
#prompt::placeholder { color: #94a3b8 !important; }
.composer-tools > span, .chat-footer, .chat-disclaimer { color: #64748b !important; font-size: 11px !important; }

