:root {
  --fdo-ink: #111713;
  --fdo-muted: #647069;
  --fdo-paper: #f3f6f2;
  --fdo-panel: #fff;
  --fdo-line: #d9dfda;
  --fdo-lime: #7c3aed;
  --fdo-violet: #7546ff;
  --fdo-coral: #ff5b4d;
  --fdo-focus: #1259d5;
}

@media (max-width: 900px) {
  html body #WRAP > .BODY.dotcity-fdo-body > main#main-content.CENTRE.fdo-shell {
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
  }
}

.dotcity-fdo-body,
.dotcity-fdo-body * {
  box-sizing: border-box;
}

.dotcity-fdo-body {
  margin: 0;
  background: var(--fdo-paper);
  color: var(--fdo-ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.dotcity-fdo-body button,
.dotcity-fdo-body input,
.dotcity-fdo-body select {
  font: inherit;
}

.fdo-shell {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-top: 0 !important;
  overflow: clip;
  background: radial-gradient(circle at 86% 4%, rgba(124,58,237,.18), transparent 25%), linear-gradient(180deg, #eef2ee, #f8faf8 52%, #edf1ed);
}

.fdo-shell [hidden] { display: none !important; }

.fdo-workspace,
.fdo-shortlist,
.fdo-lock {
  scroll-margin-top: 92px;
}

/* The shared shell gives .CENTRE an intrinsic grid height at <=900px.
   Force this route's content-sized track so overflow cannot be clipped. */
@media (max-width: 900px) {
  .dotcity-fdo-body > .fdo-shell {
    align-self: start;
    height: auto !important;
    min-height: 100dvh;
    overflow: visible !important;
  }

  .dotcity-fdo-body .fdo-topbar {
    top: 0;
  }

  .mob-hdr-logo img[src*="mcr-logo-mark.svg"] {
    width: 48px !important;
    height: 48px !important;
  }

  /* The production shell has high-specificity legacy mobile rules that
     zero control text. Restore this route's real labels after that cascade. */
  .BODY.dotcity-fdo-body .fdo-shell :is(button, input, select) {
    font-size: 1rem !important;
  }
  .BODY.dotcity-fdo-body .fdo-shell :is(.fdo-primary-inline, .fdo-primary) {
    font-size: .88rem !important;
  }
  .BODY.dotcity-fdo-body .fdo-shell .fdo-moods button {
    font-size: .8rem !important;
  }
  .BODY.dotcity-fdo-body .fdo-shell .fdo-votes button {
    font-size: .74rem !important;
  }
  .BODY.dotcity-fdo-body .fdo-shell :is(a, button, input, select, label, legend, summary, p, h2, h3, span, strong, small) {
    line-height: 1.3 !important;
  }
  .BODY.dotcity-fdo-body .fdo-shell .fdo-hero-copy > p:not(.fdo-eyebrow) {
    line-height: 1.5 !important;
  }
  .BODY.dotcity-fdo-body .fdo-shell .fdo-eyebrow {
    line-height: 1.2 !important;
  }
  .BODY.dotcity-fdo-body .fdo-shell :is(.fdo-section-head h2, .fdo-lock h2) {
    line-height: .96 !important;
  }
  .BODY.dotcity-fdo-body .fdo-shell .fdo-option-copy h3 {
    line-height: 1.15 !important;
  }
  .BODY.dotcity-fdo-body .fdo-shell .fdo-small {
    line-height: 1.55 !important;
  }
}

.fdo-skip {
  position: fixed;
  left: 16px;
  top: 8px;
  z-index: 10000;
  transform: translateY(-160%);
  border-radius: 10px;
  background: #fff;
  color: var(--fdo-ink);
  padding: 10px 14px;
}

.fdo-skip:focus { transform: none; }

.fdo-topbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 clamp(16px, 4vw, 52px);
  border: 0;
  background: linear-gradient(180deg, rgba(5,9,7,.58), transparent);
}

.fdo-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.fdo-brand img { display: block; width: 46px; height: 46px; object-fit: contain; filter: brightness(0) invert(1); }

.fdo-area-pill {
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(8,13,10,.5);
  color: #fff;
  padding: 9px 13px;
  font-size: .8rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.fdo-status-wrap {
  position: absolute;
  top: 66px;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  min-height: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(8,13,10,.58);
  color: #fff;
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.fdo-status { margin: 0; font-size: .78rem; white-space: nowrap; }
.fdo-status[data-kind="error"] { color: #9b1c13; font-weight: 700; }
.fdo-status[data-kind="success"] { color: #176b36; font-weight: 700; }
.fdo-retry { border: 0; border-radius: 999px; background: var(--fdo-ink); color: #fff; padding: 8px 13px; }

.fdo-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 300px;
  overflow: hidden;
  padding: 110px clamp(24px, 5vw, 74px) 28px;
  border-radius: 0 0 32px 32px;
  background: #101713;
  color: #fff;
  box-shadow: 0 30px 70px rgba(19,34,25,.22);
}

.fdo-hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.fdo-hero-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6,11,8,.82) 0%, rgba(6,11,8,.6) 48%, rgba(6,11,8,.2) 100%), linear-gradient(0deg, rgba(6,11,8,.32), transparent 52%); }
.fdo-hero-copy { position: relative; z-index: 3; width: min(100%, 1100px); }
.fdo-eyebrow { margin: 0 0 9px; color: #65756c; font-size: .72rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.fdo-hero .fdo-eyebrow, .fdo-group .fdo-eyebrow, .fdo-lock .fdo-eyebrow { color: var(--fdo-lime); }
.fdo-hero h1 { max-width: 1100px; margin: 0; font-size: clamp(2.6rem, 4.5vw, 4.6rem); font-weight: 560; line-height: .9; letter-spacing: -.065em; text-wrap: balance; }
.fdo-hero-copy > p:not(.fdo-eyebrow) { max-width: 650px; margin: 10px 0 0; color: rgba(255,255,255,.84); font-size: 1rem; line-height: 1.4; }
.fdo-hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 15px; }
.fdo-hero-actions span { color: rgba(255,255,255,.62); font-size: .82rem; }
.fdo-primary-inline, .fdo-primary { border: 0; border-radius: 16px; background: var(--fdo-coral); color: #fff; padding: 14px 20px; font-weight: 800; cursor: pointer; }
.fdo-primary-inline { border-radius: 999px; background: var(--fdo-lime); color: #fff; }
.fdo-primary { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; margin-top: 22px; }
.fdo-primary-inline:disabled, .fdo-primary:disabled { cursor: not-allowed; opacity: .55; }

.fdo-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #cfd5d0;
  background: #cfd5d0;
  gap: 1px;
}
.fdo-steps a { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 64px; background: #fff; color: var(--fdo-ink); font-size: .82rem; font-weight: 750; text-decoration: none; }
.fdo-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fdo-lime); color: #fff; }

.fdo-workspace, .fdo-shortlist, .fdo-lock { width: min(calc(100% - 42px), 1240px); margin-inline: auto; }
.fdo-workspace { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, .72fr); gap: 20px; margin-block: 28px; }
.fdo-panel, .fdo-group, .fdo-shortlist { border: 1px solid rgba(17,23,19,.08); border-radius: 28px; box-shadow: 0 25px 60px rgba(18,34,24,.09); }
.fdo-panel, .fdo-shortlist { background: rgba(255,255,255,.92); padding: 28px; }
.fdo-group { background: #101513; color: #fff; padding: 25px; }
.fdo-group h2 { margin: 0; font-size: 1.55rem; }
.fdo-group > p { color: #c0cac4; line-height: 1.55; }
.fdo-group button { width: 100%; border: 0; border-radius: 14px; background: var(--fdo-lime); color: #fff; padding: 13px; font-weight: 800; }
.fdo-small { border-top: 1px solid #2a342f; padding-top: 18px; font-size: .75rem; }
.fdo-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.fdo-section-head h2, .fdo-lock h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 3rem); line-height: .96; letter-spacing: -.05em; }
.fdo-section-head p:last-child { color: var(--fdo-muted); }
.fdo-private { border-radius: 999px; background: #edf2ed; padding: 8px 11px; color: #3d5045; font-size: .72rem; font-weight: 800; }

.fdo-fields { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr .8fr 1fr; gap: 10px; margin-top: 24px; }
.fdo-fields label, .fdo-dialog label { display: grid; gap: 7px; }
.fdo-fields label > span, .fdo-dialog label > span { font-size: .78rem; font-weight: 800; }
.fdo-fields input, .fdo-fields select, .fdo-dialog input { width: 100%; height: 50px; min-width: 0; border: 1px solid var(--fdo-line); border-radius: 14px; background: #f8faf8; color: var(--fdo-ink); padding: 0 13px; }
.fdo-moods { margin: 24px 0 0; border: 0; padding: 0; }
.fdo-moods legend { font-size: .82rem; font-weight: 800; }
.fdo-moods > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.fdo-moods button { border: 1px solid var(--fdo-line); border-radius: 999px; background: #fff; padding: 10px 14px; color: var(--fdo-ink); font-size: .8rem; font-weight: 750; }
.fdo-moods button { min-height: 44px; }
.fdo-moods button[aria-pressed="true"] { border-color: var(--fdo-ink); background: var(--fdo-ink); color: #fff; }
.fdo-needs { margin-top: 20px; border-block: 1px solid var(--fdo-line); padding: 15px 0; }
.fdo-needs summary { cursor: pointer; font-size: .82rem; font-weight: 800; }
.fdo-needs summary { display: flex; align-items: center; min-height: 44px; }
.fdo-needs > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 15px; color: #4d5751; font-size: .8rem; }
.fdo-needs label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.fdo-needs input[type="checkbox"] { width: 18px; height: 18px; }

.fdo-shortlist { margin-bottom: 28px; }
.fdo-option-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.fdo-option { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--fdo-line); border-radius: 19px; background: #f8faf8; }
.fdo-option[hidden] { display: none !important; }
.fdo-option > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.fdo-option-copy { flex: 1; padding: 15px; }
.fdo-option-copy > span { color: var(--fdo-coral); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.fdo-option-copy h3 { margin: 7px 0; font-size: 1.08rem; line-height: 1.15; }
.fdo-option-copy a { color: inherit; text-decoration: none; }
.fdo-option-copy p { margin: 5px 0 0; color: var(--fdo-muted); font-size: .76rem; }
.fdo-option-total { flex: 0 0 auto; margin: 0; border-radius: 999px; background: #edf2ed; padding: 9px 12px; color: #3d5045; font-size: .76rem; font-weight: 800; }
.fdo-option-toggle { min-height: 38px; margin-top: 12px; border: 1px solid var(--fdo-ink); border-radius: 999px; background: var(--fdo-ink); color: #fff; padding: 7px 11px; font-size: .72rem; font-weight: 800; }
.fdo-option-toggle[aria-pressed="false"] { background: #fff; color: var(--fdo-ink); }
.fdo-option.is-excluded { border-style: dashed; opacity: .72; }
.fdo-option.is-excluded > img { filter: grayscale(1); }
.fdo-option.has-missing-image { background: linear-gradient(135deg, #eef2ed, #fff); }
.dotcity-fdo-body img[src*="mcr-logo-mark.svg"] { object-fit: contain; }
.fdo-votes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--fdo-line); background: var(--fdo-line); }
  .fdo-votes button { min-height: 48px; border: 0; background: #fff; color: var(--fdo-ink); font-size: .74rem; font-weight: 800; }
.fdo-votes button small { display: inline-grid; place-items: center; min-width: 18px; min-height: 18px; margin-left: 3px; border-radius: 50%; background: #edf1ed; }
.fdo-votes button[data-choice="yes"].is-voted { background: var(--fdo-lime); color: #fff; }
.fdo-votes button[data-choice="maybe"].is-voted { background: #ffd86b; }
.fdo-votes button[data-choice="no"].is-voted { background: var(--fdo-coral); color: #fff; }
.fdo-votes button:disabled { cursor: not-allowed; opacity: .62; }
.fdo-empty { margin-top: 22px; border: 1px dashed #a8b4ac; border-radius: 18px; padding: 24px; background: #f8faf8; }

.fdo-lock { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 42px; border-radius: 28px; background: linear-gradient(125deg, #101513, #26372d); color: #fff; padding: 28px; }
.fdo-lock p:last-child { color: #b7c1bb; }
.fdo-lock button { min-width: 220px; border: 0; border-radius: 16px; background: var(--fdo-lime); color: #fff; padding: 16px 18px; font-weight: 850; }

.fdo-dialog { width: min(92vw, 470px); padding: 0; border: 0; border-radius: 25px; background: #fff; color: var(--fdo-ink); box-shadow: 0 35px 100px rgba(0,0,0,.36); }
.fdo-dialog[open] { position: fixed !important; inset: 50% auto auto 50% !important; width: min(92vw, 470px) !important; max-width: calc(100vw - 24px) !important; max-height: calc(100dvh - 24px) !important; margin: 0 !important; overflow: auto !important; transform: translate(-50%, -50%) !important; }
.fdo-dialog::backdrop { background: rgba(7,12,9,.68); backdrop-filter: blur(8px); }
.fdo-dialog form { position: relative; display: grid; gap: 17px; padding: 34px; background: #fff; color: var(--fdo-ink); }
.fdo-dialog h2 { margin: 0; color: var(--fdo-ink) !important; -webkit-text-fill-color: var(--fdo-ink) !important; font-size: 2rem; letter-spacing: -.04em; }
.fdo-dialog p { margin: 0; color: var(--fdo-muted); }
.fdo-dialog label, .fdo-dialog label > span, .fdo-dialog input { color: var(--fdo-ink) !important; -webkit-text-fill-color: var(--fdo-ink) !important; }
.fdo-dialog input::placeholder { color: #748078 !important; -webkit-text-fill-color: #748078 !important; opacity: 1; }
.fdo-dialog .fdo-primary { margin-top: 0; }
.fdo-dialog :is(.fdo-primary, .fdo-share-grid a, .fdo-share-grid button) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.fdo-close { position: absolute; right: 15px; top: 12px; border: 0; background: transparent; color: var(--fdo-ink) !important; -webkit-text-fill-color: var(--fdo-ink) !important; font-size: 1.8rem; }
.fdo-share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.fdo-share-grid a, .fdo-share-grid button { display: grid; place-items: center; min-height: 48px; border: 0; border-radius: 13px; background: var(--fdo-ink); color: #fff; text-decoration: none; font-weight: 750; }
.fdo-share-grid a:first-child { background: #1f8e4f; }
.fdo-share-grid a:nth-child(2) { background: var(--fdo-violet); }

.dotcity-fdo-body :where(a, button, input, select, summary):focus-visible {
  outline: 3px solid var(--fdo-focus);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .fdo-workspace { grid-template-columns: 1fr; }
  .fdo-group { order: -1; }
  .fdo-option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fdo-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .fdo-topbar { min-height: 54px; padding-inline: 15px; }
  .fdo-area-pill { max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fdo-status-wrap { top: 58px; max-width: calc(100% - 22px); padding: 6px 10px; }
  .fdo-status { max-width: 76vw; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; }
  .fdo-hero { min-height: 310px; padding: 100px 17px 24px; border-radius: 0 0 24px 24px; }
  .fdo-hero-video { object-position: 58% center; }
  .fdo-hero-shade { background: linear-gradient(90deg, rgba(6,11,8,.82), rgba(6,11,8,.42)), linear-gradient(0deg, rgba(6,11,8,.4), transparent 65%); }
  .fdo-hero-copy { width: 100%; }
  .fdo-hero h1 { max-width: 100%; font-size: clamp(2.35rem, 11vw, 3.15rem); line-height: .9; overflow-wrap: normal; }
  .fdo-hero-copy > p:not(.fdo-eyebrow) { font-size: .88rem; }
  .fdo-hero-actions { align-items: center; flex-direction: row; flex-wrap: wrap; margin-top: 12px; }
  .fdo-primary-inline { padding: 12px 17px; }
  .fdo-steps a { min-height: 56px; }
  .fdo-steps span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fdo-workspace, .fdo-shortlist, .fdo-lock { width: calc(100% - 20px); }
  .fdo-panel, .fdo-shortlist, .fdo-group { padding: 20px; border-radius: 21px; }
  .fdo-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fdo-fields label:first-child, .fdo-fields label:nth-child(2) { grid-column: 1 / -1; }
  .fdo-needs > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fdo-option-grid { grid-template-columns: 1fr; }
  .fdo-option { display: grid; grid-template-columns: 118px minmax(0, 1fr); }
  .fdo-option > img { width: 118px; height: 100%; min-height: 135px; aspect-ratio: auto; }
  .fdo-votes { grid-column: 1 / -1; }
  .fdo-lock { align-items: stretch; flex-direction: column; padding: 23px; border-radius: 23px; }
  .fdo-lock button { width: 100%; min-width: 0; }
  .fdo-dialog form { padding: 30px 22px 24px; }
}

@media (max-width: 420px) {
  .fdo-fields, .fdo-needs > div { grid-template-columns: 1fr; }
  .fdo-fields label { grid-column: 1 / -1; }
  .fdo-option { grid-template-columns: 104px minmax(0, 1fr); }
  .fdo-option > img { width: 104px; }
  .fdo-share-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .fdo-hero { background: #101713 url("plan-hero-0810.jpg") center 44% / cover no-repeat; }
  .fdo-hero-video { display: none; }
  .dotcity-fdo-body *,
  .dotcity-fdo-body *::before,
  .dotcity-fdo-body *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Route-only mobile shell reset: keep /plan from inheriting split BODY/CENTRE layout. */
@media (max-width: 900px) {
  html body .BODY.dotcity-fdo-body {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: clip !important;
    background: var(--fdo-paper) !important;
  }

  html body .BODY.dotcity-fdo-body > main.CENTRE.fdo-shell {
    display: block !important;
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
    overflow-x: clip !important;
  }
}
