/* canary-local/assets/flash.css — the browser flasher.
   Rides the canary-local design tokens (--canary, --surface, --edge, …);
   only .flash-* classes live here. Dark, like the rest of the Lab.

   Layout: one calm centered column. The flow (connect → hello → pick →
   flash) is the page; reassurance lives in a compact strip underneath.
   #flash itself carries the width cap + gutters — without it the cards
   ran edge-to-edge on wide screens. */

#flash {
  max-width: 720px;
  margin: 28px auto 56px;
  padding: 0 20px;
}

.flash-card {
  border: 1px solid var(--edge);
  background: linear-gradient(180deg, var(--surface-2, #17171a) 0%, #101012 100%);
  border-radius: var(--radius);
  padding: 24px 26px 26px;
  margin: 0 0 16px;
}
.flash-card h2 { font-size: 24px; margin: 4px 0 8px; font-weight: 660; letter-spacing: -0.01em; }
.flash-card h3 { font-size: 16.5px; margin: 0 0 6px; font-weight: 640; }
.flash-flow { min-width: 0; }

.flash-big-emoji { font-size: 46px; line-height: 1; margin-bottom: 6px; }
.flash-chip-emoji { font-size: 38px; line-height: 1; }
.flash-plug { display: inline-block; animation: flash-nudge 2.4s ease-in-out infinite; }
@keyframes flash-nudge { 0%,88%,100% { transform: translateX(0); } 92% { transform: translateX(-6px); } 96% { transform: translateX(0); } }

.flash-connect { text-align: center; }
.flash-connect-btn { font-size: 16px; padding: 13px 26px; margin: 14px 0 8px; }
.flash-connect-hint { margin: 4px 0 0; }
.flash-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }

/* ── download mode: steps + kbd chips + mode badge ─────────────────────── */
.flash-kbd {
  display: inline-block; padding: 1px 8px; margin: 0 2px;
  border: 1px solid var(--edge); border-bottom-width: 2px; border-radius: 7px;
  background: #0c0c0d; color: var(--canary);
  font: 600 12px/1.6 "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}
.flash-dlmode { text-align: left; }
.flash-dlmode-title { font-size: 14px; color: #e0e0e0; margin: 10px 0 4px; font-weight: 560; }
.flash-dlmode-steps { margin-top: 4px; }
.flash-dlmode-details { margin-top: 18px; border-top: 1px solid var(--edge); padding-top: 12px; }
.flash-dlmode-details summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.flash-dlmode-details p { text-align: left; }
.flash-mode {
  display: inline-flex; gap: 7px; align-items: baseline; margin-top: 8px;
  border: 1px solid var(--edge); border-radius: 999px; padding: 3px 12px;
  font-size: 12.5px; color: #cfcfcf; background: rgba(255,255,255,0.02);
}
.flash-mode-dot { font-size: 10px; }
.flash-mode-download .flash-mode-dot { color: var(--canary); }
.flash-mode-running .flash-mode-dot { color: var(--ok); }

/* ── connect / working spinner ─────────────────────────────────────────── */
.flash-working { text-align: center; }
.flash-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--edge); border-top-color: var(--canary);
  animation: flash-spin 0.9s linear infinite; margin: 6px auto 14px;
}
@keyframes flash-spin { to { transform: rotate(360deg); } }
.flash-hidden { display: none !important; }

/* ── chip hello ────────────────────────────────────────────────────────── */
.flash-hello-head { display: flex; gap: 14px; align-items: flex-start; }
.flash-hello-head h2 { margin-top: 0; }
.flash-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.flash-fact {
  border: 1px solid var(--edge); border-radius: 12px; padding: 8px 12px;
  background: rgba(255,255,255,0.02); min-width: 110px;
}
.flash-fact-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.flash-fact-val { display: block; font-size: 14px; margin-top: 2px; word-break: break-word; }
.flash-current { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; color: #cfcfcf; font-size: 14.5px; }
.flash-current-dot { font-size: 11px; }
.flash-dot-ok { color: var(--ok); }
.flash-dot-new { color: var(--signed); }
.flash-tools { margin-top: 14px; }
.flash-check { color: var(--ok); font-weight: 700; }

/* ── firmware picker ───────────────────────────────────────────────────── */
.flash-products { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.flash-product {
  display: flex; align-items: center; gap: 14px; justify-content: space-between;
  border: 1px solid var(--edge); border-radius: 14px; padding: 12px 14px;
  background: rgba(255,255,255,0.015);
}
.flash-product-main { min-width: 0; }
.flash-product-name { font-weight: 620; }
.flash-product-tag { font-size: 13px; margin-top: 2px; }
.flash-product-ver { font-size: 12px; color: var(--canary-deep); margin-top: 4px; min-height: 1em; }
.flash-pick { white-space: nowrap; }
.flash-manifest-state { margin: 6px 0 2px; }
.flash-note { border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin: 8px 0; }
.flash-note-soft { border: 1px solid var(--edge); background: rgba(3,169,244,0.06); color: #bfe6fb; }
.flash-autobackup { display: flex; gap: 8px; align-items: baseline; margin: 14px 0 0; }

.flash-advanced { margin-top: 14px; border-top: 1px solid var(--edge); padding-top: 10px; }
.flash-advanced summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.flash-local { margin: 10px 0; }
.flash-file { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.flash-erase { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #cfcfcf; margin-top: 10px; cursor: pointer; }
.flash-disconnect { margin-top: 4px; }

/* ── confirm ───────────────────────────────────────────────────────────── */
.flash-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.flash-reassure { display: flex; gap: 8px; align-items: baseline; background: rgba(67,160,71,0.08);
  border: 1px solid rgba(67,160,71,0.3); border-radius: 12px; padding: 10px 12px; color: #bfe3c1; }
.flash-shield { font-size: 18px; }

/* ── progress ──────────────────────────────────────────────────────────── */
.flash-stage { font-size: 15px; color: #e7e7e7; margin: 2px 0 12px; }
.flash-bar { height: 12px; border-radius: 999px; background: #0c0c0d; border: 1px solid var(--edge); overflow: hidden; }
.flash-bar-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--canary-deep), var(--canary));
  transition: width 0.25s ease; box-shadow: 0 0 14px rgba(255,212,79,0.4);
}
.flash-progress-meta { margin: 8px 0 2px; }
.flash-reassure-lite { color: var(--muted); }
.flash-log, .flash-rawerr { margin-top: 12px; }
.flash-log summary, .flash-rawerr summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.flash-log pre, .flash-rawerr pre, .flash-console {
  background: #08080a; border: 1px solid var(--edge); border-radius: 10px; padding: 10px;
  font: 12px/1.5 "SF Mono", ui-monospace, Menlo, Consolas, monospace; color: #b9c7b9;
  max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin-top: 8px;
}

/* ── board report (the health check) ───────────────────────────────────── */
.flash-report-sec { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--edge); }
.flash-report-row {
  display: flex; gap: 12px; justify-content: space-between; align-items: baseline;
  padding: 7px 10px; border-radius: 10px; font-size: 14px; margin: 3px 0;
  background: rgba(255,255,255,0.015);
}
.flash-report-label { color: var(--muted); font-size: 13px; white-space: nowrap; }
.flash-report-val { text-align: right; min-width: 0; word-break: break-word; }
.flash-report-val code { font-size: 12.5px; }
.flash-report-ok { border-left: 3px solid var(--ok); }
.flash-report-warn { border-left: 3px solid #fb8c00; background: rgba(251,140,0,0.07); }
.flash-report-map { margin-top: 16px; }
.flash-report-map summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.flash-report-table { margin-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.flash-report-trow {
  display: grid; grid-template-columns: minmax(90px, 1fr) 1.4fr auto auto;
  gap: 12px; padding: 5px 10px; font-size: 12.5px; border-radius: 8px; align-items: baseline;
}
.flash-report-trow:nth-child(odd) { background: rgba(255,255,255,0.02); }
.flash-report-trow code { font-size: 12px; }
.flash-report-trow > :nth-child(3), .flash-report-trow > :nth-child(4) { text-align: right; }
@media (max-width: 560px) {
  .flash-report-trow { grid-template-columns: 1fr auto; }
  .flash-report-trow > :nth-child(2) { display: none; }
}

/* ── flash map + hex peek ──────────────────────────────────────────────── */
.flash-map {
  display: flex; width: 100%; height: 26px; margin-top: 12px;
  border: 1px solid var(--edge); border-radius: 8px; overflow: hidden;
  background: #0a0a0c;
}
.flash-map-seg {
  appearance: none; border: none; padding: 0; margin: 0; cursor: pointer;
  height: 100%; border-right: 1px solid rgba(0,0,0,0.55); min-width: 3px;
  transition: filter 0.15s ease;
}
.flash-map-seg:last-child { border-right: none; }
.flash-map-seg:hover, .flash-map-seg:focus-visible { filter: brightness(1.45); outline: none; }
.flash-map-app     { background: rgba(255,212,79,0.42); }
.flash-map-nvs     { background: rgba(3,169,244,0.38); }
.flash-map-ota     { background: rgba(171,130,255,0.38); }
.flash-map-core    { background: rgba(251,140,0,0.40); }
.flash-map-fs      { background: rgba(67,160,71,0.36); }
.flash-map-witness { background: rgba(240,98,146,0.38); }
.flash-map-data    { background: rgba(255,255,255,0.14); }
.flash-map-free    { background: rgba(255,255,255,0.045); }
.flash-map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.flash-map-key {
  appearance: none; border: none; background: none; padding: 0; cursor: pointer;
  display: inline-flex; gap: 7px; align-items: center;
  font-size: 12px; color: var(--muted); font-family: inherit;
}
button.flash-map-key:hover { color: var(--text); }
.flash-map-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid rgba(255,255,255,0.12); }
.flash-hexpeek { margin-top: 12px; }
.flash-hexpeek-title { font-size: 13px; color: #e0e0e0; margin: 0 0 6px; font-weight: 560; }
.flash-hexdump {
  background: #08080a; border: 1px solid var(--edge); border-radius: 10px;
  padding: 10px 12px; overflow-x: auto;
  font: 11.5px/1.65 "SF Mono", ui-monospace, Menlo, Consolas, monospace; color: #b9c7b9;
}
.flash-hexline { display: flex; gap: 14px; white-space: pre; }
.flash-hexaddr { color: var(--muted); }
.flash-hexbytes { color: #d6c98a; }
.flash-hexascii { color: #8fa88f; }
@media (max-width: 560px) { .flash-hexascii { display: none; } }

/* ── live write map (install progress) ─────────────────────────────────── */
.flash-livemap { margin: 2px 0 12px; }
.flash-livemap .flash-map-seg { cursor: default; }
.flash-map-pending { filter: brightness(0.35) saturate(0.6); }
.flash-map-active { animation: flash-writing 0.9s ease-in-out infinite alternate; }
@keyframes flash-writing { from { filter: brightness(0.9); } to { filter: brightness(1.7); } }
.flash-livemap-label { margin: 6px 0 0; min-height: 1.2em; }
.flash-note-kept { border: 1px solid rgba(67,160,71,0.35); background: rgba(67,160,71,0.08); color: #bfe3c1; }
.flash-done .flash-report-sec { text-align: left; }
@media (prefers-reduced-motion: reduce) { .flash-map-active { animation: none; filter: brightness(1.4); } }

/* ── serial monitor ────────────────────────────────────────────────────── */
.flash-console-tall { max-height: 380px; min-height: 220px; }
.flash-mon-status { font-size: 13.5px; }
.flash-mon-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flash-mon-baud { display: flex; gap: 10px; align-items: center; margin-top: 12px; cursor: pointer; }
.flash-mon-baud select {
  background: #0c0c0d; border: 1px solid var(--edge); border-radius: 9px;
  color: var(--text); padding: 6px 10px; font-size: 13px;
}

/* ── rescue ────────────────────────────────────────────────────────────── */
.flash-rescue-choice {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--edge); border-radius: 14px; padding: 12px 14px;
  background: rgba(255,255,255,0.015);
}
.flash-rescue-choice input { margin-top: 4px; }
.flash-rescue-restore { margin-top: 18px; border-top: 1px solid var(--edge); padding-top: 14px; }
.flash-mon-input { display: flex; gap: 8px; margin-top: 10px; }
.flash-mon-input input {
  flex: 1; min-width: 0; background: #0c0c0d; border: 1px solid var(--edge);
  border-radius: 10px; color: var(--text); padding: 9px 12px;
  font: 13px/1.4 "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}
.flash-mon-input input:focus { outline: none; border-color: var(--canary-deep); }
.flash-console-ok { display: flex; gap: 8px; align-items: baseline; color: var(--ok); margin-top: 8px; }

/* ── done ──────────────────────────────────────────────────────────────── */
.flash-done { text-align: center; }
.flash-done .flash-row { justify-content: center; }
.flash-done-bird { font-size: 52px; animation: flash-pop 0.5s cubic-bezier(0.2,1.4,0.4,1) both; }
@keyframes flash-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── error ─────────────────────────────────────────────────────────────── */
.flash-error { border-color: rgba(251,140,0,0.4); }
.flash-steps { margin: 10px 0 4px; padding-left: 20px; color: #d7d7d7; }
.flash-steps li { margin: 5px 0; }

/* ── the reassurance strip (compact, under the flow) ───────────────────── */
.flash-reassure-strip { margin-top: 6px; }
.flash-reassure-strip .flash-card { padding: 14px 18px; }
.flash-promise { border-color: rgba(255,212,79,0.32); background:
  linear-gradient(180deg, rgba(255,212,79,0.05), rgba(16,16,18,1) 70%); }
.flash-promise summary {
  cursor: pointer; display: flex; gap: 10px; align-items: center;
  font-weight: 620; font-size: 15px; list-style-position: outside;
}
.flash-promise-badge { font-size: 22px; }
.flash-promise p { margin-top: 12px; }
.flash-checklist { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; }
.flash-checklist li { display: flex; gap: 9px; align-items: baseline; font-size: 13.5px; color: #d7d7d7; }
.flash-recovery summary { cursor: pointer; font-weight: 560; font-size: 14px; }
.flash-recovery-row { margin: 10px 0; }
.flash-recovery-when { font-size: 13px; font-weight: 560; margin: 0 0 2px; color: #e7e7e7; }
.flash-privacy { opacity: 0.75; }

/* ── receipts + trust card ─────────────────────────────────────────────── */
.flash-receipts { margin-top: 16px; text-align: left; }
.flash-receipts summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.flash-receipts-body { border-top: none; padding-top: 6px; margin-top: 6px; }
.flash-trust summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.flash-trust-sec { margin: 14px 0 0; }
.flash-trust-sec h3 { font-size: 14.5px; margin: 0 0 4px; font-weight: 620; }
.flash-trust-sec p { font-size: 13.5px; line-height: 1.55; margin: 4px 0; }
.flash-trust .flash-checklist li { font-size: 13px; }

/* ── WiFi chooser (confirm card) ───────────────────────────────────────── */
.flash-wifi { margin: 16px 0 4px; border-top: 1px solid var(--edge); padding-top: 14px; }
.flash-wifi-inputs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.flash-wifi-inputs input {
  flex: 1; min-width: 180px; background: #0c0c0d; border: 1px solid var(--edge);
  border-radius: 10px; color: var(--text); padding: 9px 12px; font-size: 14px;
}
.flash-wifi-inputs input:focus { outline: none; border-color: var(--canary-deep); }
.flash-wifi-qr { margin-top: 12px; text-align: center; }
.flash-wifi-qr svg { background: #fff; border-radius: 10px; padding: 2px; }

/* ── the layers tour ───────────────────────────────────────────────────── */
.flash-story {
  margin: 18px 0 6px; border: 1px solid var(--edge); border-radius: 14px;
  padding: 14px 16px 12px; background: rgba(255,255,255,0.015);
}
.flash-story-kicker {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted); margin: 0 0 10px;
}
.flash-story-stage { min-height: 232px; }
.flash-story-slide { animation: flash-slidein 0.45s ease both; }
@keyframes flash-slidein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.flash-story-slide h3 { font-size: 15.5px; margin: 12px 0 4px; font-weight: 640; }
.flash-story-slide p { font-size: 13.5px; line-height: 1.55; margin: 0; }
.flash-story-dots { display: flex; gap: 7px; margin-top: 12px; justify-content: center; }
.flash-story-dot {
  appearance: none; border: none; padding: 0; cursor: pointer;
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.16);
}
.flash-story-dot-on { background: var(--canary); }

/* slide visuals — one calm animation each */
.flash-sv { position: relative; height: 96px; display: flex; align-items: center; justify-content: center; gap: 10px; overflow: hidden; }
.flash-sv-bird-emoji { font-size: 44px; z-index: 1; }
.flash-sv-bird-ring {
  position: absolute; width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid rgba(255,212,79,0.5); animation: flash-svring 2.4s ease-out infinite;
}
@keyframes flash-svring { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }

.flash-sv-stack { flex-direction: column; gap: 4px; }
.flash-sv-layer {
  width: min(340px, 90%); text-align: center; border-radius: 8px;
  font-size: 12px; color: #101012; font-weight: 620; padding: 5px 8px;
}
.flash-sv-layer-glow { box-shadow: 0 0 18px rgba(255,212,79,0.35); }
.flash-sv-stack .flash-map-data { color: #cfcfcf; }

.flash-sv-loop, .flash-sv-hex { flex-direction: column; gap: 6px; height: auto; min-height: 96px; }
.flash-sv-code {
  background: #08080a; border: 1px solid var(--edge); border-radius: 10px;
  padding: 8px 12px; margin: 0; font: 11.5px/1.6 "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color: #b9c7b9; width: min(360px, 100%); overflow-x: auto;
}
.flash-sv-codeline { border-radius: 4px; padding: 0 4px; white-space: pre; }
.flash-sv-codeline:nth-child(2) { animation: flash-svline 3.2s linear infinite 0s; }
.flash-sv-codeline:nth-child(3) { animation: flash-svline 3.2s linear infinite 0.8s; }
.flash-sv-codeline:nth-child(4) { animation: flash-svline 3.2s linear infinite 1.6s; }
.flash-sv-codeline:nth-child(5) { animation: flash-svline 3.2s linear infinite 2.4s; }
@keyframes flash-svline {
  0%, 22% { background: rgba(255,212,79,0.16); }
  25%, 100% { background: transparent; }
}
.flash-sv-counter { margin: 0; }
.flash-sv-hexlines { color: #d6c98a; white-space: pre; }

.flash-sv-gate { font: 600 12.5px/1 "SF Mono", ui-monospace, Menlo, monospace; }
.flash-sv-in, .flash-sv-out {
  border: 1px solid var(--edge); border-radius: 8px; padding: 7px 10px;
  color: var(--muted); transition: all 0.25s ease;
}
.flash-sv-and {
  border: 1px solid rgba(255,212,79,0.4); border-radius: 10px; padding: 10px 12px;
  color: var(--canary);
}
.flash-sv-hot { color: #101012; background: var(--canary); border-color: var(--canary); }

.flash-sv-cell { flex-direction: column; gap: 6px; height: auto; min-height: 96px; }
.flash-sv-cellwall { width: 150px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(191,230,251,0.8), transparent); }
.flash-sv-cellbox {
  width: 150px; height: 44px; border: 1px solid var(--edge); border-radius: 8px;
  position: relative; background: rgba(3,169,244,0.05);
}
.flash-sv-electron {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #bfe6fb; box-shadow: 0 0 8px rgba(191,230,251,0.9);
  animation: flash-svtunnel 3s ease-in infinite;
}
.flash-sv-electron:nth-child(1) { left: 18%; animation-delay: 0s; }
.flash-sv-electron:nth-child(2) { left: 38%; animation-delay: 0.6s; }
.flash-sv-electron:nth-child(3) { left: 55%; animation-delay: 1.2s; }
.flash-sv-electron:nth-child(4) { left: 70%; animation-delay: 1.8s; }
.flash-sv-electron:nth-child(5) { left: 84%; animation-delay: 2.4s; }
@keyframes flash-svtunnel {
  0% { top: -26px; opacity: 0; }
  30% { top: -10px; opacity: 1; }
  50% { top: 8px; opacity: 0.4; }  /* inside the wall: half-there (tunneling) */
  70%, 100% { top: 26px; opacity: 1; }
}

.flash-sv-wave { }
.flash-sv-antenna { font-size: 30px; z-index: 1; }
.flash-sv-ring {
  position: absolute; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,212,79,0.55); animation: flash-svwave 2.7s linear infinite;
}
@keyframes flash-svwave { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(4.4); opacity: 0; } }

.flash-sv-ladder { flex-wrap: wrap; font-size: 13px; color: #d7d7d7; }
.flash-sv-rung {
  border: 1px solid var(--edge); border-radius: 999px; padding: 5px 12px;
  animation: flash-svrung 3.4s ease-in-out infinite;
}
.flash-sv-rung-arrow { color: var(--muted); }
@keyframes flash-svrung {
  0%, 100% { border-color: var(--edge); color: #d7d7d7; }
  10%, 20% { border-color: var(--canary); color: var(--canary); }
}

@media (prefers-reduced-motion: reduce) {
  .flash-story-slide, .flash-sv-bird-ring, .flash-sv-ring, .flash-sv-electron,
  .flash-sv-codeline, .flash-sv-rung { animation: none; }
  .flash-sv-electron { top: 12px; }
}

/* ── unsupported browser: the hop + the rig ────────────────────────────── */
.flash-hop { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0 8px; }
.flash-hop-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flash-hop-icon { font-size: 40px; line-height: 1; display: flex; align-items: center; justify-content: center; height: 44px; }
.flash-hop-label { font-size: 12px; color: var(--muted); }
.flash-hop-to .flash-hop-label { color: var(--text); }
.flash-hop-arrow {
  font-size: 30px; color: var(--canary);
  animation: flash-hoparrow 1.6s ease-in-out infinite;
}
@keyframes flash-hoparrow { 0%,100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
.flash-hop-actions { justify-content: center; }
.flash-unsupported { text-align: center; }
.flash-unsupported .flash-note { text-align: left; }
.flash-rig { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0 4px; }
.flash-rig-item { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.flash-rig-icon { font-size: 34px; line-height: 1; position: relative; }
.flash-rig-label { font-size: 11.5px; color: var(--muted); max-width: 110px; }
.flash-rig-badge {
  position: absolute; right: -7px; bottom: -4px; background: #fff; border-radius: 50%;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px #101012;
}
.flash-rig-cable { display: flex; align-items: center; margin-bottom: 18px; }
.flash-rig-wire { width: clamp(40px, 12vw, 110px); height: 2px; background: var(--canary-deep); }
.flash-rig-plug { width: 7px; height: 10px; border-radius: 2px; background: var(--canary-deep); }
@media (prefers-reduced-motion: reduce) { .flash-hop-arrow { animation: none; } }

/* ── confetti ──────────────────────────────────────────────────────────── */
.flash-confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.flash-confetti-bit {
  position: absolute; top: -6%; font-size: 20px;
  animation: flash-fall 2.4s ease-in forwards;
}
@keyframes flash-fall {
  to { transform: translate(var(--drift, 0), 108vh) rotate(320deg); opacity: 0.15; }
}
@media (prefers-reduced-motion: reduce) {
  .flash-plug, .flash-spinner, .flash-done-bird, .flash-confetti-bit, .flash-bar-fill { animation: none; }
  .flash-confetti { display: none; }
}

/* ── the WE2 module flow (we2-flash.js) ─────────────────────────────────── */
.flash-module-card { display: flex; flex-direction: column; gap: 5px; text-align: left; width: 100%;
  margin-top: 18px; border: 1px dashed #3a4150; border-radius: 14px; background: rgba(124, 220, 255, 0.04);
  color: var(--text); padding: 14px 16px; cursor: pointer; font: inherit; transition: border-color .15s; }
.flash-module-card:hover { border-color: var(--canary); }
.flash-module-icon { font-size: 22px; }
.flash-module-card .muted { font-size: 13px; }
.we2-flow .wap-facts { grid-template-columns: 1fr; }
.we2-btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.we2-src { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.we2-src-card { display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); }
.we2-src-card:hover { border-color: var(--canary); }
.we2-log { margin-top: 12px; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #b9c2cc; background: #0c0d10; border: 1px solid #22242a; border-radius: 10px;
  padding: 10px 12px; max-height: 180px; overflow-y: auto; white-space: pre-wrap; }
.we2-bench { margin-top: 22px; border-top: 1px solid var(--edge); padding-top: 16px; }
.we2-preview { margin-top: 12px; border: 1px solid #23252b; border-radius: 10px; overflow: hidden;
  background: #08090b; min-height: 120px; display: flex; align-items: center; justify-content: center; }
.we2-preview-cv { display: block; max-width: 100%; image-rendering: pixelated; }
@media (max-width: 700px) { .we2-src { grid-template-columns: 1fr; } }
