.studio-shell{min-height:100vh;padding:20px;color:#f7efff;background:#18052e;font-family:var(--font-body)}.studio-shell *{box-sizing:border-box}.studio-shell a,.studio-shell button{touch-action:manipulation}.studio-eyebrow{color:#ffe500;font-size:12px;font-weight:700;letter-spacing:.14em}.studio-welcome{max-width:1320px;margin:60px auto;display:grid;grid-template-columns:1.1fr 1fr;gap:48px;align-items:center}.studio-welcome h1{font-size:clamp(32px,4vw,64px);line-height:1.2;margin:20px 0}.studio-welcome h1 em{font-style:normal;color:#ffe500}.studio-welcome p{line-height:1.8}.studio-welcome-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.studio-cover{background:#f1eee7;border-radius:24px;overflow:hidden;transform:rotate(2deg);border:2px solid #ae70ef}.studio-cover img{width:100%;height:auto;display:block}.studio-cover span{display:block;padding:18px;color:#2920a7;text-align:center;font-weight:700;letter-spacing:.12em}.studio-editor-help,.studio-local{font-size:11px;color:#c3add6;line-height:1.6}.studio-teacher-link{color:#d3b3f6;font-size:12px}.studio-projects{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.studio-empty,.studio-projects h2{grid-column:1/-1}.studio-project-card{display:flex;align-items:center;background:#2a1042;border:1px solid #8350ad;border-radius:18px;padding:18px;gap:12px}.studio-continue{display:grid;gap:14px;text-align:left;flex:1;min-width:0;background:none;color:inherit;border:0;cursor:pointer}.studio-continue strong{font-size:20px}.studio-continue b{color:#ffe500}.studio-delete{width:40px;height:40px;flex-shrink:0;border:1px solid #8350ad;border-radius:12px;background:#3c1857;color:#eee0fa;cursor:pointer;padding:8px}.studio-delete svg{width:100%;height:100%}.studio-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0}.studio-title-row h1{font-size:24px;margin:8px 0}.studio-workspace{display:grid;grid-template-columns:minmax(210px,.65fr) minmax(320px,1.15fr) minmax(380px,1.3fr);gap:14px;align-items:start}.studio-editor-panel,.studio-preview-panel,.studio-task{min-width:0;background:#230c39;border:1px solid #8052a5;border-radius:18px;overflow:hidden}.studio-task{padding:20px}.studio-task h2{font-size:21px;line-height:1.5}.studio-task p{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.studio-task>nav{display:flex;gap:5px;margin-bottom:24px}.studio-task>nav button{flex:1;padding:8px 0;background:#36164f;color:#fff;border:1px solid #8c58b5;border-radius:8px;cursor:pointer}.studio-task>nav button[aria-current]{background:#ffe500;color:#250540}.studio-task>nav button:disabled{opacity:.4;cursor:default}.studio-task>.dragon-button{width:100%;margin-top:12px}.studio-hint,.studio-result{padding:14px;background:#3b1c50;border-radius:12px;margin-top:18px}.studio-hint strong,.studio-result strong{font-size:12px;color:#ffe500}.studio-result.is-passed{border:1px solid #9cdb91}.studio-result .dragon-button{font-size:12px;width:100%;padding:12px}.studio-file-tabs{display:flex;min-width:0;border-bottom:1px solid #8052a5}.studio-file-tabs button{flex:1;padding:16px 4px;font-size:11px;background:#32144a;color:#d7c3e7;border:0;cursor:pointer}.studio-file-tabs button[aria-pressed=true]{background:#ffe500;color:#250540}.studio-file-editor{height:600px}.studio-code{height:100%;overflow:hidden}.studio-editor-help{padding:0 14px}.studio-save{padding:14px;display:flex;align-items:center;gap:12px;justify-content:space-between;border-top:1px solid #8052a5;font-size:11px;line-height:1.6}.studio-preview-panel header button,.studio-save button{padding:8px;border:1px solid #8052a5;border-radius:8px;color:#f7efff;background:#3c1857;cursor:pointer;flex-shrink:0}.studio-preview-panel header{padding:16px}.studio-preview-panel header h2{font-size:12px;letter-spacing:.12em;margin:0 0 14px}.studio-preview-panel header>div{display:flex;flex-wrap:wrap;gap:6px}.studio-preview-panel header button{font-size:10px}.studio-preview-panel header button[aria-pressed=true]{color:#ffe500;border-color:#ffe500}.studio-preview-viewport{width:100%;overflow:hidden;min-height:100px;background:#10091a}.studio-preview-viewport>div{margin:0 auto}.studio-preview-viewport iframe{border:0;display:block;background:#fff;max-width:none}.studio-preview-panel>.studio-local{padding:0 14px}.studio-code-error{margin:12px;padding:12px;border:1px solid #f6acba;color:#ffe1e8;overflow-wrap:anywhere;font-size:12px;line-height:1.7}.studio-notice{grid-column:1/-1;padding:16px;background:#3d1a55;border-radius:12px}.studio-dialog,.studio-fullscreen{color:#f7efff;background:#250c3e;border:1px solid #ae70ef;border-radius:20px;padding:28px;max-width:min(95vw,620px)}.studio-dialog::backdrop,.studio-fullscreen::backdrop{background:#10031bd9}.studio-dialog h2{font-size:22px;line-height:1.5}.studio-dialog>div{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.studio-fullscreen{width:96vw;max-width:1600px;max-height:96vh}.studio-fullscreen header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.studio-fullscreen header>div{display:flex;gap:10px;flex-wrap:wrap}.studio-fullscreen .dragon-button{font-size:11px;padding:12px}.studio-mobile-tabs{display:none}.studio-method{max-width:1050px;margin:50px auto;line-height:1.8}.studio-method h1{font-size:36px;color:#ffe500}.studio-method article{border:1px solid #8052a5;background:#230c39;border-radius:18px;padding:24px;margin:24px 0}.studio-method h2{color:#ffe500;font-size:23px}.studio-method details{border-top:1px solid #8052a5;padding-top:18px}.studio-method summary{cursor:pointer;color:#ffe500}.studio-method pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#160724;padding:16px;border-radius:12px;font-size:13px}.studio-method a{color:#ffe500}.studio-shell a:focus-visible,.studio-shell button:focus-visible,.studio-shell summary:focus-visible{outline:3px solid #ffe500;outline-offset:3px}@media(min-width:1800px){.studio-workspace{grid-template-columns:300px minmax(400px,1fr) minmax(600px,1.3fr)}.studio-file-editor{height:700px}}@media(max-width:1150px){.studio-workspace{grid-template-columns:240px minmax(0,1fr)}.studio-preview-panel{grid-column:2}.studio-task{grid-row:1/3}.studio-welcome{gap:24px}.studio-projects{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.studio-shell{padding:12px}.studio-welcome{display:flex;flex-direction:column;margin:32px auto;align-items:stretch}.studio-cover{transform:none}.studio-welcome h1{font-size:36px}.studio-welcome-actions .dragon-button{width:100%;text-align:center}.studio-projects{display:flex;flex-direction:column}.studio-title-row h1{font-size:19px}.studio-title-row>.dragon-button{font-size:10px;padding:12px}.studio-mobile-tabs{display:flex;margin-bottom:12px;gap:8px}.studio-mobile-tabs button{flex:1;padding:12px;border:1px solid #8052a5;border-radius:10px;background:#32144a;color:white}.studio-mobile-tabs button[aria-pressed=true]{background:#ffe500;color:#250540}.studio-workspace{display:block}.studio-workspace[data-panel=code] .studio-preview-panel,.studio-workspace[data-panel=code] .studio-task,.studio-workspace[data-panel=site] .studio-editor-panel,.studio-workspace[data-panel=site] .studio-task,.studio-workspace[data-panel=task] .studio-editor-panel,.studio-workspace[data-panel=task] .studio-preview-panel{display:none}.studio-file-editor{height:55vh;min-height:300px}.studio-dialog,.studio-fullscreen{padding:18px}.studio-dialog>div,.studio-fullscreen header{flex-direction:column;align-items:stretch}.studio-method h1{font-size:28px}.studio-method article{padding:18px}}.studio-projects .studio-empty{box-sizing:border-box;width:100%;margin:0;padding:clamp(20px,3vw,30px);border:1.5px dashed #a578c9;border-radius:18px;background:linear-gradient(120deg,#6b35851a,#2a10424d);line-height:1.8;color:#cdb4e7;overflow-wrap:anywhere}.studio-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid #8052a5}.studio-editor-toolbar>span{font-size:10px;letter-spacing:.08em;color:#d7c3e7}.studio-editor-toolbar>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px;border:1px solid #8052a5;border-radius:8px;background:#3c1857;color:#f7efff;font:inherit;font-size:11px;cursor:pointer}.studio-editor-toolbar svg{flex-shrink:0}.studio-editor-panel.studio-editor-panel--expanded{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;width:100%;height:100dvh;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.studio-editor-panel--expanded>.studio-editor-toolbar,.studio-editor-panel--expanded>.studio-file-tabs,.studio-editor-panel--expanded>.studio-save{flex-shrink:0}.studio-editor-panel--expanded>.studio-file-editor:not([hidden]){flex:1;min-height:0;height:0}.studio-editor-panel--expanded>.studio-save{flex-wrap:wrap;max-height:25dvh;overflow:auto}.studio-task>nav button{position:relative;display:flex;align-items:center;justify-content:center;text-align:center}.studio-task>nav button>.studio-level-complete{position:absolute;top:3px;left:3px;font-size:8px;line-height:1}.studio-task-steps strong{display:block;color:#d7c3e7;font-size:11px;margin-bottom:4px}.studio-task-steps>.dragon-button{width:100%;margin:4px 0 8px}