/* Shared presentation for the existing five-step editor. Artwork geometry is unchanged. */
body {
  --paper: #f8f5ef;
  --muted: #6d625b;
  --line: #ddd4c8;
  --white: #fffdf8;
  --shadow: 0 12px 32px #36251c08;
  background: var(--paper);
}
body .site-header { max-width: 1200px; padding: 16px 28px; }
body .brand-copy span { color: var(--muted); }
body .app-shell { max-width: 1200px; padding-top: 0; }
body .hero-section {
  max-width: none; margin: 0; padding: 26px 0 22px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left;
}
.hero-eyebrow { margin: 0 0 12px; color: var(--lacquer-dark); font-size: 23px; font-weight: 700; letter-spacing: .14em; }
body .hero-title { font-size: clamp(39px, 3.1vw, 53px); line-height: 1.4; font-weight: 600; letter-spacing: -.03em; }
.hero-description { margin: 12px 0 0; color: var(--muted); font-size: 25px; line-height: 1.8; }
body .hero-guide-hint { margin: 0 0 5px; flex-shrink: 0; font-size: 23px; }
body .hero-guide-hint a { display: inline-flex; align-items: center; min-height: 44px; border: 0; gap: 12px; }
body .hero-guide-hint a::after { content: '↗'; font-size: 29px; }
body .step-flow-bar {
  max-width: none; margin: 0 0 26px; padding: 0; gap: 12px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none;
}
body .step-flow-item {
  padding: 12px 0 16px; gap: 10px; min-height: 66px; border: 0;
  border-bottom: 2px solid transparent; border-radius: 0; background: transparent; box-shadow: none;
}
body .step-flow-item.active { border: 0; border-bottom: 2px solid var(--lacquer); background: transparent; box-shadow: none; }
body .step-flow-item.clickable:hover { background: transparent; color: var(--lacquer-dark); }
body .step-flow-item.locked { opacity: 1; color: var(--muted); }
body .step-flow-num { width: 28px; height: 28px; background: #e8e1d7; color: #62564e; box-shadow: none; }
body .step-flow-item.active .step-flow-num { background: var(--lacquer); color: #fff; box-shadow: none; }
body .step-flow-item.completed .step-flow-num { background: #e0eadf; color: #305e3b; }
body .step-flow-text strong { font-size: 24px; }
body .step-flow-text span { margin-top: 4px; font-size: 22px; }
#workspace-section.in-step-1 { max-width: 1144px !important; }
#step-1-panel { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
body .creation-paths { gap: 16px; margin-bottom: 22px; }
body .creation-path { padding: 14px 20px; min-height: 78px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
body .creation-path.active { border: 1px solid #c3897d; background: #f4e8de; box-shadow: inset 3px 0 0 var(--lacquer); }
body .creation-path strong { font-size: 27px; margin-bottom: 5px; }
body .creation-path span { color: var(--muted); }
#step-1-panel .section-title { margin-bottom: 16px !important; }
#step-1-panel .section-title > strong { font-size: 31px; font-family: 'Noto Serif TC', 'Songti TC', serif; }
#style-count-summary { display: block; margin-top: 5px; color: var(--muted) !important; font-family: 'Microsoft JhengHei', sans-serif; }
body .style-view-switch { border-radius: 8px; background: #eee8df; border: 0; padding: 3px; }
body .style-view-btn { border-radius: 5px; min-height: 38px; padding: 8px 14px; font-size: 23px; }
body .style-view-btn.active { background: var(--white); box-shadow: 0 1px 3px #39221915; }
body .style-category-nav { flex-wrap: wrap; overflow: visible; gap: 8px; margin: 0 0 20px; padding: 0; }
body .style-cat-chip { min-height: 40px; padding: 8px 14px; font-size: 24px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #5e544d; box-shadow: none; }
body .style-cat-chip.active { color: #fff; background: var(--lacquer-dark); border-color: var(--lacquer-dark); box-shadow: none; }
body .style-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; max-height: none; overflow: visible; padding: 3px 0 20px; }
body .style-card { min-width: 0; padding: 7px; border: 2px solid transparent; border-radius: 9px; background: transparent; justify-content: flex-start; transition: border-color .18s ease, background .18s ease; }
body .style-card:hover { transform: none; border-color: #d1bfa9; background: #fffaf3; box-shadow: none; }
body .style-card.selected { padding: 7px; border: 2px solid var(--lacquer); background: var(--white); box-shadow: none; }
body .style-image-wrapper, body .style-image { border-radius: 5px; background: #efe8de; }
body .style-grid.front-mode .style-image { aspect-ratio: 89 / 172; object-fit: contain; }
body .style-grid.front-mode .custom-style-placeholder { aspect-ratio: 89 / 172; border-radius: 5px; }
body .style-name { font-size: 25px; margin-top: 13px; line-height: 1.6; }
body .style-desc { font-size: 23px; line-height: 1.6; margin-bottom: 3px; }
/* STYLE_CHECK_CENTER_20261029 — keep icon inside circle; never font-size >= width */
body .style-check { top: 13px; right: 13px; box-shadow: 0 0 0 2px var(--white); font-size: 0; line-height: 0; padding: 0; overflow: hidden; }
body .style-check .style-check-icon { width: 12px; height: 12px; }
#style-inline-detail { padding: 24px; border: 1px solid #d6c4b0; border-left: 3px solid var(--lacquer); border-radius: 8px; background: #f2eade; }
#style-inline-detail > strong { font-size: 29px; }
#style-inline-detail .subject-comparison { max-width: 480px; margin: 20px auto 0; gap: 20px; }
#style-inline-detail #use-background-photo { display: block; max-width: 480px; margin: 20px auto 0; }
body .panel { border-radius: 14px; box-shadow: var(--shadow); }
body .step2-selected-style-bar { grid-template-columns: 64px minmax(0, 1fr); border-color: var(--line) !important; box-shadow: none !important; border-radius: 8px !important; }
body #step2-style-thumb-box, body #step3-style-thumb-box { width: 64px !important; }
body .step2-selected-style-bar > div:first-child > div:last-child { align-self: center; }
/* BUTTON_SIZE_20261028c — tighter CTA chrome; keep tactile radius from tactile pass */
/* BUTTON_TACTILE_20261028b — keep lift shadows; radius matches index CTAs */
body .primary-btn { border-radius: 14px; min-height: 44px; }
body .secondary-btn { border-radius: 12px; min-height: 44px; }
body .preview-panel { background: #27211e; border-color: #27211e; }
body .step1-resume-banner { border-radius: 8px; box-shadow: none; }
body .site-footer { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
body :is(button, a, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #315a71; outline-offset: 4px; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 1000; padding: 12px 18px; color: #fff; background: #27211e; border-radius: 6px; }
.skip-link:focus { top: 12px; }

@media (max-width: 960px) {
  body .style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  body .step-flow-text span { display: none; }
  body .hero-section { align-items: flex-start; }
}
/* MOBILE_TYPE_20261029 — phone type ~15–17px body feel; step bar uses data-mobile-label */
@media (max-width: 620px) {
  html { font-size: 16px; }
  body { font-size: 16px; }
  body .site-header { padding: 12px 16px; }
  body .brand-copy strong { font-size: 17px; letter-spacing: .06em; }
  body .brand-copy span { font-size: 11px; white-space: nowrap; }
  body .app-shell { padding: 0 16px 32px; }
  body .hero-section { display: block; padding: 16px 0 12px; }
  .hero-eyebrow { font-size: 14px; margin-bottom: 6px; letter-spacing: .1em; }
  body .hero-title { font-size: clamp(24px, 7vw, 30px); line-height: 1.35; }
  .hero-description { font-size: 15px; margin-top: 6px; line-height: 1.55; }
  body .hero-guide-hint { margin: 2px 0 0; font-size: 14px; }
  body .hero-guide-hint a { min-height: 36px; font-size: 14px; gap: 8px; }
  body .hero-guide-hint a::after { font-size: 15px; }
  body .nav-btn { font-size: 14px; padding: 6px 10px; }
  /* Step bar: numbers only + one current-step label (avoids cramped per-step labels) */
  body .step-flow-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin-bottom: 16px;
    border-radius: 0;
    padding: 4px 0 0;
    overflow: visible;
  }
  body .step-flow-bar::before {
    display: block;
    content: attr(data-mobile-label);
    grid-column: 1 / -1;
    text-align: center;
    color: var(--lacquer-dark);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    padding: 0 0 6px;
  }
  body .step-flow-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 6px 0 10px;
    min-height: 40px;
    min-width: 0;
    border-radius: 0;
  }
  body .step-flow-num { width: 24px; height: 24px; font-size: 13px; }
  body .step-flow-text,
  body .step-flow-arrow { display: none !important; }
  body .creation-paths { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
  body .creation-path { padding: 14px 12px; min-height: 92px; box-sizing: border-box; }
  body .creation-path strong { font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
  body .creation-path span { font-size: 13px; line-height: 1.4; }
  #step-1-panel .section-title { gap: 10px; }
  #step-1-panel .section-title > strong { font-size: 21px; line-height: 1.35; }
  #step-1-panel .section-title span,
  #style-count-summary { font-size: 13px; }
  body .style-view-switch { width: 100%; }
  body .style-view-btn { min-height: 40px; font-size: 14px; padding: 8px 10px; }
  body .style-category-nav { flex-wrap: nowrap; overflow-x: auto; gap: 6px; margin-bottom: 12px; padding: 0 0 6px; scrollbar-width: thin; }
  body .style-cat-chip { min-height: 36px; font-size: 14px; padding: 6px 10px; }
  body .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  body .style-card, body .style-card.selected { padding: 5px; }
  body .style-name { font-size: 14px; margin-top: 8px; line-height: 1.4; }
  body .style-desc { font-size: 12px; line-height: 1.4; }
  body .style-check { width: 20px; height: 20px; top: 10px; right: 10px; font-size: 0; line-height: 0; padding: 0; overflow: hidden; }
  body .style-check .style-check-icon { width: 10px; height: 10px; }
  #style-inline-detail { padding: 14px; }
  #style-inline-detail > strong { font-size: 18px; }
  #style-inline-detail .subject-comparison { gap: 10px; }
  body .controls { padding: 14px; }
  body .site-footer { margin-top: 24px; font-size: 13px; }
}
/* MOBILE_LAYOUT_20261029 — step2 diecut header stack + photo bar / dropzone / bottom nav overflow */
@media (max-width: 620px) {
  /* Diecut header: title full-width row, pill wraps below — no overlap / clip */
  .step2-diecut-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
  }
  .step2-diecut-title-row {
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
  }
  .step2-diecut-title {
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .step2-diecut-pill {
    align-self: flex-start;
    font-size: 12.5px;
    line-height: 1.35;
    padding: 4px 10px;
    white-space: normal;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Photo quick bar: stack file info + action buttons */
  #step2-photo-quick-bar,
  .step2-photo-quick-bar {
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    min-width: 0;
    box-sizing: border-box;
  }
  #step2-photo-quick-bar > div:first-child,
  .step2-photo-quick-bar > div:first-child {
    max-width: 100% !important;
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }
  #step2-photo-quick-bar > div:first-child > span:first-child {
    white-space: nowrap;
    flex-shrink: 0;
  }
  #step2-photo-file-info {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #step2-photo-quick-bar > div:last-child,
  .step2-photo-quick-bar > div:last-child {
    width: 100%;
    flex-shrink: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  #step2-photo-quick-bar button,
  .step2-photo-quick-bar button {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    font-size: 13px !important;
    padding: 6px 10px !important;
    line-height: 1.3;
  }

  /* Upload dropzone: keep text inside padded box */
  .step2-gold-dropzone,
  .photo-main-dropzone,
  #dropzone {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }
  .step2-dropzone-main-text,
  .photo-upload-title {
    font-size: 15px !important;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .step2-dropzone-sub-text,
  .photo-upload-sub,
  .photo-upload-tip {
    font-size: 12.5px !important;
    line-height: 1.45;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .step2-mode-card {
    min-width: 0;
    box-sizing: border-box;
  }
  .step2-mode-title {
    font-size: 15px !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .step2-mode-desc {
    font-size: 12.5px !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.4;
  }

  /* Bottom nav 返回／下一步 — prevent side overflow */
  #mobile-navigation {
    min-width: 0;
    box-sizing: border-box;
  }
  #mobile-navigation-back {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 36%;
  }
  #mobile-navigation-next {
    flex: 1 1 auto;
    min-width: 0;
  }
  #mobile-navigation button {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
#generated-fit-editor > label:not([hidden]) { display: block; margin-top: 14px; }
#generated-fit-mode { display: block; width: 100%; min-height: 44px; margin-top: 7px; padding: 8px 10px; border: 1px solid #c6ab82; border-radius: 8px; background: #fff; color: #542017; font: inherit; }

/* HERO_CLEAN_20261029b */
body.on-step-1 #user-quota-badge { display: none !important; }
/* STEP1_PATH_CARD_20261029o — match step2-mode-card chrome (white / thin red border / icon+title+subtitle) */
body .creation-paths {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  margin-bottom: 22px;
}
body .creation-path {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  min-height: 0 !important;
  border-radius: 14px !important;
  border: 1.5px solid #dfd8d0 !important;
  background: #ffffff !important;
  color: var(--ink, #3a2a24) !important;
  text-align: left !important;
  cursor: pointer;
  box-shadow: none !important;
  box-sizing: border-box;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  font: inherit;
}
body .creation-path:hover {
  border-color: rgba(181, 42, 45, 0.5) !important;
  background: #fffdfc !important;
}
body .creation-path.active,
body .creation-path[aria-pressed="true"] {
  border: 2px solid #b52a2d !important;
  background: #fffbfb !important;
  box-shadow: 0 2px 12px rgba(181, 42, 45, 0.1) !important;
}
body .creation-path-icon {
  font-size: 28px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
}
body .creation-path-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}
body .creation-path strong,
body .creation-path-title {
  display: block !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin: 0 0 2px !important;
  color: var(--ink, #3a2a24) !important;
}
body .creation-path.active strong,
body .creation-path.active .creation-path-title,
body .creation-path[aria-pressed="true"] strong,
body .creation-path[aria-pressed="true"] .creation-path-title {
  color: #b52a2d !important;
}
body .creation-path .creation-path-desc,
body .creation-path-info .creation-path-desc {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  color: var(--muted, #6d625b) !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}
/* Prevent legacy inline .creation-path span {font-size:30px} from ballooning icon+desc */
body .creation-path > span {
  font-size: inherit;
}

/* MOBILE_LAYOUT_20261029b — coherent ≤620px fixes; wins over later 600/430 undoes */
@media (max-width: 620px) {
  /* 1. Header badge must not cover brand — keep 620px grid, hide account name */
  body .site-header,
  .site-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    flex-wrap: unset !important;
    gap: 8px !important;
    align-items: center;
    min-width: 0;
  }
  body .header-right-actions,
  .header-right-actions {
    display: contents !important;
    width: auto !important;
  }
  body .user-badge-account,
  body .user-badge-divider,
  .user-badge-account,
  .user-badge-divider {
    display: none !important;
  }
  body #user-quota-badge,
  body .user-quota-badge,
  body .user-badge,
  #user-quota-badge,
  .user-quota-badge,
  .user-badge {
    min-width: 0 !important;
    max-width: 100%;
    justify-self: end;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body .brand,
  .brand {
    min-width: 0;
    overflow: hidden;
  }
  body .brand-copy,
  .brand-copy {
    min-width: 0;
    overflow: hidden;
  }

  /* 2. Bottom bar — kill 80px locked back basis */
  #mobile-navigation {
    display: flex !important;
    gap: 8px;
    min-width: 0;
    box-sizing: border-box;
  }
  #mobile-navigation-back {
    flex: 0 0 auto !important;
    flex-basis: auto !important;
    white-space: nowrap !important;
    min-width: 0 !important;
    max-width: none !important;
    width: auto !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    box-sizing: border-box;
    font-size: 14px !important;
    line-height: 1 !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }
  #mobile-navigation-back,
  #mobile-navigation #mobile-navigation-back {
    overflow: hidden !important;
    text-overflow: clip !important;
  }
  #mobile-navigation-next {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
  #mobile-navigation button {
    overflow-wrap: anywhere;
  }

  /* 3. Step3 preview header — stack like step2 diecut header (inline flex neutralized) */
  .step4-preview-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    min-width: 0;
  }
  .step4-preview-title {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100%;
    min-width: 0;
  }
  .step4-preview-title > span:first-child {
    font-size: 16px !important;
    line-height: 1.35 !important;
    overflow-wrap: anywhere;
  }
  #step3-preview-badge {
    align-self: flex-start;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* 4. Face tabs — shrink so 「展開印刷圖」 fits */
  body .side-switch,
  .side-switch {
    gap: 6px !important;
  }
  body .side-switch button,
  .side-switch button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 40px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    padding: 8px 4px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  /* 5. Step2/3 selected-style desc — override 600px 30px */
  #step2-style-desc,
  #step3-style-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  #step2-selected-style-badge,
  #step3-selected-style-badge {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }
  body .step2-selected-style-bar > div:first-child > div:last-child strong,
  .step2-selected-style-bar strong {
    font-size: 15px !important;
    line-height: 1.35 !important;
  }

  /* 6. Step1 chips — end padding + snap so last chip reachable */
  body .style-category-nav,
  .style-category-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    gap: 6px !important;
    padding: 0 0 6px !important;
    padding-inline-end: 24px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 calc(100% - 28px), transparent 100%);
  }
  body .style-cat-chip,
  .style-cat-chip {
    scroll-snap-align: start;
    flex: 0 0 auto;
  }

  /* 7. Path cards — step2-mode-card chrome, single column */
  body .creation-paths,
  .creation-paths {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body .creation-path,
  .creation-path {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 12px 14px !important;
    border-radius: 14px !important;
    border: 1.5px solid #dfd8d0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    text-align: left !important;
  }
  body .creation-path.active,
  body .creation-path[aria-pressed="true"],
  .creation-path.active,
  .creation-path[aria-pressed="true"] {
    border: 2px solid #b52a2d !important;
    background: #fffbfb !important;
    box-shadow: 0 2px 12px rgba(181, 42, 45, 0.1) !important;
  }
  body .creation-path-icon,
  .creation-path-icon {
    font-size: 28px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }
  body .creation-path-info,
  .creation-path-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
  }
  body .creation-path strong,
  body .creation-path-title,
  .creation-path strong,
  .creation-path-title {
    font-size: 15px !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    font-weight: 800 !important;
  }
  body .creation-path.active strong,
  body .creation-path.active .creation-path-title,
  body .creation-path[aria-pressed="true"] strong,
  body .creation-path[aria-pressed="true"] .creation-path-title {
    color: #b52a2d !important;
  }
  body .creation-path span,
  body .creation-path-desc,
  .creation-path span,
  .creation-path-desc {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
    color: var(--muted, #6d625b) !important;
    white-space: normal !important;
  }

  /* 8. Step3 greeting controls */
  #greeting,
  body #greeting,
  body .greeting-input,
  .greeting-input,
  body input#greeting,
  body textarea#greeting {
    font-size: 16px !important;
  }
  body input[type=text]#greeting,
  body input[type=text].greeting-input,
  body textarea.greeting-input {
    font-size: 16px !important;
  }
  /* Neutralize the global 29px !important on greeting field only */
  body #step-3-panel input[type=text],
  body #step-3-panel textarea,
  body #greeting-picker input[type=text],
  body #greeting-picker textarea {
    font-size: 16px !important;
  }
  .greeting-picker > summary,
  #greeting-picker > summary {
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    min-height: 0 !important;
    font-size: 16px !important;
    padding: 12px !important;
  }
  .greeting-summary-copy {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .greeting-change-label {
    width: 100% !important;
    justify-content: center;
    font-size: 14px !important;
    min-height: 40px;
  }
  .greeting-style-row {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas:
      "label label"
      "slider val" !important;
    gap: 8px 10px !important;
    align-items: center !important;
  }
  .greeting-style-row > label {
    grid-area: label;
    width: 100% !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }
  .greeting-style-row > input[type=range] {
    grid-area: slider;
    width: 100%;
    min-width: 0;
  }
  .greeting-style-row > span {
    grid-area: val;
    font-size: 14px !important;
    white-space: nowrap;
  }

  /* 9. Other cramped wraps */
  #second-photo-add,
  .second-photo-panel button {
    font-size: 14px !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    padding: 8px 10px !important;
  }
  #surname-clear,
  .surname-selector-actions button {
    white-space: nowrap !important;
    font-size: 14px !important;
  }
  body .banner-qty-selector,
  .banner-qty-selector {
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100%;
    box-sizing: border-box;
  }
  body .banner-qty-btn,
  .banner-qty-btn {
    flex: 1 1 auto !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    min-width: 0;
    padding: 6px 8px !important;
  }
  body .banner-qty-label,
  .banner-qty-label {
    white-space: nowrap;
    font-size: 13px !important;
  }
  #logo-count-badge,
  #materials-summary-count {
    white-space: nowrap !important;
    font-size: 13px !important;
  }
  .materials-picker > summary {
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .materials-picker > summary span {
    white-space: nowrap;
    display: inline-block;
  }
}

