*{box-sizing:border-box}html,body,#root{margin:0;width:100%;height:100%}body{font-family:system-ui,-apple-system,sans-serif;background:#10131c}button,input,select{font:inherit;color:inherit}button,select{cursor:pointer}button{border:1px solid var(--border);background:var(--panel);border-radius:9px;min-height:44px;padding:8px 12px}button:hover{background:var(--hover)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input,select{border:1px solid var(--border);background:var(--base);border-radius:8px;min-height:44px;padding:8px 10px;min-width:0}main{--base:#10131c;--panel:#191e2a;--surface:#141925;--border:#30384a;--hover:#292f43;--fg:#e9edf7;--muted:#a3aec6;--accent:#b3a1ff;--primary:#6650cc;--soft:#27203f;background:var(--base);color:var(--fg);height:100vh;height:var(--app-height,100dvh);display:flex;flex-direction:column;overflow:hidden}main[data-theme=light]{--base:#f8f9fc;--panel:#fff;--surface:#edf0f6;--border:#d4d9e4;--hover:#e4e8f3;--fg:#222738;--muted:#59657b;--accent:#5944b4;--primary:#6650cc;--soft:#eae5ff;color-scheme:light}main[data-theme=amoled]{--base:#000;--panel:#090909;--surface:#050505;--border:#292929;--hover:#171717;--soft:#211c30}main[data-theme=dark],main[data-theme=amoled]{color-scheme:dark}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.topbar{flex:none;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 14px;background:var(--panel);border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:9px;border:0;background:none;font-weight:750;padding:0;white-space:nowrap}.brand b{color:var(--accent);font-weight:600}.logo{display:grid;place-items:center;background:var(--primary);color:#fff;border-radius:10px;width:34px;height:34px;font-weight:850}.top-actions{display:flex;align-items:center;gap:9px;min-width:0}.status,small{font-size:12px;color:var(--muted)}.theme-label select{font-size:13px;max-width:108px}.warning,.error{color:var(--fg);background:var(--soft);padding:10px;font-size:13px;overflow-wrap:anywhere}.home{overflow:auto;padding:24px 16px max(24px,env(safe-area-inset-bottom));width:100%;max-width:1100px;margin:auto;flex:1}.hero{background:var(--panel);border:1px solid var(--border);border-radius:20px;padding:24px;margin-bottom:22px}.eyebrow{font-size:10px;letter-spacing:.13em;color:var(--muted);font-weight:700}.hero h1{font-size:clamp(26px,5vw,46px);line-height:1.12;margin:12px 0}.hero p,.terminal p{color:var(--muted);line-height:1.6;font-size:14px}.tag{display:inline-block;font-size:11px;color:var(--accent);background:var(--soft);border-radius:20px;padding:5px 9px}.create,.file-form{display:grid;gap:8px}.create label,.file-form label{font-size:13px;font-weight:650}.form-row{display:flex;gap:8px;min-width:0}.form-row input{flex:1;width:0}.primary{background:var(--primary);color:#fff;border-color:transparent;font-weight:650}.primary:hover{background:#5944b4}.home h2{font-size:19px;margin:28px 0 12px}.count{color:var(--muted);font-size:13px}.projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px}.project-card{text-align:left;display:grid;gap:10px;padding:16px;overflow-wrap:anywhere}.project-icon{background:var(--soft);color:var(--accent);width:38px;height:38px;display:grid;place-items:center;border-radius:10px;font-size:22px}.open-project{color:var(--accent);font-size:13px;margin-top:6px}.workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;overflow:hidden}.explorer,.terminal{padding:14px;overflow:auto;min-height:0;background:var(--surface)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.section-head h2{font-size:16px;overflow-wrap:anywhere;margin:4px 0}.icon-button{padding:8px}.tree{margin-top:16px;display:grid;gap:3px}.tree button{width:100%;text-align:left;background:transparent;border-color:transparent;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tree button:hover,.tree button[aria-current=true]{background:var(--soft);color:var(--accent)}.children{margin-left:12px;border-left:1px solid var(--border);padding-left:4px}.filemark{color:var(--accent);margin-right:8px}.work{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}.tabs,.keys,.mobile-nav{display:flex;gap:5px;overflow-x:auto;background:var(--panel);flex:none}.tabs{padding:4px 6px;border-bottom:1px solid var(--border);min-height:49px}.tab{display:flex;flex:none;border-radius:8px;background:var(--surface);border-bottom:2px solid transparent}.tab[data-active=true]{border-color:var(--accent);background:var(--soft)}.tab button{background:transparent;border:0;white-space:nowrap;font-size:13px}.tab .close{padding:8px;min-width:36px}.breadcrumbs{display:flex;justify-content:space-between;gap:8px;padding:7px 12px;font-size:12px;color:var(--muted);border-bottom:1px solid var(--border)}.breadcrumbs span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor{flex:1;min-height:0;overflow:hidden}.cm-editor{height:100%;font-size:15px}.cm-scroller{overflow:auto}main[data-theme=amoled] .cm-editor,main[data-theme=amoled] .cm-gutters{background:#000;color:#a3aec6}.keys{padding:6px;border-top:1px solid var(--border)}.keys button{flex:none;min-width:44px;padding:4px}.empty{padding:24px;color:var(--muted)}.terminal{border-top:1px solid var(--border)}.mobile-nav{padding:5px 8px max(5px,env(safe-area-inset-bottom));border-top:1px solid var(--border);justify-content:space-around}.mobile-nav button{flex:1;display:grid;gap:2px;place-items:center;font-size:11px;border:0;background:transparent}.mobile-nav button span{font-size:18px;font-weight:700}.mobile-nav button[aria-pressed=true]{background:var(--soft);color:var(--accent)}@media(max-width:799px){.studio[data-panel=editor] .explorer,.studio[data-panel=editor] .terminal,.studio[data-panel=files] .work,.studio[data-panel=files] .terminal,.studio[data-panel=terminal] .explorer,.studio[data-panel=terminal] .work{display:none}.status{max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand{font-size:14px}.topbar{padding:6px 9px}}@media(min-width:800px){.workspace{grid-template-columns:245px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 145px}.explorer{grid-row:1/3;border-right:1px solid var(--border)}.terminal{grid-column:2}.mobile-nav,.keys{display:none}.home,.hero{padding:36px}.topbar{padding-inline:24px}}@media(max-height:500px)and (max-width:799px){.topbar{min-height:48px}.mobile-nav button{display:flex;justify-content:center;min-height:38px}.keys button{min-height:36px}.breadcrumbs{display:none}}.hero{padding:16px;margin-bottom:16px;border-radius:13px}.hero h1{font-size:clamp(22px,4vw,34px);margin:6px 0}.hero p{margin:6px 0 10px}.home{padding-top:16px}.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:18px 0 10px}.dashboard-heading h2{margin:0}.dashboard-heading button{font-size:12px}.search-field{display:flex;align-items:center;gap:7px;color:var(--muted);margin:8px 0 12px;min-width:0}.search-field input{flex:1;width:0}.projects{gap:8px}.project-card{grid-template-columns:36px minmax(0,1fr);gap:3px 12px;padding:12px;align-items:center}.project-card .project-icon{grid-row:1/4}.project-card strong,.project-card small,.project-card .open-project{grid-column:2}.open-project{margin:0}.create-mode{display:flex;gap:6px;margin-bottom:10px}.create-mode button{flex:1;font-size:13px}.create-mode button[aria-pressed=true]{background:var(--soft);color:var(--accent)}.tree-row{display:flex;align-items:center;gap:2px;min-width:0}.tree .tree-entry{display:flex;align-items:center;gap:7px;flex:1;width:0;padding:6px;min-height:42px}.entry-name{overflow:hidden;text-overflow:ellipsis}.tree .entry-menu{width:40px;flex:none;display:grid;place-items:center;padding:4px}.tree-entry svg{flex:none;color:var(--accent)}.type-icon{font-size:10px;min-width:22px;text-align:center;font-weight:800;color:var(--accent);flex:none}.type-ts,.type-tsx{color:#5e9de9}.type-js,.type-jsx,.type-json{color:#c4a84b}.type-php{color:#a99bdf}.type-java{color:#e08b65}.type-py{color:#56a3dc}.type-html{color:#e08469}.operation{display:grid;gap:8px;padding:12px;background:var(--panel);border:1px solid var(--border);border-radius:10px;overflow-wrap:anywhere}.operation label{display:grid;gap:4px;font-size:13px}.operation .form-row{flex-wrap:wrap}.muted{color:var(--muted);font-size:12px}.editor .cm-editor{font-size:inherit}.editor-tools{display:flex;justify-content:space-between;align-items:center;padding:3px 8px;border-bottom:1px solid var(--border);gap:5px;flex:none}.editor-tools>div{display:flex;gap:3px}.editor-tools button{padding:4px 7px;min-height:40px;min-width:34px;font-size:14px;background:transparent}.warning button{font-size:12px}.tab button{max-width:180px;overflow:hidden;text-overflow:ellipsis}.mobile-nav svg{width:20px;height:20px}@media(max-width:799px){.home{margin:0 auto}.topbar{min-height:52px}.studio[data-panel=editor] .editor-tools .muted{display:none}.editor-tools{justify-content:flex-end}.keys{padding:4px}.mobile-nav button{min-height:44px}}@media(max-height:500px)and (max-width:799px){.editor-tools button{min-height:32px}.studio[data-panel=editor] .topbar{min-height:44px}.studio[data-panel=editor] .mobile-nav button{min-height:32px}}.server-storage{margin:16px 0;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}.server-storage h2{margin:0 0 6px}.server-storage form{display:grid;gap:6px}.server-storage label{font-size:13px}.server-buttons,.backup-actions{display:flex;flex-wrap:wrap;gap:6px}.backup-actions{justify-content:flex-end}.import-button{position:relative;display:grid;place-items:center;border:1px solid var(--border);background:var(--panel);border-radius:9px;min-height:44px;padding:8px 12px;font-size:12px;cursor:pointer}.import-button input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.import-button:focus-within{outline:2px solid var(--accent)}@media(max-width:480px){.dashboard-heading{align-items:flex-start;flex-direction:column}.backup-actions{justify-content:flex-start}}
