:root{font:13px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;color:#d7e0e8;background:#141c26;--panel:#192431;--panel2:#101a26;--edge:#304353;--muted:#91a6b5;--accent:#6ed9b5;--active:#20394c}*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit;border:1px solid transparent;background:transparent;border-radius:5px;padding:7px 10px}button:hover{background:#2b4051}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #88dfbe;outline-offset:1px}button:disabled{opacity:.45;cursor:not-allowed}.skip{position:absolute;top:-100px;background:white;color:black;padding:12px;z-index:10}.skip:focus{top:0}.titlebar{height:48px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 15px;background:#101a22;border-bottom:1px solid var(--edge)}.brand{display:flex;align-items:center;gap:9px;font-weight:700;letter-spacing:.05em}.brand strong{color:#bcebcf}.brand small{color:var(--muted);font-size:10px;letter-spacing:normal;font-weight:400;margin-left:12px}.brand-mark{font-size:16px;color:#0c2019;background:#7bd6aa;padding:3px 8px;border-radius:5px}.window-tools{display:flex;align-items:center;gap:12px}.window-tools span{font-size:11px;color:#9cb2bb}.window-tools button{border:1px solid #507269;background:#24483e}.toolbar{height:44px;display:flex;align-items:center;gap:3px;padding:0 12px;background:#1c2a34;border-bottom:1px solid var(--edge);overflow-x:auto;white-space:nowrap}.toolbar button{font-size:12px}.toolbar kbd{font-size:10px;color:#8eb1b4}.sep{height:22px;width:1px;background:#42606a;margin:0 7px;flex:none}.spacer{flex:1}.workspace{display:grid;grid-template-columns:45px 250px minmax(0,1fr) 225px;height:calc(100dvh - 120px);min-height:0}.activity-bar{background:#121b25;border-right:1px solid var(--edge);display:flex;flex-direction:column;align-items:center;padding:7px 0;gap:7px}.activity-bar button{font-size:22px;width:39px;height:42px;border-radius:0}.activity-bar button.active{color:var(--accent);border-left:3px solid var(--accent)}.explorer,.outline{min-height:0;display:flex;flex-direction:column;background:#192631;overflow:hidden;border-right:1px solid var(--edge)}.outline{border-right:0;border-left:1px solid var(--edge)}.pane-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;letter-spacing:.1em;color:#b7ccd6;min-height:43px;padding:0 14px}.pane-heading button{font-size:18px}.project-name-label{font-size:10px;color:var(--muted);margin:9px 13px 5px}.explorer input{width:calc(100% - 24px);margin:0 12px 8px;padding:9px;border:1px solid var(--edge);border-radius:5px;background:#111d27;color:#e6f4ed}.file-tree{overflow:auto;flex:1;padding:5px 8px}.file-item{display:flex;align-items:center;gap:8px;text-align:left;width:100%;border-radius:4px;min-width:0}.file-item.active{background:#2c4e50;color:#eaffed}.file-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item small{font-size:10px;color:#8fd7bd}.explorer-footer{padding:12px;color:var(--muted);border-top:1px solid var(--edge);font-size:11px}.explorer-footer p{font-size:10px;margin-bottom:0}.editor-panel{display:flex;flex-direction:column;overflow:hidden;min-width:0}.tabs{height:38px;display:flex;overflow-x:auto;background:#111b27;border-bottom:1px solid var(--edge)}.tab{height:100%;border-radius:0;border-right:1px solid var(--edge);padding:0 16px;white-space:nowrap;color:#abc3ca}.tab.active{background:#1c2e3a;color:#e7f5ee;border-top:2px solid #78dcb8}.breadcrumb{display:flex;align-items:center;justify-content:space-between;height:31px;padding:0 14px;background:#1b2d3a;color:var(--muted);font-size:11px}.editor-region{min-height:100px;flex:1;overflow:hidden;position:relative}.fallback{height:100%;display:flex;background:#15202b;overflow:hidden}.fallback pre{margin:0;padding:14px 11px;width:52px;overflow:hidden;flex:none;text-align:right;user-select:none;color:#738899;background:#121e29;font:13px/22px ui-monospace,SFMono-Regular,Consolas,monospace}.fallback textarea{resize:none;width:100%;height:100%;border:0;background:#15202b;color:#daebea;font:13px/22px ui-monospace,SFMono-Regular,Consolas,monospace;padding:14px;tab-size:4;outline:none;white-space:pre;overflow:auto}.editor-region #monaco{height:100%;width:100%}.bottom-panel{height:145px;border-top:1px solid var(--edge);display:flex;flex-direction:column;background:#131f2b}.bottom-heading{display:flex;gap:12px;align-items:center;height:38px;border-bottom:1px solid #253b4a;padding:0 9px}.bottom-heading button{font-size:10px;letter-spacing:.07em}.bottom-heading button.active{color:#ccfff0;border-bottom:2px solid #79dec1}.bottom-heading>span{margin-left:auto;font-size:10px;color:var(--muted)}.bottom-content{overflow:auto;flex:1;padding:9px 14px;color:#b3cbcb;font:11px/19px ui-monospace,Consolas,monospace;white-space:pre-wrap}.outline-list{overflow:auto;padding:10px;flex:1}.outline-list button{display:block;width:100%;text-align:left;font-size:12px;padding:8px}.engine-help{border-top:1px solid var(--edge);padding:15px;color:#a9d6ca;font-size:11px}.engine-help p{font-size:11px;color:#9fb3bb}.statusbar{height:28px;background:#176b5a;display:flex;align-items:center;gap:18px;padding:0 12px;color:#eefff9;font-size:11px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}dialog{background:#1c2e39;color:#e5f6f1;border:1px solid #527b78;border-radius:12px;padding:24px;width:min(460px,95vw)}dialog::backdrop{background:#0009}dialog label{display:flex;flex-direction:column;gap:7px;font-size:12px}dialog input{background:#121f2b;color:white;border:1px solid #548476;padding:11px;border-radius:6px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.primary{background:#157965;color:white}dialog p{color:#b6d2d0}.status-error{color:#ffc4a7}@media(max-width:1050px){.workspace{grid-template-columns:42px 210px minmax(0,1fr)}.outline{display:none}.outline.show{display:flex;position:absolute;right:0;top:92px;bottom:28px;width:240px;z-index:3;box-shadow:-8px 0 30px #0008}}@media(max-width:670px){.workspace{grid-template-columns:38px minmax(0,1fr)}.explorer{display:none}.explorer.show{display:flex;position:absolute;top:92px;bottom:28px;width:230px;left:38px;z-index:4}.brand small,.window-tools span,.toolbar kbd,.bottom-heading>span{display:none}.titlebar{padding:0 8px}.toolbar{padding:0 6px}.bottom-panel{height:110px}}
/* Offline completion overlay — native textarea fallback. */
.completion-popup{position:absolute;z-index:7;left:65px;top:38px;width:min(460px,calc(100% - 80px));max-height:min(350px,58%);overflow-y:auto;background:#1b2e3b;color:#e0f2ee;border:1px solid #4e847a;border-radius:9px;box-shadow:0 15px 40px #0009;padding:5px}
.completion-popup[hidden]{display:none!important}
.completion-popup button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;width:100%;padding:9px 11px;text-align:left;min-height:40px;font:12px/1.4 ui-monospace,Consolas,monospace;color:#e6f2ed;background:transparent;border:0;border-radius:5px}
.completion-popup button:hover,.completion-popup button[aria-selected=true]{background:#31594f}
.completion-popup button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.completion-popup button small{color:#acd3c8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.completion-popup button:focus-visible{outline:2px solid #f6df94;outline-offset:-2px}
@media(max-width:670px){.completion-popup{left:18px;top:18px;width:calc(100% - 36px)}}
