:root {
  --entry-bg: #f6ede2;
  --entry-panel: #fffaf4;
  --entry-panel-soft: #fbf2e8;
  --entry-ink: #1f2629;
  --entry-muted: #655e59;
  --entry-line: rgba(31, 38, 41, 0.12);
  --entry-accent: #bb664c;
  --entry-accent-deep: #8e4734;
  --entry-accent-soft: rgba(187, 102, 76, 0.14);
  --entry-success: #2f8a5d;
  --entry-danger: #9d2f2f;
  --entry-shadow: 0 18px 48px rgba(84, 58, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.entry-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--entry-ink);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  background: var(--entry-bg);
}

/* Warm redesign palette/type (Setup Flow design) — scoped so the
   landing pages keep their original look until they're redesigned too. */
.entry-body-warm {
  --entry-bg: #efe6d6;
  --entry-panel: #fcf8f1;
  --entry-panel-soft: #f3e9da;
  --entry-ink: #1c1810;
  --entry-muted: #6b6151;
  --entry-line: rgba(28, 24, 16, 0.12);
  --entry-accent: #b1543a;
  --entry-accent-deep: #8e4734;
  --entry-accent-soft: rgba(177, 84, 58, 0.14);
  --entry-success: #3d6b39;
  --entry-shadow:
    0 20px 50px -22px rgba(40, 25, 10, 0.4), 0 2px 6px rgba(0, 0, 0, 0.05);
}

body.entry-body.entry-body-warm {
  font-family: "Hanken Grotesk", sans-serif;
}

.entry-body-warm h1,
.entry-body-warm h2,
.entry-body-warm h3 {
  font-family: "Newsreader", serif;
}

.entry-page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.entry-page-narrow {
  width: min(680px, calc(100% - 32px));
}

.landing-page {
  display: grid;
  gap: 88px;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  min-height: 720px;
  gap: 64px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 20px;
  max-width: 40rem;
}

.hero-brand {
  color: var(--entry-accent-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-header h2,
.final-cta h2,
.setup-start-copy h1 {
  margin: 0;
  font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(50px, 5.8vw, 70px);
}

.hero-outcome,
.hero-subheadline,
.how-card p,
.moments-copy,
.founder-story-copy p,
.final-cta p,
.setup-start-copy p,
.setup-start-note {
  margin: 0;
  color: var(--entry-muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-intro {
  display: grid;
  gap: 16px;
}

.hero-outcome {
  max-width: 18ch;
  color: var(--entry-ink);
  font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero-subheadline {
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--entry-line);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
  cursor: pointer;
}

.entry-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(84, 58, 39, 0.12);
}

.entry-button-primary {
  background: var(--entry-accent);
  border-color: var(--entry-accent);
  color: var(--entry-panel);
}

.entry-button-secondary {
  background: transparent;
  color: var(--entry-ink);
}

.entry-button-full {
  width: 100%;
}

.entry-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 42rem;
}

.trust-chips span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--entry-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--entry-muted);
  font-size: 12px;
  font-weight: 600;
}

.landing-login-hint,
.setup-login-hint {
  margin: 0;
  font-size: 13px;
  color: var(--entry-muted);
}

.landing-login-hint a,
.setup-login-hint a {
  color: var(--entry-success);
  font-weight: 600;
  text-decoration: none;
}

.landing-login-hint a:hover,
.setup-login-hint a:hover {
  text-decoration: underline;
}

.landing-returning-chip {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
}

.landing-returning-chip a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--entry-success);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.landing-returning-chip a:hover {
  opacity: 0.9;
}

.hero-phone-column {
  display: grid;
  justify-items: center;
  gap: 18px;
  align-self: center;
}

.phone-frame {
  width: min(100%, 430px);
  padding: 13px;
  border-radius: 42px;
  background: #21272b;
  box-shadow: 0 26px 70px rgba(31, 38, 41, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-screen {
  display: grid;
  align-content: start;
  min-height: 620px;
  overflow: hidden;
  border-radius: 30px;
  background: #f1ecdf;
}

.phone-game-screen {
  font-family: "Courier New", monospace;
}

.phone-game-header {
  display: grid;
  gap: 10px;
  padding: 22px 18px 18px;
  background: #286b2d;
  color: #fff;
}

.phone-game-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
}

.phone-game-greeting span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.phone-game-level {
  padding: 8px 10px;
  border: 2px solid #b68300;
  background: #dfa80d;
  color: #171717;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.phone-game-progress {
  position: relative;
  height: 22px;
  overflow: hidden;
  border: 3px solid #16291a;
  background: #1d1c32;
  color: #fff;
}

.phone-game-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  background: #4a8b3d;
}

.phone-game-progress strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
}

.phone-game-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 16px 14px;
  border: 3px solid #315d35;
}

.phone-game-tabs span {
  padding: 11px 4px;
  border-right: 1px solid #315d35;
  background: #eee9dc;
  color: #1d2030;
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.phone-game-tabs span:last-child {
  border-right: 0;
}

.phone-game-tabs .is-active {
  background: #286b2d;
  color: #fff;
}

.phone-missions {
  margin: 0 16px 22px;
  padding: 19px 20px 8px;
  border: 3px solid #315d35;
  background: #f4efe3;
}

.phone-missions-title {
  padding-bottom: 10px;
  border-bottom: 2px solid #286b2d;
  color: #286b2d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.phone-mission {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 12px;
  gap: 10px;
  align-items: start;
  padding: 15px 0 13px;
  border-bottom: 2px dashed #d49c13;
}

.phone-mission:last-child {
  border-bottom: 0;
}

.phone-mission-emoji {
  padding-top: 1px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 25px;
}

.phone-mission strong {
  color: #202233;
  font-size: 13px;
}

.phone-mission p {
  margin: 5px 0;
  color: #222;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
}

.phone-mission small {
  color: #d69200;
  font-size: 11px;
  font-weight: 900;
}

.phone-mission-arrow {
  align-self: center;
  color: #286b2d;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  font-weight: 900;
}

.demo-link {
  color: #286b2d;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.content-section {
  display: grid;
  gap: 24px;
}

.section-header h2 {
  font-size: clamp(34px, 5vw, 52px);
}

.how-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.how-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--entry-line);
  border-radius: 24px;
  background: var(--entry-panel);
  box-shadow: var(--entry-shadow);
}

.how-number {
  color: var(--entry-accent);
  font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 56px;
  line-height: 0.9;
}

.how-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.moment-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.moment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 18px 20px;
  border: 1px solid var(--entry-line);
  border-radius: 24px;
  background: var(--entry-panel);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: var(--entry-shadow);
}

.moment-card small {
  flex: 0 0 auto;
  color: var(--entry-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.moments-copy {
  max-width: 52rem;
}

.section-label,
.founder-kicker {
  color: var(--entry-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.moments-header-copy {
  display: grid;
  gap: 12px;
}

.founder-story {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  background: var(--entry-accent-deep);
  color: #fffaf4;
  box-shadow: 0 24px 64px rgba(84, 58, 39, 0.2);
}

.founder-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  object-fit: cover;
  object-position: center 32%;
}

.founder-story-copy {
  display: grid;
  gap: 17px;
}

.founder-story-copy h2 {
  max-width: 14ch;
  margin: 0;
  font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.founder-story-copy p {
  color: rgba(255, 250, 244, 0.84);
}

.founder-story-copy .founder-kicker {
  color: #f3c7b7;
  font-size: 12px;
}

.founder-story-copy .founder-attribution {
  color: #fffaf4;
  font-size: 15px;
  font-weight: 800;
}

.final-cta,
.setup-start-shell {
  padding: 32px;
  border: 1px solid var(--entry-line);
  border-radius: 24px;
  background: var(--entry-panel);
  box-shadow: var(--entry-shadow);
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.final-cta h2 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(36px, 5vw, 58px);
  text-align: center;
}

.final-cta p {
  text-align: center;
}

.setup-start-shell {
  padding: 32px;
}

.section-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--entry-accent-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.setup-start-copy {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.setup-start-form {
  display: grid;
  gap: 16px;
}

.entry-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.entry-input {
  width: 100%;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid rgba(31, 38, 41, 0.1);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  color: var(--entry-ink);
}

.entry-input:focus {
  outline: 2px solid rgba(187, 102, 76, 0.18);
  border-color: rgba(187, 102, 76, 0.44);
}

.entry-input-error {
  border-color: rgba(157, 47, 47, 0.34);
}

.entry-message {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.entry-message-error {
  background: rgba(157, 47, 47, 0.08);
  color: var(--entry-danger);
  border: 1px solid rgba(157, 47, 47, 0.16);
}

.entry-message-success {
  background: rgba(47, 138, 93, 0.1);
  color: var(--entry-success);
  border: 1px solid rgba(47, 138, 93, 0.16);
}

.entry-message-info {
  background: rgba(187, 121, 76, 0.09);
  color: var(--entry-ink);
  border: 1px solid rgba(187, 121, 76, 0.22);
}

.entry-field-error {
  color: var(--entry-danger);
  font-size: 12px;
  font-weight: 700;
}

.entry-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--entry-ink);
}

.entry-consent input[type="checkbox"] {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--entry-accent, #bb664c);
}

.entry-consent a {
  color: inherit;
}

@media (max-width: 940px) {
  .entry-page,
  .entry-page-narrow {
    width: min(calc(100% - 24px), 1200px);
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .hero-section,
  .how-cards,
  .moment-cards,
  .founder-story {
    grid-template-columns: 1fr;
  }

  .landing-page {
    gap: 48px;
  }

  .hero-section {
    min-height: 0;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 12vw, 58px);
  }

  .hero-subheadline,
  .how-card p,
  .moments-copy,
  .founder-story-copy p,
  .final-cta p,
  .setup-start-copy p,
  .setup-start-note {
    font-size: 17px;
  }

  .hero-copy {
    gap: 18px;
    text-align: center;
    justify-items: center;
  }

  .hero-intro {
    justify-items: center;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .entry-button {
    min-height: 52px;
    padding: 0 16px;
    text-align: center;
  }

  .trust-chips {
    gap: 10px;
  }

  .trust-chips span {
    font-size: 13px;
    padding: 9px 12px;
  }

  .hero-phone-column {
    justify-items: center;
  }

  .phone-frame {
    width: min(100%, 400px);
  }

  .section-header h2,
  .final-cta h2,
  .setup-start-copy h1 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .how-card h3 {
    font-size: 22px;
  }

  .how-number {
    font-size: 48px;
  }

  .main-quote {
    font-size: 28px;
  }

  .moment-card {
    font-size: 17px;
    padding: 16px 14px;
  }

  .final-cta,
  .setup-start-shell,
  .how-card {
    padding: 24px;
  }

  .founder-story {
    gap: 24px;
    padding: 28px;
  }

  .founder-photo {
    height: 280px;
    aspect-ratio: auto;
  }
}

@media (max-width: 640px) {
  .entry-page,
  .entry-page-narrow {
    width: min(calc(100% - 32px), 1200px);
    padding-top: 18px;
    padding-bottom: 52px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .entry-button {
    width: 100%;
    text-align: center;
  }

  .moment-cards {
    grid-template-columns: 1fr;
  }

  .trust-chips {
    width: 100%;
    justify-content: center;
  }

  .trust-chips span {
    flex: 0 1 calc(50% - 5px);
    width: auto;
    justify-content: center;
    text-align: center;
  }

  .content-section {
    gap: 18px;
  }

  .phone-screen {
    min-height: 560px;
  }

  .phone-game-header {
    padding: 18px 14px 15px;
  }

  .phone-game-tabs {
    margin: 14px 12px 12px;
  }

  .phone-game-tabs span {
    font-size: 9px;
  }

  .phone-missions {
    margin: 0 12px 18px;
    padding: 16px 14px 6px;
  }

  .phone-mission {
    grid-template-columns: 28px minmax(0, 1fr) 10px;
    gap: 8px;
  }

  .phone-mission-emoji {
    font-size: 22px;
  }

  .hero-phone-column {
    width: 100%;
    padding: 2rem 1rem;
    background: var(--entry-panel);
    border-radius: 24px;
  }

  .hero-phone-column .phone-frame {
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
  }

  .founder-story {
    padding: 20px 1.25rem;
    border-radius: 24px;
  }

  .founder-photo {
    height: 240px;
    aspect-ratio: auto;
    border-radius: 20px;
  }

  .founder-story-copy h2 {
    font-size: clamp(32px, 7.5vw, 49px);
  }

  .how-card,
  .final-cta {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .final-cta .entry-button {
    align-self: stretch;
  }
}

.entry-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.entry-brand,
.entry-topbar-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--entry-accent-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.entry-topbar-link:hover {
  text-decoration: underline;
}

.entry-topbar form {
  margin: 0;
}

.setup-wizard-page {
  width: min(920px, calc(100% - 32px));
}

.setup-wizard,
.wizard-step,
.moments-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
}

.wizard-step,
.setup-complete-shell {
  padding: 34px;
  border: 1px solid var(--entry-line);
  border-radius: 28px;
  background: var(--entry-panel);
  box-shadow: var(--entry-shadow);
}

.wizard-enhanced .wizard-step:not(.is-active) {
  display: none;
}

.moments-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 30px;
  align-items: end;
}

.moments-header h1,
.setup-complete-shell h1 {
  margin: 0;
  font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(40px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.moments-header p,
.thresholds-section > div > p,
.quick-actions-section > div > p,
.setup-complete-shell > p {
  margin: 0;
  color: var(--entry-muted);
  font-size: 17px;
  line-height: 1.6;
}

.magic-email-preview {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--entry-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(69, 45, 34, 0.08);
}

.magic-email-meta {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
}

.magic-email-meta span {
  color: var(--entry-muted);
}

.magic-email-subject {
  padding-top: 16px;
  border-top: 1px solid var(--entry-line);
  font-size: 20px;
  font-weight: 800;
}

.magic-email-preview p {
  margin: 0;
  color: var(--entry-muted);
  line-height: 1.6;
}

.magic-email-preview .entry-button {
  justify-self: start;
}

.first-mission {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 2px solid rgba(187, 102, 76, 0.28);
  border-radius: 24px;
  background: linear-gradient(135deg, #fffaf4 0%, #fbefe4 100%);
}

.first-mission-label {
  color: var(--entry-accent-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.first-mission-label span {
  padding: 0 7px;
}

.mission-fields {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 14px;
}

.mission-description {
  grid-column: 1 / -1;
}

.entry-field textarea {
  min-height: 100px;
  padding: 14px;
  resize: vertical;
}

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

.moments-list-section,
.quick-actions-section,
.thresholds-section {
  display: grid;
  gap: 16px;
}

.moments-list-section h2,
.thresholds-section h2 {
  margin: 0;
  font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 32px;
}

.moments-list {
  overflow: hidden;
  border: 1px solid var(--entry-line);
  border-radius: 22px;
  background: #fff;
}

.moment-row + .moment-row {
  border-top: 1px solid var(--entry-line);
}

.moment-row-error {
  box-shadow: inset 3px 0 var(--entry-danger);
}

.moment-summary {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 80px 88px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 18px;
  border: 0;
  background: #fff;
  color: var(--entry-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.moment-summary:hover,
.moment-row.is-open .moment-summary {
  background: var(--entry-panel-soft);
}

.moment-emoji {
  font-size: 24px;
}

.moment-name {
  font-weight: 800;
}

.moment-xp,
.moment-edit-label {
  color: var(--entry-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.moment-editor {
  padding: 4px 18px 20px 74px;
  background: var(--entry-panel-soft);
}

.quick-actions-section {
  padding: 22px;
  border-radius: 22px;
  background: rgba(31, 38, 41, 0.035);
}

.quick-actions-list {
  display: grid;
  gap: 10px;
}

.quick-action {
  display: grid;
  grid-template-columns: 36px 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--entry-line);
  border-radius: 16px;
  background: var(--entry-panel);
}

.quick-action p {
  margin: 0;
  color: var(--entry-muted);
  font-size: 14px;
}

.quick-action-emoji {
  font-size: 22px;
}

.locked-label {
  color: var(--entry-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.threshold-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--entry-line);
  border-radius: 20px;
  background: #fff;
}

.threshold-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.threshold-table th,
.threshold-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--entry-line);
}

.threshold-table th {
  color: var(--entry-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.threshold-table tr:last-child td {
  border-bottom: 0;
}

.threshold-input {
  width: 110px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--entry-line);
  border-radius: 12px;
  font: inherit;
}

.threshold-static {
  display: inline-flex;
  min-width: 110px;
  min-height: 42px;
  align-items: center;
  padding: 0 10px;
  color: var(--entry-muted);
}

.threshold-error {
  display: block;
  max-width: 220px;
  margin-top: 5px;
}

.wizard-actions {
  display: flex;
  gap: 12px;
}

.wizard-actions .entry-button-full {
  flex: 1;
}

.wizard-actions-column {
  flex-direction: column;
  align-items: stretch;
}

.wizard-back-link {
  display: block;
  margin: 0 auto;
  padding: 6px;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--entry-muted);
  text-decoration: none;
  cursor: pointer;
}

.wizard-back-link:hover {
  text-decoration: underline;
}

.setup-complete-shell {
  display: grid;
  gap: 24px;
}

.setup-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wizard-progress {
  height: 4px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--entry-line);
  overflow: hidden;
}

.wizard-progress span {
  display: block;
  height: 100%;
  width: 92%;
  background: linear-gradient(90deg, var(--entry-accent), #c9a24b);
}

.setup-start-micro {
  margin: -8px 0 0;
  color: var(--entry-muted);
  font-size: 13px;
  line-height: 1.5;
}

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

/* === Organizer panel (merged status + collaborators view) === */

.panel-shell {
  display: grid;
  gap: 20px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel-cell {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--entry-panel-soft);
}

.panel-cell-label {
  color: var(--entry-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-cell-value {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
}

.panel-cell-value-active {
  color: var(--entry-success);
}

.panel-cell-value-test {
  color: var(--entry-accent-deep);
}

/* Hero: couple names + date/countdown + status chip */
.panel-hero {
  display: grid;
  gap: 4px;
}

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

.panel-hero-top .section-eyebrow {
  margin-bottom: 0;
}

.panel-hero h1 {
  margin: 6px 0 0;
}

.panel-hero-sub {
  margin: 4px 0 0;
  color: var(--entry-muted);
  font-size: 16px;
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--entry-line);
  border-radius: 999px;
  background: rgba(28, 24, 16, 0.04);
  color: var(--entry-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.panel-chip-test {
  border-color: rgba(177, 84, 58, 0.3);
  background: var(--entry-accent-soft);
  color: var(--entry-accent-deep);
}

.panel-chip-active {
  border-color: rgba(61, 107, 57, 0.3);
  background: rgba(61, 107, 57, 0.1);
  color: var(--entry-success);
}

/* Onboarding checklist: one-line steps, hint only on the current one */
.panel-check {
  padding: 18px;
  border: 1px solid var(--entry-line);
  border-radius: 20px;
  background: var(--entry-panel);
  box-shadow: var(--entry-shadow);
}

.panel-check-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--entry-line);
}

.panel-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--entry-accent), #c9a24b);
  transition: width 300ms ease;
}

.panel-check-list {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.panel-check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

a.panel-check-row:hover {
  background: var(--entry-panel-soft);
}

a.panel-check-row:hover .panel-check-arrow {
  transform: translateX(2px);
}

.panel-check-row.is-current {
  background: var(--entry-accent-soft);
}

.panel-check-marker {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--entry-line);
  border-radius: 50%;
  background: var(--entry-panel);
  color: var(--entry-muted);
  font-size: 13px;
  font-weight: 800;
}

.panel-check-row.is-current .panel-check-marker {
  border-color: var(--entry-accent);
  background: var(--entry-accent);
  color: #fff;
}

.panel-check-row.is-done .panel-check-marker {
  border-color: var(--entry-success);
  background: var(--entry-success);
  color: #fff;
}

.panel-check-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1;
  padding-top: 3px;
}

.panel-check-label {
  font-size: 15px;
  font-weight: 800;
}

.panel-check-row.is-done .panel-check-label {
  color: var(--entry-muted);
  font-weight: 600;
}

.panel-check-hint {
  color: var(--entry-muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-check-arrow {
  align-self: center;
  flex-shrink: 0;
  color: var(--entry-accent-deep);
  font-weight: 800;
  transition: transform 140ms ease;
}

.panel-check-row.is-done .panel-check-arrow,
.panel-check-row:not(.is-current):not(.is-done) .panel-check-arrow {
  color: var(--entry-muted);
}

.panel-check-activate {
  justify-self: start;
  min-height: 0;
  margin-top: 4px;
  padding: 10px 18px;
  font-size: 14px;
}

/* Live card (active game): players/photos at a glance */
.panel-live {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(61, 107, 57, 0.3);
  border-radius: 20px;
  background: rgba(61, 107, 57, 0.07);
  color: inherit;
  text-decoration: none;
}

.panel-live:hover {
  border-color: var(--entry-success);
}

.panel-live-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--entry-success);
  animation: panel-live-pulse 2s ease-in-out infinite;
}

@keyframes panel-live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 107, 57, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(61, 107, 57, 0);
  }
}

.panel-live-body {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.panel-live-stats {
  font-size: 18px;
  font-weight: 800;
}

/* Navigation cards into the subpages */
.panel-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel-card {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--entry-line);
  border-radius: 16px;
  background: var(--entry-panel);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.panel-card:hover {
  border-color: var(--entry-accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(84, 58, 39, 0.1);
}

.panel-card-wide {
  grid-column: 1 / -1;
}

.panel-card-primary {
  border-color: rgba(177, 84, 58, 0.28);
  background: linear-gradient(135deg, #fffaf4 0%, #fbefe4 100%);
}

.panel-card-emoji {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
}

.panel-card-info {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.panel-card-title {
  font-size: 15px;
  font-weight: 800;
}

.panel-card-meta {
  overflow: hidden;
  color: var(--entry-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-card-meta-theme {
  display: flex;
  align-items: center;
  gap: 7px;
}

.theme-card-swatch.theme-card-swatch-mini {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.panel-text-link {
  color: var(--entry-accent-deep);
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
}

.panel-text-link:hover {
  text-decoration: underline;
}

.panel-lead {
  margin: -10px 0 0;
  color: var(--entry-muted);
  font-size: 15px;
  line-height: 1.55;
}

.panel-note {
  margin: 0;
  color: var(--entry-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* Guest entry card: QR + link + entry code presented as one unit */
.panel-entry-card {
  padding: 16px 18px;
  border: 1px solid var(--entry-line);
  border-radius: 20px;
  background: var(--entry-panel);
  box-shadow: var(--entry-shadow);
}

.panel-entry-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.panel-entry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 10px;
}

.panel-qr-code {
  flex-shrink: 0;
  width: 132px;
  height: 132px;
  padding: 6px;
  border: 1px solid var(--entry-line);
  border-radius: 12px;
  background: #fff;
}

.panel-qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.panel-entry-details {
  display: grid;
  flex: 1;
  gap: 10px;
  min-width: 0;
}

.panel-entry-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-entry-code-label {
  color: var(--entry-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-entry-code {
  padding: 3px 10px;
  border: 1px dashed var(--entry-accent);
  border-radius: 8px;
  background: var(--entry-accent-soft);
  color: var(--entry-accent-deep);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.panel-entry-hint {
  margin: 0;
  color: var(--entry-muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-back-link {
  color: var(--entry-muted);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

/* Languages subpage ("wesele międzynarodowe") + the quiet hub link to it */
.panel-lang-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px dashed var(--entry-line);
  border-radius: 16px;
  color: var(--entry-muted);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: none;
  transition: border-color 140ms ease;
}

.panel-lang-link:hover {
  border-color: var(--entry-accent);
  color: var(--entry-ink);
}

.panel-lang-link .panel-check-arrow {
  margin-left: auto;
}

.lang-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--entry-line);
  border-radius: 999px;
  background: var(--entry-panel);
  color: var(--entry-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 140ms ease,
    color 140ms ease;
}

.lang-chip:hover {
  border-color: var(--entry-accent);
  color: var(--entry-ink);
}

.lang-chip.is-on {
  border-color: var(--entry-accent);
  background: var(--entry-accent-soft);
  color: var(--entry-accent-deep);
}

.lang-editor {
  display: grid;
  gap: 16px;
}

.lang-progress {
  display: grid;
  gap: 8px;
}

.lang-task-list {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.lang-task-row {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--entry-line);
  border-radius: 16px;
  background: var(--entry-panel);
}

.lang-task-original {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.lang-task-emoji {
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1.2;
}

.lang-task-source {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lang-task-name {
  font-size: 14px;
  font-weight: 800;
}

.lang-task-desc {
  color: var(--entry-muted);
  font-size: 13px;
  line-height: 1.45;
}

.lang-task-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border: 1px solid var(--entry-line);
  border-radius: 999px;
  color: var(--entry-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.lang-task-row.is-untranslated {
  border-color: var(--entry-accent);
  border-left: 4px solid var(--entry-accent);
}

.lang-task-badge-todo {
  border-color: var(--entry-accent);
  background: var(--entry-accent-soft);
  color: var(--entry-accent-deep);
}

/* Game-skin picker — one card per skin from the game-themes registry */
.theme-picker-status {
  margin: 8px 0 0;
  color: var(--entry-success);
  font-size: 13px;
  font-weight: 700;
}

.theme-picker-status.is-error {
  color: var(--entry-danger);
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 12px;
}

.theme-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--entry-line);
  border-radius: 14px;
  background: var(--entry-panel);
  cursor: pointer;
  transition:
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.theme-card:hover {
  border-color: var(--entry-accent);
}

.theme-card:has(input:checked) {
  border-color: var(--entry-accent);
  box-shadow: 0 0 0 2px var(--entry-accent-soft);
  background: var(--entry-panel-soft);
}

.theme-card input {
  margin-top: 14px;
  accent-color: var(--entry-accent);
}

.theme-card-swatch {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--entry-line);
  border-radius: 10px;
}

.theme-card-swatch span {
  display: block;
}

.theme-card-info {
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.theme-card-name {
  font-size: 14px;
  font-weight: 800;
}

.theme-card-desc {
  color: var(--entry-muted);
  line-height: 1.4;
}

.theme-card-preview {
  justify-self: start;
  color: var(--entry-accent-deep);
  font-weight: 700;
  text-decoration: none;
}

/* Players & photos: grouping tabs, per-group sections, delete modal */
.panel-section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--entry-line);
  border-radius: 999px;
  background: var(--entry-panel);
}

.panel-tab {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--entry-muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.panel-tab.on {
  background: var(--entry-accent);
  color: #fff;
}

.panel-group-list {
  display: grid;
  gap: 22px;
}

.panel-group-list[hidden] {
  display: none;
}

.panel-group {
  display: grid;
  gap: 10px;
}

.panel-group[hidden] {
  display: none;
}

.panel-search {
  display: block;
  margin-top: -8px;
}

.panel-search .entry-input {
  width: 100%;
}

.panel-group-summary {
  cursor: pointer;
  list-style: none;
}

.panel-group-summary::-webkit-details-marker {
  display: none;
}

.panel-group-summary .panel-org-row:hover {
  border-color: var(--entry-accent);
}

.panel-group-chevron {
  flex-shrink: 0;
  color: var(--entry-muted);
  font-size: 13px;
  transition: transform 140ms ease;
  transform: rotate(-90deg);
}

.panel-group[open] .panel-group-chevron {
  transform: rotate(0deg);
}

.panel-group-head-task {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid var(--entry-line);
  border-radius: 14px;
  background: #fff;
}

.panel-group-head-task .panel-group-chevron {
  align-self: center;
  margin-left: auto;
}

.panel-group-empty {
  margin: 0 2px;
}

.delete-modal-thumb {
  display: block;
  width: 120px;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid var(--entry-line);
  border-radius: 12px;
  object-fit: cover;
}

.delete-modal-thumb[hidden] {
  display: none;
}

.panel-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.panel-photo-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--entry-line);
  border-radius: 14px;
  background: #fff;
}

.panel-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.panel-photo-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
}

.panel-photo-meta {
  overflow: hidden;
  color: var(--entry-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-linkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-linkbox-url {
  overflow: hidden;
  color: var(--entry-accent-deep);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-copy-btn {
  flex: 0 0 auto;
  min-height: 0;
  padding: 8px 14px;
  font-size: 13px;
}

.panel-hint {
  margin: -8px 0 0;
  color: var(--entry-muted);
  font-size: 13px;
  line-height: 1.5;
}

.panel-org-list {
  display: grid;
  gap: 8px;
}

.panel-org-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--entry-line);
  border-radius: 14px;
  background: #fff;
}

.panel-org-avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--entry-accent);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}

.panel-org-info {
  flex: 1;
  min-width: 0;
}

.panel-org-email {
  overflow: hidden;
  color: var(--entry-ink);
  font-weight: 700;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-org-role {
  color: var(--entry-muted);
  font-size: 12px;
}

.panel-icon-btn {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--entry-line);
  border-radius: 8px;
  background: #fff;
  color: var(--entry-accent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.panel-add-org-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.panel-add-org-field {
  flex: 1;
  min-width: 0;
}

/* === Organizer dashboard: list of accessible weddings === */

.wedding-card-list {
  display: grid;
  gap: 14px;
}

.wedding-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--entry-line);
  border-radius: 22px;
  background: var(--entry-panel);
  box-shadow: var(--entry-shadow);
}

.wedding-card-title {
  margin: 0;
  font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  font-size: 24px;
}

.wedding-card-role {
  margin: 4px 0 0;
  color: var(--entry-muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wedding-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wedding-card-empty {
  color: var(--entry-muted);
  font-size: 15px;
}

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

  .panel-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-hero-top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .theme-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel-linkbox-row {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-entry {
    flex-direction: column;
    align-items: center;
  }

  .panel-entry-details {
    width: 100%;
  }

  .panel-add-org-row {
    flex-direction: column;
    align-items: stretch;
  }

  .wedding-card {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .setup-wizard-page {
    width: min(calc(100% - 32px), 920px);
  }

  .wizard-step,
  .setup-complete-shell {
    padding: 22px;
  }

  .moments-header h1,
  .setup-complete-shell h1 {
    font-size: clamp(28px, 7vw, 48px);
  }

  .moments-header,
  .mission-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .mission-description {
    grid-column: auto;
  }

  .emoji-field {
    max-width: 120px;
  }

  .moment-summary {
    grid-template-columns: 36px minmax(0, 1fr) 62px;
    padding: 12px;
  }

  .moment-edit-label {
    grid-column: 2 / -1;
    text-align: left;
  }

  .moment-editor {
    padding: 4px 12px 18px;
  }

  .quick-action {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .quick-action p,
  .locked-label {
    grid-column: 2;
  }

  .wizard-actions,
  .setup-complete-actions {
    display: grid;
  }
}

/* === Step 2 — tasks configurator (ported 1:1 from the Setup Tasks prototype) === */
/* All selectors scoped under .tasks2 so the short generic class names stay isolated. */

.tasks2 {
  font-family: "Hanken Grotesk", sans-serif;
  max-width: 440px;
  margin: 0 auto;
  color: #211c15;
}
.tasks2 *,
.tasks2 *::before,
.tasks2 *::after {
  box-sizing: border-box;
}

.tasks2 .screen {
  background: #fbf6ec;
  border-radius: 26px;
  padding: 24px 18px 26px;
  box-shadow:
    0 18px 44px -20px rgba(40, 25, 10, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.05);
}

.tasks2 .tasks2-phase[hidden] {
  display: none;
}

.tasks2 .eyebrow {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #b1543a;
}
.tasks2 .h1 {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: 31px;
  line-height: 1.04;
  color: #1c1810;
  letter-spacing: -0.012em;
  margin: 9px 0 7px;
}
.tasks2 .sub {
  font-size: 14px;
  color: #6b6151;
  line-height: 1.55;
  margin: 0 0 16px;
}

/* layout utilities (mirrors the prototype runtime helpers) */
.tasks2 .col {
  display: flex;
  flex-direction: column;
}
.tasks2 .gap10 {
  gap: 10px;
}
.tasks2 .gap8 {
  gap: 8px;
}
.tasks2 .fx {
  display: flex;
}
.tasks2 .ac {
  align-items: center;
}
.tasks2 .jb {
  justify-content: space-between;
}
.tasks2 .fw7 {
  font-weight: 700;
}
.tasks2 .fw6 {
  font-weight: 600;
}
.tasks2 .fs13 {
  font-size: 13px;
}
.tasks2 .fs12 {
  font-size: 12px;
}

/* progress */
.tasks2 .t2progress {
  margin-bottom: 6px;
}
.tasks2 .t2progress-meta {
  margin: 2px 2px 8px;
}
.tasks2 .t2count {
  color: #211c15;
}
.tasks2 .t2optimum {
  color: #b1543a;
}
.tasks2 .t2msg {
  margin: 8px 2px 0;
  color: #7a6f58;
}
.tasks2 .bar {
  height: 8px;
  background: #e6d8c0;
  border-radius: 99px;
  overflow: hidden;
}
.tasks2 .barFill {
  height: 100%;
  background: #b1543a;
  border-radius: 99px;
  transition: width 0.25s;
}

.tasks2 .secLab {
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a8c74;
  margin: 22px 2px 10px;
}

/* rows */
.tasks2 .row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #ece0cb;
}
.tasks2 .row.sel {
  border-color: #d8b58a;
  background: #fff8f0;
}
.tasks2 .row.pick {
  border-color: #b7c9a6;
  background: #f8fbf2;
}
.tasks2 .row.opener {
  background: linear-gradient(#fff4e0, #ffedd0);
  border: 1.5px solid #e2b257;
}
.tasks2 .emoji {
  font-size: 21px;
  line-height: 1.15;
  flex-shrink: 0;
}
.tasks2 .f1m {
  flex: 1;
  min-width: 0;
}
.tasks2 .tname {
  font-weight: 700;
  font-size: 14.5px;
  color: #211c15;
  line-height: 1.25;
}
.tasks2 .tname-block {
  display: block;
}
.tasks2 .tdesc {
  font-size: 12.5px;
  color: #7a7060;
  line-height: 1.4;
  margin-top: 2px;
}
.tasks2 .tdesc-block {
  display: block;
}
.tasks2 .openerBadge {
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #a8701a;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* order + action buttons */
.tasks2 .ord {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.tasks2 .ordBtn {
  width: 25px;
  height: 21px;
  border: 1px solid #e0d2bb;
  background: #fff;
  border-radius: 7px;
  color: #8a7c64;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.tasks2 .ordBtn:disabled {
  opacity: 0.32;
  cursor: default;
}
.tasks2 .rowAct {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.tasks2 .iconBtn {
  width: 27px;
  height: 27px;
  border: 1px solid #e6d8c0;
  background: #fff;
  border-radius: 8px;
  color: #9a8c74;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  padding: 0;
  line-height: 1;
}
.tasks2 .iconBtn.rm {
  color: #c08a6a;
  font-size: 17px;
}

/* add-from-library row */
.tasks2 .rowAdd {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #ece0cb;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.tasks2 .addBtn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ebe0c9;
  color: #9a6a2a;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* split labels */
.tasks2 .split {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d6b39;
}
.tasks2 .split .ln {
  flex: 1;
  border-top: 1.5px dashed #b7cba8;
}
.tasks2 .split.grey {
  color: #9a8c74;
}
.tasks2 .split.grey .ln {
  border-color: #dacbb0;
}

/* category chips */
.tasks2 .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}
.tasks2 .chip {
  padding: 7px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid #e0d2bb;
  background: #fff;
  color: #7a6f58;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.tasks2 .chip.on {
  background: #b1543a;
  border-color: #b1543a;
  color: #fff;
}

/* add-custom ghost button */
.tasks2 .ghost {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border: 1.5px dashed #cbb48e;
  border-radius: 14px;
  background: transparent;
  color: #8a6a3a;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 12px;
}

/* composer */
.tasks2 .comp {
  background: #fff;
  border: 1.5px solid #e2b257;
  border-radius: 16px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 10px;
}
.tasks2 .comp-emoji {
  width: 64px;
}
.tasks2 .comp-actions {
  justify-content: flex-end;
}
.tasks2 .comp-save {
  width: auto;
  padding: 9px 16px;
  font-size: 13px;
}
.tasks2 .lab {
  display: block;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a8c74;
  margin-bottom: 5px;
}
.tasks2 .inp {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e0d2bb;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Hanken Grotesk", sans-serif;
  background: #fff;
  color: #211c15;
  resize: vertical;
}
.tasks2 .t2-emoji {
  text-align: center;
}

/* opener-choice cards (phase 1) */
.tasks2 .opCard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 15px;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid #ece0cb;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.tasks2 .opCard.rec {
  border-color: #e2b257;
  background: #fff8ec;
}
.tasks2 .opCard .e {
  font-size: 29px;
  flex-shrink: 0;
}
.tasks2 .opCard-head {
  flex-wrap: wrap;
}
.tasks2 .opCard-chev {
  color: #3d6b39;
  font-weight: 700;
}
.tasks2 .recTag {
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8701a;
  background: #f6e4bd;
  padding: 3px 6px;
  border-radius: 5px;
}

.tasks2 .linkBtn {
  background: none;
  border: none;
  color: #3d6b39;
  font-weight: 700;
  cursor: pointer;
  font-size: 11.5px;
  font-family: inherit;
  padding: 0;
}
.tasks2 .cta {
  width: 100%;
  padding: 16px;
  border-radius: 99px;
  background: #b1543a;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: "Hanken Grotesk", sans-serif;
}
.tasks2 .foot {
  font-size: 12.5px;
  color: #8a8070;
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
.tasks2 .t2libempty {
  margin: 8px 0 0;
}

/* step-2 save button styled like the prototype primary CTA */
.wizard-actions .tasks2-save {
  border-radius: 99px;
  background: #b1543a;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border: none;
  font-family: "Hanken Grotesk", sans-serif;
}
.wizard-actions .tasks2-save:hover {
  background: #9a4631;
}

/* opener phase hides the wizard footer until an opener is chosen */
.wizard-actions[hidden] {
  display: none;
}
.setup-start-note[hidden] {
  display: none;
}

/* Exit-intent modal — offers to email a resume link before leaving step 2/3 */
.exitint-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(40, 25, 10, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.exitint-scrim[hidden] {
  display: none;
}
.exitint-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fcf8f1;
  border-radius: 22px;
  padding: 26px 22px 22px;
  box-shadow: 0 24px 60px -16px rgba(20, 12, 4, 0.6);
  font-family: "Hanken Grotesk", sans-serif;
  color: #211c15;
}
.exitint-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  background: #f0e7d6;
  border-radius: 50%;
  color: #9a8c74;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}
.exitint-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b1543a;
  margin-bottom: 10px;
}
.exitint-h {
  font-family: "Newsreader", serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.08;
  color: #1c1810;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  max-width: 16ch;
}
.exitint-body {
  font-size: 14px;
  color: #6b6151;
  line-height: 1.55;
  margin: 0 0 18px;
}
.exitint-body b {
  color: #3a3329;
}
.exitint-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f3e9da;
  border-radius: 12px;
  padding: 11px 14px;
  margin-bottom: 18px;
}
.exitint-pillDot {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #b1543a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.exitint-pillTxt {
  font-size: 13px;
  color: #3a3329;
  line-height: 1.3;
}
.exitint-pillTxt b {
  color: #211c15;
}
.exitint-input {
  width: 100%;
  padding: 14px 15px;
  border: 1.5px solid #e2d5be;
  border-radius: 12px;
  font-size: 15px;
  font-family: "Hanken Grotesk", sans-serif;
  background: #fff;
  color: #211c15;
  margin-bottom: 8px;
}
.exitint-input:focus {
  outline: none;
  border-color: #c9a24b;
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}
.exitint-error {
  font-size: 12.5px;
  color: #9d2f2f;
  margin: 0 0 10px;
}
.exitint-error[hidden] {
  display: none;
}
.exitint-cta {
  width: 100%;
  padding: 15px;
  border-radius: 99px;
  background: #b1543a;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: "Hanken Grotesk", sans-serif;
}
.exitint-cta:disabled {
  opacity: 0.7;
  cursor: default;
}
.exitint-ghost {
  width: 100%;
  padding: 14px;
  border-radius: 99px;
  background: transparent;
  color: #8a7c64;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  margin-top: 2px;
}
.exitint-micro {
  font-size: 12px;
  color: #9a8c74;
  line-height: 1.5;
  margin: 10px 0 0;
}
.exitint-rlab {
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a8c74;
  margin: 20px 0 10px;
}
.exitint-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.exitint-reason {
  padding: 9px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1.5px solid #e2d5be;
  background: #fff;
  color: #7a6f58;
  cursor: pointer;
  font-family: inherit;
}
.exitint-reason.on {
  background: #b1543a;
  border-color: #b1543a;
  color: #fff;
}
body.exitint-lock {
  overflow: hidden;
}

/* Step 2 renders its own `.tasks2 .screen` card — drop the generic
   `.wizard-step` card chrome here so we don't nest two cards. */
.wizard-step.moments-step {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.moments-step .wizard-actions {
  margin-top: 20px;
}
.moments-step .setup-start-note {
  margin-top: 16px;
  color: #8a8070;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}
