/*
 * BondMai Wish Flow v2.3
 * Apple HIG interaction quality × Linear form clarity × Airbnb warmth.
 * Page scope: .appShell.view-wish only.
 */

html body .appShell.view-wish {
  --wish-page-bg: #f4f7f5;
  --wish-surface: rgba(255, 255, 255, 0.96);
  --wish-surface-soft: #f4f7f5;
  --wish-surface-mint: #edf8f5;
  --wish-surface-warm: #faf6ef;
  --wish-ink: var(--bm-color-ink-950, #101714);
  --wish-muted: var(--bm-color-ink-600, #56635e);
  --wish-line: rgba(25, 54, 46, 0.12);
  --wish-line-strong: rgba(15, 118, 110, 0.25);
  --wish-primary: var(--bm-color-primary, #0f766e);
  --wish-primary-hover: var(--bm-color-primary-hover, #0c5f59);
  --wish-passport: #173a45;
  --wish-danger: #b42318;
  --wish-warning: #a66b1f;
  --wish-radius-card: 26px;
  --wish-radius-control: 14px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 4% 7%, rgba(95, 203, 186, 0.12), transparent 31rem),
    radial-gradient(circle at 94% 10%, rgba(232, 93, 104, 0.07), transparent 25rem),
    linear-gradient(180deg, #f7faf8 0%, var(--wish-page-bg) 42%, #f8f8f5 100%);
}

html body .appShell.view-wish .workspace {
  width: min(1540px, 100%);
  margin-inline: auto;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 28px;
  padding-top: 28px;
}

html body .appShell.view-wish .panel {
  min-width: 0;
  overflow: visible;
}

html body .appShell.view-wish .formView.wishFlowV3 {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  color: var(--wish-ink);
}

html body .appShell.view-wish .wishFlowV3 *,
html body .appShell.view-wish .wishFlowV3 *::before,
html body .appShell.view-wish .wishFlowV3 *::after {
  box-sizing: border-box;
}

html body .appShell.view-wish .wishFlowV3 button,
html body .appShell.view-wish .wishFlowV3 input,
html body .appShell.view-wish .wishFlowV3 select,
html body .appShell.view-wish .wishFlowV3 textarea {
  font: inherit;
}

html body .appShell.view-wish .wishFlowV3 button {
  cursor: pointer;
}

html body .appShell.view-wish .wishFlowV3 button:disabled,
html body .appShell.view-wish .wishFlowV3 input:disabled,
html body .appShell.view-wish .wishFlowV3 select:disabled,
html body .appShell.view-wish .wishFlowV3 textarea:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

html body .appShell.view-wish .wishFlowStepPanel[hidden] {
  display: none !important;
}

/* Hero */
html body .appShell.view-wish .wishFlowHero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  overflow: hidden;
  padding: clamp(26px, 3vw, 38px);
  background:
    linear-gradient(122deg, rgba(239, 250, 247, 0.98), rgba(255, 255, 255, 0.97) 58%, rgba(250, 245, 238, 0.96)),
    var(--wish-surface);
  border: 1px solid var(--wish-line);
  border-radius: 30px;
  box-shadow: 0 18px 54px rgba(20, 53, 44, 0.08), 0 2px 8px rgba(20, 53, 44, 0.04);
}

html body .appShell.view-wish .wishFlowHero::before,
html body .appShell.view-wish .wishFlowHero::after {
  position: absolute;
  z-index: -1;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

html body .appShell.view-wish .wishFlowHero::before {
  top: -116px;
  right: 9%;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(15, 118, 110, 0.07);
}

html body .appShell.view-wish .wishFlowHero::after {
  right: -56px;
  bottom: -78px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(232, 93, 104, 0.08), transparent 68%);
}

html body .appShell.view-wish .wishFlowHeroCopy {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

html body .appShell.view-wish .wishFlowEyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  color: var(--wish-primary);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html body .appShell.view-wish .wishFlowEyebrow .glyph,
html body .appShell.view-wish .wishFlowEyebrow svg {
  width: 16px;
  height: 16px;
}

html body .appShell.view-wish .wishFlowHero h2 {
  max-width: 780px;
  margin: 0;
  color: var(--wish-ink);
  font-family: var(--bm-font-display, Outfit, sans-serif);
  font-size: clamp(2rem, 3.3vw, 3.25rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.042em;
}

html body .appShell.view-wish .wishFlowHero p {
  max-width: 720px;
  margin: 0;
  color: var(--wish-muted);
  font-size: 1rem;
  line-height: 1.72;
}

html body .appShell.view-wish .wishFlowHeroMeta {
  display: grid;
  grid-template-columns: repeat(2, minmax(138px, 1fr));
  gap: 10px;
  min-width: 300px;
}

html body .appShell.view-wish .wishFlowHeroMeta > span {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(20, 53, 44, 0.07);
  backdrop-filter: blur(18px) saturate(1.12);
}

html body .appShell.view-wish .wishFlowHeroMeta b {
  color: var(--wish-ink);
  font-size: 0.93rem;
}

html body .appShell.view-wish .wishFlowHeroMeta small {
  color: var(--wish-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

/* Stepper */
html body .appShell.view-wish .wishFlowStepper {
  position: sticky;
  top: 82px;
  z-index: 14;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: rgba(250, 252, 251, 0.84);
  border: 1px solid rgba(28, 64, 54, 0.11);
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(20, 53, 44, 0.08);
  backdrop-filter: blur(22px) saturate(1.14);
}

html body .appShell.view-wish .wishFlowStepper button {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 64px;
  padding: 10px 14px;
  color: var(--wish-muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

html body .appShell.view-wish .wishFlowStepper button:hover:not(:disabled) {
  color: var(--wish-ink);
  background: rgba(255, 255, 255, 0.72);
}

html body .appShell.view-wish .wishFlowStepper button.active {
  color: var(--wish-primary);
  background: #fff;
  border-color: rgba(15, 118, 110, 0.16);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.08);
}

html body .appShell.view-wish .wishFlowStepper button.complete {
  color: var(--wish-ink);
}

html body .appShell.view-wish .wishFlowStepper button > span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--wish-muted);
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--wish-surface-soft);
  border: 1px solid var(--wish-line);
  border-radius: 11px;
}

html body .appShell.view-wish .wishFlowStepper button.active > span,
html body .appShell.view-wish .wishFlowStepper button.complete > span {
  color: #fff;
  background: var(--wish-primary);
  border-color: var(--wish-primary);
}

html body .appShell.view-wish .wishFlowStepper strong {
  overflow: hidden;
  color: inherit;
  font-size: 0.9rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .appShell.view-wish .wishFlowStepper small {
  overflow: hidden;
  color: var(--wish-muted);
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Draft shelf */
html body .appShell.view-wish .wishFlowDraftShelf {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--wish-line);
  border-radius: 18px;
}

html body .appShell.view-wish .wishFlowDraftShelf > div:first-child {
  display: grid;
  gap: 2px;
}

html body .appShell.view-wish .wishFlowDraftShelf > div:first-child strong {
  font-size: 0.86rem;
}

html body .appShell.view-wish .wishFlowDraftShelf > div:first-child small {
  color: var(--wish-muted);
  font-size: 0.72rem;
}

html body .appShell.view-wish .wishFlowDraftRail {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

html body .appShell.view-wish .wishFlowDraftRail::-webkit-scrollbar {
  display: none;
}

html body .appShell.view-wish .wishFlowDraftRail button {
  display: grid;
  flex: 0 0 auto;
  gap: 3px;
  min-width: 178px;
  padding: 9px 12px;
  color: var(--wish-ink);
  text-align: left;
  background: var(--wish-surface-soft);
  border: 1px solid transparent;
  border-radius: 12px;
}

html body .appShell.view-wish .wishFlowDraftRail button.active {
  background: var(--wish-surface-mint);
  border-color: var(--wish-line-strong);
}

html body .appShell.view-wish .wishFlowDraftRail strong {
  overflow: hidden;
  max-width: 190px;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .appShell.view-wish .wishFlowDraftRail small {
  color: var(--wish-muted);
  font-size: 0.68rem;
}

html body .appShell.view-wish .wishFlowClearDraft {
  min-height: 38px;
  padding: 0 13px;
  color: var(--wish-muted);
  background: #fff;
  border: 1px solid var(--wish-line);
  border-radius: 11px;
}

/* Form composition */
html body .appShell.view-wish .wishFlowForm {
  display: grid;
  gap: 18px;
  min-width: 0;
}

html body .appShell.view-wish .wishFlowLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 24px;
  align-items: start;
  min-width: 0;
}

html body .appShell.view-wish .wishFlowMain {
  display: grid;
  gap: 16px;
  min-width: 0;
}

html body .appShell.view-wish .wishFlowStepPanel {
  min-width: 0;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--wish-surface);
  border: 1px solid var(--wish-line);
  border-radius: var(--wish-radius-card);
  box-shadow: 0 14px 42px rgba(20, 53, 44, 0.06), 0 2px 6px rgba(20, 53, 44, 0.03);
  animation: wish-flow-enter 260ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes wish-flow-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

html body .appShell.view-wish .wishFlowPanelHead {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  margin-bottom: 24px;
}

html body .appShell.view-wish .wishFlowStepNumber {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--wish-primary);
  font-family: var(--bm-font-display, Outfit, sans-serif);
  font-size: 0.9rem;
  font-weight: 800;
  background: var(--wish-surface-mint);
  border: 1px solid rgba(15, 118, 110, 0.15);
  border-radius: 15px;
}

html body .appShell.view-wish .wishFlowPanelHead > div {
  display: grid;
  gap: 6px;
}

html body .appShell.view-wish .wishFlowPanelHead h3 {
  margin: 0;
  color: var(--wish-ink);
  font-family: var(--bm-font-display, Outfit, sans-serif);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.028em;
}

html body .appShell.view-wish .wishFlowPanelHead p {
  max-width: 700px;
  margin: 0;
  color: var(--wish-muted);
  font-size: 0.91rem;
  line-height: 1.65;
}

/* Entry method cards */
html body .appShell.view-wish .wishEntryModeGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

html body .appShell.view-wish .wishEntryModeCard {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 11px;
  min-height: 112px;
  padding: 16px;
  color: var(--wish-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--wish-line);
  border-radius: 17px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

html body .appShell.view-wish .wishEntryModeCard:hover {
  transform: translateY(-2px);
  border-color: var(--wish-line-strong);
  box-shadow: 0 12px 28px rgba(20, 53, 44, 0.07);
}

html body .appShell.view-wish .wishEntryModeCard.active {
  background: linear-gradient(145deg, #f0faf7, #fff);
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
}

html body .appShell.view-wish .wishEntryModeIcon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--wish-primary);
  background: var(--wish-surface-mint);
  border-radius: 13px;
}

html body .appShell.view-wish .wishEntryModeIcon .glyph,
html body .appShell.view-wish .wishEntryModeIcon svg {
  width: 19px;
  height: 19px;
}

html body .appShell.view-wish .wishEntryModeCard strong {
  align-self: end;
  font-size: 0.86rem;
  line-height: 1.3;
}

html body .appShell.view-wish .wishEntryModeCard small {
  color: var(--wish-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

html body .appShell.view-wish .wishEntryModeCard em {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 7px;
  color: var(--wish-primary);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 760;
  background: var(--wish-surface-mint);
  border-radius: 999px;
  opacity: 0;
}

html body .appShell.view-wish .wishEntryModeCard.active em {
  opacity: 1;
}

/* URL composer / upload */
html body .appShell.view-wish .wishLinkComposer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
  padding: 16px;
  background: linear-gradient(135deg, var(--wish-surface-mint), #f8fbfa);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 18px;
}

html body .appShell.view-wish .wishLinkActions {
  display: flex;
  gap: 8px;
  padding-bottom: 1px;
}

html body .appShell.view-wish .wishLinkActions button {
  white-space: nowrap;
}

html body .appShell.view-wish .wishFlowUploadZone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  margin-bottom: 22px;
  padding: 26px;
  color: var(--wish-muted);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(15, 118, 110, 0.09), transparent 55%),
    #fbfdfc;
  border: 1.5px dashed rgba(15, 118, 110, 0.35);
  border-radius: 20px;
  cursor: pointer;
}

html body .appShell.view-wish .wishFlowUploadZone:hover {
  background-color: var(--wish-surface-mint);
  border-color: var(--wish-primary);
}

html body .appShell.view-wish .wishFlowUploadZone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

html body .appShell.view-wish .wishFlowUploadIcon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 9px;
  color: #fff;
  background: var(--wish-primary);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.2);
}

html body .appShell.view-wish .wishFlowUploadZone strong {
  color: var(--wish-ink);
  font-size: 1rem;
}

html body .appShell.view-wish .wishFlowUploadZone small {
  max-width: 460px;
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.5;
}

html body .appShell.view-wish .wishFlowUploadZone em {
  margin-top: 12px;
  padding: 7px 12px;
  color: var(--wish-primary);
  font-size: 0.73rem;
  font-style: normal;
  font-weight: 730;
  background: #fff;
  border: 1px solid rgba(15, 118, 110, 0.17);
  border-radius: 999px;
}

html body .appShell.view-wish .wishManualIntro {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 15px 16px;
  color: var(--wish-muted);
  background: var(--wish-surface-warm);
  border: 1px solid rgba(154, 111, 57, 0.12);
  border-radius: 17px;
}

html body .appShell.view-wish .wishManualIntro > .glyph {
  flex: 0 0 auto;
  color: #8b673c;
}

html body .appShell.view-wish .wishManualIntro strong {
  display: block;
  margin-bottom: 3px;
  color: var(--wish-ink);
}

html body .appShell.view-wish .wishManualIntro p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

html body .appShell.view-wish .wishPhotoRail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin: -6px 0 22px;
}

html body .appShell.view-wish .wishPhotoRail figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
  background: var(--wish-surface-soft);
  border: 1px solid var(--wish-line);
  border-radius: 14px;
}

html body .appShell.view-wish .wishPhotoRail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

html body .appShell.view-wish .wishPhotoRail figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  overflow: hidden;
  padding: 4px 6px;
  color: #fff;
  font-size: 0.62rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(16, 23, 20, 0.66);
  border-radius: 7px;
  backdrop-filter: blur(8px);
}

html body .appShell.view-wish .wishPhotoRail button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #fff;
  background: rgba(16, 23, 20, 0.68);
  border: 0;
  border-radius: 999px;
}

html body .appShell.view-wish .wishFlowProductPreview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding: 12px;
  background: var(--wish-surface-soft);
  border: 1px solid var(--wish-line);
  border-radius: 17px;
}

html body .appShell.view-wish .wishFlowProductPreview img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: #fff;
  border-radius: 12px;
}

html body .appShell.view-wish .wishFlowProductPreview > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

html body .appShell.view-wish .wishFlowProductPreview span {
  color: var(--wish-primary);
  font-size: 0.67rem;
  font-weight: 760;
  letter-spacing: 0.08em;
}

html body .appShell.view-wish .wishFlowProductPreview strong {
  overflow: hidden;
  font-size: 0.93rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .appShell.view-wish .wishFlowProductPreview small,
html body .appShell.view-wish .wishFlowProductPreview p {
  overflow: hidden;
  margin: 0;
  color: var(--wish-muted);
  font-size: 0.74rem;
  line-height: 1.45;
  text-overflow: ellipsis;
}

/* Type selector */
html body .appShell.view-wish .wishFlowSectionDivider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
  color: var(--wish-muted);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html body .appShell.view-wish .wishFlowSectionDivider::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--wish-line);
}

html body .appShell.view-wish .wishTypeChoice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

html body .appShell.view-wish .wishTypeChoice button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 11px;
  min-height: 94px;
  padding: 15px;
  color: var(--wish-ink);
  text-align: left;
  background: #fff;
  border: 1px solid var(--wish-line);
  border-radius: 17px;
}

html body .appShell.view-wish .wishTypeChoice button > .glyph {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--wish-primary);
  background: var(--wish-surface-mint);
  border-radius: 12px;
}

html body .appShell.view-wish .wishTypeChoice button.active {
  background: var(--wish-surface-mint);
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
}

html body .appShell.view-wish .wishTypeChoice strong {
  align-self: end;
  font-size: 0.86rem;
}

html body .appShell.view-wish .wishTypeChoice small {
  color: var(--wish-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

/* Fields */
html body .appShell.view-wish .wishFlowFieldGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

html body .appShell.view-wish .wishFlowField {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--wish-ink);
}

html body .appShell.view-wish .wishFlowField.wide {
  grid-column: 1 / -1;
}

html body .appShell.view-wish .wishFlowFieldLabel {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--wish-ink);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
}

html body .appShell.view-wish .wishFlowFieldLabel em {
  padding: 2px 6px;
  color: var(--wish-primary);
  font-size: 0.61rem;
  font-style: normal;
  background: var(--wish-surface-mint);
  border-radius: 999px;
}

html body .appShell.view-wish .wishFlowField input,
html body .appShell.view-wish .wishFlowField select,
html body .appShell.view-wish .wishFlowField textarea {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  color: var(--wish-ink);
  background: #fff;
  border: 1px solid rgba(35, 67, 58, 0.17);
  border-radius: var(--wish-radius-control);
  outline: 0;
  box-shadow: 0 1px 0 rgba(20, 53, 44, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

html body .appShell.view-wish .wishFlowField input::placeholder,
html body .appShell.view-wish .wishFlowField textarea::placeholder {
  color: #8b9792;
}

html body .appShell.view-wish .wishFlowField input:hover:not(:disabled),
html body .appShell.view-wish .wishFlowField select:hover:not(:disabled),
html body .appShell.view-wish .wishFlowField textarea:hover:not(:disabled) {
  border-color: rgba(15, 118, 110, 0.32);
}

html body .appShell.view-wish .wishFlowField input:focus,
html body .appShell.view-wish .wishFlowField select:focus,
html body .appShell.view-wish .wishFlowField textarea:focus {
  border-color: var(--wish-primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.13);
}

html body .appShell.view-wish .wishFlowField input:disabled {
  color: var(--wish-muted);
  background: #eef2ef;
}

html body .appShell.view-wish .wishFlowField textarea {
  min-height: 116px;
  padding-top: 13px;
  padding-bottom: 13px;
  line-height: 1.55;
  resize: vertical;
}

html body .appShell.view-wish .wishFlowField > small {
  color: var(--wish-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

html body .appShell.view-wish .wishPresetRow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--wish-line);
}

html body .appShell.view-wish .wishPresetRow > span {
  margin-right: 2px;
  color: var(--wish-muted);
  font-size: 0.7rem;
  font-weight: 700;
}

html body .appShell.view-wish .wishPresetRow button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--wish-primary);
  font-size: 0.7rem;
  font-weight: 690;
  background: var(--wish-surface-mint);
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
}

html body .appShell.view-wish .wishPresetRow button:hover {
  color: #fff;
  background: var(--wish-primary);
}

/* Relay panel */
html body .appShell.view-wish .wishRelayPanel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #edf8f5, #f8fbfa);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 20px;
}

html body .appShell.view-wish .wishRelayHead {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

html body .appShell.view-wish .wishRelayHead > .glyph {
  flex: 0 0 auto;
  color: var(--wish-primary);
}

html body .appShell.view-wish .wishRelayHead strong,
html body .appShell.view-wish .wishRelayHead small {
  display: block;
}

html body .appShell.view-wish .wishRelayHead small {
  margin-top: 3px;
  color: var(--wish-muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

/* Budget */
html body .appShell.view-wish .wishBudgetContext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

html body .appShell.view-wish .wishBudgetContext > div {
  display: grid;
  gap: 4px;
  min-height: 100px;
  padding: 16px;
  background: var(--wish-surface-soft);
  border: 1px solid var(--wish-line);
  border-radius: 17px;
}

html body .appShell.view-wish .wishBudgetContext span {
  color: var(--wish-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

html body .appShell.view-wish .wishBudgetContext strong {
  font-size: 1rem;
}

html body .appShell.view-wish .wishBudgetContext small {
  color: var(--wish-muted);
  font-size: 0.71rem;
  line-height: 1.45;
}

html body .appShell.view-wish .wishEstimateSpotlight {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  padding: 18px;
  color: #ecfffb;
  background:
    radial-gradient(circle at 88% 10%, rgba(94, 211, 193, 0.22), transparent 15rem),
    linear-gradient(135deg, #153d43, #0d5c58);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(13, 92, 88, 0.18);
}

html body .appShell.view-wish .wishEstimateIcon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #123d3b;
  background: #a8e6da;
  border-radius: 15px;
}

html body .appShell.view-wish .wishEstimateSpotlight > div:nth-child(2) {
  display: grid;
  gap: 3px;
}

html body .appShell.view-wish .wishEstimateSpotlight span {
  color: rgba(236, 255, 251, 0.72);
  font-size: 0.69rem;
  font-weight: 690;
}

html body .appShell.view-wish .wishEstimateSpotlight strong {
  font-family: var(--bm-font-display, Outfit, sans-serif);
  font-size: 1.45rem;
  line-height: 1.1;
}

html body .appShell.view-wish .wishEstimateSpotlight p {
  margin: 0;
  color: rgba(236, 255, 251, 0.76);
  font-size: 0.73rem;
  line-height: 1.45;
}

html body .appShell.view-wish .wishEstimateSpotlight em {
  padding: 7px 10px;
  color: #d9fff7;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

/* Override old cost panel inside new page */
html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown {
  display: grid;
  gap: 13px;
  margin-top: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--wish-line);
  border-radius: 20px;
  box-shadow: none;
}

html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostHead {
  display: grid;
  gap: 4px;
}

html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostHead strong {
  color: var(--wish-ink);
  font-size: 1.1rem;
}

html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostHead span,
html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostHead small {
  color: var(--wish-muted);
}

html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostGrid > span {
  display: grid;
  gap: 3px;
  min-height: 88px;
  padding: 13px;
  background: var(--wish-surface-soft);
  border: 0;
  border-radius: 14px;
}

html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostGrid b,
html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostGrid strong {
  color: var(--wish-ink);
}

html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostGrid small {
  color: var(--wish-muted);
  font-size: 0.69rem;
  line-height: 1.4;
}

html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostNotice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 13px;
  color: var(--wish-muted);
  background: var(--wish-surface-warm);
  border: 1px solid rgba(154, 111, 57, 0.12);
  border-radius: 14px;
}

/* Alerts */
html body .appShell.view-wish .wishFlowAlert {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 15px;
  color: var(--wish-muted);
  background: var(--wish-surface-soft);
  border: 1px solid var(--wish-line);
  border-radius: 16px;
}

html body .appShell.view-wish .wishFlowMain > .wishFlowAlert {
  margin-top: 0;
}

html body .appShell.view-wish .wishFlowAlert > .glyph {
  flex: 0 0 auto;
  margin-top: 1px;
}

html body .appShell.view-wish .wishFlowAlert strong {
  display: block;
  margin-bottom: 2px;
  color: var(--wish-ink);
  font-size: 0.82rem;
}

html body .appShell.view-wish .wishFlowAlert p,
html body .appShell.view-wish .wishFlowAlert small {
  display: block;
  margin: 0;
  color: inherit;
  font-size: 0.73rem;
  line-height: 1.5;
}

html body .appShell.view-wish .wishFlowAlert.warning {
  color: #79531f;
  background: #fff8e9;
  border-color: rgba(166, 107, 31, 0.24);
}

html body .appShell.view-wish .wishFlowAlert.success {
  color: #236254;
  background: #edf9f4;
  border-color: rgba(21, 115, 95, 0.22);
}

html body .appShell.view-wish .wishFlowAlert.error {
  color: #8f2f28;
  background: #fff2f1;
  border-color: rgba(180, 35, 24, 0.22);
}

/* Review */
html body .appShell.view-wish .wishReviewCard {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  padding: 14px;
  background: var(--wish-surface-soft);
  border: 1px solid var(--wish-line);
  border-radius: 21px;
}

html body .appShell.view-wish .wishReviewVisual {
  min-width: 0;
}

html body .appShell.view-wish .wishReviewVisual .wishVisual {
  min-height: 260px;
  height: 100%;
  border-radius: 16px;
}

html body .appShell.view-wish .wishReviewSummary {
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 8px 8px 0;
}

html body .appShell.view-wish .wishReviewSummary > .status {
  width: fit-content;
}

html body .appShell.view-wish .wishReviewSummary h3 {
  margin: 0;
  font-family: var(--bm-font-display, Outfit, sans-serif);
  font-size: 1.4rem;
  line-height: 1.2;
}

html body .appShell.view-wish .wishReviewSummary > p {
  margin: 0;
  color: var(--wish-muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

html body .appShell.view-wish .wishReviewSummary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
}

html body .appShell.view-wish .wishReviewSummary dl > div {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  background: #fff;
  border: 1px solid var(--wish-line);
  border-radius: 12px;
}

html body .appShell.view-wish .wishReviewSummary dt {
  color: var(--wish-muted);
  font-size: 0.65rem;
}

html body .appShell.view-wish .wishReviewSummary dd {
  overflow: hidden;
  margin: 0;
  color: var(--wish-ink);
  font-size: 0.77rem;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .appShell.view-wish .wishReviewChecklist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

html body .appShell.view-wish .wishReviewChecklist article {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 112px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--wish-line);
  border-radius: 16px;
}

html body .appShell.view-wish .wishReviewChecklist article > .glyph {
  flex: 0 0 auto;
  color: var(--wish-primary);
}

html body .appShell.view-wish .wishReviewChecklist strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
}

html body .appShell.view-wish .wishReviewChecklist p {
  margin: 0;
  color: var(--wish-muted);
  font-size: 0.7rem;
  line-height: 1.48;
}

html body .appShell.view-wish .wishDuplicateNotice {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding: 15px;
  background: #fff8e9;
  border: 1px solid rgba(166, 107, 31, 0.2);
  border-radius: 16px;
}

html body .appShell.view-wish .wishDuplicateNotice > p {
  margin: 0;
  color: #79531f;
  font-size: 0.74rem;
}

html body .appShell.view-wish .wishDuplicateNotice > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

html body .appShell.view-wish .wishDuplicateNotice span {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 11px;
  font-size: 0.75rem;
  font-weight: 680;
}

html body .appShell.view-wish .wishDuplicateNotice small {
  color: #79531f;
  font-size: 0.65rem;
}

html body .appShell.view-wish .wishPublishConsent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin-top: 16px;
  padding: 16px;
  background: var(--wish-surface-mint);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 17px;
  cursor: pointer;
}

html body .appShell.view-wish .wishPublishConsent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--wish-primary);
}

html body .appShell.view-wish .wishPublishConsent strong,
html body .appShell.view-wish .wishPublishConsent small {
  display: block;
}

html body .appShell.view-wish .wishPublishConsent strong {
  margin-bottom: 3px;
  font-size: 0.81rem;
}

html body .appShell.view-wish .wishPublishConsent small {
  color: var(--wish-muted);
  font-size: 0.71rem;
  line-height: 1.5;
}

/* Sticky preview */
html body .appShell.view-wish .wishFlowAside {
  position: sticky;
  top: 178px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

html body .appShell.view-wish .wishFlowPreviewCard {
  overflow: hidden;
  padding: 15px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--wish-line);
  border-radius: 24px;
  box-shadow: 0 18px 54px rgba(20, 53, 44, 0.09);
}

html body .appShell.view-wish .wishFlowPreviewHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 2px 2px 0;
}

html body .appShell.view-wish .wishFlowPreviewHead > div {
  display: grid;
  gap: 2px;
}

html body .appShell.view-wish .wishFlowPreviewHead span {
  color: var(--wish-primary);
  font-size: 0.62rem;
  font-weight: 780;
  letter-spacing: 0.1em;
}

html body .appShell.view-wish .wishFlowPreviewHead strong {
  font-size: 0.84rem;
}

html body .appShell.view-wish .wishFlowPreviewHead em {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 28px;
  padding: 0 8px;
  color: var(--wish-primary);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 780;
  background: var(--wish-surface-mint);
  border-radius: 999px;
}

html body .appShell.view-wish .wishFlowPreviewCard > .wishVisual {
  min-height: 210px;
  border-radius: 17px;
}

html body .appShell.view-wish .wishFlowPreviewCopy {
  display: grid;
  gap: 4px;
  padding: 14px 2px 10px;
}

html body .appShell.view-wish .wishFlowPreviewCopy h3 {
  overflow: hidden;
  margin: 0;
  font-family: var(--bm-font-display, Outfit, sans-serif);
  font-size: 1.08rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .appShell.view-wish .wishFlowPreviewCopy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--wish-muted);
  font-size: 0.72rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html body .appShell.view-wish .wishFlowProgress {
  overflow: hidden;
  height: 6px;
  margin: 2px 2px 12px;
  background: #e7eeeb;
  border-radius: 999px;
}

html body .appShell.view-wish .wishFlowProgress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wish-primary), #57b9a9);
  border-radius: inherit;
  transition: width 240ms ease;
}

html body .appShell.view-wish .wishFlowPreviewStats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

html body .appShell.view-wish .wishFlowPreviewStats > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  background: var(--wish-surface-soft);
  border-radius: 11px;
}

html body .appShell.view-wish .wishFlowPreviewStats small {
  color: var(--wish-muted);
  font-size: 0.62rem;
}

html body .appShell.view-wish .wishFlowPreviewStats strong {
  overflow: hidden;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .appShell.view-wish .wishFlowReadinessList {
  display: grid;
  gap: 6px;
  margin: 13px 0 0;
  padding: 13px 2px 0;
  border-top: 1px solid var(--wish-line);
  list-style: none;
}

html body .appShell.view-wish .wishFlowReadinessList li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--wish-muted);
  font-size: 0.69rem;
}

html body .appShell.view-wish .wishFlowReadinessList li > span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--wish-muted);
  background: var(--wish-surface-soft);
  border-radius: 6px;
}

html body .appShell.view-wish .wishFlowReadinessList li.done {
  color: var(--wish-ink);
}

html body .appShell.view-wish .wishFlowReadinessList li.done > span {
  color: #fff;
  background: var(--wish-primary);
}

html body .appShell.view-wish .wishFlowDraftBadge {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  color: var(--wish-primary);
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--wish-surface-mint);
  border-radius: 11px;
}

html body .appShell.view-wish .wishFlowAsideTip {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 15px;
  color: var(--wish-muted);
  background: var(--wish-surface-warm);
  border: 1px solid rgba(154, 111, 57, 0.12);
  border-radius: 18px;
}

html body .appShell.view-wish .wishFlowAsideTip > .glyph {
  flex: 0 0 auto;
  color: #8b673c;
}

html body .appShell.view-wish .wishFlowAsideTip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--wish-ink);
  font-size: 0.78rem;
}

html body .appShell.view-wish .wishFlowAsideTip p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.5;
}

/* Action bar */
html body .appShell.view-wish .wishFlowActionBar {
  position: relative;
  bottom: auto;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 64, 54, 0.13);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(20, 53, 44, 0.14);
  backdrop-filter: blur(22px) saturate(1.14);
}

html body .appShell.view-wish .wishFlowActionContext {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 9px;
  align-items: baseline;
  min-width: 0;
}

html body .appShell.view-wish .wishFlowActionContext span {
  color: var(--wish-primary);
  font-size: 0.67rem;
  font-weight: 760;
  letter-spacing: 0.04em;
}

html body .appShell.view-wish .wishFlowActionContext strong {
  font-size: 0.82rem;
}

html body .appShell.view-wish .wishFlowActionContext small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: var(--wish-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body .appShell.view-wish .wishFlowActionButtons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

html body .appShell.view-wish .wishFlowActionButtons button {
  min-height: 44px;
  white-space: nowrap;
}

html body .appShell.view-wish .wishFlowActionButtons .primaryButton {
  min-width: 186px;
}

/* Guest nudge containment */
html body .appShell.view-wish .wishFlowV3 > .guestFlowNudge {
  border-radius: 22px;
}

/* Dark mode */
html[data-theme="dark"] body .appShell.view-wish,
body .appShell.view-wish.is-dark {
  --wish-page-bg: #111714;
  --wish-surface: rgba(25, 33, 29, 0.97);
  --wish-surface-soft: #202824;
  --wish-surface-mint: #173a34;
  --wish-surface-warm: #302a21;
  --wish-ink: #f4f8f6;
  --wish-muted: #aebbb5;
  --wish-line: rgba(222, 239, 232, 0.12);
  --wish-line-strong: rgba(98, 198, 184, 0.32);
  --wish-primary: #70d0c2;
  --wish-primary-hover: #8adccd;
  background:
    radial-gradient(circle at 4% 7%, rgba(61, 156, 143, 0.13), transparent 31rem),
    radial-gradient(circle at 94% 10%, rgba(232, 93, 104, 0.07), transparent 25rem),
    linear-gradient(180deg, #121915, #101512);
}

html[data-theme="dark"] body .appShell.view-wish .wishFlowHero,
body .appShell.view-wish.is-dark .wishFlowHero {
  background: linear-gradient(125deg, rgba(23, 52, 46, 0.98), rgba(25, 33, 29, 0.98) 60%, rgba(47, 40, 31, 0.96));
}

html[data-theme="dark"] body .appShell.view-wish :where(.wishFlowHeroMeta > span,.wishFlowStepper,.wishFlowDraftShelf,.wishFlowStepPanel,.wishEntryModeCard,.wishTypeChoice button,.wishFlowField input,.wishFlowField select,.wishFlowField textarea,.wishFlowPreviewCard,.wishReviewChecklist article,.wishReviewSummary dl > div,.wishFlowStepPanel > .wishCostBreakdown,.wishFlowActionBar),
body .appShell.view-wish.is-dark :where(.wishFlowHeroMeta > span,.wishFlowStepper,.wishFlowDraftShelf,.wishFlowStepPanel,.wishEntryModeCard,.wishTypeChoice button,.wishFlowField input,.wishFlowField select,.wishFlowField textarea,.wishFlowPreviewCard,.wishReviewChecklist article,.wishReviewSummary dl > div,.wishFlowStepPanel > .wishCostBreakdown,.wishFlowActionBar) {
  color: var(--wish-ink);
  background-color: var(--wish-surface);
  border-color: var(--wish-line);
}

html[data-theme="dark"] body .appShell.view-wish .wishEntryModeCard.active,
html[data-theme="dark"] body .appShell.view-wish .wishTypeChoice button.active,
body .appShell.view-wish.is-dark .wishEntryModeCard.active,
body .appShell.view-wish.is-dark .wishTypeChoice button.active {
  background: var(--wish-surface-mint);
}

html[data-theme="dark"] body .appShell.view-wish .wishFlowField input:disabled,
body .appShell.view-wish.is-dark .wishFlowField input:disabled {
  background: #2a332f;
}

/* Responsive */
@media (max-width: 1240px) {
  html body .appShell.view-wish .workspace {
    grid-template-columns: 164px minmax(0, 1fr);
    gap: 20px;
  }

  html body .appShell.view-wish .wishFlowLayout {
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 18px;
  }

  html body .appShell.view-wish .wishEntryModeCard {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 14px;
  }

  html body .appShell.view-wish .wishEntryModeIcon {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 1050px) {
  html body .appShell.view-wish .wishFlowHero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  html body .appShell.view-wish .wishFlowHeroMeta {
    width: 100%;
    min-width: 0;
  }

  html body .appShell.view-wish .wishFlowLayout {
    grid-template-columns: 1fr;
  }

  html body .appShell.view-wish .wishFlowAside {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    order: -1;
  }

  html body .appShell.view-wish .wishFlowPreviewCard > .wishVisual {
    min-height: 180px;
  }

  html body .appShell.view-wish .wishFlowAsideTip {
    align-self: stretch;
  }
}

@media (max-width: 820px) {
  html body .appShell.view-wish .wishFlowAside {
    order: 0;
  }

  html body .appShell.view-wish .workspace {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  html body .appShell.view-wish .rail {
    display: none;
  }

  html body .appShell.view-wish .wishFlowHero {
    padding: 23px;
    border-radius: 24px;
  }

  html body .appShell.view-wish .wishFlowHeroMeta {
    grid-template-columns: 1fr 1fr;
  }

  html body .appShell.view-wish .wishFlowStepper {
    top: 72px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  html body .appShell.view-wish .wishFlowStepper::-webkit-scrollbar {
    display: none;
  }

  html body .appShell.view-wish .wishFlowStepper button {
    flex: 0 0 220px;
  }

  html body .appShell.view-wish .wishFlowDraftShelf {
    grid-template-columns: 1fr auto;
  }

  html body .appShell.view-wish .wishFlowDraftRail {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  html body .appShell.view-wish .wishEntryModeGrid,
  html body .appShell.view-wish .wishReviewChecklist {
    grid-template-columns: 1fr;
  }

  html body .appShell.view-wish .wishEntryModeCard {
    min-height: 88px;
  }

  html body .appShell.view-wish .wishLinkComposer {
    grid-template-columns: 1fr;
  }

  html body .appShell.view-wish .wishLinkActions {
    justify-content: stretch;
  }

  html body .appShell.view-wish .wishLinkActions button {
    flex: 1;
  }

  html body .appShell.view-wish .wishReviewCard {
    grid-template-columns: 1fr;
  }

  html body .appShell.view-wish .wishReviewSummary {
    padding: 4px;
  }

  html body .appShell.view-wish .wishFlowActionBar {
    position: sticky;
    z-index: 13;
    bottom: 84px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  html body .appShell.view-wish .wishFlowActionButtons {
    width: 100%;
  }

  html body .appShell.view-wish .wishFlowActionButtons button {
    flex: 1;
  }
}

@media (max-width: 640px) {
  html body .appShell.view-wish .workspace {
    padding: 10px 10px 150px;
  }

  html body .appShell.view-wish .formView.wishFlowV3 {
    gap: 14px;
  }

  html body .appShell.view-wish .wishFlowHero {
    gap: 18px;
    padding: 20px;
    border-radius: 22px;
  }

  html body .appShell.view-wish .wishFlowHero h2 {
    font-size: 2rem;
  }

  html body .appShell.view-wish .wishFlowHero p {
    font-size: 0.88rem;
  }

  html body .appShell.view-wish .wishFlowHeroMeta {
    grid-template-columns: 1fr;
  }

  html body .appShell.view-wish .wishFlowHeroMeta > span {
    min-height: 70px;
  }

  html body .appShell.view-wish .wishFlowStepper {
    top: 64px;
    margin-inline: -2px;
    border-radius: 16px;
  }

  html body .appShell.view-wish .wishFlowStepper button {
    flex-basis: 190px;
    min-height: 58px;
    padding: 8px 10px;
  }

  html body .appShell.view-wish .wishFlowStepper button > span {
    width: 30px;
    height: 30px;
  }

  html body .appShell.view-wish .wishFlowDraftShelf {
    padding: 12px;
    border-radius: 16px;
  }

  html body .appShell.view-wish .wishFlowStepPanel {
    padding: 18px;
    border-radius: 21px;
  }

  html body .appShell.view-wish .wishFlowPanelHead {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 20px;
  }

  html body .appShell.view-wish .wishFlowStepNumber {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  html body .appShell.view-wish .wishFlowPanelHead h3 {
    font-size: 1.4rem;
  }

  html body .appShell.view-wish .wishTypeChoice,
  html body .appShell.view-wish .wishFlowFieldGrid,
  html body .appShell.view-wish .wishBudgetContext,
  html body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostGrid,
  html body .appShell.view-wish .wishReviewSummary dl,
  html body .appShell.view-wish .wishDuplicateNotice > div {
    grid-template-columns: 1fr;
  }

  html body .appShell.view-wish .wishPhotoRail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html body .appShell.view-wish .wishEstimateSpotlight {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  html body .appShell.view-wish .wishEstimateSpotlight em {
    grid-column: 1 / -1;
    width: fit-content;
  }

  html body .appShell.view-wish .wishFlowAside {
    grid-template-columns: 1fr;
  }

  html body .appShell.view-wish .wishFlowPreviewCard > .wishVisual {
    min-height: 168px;
  }

  html body .appShell.view-wish .wishFlowReadinessList {
    display: none;
  }

  html body .appShell.view-wish .wishFlowAsideTip {
    display: none;
  }

  html body .appShell.view-wish .wishFlowActionBar {
    bottom: 76px;
    padding: 11px;
    border-radius: 17px;
  }

  html body .appShell.view-wish .wishFlowActionContext {
    display: none;
  }

  html body .appShell.view-wish .wishFlowActionButtons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body .appShell.view-wish .wishFlowActionButtons .primaryButton {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }

  html body .appShell.view-wish .wishFlowActionButtons button:only-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .appShell.view-wish .wishFlowStepPanel,
  html body .appShell.view-wish .wishFlowV3 * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark-mode surface corrections for legacy background shorthand rules. */
html[data-theme="dark"] body .appShell.view-wish .wishFlowHeroMeta > span,
body .appShell.view-wish.is-dark .wishFlowHeroMeta > span,
html[data-theme="dark"] body .appShell.view-wish .wishFlowStepper,
body .appShell.view-wish.is-dark .wishFlowStepper,
html[data-theme="dark"] body .appShell.view-wish .wishFlowDraftShelf,
body .appShell.view-wish.is-dark .wishFlowDraftShelf,
html[data-theme="dark"] body .appShell.view-wish .wishFlowStepPanel,
body .appShell.view-wish.is-dark .wishFlowStepPanel,
html[data-theme="dark"] body .appShell.view-wish .wishFlowPreviewCard,
body .appShell.view-wish.is-dark .wishFlowPreviewCard,
html[data-theme="dark"] body .appShell.view-wish .wishFlowActionBar,
body .appShell.view-wish.is-dark .wishFlowActionBar {
  background: var(--wish-surface);
}

html[data-theme="dark"] body .appShell.view-wish .wishFlowStepper button.active,
body .appShell.view-wish.is-dark .wishFlowStepper button.active,
html[data-theme="dark"] body .appShell.view-wish .wishEntryModeCard,
body .appShell.view-wish.is-dark .wishEntryModeCard,
html[data-theme="dark"] body .appShell.view-wish .wishTypeChoice button,
body .appShell.view-wish.is-dark .wishTypeChoice button,
html[data-theme="dark"] body .appShell.view-wish .wishFlowProductPreview,
body .appShell.view-wish.is-dark .wishFlowProductPreview,
html[data-theme="dark"] body .appShell.view-wish .wishReviewChecklist article,
body .appShell.view-wish.is-dark .wishReviewChecklist article,
html[data-theme="dark"] body .appShell.view-wish .wishReviewSummary dl > div,
body .appShell.view-wish.is-dark .wishReviewSummary dl > div,
html[data-theme="dark"] body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown,
body .appShell.view-wish.is-dark .wishFlowStepPanel > .wishCostBreakdown {
  color: var(--wish-ink);
  background: #1a221e;
  border-color: var(--wish-line);
}

html[data-theme="dark"] body .appShell.view-wish .wishEntryModeCard.active,
body .appShell.view-wish.is-dark .wishEntryModeCard.active,
html[data-theme="dark"] body .appShell.view-wish .wishTypeChoice button.active,
body .appShell.view-wish.is-dark .wishTypeChoice button.active {
  background: linear-gradient(145deg, #173a34, #1a221e);
}

html[data-theme="dark"] body .appShell.view-wish .wishLinkComposer,
body .appShell.view-wish.is-dark .wishLinkComposer,
html[data-theme="dark"] body .appShell.view-wish .wishRelayPanel,
body .appShell.view-wish.is-dark .wishRelayPanel {
  background: linear-gradient(135deg, #173a34, #1d2924);
  border-color: rgba(112, 208, 194, 0.22);
}

html[data-theme="dark"] body .appShell.view-wish .wishBudgetContext > div,
body .appShell.view-wish.is-dark .wishBudgetContext > div,
html[data-theme="dark"] body .appShell.view-wish .wishFlowPreviewStats > span,
body .appShell.view-wish.is-dark .wishFlowPreviewStats > span,
html[data-theme="dark"] body .appShell.view-wish .wishFlowStepPanel > .wishCostBreakdown .wishCostGrid > span,
body .appShell.view-wish.is-dark .wishFlowStepPanel > .wishCostBreakdown .wishCostGrid > span,
html[data-theme="dark"] body .appShell.view-wish .wishReviewCard,
body .appShell.view-wish.is-dark .wishReviewCard {
  background: var(--wish-surface-soft);
  border-color: var(--wish-line);
}

html[data-theme="dark"] body .appShell.view-wish .wishFlowField input,
html[data-theme="dark"] body .appShell.view-wish .wishFlowField select,
html[data-theme="dark"] body .appShell.view-wish .wishFlowField textarea,
body .appShell.view-wish.is-dark .wishFlowField input,
body .appShell.view-wish.is-dark .wishFlowField select,
body .appShell.view-wish.is-dark .wishFlowField textarea {
  color: var(--wish-ink);
  background: #222d29;
  border-color: rgba(222, 239, 232, 0.16);
}

html[data-theme="dark"] body .appShell.view-wish .wishFlowUploadZone,
body .appShell.view-wish.is-dark .wishFlowUploadZone {
  color: var(--wish-muted);
  background: radial-gradient(circle at 50% 0%, rgba(112, 208, 194, 0.12), transparent 55%), #18211d;
}

/* BondMai buyer conversion polish: turn the existing wish form into a product flow. */
html body .appShell.view-wish {
  background:
    radial-gradient(circle at 8% 10%, rgba(193, 237, 229, 0.38), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(250, 238, 215, 0.48), transparent 26rem),
    linear-gradient(180deg, #fbfcfa 0%, #f5f8f5 58%, #fff 100%);
}

html body .appShell.view-wish .workspace {
  width: min(calc(100% - 64px), 1280px);
  display: block;
  padding-top: 28px;
}

html body .appShell.view-wish .workspace > .rail {
  display: none;
}

html body .appShell.view-wish .panel {
  width: 100%;
}

html body .appShell.view-wish .formView.wishFlowV3 {
  gap: 28px;
}

html body .appShell.view-wish .formView.wishFlowV3 > .wishFlowHero {
  min-height: 210px;
  padding: clamp(30px, 4vw, 52px);
  align-items: center;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.9) 48%, rgba(235,249,246,0.7) 100%),
    url("./images/bondmai-product-still-life.png") right center / 54% auto no-repeat,
    var(--wish-surface);
}

html body .appShell.view-wish .formView.wishFlowV3 > .wishFlowHero h2 {
  max-width: 620px;
  font-size: clamp(2.25rem, 4vw, 4rem);
}

html body .appShell.view-wish .formView.wishFlowV3 > .wishFlowHero p {
  max-width: 560px;
  font-size: 1.05rem;
}

html body .appShell.view-wish .wishPatienceNudge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
  border: 1px solid var(--wish-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(235, 247, 244, .88), transparent 17rem),
    rgba(255, 255, 255, .9);
  box-shadow: 0 12px 32px rgba(20, 53, 44, 0.055);
}

html body .appShell.view-wish .wishPatienceNudge ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

html body .appShell.view-wish .wishInspirationStrip {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--wish-line);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
}

html body .appShell.view-wish .wishInspirationPhoto {
  min-height: 170px;
  display: grid;
  place-items: end start;
  padding: 18px;
  overflow: hidden;
  color: #fff;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14, 32, 28, .06), rgba(14, 32, 28, .62)),
    url("./images/bondmai-product-still-life.png") center / cover no-repeat;
}

html body .appShell.view-wish .wishInspirationPhoto span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 20, .42);
  backdrop-filter: blur(12px);
  font-size: .78rem;
  font-weight: 760;
}

html body .appShell.view-wish .wishInspirationCards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

html body .appShell.view-wish .wishInspirationCards article,
html body .appShell.view-wish .decisionStrip article {
  border: 1px solid rgba(25, 54, 46, .1);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
}

html body .appShell.view-wish .wishDecision {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

html body .appShell.view-wish .wishDecision article {
  min-height: 112px;
  padding: 18px;
}

html body .appShell.view-wish .wishDecision .decisionPrimary {
  background: linear-gradient(135deg, var(--wish-surface-mint), var(--wish-surface-warm));
}

html body .appShell.view-wish .wishForm {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(340px, .66fr);
  gap: 18px 22px;
  align-items: start;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--wish-line);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 54px rgba(20, 53, 44, 0.07);
}

html body .appShell.view-wish .wishForm > .wishModePanel,
html body .appShell.view-wish .wishForm > .guestFlowNudge {
  grid-column: 1 / -1;
}

html body .appShell.view-wish .wishForm > .wishLivePreview,
html body .appShell.view-wish .wishForm > .wishCostBreakdown {
  grid-column: 2;
  position: sticky;
}

html body .appShell.view-wish .wishForm > .wishLivePreview {
  top: 96px;
  grid-row: 3 / span 6;
}

html body .appShell.view-wish .wishForm > .wishCostBreakdown {
  top: 440px;
  grid-row: 9 / span 8;
}

html body .appShell.view-wish .wishForm > .empty,
html body .appShell.view-wish .wishForm > label,
html body .appShell.view-wish .wishForm > .estimate {
  grid-column: 1;
}

html body .appShell.view-wish .wishForm > .splitAction {
  grid-column: 1;
}

html body .appShell.view-wish .wishForm > .splitAction:last-child {
  grid-column: 1 / -1;
  position: static;
  bottom: auto;
  z-index: auto;
  padding: 12px;
  border: 1px solid rgba(25, 54, 46, .1);
  border-radius: 20px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 42px rgba(20, 53, 44, .12);
  backdrop-filter: blur(18px);
}

html body .appShell.view-wish .wishModePanel {
  padding: 18px;
  border: 1px solid var(--wish-line);
  border-radius: 22px;
  background: linear-gradient(135deg, var(--wish-surface-mint), rgba(255,255,255,.86));
}

html body .appShell.view-wish .wishModeGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

html body .appShell.view-wish .wishModeCard {
  min-height: 104px;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(15, 118, 110, .15);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

html body .appShell.view-wish .wishModeCard:hover {
  transform: translateY(-2px);
  border-color: rgba(15,118,110,.32);
  box-shadow: 0 14px 30px rgba(20,53,44,.08);
}

html body .appShell.view-wish .wishModeCard.active {
  border-color: rgba(15,118,110,.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15,118,110,.08);
}

html body .appShell.view-wish .wishForm label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--wish-ink);
  font-size: .82rem;
  font-weight: 720;
}

html body .appShell.view-wish .wishForm input,
html body .appShell.view-wish .wishForm select,
html body .appShell.view-wish .wishForm textarea {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  color: var(--wish-ink);
  border: 1px solid rgba(35, 67, 58, .16);
  border-radius: 16px;
  background: #f8fbfa;
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

html body .appShell.view-wish .wishForm textarea {
  min-height: 120px;
  padding-top: 14px;
  line-height: 1.55;
}

html body .appShell.view-wish .wishForm input:focus,
html body .appShell.view-wish .wishForm select:focus,
html body .appShell.view-wish .wishForm textarea:focus {
  border-color: var(--wish-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15,118,110,.13);
}

html body .appShell.view-wish .wishLivePreview,
html body .appShell.view-wish .wishCostBreakdown,
html body .appShell.view-wish .estimate,
html body .appShell.view-wish .guestFlowNudge {
  border: 1px solid var(--wish-line);
  border-radius: 22px;
  background: rgba(247, 251, 249, .92);
  box-shadow: 0 10px 26px rgba(20,53,44,.045);
}

html body .appShell.view-wish .wishLivePreview {
  overflow: hidden;
}

html body .appShell.view-wish .wishLivePreview .wishVisual {
  min-height: 220px;
}

html body .appShell.view-wish .wishCostBreakdown {
  padding: 22px;
}

html body .appShell.view-wish .wishCostBreakdown .wishCostGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1040px) {
  html body .appShell.view-wish .workspace {
    width: min(calc(100% - 32px), 820px);
  }

  html body .appShell.view-wish .wishForm {
    grid-template-columns: 1fr;
  }

  html body .appShell.view-wish .wishForm > .wishLivePreview,
  html body .appShell.view-wish .wishForm > .wishCostBreakdown,
  html body .appShell.view-wish .wishForm > .empty,
  html body .appShell.view-wish .wishForm > label,
  html body .appShell.view-wish .wishForm > .estimate,
  html body .appShell.view-wish .wishForm > .splitAction {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }

  html body .appShell.view-wish .wishInspirationStrip,
  html body .appShell.view-wish .wishDecision,
  html body .appShell.view-wish .wishInspirationCards {
    grid-template-columns: 1fr;
  }

  html body .appShell.view-wish .wishPatienceNudge {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  html body .appShell.view-wish .workspace {
    width: min(calc(100% - 20px), 420px);
    padding-top: 14px;
  }

  html body .appShell.view-wish .formView.wishFlowV3 > .wishFlowHero {
    min-height: 0;
    padding: 24px;
    background:
      linear-gradient(120deg, rgba(255,255,255,.96), rgba(239,250,247,.9)),
      var(--wish-surface);
  }

  html body .appShell.view-wish .formView.wishFlowV3 > .wishFlowHero h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  html body .appShell.view-wish .wishForm {
    padding: 16px;
    border-radius: 24px;
  }

  html body .appShell.view-wish .wishModeGrid,
  html body .appShell.view-wish .wishCostBreakdown .wishCostGrid {
    grid-template-columns: 1fr;
  }
}
/* Keep submit actions at the end of the flow; sticky CTA belongs to authenticated final step later. */
html body .appShell.view-wish .wishForm > .splitAction:last-child {
  position: static;
}
