.desktop-designer-intro,
.desktop-configurator,
.desktop-preview-title,
.desktop-preview-edit { display: none; }

@media (min-width: 768px) {
  .desktop-design-flow:not(.design-saved) .section-4 {
    --desktop-designer-panel-height: clamp(495px, calc(100dvh - 244px), 790px);
    width: min(92%, max(70%, 1080px), 1500px);
    margin: 0 auto;
    padding: 38px 0 64px;
    color: #291f28;
    font-family: 'DM Sans', sans-serif;
  }
  .desktop-design-flow:not(.design-saved) .desktop-designer-intro {
    display: block;
    margin-bottom: 24px;
  }
  .desktop-designer-intro h1 {
    margin: 0;
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.04;
    letter-spacing: -.055em;
  }
  .desktop-designer-intro p {
    margin: 10px 0 0;
    color: #685862;
    font-size: 14px;
  }
  .desktop-design-flow:not(.design-saved) .div-block-22 {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(14px, 2vw, 32px);
  }
  .desktop-design-flow:not(.design-saved) .div-block-22 > .div-block-23 {
    position: sticky;
    top: calc(var(--wizard-top, 74px) + 24px);
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: var(--desktop-designer-panel-height);
    margin: 0;
    padding: 18px 16px 32px;
    border: 1px solid #ece2e8;
    border-radius: 24px;
    background: #fff;
  }
  .desktop-design-flow:not(.design-saved) .desktop-preview-title {
    display: block;
    margin: 0 0 18px;
    color: #685862;
    font-size: 14px;
    text-align: center;
  }
  .desktop-design-flow:not(.design-saved) .boardpreview {
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    justify-content: center;
    gap: clamp(12px, 5cqw, 36px);
    width: 100%;
    margin: 0;
  }
  .desktop-design-flow:not(.design-saved) .boardpreview :is(.frontholder, .backholder) {
    display: flex !important;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: min(51dvh, 500px, 124cqw);
    margin: 0;
  }
  .desktop-design-flow:not(.design-saved) .boardpreview .bgcolorfront { height: 100%; }
  .desktop-design-flow:not(.design-saved) .boardpreview :is(.frontimg, .backimg) { height: 100%; width: auto; max-width: none; }
  .desktop-design-flow:not(.design-saved) .boardpreview .div-block-27 { display: none; }
  .desktop-design-flow .board-preview-caption {
    right: auto;
    left: 50%;
    bottom: -28px;
    padding: 4px 10px;
    border-radius: 20px;
    transform: translateX(-50%);
    letter-spacing: 0;
    line-height: 1.2;
  }
  .desktop-design-flow:not(.design-saved)[data-design-side=deck] .frontholder .board-preview-caption,
  .desktop-design-flow:not(.design-saved)[data-design-side=bottom] .backholder .board-preview-caption {
    background: #f6e3ec;
    color: #743052;
    font-weight: 700;
  }
  .desktop-design-flow:not(.design-saved) .desktop-preview-edit:not([hidden]) {
    position: absolute;
    inset: 0 -4px -29px;
    z-index: 2;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
  }
  .desktop-preview-edit:focus-visible { outline: 2px solid #95416a; outline-offset: 3px; }

  .desktop-design-flow:not(.design-saved) .div-block-22 > .div-block-21 {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .desktop-design-flow .div-block-21 > :not(.desktop-configurator) { display: none !important; }
  .desktop-design-flow .desktop-configurator {
    display: flex;
    flex-direction: column;
    height: var(--desktop-designer-panel-height);
    overflow: hidden;
    border: 1px solid #ece2e8;
    border-radius: 24px;
    background: #fff;
  }
  .desktop-step-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 11px clamp(9px, 1.5vw, 21px);
    border-bottom: 1px solid #eee6eb;
    background: #fcf9fb;
  }
  .desktop-step-nav button {
    min-height: 38px;
    padding: 5px 3px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #61535e;
    font: inherit;
    font-size: clamp(11px, 1.05vw, 14px);
    font-weight: 600;
    cursor: pointer;
  }
  .desktop-step-nav button:hover { background: #f7edf3; }
  .desktop-step-nav button.is-past { color: #743052; }
  .desktop-step-nav button[aria-current=step] { background: #f1dce8; color: #57223f; }
  .desktop-configurator button:focus-visible { outline: 2px solid #95416a; outline-offset: 2px; }
  .desktop-step-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 22px clamp(13px, 2vw, 27px) 24px;
    scrollbar-color: #c9a7ba transparent;
    scrollbar-width: thin;
  }
  .desktop-step-scroll h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 2.45vw, 34px);
    line-height: 1.12;
    letter-spacing: -.035em;
  }
  .desktop-step-scroll h2:focus { outline: none; }
  .desktop-control-group + .desktop-control-group {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee6eb;
  }
  .desktop-control-group h3 { margin: 0 0 9px; font-size: 15px; line-height: 1.3; }
  .desktop-colour-group:has(.side-color-panel[hidden]) { display: none; }
  .desktop-configurator .board-choice-column {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .desktop-configurator :is(.board-choice-column h4, .board-size-select, .side-color-label) { display: none; }
  .desktop-configurator .board-card-options { gap: 7px; }
  .desktop-configurator .modelSelect { grid-template-columns: repeat(auto-fit, minmax(min(100%, 84px), 1fr)); }
  .desktop-configurator .modelSelect .board-option-card {
    min-height: 144px;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
    padding: 9px 4px;
    border-radius: 13px;
  }
  .desktop-configurator .modelSelect img { width: 100%; height: clamp(78px, 10dvh, 106px); }
  .desktop-configurator .modelSelect .board-option-label { font-size: 13px; }
  .desktop-model-detail { margin: 12px 0 0; color: #685862; font-size: 14px; line-height: 1.5; }
  .desktop-configurator .board-card-options.Size { display: grid; grid-template-columns: repeat(auto-fit, minmax(55px, 1fr)); }
  .desktop-configurator .Size .board-option-card { min-height: 41px; }
  .desktop-configurator .stringerSelect { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop-configurator .stringerSelect .board-option-card { min-height: 76px; padding: 8px 6px; row-gap: 4px; }
  .desktop-configurator .stringerSelect small { margin-left: 0; line-height: 1.2; }
  .desktop-configurator .white-stringer-width > div { flex-wrap: nowrap; }
  .desktop-configurator .white-stringer-width input[type=number] { width: 72px; }

  .desktop-configurator .swatch-container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .desktop-configurator .swatch-container .style-option { width: 100%; margin: 0; border: 1px solid #e4dce0; }
  .desktop-configurator .swatch-container .style-option.selected { border-color: #95416a; background: #fff3f9; box-shadow: 0 0 0 1px #95416a inset; }
  .desktop-configurator .style-option img { width: 36px; height: 36px; border-radius: 5px; }
  .desktop-configurator .brand-color-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
  .desktop-configurator .mobile-palette-group { display: block; grid-column: 1 / -1; margin: 3px 0; color: #685862; font-size: 12px; }
  .desktop-configurator .brand-color-option {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    min-height: 35px;
    gap: 5px;
    padding: 4px 6px;
    border-color: #e4dce0;
    border-radius: 8px;
    color: #49363f;
    font-size: 11px;
    line-height: 1.2;
    text-align: left;
  }
  .desktop-configurator .brand-color-option.selected { border-color: #95416a; box-shadow: 0 0 0 1px #95416a inset; }
  .desktop-configurator .brand-color-swatch { width: 13px; height: 13px; }
  .desktop-configurator .colour-strength { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; margin: 9px 0 0; font-size: 13px; }
  .desktop-configurator .colour-strength input { width: 100%; accent-color: #95416a; }
  .desktop-configurator .custom-picker-controls input { max-width: 100%; margin: 4px 0; }
  .desktop-configurator .logo-control-container { max-width: none; margin-bottom: 7px; padding: 7px 9px; border-color: #eee4e8; border-radius: 9px; background: #fcf9fb; font-size: 13px; }
  .desktop-configurator .toggle-logo-controls { border-radius: 6px; background: #eee0e8; color: #743052; }
  .desktop-configurator input[type=range] { accent-color: #95416a; }

  .desktop-review { margin: 0; }
  .desktop-review > div { display: grid; grid-template-columns: minmax(70px, .55fr) minmax(0, 1fr); gap: 9px; padding: 11px 0; border-bottom: 1px solid #eee6eb; }
  .desktop-review dt { color: #685862; }
  .desktop-review dd { margin: 0; overflow-wrap: anywhere; font-weight: 650; }
  .desktop-configurator-footer {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 9px 13px;
    padding: 11px clamp(11px, 1.6vw, 23px);
    border-top: 1px solid #eee6eb;
    background: #fcf9fb;
  }
  .desktop-configurator-footer .floating-price {
    position: static;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 21px;
  }
  .desktop-configurator-footer .price-total { display: grid; gap: 2px; }
  .desktop-configurator-footer .price-label { margin: 0; font-size: 11px; }
  .desktop-configurator-footer .price-handmade,
  .desktop-configurator-footer .price-whatsapp { display: none; }
  .desktop-step-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
  .desktop-step-actions button {
    min-height: 41px;
    padding: 7px 11px;
    border: 0;
    border-radius: 9px;
    background: #95416a;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
  }
  .desktop-step-actions .desktop-step-back { background: transparent; color: #743052; }
  .desktop-step-actions button#shareDesignButton.button-3 { margin: 0; padding: 7px 13px; }
}
