:root{color-scheme:dark;--bg:#0b1017;--panel:#111923;--panel2:#151f2b;--line:#263242;--text:#e7edf5;--muted:#8695a9;--mint:#77e2b2;--active:#203c36;--shadow:0 14px 45px #0003;font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}#app{min-height:100vh;display:grid;grid-template-columns:246px minmax(0,1fr)}.sidebar{background:#0e151e;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:24px 14px;gap:36px}.logo{display:flex;align-items:center;font-size:19px;font-weight:760;letter-spacing:-.6px;padding:5px 8px;gap:12px}.logo small{display:block;font-size:10px;font-weight:500;color:var(--muted);letter-spacing:1.2px}.logo-mark{width:38px;height:38px;border:1px solid #44866e;border-radius:12px;background:#17402f;display:grid;place-items:center;color:var(--mint);font-size:30px}.side-section{display:grid;gap:8px}.side-section>small{padding:0 12px;color:#75869b;font-size:10px;letter-spacing:1.3px;font-weight:700}.sidebar button{width:100%;border:0;background:transparent;color:#b0bed0;text-align:left;border-radius:9px;padding:12px 13px}.sidebar button:hover,.sidebar button.active{background:#1d2d39;color:#effff8}.sidebar button.active{border-left:3px solid var(--mint);padding-left:10px}.sidebar .sidebar-button{border:1px dashed #365064;color:#c9e9dd}.project-item{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-item.selected{background:#1b3c35;color:#96f1ca}.sidebar-bottom{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin-top:auto;padding:12px}.status-dot{width:7px;height:7px;border-radius:50%;background:#66dba3;box-shadow:0 0 12px #66dba3}.main{padding:0 28px 24px;min-width:0;display:flex;flex-direction:column}.topbar{height:116px;display:flex;align-items:center;justify-content:space-between;gap:16px}.crumb{font-size:11px;color:var(--muted);letter-spacing:1px}.topbar h1{font-size:24px;font-weight:680;letter-spacing:-.8px;margin:7px 0}.top-actions,.row-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{border:1px solid #3e5868;border-radius:9px;color:var(--text);background:#1b2a35;padding:11px 17px;white-space:nowrap}.btn.primary{background:#b0f0d2;color:#173529;border-color:#b0f0d2;font-weight:700}.btn.ghost{background:transparent}.btn.small{padding:8px 12px;font-size:12px}.btn:hover:not(:disabled){filter:brightness(1.1)}.notice{padding:11px 15px;border:1px solid #31554a;background:#162c29;border-radius:9px;margin-bottom:16px;color:#b1e6d2}.notice.error{background:#3c2129;border-color:#744251;color:#fbc7d0}.hidden{display:none!important}.auth-card{max-width:520px;padding:36px;border-radius:16px;border:1px solid var(--line);background:var(--panel);margin:9vh auto}.auth-card h2{font-size:25px}.auth-card p,.empty-card p,.page-intro p,.muted{color:var(--muted)}.eyebrow{color:var(--mint);letter-spacing:2px;font-size:11px}.auth-card form{display:flex;gap:8px;margin-top:25px}input,select,textarea{background:#0e1620;color:var(--text);border:1px solid #364756;border-radius:8px;padding:11px;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #56bd9c;outline-offset:0}.auth-card input{flex:1}.empty-card{border:1px dashed #445568;background:var(--panel);padding:64px;text-align:center;border-radius:16px;max-width:700px;margin:5vh auto}.empty-card h2{font-size:26px}.big-icon{color:var(--mint);font-size:58px}.workspace-grid{display:grid;grid-template-columns:205px minmax(320px,1.15fr) minmax(260px,1fr);gap:12px;min-height:620px;height:calc(100vh - 192px);max-height:930px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:13px;min-width:0;overflow:hidden}.file-panel,.code-panel,.preview-panel{display:flex;flex-direction:column}.panel-heading,.editor-header{padding:16px;display:flex;justify-content:space-between;align-items:center;font-weight:700;font-size:11px;letter-spacing:1px;border-bottom:1px solid var(--line)}.panel-heading button{border:0;background:none;color:var(--mint);font-size:21px}.file-list{padding:10px;flex:1;overflow:auto}.file-list button{display:block;border:0;border-radius:8px;text-align:left;width:100%;padding:12px;background:none;color:#acbbcd;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;overflow-wrap:anywhere}.file-list button:hover,.file-list button.selected{background:#22372f;color:#a6ffd5}.panel-foot,.editor-footer{color:#74869a;border-top:1px solid var(--line);padding:13px;font-size:11px}.editor-header{gap:10px}.editor-header #filename{font-size:12px;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-header .muted{font-size:10px}.code-panel #code-editor{resize:none;display:block;width:100%;flex:1;border:none;outline:none;background:#101823;border-radius:0;color:#e4e8ec;font:13px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;padding:20px;tab-size:2}.preview-tools{display:flex;gap:8px;padding:12px}.chip{background:#17232f;border:1px solid #314455;color:#aab8c6;padding:7px 10px;border-radius:8px;font-size:12px}.chip.selected{color:var(--mint);border-color:#66ae97}.preview-holder{background:#1b2532;flex:1;min-height:200px;padding:12px;display:flex;justify-content:center;overflow:hidden}.preview-holder iframe{width:100%;height:100%;border:0;background:#fff;border-radius:5px;transition:width .15s}.preview-holder iframe.mobile{width:min(375px,100%)}.page-intro{display:flex;justify-content:space-between;align-items:center;margin:5px 0 24px}.page-intro h2{font-size:25px;margin:4px 0}.page-intro p{margin:6px 0}.plugins-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.pad{padding:22px}.pad h3{margin:0 0 20px}.plugin-card,.record-row,.history-row{border:1px solid var(--line);padding:15px;border-radius:10px;margin:10px 0;background:#141f2b}.plugin-card .heading{display:flex;justify-content:space-between;gap:8px;align-items:center}.plugin-card small{color:var(--muted)}#plugin-json{width:100%;height:280px;resize:vertical;font:12px/1.6 ui-monospace,Consolas,monospace;margin-bottom:13px}.form-row{display:flex;justify-content:space-between;align-items:end;gap:15px}.form-row label{display:flex;flex-direction:column;gap:8px;flex:1}.record-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.record-row button,.history-row button{font-size:12px}.record-fields{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted)}.record-fields strong{color:var(--text)}.history-row{display:flex;justify-content:space-between;gap:15px;align-items:center}.history-row code{color:var(--mint)}.footer{margin-top:auto;padding-top:22px;color:#5e7187;font-size:11px}.modal{position:fixed;inset:0;background:#03070bc9;z-index:20;display:grid;place-items:center;padding:20px}.modal-card{background:#17212c;border:1px solid #40505e;border-radius:14px;padding:22px;width:min(540px,100%);box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:20px}.modal-head button{background:none;color:var(--muted);border:none;font-size:18px}.modal-card label{display:grid;gap:6px;margin:14px 0;color:#cbd8e7}.modal-card input,.modal-card select,.modal-card textarea{width:100%}.modal-card .row-actions{justify-content:flex-end;padding-top:12px}@media(max-width:1400px){.workspace-grid{grid-template-columns:175px minmax(280px,1fr) minmax(220px,.8fr)}}@media(max-width:1050px){#app{grid-template-columns:190px minmax(0,1fr)}.workspace-grid{grid-template-columns:160px minmax(0,1fr);height:auto;max-height:none}.preview-panel{grid-column:1/-1;min-height:420px}.plugins-grid{grid-template-columns:1fr}}@media(max-width:650px){#app{grid-template-columns:1fr}.sidebar{gap:12px;padding:9px}.logo{font-size:15px}.side-section>small,.sidebar-bottom{display:none}.side-section{gap:2px}#projects,#nav{display:flex;overflow:auto}#projects button,#nav button{white-space:nowrap;width:auto}.sidebar .sidebar-button{width:auto}.main{padding:0 12px 20px}.topbar{height:auto;min-height:100px;flex-wrap:wrap;padding:12px 0}.topbar h1{font-size:20px}.workspace-grid{grid-template-columns:1fr}.file-panel{max-height:160px}.code-panel{height:490px}.preview-panel{grid-column:1;min-height:420px}.auth-card{padding:20px}.auth-card form{flex-direction:column}}

/* Bounded operation metadata stays readable on narrow screens. */
.project-row{display:flex;align-items:center;gap:3px;min-width:0}.project-row .project-item{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.project-quick{flex:none;width:28px;min-height:32px;border:0;border-radius:5px;background:transparent;color:inherit;cursor:pointer}.project-quick:hover,.project-quick:focus-visible{background:#ffffff20}.top-actions{flex-wrap:wrap}.topbar{gap:12px;flex-wrap:wrap}#ai-model-warning{grid-column:1/-1}#ai-models-refresh{align-self:end}
#operations-controls{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}#operations-list small{display:block;overflow-wrap:anywhere;margin-top:6px}#operations-list .record-row>div{min-width:0}
.sidebar{min-width:0}.sidebar .project-quick{width:28px;flex:0 0 28px;padding:4px;text-align:center}.sidebar .project-item{width:auto}
.side-section{min-width:0;grid-template-columns:minmax(0,1fr)}#projects{min-width:0;width:100%}.project-row{width:100%;overflow:hidden}
.editor-header{flex-wrap:wrap}.editor-header #filename{min-width:0;flex-basis:180px}.editor-header button{letter-spacing:normal}

#editor-preview-status{white-space:pre-wrap;overflow-wrap:anywhere;max-height:160px;overflow:auto}#editor-preview-status.preview-error{color:#fbc7d0}
