:root {
  --hx-paper: var(--surface, #fff);
  --hx-canvas: var(--side, #f4f4f4);
  --hx-wash: var(--soft, #eee);
  --hx-edge: var(--line, #e2e2e2);
  --hx-action: var(--accent, #202020);
  --hx-ink: var(--ink, #1c1c1c);
}
.studio-shell #sidebar { background:var(--hx-canvas); border-inline-end:1px solid var(--hx-edge); }
.studio-shell #sidebar :is(.nav-item.active,.task-nav-item.selected) { background:var(--hx-wash); color:var(--hx-ink); box-shadow:none; }
.studio-shell .topbar { background:var(--hx-paper); border-color:var(--hx-edge); }
.studio-shell .hero { max-width:960px; margin-inline:auto; text-align:start; }
.studio-shell .hero h1 { color:var(--hx-ink); letter-spacing:-.035em; }
.studio-shell #composer { box-shadow:none; border-color:var(--hx-edge); }
.studio-shell #composer:focus-within { outline:none; border-color:var(--hx-action); }
.studio-shell #composer.drag-over { outline:none; border:1px dashed var(--hx-action); }
.studio-shell #conversationComposer:has(textarea:focus-visible) { outline:none; }
.studio-shell #conversationComposer:has(textarea:focus-visible) .composer-surface { border-color:var(--hx-action); }
.studio-shell :is(.composer-tab.active,.scene-chip.active) { background:var(--hx-wash); color:var(--hx-ink); }
.studio-shell :is(.home-creation-actions,.record-actions,.dialog-actions,.batch-form-actions) { gap:8px; align-items:center; }
.studio-shell :is(.primary-button,.new-project),.minute-studio .primary,.scene-save button {
  background:var(--hx-action); color:var(--hx-paper); border:1px solid var(--hx-action); border-radius:9px;
}
.studio-shell :is(.batch-panel,.creation-editor,.settings-panel,.work-card,dialog),.scene-edit { border-color:var(--hx-edge); }
.studio-shell :is(.batch-total-hint,.credit-estimate,.record-params) { font-variant-numeric:tabular-nums; }
.studio-shell .batch-total-hint { color:var(--hx-action); font-weight:650; }
.record-prompt-summary { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.scene-edit summary { flex-wrap:wrap; }
.scene-line-preview { flex-basis:100%; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-weight:400; }
.scene-line-preview:empty,.scene-speech:empty { display:none; }
.scene-speech { display:grid; gap:.65rem; }
.scene-speech label { display:grid; gap:.35rem; }
.scene-speech input { width:100%; box-sizing:border-box; min-height:42px; }
.scene-save { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:.6rem 0; }
.scene-save button { padding:.45em 1em; min-height:40px; }
.scene-save-state { font-size:.88em; }
.legal-page main { max-width:76ch; margin-inline:auto; }
.legal-page :is(nav,form,section) { border-color:var(--hx-edge); }
.legal-page nav { display:flex; flex-wrap:wrap; gap:.5rem 1rem; }
.legal-page :is(p,li) { line-height:1.75; }
.workspace :is(.panel,.card,table) { border-color:var(--hx-edge); }
.workspace :is(th,thead) { background:var(--hx-wash); color:var(--hx-ink); }
.workspace .sidebar .nav-item.active { background:var(--hx-wash); color:var(--hx-ink); }
:is(.workspace,.studio-shell,.minute-studio,.legal-page) :is(button,a,input,textarea,select):focus-visible { outline:2px solid var(--hx-action); outline-offset:2px; }
@media(max-width:680px) {
  .studio-shell .dialog-actions { flex-wrap:wrap; }
  .studio-shell dialog { max-height:calc(100dvh - 24px); overflow:auto; }
  .studio-shell .batch-form-actions { flex-wrap:wrap; }
  .scene-save { justify-content:flex-start; flex-wrap:wrap; }
}
