/* Spin Lab: studio layout and art colors (art.js reads the --sl-* variables, so light and dark both work).
   Class names .core / .core-scene / .core-run / .core-revise / [data-field] are what e2e.mjs drives. */
:root {
  --sl-wall1: #e7eef2; --sl-wall2: #d3dfe5; --sl-panelwall: #b9cad3; --sl-floor1: #c99b68; --sl-floor2: #9c6f42; --sl-plank: #7a5330;
  --sl-ice1: #f3fbff; --sl-ice2: #cfe6f2; --sl-scratch: #a9c9da; --sl-stands: #6f8796; --sl-crowd: #3f5563; --sl-boards: #f7f7f2;
  --sl-banner: #245e76; --sl-panel: #ffffff; --sl-panelline: #9fb4bf; --sl-chip: #ffffff; --sl-ink: #172c3a; --sl-shadow: rgba(23, 44, 58, .22);
  --sl-axis: #5b7280; --sl-ghost: #b15e19; --sl-arrow: #245e76; --sl-mark: #f0b429; --sl-blade: #5d6973;
  --sl-bar1: #245e76; --sl-bar2: #9cc3d4;
}
html[data-theme="dark"] {
  --sl-wall1: #1d2a33; --sl-wall2: #16222a; --sl-panelwall: #2b3c47; --sl-floor1: #5d4630; --sl-floor2: #3e2e1f; --sl-plank: #2a1f15;
  --sl-ice1: #2a3c48; --sl-ice2: #1c2b35; --sl-scratch: #3e5869; --sl-stands: #24323b; --sl-crowd: #3b4d59; --sl-boards: #c9cfd2;
  --sl-banner: #2f7a99; --sl-panel: #13202a; --sl-panelline: #3b5260; --sl-chip: #13202a; --sl-ink: #e6eef2; --sl-shadow: rgba(0, 0, 0, .4);
  --sl-axis: #8aa3b1; --sl-ghost: #f0a35a; --sl-arrow: #7cc4dc; --sl-mark: #f0b429; --sl-blade: #b7c2ca;
  --sl-bar1: #7cc4dc; --sl-bar2: #2f5566;
}

.core { height: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 16px; padding: 16px; overflow: auto;
  color: var(--tlg-ink, #172c3a); font-size: 16px; box-sizing: border-box; }
.core * { box-sizing: border-box; }
.core-bench, .core-panel { min-width: 0; padding: 16px; background: var(--tlg-surface, #fff); border: 1px solid var(--tlg-border, #afc0c9); border-radius: 16px; overflow: auto; }
.core-panel { display: flex; flex-direction: column; gap: 12px; }
.core-scene { overflow: auto; border-radius: 12px; border: 1px solid var(--tlg-border, #afc0c9); background: var(--sl-wall2); }
.core-scene svg { display: block; width: 100%; min-width: 460px; height: auto; color: var(--sl-ink); }
.core-scene .sl-t { font-size: 22px; fill: var(--sl-ink); font-family: inherit; }
.core-scene .sl-b { font-weight: 700; }
.core-scene .sl-u { font-size: 22px; fill: var(--sl-ink); opacity: .85; }
.core-scene .sl-banner { fill: #ffffff; font-weight: 700; letter-spacing: .06em; }
.core-observation { min-height: 3em; line-height: 1.5; font-weight: 700; margin: 12px 0 8px; padding: 10px 12px; border-radius: 10px;
  background: var(--tlg-bg, #edf4f6); border-left: 5px solid #245e76; }
.sl-h { font-size: 18px; margin: 4px 0 6px; }
.core-evidence { padding: 4px 12px 8px; border: 1px dashed var(--tlg-border, #afc0c9); border-radius: 10px; }
.core-evidence p, .core-about p { line-height: 1.5; margin: 6px 0; }
.core-about summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; }

.sl-step { border: 1px solid var(--tlg-border, #afc0c9); border-radius: 12px; padding: 10px 14px 4px; margin: 0; }
.sl-step legend { font-weight: 800; font-size: 18px; padding: 0 6px; color: #245e76; }
html[data-theme="dark"] .sl-step legend { color: #7cc4dc; }
.core-field { display: grid; gap: 6px; margin: 0 0 12px; font-weight: 600; }
.core-field input, .core-field select, .core button { font: inherit; font-size: 16px; min-height: 44px; border-radius: 8px; border: 1px solid var(--tlg-border, #afc0c9);
  padding: 10px; background: var(--tlg-bg, #edf4f6); color: inherit; max-width: 100%; width: 100%; }
.core-field input:disabled, .core-field select:disabled { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(36, 94, 118, .08) 6px 12px), var(--tlg-bg, #edf4f6); }
.sl-dial { display: grid; grid-template-columns: minmax(0, 1fr) 7.5em; gap: 10px; align-items: center; }
.core-field input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: #245e76; min-height: 44px; }
.sl-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.core button { font-weight: 700; margin: 0; cursor: pointer; }
.core-run { background: #245e76 !important; color: #fff !important; border-color: #245e76 !important; }
.core button:disabled { opacity: .55; cursor: default; }
.core :focus-visible { outline: 3px solid #dd9823; outline-offset: 3px; }
.core-status { line-height: 1.4; margin: 0; }
.sl.is-tested .core-observation { border-left-color: #dd9823; }

/* shell text that renders under 16 px elsewhere (see the Immune Defense shell request) */
body .ps-kicker, body .ps-hint-note, body .ps-badge { font-size: 16px; }

@media (max-width: 900px) {
  .core { height: auto; grid-template-columns: 1fr; padding: 12px; }
  .core-bench, .core-panel { overflow: visible; padding: 12px; }
  .core-panel { padding-bottom: 30px; }
}
@media (max-width: 420px) { .sl-go { grid-template-columns: 1fr; } .sl-dial { grid-template-columns: minmax(0, 1fr) 6.5em; } }
@media (prefers-reduced-motion: reduce) { .core * { animation: none !important; transition: none !important; } }
