/*
 * Dreamfloor: site styles for the landing page, wizard, host console, guest
 * page, recap and 404. Dark is the default; [data-theme="light"] is a genuinely
 * light theme (pale nav, buttons and footer) and declares `color-scheme: only
 * light` so Chrome's forced dark mode leaves it alone.
 *
 * Spacing scale: 4 8 12 16 24 32 48 64 96. Type scale: 12 14 16 20 24 30 40+.
 */

/* ---------- tokens ---------- */
:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0d0a1f;
  --bg-2: #120e29;
  --surface: #17122e;
  --surface-2: #211a40;
  --border: #342b5e;
  --text: #f3efff;
  --muted: #b9b0d6;
  --link: #7ef0f8;
  --primary: #ff3d7f;
  --primary-hover: #ff6a9c;
  --primary-ink: #1a0010;
  --primary-border: #ff3d7f;
  --accent: #05d9e8;
  --accent-ink: #032a2d;
  --ghost-border: #5a4f8a;
  --focus: #ffd166;
  --nav-bg: rgba(13, 10, 31, 0.88);
  --foot-bg: #0a0818;
  --ok: #4ade80;
  --ok-bg: #0f2a1b;
  --warn: #fbbf24;
  --warn-bg: #2d2309;
  --bad: #ff8a8a;
  --bad-bg: #2e0f14;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.45);
  --hero-wash: linear-gradient(90deg, rgba(13, 10, 31, 0.95) 0%, rgba(13, 10, 31, 0.82) 48%, rgba(13, 10, 31, 0.38) 100%);
  --hero-filter: none;
  --switch-track: #3a3166;
  --switch-on: #6b2bff;
  --switch-knob: #ffffff;
}

:root[data-theme='light'] {
  color-scheme: only light;
  --bg: #faf7ff;
  --bg-2: #f3eefe;
  --surface: #ffffff;
  --surface-2: #f1ebff;
  --border: #dcd2f3;
  --text: #1b1433;
  --muted: #4f4670;
  --link: #5b1fd1;
  --primary: #ffe0ec;
  --primary-hover: #ffd0e2;
  --primary-ink: #7a0030;
  --primary-border: #f3a9c6;
  --accent: #d5f7fa;
  --accent-ink: #00474d;
  --ghost-border: #b9addb;
  --focus: #6b2bff;
  --nav-bg: rgba(250, 247, 255, 0.94);
  --foot-bg: #f1ebff;
  --ok: #11612f;
  --ok-bg: #e3f8ea;
  --warn: #7a4a00;
  --warn-bg: #fff3d6;
  --bad: #9b1020;
  --bad-bg: #ffe5e8;
  --shadow-1: 0 1px 2px rgba(27, 20, 51, 0.08);
  --shadow-2: 0 8px 24px rgba(27, 20, 51, 0.1);
  --hero-wash: linear-gradient(90deg, rgba(250, 247, 255, 0.95) 0%, rgba(250, 247, 255, 0.88) 55%, rgba(255, 232, 242, 0.72) 100%);
  --hero-filter: grayscale(30%) brightness(1.35) contrast(0.75);
  --switch-track: #d8cff0;
  --switch-on: #b9a4f5;
  --switch-knob: #ffffff;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-family: Verdana, Geneva, sans-serif;
  line-height: 1.12;
  font-size: clamp(30px, 5.2vw, 54px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 3.2vw, 30px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

img,
svg {
  max-width: 100%;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
}

.skip:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
}

.small {
  font-size: 14px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--primary-border);
  background: var(--primary);
  color: var(--primary-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--primary-hover);
}

.btn:active {
  transform: translateY(1px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--ghost-border);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-accent:hover {
  background: var(--accent);
  filter: brightness(1.08);
}

.btn-danger {
  background: var(--bad-bg);
  color: var(--bad);
  border-color: var(--bad);
}

/* .btn:hover is more specific than .btn-danger, so without this the hover paints the
   primary colour behind the red text (unreadable). */
.btn-danger:hover {
  background: var(--bad-bg);
  filter: brightness(1.15);
}

/* A heading straight after a row of buttons needs air above it. */
.btn-row + h3 {
  margin-top: 24px;
}

.btn-small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 14px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- nav (the header) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  margin-right: auto;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  background: var(--surface-2);
}

.nav-links .btn {
  color: var(--primary-ink);
  padding: 8px 16px;
  min-height: 40px;
}

.nav-links .btn:hover {
  background: var(--primary-hover);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

.menu-btn .icon-close,
.menu-btn[aria-expanded='true'] .icon-open {
  display: none;
}

.menu-btn[aria-expanded='true'] .icon-close {
  display: block;
}

@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px;
    font-size: 16px;
  }
  .nav-links .btn {
    margin-top: 8px;
  }
}

/* iPhone-style theme switch: on = dark */
.theme-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--switch-track);
  cursor: pointer;
  transition: background 0.2s;
}

.theme-toggle[aria-checked='true'] {
  background: var(--switch-on);
}

.theme-toggle > span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--switch-knob);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.theme-toggle[aria-checked='true'] > span {
  transform: translateX(22px);
}

.theme-toggle > span::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #fbbf24;
}

.theme-toggle[aria-checked='true'] > span::after {
  background: transparent;
  box-shadow: inset -5px -3px 0 0 #6b2bff;
  inset: 5px;
}

/* ---------- landing ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 96px;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 40%;
  filter: var(--hero-filter);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-wash);
}

@media (max-width: 700px) {
  :root,
  :root[data-theme='dark'] {
    --hero-wash: linear-gradient(180deg, rgba(13, 10, 31, 0.9) 0%, rgba(13, 10, 31, 0.86) 100%);
  }
  :root[data-theme='light'] {
    --hero-wash: linear-gradient(180deg, rgba(250, 247, 255, 0.93) 0%, rgba(250, 247, 255, 0.9) 100%);
  }
  .hero {
    padding: 64px 0;
    min-height: 0;
  }
}

.hero .lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text);
  opacity: 0.92;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--ghost-border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.hero-copy {
  max-width: 640px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  color: var(--text);
  font-size: 15px;
}

.hero-points li::before {
  content: '✓ ';
  color: var(--ok);
  font-weight: 800;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-1);
}

.card h3 {
  font-size: 18px;
}

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

.icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 12px;
}

:root[data-theme='light'] .icon {
  color: #5b1fd1;
}

.icon svg {
  width: 24px;
  height: 24px;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 24px;
  padding-top: 64px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 20px;
  left: 24px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-ink);
  border: 2px solid var(--primary-border);
  font-weight: 800;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chips li,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
}

.price-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.price {
  display: flex;
  flex-direction: column;
}

.price .amount {
  font-size: 30px;
  font-weight: 800;
  margin: 4px 0 12px;
}

.price ul {
  padding-left: 20px;
  margin: 0 0 24px;
  flex: 1;
}

.price li {
  margin-bottom: 6px;
}

.price.featured {
  border: 2px solid var(--primary-border);
}

.faq {
  max-width: 760px;
}

.faq details {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  list-style-position: inside;
}

.faq details p {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--muted);
}

.cta-band {
  text-align: center;
}

.cta-band .lead {
  margin: 0 auto 24px;
}

.cta-band .btn-row {
  justify-content: center;
}

/* ---------- footer ---------- */
.foot {
  background: var(--foot-bg);
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.foot p {
  margin: 0;
}

.foot a {
  color: var(--text);
}

.foot nav {
  margin-bottom: 8px;
}

.foot nav a {
  margin: 0 8px;
  color: var(--muted);
}

/* ---------- forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  min-width: 0;
}

.field > label,
.field > .label,
fieldset > legend {
  font-weight: 700;
  font-size: 15px;
}

.hint {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='date'],
input[type='time'],
input[type='number'],
input[type='search'],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ghost-border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 88px;
}

input[type='color'] {
  width: 56px;
  height: 44px;
  padding: 2px;
  border-radius: 10px;
  border: 1px solid var(--ghost-border);
  background: var(--bg);
  cursor: pointer;
}

input[type='range'] {
  width: 100%;
  accent-color: #ff3d7f;
}

input[type='checkbox'],
input[type='radio'] {
  width: 20px;
  height: 20px;
  accent-color: #ff3d7f;
  flex: 0 0 auto;
}

input[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--bad);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}

.row {
  display: grid;
  gap: 0 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  cursor: pointer;
}

.check strong {
  display: block;
}

.check input {
  margin-top: 3px;
}

.notice {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: 0 0 16px;
}

.notice.ok {
  background: var(--ok-bg);
  border-color: var(--ok);
  color: var(--ok);
}

.notice.warn {
  background: var(--warn-bg);
  border-color: var(--warn);
  color: var(--warn);
}

.notice.bad {
  background: var(--bad-bg);
  border-color: var(--bad);
  color: var(--bad);
}

/* ---------- contact form ---------- */
.contact-form {
  margin-top: 8px;
}

/* Honeypot: off screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- app pages: wizard, host, guest ---------- */
.page {
  padding: 32px 0 64px;
}

.page-head {
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.stepper {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.stepper button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 40px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.stepper button .n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

.stepper button[aria-current='step'] {
  color: var(--text);
  border-color: var(--primary-border);
}

.stepper button[aria-current='step'] .n,
.stepper button.done .n {
  background: var(--primary);
  color: var(--primary-ink);
}

.stepper button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-1);
}

@media (max-width: 600px) {
  .panel {
    padding: 20px 16px;
    border-radius: 16px;
  }
}

.panel h2 {
  margin-bottom: 4px;
}

.panel > .hint:first-of-type {
  margin-bottom: 24px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.save-state {
  font-size: 14px;
  color: var(--muted);
  min-height: 22px;
  margin: 12px 0 0;
}

.save-state.bad {
  color: var(--bad);
}

.theme-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-bottom: 24px;
}

.theme-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.theme-card[aria-pressed='true'] {
  border-color: var(--primary-border);
  box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.25);
}

.theme-card strong {
  font-size: 15px;
}

.theme-card span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.swatches {
  display: flex;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.swatches i {
  flex: 1;
}

.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.palette-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.preview {
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.preview strong {
  display: block;
  font-size: 22px;
}

.moment {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  background: var(--bg);
}

.moment-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.moment-head .n {
  font-weight: 800;
  color: var(--muted);
}

.moment-head input {
  flex: 1;
}

.moment .row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.feature-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.feature-list .check {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
}

.feature-list .check span {
  font-size: 14px;
  color: var(--muted);
}

.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 16px;
  border: 2px dashed var(--ghost-border);
  border-radius: 16px;
  background: var(--bg);
  text-align: center;
  cursor: pointer;
}

.dropzone.drag {
  border-color: var(--primary-border);
  background: var(--surface-2);
}

.dropzone strong {
  font-size: 18px;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  min-width: 0;
}

.file-list .thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.file-list .meta {
  flex: 1;
  min-width: 0;
}

.file-list .meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-2);
  margin-top: 12px;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #ff3d7f;
  transition: width 0.2s;
}

.review-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 24px;
}

.review-grid dl {
  margin: 0;
}

.review-grid dt {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-grid dd {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.link-list li {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.link-list .top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.steps-list {
  margin: 0 0 12px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--muted);
}

.steps-list li + li {
  margin-top: 6px;
}

.steps-list code {
  overflow-wrap: anywhere;
}

.link-list code {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.qr {
  width: 200px;
  height: 200px;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
}

.resume-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.resume-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.resume-list a:hover {
  border-color: var(--primary-border);
}

/* ---------- host console ---------- */
.host-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

@media (max-width: 900px) {
  .host-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
}

.pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.pill.on .dot {
  background: var(--ok);
}

.pill.live {
  border-color: var(--bad);
  color: var(--bad);
}

.pill.live .dot {
  background: var(--bad);
}

.beat-dot.flash {
  background: #ff3d7f !important;
  transform: scale(1.4);
}

.moment-buttons {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.moment-buttons button {
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.moment-buttons button small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}

.moment-buttons button[aria-pressed='true'] {
  border-color: var(--primary-border);
  background: var(--surface-2);
}

.idea-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.idea-list li {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.idea-list .text {
  display: block;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.idea-list .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.idea-list .meta .btn-row {
  margin-left: auto;
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag.held {
  background: var(--warn-bg);
  color: var(--warn);
}

.tag.approved {
  background: var(--ok-bg);
  color: var(--ok);
}

.tag.blocked {
  background: var(--bad-bg);
  color: var(--bad);
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  flex: 1;
  min-width: 0;
}

/* ---------- guest page ---------- */
.guest-card {
  max-width: 520px;
  margin: 0 auto;
}

.guest-hero {
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.guest-hero img {
  max-height: 64px;
  width: auto;
  margin-bottom: 12px;
}

.counter {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* silent party: listen on your own earphones */
.listen-card {
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 20px;
  border: 2px solid var(--primary-border);
  background: var(--surface);
}

.listen-card h2 {
  font-size: 20px;
  margin: 0 0 8px;
}

.listen-steps {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--muted);
}

.listen-steps li + li {
  margin-top: 4px;
}

.listen-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.listen-row .btn {
  min-width: 120px;
}

.listen-row .btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.listen-status {
  margin: 0;
  flex: 1 1 160px;
  font-size: 15px;
}

.listen-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  flex: none;
}

.listen-dot.live {
  background: var(--ok);
}

.listen-dot.playing {
  background: var(--ok);
  animation: listen-pulse 1.2s ease-in-out infinite;
}

@keyframes listen-pulse {
  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .listen-dot.playing {
    animation: none;
  }
}

/* ---------- recap ---------- */
.recap main {
  padding: 32px 16px 64px;
}

.recap-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin: 24px 0 48px;
}

.recap-pic {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recap-pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.recap-pic figcaption {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--border);
}

.timeline li {
  padding: 8px 0 8px 16px;
  overflow-wrap: anywhere;
}

.timeline time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  margin-right: 4px;
}

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding: 96px 16px;
}

.not-found .btn-row {
  justify-content: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  box-shadow: var(--shadow-2);
}
