/* Shutdown Recovery OS — Quiet Reentry Room theme
 * (deep midnight blue / ash blue / teal / cream)
 * Functional text uses the bright tokens; dim slate and
 * backstage lavender stay decorative only. */
body.os-shutdown-recovery {
  --sr-after-show-ink: #0d1421;
  --sr-soft-stage-cream: #f3f0ea;
  --sr-private-linen: #eef1f5;
  --sr-muted-plum: #5a6d82;        /* decorative only */
  --sr-dusty-mauve: #aab4c3;       /* decorative only */
  --sr-mauve-bright: #b7c4d8;      /* functional accent */
  --sr-warm-taupe: #b8ada4;
  --sr-soft-gold: #cbb88f;
  --sr-gold-bright: #e0d0b8;       /* functional accent */
  --sr-backstage-blue: #5a6d82;    /* decorative only */
  --sr-clay-rose: #6f9f9b;
  --sr-quiet-graphite: #202b3c;
  --sr-mist-grey: #eef1f5;
  --sr-glow: rgba(143, 163, 200, 0.18);
  --sr-gold-glow: rgba(231, 216, 184, 0.22);
  --accent: var(--sr-gold-bright);
}

body.os-shutdown-recovery {
  background: radial-gradient(ellipse 120% 80% at 50% -20%, var(--sr-glow), transparent 55%),
    radial-gradient(ellipse 80% 50% at 20% 100%, rgba(231, 216, 184, 0.05), transparent 50%),
    linear-gradient(180deg, #0a0f18 0%, var(--sr-after-show-ink) 40%, #162235 100%);
}

body.os-shutdown-recovery .validate-line {
  color: var(--sr-mauve-bright);
}

body.os-shutdown-recovery .btn-primary {
  background: linear-gradient(145deg, var(--sr-gold-bright), var(--sr-soft-gold));
  color: var(--sr-after-show-ink);
}

body.os-shutdown-recovery .deck-card--router {
  background: linear-gradient(160deg, #202b3c 0%, #1a2433 45%, #141d2b 100%);
  border: 1px solid rgba(143, 163, 200, 0.18);
  color: var(--sr-private-linen);
}

body.os-shutdown-recovery .deck-card--router.is-selected {
  outline-color: var(--sr-mauve-bright);
  box-shadow: 0 0 24px rgba(143, 163, 200, 0.2);
}

body.os-shutdown-recovery .deck-card--router .deck-card__room,
body.os-shutdown-recovery .deck-card--router .deck-card__felt {
  color: var(--sr-private-linen);
}

body.os-shutdown-recovery .guided-chip.is-selected,
body.os-shutdown-recovery .validate-card.is-selected {
  outline-color: var(--sr-mauve-bright);
  border-color: rgba(143, 163, 200, 0.55);
  background: rgba(143, 163, 200, 0.15);
}

body.os-shutdown-recovery .receipt-card {
  border-color: rgba(143, 163, 200, 0.22);
  box-shadow: 0 0 40px rgba(143, 163, 200, 0.1);
}

body.os-shutdown-recovery .door-card--primary {
  border-color: rgba(231, 216, 184, 0.45);
  background: linear-gradient(160deg, #1c2a3a 0%, #162235 50%, #0d1421 100%);
}

/* Stop is first-class: cream text, visible gold border, always readable. */
.btn-stop {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(231, 216, 184, 0.55);
  background: rgba(231, 216, 184, 0.16);
  color: var(--sr-private-linen, #eef1f5);
  cursor: pointer;
}

.btn-stop:hover {
  background: rgba(231, 216, 184, 0.26);
  border-color: #e0d0b8;
}

:root {
  --void: #0a0f18;
  --deep: #0d1421;
  --navy: #162235;
  --cream: #f3f0ea;
  --muted: #aab4c3;
  --whisper: #b8ada4;
  --sage: #b7c4d8;
  --sage-deep: #5a6d82;
  --sage-card: #cbb88f;
  --rose: #6f9f9b;
  --rose-deep: #c99a8e;
  --tan: #f3f0ea;
  --tan-deep: #eef1f5;
  --lavender: #e0d0b8;
  --lavender-deep: #cbb88f;
  --peach: #6f9f9b;
  --brass: #cbb88f;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Source Serif 4", Georgia, serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;
  --text-2xs: 0.75rem;
  --text-lg: 1.125rem;
  --text-xl: 1.3125rem;
  --text-2xl: 1.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--cream);
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(143, 163, 200, 0.14), transparent 55%),
    linear-gradient(180deg, var(--void) 0%, var(--deep) 40%, #162235 100%);
  line-height: 1.55;
}

.type-meta {
  font-size: var(--text-sm);
  color: var(--muted);
}

.type-instruction {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(238, 241, 245, 0.08);
  background: rgba(23, 33, 43, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.screen[hidden] {
  display: none !important;
}

.screen__hero {
  text-align: center;
  margin-bottom: 28px;
}

.screen__hero--compact {
  margin-bottom: 20px;
}

.screen__title {
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 5.5vw, 2.5rem);
  font-weight: 500;
  font-style: italic;
  margin: 0 0 12px;
  color: var(--cream);
}

.screen__title--sm {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
}

.screen__tagline {
  font-size: var(--text-lg);
  color: var(--muted);
  margin: 0 0 8px;
}

.screen__signature {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--lavender);
  max-width: 32ch;
  margin: 0 auto;
}

.screen__hint {
  color: var(--muted);
  font-size: var(--text-sm);
}

.screen__foot {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.screen__foot--split {
  justify-content: space-between;
}

.screen__foot--stack {
  flex-direction: column;
  align-items: stretch;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary,
.btn-secondary {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 500;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: linear-gradient(145deg, var(--sage-card), var(--sage-deep));
  color: var(--void);
  box-shadow: var(--shadow);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(231, 216, 184, 0.2);
  color: var(--cream);
  border: 1px solid rgba(231, 216, 184, 0.3);
}

.btn-ghost {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--whisper);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.deck-section__label {
  text-align: center;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.deck-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .deck-grid {
    max-width: 640px;
  }
}

.deck-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: auto;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow);
  width: 100%;
}

.screen--arrive .screen__hero {
  margin-bottom: 20px;
}

.deck-section {
  padding-bottom: 8px;
}

.deck-card--router {
  background: linear-gradient(160deg, #3a4350 0%, #2a323d 45%, #1f2630 100%);
  color: var(--cream);
}

.deck-card.is-selected {
  outline: 3px solid var(--lavender);
  outline-offset: 3px;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(143, 163, 200, 0.35);
}

.deck-card__label {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 4px;
}

.deck-card__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1.35;
}

.dump-input {
  width: 100%;
  min-height: 200px;
  padding: 20px;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--cream);
  background: rgba(37, 40, 45, 0.6);
  border: 1px solid rgba(143, 163, 200, 0.2);
  border-radius: var(--radius);
  resize: vertical;
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.2);
}

.dump-input::placeholder {
  color: var(--whisper);
}

.dump-input:focus {
  outline: none;
  border-color: rgba(111, 159, 155, 0.45);
}

.board-toolbar {
  text-align: center;
  margin-bottom: 20px;
}

.board-toolbar__stats {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream);
  margin: 0 0 4px;
  font-size: var(--text-lg);
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 768px) {
  .board-layout {
    grid-template-columns: 1fr;
  }
}

.board-pool {
  background: rgba(37, 40, 45, 0.5);
  border: 1px solid rgba(238, 241, 245, 0.08);
  border-radius: var(--radius);
  padding: 14px;
  position: sticky;
  top: 80px;
}

.board-pool__title {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.board-pool__cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.pool-empty {
  padding: 12px 0;
  text-align: center;
}

.add-card-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.add-card-input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(238, 241, 245, 0.12);
  background: rgba(23, 33, 43, 0.5);
  color: var(--cream);
}

.board-containers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.load-card {
  padding: 12px 14px;
  background: linear-gradient(145deg, var(--tan) 0%, var(--tan-deep) 100%);
  color: var(--navy);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.4;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, box-shadow 0.15s;
  user-select: none;
}

.load-card.is-selected {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  transform: scale(1.02);
}

.container-zone {
  border-radius: var(--radius);
  min-height: 100px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.container-zone.is-over {
  box-shadow: 0 0 0 2px var(--lavender), 0 8px 24px rgba(111, 159, 155, 0.25);
  transform: scale(1.02);
}

.container-zone__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.container-zone__label {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-weight: 500;
}

.container-zone__count {
  font-size: var(--text-xs);
  opacity: 0.7;
}

.container-zone__body {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(23, 33, 43, 0.25);
}

.container-zone--container .container-zone__head {
  background: linear-gradient(160deg, #dce4ee, var(--tan));
  color: var(--navy);
}

.container-zone--permission .container-zone__head {
  background: linear-gradient(160deg, #aab4c3, var(--lavender));
  color: var(--navy);
}

.container-zone--action .container-zone__head {
  background: linear-gradient(160deg, #e0d0b8, var(--peach));
  color: var(--navy);
}

.container-zone--closure .container-zone__head {
  background: linear-gradient(160deg, #2a3548, var(--navy));
  color: var(--cream);
}

.close-hero {
  text-align: center;
  padding: 32px 16px;
  background: linear-gradient(165deg, var(--navy) 0%, var(--void) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(143, 163, 200, 0.2);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.close-hero__icon {
  font-size: 2rem;
  opacity: 0.5;
  display: block;
  margin-bottom: 12px;
}

.close-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 500;
  margin: 0 0 12px;
}

.close-hero__sub {
  font-size: var(--text-lg);
  color: var(--muted);
  margin: 0 0 6px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 14px 22px;
  background: rgba(37, 40, 45, 0.95);
  border: 1px solid rgba(143, 163, 200, 0.3);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 200;
  max-width: 90vw;
  text-align: center;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-header__room {
  display: inline;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--lavender);
  margin: 0;
  line-height: 1.3;
}

.screen__room {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.guided-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 24px;
}

.guided-chip {
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(231, 216, 184, 0.25);
  background: rgba(231, 216, 184, 0.12);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.app-footer {
  text-align: center;
  padding: 20px;
  font-size: var(--text-xs);
  color: var(--muted);
  border-top: 1px solid rgba(238, 241, 245, 0.06);
}

.board-back-os {
  display: block;
  font-size: var(--text-sm);
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0;
}

.board-back-os:hover {
  color: var(--cream);
}

/* ===== Quiet Apartment Console — front door, quiet pages, data ===== */

.link-btn {
  font-family: var(--font-sans);
  font-size: inherit;
  padding: 8px 10px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-btn:hover {
  color: var(--cream);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.btn-ghost {
  min-height: 44px;
  padding: 10px 14px;
  color: var(--muted);
}

.btn-ghost--warn {
  color: var(--rose);
}

.btn-ghost--sm {
  min-height: 40px;
  padding: 6px 12px;
  font-size: var(--text-xs);
}

:where(a, button, [role="button"], input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 2px;
}

:where(a, button, [role="button"], input, textarea, select, summary, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}

.door-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto 20px;
}

.door-list--compact {
  max-width: 420px;
}

.door-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-height: 44px;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-sans);
  background: linear-gradient(160deg, rgba(111, 159, 155, 0.14), rgba(111, 159, 155, 0.06));
  border: 1px solid rgba(111, 159, 155, 0.28);
  border-radius: var(--radius);
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.door-card:hover {
  border-color: rgba(111, 159, 155, 0.55);
  background: linear-gradient(160deg, rgba(111, 159, 155, 0.2), rgba(111, 159, 155, 0.1));
}

.door-card__label {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--cream);
}

.door-card__hint {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.45;
}

.screen__quiet-link {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 8px 0 24px;
}

.optional-fold {
  max-width: 520px;
  margin: 0 auto 20px;
  border: 1px solid rgba(238, 241, 245, 0.12);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.optional-fold summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--muted);
  list-style-position: inside;
}

.optional-fold__note {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
  margin: 4px 0 12px;
}

.quiet-card {
  max-width: 520px;
  margin: 0 auto 24px;
  padding: 20px 22px;
  background: rgba(238, 241, 245, 0.06);
  border: 1px solid rgba(238, 241, 245, 0.14);
  border-radius: var(--radius);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--cream);
  text-align: left;
}

.quiet-card--center {
  text-align: center;
}

.quiet-card p {
  margin: 0 0 12px;
}

.quiet-card p:last-child {
  margin-bottom: 0;
}

.quiet-card__boundary {
  border-left: 3px solid var(--lc-soft, var(--sage));
  padding-left: 14px;
  color: var(--muted);
}

.quiet-card__close-line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-lg);
  color: var(--cream);
}

.quiet-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.local-data-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 20px;
  align-items: stretch;
}

.local-data-actions .btn-secondary,
.local-data-actions .btn-ghost {
  width: 100%;
}

.data-map {
  text-align: left;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  padding-left: 20px;
  margin: 8px 0;
}

.data-map code {
  font-size: 0.85em;
  color: var(--lavender);
}

.receipts-list {
  max-width: 520px;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-row {
  padding: 14px 16px;
  background: rgba(238, 241, 245, 0.06);
  border: 1px solid rgba(238, 241, 245, 0.14);
  border-radius: var(--radius-sm);
  text-align: left;
}

.receipt-row__room {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--cream);
}

.receipt-row__date {
  margin: 2px 0 6px;
}

.receipt-row__moved {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.receipt-row__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.receipt-ride-stop {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.deck-card__effort {
  display: block;
  font-size: var(--text-2xs);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.screen--zero .screen__hero {
  margin-top: 8vh;
}

.screen--done .close-hero {
  margin-top: 12vh;
}

/* Essential access callout — shown inside rooms that touch access/settings */
.essential-access {
  max-width: 520px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border: 1px solid rgba(111, 159, 155, 0.3);
  border-left: 3px solid var(--lc-soft, var(--sage));
  border-radius: var(--radius-sm);
  background: rgba(111, 159, 155, 0.08);
  text-align: left;
}

.essential-access__title {
  margin: 0 0 4px;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lc-soft, var(--sage));
}

.essential-access__lead,
.essential-access__note {
  margin: 0 0 4px;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

/* Contextual warning (e.g. car zone) */
.step-warn {
  max-width: 520px;
  margin: 0 auto 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(231, 216, 184, 0.45);
  background: rgba(231, 216, 184, 0.12);
  color: var(--cream);
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: left;
}

.step-note,
.step-truth {
  max-width: 520px;
  margin: 12px auto 0;
  text-align: center;
  line-height: 1.55;
}

.step-truth {
  border-left: 3px solid var(--lavender-deep);
  padding-left: 12px;
  text-align: left;
}

/* Generic visual step */
.step-visual-stage {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.step-visual-box {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}

.guided-chips--options {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.guided-chips--options .guided-chip {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  min-height: 48px;
}

/* Board pool + containers layout */
.board-pool {
  max-width: 560px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.board-pool.is-over {
  outline: 2px dashed var(--lavender);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.board-containers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto 12px;
}

@media (min-width: 720px) {
  .board-containers {
    grid-template-columns: 1fr 1fr;
  }
}

.transform-stage {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.transform-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px auto;
  min-height: 60px;
}

/* Header wrap already present; keep actions from overflowing at 320px */
.app-header__actions {
  flex-wrap: wrap;
}

.install-ios {
  margin-top: 8px;
}

/* Reduced motion — kill decorative motion and haptic-adjacent cues */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .body--breathing,
  .body--breathing * {
    animation: none !important;
  }
}
