/* The HTML runner owns this stylesheet; other tool pages are unaffected. */
:root{--bg:#f5f7fa;--panel:#fff;--editor:#fff;--surface:#eff3f8;--hover:#e7edf5;--border:#dce3ed;--text:#182438;--muted:#596a81;--accent:#2459db;--accent-hover:#1c46b1;--green:#217853;--red:#b93838;--shadow:0 8px 30px #142b4b07;--font:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;color-scheme:light}
:root[data-theme=dark],body.dark-theme{--bg:#101722;--panel:#172130;--editor:#172130;--surface:#202d40;--hover:#2a3951;--border:#314158;--text:#ecf2fc;--muted:#a7b6cb;--accent:#93b8ff;--accent-hover:#bed2ff;--green:#7bd9a7;--red:#ffadad;--shadow:none;color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:76px}body{margin:0;min-width:0;background:var(--bg);color:var(--text);font:14px/1.6 var(--font);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,textarea,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}svg{width:18px;height:18px;display:block;flex:none}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:3px}[hidden]{display:none!important}.skip-link{position:fixed;top:8px;left:8px;z-index:500;transform:translateY(-160%);background:var(--panel);padding:10px 18px;border:2px solid var(--accent);border-radius:6px}.skip-link:focus{transform:none}
.site-header{height:60px;display:flex;align-items:center;gap:24px;padding:0 30px;border-bottom:1px solid var(--border);background:var(--panel)}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--text);font-size:16px;font-weight:750;letter-spacing:-.4px;white-space:nowrap}.brand:hover{text-decoration:none}.brand-mark{display:grid;place-items:center;width:31px;height:31px;border-radius:8px;background:#2459db;color:white}.brand-mark svg{width:19px;height:19px}.brand-slash{color:#93a0b5;font-weight:400;margin:0 3px}.brand-tool{color:var(--muted);font-size:12px;font-weight:450;letter-spacing:0}.header-nav{margin-left:auto;display:flex;align-items:center;gap:25px;font-size:12px}.header-nav a{color:var(--muted)}.header-nav .full-editor{display:inline-flex;align-items:center;gap:7px;color:var(--text)}.full-editor svg{width:13px;height:13px}.icon-button{display:inline-grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted)}.icon-button:hover{background:var(--surface);color:var(--text)}.icon-button>span{display:none}#theme-btn{width:38px;height:38px;border-color:var(--border);color:var(--text)}
#runner-app{max-width:1680px;height:calc(100svh - 60px);min-height:660px;max-height:1050px;margin:0 auto;padding:25px 28px 0;display:flex;flex-direction:column;--editor-width:50%;--split:50%;--split-ratio:50%}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;flex:none}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:700;color:var(--muted);margin:0 0 7px;line-height:1.5}h1{font-size:29px;font-weight:650;line-height:1.2;letter-spacing:-.9px;margin:0 0 8px}.free-badge{display:inline-block;vertical-align:middle;font-size:10px;line-height:1.4;font-weight:500;letter-spacing:0;padding:3px 7px;margin:0 0 3px 7px;border:1px solid var(--border);border-radius:5px;background:var(--panel);color:var(--muted)}.workspace-description{margin:0;font-size:12px;color:var(--muted)}.local-badge{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;font-size:10px;border:1px solid var(--border);border-radius:20px;color:var(--muted);background:var(--panel);white-space:nowrap}.local-badge>span,.status-dot{display:inline-block;flex:none;width:5px;height:5px;background:var(--green);border-radius:50%}
.workspace-toolbar{display:flex;align-items:center;gap:6px;min-height:60px;padding:9px 12px;border:1px solid var(--border);border-bottom:0;border-radius:10px 10px 0 0;background:var(--panel);flex:none;position:relative;z-index:8}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 12px;border:1px solid transparent;border-radius:6px;font-size:12px;font-weight:550;line-height:1.4;white-space:nowrap;background:transparent}.button svg{width:15px;height:15px}.button-primary{color:#fff;background:#2459db;border-color:#2459db}.button-primary:hover{background:#1c46b1;border-color:#1c46b1}.button-quiet{color:var(--muted);background:transparent}.button-quiet:hover{background:var(--surface);color:var(--text)}.button-outline{background:var(--panel);border-color:var(--border);color:var(--text)}.button-outline:hover{background:var(--surface)}.toolbar-space{flex:1;min-width:2px}.toolbar-divider{height:20px;border-left:1px solid var(--border);margin:0 4px}.autorun-control{display:inline-flex;align-items:center;gap:7px;min-height:36px;font-size:11px;white-space:nowrap;color:var(--muted);cursor:pointer;padding:0 5px}.autorun-control input{position:absolute;opacity:0;width:1px;height:1px}.switch-track{display:block;width:26px;height:16px;padding:2px;border-radius:20px;background:var(--muted);position:relative}.switch-track::before{content:"";display:block;width:12px;height:12px;background:#fff;border-radius:50%;transition:transform .15s}.autorun-control input:checked+.switch-track{background:#2459db}.autorun-control input:checked+.switch-track::before{transform:translateX(10px)}.autorun-control:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px;border-radius:5px}.more-container{position:relative;flex:none}.actions-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:30;min-width:240px;max-width:calc(100vw - 28px);padding:6px;background:var(--panel);border:1px solid var(--border);border-radius:9px;box-shadow:0 14px 40px #0c1a3030}.actions-menu button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:40px;border:0;border-radius:5px;padding:9px 10px;background:transparent;color:var(--text);font-size:12px;text-align:left}.actions-menu button:hover{background:var(--surface)}.actions-menu svg{width:15px;height:15px;color:var(--muted)}.actions-menu button>span:last-child:not(:first-child){margin-left:auto;color:var(--muted)}
.mobile-panes{display:none}#runner-split{display:flex;min-height:0;min-width:0;flex:1;border:1px solid var(--border);border-radius:0 0 9px 9px;box-shadow:var(--shadow);overflow:hidden;background:var(--panel)}.workspace-pane{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--panel)}#editor-pane{flex:0 0 var(--editor-width);width:var(--editor-width)}#preview-pane{flex:1;min-width:0}#splitter{position:relative;width:7px;flex:0 0 7px;cursor:col-resize;background:var(--bg);border-left:1px solid var(--border);border-right:1px solid var(--border);z-index:5}#splitter::after{content:"";position:absolute;top:calc(50% - 17px);left:2px;width:1px;height:34px;background:var(--muted);opacity:.6}#splitter:hover,#splitter:focus-visible{background:color-mix(in srgb,var(--accent) 20%,var(--panel));outline-offset:-2px}.file-bar{display:flex;align-items:center;position:relative;min-height:47px;flex:none;border-bottom:1px solid var(--border);padding-right:6px}#file-tabs{display:flex;flex:1;align-items:stretch;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;height:46px}.file-tab{display:flex;align-items:center;gap:5px;min-width:0;flex:none;border-right:1px solid var(--border);position:relative;background:var(--surface)}.file-tab button,.file-tab[role=tab],#file-tabs>[role=tab]{border:0;background:transparent;color:var(--muted);font-size:11px;line-height:1.5;min-height:46px;white-space:nowrap}.file-tab [role=tab],#file-tabs>[role=tab]{padding:0 13px;display:inline-flex;align-items:center;gap:8px;border-right:1px solid var(--border);position:relative}.file-tab[role=tab]{padding:0 13px}.file-tab [role=tab][aria-selected=true],.file-tab[aria-selected=true],#file-tabs>[aria-selected=true]{background:var(--editor);color:var(--text);font-weight:600;box-shadow:inset 0 2px var(--accent)}.file-tab.active,.file-tab:has([aria-selected=true]){background:var(--editor)}.file-tab button.file-close,.file-close,.file-rename{display:inline-grid;place-items:center;padding:0;width:23px;min-height:28px;height:28px;border:0;border-radius:4px;color:var(--muted);background:transparent;cursor:pointer;font-size:12px}.file-close:hover,.file-rename:hover{background:var(--hover);color:var(--text)}.file-dot{width:5px;height:5px;flex:none;border-radius:2px;background:#bb7429}.file-tab[data-type=css] .file-dot{background:#397bd9}.file-tab[data-type=js] .file-dot{background:#9d7d15}.file-bar #add-file-menu{top:44px;right:6px;min-width:190px}.file-bar #add-file-btn{margin-left:4px}#editor-host{flex:1;min-height:0;min-width:0;position:relative;background:var(--editor);overflow:hidden}#editor-host>[role=tabpanel],.editor-document,.code-document{position:absolute;inset:0;min-height:0;min-width:0}#editor-host textarea{width:100%;height:100%;resize:none;border:0;background:var(--editor);color:var(--text);font:14px/1.7 var(--mono);padding:16px}.CodeMirror{height:100%;min-height:0;font:13px/1.8 var(--mono);background:var(--editor);color:var(--text)}.CodeMirror-scroll{height:100%;min-height:0;max-height:none}.CodeMirror-lines{padding:17px 0}.CodeMirror pre.CodeMirror-line{padding:0 12px}.CodeMirror-gutters{background:var(--editor);border:0}.CodeMirror-linenumber{padding:0 7px 0 12px;color:var(--muted);font-size:10px}.CodeMirror-cursor{border-left-color:var(--accent)}.CodeMirror-selected{background:color-mix(in srgb,var(--accent) 20%,transparent)}.CodeMirror .cm-comment{color:#64758a}.CodeMirror .cm-keyword{color:#7e48ae}.CodeMirror .cm-tag{color:#2255ad}.CodeMirror .cm-attribute{color:#805429}.CodeMirror .cm-string{color:#24744d}.CodeMirror .cm-number,.CodeMirror .cm-atom{color:#a8532e}.CodeMirror .cm-property,.CodeMirror .cm-variable-2{color:#2459b8}.cm-s-material.CodeMirror{background:var(--editor);color:var(--text)}.cm-s-material .CodeMirror-gutters{background:var(--editor)}.cm-s-material .CodeMirror-linenumber{color:var(--muted)}.cm-s-material .cm-comment{color:#a5b5cb}.cm-s-material .cm-tag{color:#9bbfff}.cm-s-material .cm-attribute{color:#ffd29c}.cm-s-material .cm-keyword{color:#d2afff}.cm-s-material .cm-string{color:#8fd8aa}.cm-s-material .cm-property,.cm-s-material .cm-variable-2{color:#9cc5ff}.cm-s-material .cm-number,.cm-s-material .cm-atom{color:#ffc896}
.preview-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;height:47px;min-height:47px;flex:none;padding:0 10px 0 15px;border-bottom:1px solid var(--border)}.preview-label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:550;color:var(--text)}.preview-label>svg{width:14px;height:14px;color:var(--muted)}.preview-isolated{font-size:9px;font-weight:400;color:var(--muted);padding:1px 6px;border:1px solid var(--border);border-radius:4px}.preview-actions{display:flex;gap:2px}.preview-actions .icon-button{width:30px;height:30px}.preview-actions svg{width:14px;height:14px}#preview-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#fff}#preview-frame{display:block;position:absolute;inset:0;width:100%;height:100%;border:0;background:#fff}.preview-empty{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:24px;background:var(--panel);color:var(--muted);text-align:center;pointer-events:none}.preview-empty>svg{width:42px;height:42px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--accent);margin-bottom:5px}.preview-empty strong{color:var(--text);font-size:13px;font-weight:600}.preview-empty p{margin:0;font-size:11px;line-height:1.8}.pane-footer{display:flex;align-items:center;gap:14px;flex:none;min-height:32px;padding:6px 12px;border-top:1px solid var(--border);font-size:9px;line-height:1.5;color:var(--muted);background:var(--panel)}#save-status{margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:190px}.preview-footer{justify-content:space-between}.preview-status-wrap{display:flex;align-items:center;gap:6px;min-width:0}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:28px;padding:3px 0;border:0;background:transparent;color:var(--muted);font-size:10px;font-weight:500}.text-button:hover{color:var(--accent)}.text-button svg{width:13px;height:13px}#console-count{display:inline-grid;place-items:center;min-width:17px;padding:0 4px;border:1px solid var(--border);border-radius:4px;font-size:9px}#console-panel{flex:0 1 200px;min-height:90px;max-height:38%;border-top:1px solid var(--border);display:flex;flex-direction:column;background:var(--panel);overflow:hidden}.console-header{display:flex;align-items:center;justify-content:space-between;padding:5px 13px;border-bottom:1px solid var(--border);font-size:10px;font-weight:600}.console-header .text-button{min-height:24px}#console-lines{overflow:auto;min-height:0;flex:1;padding:6px 12px;font:11px/1.7 var(--mono);overflow-wrap:anywhere;white-space:pre-wrap}#console-lines>*{margin:0;padding:5px 0;border-bottom:1px solid var(--border)}#console-lines .error,#console-lines .console-error,#console-lines [data-type=error]{color:var(--red)}#console-lines .warn,#console-lines .console-warn{color:var(--muted)}.workspace-footnote{display:flex;align-items:center;gap:18px;flex:none;min-height:44px;font-size:10px;color:var(--muted)}.workspace-footnote>span:first-child{display:inline-flex;align-items:center;gap:7px}.workspace-footnote svg{width:12px;height:12px}.workspace-footnote .text-button{font-size:10px}.keyboard-hint{margin-left:auto;white-space:nowrap;font-size:9px}kbd{padding:2px 4px;border:1px solid var(--border);border-radius:3px;background:var(--panel);font:9px var(--font)}
.page-content{max-width:1360px;margin:0 auto;padding:60px 36px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}.section-heading h2,.faq-section h2{font-size:25px;line-height:1.3;font-weight:600;letter-spacing:-.65px;margin:0 0 9px}.section-heading p:last-child{font-size:12px;color:var(--muted);margin:0}.inline-link{display:inline-flex;align-items:center;gap:8px;font-size:11px;white-space:nowrap}.inline-link svg{width:14px;height:14px}.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.guide-grid article{padding:24px;border:1px solid var(--border);border-radius:9px;background:var(--panel)}.step-number{display:inline-flex;color:var(--accent);font:11px var(--mono);margin-bottom:19px}.guide-grid h3{font-size:14px;font-weight:600;line-height:1.4;margin:0 0 9px}.guide-grid p{font-size:12px;line-height:1.85;color:var(--muted);margin:0}.compatibility-note{margin-top:20px;padding:20px 22px;border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:7px;background:var(--panel);font-size:12px;color:var(--muted);line-height:1.85}.compatibility-note strong{font-size:12px;font-weight:600;color:var(--text)}.compatibility-note p{margin:8px 0 0}.examples-section{margin-top:70px}.section-count{font:10px var(--mono);color:var(--muted);padding:5px 9px;border:1px solid var(--border);border-radius:5px;white-space:nowrap}.examples-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.example-card{min-width:0;display:flex;flex-direction:column;align-items:flex-start;padding:22px;border:1px solid var(--border);border-radius:9px;background:var(--panel);transition:border-color .15s}.example-card:hover{border-color:var(--muted)}.example-top{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:24px}.example-number{font:10px var(--mono);color:var(--muted)}.example-tag{font-size:9px;color:var(--muted)}.example-card h3{font-size:14px;line-height:1.4;font-weight:600;margin:0 0 8px}.example-card p{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 20px}.example-open{display:flex;align-items:center;gap:8px;margin-top:auto;min-height:32px;padding:0;background:none;border:0;color:var(--accent);font-size:11px;font-weight:550}.example-open svg{width:14px;height:14px}.faq-section{margin-top:70px;display:grid;grid-template-columns:1fr 2fr;gap:40px}.faq-list{border-top:1px solid var(--border)}details{padding:17px 0;border-bottom:1px solid var(--border)}summary{font-size:12px;font-weight:550;line-height:1.6;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px}summary::after{content:"+";color:var(--muted);font-size:18px;font-weight:400}details[open] summary::after{content:"−"}details p{font-size:12px;line-height:1.9;color:var(--muted);margin:12px 20px 0 0}.site-footer{max-width:1680px;margin:0 auto;border-top:1px solid var(--border);padding:28px 30px;display:flex;align-items:center;flex-wrap:wrap;gap:20px;font-size:11px;color:var(--muted)}.footer-brand{display:flex;gap:12px;color:var(--text);font-size:13px;font-weight:700}.footer-brand span{font-size:11px;color:var(--muted);font-weight:400}.site-footer nav{margin-left:auto;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.site-footer nav a{color:var(--muted)}.site-footer p{margin:0;flex-basis:100%;font-size:10px}
#toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:1000;max-width:min(560px,calc(100vw - 32px));padding:12px 18px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);box-shadow:0 10px 40px #0c1a3030;font-size:12px;overflow-wrap:anywhere}dialog{width:min(460px,calc(100vw - 32px));max-height:calc(100svh - 32px);padding:28px;border:1px solid var(--border);border-radius:12px;background:var(--panel);color:var(--text);box-shadow:0 30px 100px #09162e40;overflow:auto}dialog::backdrop{background:#0b142a66;backdrop-filter:blur(2px)}dialog h2{font-size:19px;font-weight:600;line-height:1.4;letter-spacing:-.4px;margin:0 0 12px}.dialog-header{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.dialog-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--accent)}.dialog-description{font-size:12px;line-height:1.8;color:var(--muted);margin:0 0 20px}dialog label{display:block;font-size:11px;font-weight:600;margin:0 0 7px}dialog input{display:block;width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text);font-size:13px}.dialog-hint{font-size:10px;line-height:1.8;color:var(--muted);margin:10px 0 0}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:26px}.noscript-notice{padding:20px;text-align:center;background:var(--panel);border:1px solid var(--border)}
/* Expanded preview retains its toolbar and an explicit exit control. */
#preview-pane:fullscreen,#preview-pane.expanded,#runner-app.preview-fullscreen #preview-pane,body.preview-fullscreen #preview-pane{position:fixed;inset:0;z-index:200;width:100%;height:100dvh;max-height:none;display:flex;background:var(--panel)}#preview-pane:fullscreen #fullscreen-exit,#preview-pane.expanded #fullscreen-exit,#runner-app.preview-fullscreen #fullscreen-exit,body.preview-fullscreen #fullscreen-exit{display:inline-grid!important}#preview-pane:fullscreen #fullscreen-btn,#preview-pane.expanded #fullscreen-btn{display:none}
@media(min-width:1600px){#runner-app{padding-left:44px;padding-right:44px}}@media(max-width:1100px){.workspace-toolbar{gap:3px}.button{padding:8px 10px}.autorun-control{padding:0 3px}.toolbar-divider{margin:0 2px}.brand-tool{display:none}.header-nav{gap:20px}}
@media(max-width:759px){html{scroll-padding-top:20px}.site-header{height:58px;padding:0 16px;gap:14px}.brand{gap:8px}.brand-slash,.brand-tool,.header-nav .full-editor{display:none}.header-nav{gap:18px;font-size:11px}#theme-btn{width:40px;height:40px}#runner-app{height:calc(100svh - 58px);min-height:620px;max-height:950px;padding:22px 14px 0}.workspace-heading{margin-bottom:20px}.eyebrow{font-size:8px;letter-spacing:1.4px}h1{font-size:26px}.workspace-description{font-size:11px;max-width:280px}.local-badge{display:none}.workspace-toolbar{min-height:63px;padding:8px;gap:4px;border-bottom:1px solid var(--border)}.workspace-toolbar .desktop-control{display:none}.button{min-height:44px;font-size:12px;padding:9px 12px}.workspace-toolbar .icon-button{width:44px;height:44px}.autorun-control{min-height:44px;padding:0 4px;font-size:10px;gap:5px}.toolbar-space{min-width:0}.switch-track{width:25px}.actions-menu button{min-height:44px}.mobile-panes{display:flex;flex:none;gap:0;padding:4px;background:var(--panel);border-left:1px solid var(--border);border-right:1px solid var(--border)}.mobile-panes button{flex:1;min-height:44px;padding:9px;border:0;border-radius:5px;background:transparent;color:var(--muted);font-size:12px;font-weight:500}.mobile-panes button[aria-selected=true]{color:var(--text);background:var(--surface);font-weight:600}#runner-split{position:relative;min-height:0}#splitter{display:none}#editor-pane,#preview-pane{flex:1;width:100%;min-width:0}#runner-app:not([data-pane=preview]) #preview-pane{display:none}#runner-app[data-pane=preview] #editor-pane{display:none}#runner-app[data-pane=preview] #preview-pane{display:flex}.file-bar{min-height:48px}#file-tabs{height:47px}.file-tab[role=tab],.file-tab [role=tab],#file-tabs>[role=tab]{min-height:47px}.file-bar #add-file-btn{width:38px;height:44px}.file-close{width:28px;min-height:36px;height:36px}.CodeMirror{font-size:13px;line-height:1.85}.pane-footer{min-height:35px;font-size:9px;gap:9px;padding:6px 10px}#document-size{display:none}#save-status{max-width:150px}.preview-bar{min-height:48px;height:48px;padding-left:12px}.preview-actions .icon-button{width:38px;height:40px}.workspace-footnote{align-items:flex-start;gap:8px;min-height:46px;padding:9px 0;font-size:9px;line-height:1.6}.workspace-footnote>span:first-child{align-items:flex-start;gap:6px}.workspace-footnote>span:first-child svg{margin-top:2px}.workspace-footnote .text-button{margin-left:auto;font-size:9px;min-width:64px;padding:0;min-height:20px}.keyboard-hint{display:none}.page-content{padding:45px 20px}.section-heading{align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:22px}.section-heading h2,.faq-section h2{font-size:23px}.section-heading p:last-child{font-size:12px}.guide-grid{grid-template-columns:minmax(0,1fr);gap:12px}.guide-grid article{padding:20px}.step-number{margin-bottom:12px}.examples-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.example-card{padding:18px}.example-top{margin-bottom:20px}.example-tag{font-size:8px}.examples-section,.faq-section{margin-top:50px}.faq-section{grid-template-columns:minmax(0,1fr);gap:18px}.site-footer{padding:26px 20px;gap:14px}.site-footer nav{margin:0;flex-basis:100%;gap:14px 20px}.site-footer nav a{font-size:11px}dialog{padding:24px}.preview-footer .text-button{min-height:28px}.preview-label{font-size:11px}}
@media(max-width:420px){.header-nav{gap:14px}.brand-mark{width:28px;height:28px}.site-header{padding:0 14px;gap:12px}.header-nav a{font-size:10px}.brand{font-size:15px}#runner-app{padding-left:10px;padding-right:10px}.workspace-heading{margin-bottom:18px}.workspace-description{max-width:275px}.workspace-toolbar{gap:2px;padding:8px 6px}.button{padding:9px 10px}.autorun-control{padding:0 3px;font-size:10px}.button svg{width:14px;height:14px}.examples-grid{grid-template-columns:minmax(0,1fr)}.example-top{margin-bottom:17px}.example-card{padding:21px}.example-tag{font-size:10px}.page-content{padding:40px 16px}.workspace-footnote>span:first-child{max-width:230px}.workspace-footnote{font-size:8px}.pane-footer{gap:8px}#cursor-position{font-size:8px}}
@media(max-width:359px){.site-header{gap:9px;padding:0 10px}.header-nav{gap:12px}.brand{gap:6px;font-size:14px}.header-nav a{font-size:10px}#theme-btn{width:36px;height:40px}#runner-app{padding-top:19px}h1{font-size:25px}.workspace-toolbar .button{padding:9px 8px;gap:5px;font-size:11px}.autorun-control{font-size:9px;gap:4px}.switch-track{width:24px}.switch-track::before{width:11px;height:12px}.toolbar-space{flex:1}.workspace-toolbar .icon-button{width:40px}.workspace-footnote>span:first-child{max-width:205px}#cursor-position{display:none}#save-status{max-width:145px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:760px){#runner-app[data-split=false] #preview-pane,#runner-app[data-split=false] #splitter{display:none}#runner-app[data-split=false] #editor-pane{flex:1;width:100%}}
@media(max-width:359px){.workspace-toolbar .icon-button{width:44px}}
.console-line{display:flex;align-items:flex-start;gap:10px}.console-level{flex:none;min-width:34px;color:var(--muted);font:9px/1.9 var(--mono);text-transform:uppercase}.console-line>span:last-child{min-width:0;overflow-wrap:anywhere}.console-line.console-error .console-level{color:var(--red)}
#share-dialog p{font-size:12px;color:var(--muted);line-height:1.8}#share-dialog textarea{display:block;width:100%;min-height:120px;resize:vertical;padding:12px;border:1px solid var(--border);border-radius:6px;background:var(--bg);color:var(--text);font:11px/1.7 var(--mono);overflow-wrap:anywhere}#share-close{display:block;margin:20px 0 0 auto;min-height:40px;padding:8px 18px;border:1px solid #2459db;border-radius:6px;background:#2459db;color:#fff;font-size:12px;font-weight:600}
.CodeMirror-hints{z-index:1500;background:var(--panel);border:1px solid var(--border);border-radius:7px;color:var(--text);font:12px/1.8 var(--mono);box-shadow:0 12px 35px #09162e25}.CodeMirror-hint{color:var(--text);padding:2px 7px}.CodeMirror-hint-active{background:#2459db!important;color:#fff!important}.CodeMirror-dialog{border-color:var(--border);background:var(--panel);color:var(--text);padding:8px 12px;font:12px/1.7 var(--font)}.CodeMirror-dialog input{padding:4px 6px;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font:12px/1.7 var(--mono)}.CodeMirror-foldgutter{width:10px}.CodeMirror-foldgutter-open,.CodeMirror-foldgutter-folded{color:var(--muted)}
@media(max-width:759px){#file-tabs>.file-tab{padding:0 8px;gap:6px;font-size:10px}#file-tabs>.file-tab[aria-selected=false] .file-close{display:none}#file-tabs>.file-tab .file-close{width:22px;min-height:36px}#rename-file-btn{width:32px;height:44px}}

/* Viewport editor modes retain the existing editors and live preview. */
.editor-mode-container{position:relative;flex:none}
#editor-mode-btn{white-space:nowrap}
#editor-mode-btn .mode-chevron{width:12px;height:12px;margin-left:1px}
#editor-mode-btn[aria-pressed=true]{background:var(--surface);color:var(--accent)}
.editor-mode-menu{left:0;right:auto}
.menu-heading{margin:4px 10px 8px;color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.07em;text-transform:uppercase}
.menu-separator{height:1px;margin:7px 4px;background:var(--border)}
.actions-menu button[aria-pressed=true]{background:var(--surface);color:var(--accent)}
.actions-menu kbd{margin-left:auto;color:var(--muted);font:10px var(--mono)}
#more-menu{max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
body.editor-mode>.site-header,body.editor-mode>.site-footer,body.editor-mode>.skip-link,
body.editor-mode .page-content,body.editor-mode .workspace-heading,body.editor-mode .workspace-footnote{display:none}
body.editor-mode #runner-app{position:fixed;inset:0;z-index:100;width:100%;max-width:none;height:100vh;height:100dvh;min-height:0;max-height:none;margin:0;padding:0;background:var(--bg)}
body.editor-mode .workspace-toolbar{border-radius:0;flex-shrink:0}
body.editor-mode #runner-split{border-radius:0;border-bottom:0}
body.editor-mode #split-toggle{display:none}
body.editor-mode #runner-app[data-editor-mode=code] #preview-pane,
body.editor-mode #runner-app[data-editor-mode=code] #splitter,
body.editor-mode #runner-app[data-editor-mode=code] .mobile-panes{display:none}
body.editor-mode #runner-app[data-editor-mode=code] #editor-pane{display:flex;flex:1;width:100%}
@media(min-width:760px) and (max-width:1050px){.workspace-toolbar>#format-btn,.workspace-toolbar>#share-btn{display:none}}
@media(max-width:759px){
  body.editor-mode #stop-btn{width:44px;min-width:44px;padding:0;justify-content:center}
  body.editor-mode #stop-btn>span{display:none}
  body.editor-mode #editor-mode-exit-btn{width:44px;height:44px;flex:none}
}
