/* R66.135 — customer order form fail-open choices + deterministic sizing layout. */
.ps-pcb-order-reference [data-ps-choice-picker]:not(.is-enhanced) .ps-pcb-inline-choices{display:none!important}
.ps-pcb-order-reference [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native{
  position:static!important;display:block!important;width:100%!important;min-width:0!important;height:52px!important;
  margin:8px 0 0!important;padding:0 14px!important;opacity:1!important;clip:auto!important;clip-path:none!important;
  overflow:visible!important;white-space:normal!important;border:1px solid rgba(10,115,232,.24)!important;border-radius:14px!important;
  background:rgba(255,255,255,.78)!important;color:inherit!important;pointer-events:auto!important
}
.ps-pcb-order-reference [data-ps-choice-picker].is-enhanced select.ps-pcb-choice-native{
  position:absolute!important;width:1px!important;min-width:0!important;max-width:1px!important;height:1px!important;min-height:0!important;max-height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;
  white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important
}
.ps-pcb-order-reference [data-ps-service-section="assembly"] [data-ps-choice-picker].is-enhanced .ps-pcb-inline-choices,
.ps-pcb-order-reference [data-ps-service-section="stencil"] [data-ps-choice-picker].is-enhanced .ps-pcb-inline-choices{
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(88px,1fr))!important;gap:8px!important;width:100%!important;min-width:0!important
}
.ps-pcb-order-reference [data-ps-service-section="assembly"] .ps-pcb-inline-choices button,
.ps-pcb-order-reference [data-ps-service-section="stencil"] .ps-pcb-inline-choices button{
  min-height:48px!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important
}
/* Desktop: keep quantity anchored at the upper-right; dimensions follow below in the adjacent column. */
@media (min-width:1040px){
  .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-dimensions .ps-pcb-size-row{
    display:grid!important;grid-template-columns:minmax(0,1fr) minmax(190px,240px)!important;grid-template-rows:auto auto!important;
    grid-template-areas:none!important;gap:12px 18px!important;direction:ltr!important;align-items:start!important;width:100%!important;max-width:100%!important
  }
  .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-quantity{
    grid-area:auto!important;grid-column:2!important;grid-row:1!important;direction:rtl!important;width:100%!important;margin:0!important;align-self:start!important
  }
  .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-dimensions{
    grid-area:auto!important;grid-column:1!important;grid-row:2!important;direction:rtl!important;width:100%!important;margin:0!important;align-self:start!important
  }
}
@media (min-width:901px) and (max-width:1039px){
  .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-dimensions .ps-pcb-size-row{display:grid!important;grid-template-columns:1fr!important;grid-template-areas:none!important;gap:12px!important;direction:rtl!important}
  .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-quantity{grid-area:auto!important;grid-column:1!important;grid-row:1!important}
  .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-dimensions{grid-area:auto!important;grid-column:1!important;grid-row:2!important}
}
@media (max-width:900px){
  .ps-mobile-dock a[data-ps-dock-primary="1"] small,.ps-mobile-dock a.is-primary small{max-width:92px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
}
/* R66.232 — reload-safe native choice paint.
 * The site preference is resolved in the early head bootstrap and is the only
 * color authority. Using the device media query here made an explicitly light
 * site briefly paint dark native selects before progressive enhancement, with
 * inherited light-theme text on the dark surface. Keep the no-JS/fail-open
 * controls usable, but make their very first frame match the resolved site
 * theme on every viewport. */
html:not([data-ps-theme]) body.ps-stage66-pcb-order-page .ps-pcb-order-reference [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native,
html:not([data-ps-theme]) body.ps-stage66-pcb-order-page .ps-pcb-service-picker-r20:not(.is-enhanced) .ps-pcb-service-native-select-r20,
html[data-ps-theme="light"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native,
html[data-ps-theme="light"] body.ps-stage66-pcb-order-page .ps-pcb-service-picker-r20:not(.is-enhanced) .ps-pcb-service-native-select-r20{
  background:#fff!important;color:#17384c!important;border-color:rgba(10,115,232,.24)!important;color-scheme:light!important
}
html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native,
html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-service-picker-r20:not(.is-enhanced) .ps-pcb-service-native-select-r20{
  background:rgba(12,26,38,.92)!important;color:#edf7fb!important;border-color:rgba(112,184,214,.28)!important;color-scheme:dark!important
}

/* R66.185 help parity + dark order runtime hardening */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-dimensions-head{display:flex!important;min-height:25px!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;margin:0!important;padding:0 2px!important;width:100%!important;direction:rtl!important;text-align:right!important;grid-template-columns:none!important;}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-dimensions-head [data-ps-dimension-legend]{display:block!important;min-width:0!important;margin:0!important;text-align:right!important;justify-self:auto!important;}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-dimensions-head .ps-pcb-help-button{appearance:none!important;-webkit-appearance:none!important;display:inline-grid!important;place-items:center!important;flex:0 0 25px!important;inline-size:25px!important;block-size:25px!important;width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;max-width:25px!important;max-height:25px!important;margin:0!important;padding:0!important;border-radius:18px!important;font-size:12px!important;font-weight:800!important;line-height:1!important;box-sizing:border-box!important;position:static!important;inset:auto!important;align-self:auto!important;justify-self:auto!important;order:0!important;overflow:hidden!important;transform:none!important;}
html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-picker-r20{background:linear-gradient(145deg,rgba(13,39,53,.96),rgba(6,25,35,.98))!important;border-color:rgba(116,184,214,.22)!important;box-shadow:0 14px 34px rgba(0,0,0,.20),inset 0 1px 0 rgba(220,245,253,.06)!important;}
html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-choicebar-r20{background:transparent!important;box-shadow:none!important;}
html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-form-progress{background:rgba(54,92,111,.34)!important;border-color:rgba(105,184,214,.18)!important;box-shadow:inset 0 2px 5px rgba(0,0,0,.22),inset 0 1px 0 rgba(220,245,253,.035)!important;}
html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-upload{box-shadow:inset 0 1px 0 rgba(220,245,253,.05)!important;}
html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-single-index{box-shadow:0 12px 28px rgba(0,0,0,.24),inset 0 1px 0 rgba(220,245,253,.05)!important;}

/* R66.186 — desktop order-route site-header parity hardening.
 * The compact order bundle historically changed the desktop primary navigation
 * to a horizontally scrolling flex strip. That is a mobile-like ownership
 * model and can hide rendered destinations off-screen. The order route now
 * reuses the canonical desktop navigation geometry; mobile remains untouched. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-site-header.ps-distributor-header{
    position:sticky!important;
    z-index:80!important;
    min-height:0!important;
    padding:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-distributor-header-main.ps-header-no-search{
    display:grid!important;
    grid-template-columns:minmax(210px,270px) minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:clamp(16px,2.2vw,32px)!important;
    width:min(1320px,calc(100% - 32px))!important;
    min-height:86px!important;
    height:auto!important;
    margin-inline:auto!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-distributor-header-main.ps-header-no-search .ps-distributor-brand{
    grid-column:1!important;
    width:100%!important;
    max-width:270px!important;
    justify-self:start!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-distributor-header-main.ps-header-no-search .ps-header-actions{
    grid-column:3!important;
    justify-self:end!important;
    max-width:100%!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-menu-toggle{
    display:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-nav.ps-distributor-nav{
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    left:auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    transform:none!important;
    translate:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-nav .ps-mobile-nav-head,
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-nav .ps-mobile-drawer-actions,
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-nav .ps-mobile-nav-quick{
    display:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-nav .ps-nav-inner,
  body.ps-stage66-pcb-order-page .ps-site-header .ps-distributor-nav .ps-distributor-nav-inner{
    display:block!important;
    width:min(1320px,calc(100% - 32px))!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    margin-inline:auto!important;
    padding:0!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-main-menu-wrap{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    align-items:stretch!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:0!important;
    height:auto!important;
    margin:0!important;
    padding:7px 0!important;
    overflow:visible!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    overscroll-behavior:auto!important;
    scrollbar-width:auto!important;
    flex-wrap:nowrap!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services>li{
    display:block!important;
    flex:none!important;
    min-width:0!important;
    width:auto!important;
    height:auto!important;
    margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services>li>a{
    display:flex!important;
    grid-template-columns:none!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    height:auto!important;
    max-height:none!important;
    padding:8px 10px!important;
    border-radius:13px!important;
    overflow:hidden!important;
    white-space:nowrap!important;
    text-align:center!important;
    box-sizing:border-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services .ps-pcb-nav-icon{
    display:grid!important;
    place-items:center!important;
    flex:0 0 20px!important;
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    min-height:20px!important;
    transform:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services .ps-pcb-nav-icon svg{
    width:18px!important;
    height:18px!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services .ps-pcb-nav-copy{
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    padding:0!important;
    line-height:1.25!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services .ps-pcb-nav-copy strong{
    display:block!important;
    max-width:100%!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:clamp(.76rem,1.05vw,.94rem)!important;
    line-height:1.35!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services .ps-pcb-nav-copy small,
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services .ps-pcb-nav-arrow{
    display:none!important;
  }
}
@media (min-width:901px) and (max-width:1100px){
  body.ps-stage66-pcb-order-page .ps-site-header .ps-distributor-header-main.ps-header-no-search{
    grid-template-columns:minmax(180px,220px) minmax(0,1fr) auto!important;
    width:calc(100% - 20px)!important;
    gap:12px!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-nav .ps-nav-inner,
  body.ps-stage66-pcb-order-page .ps-site-header .ps-distributor-nav .ps-distributor-nav-inner{
    width:calc(100% - 20px)!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services{
    gap:3px!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services>li>a{
    padding-inline:6px!important;
    gap:5px!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services .ps-pcb-nav-copy strong{
    font-size:clamp(.68rem,1.05vw,.78rem)!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services .ps-pcb-nav-icon{
    flex-basis:17px!important;
    width:17px!important;
    height:17px!important;
    min-width:17px!important;
    min-height:17px!important;
  }
  body.ps-stage66-pcb-order-page .ps-site-header .ps-primary-menu-services .ps-pcb-nav-icon svg{
    width:16px!important;
    height:16px!important;
  }
}


/* R66.188 — desktop order-form service parity + visibility hardening.
 * Ownership: order route only, desktop >=901px. Mobile geometry is unchanged.
 * The final cascade owner must preserve HTML hidden semantics and the service
 * visibility matrix even when historical grid/card rules are present. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference [hidden]{display:none!important;}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-has-assembly-order [data-ps-service-scope="pcb-only"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-has-assembly-order [data-ps-service-scope="dimensions"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-has-assembly-order [data-ps-service-section="stencil"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-has-assembly-order [data-ps-service-section="main-file"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-has-assembly-order [data-ps-step="1"]{display:none!important;}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-is-stencil-order [data-ps-service-scope="pcb-only"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-is-stencil-order [data-ps-service-scope="dimensions"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-is-stencil-order [data-ps-service-section="assembly"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-is-stencil-order [data-ps-service-section="quantity-dimensions"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-is-stencil-order [data-ps-service-section="general-notes"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference.ps-is-stencil-order [data-ps-step="1"]{display:none!important;}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference:not(.ps-has-assembly-order):not(.ps-is-stencil-order) [data-ps-service-section="assembly"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference:not(.ps-has-assembly-order):not(.ps-is-stencil-order) [data-ps-service-section="stencil"]{display:none!important;}

@media (min-width:901px){
  /* Stable 3-way service selector: desktop geometry never inherits mobile strip behavior. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-picker-r20{
    width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-choicebar-r20{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;
    gap:10px!important;width:100%!important;min-width:0!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-choice-r20{
    width:100%!important;min-width:0!important;max-width:none!important;min-height:58px!important;margin:0!important;
    white-space:normal!important;overflow:visible!important;box-sizing:border-box!important;
  }

  /* Hidden must win over every historical single-page/grid declaration. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-single-page-form .ps-pcb-wizard-panel[hidden],
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-service-scope][hidden],
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-service-section][hidden],
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-panel-details][hidden],
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-dependent-field][hidden]{display:none!important;}

  /* PCB quantity + dimensions: one aligned desktop row, never the old diagonal layout. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-section-dimensions .ps-pcb-size-row{
    display:grid!important;grid-template-columns:minmax(220px,300px) minmax(0,1fr)!important;grid-template-rows:auto!important;
    gap:16px!important;direction:rtl!important;align-items:stretch!important;width:100%!important;max-width:100%!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-quantity,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-dimensions{
    grid-row:1!important;grid-column:auto!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;align-self:stretch!important;direction:rtl!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-finish-panel{
    width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  }

  /* Assembly desktop: one logical field per row. Labels remain on the right and
   * every choice receives the full remaining width instead of three cramped cards. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-options--assembly-details{
    display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-options--assembly-details>.ps-pcb-service-options-head{
    display:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly{
    display:grid!important;grid-template-columns:1fr!important;gap:7px!important;width:100%!important;min-width:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly>.ps-pcb-choice-field{
    display:grid!important;grid-template-columns:minmax(170px,220px) minmax(0,1fr)!important;align-items:center!important;
    gap:10px 16px!important;width:100%!important;min-width:0!important;min-height:50px!important;margin:0!important;padding:5px 0!important;
    border:0!important;border-bottom:1px solid rgba(97,154,178,.12)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly>.ps-pcb-choice-field:last-child{border-bottom:0!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly .ps-pcb-field-head{
    min-height:34px!important;margin:0!important;padding:0!important;align-items:center!important;justify-content:flex-start!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly .ps-pcb-inline-choices{
    display:grid!important;grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important;gap:7px!important;width:100%!important;min-width:0!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-size-row{
    display:grid!important;grid-template-columns:minmax(220px,340px)!important;justify-content:start!important;gap:0!important;direction:rtl!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity{
    grid-area:auto!important;grid-column:1!important;grid-row:1!important;justify-self:stretch!important;
    width:100%!important;max-width:none!important;margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-options--assembly-files{
    width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-options--assembly-files>.ps-pcb-service-options-head{display:none!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;width:100%!important;min-width:0!important;overflow:visible!important;
  }

  /* Stencil desktop: remove the legacy nested-card tree and keep a clean
   * desktop label/choices row. This preserves all choices without clipping. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-exact-form{
    display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid{
    display:grid!important;grid-template-columns:1fr!important;gap:0!important;width:100%!important;min-width:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field]{
    display:grid!important;grid-template-columns:minmax(180px,230px) minmax(0,1fr)!important;align-items:center!important;gap:10px 16px!important;
    width:100%!important;min-width:0!important;min-height:50px!important;margin:0!important;padding:6px 0!important;
    border:0!important;border-bottom:1px solid rgba(97,154,178,.12)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field]:last-child{border-bottom:0!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-field-head{
    min-height:34px!important;margin:0!important;padding:0!important;align-items:center!important;justify-content:flex-start!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choices{
    display:grid!important;grid-template-columns:repeat(auto-fit,minmax(115px,1fr))!important;gap:7px!important;width:100%!important;min-width:0!important;margin:0!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
    min-width:0!important;min-height:46px!important;height:auto!important;padding:8px 9px!important;border-radius:12px!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_quantity"] input{
    width:min(100%,320px)!important;min-height:48px!important;margin:0!important;
  }

  /* Keep action/summary and upload grids inside their panel instead of letting
   * long file labels expand the desktop page horizontally. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] :where(.ps-pcb-field,.ps-pcb-inline-choices,.ps-pcb-service-files,.ps-pcb-upload,.ps-pcb-final-summary-row){min-width:0!important;max-width:100%!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-inline-choice :where(span,strong,small){min-width:0!important;overflow-wrap:anywhere!important;}
}

@media (min-width:901px) and (max-width:1179px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-section-dimensions .ps-pcb-size-row{
    grid-template-columns:minmax(200px,260px) minmax(0,1fr)!important;gap:12px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files{
    grid-template-columns:1fr!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field]{
    grid-template-columns:minmax(155px,190px) minmax(0,1fr)!important;gap:8px 12px!important;
  }
}


/* R66.188 — true desktop order-form restoration.
 * A historical compact runtime intentionally flattened the order UI for small
 * screens but was emitted without a desktop boundary. At >=901px that made the
 * customer configurator inherit mobile-like one-column geometry, hidden section
 * headings and stripped helper copy. This final cascade owner restores a stable
 * desktop contract while leaving <=900px unchanged. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]{
    width:min(1180px,calc(100% - 32px))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-reference-form{
    gap:16px!important;padding:18px!important;border-radius:24px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-wizard-panel,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-single-page-form .ps-pcb-wizard-panel{
    gap:14px!important;padding:16px 18px!important;border-radius:19px!important;
  }

  /* Restore desktop information hierarchy stripped by the compact layer. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-picker-head{
    display:flex!important;align-items:flex-end!important;justify-content:space-between!important;gap:8px 14px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-choice-copy-r20 small{
    display:block!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-choice-r20{
    grid-template-columns:34px minmax(0,1fr)!important;grid-auto-rows:auto!important;align-content:center!important;
    min-height:68px!important;height:auto!important;max-height:none!important;gap:10px!important;padding:10px 12px!important;
    border-radius:16px!important;overflow:hidden!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-choice-icon-r20{
    width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;flex-basis:34px!important;border-radius:11px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-choice-icon-r20 svg{width:22px!important;height:22px!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-service-choice-copy-r20 strong{font-size:.84rem!important;line-height:1.35!important;}

  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-head{
    display:flex!important;align-items:center!important;gap:10px!important;padding-bottom:11px!important;
    border-bottom:1px solid rgba(90,150,178,.16)!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-head>span{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
    min-width:64px!important;min-height:30px!important;padding:5px 10px!important;border-radius:999px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-head h3{font-size:1.02rem!important;line-height:1.5!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-quantity>small,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-dimensions>small{display:block!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-form-status-copy{display:flex!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-form-status{
    grid-template-columns:minmax(0,1fr) minmax(190px,280px)!important;gap:14px!important;padding:12px 14px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-form-progress-wrap{grid-column:auto!important;}

  /* PCB desktop is intentionally two-column. The compact runtime's one-column
   * table remains mobile-only. Each field keeps its choices inside its half. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish){
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 16px!important;width:100%!important;min-width:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish)>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-field-grid--finish>[data-ps-dependent-field]>.ps-pcb-choice-field{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:start!important;gap:7px!important;
    width:100%!important;min-width:0!important;margin:0!important;padding:7px 2px 10px!important;border:0!important;border-bottom:1px solid rgba(91,151,177,.12)!important;
    border-radius:0!important;background:transparent!important;box-shadow:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-field-grid--finish>[data-ps-dependent-field]{min-width:0!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish) .ps-pcb-field-head{
    width:100%!important;min-height:34px!important;margin:0!important;padding:0!important;justify-content:flex-start!important;gap:7px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish) .ps-pcb-inline-choices{
    display:grid!important;grid-template-columns:repeat(auto-fit,minmax(104px,1fr))!important;gap:6px!important;width:100%!important;min-width:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish) .ps-pcb-inline-choice{
    width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-finish-board-format{
    grid-column:1/-1!important;width:100%!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-finish-board-format>.ps-pcb-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-finish-panel>.ps-pcb-choice-field{
    display:grid!important;grid-template-columns:minmax(170px,220px) minmax(0,1fr)!important;align-items:center!important;gap:10px 16px!important;
    width:100%!important;min-width:0!important;margin:0!important;padding:5px 0!important;border:0!important;background:transparent!important;box-shadow:none!important;
  }

  /* Assembly: deterministic three-choice rows; no mobile-like card stack. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly .ps-pcb-inline-choices{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-size-row{
    grid-template-columns:minmax(260px,360px)!important;justify-content:start!important;
  }

  /* Stencil: field-specific track counts stop auto-fit from creating an uneven
   * 5+2 thickness row or collapsing long size labels unpredictably. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_type"] .ps-pcb-inline-choices{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_size"] .ps-pcb-inline-choices{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_side"] .ps-pcb-inline-choices{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choices{grid-template-columns:repeat(7,minmax(0,1fr))!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_fiducials"] .ps-pcb-inline-choices{grid-template-columns:repeat(3,minmax(0,1fr))!important;}

  /* Assembly file cards scale as desktop columns instead of falling to one
   * mobile-like column for the entire 901–1179 range. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files>.ps-pcb-upload:last-child:nth-child(odd){grid-column:1/-1!important;}

  /* Explicit site-theme fallback: if enhancement JS fails while the site is in
   * dark mode, the native selectors must not fall back to a white OS-light UI. */
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native,
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-service-picker-r20:not(.is-enhanced) .ps-pcb-service-native-select-r20{
    background:rgba(12,26,38,.92)!important;color:#edf7fb!important;border-color:rgba(112,184,214,.28)!important;
  }
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-head{
    border-bottom-color:rgba(113,179,206,.16)!important;
  }
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] :where(.ps-pcb-field-grid--assembly>.ps-pcb-choice-field,.ps-stencil-reference-grid>[data-ps-field]){
    border-bottom-color:rgba(113,179,206,.14)!important;
  }
}

@media (min-width:901px) and (max-width:1040px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]{width:min(calc(100% - 20px),1040px)!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-reference-form{padding:14px!important;gap:13px!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-wizard-panel{padding:14px!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish){gap:10px 12px!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field]{grid-template-columns:minmax(145px,175px) minmax(0,1fr)!important;gap:8px 10px!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choices{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_size"] .ps-pcb-inline-choices,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_side"] .ps-pcb-inline-choices{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files{grid-template-columns:1fr!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files>.ps-pcb-upload:last-child:nth-child(odd){grid-column:auto!important;}
}

@media (min-width:1280px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files>.ps-pcb-upload:last-child:nth-child(odd){grid-column:auto!important;}
}


/* R66.189 — desktop order geometry finalization.
 * This owner fixes the remaining visual drift that survived R66.188: PCB
 * board-format/panel-mode inherited a legacy 320px cap, four-choice PCB rows
 * wrapped asymmetrically around 901–1100px, assembly quantity floated in a
 * narrow card inside a full-width section, and stencil quantity did not follow
 * the same desktop label/control grid as the other stencil fields. Mobile <=900
 * keeps the established contract untouched. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  :where(.ps-pcb-finish-board-format,.ps-pcb-finish-panel) .ps-pcb-inline-choices{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;min-width:0!important;max-width:none!important;gap:8px!important;
  }

  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  :where([data-ps-field="solder_mask"],[data-ps-field="silkscreen"]) .ps-pcb-inline-choices{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }

  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  :where([data-ps-field="solder_mask_color"],[data-ps-field="silkscreen_color"]) .ps-pcb-inline-choices{
    grid-template-columns:repeat(auto-fit,minmax(64px,1fr))!important;
  }

  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-section-dimensions .ps-pcb-size-row{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:none!important;justify-content:stretch!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity{
    display:grid!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity>.ps-pcb-field{
    display:grid!important;grid-template-columns:minmax(170px,220px) minmax(0,1fr)!important;align-items:center!important;gap:8px 16px!important;width:100%!important;min-width:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity>.ps-pcb-field>.ps-pcb-field-head{
    grid-column:1!important;grid-row:1!important;min-width:0!important;margin:0!important;justify-content:flex-start!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity>.ps-pcb-field>input{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity>small{
    grid-column:2!important;margin:0!important;text-align:right!important;
  }

  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    display:grid!important;grid-template-columns:minmax(170px,220px) minmax(0,1fr)!important;align-items:center!important;gap:8px 16px!important;
    width:100%!important;min-width:0!important;max-width:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>label{
    grid-column:1!important;grid-row:1!important;margin:0!important;align-self:center!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;
  }
}


@media (min-width:901px){
  /* The global brand layer keeps the check glyph in normal flex flow even while
   * it is visually transparent. In narrow desktop tracks that invisible 20–22px
   * box steals text width and makes four-choice rows stagger vertically. Make
   * the glyph an overlay on desktop and stretch every item to the grid row. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish) .ps-pcb-inline-choices{
    align-items:stretch!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish) .ps-pcb-inline-choice{
    position:relative!important;align-self:stretch!important;height:100%!important;min-height:42px!important;
    padding:6px 10px!important;justify-content:center!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish) .ps-pcb-inline-choice>span{
    display:block!important;width:100%!important;min-width:0!important;text-align:center!important;line-height:1.35!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish) .ps-pcb-inline-choice>i{
    position:absolute!important;inset-inline-start:5px!important;top:5px!important;flex:none!important;
    width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;margin:0!important;
    font-size:9px!important;pointer-events:none!important;
  }
}

/* R66.190 — desktop service-row height + upload density hardening.
 * Remaining desktop drift after R66.189 was not overflow-based: long assembly
 * labels created uneven choice heights, assembly uploads fell back to a mobile-
 * like single column at 901–1040px, and stencil multi-row choices used unequal
 * row heights while seven short thickness values unnecessarily wrapped 4+3.
 * Keep all changes desktop-only; <=900px remains untouched. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly .ps-pcb-inline-choices,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choices{
    align-items:stretch!important;
    grid-auto-rows:1fr!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly .ps-pcb-inline-choice,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
    height:100%!important;
    align-self:stretch!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order [data-ps-field="parts_supply"] .ps-pcb-inline-choice{
    min-height:52px!important;
  }
}

@media (min-width:901px) and (max-width:1279px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files>.ps-pcb-upload:last-child:nth-child(odd){
    grid-column:1/-1!important;
  }
}

@media (min-width:901px) and (max-width:1040px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_side"] .ps-pcb-inline-choice,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_size"] .ps-pcb-inline-choice{
    min-height:62px!important;
  }
}

@media (min-width:1280px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files>.ps-pcb-upload:last-child:nth-child(odd){
    grid-column:auto!important;
  }
}

/* R66.190 — desktop progressive-enhancement fail-open reassertion.
 * Desktop geometry owners intentionally force choice grids for enhanced UI, but
 * that must never override the canonical no-JS/partial-JS fallback. Until a
 * picker is actually bound (`is-enhanced`), keep synthetic buttons out of the
 * accessibility/paint tree and leave the native select usable. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-choice-picker]:not(.is-enhanced) .ps-pcb-inline-choices{
    display:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native{
    position:static!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    height:52px!important;min-height:52px!important;margin:8px 0 0!important;padding:0 14px!important;
    opacity:1!important;clip:auto!important;clip-path:none!important;overflow:visible!important;pointer-events:auto!important;
  }
}

/* R66.192 — desktop order single-column row contract.
 * User-approved geometry: every logical field is one full-width desktop row;
 * the field label/help stays on the RTL/right side and that field's controls
 * sit beside it. Do not place independent fields/cards side-by-side. Quantity
 * and dimensions are stacked. Assembly uploads are stacked. Mobile <=900px is
 * intentionally untouched. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]{
    --ps-r191-label-col:clamp(170px,21vw,235px);
  }

  /* One logical field per desktop row in all three services. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] :where(
    .ps-pcb-field-grid--build,
    .ps-pcb-field-grid--finish,
    .ps-pcb-field-grid--assembly,
    .ps-stencil-reference-grid
  ){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    gap:0!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }

  /* PCB rows: label/help on the right, choices immediately beside it. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish)>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  .ps-pcb-field-grid--finish>[data-ps-dependent-field]>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  .ps-pcb-field-grid--finish>.ps-pcb-finish-board-format>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order)
  .ps-pcb-finish-panel>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-stencil-reference-grid>.ps-pcb-choice-field{
    display:grid!important;
    grid-template-columns:var(--ps-r191-label-col) minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:10px 16px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:10px 2px!important;
    border:0!important;
    border-bottom:1px solid rgba(91,151,177,.12)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]
  :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish,.ps-pcb-field-grid--assembly,.ps-stencil-reference-grid)
  .ps-pcb-field-head{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    width:100%!important;
    min-height:34px!important;
    margin:0!important;
    padding:0!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:7px!important;
    direction:rtl!important;
    text-align:right!important;
  }

  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]
  :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish,.ps-pcb-field-grid--assembly,.ps-stencil-reference-grid)
  .ps-pcb-inline-choices{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    align-items:stretch!important;
  }

  /* Dependent PCB wrappers themselves are one full-width row owner. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]
  .ps-pcb-field-grid--finish>[data-ps-dependent-field],
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]
  .ps-pcb-field-grid--finish>.ps-pcb-finish-board-format{
    display:block!important;
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }

  /* Panel mode is another ordinary full-width row, never an extra side card. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-finish-panel{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }

  /* Quantity and board dimensions are stacked, not two columns. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-dimensions .ps-pcb-size-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:none!important;
    gap:10px!important;
    direction:rtl!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-quantity{
    grid-column:1!important;grid-row:1!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-dimensions{
    grid-column:1!important;grid-row:2!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  }

  /* Quantity is one row: label/help | input. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-quantity>.ps-pcb-field{
    display:grid!important;
    grid-template-columns:var(--ps-r191-label-col) minmax(0,1fr)!important;
    align-items:center!important;
    gap:8px 16px!important;
    width:100%!important;
    min-width:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-quantity>.ps-pcb-field>.ps-pcb-field-head{
    grid-column:1!important;grid-row:1!important;margin:0!important;padding:0!important;justify-content:flex-start!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-quantity>.ps-pcb-field>input{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-quantity>small{
    display:block!important;margin:4px 0 0!important;padding-inline-start:calc(var(--ps-r191-label-col) + 16px)!important;text-align:right!important;
  }

  /* Dimensions are the next independent row: title/help | length × width. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-dimensions{
    display:grid!important;
    grid-template-columns:var(--ps-r191-label-col) minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    gap:8px 16px!important;
    padding:12px 14px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-dimensions-head{
    grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;justify-content:flex-start!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-dimensions .ps-pcb-dimension-inputs{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-dimensions>small{
    grid-column:2!important;grid-row:2!important;margin:0!important;text-align:right!important;
  }

  /* Stencil quantity follows the same single-row label/control contract. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    display:grid!important;
    grid-template-columns:var(--ps-r191-label-col) minmax(0,1fr)!important;
    align-items:center!important;
    gap:10px 16px!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:10px 2px!important;
    border:0!important;
    border-bottom:1px solid rgba(91,151,177,.12)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>label{
    grid-column:1!important;grid-row:1!important;margin:0!important;align-self:center!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;max-width:none!important;
  }

  /* Files are also one logical item per row; each upload keeps its own internal
   * desktop copy/actions layout. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    width:100%!important;
    min-width:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-service-files>.ps-pcb-upload{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }

  /* Remove historical desktop min-widths that can re-create side-by-side fields. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] :where(
    .ps-pcb-field-grid--build,
    .ps-pcb-field-grid--finish,
    .ps-pcb-field-grid--assembly,
    .ps-stencil-reference-grid,
    .ps-pcb-size-row,
    .ps-pcb-service-files
  )>*{
    min-width:0!important;
    max-width:100%!important;
  }

  /* Progressive enhancement remains fail-open: no bound JS => native select. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-choice-picker]:not(.is-enhanced) .ps-pcb-inline-choices{
    display:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native{
    position:static!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
    height:52px!important;min-height:52px!important;margin:0!important;padding:0 14px!important;
    opacity:1!important;clip:auto!important;clip-path:none!important;overflow:visible!important;pointer-events:auto!important;
    grid-column:2!important;grid-row:1!important;
  }
}

/* R66.192 specificity closure: override the historical PCB desktop two-column
 * owner with an equal-or-higher service-specific selector. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) :where(.ps-pcb-field-grid--build,.ps-pcb-field-grid--finish){
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    gap:0!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-section-dimensions .ps-pcb-size-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    grid-template-areas:none!important;
    gap:10px!important;
    direction:rtl!important;
    align-items:stretch!important;
    width:100%!important;
    max-width:100%!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-quantity{
    grid-column:1!important;grid-row:1!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-has-assembly-order):not(.ps-is-stencil-order) .ps-pcb-section-dimensions .ps-pcb-size-row>.ps-pcb-dimensions{
    grid-column:1!important;grid-row:2!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  }
}

/* R66.192 stencil option readability closure: the field stays one full-width
 * row, while its internal choices may wrap cleanly instead of compressing text. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_size"] .ps-pcb-inline-choices,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_side"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(auto-fit,minmax(118px,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(auto-fit,minmax(112px,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
    min-width:0!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
}
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr))!important;
  }
}

/* R66.192 — PCB dependent color fields stay truly hidden until the parent
 * choice is selected; stencil rows keep the same structural rhythm and choice
 * box sizing as the other services. */
@media (min-width:901px){
  /* Hard-hide dependent rows until runtime explicitly enables them. This keeps
   * the legacy desktop row overrides from leaking disabled color rows. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]
  .ps-pcb-field-grid--finish>[data-ps-dependent-field][hidden],
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]
  .ps-pcb-field-grid--finish>[data-ps-dependent-field][data-ps-dependent-enabled="0"]{
    display:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]
  .ps-pcb-field-grid--finish>[data-ps-dependent-field][data-ps-dependent-enabled="1"]{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }

  /* Stencil rows should visually match PCB/assembly: one clean row per field,
   * consistent internal spacing and consistent choice-box height. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order{
    --ps-r192-stencil-choice-height:56px;
    --ps-r192-stencil-choice-gap:8px;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid{
    gap:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    padding:10px 2px!important;
    border-bottom:1px solid rgba(91,151,177,.12)!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choices{
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    gap:var(--ps-r192-stencil-choice-gap)!important;
    align-items:stretch!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_type"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid :is([data-ps-field="stencil_size"],[data-ps-field="stencil_side"],[data-ps-field="stencil_thickness"]) .ps-pcb-inline-choices{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_fiducials"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
    width:100%!important;
    min-width:0!important;
    min-height:var(--ps-r192-stencil-choice-height)!important;
    height:auto!important;
    padding:10px 12px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice :is(strong,span,small){
    text-align:center!important;
  }
}

/* R66.193 — FINAL stencil row/card parity.
 * The stencil service now uses the exact same visual row contract as PCB and
 * assembly instead of maintaining a parallel card system. This block is the
 * final cascade owner for stencil geometry and intentionally supersedes the
 * historical R66.179/R66.190/R66.192 stencil-specific sizing rules. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  gap:0!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid rgba(91,151,177,.12)!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>*:last-child{
  border-bottom:0!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-field-head{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choices{
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  align-items:stretch!important;
  grid-auto-rows:42px!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  border-radius:11px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:hidden!important;
  overflow-wrap:normal!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice>span{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:1px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  line-height:1.12!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice>i{
  position:absolute!important;
  inset-inline-start:5px!important;
  top:5px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:none!important;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  max-width:15px!important;
  max-height:15px!important;
  margin:0!important;
  padding:0!important;
  border-radius:999px!important;
  font-size:9px!important;
  line-height:1!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-main{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  font-size:.70rem!important;
  font-weight:750!important;
  line-height:1.08!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-detail{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  font-size:.53rem!important;
  font-weight:600!important;
  line-height:1.05!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  opacity:.82!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choice>span{
  flex-direction:row!important;
  gap:3px!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-stencil-choice-main,
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-stencil-choice-detail{
  display:inline!important;
  width:auto!important;
  overflow:visible!important;
  text-overflow:clip!important;
}

@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order{
    --ps-r191-label-col:clamp(170px,21vw,235px);
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    display:grid!important;
    grid-template-columns:var(--ps-r191-label-col) minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:10px 16px!important;
    padding:10px 2px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-field-head,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>.ps-pcb-field-head{
    grid-column:1!important;
    grid-row:1!important;
    align-self:center!important;
    justify-self:stretch!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>select.ps-pcb-choice-native,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choices{
    gap:6px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_type"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_size"] .ps-pcb-inline-choices,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_side"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_fiducials"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
    padding:6px 10px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    max-width:32px!important;
    max-height:32px!important;
    flex:0 0 32px!important;
    border-radius:50%!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    height:50px!important;
    min-height:50px!important;
    border-radius:14px!important;
  }
}

@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:stretch!important;
    gap:4px!important;
    padding:4px 0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-field-head,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>.ps-pcb-field-head{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:6px!important;
    min-height:36px!important;
    margin:0!important;
    padding:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>select.ps-pcb-choice-native,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    grid-column:1!important;
    grid-row:2!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choices{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
    padding:7px 5px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    max-width:32px!important;
    max-height:32px!important;
    flex:0 0 32px!important;
    border-radius:50%!important;
    margin:0!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    height:50px!important;
    min-height:50px!important;
    border-radius:14px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-main{
    font-size:.68rem!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-detail{
    font-size:.51rem!important;
  }
}

/* Preserve the no-JS/partial-JS fail-open contract after the final geometry
 * owner above: native selects remain usable until the picker is bound. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-choice-picker]:not(.is-enhanced) .ps-pcb-inline-choices{
  display:none!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native{
  position:static!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0 14px!important;
  opacity:1!important;
  clip:auto!important;
  clip-path:none!important;
  overflow:visible!important;
  pointer-events:auto!important;
}

/* R66.193 parity closure — equalize the last two historical specificity leaks. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid :is([data-ps-field="stencil_size"],[data-ps-field="stencil_side"]) .ps-pcb-inline-choice,
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choice{
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
}
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    width:25px!important;height:25px!important;min-width:25px!important;min-height:25px!important;max-width:25px!important;max-height:25px!important;flex:0 0 25px!important;border-radius:50%!important;font-size:12px!important;
  }
}
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{gap:5px!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-field-head,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>.ps-pcb-field-head{min-height:31px!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;max-width:24px!important;max-height:24px!important;flex:0 0 24px!important;border-radius:50%!important;font-size:12px!important;
  }
}
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-field-head,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>.ps-pcb-field-head{margin:0 0 2px!important;}
}
/* R66.193 dark-theme parity: the canonical PCB card radius resolves to 18px
 * in the storefront dark palette, so stencil follows that same resolved shape. */
html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
  border-radius:18px!important;
}

/* R66.198 — EXACT stencil service parity closure.
 * R66.197 normalized the card grid but left two historical stencil owners alive:
 * Core still hid the real wizard section headers / visually joined steps 2+4, and
 * the final storefront block flattened the stencil service panel on mobile while
 * assembly kept its normal service card. This owner closes both gaps.
 *
 * Contract:
 * - Mobile stencil gets the SAME section hierarchy as assembly: visible wizard
 *   heading + normal separated wizard panel + inner service card + shared field,
 *   help, choice, selected-check and two-column rhythm.
 * - Desktop keeps the approved R66.192 one-field-per-row layout and the exact
 *   assembly three-track / 38px choice component, while the inner service heading
 *   is flattened just like assembly desktop.
 * - No service values, validation, upload, quote, finance, DB or bot logic changes.
 */

/* Core's historical stencil compact mode hid these headings. Restore the same
 * visible wizard hierarchy used by PCB and assembly. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-step="2"]>.ps-pcb-section-head,
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-step="4"]>.ps-pcb-section-head{
  display:flex!important;
}

body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-flow:row!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  border:0!important;
  border-bottom:1px solid rgba(91,151,177,.12)!important;
  border-radius:0!important;
  background:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>*:last-child{
  border-bottom:0!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-field-head{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  direction:rtl!important;
  text-align:right!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choices{
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  align-items:stretch!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:stretch!important;
  gap:5px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  border-radius:11px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:hidden!important;
  overflow-wrap:anywhere!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice>span{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:1px!important;
  width:auto!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  text-align:center!important;
  box-sizing:border-box!important;
}

/* Same final 22px inline check used by ordinary PCB / assembly choice cards. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice>i{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  display:grid!important;
  place-items:center!important;
  flex:0 0 22px!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  max-width:22px!important;
  max-height:22px!important;
  margin:0!important;
  padding:0!important;
  border:2px solid #18c9d2!important;
  border-radius:999px!important;
  background:#eafff7!important;
  color:#075fc7!important;
  -webkit-text-fill-color:#075fc7!important;
  font-family:Arial,"Segoe UI Symbol",sans-serif!important;
  font-size:.88rem!important;
  font-style:normal!important;
  font-weight:900!important;
  line-height:1!important;
  text-shadow:none!important;
  pointer-events:none!important;
  box-sizing:border-box!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice:not(.is-selected):not([aria-checked="true"])>i{
  opacity:0!important;
  visibility:hidden!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice:is(.is-selected,[aria-checked="true"])>i{
  opacity:1!important;
  visibility:visible!important;
}

/* Stencil metadata is allowed to have a second line, but typography no longer
 * creates a separate visual component. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-main{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  padding:0!important;
  font-size:.78rem!important;
  font-weight:780!important;
  line-height:1.18!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-detail{
  display:block!important;
  width:auto!important;
  max-width:100%!important;
  margin:1px 0 0!important;
  padding:0!important;
  font-size:.61rem!important;
  font-weight:620!important;
  line-height:1.12!important;
  text-align:center!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  opacity:.82!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choice>span{
  flex-direction:row!important;
  gap:3px!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] :is(.ps-stencil-choice-main,.ps-stencil-choice-detail){
  display:inline!important;
  width:auto!important;
  margin:0!important;
  white-space:nowrap!important;
}

/* MOBILE / TABLET PORTRAIT — literally mirror the installed assembly service card
 * and the common order controls instead of flattening stencil into a special panel. */
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-step="2"],
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-step="4"]{
    margin:0!important;
    padding:12px 14px!important;
    gap:8px!important;
    border-radius:22px!important;
  }

  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-exact-form{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:13px!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:10px 12px!important;
    border-width:1px!important;
    border-style:solid!important;
    border-color:color-mix(in srgb,var(--ps-border,#d7e2e8) 82%,transparent)!important;
    border-radius:22px!important;
    background:color-mix(in srgb,var(--ps-surface-elevated,#fff) 92%,transparent)!important;
    box-shadow:0 14px 34px rgba(17,66,91,.065),inset 0 1px 0 rgba(255,255,255,.95)!important;
    overflow:visible!important;
  }
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil,
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-exact-form{
    background:linear-gradient(145deg,rgba(16,47,61,.86),rgba(7,28,39,.84))!important;
    border-color:rgba(108,184,214,.16)!important;
    box-shadow:0 18px 40px rgba(0,0,0,.20),inset 0 1px 0 rgba(222,247,253,.05)!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil>.ps-pcb-service-options-head{
    display:block!important;
    margin:0 0 7px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil>.ps-pcb-service-options-head strong{
    display:block!important;
    font-size:.95rem!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil>.ps-pcb-service-options-head span{
    display:block!important;
    margin-block-start:2px!important;
    font-size:.76rem!important;
    line-height:1.6!important;
  }

  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid{
    gap:8px!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:stretch!important;
    gap:5px!important;
    padding:4px 0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-field-head,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>.ps-pcb-field-head{
    grid-column:1!important;
    grid-row:1!important;
    min-height:29px!important;
    margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>select.ps-pcb-choice-native,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    grid-column:1!important;
    grid-row:2!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choices{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:minmax(42px,auto)!important;
    gap:5px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
    height:auto!important;
    min-height:42px!important;
    max-height:none!important;
    padding:7px 5px!important;
    border-radius:11px!important;
    font-size:.78rem!important;
    line-height:1.45!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid :is([data-ps-field="stencil_size"],[data-ps-field="stencil_side"]) .ps-pcb-inline-choice{
    min-height:50px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    appearance:none!important;
    -webkit-appearance:none!important;
    display:inline-grid!important;
    place-items:center!important;
    flex:0 0 24px!important;
    inline-size:24px!important;
    block-size:24px!important;
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
    max-width:24px!important;
    max-height:24px!important;
    margin:0!important;
    padding:0!important;
    border-radius:50%!important;
    font-size:12px!important;
    line-height:1!important;
    box-sizing:border-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    height:46px!important;
    min-height:46px!important;
    border-radius:11px!important;
  }
}

/* DESKTOP — same flattening and exact choice geometry as assembly. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order{
    --ps-r191-label-col:clamp(170px,21vw,235px);
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-exact-form{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil>.ps-pcb-service-options-head{
    display:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid{
    gap:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    display:grid!important;
    grid-template-columns:var(--ps-r191-label-col) minmax(0,1fr)!important;
    grid-template-rows:auto!important;
    align-items:center!important;
    gap:10px 16px!important;
    padding:10px 2px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-field-head,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>.ps-pcb-field-head{
    grid-column:1!important;
    grid-row:1!important;
    align-self:center!important;
    justify-self:stretch!important;
    min-height:34px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>select.ps-pcb-choice-native,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    grid-column:2!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:38px!important;
    gap:7px!important;
    min-height:38px!important;
    align-items:stretch!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    height:38px!important;
    min-height:38px!important;
    max-height:38px!important;
    padding:7px 11px!important;
    border-radius:11px!important;
    line-height:1.2!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    min-height:25px!important;
    max-width:25px!important;
    max-height:25px!important;
    flex:0 0 25px!important;
    border-radius:50%!important;
    font-size:12px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-main{
    font-size:.72rem!important;
    line-height:1.02!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-detail{
    margin:1px 0 0!important;
    font-size:.56rem!important;
    line-height:1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>input{
    height:46px!important;
    min-height:46px!important;
    border-radius:11px!important;
  }
}

@media (min-width:901px) and (max-width:1040px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    grid-template-columns:minmax(145px,175px) minmax(0,1fr)!important;
    gap:8px 10px!important;
  }
}

html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
  border-radius:18px!important;
}

/* Fail-open remains identical to the other choice pickers. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-choice-picker]:not(.is-enhanced) .ps-pcb-inline-choices{
  display:none!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native{
  position:static!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:52px!important;
  min-height:52px!important;
  margin:0!important;
  padding:0 14px!important;
  opacity:1!important;
  clip:auto!important;
  clip-path:none!important;
  overflow:visible!important;
  pointer-events:auto!important;
}

/* R66.199 — FINAL exact card-shell parity.
 * Measured against the installed assembly component at <=900 and >=901.
 * Stencil now uses the same section shell, service-panel shell, field rhythm,
 * flex/grid ownership, button geometry, typography, check geometry and desktop
 * max-width behavior. Supplementary stencil-size metadata remains in the native
 * select/title contract but no longer makes the visible card a separate component. */
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-step="2"],
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-step="4"]{
    padding:10px 12px!important;
    gap:8px!important;
    border-radius:16px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:13px!important;
    width:100%!important;
    margin:0!important;
    padding:10px 12px!important;
    border:1px solid rgba(228,233,236,.456)!important;
    border-radius:12px!important;
    background:linear-gradient(150deg,color-mix(in srgb,var(--ps-glass-highlight,rgba(255,255,255,.88)) 34%,transparent),transparent 52%),color-mix(in srgb,var(--ps-glass-weak,rgba(255,255,255,.46)) 82%,var(--ps-surface,#f7fafb) 18%)!important;
    box-shadow:inset 0 1px 0 color-mix(in srgb,var(--ps-glass-rim,rgba(255,255,255,.84)) 72%,transparent)!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil>.ps-pcb-service-options-head{
    display:block!important;margin:0 0 7px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil>.ps-pcb-service-options-head strong{font-size:.95rem!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil>.ps-pcb-service-options-head span{font-size:.76rem!important;line-height:1.6!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:6px!important;padding:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-items:center!important;
    gap:5px!important;min-height:38px!important;padding:4px 0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-field-head,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>.ps-pcb-field-head{
    min-height:31px!important;margin:0 0 2px!important;gap:5px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field-label]{
    font-size:.86rem!important;font-weight:760!important;line-height:1.65!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices{
    display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;gap:4px!important;
    width:100%!important;min-width:0!important;margin:0!important;grid-auto-rows:auto!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice{
    display:flex!important;flex:1 1 calc(50% - 5px)!important;width:auto!important;min-width:0!important;max-width:none!important;
    height:42px!important;min-height:42px!important;max-height:42px!important;padding:7px 5px!important;gap:5px!important;
    border-radius:11px!important;font-size:.92rem!important;font-weight:780!important;line-height:1.45!important;
    align-items:center!important;justify-content:center!important;overflow:hidden!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice>span{
    display:block!important;flex:none!important;width:auto!important;min-width:0!important;max-width:calc(100% - 27px)!important;
    height:auto!important;margin:0!important;padding:0!important;gap:normal!important;line-height:1.45!important;
    align-items:normal!important;justify-content:normal!important;overflow:hidden!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice>i{
    justify-content:normal!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-detail{
    display:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-main{
    display:inline!important;width:auto!important;max-width:100%!important;font:inherit!important;line-height:inherit!important;white-space:nowrap!important;
  }
}
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil{
    display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:12px!important;
    background:transparent!important;box-shadow:none!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-service-options--stencil>.ps-pcb-service-options-head{display:none!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    display:grid!important;grid-template-columns:var(--ps-r191-label-col) minmax(0,1fr)!important;align-items:center!important;
    gap:10px 16px!important;min-height:50px!important;padding:10px 2px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-rows:1fr!important;
    gap:7px!important;min-height:38px!important;align-items:stretch!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice{
    display:flex!important;flex:0 0 auto!important;width:auto!important;min-width:112px!important;max-width:210px!important;
    height:38px!important;min-height:38px!important;max-height:38px!important;padding:7px 11px!important;gap:5px!important;
    border-radius:11px!important;font-size:.92rem!important;font-weight:780!important;line-height:1.2!important;
    align-items:center!important;justify-content:center!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice>span{
    display:block!important;flex:none!important;width:auto!important;max-width:calc(100% - 27px)!important;line-height:1.2!important;overflow:hidden!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice>i{
    justify-content:normal!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-detail{display:none!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-main{
    display:inline!important;width:auto!important;max-width:100%!important;font:inherit!important;line-height:inherit!important;white-space:nowrap!important;
  }
}

@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-stencil-choice-detail{
    display:inline!important;
    width:auto!important;
    margin-inline-start:3px!important;
    font:inherit!important;
    line-height:inherit!important;
    opacity:1!important;
  }
}
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-stencil-choice-detail{
    display:inline!important;
    width:auto!important;
    margin-inline-start:3px!important;
    font:inherit!important;
    line-height:inherit!important;
    opacity:1!important;
  }
}

/* R66.200 — measured stencil/assembly shared-component parity.
 * This final owner is based on the resolved Assembly component, not approximate
 * historical stencil values. It closes the remaining 42/38px hard caps, 4px
 * stencil-only picker gap, span/check sizing drift and hidden useful-area copy.
 * Stencil keeps its own content, but its field/card shell is the same component. */
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-auto-flow:row!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-items:center!important;
    gap:5px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:38px!important;
    margin:0!important;
    padding:4px 0!important;
    border:0!important;
    border-bottom:1px solid rgba(91,151,177,.12)!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>*:last-child{
    border-bottom:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-field-head,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>.ps-pcb-field-head{
    grid-column:1!important;
    grid-row:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    width:100%!important;
    min-width:0!important;
    min-height:31px!important;
    margin:0 0 2px!important;
    padding:0!important;
    direction:rtl!important;
    text-align:right!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field-label]{
    font-size:.86rem!important;
    font-weight:760!important;
    line-height:1.65!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    width:24px!important;
    height:24px!important;
    min-width:24px!important;
    min-height:24px!important;
    max-width:100%!important;
    max-height:none!important;
    flex:0 0 24px!important;
    margin:0 0 2px!important;
    padding:0!important;
    border-radius:50%!important;
    font-size:12px!important;
  }
  /* Same enhanced picker grid as Assembly: auto-fit 88px tracks and 8px gaps. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices{
    grid-column:1!important;
    grid-row:2!important;
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(88px,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:auto!important;
    align-items:stretch!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:0!important;
    margin:0!important;
    overflow:visible!important;
  }
  /* Exact Assembly button shell. Height is content-driven from the same 48px
   * minimum so useful-area metadata can stay visible without a clipped card. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice{
    position:relative!important;
    display:flex!important;
    flex:initial!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:stretch!important;
    gap:5px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
    min-height:48px!important;
    max-height:none!important;
    margin:0!important;
    padding:7px 5px!important;
    border-radius:11px!important;
    box-sizing:border-box!important;
    font-size:.92rem!important;
    font-weight:780!important;
    line-height:1.45!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:hidden!important;
    overflow-wrap:anywhere!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice>span{
    display:block!important;
    flex:0 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    line-height:inherit!important;
    text-align:center!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice>i{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 22px!important;
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    min-height:22px!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    border:2px solid #18c9d2!important;
    border-radius:999px!important;
    background:#eafff7!important;
    color:#075fc7!important;
    -webkit-text-fill-color:#075fc7!important;
    font-family:Arial,"Segoe UI Symbol",sans-serif!important;
    font-size:.88rem!important;
    font-style:normal!important;
    font-weight:900!important;
    line-height:1!important;
    text-shadow:none!important;
    box-shadow:0 1px 0 rgba(255,255,255,.82),0 0 0 2px rgba(24,201,210,.14)!important;
    pointer-events:none!important;
    box-sizing:border-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice:not(.is-selected):not([aria-checked="true"])>i{
    opacity:0!important;
    visibility:hidden!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice:is(.is-selected,[aria-checked="true"])>i{
    opacity:1!important;
    visibility:visible!important;
  }
  /* Stencil-specific information stays customer-visible INSIDE the shared shell. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-main{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    font:inherit!important;
    line-height:1.12!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-detail{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    margin:2px 0 0!important;
    padding:0!important;
    font-size:.54rem!important;
    font-weight:650!important;
    line-height:1.08!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    opacity:.84!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_size"] .ps-pcb-inline-choice>span{
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    min-width:0!important;
    max-width:calc(100% - 27px)!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_size"] .ps-pcb-inline-choice{
    min-height:52px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choice>span{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-stencil-choice-detail{
    display:inline!important;
    width:auto!important;
    margin:0!important;
    font:inherit!important;
    line-height:inherit!important;
    opacity:1!important;
  }
}

@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-field-head,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field="stencil_quantity"]>.ps-pcb-field-head{
    gap:7px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    min-height:25px!important;
    max-width:100%!important;
    max-height:none!important;
    flex:0 0 25px!important;
    margin:0 0 2px!important;
    border-radius:50%!important;
    font-size:12px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    grid-auto-rows:1fr!important;
    align-items:stretch!important;
    gap:7px!important;
    min-height:48px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice{
    position:relative!important;
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    align-self:stretch!important;
    gap:5px!important;
    width:100%!important;
    min-width:112px!important;
    max-width:210px!important;
    height:100%!important;
    min-height:48px!important;
    max-height:none!important;
    margin:0!important;
    padding:7px 11px!important;
    border-radius:11px!important;
    box-sizing:border-box!important;
    font-size:.92rem!important;
    font-weight:780!important;
    line-height:1.2!important;
    text-align:center!important;
    white-space:normal!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice>span{
    display:block!important;
    flex:0 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    line-height:inherit!important;
    text-align:center!important;
    overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice>i{
    position:static!important;
    inset:auto!important;
    transform:none!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 22px!important;
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    min-height:22px!important;
    max-width:none!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    border:2px solid #18c9d2!important;
    border-radius:999px!important;
    background:#eafff7!important;
    color:#075fc7!important;
    -webkit-text-fill-color:#075fc7!important;
    font-family:Arial,"Segoe UI Symbol",sans-serif!important;
    font-size:.88rem!important;
    font-style:normal!important;
    font-weight:900!important;
    line-height:1!important;
    text-shadow:none!important;
    box-shadow:0 1px 0 rgba(255,255,255,.82),0 0 0 2px rgba(24,201,210,.14)!important;
    pointer-events:none!important;
    box-sizing:border-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice:not(.is-selected):not([aria-checked="true"])>i{opacity:0!important;visibility:hidden!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice:is(.is-selected,[aria-checked="true"])>i{opacity:1!important;visibility:visible!important;}
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-main{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    font:inherit!important;
    line-height:1.08!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-stencil-choice-detail{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    margin:2px 0 0!important;
    padding:0!important;
    font-size:.58rem!important;
    font-weight:650!important;
    line-height:1.08!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
    opacity:.84!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_size"] .ps-pcb-inline-choice>span{
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:0!important;
    min-width:0!important;
    max-width:calc(100% - 27px)!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-pcb-inline-choice>span{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field="stencil_thickness"] .ps-stencil-choice-detail{
    display:inline!important;
    width:auto!important;
    margin:0!important;
    font:inherit!important;
    line-height:inherit!important;
    opacity:1!important;
  }
}

/* Assembly itself resolves to the 18px choice radius in dark mode. Keep that
 * shared dark component after the light-mode 11px geometry closure above. */
html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-inline-choice{
  border-radius:18px!important;
}

/* Progressive enhancement remains fail-open after the final parity owner. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-choice-picker]:not(.is-enhanced) .ps-pcb-inline-choices{display:none!important;}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-choice-picker]:not(.is-enhanced) select.ps-pcb-choice-native{
  position:static!important;display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  height:52px!important;min-height:52px!important;margin:0!important;padding:0 14px!important;opacity:1!important;
  clip:auto!important;clip-path:none!important;overflow:visible!important;pointer-events:auto!important;
}


/* R66.202 — TRUE Assembly component parity for Stencil.
 * R66.200 compared the order controls without the live html[data-ps-theme]
 * attribute. The production Theme applies its canonical 18px button radius
 * through that attribute, while older Stencil-specific !important rules still
 * forced 11px cards and 8px help controls. The same legacy branch also left
 * the Stencil service shell at 12px instead of Assembly's 22px and retained
 * different grid gaps/min-width constraints. This final owner mirrors the
 * actually-resolved Assembly component; option values/content remain intact. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
.ps-pcb-service-options--stencil.ps-pcb-service-options--assembly-details{
  border-radius:22px!important;
  overflow:clip!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
.ps-stencil-reference-grid .ps-pcb-field-head{
  font-weight:450!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
.ps-stencil-reference-grid .ps-pcb-help-button{
  border-radius:50%!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
.ps-stencil-reference-grid .ps-pcb-inline-choice{
  border-radius:18px!important;
}

@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-stencil-reference-grid{
    gap:8px 12px!important;
    max-width:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices{
    min-height:auto!important;
  }
}

@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-stencil-reference-grid{
    gap:7px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices{
    min-height:38px!important;
    max-width:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice{
    min-width:0!important;
  }
}

/* R66.202 specificity closure against the historical direct-child Stencil card owner. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
.ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice{
  border-radius:18px!important;
}
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-pcb-service-options--stencil.ps-pcb-service-options--assembly-details{overflow:clip!important;}
}
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order
  .ps-pcb-service-options--stencil.ps-pcb-service-options--assembly-details{overflow:visible!important;}
}

/* R66.202 — Assembly choice-grid parity with PCB layout.
 * Customer request: montage buttons should look tidier and be arranged like the
 * PCB section. We keep all labels/values intact and only normalize the choice
 * layout geometry for the Assembly service.
 *
 * Result:
 * - 2-choice rows stay as a clean 2-up grid.
 * - 3-choice rows render as PCB-like 2-up + full-width last option.
 * - Assembly cards keep equal heights, cleaner centering and tighter button rhythm.
 */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
.ps-pcb-field-grid--assembly .ps-pcb-inline-choice{
  min-width:0!important;
  min-height:48px!important;
  height:auto!important;
  padding:8px 10px!important;
  border-radius:18px!important;
  white-space:normal!important;
  overflow:visible!important;
  overflow-wrap:anywhere!important;
  text-align:center!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
.ps-pcb-field-grid--assembly .ps-pcb-inline-choice>span{
  display:flex!important;
  flex:1 1 auto!important;
  min-width:0!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1.18!important;
}

@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly [data-ps-choice-count="2"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px 12px!important;
  }
  /* R66.274 Stage29 — mobile Assembly readability repair.
   * All project mobile widths (<=900px) keep readable cards instead of forcing
   * three narrow columns. Type/Side use 2+1; the long Parts Supply labels use
   * one full-width option per row. Desktop >=901px remains three-up. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly [data-ps-choice-count="3"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    min-width:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly [data-ps-choice-count="3"] .ps-pcb-inline-choices>.ps-pcb-inline-choice:last-child{
    grid-column:1/-1!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly [data-ps-field="parts_supply"] .ps-pcb-inline-choices{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly [data-ps-field="parts_supply"] .ps-pcb-inline-choices>.ps-pcb-inline-choice:last-child{
    grid-column:auto!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly .ps-pcb-inline-choice{
    min-height:54px!important;
    padding:9px 10px!important;
    overflow:hidden!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly .ps-pcb-inline-choice>span{
    min-width:0!important;
    line-height:1.45!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
  }
}

@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly [data-ps-choice-count="2"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly [data-ps-choice-count="3"] .ps-pcb-inline-choices{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-field-grid--assembly [data-ps-choice-count="3"] .ps-pcb-inline-choices>.ps-pcb-inline-choice:last-child{
    grid-column:auto!important;
  }
}

/* R66.203 — Fix desktop Assembly/Stenicl scope collision.
 * The Stencil shell intentionally reuses the class
 * .ps-pcb-service-options--assembly-details for visual parity. R66.202 widened an
 * Assembly desktop rule to that class and accidentally forced the hidden Stencil
 * service section visible when the requested service was Assembly.
 * Restrict the desktop Assembly presentation owner to the actual Assembly service
 * section and explicitly keep the Stencil section hidden in Assembly mode. */
@media (min-width:901px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-service-options--assembly-details[data-ps-service-section="assembly"]{
    display:block!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-service-options--assembly-details[data-ps-service-section="assembly"]>.ps-pcb-service-options-head{
    display:none!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order
  .ps-pcb-service-options--stencil[data-ps-service-section="stencil"][hidden]{
    display:none!important;
  }
}

/* R66.204 — Mobile outer form shell radius parity.
 * Customer request: the large white form rectangle on mobile should have rounded
 * corners like desktop instead of the visually sharp outer shell.
 * Apply the radius to the main single-page form container itself so the whole
 * white block (service picker, progress, sections) reads as one rounded card. */
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-reference-form{
    border-radius:24px!important;
    overflow:hidden!important;
  }
}

/* R66.205 — Mobile lower shell cleanup after outer radius.
 * Customer feedback: the outer white form shell now rounds correctly on mobile,
 * but the lower part below the final button looks awkward / too tall.
 * Keep the rounded outer shell, while tightening the bottom layout so the form
 * ends closer to its last actionable content. */
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-reference-form{
    border-radius:24px!important;
    overflow:hidden!important;
    padding-bottom:10px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-single-page-form,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-wizard-panel,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-files{
    min-height:0!important;
    height:auto!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-wizard-panel:last-child,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-section-files{
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-final-summary-row,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-final-actions,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-final-actions .ps-submit-final{
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
}

/* R66.206 — Mobile shell edge parity / residual sharp-corner cleanup.
 * Customer feedback after R66.205: the large white mobile shell looks rounded,
 * but a faint sharp lower edge is still visible underneath the blur/rounding.
 * Root cause is layered white shells (page article / order wrapper / form shell)
 * not all clipping to the same radius. Force the whole stack to share the same
 * rounded clipping path and white background on mobile. */
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-page-article{
    border-radius:28px!important;
    overflow:hidden!important;
    background:#fff!important;
    background-clip:padding-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"],
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-reference-form,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-single-page-form{
    position:relative!important;
    isolation:isolate!important;
    border-radius:24px!important;
    overflow:hidden!important;
    background:#fff!important;
    background-clip:padding-box!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-reference-form::before,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-reference-form::after,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-single-page-form::before,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-single-page-form::after{
    border-radius:inherit!important;
  }
}

/* R66.230 — consolidated customer UI hardening.
 * This is the final owner for Stencil notes/upload parity, readable touch
 * controls, and the mobile dark shell. It replaces the conflicting
 * R66.207–R66.229 width experiments without changing form logic. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-field="notes"][hidden],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] [data-ps-field="stencil_notes"][hidden]{
  display:none!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-field="notes"]{
  display:none!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"]:not(.ps-is-stencil-order) [data-ps-field="stencil_notes"]{
  display:none!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-pcb-section-files>[data-ps-field="stencil_notes"]{
  display:flex!important;
  grid-column:1/-1!important;
  justify-items:normal!important;
  align-content:normal!important;
  row-gap:7px!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:auto!important;
  margin:7px 0 0!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-field="stencil_notes"] label{
  width:auto!important;
  max-width:100%!important;
  margin:0!important;
  text-align:right!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-field="stencil_notes"] textarea{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:132px!important;
  min-height:132px!important;
  max-height:none!important;
  margin:0!important;
  padding:10px 12px!important;
  resize:vertical!important;
  box-sizing:border-box!important;
}

/* The main upload is a regular Step 4 control. Remove the obsolete compact
 * Stencil-only shell/card widths and retain the canonical responsive width. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-service-section="main-file"],
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-service-section="main-file"]>.ps-pcb-upload,
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-field="stencil_order_file"]{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0!important;
  justify-self:stretch!important;
  box-sizing:border-box!important;
}

/* Stencil option cards use the same minimum geometry and legibility contract
 * as PCB/Assembly. The help control itself is normalized below to the exact
 * visual component used by those two forms. */
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice{
  min-height:48px!important;
  height:auto!important;
  max-height:none!important;
  padding:9px 10px!important;
  line-height:1.35!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field] .ps-stencil-choice-main{
  font-size:.78rem!important;
  line-height:1.35!important;
}
body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field] .ps-stencil-choice-detail{
  font-size:.70rem!important;
  line-height:1.35!important;
}
@media (min-width:901px){
  /* Desktop PCB/Assembly rhythm: predictable label tracks and true three-up
   * groups. These rules replace the removed R66.207–R66.210 fragments. */
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly>.ps-pcb-choice-field{
    grid-template-columns:minmax(150px,190px) minmax(0,1fr)!important;
    gap:10px 14px!important;
    padding:8px 2px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly [data-ps-choice-count="3"] .ps-pcb-inline-choices{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    width:min(100%,760px)!important;
    max-width:760px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly [data-ps-choice-count="3"] .ps-pcb-inline-choice,
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-field-grid--assembly [data-ps-choice-count="3"] .ps-pcb-inline-choice:last-child{
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    height:auto!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity>.ps-pcb-field{
    grid-template-columns:minmax(170px,220px) minmax(260px,1fr)!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity>.ps-pcb-field>input{
    text-align:center!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-has-assembly-order .ps-pcb-quantity>small{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:6px 0 0!important;
    padding:0!important;
    text-align:right!important;
    justify-self:stretch!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>[data-ps-field]{
    grid-template-columns:minmax(155px,195px) minmax(0,1fr)!important;
    gap:10px 14px!important;
    padding:8px 2px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field>.ps-pcb-inline-choices{
    width:auto!important;
    max-width:760px!important;
    justify-content:start!important;
    justify-items:stretch!important;
    align-items:stretch!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order [data-ps-field="stencil_type"]>.ps-pcb-inline-choices{
    grid-template-columns:repeat(2,minmax(0,170px))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order :is([data-ps-field="stencil_size"],[data-ps-field="stencil_side"])>.ps-pcb-inline-choices{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order :is([data-ps-field="stencil_thickness"],[data-ps-field="stencil_fiducials"])>.ps-pcb-inline-choices{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    appearance:none!important;
    -webkit-appearance:none!important;
    display:inline-grid!important;
    place-items:center!important;
    inline-size:25px!important;
    block-size:25px!important;
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    min-height:25px!important;
    max-width:25px!important;
    max-height:25px!important;
    flex:0 0 25px!important;
    margin:0!important;
    padding:0!important;
    border-radius:50%!important;
    font-size:12px!important;
    font-weight:850!important;
    line-height:1!important;
    box-sizing:border-box!important;
    align-self:center!important;
    justify-self:auto!important;
    overflow:hidden!important;
  }
}
@media (max-width:900px){
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid .ps-pcb-help-button{
    appearance:none!important;
    -webkit-appearance:none!important;
    display:inline-grid!important;
    place-items:center!important;
    inline-size:25px!important;
    block-size:25px!important;
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    min-height:25px!important;
    max-width:25px!important;
    max-height:25px!important;
    flex:0 0 25px!important;
    margin:0!important;
    padding:0!important;
    border-radius:50%!important;
    font-size:12px!important;
    font-weight:850!important;
    line-height:1!important;
    box-sizing:border-box!important;
    align-self:center!important;
    justify-self:auto!important;
    overflow:hidden!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid>.ps-pcb-choice-field .ps-pcb-inline-choice{
    min-height:48px!important;
    padding:9px 8px!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field] .ps-stencil-choice-main{
    font-size:.76rem!important;
  }
  body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"].ps-is-stencil-order .ps-stencil-reference-grid [data-ps-field] .ps-stencil-choice-detail{
    font-size:.68rem!important;
  }
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-page-article,
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"],
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-reference-form,
  html[data-ps-theme="dark"] body.ps-stage66-pcb-order-page .ps-pcb-order-reference[data-ps-pcb-runtime="r66.28"] .ps-pcb-single-page-form{
    background:var(--ps-r42-panel,#0a2533)!important;
    color:var(--ps-r42-text,#edf7fb)!important;
    border-color:var(--ps-r42-line,rgba(112,184,214,.21))!important;
  }
}

/* R66.267 Stage22 — hard mobile drawer geometry on the order route.
 * This lives in the essential order-form owner so the fix cannot depend on an extra late stylesheet. */
@media (max-width:900px){
  html body.pcbshop-theme.ps-stage66-pcb-order-page #ps-primary-nav.ps-primary-nav.ps-distributor-nav{
    position:fixed!important;
    inset-block-start:var(--ps-r666-adminbar-height,var(--ps-admin-bar-offset,0px))!important;
    top:var(--ps-r666-adminbar-height,var(--ps-admin-bar-offset,0px))!important;
    inset-inline-start:0!important;inset-inline-end:0!important;right:0!important;bottom:0!important;left:0!important;
    width:100vw!important;min-width:100vw!important;max-width:none!important;
    height:auto!important;max-height:calc(100dvh - var(--ps-r666-adminbar-height,var(--ps-admin-bar-offset,0px)))!important;
    margin:0!important;box-sizing:border-box!important;border-inline:0!important;border-radius:0!important;
    overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
  }
  html body.pcbshop-theme.ps-stage66-pcb-order-page.ps-menu-open #ps-primary-nav.ps-primary-nav.ps-distributor-nav.is-open{
    inset-inline-start:0!important;inset-inline-end:0!important;right:0!important;left:0!important;
    width:100vw!important;min-width:100vw!important;max-width:none!important;
    transform:translate3d(0,0,0)!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  }
}

/* R66.268 Stage23 — mobile order drawer viewport containing-block repair.
 * The site header globally advertises `will-change: transform`; Chromium therefore treats it
 * as the containing block for fixed descendants even when transform itself computes to none.
 * Because #ps-primary-nav lives inside that header, the supposedly full-screen drawer was
 * constrained to the header box on real phones. Neutralize containing-block creators only on
 * mobile order routes so the fixed drawer is anchored to the visual/layout viewport. */
@media (max-width:900px){
  html body.pcbshop-theme.ps-stage66-pcb-order-page .ps-site-header.ps-distributor-header{
    transform:none!important;
    translate:none!important;
    will-change:auto!important;
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    contain:none!important;
    perspective:none!important;
  }
}
