/* Review only. Transparent control with independently opaque arrow. */
html body#page-top:is(#page-top):is(#page-top) .catalog-to-top-float{opacity:1!important;color:#171717!important;background:rgba(245,245,245,.25)!important;border:1px solid rgba(45,45,45,.75)!important;box-shadow:0 0 0 1px #ffffff80,0 2px 7px #0003!important;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}
html body#page-top:is(#page-top):is(#page-top) .catalog-to-top-float svg{stroke-width:2.2!important;filter:drop-shadow(0 1px 1px #fff)}
html[data-theme=dark] body#page-top:is(#page-top):is(#page-top) .catalog-to-top-float{color:#fff!important;background:rgba(35,35,35,.32)!important;border-color:#ffffffb3!important;box-shadow:0 0 0 1px #0008,0 2px 7px #0005!important}
html[data-theme=dark] body#page-top:is(#page-top):is(#page-top) .catalog-to-top-float svg{filter:drop-shadow(0 1px 1px #000)}
/* Dark surfaces and their boundaries; no geometry changes. */
html[data-theme=dark] body#page-top .site-chrome{border-bottom:1px solid #4b4b4b!important}
html[data-theme=dark] body#page-top .catalog-static-filters{border-bottom:1px solid #494949;padding-bottom:16px}
html[data-theme=dark] body#page-top .catalog-sidebar{background:#1c1c1c!important;border-color:#626262!important}
html[data-theme=dark] body#page-top #product-detail{background:#202020!important;border:1px solid #666!important;box-shadow:0 16px 60px #0009!important}
html[data-theme=dark] body#page-top #product-detail .dialog-topbar{border-bottom:1px solid #595959!important}
html[data-theme=dark] body#page-top #product-detail .detail-buy{background:#292929!important;border-color:#666!important}
html[data-theme=dark] body#page-top #product-detail .detail-section{border-top:1px solid #555!important;padding-top:18px}
html[data-theme=dark] body#page-top #product-detail .detail-meta span,html[data-theme=dark] body#page-top #product-detail .close{border-color:#888!important}
/* Account: neutral grey replaces the legacy olive surface palette. */
html[data-theme=dark] body:has(.workspace){--ink:#f2f2f2;--muted:#b8b8b8;--line:#626262;--paper:#141414;--panel:#242424;background:#141414!important;color:#f2f2f2}
html[data-theme=dark] .workspace .order-card,html[data-theme=dark] .workspace .panel,html[data-theme=dark] .workspace .shortcut{background:#242424!important;border-color:#626262!important}
html[data-theme=dark] .workspace .panel-icon,html[data-theme=dark] .workspace input[readonly]{background:#333!important;color:#ddd!important}
html[data-theme=dark] .workspace .button:not(.primary):hover{background:#363636!important}
html[data-theme=dark] .workspace .status{background:#393939!important;color:#eee!important}
html[data-theme=dark] .workspace .order-bottom{border-color:#626262!important}

html[data-theme=dark] body#page-top .catalog-intro{border:1px solid #626262!important;border-radius:22px;background:#191919!important;padding:22px 26px!important;margin:20px 24px!important}
@media(min-width:901px){
html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-buy{box-sizing:border-box!important;min-height:0!important;height:auto!important;margin:20px 0!important;padding:20px!important;gap:20px!important;align-items:center!important;border-radius:16px!important}
html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-caption{font-size:12px!important;line-height:1.4!important;display:block!important;margin:0 0 8px!important;color:var(--muted,#888)!important}
html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-price{font-size:28px!important;line-height:1.2!important;margin:0!important;white-space:nowrap}
html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-purchase-control{width:220px!important;max-width:100%!important;min-height:70px!important;align-self:center!important;margin:0!important;transform:none!important}
html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-add{min-height:46px!important;height:46px!important;border-radius:12px!important;font-size:15px!important}
html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-section{margin-top:20px!important}
}
@media(min-width:901px){html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-buy{display:grid!important;grid-template-columns:minmax(0,1fr) 220px!important}html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-buy>div:first-child{border-right:1px solid #777!important;padding-right:18px!important}}
@media(min-width:901px){html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-buy{grid-template-rows:auto!important}html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-buy>div:first-child{display:flex!important;flex-direction:column!important;gap:0!important;grid-area:auto!important}html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-purchase-control{grid-area:auto!important}html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-price{display:block!important}html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-buy+.detail-section{border-top:0!important;padding-top:0!important}}
@media(min-width:901px){html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-buy{max-width:480px!important;width:100%!important;padding:14px 16px!important;grid-template-columns:minmax(0,1fr) 190px!important;gap:16px!important}html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-purchase-control{width:190px!important;min-height:64px!important}html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-add{grid-row:1 / 3!important;align-self:center!important}html body#page-top #product-detail:is(#product-detail):is(#product-detail) .detail-price{font-size:26px!important}}
@media (max-width: 900px) {
  body#page-top .catalog-static-filters label:has(#price-sort),
  body#page-top .catalog-static-filters label:has(#catalog-density) {
    display: none !important;
  }
  html body#page-top #product-detail:is(#product-detail):not(.compact-dual-detail) .detail-buy {
    display: grid !important;
    grid-template-rows: auto !important;
    align-items: start !important;
    gap: 0 8px !important;
    padding: 7px 10px 5px !important;
    min-height: 0 !important;
  }
  html body#page-top #product-detail:is(#product-detail):not(.compact-dual-detail) .detail-buy > div:first-child {
    grid-area: 1 / 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 44px !important;
    min-width: 0;
  }
  html body#page-top #product-detail:is(#product-detail):not(.compact-dual-detail) .detail-buy :is(.detail-caption,.detail-price) {
    margin: 0 !important;
    line-height: 1.1 !important;
  }
  html body#page-top #product-detail:is(#product-detail):not(.compact-dual-detail) .detail-buy > .detail-purchase-control {
    grid-area: 1 / 2 !important;
    align-self: start !important;
    margin: 0 !important;
  }
}

@media (max-width: 900px) {
  html body#page-top #product-detail:is(#product-detail):not(.compact-dual-detail) .detail-buy .detail-price {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 900px) {
  html body#page-top .catalog-static-filters {
    margin-block: 0 !important;
    padding-block: 0 !important;
    column-gap: 8px !important;
  }
  html body#page-top[data-visual-review] .catalog-static-filters label {
    gap: 3px !important;
  }
  html body#page-top .catalog-page .catalog-result-line {
    margin-block: 6px 8px !important;
    padding-block: 0 !important;
    min-height: 0 !important;
    flex-wrap: wrap;
    gap: 4px 8px;
  }
  html body#page-top #product-detail .detail-info .detail-buy {
    position: sticky !important;
    top: 0 !important;
    z-index: 3;
    background-color: var(--paper,#f6f6f2) !important;
  }
  html[data-theme=dark] body#page-top #product-detail .detail-info .detail-buy {
    background-color: #292929 !important;
  }
}

#cart-dialog :is(.cart-select,.cart-select-all) input[type=checkbox] {
 appearance:none!important; box-sizing:border-box; width:16px!important;height:16px!important;min-width:16px;flex:none;border:1.5px solid currentColor!important;border-radius:50%!important;color:inherit;background:transparent!important;margin:0;
}
#cart-dialog :is(.cart-select,.cart-select-all) input:checked {background:radial-gradient(circle,currentColor 0 35%,transparent 39%)!important}
#cart-dialog .cart-select-all input:indeterminate {background:linear-gradient(currentColor,currentColor) center/8px 2px no-repeat!important}

@media(max-width:700px){
html body#page-top .catalog-page .catalog-intro{margin-top:-9px!important}
html body#page-top:has(.catalog-list[data-directory-open]){padding-top:var(--directory-header-height,66px)!important}
html body#page-top:has(.catalog-list[data-directory-open]) .catalog-page{padding-top:0!important;margin-top:0!important}
html body#page-top:has(.catalog-list[data-directory-open]) .catalog-intro{margin-top:5px!important}
html body#page-top .catalog-list[data-directory-open] .catalog-directory-preview>h2{display:none!important}
}
@media(max-width:700px){
html body#page-top .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
html body#page-top .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions>[data-scope]{min-width:0!important;min-height:0!important;height:auto!important;padding:12px 8px!important;grid-template-rows:76px auto!important;gap:6px!important;align-content:start!important}
html body#page-top .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions>[data-scope] .directory-picture{height:76px!important;width:100%!important;object-fit:contain!important}
html body#page-top .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions>[data-scope] .direction-label{font-size:14px!important;line-height:1.2!important;white-space:normal!important;overflow-wrap:anywhere}
html body#page-top .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions>[data-scope=all]{grid-column:1/-1;grid-template-columns:64px auto!important;grid-template-rows:auto!important;justify-content:center!important;align-items:center!important;gap:10px!important;padding:7px 12px!important}
html body#page-top .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions>[data-scope=all] .directory-picture{height:44px!important}
html body#page-top .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions>[data-scope=all] .direction-label{grid-column:2!important;grid-row:1!important}
}
@media(max-width:700px){
html[data-theme] body#page-top:has(.catalog-list[data-directory-open]) .catalog-page .catalog-intro{box-sizing:border-box!important;width:100%!important;max-width:none!important;margin:8px 0 0!important;padding:14px 16px!important;border-width:1px!important;border-style:solid!important}
html[data-theme=light] body#page-top .catalog-page .catalog-intro{border-color:transparent}
html[data-theme] body#page-top:has(.catalog-list[data-directory-open]) .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions>[data-scope=all]{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;}
html[data-theme] body#page-top:has(.catalog-list[data-directory-open]) .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions>[data-scope=all] .directory-picture{position:static!important;transform:none!important;flex:0 0 68px!important;width:68px!important;height:44px!important;object-fit:contain!important;margin:0!important}
html[data-theme] body#page-top:has(.catalog-list[data-directory-open]) .catalog-list[data-directory-open] .catalog-directory-preview .sidebar-directions>[data-scope=all] .direction-label{position:static!important;transform:none!important;width:auto!important;margin:0!important;flex:0 1 auto!important}
}
@media(max-width:700px){html[data-theme] body#page-top .catalog-page .catalog-workspace:has(.catalog-list[data-directory-open]){margin-top:0!important}}
@media(max-width:700px){
html[data-theme] body#page-top .catalog-page:not(:has(.catalog-list[data-directory-open])) .catalog-intro{box-sizing:border-box;width:100%;margin:-9px 0 8px!important;padding:14px 16px!important;border:0!important;border-radius:24px}
html[data-theme=dark] body#page-top .catalog-page:not(:has(.catalog-list[data-directory-open])) .catalog-intro{box-shadow:inset 0 0 0 1px #626262}
}
@media(max-width:700px){html[data-theme=dark] body#page-top .catalog-page .catalog-static-filters{padding-bottom:8px!important}}
