/* Desktop workbench: a quiet, project-specific surface, not a monitoring dashboard. */
:root{--canvas:#f2f4f1;--paper:#fff;--ink:#24322f;--accent:#176b50;--border:#dce3dd;--warning:#8b5a13;font-family:"Segoe UI","Microsoft YaHei UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--canvas)}
body>header{height:64px;padding:0 30px;border-color:var(--border);gap:20px}
.brand{font-size:18px}.brand span{background:var(--accent);border-radius:4px;padding:8px;font-size:14px}.subtitle{color:#67756e;letter-spacing:0;font-size:12px}
main:has(.console){max-width:1800px;padding:26px 30px 40px 0}.console{grid-template-columns:210px minmax(0,1fr);gap:32px;align-items:start}
.sidebar{background:var(--ink);position:sticky;top:20px;border-radius:0 10px 10px 0;padding:25px 16px;min-height:calc(100vh - 120px);display:flex;flex-direction:column}
.sidebar>.eyebrow{color:#a5b9ad!important;letter-spacing:0;font-size:12px;margin:0 12px 24px}
.sidebar nav{gap:6px}.sidebar nav a{color:#c7d4cd;border-radius:5px;padding:13px 15px;font-weight:500;border-left:3px solid transparent}
.sidebar nav a[aria-current]{color:#fff;background:#365044;border-left-color:#9bceae;box-shadow:none}.sidebar nav a:hover,.sidebar nav a[aria-current]:hover{background:#3b5047}
.worker-mini{margin-top:auto;padding:28px 12px 16px;border-top:0;gap:10px}.worker-mini small{color:#a5b9ad}.worker-mini strong{color:#e7f1ea;font-size:13px;line-height:1.7;font-weight:500}.worker-mini a{color:#a5d3b5}.worker-mini a:hover{background:none;text-decoration:underline}.sync-clock{font-size:11px;color:#a5b9ad}
.sidebar>.muted{color:#a5b9ad;font-size:11px;padding:12px;margin:0;border-top:1px solid #4a5a52}.workspace-heading{margin:0 0 25px;min-height:53px}.workspace-heading h1{font-size:27px;letter-spacing:-.5px;margin:4px 0 0}.workspace-context{font-size:11px;color:#6c7c71;margin:0 0 6px}
h1,h2,h3{color:var(--ink)}h2{font-weight:650}p{line-height:1.75}.muted{color:#647469}.nav-link,summary,.crumb a,.status-result{color:var(--accent)}
.workspace .card{border-color:var(--border);border-radius:8px;box-shadow:none;padding:25px}.workspace form,.workspace .server{max-width:none}
button{background:var(--accent);border-radius:5px;min-height:40px}.secondary{background:#eaf1eb;color:var(--accent);border:1px solid #cddbd0}.quiet{color:#5b6c60}button:disabled{background:#edf0ed;color:#87958b;border-color:#dce3dd}
label{color:#42564a;font-size:13px}input,textarea,select{border-color:#ccd6ce;color:var(--ink);border-radius:5px;padding:11px 12px;background:#fff;line-height:1.45}textarea{resize:vertical}
input:focus,textarea:focus,select:focus{border-color:var(--accent);outline:3px solid #d5e6d9}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #82b196;outline-offset:3px}input[type=checkbox]{accent-color:var(--accent)}
.badge{background:#edf1ec;color:#5e7062;border-radius:4px;font-size:11px;white-space:nowrap;padding:5px 8px}.badge.ok{color:var(--accent);background:#e8f2eb}.notice{background:#f6f1e5;border-color:#e4d8b8;color:var(--warning);font-size:12px;border-radius:5px}.notice.error{background:#fff1f2;color:#a72b40;border-color:#fecdd3}
.stats>div{border-color:var(--border);border-radius:6px}.stats strong{color:var(--accent)}.version-picker{border-color:var(--border);background:#f6f8f4;border-radius:5px;padding:16px;margin:20px 0}.version-picker label{margin-bottom:12px}.version-message{margin:10px 0 0}.version-picker details{margin:7px 0 0}.version-picker summary{font-size:12px}
.inline-status{border-radius:5px;border-color:var(--border);border-left-color:#83998a;background:#f6f8f5}.inline-status[data-state=running],.inline-status[data-state=queued]{background:#f1f6f1;border-left-color:var(--accent)}.inline-status[data-state=success]{background:#f1f7f2;border-left-color:var(--accent)}.status-summary{color:#4e6455}.status-sync-note{color:var(--warning);font-size:12px;line-height:1.7}.status-sync-note:empty{display:none}pre{background:#263730;color:#d8e7dd;border-radius:4px}code{font-family:Consolas,"Cascadia Code",monospace}
/* The project identity and connected workflow carry the visual emphasis. */
.node-project-page{display:block}.node-project-page>.crumb{margin:0 0 18px}.node-identity{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:0 0 25px}.project-kind{font-size:12px;color:#637769;display:flex;align-items:center;gap:12px}.node-identity h2{font-size:30px;letter-spacing:-.6px;margin:10px 0 6px}.node-identity p{margin:0;color:#607367;font-size:12px}.identity-divider{margin:0 12px;color:#a4b3a8}.node-identity-state{text-align:right;flex:0 0 225px}.health-unknown{font-size:12px;color:#637165;display:inline-flex;align-items:center;gap:7px;margin-bottom:9px}.health-unknown:before{content:"";width:7px;height:7px;background:#8c9a91;border-radius:50%}
.node-workflow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;margin:0;background:#e7ece5;border:1px solid #d6dfd5;border-radius:7px;overflow:hidden}.node-workflow li{display:flex;gap:14px;align-items:center;padding:18px 22px;border-right:1px solid #d6dfd5;color:#617367}.node-workflow li:last-child{border:0}.node-workflow li>span{font-size:22px;font-weight:400;opacity:.6}.node-workflow b{display:block;font-size:13px;font-weight:650}.node-workflow small{display:block;font-size:11px;margin-top:4px}.node-workflow .is-done{background:#eaf2e9;color:var(--accent)}.node-workflow .is-current{background:#315641;color:#fff}.node-workflow .is-current small{color:#d6e4d7}
.node-boundary{font-size:12px;color:#64766a;margin:16px 0 23px;line-height:1.85}.node-workbench{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:22px;align-items:start}.node-workbench>div{min-width:0}.node-workbench .card{margin:0 0 20px;padding:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.section-heading>div{display:flex;align-items:center;gap:11px;min-width:0}.section-heading h3{margin:0;font-size:16px;font-weight:650}.step-index{color:#8a9b8d;font-size:13px}.section-description{font-size:12px;color:#65776a;margin:0 0 22px;line-height:1.85}
.node-source .node-form-grid{gap:18px}.node-source .version-picker{margin-top:18px}.node-source .node-form-grid textarea{font-size:12px;line-height:1.65;min-height:126px}.node-source .node-form-grid .muted{display:block;margin-top:6px}.node-project-page .checkbox{font-size:12px;line-height:1.8;margin:17px 0;align-items:flex-start}.node-project-page .checkbox input{margin-top:5px}.binding-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.binding-actions .muted{font-size:11px}.data-boundary{padding:14px 16px;background:#f4f6f2;border-left:2px solid #9eb6a2;margin:2px 0 20px;font-size:12px;color:#5a6f5e}.data-boundary b{font-weight:600;color:#405a47}.data-boundary p{margin:6px 0}.data-boundary details{margin:5px 0 0}.data-boundary summary{padding:5px 0;font-size:12px}
.node-check-form button{width:100%}.node-live-status{margin:20px 0 8px;padding:14px 16px}.node-live-status .status-title{font-size:12px}.node-live-status summary{font-size:12px}.task-footnote{font-size:11px;margin:10px 0 0}.node-approval[data-plan-state=ready]{border-top:3px solid var(--accent)}.plan-ready-note{font-size:12px;color:var(--accent);padding:10px 0 0}.node-plan{grid-template-columns:75px minmax(0,1fr);padding:0;background:none;gap:10px 15px;border-radius:0;font-size:12px;line-height:1.75;margin:18px 0}.node-plan dt{color:#728476}.node-plan dd{color:#304b3a}.node-plan code{font-size:11px}.execution-explainer{font-size:12px;margin:14px 0}.execution-explainer summary{padding:8px 0}.execution-explainer p{color:#5a6f5e}.node-approval .risk-note{font-size:11px;padding:12px 14px;line-height:1.9;margin:14px 0}.node-update-form button{width:100%}.plan-placeholder{padding:25px 10px;text-align:center}.plan-placeholder-symbol{font-size:36px;color:#c6d3c7}.plan-placeholder h4{font-size:15px;margin:12px 0 8px;color:#596e5e}.plan-placeholder p{font-size:12px;max-width:340px;margin:8px auto;color:#748275}.node-safety{padding:0 12px 10px;color:#67796b;font-size:12px}.node-safety h3{font-size:13px;margin:12px 0}.node-safety p{font-size:11px}.expired{color:#a43728}.node-unsaved-note{margin-bottom:15px}.node-unsaved-note[hidden]{display:none}
/* Existing panel inventory stays explicit: there is no automatic external fetch. */
.projects-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:0 0 24px;padding:5px 0 23px;border-bottom:1px solid var(--border)}.projects-intro h2{font-size:25px;margin:0 0 8px}.projects-intro p{font-size:12px;color:#65796a;margin:0}.inventory-route{display:flex;gap:18px;color:#748476;font-size:12px;white-space:nowrap}.inventory-route b{display:block;color:var(--accent);font-size:18px;font-weight:500;margin-bottom:7px}.panel-projects .panel-project-heading{margin-bottom:24px}.panel-project-heading h2{font-size:18px}.panel-project-toolbar{background:#f4f7f2;padding:18px;border-radius:5px}.panel-project-status{color:#5f7565;font-size:12px}.panel-project-item{border-color:var(--border);border-radius:6px;box-shadow:none}.panel-project-item h3{color:var(--ink)}.panel-project-item footer{border-color:var(--border)}.panel-project-scope{border-top:1px solid var(--border);padding-top:16px}.deployment-records{border:1px dashed #cdd8cc;padding:10px 18px;border-radius:6px;margin:24px 0}.deployment-records>summary{font-size:12px;color:#657568}.scope-note{color:#687c6c}
@media(min-width:1600px){.node-workbench{grid-template-columns:minmax(0,1.15fr) minmax(450px,1fr);gap:28px}.workspace-heading{margin-bottom:30px}.node-workbench .card{padding:28px}}
@media(max-width:1100px){.console{grid-template-columns:180px minmax(0,1fr);gap:22px}.node-workbench{grid-template-columns:1fr}.node-identity-state{flex-basis:180px}.node-workflow li{padding:15px 12px}.node-workflow li>span{font-size:18px}.inventory-route{display:none}}
@media(max-width:850px){main:has(.console){padding:16px}.console{grid-template-columns:1fr}.sidebar{min-height:0;padding:0;background:none;position:static;display:block}.sidebar nav a{color:var(--ink)}.sidebar>.eyebrow,.sidebar>.muted,.worker-mini{display:none}.node-identity{align-items:flex-start;flex-direction:column}.node-identity-state{text-align:left;flex-basis:auto}.node-workflow li{padding:12px 8px;gap:6px}.node-workflow small{display:none}.node-workflow b{font-size:11px}.node-identity h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Avoid a second oversized title above the project's actual identity. */
.workspace:has(.node-project-page) .workspace-heading{min-height:26px;margin-bottom:14px}
.workspace:has(.node-project-page) .workspace-context{display:none}
.workspace:has(.node-project-page) .workspace-heading h1{font-size:17px;font-weight:500;color:#6b7c70;margin:0}
.node-project-page>.crumb{margin-bottom:13px}.node-identity{padding-bottom:19px}.node-identity h2{font-size:28px;margin:8px 0 5px}
.node-workflow li{padding-top:16px;padding-bottom:16px}.node-boundary{margin:12px 0 19px}
.node-check .section-description{margin-bottom:16px}.node-live-status{margin-top:16px;padding:12px 14px}.node-live-status .status-summary{line-height:1.75}
