.workspace-page .library-container{width:min(1740px,100% - 48px)}.exercise-workspace-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:20px}.workspace-page .exercise-workspace-layout{align-items:stretch}.workspace-page .exercise-workspace-layout>.lesson-card,.workspace-page .exercise-workspace-layout>.code-workspace{min-height:0}.workspace-page .detail-breadcrumb{font-size:.86rem}.workspace-page .lesson-card{border-radius:20px;padding:28px}.workspace-page .lesson-heading h1{font-size:clamp(2.5rem,3.75vw,3.5rem);line-height:1.15}.workspace-page .lesson-heading>p{font-size:1rem;line-height:1.75}.workspace-page .lesson-section__title h2{font-size:1.24rem}.workspace-page .lesson-section__title>span{width:36px;height:36px}.workspace-page .lesson-section>p{font-size:1rem;line-height:1.75}.workspace-page .lesson-meta span{min-height:38px;padding-inline:.82rem;font-size:.82rem}.workspace-page .lesson-section{padding-inline:0}.structured-statement-section{gap:16px;display:grid}.structured-statement-section>.lesson-section__title{margin-bottom:0}.structured-content-card,.structured-examples{background:#f8fbff;border:1px solid #dce7f5;border-radius:14px;padding:20px}.structured-content-card h2,.structured-examples h2{color:#102750;margin:0 0 12px;font-size:1.25rem;line-height:1.3}.structured-content-card p,.structured-example-explanation p{color:#425b7b;margin:0 0 10px;font-size:1rem;line-height:1.75}.structured-content-card p.structured-empty{color:#71839d;margin:0;font-style:italic}.structured-content-card p:last-child,.structured-example-explanation p:last-child{margin-bottom:0}.structured-content-card ul,.structured-example-explanation ul{color:#425b7b;gap:8px;margin:0;padding-left:22px;font-size:1rem;line-height:1.75;display:grid}.structured-content-card li::marker{color:#1976ed}.structured-example-explanation li::marker{color:#1976ed}.structured-io-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.structured-code{color:#d9eaff;white-space:pre-wrap;background:#11213a;border-radius:9px;max-width:100%;margin:12px 0 0;padding:15px 17px;font:14px/1.75 Consolas,monospace;overflow-x:auto}.structured-code code{color:inherit;font:inherit;font-size:inherit;background:0 0;border:0;border-radius:0;padding:0;display:block}.structured-content-card>.structured-code{margin-top:0}.structured-examples{background:#fff}.structured-example+.structured-example{border-top:1px solid #dce7f5;margin-top:14px;padding-top:14px}.structured-example h3{color:#193c70;margin:0;font-size:1.08rem}.structured-example h4{color:#385578;margin:14px 0 0;font-size:.92rem}.structured-example-grid{grid-template-columns:1fr 1fr;gap:12px;display:grid}.structured-example-grid .structured-code{margin-top:6px}.structured-example-explanation{margin-top:4px}.structured-example-explanation .structured-code{margin-top:8px}.problem-tabs{min-width:0}.problem-tab-radio{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.problem-tabs__bar{background:#f3f8fe;border:1px solid #d7e4f3;border-radius:12px;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 18px;padding:4px;display:grid}.problem-tabs__bar label{color:#58708f;cursor:pointer;text-align:center;border-radius:9px;justify-content:center;align-items:center;min-height:50px;padding:9px 12px;font-size:.9rem;font-weight:700;line-height:1.3;transition:background .18s,color .18s,box-shadow .18s;display:flex}.problem-tabs__bar label:hover{color:#176bd1}.problem-tab-panel,.problem-support-slot{display:none}#problem-tab-statement:checked~.problem-tabs__bar label[for=problem-tab-statement],#problem-tab-hints:checked~.problem-tabs__bar label[for=problem-tab-hints],#problem-tab-analysis:checked~.problem-tabs__bar label[for=problem-tab-analysis],#problem-tab-code:checked~.problem-tabs__bar label[for=problem-tab-code]{color:#1265df;background:#fff;box-shadow:0 4px 12px #205da01a}#problem-tab-statement:checked~.problem-tab-panel--statement,#problem-tab-hints:checked~.problem-support-slot,#problem-tab-analysis:checked~.problem-support-slot,#problem-tab-code:checked~.problem-support-slot{display:block}#problem-tab-hints:checked~.problem-support-slot .unlock-feature--analysis,#problem-tab-hints:checked~.problem-support-slot .unlock-feature--code,#problem-tab-analysis:checked~.problem-support-slot .unlock-feature--code,#problem-tab-analysis:checked~.problem-support-slot .unlock-feature--hints,#problem-tab-code:checked~.problem-support-slot .unlock-feature--analysis,#problem-tab-hints:checked~.problem-support-slot .support-solution--analysis,#problem-tab-hints:checked~.problem-support-slot .support-solution--code,#problem-tab-analysis:checked~.problem-support-slot .support-hints,#problem-tab-analysis:checked~.problem-support-slot .support-solution--code,#problem-tab-code:checked~.problem-support-slot .support-hints,#problem-tab-code:checked~.problem-support-slot .support-solution--analysis{display:none}.problem-support-slot .learning-support-open,.problem-support-slot .unlock-card{margin-top:0}.math-formula-block{text-align:center;color:#0f274d;background:#f0f6ff;border:1px solid #d4e5fa;border-radius:10px;margin:12px 0;padding:14px 18px;font-size:1.08rem;display:block;overflow-x:auto}.math-formula-inline{color:#14325c;padding:0 2px;font-family:KaTeX_Main,Times New Roman,serif;font-size:1.02em;display:inline}.math-fraction{vertical-align:middle;text-align:center;align-items:center;margin:0 .2em;font-size:.9em;line-height:1.05;display:inline-grid}.math-fraction>span:first-child{border-bottom:1.5px solid;padding:0 .2em .12em}.math-fraction>span:last-child{padding:.12em .2em 0}.math-formula-block .math-fraction{font-size:1.1em}.structured-inline-code{color:#0b4ca8;background:#eef4fc;border:1px solid #d7e4f3;border-radius:6px;padding:2px 7px;font-family:Consolas,Monaco,monospace;font-size:.9em;font-weight:600}.structured-content-card sup,.structured-content-card sub,.structured-example-explanation sup,.structured-example-explanation sub{font-size:.72em;line-height:0}.workspace-solution>summary{color:#1265df;cursor:pointer;border:1px solid #1678ee;border-radius:10px;margin-top:6px;padding:14px 18px;font-size:15px;font-weight:700}.workspace-solution .unlock-card,.workspace-solution .learning-support-open{margin-top:12px}.code-workspace{align-self:start;gap:16px;min-width:0;display:grid}.workspace-editor,.workspace-results,.workspace-chat{background:#fff;border:1px solid #d9e6f5;border-radius:18px;min-width:0;overflow:hidden;box-shadow:0 10px 28px #1747890d}.workspace-editor-head{color:#164b93;align-items:center;gap:20px;min-height:62px;padding:16px 20px;display:flex}.workspace-editor-head strong{border:1px solid #d5e3f5;border-radius:9px;padding:7px 16px}.workspace-editor-head>span{color:#526680;font-size:14px}.workspace-code-area{background:#111e33;min-height:410px;padding:22px 0;display:flex}.workspace-line-numbers{color:#8195b3;text-align:right;border-right:1px solid #2a3a51;flex:none;width:48px;margin:0;padding-right:14px;font:15px/28px Consolas,monospace;overflow:hidden}.workspace-code-area textarea{resize:vertical;color:#d4e6fb;tab-size:4;white-space:pre;background:0 0;border:0;border-radius:0;width:100%;min-width:0;min-height:366px;padding:0 18px;font:15px/28px Consolas,monospace;overflow:auto}.workspace-code-area textarea::placeholder{color:#92a8c6}.workspace-actions{gap:12px;padding:16px 20px 4px;display:flex}.workspace-actions button{color:#1a61b8;min-height:46px;font:inherit;background:#f6faff;border:1px solid #a1c5f5;border-radius:9px;flex:1;justify-content:center;align-items:center;gap:8px;font-weight:700;display:inline-flex}.workspace-actions button:last-child{color:#fff;background:#2563eb;border-color:#2563eb}.workspace-run-input{background:#f6faff;border:1px solid #a8c8ed;border-radius:12px;margin:12px 20px 0;padding:14px}.workspace-run-input header{color:#164b93;align-items:center;gap:8px;font-size:14px;display:flex}.workspace-run-input textarea{resize:vertical;color:#203a5d;background:#fff;border:1px solid #c7d9ef;border-radius:8px;width:100%;min-height:96px;margin-top:10px;padding:12px;font:14px/1.6 Consolas,monospace}.workspace-run-input p{color:#647b98;margin:8px 0 0;font-size:12px;line-height:1.5}.workspace-status{color:#64748b;margin:8px 0 14px;padding:0 20px;font-size:13px;line-height:1.5}.workspace-results{padding:18px 20px}.workspace-results>header{flex-wrap:wrap;justify-content:space-between;gap:8px;display:flex}.workspace-results h2{color:#142c50;align-items:center;gap:8px;margin:0;font-size:16px;display:flex}.workspace-results header>span{color:#6c809c;font-size:13px}.workspace-result-labels{border-bottom:1px solid #e2eaf5;gap:24px;margin-top:16px;font-size:14px;display:flex}.workspace-result-labels>*{color:#6b7d95;padding-bottom:10px}.workspace-result-labels>button{font:inherit;cursor:pointer;background:0 0;border:0}.workspace-result-labels>button[aria-selected=true]{color:#1265df;border-bottom:2px solid #2563eb}.workspace-output{color:#d4e6fb;white-space:pre-wrap;overflow-wrap:anywhere;background:#111e33;border-radius:12px;padding:16px;font:16px/1.7 Consolas,monospace}.workspace-output--error{color:#fca5a5;border-left:4px solid #ef4444}.workspace-output-label{color:#475569;margin-bottom:6px;font-size:13px;font-weight:700;display:block}.workspace-status-badge{border-radius:6px;padding:4px 10px;font-size:13px;font-weight:600;display:inline-block}.workspace-status-badge--success{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}.workspace-status-badge--error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.workspace-status-badge--running{color:#075985;background:#e0f2fe;border:1px solid #bae6fd}.workspace-chat-messages{overscroll-behavior:contain;max-height:min(72vh,820px);margin:18px 0;overflow-y:auto}.workspace-chat-message{background:#f1f7ff;border-radius:12px;margin-bottom:12px;padding:16px}.workspace-chat-message--user{background:#e2efff;margin-left:28px}.workspace-chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0;line-height:1.7}.workspace-chat-message .support-rich-text{color:#22385c;font-size:14.5px;line-height:1.72}.workspace-chat-message .support-rich-text p{white-space:pre-wrap;margin:0 0 10px}.workspace-chat-message .support-rich-text p:last-child{margin-bottom:0}.workspace-chat-message .support-rich-text h3{color:#14325c;margin:14px 0 8px;font-size:15.5px}.workspace-chat-message .support-rich-text h3:first-child{margin-top:0}.workspace-chat-message .support-rich-text ul,.workspace-chat-message .support-rich-text ol{gap:6px;margin:0 0 10px;padding-left:1.3rem;display:grid}.workspace-chat-message .support-rich-text li::marker{color:#2563eb}.workspace-chat-message .support-rich-text .support-code{color:#dbeafe;white-space:pre-wrap;background:#0b1729;border-radius:10px;margin:10px 0;padding:12px 14px;font:13px/1.65 Consolas,Monaco,monospace;overflow-x:auto}.workspace-chat-message .support-rich-text .structured-inline-code{color:#0b4ca8;background:#e4efff;border-color:#c9defb}.workspace-chat-message .support-rich-text .math-formula-block{margin:10px 0;padding:10px 12px;font-size:15px}.workspace-chat-message .support-rich-text .math-formula-inline{font-size:1.05em}.workspace-chat-message .support-rich-text sup,.workspace-chat-message .support-rich-text sub{font-size:.72em;line-height:0}.workspace-mentor-thinking{color:#3b82f6;align-items:center;gap:8px;margin-top:6px;display:flex}@keyframes workspace-wait-slide{0%{background-position:-45% 0}to{background-position:145% 0}}.workspace-wait{color:#1c4f97;background:linear-gradient(135deg,#f7fbff,#eef6ff);border:1px solid #cfe2f6;border-radius:12px;align-items:center;gap:12px;margin:10px 0;padding:13px 15px 15px;display:flex;position:relative;overflow:hidden}.workspace-wait-text{gap:2px;min-width:0;display:grid}.workspace-wait-text strong{color:#14325c;font-size:14px;line-height:1.45}.workspace-wait-text span{color:#61809f;font-size:12px}.workspace-wait-bar{background:linear-gradient(90deg,#0000,#2563eb,#0000) 0 0/45% 100% no-repeat;height:3px;animation:1.6s ease-in-out infinite workspace-wait-slide;position:absolute;bottom:0;left:0;right:0}.workspace-error{color:#a32121;overflow-wrap:anywhere;background:#fff5f5;border:1px solid #f4b4b4;border-radius:10px;margin:12px 0;padding:12px}.workspace-editor>.workspace-error{margin:12px 20px}.workspace-chat-compose button:not(:disabled){color:#fff;cursor:pointer;background:#1265df}.workspace-results>textarea{resize:vertical;color:#1e3555;background:#f9fbff;border:1px solid #d6e4f5;border-radius:9px;width:100%;min-height:110px;margin-top:14px;padding:14px;font:14px/1.6 Consolas,monospace}.workspace-chat{padding:18px 20px}.workspace-chat>header{align-items:center;gap:12px;display:flex}.workspace-chat header img{object-fit:contain;width:48px;height:48px}.workspace-chat h2{color:#142c50;margin:0;font-size:17px}.workspace-chat header p{color:#617592;margin:4px 0 0;font-size:14px}.workspace-chat header>span{color:#2363ba;background:#edf4ff;border-radius:20px;flex:none;margin-left:auto;padding:5px 9px;font-size:12px}.workspace-chat-empty{color:#5285c2;text-align:center;background:#f6faff;border-radius:12px;align-content:center;place-items:center;gap:8px;min-height:160px;margin:16px 0;padding:18px;display:grid}.workspace-chat-empty strong{color:#253d60;font-size:16px}.workspace-chat-empty p{color:#607592;max-width:420px;margin:0;font-size:14px;line-height:1.6}.workspace-chat-compose{border:1px solid #d2e1f4;border-radius:12px;gap:10px;padding:10px;display:flex}.workspace-chat-compose textarea{resize:vertical;width:100%;min-width:0;font:inherit;color:#203a5d;background:0 0;border:0;padding:6px;font-size:14px}.workspace-chat-compose button{color:#6490c8;background:#dce9fb;border:0;border-radius:10px;flex:none;align-self:end;place-items:center;width:44px;height:44px;display:grid}.workspace-chat>.workspace-status{margin-bottom:0;padding:0}.code-workspace button:disabled{cursor:not-allowed}.code-workspace textarea:focus-visible{outline-offset:-2px;outline:2px solid #4da0ff}@media (max-width:1000px){.exercise-workspace-layout{grid-template-columns:minmax(0,1fr)}}@media (min-width:1001px){.workspace-page .exercise-workspace-layout{height:calc(100vh - 112px);min-height:620px}.workspace-page .exercise-workspace-layout>.lesson-card,.workspace-page .exercise-workspace-layout>.code-workspace{overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-color:#a8c8ed transparent;scrollbar-width:thin;max-height:100%;overflow-y:auto}.workspace-page .exercise-workspace-layout>.lesson-card::-webkit-scrollbar{width:9px}.workspace-page .exercise-workspace-layout>.code-workspace::-webkit-scrollbar{width:9px}.workspace-page .exercise-workspace-layout>.lesson-card::-webkit-scrollbar-thumb{background:#a8c8ed padding-box padding-box;border:3px solid #0000;border-radius:999px}.workspace-page .exercise-workspace-layout>.code-workspace::-webkit-scrollbar-thumb{background:#a8c8ed padding-box padding-box;border:3px solid #0000;border-radius:999px}}@media (max-width:1000px){.workspace-page .exercise-workspace-layout{height:auto;min-height:0}.workspace-page .exercise-workspace-layout>.lesson-card,.workspace-page .exercise-workspace-layout>.code-workspace{max-height:none;overflow:visible}}@media (max-width:640px){.workspace-page .library-container{width:calc(100% - 24px)}.workspace-page .lesson-card{padding:18px}.workspace-page .lesson-heading h1{font-size:clamp(2rem,8vw,2.65rem)}.workspace-page .lesson-heading>p,.structured-content-card p,.structured-example-explanation p,.structured-content-card ul,.structured-example-explanation ul{font-size:.96rem}.structured-content-card,.structured-examples{padding:17px}.problem-tabs__bar label{min-height:48px;font-size:.86rem}.structured-io-grid,.structured-example-grid{grid-template-columns:1fr}.problem-tabs__bar{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-code-area{min-height:350px}.workspace-code-area textarea{min-height:306px}.workspace-chat,.workspace-results{padding:16px}.workspace-chat header>span{display:none}}.lesson-educational-context{border-top:1px solid #e2e8f0;flex-direction:column;gap:1.5rem;margin-top:2rem;padding-top:1.5rem;display:flex}.educational-note-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:1.25rem}.educational-note-card h3{color:#0f172a;margin:0 0 .5rem;font-size:1.05rem;font-weight:700}.educational-note-card p{color:#475569;margin:0 0 .75rem;font-size:.9rem;line-height:1.6}.educational-note-card ul{color:#334155;flex-direction:column;gap:.35rem;margin:0;padding-left:1.25rem;font-size:.875rem;display:flex}.exercise-nav-bar{border-top:1px dashed #e2e8f0;border-bottom:1px dashed #e2e8f0;flex-wrap:wrap;justify-content:space-between;gap:1rem;padding:1rem 0;display:flex}.exercise-nav-link{color:#0284c7;align-items:center;gap:.5rem;max-width:48%;font-size:.875rem;font-weight:600;text-decoration:none;display:inline-flex}.exercise-nav-link:hover{text-decoration:underline}.exercise-nav-link span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.related-exercises-section{flex-direction:column;gap:.75rem;display:flex}.related-exercises-section h3{color:#1e293b;align-items:center;gap:.5rem;margin:0;font-size:1rem;font-weight:700;display:flex}.related-exercises-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.75rem;display:grid}.related-exercise-chip{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;flex-direction:column;gap:.25rem;padding:.65rem .85rem;text-decoration:none;transition:all .15s;display:flex}.related-exercise-chip:hover{background:#fff;border-color:#0284c7;box-shadow:0 2px 8px #0284c714}.related-exercise-chip__title{color:#0f172a;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:.845rem;font-weight:600;line-height:1.35;display:-webkit-box;overflow:hidden}.related-exercise-chip__meta{color:#64748b;justify-content:space-between;font-size:.725rem;display:flex}
