:root {
  color-scheme: dark;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 13px;
  background-color: #1b1d23;
  color: #e5e7eb;
}

body {
  margin: 0;
  background: #121318;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 16px;
}

.workbench {
  width: 100%;
  max-width: 960px;
  background: #1b1d23;
  border: 1px solid #2a2d35;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 32px);
  min-height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.tab-bar {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 2px;
  background: #15161c;
  padding: 6px;
  border-bottom: 1px solid #2a2d35;
}

.workbench-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px;
  background: #16171d;
  border-bottom: 1px solid #2a2d35;
}

.toolbar-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  font-size: 12px;
  color: #9ea3b6;
}

.toolbar-seed-value {
  font-variant-numeric: tabular-nums;
  color: #e5e7eb;
  font-weight: 600;
}

.toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.toolbar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd0df;
  cursor: pointer;
  user-select: none;
}

.toolbar-toggle input {
  margin: 0;
}

.tab {
  flex: 1;
  background: #1f2128;
  color: #cbd0df;
  border: none;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab.json-tab,
.tab.fixtures-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-right: 12px;
}

.tab.json-tab .tab-badge,
.tab.fixtures-tab .tab-badge {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.65);
}

.tab.json-tab .tab-badge.tab-badge--ok {
  background: #22c55e;
  opacity: 1;
}

.tab.json-tab .tab-badge.tab-badge--err {
  background: #ef4444;
  opacity: 1;
}

.tab.fixtures-tab .tab-badge.tab-badge--notice {
  background: #38bdf8;
  opacity: 1;
}

.tab:hover {
  background: #272a33;
  color: #ffffff;
}

.tab.active {
  background: #3a3f4f;
  color: #ffffff;
}

.root-tab {
  opacity: 0.7;
}

.root-tab--active {
  background: #3a3f4f;
  color: #ffffff;
  opacity: 1;
}

.tab-content {
  position: relative;
  z-index: 0;
  padding: 12px;
  background: #181a21;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.tab-panel {
  display: none;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel.active {
  display: block;
}

.root-panel.is-hidden {
  display: none;
}

.tab-panel:focus-visible,
.tab-panel-title:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 4px;
}

.tab-panel-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.tab-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.tab-panel-title-row .tab-panel-title {
  margin: 0;
}

.purity-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5f5;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  line-height: 1.2;
  white-space: nowrap;
}

.purity-pill--ok {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.purity-pill--error {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

.tab-bar.nested {
  background: #1c1e25;
  padding: 4px;
  border: 1px solid #2a2d35;
  border-radius: 6px;
}

.tab-bar.nested.subtle {
  background: #181a21;
  border-color: #2f323c;
}

.tab-content.nested {
  padding: 12px;
  background: #1c1e25;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  margin-top: 10px;
}

.tab-content.nested.inset {
  background: #15171d;
  border-color: #2f323c;
}

.tab-content.nested.inset .tab-panel {
  padding: 8px 4px;
}

.tab-content.nested.inset .tab-panel p {
  margin: 0;
}

.config-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
[data-config="class-tabs"],
[data-calendar="variant-tabs"],
[data-rig-tabs] {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 9999px;
  border: 1px solid #2a2d35;
  background: #181a21;
  flex-wrap: wrap;
}

[data-config="class-tabs"] {
  background: #1c1e25;
}

[data-rig-tabs] {
  background: #15171d;
  border-color: #2f323c;
}

[data-config="class-tabs"] .tab,
[data-calendar="variant-tabs"] .tab,
[data-rig-tabs] .tab {
  flex: 0 0 auto;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

[data-config="class-tabs"] .tab,
[data-calendar="variant-tabs"] .tab {
  background: #1f2128;
}

[data-config="class-tabs"] .tab.active,
[data-calendar="variant-tabs"] .tab.active,
[data-rig-tabs] .tab.active {
  background: #3a3f4f;
}

[data-class-panel][hidden],
.config-variant-panel[hidden] {
  display: none;
}

.config-class-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.config-variant-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.config-variant-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-common-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.config-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.config-field-label {
  font-size: 12px;
  color: #cbd0df;
  letter-spacing: 0.01em;
}

.config-control {
  background: #1f2128;
  border: 1px solid #2a2d35;
  border-radius: 4px;
  color: #e5e7eb;
  font-size: 12px;
  padding: 6px 8px;
  min-height: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.config-control:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.config-control:disabled {
  opacity: 0.6;
}

.config-field-seed .seed-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seed-buttons {
  display: inline-flex;
  gap: 4px;
}

.mini-button {
  background: #2a2d35;
  border: 1px solid #353843;
  border-radius: 4px;
  color: #d0d5e2;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.01em;
  padding: 4px 8px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mini-button:hover {
  background: #353843;
  color: #ffffff;
}

.mini-button:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

.mini-button.accent {
  background: #3a3f4f;
  border-color: #4b5164;
  color: #f8fafc;
}

.config-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.config-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #d0d5e2;
}

.config-toggle input[type='checkbox'] {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
}

.config-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.4;
}

.config-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.config-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  background: #16171d;
  border: 1px solid #2a2d35;
  border-radius: 8px;
}

.config-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1f2128;
  border: 1px solid #2a2d35;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  color: #d0d5e2;
  letter-spacing: 0.01em;
}


[data-rig-tabs][hidden] {
  display: none;
}

.config-panel-content {
  display: none;
  flex-direction: column;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}

.config-panel-content.active {
  display: flex;
}

.tab-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-copy {
  color: #cbd0df;
  font-size: 12px;
  line-height: 1.6;
}

.config-actions {
  display: flex;
  gap: 10px;
}

.primary-action,
.secondary-action {
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-action {
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  border-color: rgba(255, 255, 255, 0.12);
  color: #0f172a;
  box-shadow: 0 10px 22px rgba(34, 211, 238, 0.25);
}

.secondary-action {
  background: #1f2128;
  border-color: #2a2d35;
  color: #cbd0df;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.primary-action:active,
.secondary-action:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
}

.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

#panel-visuals {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#panel-visuals.tab-panel.active {
  display: flex;
  flex-direction: column;
}

#panel-visuals .tab-panel-title {
  flex-shrink: 0;
}

#visuals-container {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.3));
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.visuals-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.visuals-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.visuals-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.visuals-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.visuals-controls-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  flex: 0 0 auto;
}

.visuals-run-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.visuals-run-meta[hidden] {
  display: none;
}

.visuals-run-meta__label {
  font-variant-numeric: tabular-nums;
}

.visuals-canvas-block {
  flex: 1;
  min-height: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-height: 96px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 4px 4px 0;
}

.visuals-history-panel {
  width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.visuals-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.visuals-history-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.visuals-history-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.75);
}

.visuals-history-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
}

.visuals-history-summary[hidden] {
  display: none;
}

.visuals-history-summary__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #e2e8f0;
}

.visuals-history-summary__meta {
  margin: 0;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.75);
}

.visuals-history-summary__grid {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.visuals-history-summary__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.visuals-history-summary__term {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.85);
}

.visuals-history-summary__value {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
}

.batch-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.batch-controls,
.batch-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.batch-controls__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batch-results__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.batch-purity-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.4);
}

.batch-purity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-purity-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.batch-purity-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.batch-purity-status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.9);
}

.batch-purity-toggle {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
}

.batch-purity-toggle:hover:not(:disabled) {
  background: rgba(71, 85, 105, 0.6);
  color: #ffffff;
}

.batch-purity-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.45);
  color: rgba(226, 232, 240, 0.6);
}

.batch-purity-subheader {
  margin: 0;
  font-size: 13px;
  color: rgba(226, 232, 240, 0.9);
}

.batch-purity-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.85);
}

.batch-purity-narrative {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.75);
}

.batch-purity-narrative p {
  margin: 0;
}

.batch-controls__heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.batch-controls__heading-row .purity-pill {
  margin-left: auto;
}

.batch-results__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.batch-results__legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.45);
}

.batch-results__legend-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
}

.batch-results__legend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-results__legend-empty {
  margin: 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.8);
}

.batch-legend__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 12px 4px 10px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease;
}

.batch-legend__chip:hover {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(30, 41, 59, 0.7);
}

.batch-legend__chip.is-active {
  background: rgba(79, 70, 229, 0.7);
  border-color: rgba(99, 102, 241, 0.9);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.35);
}

.batch-legend__swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--legend-swatch-color, #6366f1);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.65);
}

.batch-legend__label {
  white-space: nowrap;
}

.batch-controls__title,
.batch-results__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.batch-controls__summary {
  font-size: 12px;
  color: rgba(203, 213, 225, 0.75);
}

.batch-controls__body {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.batch-controls__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.batch-size-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.batch-controls__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.85);
}

.batch-size-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.batch-size-button {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease;
}

.batch-size-button:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(148, 163, 184, 0.4);
}

.batch-size-button.is-active {
  background: rgba(79, 70, 229, 0.55);
  border-color: rgba(148, 163, 184, 0.45);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
  color: #ffffff;
}

.batch-size-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.batch-run-button {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.78), rgba(56, 189, 248, 0.78));
  color: #0f172a;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 10px 18px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.batch-run-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

.batch-run-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.batch-fit-button {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

.batch-fit-button:hover:not(:disabled) {
  background: rgba(79, 70, 229, 0.65);
  border-color: rgba(148, 163, 184, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.3);
}

.batch-fit-button.is-active {
  background: rgba(79, 70, 229, 0.75);
  border-color: rgba(148, 163, 184, 0.45);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.35);
}

.batch-fit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.batch-mode-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.batch-mode-button {
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5f5;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.batch-mode-button.is-active {
  background: rgba(79, 70, 229, 0.55);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.batch-mode-button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.batch-results__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.batch-results__visualization {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-right: 4px;
}

.batch-results__visualization--fit {
  overflow-y: hidden;
}

.batch-results__stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.batch-results__stack--fit {
  gap: 0;
}

.batch-results__row {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.batch-results__row--fit {
  gap: 8px;
  align-items: stretch;
  overflow: hidden;
}

.batch-results__row--fit .batch-results__label {
  display: none;
}

.batch-results__row--fit .batch-results__bar {
  display: flex;
  align-items: stretch;
  min-height: 0;
}

.batch-results__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.batch-results__run {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.batch-results__duration {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.batch-results__bar {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.batch-results__track {
  display: flex;
  align-items: stretch;
  width: calc(var(--batch-row-scale, 1) * 100%);
  max-width: 100%;
  min-height: 20px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.55);
  transition: width 0.18s ease;
  box-sizing: border-box;
}

.batch-results__track--fit {
  min-height: 0;
  height: 100%;
  border-radius: 6px;
  border-width: 0;
}

.batch-results__track--fit .batch-results__segment-label {
  display: none;
}

.batch-results__segment {
  cursor: default;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.batch-results__segment:hover {
  transform: none;
}

.batch-results__segment--dimmed {
  opacity: 0.25;
  filter: saturate(0.2);
}

.batch-results__segment--highlighted {
  opacity: 1;
  filter: saturate(1.05);
}

.batch-results__visualization--highlighting .batch-results__track {
  opacity: 0.95;
}

.batch-results__segment-label {
  font-size: 11px;
  letter-spacing: 0.02em;
}

.batch-results__empty {
  margin: 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.85);
}

.visuals-history-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-y: auto;
}

.visuals-history-empty {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  color: rgba(203, 213, 225, 0.85);
  font-size: 13px;
  text-align: center;
}

.visuals-history-item {
  list-style: none;
}

.visuals-history-entry {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.55);
  color: inherit;
  font: inherit;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.visuals-history-entry:hover {
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(30, 64, 175, 0.4);
}

.visuals-history-entry:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

.visuals-history-entry.is-active {
  border-color: rgba(56, 189, 248, 0.85);
  background: rgba(14, 116, 144, 0.45);
  box-shadow: inset 3px 0 0 rgba(56, 189, 248, 0.9);
}

.visuals-history-entry__headline {
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
}

.visuals-history-entry__meta {
  font-size: 12px;
  color: rgba(203, 213, 225, 0.9);
  line-height: 1.4;
}

.console-pane {
  display: grid;
  gap: 12px;
}

.console-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #1f2128;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  padding: 12px;
}

.console-runtime-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.console-select {
  min-width: 180px;
  background: #16171d;
  color: #e5e7eb;
  border: 1px solid #2a2d35;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 13px;
}

.console-load-button {
  background: #2b2f3b;
  color: #d0d5e2;
  border: 1px solid #3a3f4f;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.console-load-button:hover {
  background: #3a3f4f;
  color: #ffffff;
}

.console-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.console-field-label {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ba3b6;
}

.console-textarea {
  width: 100%;
  min-height: 120px;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #e5e7eb;
  background: #16171d;
  border: 1px solid #2a2d35;
  border-radius: 4px;
  padding: 10px;
  resize: vertical;
  box-sizing: border-box;
}

.console-textarea--script {
  min-height: 220px;
}

.console-textarea--json {
  min-height: 160px;
}

.console-field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.console-actions {
  display: flex;
  justify-content: flex-end;
}

.console-run-button {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.console-run-button:hover:enabled {
  background: #2563eb;
}

.console-run-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.console-meta {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: #9ba3b6;
  word-break: break-word;
  margin-top: 4px;
}

.console-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #1f2128;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  padding: 12px;
}

.console-stream-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ba3b6;
}

.console-output {
  min-height: 120px;
  max-height: 220px;
  overflow-y: auto;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #e5e7eb;
  background: #16171d;
  border: 1px solid #2a2d35;
  border-radius: 4px;
  padding: 10px;
  resize: vertical;
  box-sizing: border-box;
  white-space: pre-wrap;
}

.console-structured {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #1f2128;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  padding: 12px;
}

.console-structured-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.console-structured-summary {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #e5e7eb;
  word-break: break-word;
}

.console-structured-copy {
  background: #2b2f3b;
  color: #d0d5e2;
  border: 1px solid #3a3f4f;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.console-structured-copy:hover:enabled {
  background: #3a3f4f;
  color: #ffffff;
}

.console-structured-copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.console-structured-details {
  border: 1px solid #2a2d35;
  border-radius: 4px;
  background: #16171d;
}

.console-structured-details[hidden] {
  display: none;
}

.visuals-mount {
  position: relative;
  z-index: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.visuals-fallback-panel {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  padding: 24px;
  background: rgba(15, 23, 42, 0.4);
}

.visuals-fallback-panel__image {
  max-width: 100%;
  max-height: 380px;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.45);
}

.visuals-fallback-panel__message {
  margin: 0;
  margin-top: 12px;
  color: #cbd5f5;
  font-size: 14px;
  text-align: center;
}

.visuals-status-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(2px);
  z-index: 5;
}

.visuals-status-overlay[hidden] {
  display: none;
}

.visuals-status-overlay__spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(226, 232, 240, 0.3);
  border-top-color: #38bdf8;
  animation: visuals-spinner 0.85s linear infinite;
  display: none;
}

.visuals-status-overlay.is-loading .visuals-status-overlay__spinner {
  display: block;
}

.visuals-status-overlay__text {
  max-width: 320px;
  font-size: 15px;
  line-height: 1.4;
}

@keyframes visuals-spinner {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.radial-urchin-root {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #f8fafc;
  font-family: 'Inter', 'SF Pro Text', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  flex: 1;
  min-height: 0;
}

.radial-urchin {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.radial-urchin__controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.38);
}

.radial-urchin__header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.radial-urchin__meta-slot {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.radial-urchin__meta-slot[hidden] {
  display: none;
}

.radial-urchin__segmented {
  display: inline-flex;
  align-items: center;
  background: rgba(100, 116, 139, 0.22);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.radial-urchin__segment {
  border: none;
  background: transparent;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.radial-urchin__segment.is-active {
  background: rgba(129, 140, 248, 0.24);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.6);
}

.radial-urchin__segment:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.8);
  outline-offset: 2px;
}

.radial-urchin__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  align-items: flex-start;
}

.radial-urchin__share {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.32);
}

.activity-share__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5f5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.activity-share__title {
  color: #e2e8f0;
}

.activity-share__total {
  font-size: 11px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.85);
}

.activity-share__track {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  min-height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25);
}

.activity-share__track.is-interactive {
  cursor: pointer;
}

.activity-share__track.is-interactive:focus-visible {
  outline: 2px solid rgba(129, 140, 248, 0.65);
  outline-offset: 2px;
}

.activity-share__segment {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px 8px;
  min-width: 6px;
  background: var(--segment-color, #6366f1);
  color: var(--segment-text-color, #0f172a);
  transition: transform 0.18s ease;
  cursor: pointer;
}

.activity-share__segment:hover {
  transform: translateY(-1px);
}

.activity-share__segment-label {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
  white-space: nowrap;
}

.activity-share__empty {
  margin: 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.85);
}

.activity-share__hint {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.activity-share__tooltip {
  position: absolute;
  transform: translate(-50%, -100%) translateY(-12px);
  background: rgba(15, 23, 42, 0.92);
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  pointer-events: none;
  color: #f8fafc;
  z-index: 2;
}

.activity-share__tooltip strong {
  font-size: 13px;
  font-weight: 700;
  color: #e0e7ff;
}

.activity-share__tooltip span {
  display: block;
  color: rgba(226, 232, 240, 0.92);
}

.activity-share__track[hidden] {
  display: none;
}

.activity-share__tooltip[hidden] {
  display: none;
}

.activity-balance-history {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.28);
  min-height: 0;
}

.activity-balance-history[hidden] {
  display: none;
}

.activity-balance-history__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.activity-balance-history__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.activity-balance-history__hint {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.activity-balance-history__stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  overflow: hidden;
}

.activity-balance-history--dense .activity-balance-history__stack {
  gap: 1px;
}

.activity-balance-history__stack[hidden] {
  display: none;
}

.activity-balance-history__row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex: 1 1 0%;
  min-height: 8px;
}

.activity-balance-history--dense .activity-balance-history__row {
  gap: 0;
  min-height: 2px;
}

.activity-balance-history__run-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 100px;
  flex: 0 0 auto;
}

.activity-balance-history__run {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(203, 213, 225, 0.85);
}

.activity-balance-history__run-meta {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.65);
}

.activity-balance-history__run-meta[hidden] {
  display: none;
}

.activity-balance-history__bar {
  flex: 1;
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.1);
  min-height: 0;
}

.activity-balance-history--dense .activity-balance-history__bar {
  border-radius: 6px;
}

.activity-balance-history__bar--dense {
  border: none;
  background: none;
  gap: 0;
}

.activity-balance-history__segment {
  padding: 0;
  align-items: center;
  justify-content: center;
  min-width: 3px;
  transition: none;
}

.activity-balance-history__segment:hover {
  transform: none;
}

.activity-balance-history__segment--dense {
  margin: 0;
  border: none;
  box-shadow: none;
  outline: none;
}

.activity-balance-history__segment-label {
  font-size: 10px;
  font-weight: 600;
  padding: 0 6px;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}

.activity-balance-history--dense .activity-balance-history__segment-label {
  display: none;
}

.activity-balance-history__empty {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.4);
  color: rgba(203, 213, 225, 0.82);
  font-size: 12px;
  text-align: center;
}

.activity-balance-history__empty[hidden] {
  display: none;
}

.activity-balance-history__tooltip {
  position: absolute;
  transform: translate(-50%, -100%) translateY(-12px);
  background: rgba(15, 23, 42, 0.92);
  border-radius: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  pointer-events: none;
  color: #f8fafc;
  z-index: 3;
}

.activity-balance-history__tooltip strong {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5f5;
}

.activity-balance-history__tooltip span {
  display: block;
  color: rgba(226, 232, 240, 0.92);
}

.activity-balance-history__tooltip .meta {
  font-size: 10px;
  color: rgba(148, 163, 184, 0.7);
  text-transform: none;
}

.activity-balance-history__tooltip[hidden] {
  display: none;
}

.radial-urchin__legend-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  width: 100%;
}

.radial-urchin__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(148, 163, 184, 0.16);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #e2e8f0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25);
  transition: background 0.18s ease, border 0.18s ease;
}

.radial-urchin__chip input[type='checkbox'] {
  accent-color: var(--chip-color, #6366f1);
}

.radial-urchin__chip:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.32);
}

.radial-urchin__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  width: 100%;
}

.radial-urchin__icon-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(129, 140, 248, 0.24);
  color: #ede9fe;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.35);
}

.radial-urchin__icon-button:hover {
  transform: translateY(-1px);
}

.radial-urchin__icon-button.is-active {
  background: rgba(79, 70, 229, 0.48);
}

.radial-urchin__speed {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  background: rgba(51, 65, 85, 0.65);
  border-radius: 999px;
  padding: 4px;
}

.radial-urchin__speed-option {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: #cbd5f5;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.radial-urchin__speed-option.is-active {
  background: rgba(79, 70, 229, 0.55);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.32);
}

.radial-urchin__scrub {
  appearance: none;
  flex: 1 1 160px;
  min-width: 160px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.65), rgba(34, 211, 238, 0.65));
}

.radial-urchin__scrub::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  cursor: pointer;
}

.radial-urchin__scrub::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  border: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
  cursor: pointer;
}

.radial-urchin__reset,
.radial-urchin__export {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(30, 41, 59, 0.9);
  color: #e2e8f0;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.radial-urchin__reset:hover,
.radial-urchin__export:hover {
  background: rgba(59, 130, 246, 0.65);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.radial-urchin__stage {
  position: relative;
  flex: 1;
  min-height: 360px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(148, 163, 184, 0.15), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
  transition: flex-basis 0.24s ease, min-height 0.24s ease;
}

.radial-urchin--history-open .radial-urchin__stage,
.radial-urchin__stage--tray {
  flex: 0 0 120px;
  min-height: 120px;
}

.radial-urchin__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.radial-urchin__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.radial-urchin__selection {
  fill: rgba(56, 189, 248, 0.18);
  stroke: rgba(56, 189, 248, 0.85);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.55));
}

.radial-urchin__hover {
  fill: rgba(99, 102, 241, 0.14);
  stroke: rgba(129, 140, 248, 0.8);
  stroke-width: 1;
}

.radial-urchin__scrub-line {
  stroke: rgba(14, 165, 233, 0.9);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

.radial-urchin__tooltip {
  position: absolute;
  max-width: 220px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.radial-urchin__tooltip p {
  margin: 0;
  font-size: 13px;
  color: #e2e8f0;
}

.radial-urchin__tooltip p strong {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
}

.radial-urchin__tooltip p + p {
  margin-top: 4px;
}

.radial-urchin__tooltip p .meta {
  color: #94a3b8;
  font-size: 12px;
}

.radial-urchin__tooltip-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  pointer-events: auto;
}

.radial-urchin__tooltip-actions button {
  border: none;
  border-radius: 999px;
  background: rgba(129, 140, 248, 0.35);
  color: #f8fafc;
  font-size: 12px;
  padding: 6px 12px;
}

.radial-urchin__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.console-structured-details > summary {
  cursor: pointer;
  padding: 8px 12px;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.console-structured-details > summary::marker {
  color: #64748b;
}

.console-structured-table {
  padding: 8px 12px 12px;
  overflow-x: auto;
}

.console-structured-table-grid {
  width: 100%;
  border-collapse: collapse;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: #e5e7eb;
}

.console-structured-table-grid th {
  text-align: left;
  font-weight: 600;
  color: #cbd0df;
  border-bottom: 1px solid #2a2d35;
  padding: 6px 8px;
}

.console-structured-table-grid td {
  padding: 6px 8px;
  border-top: 1px solid #2a2d35;
  vertical-align: top;
  word-break: break-word;
}

.console-structured-syspath {
  list-style: none;
  margin: 0;
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: #cbd0df;
}

.console-structured-syspath li {
  word-break: break-word;
}

.tab-panel[data-tab="config"] {
  display: none;
}

.tab-panel.active[data-tab="config"] {
  display: block;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.accordion-item {
  background: #1f2128;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  color: #cbd0df;
  border: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-header:hover {
  background: #242731;
  color: #ffffff;
}

.accordion-header:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 2px;
}

.accordion-title {
  flex: 1;
}

.accordion-arrow {
  display: inline-block;
  font-size: 12px;
  color: #9095a5;
  transition: transform 0.2s ease, color 0.2s ease;
}

.accordion-header:hover .accordion-arrow {
  color: #ffffff;
}

.accordion-item.open .accordion-header {
  background: #272a33;
  color: #ffffff;
}

.accordion-item.open .accordion-arrow {
  transform: rotate(90deg);
  color: #ffffff;
}

.accordion-content {
  padding: 0 12px 12px;
  border-top: 1px solid #2a2d35;
  font-size: 12px;
  color: #aeb3c2;
}

.accordion-content p {
  margin: 12px 0 0;
}

.command-palette-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 11, 16, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  padding: 24px;
}

.command-palette-overlay.open {
  display: flex;
}

.command-palette {
  width: min(360px, 100%);
  background: #1b1d23;
  border: 1px solid #2a2d35;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.command-palette-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #f3f4f6;
}

.command-palette-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.command-palette-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #20232b;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #d2d6e3;
  font-size: 13px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.command-palette-action:hover,
.command-palette-action:focus-visible {
  background: #2a2d35;
  color: #ffffff;
  border-color: #3f4557;
  outline: none;
}

.command-palette-action[disabled],
.command-palette-action[aria-disabled='true'] {
  cursor: not-allowed;
  background: #191b22;
  color: #6e7385;
  border-color: #23252d;
}

.command-palette-action[disabled]:hover,
.command-palette-action[disabled]:focus-visible {
  background: #191b22;
  color: #6e7385;
  border-color: #23252d;
}

.json-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.json-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.json-summary {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.json-summary[hidden] {
  display: none;
}

.json-actions {
  display: flex;
  gap: 8px;
}

.json-button {
  background: #2b2f3b;
  color: #d0d5e2;
  border: 1px solid #3a3f4f;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.json-button:hover:enabled {
  background: #3a3f4f;
  color: #ffffff;
}

.json-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.json-output {
  margin: 0;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  background: #16171d;
  color: #e5e7eb;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  padding: 14px;
  min-height: 240px;
  overflow: auto;
}

.fixtures-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fixtures-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fixtures-actions button {
  background: #2b2f3b;
  color: #80879b;
  border: 1px solid #343945;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fixtures-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fixtures-actions button:hover:enabled {
  background: #343945;
  color: #e5e7eb;
}

.run-history-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.run-history-heading {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd0df;
}

.run-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.run-history-item {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  background: #1a1c23;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  padding: 10px 12px;
}

.run-history-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.run-history-label {
  font-size: 12px;
  font-weight: 600;
  color: #e5e7eb;
  word-break: break-word;
}

.run-history-meta {
  font-size: 11px;
  color: #94a3b8;
  word-break: break-word;
}

.run-history-actions {
  display: flex;
  gap: 6px;
}

.run-history-button {
  background: #2b2f3b;
  color: #d0d5e2;
  border: 1px solid #3a3f4f;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.run-history-button:hover {
  background: #3a3f4f;
  color: #ffffff;
}

.run-history-button--danger {
  background: #3a1f23;
  border-color: #4b2f34;
  color: #fda29b;
}

.run-history-button--danger:hover {
  background: #4c2b2f;
  color: #ffffff;
}

.run-history-empty {
  margin: 0;
  padding: 12px;
  background: #1a1c23;
  border: 1px dashed #2a2d35;
  border-radius: 6px;
  font-size: 12px;
  color: #8188a0;
  text-align: center;
}

.logs-pane {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.logs-history {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logs-history .visuals-history-panel {
  max-width: none;
}

.logs-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.logs-toolbar {
  display: flex;
  justify-content: flex-end;
}

.logs-clear {
  background: #2b2f3b;
  color: #d0d5e2;
  border: 1px solid #3a3f4f;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.logs-clear:hover {
  background: #3a3f4f;
  color: #ffffff;
}

.logs-output {
  min-height: 260px;
  background: #16171d;
  border: 1px solid #2a2d35;
  border-radius: 6px;
  padding: 14px;
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: #b9bfd2;
  line-height: 1.5;
  overflow-y: auto;
}
