/* Workspace presentation: reuse the existing forge palette and component tokens. */
:root { --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --workspace-border:rgba(255,138,61,.2); }
button:focus-visible, summary:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline:2px solid var(--gold-hi); outline-offset:3px; }
button:disabled { opacity:.4; cursor:default; }
/* Keep navigation in flow so it cannot obscure the tree. */
#treeBar { position:relative; top:auto; left:auto; transform:none; flex:0 0 auto; width:calc(100% - 24px); max-width:none; margin:12px 12px 0; justify-content:flex-start; box-shadow:none; }
#treeQ { flex:1 1 150px; min-width:100px; max-width:280px; }
#zoomSlider { width:90px; }
#treeGuide { flex:0 0 auto; }
aside { flex:0 0 420px; width:420px; min-width:0; overflow:hidden; }
#deckTop, #qaRow, #deckTabs { flex-shrink:0; min-width:0; }
.nameRow { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; }
.nameRow #deckName { grid-column:1 / -1; width:100%; font-size:15px; }
.nameRow .menuWrap, .nameRow button, #saveStatus { flex-shrink:0; }
.countRow #bar { min-width:0; }
#deckTabs { display:flex; flex-wrap:wrap; gap:8px 12px; padding:8px 12px 0; }
.toolGroup { min-width:0; }
.toolGroupLabel { display:block; color:var(--cream-dim); font-size:11px; margin:0 4px 4px; }
.toolGroup > div { display:flex; gap:2px; }
#deckTabs button { flex:0 0 auto; min-height:32px; padding:0 6px; font-size:12px; }
#deckTabs button.on { box-shadow:inset 0 -2px var(--gold); }
#health { align-items:center; gap:6px; }
#health .hchip { min-height:26px; border-radius:4px; font-size:12px; padding:3px 7px; box-shadow:none; white-space:normal; text-align:left; }
#health span.hchip { cursor:default; }
#health .hchip.neutral { color:var(--cream-dim); border-color:transparent; background:transparent; }
#health .hchip:hover { transform:none; }
.healthDetails { width:100%; }
.healthDetails summary { cursor:pointer; color:var(--cream-dim); padding:5px 0; font-size:12px; }
.healthDetails p { margin:4px 0 8px; line-height:1.5; }
.healthMetrics { display:flex; flex-wrap:wrap; gap:6px; max-height:160px; overflow:auto; padding:3px; }
#optBtn { background:rgba(255,138,61,.06); box-shadow:none; min-height:32px; padding:5px 10px; text-align:left; }
.node .tools button { padding:0; min-width:28px; min-height:28px; }
.node:focus-within .tools { opacity:1; transform:none; }
.branchToggle { display:inline; padding:0; border:0; border-radius:2px; background:none; color:inherit; font:inherit; text-align:left; }
.branchToggle:hover { background:none; color:var(--gold-hi); }
@media (max-width:1100px) { header { flex-wrap:wrap; gap:8px 12px; } #deckTabs { gap:6px; } aside { flex-basis:390px; width:390px; } }
@media (max-width:900px) { aside { flex:1 1 auto; width:100%; max-height:55vh; } #treeArea { min-height:40vh; } #treeBar { margin:8px; width:calc(100% - 16px); } }
