/* ==========================================================================
   NADIR Product Walkthrough — Apple-style episodic demos
   ========================================================================== */

:root {
  --wt-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wt-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wt-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wt-bg: #070707;
  --wt-panel: #0e0f0e;
  --wt-elevated: #141514;
  --wt-line: rgba(255, 255, 255, 0.08);
  --wt-line-strong: rgba(255, 255, 255, 0.14);
  --wt-text: #ece8df;
  --wt-muted: #8a8780;
  --wt-dim: #5c5a55;
  --wt-accent: #ff6534;
  --wt-green: #7ee39a;
  --wt-amber: #ffc15a;
  --wt-red: #ff625a;
  --wt-cyan: #65d2dc;
  --wt-radius: 16px;
  --wt-radius-sm: 10px;
  --wt-font: "Manrope", system-ui, sans-serif;
  --wt-display: "DM Sans", system-ui, sans-serif;
  --wt-mono: "JetBrains Mono", ui-monospace, monospace;
  --wt-cursor-size: 22px;
}

/* ---- Page shell ---- */

.wt-page {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 101, 52, 0.09), transparent),
    radial-gradient(circle at 100% 50%, rgba(126, 227, 154, 0.04), transparent 40%),
    var(--wt-bg);
}

.wt-hero-band {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--wt-line);
}

.wt-hero-band .container {
  display: grid;
  gap: 32px;
  align-items: end;
  grid-template-columns: 1fr 1fr;
}

.wt-hero-band h1 {
  margin: 12px 0 16px;
  font-family: var(--wt-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.wt-hero-band h1 em {
  font-style: normal;
  background: linear-gradient(112deg, #f7f3eb, #ffb14a 45%, #ff6534 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wt-hero-band p {
  max-width: 52ch;
  color: var(--wt-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.wt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wt-accent);
  font-family: var(--wt-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wt-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wt-accent);
  box-shadow: 0 0 12px rgba(255, 101, 52, 0.6);
  animation: wt-pulse 2s ease-in-out infinite;
}

.wt-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wt-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--wt-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wt-data-band {
  padding: 28px 0;
  border-bottom: 1px solid var(--wt-line);
  background: rgba(255, 255, 255, 0.01);
}

.wt-data-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wt-data-card {
  padding: 16px 18px;
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-radius-sm);
  background: linear-gradient(165deg, rgba(18, 19, 18, 0.95), rgba(10, 10, 9, 0.98));
}

.wt-data-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--wt-accent);
  font-family: var(--wt-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.wt-data-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--wt-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wt-data-card p {
  margin: 0;
  color: var(--wt-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.wt-flow-band {
  padding: 36px 0;
  border-bottom: 1px solid var(--wt-line);
}

.wt-flow-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.wt-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--wt-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.72rem;
}

.wt-flow-step span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 0.55rem;
}

.wt-flow-step.is-on {
  border-color: rgba(255, 101, 52, 0.35);
  background: rgba(255, 101, 52, 0.08);
}

.wt-flow-step.is-on span {
  background: rgba(255, 101, 52, 0.2);
  color: var(--wt-accent);
}

.wt-flow-arrow {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--wt-line-strong), transparent);
}

.wt-series-lede {
  max-width: 58ch;
  margin: 10px 0 0;
  color: var(--wt-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.wt-stat-pill {
  padding: 8px 12px;
  border: 1px solid var(--wt-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--wt-mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
}

.wt-stat-pill b {
  color: var(--wt-text);
  font-weight: 600;
}

/* ---- Episode grid ---- */

.wt-series {
  padding: 48px 0 80px;
}

.wt-series-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.wt-series-head h2 {
  margin: 8px 0 0;
  font-family: var(--wt-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.wt-series-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wt-series-nav button {
  padding: 8px 14px;
  border: 1px solid var(--wt-line);
  border-radius: 999px;
  background: transparent;
  color: var(--wt-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.wt-series-nav button.is-on,
.wt-series-nav button:hover {
  border-color: rgba(255, 101, 52, 0.35);
  background: rgba(255, 101, 52, 0.08);
  color: var(--wt-text);
}

/* ---- Ordered walkthrough track ---- */

.wt-walkthrough-intro {
  padding: 36px 0 12px;
  border-bottom: 1px solid var(--wt-line);
}

.wt-walkthrough-intro h2 {
  margin: 8px 0 10px;
  max-width: 28ch;
  font-family: var(--wt-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.wt-walkthrough-main {
  padding: 0 0 64px;
}

.wt-walkthrough-shell {
  display: grid;
  gap: 48px;
  align-items: start;
  grid-template-columns: 240px minmax(0, 1fr);
}

.wt-step-rail {
  position: sticky;
  top: 92px;
  padding: 20px 16px;
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-radius);
  background: linear-gradient(165deg, rgba(16, 17, 16, 0.98), rgba(8, 8, 7, 0.98));
}

.wt-rail-head p {
  margin: 6px 0 0;
  color: var(--wt-muted);
  font-size: 0.78rem;
}

.wt-rail-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.wt-rail-link {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 8px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.wt-rail-link:hover,
.wt-rail-link.is-active {
  background: rgba(255, 101, 52, 0.1);
}

.wt-rail-link.is-active .wt-rail-num {
  border-color: rgba(255, 101, 52, 0.5);
  color: var(--wt-accent);
  background: rgba(255, 101, 52, 0.15);
}

.wt-rail-num {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  font-family: var(--wt-mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.wt-rail-text strong {
  display: block;
  font-size: 0.82rem;
}

.wt-rail-text small {
  display: block;
  margin-top: 2px;
  color: var(--wt-dim);
  font-size: 0.65rem;
  line-height: 1.35;
}

.wt-rail-play {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--wt-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
}

.wt-rail-play:hover {
  border-color: rgba(255, 101, 52, 0.35);
}

.wt-walkthrough-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.wt-walkthrough-track::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 27px;
  width: 2px;
  background: linear-gradient(var(--wt-line-strong), rgba(255, 101, 52, 0.25), var(--wt-line-strong));
  pointer-events: none;
}

.wt-step-block {
  position: relative;
  padding: 48px 0 56px 56px;
  border-bottom: 1px solid var(--wt-line);
  scroll-margin-top: 100px;
}

.wt-step-block:last-child {
  border-bottom: none;
  padding-bottom: 24px;
}

.wt-step-block.is-active .wt-step-marker span {
  border-color: rgba(255, 101, 52, 0.55);
  color: var(--wt-accent);
  box-shadow: 0 0 24px rgba(255, 101, 52, 0.25);
}

.wt-step-marker {
  position: absolute;
  left: 0;
  top: 48px;
  z-index: 2;
}

.wt-step-marker span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 2px solid var(--wt-line-strong);
  border-radius: 50%;
  background: var(--wt-bg);
  font-family: var(--wt-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

.wt-step-grid {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
}

.wt-step-grid.is-flip {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
}

.wt-step-grid.is-flip .wt-step-copy {
  order: 2;
}

.wt-step-grid.is-flip .wt-step-demo {
  order: 1;
}

.wt-step-label {
  display: block;
  margin-bottom: 8px;
  color: var(--wt-accent);
  font-family: var(--wt-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wt-step-copy h3 {
  margin: 0 0 8px;
  font-family: var(--wt-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.wt-step-sub {
  margin: 0 0 14px;
  color: var(--wt-muted);
  font-size: 0.88rem;
}

.wt-step-desc {
  margin: 0 0 16px;
  color: var(--wt-text);
  font-size: 0.92rem;
  line-height: 1.65;
}

.wt-step-bullets {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--wt-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.wt-step-bullets li {
  margin-bottom: 6px;
}

.wt-step-impact {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--wt-accent);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 101, 52, 0.06);
  color: #ffd4c4;
  font-size: 0.84rem;
  font-weight: 500;
}

.wt-step-demo .wt-episode-card {
  margin: 0;
}

.wt-step-demo .wt-stage-wrap {
  margin: 16px 16px 0;
  min-height: 340px;
  aspect-ratio: 16 / 10;
}

.wt-episode-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 1100px) {
  .wt-walkthrough-shell {
    grid-template-columns: 1fr;
  }

  .wt-step-rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .wt-rail-head {
    flex: 1 1 100%;
  }

  .wt-rail-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    flex: 1 1 auto;
  }

  .wt-rail-list li {
    flex: 0 0 auto;
  }

  .wt-rail-link {
    grid-template-columns: 1fr;
    gap: 4px;
    min-width: 72px;
    text-align: center;
  }

  .wt-rail-text small {
    display: none;
  }

  .wt-rail-play {
    flex: 0 0 auto;
    width: auto;
  }

  .wt-walkthrough-track::before {
    display: none;
  }

  .wt-step-block {
    padding-left: 0;
  }

  .wt-step-marker {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 16px;
  }

  .wt-step-grid,
  .wt-step-grid.is-flip {
    grid-template-columns: 1fr;
  }

  .wt-step-grid.is-flip .wt-step-copy,
  .wt-step-grid.is-flip .wt-step-demo {
    order: unset;
  }
}


.wt-episode-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--wt-line);
  border-radius: calc(var(--wt-radius) + 4px);
  background: linear-gradient(165deg, rgba(20, 21, 20, 0.98), rgba(8, 8, 7, 0.98));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    inset 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 0.35s var(--wt-ease), transform 0.35s var(--wt-ease);
}

.wt-episode-card.is-focused {
  border-color: rgba(255, 101, 52, 0.35);
  transform: translateY(-2px);
}

.wt-episode-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 0;
}

.wt-episode-meta h3 {
  margin: 6px 0 4px;
  font-family: var(--wt-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wt-episode-meta p {
  margin: 0;
  color: var(--wt-muted);
  font-size: 0.78rem;
}

.wt-episode-step {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
}

.wt-stage-wrap {
  position: relative;
  margin: 16px 16px 0;
  overflow: hidden;
  border: 1px solid var(--wt-line);
  border-radius: var(--wt-radius);
  background: #0a0b0a;
  aspect-ratio: 16 / 10;
}

.wt-stage-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.35));
}

.wt-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.wt-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 22px 18px;
}

.wt-caption-bar span {
  color: var(--wt-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.wt-caption-bar small {
  display: block;
  margin-bottom: 3px;
  color: var(--wt-accent);
  font-family: var(--wt-mono);
  font-size: 0.44rem;
  letter-spacing: 0.1em;
}

.wt-progress {
  height: 2px;
  margin: 0 22px 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.wt-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wt-accent), var(--wt-green));
  transition: width 0.08s linear;
}

/* ---- Hero embed (homepage) ---- */

.wt-hero-embed {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  margin-right: 0;
  transform: perspective(1400px) rotateY(-1.5deg) rotateX(0.5deg);
  transform-origin: center;
}

.wt-hero-embed .wt-stage-wrap {
  margin: 0;
  aspect-ratio: 16 / 10;
  height: 430px;
  box-shadow:
    0 44px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(0, 0, 0, 0.55);
}

.wt-hero-embed .wt-episode-meta,
.wt-hero-embed .wt-caption-bar,
.wt-hero-embed .wt-progress {
  display: none;
}

.wt-hero-embed .wt-hero-inner {
  border: none;
  background: transparent;
  box-shadow: none;
}

.wt-hero-embed .wt-hero-inner .wt-stage-wrap {
  margin: 0;
}

.wt-hero-link {
  position: relative;
  display: inline-block;
  margin-top: 14px;
  color: var(--wt-muted);
  font-size: 0.72rem;
  text-decoration: none;
}

.wt-hero-link:hover {
  color: var(--wt-accent);
}

.wt-hero-glow {
  position: absolute;
  z-index: -1;
  inset: 5% 2% -12% 7%;
  background: radial-gradient(ellipse, rgba(255, 83, 29, 0.22), transparent 63%);
  filter: blur(35px);
  pointer-events: none;
}

/* ---- Console chrome inside stage ---- */

/* Title bar, rail, work area, status bar — the four pieces every screen shares.
   Sizes here are absolute pixels because the whole console is drawn on a fixed
   1200px design surface and scaled as one unit. */
.wt-app {
  display: grid;
  height: 100%;
  grid-template-rows: 42px minmax(0, 1fr) 26px;
  background: #0a0b0a;
}

.wt-app-bar {
  display: grid;
  align-items: center;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px) minmax(0, 1fr);
  padding: 0 14px;
  border-bottom: 1px solid var(--wt-line);
  background: linear-gradient(180deg, #161715, #101110);
}

.wt-app-bar-l,
.wt-app-bar-r {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wt-app-bar-r {
  justify-content: flex-end;
}

.wt-app-bar .brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  font-family: var(--wt-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.wt-app-bar .brand img {
  width: 15px;
  height: 15px;
}

.wt-org {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 4px 9px;
  border: 1px solid var(--wt-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--wt-muted);
  font-size: 11px;
  white-space: nowrap;
}

.wt-org em {
  color: var(--wt-dim);
  font-size: 9px;
  font-style: normal;
}

/* Command bar. Non-functional by definition, but a console without one looks
   like a report. */
.wt-omni {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--wt-line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--wt-dim);
  font-size: 10.5px;
}

.wt-omni svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  stroke-width: 1.6;
}

.wt-omni span {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.wt-omni kbd {
  padding: 1px 4px;
  border: 1px solid var(--wt-line);
  border-radius: 4px;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 8.5px;
}

.wt-app-bar .live {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid rgba(126, 227, 154, 0.18);
  border-radius: 999px;
  color: #9ab0a0;
  font-family: var(--wt-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.wt-app-bar .live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wt-green);
  box-shadow: 0 0 8px var(--wt-green);
  animation: wt-pulse 2.4s ease-in-out infinite;
}

.wt-clock {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.wt-app-body {
  display: grid;
  min-height: 0;
  overflow: hidden;
  grid-template-columns: 62px minmax(0, 1fr);
}

.wt-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 8px 6px;
  border-right: 1px solid var(--wt-line);
  background: #0c0d0c;
}

.wt-rail-item {
  display: grid;
  gap: 3px;
  padding: 7px 0 6px;
  border-radius: 8px;
  color: #52544f;
  justify-items: center;
}

.wt-rail-item svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.5;
}

.wt-rail-item b {
  font-family: var(--wt-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wt-rail-item.on {
  background: rgba(255, 101, 52, 0.12);
  box-shadow: inset 2px 0 0 var(--wt-accent);
  color: var(--wt-accent);
}

.wt-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 14px 16px 16px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    #0a0b0a;
  background-size: 24px 24px;
}

.wt-head {
  display: flex;
  flex-shrink: 0;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.wt-head h4 {
  margin: 3px 0 0;
  font-family: var(--wt-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wt-head-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.wt-chip {
  padding: 3px 8px;
  border: 1px solid var(--wt-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wt-label {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wt-meta {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 10px;
}

/* Status bar. Carries the two facts a safety reviewer looks for first. */
.wt-status {
  display: grid;
  align-items: center;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 14px;
  border-top: 1px solid var(--wt-line);
  background: #0c0d0c;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.wt-status-l {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wt-accent);
}

.wt-status-l i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wt-accent);
}

.wt-status-c {
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-status-r {
  text-align: right;
}

/* Shared card furniture used by every screen. */
.wt-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 10px 11px 11px;
  border: 1px solid var(--wt-line);
  border-radius: 12px;
  background: rgba(16, 17, 16, 0.92);
}

.wt-panel-head,
.wt-card-head {
  display: flex;
  flex-shrink: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.wt-panel-head span,
.wt-card-head h5 {
  margin: 0;
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wt-panel-head b,
.wt-card-note {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.wt-panel-head b {
  color: var(--wt-green);
}

.wt-panel-foot,
.wt-card-foot {
  flex-shrink: 0;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  line-height: 1.4;
}

.wt-tier-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--wt-dim);
}

.wt-tier-dot.nom { background: var(--wt-green); }
.wt-tier-dot.cau { background: var(--wt-amber); }
.wt-tier-dot.cri {
  background: var(--wt-red);
  box-shadow: 0 0 7px rgba(255, 98, 90, 0.7);
}

/* ---- Connect episode ---- */

.wt-connect {
  display: grid;
  flex: 1 1 auto;
  gap: 11px;
  min-height: 0;
  grid-template-columns: 262px 258px minmax(0, 1fr);
}

.wt-provider-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wt-provider {
  display: grid;
  align-items: center;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  padding: 8px 9px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(21, 22, 21, 0.9);
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.25s var(--wt-ease);
}

.wt-provider.is-active {
  border-color: rgba(126, 227, 154, 0.35);
  background: rgba(126, 227, 154, 0.06);
}

.wt-provider.is-target {
  border-color: rgba(255, 101, 52, 0.4);
  box-shadow: 0 0 0 1px rgba(255, 101, 52, 0.15);
}

.wt-provider-logo {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--logo) 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--logo) 18%, transparent);
  color: var(--logo);
  font-family: var(--wt-mono);
  font-size: 10px;
  font-weight: 700;
}

.wt-provider-body {
  min-width: 0;
}

.wt-provider strong {
  display: block;
  font-size: 12.5px;
}

.wt-provider small {
  display: block;
  overflow: hidden;
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-provider .status {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.wt-provider.is-active .status {
  color: var(--wt-green);
}

.wt-btn-block {
  width: 100%;
}

/* Scope list. The two denied rows carry as much weight as the granted ones. */
.wt-scopes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 2px;
}

.wt-scope {
  display: grid;
  align-items: center;
  gap: 7px;
  grid-template-columns: 9px auto minmax(0, 1fr);
}

.wt-scope i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--wt-line-strong);
  border-radius: 3px;
}

.wt-scope.on i {
  border-color: rgba(126, 227, 154, 0.45);
  background: rgba(126, 227, 154, 0.35);
}

.wt-scope code {
  font-family: var(--wt-mono);
  font-size: 9.5px;
}

.wt-scope.on code {
  color: #9fe0b3;
}

.wt-scope.off code {
  color: var(--wt-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 98, 90, 0.55);
}

.wt-scope small {
  overflow: hidden;
  color: var(--wt-dim);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* The terms of the link. A fleet IT reviewer reads this column top to bottom. */
.wt-terms {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 2px 0 0;
}

.wt-terms > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--wt-line);
}

.wt-terms dt {
  color: var(--wt-muted);
  font-size: 10px;
}

.wt-terms dd {
  margin: 0;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
  text-align: right;
}

.wt-connect-note {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.wt-connect-note span {
  padding: 3px 7px;
  border: 1px solid var(--wt-line);
  border-radius: 999px;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
}

/* Middle column: the link itself, then the log that explains it. */
.wt-link-viz {
  position: relative;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 176px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 101, 52, 0.07), transparent 70%);
}

.wt-link-core {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
}

.wt-van-icon {
  position: relative;
  width: 66px;
  height: 66px;
  border: 1px solid var(--wt-line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 101, 52, 0.12), transparent 70%);
}

.wt-van-icon svg {
  position: absolute;
  inset: 22% 18%;
  width: 64%;
  height: auto;
  fill: none;
  stroke: var(--wt-text);
  stroke-width: 1.2;
}

.wt-beam {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 0;
  margin-left: -1px;
  border-radius: 999px;
  background: linear-gradient(var(--wt-accent), var(--wt-green));
  opacity: 0;
  transform-origin: top center;
  transition:
    height 0.6s var(--wt-ease-out),
    opacity 0.3s;
}

.wt-beam.on {
  height: 22px;
  opacity: 1;
}

.wt-link-stats {
  display: flex;
  gap: 16px;
}

.wt-link-stats span {
  display: grid;
  gap: 1px;
  justify-items: center;
}

.wt-link-stats b {
  color: var(--wt-text);
  font-family: var(--wt-mono);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.wt-link-stats em {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wt-log {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
}

.wt-log-line {
  display: grid;
  align-items: baseline;
  gap: 7px;
  grid-template-columns: 46px minmax(0, 1fr);
  padding: 1px 2px;
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.3s var(--wt-ease),
    transform 0.3s var(--wt-ease);
}

.wt-log-line.show {
  opacity: 1;
  transform: translateX(0);
}

.wt-log-line span {
  color: var(--wt-dim);
}

.wt-log-line b {
  overflow: hidden;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-log-line.ok b {
  color: var(--wt-green);
}

/* Asset grid. */
.wt-vehicle-grid {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
}

.wt-vehicle-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(15, 16, 15, 0.95);
  opacity: 0;
  transform: translateY(7px) scale(0.985);
  transition:
    opacity 0.35s var(--wt-ease),
    transform 0.35s var(--wt-ease),
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}

.wt-vehicle-tile.show {
  opacity: 1;
  transform: none;
}

.wt-vehicle-tile.is-live {
  border-color: rgba(126, 227, 154, 0.16);
}

.wt-vehicle-tile.is-target {
  border-color: rgba(255, 101, 52, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 101, 52, 0.2);
}

.wt-vehicle-tile.is-selected {
  border-color: rgba(255, 101, 52, 0.55);
  background: rgba(255, 101, 52, 0.08);
  box-shadow: 0 8px 22px rgba(255, 101, 52, 0.14);
}

.wt-vehicle-top {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.wt-vehicle-tile strong {
  flex: 1;
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
}

.wt-vehicle-pill {
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(126, 227, 154, 0.12);
  color: var(--wt-green);
  font-family: var(--wt-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.wt-vehicle-tile[data-tier="critical"] .wt-vehicle-pill,
.wt-vehicle-tile[data-tier="caution"] .wt-vehicle-pill {
  background: rgba(255, 255, 255, 0.06);
  color: var(--wt-muted);
}

.wt-vehicle-tile code {
  display: block;
  overflow: hidden;
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-vehicle-tile small {
  overflow: hidden;
  color: var(--wt-dim);
  font-size: 9.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-vehicle-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wt-vehicle-foot em {
  overflow: hidden;
  color: var(--wt-muted);
  font-size: 9.5px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-vehicle-foot b {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 8.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* Sized in px, not rem: buttons live on the fixed-width design canvas, where a
   root-relative size would change with the visitor's browser font setting and
   break a layout that is otherwise scaled as one piece. */
.wt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 101, 52, 0.35);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 101, 52, 0.18), rgba(255, 101, 52, 0.08));
  color: #ffd4c4;
  font-family: var(--wt-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition:
    transform 0.15s var(--wt-ease-spring),
    box-shadow 0.15s;
}

.wt-btn.is-pressed {
  transform: scale(0.96);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
}

.wt-btn.is-highlight {
  box-shadow: 0 0 0 2px rgba(255, 101, 52, 0.35), 0 8px 24px rgba(255, 101, 52, 0.2);
}

/* ---- Import / table ---- */

.wt-import {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.wt-import-top {
  display: grid;
  flex-shrink: 0;
  gap: 10px;
  grid-template-columns: 300px minmax(0, 1fr);
}

.wt-dropzone {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 11px 12px;
  border: 1px dashed rgba(255, 101, 52, 0.35);
  border-radius: 12px;
  background: rgba(255, 101, 52, 0.04);
  transition:
    border-color 0.3s,
    background 0.3s;
}

.wt-dropzone.active {
  border-color: rgba(126, 227, 154, 0.45);
  background: rgba(126, 227, 154, 0.06);
}

.wt-dropzone strong {
  display: block;
  font-size: 12.5px;
}

.wt-dropzone small {
  color: var(--wt-dim);
  font-size: 10px;
}

.wt-drop-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px dashed var(--wt-line-strong);
  border-radius: 10px;
  color: var(--wt-accent);
  font-size: 15px;
}

.wt-file-chip {
  display: block;
  grid-column: 1 / -1;
  padding: 5px 8px;
  border: 1px solid var(--wt-line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.4s var(--wt-ease),
    transform 0.4s var(--wt-ease-spring);
}

.wt-file-chip.show {
  opacity: 1;
  transform: scale(1);
}

/* Parse report. The tone classes carry the meaning, so a reviewer can see at a
   glance that nothing failed to parse — the gaps are in the shops' records. */
.wt-sum-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wt-sum-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(18, 19, 18, 0.9);
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.35s var(--wt-ease),
    transform 0.35s var(--wt-ease);
}

.wt-sum-tile.show {
  opacity: 1;
  transform: none;
}

.wt-sum-tile small {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wt-sum-tile strong {
  font-family: var(--wt-mono);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.wt-sum-tile.ok strong { color: var(--wt-green); }
.wt-sum-tile.warn strong { color: var(--wt-amber); }

.wt-sum-tile.bad {
  border-color: rgba(255, 98, 90, 0.28);
  background: rgba(255, 98, 90, 0.06);
}

.wt-sum-tile.bad strong {
  color: var(--wt-red);
}

.wt-table-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--wt-line);
  border-radius: 12px;
  background: rgba(14, 15, 14, 0.95);
}

.wt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  table-layout: fixed;
}

.wt-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--wt-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-align: left;
}

.wt-table td {
  overflow: hidden;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cac6bd;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.wt-table .dim {
  color: var(--wt-dim);
}

.wt-table th.num,
.wt-table td.num {
  text-align: right;
}

.wt-table tbody tr {
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.3s var(--wt-ease),
    transform 0.3s var(--wt-ease),
    background 0.3s;
}

.wt-table tbody tr.show {
  opacity: 1;
  transform: translateY(0);
}

.wt-table tbody tr.flash {
  background: rgba(255, 101, 52, 0.09);
}

.wt-table tbody tr.is-lit {
  background: rgba(255, 98, 90, 0.07);
}

/* Column widths, in the same order as the header row. */
.wt-table th:nth-child(1) { width: 8%; }
.wt-table th:nth-child(2) { width: 7.5%; }
.wt-table th:nth-child(3) { width: 7%; }
.wt-table th:nth-child(4) { width: 19%; }
.wt-table th:nth-child(5) { width: 6.5%; }
.wt-table th:nth-child(6) { width: 15.5%; }
.wt-table th:nth-child(7) { width: 12%; }
.wt-table th:nth-child(8) { width: 15.5%; }
.wt-table th:nth-child(9) { width: 9%; }

.wt-cal-tag {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--wt-line);
  border-radius: 999px;
  font-family: var(--wt-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.wt-cal-tag.ok {
  border-color: rgba(126, 227, 154, 0.28);
  background: rgba(126, 227, 154, 0.08);
  color: #9fe0b3;
}

.wt-cal-tag.warn {
  border-color: rgba(255, 193, 90, 0.28);
  background: rgba(255, 193, 90, 0.08);
  color: #ffd899;
}

.wt-cal-tag.bad {
  border-color: rgba(255, 98, 90, 0.35);
  background: rgba(255, 98, 90, 0.12);
  color: #ffb4af;
}

.wt-cal-tag.na {
  color: var(--wt-dim);
}

.wt-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 8px 11px;
  border-top: 1px solid var(--wt-line);
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9.5px;
}

.wt-table-note {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffb4af;
}

.wt-table-note i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wt-red);
}

/* ---- Analytics ---- */

.wt-analytics {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
}

.wt-a-row {
  display: grid;
  gap: 9px;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wt-a-row-1 {
  flex: 1.25 1 0;
}

.wt-a-row-2 {
  flex: 1 1 0;
}

.wt-span2 {
  grid-column: span 2;
}

.wt-chart-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  padding: 9px 11px 10px;
  border: 1px solid var(--wt-line);
  border-radius: 12px;
  background: rgba(16, 17, 16, 0.95);
}

/* Charts are SVG with their own viewBox, so the body just gives them room. */
.wt-chart-body {
  flex: 1 1 auto;
  min-height: 0;
}

.wt-chart-body svg,
.wt-resid-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.wt-gridline {
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
}

.wt-axis {
  fill: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 10px;
}

.wt-axis.dim {
  fill: #3f403c;
}

.wt-annot {
  fill: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.wt-annot.warn {
  fill: #ffb4af;
}

.wt-safe-band {
  fill: rgba(126, 227, 154, 0.03);
}

.wt-threshold {
  stroke: var(--wt-red);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
  opacity: 0.55;
  transition: opacity 0.4s var(--wt-ease);
}

.wt-threshold.show {
  opacity: 1;
}

.wt-crossline {
  stroke: var(--wt-amber);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  opacity: 0;
  transition: opacity 0.5s var(--wt-ease);
}

.wt-crossline.show {
  opacity: 0.8;
}

.wt-resid-area {
  fill: url(#none);
  fill: rgba(255, 101, 52, 0.09);
  opacity: 0;
  transition: opacity 0.7s var(--wt-ease);
}

.wt-resid-area.show {
  opacity: 1;
}

.wt-resid-line {
  fill: none;
  stroke: var(--wt-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.6s var(--wt-ease-out);
}

.wt-resid-line.show {
  stroke-dashoffset: 0;
}

.wt-dot {
  fill: #0a0b0a;
  stroke: var(--wt-accent);
  stroke-width: 1.6;
}

.wt-dot.over {
  fill: var(--wt-red);
  stroke: var(--wt-red);
}

/* MTTFF-RE histogram. The one bucket past target is drawn as a miss on
   purpose: a distribution with no tail is a distribution nobody believes. */
.wt-hist {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  gap: 6px;
  min-height: 0;
  padding-top: 6px;
}

.wt-hbar {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.wt-hbar::before {
  height: var(--h, 20%);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--wt-accent), rgba(255, 101, 52, 0.28));
  content: "";
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--wt-ease-out);
}

.wt-hbar.show::before {
  transform: scaleY(1);
}

.wt-hbar.miss::before {
  background: linear-gradient(180deg, var(--wt-red), rgba(255, 98, 90, 0.25));
}

.wt-hbar u {
  order: -1;
  margin-bottom: 3px;
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 10px;
  text-align: center;
  text-decoration: none;
}

.wt-hbar i {
  margin-top: 4px;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 8.5px;
  font-style: normal;
  text-align: center;
}

.wt-tier-bars {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 0;
}

.wt-tier-row {
  display: grid;
  align-items: center;
  gap: 4px 9px;
  grid-template-columns: 62px minmax(0, 1fr) 26px 30px;
  font-family: var(--wt-mono);
  font-size: 10px;
}

.wt-tier-row small {
  grid-column: 2 / -1;
  color: var(--wt-dim);
  font-size: 9px;
}

.wt-tier-row > span:first-child {
  color: var(--wt-muted);
  letter-spacing: 0.05em;
}

.wt-tier-row i {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.wt-tier-row i::after {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  content: "";
  transition: width 0.7s var(--wt-ease-out);
}

.wt-tier-row.nom i::after { background: var(--wt-green); }
.wt-tier-row.cau i::after { background: var(--wt-amber); }
.wt-tier-row.cri i::after { background: var(--wt-red); }

.wt-tier-row.show i::after {
  width: var(--w, 50%);
}

.wt-tier-row b {
  text-align: right;
}

.wt-tier-row em {
  color: var(--wt-dim);
  font-size: 9px;
  font-style: normal;
  text-align: right;
}

/* Horizontal count bars, shared by the operation and shop breakdowns. */
.wt-cbars {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}

.wt-cbar {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 96px minmax(0, 1fr) 20px;
  font-size: 10px;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.3s var(--wt-ease),
    transform 0.3s var(--wt-ease);
}

.wt-cbars-wide .wt-cbar {
  grid-template-columns: 112px minmax(0, 1fr) 20px 86px;
}

.wt-cbar.show {
  opacity: 1;
  transform: none;
}

.wt-cbar-label {
  overflow: hidden;
  color: var(--wt-muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-cbar-track {
  display: block;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.wt-cbar-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tone), color-mix(in srgb, var(--tone) 45%, transparent));
  transition: width 0.6s var(--wt-ease-out);
}

.wt-cbar.show .wt-cbar-track i {
  width: var(--w, 50%);
}

.wt-cbar b {
  font-family: var(--wt-mono);
  font-size: 10px;
  text-align: right;
}

.wt-cbar em {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 8.5px;
  font-style: normal;
  text-align: right;
}

/* One-line stacked bar for the sensor split. */
.wt-sensor-strip {
  display: grid;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  padding: 8px 11px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(16, 17, 16, 0.95);
}

.wt-strip-label {
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wt-stacked {
  display: flex;
  gap: 2px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.wt-stacked i {
  width: var(--w);
  background: var(--tone);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--wt-ease-out);
}

.wt-stacked i.show {
  transform: scaleX(1);
}

.wt-strip-legend {
  display: flex;
  gap: 12px;
}

.wt-strip-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--wt-muted);
  font-size: 9.5px;
  white-space: nowrap;
}

.wt-strip-legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.wt-strip-legend b {
  color: var(--wt-text);
  font-family: var(--wt-mono);
}

.wt-kpi-row {
  display: grid;
  flex-shrink: 0;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wt-kpi {
  padding: 8px 10px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.wt-kpi small {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.wt-kpi strong {
  display: block;
  margin-top: 3px;
  font-family: var(--wt-mono);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}

.wt-kpi span {
  display: block;
  margin-top: 2px;
  color: var(--wt-dim);
  font-size: 9.5px;
}

.wt-kpi.pass strong { color: var(--wt-green); }
.wt-kpi.cri strong { color: var(--wt-red); }

/* ---- Queue ---- */

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

.wt-tabs {
  display: flex;
  gap: 5px;
}

.wt-tab {
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  transition: all 0.25s;
}

.wt-tab.on {
  border-color: rgba(255, 98, 90, 0.3);
  background: rgba(255, 98, 90, 0.1);
  color: #ffb4af;
}

.wt-toolbar-r {
  display: flex;
  gap: 6px;
}

.wt-filter {
  padding: 4px 9px;
  border: 1px solid var(--wt-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 9.5px;
}

.wt-queue-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

/* One column template for the header and every row, so they cannot drift. */
.wt-q-head,
.wt-q-item {
  display: grid;
  align-items: center;
  gap: 10px;
  grid-template-columns:
    18px minmax(96px, 1.05fr) minmax(88px, 1.15fr) minmax(88px, 1.05fr)
    62px 66px 104px minmax(74px, 0.85fr) 78px 74px;
}

.wt-q-head {
  flex-shrink: 0;
  padding: 0 11px 2px;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.wt-q-head .num {
  text-align: right;
}

.wt-queue {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.wt-q-item {
  flex: 1 1 0;
  min-height: 0;
  padding: 8px 11px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(16, 17, 16, 0.9);
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity 0.3s var(--wt-ease),
    transform 0.3s var(--wt-ease),
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}

.wt-q-item.show {
  opacity: 1;
  transform: none;
}

.wt-q-item.is-target {
  border-color: rgba(255, 101, 52, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 101, 52, 0.12);
}

.wt-q-item.is-selected {
  border-color: rgba(255, 98, 90, 0.35);
  background: rgba(255, 98, 90, 0.06);
}

.wt-q-check {
  width: 14px;
  height: 14px;
  border: 1px solid var(--wt-line-strong);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  transition:
    background 0.2s,
    border-color 0.2s;
}

.wt-q-check.on {
  border-color: var(--wt-accent);
  background: var(--wt-accent);
  box-shadow: inset 0 0 0 2px #0a0b0a;
}

.wt-q-unit {
  min-width: 0;
}

.wt-q-unit strong {
  display: block;
  font-size: 12.5px;
}

.wt-q-unit code {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9.5px;
}

.wt-q-cell {
  min-width: 0;
}

.wt-q-cell.num {
  text-align: right;
}

.wt-q-cell b {
  display: block;
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-q-cell.num b {
  font-family: var(--wt-mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.wt-q-cell b.cri { color: var(--wt-red); }
.wt-q-cell b.cau { color: var(--wt-amber); }

.wt-q-cell small {
  display: block;
  overflow: hidden;
  color: var(--wt-dim);
  font-size: 9.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-spark {
  width: 104px;
  height: 32px;
}

.wt-spark-threshold {
  stroke: rgba(255, 98, 90, 0.4);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.wt-spark-line {
  fill: none;
  stroke: var(--wt-amber);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 0.9s var(--wt-ease-out);
}

.wt-q-item.show .wt-spark-line,
.wt-spark-line.show {
  stroke-dashoffset: 0;
}

.wt-spark.cri .wt-spark-line { stroke: var(--wt-red); }
.wt-spark.cri .wt-spark-head { fill: var(--wt-red); }
.wt-spark.cau .wt-spark-head { fill: var(--wt-amber); }

.wt-sla {
  padding: 3px 6px;
  border: 1px solid var(--wt-line);
  border-radius: 5px;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 8.5px;
  letter-spacing: 0.03em;
  text-align: center;
}

.wt-sla.breach {
  border-color: rgba(255, 98, 90, 0.35);
  background: rgba(255, 98, 90, 0.1);
  color: #ffb4af;
}

.wt-sla.watch {
  border-color: rgba(255, 193, 90, 0.25);
  color: #ffd899;
}

.wt-badge {
  padding: 3px 6px;
  border-radius: 999px;
  font-family: var(--wt-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

.wt-badge.cri {
  border: 1px solid rgba(255, 98, 90, 0.25);
  background: rgba(255, 98, 90, 0.1);
  color: #ffb4af;
}

.wt-badge.cau {
  border: 1px solid rgba(255, 193, 90, 0.22);
  background: rgba(255, 193, 90, 0.08);
  color: #ffd899;
}

.wt-badge.nom {
  border: 1px solid rgba(126, 227, 154, 0.22);
  background: rgba(126, 227, 154, 0.07);
  color: #9fe0b3;
}

/* Bulk action bar. Hidden until something is selected, like the real thing. */
.wt-bulk {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(22, 23, 22, 0.95);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.3s var(--wt-ease),
    transform 0.3s var(--wt-ease);
}

.wt-bulk.show {
  opacity: 1;
  transform: none;
}

.wt-bulk b {
  margin-right: auto;
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 10px;
}

/* ---- Inspect detail ---- */

.wt-detail {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  grid-template-columns: 296px minmax(0, 1fr) 268px;
}

.wt-detail-left,
.wt-detail-mid,
.wt-detail-right {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
}

.wt-detail-mid,
.wt-detail-right {
  padding: 10px 11px 11px;
  border: 1px solid var(--wt-line);
  border-radius: 12px;
  background: rgba(16, 17, 16, 0.95);
}

.wt-detail-mid {
  border-color: rgba(255, 98, 90, 0.18);
}

.wt-vehicle-hero {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  border: 1px solid var(--wt-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.wt-vehicle-hero svg {
  width: 42px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--wt-text);
  stroke-width: 1.1;
}

.wt-vehicle-hero > div {
  min-width: 0;
}

.wt-vehicle-hero strong {
  display: block;
  font-size: 14px;
}

.wt-vehicle-hero code {
  display: block;
  color: var(--wt-accent);
  font-family: var(--wt-mono);
  font-size: 9.5px;
}

.wt-vehicle-hero span {
  display: block;
  overflow: hidden;
  color: var(--wt-muted);
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Geometry panel: the millimetres-to-metres argument, drawn to scale. */
.wt-geo {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  padding: 9px 11px 10px;
  border: 1px solid var(--wt-line);
  border-radius: 12px;
  background: radial-gradient(ellipse 80% 70% at 50% 75%, rgba(255, 98, 90, 0.07), transparent 65%),
    rgba(16, 17, 16, 0.95);
}

.wt-geo-svg {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.wt-geo-lane {
  fill: rgba(255, 255, 255, 0.016);
}

.wt-geo-wedge {
  fill: rgba(255, 98, 90, 0.11);
}

.wt-geo-edge {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.wt-geo-aeb {
  stroke: var(--wt-amber);
  stroke-dasharray: 3 3;
  stroke-width: 1;
  opacity: 0.55;
}

.wt-geo-ego {
  fill: rgba(255, 255, 255, 0.14);
  stroke: rgba(255, 255, 255, 0.28);
  stroke-width: 1;
}

.wt-geo-truth {
  fill: none;
  stroke: rgba(255, 255, 255, 0.28);
  stroke-dasharray: 4 4;
  stroke-width: 1.2;
}

.wt-geo-drift {
  fill: none;
  stroke: var(--wt-red);
  stroke-width: 1.6;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.1s var(--wt-ease-out);
}

.wt-geo-drift.show {
  stroke-dashoffset: 0;
}

.wt-geo-arc {
  fill: none;
  stroke: var(--wt-amber);
  stroke-width: 1.1;
}

.wt-geo-tick {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

.wt-geo-err {
  stroke: var(--wt-red);
  stroke-width: 1.4;
  opacity: 0;
  transition: opacity 0.5s var(--wt-ease);
}

.wt-geo-err.show {
  opacity: 1;
}

.wt-metrics {
  display: grid;
  flex-shrink: 0;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wt-metrics .wt-kpi strong {
  font-size: 16px;
}

/* Per-sensor residual table. */
.wt-sensor-table {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 5px;
}

.wt-sensor-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(0, 1.15fr) 58px 52px 68px 48px 66px;
  padding: 7px 9px;
  border: 1px solid var(--wt-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  font-size: 10.5px;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.3s var(--wt-ease),
    transform 0.3s var(--wt-ease);
}

.wt-sensor-row.show {
  opacity: 1;
  transform: none;
}

.wt-sensor-row.cri {
  border-color: rgba(255, 98, 90, 0.25);
  background: rgba(255, 98, 90, 0.05);
}

.wt-sensor-row > span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-sensor-row em {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
  font-style: normal;
}

.wt-sensor-row b {
  font-family: var(--wt-mono);
  font-size: 12px;
  text-align: right;
}

.wt-sensor-row.cri b { color: var(--wt-red); }
.wt-sensor-row.cau b { color: var(--wt-amber); }
.wt-sensor-row.nom b { color: var(--wt-green); }

.wt-sensor-row u {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
  text-align: right;
  text-decoration: none;
}

.wt-sensor-row i {
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 10px;
  font-style: normal;
  text-align: right;
}

/* Detection timeline. */
.wt-timeline {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.wt-tl-item {
  position: relative;
  display: grid;
  gap: 9px;
  grid-template-columns: 12px minmax(0, 1fr);
  padding: 4px 0;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.3s var(--wt-ease),
    transform 0.3s var(--wt-ease);
}

.wt-tl-item.show {
  opacity: 1;
  transform: none;
}

.wt-tl-item:not(:last-child)::before {
  position: absolute;
  top: 14px;
  bottom: -4px;
  left: 5px;
  width: 1px;
  background: var(--wt-line-strong);
  content: "";
}

.wt-tl-dot {
  width: 9px;
  height: 9px;
  margin-top: 3px;
  border: 2px solid var(--wt-dim);
  border-radius: 50%;
  background: #0a0b0a;
}

.wt-tl-item.anchor .wt-tl-dot { border-color: var(--wt-accent); }
.wt-tl-item.bad .wt-tl-dot {
  border-color: var(--wt-red);
  background: var(--wt-red);
}
.wt-tl-item.ok .wt-tl-dot { border-color: var(--wt-green); }

.wt-tl-item b {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.wt-tl-item small {
  display: block;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
}

.wt-tl-item em {
  display: block;
  overflow: hidden;
  color: var(--wt-muted);
  font-size: 9.5px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-tl-item.bad em { color: #ffb4af; }

.wt-detail-actions {
  display: flex;
  flex-shrink: 0;
  gap: 7px;
}

.wt-detail-actions .wt-btn {
  flex: 1;
}

.wt-boundary {
  flex-shrink: 0;
  margin: 0;
  color: var(--wt-dim);
  font-size: 9.5px;
  line-height: 1.5;
}

.wt-boundary code {
  color: var(--wt-muted);
  font-family: var(--wt-mono);
}

/* ---- Evidence ---- */

.wt-evidence {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  grid-template-columns: minmax(0, 1.05fr) 290px 250px;
}

.wt-evb,
.wt-evb-side,
.wt-evb-exports {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 0;
  padding: 11px 12px 12px;
  border: 1px solid var(--wt-line);
  border-radius: 12px;
  background: rgba(16, 17, 16, 0.95);
}

.wt-evb {
  border-color: var(--wt-line-strong);
  background: linear-gradient(165deg, #171816, #0c0d0c);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.wt-evb-head {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wt-evb-id {
  margin-top: 3px;
  font-family: var(--wt-mono);
  font-size: 17px;
  font-weight: 600;
}

.wt-evb-sig {
  padding: 3px 8px;
  border: 1px solid rgba(126, 227, 154, 0.25);
  border-radius: 999px;
  color: #9fe0b3;
  font-family: var(--wt-mono);
  font-size: 9px;
  white-space: nowrap;
}

/* Canonical payload. Rendered as JSON because that is what ships. */
.wt-json {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-height: 0;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  font-family: var(--wt-mono);
  font-size: 12px;
  line-height: 1.95;
}

.wt-json-brace {
  color: var(--wt-dim);
}

.wt-json-line {
  padding-left: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.25s var(--wt-ease),
    transform 0.25s var(--wt-ease);
}

.wt-json-line.show {
  opacity: 1;
  transform: none;
}

.wt-json .k { color: #8fb8e8; }
.wt-json .v { color: #ffc79a; }
.wt-json .p { color: var(--wt-dim); }

.wt-evb-foot {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  gap: 10px;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
}

/* Hash chain. */
.wt-chain {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 3px;
}

.wt-chain-link {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  padding: 5px 8px;
  border: 1px solid var(--wt-line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.3s var(--wt-ease),
    transform 0.3s var(--wt-ease);
}

.wt-chain-link.show {
  opacity: 1;
  transform: none;
}

.wt-chain-idx {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 8.5px;
}

.wt-chain-link b {
  display: block;
  font-size: 10px;
  font-weight: 500;
}

.wt-chain-link code {
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 8.5px;
}

.wt-chain-arrow {
  color: var(--wt-dim);
  font-size: 10px;
}

.wt-chain-root {
  color: var(--wt-green);
  font-family: var(--wt-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.wt-verify {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}

.wt-verify-step {
  display: grid;
  align-items: center;
  gap: 9px;
  grid-template-columns: 17px minmax(0, 1fr);
  padding: 6px 8px;
  border: 1px solid var(--wt-line);
  border-radius: 7px;
  opacity: 0;
  transform: translateX(6px);
  transition:
    opacity 0.3s var(--wt-ease),
    transform 0.3s var(--wt-ease),
    border-color 0.3s;
}

.wt-verify-step.show {
  opacity: 1;
  transform: translateX(0);
}

.wt-verify-step.done {
  border-color: rgba(126, 227, 154, 0.22);
}

.wt-verify-step b {
  display: block;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wt-verify-step small {
  display: block;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
}

.wt-check {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: transparent;
  font-size: 9px;
}

.wt-verify-step.done .wt-check {
  background: rgba(126, 227, 154, 0.15);
  color: var(--wt-green);
}

.wt-stamp {
  display: grid;
  flex-shrink: 0;
  gap: 2px;
  padding: 10px;
  border: 2px solid rgba(126, 227, 154, 0.35);
  border-radius: 10px;
  background: rgba(126, 227, 154, 0.06);
  color: var(--wt-green);
  opacity: 0;
  place-items: center;
  transform: scale(0.94);
  transition:
    opacity 0.45s var(--wt-ease),
    transform 0.45s var(--wt-ease-spring);
}

.wt-stamp.show {
  opacity: 1;
  transform: scale(1);
}

.wt-stamp b {
  font-family: var(--wt-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.wt-stamp small {
  color: #86bd97;
  font-family: var(--wt-mono);
  font-size: 9px;
}

.wt-export-row {
  display: grid;
  align-items: center;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px 10px;
  border: 1px solid var(--wt-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.wt-export-row b {
  font-size: 11px;
  font-weight: 500;
}

.wt-export-row small {
  grid-column: 1;
  color: var(--wt-dim);
  font-family: var(--wt-mono);
  font-size: 9px;
}

.wt-export-row em {
  grid-row: span 2;
  color: var(--wt-accent);
  font-style: normal;
}

.wt-access {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wt-access-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--wt-line);
}

.wt-access-row:last-child {
  border-bottom: 0;
}

.wt-access-row span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.wt-access-row b {
  font-size: 10.5px;
  font-weight: 500;
}

.wt-access-row small {
  color: var(--wt-dim);
  font-size: 9px;
}

.wt-access-row time {
  color: var(--wt-muted);
  font-family: var(--wt-mono);
  font-size: 9px;
  white-space: nowrap;
}

.wt-evb-exports .wt-boundary {
  margin-top: auto;
}

/* ---- Cursor ---- */

.wt-cursor-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

.wt-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--wt-cursor-size);
  height: var(--wt-cursor-size);
  will-change: transform;
}

.wt-cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.wt-cursor-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.15s, transform 0.35s var(--wt-ease-out);
}

.wt-cursor.is-clicking .wt-cursor-ring {
  opacity: 0.6;
  transform: translate(-50%, -50%) scale(2.5);
}

.wt-cursor-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  padding: 4px 8px;
  border: 1px solid var(--wt-line);
  border-radius: 6px;
  background: rgba(10, 11, 10, 0.94);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  color: var(--wt-text);
  font-family: var(--wt-mono);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 0.2s, transform 0.2s var(--wt-ease);
}

.wt-cursor-label.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.wt-click-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: wt-ripple 0.55s var(--wt-ease-out) forwards;
}

/* ---- Linear theater mode ---- */

.wt-theater {
  padding: 32px 0 64px;
  border-top: 1px solid var(--wt-line);
}

.wt-theater-stage {
  max-width: 960px;
  margin: 0 auto;
}

.wt-theater .wt-stage-wrap {
  aspect-ratio: 16 / 9;
  margin: 0;
}

.wt-theater-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.wt-theater-controls button {
  padding: 10px 18px;
  border: 1px solid var(--wt-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--wt-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.wt-theater-controls button:hover {
  border-color: rgba(255, 101, 52, 0.35);
}

/* ---- Animations ---- */

@keyframes wt-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

@keyframes wt-ripple {
  from {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wt-cursor-layer { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .wt-hero-embed {
    width: 100%;
    margin-right: 0;
    transform: none;
  }

  .wt-hero-band .container {
    grid-template-columns: 1fr;
  }

  .wt-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wt-episode-grid {
    grid-template-columns: 1fr;
  }
}

/* Note: the screen layouts inside .wt-canvas are deliberately absent from every
   media query. The canvas is a fixed 1200px surface that is scaled as a whole,
   so its columns are independent of the viewport — restacking them by viewport
   width reflows a design that was already the right shape, just smaller. */
@media (max-width: 640px) {
  .wt-hero-embed .wt-stage-wrap {
    height: auto;
    min-height: 200px;
    max-height: min(52vw, 280px);
  }

  .wt-hero-band {
    padding-top: 48px;
  }

  .wt-filmstrip {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .wt-data-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Design canvas — crisp UI at any stage size (Apple-style scale)
   ========================================================================== */

/* The design surface. Width is fixed so type sits on a known pixel grid at any
   embed size; height is written by walkthrough.js from the stage's own aspect
   ratio, and the value here is only the pre-measurement default. */
.wt-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 750px;
  transform-origin: 0 0;
  will-change: transform;
  /* The homepage hero centres its text, and the laptop screen sits inside it.
     A console is left-aligned; reset it here rather than on every child. */
  text-align: left;
}

.wt-canvas .wt-app {
  width: 100%;
  height: 100%;
}

.wt-avatar {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6534, #ffb14a);
  color: #0a0a09;
  font-family: var(--wt-mono);
  font-size: 9px;
  font-weight: 700;
}

/* ---- Filmstrip ---- */

.wt-filmstrip-band {
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--wt-line);
  overflow: hidden;
}

.wt-filmstrip {
  display: flex;
  gap: 12px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.wt-filmstrip::-webkit-scrollbar {
  display: none;
}

.wt-film-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  padding: 14px 16px;
  border: 1px solid var(--wt-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.25s, transform 0.25s var(--wt-ease), background 0.25s;
}

.wt-film-card:hover,
.wt-film-card.is-on {
  border-color: rgba(255, 101, 52, 0.4);
  background: rgba(255, 101, 52, 0.08);
  transform: translateY(-2px);
}

.wt-film-num {
  display: block;
  margin-bottom: 8px;
  color: var(--wt-accent);
  font-family: var(--wt-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.wt-film-card strong {
  display: block;
  font-family: var(--wt-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.wt-film-card small {
  display: block;
  margin-top: 4px;
  color: var(--wt-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

/* ---- Ingest sync ring ---- */

.wt-sync-ring {
  position: absolute;
  width: 92px;
  height: 92px;
  border: 2px solid transparent;
  border-radius: 50%;
  opacity: 0;
}

.wt-sync-ring.on {
  border-color: rgba(255, 101, 52, 0.25);
  border-top-color: rgba(255, 101, 52, 0.65);
  opacity: 1;
  animation: wt-sync-spin 1.2s linear infinite;
}

.wt-btn-ghost {
  border-color: var(--wt-line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--wt-muted);
}

/* ---- Cursor trail ---- */

.wt-cursor-trail span {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.wt-stage-wrap {
  min-height: 280px;
}

.wt-episode-grid .wt-stage-wrap {
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

@keyframes wt-sync-spin {
  to { transform: rotate(360deg); }
}

