@font-face {
  font-family: "Rajdhani";
  font-weight: 500;
  src: url("/static/fonts/rajdhani-500.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-weight: 600;
  src: url("/static/fonts/rajdhani-600.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-weight: 700;
  src: url("/static/fonts/rajdhani-700.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 400;
  src: url("/static/fonts/jbmono-400.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 700;
  src: url("/static/fonts/jbmono-700.woff2") format("woff2");
}

/* Canonical values live in ui/src/tokens.ts; applyTokens() re-affirms them
   on :root at boot. These declarations are the pre-boot / no-JS fallback —
   keep them in sync with tokens.ts. */
:root {
  --void: #07090D;
  --panel: #0D1220;
  --panel-hi: #111A30;
  --grid-line: #1B2438;
  --grid-line-hi: #2A3A5C;
  --signal: #21E6C1;
  --flux: #FF3E8A;
  --warn: #FFB13D;
  --crit: #FF4747;
  --dim: #5A6B8C;
  --fg: #C8D6F0;
  --fg-bright: #E8EDF6;
  --pin-0: #7EC8FF;
  --pin-1: #FFB13D;
  --pin-2: #C77EFF;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 14px;
  --space-lg: 20px;
  --space-xl: 28px;
  --font-display: "Rajdhani", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --t-fast: 140ms;
  --t-base: 240ms;
  --t-slow: 340ms;
  --t-breathe: 6000ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--void);
  color: var(--fg);
  font-family: var(--font-display);
  overflow-x: hidden;
}

.hidden { display: none !important; }
.signal { color: var(--signal); }
.warn { color: var(--warn); }
.crit { color: var(--crit); }
.dim { color: var(--dim); }
.record { color: var(--flux); }

/* ── global header ─────────────────────────────────────────────────── */

.global-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--grid-line);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 40;
}

.gh-left { display: flex; align-items: center; gap: 18px; }

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 4px;
  color: var(--signal);
}

.mode-tabs { display: flex; gap: 2px; }

.mode-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--dim);
  background: none;
  border: 1px solid var(--grid-line);
  padding: 4px 14px;
  cursor: pointer;
}
.mode-tab.active { color: var(--signal); border-color: var(--signal); }

.gh-center { display: flex; gap: 28px; }
/* fixed slots: live numbers must not push their neighbors around */
.gh-stat { display: flex; flex-direction: column; align-items: flex-end; min-width: 84px; }
.gh-units, .gh-jobs {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 18px;
}

.gh-right { display: flex; align-items: center; gap: 16px; }
.gh-clock {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.streak-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--signal);
  border: 1px solid var(--signal);
  padding: 2px 8px;
}
.streak-badge.shattered {
  color: var(--crit);
  border-color: var(--crit);
  animation: shatter 0.5s steps(4);
}
@keyframes shatter {
  25% { transform: translate(-3px, 2px) rotate(-2deg); }
  50% { transform: translate(3px, -1px) rotate(1.5deg); }
  75% { transform: translate(-2px, -2px); }
}

.record-ticker {
  position: absolute;
  left: 0; right: 0; top: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--flux);
  background: var(--panel);
  border-bottom: 1px solid var(--flux);
  padding: 4px;
  animation: ticker-shimmer 1s linear;
}
@keyframes ticker-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.8); }
}

/* ── ingest layout: job wall + docked log rail ─────────────────────── */

.ingest-wrap {
  display: flex;
  align-items: flex-start;
}
.ingest-wrap > .masonry {
  flex: 1;
  min-width: 0;
}

/* collapsed = the live card exactly as it was, minus the cell grid;
   it keeps its slot in the wall, just shorter */
.job-panel.collapsed { animation: none; }
.job-panel.collapsed .grid-wrap { display: none; }

.fold-btn, .remove-btn { flex-shrink: 0; padding: 1px 6px; }
.remove-btn:hover, .clear-btn:hover { color: var(--crit); border-color: var(--crit); }

.log-rail {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 62px;
  height: calc(100vh - 76px);
  margin: 14px 14px 0 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--grid-line);
}

.log-filter { flex: 1; min-width: 0; }
/* the rail hugs the right screen edge: anchor its menu right, not left */
.log-filter .gr-select-menu { left: auto; right: 0; }

.log-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--dim);
  background: rgba(0, 0, 0, 0.25);
  /* never truncate: lines wrap with hard breaks at the window edge */
  white-space: pre-wrap;
  word-break: break-all;
}
.log-stream::-webkit-scrollbar { width: 4px; }
.log-stream::-webkit-scrollbar-thumb { background: var(--grid-line); }

.log-tag { color: #5A6B8C; }
.log-ts { color: #3D4A66; }

/* live-feed entrance: each new line rises in, slightly staggered */
.log-line { display: block; }
.log-new { animation: log-in 0.32s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
@keyframes log-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .log-new { animation: none; }
}

.log-burger {
  display: none;
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  padding: 8px 14px;
  background: var(--panel);
}
.log-close { display: none; }

@media (max-width: 900px) {
  .log-rail {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    height: auto;
    width: min(340px, 86vw);
    margin: 0;
    z-index: 70;
    transform: translateX(105%);
    transition: transform 0.25s ease;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.5);
  }
  .log-rail.open { transform: none; }
  .log-burger { display: block; }
  .log-close { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .log-rail { transition: none; }
}

/* ── dashboard layout (widgets.createDashLayout) ───────────────────── */
/* the canonical view shape: overview strip on top of the main column
   (headline numbers never pushed off-screen by content), content blocks
   below, a sticky full-height log rail docked right; stacks to a single
   column on narrow screens. INGEST predates the helper and keeps its
   bespoke .log-rail (burger overlay on mobile). */

.gr-dash {
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.gr-dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gr-dash-rail {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: 62px;
  height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
}
.gr-dash-rail > .panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .gr-dash { padding: 10px; gap: 10px; flex-direction: column; align-items: stretch; }
  .gr-dash-main { gap: 10px; }
  .gr-dash-rail { position: static; width: auto; height: auto; }
}

/* ── masonry & panels ──────────────────────────────────────────────── */

.masonry {
  display: grid;
  /* min card width keeps readouts + time range legible; on screens
     narrower than the minimum, cards take the full viewport instead */
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  grid-auto-flow: dense;
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.job-panel {
  animation: breathe var(--t-breathe) ease-in-out infinite;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--grid-line);
  position: relative;
  animation: breathe var(--t-breathe) ease-in-out infinite;
}
/* a faint CRT wash: top vignette over every panel including the WebGL
   canvases, so the whole surface reads as a live display */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    radial-gradient(130% 130% at 50% 0%, transparent 62%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0.3;
}
.panel:hover {
  box-shadow: 0 0 0 1px var(--grid-line-hi), 0 0 26px rgba(33, 230, 193, 0.07);
}
/* settled = at rest, not disabled: stop the breathing, barely dim */
.panel.settled { animation: none; opacity: 0.96; }

/* failed / partial / abandoned cards carry no border accent: the state
   reads from the progress, ETA, and status values in their designated color */
.job-panel.failed, .job-panel.partial, .job-panel.abandoned { animation: none; }
.job-panel.abandoned { opacity: 0.85; }

@keyframes breathe {
  0%, 100% { border-color: var(--grid-line); }
  50% { border-color: var(--grid-line-hi); }
}

/* ── shared fx (driven by anim.ts) ─────────────────────────────────── */

.panel-body { min-width: 0; }

/* entrance: a scanline wipe with a brief horizontal jitter */
.fx-glitch-in { animation: fx-glitch-in var(--t-slow) cubic-bezier(0.2, 1, 0.3, 1); }
@keyframes fx-glitch-in {
  0% { opacity: 0; transform: translateY(-8px); clip-path: inset(0 0 100% 0); }
  45% { opacity: 1; clip-path: inset(0 0 0 0); }
  60% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
  100% { transform: none; }
}

/* a card joining the wall: rises and scales into its grid slot; the
   compound selector outranks .job-panel.collapsed's animation: none */
.fx-grid-in, .panel.fx-grid-in { animation: fx-grid-in 0.36s cubic-bezier(0.2, 1, 0.3, 1); }
@keyframes fx-grid-in {
  from { opacity: 0; transform: scale(0.94) translateY(10px); }
  to { opacity: 1; transform: none; }
}

.fx-flash { animation: fx-flash 0.4s ease-out; }
@keyframes fx-flash {
  0% { filter: brightness(2.1); }
  100% { filter: brightness(1); }
}

.fx-pulse { animation: fx-pulse 0.45s ease-out; }
@keyframes fx-pulse {
  0%, 100% { transform: scale(1); }
  35% { transform: scale(1.04); }
}

.fx-glow {
  box-shadow: 0 0 0 1px var(--signal), 0 0 18px rgba(33, 230, 193, 0.25);
  border-color: var(--signal) !important;
}

/* a light band sweeping across a surface (records, settles) */
.fx-sweep { position: relative; overflow: hidden; }
.fx-sweep::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg, transparent 42%, rgba(33, 230, 193, 0.18) 50%, transparent 58%);
  transform: translateX(-120%);
  animation: fx-sweep 0.8s ease-out;
  pointer-events: none;
}
@keyframes fx-sweep { to { transform: translateX(120%); } }

@media (prefers-reduced-motion: reduce) {
  .fx-glitch-in, .fx-grid-in, .panel.fx-grid-in, .fx-flash, .fx-pulse,
  .fx-sweep::after { animation: none; }
}

/* a new card holds its grid slot invisibly while the wall shifts around
   it; the reveal wipe (fx-glitch-in) follows once neighbours settle */
.panel.pre-enter { opacity: 0; }

/* ── full-screen glitch effects (glitch.ts: ambient scheduler + lab) ── */

/* BLOCKS: solid color macroblocks flickering over the live frame
   (color set inline per block) */
.fx-blocks {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  overflow: hidden;
}
.fx-block { position: absolute; }

/* the effect-picker panel; stays clickable above the overlays */
.glitch-lab {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(190px, calc(100vw - 24px));
  padding: 10px;
  background: var(--void);
  border: 1px solid var(--grid-line);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}
.glitch-lab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  text-transform: uppercase;
}
.glitch-lab-btn {
  padding: 6px 8px;
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  .fx-blocks { display: none; }
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-bottom: 1px solid var(--grid-line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--dim);
  text-transform: uppercase;
}
.hdr-mode { color: var(--signal); white-space: nowrap; }
/* per-card status badge: empty while running, DONE / FAILED after */
.hdr-status { white-space: nowrap; letter-spacing: 2px; }
.hdr-status:empty { display: none; }
/* the job id truncates first; the time range must never overflow */
.hdr-job {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hdr-clock {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.job-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px 0;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 1px;
}

.job-title-label {
  flex-shrink: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* the host badge is secondary: it truncates first, the label never moves */
.job-host {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--dim);
}

.readouts {
  display: flex;
  gap: 20px;
  padding: 6px 12px 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* predetermined slots so changing digits never bounce the row */
.readout-pct { min-width: 152px; }
.readout-eta { min-width: 132px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--dim);
}

.value-xl {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.value-xl.crit { color: var(--crit); }
.value-xl.warn { color: var(--warn); }

.value-lg {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

/* value + secondary annotation on one baseline; the annotation gives way
   (truncates) before the value ever does */
.readout-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.readout-suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.readout-suffix:empty { display: none; }

/* ── cell grid ─────────────────────────────────────────────────────── */

.grid-wrap {
  position: relative;
  margin: 0 12px;
  line-height: 0;
}

.cell-canvas { display: block; width: 100%; }

.gl-fallback {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crit);
  font-family: var(--font-mono);
}

/* ── inspector tooltip ─────────────────────────────────────────────── */

.inspector {
  position: fixed;
  z-index: 300;
  background: var(--void);
  border: 1px solid var(--signal);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  padding: 8px 12px;
  white-space: pre;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(33, 230, 193, 0.15);
}

.mono-note { font-family: var(--font-mono); font-size: 10px; }

/* ── SIMULATE view ─────────────────────────────────────────────────── */

.sim-view {
  padding: 14px;
  display: grid;
  grid-template-columns: 280px minmax(420px, 1fr) 400px;
  gap: 14px;
  align-items: start;
}
@media (max-width: 1280px) {
  .sim-view { grid-template-columns: 280px 1fr; }
  .sim-side { grid-column: 1 / -1; }
}

.rack-body { padding: 10px 12px; }

.lever-block { margin-bottom: 14px; }
.lever-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.lever-name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--fg);
}
.lever-name.dim-sub { color: var(--dim); font-size: 10px; }
.lever-bounds {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
}
.lever-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.lever-slider {
  flex: 1;
  appearance: none;
  height: 3px;
  background: var(--grid-line);
  outline: none;
}
.lever-slider::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--signal);
  border: none;
  cursor: ew-resize;
}
.lever-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal);
  min-width: 52px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.curve-editor {
  width: 100%;
  height: 56px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--grid-line);
  margin-top: 4px;
}
.curve-path {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
}
.curve-dot {
  fill: var(--signal);
  cursor: ns-resize;
}

.heat-strip {
  display: flex;
  height: 4px;
  margin-top: 3px;
}
.heat-strip span {
  flex: 1;
  background: var(--flux);
}

.seed-btn {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--signal);
  background: none;
  border: 1px solid var(--signal);
  padding: 8px;
  cursor: pointer;
  margin: 8px 0 16px;
}
.seed-btn:hover { background: rgba(33, 230, 193, 0.08); }

.exo-head { margin: 10px 0 6px; }
.exo-block { margin-bottom: 10px; opacity: 0.55; }
.exo-spark {
  width: 100%;
  height: 32px;
  display: block;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--grid-line);
  margin-top: 2px;
}
.exo-path {
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.2;
}

/* ── trajectory theater ────────────────────────────────────────────── */

.theater { min-height: 300px; }

.odometer-block {
  padding: 10px 14px 6px;
  display: flex;
  flex-direction: column;
}
.odometer { color: var(--signal); }
.odometer.crit { color: var(--crit); }
.odo-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--dim);
  margin-top: 2px;
}

.theater-stack {
  position: relative;
  margin: 6px 12px 12px;
}
.theater-canvas { display: block; width: 100%; }
.theater-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.chart-header {
  position: absolute;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--grid-line);
  padding-top: 2px;
}
.chart-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
}
.chart-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.chart-value.crit { color: var(--crit); }

/* ── frontier map ──────────────────────────────────────────────────── */


.frontier-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 4px;
}

.axis-select { max-width: 150px; }
.axis-select .gr-select-btn { color: var(--signal); }

.frontier-wrap {
  position: relative;
  margin: 4px 12px 12px;
}
.frontier-canvas { display: block; width: 100%; }

.axis-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--dim);
  pointer-events: none;
}
.axis-x { bottom: 4px; right: 8px; }
.axis-y { top: 4px; left: 8px; }

.anomaly-line {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--warn);
  border-top: 1px solid var(--grid-line);
  padding: 6px 12px;
}

/* ── shared small buttons ──────────────────────────────────────────── */

.gr-btn {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--dim);
  background: none;
  border: 1px solid var(--grid-line);
  padding: 2px 8px;
  cursor: pointer;
}
.gr-btn:hover { color: var(--signal); border-color: var(--signal); }
.gr-btn.active { color: var(--signal); border-color: var(--signal); }

/* ── confirm dialog ────────────────────────────────────────────────── */

.gr-btn.danger:hover { color: var(--crit); border-color: var(--crit); }

.gr-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(2px);
  animation: modal-fade 0.14s ease-out;
}
.gr-modal-overlay.closing {
  animation: modal-fade 0.12s ease-in reverse forwards;
  pointer-events: none;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gr-modal {
  width: min(440px, 100%);
  margin: auto 0;
  background: var(--panel);
  border: 1px solid var(--grid-line);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  padding: 14px 16px 16px;
  animation: modal-pop 0.16s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.gr-modal-overlay.closing .gr-modal { animation: none; }

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.gr-modal-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--warn);
  border-bottom: 1px solid var(--grid-line);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.gr-modal-message {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--fg);
  word-break: break-word;
  margin-bottom: 14px;
}

.gr-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.gr-modal-actions .gr-btn { padding: 5px 14px; }

.gr-modal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--grid-line);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.gr-modal-head .gr-modal-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.gr-modal-close { flex-shrink: 0; padding: 1px 6px; font-size: 9px; }
.gr-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.producer-token-modal { width: min(520px, 100%); }

.producer-token-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}

.producer-token-input {
  min-width: 0;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--signal);
  background: var(--void);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 11px;
  outline: none;
}

.producer-token-status {
  min-height: 17px;
  margin-bottom: 8px;
  color: var(--warn);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
}

.producer-mint-btn { color: var(--signal); border-color: var(--signal); }
.producer-copy-btn { padding-inline: 14px; }

.admin-panel { width: min(640px, 100%); max-height: min(80vh, 640px); display: flex; flex-direction: column; }

.admin-step { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }

.admin-step-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
}

.admin-scope-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 8px;
}

.admin-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--grid-line);
  background: var(--void);
  color: var(--dim);
  font-family: var(--font-mono);
  text-align: left;
  cursor: pointer;
}
.admin-chip:hover { border-color: var(--dim); }
.admin-chip.active { border-color: var(--signal); color: var(--signal); }
.admin-chip-name { font-size: 11px; letter-spacing: 1.5px; }
.admin-chip-desc { font-size: 9px; letter-spacing: 0.5px; opacity: 0.7; }

.admin-step-actions { display: flex; gap: 8px; justify-content: flex-end; }
.admin-step-summary { display: flex; flex-wrap: wrap; gap: 6px; min-height: 17px; }

.admin-label-input {
  min-width: 0;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--grid-line);
  background: var(--void);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
}
.admin-label-input:focus { outline: none; border-color: var(--signal); }

.admin-token-list {
  flex: 1;
  min-height: 60px;
  overflow-y: auto;
  border: 1px solid var(--grid-line);
  margin-bottom: 12px;
}

.admin-token-empty {
  padding: 16px 10px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--dim);
}

.admin-token-row { padding: 8px 10px; border-bottom: 1px solid var(--grid-line); }
.admin-token-row:last-child { border-bottom: none; }

.admin-token-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.admin-token-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}

.admin-token-scope {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 2px 6px;
  border: 1px solid var(--grid-line);
  color: var(--dim);
}
.admin-token-scope.scope-produce { color: var(--signal); border-color: var(--signal); }
.admin-token-scope.scope-admin { color: var(--warn); border-color: var(--warn); }
.admin-token-scope.scope-consumer { color: var(--flux); border-color: var(--flux); }

.admin-token-locked {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--dim);
}

.admin-revoke-btn { color: var(--crit); border-color: currentColor; padding: 3px 10px; }

.admin-token-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.5px;
  color: var(--dim);
}

@media (prefers-reduced-motion: reduce) {
  .gr-modal-overlay, .gr-modal { animation: none; }
}

/* ── custom dropdown ───────────────────────────────────────────────── */

.gr-select { position: relative; }

.gr-select-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--dim);
  background: var(--void);
  border: 1px solid var(--grid-line);
  padding: 3px 6px;
  cursor: pointer;
  text-align: left;
}
.gr-select-btn:hover, .gr-select.open .gr-select-btn {
  color: var(--signal);
  border-color: var(--signal);
}

.gr-select-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gr-select-caret { flex-shrink: 0; }
.gr-select.open .gr-select-caret { transform: scaleY(-1); }

.gr-select-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 100%;
  max-width: min(420px, 80vw);
  max-height: 260px;
  overflow-y: auto;
  z-index: 90;
  background: var(--void);
  border: 1px solid var(--signal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.gr-select-menu::-webkit-scrollbar { width: 4px; }
.gr-select-menu::-webkit-scrollbar-thumb { background: var(--grid-line); }

.gr-select-option {
  display: block;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: var(--dim);
  background: none;
  border: none;
  border-bottom: 1px solid var(--grid-line);
  padding: 5px 8px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gr-select-option:last-child { border-bottom: none; }
.gr-select-option:hover { color: var(--signal); background: rgba(33, 230, 193, 0.08); }
.gr-select-option.selected { color: var(--signal); }
.gr-select-option.selected::before { content: "\25b8  "; }

/* ── compare tray + scrubber ───────────────────────────────────────── */


.scrub-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 6px;
}
.scrubber {
  flex: 1;
  accent-color: var(--signal);
  height: 3px;
}
.scrub-t { color: var(--dim); min-width: 42px; text-align: right; }

.compare-tray { padding: 6px 12px 12px; overflow-x: auto; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 10px;
}
.compare-table th, .compare-table td {
  text-align: right;
  padding: 3px 6px;
  border-bottom: 1px solid var(--grid-line);
  white-space: nowrap;
}
.compare-table td:first-child { text-align: left; }
.compare-table th { text-align: left; vertical-align: top; }
.compare-table .signal { color: var(--signal); }
.pin-chip {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 4px;
}
.pin-name { color: var(--fg-bright); margin-right: 4px; }
.pin-pull, .pin-drop { margin-left: 4px; }

/* ── causal graph ──────────────────────────────────────────────────── */

.graph-wrap { padding: 8px 12px; overflow-x: auto; }
.graph-svg { width: 100%; min-height: 140px; display: block; }

.graph-edge {
  stroke: var(--dim);
  stroke-opacity: 0.25;
}
.graph-node { cursor: pointer; }
.graph-node circle { fill: var(--dim); }
.graph-node.graph-law circle { fill: var(--signal); }
.graph-node.graph-lever circle { fill: var(--flux); }
.graph-node.graph-exogenous circle { fill: var(--warn); opacity: 0.7; }
.graph-node.selected circle { stroke: var(--fg-bright); stroke-width: 1.5px; }
.graph-node text {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.5px;
  fill: var(--dim);
}
.graph-node.selected text, .graph-node:hover text { fill: var(--signal); }

.graph-expr {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--signal);
  border-top: 1px solid var(--grid-line);
  padding: 8px 12px;
  margin: 0;
  white-space: pre-wrap;
}
.graph-expr.dim { color: var(--dim); }

/* ── sim side column ───────────────────────────────────────────────── */

.sim-side { display: flex; flex-direction: column; gap: 14px; }

/* ── admin STATS view ──────────────────────────────────────────────── */

.stats-view {
  padding: 14px;
  display: flex;
  min-height: calc(100dvh - 62px);
}

.stats-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.stats-panel > .panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.stats-list { padding: 4px 0 10px; }
.stats-empty {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dim);
  padding: 14px;
  text-align: center;
}

.stats-type { border-top: 1px solid var(--grid-line); }
.stats-type:first-child { border-top: none; }

.stats-type-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-right: 12px;
}
.stats-type-drop { flex-shrink: 0; align-self: center; }

.stats-type-head {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px 4px;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.stats-type-head:hover .stats-type-id { color: var(--signal); }
.stats-type-id {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-type-summary {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--signal);
  margin-left: auto;
  flex-shrink: 0;
}
.stats-type-fold {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  flex-shrink: 0;
}

.stats-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 2px 14px;
  padding: 2px 12px 10px;
}
.stats-kv {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
}
.stats-k { color: var(--dim); letter-spacing: 1px; text-transform: uppercase; }
.stats-v { color: var(--fg); text-align: right; }

.stats-chunks {
  padding: 0 12px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px dashed var(--grid-line);
}
.stats-chunk-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-family: var(--font-mono);
  font-size: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.stats-chunk-id {
  color: var(--dim);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-chunk-vals { color: var(--fg); flex-shrink: 0; }

/* ── PINGS view ────────────────────────────────────────────────────── */

/* layout comes from .gr-dash (createDashLayout): stats strip on top,
   card grid below, signal log in the right rail */

/* cards stretch to the tallest card of their row — ragged heights look
   broken next to each other */
.pings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 14px;
}

.pings-empty {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--dim);
  padding: 24px 14px;
  text-align: center;
  border: 1px dashed var(--grid-line);
}

/* reusable corner brackets (widgets.cornerBrackets): four L-shapes drawn
   in the host's --cb-color, hugging the corners of a bordered card */
.cb {
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  z-index: 5;
  --cb: var(--cb-color, var(--grid-line-hi));
}
.cb-tl { top: -1px; left: -1px; border-top: 2px solid var(--cb); border-left: 2px solid var(--cb); }
.cb-tr { top: -1px; right: -1px; border-top: 2px solid var(--cb); border-right: 2px solid var(--cb); }
.cb-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--cb); border-left: 2px solid var(--cb); }
.cb-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--cb); border-right: 2px solid var(--cb); }

/* the five states resolve to one accent color per card / row / pill */
.st-online, .st-sync { --ping-accent: var(--signal); }
.st-drift { --ping-accent: var(--flux); }
.st-warn, .st-miss { --ping-accent: var(--warn); }
.st-error, .st-err { --ping-accent: var(--crit); }
.st-offline, .st-lost, .st-learn { --ping-accent: var(--dim); }

.ping-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--grid-line);
  padding: 16px 16px 14px 19px;
  font-family: var(--font-mono);
  transition: transform var(--t-fast) ease, border-color var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
}
.ping-card:hover {
  transform: translateY(-2px);
  border-color: var(--grid-line-hi);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --cb-color: var(--ping-accent);
}
.ping-card.st-offline { opacity: 0.75; }
.ping-card.st-error { border-color: rgba(255, 71, 71, 0.4); }

.ping-strip {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -1px;
  width: 3px;
  background: var(--ping-accent);
  pointer-events: none;
}

.ping-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.ping-card-name {
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-bright);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ping-pill {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 1px 8px;
  border: 1px solid var(--ping-accent);
  color: var(--ping-accent);
}
.ping-remove-btn {
  flex-shrink: 0;
  align-self: center;
  padding: 1px 6px;
  font-size: 9px;
}
.ping-remove-btn:hover { color: var(--crit); border-color: var(--crit); }

.ping-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ping-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 0 3px 8px;
  border-left: 2px solid var(--ping-accent);
  font-size: 11px;
}
.ping-row-type {
  color: var(--fg);
  letter-spacing: 1px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* the deduced cadence ("~1m"); secondary — truncates before the
   type name or the badge/age readouts ever do */
.ping-row-pattern {
  flex: 1;
  color: var(--dim);
  font-size: 10px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ping-row-right {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ping-badge {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ping-accent);
}
.ping-row-age {
  font-size: 11px;
  color: var(--dim);
  min-width: 52px;
  text-align: right;
}
.ping-row-remove {
  padding: 0 5px;
  font-size: 9px;
  opacity: 0.45;
}
.ping-row-remove:hover, .ping-row-remove:focus-visible {
  opacity: 1;
  color: var(--crit);
  border-color: var(--crit);
}

.ping-errors {
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--grid-line);
}
.ping-errors-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.ping-errors-title {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--crit);
}
.ping-clear-btn { padding: 1px 8px; font-size: 9px; }
.ping-clear-btn:hover { color: var(--crit); border-color: var(--crit); }
.ping-error-entry {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0 2px 8px;
  border-left: 2px solid var(--crit);
  font-size: 10px;
}
.ping-error-when {
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ping-error-age { color: var(--dim); flex-shrink: 0; }

/* ── PINGS signal log ──────────────────────────────────────────────── */

.pings-live {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--signal);
}
.pings-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  animation: ping-live-pulse 1.6s ease-in-out infinite;
}
@keyframes ping-live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(33, 230, 193, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 4px rgba(33, 230, 193, 0); }
}

.pings-log-stream {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.25);
}
.pings-log-stream::-webkit-scrollbar { width: 4px; }
.pings-log-stream::-webkit-scrollbar-thumb { background: var(--grid-line); }

.ping-log-line {
  display: block;
  word-break: break-all;
}
.ping-log-line > span { margin-right: 8px; }
.ping-log-line > span:last-child { margin-right: 0; }
.ping-log-new { animation: ping-log-in 0.32s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
@keyframes ping-log-in {
  from { opacity: 0; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
.ping-log-ts { color: #3D4A66; }
.ping-log-service { color: var(--fg); letter-spacing: 1px; text-transform: uppercase; }
.ping-log-type { color: var(--dim); }
.ping-log-status {
  font-size: 9px;
  letter-spacing: 1.5px;
  padding: 0 6px;
  border: 1px solid var(--ping-accent);
  color: var(--ping-accent);
}

/* ── PINGS telemetry stats ─────────────────────────────────────────── */

.pings-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 14px;
}
.pings-stat {
  background: var(--panel);
  border: 1px solid var(--grid-line);
  padding: 12px 10px;
  text-align: center;
}
.pings-stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--fg-bright);
  margin-bottom: 2px;
}
.pings-stat .eyebrow { justify-content: center; display: flex; }

/* ── ALERTS view ───────────────────────────────────────────────────── */
/* cards ride the .ping-card chrome (strip, head, pill, brackets) and the
   stats / log rail reuse the PINGS primitives; only the category groups
   and alert rows are alert-specific */

.alerts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 14px;
}

/* severity accents: info rides the good color, quiet means nothing active */
.st-info { --ping-accent: var(--signal); }
.st-warning { --ping-accent: var(--warn); }
.st-quiet { --ping-accent: var(--dim); }
.alert-card.st-quiet { opacity: 0.8; }

.alert-cat + .alert-cat {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--grid-line);
}
.alert-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.alert-cat-name {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dim);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* severity is the left border color only; the message gets the full width */
.alert-row {
  padding: 3px 0 3px 8px;
  border-left: 2px solid var(--ping-accent);
  font-size: 11px;
}
.alert-row + .alert-row { margin-top: 8px; }
.alert-row.dismissed { opacity: 0.4; }
.alert-msg {
  color: var(--fg);
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.alert-row-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}
.alert-age {
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
}
.alert-ack-btn {
  padding: 0 6px;
  font-size: 9px;
  opacity: 0.6;
}
.alert-ack-btn:hover, .alert-ack-btn:focus-visible { opacity: 1; }

.alert-log-line { word-break: normal; overflow-wrap: anywhere; }
.alert-log-msg { color: var(--fg); }

/* ── ALERTS arrival ceremony ────────────────────────────────────────── */
/* the message types itself out under a block cursor (anim.typeIn) */
.alert-msg.typing::after {
  content: "\258C";
  margin-left: 1px;
  color: var(--ping-accent);
  animation: alert-cursor 0.5s steps(2, jump-none) infinite;
}
@keyframes alert-cursor {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* a throwaway overlay: the card's edge lights up in the alert's color
   while a band of that color sweeps across, then it removes itself */
.alert-flare {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  z-index: 4;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ping-accent),
    0 0 22px color-mix(in srgb, var(--ping-accent) 35%, transparent);
  animation: alert-flare 1.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
.alert-flare::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg, transparent 40%,
    color-mix(in srgb, var(--ping-accent) 22%, transparent) 50%,
    transparent 60%);
  transform: translateX(-120%);
  animation: alert-flare-sweep 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes alert-flare {
  0% { opacity: 0; }
  12% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes alert-flare-sweep {
  to { transform: translateX(120%); }
}

/* the status strip goes hot and settles back */
.alert-strip-flare { animation: alert-strip-flare 1.1s ease-out; }
@keyframes alert-strip-flare {
  0% { width: 3px; filter: brightness(1); }
  15% { width: 7px; filter: brightness(1.8); box-shadow: 0 0 14px var(--ping-accent); }
  100% { width: 3px; filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .alert-msg.typing::after { display: none; }
  .alert-flare, .alert-flare::before, .alert-strip-flare { animation: none; }
  .alert-flare { display: none; }
}

/* ── DISPLAYS view (hardware display consumers) ─────────────────────── */
/* cards ride the .ping-card chrome (strip, head, pill, brackets); only
   the preview panel and the view editor are display-specific */

.displays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 14px;
}

/* the screen at the card's full width in its true aspect ratio: the
   canvas holds the panel's native pixel count, CSS scales it up crisp */
.display-preview {
  position: relative;
  margin-bottom: 12px;
}
.display-canvas {
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  display: block;
  transition: opacity 0.4s ease;
}
.display-preview-empty {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  text-align: center;
  padding: 22px 0;
  background: var(--void);
  border: 1px solid var(--grid-line);
}
.display-preview-empty.hidden { display: none; }
.display-canvas.hidden { display: none; }
/* the panel is off: the (black) frame stays underneath, the word says why */
.display-preview-off {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--dim);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.display-preview-off.on { opacity: 1; }
.display-preview-off.hidden { display: none; }

/* card head: ⏻ and ⚙ take the head's free space, right-aligned; the
   power switch is admin-only, so ⚙ alone still sits at the edge */
.display-card .ping-card-head .display-power-btn {
  flex-shrink: 0;
  align-self: center;
  margin-left: auto;
  min-width: 24px;
  font-size: 11px;
}
.display-config-btn {
  flex-shrink: 0;
  align-self: center;
  padding: 0 6px 1px;
  font-size: 12px;
  line-height: 1;
  margin-left: auto;
}
.display-power-btn:not(.hidden) + .display-config-btn { margin-left: 0; }

/* config modal: screen settings, telemetry, battery history, forget */
.display-config { width: min(480px, 100%); }
.display-config-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.display-config-section-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
}
.display-config-actions { margin-top: 2px; }

/* battery: the stored discharge history as a line, its trend beneath */
.display-battery.hidden { display: none; }
.display-battery-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.display-battery-chart {
  width: 100%;
  height: 72px;
  background: var(--void);
  border: 1px solid var(--grid-line);
}
.display-battery-chart.hidden { display: none; }
.display-battery-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.display-battery-svg * { vector-effect: non-scaling-stroke; }
.display-battery-grid { stroke: var(--grid-line); stroke-width: 1; }
.display-battery-line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  stroke-linejoin: round;
}
circle.display-battery-line { fill: var(--signal); }
.display-battery-projection {
  stroke: var(--signal);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.55;
}
.display-battery-now { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 2 3; }
.display-battery-axis,
.display-battery-legend,
.display-battery-empty {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--dim);
}
.display-battery-axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.display-battery-axis.hidden { display: none; }
.display-battery-axis span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.display-battery-legend { color: var(--fg); font-size: 10px; }
.display-battery-empty { letter-spacing: 2px; text-align: center; padding: 10px 0; }
.display-battery-empty.hidden { display: none; }

/* screen settings: panel power + brightness + FX on one row, the font on
   the next */
.display-screen {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.display-screen-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.display-screen-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--dim);
  flex-shrink: 0;
}
.display-screen-font { flex: 1 1 auto; min-width: 0; }
.display-power-btn.active {
  color: var(--void);
  background: var(--crit);
  border-color: var(--crit);
}
.display-fx-btn {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  padding: 5px 0;
}
.display-fx-btn.active {
  color: var(--void);
  background: var(--signal);
  border-color: var(--signal);
}
.display-brightness { flex: 1 1 auto; min-width: 0; }
.display-brightness .gr-range-value { min-width: 3ch; }
.display-screen-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
}

.display-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.5px;
}
.display-detail-label { color: var(--dim); flex-shrink: 0; }
.display-detail-value {
  color: var(--fg);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-editor {
  border-top: 1px solid var(--grid-line);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.display-editor.hidden { display: none; }
.display-editor-text {
  width: 100%;
  box-sizing: border-box;
  background: var(--void);
  border: 1px solid var(--grid-line);
  color: var(--fg-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px;
  resize: vertical;
  min-height: 54px;
}
.display-editor-text:focus {
  outline: none;
  border-color: var(--signal);
}
.display-editor-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.display-editor-controls .gr-select-btn { font-size: 10px; }
.display-editor-size { flex: 1 1 110px; min-width: 0; max-width: 100%; }
.display-editor-size .gr-range-value { min-width: 4ch; }
.display-editor-auto {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
}
.display-editor-auto.active {
  color: var(--void);
  background: var(--signal);
  border-color: var(--signal);
}
.display-invert-btn.active,
.display-batt-btn.active {
  color: var(--void);
  background: var(--signal);
  border-color: var(--signal);
}
.display-live-btn.active {
  color: var(--void);
  background: var(--warn);
  border-color: var(--warn);
  animation: display-live-pulse 1.2s ease-in-out infinite;
}
@keyframes display-live-pulse {
  50% { opacity: 0.65; }
}
.display-icon-btn {
  font-size: 13px;
  line-height: 1;
  padding: 1px 0 2px;
  min-width: 28px;
  text-align: center;
}
.display-apply-btn:hover { color: var(--signal); border-color: var(--signal); }

/* mirror mode: kind + identity pickers, custom identity fields, and the
   binding tag under a card's head */
.display-mirror { display: flex; flex-direction: column; gap: 8px; }
.display-mirror.hidden { display: none; }
.display-mirror .gr-select { flex: 1 1 140px; min-width: 0; }
.display-mirror-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 8px;
}
.display-mirror-fields.hidden { display: none; }
.display-mirror-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.display-mirror-field-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--dim);
}
.display-mirror-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--void);
  border: 1px solid var(--grid-line);
  color: var(--fg-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 7px;
}
.display-mirror-input:focus { outline: none; border-color: var(--signal); }
.display-mirror-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--signal);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.display-mirror-tag.hidden { display: none; }

/* the "mirror on display" menu on ALERTS / PINGS / INGEST card heads */
.gr-menu { display: inline-flex; flex-shrink: 0; }
.gr-menu.hidden { display: none; }
.gr-menu-btn { padding: 1px 6px 2px; font-size: 12px; line-height: 1; }
.gr-menu.open .gr-menu-btn { color: var(--signal); border-color: var(--signal); }
.gr-menu-list { left: auto; right: 0; min-width: 180px; white-space: nowrap; }
.gr-menu-list .gr-select-option:disabled { cursor: default; color: var(--dim); }
.gr-menu-list .gr-select-option.st-offline { color: var(--dim); opacity: 0.7; }
/* the menu sits by the ✕, never mid-card: it takes the head's free space */
.mirror-pick { margin-left: auto; }
.ping-row-right .mirror-pick, .hdr .mirror-pick { margin-left: 0; }
.mirror-pick .gr-menu-btn { display: inline-flex; align-items: center; gap: 5px; }
.mirror-pick-name {
  font-size: 9px;
  letter-spacing: 1px;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mirror-pick-name.hidden { display: none; }
.gr-menu-btn.active { color: var(--signal); border-color: var(--signal); }
.gr-menu-btn.sent { color: var(--void); background: var(--signal); border-color: var(--signal); }
.gr-menu-btn.failed { color: var(--void); background: var(--crit); border-color: var(--crit); }
.hdr .mirror-pick .gr-menu-btn { font-size: 11px; }
.display-editor-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--warn);
}

/* paint mode: the mode switch, the pixel canvas standing in for the
   preview, and the two tool rows (tools + swatches) */
.display-mode-switch { display: flex; }
.display-mode-switch .gr-btn { padding: 3px 12px; }
.display-mode-switch .gr-btn + .gr-btn { margin-left: -1px; }
.display-mode-switch .gr-btn.active {
  color: var(--void);
  background: var(--signal);
  border-color: var(--signal);
}
.display-paint-stage {
  position: relative;
  line-height: 0;
}
.display-paint-stage.over { outline: 1px solid var(--signal); }
.display-paint-canvas {
  cursor: none;
  touch-action: none;
}
/* brush outline: the exact panel pixels the next dab covers */
.display-paint-cursor {
  position: absolute;
  pointer-events: none;
  box-sizing: border-box;
  border: 1px solid #fff;
  mix-blend-mode: difference;
}
.display-paint-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.display-paint-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.display-paint-gap { width: 6px; }
.display-paint-tools .gr-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.display-paint-tools .gr-btn:disabled:hover {
  color: var(--dim);
  border-color: var(--grid-line);
}
.display-paint-file { display: none; }
.display-paint-size { flex: 1 1 120px; min-width: 120px; }

/* ── color picker ──────────────────────────────────────────────────── */

.gr-color { position: relative; }
.gr-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  font-size: 9px;
  letter-spacing: 1px;
}
.gr-color.open .gr-color-btn { color: var(--signal); border-color: var(--signal); }
.gr-color-chip {
  width: 12px;
  height: 12px;
  border: 1px solid var(--grid-line);
  flex-shrink: 0;
}
.gr-color-menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 90;
  width: 168px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--void);
  border: 1px solid var(--signal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.gr-color-svwrap {
  position: relative;
  width: 168px;
  height: 112px;
  cursor: crosshair;
  touch-action: none;
}
.gr-color-sv { display: block; width: 100%; height: 100%; }
.gr-color-marker {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid var(--fg-bright);
  box-shadow: 0 0 0 1px var(--void);
  pointer-events: none;
}
.gr-color-hex {
  width: 100%;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--grid-line);
  color: var(--fg-bright);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 6px;
}
.gr-color-hex:focus { outline: none; border-color: var(--signal); }

/* ── range slider ──────────────────────────────────────────────────── */

.gr-range-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.gr-range {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 2px;
  background: var(--grid-line);
  outline: none;
  cursor: pointer;
}
.gr-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 14px;
  background: var(--panel);
  border: 1px solid var(--signal);
}
.gr-range::-moz-range-thumb {
  width: 10px;
  height: 14px;
  border-radius: 0;
  background: var(--panel);
  border: 1px solid var(--signal);
}
.gr-range:hover::-webkit-slider-thumb { background: var(--signal); }
.gr-range:hover::-moz-range-thumb { background: var(--signal); }
.gr-range-value {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg);
  min-width: 2ch;
  text-align: right;
}
.gr-hue .gr-range {
  height: 10px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.gr-hue .gr-range-value { display: none; }

/* ── responsive: phones ────────────────────────────────────────────── */

@media (max-width: 900px) {
  .sim-view { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .sim-side { grid-column: auto; }
  .stats-view { padding: 10px; min-height: auto; }
  .pings-log-stream { flex: none; max-height: 240px; }
  .pings-grid { gap: 10px; }
  .alerts-grid { gap: 10px; }
  .displays-grid { gap: 10px; }
}

@media (max-width: 640px) {
  .global-header { gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
  .wordmark { font-size: 15px; letter-spacing: 2px; }
  .gh-center { display: none; }
  .gh-right { gap: 8px; }
  /* four tabs (five on open cores) no longer fit beside the wordmark on a
     phone: let the left cluster wrap instead of overflowing the page */
  .gh-left { flex-wrap: wrap; min-width: 0; gap: 8px 12px; }
  .mode-tabs { flex-wrap: wrap; }
  .mode-tab { padding: 4px 8px; }
  .producer-token-result { grid-template-columns: 1fr; }
  .producer-copy-btn { min-height: 34px; }
  .admin-panel { max-height: 88dvh; }

  .masonry { padding: 8px; gap: 10px; }
  .job-title { font-size: 15px; }
  .value-xl { font-size: 32px; }
  .value-lg { font-size: 15px; }
  .readouts { gap: 14px; }
  .readout-pct { min-width: 118px; }
  .readout-eta { min-width: 110px; }

  .theater-stack, .frontier-wrap { touch-action: pan-y; }
  .compare-table { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .panel, .job-panel { animation: none; }
  .record-ticker { animation: none; }
  .streak-badge.shattered { animation: none; }
  .pings-live-dot { animation: none; }
  .ping-log-new { animation: none; }
  .ping-card:hover { transform: none; }
}

/* ── platform login cover ─────────────────────────────────────────────── */

.login-cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel {
  width: min(340px, calc(100vw - 2 * var(--space-lg)));
  padding: var(--space-xl);
  background: var(--panel);
  border: 1px solid var(--grid-line-hi);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.login-logo {
  display: flex;
  justify-content: center;
  margin: calc(-1 * var(--space-sm)) 0 var(--space-xs);
}

.login-logo svg {
  width: min(220px, 60vw);
  height: auto;
  overflow: visible;
}

.login-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--dim);
  text-align: center;
  margin-bottom: var(--space-md);
}

.login-input {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-bright);
  background: var(--panel-hi);
  border: 1px solid var(--grid-line);
  padding: 10px 12px;
  outline: none;
}

.login-input:focus { border-color: var(--signal); }

.login-error {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--crit);
  min-height: 14px;
  text-align: center;
}

.login-button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--signal);
  background: transparent;
  border: 1px solid var(--signal);
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--t-fast);
}

.login-button:hover { background: rgba(33, 230, 193, 0.08); }
.login-button:disabled { color: var(--dim); border-color: var(--grid-line-hi); cursor: wait; }

/* dismissible token prompt (voluntary AUTH elevation): quiet secondary action */
.login-cancel { color: var(--dim); border-color: var(--grid-line-hi); }
.login-cancel:hover { background: rgba(255, 255, 255, 0.04); }

/* ── boot cover ───────────────────────────────────────────────────────────
   Full-screen SYSTEM BOOT loader, inline in index.html so it renders before
   app.js executes. main.ts holds it for a minimum run and until hydrate has
   the job data, then fades it out as the wall cascade plays underneath.
   Hard-coded fallback colors: the JS token pass hasn't run yet. */

.boot-cover {
  position: fixed;
  inset: 0;
  z-index: 250; /* above everything except the login cover (300) */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void, #07090d);
  transition: opacity 0.6s ease;
}
.boot-cover.done { opacity: 0; pointer-events: none; }

/* the loader is only a centering frame: no own background/overflow, so
   the cover reads as one full-screen surface with no visible box outline;
   the scanlines/vignette below anchor to the fixed .boot-cover and span
   the whole viewport */
.cp-loader {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(0, 0, 0, 0.3) 4px
  );
  pointer-events: none;
  z-index: 10;
  animation: cp-scanline-move 8s linear infinite;
}
.cp-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
  z-index: 9;
}
@keyframes cp-scanline-move {
  0% { transform: translateY(0); }
  100% { transform: translateY(8px); }
}
@keyframes cp-grid-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
@keyframes cp-g-draw {
  0% { stroke-dashoffset: 600; }
  100% { stroke-dashoffset: 0; }
}
@keyframes cp-echo-pulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.03); }
}
@keyframes cp-glitch {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(-2px, 1px); }
  92% { transform: translate(2px, -1px); }
  93% { transform: translate(-1px, 2px); }
  94% { transform: translate(0); }
}
@keyframes cp-rotate-hex {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes cp-rotate-hex-reverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}
@keyframes cp-data-flow {
  0% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}
@keyframes cp-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes cp-glitch-block {
  0%, 100% { opacity: 0; }
  10% { opacity: 0.6; }
  20% { opacity: 0; }
}
.cp-g-main {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: cp-g-draw 2s ease-out forwards, cp-glitch 5s infinite 2s;
}
.cp-g-echo {
  animation: cp-echo-pulse 3s ease-in-out infinite;
  transform-origin: center;
}
.cp-grid-lines {
  animation: cp-grid-pulse 4s ease-in-out infinite;
}
.cp-hex-frame {
  animation: cp-rotate-hex 25s linear infinite;
  transform-origin: center;
}
.cp-hex-inner {
  animation: cp-rotate-hex-reverse 18s linear infinite;
  transform-origin: center;
}
.cp-data-packet {
  stroke-dasharray: 8 20;
  animation: cp-data-flow 0.8s linear infinite;
}
.cp-data-packet-slow {
  stroke-dasharray: 6 24;
  animation: cp-data-flow 1.2s linear infinite;
}
.cp-loading-text {
  font-family: "Courier New", monospace;
  /* sized so the longest caption (20 chars) spans ~82 of the 100 viewBox
     units — the loader box clips at 100, so wider tracking truncates */
  font-size: 6px;
  fill: #39ff14;
  letter-spacing: 0.5px;
  animation: cp-blink 1.5s ease-in-out infinite;
}
.cp-corner-bracket {
  fill: none;
  stroke: #39ff14;
  stroke-width: 1;
  opacity: 0.5;
}
.cp-glitch-block {
  fill: #39ff14;
  opacity: 0;
}
.cp-glitch-block-1 { animation: cp-glitch-block 3s ease-in-out infinite 0s; }
.cp-glitch-block-2 { animation: cp-glitch-block 4s ease-in-out infinite 1.2s; }
.cp-glitch-block-3 { animation: cp-glitch-block 3.5s ease-in-out infinite 2.1s; }
.cp-glitch-block-4 { animation: cp-glitch-block 2.8s ease-in-out infinite 0.7s; }
.cp-glitch-block-5 { animation: cp-glitch-block 3.2s ease-in-out infinite 1.8s; }
.cp-glitch-block-6 { animation: cp-glitch-block 4.5s ease-in-out infinite 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .boot-cover { transition: none; }
  .boot-cover * { animation: none !important; }
  .cp-g-main { stroke-dashoffset: 0; }
}
