/* Code, evidence and conversation each get a dedicated surface. */
.nav-new{margin-left:auto;font-size:9px;color:#5146e5;background:#e3dfff;padding:2px 5px;border-radius:4px}.workspace-mode .main-shell main{max-width:none;padding:22px 24px}.workspace-mode .sidebar{width:196px}.workspace-mode .main-shell{margin-left:196px}.workspace-mode .topbar{padding-left:24px;padding-right:24px}.workspace-mode footer{margin-top:32px}.work-grid{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(360px,1.7fr) minmax(285px,1fr);gap:16px;align-items:start}.coding-column{min-width:0;display:flex;flex-direction:column;gap:16px}.panel{min-width:0;border:1px solid #dce2ee;border-radius:12px;box-shadow:0 3px 12px #18283c04;overflow:hidden;background:white}.panel-header{min-height:52px;padding:13px 17px;border-bottom:1px solid #e1e6f0;background:#fafbfe;display:flex;justify-content:space-between;gap:10px;align-items:center}.panel-header h2{font-size:13px;font-weight:650;display:flex;align-items:center;gap:8px}.panel-header select{max-width:170px;color:#46536c;background:white;border:1px solid #dce2ee;border-radius:6px;padding:5px 8px;font-size:11px}.problem-panel .problem-body{max-height:calc(100vh - 185px);overflow:auto;padding:20px}.problem-body h1{font-size:20px;line-height:1.6}.problem-body p{font-size:12px;white-space:pre-line;line-height:1.9}.problem-body pre{white-space:pre-wrap;overflow-wrap:anywhere}.source-note{margin-top:22px;padding-top:15px;border-top:1px solid #e1e6f0;overflow-wrap:anywhere}.source-note a{font-weight:600;color:#5146e5;font-size:11px}.source-note p,.source-note small{font-size:10px;color:#64748b}.source-note details{margin-top:10px;font-size:11px}.source-note summary{cursor:pointer}.code-wrap,.pg-code-wrap{height:360px;min-height:220px;display:flex;resize:vertical;overflow:hidden;background:#172033}.editor-panel .code-wrap{height:350px}.code-wrap pre,.code-wrap textarea{font:13px/23px "SFMono-Regular",Consolas,"Liberation Mono",monospace!important;tab-size:4;white-space:pre;letter-spacing:0!important}.code-stack{position:relative;flex:1;min-width:0;height:100%;overflow:hidden}.code-stack pre,.code-stack textarea{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:16px 18px 16px 12px;border:0;border-radius:0;overflow:auto;resize:none}.code-stack pre{pointer-events:none;color:#d9e2f1;background:#172033}.code-stack textarea{background:transparent;color:transparent!important;caret-color:#f8fafc;outline:none;-webkit-text-fill-color:transparent}.code-stack textarea::selection{background:#6476bf80;-webkit-text-fill-color:transparent}.code-wrap>pre{width:46px;flex-shrink:0;text-align:right;padding:16px 11px 16px 0;margin:0;overflow:hidden;color:#71809b;background:#172033;border-right:1px solid #293449}.code-stack .tok-keyword{color:#c4a6ff}.code-stack .tok-number{color:#f8c589}.code-stack .tok-string{color:#9fdbbb}.code-stack .tok-comment{color:#7e91ae}.editor-toolbar,.editor-status{padding:7px 16px;background:#1c273b;border-color:#2b374c;color:#99abc4;font-size:10px;display:flex;justify-content:space-between}.run-area{padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white}.run-area p{font-size:10px;line-height:1.6;margin:0;max-width:220px}.run-area .primary{margin:0;white-space:nowrap;font-size:12px;min-width:134px}.console-panel .result-content{padding:0;max-height:540px;overflow:auto}.console-summary{padding:14px 16px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#f8faff;border-bottom:1px solid #e7ebf2;font-size:11px;color:#64748b}.console-summary strong{font-size:13px;color:#25476a}.console-summary .text-button{margin-left:auto;font-size:11px}.console-empty{padding:32px 22px;color:#78879d;font-size:12px;line-height:1.9}.console-block{padding:14px 16px}.console-panel pre{margin:8px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 Consolas,monospace;max-height:320px;overflow:auto}.console-block pre{color:#bd354b;background:#fff1f3;padding:14px;border-radius:7px}.console-block>span{font-size:10px;color:#8793a5}.failure-detail{margin:14px;background:#fff6ef;border:1px solid #f3dac5;border-radius:8px;padding:12px;font-size:11px}.failure-detail summary{cursor:pointer;color:#9d5328;font-weight:600}.failure-detail .output-pair{margin-top:12px}.output-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.output-pair>div{min-width:0}.case-list{padding:8px 14px 14px}.case-row{border-bottom:1px solid #e8edf4;font-size:11px}.case-row summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer;padding:11px 0;color:#5d6c83}.case-row summary:after{content:'⌄';color:#94a3b8}.case-row[open] summary:after{content:'⌃'}.case-row summary small{margin-left:auto}.case-state{display:inline-flex;align-items:center;justify-content:center;width:21px;height:21px;border-radius:6px}.case-state.pass{background:#e2f5ef;color:#15806a}.case-state.fail{background:#ffebe5;color:#c86338}.case-detail{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#f6f8fc;border-radius:8px;padding:13px;margin-bottom:12px}.case-detail>div:first-child,.case-stderr{grid-column:1/-1}.case-detail span{font-size:10px;color:#7b899d}.case-detail pre{margin-top:5px;color:#334155}.case-stderr pre{color:#b34b51}.console-foot{padding:12px 16px;color:#8895a7;font-size:10px;border-top:1px solid #e8edf4}.console-panel .trace{padding:12px 16px;margin:0;font-size:11px}.console-panel .regression{margin:12px 15px;font-size:11px}.console-panel .empty-state{padding:25px 16px}.console-panel .empty-art{display:none}.console-panel .empty-state h3{font-size:14px}.console-panel .empty-steps{display:none}.console-panel .empty-state p{font-size:11px}.legacy-coach{display:none!important}
.chat-panel{display:flex;flex-direction:column;height:calc(100vh - 160px);min-height:540px;max-height:1000px;position:sticky;top:85px}.chat-panel .panel-header{background:#f4f2ff}.chat-star{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;color:white;background:#6251df}.chat-new{font-size:11px;color:#6a5cc1}.chat-context{padding:10px 15px 4px;font-size:10px;color:#77879b;min-height:27px}.chat-history{margin:4px 14px 8px;font-size:10px;color:#758196;border:1px solid #e5e9f1;background:#fafbfe;border-radius:5px;padding:4px;width:calc(100% - 28px)}.chat-messages{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:15px;min-height:0;scroll-behavior:smooth}.chat-welcome{margin:45px 6px;text-align:center;color:#71819a}.chat-welcome>div{width:48px;height:48px;border-radius:16px;background:#eeebff;color:#6c5ce3;display:grid;place-items:center;font-size:27px;margin:0 auto 20px}.chat-welcome h3{font-size:16px;font-weight:600;margin-bottom:10px}.chat-welcome p{font-size:12px;line-height:1.9}.chat-welcome span{display:block;font-size:10px;letter-spacing:1px;margin-top:22px;color:#a0aabe}.chat-message{font-size:12px;line-height:1.9;margin-bottom:22px;overflow-wrap:anywhere;min-width:0}.chat-message>small{font-size:10px;display:block;color:#8794a8;margin-bottom:7px}.chat-message.user>div{background:#eeebff;color:#433783;padding:12px 14px;border-radius:12px 12px 3px 12px;white-space:pre-wrap}.chat-message.user{margin-left:24px}.chat-message.user>small{text-align:right}.chat-message.assistant>small{color:#6556b6;font-weight:600}.chat-message .chat-response-meta{font-size:9px;color:#a1adbe;margin-top:9px;font-weight:400}.chat-prose{white-space:pre-wrap;color:#3a4b63}.chat-prose code{background:#f0eef8;color:#5a4a9b;border-radius:4px;padding:1px 4px;font-size:11px}.chat-heading{display:block;margin:8px 0 0}.chat-code{margin:12px 0;border:1px solid #2b3a51;border-radius:8px;overflow:hidden}.chat-codebar{display:flex;align-items:center;gap:10px;padding:6px 9px;background:#253249;color:#a5b5cd;font-size:9px}.chat-codebar span{margin-right:auto}.chat-codebar button{background:transparent;color:#c2cce0;font-size:9px;padding:0}.chat-code pre{margin:0;padding:13px;background:#192438;color:#d6e1f3;overflow:auto;font:11px/1.8 Consolas,monospace;white-space:pre;max-height:340px}.chat-thinking{color:#8796ad;animation:pulse-thinking 1.7s ease-in-out infinite}.chat-error{color:#b35252;background:#fff3f2;border-radius:8px;padding:10px;font-size:11px}.chat-suggestions{display:flex;gap:5px;padding:8px 12px;flex-wrap:wrap}.chat-suggestions button{border:1px solid #e2deee;background:#faf9ff;color:#6b608b;font-size:10px;padding:5px 8px;border-radius:6px}.chat-suggestions button:hover{background:#ede9ff}.chat-compose{margin:0 12px 5px;border:1px solid #d9d3ef;border-radius:10px;background:#fff;padding:10px 11px;box-shadow:0 2px 5px #402b8005}.chat-compose:focus-within{border-color:#8a7ddd;box-shadow:0 0 0 3px #8975e614}.chat-compose textarea{display:block;width:100%;border:0;background:transparent;outline:none;resize:none;color:#36455b;font-size:12px;line-height:1.8;max-height:150px}.chat-compose>div{display:flex;justify-content:space-between;align-items:center}.chat-compose small{font-size:9px;color:#9bA5b4}.chat-compose button{width:29px;height:29px;border-radius:8px;background:#6251df;color:#fff;font-size:19px}.chat-foot{text-align:center;color:#a1aaba;font-size:9px;padding:4px 8px 10px}.chat-panel textarea:focus-visible{outline:none}
.playground-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 22px;gap:16px}.playground-heading h1{font-size:24px;font-weight:650;margin-top:4px;letter-spacing:-.5px}.playground-heading h1>span{font-weight:300;color:#c4ccdb;margin:0 10px}.playground-heading h1>small{font-size:13px;color:#7d8ca4;font-weight:400;letter-spacing:0}.runtime-indicator{font-size:11px;color:#4f8675;border:1px solid #cfe4db;background:#f0faf5;padding:6px 12px;border-radius:20px}.playground-grid{display:grid;grid-template-columns:minmax(400px,1fr) 365px;gap:20px;align-items:start}.playground-side{display:flex;flex-direction:column;gap:18px;min-width:0}.playground-side .chat-panel{position:static;height:620px;min-height:500px}.pg-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafbfe;border-bottom:1px solid #e3e8f1;padding:9px 15px}.pg-toolbar select{border:0;background:transparent;color:#63728a;font-size:11px;max-width:220px}.pg-toolbar .text-button{font-size:10px;margin-left:10px}.pg-code-wrap{height:390px}.pg-input{background:#f9fbff;padding:13px 16px;border-top:1px solid #e2e7ef}.pg-input label{font-size:11px;font-weight:600;display:block;margin-bottom:7px}.pg-input label small{font-weight:400;color:#8c99ac;margin-left:10px;font-size:10px}.pg-input textarea{width:100%;display:block;resize:vertical;border:1px solid #dee5f0;border-radius:6px;padding:9px 11px;background:white;color:#3c4c64;font:12px/1.7 Consolas,monospace;min-height:65px;max-height:260px}.pg-input textarea:focus{outline:1px solid #8b80d8}.pg-run-bar{padding:12px 16px;border-top:1px solid #e2e7ef;display:flex;justify-content:space-between;gap:10px;align-items:center}.pg-run-bar label{font-size:11px;color:#8490a3}.pg-run-bar select{border:1px solid #dce2ee;border-radius:5px;padding:4px;margin-left:5px;color:#52627a;font-size:11px;background:white}.pg-run-bar>div{display:flex;gap:8px}.pg-run-bar button{font-size:12px;padding:9px 15px;border-radius:7px}.pg-run-bar .secondary{border:1px solid #dce2ee;background:white;color:#6a7890}.pg-run-bar kbd{font-size:10px;opacity:.65;margin-left:9px}.pg-console #pg-result{max-height:550px;overflow:auto}.terminal-output{padding:15px 18px;background:#172033;color:#cbd7e9;border-bottom:1px solid #2c374b}.terminal-output>span{font-size:9px;color:#8294b2;letter-spacing:1.5px}.terminal-output pre{color:#d1e0f1;font-size:12px;line-height:1.8}.terminal-output.error-output>span{color:#e3a394}.terminal-output.error-output pre{color:#f2c0b1}.build-output{padding:12px 16px;font-size:11px;color:#718198}.build-output summary{cursor:pointer}.build-output pre{color:#475569}.resource-tabs{display:flex;background:#f8faff;border-bottom:1px solid #e2e7f0;padding:0 9px}.resource-tabs button{font-size:11px;color:#7c8ba1;padding:13px 12px;background:transparent;border-bottom:2px solid transparent}.resource-tabs button.active{color:#5745c9;border-bottom-color:#6955e1;font-weight:650}#pg-resources{padding:17px;min-height:240px;max-height:445px;overflow:auto}#pg-resources h3{font-size:11px;color:#63728b;margin:12px 0 8px}#pg-resources .caption{font-size:10px;line-height:1.9}#pg-resources summary{font-size:10px;color:#7c8da4;cursor:pointer}.runtime-versions{display:grid;gap:7px;margin-bottom:13px}.runtime-versions>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#8593a6}.runtime-versions strong{font-size:10px;color:#53637d;font-weight:500;overflow-wrap:anywhere;text-align:right}.library-versions{border:1px solid #e5eaf2;border-radius:7px;overflow:hidden;margin-bottom:12px}.library-versions>div{display:flex;justify-content:space-between;padding:6px 9px;font-size:10px;border-bottom:1px solid #eef1f6}.library-versions>div:last-child{border:0}.library-versions code{color:#4b5972}.library-versions span{color:#8796ac}.standard-libraries{font-size:10px;color:#6e7f97;padding:10px 0}.runtime-limits{display:flex;gap:6px;flex-wrap:wrap;margin:13px 0}.runtime-limits span{font-size:9px;color:#76879e;background:#f2f5fa;padding:3px 7px;border-radius:4px}.runtime-dataset{border:1px solid #e1e7f1;padding:12px;border-radius:8px;margin-top:12px}.runtime-dataset label{display:flex;gap:7px;align-items:center;font-size:11px;cursor:pointer}.runtime-dataset small{margin-left:auto;color:#8998ac;font-size:9px}.runtime-dataset>code{display:block;font-size:10px;color:#8a78b8;margin:8px 0;overflow-wrap:anywhere}.dataset-file{font:10px/1.9 Consolas,monospace;color:#708099;overflow-wrap:anywhere}.runtime-dataset .text-button{font-size:10px;margin-top:8px}.resource-heading{display:flex;align-items:center;justify-content:space-between;color:#8190a8;font-size:10px}.resource-heading .text-button{font-size:10px}.runtime-history{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;background:white;border-bottom:1px solid #e8edf5;padding:11px 0;text-align:left;font-size:10px;color:#6a7a92}.runtime-history:hover{background:#f9faff}.runtime-history b{font-family:monospace;font-size:11px;font-weight:500;color:#4b5e7a}.runtime-history small{display:block;font-size:9px;color:#9ca8b9}.practice-heading{margin-bottom:17px}
@keyframes pulse-thinking{50%{opacity:.45}}
@media(min-width:1650px){.work-grid{grid-template-columns:minmax(260px,.9fr) minmax(500px,1.7fr) minmax(350px,1fr)}.editor-panel .code-wrap{height:420px}.playground-grid{grid-template-columns:minmax(600px,1fr) 410px}.pg-code-wrap{height:470px}}
@media(max-width:1200px){.workspace-mode .sidebar{width:175px}.workspace-mode .main-shell{margin-left:175px}.workspace-mode .main-shell main{padding:18px}.work-grid{grid-template-columns:minmax(320px,1.5fr) minmax(285px,1fr)}.problem-panel{grid-column:1/-1}.problem-panel .problem-body{max-height:250px}.chat-panel{top:75px;height:750px}.playground-grid{grid-template-columns:minmax(320px,1fr) 310px}.playground-heading h1 small,.runtime-indicator{display:none}}
@media(max-width:850px){.workspace-mode .sidebar{width:70px}.workspace-mode .main-shell{margin-left:70px}.work-grid{grid-template-columns:minmax(0,1fr)}.problem-panel{grid-column:auto}.chat-panel{height:620px;position:static}.playground-grid{grid-template-columns:minmax(0,1fr)}.playground-side{display:grid;grid-template-columns:minmax(0,1fr)}.workspace-mode .main-shell main{padding:14px}.playground-heading h1{font-size:22px}.playground-heading h1 span{display:none}.workspace-mode .nav-new{display:none}.coding-column{gap:13px}}
@media(max-width:600px){.workspace-mode .sidebar{display:none}.workspace-mode .main-shell{margin-left:0}.workspace-mode .main-shell main{padding:12px}.workspace-mode .topbar{padding:12px}.practice-heading{font-size:10px}.run-area{flex-direction:column;align-items:stretch}.run-area p{max-width:none}.run-area .primary{justify-content:center}.case-detail{grid-template-columns:minmax(0,1fr)}.case-detail>div{grid-column:1}.playground-heading{margin-top:8px}.pg-toolbar{padding:9px 12px}.pg-toolbar select{max-width:180px}.pg-run-bar kbd{display:none}.code-wrap pre,.code-wrap textarea{font-size:12px!important;line-height:22px!important}.panel-header{padding:12px}.chat-panel{height:620px}.workspace-mode .main-shell .topbar:before{content:none}.workspace-mobile-nav{display:flex!important;gap:8px;margin-bottom:14px}.workspace-mobile-nav button{font-size:11px;padding:7px 11px;border:1px solid #dfe4ee;border-radius:7px;background:#fff;color:#5f6b83}}
.workspace-mobile-nav{display:none}
@media(prefers-reduced-motion:reduce){.chat-thinking{animation:none}.chat-messages{scroll-behavior:auto}}
