@charset "UTF-8";
/* ==========================================================================
   How System One Models Work dependency-free stylesheet.

   Every selector is namespaced under .s1-root and every class is prefixed
   "s1-", so this cannot leak into a host site. The palette is the one the
   rest of the playground uses. Pink is this demo's lit colour: it is the
   colour of a decision. Blue is the state being read; the three question
   types each keep one accent so they can be told apart at a glance.
   ========================================================================== */

.s1-root {
  /* ---- palette ---- */
  --s1-panel: #0e1115;
  --s1-surface: #141720;
  --s1-border: rgba(255, 255, 255, 0.08);
  --s1-border-strong: rgba(255, 255, 255, 0.16);

  --s1-text: #e8e4d9;
  --s1-dim: rgba(232, 228, 217, 0.62);
  --s1-faint: rgba(232, 228, 217, 0.38);

  --s1-lit: #f472b6;
  --s1-lit-hi: #f9a8d4;
  --s1-data: #4d9ee8;
  --s1-choice: #f472b6;
  --s1-score: #fbbf24;
  --s1-noul: #2dd4bf;
  --s1-slow: #a78bfa;

  /* ---- geometry ---- */
  --s1-radius: 14px;
  --s1-radius-sm: 8px;

  --s1-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --s1-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  color: var(--s1-text);
  font-family: var(--s1-font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}

.s1-root *,
.s1-root *::before,
.s1-root *::after {
  box-sizing: border-box;
}

/* :where keeps this reset at zero specificity, so every button class below
   sets its own size without having to out-rank it. */
:where(.s1-root) button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

:where(.s1-root) button:disabled {
  cursor: default;
  opacity: 0.45;
}

.s1-root [hidden] {
  display: none !important;
}

.s1-root code {
  font-family: var(--s1-mono);
}

/* ==========================================================================
   Panel
   ========================================================================== */

.s1-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 400px at 50% -10%, rgba(244, 114, 182, 0.09), transparent 70%),
    radial-gradient(900px 520px at 100% 100%, rgba(77, 158, 232, 0.07), transparent 70%),
    var(--s1-panel);
  border: 1px solid var(--s1-border);
  border-radius: var(--s1-radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.s1-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 40%, transparent 100%);
}

.s1-panel > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */

.s1-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 16px;
  border-bottom: 1px solid var(--s1-border);
}

.s1-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--s1-lit);
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.16);
}

.s1-root.is-running .s1-dot {
  animation: s1-pulse 1.1s ease-in-out infinite;
}

@keyframes s1-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(244, 114, 182, 0.05); }
}

.s1-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.s1-title-sub {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--s1-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 620px) {
  .s1-title-sub { display: none; }
}

.s1-spacer {
  flex: 1;
}

.s1-seg {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--s1-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}

.s1-seg.is-small {
  display: inline-flex;
  margin-bottom: 8px;
}

.s1-seg-btn {
  padding: 4px 11px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--s1-dim);
  border-radius: 999px;
  transition: color 0.16s, background 0.16s;
}

.s1-seg-btn:hover { color: var(--s1-text); }

.s1-seg-btn.is-active {
  color: #2a0718;
  background: var(--s1-lit);
}

/* ==========================================================================
   Body layout
   ========================================================================== */

.s1-body {
  display: grid;
  grid-template-columns: 1fr;
}

.s1-main {
  min-width: 0;
  padding: 14px 16px 18px;
}

.s1-side {
  min-width: 0;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--s1-border);
}

@media (min-width: 1000px) {
  .s1-body {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .s1-side {
    border-top: 0;
    border-left: 1px solid var(--s1-border);
  }
}

.s1-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--s1-faint);
}

.s1-label-note {
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--s1-data-hi, #9fd0ff);
}

.s1-gap {
  margin-top: 22px;
  margin-bottom: 8px;
}

.s1-note {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--s1-faint);
}

.s1-faint {
  color: var(--s1-faint);
}

.s1-block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 8px;
}

.s1-block-head + .s1-questions,
.s1-block-head + .s1-state {
  margin-top: 0;
}

.s1-state + .s1-block-head {
  margin-top: 18px;
}

/* ==========================================================================
   The state
   ========================================================================== */

.s1-state {
  display: block;
  width: 100%;
  resize: vertical;
  padding: 11px 13px;
  font-family: var(--s1-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--s1-text);
  border: 1px solid rgba(77, 158, 232, 0.28);
  border-radius: var(--s1-radius-sm);
  background: rgba(77, 158, 232, 0.05);
  outline: none;
  transition: border-color 0.16s, background 0.16s;
}

.s1-state:focus {
  border-color: rgba(77, 158, 232, 0.6);
  background: rgba(77, 158, 232, 0.08);
}

/* ==========================================================================
   The questions
   ========================================================================== */

.s1-questions,
.s1-answers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 720px) {
  .s1-questions,
  .s1-answers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.s1-q,
.s1-ans {
  min-width: 0;
  padding: 11px 12px 12px;
  border: 1px solid var(--s1-border);
  border-radius: var(--s1-radius-sm);
  background: rgba(0, 0, 0, 0.22);
}

.s1-q-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.s1-type {
  padding: 2px 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid currentColor;
}

.s1-type.is-choice { color: var(--s1-choice); background: rgba(244, 114, 182, 0.08); }
.s1-type.is-score { color: var(--s1-score); background: rgba(251, 191, 36, 0.08); }
.s1-type.is-noul { color: var(--s1-noul); background: rgba(45, 212, 191, 0.08); }

.s1-key {
  font-size: 11px;
  color: var(--s1-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s1-q-text {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 9px;
}

.s1-q-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.s1-chip {
  padding: 2px 7px;
  font-size: 11px;
  color: var(--s1-dim);
  border: 1px solid var(--s1-border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  white-space: nowrap;
}

.s1-chip b {
  font-family: var(--s1-mono);
  font-weight: 600;
  color: var(--s1-score);
}

.s1-range-line {
  flex: 1;
  min-width: 24px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.15), rgba(45, 212, 191, 0.75));
}

.s1-q-note {
  margin-top: 9px;
  font-size: 11px;
  color: var(--s1-faint);
}

/* ==========================================================================
   Toolbar
   ========================================================================== */

.s1-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.s1-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--s1-dim);
  border: 1px solid var(--s1-border);
  border-radius: var(--s1-radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.16s, border-color 0.16s, background 0.16s, transform 0.1s;
}

.s1-btn:hover:not(:disabled) {
  color: var(--s1-text);
  border-color: var(--s1-border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.s1-btn:active:not(:disabled) { transform: translateY(1px); }

.s1-btn.is-primary,
.s1-btn.is-race {
  color: #2a0718;
  background: var(--s1-lit);
  border-color: transparent;
  font-weight: 600;
  min-width: 96px;
}

.s1-btn.is-primary:hover:not(:disabled),
.s1-btn.is-race:hover:not(:disabled) {
  color: #2a0718;
  background: var(--s1-lit-hi);
}

.s1-btn.is-race {
  margin: 10px 0 14px;
}

.s1-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--s1-dim);
  cursor: pointer;
  user-select: none;
}

.s1-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.s1-toggle-track {
  position: relative;
  width: 28px;
  height: 16px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.16s;
}

.s1-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--s1-text);
  transition: transform 0.16s;
}

.s1-toggle input:checked + .s1-toggle-track { background: var(--s1-slow); }
.s1-toggle input:checked + .s1-toggle-track::after { transform: translateX(12px); }
.s1-toggle input:focus-visible + .s1-toggle-track { outline: 2px solid var(--s1-lit); outline-offset: 2px; }

.s1-latency {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--s1-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--s1-lit-hi);
  border: 1px solid rgba(244, 114, 182, 0.4);
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.07);
  font-variant-numeric: tabular-nums;
}

.s1-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: s1-blink 1.1s ease-in-out infinite;
}

@keyframes s1-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ==========================================================================
   Steps
   ========================================================================== */

.s1-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.s1-step {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  min-width: 0;
  padding: 7px 9px;
  font-size: 11.5px;
  color: var(--s1-faint);
  border: 1px solid var(--s1-border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.s1-step-n {
  font-family: var(--s1-mono);
  font-size: 10.5px;
  font-weight: 700;
}

.s1-step-a {
  font-weight: 600;
}

.s1-step-b {
  font-size: 10.5px;
}

@media (max-width: 640px) {
  .s1-step-b { display: none; }
}

.s1-step.is-done {
  color: var(--s1-dim);
}

.s1-step.is-on {
  color: var(--s1-lit-hi);
  border-color: rgba(244, 114, 182, 0.45);
  background: rgba(244, 114, 182, 0.08);
}

/* ==========================================================================
   Stage: tokens and the one pass
   ========================================================================== */

.s1-stage {
  padding: 12px 12px 6px;
  border: 1px solid var(--s1-border);
  border-radius: var(--s1-radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.014), transparent 40%),
    rgba(0, 0, 0, 0.28);
}

.s1-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  min-height: 24px;
}

.s1-tok {
  padding: 1px 6px;
  font-family: var(--s1-mono);
  font-size: 10.5px;
  line-height: 1.7;
  color: #9fd0ff;
  border: 1px solid rgba(77, 158, 232, 0.3);
  border-radius: 4px;
  background: rgba(77, 158, 232, 0.1);
  opacity: 0.35;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: var(--d, 0ms);
}

.s1-tok.is-more {
  color: var(--s1-faint);
  border-style: dashed;
  background: transparent;
}

.s1-root:not([data-phase="0"]) .s1-tok {
  opacity: 1;
}

.s1-root[data-phase="1"] .s1-tok {
  transform: translateY(-1px);
}

/* Capped so the labels inside stay at reading size on a wide screen. */
.s1-net {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 8px auto 0;
  overflow: visible;
}

.s1-enc {
  fill: rgba(77, 158, 232, 0.035);
  stroke: rgba(77, 158, 232, 0.25);
  stroke-width: 1;
  transition: fill 0.4s, stroke 0.4s;
}

.s1-enc-label {
  font: 600 9.5px var(--s1-font);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--s1-faint);
}

.s1-in line {
  stroke: #4d9ee8;
  stroke-opacity: 0.12;
  stroke-width: 1;
  stroke-dasharray: 2 3;
  transition: stroke-opacity 0.4s;
}

.s1-attn line {
  stroke: #4d9ee8;
  stroke-width: 0.7;
  stroke-opacity: 0.03;
  transition: stroke-opacity 0.6s ease;
}

.s1-nodes circle {
  fill: #4d9ee8;
  fill-opacity: 0.35;
  transition: fill-opacity 0.35s ease, fill 0.35s ease;
  transition-delay: var(--d, 0ms);
}

.s1-pool-in line {
  stroke: #f472b6;
  stroke-opacity: 0.05;
  stroke-width: 0.8;
  transition: stroke-opacity 0.4s;
}

.s1-pool rect {
  fill: #f472b6;
  fill-opacity: 0.08;
  transition: fill-opacity 0.4s ease;
}

.s1-head-wire {
  fill: none;
  stroke: #f472b6;
  stroke-width: 1.4;
  stroke-opacity: 0.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s ease;
}

.s1-head rect {
  fill: rgba(0, 0, 0, 0.35);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
  transition: fill 0.3s, stroke 0.3s;
}

.s1-head text {
  font: 600 10.5px var(--s1-mono);
  fill: var(--s1-faint);
  transition: fill 0.3s;
}

/* Phase 1: tokens in. */
.s1-root:not([data-phase="0"]) .s1-in line { stroke-opacity: 0.4; }

/* Phase 2 on: the encoder is read in one go, every connection lit together. */
.s1-root[data-phase="2"] .s1-attn line,
.s1-root[data-phase="3"] .s1-attn line,
.s1-root[data-phase="4"] .s1-attn line {
  stroke-opacity: var(--o);
}

.s1-root[data-phase="2"] .s1-enc {
  fill: rgba(77, 158, 232, 0.08);
  stroke: rgba(77, 158, 232, 0.5);
}

.s1-root[data-phase="2"] .s1-nodes circle,
.s1-root[data-phase="3"] .s1-nodes circle,
.s1-root[data-phase="4"] .s1-nodes circle {
  fill-opacity: 0.95;
  fill: #9fd0ff;
}

.s1-root[data-phase="3"] .s1-pool-in line,
.s1-root[data-phase="4"] .s1-pool-in line {
  stroke-opacity: 0.32;
}

.s1-root[data-phase="3"] .s1-pool rect,
.s1-root[data-phase="4"] .s1-pool rect {
  fill-opacity: var(--o);
}

/* Phase 3 on: three heads, wired at the same instant. */
.s1-root[data-phase="3"] .s1-head-wire,
.s1-root[data-phase="4"] .s1-head-wire {
  stroke-dashoffset: 0;
}

.s1-root[data-phase="3"] .s1-head rect,
.s1-root[data-phase="4"] .s1-head rect {
  fill: rgba(244, 114, 182, 0.1);
  stroke: rgba(244, 114, 182, 0.6);
}

.s1-root[data-phase="3"] .s1-head text,
.s1-root[data-phase="4"] .s1-head text {
  fill: var(--s1-lit-hi);
}

.s1-caption {
  min-height: 3.2em;
  margin: 10px 2px 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--s1-dim);
}

.s1-caption strong {
  color: var(--s1-text);
  font-weight: 600;
}

/* ==========================================================================
   Answers
   ========================================================================== */

.s1-ans {
  display: flex;
  flex-direction: column;
  border-color: rgba(244, 114, 182, 0.22);
  animation: s1-in 0.4s ease both;
}

.s1-ans.is-empty {
  border-color: var(--s1-border);
  border-style: dashed;
  animation: none;
}

@keyframes s1-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.s1-ans-empty {
  padding: 26px 0;
  font-size: 12px;
  text-align: center;
  color: var(--s1-faint);
}

.s1-ans-big {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.s1-ans-of {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--s1-faint);
}

.s1-ans-foot {
  margin-top: auto;
  padding-top: 10px;
  font-size: 11px;
  color: var(--s1-faint);
}

.s1-ans-foot b {
  font-family: var(--s1-mono);
  color: var(--s1-text);
}

/* choice */
.s1-rows {
  display: grid;
  gap: 5px;
}

.s1-row {
  display: grid;
  grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) 3em;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--s1-dim);
}

.s1-row-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s1-row-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.s1-row-fill {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 4px;
  background: rgba(244, 114, 182, 0.4);
  animation: s1-grow-w 0.6s ease both;
}

.s1-row.is-best {
  color: var(--s1-text);
}

.s1-row.is-best .s1-row-fill {
  background: var(--s1-choice);
}

.s1-row-val {
  font-family: var(--s1-mono);
  font-size: 11px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@keyframes s1-grow-w {
  from { width: 0; }
}

/* score */
.s1-scale {
  position: relative;
}

.s1-lvs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.s1-lv {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 2px;
}

.s1-lv-bar {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 52px;
}

.s1-lv-bar span {
  display: block;
  width: 100%;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: rgba(251, 191, 36, 0.3);
  animation: s1-grow-h 0.6s ease both;
}

.s1-lv.is-near .s1-lv-bar span {
  background: var(--s1-score);
}

@keyframes s1-grow-h {
  from { height: 0; }
}

.s1-lv-n {
  font-family: var(--s1-mono);
  font-size: 10.5px;
  color: var(--s1-dim);
}

.s1-lv-word {
  width: 100%;
  font-size: 9.5px;
  line-height: 1.2;
  text-align: center;
  color: var(--s1-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* The expected level, which can sit between two bars. The axis runs from the
   centre of the first bar to the centre of the last, laid over the bars. */
.s1-scale-axis {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 52px;
  pointer-events: none;
}

.s1-scale-mark {
  position: absolute;
  top: -2px;
  bottom: 0;
  left: var(--x);
  width: 2px;
  border-radius: 1px;
  background: var(--s1-text);
  box-shadow: 0 0 8px rgba(232, 228, 217, 0.4);
  transform: translateX(-1px);
}

.s1-scale-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--s1-text);
}

/* noul */
.s1-gauge {
  margin-top: 6px;
}

.s1-gauge-track {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 95, 109, 0.35), rgba(255, 255, 255, 0.08) 50%, rgba(45, 212, 191, 0.55));
}

.s1-gauge-mid {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.s1-gauge-mark {
  position: absolute;
  top: 50%;
  left: var(--x);
  width: 16px;
  height: 16px;
  border: 2px solid var(--s1-panel);
  border-radius: 50%;
  background: var(--s1-text);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(232, 228, 217, 0.2);
  animation: s1-slide 0.6s ease both;
}

@keyframes s1-slide {
  from { left: 50%; }
}

.s1-gauge-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 10px;
  color: var(--s1-faint);
}

/* ==========================================================================
   Side: the race and the call
   ========================================================================== */

.s1-lane {
  margin-bottom: 12px;
}

.s1-lane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
  font-size: 12px;
}

.s1-lane-name {
  font-weight: 600;
  color: var(--s1-dim);
}

.s1-lane-name.is-fast {
  color: var(--s1-lit-hi);
}

.s1-lane-clock {
  font-family: var(--s1-mono);
  font-size: 11.5px;
  color: var(--s1-text);
  font-variant-numeric: tabular-nums;
}

.s1-lane-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.s1-lane-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: rgba(232, 228, 217, 0.5);
}

.s1-lane-fill.is-fast {
  background: var(--s1-lit);
}

.s1-lane-out {
  min-height: 62px;
  max-height: 128px;
  overflow-y: auto;
  margin-top: 7px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--s1-dim);
  border: 1px solid var(--s1-border);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  scrollbar-width: thin;
}

.s1-lane-out.is-text {
  font-family: var(--s1-mono);
  font-size: 11px;
}

.s1-lane-kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
}

.s1-lane-kv code {
  color: var(--s1-faint);
  font-size: 11px;
}

.s1-lane-kv b {
  font-family: var(--s1-mono);
  font-weight: 600;
  color: var(--s1-text);
  text-align: right;
}

.s1-race-note {
  margin: 4px 0 0;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--s1-dim);
  border-left: 2px solid var(--s1-lit);
  background: rgba(244, 114, 182, 0.06);
  border-radius: 0 6px 6px 0;
}

.s1-race-note b {
  color: var(--s1-text);
  font-family: var(--s1-mono);
}

.s1-json {
  margin: 0;
  max-height: 340px;
  overflow: auto;
  padding: 10px 12px;
  font-family: var(--s1-mono);
  font-size: 11px;
  line-height: 1.55;
  color: #f9d0e6;
  white-space: pre;
  border: 1px solid rgba(244, 114, 182, 0.25);
  border-radius: var(--s1-radius-sm);
  background: rgba(244, 114, 182, 0.04);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* ==========================================================================
   Credit
   ========================================================================== */

.s1-credit {
  padding: 10px 16px 12px;
  font-size: 11px;
  color: var(--s1-faint);
  border-top: 1px solid var(--s1-border);
}

@media (prefers-reduced-motion: reduce) {
  .s1-root *,
  .s1-root *::before,
  .s1-root *::after {
    animation: none !important;
    transition: none !important;
  }
}
