/* ---------------------------------------------------------------------------
   Actor Screen Flasher
   A small retro game-manual aesthetic: warm near-black paper, foil-gold ink,
   a pixel wordmark, bordered panels standing in for console windows.
--------------------------------------------------------------------------- */

:root {
  color-scheme: dark;

  --bg: oklch(16% 0.016 55);
  --bg-raised: oklch(21% 0.02 55);
  --bg-sunken: oklch(12% 0.014 55);

  --ink: oklch(93% 0.018 75);
  --ink-dim: oklch(72% 0.02 65);
  --ink-faint: oklch(52% 0.02 60);

  /* Text colour for a step that isn't available yet. Deliberately well below
     the WCAG AA floor against --bg: the intent is that a step you cannot use
     yet recedes rather than being read, so it is a hint that something follows
     rather than content competing for attention.

     That is a considered choice rather than an oversight, and it costs nothing
     to assistive technology: each step's reason lives in a visually-hidden
     paragraph referenced by aria-describedby, so a screen reader is told why a
     control is unavailable no matter how faint the visuals are. The controls
     themselves are separately `disabled`, so the dimming is never the only
     thing conveying that they cannot be used. */
  --ink-unavailable: oklch(34% 0.018 62);
  --ink-dim-unavailable: oklch(29% 0.016 60);

  --gold: oklch(80% 0.15 85);
  --gold-strong: oklch(88% 0.16 90);
  --gold-dim: oklch(58% 0.1 85);
  --teal: oklch(74% 0.09 195);
  --danger: oklch(68% 0.17 30);

  --border: oklch(33% 0.025 60);
  --border-soft: oklch(27% 0.02 58);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Silkscreen", monospace;
  --font-body: "Literata", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at top left, oklch(23% 0.025 60 / 0.6), transparent 55%),
    radial-gradient(ellipse at bottom right, oklch(19% 0.02 250 / 0.25), transparent 60%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 5vw, 3rem) clamp(1.25rem, 6vw, 3.5rem) clamp(3rem, 8vw, 5rem);
}

/* Below the configuration by default; beside it once there's room for both
   without squeezing the steps themselves — see the max-width above. */
.layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 64rem) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .device-sim {
    position: sticky;
    top: 2rem;
  }
}

a {
  color: var(--teal);
}

a:hover,
a:focus-visible {
  color: color-mix(in oklch, var(--teal) 80%, white);
}

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.82em;
  letter-spacing: -0.01em;
}

/* Visually hidden but still announced by assistive tech — used to keep an
   unavailable step's reason perceivable once it stops being a visible sentence. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Masthead ------------------------------------------------------------ */

.masthead {
  padding-block-end: clamp(2.5rem, 6vw, 4rem);
  animation: rise 0.6s var(--ease-out-expo) both;
}

.eyebrow {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.wordmark {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--gold-strong);
  text-shadow: 0 2px 0 oklch(10% 0.02 55);
  max-width: 14ch;
}

.tagline {
  max-width: 42ch;
  margin: 0;
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.banner {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border: 2px solid var(--gold-dim);
  background: color-mix(in oklch, var(--gold) 10%, var(--bg-raised));
  color: var(--ink);
  font-size: 0.92rem;
  max-width: 48ch;
}

/* --- Steps ----------------------------------------------------------------- */

main {
  display: grid;
  gap: clamp(3rem, 7vw, 4.5rem);
}

.step {
  position: relative;
  padding-block-start: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border-soft);
}

.step__number {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--gold-dim);
  opacity: 0.85;
  transition: opacity 0.4s var(--ease-out-expo);
}

.step__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--ink);
  transition: color 0.4s var(--ease-out-expo);
}

.step__lede {
  margin: 0 0 1.5rem;
  max-width: 52ch;
  color: var(--ink-dim);
  transition: color 0.4s var(--ease-out-expo);
}

.step__lede--error {
  color: color-mix(in oklch, var(--danger) 75%, var(--ink-dim));
}

.step__badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5em;
  font-family: var(--font-display);
  font-size: 0.55em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  padding: 0.2em 0.5em;
}

/* A step whose prerequisites aren't met yet: recoloured rather than faded, so
   its title and lede recede (see --ink-unavailable above) while reading
   as clearly duller than a step you can actually use. The controls inside are
   separately marked `disabled` in the markup — this class only carries the
   visual signal, never the interaction gate. */
.step--unavailable {
  --ink: var(--ink-unavailable);
  --ink-dim: var(--ink-dim-unavailable);
  --ink-faint: var(--ink-dim-unavailable);
}

/* Notes inside an unavailable step recede with it. Their emphasis is normally
   picked out in gold, which would otherwise be the brightest thing on a step
   the user cannot use yet. */
.step--unavailable .step__note strong {
  color: inherit;
  font-weight: 500;
}

.step--unavailable .step__number {
  opacity: 0.25;
}

/* --- Add-character form ----------------------------------------------------- */

.add-form__label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.add-form__row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

input[type="text"],
input[type="password"] {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.7rem 0.9rem;
  background: var(--bg-sunken);
  border: 2px solid var(--border);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

input[type="text"]:focus-visible,
input[type="password"]:focus-visible {
  border-color: var(--gold);
}

input::placeholder {
  color: var(--ink-faint);
}

input:disabled {
  cursor: not-allowed;
  background: var(--bg-raised);
  border-color: var(--border-soft);
  color: var(--ink-faint);
}

input:disabled::placeholder {
  color: var(--ink-faint);
}

button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--gold-dim);
  background: var(--gold);
  color: oklch(18% 0.02 60);
  padding: 0.7rem 1.3rem;
  cursor: pointer;
  transition:
    transform 0.15s var(--ease-out-expo),
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

button:hover:not(:disabled) {
  background: var(--gold-strong);
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  cursor: not-allowed;
  background: var(--bg-raised);
  border-color: var(--border-soft);
  color: var(--ink-faint);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.button--ghost:hover:not(:disabled) {
  background: var(--bg-raised);
  color: var(--ink);
}

.button--primary {
  background: var(--gold);
}

.field-status {
  min-height: 1.4em;
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.field-status--pending {
  color: var(--teal);
}

.field-status--error {
  color: var(--danger);
}

/* --- Sprite stages (shared by preview + roster cards) ----------------------- */

.stage-canvas {
  image-rendering: pixelated;
  display: block;
  background: #000;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* --- Preview panel ----------------------------------------------------------- */

.preview[hidden] {
  display: none;
}

.preview {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-raised);
  border: 2px solid var(--gold-dim);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.75rem;
  align-items: center;
  animation: rise 0.4s var(--ease-out-expo) both;
}

.preview__stage {
  width: clamp(96px, 22vw, 160px);
}

.preview__meta {
  display: grid;
  gap: 0.15rem;
}

.preview__name {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.preview__id,
.preview__pds {
  margin: 0;
  color: var(--ink-dim);
}

.preview__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- Restore status / issues --------------------------------------------------- */

.restore-issues {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  animation: rise 0.3s var(--ease-out-expo) both;
}

.restore-issues[hidden] {
  display: none;
}

.restore-issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-sunken);
  border: 2px solid color-mix(in oklch, var(--danger) 55%, var(--border));
}

.restore-issue__message {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

/* --- Roster ------------------------------------------------------------------ */

.roster {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1.25rem;
}

.card {
  container-type: inline-size;
  background: var(--bg-raised);
  border: 2px solid var(--border);
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
  animation: rise 0.35s var(--ease-out-expo) both;
}

.card__stage {
  position: relative;
  width: 60%;
  margin-inline: auto;
}

.card__badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--gold);
  color: oklch(18% 0.02 60);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.4rem;
}

.card__meta {
  text-align: center;
  display: grid;
  gap: 0.15rem;
}

.card__name {
  margin: 0;
  font-weight: 600;
}

.card__id,
.card__pds {
  margin: 0;
  color: var(--ink-faint);
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.card__controls {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.card__controls button {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  line-height: 1;
}

.card__remove {
  border-color: color-mix(in oklch, var(--danger) 60%, var(--border));
  background: transparent;
  color: var(--ink-dim);
}

.card__remove:hover:not(:disabled) {
  background: color-mix(in oklch, var(--danger) 20%, var(--bg-raised));
  color: var(--ink);
}

.card__move {
  background: transparent;
  color: var(--ink-dim);
  border-color: var(--border);
}

.card__move:hover:not(:disabled) {
  background: var(--bg-sunken);
}

/* --- Location step ------------------------------------------------------------- */

.location-candidates {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  animation: rise 0.3s var(--ease-out-expo) both;
}

.location-candidate {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.65rem 0.9rem;
  background: var(--bg-sunken);
  border: 2px solid var(--border);
  color: var(--ink);
  font-weight: 400;
  text-align: left;
}

.location-candidate:hover {
  background: var(--bg-raised);
  border-color: var(--gold-dim);
  transform: none;
}

.location-candidate__name {
  font-weight: 600;
}

.location-candidate__context {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.location-preview,
.location-confirmed {
  margin-top: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-raised);
  border: 2px solid var(--gold-dim);
  display: grid;
  gap: 0.3rem;
  animation: rise 0.35s var(--ease-out-expo) both;
}

.location-preview__name,
.location-confirmed__name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.location-preview__context {
  margin: 0;
  color: var(--ink-dim);
}

.location-preview__coords,
.location-confirmed__coords {
  margin: 0;
  color: var(--ink-faint);
}

.location-preview__actions,
.location-confirmed__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

/* --- Flashing ------------------------------------------------------------------ */

.flash-control {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.progress {
  margin-top: 1.25rem;
  max-width: 32rem;
}

.progress__bar {
  height: 0.6rem;
  width: 0;
  background: var(--gold);
  transition: width 0.2s ease-out;
}

.progress::before {
  content: "";
  display: block;
  height: 0.6rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  margin-bottom: -0.6rem;
}

.progress__label {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

.flash-log {
  margin-top: 1.25rem;
  max-height: 14rem;
  overflow-y: auto;
  padding: 1rem;
  background: var(--bg-sunken);
  border: 1px solid var(--border-soft);
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: pre-wrap;
}

/* --- Wi-Fi step ------------------------------------------------------------------ */

.wifi-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  max-width: 26rem;
}

.wifi-form label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.wifi-form button {
  margin-top: 0.5rem;
  justify-self: start;
}

.device-link[hidden] {
  /* An author rule with a display value outranks the UA's [hidden] rule, so
     without this the link shows even while hidden. The same trap caught
     .preview earlier. */
  display: none;
}

.device-link {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

/* --- Device simulator ---------------------------------------------------- */

.device-sim {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.5rem;
  background: var(--bg-raised);
  border: 2px solid var(--gold-dim);
  animation: rise 0.4s var(--ease-out-expo) both;
}

.device-sim__frame {
  position: relative;
  width: min(100%, 20rem);
  margin-inline: auto;
  aspect-ratio: 1;
}

.device-sim__frame svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* device.svg's #screen is a 213.519 square at (35.057, 35.057), corner radius
   27.914, inside a 283.633 viewBox — expressed here as percentages of the
   frame so the overlay tracks the SVG at any size, no resize observer needed. */
.device-sim__canvas,
.device-sim__message {
  position: absolute;
  left: 12.359%;
  top: 12.359%;
  width: 75.281%;
  height: 75.281%;
  border-radius: 13.078%;
  /* border-radius alone is not enough for the canvas: it clips backgrounds and
     borders, but a canvas's bitmap is replaced content, which Firefox does not
     clip that way — the corners came out square there while looking right in
     Chrome. clip-path clips replaced content in both. */
  clip-path: inset(0 round 13.078%);
}

.device-sim__canvas {
  display: block;
  background: #000;
  image-rendering: pixelated;
  overflow: hidden;
  /* The screen is a touchscreen on the device and takes drags and taps here
     too. Without this a vertical drag scrolls the page out from under the
     gesture before pointermove ever reports it. */
  touch-action: none;
}

.device-sim__canvas--grabbable {
  cursor: grab;
}

.device-sim__canvas--grabbing {
  cursor: grabbing;
}

.device-sim__canvas[hidden] {
  /* An author rule with a display value outranks the UA's [hidden] rule — see
     .device-link[hidden] above. */
  display: none;
}

.device-sim__message {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: var(--bg-sunken);
  color: var(--ink-dim);
  font-size: 0.85rem;
}

.device-sim__message[hidden] {
  display: none;
}

.device-sim__hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}

.device-sim__hint strong {
  color: var(--ink-dim);
  font-weight: 600;
}

/* The three buttons are real SVG rects once device.svg is inlined — focus
   styling comes for free from the global :focus-visible rule above. */
#BOOT,
#PWR,
#KEY {
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#PWR.device-sim__pwr--glow {
  animation: device-sim-pwr-glow 1.6s ease-in-out infinite;
}

@keyframes device-sim-pwr-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px var(--gold));
  }
  50% {
    filter: drop-shadow(0 0 10px var(--gold-strong));
  }
}

/* --- Footer ------------------------------------------------------------------ */

.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* --- Motion -------------------------------------------------------------------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --- Responsive ----------------------------------------------------------------- */

@container (max-width: 220px) {
  .card__stage {
    width: 75%;
  }
}

@media (max-width: 30rem) {
  .add-form__row {
    flex-direction: column;
    align-items: stretch;
  }

  /* flex-basis applies to the main axis, which just flipped to vertical —
     without resetting it here, the 16rem basis becomes a 16rem *height*. */
  .add-form__row input[type="text"] {
    flex: none;
  }

  .preview {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .preview__stage {
    width: min(60vw, 12rem);
    margin-inline: auto;
  }

  .preview__actions {
    justify-content: center;
  }
}

.step__note {
  margin-top: 0.9rem;
  max-width: 46ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

.step__note strong {
  color: var(--gold);
  font-weight: 600;
}

/* --- Device legend ---------------------------------------------------------
 *
 * One word per button, sitting over the button it describes. The columns are
 * the buttons' own centres in device.svg, expressed as percentages of its
 * 283.633 viewBox, so they stay aligned at any size:
 *
 *   BOOT  72.297 + 13.957        = 30.41%
 *   PWR   72.297 + 55.563 + 13.957 = 50.00%
 *   KEY   72.297 + 111.125 + 13.957 = 69.59%
 */
.device-sim__legend {
  position: relative;
  /* Same box as .device-sim__frame, so the percentages below land on the
     buttons rather than near them. */
  width: min(100%, 20rem);
  margin: 0 auto 0.4rem;
}

.device-sim__legend-row {
  position: relative;
  height: 1.5em;
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* The hold actions, distinguished from the presses above them. Smaller and
   tighter because "Background" is much the longest word here and would
   otherwise run into "Off" beside it. */
.device-sim__legend-row--hold {
  font-size: 0.48rem;
  letter-spacing: 0.02em;
  font-style: italic;
  color: var(--ink-faint);
}

.device-sim__legend-item {
  position: absolute;
  white-space: nowrap;
}

/* Names what the row is, off to the left of the columns. Dimmer than the row
   it labels rather than a fixed colour, so it stays subordinate to both the
   press row and the quieter hold row beneath it. */
.device-sim__legend-key {
  position: absolute;
  left: 0;
  opacity: 0.55;
  letter-spacing: 0.04em;
}

/* Centred on each button's own axis in device.svg. "Background" is much the
   longest word here, which is why the hold row is set smaller — centred at this
   size it clears "Off" beside it, and centring keeps every word visibly over
   the key it belongs to. */
.device-sim__legend-item {
  transform: translateX(-50%);
}

.device-sim__legend-item--boot { left: 30.41%; }
.device-sim__legend-item--pwr  { left: 50%; }
.device-sim__legend-item--key  { left: 69.59%; }

/* --- Device keys ----------------------------------------------------------- */

/* The invisible target laid over each key. A pointer cursor is the only cue
   that the artwork is interactive at all. */
.device-sim__hit {
  cursor: pointer;
}

.device-sim__hit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

/* Pressed, the key slides down a third of its height. The device body is drawn
   over the buttons, so most of that travel takes it out of sight — which is
   what makes it read as being pushed in rather than merely moved.
   3.704 is 11.113 / 3, in the SVG's own user units: CSS transforms on SVG
   elements work in the local coordinate system, so this scales with the
   drawing rather than with the viewport. */
.device-sim svg [id="BOOT"],
.device-sim svg [id="PWR"],
.device-sim svg [id="KEY"] {
  transition: transform 70ms ease-out;
}

.device-sim__key--pressed {
  transform: translateY(3.704px);
}

@media (prefers-reduced-motion: reduce) {
  .device-sim svg [id="BOOT"],
  .device-sim svg [id="PWR"],
  .device-sim svg [id="KEY"] {
    transition: none;
  }
}

/* --- Reconfiguring an existing device -------------------------------------- */

.masthead__aside {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* An unavailable step dims its contents, but this is the way out of that state
   -- dimming the one control that can unlock the step would hide the exit. */
.wifi-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.step--unavailable .wifi-connect {
  color: var(--ink-dim);
}

.step--unavailable .wifi-connect button:not(:disabled) {
  opacity: 1;
}
