:root {
  color-scheme: dark;
  --bg: #111316;
  --panel: #191c20;
  --panel-2: #20242a;
  --line: #2e333a;
  --text: #e6e8eb;
  --muted: #9aa1aa;
  --accent: #d4af5a;
  --accent-ink: #1a1408;
  --ok: #6fbf8b;
  --warn: #e0b45c;
  --bad: #e5766f;
  --info: #79a8e0;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f5f4f0;
    --panel: #ffffff;
    --panel-2: #efeee9;
    --line: #d9d7cf;
    --text: #1d1f22;
    --muted: #5f656d;
    --accent: #8a6a14;
    --accent-ink: #ffffff;
    --ok: #1f7a45;
    --warn: #8a6100;
    --bad: #b3362d;
    --info: #24609f;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
h1 { font-size: 20px; margin: 0 0 4px; font-weight: 600; }
h2 { font-size: 15px; margin: 24px 0 8px; font-weight: 600; }
h3 { font-size: 13px; margin: 16px 0 6px; font-weight: 600; color: var(--muted); }
p { margin: 0 0 8px; }
a { color: var(--accent); }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.boot { padding: 32px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 100vh; }
.nav { background: var(--panel); border-right: 1px solid var(--line); padding: 16px 10px; display: flex; flex-direction: column; gap: 2px; }
.brand { font-weight: 700; padding: 0 8px 12px; letter-spacing: .02em; }
.brand span { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.nav a { color: var(--text); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.nav a:hover { background: var(--panel-2); }
.nav a.active { background: var(--panel-2); color: var(--accent); font-weight: 600; }
.nav .spacer { flex: 1; min-height: 12px; }
.refresh { padding: 0 8px 8px; }
.main { padding: 24px; max-width: 1180px; width: 100%; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 14px; }
.two { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.stat b { display: block; font-size: 22px; font-weight: 600; }
.stat span { color: var(--muted); font-size: 12px; }

.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 500; color: var(--muted); font-size: 12px; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge { display: inline-block; font-size: 11px; line-height: 16px; padding: 0 6px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.b-observed, .b-approved, .b-success, .b-done, .b-concluded, .b-idle { color: var(--ok); }
.b-verified { color: var(--info); }
.b-human_reported, .b-running, .b-in_review, .b-partial, .b-claimed, .b-busy { color: var(--warn); }
.b-offline, .b-self_reported, .b-pending, .b-proposed, .b-draft, .b-queued, .b-unknown, .b-analyzing { color: var(--muted); }
.b-failure, .b-failed, .b-revoked, .b-rejected, .b-withdrawn, .b-abandoned { color: var(--bad); }

form.stack, .stack { display: flex; flex-direction: column; gap: 10px; }
label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; width: 100%; }
input.check { width: auto; }
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
button:hover { border-color: var(--muted); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
button.danger { color: var(--bad); }
button:disabled { opacity: .55; cursor: default; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.filters { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }

.notice { border: 1px solid var(--line); border-left: 3px solid var(--info); border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; background: var(--panel); }
.notice.error { border-left-color: var(--bad); }
.notice.warn { border-left-color: var(--warn); }
.secret { font-family: var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; overflow-wrap: anywhere; user-select: all; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px; font-family: var(--mono); }

.gate { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.gate .panel { width: 100%; max-width: 400px; padding: 22px; }
.qr { display: block; width: 220px; height: 220px; margin: 8px auto; background: #fff; padding: 8px; border-radius: 6px; image-rendering: pixelated; }
.bar { height: 8px; background: var(--accent); border-radius: 2px; min-width: 1px; }
.barcell { min-width: 90px; }
details summary { cursor: pointer; color: var(--muted); }
.event { border-bottom: 1px solid var(--line); padding: 8px 0; }
.event:last-child { border-bottom: 0; }

/* Lab */
.vis { display: inline-block; font-size: 11px; padding: 0 6px; border-radius: 4px; font-weight: 600; letter-spacing: .01em; }
.vis-owner { color: var(--bad); border: 1px solid var(--bad); }
.vis-participant { color: var(--ok); border: 1px solid var(--ok); }
.owner-box { border-left: 4px solid var(--bad); }
.participant-box { border-left: 4px solid var(--ok); }
.key-info-box { padding-left: 10px; margin-top: 8px; }
.dispatch-box { border-left: 4px solid var(--accent); }
.owner-text { color: var(--bad); }
.warnText { color: var(--warn); }
.subpanel { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.four { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card p { flex: 1; }
h2.flush { margin: 0; }
label.inline { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
textarea.tall { min-height: 160px; }
pre.brief { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px; max-height: 520px; overflow: auto; }
.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0; border-top: 1px solid var(--line); }
iframe.preview { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* Neurons Tab */
.sliders-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.slider-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.slider-card input[type=range] { padding: 0; border: 0; background: transparent; accent-color: var(--accent); }
.slider-val-active { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.slider-val-neutral { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--panel); color: var(--muted); }

/* Neuron Terminal */
.term-panel { background: #0c0e12; border-color: #262a30; }
.term-screen { background: #07090c; border: 1px solid #1c2026; border-radius: 6px; padding: 12px; min-height: 280px; max-height: 440px; overflow-y: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.term-line { white-space: pre-wrap; word-break: break-word; margin-bottom: 2px; }
.term-banner { color: var(--accent); font-weight: 600; }
.term-dim { color: var(--muted); }
.term-prompt-line { color: var(--text); margin-top: 6px; }
.term-ps1 { color: var(--accent); font-weight: 600; user-select: none; }
.term-cmd { color: #f0f3f6; font-weight: 500; }
.term-out { color: #c9d1d9; }
.term-err { color: var(--bad); }
.term-stream { color: #e6edf3; }
.term-cursor { display: inline-block; animation: blink 1s step-start infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.term-input-row { display: flex; align-items: center; gap: 8px; background: #07090c; border: 1px solid #1c2026; border-radius: 6px; padding: 4px 10px; }
.term-input-box { background: transparent; border: 0; outline: none !important; font-family: var(--mono); font-size: 13px; color: #fff; flex: 1; padding: 4px 0; }
.term-chip { background: var(--panel-2); border-color: var(--line); font-family: var(--mono); font-size: 11px; padding: 2px 8px; }
.term-panel .term-chip { background: #161a22; border-color: #2a303a; color: #c9d1d9; }
.term-panel h2 { color: #e6e8eb; }
.term-chip:hover { border-color: var(--accent); color: var(--accent); }

/* Activation Heatmap */
.heatmap-container { overflow-x: auto; max-height: 480px; overflow-y: auto; border: 1px solid var(--line); border-radius: 6px; background: #0a0c0f; padding: 10px; }
.hm-grid { display: flex; flex-direction: column; gap: 3px; min-width: 680px; }
.hm-row { display: flex; align-items: center; gap: 6px; }
.hm-row-label { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 32px; flex-shrink: 0; font-weight: 600; }
.hm-row-cells { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; flex: 1; }
.hm-cell { border-radius: 4px; padding: 3px 6px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: transform .08s ease, outline .08s ease; border: 1px solid rgba(255,255,255,0.06); font-family: var(--mono); font-size: 10.5px; user-select: none; }
.hm-cell:hover { transform: scale(1.04); outline: 1px solid var(--accent); z-index: 2; }
.hm-cell.selected { outline: 2px solid #fff; outline-offset: 1px; z-index: 3; }
.hm-cell-n { font-weight: 600; color: #fff; }
.hm-cell-v { color: rgba(255,255,255,0.85); font-size: 10px; }

.legend-cell { padding: 1px 6px; border-radius: 3px; font-family: var(--mono); font-size: 10.5px; margin-left: 6px; }
.legend-pos { background: rgba(212, 175, 90, 0.5); color: #fff; }
.legend-neg { background: rgba(100, 200, 255, 0.4); color: #fff; }
.legend-zero { background: #161a22; color: var(--muted); border: 1px solid #2a303a; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.chip-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.neuron-chip { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); border-radius: 4px; padding: 2px 7px; display: flex; gap: 5px; font-family: var(--mono); font-size: 11px; cursor: pointer; }
.neuron-chip:hover { border-color: var(--accent); }
.chip-layer { color: var(--muted); }
.chip-neuron { color: var(--text); font-weight: 600; }
.chip-val { color: var(--accent); font-weight: 600; }

/* Run Log */
.run-log-container { max-height: 380px; overflow-y: auto; }
.run-log-item { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; }
.run-log-header { margin-bottom: 6px; }
.run-log-body { white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 8px; margin: 0; max-height: 140px; overflow-y: auto; }

/* Telemetry & Badges */
.telemetry-card { background: linear-gradient(180deg, var(--panel-2) 0%, rgba(20, 24, 32, 0.6) 100%); border-left: 3px solid var(--accent); padding: 12px 16px; margin-bottom: 16px; }
.b-duration { background: rgba(147, 51, 234, 0.15); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.3); font-family: var(--mono); }
.gap { gap: 8px; }
.wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

/* Neurons Tab Interventions & Styling */
.neurons-view { width: 100%; }
.interventions-tray { position: sticky; top: 0; z-index: 5; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.intervention-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-family: var(--mono); border: 1px solid var(--line); background: var(--bg); }
.steer-pill { border-color: rgba(212, 175, 90, 0.4); color: var(--accent); }
.zero-pill { border-color: rgba(229, 118, 111, 0.4); color: var(--bad); }
.boost-pill { border-color: rgba(111, 191, 139, 0.4); color: var(--ok); }
.pill-icon { font-size: 11px; }
.pill-name { font-weight: 600; color: var(--text); }
.pill-meta { font-size: 11px; color: var(--muted); }
.pill-remove { background: transparent; border: 0; color: var(--muted); cursor: pointer; padding: 0 3px; font-size: 14px; line-height: 1; border-radius: 3px; }
.pill-remove:hover { color: var(--bad); background: rgba(229, 118, 111, 0.15); }
.hint-text { color: var(--muted); font-style: italic; }

.quick-presets-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.preset-pill { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.12s ease; }
.preset-pill:hover { border-color: var(--accent); color: var(--accent); background: rgba(212, 175, 90, 0.08); transform: translateY(-1px); }

.go-compare { background: rgba(121, 168, 224, 0.15); border-color: rgba(121, 168, 224, 0.4); color: var(--info); font-weight: 600; }
.go-compare:hover { background: rgba(121, 168, 224, 0.25); border-color: var(--info); }

.compare-mount { width: 100%; margin-bottom: 14px; }
.compare-panel { border-left: 3px solid var(--info); padding: 14px; }
.compare-col { min-height: 180px; }
.normal-col { background: var(--panel-2); }
.steered-col { background: rgba(212, 175, 90, 0.04); border-color: rgba(212, 175, 90, 0.3); }
.compare-text { white-space: pre-wrap; word-break: break-word; line-height: 1.6; padding: 8px 0; color: var(--text); font-size: 13px; }

.inspector-mount { width: 100%; margin-bottom: 8px; }
.neuron-inspector-bar { background: var(--panel-2); border: 1px solid var(--accent); border-radius: 6px; padding: 8px 12px; }

/* Memory Meter Widget */
.memory-meter { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.mem-bar-wrap { width: 100%; height: 6px; background: var(--bg); border-radius: 4px; overflow: hidden; margin: 8px 0; border: 1px solid var(--line); }
.mem-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s ease, background-color 0.3s ease; }
.mem-bar-ok { background: var(--ok); }
.mem-bar-warn { background: var(--warn); }
.mem-bar-danger { background: var(--bad); }
.mem-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.mem-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; }
.hazard-banner { background: rgba(229, 118, 111, 0.12); border: 1px solid var(--bad); border-radius: 6px; padding: 8px 12px; margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.hazard-text { color: var(--bad); font-weight: 500; font-size: 12px; }

/* Neurons layout */
.nr-header { border-left: 3px solid var(--ok); }
.nr-header.nr-offline { border-left-color: var(--warn); }
.nr-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; }
.nr-title h1 { margin: 0; }
.nr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.nr-head-text { min-width: 0; flex: 1 1 240px; }
.nr-workspace { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); align-items: start; }
.nr-workspace .panel { margin-bottom: 14px; }
.nr-col { min-width: 0; }
.nr-col .sliders-grid { grid-template-columns: 1fr; }
.nr-prompt { font-size: 14px; padding: 9px 11px; }
.nr-num input { width: 72px; padding: 4px 6px; }
.nr-port { width: 90px; }
.nr-cmd { flex: 1 1 260px; }
.nr-push-right { margin-left: auto; }
.nr-legend .legend-cell { margin-left: 0; }
.flush-p { margin: 0; }
.neurons-view label.row { flex-direction: row; color: var(--text); font-size: 13px; }
.neurons-view label.row input[type=checkbox] { width: auto; }
.nr-details > summary { list-style-position: inside; color: var(--text); }
.nr-details[open] > summary { margin-bottom: 10px; }
.nr-details-body { padding-top: 2px; }
.nr-toast { position: fixed; right: 18px; bottom: 18px; z-index: 50; max-width: 380px; padding: 9px 14px; border-radius: 8px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-left: 3px solid var(--info); box-shadow: 0 6px 22px rgba(0,0,0,.3); font-size: 13px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.nr-toast.show { opacity: 1; transform: none; }
.nr-toast-error { border-left-color: var(--bad); }
.nr-toast-warn { border-left-color: var(--warn); }
@media (max-width: 980px) { .nr-workspace { grid-template-columns: minmax(0, 1fr); } }

/* Live Agent Activity Panel */
.agent-activity-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.agent-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 10px; }
.agent-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.agent-card-header { display: flex; justify-content: space-between; align-items: center; }
.agent-status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-running { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.dot-queued { background: var(--warn); box-shadow: 0 0 4px var(--warn); }
.dot-review { background: var(--warn); }
.dot-idle { background: var(--muted); }
.dot-offline { background: var(--bad); }
.b-running { background: rgba(56, 178, 100, 0.15); color: var(--ok); border-color: rgba(56, 178, 100, 0.3); }
.event-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; }
.event-summary { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.agent-claimed-files { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.file-pill { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

/* AI Experiment Architect */
.ai-experiment-card { background: var(--panel-2); border: 1px solid rgba(212, 175, 90, 0.4); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.ai-prompt-input { flex: 1; }
.template-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.template-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; font-size: 11.5px; cursor: pointer; }
.template-chip:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { width: 100%; padding-bottom: 6px; }
  .nav .spacer { display: none; }
  .main { padding: 16px; }
}

/* CLI tab */
.cli-agents { display: flex; flex-wrap: wrap; gap: 6px; }
.cli-agent { border-radius: 999px; padding: 6px 14px; }
.cli-agent.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.cli-chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.cli-prompt { font-family: var(--mono); font-size: 13px; }
.cli-options { gap: 14px; }
.cli-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.cli-check input[type=checkbox] { width: auto; }
.cli-check select { width: auto; padding: 3px 6px; }
.cli-run { min-width: 150px; }
.cli-answer { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.cli-log { max-height: 320px; overflow: auto; margin: 6px 0 0; }
.cli-files { margin: 0; padding-left: 18px; }
.cli-history-text { min-width: 0; flex: 1; }
.cli-oneline { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Gear menu in the nav: pages used less often. */
.nav-more { margin-top: 6px; }
.nav-more > summary { padding: 6px 8px; border-radius: 6px; color: var(--muted); list-style: none; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary:hover { background: var(--panel-2); }
.nav-more-list { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; }
.nav-more-list a { font-size: 13px; }
@media (max-width: 760px) {
  .nav-more { margin-top: 0; }
  .nav-more-list { flex-direction: row; flex-wrap: wrap; padding-left: 0; }
}

/* Home summary rows */
.home-row { border-bottom: 1px solid var(--line); padding-bottom: 8px; min-width: 0; }
.home-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* CLI presets, variables and advanced options */
.cli-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cli-preset-actions { gap: 6px; flex-wrap: wrap; }
.cli-vars { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cli-var { display: flex; flex-direction: column; gap: 4px; }
.cli-var.wide { grid-column: 1 / -1; }
.cli-var textarea { font-family: var(--mono); font-size: 13px; }
.cli-filled summary { margin-bottom: 6px; }
.cli-num { width: 80px; padding: 3px 6px; }
.cli-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cli-advanced h3 { margin: 6px 0 0; font-size: 13px; }
.cli-advanced > summary { color: var(--text); }
.cli-options { flex-wrap: wrap; }
