:root{color:#eef4fb;background:#07111f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}html,body,#dsa-mastery-root{width:100%;height:100%;min-height:100%;margin:0;overflow-x:hidden;background:#07111f}button,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,textarea:focus-visible,h1:focus-visible{outline:3px solid rgba(58,209,159,.55);outline-offset:2px}.mastery-app{height:100dvh;min-height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:radial-gradient(circle at 20% 0%,rgba(58,209,159,.09),transparent 28rem),#07111f}.app-header{position:relative;z-index:20;min-height:64px;padding:9px 14px;border-bottom:1px solid #233247;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px;background:#07111ff0;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.app-header>div{min-width:0;display:flex;flex-direction:column}.app-header strong{font-size:16px}.app-header small{overflow:hidden;color:#93a4b8;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.menu-button{display:none;width:48px;height:48px;padding:12px;border:1px solid #2a3a50;border-radius:13px;display:flex;flex-direction:column;justify-content:center;gap:5px;color:inherit;background:#101c2c}.menu-button span{width:100%;height:2px;border-radius:999px;background:#d7e3ef}.overall-progress{padding:7px 9px;border:1px solid rgba(58,209,159,.35);border-radius:999px;color:#8bf0ca;background:#3ad19f1a;font:700 11px/1 ui-monospace,monospace}.desktop-toolbar{display:flex;flex-direction:row;align-items:center;gap:8px}.desktop-toolbar button,.runtime-status{min-height:36px;padding:0 11px;border:1px solid #2a3a50;border-radius:9px;color:#dce7f2;background:#101c2c;font-size:11px}.desktop-toolbar button{cursor:pointer}.desktop-toolbar .danger{border-color:#fb718559;color:#fecdd3}.runtime-status{display:inline-flex;align-items:center;gap:7px}.runtime-status i{width:7px;height:7px;border-radius:50%;background:#7f8da0}.runtime-status:first-child i,.runtime-status.ready i{background:#3ad19f;box-shadow:0 0 8px #3ad19f99}.workspace{height:calc(100dvh - 64px - env(safe-area-inset-top) - env(safe-area-inset-bottom));min-height:0;display:grid;grid-template-columns:minmax(0,25%) minmax(0,45%) minmax(0,1fr);overflow:hidden}.workspace-pane{min-width:0;min-height:0;border-right:1px solid #233247;display:flex;flex-direction:column;overflow:hidden}.workspace-pane:last-child{border-right:0}.workspace-pane>h1{min-height:50px;margin:0;padding:0 14px;border-bottom:1px solid #233247;display:flex;align-items:center;color:#f4f8fc;font-size:14px}.pane-content{min-height:0;padding:12px;flex:1;overflow-y:auto;overscroll-behavior:contain}.editor-pane{background:#091421}.editor-pane .pane-content{display:flex;flex-direction:column}.editor-pane .editor-shell{min-height:260px;height:auto;flex:1}.drawer-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;background:#0000009e;overscroll-behavior:contain}.drawer{width:min(88vw,360px);height:100dvh;padding:calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:8px;background:#0b1625;box-shadow:16px 0 60px #00000073}.drawer-heading{min-height:52px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between}.drawer-heading button,.drawer>button,.drawer>a{min-height:48px;border:1px solid #29394e;border-radius:12px;display:flex;align-items:center;justify-content:space-between;color:#dce7f2;background:#111e2f;text-decoration:none}.drawer-heading button{width:48px;justify-content:center;font-size:24px}.drawer>button,.drawer>a{width:100%;padding:0 14px}.drawer>button.active{border-color:#3ad19f94;color:#9af4d1;background:#3ad19f1f}.drawer>button b{font-size:10px;text-transform:uppercase}.drawer>.danger{margin-top:auto;border-color:#fb718559;color:#fecdd3}.mobile-card,.request-card,.ai-card,.run-output,.note-composer{border:1px solid #26384e;border-radius:14px;background:#0e1a2a;box-shadow:0 14px 42px #0000002e}.compact-task{margin-bottom:10px;padding:11px 12px;display:grid;grid-template-columns:1fr auto;gap:4px 10px;align-items:center}.compact-task span{grid-column:1;color:#7ddfbb;font-size:10px;text-transform:uppercase}.compact-task strong{grid-column:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compact-task button{grid-column:2;grid-row:1 / 3;min-height:44px;padding:0 12px;border:1px solid #34506d;border-radius:10px;color:#dce8f4;background:#15263a}.editor-shell{height:max(54dvh,420px);overflow:hidden;border:1px solid #293b51;border-radius:14px;background:#0a111c}.editor-shell .cm-editor,.editor-shell .cm-scroller{height:100%}.editor-shell .cm-content{padding-bottom:45dvh;font-size:16px}.sticky-actions{position:sticky;bottom:calc(8px + env(safe-area-inset-bottom));z-index:10;margin-top:10px;padding:8px;border:1px solid #293b51;border-radius:14px;display:grid;grid-template-columns:1fr 1.35fr;gap:8px;background:#09131ff0;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.sticky-actions button,.note-composer button,.ai-options button,.ai-card>button{min-height:48px;border-radius:11px;font-weight:750}.primary{border:1px solid #3ad19f;color:#06140f;background:#3ad19f}.secondary,.note-composer button,.ai-options button,.ai-card>button{border:1px solid #334a64;color:#dce7f2;background:#142438}button:disabled{opacity:.48}.run-output{margin-top:10px;overflow:hidden}.run-output>div{padding:9px 12px;border-bottom:1px solid #25384d;display:flex;justify-content:space-between}.run-output pre,.chat pre,.card-details pre{margin:0;padding:12px;overflow-x:auto;color:#dce8f4;background:#07101b;font:12px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.request-card{padding:16px}.request-card.collapsed{padding:8px}.request-card.collapsed>button{width:100%;min-height:48px;padding:0 12px;border:0;display:flex;align-items:center;justify-content:space-between;color:#eef5fb;background:transparent;font-weight:750;text-align:left}.request-heading{display:flex;align-items:center;justify-content:space-between;color:#8bf0ca;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.request-heading button{min-height:44px;padding:0 10px;border:0;color:#b9c9d9;background:transparent}.request-card h2{margin:10px 0 8px;font-size:20px}.request-card p{margin:12px 0 0;color:#c5d2df;line-height:1.6}.request-tags{display:flex;flex-wrap:wrap;gap:6px}.request-tags span{padding:5px 8px;border:1px solid #30465e;border-radius:999px;color:#afc3d7;background:#132338;font-size:10px}.chat{margin:12px 0;display:flex;flex-direction:column;gap:9px}.chat article{max-width:92%;padding:11px 12px;border:1px solid #293b51;border-radius:13px;color:#d3deea;background:#101d2d;line-height:1.55}.chat article.user{align-self:flex-end;border-color:#3ad19f61;background:#3ad19f1a}.chat article.tutor{align-self:flex-start}.chat article>strong{color:#86ebc5;font-size:10px;text-transform:uppercase}.chat article p{margin:6px 0 0}.ai-card{margin-top:12px;padding:14px}.ai-card p{color:#aebfd0;font-size:12px;line-height:1.55}.ai-card small{display:block;margin-top:8px;color:#f5c66f}.ai-options{display:grid;gap:8px}.ai-options button,.ai-card>button{width:100%;padding:0 12px}.note-composer{margin-top:12px;padding:10px}.note-composer textarea{width:100%;min-height:86px;padding:12px;border:1px solid #30445d;border-radius:11px;resize:vertical;color:#edf4fb;background:#091421;font-size:16px}.note-composer>div{margin-top:8px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.reference-view details{margin-bottom:10px;border:1px solid #26394f;border-radius:14px;overflow:hidden;background:#0c1827}.reference-view summary{min-height:54px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:760}.reference-view summary b{color:#83eac3;font:700 11px/1 ui-monospace,monospace}.reference-cards{padding:0 7px 7px}.reference-cards article{margin-top:6px;border:1px solid #26394f;border-radius:11px;overflow:hidden;background:#101e2f}.reference-cards article.current{border-color:#3ad19f;box-shadow:inset 3px 0 #3ad19f}.reference-cards article>button{width:100%;min-height:56px;padding:9px 11px;border:0;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#e7eff7;background:transparent;text-align:left}.reference-cards article>button>span{min-width:0;display:flex;flex-direction:column;gap:3px}.reference-cards article>button>span:last-child{flex:none;align-items:flex-end}.reference-cards small{overflow:hidden;color:#91a4b8;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.reference-cards b{font:700 10px/1 ui-monospace,monospace}.milestones{display:flex!important;flex-direction:row!important;gap:4px!important}.milestones i{width:7px;height:7px;border:1px solid #60748b;border-radius:999px;background:linear-gradient(90deg,#3ad19f 0,#3ad19f var(--dot-fill, 0%),#101b2a var(--dot-fill, 0%),#101b2a 100%)}.milestones i.done{border-color:#3ad19f;background:#3ad19f}.card-details p{margin:0;padding:10px 12px;color:#b7c7d6;font-size:12px;line-height:1.5}.error-toast{position:fixed;right:calc(12px + env(safe-area-inset-right));bottom:calc(12px + env(safe-area-inset-bottom));left:calc(12px + env(safe-area-inset-left));z-index:60;min-height:52px;padding:10px 10px 10px 13px;border:1px solid rgba(251,113,133,.55);border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#ffe4e6;background:#3b1520;box-shadow:0 18px 50px #0000006b}.error-toast button{width:44px;height:44px;border:0;color:inherit;background:transparent;font-size:22px}@media(min-width:769px){.drawer-layer{display:none}.editor-shell{height:auto}.drawer{width:360px}}@media(max-width:768.98px){.mastery-app{height:auto}.app-header{position:sticky;top:env(safe-area-inset-top);grid-template-columns:48px 1fr auto;background:#07111ff0;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.menu-button{display:flex}.desktop-toolbar{display:none}.workspace{width:min(100%,920px);height:auto;min-height:calc(100dvh - 64px - env(safe-area-inset-top));margin:0 auto;padding:14px 12px calc(92px + env(safe-area-inset-bottom));display:block;overflow:visible}.workspace-pane{display:none;border:0;overflow:visible}.workspace-pane.active{display:flex}.workspace-pane>h1{min-height:0;margin:2px 2px 14px;padding:0;border:0;font-size:clamp(20px,5vw,28px)}.pane-content{padding:0;overflow:visible}.editor-pane .editor-shell{height:max(54dvh,420px);flex:none}}@media(prefers-reduced-motion:no-preference){.drawer{animation:drawer-in .16s ease-out}@keyframes drawer-in{0%{transform:translate(-100%)}}}.runtime-status,.capability-badge{white-space:nowrap}.runtime-status i,.capability-badge:before{background:#9aa0a6;box-shadow:none}.desktop-toolbar .runtime-status.runtime-ready i,.desktop-toolbar .runtime-status.runtime-running i,.capability-badge.runtime-ready:before{background:#81c995;box-shadow:0 0 8px #81c9957a}.desktop-toolbar .runtime-status.runtime-idle i,.desktop-toolbar .runtime-status.runtime-off i,.desktop-toolbar .runtime-status.runtime-paused i,.desktop-toolbar .runtime-status.runtime-unsupported i{background:#9aa0a6;box-shadow:none}.desktop-toolbar .runtime-status.runtime-initializing i,.desktop-toolbar .runtime-status.runtime-loading i,.capability-badge.runtime-loading:before{background:#fdd663;box-shadow:none}.desktop-toolbar .runtime-status.runtime-error i,.desktop-toolbar .runtime-status.runtime-timed-out i,.capability-badge.runtime-error:before{background:#f28b82;box-shadow:none}.runtime-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.capability-badge{min-height:24px;padding:4px 8px;border:1px solid #5f6368;border-radius:999px;display:inline-flex;align-items:center;gap:6px;color:#bdc1c6;font-size:10px;font-weight:700}.capability-badge:before{width:7px;height:7px;border-radius:50%;content:""}.ai-card small{line-height:1.45}.python-capability{margin:7px 2px 0;color:#9aa0a6;font-size:11px;line-height:1.45}.python-capability.runtime-initializing,.python-capability.runtime-running{color:#fdd663}.python-capability.runtime-error,.python-capability.runtime-timed-out{color:#f28b82}@media(max-width:768.98px){.runtime-card-heading{flex-direction:column}.capability-badge{min-height:28px}}@media(min-width:769px){.mastery-app{--desktop-page: #202124;--desktop-panel: #292a2d;--desktop-raised: #303134;--desktop-control: #3c4043;--desktop-hover: #4a4d51;--desktop-border: #5f6368;--desktop-text: #e8eaed;--desktop-text-secondary: #bdc1c6;--desktop-text-muted: #9aa0a6;--desktop-mint: #3ad19f;--desktop-mint-bright: #a7f3d0;--desktop-focus: #8ab4f8;--desktop-header-height: 68px;height:100vh;min-height:100vh;padding:0;overflow:hidden;color:var(--desktop-text);background:var(--desktop-page)}.mastery-app,.mastery-app button,.mastery-app textarea{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.mastery-app button:focus-visible,.mastery-app textarea:focus-visible,.mastery-app summary:focus-visible,.mastery-app h1:focus-visible{outline:2px solid var(--desktop-focus);outline-offset:2px}.mastery-app *{scrollbar-color:var(--desktop-border) transparent;scrollbar-width:thin}.mastery-app ::-webkit-scrollbar{width:8px;height:8px}.mastery-app ::-webkit-scrollbar-track{background:transparent}.mastery-app ::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:var(--desktop-border);background-clip:padding-box}.mastery-app ::-webkit-scrollbar-thumb:hover{background:var(--desktop-text-muted);background-clip:padding-box}.app-header{width:100%;height:var(--desktop-header-height);min-height:var(--desktop-header-height);padding:0 16px;border-bottom:1px solid var(--desktop-control);display:flex;align-items:center;gap:14px;color:var(--desktop-text);background:var(--desktop-page);-webkit-backdrop-filter:none;backdrop-filter:none}.app-header>div:first-of-type{min-width:184px;height:44px;padding:0 13px;border-radius:12px;display:flex;flex:0 0 auto;flex-direction:column;justify-content:center;background:var(--desktop-raised)}.app-header strong{color:var(--desktop-text);font-size:13px;font-weight:650;line-height:1.2}.app-header small{color:var(--desktop-text-muted);font-size:10px;line-height:1.25}.menu-button,.drawer-layer{display:none}.app-header>.desktop-toolbar{min-width:0;display:flex;flex:1;flex-direction:row;align-items:center;justify-content:flex-end;gap:7px;overflow-x:auto;scrollbar-width:none}.app-header>.desktop-toolbar::-webkit-scrollbar{display:none}.desktop-toolbar button,.runtime-status{height:36px;min-height:36px;padding:0 11px;border:1px solid transparent;border-radius:18px;flex:0 0 auto;color:var(--desktop-text-secondary);background:var(--desktop-raised);font-size:10px;white-space:nowrap}.desktop-toolbar button{color:var(--desktop-text)}.desktop-toolbar button:hover:not(:disabled){border-color:var(--desktop-border);background:var(--desktop-control)}.desktop-toolbar .danger{border-color:transparent;color:#fda4af;background:#fb718514}.desktop-toolbar .danger:hover:not(:disabled){border-color:#fb718580;background:#fb718524}.runtime-status{display:inline-flex;align-items:center;gap:7px}.runtime-status i{width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--desktop-text-muted)}.runtime-status:first-child i,.runtime-status.ready i{background:var(--desktop-mint);box-shadow:0 0 8px #3ad19f8c}.overall-progress{min-width:54px;height:36px;padding:0 11px;border:1px solid rgba(58,209,159,.46);border-radius:18px;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;color:var(--desktop-mint-bright);background:#3ad19f1a;font:700 10px/1 Cascadia Code,SFMono-Regular,Consolas,monospace}.workspace{width:100%;height:calc(100vh - var(--desktop-header-height));min-height:0;display:grid;grid-template-columns:minmax(250px,24%) minmax(430px,47%) minmax(310px,29%);overflow:hidden;background:var(--desktop-page)}.workspace-pane{min-width:0;min-height:0;border-right:1px solid var(--desktop-control);display:flex;flex-direction:column;overflow:hidden;color:var(--desktop-text);background:var(--desktop-panel)}.workspace-pane:last-child{border-right:0}.reference-pane{background:var(--desktop-page)}.editor-pane,.tutor-pane{background:var(--desktop-panel)}.workspace-pane>h1{height:48px;min-height:48px;margin:0;padding:0 14px;border-bottom:1px solid var(--desktop-control);display:flex;align-items:center;color:var(--desktop-text);background:var(--desktop-page);box-shadow:inset 0 -1px #ffffff06;font-size:13px;font-weight:650;letter-spacing:.01em}.pane-content{min-height:0;padding:10px;flex:1;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.reference-view{padding:8px;background:var(--desktop-page)}.reference-view details{margin:0 0 6px;border:1px solid var(--desktop-control);border-radius:9px;overflow:hidden;background:var(--desktop-panel);box-shadow:none}.reference-view details[open]{border-color:#4c5157}.reference-view summary{min-height:38px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--desktop-text);background:var(--desktop-raised);cursor:pointer;font-size:10px;font-weight:700;letter-spacing:.035em;list-style:none;text-transform:uppercase}.reference-view summary::-webkit-details-marker{display:none}.reference-view summary:before{content:"›";width:14px;flex:0 0 14px;color:var(--desktop-text-muted);font:700 16px/1 monospace;transform:rotate(0);transition:transform .12s ease}.reference-view details[open] summary:before{transform:rotate(90deg)}.reference-view summary>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-view summary b{color:var(--desktop-mint);font:700 9px/1 Cascadia Code,SFMono-Regular,Consolas,monospace}.reference-cards{padding:4px;border-top:1px solid var(--desktop-control);background:var(--desktop-panel)}.reference-cards article{margin:2px 0;border:1px solid transparent;border-radius:7px;overflow:hidden;position:relative;background:#252629;box-shadow:none}.reference-cards article:nth-child(2n){background:var(--desktop-panel)}.reference-cards article:has(.milestones i:nth-child(1).done){background:linear-gradient(90deg,rgba(58,209,159,.08) 0 25%,transparent 25%),#252629}.reference-cards article:has(.milestones i:nth-child(2).done){background:linear-gradient(90deg,rgba(58,209,159,.08) 0 50%,transparent 50%),#252629}.reference-cards article:has(.milestones i:nth-child(3).done){background:linear-gradient(90deg,rgba(58,209,159,.08) 0 75%,transparent 75%),#252629}.reference-cards article:has(.milestones i:nth-child(4).done){background:linear-gradient(90deg,rgba(58,209,159,.1) 0 100%,transparent 100%),#252629}.reference-cards article:hover,.reference-cards article:focus-within{border-color:var(--desktop-border);background-color:var(--desktop-control)}.reference-cards article.current{border-color:#3ad19fb3;box-shadow:inset 3px 0 var(--desktop-mint)}.reference-cards article.current:after{content:"Current";position:absolute;right:8px;bottom:5px;color:var(--desktop-mint-bright);font:650 7px/1 Cascadia Code,SFMono-Regular,Consolas,monospace;letter-spacing:.05em;text-transform:uppercase;pointer-events:none}.reference-cards article>button{width:100%;min-height:48px;padding:7px 9px;border:0;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--desktop-text);background:transparent;text-align:left;cursor:pointer}.reference-cards article>button>span{min-width:0;display:flex;flex-direction:column;gap:3px}.reference-cards article>button>span:last-child{min-width:48px;flex:0 0 auto;align-items:flex-end}.reference-cards strong{overflow:hidden;color:var(--desktop-text);font-size:10px;font-weight:650;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.reference-cards small{overflow:hidden;color:var(--desktop-text-muted);font-size:8px;letter-spacing:.04em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.reference-cards b{color:var(--desktop-text-secondary);font:700 8px/1 Cascadia Code,SFMono-Regular,Consolas,monospace}.milestones{display:flex!important;flex-direction:row!important;gap:4px!important}.milestones i{width:7px;height:7px;border:1px solid #6f7378;border-radius:50%;background:linear-gradient(90deg,var(--desktop-mint) 0,var(--desktop-mint) var(--dot-fill, 0%),#202124 var(--dot-fill, 0%),#202124 100%)}.milestones i.done{border-color:var(--desktop-mint);background:var(--desktop-mint)}.card-details{border-top:1px solid var(--desktop-control);background:var(--desktop-page)}.card-details p{margin:0;padding:9px 10px;color:var(--desktop-text-secondary);font-size:10px;line-height:1.5}.card-details pre{margin:0 8px 8px;padding:9px;border-radius:7px;overflow-x:auto;color:var(--desktop-mint-bright);background:#1b1c1f;font:9px/1.55 Cascadia Code,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.editor-pane .pane-content{padding:10px;display:grid;grid-template-rows:auto minmax(260px,1fr) auto auto;gap:8px;overflow-y:auto;background:var(--desktop-panel)}.mobile-card,.request-card,.ai-card,.run-output,.note-composer{border:1px solid var(--desktop-control);border-radius:9px;background:var(--desktop-raised);box-shadow:none}.compact-task{min-height:42px;margin:0;padding:7px 9px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 9px}.compact-task span{color:var(--desktop-mint-bright);font-size:8px;font-weight:700;letter-spacing:.06em}.compact-task strong{color:var(--desktop-text);font-size:11px;font-weight:650}.compact-task button{min-height:30px;padding:0 10px;border:1px solid var(--desktop-border);border-radius:7px;color:var(--desktop-text-secondary);background:var(--desktop-control);font-size:9px;cursor:pointer}.compact-task button:hover{color:var(--desktop-text);background:var(--desktop-hover)}.editor-shell,.editor-pane .editor-shell{width:100%;height:auto;min-height:260px;border:1px solid var(--desktop-control);border-radius:9px;overflow:hidden;background:#282c34;box-shadow:none}.editor-shell .cm-editor,.editor-shell .cm-scroller{height:100%;background:#282c34}.editor-shell .cm-editor{color:var(--desktop-text);font-family:Cascadia Code,SFMono-Regular,Consolas,monospace}.editor-shell .cm-gutters{border-right:1px solid var(--desktop-control);color:var(--desktop-text-muted);background:#25282f}.editor-shell .cm-activeLine,.editor-shell .cm-activeLineGutter{background:#9aa0a614}.editor-shell .cm-content{padding:9px 0 35vh;font-size:13px;line-height:1.55}.editor-shell .cm-scroller{overflow:auto;scrollbar-gutter:stable}.sticky-actions{position:static;margin:0;padding:7px;border:1px solid var(--desktop-control);border-radius:9px;display:grid;grid-template-columns:minmax(110px,.7fr) minmax(150px,1fr);gap:7px;background:var(--desktop-page);-webkit-backdrop-filter:none;backdrop-filter:none}.sticky-actions button,.note-composer button,.ai-options button,.ai-card>button{min-height:36px;border-radius:7px;font-size:10px;font-weight:700;cursor:pointer}.primary{border:1px solid var(--desktop-mint);color:#06251c;background:var(--desktop-mint)}.primary:hover:not(:disabled){border-color:var(--desktop-mint-bright);background:#6ee7b7}.secondary,.note-composer button,.ai-options button,.ai-card>button{border:1px solid var(--desktop-border);color:var(--desktop-text);background:var(--desktop-control)}.secondary:hover:not(:disabled),.note-composer button:hover:not(:disabled),.ai-options button:hover:not(:disabled),.ai-card>button:hover:not(:disabled){background:var(--desktop-hover)}.mastery-app button:disabled{color:#777b80;cursor:not-allowed;opacity:.58}.run-output{margin:0;overflow:hidden;background:var(--desktop-page)}.run-output>div{min-height:34px;padding:0 10px;border-bottom:1px solid var(--desktop-control);display:flex;align-items:center;justify-content:space-between;color:var(--desktop-text);background:var(--desktop-raised);font-size:10px}.run-output>div small{color:var(--desktop-text-muted);font:9px/1 Cascadia Code,SFMono-Regular,Consolas,monospace}.run-output pre,.chat pre{margin:0;padding:10px;overflow-x:auto;color:var(--desktop-text-secondary);background:var(--desktop-page);font:10px/1.55 Cascadia Code,SFMono-Regular,Consolas,monospace;white-space:pre-wrap}.tutor-view{padding:10px;display:flex;flex-direction:column;gap:8px;background:var(--desktop-panel)}.request-card{margin:0;padding:12px;flex:0 0 auto;background:var(--desktop-raised)}.request-card.collapsed{padding:5px;background:var(--desktop-page)}.request-card.collapsed>button{width:100%;min-height:36px;padding:0 9px;border:0;display:flex;align-items:center;justify-content:space-between;color:var(--desktop-text);background:transparent;font-size:10px;font-weight:650;text-align:left;cursor:pointer}.request-heading{display:flex;align-items:center;justify-content:space-between;color:var(--desktop-mint-bright);font-size:8px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.request-heading button{min-height:28px;padding:0 7px;border:0;border-radius:6px;color:var(--desktop-text-muted);background:transparent;font-size:9px;cursor:pointer}.request-heading button:hover{color:var(--desktop-text);background:var(--desktop-control)}.request-card h2{margin:8px 0 7px;color:var(--desktop-text);font-size:15px;line-height:1.25}.request-card p{margin:9px 0 0;color:var(--desktop-text-secondary);font-size:11px;line-height:1.55}.request-tags{display:flex;flex-wrap:wrap;gap:5px}.request-tags span{padding:4px 6px;border:1px solid var(--desktop-border);border-radius:999px;color:var(--desktop-text-secondary);background:var(--desktop-control);font-size:8px}.request-tags span:first-child{border-color:#3ad19f80;color:var(--desktop-mint-bright);background:#3ad19f1a}.chat{min-height:96px;margin:0;padding:2px 1px;display:flex;flex:1 1 auto;flex-direction:column;gap:7px}.chat article{max-width:92%;padding:9px 10px;border:1px solid var(--desktop-control);border-radius:9px;color:var(--desktop-text-secondary);background:var(--desktop-raised);font-size:10px;line-height:1.5}.chat article.user{align-self:flex-end;border-color:#3ad19f66;background:#3ad19f14}.chat article.tutor{align-self:flex-start}.chat article>strong{color:var(--desktop-mint-bright);font-size:8px;letter-spacing:.06em;text-transform:uppercase}.chat article p{margin:5px 0 0}.ai-card{margin:0;padding:10px;flex:0 0 auto;background:var(--desktop-raised)}.ai-card>strong{color:var(--desktop-text);font-size:10px}.ai-card p{margin:6px 0 8px;color:var(--desktop-text-muted);font-size:9px;line-height:1.5}.ai-card small{display:block;margin-top:6px;color:#f5c66f;font-size:8px;line-height:1.4}.ai-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ai-options button,.ai-card>button{width:100%;min-height:34px;padding:0 8px;font-size:8px}.note-composer{margin:0;padding:7px;flex:0 0 auto;background:var(--desktop-page)}.note-composer textarea{width:100%;min-height:64px;max-height:160px;padding:9px;border:1px solid var(--desktop-border);border-radius:7px;resize:vertical;color:var(--desktop-text);background:var(--desktop-raised);font-size:11px;line-height:1.45}.note-composer textarea::placeholder{color:var(--desktop-text-muted)}.note-composer textarea:focus{border-color:var(--desktop-focus);box-shadow:0 0 0 2px #8ab4f82e}.note-composer>div{margin-top:6px;display:grid;grid-template-columns:1fr 1fr;gap:6px}.note-composer button{min-height:34px}.panes-swapped{grid-template-columns:minmax(250px,24%) minmax(310px,29%) minmax(430px,47%)}.error-toast{right:16px;bottom:16px;left:auto;width:min(440px,calc(100vw - 32px));min-height:48px;padding:8px 8px 8px 12px;border:1px solid rgba(251,113,133,.55);border-radius:9px;color:#ffe4e6;background:#3b2529;box-shadow:0 18px 50px #0000006b;font-size:11px}.error-toast button{width:34px;height:34px}@media(min-width:1480px){.workspace{grid-template-columns:minmax(270px,22%) minmax(560px,50%) minmax(340px,28%)}.panes-swapped{grid-template-columns:minmax(270px,22%) minmax(340px,28%) minmax(560px,50%)}.pane-content{padding:12px}.reference-view{padding:9px}}@media(max-width:1180px){.app-header{gap:9px;padding-inline:10px}.app-header>div:first-of-type{min-width:154px}.runtime-status{padding-inline:9px}.workspace{grid-template-columns:minmax(230px,25%) minmax(390px,44%) minmax(285px,31%)}.panes-swapped{grid-template-columns:minmax(230px,25%) minmax(285px,31%) minmax(390px,44%)}.ai-options{grid-template-columns:1fr}}@media(max-width:980px){.app-header>div:first-of-type{min-width:0;width:132px}.runtime-status:nth-of-type(2){display:none}.desktop-toolbar button,.runtime-status{padding-inline:8px;font-size:9px}.workspace{grid-template-columns:minmax(180px,25%) minmax(300px,43%) minmax(220px,32%)}.panes-swapped{grid-template-columns:minmax(180px,25%) minmax(220px,32%) minmax(300px,43%)}.request-card{padding:10px}.request-card h2{font-size:13px}}}@media(max-width:768.98px){html,body,#dsa-mastery-root{max-width:100%;min-height:100%;overflow:hidden;color:#f1f3f4;background:#202124}.mastery-app{width:100%;max-width:100%;height:100dvh;min-height:100dvh;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);display:flex;flex-direction:column;overflow:hidden;color:#f1f3f4;background:#202124}.mastery-app,.mastery-app *{min-width:0;scrollbar-color:#5f6368 transparent}.mastery-app ::-webkit-scrollbar{width:8px;height:8px}.mastery-app ::-webkit-scrollbar-track{background:transparent}.mastery-app ::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:#5f6368;background-clip:padding-box}.app-header{position:relative;top:auto;z-index:20;width:100%;min-height:58px;flex:0 0 auto;padding:6px 10px;border-bottom:1px solid #3c4043;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:9px;background:#292a2d;box-shadow:0 2px 8px #00000047;-webkit-backdrop-filter:none;backdrop-filter:none}.app-header>div:not(.desktop-toolbar){min-width:0;display:flex;flex-direction:column;justify-content:center}.app-header strong{overflow:hidden;color:#f8f9fa;font-size:14px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.app-header small{overflow:hidden;color:#9aa0a6;font-size:10px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.menu-button{width:44px;height:44px;min-height:44px;padding:11px 10px;border:1px solid #5f6368;border-radius:7px;display:flex;flex-direction:column;justify-content:center;gap:5px;color:#f1f3f4;background:#303134;cursor:pointer}.menu-button span{width:100%;height:2px;border-radius:2px;background:currentColor}.menu-button:active{background:#3c4043}.app-header>.desktop-toolbar{display:none}.overall-progress{min-height:32px;padding:0 9px;border:1px solid rgba(58,209,159,.52);border-radius:999px;display:inline-flex;align-items:center;color:#a7f3d0;background:#3ad19f1a;font:700 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:nowrap}.workspace{width:100%;height:auto;min-height:0;margin:0;padding:0;flex:1 1 auto;display:block;overflow:hidden;background:#202124}.workspace-pane{width:100%;height:100%;min-height:0;border:0;display:none;flex-direction:column;overflow:hidden;background:#202124}.workspace-pane.active{display:flex}.workspace-pane>h1{width:100%;min-height:44px;margin:0;padding:0 12px;border-bottom:1px solid #3c4043;flex:0 0 44px;display:flex;align-items:center;color:#f1f3f4;background:#292a2d;font-size:13px;font-weight:650;letter-spacing:.01em}.pane-content{width:100%;min-height:0;padding:10px;flex:1 1 auto;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.drawer-layer{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;width:100%;height:100dvh;display:flex;overflow:hidden;background:#000000ad;overscroll-behavior:contain}.drawer{width:min(88vw,340px);max-width:100%;height:100dvh;padding:calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));display:flex;flex-direction:column;gap:7px;overflow-y:auto;color:#f1f3f4;background:#292a2d;box-shadow:12px 0 34px #0000007a}.drawer-heading{min-height:48px;margin:0 0 4px;padding-left:4px;border-bottom:1px solid #3c4043;display:flex;align-items:center;justify-content:space-between}.drawer-heading strong{font-size:13px}.drawer-heading button,.drawer>button,.drawer>a{min-height:44px;border:1px solid #5f6368;border-radius:7px;color:#e8eaed;background:#303134;text-decoration:none;cursor:pointer}.drawer-heading button{width:44px;padding:0;display:grid;place-items:center;font-size:22px}.drawer>button,.drawer>a{width:100%;padding:0 12px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;text-align:left}.drawer>button.active{border-color:#3ad19f;color:#d1fae5;background:#3ad19f24;box-shadow:inset 3px 0 #3ad19f}.drawer>button b{color:#a7f3d0;font:700 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.06em;text-transform:uppercase}.drawer>.danger{margin-top:auto;border-color:#f8717180;color:#fecaca;background:#7f1d1d2e}.reference-view{padding:8px}.reference-view details{margin:0;border:1px solid #3c4043;border-bottom:0;border-radius:0;overflow:hidden;background:#292a2d;box-shadow:none}.reference-view details:first-child{border-radius:8px 8px 0 0}.reference-view details:last-child{border-bottom:1px solid #3c4043;border-radius:0 0 8px 8px}.reference-view details:only-child{border-radius:8px}.reference-view summary{min-height:44px;padding:0 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#f1f3f4;background:#303134;cursor:pointer;font-size:11px;font-weight:700;list-style-position:inside}.reference-view summary::marker{color:#9aa0a6}.reference-view summary b{flex:none;color:#3ad19f;font:700 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.reference-cards{padding:0;border-top:1px solid #3c4043;background:#202124}.reference-cards article{margin:0;border:0;border-bottom:1px solid #3c4043;border-radius:0;overflow:hidden;background:#303134;box-shadow:none}.reference-cards article:nth-child(2n){background:#292a2d}.reference-cards article:last-child{border-bottom:0}.reference-cards article.current{border-color:#3c4043;background:linear-gradient(90deg,rgba(58,209,159,.15),transparent 70%),#303134;box-shadow:inset 3px 0 #3ad19f}.reference-cards article>button{width:100%;min-height:52px;padding:7px 10px;border:0;display:flex;align-items:center;justify-content:space-between;gap:9px;color:#e8eaed;background:transparent;text-align:left;cursor:pointer}.reference-cards article>button:active{background:#ffffff0d}.reference-cards article>button>span{min-width:0;display:flex;flex-direction:column;gap:3px}.reference-cards article>button>span:last-child{flex:0 0 auto;align-items:flex-end}.reference-cards strong{overflow:hidden;color:#f1f3f4;font-size:11px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.reference-cards small{overflow:hidden;color:#9aa0a6;font-size:9px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.reference-cards b{color:#a7f3d0;font:700 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace}.milestones{display:flex!important;flex-direction:row!important;gap:4px!important}.milestones i{width:7px;height:7px;border:1px solid #80868b;border-radius:999px;background:linear-gradient(90deg,#3ad19f 0,#3ad19f var(--dot-fill, 0%),#303134 var(--dot-fill, 0%),#303134 100%)}.milestones i.done{border-color:#3ad19f;background:#3ad19f;box-shadow:0 0 6px #3ad19f47}.card-details{border-top:1px solid #3c4043;background:#202124}.card-details p{margin:0;padding:10px 11px;color:#bdc1c6;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.card-details pre,.run-output pre,.chat pre{max-width:100%;margin:0;padding:10px 11px;overflow-x:auto;color:#e8eaed;background:#202124;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.editor-pane,.editor-pane .pane-content{background:#202124}.editor-pane .pane-content{padding:8px;display:flex;flex-direction:column}.mobile-card,.request-card,.ai-card,.run-output,.note-composer{border:1px solid #3c4043;border-radius:8px;color:#e8eaed;background:#292a2d;box-shadow:0 5px 16px #0003}.compact-task{min-height:54px;margin:0 0 8px;padding:7px 8px 7px 10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;align-items:center;flex:0 0 auto}.compact-task span{grid-column:1;color:#a7f3d0;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.compact-task strong{grid-column:1;overflow:hidden;color:#f1f3f4;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.compact-task button{min-width:82px;min-height:44px;padding:0 10px;border:1px solid #5f6368;border-radius:6px;grid-column:2;grid-row:1 / 3;color:#e8eaed;background:#3c4043;cursor:pointer;font-size:11px}.editor-shell,.editor-pane .editor-shell{width:100%;height:auto;min-height:220px;border:1px solid #3c4043;border-radius:7px;flex:1 1 260px;overflow:hidden;background:#202124}.editor-shell .cm-editor,.editor-shell .cm-scroller{width:100%;height:100%;max-width:100%;background:#202124}.editor-shell .cm-editor.cm-focused{outline:1px solid #3ad19f;outline-offset:-1px}.editor-shell .cm-gutters{border-right:1px solid #3c4043;color:#80868b;background:#292a2d}.editor-shell .cm-activeLine,.editor-shell .cm-activeLineGutter{background:#ffffff0b}.editor-shell .cm-content{min-width:max-content;padding-top:8px;padding-bottom:max(34dvh,180px);color:#e8eaed;caret-color:#a7f3d0;font-size:16px;line-height:1.55;user-select:text;-webkit-user-select:text}.editor-shell .cm-line{padding-inline:6px}.sticky-actions{position:sticky;bottom:0;z-index:10;width:100%;margin-top:8px;padding:7px;border:1px solid #3c4043;border-radius:8px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:7px;flex:0 0 auto;background:#292a2df5;box-shadow:0 -5px 16px #00000038;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.sticky-actions button,.note-composer button,.ai-options button,.ai-card>button{min-height:44px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:700}.primary{border:1px solid #3ad19f;color:#06251c;background:#3ad19f}.secondary,.note-composer button,.ai-options button,.ai-card>button{border:1px solid #5f6368;color:#e8eaed;background:#3c4043}.primary:active{background:#6ee7b7}.secondary:active,.note-composer button:active,.ai-options button:active,.ai-card>button:active{background:#4a4d51}.mastery-app button:disabled{cursor:not-allowed;opacity:.45}.run-output{margin-top:8px;flex:0 0 auto;overflow:hidden}.run-output>div{min-height:36px;padding:0 10px;border-bottom:1px solid #3c4043;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#f1f3f4;font-size:11px}.run-output small{color:#9aa0a6}.tutor-view{padding:8px}.request-card{padding:12px}.request-card.collapsed{padding:4px}.request-card.collapsed>button{width:100%;min-height:44px;padding:0 9px;border:0;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#f1f3f4;background:transparent;cursor:pointer;font-size:12px;font-weight:700;text-align:left}.request-card.collapsed>button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.request-heading{min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#a7f3d0;font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.request-heading button{min-height:44px;padding:0 8px;border:0;color:#bdc1c6;background:transparent;cursor:pointer;font-size:11px}.request-card h2{margin:6px 0 8px;color:#f8f9fa;font-size:17px;line-height:1.25;overflow-wrap:anywhere}.request-card p{margin:10px 0 0;color:#bdc1c6;font-size:12px;line-height:1.55;overflow-wrap:anywhere}.request-tags{display:flex;flex-wrap:wrap;gap:5px}.request-tags span{min-height:24px;padding:0 7px;border:1px solid #5f6368;border-radius:999px;display:inline-flex;align-items:center;color:#bdc1c6;background:#303134;font-size:9px}.request-tags span:first-child{border-color:#3ad19f75;color:#a7f3d0;background:#3ad19f17}.chat{width:100%;margin:9px 0;display:flex;flex-direction:column;gap:7px}.chat article{width:fit-content;max-width:94%;padding:9px 10px;border:1px solid #3c4043;border-radius:8px;color:#dfe1e5;background:#303134;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.chat article.user{align-self:flex-end;border-color:#3ad19f6b;background:#3ad19f1a}.chat article.tutor{align-self:flex-start}.chat article>strong{color:#a7f3d0;font-size:9px;letter-spacing:.06em;text-transform:uppercase}.chat article p{margin:5px 0 0}.chat article ul,.chat article ol{padding-left:20px}.ai-card{margin-top:9px;padding:11px}.ai-card>strong{color:#f1f3f4;font-size:12px}.ai-card p{margin:7px 0;color:#bdc1c6;font-size:11px;line-height:1.5}.ai-card small{display:block;margin-top:7px;color:#fbbc04;font-size:10px;line-height:1.4}.ai-options{display:grid;gap:7px}.ai-options button,.ai-card>button{width:100%;padding:0 10px}.note-composer{margin-top:9px;padding:8px}.note-composer textarea{width:100%;max-width:100%;min-height:82px;padding:10px;border:1px solid #5f6368;border-radius:6px;resize:vertical;color:#f1f3f4;background:#202124;font-size:16px;line-height:1.45}.note-composer textarea::placeholder{color:#80868b}.note-composer textarea:focus{border-color:#3ad19f;outline:1px solid rgba(58,209,159,.45);outline-offset:0}.note-composer>div{margin-top:7px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px}.error-toast{position:fixed;right:calc(8px + env(safe-area-inset-right));bottom:calc(8px + env(safe-area-inset-bottom));left:calc(8px + env(safe-area-inset-left));z-index:60;min-height:52px;padding:4px 4px 4px 11px;border:1px solid #f87171;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#fee2e2;background:#3f1d22;box-shadow:0 12px 30px #0000006b;font-size:12px}.error-toast span{min-width:0;overflow-wrap:anywhere}.error-toast button{width:44px;height:44px;min-height:44px;border:0;flex:0 0 44px;color:inherit;background:transparent;cursor:pointer;font-size:21px}.mastery-app button:focus-visible,.mastery-app a:focus-visible,.mastery-app textarea:focus-visible,.mastery-app h1:focus-visible,.mastery-app summary:focus-visible{outline:2px solid #a7f3d0;outline-offset:-2px}}@media(max-width:768.98px)and (orientation:landscape){.app-header{min-height:52px;padding-block:4px}.workspace-pane>h1{min-height:40px;flex-basis:40px}.pane-content{padding-block:7px}.compact-task{min-height:48px}.editor-shell,.editor-pane .editor-shell{min-height:160px;flex-basis:190px}.editor-shell .cm-content{padding-bottom:max(28dvh,110px)}}@media(max-width:420px){.app-header{gap:7px;padding-inline:7px}.overall-progress{padding-inline:7px}.pane-content,.tutor-view{padding:7px}.reference-view{padding:6px}.request-card{padding:10px}.note-composer>div{grid-template-columns:1fr}}
