/* Helio-3 public site — design.md tokens, instrument-lab chrome */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("https://ldeluipy.es/fonts/ibm-plex-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("https://ldeluipy.es/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --void: #070b0a;
  --panel: #0e1612;
  --panel-edge: #1a3d24;
  --ink: #e8f5e9;
  --muted: #8fa896;
  --neon: #39ff14;
  --neon-dim: #1fbf0a;
  --teal: #2ec4b6;
  --warn: #ffb454;
  --border: rgba(57, 255, 20, 0.16);
  --glow: rgba(57, 255, 20, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: min(1160px, 92vw);
  --nav-h: 3.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(57, 255, 20, 0.07), transparent 58%),
    radial-gradient(700px 420px at 100% 0%, rgba(46, 196, 182, 0.05), transparent 55%),
    var(--void);
}

.field-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.7;
}

.site-nav,
main,
.site-foot,
.sticky-actions {
  position: relative;
  z-index: 1;
}

::selection {
  background: var(--neon);
  color: var(--void);
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--neon); }

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
  padding-inline: max(4vw, 1rem);
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 10, 0.82);
  backdrop-filter: blur(10px);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon);
  text-decoration: none;
}

.brand:hover { color: var(--neon); }

.brand-ver {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 500;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--neon);
  border-color: var(--border);
  background: rgba(57, 255, 20, 0.04);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--neon-dim);
  background: rgba(57, 255, 20, 0.1);
  color: var(--neon);
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.12s var(--ease);
  text-decoration: none;
}

.btn:hover {
  background: rgba(57, 255, 20, 0.18);
  color: var(--neon);
  transform: translateY(-1px);
}

.btn.secondary {
  border-color: rgba(143, 168, 150, 0.35);
  background: transparent;
  color: var(--ink);
  font-weight: 500;
}

.btn.secondary:hover {
  border-color: var(--border);
  color: var(--ink);
  background: rgba(14, 22, 18, 0.6);
}

/* —— Landing hero —— */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 40px rgba(57, 255, 20, 0.25);
}

.hero-lead {
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.terminal-line {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--neon);
  letter-spacing: 0.06em;
}

.terminal-line .prompt { color: var(--teal); margin-right: 0.35rem; }

.cursor-blink {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.15rem;
  vertical-align: text-bottom;
  background: var(--neon);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-sub {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.reactor-emblem {
  width: min(240px, 58vw);
  margin: 0.25rem 0 0.85rem;
  filter: drop-shadow(0 0 28px rgba(57, 255, 20, 0.22));
}

.emblem-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.emblem-float {
  transform-origin: 100px 100px;
  animation: emblem-levitate 3.5s ease-in-out infinite;
}

.emblem-halo {
  fill: rgba(57, 255, 20, 0.06);
  animation: emblem-halo-pulse 2.6s ease-in-out infinite;
}

.emblem-ring {
  fill: none;
  transform-origin: 100px 100px;
}

.emblem-ring-outer {
  stroke: rgba(57, 255, 20, 0.85);
  stroke-width: 3;
  animation: emblem-spin 26s linear infinite;
}

.emblem-ring-teal {
  stroke: rgba(46, 196, 182, 0.5);
  stroke-width: 1.6;
  animation: emblem-spin-rev 40s linear infinite;
}

.emblem-ring-dash {
  stroke: rgba(31, 191, 10, 0.55);
  stroke-width: 2;
  stroke-dasharray: 7 9;
  animation: emblem-spin 14s linear infinite;
}

.emblem-ticks line {
  stroke: rgba(31, 191, 10, 0.22);
  stroke-width: 1;
  transform-origin: 100px 100px;
  animation: emblem-spin 48s linear infinite;
}

.emblem-core-glow {
  fill: rgba(57, 255, 20, 0.18);
  animation: emblem-core-pulse 2s ease-in-out infinite;
}

.emblem-core-mid {
  fill: rgba(57, 255, 20, 0.34);
}

.emblem-core-hot {
  fill: #e8f5e9;
  animation: emblem-core-pulse 2s ease-in-out infinite;
}

.emblem-orbit {
  transform-origin: 100px 100px;
}

.emblem-orbit-a {
  animation: emblem-spin 9s linear infinite;
}

.emblem-orbit-b {
  animation: emblem-spin-rev 13s linear infinite;
}

.emblem-orbit-c {
  animation: emblem-spin 18s linear infinite;
}

.emblem-electron {
  fill: #39ff14;
  filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.65));
}

.emblem-electron-teal {
  fill: #2ec4b6;
  filter: drop-shadow(0 0 6px rgba(46, 196, 182, 0.55));
}

.emblem-electron-warn {
  fill: #ffb454;
  filter: drop-shadow(0 0 6px rgba(255, 180, 84, 0.5));
}

@keyframes emblem-levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

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

@keyframes emblem-spin-rev {
  to { transform: rotate(-360deg); }
}

@keyframes emblem-halo-pulse {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes emblem-core-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .emblem-float,
  .emblem-ring,
  .emblem-ticks line,
  .emblem-orbit,
  .emblem-halo,
  .emblem-core-glow,
  .emblem-core-hot,
  .cursor-blink {
    animation: none !important;
  }

  .field-bg {
    opacity: 0.35;
  }
}

.hero-stats {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(14, 22, 18, 0.65);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.hero-stats li {
  padding: 0.28rem 0;
  color: var(--muted);
}

.hero-stats li + li { border-top: 1px solid rgba(57, 255, 20, 0.06); }

.hero-stats .k {
  color: var(--teal);
  margin-right: 0.5rem;
}

.shot-frame {
  margin: 0;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(57, 255, 20, 0.05),
    0 20px 50px rgba(0, 0, 0, 0.4);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.shot-cap,
.shot-frame > figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 10, 0.8);
}

.shot-frame-hero { max-width: 540px; margin-inline: auto; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 900px) {
  .shot-grid { grid-template-columns: 1fr; }
}

.loop-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.loop-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.04), transparent 28%), var(--panel);
}

.step-n {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 0.1em;
  padding-top: 0.15rem;
}

.loop-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 500;
}

.loop-steps p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.section-panel {
  border-block: 1px solid var(--border);
  background: rgba(14, 22, 18, 0.45);
}

.hud-map {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.65rem;
  min-height: 220px;
}

@media (max-width: 760px) {
  .hud-map { grid-template-columns: 1fr; }
}

.hud-col {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--panel);
}

.hud-center {
  border-color: var(--panel-edge);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.08);
}

.hud-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.hud-col ul {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.hud-col li { margin: 0.25rem 0; }

.cta-band {
  padding-bottom: 1rem;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.06), transparent 50%), var(--panel);
}

.cta-inner h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon);
}

.cta-inner p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.92rem;
}

/* —— Sections —— */
.section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-head {
  max-width: 44ch;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.sig-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 820px) {
  .sig-grid { grid-template-columns: 1fr; }
}

.sig-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(57, 255, 20, 0.03), transparent 40%), var(--panel);
}

.sig-card .idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-dim);
  letter-spacing: 0.1em;
}

.sig-card h3 {
  margin: 0.5rem 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 500;
}

.sig-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.controls-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.controls-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.controls-panel th,
.controls-panel td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(57, 255, 20, 0.08);
}

.controls-panel th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(57, 255, 20, 0.03);
}

.controls-panel tr:last-child td,
.controls-panel tr:last-child th { border-bottom: none; }

.controls-panel td:first-child {
  font-family: var(--font-mono);
  color: var(--neon);
  white-space: nowrap;
}

.controls-panel td:last-child { color: var(--muted); }

.shot-aside { margin-bottom: 0.75rem; }

.shot-aside img { width: 100%; }
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: center;
}

/* —— Survey page —— */
.survey-hero {
  padding: 2rem 0 1.25rem;
}

.survey-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--neon);
}

.survey-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--neon-dim);
  background: rgba(57, 255, 20, 0.04);
}

.progress-bar {
  margin: 1.25rem 0 1.75rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(143, 168, 150, 0.15);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-dim), var(--neon));
  box-shadow: 0 0 12px var(--glow);
  transition: width 0.25s var(--ease);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.survey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 5rem;
}

@media (max-width: 960px) {
  .survey-layout { grid-template-columns: 1fr; }
  .survey-aside { order: -1; }
}

.survey-aside {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.aside-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}

.aside-card h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}

.aside-card p,
.aside-card li {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.aside-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.aside-card li { margin: 0.25rem 0; }

details.block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

details.block > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  user-select: none;
}

details.block > summary::-webkit-details-marker { display: none; }

details.block > summary::before {
  content: "▸";
  color: var(--neon-dim);
  flex-shrink: 0;
}

details.block[open] > summary::before { content: "▾"; }

details.block > summary:hover { background: rgba(57, 255, 20, 0.04); }

details.block.guide > summary { color: var(--teal); }

.block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--neon);
  background: rgba(57, 255, 20, 0.06);
}

.block-body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid rgba(57, 255, 20, 0.08);
}

.muted { color: var(--muted); font-size: 0.92rem; }

label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-size: 0.92rem;
}

label:first-child { margin-top: 0.85rem; }

label .hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: normal;
}

textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(143, 168, 150, 0.3);
  background: #0a100e;
  color: var(--ink);
  font: inherit;
  min-height: 108px;
  resize: vertical;
  line-height: 1.45;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea:focus {
  outline: none;
  border-color: var(--neon-dim);
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

textarea.tall { min-height: 148px; }

.example {
  border-left: 3px solid var(--neon-dim);
  padding: 0.75rem 0.9rem;
  margin: 0.75rem 0;
  background: rgba(57, 255, 20, 0.03);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
}

.example.bad {
  border-left-color: var(--warn);
  background: rgba(255, 180, 84, 0.06);
}

.example strong { color: var(--neon); }
.example.bad strong { color: var(--warn); }

ul.compact { margin: 0.5rem 0; padding-left: 1.15rem; }
ul.compact li { margin: 0.3rem 0; }

.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.85rem max(4vw, 1rem);
  border-top: 1px solid var(--border);
  background: rgba(7, 11, 10, 0.92);
  backdrop-filter: blur(10px);
}

.sticky-actions .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
}

.sticky-actions .hint-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

#exportBox {
  display: none;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0a100e;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow: auto;
}

#exportBox.visible { display: block; }

.toast {
  position: fixed;
  bottom: 5.5rem;
  right: max(4vw, 1rem);
  z-index: 50;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--neon-dim);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.show { opacity: 1; }
