/* Scrollable syntax layer: keep the viewport clipped and move only its contents. */
.editor-highlight{transform:none!important}
.editor-highlight{padding:0;color:inherit;font:inherit}
.editor-highlight pre{position:absolute;top:0;left:0;width:max-content;min-width:100%;margin:0;padding:15px 17px;color:#3d5145;font:12px/21px ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;white-space:pre;pointer-events:none}
.studio-layout{min-height:0}
@media(min-width:761px){.studio-layout{grid-template-rows:minmax(0,1fr)}}
.editor-area{min-height:0;overflow:hidden}
.editor-content{flex:1 1 auto;min-width:0;min-height:0}
.code-editor{top:0;right:0;bottom:0;left:43px;width:auto;height:auto;min-width:0;min-height:0;overflow-x:auto!important;overflow-y:auto!important;overscroll-behavior:contain;white-space:pre!important;overflow-wrap:normal!important;word-break:normal!important;scrollbar-gutter:stable}
.code-editor::-webkit-scrollbar{width:10px;height:10px}
.code-editor::-webkit-scrollbar-thumb{background:#cbd5cc;border:2px solid transparent;border-radius:8px;background-clip:padding-box}
.code-editor::-webkit-scrollbar-track{background:transparent}
.studio-docs-link,.dashboard-docs-link{font-size:10px;color:#718479;font-weight:600;padding:7px 5px}
.studio-docs-link:hover,.dashboard-docs-link:hover{color:#287653}
.welcome-actions{display:flex;align-items:center;gap:9px}
.welcome-actions .button-ai{height:42px}
.card-actions{display:flex;align-items:center;gap:5px}
.card-delete{width:27px;height:27px;border:1px solid transparent;border-radius:8px;background:transparent;color:#9aa59c;font-size:15px;line-height:1;opacity:.72}
.card-delete:hover{color:#a7433d;background:#fff0ee;border-color:#f3d9d5;opacity:1}
.card-delete:disabled{opacity:.4;cursor:wait}
.registration-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:17px 0 -3px;padding:12px 15px;border:1px solid #e4ebe4;border-radius:10px;background:#fbfcfa}
.registration-settings>div{display:grid;gap:3px}
.registration-settings strong{color:#506255;font-size:10px}
.registration-settings>div>span{color:#87938a;font-size:9px}
.registration-settings.closed{border-color:#eadfd4;background:#fdfaf6}
.registration-settings.closed>div>span{color:#a87953}
.registration-switch-label{position:relative;display:inline-flex;flex:none;width:38px;height:22px;cursor:pointer}
.registration-switch-label input{position:absolute;inset:0;z-index:1;width:38px;height:22px;margin:0;opacity:0;cursor:pointer}
.registration-switch-track{position:absolute;inset:0;border-radius:99px;background:#c4cec6;transition:background .18s}
.registration-switch-track:after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #17251f30;transition:transform .18s}
.registration-switch-label input:checked+.registration-switch-track{background:#43865b}
.registration-switch-label input:checked+.registration-switch-track:after{transform:translateX(16px)}
.registration-switch-label input:focus-visible+.registration-switch-track{outline:3px solid #6da68766;outline-offset:3px}
.registration-switch-label input:disabled+.registration-switch-track{opacity:.55;cursor:wait}
.ai-model-select-label select{max-width:min(300px,58vw);height:34px;padding:0 30px 0 10px;border:1px solid #dfe7df;border-radius:8px;background:#fff;color:#43564a;font-size:10px}
.ai-model-select-label select:disabled{opacity:.6;cursor:wait}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ai-create-card{width:min(100%,500px)}
.ai-create-card>p{line-height:1.55}
.ai-create-card form{display:grid;gap:13px}
.ai-create-card label{font-size:11px;color:#45564b;font-weight:600}
.ai-create-card textarea{width:100%;resize:vertical;border:1px solid #e1e7e1;background:#fff;border-radius:8px;margin-top:7px;padding:12px 13px;color:var(--ink);font:12px/1.6 var(--font)}
.ai-create-card textarea:focus{outline:none;border-color:#78a88d;box-shadow:0 0 0 3px #67a48118}
.ai-create-card textarea::placeholder{color:#aab4ac}
.ai-create-status{font-size:10px;color:#89968c;margin:0}
.ai-create-card .modal-actions{margin-top:0}
.ai-agent-activity{align-self:stretch;padding:10px 11px;border:1px solid #e4eae4;border-radius:10px;background:#f8faf7;color:#69766d;font-size:10px}
.ai-agent-activity-head{display:flex;align-items:center;gap:7px;min-height:18px}
.ai-agent-activity-head strong{color:#4b6251;font-size:10px}
.ai-agent-state{margin-left:auto;color:#849187;font-size:9px}
.ai-agent-spinner{width:11px;height:11px;border:2px solid #d3e2d4;border-top-color:#528765;border-radius:50%;animation:ai-agent-spin .75s linear infinite}
@keyframes ai-agent-spin{to{transform:rotate(360deg)}}
.ai-agent-steps{display:grid;gap:6px;margin:9px 0 0;padding:0;list-style:none}
.ai-agent-step{display:flex;align-items:flex-start;gap:7px;min-width:0;line-height:1.45}
.ai-agent-step-icon{width:14px;flex:none;text-align:center;color:#7c8b7f;font-weight:700}
.ai-agent-step-body{min-width:0;flex:1}
.ai-agent-step-body strong{display:block;color:#59685d;font-size:9px;font-weight:600;overflow-wrap:anywhere}
.ai-agent-step-body small{display:block;margin-top:2px;color:#859087;font-size:8px;line-height:1.45;overflow-wrap:anywhere}
.ai-agent-step.success .ai-agent-step-icon{color:#4f9866}
.ai-agent-step.failed .ai-agent-step-icon,.ai-agent-step.retry .ai-agent-step-icon{color:#bc7651}
.ai-agent-step.progress .ai-agent-step-icon{color:#718579}
.ai-agent-step.failed .ai-agent-step-body small,.ai-agent-step.retry>span:last-child{color:#a96849}
.ai-agent-step.progress>span:last-child{color:#69786e}
.ai-agent-step.agent-update{padding:5px 7px;border:1px solid #dce9dc;border-radius:7px;background:#eef5ed}
.ai-agent-step.agent-update .ai-agent-step-icon{color:#4e8a5d}
.ai-agent-step.agent-update>span:last-child{color:#3f6f4b;font-weight:600}
.ai-agent-failure-view{margin-top:9px;border:1px solid #ecd9d4;border-radius:8px;background:#fffaf9;color:#785b56}
.ai-agent-failure-view summary{padding:7px 9px;color:#9a594d;font-weight:700;cursor:pointer}
.ai-agent-failure-view summary span{display:inline-grid;place-items:center;min-width:17px;height:17px;margin-left:4px;border-radius:50%;background:#f4e3df;font-size:9px}
.ai-agent-failure-list{display:grid;gap:8px;padding:0 8px 8px}
.ai-agent-failure-entry{padding:8px;border-radius:6px;background:#fff;border:1px solid #f0e3e0}
.ai-agent-failure-entry>strong{font-size:10px;color:#93584e}
.ai-agent-failure-entry>p{margin:5px 0 8px;color:#755852;line-height:1.5;overflow-wrap:anywhere}
.ai-agent-failure-label{display:block;margin-bottom:4px;color:#8d7771;font-size:8px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.ai-agent-failure-entry pre{max-height:180px;overflow:auto;margin:0;padding:7px;border-radius:5px;background:#f6f3f2;color:#665c59;font:9px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.ai-agent-current{margin-top:8px;padding-top:7px;border-top:1px solid #e8ede7;color:#77857a;font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.ai-agent-activity.finished .ai-agent-state{color:#4f8a5d}
.ai-agent-activity.failed{border-color:#ecd9d4}
.ai-agent-activity.failed .ai-agent-state{color:#a45f4e}
.theme-toggle{width:32px;height:32px;flex:none;border:1px solid #e3e9e3;border-radius:8px;background:#fff;color:#667b6c;font-size:16px;display:grid;place-items:center}
.theme-toggle:hover{background:#f0f5ef;border-color:#d2e0d3}
.auth-theme-toggle{position:absolute;right:30px;top:30px;z-index:3}

/* Documentation */
.docs-body{min-height:100vh;background:#f7f9f6}
.docs-topbar{height:58px;background:#fff;border-bottom:1px solid #e7ece7;display:flex;align-items:center;padding:0 max(22px,calc((100vw - 1160px)/2));gap:20px}
.docs-topbar .brand{font-size:16px}.docs-topbar .brand-symbol{width:25px;height:25px;border-radius:8px;font-size:18px}
.docs-topbar-label{font-size:9px;letter-spacing:.15em;color:#9aa69c;font-weight:700}
.docs-topbar-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.docs-layout{width:min(1100px,100%);margin:0 auto;padding:56px 30px 80px;display:grid;grid-template-columns:175px minmax(0,720px);gap:76px;align-items:start}
.docs-nav{position:sticky;top:30px;display:grid;align-content:start;gap:5px}
.docs-nav-label{font-size:8px;letter-spacing:.14em;font-weight:700;color:#a0aaa2;margin:8px 0 5px}
.docs-nav a{padding:7px 9px;border-radius:6px;color:#77847b;font-size:11px}
.docs-nav a:hover{background:#edf3ed;color:#346849}
.docs-content{min-width:0}
.docs-eyebrow{display:flex;align-items:center;gap:8px;color:#789083;font-size:9px;letter-spacing:.15em;font-weight:700}
.docs-eyebrow span{width:6px;height:6px;border-radius:50%;background:#e8a071}
.docs-content>h1{font:700 clamp(36px,5vw,49px)/1.14 var(--display);letter-spacing:-.06em;margin:17px 0 11px}
.docs-content>h1 em{font-weight:500;color:#679276}
.docs-lede{max-width:570px;font-size:14px;line-height:1.7;color:#7e8b82;margin:0 0 42px}
.docs-section{padding:25px 0 26px;border-top:1px solid #e4eae4;scroll-margin-top:22px}
.docs-section-kicker{font-size:8px;letter-spacing:.15em;color:#879b8b;font-weight:700}
.docs-section h2{font:700 22px var(--display);letter-spacing:-.04em;margin:8px 0 11px}
.docs-section p,.docs-section li{font-size:12px;line-height:1.8;color:#738078}
.docs-section p{margin:9px 0}
.docs-section ul{padding-left:20px;margin:12px 0}
.docs-section li{padding:2px 0}
.docs-section b{color:#44554a}
.docs-section code{padding:2px 5px;background:#edf2ec;border-radius:4px;color:#4b7656;font:10px ui-monospace,SFMono-Regular,Consolas,monospace}
.docs-section pre{overflow:auto;margin:15px 0;padding:17px 18px;border:1px solid #e6ebe5;border-radius:9px;background:#fff;line-height:1.65}
.docs-section pre code{padding:0;background:transparent;color:#506156;font:10px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre}
.docs-section kbd{padding:3px 5px;border:1px solid #e0e5df;border-radius:4px;background:#fff;font-size:9px;color:#647268}
.docs-callout{display:flex;gap:11px;align-items:flex-start;padding:13px 14px;border-radius:8px;background:#edf4ec;margin-top:15px}
.docs-callout>span{color:#6b9b74;font-size:16px}.docs-callout p{margin:0;color:#607665;font-size:10px}
.docs-footer{margin-top:25px;padding-top:20px;border-top:1px solid #e4eae4;display:flex;align-items:center;justify-content:space-between;color:#98a39a;font-size:10px}
.docs-footer .brand{font-size:14px}.docs-footer .brand-symbol{width:23px;height:23px;border-radius:7px;font-size:16px}

/* Persistent dark theme for platform pages. App iframes are intentionally independent. */
html[data-theme="dark"]{color-scheme:dark;--ink:#e5ece6;--muted:#a0ada3;--line:#2a392e;--paper:#111813;--white:#19231b;--green:#58a678;--green-dark:#438a61}
html[data-theme="dark"] body.dashboard-body,html[data-theme="dark"] body.studio-body,html[data-theme="dark"] body.docs-body{background:#111813;color:#e4ebe5}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] .studio-topbar,html[data-theme="dark"] .studio-sidebar,html[data-theme="dark"] .preview-header,html[data-theme="dark"] .docs-topbar{background:#17211a;border-color:#29372d}
html[data-theme="dark"] .stats-strip,html[data-theme="dark"] .app-card,html[data-theme="dark"] .modal-card,html[data-theme="dark"] .editor-area,html[data-theme="dark"] .preview-wrap,html[data-theme="dark"] .ai-drawer,html[data-theme="dark"] .docs-section pre{background:#19231b;border-color:#2a392e}
html[data-theme="dark"] .studio-layout,html[data-theme="dark"] .preview-area{background:#121a14}
html[data-theme="dark"] .editor-content,html[data-theme="dark"] .editor-highlight{background:#141c16}
html[data-theme="dark"] .editor-lines{background:#171f19;border-color:#2a352d;color:#77877b}
html[data-theme="dark"] .editor-highlight pre{color:#d4dfd5}
html[data-theme="dark"] .editor-status,html[data-theme="dark"] .studio-sidebar-head,html[data-theme="dark"] .tree-label,html[data-theme="dark"] .studio-sidebar-foot,html[data-theme="dark"] .editor-tabs,html[data-theme="dark"] .preview-footer,html[data-theme="dark"] .dashboard-footer,html[data-theme="dark"] .docs-section,html[data-theme="dark"] .docs-footer{border-color:#2a392e}
html[data-theme="dark"] .file-row,html[data-theme="dark"] .studio-app-title,html[data-theme="dark"] .studio-app-title a,html[data-theme="dark"] .breadcrumb,html[data-theme="dark"] .docs-nav a{color:#a2b0a5}
html[data-theme="dark"] .file-row:hover,html[data-theme="dark"] .docs-nav a:hover{background:#202e24}
html[data-theme="dark"] .file-row.selected{background:#24382a;color:#b5d5bd}
html[data-theme="dark"] .editor-tab{color:#c3cec5;border-color:#2a392e}
html[data-theme="dark"] .entry-setting,html[data-theme="dark"] .entry-setting select,html[data-theme="dark"] .editor-status,html[data-theme="dark"] .preview-footer,html[data-theme="dark"] .dashboard-footer{color:#91a094}
html[data-theme="dark"] .app-card h3,html[data-theme="dark"] .section-heading h2,html[data-theme="dark"] .welcome-row h1,html[data-theme="dark"] .studio-sidebar-head h2,html[data-theme="dark"] .preview-header strong,html[data-theme="dark"] .docs-content h1,html[data-theme="dark"] .docs-section h2{color:#e4ece5}
html[data-theme="dark"] .app-card p,html[data-theme="dark"] .welcome-row>div>p,html[data-theme="dark"] .section-heading p,html[data-theme="dark"] .docs-section p,html[data-theme="dark"] .docs-section li{color:#9aa89d}
html[data-theme="dark"] .app-card .card-bottom{border-color:#2a392e}
html[data-theme="dark"] .brand{color:#b8d0be}
html[data-theme="dark"] .side-link.active{background:#24372a;color:#b9d9c0}
html[data-theme="dark"] .side-note,html[data-theme="dark"] .empty-state,html[data-theme="dark"] .empty-window{background:#19231b;border-color:#344137}
html[data-theme="dark"] .empty-state p,html[data-theme="dark"] .side-note span{color:#9ba99e}
html[data-theme="dark"] .empty-state h3,html[data-theme="dark"] .side-note b{color:#dce6dd}
html[data-theme="dark"] .stat-divider{background:#2a392e}
html[data-theme="dark"] .stat-green{background:#25382a;color:#a5d0ad}
html[data-theme="dark"] .stat-peach{background:#3a2b21;color:#e3b08c}
html[data-theme="dark"] .button-outline,html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .docs-section kbd{background:#202b23;color:#d3ded5;border-color:#354339}
html[data-theme="dark"] .button-outline:hover,html[data-theme="dark"] .theme-toggle:hover{background:#29382d}
html[data-theme="dark"] .button-ai{background:#24362a;color:#b7d8bf;border-color:#334a38}
html[data-theme="dark"] .button-ai:hover{background:#2b4232}
html[data-theme="dark"] .auth-form input,html[data-theme="dark"] .modal-card input,html[data-theme="dark"] .modal-card textarea,html[data-theme="dark"] .settings-panel input,html[data-theme="dark"] .settings-panel textarea,html[data-theme="dark"] .ai-input-wrap,html[data-theme="dark"] .ai-input-wrap textarea{background:#202b23;color:#e1e9e2;border-color:#354339}
html[data-theme="dark"] .ai-create-card label{color:#d3ded5}
html[data-theme="dark"] .ai-create-status{color:#9aa89c}
html[data-theme="dark"] .ai-agent-activity{background:#1b271f;border-color:#344237;color:#a5b1a7}
html[data-theme="dark"] .registration-settings{background:#19231b;border-color:#2a392e}
html[data-theme="dark"] .registration-settings strong{color:#d0ddd2}
html[data-theme="dark"] .registration-settings>div>span{color:#9ba99e}
html[data-theme="dark"] .registration-settings.closed{background:#28231d;border-color:#4b3b2d}
html[data-theme="dark"] .registration-settings.closed>div>span{color:#d2ad86}
html[data-theme="dark"] .registration-switch-track{background:#49584c}
html[data-theme="dark"] .registration-switch-label input:checked+.registration-switch-track{background:#43865b}
html[data-theme="dark"] .ai-model-select-label select{background:#202b23;border-color:#354339;color:#d3ded5}
html[data-theme="dark"] .ai-agent-activity-head strong,html[data-theme="dark"] .ai-agent-step-body strong{color:#d0ddd2}
html[data-theme="dark"] .ai-agent-state,html[data-theme="dark"] .ai-agent-step-body small,html[data-theme="dark"] .ai-agent-current{color:#9ba99e}
html[data-theme="dark"] .ai-agent-current{border-color:#344237}
html[data-theme="dark"] .ai-agent-step.failed .ai-agent-step-body small,html[data-theme="dark"] .ai-agent-step.retry>span:last-child{color:#e2a089}
html[data-theme="dark"] .ai-agent-step.progress>span:last-child{color:#aab9ad}
html[data-theme="dark"] .ai-agent-step.agent-update{background:#24382a;border-color:#3b5941}
html[data-theme="dark"] .ai-agent-step.agent-update .ai-agent-step-icon{color:#8fc99a}
html[data-theme="dark"] .ai-agent-step.agent-update>span:last-child{color:#c0e0c5}
html[data-theme="dark"] .ai-agent-failure-view{background:#302421;border-color:#61413a;color:#e4c5bd}
html[data-theme="dark"] .ai-agent-failure-view summary{color:#efb5a8}
html[data-theme="dark"] .ai-agent-failure-view summary span{background:#563832}
html[data-theme="dark"] .ai-agent-failure-entry{background:#291f1d;border-color:#4b3530}
html[data-theme="dark"] .ai-agent-failure-entry>strong{color:#efb5a8}
html[data-theme="dark"] .ai-agent-failure-entry>p{color:#d6bcb5}
html[data-theme="dark"] .ai-agent-failure-label{color:#c8a9a1}
html[data-theme="dark"] .ai-agent-failure-entry pre{background:#211b19;color:#e0d2ce}
html[data-theme="dark"] .card-delete{color:#9aa89c}
html[data-theme="dark"] .card-delete:hover{color:#ffaaa1;background:#3a2623;border-color:#593732}
html[data-theme="dark"] .settings-panel,html[data-theme="dark"] .editor-empty,html[data-theme="dark"] .ai-message.assistant,html[data-theme="dark"] .ai-examples button{background:#1d2921;color:#d2ddd4}
html[data-theme="dark"] .ai-examples button{border-color:#334136}
html[data-theme="dark"] .ai-welcome>strong,html[data-theme="dark"] .ai-header h2,html[data-theme="dark"] .docs-section b{color:#dfe9e0}
html[data-theme="dark"] .ai-welcome>p,html[data-theme="dark"] .ai-header span,html[data-theme="dark"] .ai-form-bottom>span,html[data-theme="dark"] .ai-input-wrap>span{color:#9aa89c}
html[data-theme="dark"] .ai-message.user{background:#24382a;color:#c5e0cb}
html[data-theme="dark"] .ai-mark,html[data-theme="dark"] .ai-welcome-icon{background:#24382a;color:#9dc6a5}
html[data-theme="dark"] .ai-form,html[data-theme="dark"] .ai-header{border-color:#2a392e}
html[data-theme="dark"] .ai-typing{background:#202b23}
html[data-theme="dark"] .docs-content>h1 em{color:#8eb89a}
html[data-theme="dark"] .docs-lede,html[data-theme="dark"] .docs-nav-label,html[data-theme="dark"] .docs-section-kicker,html[data-theme="dark"] .docs-footer{color:#95a398}
html[data-theme="dark"] .docs-section code{background:#243329;color:#a8d4b0}
html[data-theme="dark"] .docs-section pre code{color:#cad6cc}
html[data-theme="dark"] .docs-callout{background:#203126}
html[data-theme="dark"] .docs-callout p{color:#bdd1c0}
html[data-theme="dark"] .docs-section pre{background:#151e17}
html[data-theme="dark"] .syntax-keyword{color:#c59be0}html[data-theme="dark"] .syntax-string{color:#e0a183}html[data-theme="dark"] .syntax-comment{color:#819084}html[data-theme="dark"] .syntax-number{color:#e0b174}html[data-theme="dark"] .syntax-tag{color:#e49a7d}html[data-theme="dark"] .syntax-css{color:#82c7b6}
html[data-theme="dark"] .code-editor::-webkit-scrollbar-thumb{background:#536458;border-color:transparent;background-clip:padding-box}
html[data-theme="dark"] .auth-art{background:#19241c}
html[data-theme="dark"] .auth-card>p,html[data-theme="dark"] .auth-note{color:#a0ada3}
html[data-theme="dark"] .auth-note,html[data-theme="dark"] .auth-tabs{border-color:#2a392e}
html[data-theme="dark"] .auth-tabs{background:#202b23}
html[data-theme="dark"] .auth-tab{color:#a0ada3}
html[data-theme="dark"] .auth-tab.active{background:#2a372d;color:#e4ece5;box-shadow:0 1px 4px #0005}
html[data-theme="dark"] .art-card-one,html[data-theme="dark"] .art-note{background:#202b23;border-color:#344237}
html[data-theme="dark"] .art-note strong{color:#d4e1d6}
html[data-theme="dark"] .orbit{border-color:#334337}
html[data-theme="dark"] .orbit-two{border-color:#2d3b31}
@media(max-width:760px){.docs-layout{display:block;padding:30px 20px 55px}.docs-nav{position:static;display:flex;flex-wrap:wrap;gap:5px;margin-bottom:30px}.docs-nav-label{width:100%;margin-top:10px}.docs-nav a{padding:6px 8px}.docs-topbar{padding:0 12px}.docs-topbar-label{display:none}.studio-docs-link{font-size:0;padding:4px}.studio-docs-link:before{content:'?';font-size:12px}.dashboard-docs-link{display:none}.theme-toggle{width:29px;height:29px}.studio-actions{gap:4px}.studio-actions .button-ai{max-width:36px;overflow:hidden;gap:4px;padding:0 10px!important;font-size:0!important}.studio-actions .button-ai span{font-size:14px;flex:none}.docs-topbar-actions .button{padding:0 8px;font-size:9px}}

/* Workspace and editor layouts on phones and narrow tablets. */
@media(max-width:760px){
  .app-view{display:flex;flex-direction:column;min-width:0}
  .sidebar{position:sticky;inset:auto;top:0;z-index:10;width:100%;height:60px;flex:none;flex-direction:row;align-items:center;gap:8px;padding:0 14px;border-right:0;border-bottom:1px solid #e9ede9}
  .sidebar .brand{flex:none;margin:0;font-size:16px}
  .brand-symbol{flex:none}
  .side-section-label{display:none}
  .sidebar .side-link,.sidebar .side-link:not(.active){height:36px;flex:none;justify-content:center;gap:7px;padding:0 8px;font-size:11px}
  .side-link .side-icon{font-size:15px}
  .count-pill{display:none}
  .sidebar-bottom{display:flex;align-items:center;margin:0 0 0 auto}
  .sidebar-bottom .side-note{display:none}
  .profile-row{height:auto;gap:6px;padding:0;border:0}
  .profile-info{display:none}
  .profile-row .icon-button{display:grid}
  .dashboard-main{width:100%;min-width:0;margin:0;padding:0 clamp(16px,4vw,26px)}
  .topbar{min-width:0;height:auto;min-height:58px;gap:10px;padding:9px 0}
  .breadcrumb{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  .breadcrumb span{padding:0 5px}
  .topbar-right{flex:none;gap:8px}
  .topbar-status{display:none}
  .dashboard-docs-link{display:none}
  .welcome-row{min-width:0}
  .welcome-row>div:first-child{min-width:0}
  .welcome-row h1{font-size:clamp(25px,7vw,31px);line-height:1.15}
  .welcome-actions{width:100%;flex-wrap:wrap}
  .apps-grid{grid-template-columns:minmax(0,1fr);min-width:0}
  .app-card{min-width:0;max-width:100%}
  .stats-strip{max-width:100%;overflow:hidden}
  .studio-body{height:auto;min-height:100vh;overflow:auto}
  .studio-topbar{min-width:0;gap:8px;padding:0 10px}
  .studio-app-title{min-width:0;flex:1;overflow:hidden}
  .studio-app-title strong{min-width:0;max-width:100%}
  .studio-actions{min-width:0;flex:none}
  .studio-actions #open-app,.studio-actions #preview-button{min-width:32px;padding:0 8px}
  .studio-actions #open-app{font-size:0}
  .studio-actions #open-app span,.studio-actions #preview-button span{font-size:11px}
  .studio-layout{height:auto;min-height:0;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(420px,68vh) minmax(420px,68vh)}
  .studio-sidebar{grid-row:auto;max-height:205px;border-right:0;border-bottom:1px solid #e6eae6}
  .file-tree{min-height:40px;max-height:86px;flex:1}
  .editor-area{min-width:0;border-right:0}
  .preview-area{grid-column:auto;min-width:0;border-top:1px solid #e4e9e4}
}
@media(max-width:380px){
  .sidebar{padding:0 10px;gap:5px}
  .sidebar .brand{font-size:0}
  .sidebar .side-link,.sidebar .side-link:not(.active){gap:5px;padding:0 6px;font-size:10px}
  .sidebar-bottom{gap:0}
  .profile-row{gap:2px}
  .dashboard-main{padding-right:14px;padding-left:14px}
  .topbar{gap:6px}
  .topbar-right{gap:6px}
  .welcome-actions{gap:6px}
  .studio-topbar{gap:5px;padding:0 6px}
  .studio-actions{gap:3px}
}

/* Keep the workspace header inset and let its controls wrap instead of clipping. */
.topbar{box-sizing:border-box;width:100%;min-width:0;height:auto;min-height:66px;padding-inline:clamp(16px,2.5vw,36px);flex-wrap:wrap;row-gap:8px}
.breadcrumb{flex:1 1 160px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar-right{min-width:0;max-width:100%;flex-wrap:wrap;justify-content:flex-end}
