/* Extra rules to append to style.css */

/* Helpers */
.text-gradient {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: var(--sunset-gradient);
}
.section-label {
  font-family: var(--font-label);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zinc-500);
  margin-bottom: 1rem;
}

/* Step 1: Palette Grid */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}
@media(min-width: 1060px) { .palette-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.palette-option {
  aspect-ratio: 2/1;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  transition: opacity 0.3s, box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}
.palette-option:hover { opacity: 0.8; }
.palette-option > div { flex: 1; height: 100%; }
.palette-option.active-palette {
  opacity: 1 !important;
  transform: scale(1.05);
  border-color: rgba(255, 198, 154, 0.95);
  box-shadow:
    0 0 0 2px rgba(255, 198, 154, 0.98),
    0 0 0 6px rgba(255, 159, 74, 0.32),
    0 18px 38px rgba(255, 159, 74, 0.42),
    0 10px 24px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

.palette-scroll-shell {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.palette-scroll-viewport {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 0.75rem 1rem 0.75rem;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: auto;
  scrollbar-color: rgba(255, 198, 154, 0.55) rgba(255, 255, 255, 0.08);
}

.palette-grid {
  width: 100%;
  min-width: 0;
}

.palette-scroll-viewport::-webkit-scrollbar {
  width: 0.6rem;
}

.palette-scroll-viewport::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.palette-scroll-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 198, 154, 0.5);
  border-radius: 999px;
  border: 2px solid rgba(19, 19, 19, 0.18);
}

.palette-scroll-shell::after {
  content: "";
  position: absolute;
  left: 0.45rem;
  right: 0.45rem;
  bottom: 0;
  height: 1.8rem;
  background: linear-gradient(to bottom, rgba(19, 19, 19, 0), rgba(19, 19, 19, 0.92) 78%);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.palette-scroll-shell.has-overflow:not(.is-at-bottom)::after {
  opacity: 1;
}

#step-1.theme-light .palette-scroll-viewport {
  scrollbar-color: rgba(255, 159, 74, 0.55) rgba(0, 0, 0, 0.08);
}

#step-1.theme-light .palette-scroll-viewport::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
}

#step-1.theme-light .palette-scroll-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 159, 74, 0.5);
  border-color: rgba(252, 251, 249, 0.8);
}

#step-1.theme-light .palette-scroll-shell::after {
  background: linear-gradient(to bottom, rgba(252, 251, 249, 0), rgba(252, 251, 249, 0.96) 78%);
}

#step-1.theme-match-palette .palette-scroll-shell::after {
  background: linear-gradient(to bottom,
    rgba(var(--match-bg-r), var(--match-bg-g), var(--match-bg-b), 0) 0%,
    rgba(var(--match-bg-r), var(--match-bg-g), var(--match-bg-b), 0.94) 78%);
}

@media (min-width: 1060px) {
  /* Palette band grows to fill step-shell; background-mode pinned at bottom */
  #step-1 .palette-selection-block {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #step-1 .background-mode-block {
    flex: 0 0 auto;
    margin-top: 1.35rem !important;
  }

  #step-1 .palette-scroll-shell {
    --palette-grid-gap: 0.4rem;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  #step-1 .palette-scroll-viewport {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    padding: 0.2rem 0.45rem 0 0.45rem;
    scrollbar-gutter: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #step-1 .palette-scroll-viewport::-webkit-scrollbar {
    width: 0;
    display: none;
  }

  #step-1 .palette-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--palette-grid-gap);
    align-items: stretch;
    height: 100%;
  }

  #step-1 .palette-option {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
  }
}

/* Apple/Stripe Light Mode Overrides */
#step-1.theme-light .palette-option {
  border-color: rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(0, 0, 0, 0.01);
  background: rgba(255, 255, 255, 0.5); /* Frosty back */
}

#step-1.theme-light .palette-option.active-palette {
  border-color: rgba(255, 159, 74, 0.7);
  box-shadow:
    0 0 0 1px rgba(255, 159, 74, 1),
    0 4px 12px rgba(255, 159, 74, 0.15),
    0 12px 24px rgba(0, 0, 0, 0.04);
}

/* Keep the sunset-orange accent on "Palette" even in light mode */
#step-1.theme-light .text-gradient {
  background-image: var(--sunset-gradient);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
}

#step-1.theme-light .step-title {
  color: #1d1d1f;
  background: linear-gradient(135deg, #1d1d1f 0%, #434347 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#step-1.theme-light .step-subtitle {
  color: #6e6e73; /* Cocoa Grey for warmth */
  font-weight: 400;
  letter-spacing: -0.01em;
}

#step-1.theme-light .section-label {
  color: #8e8e93;
  letter-spacing: 0.12em;
}

#step-1.theme-light .mode-option {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
#step-1.theme-light .mode-option:hover {
  background: rgba(0, 0, 0, 0.07);
}
#step-1.theme-light .mode-option.active {
  background: rgba(255, 159, 74, 0.08);
  border-color: var(--primary-container);
}
#step-1.theme-light .mode-text {
  color: #434347;
}
#step-1.theme-light .mode-option.active .mode-text {
  color: #1d1d1f;
}
#step-1.theme-light .icon-dim {
  color: #8e8e93;
}
#step-1.theme-light .custom-radio {
  border-color: rgba(0, 0, 0, 0.2);
}

/* Mode Options */
.mode-options-flex {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media(min-width: 1060px) { .mode-options-flex { flex-direction: row; } }

.mode-option {
  flex: 1; padding: 1rem; border-radius: 0.75rem;
  background: var(--surface-container-high);
  border: 1px solid rgba(162, 141, 126, 0.2);
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.3s;
}
.mode-option:hover { background: #353534; }
.mode-option.active {
  background: var(--surface-container-low);
  border: 2px solid var(--primary-container);
  box-shadow: 0 0 0 2px rgba(255,159,74,0.2);
}
.mode-inner { display: flex; align-items: center; gap: 0.75rem; }
.icon-dim { color: var(--zinc-500); }
.mode-text { font-size: 0.875rem; color: var(--on-surface-variant); transition: color 0.3s; }
.mode-option.active .mode-text { color: white; font-weight: 700; }
.mode-option.active .icon-dim { color: var(--zinc-400); }

/* Custom Radio */
.custom-radio {
  width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid var(--zinc-700);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s;
}
.custom-radio.active { border: 4px solid var(--primary-container); }
.custom-radio.font-style { width: 1.25rem; height: 1.25rem; border: 2px solid rgba(84,67,55,1); }
.custom-radio.font-style.active { border-color: var(--primary-container); }

.radio-dot {
  width: 0.375rem; height: 0.375rem; border-radius: 50%;
  background: transparent; transition: background 0.3s, transform 0.3s;
  transform: scale(0);
}
.radio-dot.active { background: var(--primary-container); transform: scale(1); }
.font-style-dot { width: 0.625rem; height: 0.625rem; }

/* Step 2: Split Layout */
.flex-split {
  display: flex;
  flex-direction: row; /* explicit: overrides .step-content-zone--stack's column direction */
  gap: 4rem;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
}
.split-left { flex: 5; display: flex; flex-direction: column; min-width: 0; }
.split-right { flex: 7; display: flex; justify-content: center; min-width: 0; }

#step-2 .font-selection-area,
#step-2 .font-preview-area {
  height: 100%;
}

#step-2 .font-preview-area {
  align-items: center;
  justify-content: center;
}

/* Font List */
.font-list-scroll {
  display: flex; flex-direction: column; gap: 0.75rem;
  width: 100%; max-width: 24rem; margin: 0 auto;
  overflow-y: auto; padding-right: 1rem; height: 100%;
  min-height: 0;
  /* Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 159, 74, 0.4) rgba(255, 255, 255, 0.02);
}
.font-list-scroll::-webkit-scrollbar { width: 5px; }
.font-list-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); border-radius: 10px; }
.font-list-scroll::-webkit-scrollbar-thumb { background: rgba(255, 159, 74, 0.4); border-radius: 10px; }
.font-list-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 159, 74, 0.6); }

.font-option-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem; border-radius: 0.75rem; background: var(--surface-container-low);
  cursor: pointer; transition: all 0.3s;
}
.font-option-card:hover { background: #353534; }
.font-option-card.active {
  background: rgba(255, 159, 74, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 159, 74, 0.3);
}

.font-card-left { display: flex; align-items: center; gap: 1rem; }
.font-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  background: #3a3939; color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; transition: all 0.3s;
}
.font-icon.active-icon { background: var(--primary-container); color: #4d2600; }
.font-name { color: white; font-weight: 700; font-size: 1rem; transition: color 0.3s; }
.font-desc { color: var(--on-surface-variant); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 0.2rem; }
.font-desc.active-desc { color: var(--primary-container); }

/* Preview Card */
.preview-card {
  width: 100%;
  max-width: 38rem;
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  padding: 2.25rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
}
.preview-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  width: 100%;
}
.preview-header {
  margin-bottom: 1.2rem;
}
.preview-label { font-family: var(--font-label); text-transform: uppercase; font-size: 10px; letter-spacing: 0.1em; color: #f9d200; opacity: 0.8; margin-bottom: 0.5rem; display: block; }
.preview-divider { height: 2px; width: 2rem; background: rgba(249,210,0,0.4); border-radius: 9999px; }

.preview-body {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-items: flex-start;
}
.preview-title {
  font-size: clamp(2.35rem, 4vw, 3.55rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.05em;
  line-height: 1.08;
  text-align: left;
  transition: font-family 0.3s;
}
.preview-para {
  color: var(--on-surface-variant);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 28rem;
  text-align: left;
  transition: font-family 0.3s;
}

#step-2 .step-subtitle {
  max-width: 32rem;
  white-space: nowrap;
}

@media (max-width: 1059px) {
  .flex-split { gap: 2rem; }

  #step-2 .container-inner {
    height: min(calc(100vh - 6rem), 720px);
  }

  .preview-card {
    width: min(100%, 30rem);
    max-width: 30rem;
    padding: 2rem;
  }

  .preview-title {
    font-size: clamp(2rem, 3.3vw, 3rem);
  }

  .preview-para {
    font-size: 0.98rem;
  }

  #step-2 .step-subtitle {
    white-space: normal;
  }
}

@media (max-width: 1059px) {
  .flex-split {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    height: auto;
  }

  .split-left,
  .split-right {
    flex: none;
    width: 100%;
    max-height: none;
  }

  #step-2 .container-inner {
    height: auto;
  }

  #step-2 .font-selection-area,
  #step-2 .font-preview-area {
    height: auto;
  }

  #step-2 .font-preview-area {
    align-items: stretch;
  }

  .font-list-scroll {
    max-width: none;
    height: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .preview-card {
    width: 100%;
    max-width: none;
  }

  .preview-para {
    max-width: none;
  }
}

@media (max-width: 1059px) {
  #step-1 {
    --step-1-mobile-scale: 1;
    overflow: hidden;
  }

  #step-1 .step-mobile-fit-viewport {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
  }

  #step-1 .step-mobile-fit-content {
    width: 100%;
    flex: 0 0 auto;
    transform: scale(var(--step-1-mobile-scale));
    transform-origin: top center;
    will-change: transform;
  }

  #step-1 .container-inner {
    height: auto;
    min-height: 0;
  }

  .step-1-content {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 0.9rem;
  }

  #step-1 .step-header {
    flex-shrink: 0;
  }

  .palette-selection-block {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 0;
    flex: 1 1 auto;
  }

  .palette-selection-block .section-label {
    margin-bottom: 0;
  }

  .palette-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: start;
  }

  .palette-scroll-shell {
    flex: 0 0 auto;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 0;
    max-height: clamp(8.5rem, 39vw, 14rem);
    overflow: hidden;
  }

  .palette-scroll-viewport {
    height: 100%;
    max-height: clamp(8.5rem, 39vw, 14rem);
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 0.75rem 1.2rem 0.75rem;
    scrollbar-gutter: stable both-edges;
    scrollbar-width: auto;
    scrollbar-color: rgba(255, 198, 154, 0.72) rgba(255, 255, 255, 0.12);
  }

  .palette-scroll-viewport::-webkit-scrollbar {
    width: 0.55rem;
  }

  .palette-scroll-viewport::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
  }

  .palette-scroll-viewport::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 210, 178, 0.95), rgba(255, 159, 74, 0.78));
    border-radius: 999px;
    border: 1px solid rgba(19, 19, 19, 0.28);
  }

  .palette-scroll-shell::after {
    left: 0;
    right: 0;
    bottom: 0;
    height: 1.65rem;
    background: linear-gradient(to bottom, rgba(19, 19, 19, 0), rgba(19, 19, 19, 0.96) 82%);
    pointer-events: none;
    z-index: 4;
  }

  .background-mode-block {
    margin-top: clamp(0.3rem, -0.01rem + 1.25vw, 0.8rem) !important;
    flex-shrink: 0;
  }

  .mode-options-flex {
    flex-direction: column;
    gap: 0.625rem;
  }

  .mode-option {
    height: 3rem;
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
    border-width: 1px;
  }

  .mode-option.active {
    border-width: 1px;
    box-shadow: 0 0 0 1px rgba(255, 159, 74, 0.2);
  }

  #step-1.theme-light .step-1-header {
    padding: clamp(1rem, 0.88rem + 0.5vw, 1.2rem) clamp(1rem, 0.94rem + 0.25vw, 1rem);
  }

  #step-1.theme-light .palette-scroll-viewport {
    scrollbar-color: rgba(255, 159, 74, 0.72) rgba(0, 0, 0, 0.12);
  }

  #step-1.theme-light .palette-scroll-viewport::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08);
  }

  #step-1.theme-light .palette-scroll-viewport::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 196, 148, 0.98), rgba(255, 159, 74, 0.78));
    border-color: rgba(252, 251, 249, 0.82);
  }

  #step-1.theme-light .palette-scroll-shell::after {
    background: linear-gradient(to bottom, rgba(252, 251, 249, 0), rgba(252, 251, 249, 0.98) 82%);
  }

  #step-1.theme-match-palette .palette-scroll-shell::after {
    background: linear-gradient(to bottom,
      rgba(var(--match-bg-r), var(--match-bg-g), var(--match-bg-b), 0) 0%,
      rgba(var(--match-bg-r), var(--match-bg-g), var(--match-bg-b), 0.96) 82%);
  }
}

@media (max-width: 420px) {
  .palette-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1059px) {
  #step-2 {
    overflow: hidden;
  }

  #step-2 .container-inner {
    height: 100%;
    min-height: 0;
    padding-top: 0;
    display: flex;
  }

  #step-2 .step-shell--editorial {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-height: 0;
  }

  #step-2 .step-header-zone {
    text-align: left !important;
  }

  #step-2 .step-header-zone .step-title {
    font-size: clamp(2rem, 1.53rem + 1.88vw, 2.75rem) !important;
    line-height: 1.02;
    margin-bottom: 0.22rem !important;
  }

  #step-2 .step-header-zone .step-subtitle {
    margin-bottom: 0 !important;
    max-width: 100%;
    font-size: clamp(0.96rem, 0.94rem + 0.1vw, 1rem);
    line-height: 1.38;
  }

  #step-2 .step-content-zone--style {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: var(--mobile-wireframe-band-gap);
    flex: 1 1 auto;
    min-height: 0;
  }

  #step-2 .font-selection-area,
  #step-2 .font-preview-area {
    min-height: 0;
  }

  #step-2 .font-selection-area {
    order: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(0.82rem, 0.76rem + 0.25vw, 0.94rem);
    border-radius: var(--mobile-wireframe-band-radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  }

  #step-2 .font-selection-area .font-list-scroll {
    order: 1;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-width: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: var(--mobile-step-surface-padding);
    padding-bottom: max(0.55rem, var(--mobile-onboarding-inner-safe-padding, 0.55rem));
    scrollbar-width: thin;
  }

  #step-2 .preview-card {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    margin-inline: 0;
    margin-top: 0;
    padding: clamp(1rem, 0.9rem + 0.38vw, 1.2rem);
    border-radius: var(--mobile-wireframe-band-radius);
    display: flex;
  }

  #step-2 .preview-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #step-2 .preview-header {
    margin-bottom: 0.78rem;
  }

  #step-2 .preview-body {
    gap: 0.7rem;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
  }

  #step-2 .preview-title {
    font-size: clamp(1.52rem, 1.22rem + 1.2vw, 2rem);
    line-height: 1.06;
  }

  #step-2 .preview-para {
    max-width: none;
    font-size: clamp(0.88rem, 0.84rem + 0.15vw, 0.95rem);
    line-height: 1.46;
  }

  #step-2 .font-option-card {
    min-height: clamp(4rem, 4rem + 0vw, 4rem);
    padding: clamp(0.9rem, 0.9rem + 0vw, 0.9rem);
  }

  #step-2 .font-card-left {
    gap: clamp(0.75rem, 0.75rem + 0vw, 0.75rem);
    min-width: 0;
  }

  #step-2 .font-details {
    min-width: 0;
  }

  #step-2 .font-name {
    font-size: clamp(0.94rem, 0.94rem + 0vw, 0.94rem);
  }

  #step-2 .font-desc {
    line-height: 1.35;
  }

  #step-3 {
    overflow: hidden;
  }

  #step-3 .step-shell--layout {
    width: 100%;
    min-height: 0;
  }

  #step-3 .mobile-step-heading {
    text-align: left !important;
    margin-bottom: 0;
  }

  #step-3 .layout-step-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: var(--mobile-wireframe-band-gap);
    width: 100%;
    min-height: 0;
    max-height: none !important;
    padding: 0 !important;
  }

  #step-3 .layout-step-sidebar,
  #step-3 .layout-step-preview {
    min-width: 0;
    min-height: 0;
    border-radius: var(--mobile-wireframe-band-radius);
  }

  #step-3 .layout-step-sidebar {
    display: flex;
    flex-direction: column;
    padding: clamp(0.82rem, 0.76rem + 0.25vw, 0.94rem);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  }

  #step-3 .layout-step-sidebar-header {
    display: none;
  }

  #step-3 #section-list {
    padding-right: 0.2rem !important;
    padding-bottom: max(0.55rem, var(--mobile-onboarding-inner-safe-padding, 0.55rem));
  }

  #step-3 .layout-step-preview {
    padding: clamp(0.82rem, 0.76rem + 0.25vw, 0.94rem);
    background: rgba(255, 255, 255, 0.018);
    border: 1px solid rgba(255,255,255,0.06);
  }

  #step-3 .preview-mockup,
  #step-3 .mockup-inner {
    width: 100%;
    height: 100%;
  }
}
