:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #5b6675;
  --line: #dfe4ec;
  --paper: #ffffff;
  --page: #f5f7fb;
  --blue: #1f6feb;
  --blue-dark: #1858c4;
  --danger: #d1242f;
  --ok: #1a7f37;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { background: var(--page); }
body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 16px; }
h1, h2 { line-height: 1.25; margin: 0 0 0.5rem; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.2rem; }
p, ul { margin: 0 0 0.9rem; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 0.3rem; }
a { color: var(--blue); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.lede { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.95rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 20px;
}
#browser-block { display: none; }
html[data-browser="block"] #browser-block { display: block; }
html[data-browser="block"] #installer { display: none; }

.start { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; margin-top: 28px; padding: 8px 0 4px; }
.start .steps-row { justify-content: center; }
/* Get Started is exactly as wide as the hint under it, so the line reads as the button's hint */
.start-go { display: inline-flex; flex-direction: column; align-items: stretch; margin-top: 44px; }
.start #connect { margin: 0 0 10px; padding-left: 16px; padding-right: 16px; }
.start .hint { margin: 0; white-space: nowrap; }

/* Buttons: only buttons lift on hover */
button, .button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
/* Version 37: Open GSP32 Web UI waits greyed while the board joins Wi-Fi, then fades to blue */
#console-webui { transition: transform 0.12s, box-shadow 0.12s, background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, opacity 0.5s ease; }
#console-webui.waiting, #console-webui.waiting.primary, #console-webui.waiting.secondary { background: #eef0f3; border-color: #d6dae1; color: #8a94a3; opacity: 1; cursor: not-allowed; }
#console-webui.waiting:hover { transform: none; box-shadow: none; }
.board-state .wifi-note { color: var(--muted); }
button:hover:not(:disabled), .button:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12); }
button:active:not(:disabled), .button:active { transform: none; box-shadow: none; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.primary:hover:not(:disabled) { background: var(--blue-dark); }
.big { font-size: 1.15rem; padding: 10px 24px; min-height: 46px; }
.link-button { background: none; border: none; color: var(--blue); padding: 4px 0; min-height: 0; font-weight: 500; }
.secondary { background: #e8f0fe; border-color: #c9dbfb; color: var(--blue-dark); }
.secondary:hover:not(:disabled) { background: #dbe7fd; }
.small-link { font-size: 0.88rem; margin-top: 10px; align-self: center; }
.board-help { max-width: 560px; margin: 16px auto 0; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font-size: 0.95rem; overflow: hidden; }
.board-help ol { margin: 0; padding-left: 1.3rem; }
.board-state { display: inline-flex; flex-direction: column; align-items: flex-end; text-align: right; border-radius: 12px !important; padding: 4px 12px !important; }
.board-state .web-line { font-weight: 500; font-size: 0.85rem; }
.link-button:hover:not(:disabled) { transform: none; box-shadow: none; text-decoration: underline; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(31, 111, 235, 0.35); outline-offset: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.actions.end { justify-content: flex-end; }
.actions.stack { flex-direction: column; align-items: stretch; }

.field { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 0 0 12px; }
.field input, .field select {
  font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; margin: 12px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; }

/* The inline wizard: one step at a time inside the board card, folding in place */
.wizard { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-top: 14px; background: #fbfcfe; overflow: hidden; }
[hidden] { display: none !important; }
.wizard[hidden] { display: none; }
h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.console-head, .console-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.console-bar { margin-top: 0; }
#console-form .field { margin-bottom: 0; }
/* The board card's status line: what is happening now */
.board-status { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: #eef4ff; color: var(--blue-dark); font-weight: 600; }
.board-status.ok { background: #e6f4ea; color: var(--ok); }
.board-status.error { background: #fdecea; color: var(--danger); }
.console-bar h3 { margin: 0; }
.actions.tight { margin-top: 0; }
.actions.tight button { min-height: 34px; padding: 4px 12px; font-size: 0.95rem; }
.board-state { font-size: 0.9rem; font-weight: 600; color: var(--muted); padding: 2px 10px; border-radius: 999px; background: #eef1f6; }
.board-state.on { color: var(--ok); background: #e6f4ea; }
.step[hidden] { display: none; }
.warn-box { border-left: 4px solid #d4a72c; background: #fff8e5; padding: 10px 12px; border-radius: 6px; }
/* The erase checkbox sits inside the yellow box, on its left */
.warn-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 0.9rem; cursor: pointer; font-weight: 400; }
.warn-check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; }
.danger-note { color: var(--danger); font-weight: 600; margin-top: 12px; }
.status-line { font-weight: 600; }
.ok-line { color: var(--ok); font-weight: 700; font-size: 1.1rem; }
.error-line { color: var(--danger); font-weight: 600; }

.progress { height: 10px; border-radius: 6px; background: #e8edf5; overflow: hidden; margin: 8px 0 6px; }
.progress[hidden] { display: none; }
.progress-bar { height: 100%; width: 0; background: var(--blue); border-radius: 6px; transition: width 0.35s ease-out; }
.progress.indeterminate .progress-bar { width: 35%; animation: slide 1.2s ease-in-out infinite; }

.nets { list-style: none; padding: 0; margin: 8px 0 12px; max-height: 240px; overflow: auto; }
.nets li + li { margin-top: 4px; }
.nets label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.nets label:has(input:checked) { border-color: var(--blue); background: #eef4ff; }
.net-name { flex: 1; font-weight: 600; }
.net-info { color: var(--muted); font-size: 0.9rem; }

/* The console card fills what is left of the window (app.js sizes the output, at least 200px) */
.console-out {
  height: 260px; min-height: 200px; overflow: auto; margin: 12px 0; padding: 10px;
  background: #0f172a; color: #e2e8f0; border-radius: 8px; font-size: 13.6px; white-space: pre-wrap;
}

@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.button[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: auto; }
.board-hint { margin: 8px 0 0; }
.steps-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 0; margin: 0; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.steps-row li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.steps-row .arrow { color: #a8b1bf; font-weight: 400; }
.board-id { display: flex; flex-direction: column; gap: 2px; }
.board-id h2 { margin: 0; }
.board-mac { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); opacity: 0.85; }
.board-details { letter-spacing: 0.04em; text-transform: none; } /* same muted size as MAC; not shouted */
.step-icon { font-size: 1rem; }
.hint.small { font-size: 0.88rem; margin: 0; }
/* Version 38: the red warning sits right under the progress bar (the status line), the same height */
.flash-warn { margin: 6px 0 0; padding: 0; border: 0; background: none; color: var(--danger); font-size: var(--text-sm); font-weight: 600; text-align: center; overflow: hidden; }
.flash-warn[hidden] { display: none; }
.version-line { margin: 0 0 12px; }

/* Version 29: no wizard sub card. The status line above the buttons carries all status text and is itself the
   progress bar (its background fills left to right); only the needed inputs fold open under the buttons */
.wizard { border: 0; padding: 0; background: none; margin: 12px 0 0; }
.wizard h3, .wizard .status-line, .wizard .progress, #error-text { display: none; }
@property --fill { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.board-status { position: relative; overflow: hidden; --fill: 0%; transition: --fill 0.5s ease-out;
  background: linear-gradient(90deg, #c9dcff var(--fill), #eef4ff var(--fill)); }
.board-status.working { background: linear-gradient(90deg, #eef4ff 0%, #c9dcff 50%, #eef4ff 100%) 0 0 / 200% 100%;
  animation: status-sweep 1.4s linear infinite; }
@keyframes status-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.board-status.ok { background: #e6f4ea; }
.board-status.error { background: #fdecea; }

/* Version 39: the second line of "Wi-Fi Connected!" */
.board-status .status-more { display: block; margin-top: 4px; font-weight: 400; }

/* Version 42 (Gene): while the board erases, the status bar pulses a soft blue so the notice stands out; writing
   takes over with the normal fill */
.board-status { isolation: isolate; }
.board-status::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #c9dcff; opacity: 0;
  transition: opacity 0.4s ease-out; pointer-events: none; }
.board-status.erasing::before { animation: erase-pulse 1.8s ease-in-out infinite; }
/* Version 43.2 (Gene, standing rule): every wait with nothing else moving pulses the same way */
.board-status.waiting::before { animation: erase-pulse 1.8s ease-in-out infinite; }
@keyframes erase-pulse { 0%, 100% { opacity: 0; } 50% { opacity: 0.85; } }

/* Version 42.1 (Gene): one shared design system, taken from the Web UI's file manager (16 px card gaps, 16 px around
   the page, 8 px cards, 6 px buttons and inputs). Every size, weight and space below comes from these tokens:
   five text sizes, two weights (600 only for titles and the main button), one spacing scale. No root % scale, so px
   padding and button heights are back to their pre Version 42 sizes; the body text stays 15 px (Version 42) */
:root {
  --text-xs: 13px;
  --text-sm: 14px;
  --text-md: 15px;
  --text-lg: 18px;
  --text-xl: 26px;
  --weight-normal: 400;
  --weight-strong: 600;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --radius-card: 8px;
  --radius-control: 6px;
  --line: #d8dee6;
  --page: #f4f6f9;
  --muted: #5f6b7a;
  --danger: #c62828;
}
body { font-size: var(--text-md); line-height: 1.45; font-weight: var(--weight-normal); }
main { padding: var(--space-4) var(--space-4) var(--space-4); }
h1 { font-size: var(--text-xl); font-weight: var(--weight-strong); margin: var(--space-3) 0 var(--space-2); }
h2 { font-size: var(--text-lg); font-weight: var(--weight-strong); }
h3 { font-size: var(--text-lg); font-weight: var(--weight-strong); }
.lede { font-size: var(--text-md); }
.hint, .hint.small, .small-link { font-size: var(--text-sm); }
b, strong { font-weight: var(--weight-strong); }

/* Cards: the file manager's look, 16 px apart */
.card { border-color: var(--line); border-radius: var(--radius-card); padding: var(--space-4); margin-top: var(--space-4); }
.board-help { border-radius: var(--radius-card); font-size: var(--text-sm); }

/* Buttons: regular weight; only the solid blue next step is bold. Only buttons lift on hover (unchanged) */
button, .button { font-weight: var(--weight-normal); border-radius: var(--radius-control); font-size: var(--text-md); }
.primary { font-weight: var(--weight-strong); }
/* The board card's row swaps which button is primary (Version 37 fade, no shift): all three keep one weight */
#board-actions > * { font-weight: var(--weight-strong); }
.big { font-size: var(--text-lg); }
.link-button { font-weight: var(--weight-normal); }
.actions { gap: var(--space-2); margin-top: var(--space-3); }
.actions.tight button { font-size: var(--text-sm); }

/* Inputs and labels */
.field { font-weight: var(--weight-normal); color: var(--ink); }
.field input, .field select { border-radius: var(--radius-control); border-color: var(--line); }
.check, .warn-check { font-weight: var(--weight-normal); }
.warn-box { border-radius: var(--radius-control); }

/* Status and lines: regular text; colour carries the meaning */
.board-status { font-weight: var(--weight-normal); border-radius: var(--radius-control); }
.status-line, .error-line, .danger-note { font-weight: var(--weight-normal); }
.ok-line { font-weight: var(--weight-strong); font-size: var(--text-lg); }
.board-state { font-size: var(--text-sm); font-weight: var(--weight-normal); }
.board-state .web-line { font-size: var(--text-xs); font-weight: var(--weight-normal); }
.board-mac { font-size: var(--text-xs); }

/* Restored to their pre Version 42 sizes (Gene): the steps row above Get Started (0.92rem of 16 px) and the Console
   heading (1.05rem of 16 px); the console text stays 13.6 px */
.steps-row { font-size: 14.72px; font-weight: var(--weight-normal); }
.step-icon { font-size: 16px; }
.console-bar h3 { font-size: 16.8px; }

/* The Wi-Fi wizard on the same scale: compact rows and a normal height password box */
.nets label { padding: 6px 10px; gap: var(--space-2); font-size: var(--text-sm); line-height: 1.4; border-radius: var(--radius-control); }
.net-name { font-weight: var(--weight-normal); }
.net-info { font-size: var(--text-xs); }
.nets input { margin: 0; }
.field:has(#wifi-password) { font-size: var(--text-sm); }
#wifi-password { font-size: var(--text-sm); padding: 6px 10px; }

/* Version 42.1: the countdown while the page decides whether the board runs GSP32 (about 20 s), and the recovery
   offer for a half-finished install */
.check-wait { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--muted); overflow: hidden; }
.check-wait .progress { height: 4px; margin: var(--space-1) 0 0; }
.check-wait .progress-bar { transition: width 1s linear; }
.recover-note { margin: var(--space-3) 0 0; color: var(--danger); font-size: var(--text-sm); overflow: hidden; }

/* Version 46: install part centred on wide screens; What You Get strip; windows (Wi-Fi password, tour) */
@media (min-width: 900px) and (min-height: 700px) {
  .hero { min-height: calc(100vh - 440px); display: flex; flex-direction: column; justify-content: center; }
}
.step-art { width: 56px; height: 42px; flex: none; }
.tour { margin: 32px 0 16px; }
.tour h2 { font-size: 1.2rem; }
.tour-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.tour-list li { margin: 0; }
.tour-thumb { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; padding: 0; overflow: hidden; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 0.92rem; }
.tour-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.tour-thumb span { padding: 8px 12px; }
.modal { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--paper); color: var(--ink);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25); max-width: min(440px, calc(100vw - 32px)); width: 100%; }
.modal[open] { animation: pop 0.18s ease-out; }
.modal::backdrop { background: rgba(15, 23, 42, 0.45); animation: fade 0.18s ease-out; }
.modal h3 { margin: 0 0 12px; }
.modal .field input { width: 100%; }
.tour-modal { max-width: min(1000px, calc(100vw - 32px)); }
.tour-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.tour-modal img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; background: var(--page); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 12px; }
#tour-points { margin: 0; }
/* Once a board is connected the page is the installer only: no tour, no centring (the console fills the window) */
body:has(#console:not([hidden])) .tour { display: none; }
body:has(#console:not([hidden])) .hero { min-height: 0; display: block; }

/* Version 48 (Gene): flasher page polish */
main { text-align: center; }
main .card, main .board-help, main .wizard, main .console-card, main .console-out, .tour-list, .modal { text-align: left; }
.steps-row { justify-content: center; align-items: flex-start; gap: 12px 8px; }
.steps-row li { flex-direction: column; text-align: center; gap: 6px; max-width: 170px; }
.steps-row .arrow { align-self: center; margin-top: -24px; }
@media (max-width: 520px) {
  .steps-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .steps-row .arrow { display: none; }
  .steps-row li { max-width: none; font-size: 0.85rem; }
}
.tour-divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0 0; }
.tour { margin: 16px 0; }
.tour h2 { margin: 0 0 16px; }
.icon-close { min-height: 0; width: 36px; height: 36px; padding: 0; border-radius: 8px; font-size: 1.6rem; line-height: 1; flex: none;
  background: var(--paper); border: 1px solid var(--line); color: var(--muted); }
.tour-modal-head { align-items: center; margin: 0 0 12px; }
.tour-modal-head h3 { margin: 0; }
.tour-stage { position: relative; }
.tour-stage img.tour-in { animation: tour-fade 0.22s ease-out; }
.tour-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; min-height: 0; padding: 0; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15); }
.tour-nav:hover:not(:disabled) { transform: translateY(calc(-50% - 1px)); }
.tour-nav.prev { left: 8px; }
.tour-nav.next { right: 8px; }
.tour-count { text-align: center; margin: 0 0 8px; }
.console-line { position: relative; display: flex; }
.console-line input { flex: 1; width: 100%; padding-right: 84px; }
.console-line button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-height: 0; height: calc(100% - 8px); padding: 0 14px; }
.console-line button:hover:not(:disabled) { transform: translateY(calc(-50% - 1px)); }
.console-line input:disabled { background: #eef0f3; color: #8a94a3; }
.flasher-version { text-align: center; margin: 8px 0 24px; font-size: 0.85rem; }
.security-note { text-align: center; max-width: 560px; margin: 24px auto 0; font-size: 0.85rem; }
@keyframes tour-fade { from { opacity: 0.2; } to { opacity: 1; } }
.console-line input { font: inherit; padding: 8px 84px 8px 10px; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-sizing: border-box; transition: background 0.2s, color 0.2s; }
.console-line input:disabled { background: #eef0f3; color: #8a94a3; cursor: not-allowed; }
.console-line button { height: 34px; }
/* Version 61 (Gene): Send fills the box's full height, flush top, right and bottom; straight left edge, outer
   corners follow the input's 8 px rounding. Buttons still lift on hover, so it lifts with a shadow, not a shift */
.console-line button { top: 0; right: 0; bottom: 0; height: auto; transform: none; border-radius: 0 8px 8px 0; transition: background 0.2s, box-shadow 0.2s, opacity 0.2s; }
.console-line button:hover:not(:disabled) { transform: none; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
.console-line input::placeholder { transition: opacity 0.2s; }
.tour-divider { max-width: 100%; }
.flasher-version { margin-top: 24px; }
body:has(#console:not([hidden])) .tour-divider, body:has(#console:not([hidden])) .flasher-version, body:has(#console:not([hidden])) .security-note { display: none; }
/* Version 50 (Gene): gallery: icons centered in their buttons, every slide the same height */
.icon-close, .tour-nav { display: inline-flex; align-items: center; justify-content: center; }
.icon-close svg, .tour-nav svg { display: block; flex: none; }
.tour-stage { height: min(56vh, 520px); display: flex; align-items: center; justify-content: center; background: var(--page); border: 1px solid var(--line); border-radius: 10px; margin: 0 0 8px; overflow: hidden; }
.tour-modal .tour-stage img { width: 100%; height: 100%; max-height: none; object-fit: contain; border: 0; border-radius: 0; margin: 0; }
.tour-text { height: 120px; overflow: auto; }
.tour-text p { margin: 0 0 8px; }
/* Version 50 hero mockup (body.hero50): compact hero, slim one-line steps, gallery right below on one laptop screen */
body.hero50 .page-head h1 { margin: 8px 0 4px; }
body.hero50 .page-head .lede { margin: 0 auto; max-width: none; white-space: nowrap; }
body.hero50 .lede-more { display: none; }
body.hero50 .start { margin-top: 14px; padding: 0; }
body.hero50 .start-go { margin-top: 18px; flex-direction: row; align-items: center; gap: 14px; }
body.hero50 .start #connect { margin: 0; }
body.hero50 .start-go .hint { display: none; }
body.hero50 .steps-row { display: flex; flex-wrap: nowrap; gap: 10px; }
body.hero50 .steps-row li { flex-direction: row; max-width: none; gap: 8px; white-space: nowrap; text-align: left; }
body.hero50 .steps-row .arrow { margin-top: 0; display: inline; }
body.hero50 .step-art { width: 32px; height: 24px; }
body.hero50 .hero { min-height: 0; display: block; }
body.hero50 .tour-divider { margin-top: 20px; }
body.hero50 .tour h2 { margin: 0 0 12px; }
@media (min-width: 1000px) { body.hero50 .tour-list { grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 900px; margin: 0 auto; } body.hero50 .tour-thumb img { aspect-ratio: 16 / 8; } }
@media (max-width: 640px) {
  body.hero50 .page-head .lede { white-space: normal; }
  body.hero50 .steps-row { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 6px; }
  body.hero50 .steps-row .arrow { display: none; }
  body.hero50 .start-go { flex-direction: column; }
}
body.hero50 .step-art { width: 40px; height: 30px; }
body.hero50 .page-head { margin-top: 24px; }
body.hero50 .start { margin-top: 20px; }
body.hero50 .start-go { margin-top: 22px; }
body.hero50 .tour-divider { margin-top: 28px; }
body.hero50 .tour { margin-top: 20px; }
.tour-stage { height: min(50vh, 480px); }
.tour-text { height: 150px; }
body.hero50 .start-go { flex-direction: column; gap: 6px; }
/* Version 52: one-line release note above the version line */

/* Version 72: the opt-in Prototype choice under the version line */

/* Version 79: unsupported chip or flash size — folds open under the board actions (warn-box style) */
.compat-notice { margin: 10px 0 0; overflow: hidden; }
.compat-notice[hidden] { display: none; }
.compat-notice b { display: block; margin-bottom: 4px; }
.compat-notice p { margin: 0; font-weight: 400; color: var(--ink, #1a1a1a); }
/* Version 82: Show Password under the Wi-Fi password field */
.check.show-password { margin: var(--space-1) 0 0; font-size: var(--text-sm); align-items: center; }
.check.show-password input { width: 16px; height: 16px; margin: 0; }
