.shop-categories{display:flex;gap:6px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:22px}.shop-categories button{border:0;background:transparent;border-radius:9px;padding:12px 20px;color:var(--ink);font-weight:650}.shop-categories button.active{background:#eaf0ff;color:#315bea}.shop-toolbar{display:flex;gap:10px;margin-bottom:18px;align-items:center}.shop-search{flex:1;min-width:100px}.shop-search input{width:100%}.shop-meta{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin-bottom:10px}.shop-meta>div{display:flex;gap:14px;flex-wrap:wrap}.shop-disclaimer{font-size:11px;color:var(--muted);margin:0 0 24px}.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.shop-card{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;min-width:0}.shop-picture{border:0;background:#fff;width:100%;height:245px;padding:24px;display:grid;place-items:center}.shop-picture>.product-thumb{height:100%;max-height:197px;object-fit:contain;margin:0;background:#fff;width:100%}.shop-picture>svg{width:55px;height:55px;color:#a8b8cc}.shop-card-copy{padding:16px 20px 20px;display:flex;flex-direction:column;gap:9px}.shop-card-copy>small,.shop-stock{font-size:11px;color:var(--muted)}.shop-name{font-weight:700;font-size:14px;border:0;text-align:left;background:none;padding:0;color:var(--ink);line-height:1.5;overflow-wrap:anywhere;min-height:42px}.shop-price{font-size:20px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:var(--ink)}.shop-price small{font-size:11px;font-weight:400;color:var(--muted)}.shop-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:14px;margin-top:3px;flex-wrap:wrap}.shop-detail>.product-thumb{height:260px}.shop-detail label,.shop-cart-line small{display:block}.shop-cart-lines{display:grid;gap:10px}.shop-cart-line{display:grid;grid-template-columns:minmax(0,1fr) 90px 40px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.shop-cart-line strong{font-size:13px;overflow-wrap:anywhere}.shop-cart-line small{font-size:11px;color:var(--muted);margin-top:6px}.shop-cart-line input{width:100%;min-width:0}.shop-quote-lines>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,1fr) minmax(90px,1fr);gap:12px;border-bottom:1px solid var(--line);padding:14px 0;font-size:12px}.shop-quote-lines strong{overflow-wrap:anywhere}.shop-totals{display:flex;align-items:flex-end;flex-direction:column;gap:10px;margin:20px 0}.shop-totals strong{font-size:23px}.shop-order-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shop-order-list .record-card{text-align:left;min-width:0}.shop-order-list small{display:block;margin-top:12px;color:var(--muted)}.shop-order-state{display:flex;justify-content:space-between;gap:12px;background:#edf2ff;border-radius:9px;padding:16px}.shop-order-state span{font-size:12px;color:var(--muted)}.shop-sync-rows>div{border-bottom:1px solid var(--line);padding:16px 0;display:grid;gap:8px}.shop-sync-rows small{font-size:11px;color:var(--muted)}.shop-sync-rows select,.shop-sync-rows input{width:100%;min-width:0}.shop-merge-row{display:flex;justify-content:space-between;gap:10px;padding:12px 0}.shop-merge-row span,#shopMergeResults code{overflow-wrap:anywhere;font-size:11px}.site-entry-panel{border:1px solid var(--line);background:#f8faff;border-radius:12px;padding:16px;margin:20px 0}.site-entry-panel h3{font-size:14px;margin:0}.site-entry-panel .detail-grid{margin-top:16px}.entry-value{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.entry-value input{width:160px;max-width:100%;font-size:14px;background:#fff}.shop-toolbar select{max-width:230px;min-width:0}.shop-quote-lines b{overflow-wrap:anywhere}
@media(max-width:1000px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.shop-picture{height:210px}.shop-picture>.product-thumb{max-height:162px}}
@media(max-width:540px){.shop-toolbar{flex-wrap:wrap}.shop-search{flex-basis:calc(100% - 85px)}.shop-toolbar select{width:100%;max-width:none}.shop-categories{gap:3px;margin-bottom:16px}.shop-categories button{padding:10px 12px;font-size:12px}.shop-grid{gap:10px}.shop-picture{height:155px;padding:12px}.shop-picture>.product-thumb{max-height:131px}.shop-card-copy{padding:10px;gap:7px}.shop-card-copy>small,.shop-stock{font-size:10px}.shop-name{font-size:12px;min-height:36px}.shop-card-copy>.shop-price{font-size:20px;line-height:1.22;font-weight:800}.shop-card-actions{gap:8px}.shop-card-actions>.btn{padding:8px;font-size:11px;min-width:0;width:100%}.shop-order-list{grid-template-columns:1fr}.shop-cart-line{grid-template-columns:minmax(0,1fr) 65px 30px;gap:6px}.shop-quote-lines>div{grid-template-columns:minmax(0,1fr) 85px}.shop-quote-lines>div span{font-size:10px}.shop-quote-lines>div b{grid-column:2;text-align:right}.shop-order-state{flex-direction:column}.shop-meta>div{gap:10px}.shop-totals strong{font-size:20px}.site-entry-panel{padding:12px}.site-entry-panel .detail-grid{grid-template-columns:1fr}}

.shop-toolbar input,.shop-toolbar select{height:44px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;color:var(--ink);font-size:13px;box-sizing:border-box}.shop-search{margin:0}.shop-toolbar .btn{min-height:44px}
.shop-sync-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:24px}.shop-sync-heading h3{font-size:15px;margin:0}.shop-sync-heading span{font-size:12px;color:var(--muted)}.shop-sync-margin-bar{display:flex;align-items:flex-end;gap:12px;padding:16px;background:#f1f5ff;border:1px solid var(--line);border-radius:12px;margin:14px 0}.shop-sync-review label{display:grid;gap:6px;font-size:12px;color:var(--muted);min-width:0}.shop-sync-review input,.shop-sync-review select{box-sizing:border-box;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);min-height:40px;padding:9px 11px;font:inherit;max-width:100%}.shop-sync-margin-bar input{width:120px}.shop-sync-price-row{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:16px}.shop-sync-price-row output{font-size:13px;color:#315bea;line-height:1.7;overflow-wrap:anywhere}.shop-sync-success{padding:12px 14px;border:1px solid #b9dfce;border-radius:9px;background:#f0faf5;color:#247452;font-size:12px;line-height:1.7}.shop-sync-actions{display:flex;gap:9px;flex-wrap:wrap;padding:14px 0}.shop-sync-navigation{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:6px 0 18px}.shop-sync-review .subtext{line-height:1.8}.shop-sync-review[aria-busy="true"]{opacity:.6}.shop-sync-rows input[data-sync-manual]{font-size:11px}
@media(max-width:540px){.shop-sync-margin-bar{align-items:stretch;flex-wrap:wrap;padding:12px}.shop-sync-price-row{grid-template-columns:100px minmax(0,1fr);gap:10px}.shop-sync-actions>.btn{width:100%;white-space:normal}.shop-sync-navigation{gap:6px}.shop-sync-navigation .btn{padding:9px;font-size:11px}.shop-sync-navigation .text-link{font-size:11px}.shop-sync-heading{gap:7px}.shop-sync-price-row output{font-size:11px}}

.shop-sync-rows input[hidden]{display:none}
.shop-sync-review .shop-sync-rows{max-height:440px;overflow-y:auto;overscroll-behavior:contain;border-block:1px solid var(--line);padding:0 8px;margin:12px 0}.shop-sync-review progress{display:block;width:100%;height:12px;margin:10px 0;accent-color:#315bea}.shop-sync-review #shopBulkProgress small{display:block;line-height:1.7}.shop-sync-review #shopBulkProgress ul{max-height:150px;overflow:auto;padding-left:20px;font-size:12px}.shop-sync-review #shopBulkRetry{margin:0 10px 10px 0}.shop-sync-review [hidden]{display:none!important}

.shop-vendors{display:flex;flex-wrap:wrap;gap:8px;padding:8px;background:#edf2ff;border-radius:12px}.shop-vendors button{flex:1;min-width:80px;white-space:nowrap}.shop-vendors button.active{background:#345df0;color:white}.shop-categories{max-width:100%;flex-wrap:wrap}

.shop-subcategories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));margin:-16px 0 24px;border:1px solid var(--line);border-radius:10px;overflow:hidden}.shop-subcategories button{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:#f8faff;color:var(--ink);padding:13px 5px;cursor:pointer;font:inherit;font-size:12px;overflow-wrap:anywhere}.shop-subcategories button.active{background:#e8edff;color:#345df0;font-weight:700}.shop-subcategories button:focus-visible{outline:2px solid #345df0;outline-offset:-3px}@media(max-width:540px){.shop-subcategories{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}}

.shop-subcategories{max-height:264px;overflow-y:auto;overscroll-behavior:contain}.shop-subcategories button{min-height:44px}

.shop-cart-product{display:flex;align-items:center;gap:10px;min-width:0}
.shop-cart-product>div:last-child{min-width:0}
.shop-cart-photo{display:grid;place-items:center;flex:0 0 48px;height:48px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f7f9fc;color:var(--muted)}
.shop-cart-photo .product-thumb{width:100%;height:46px;object-fit:contain}

.shop-option-group {
  min-inline-size: 0;
  margin: 12px 0;
  padding: 4px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.shop-option-group legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
}
.shop-option-group:not(.shop-color-options) label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  cursor: pointer;
}
.shop-option-group input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #345df0;
}
.shop-detail .shop-quantity {
  max-width: 150px;
  margin-top: 12px;
}
.shop-variant-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 3px 0; color: #476079; font-size: 11px; }
.shop-custom-badge { padding: 3px 7px; border-radius: 6px; background: #e8f5ee; color: #216547; font-weight: 700; }
.shop-color-options > div { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 2px 2px; }
.shop-color-options label { position: relative; margin: 0; }
.shop-color-options input { position: absolute; opacity: 0; }
.shop-color-options label > span { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.shop-color-options input:checked + span { border-color: #345df0; background: #edf2ff; color: #2044bb; font-weight: 700; }
.shop-color-options input:focus-visible + span { outline: 2px solid #345df0; outline-offset: 2px; }
.shop-color-options img { width: 31px; height: 31px; flex: 0 0 31px; object-fit: cover; border: 1px solid #c7d1dc; border-radius: 4px; }

.shop-order-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.shop-order-actions+button{align-self:flex-end}
#shopCustomerOrderCount,#shopTradeCount{font-variant-numeric:tabular-nums;margin-inline-start:3px}
.product-supplier{display:block;color:var(--muted,#61758c);font-size:11px;overflow-wrap:anywhere}

.trade-source{white-space:pre-wrap;overflow-wrap:anywhere}
.shop-tile-photo-gallery { margin: 12px 0; padding: 9px; border: 1px solid #dbe4dc; border-radius: 10px; background: #f7faf7 }
.shop-tile-photo-gallery summary { color: #244536; font-weight: 750; cursor: pointer }
.shop-tile-photo-gallery > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-block: 9px }
.shop-tile-photo-gallery figure { margin: 0 }
.shop-tile-photo-gallery img { display: block; width: 100%; height: 150px; border-radius: 6px; object-fit: contain; background: white }
.shop-tile-photo-gallery figcaption { margin-top: 4px; color: #526357; font-size: 11px }
.shop-tile-photo-gallery a { color: #244536; font-size: 12px }

.shop-header-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shop-grade-view,.shop-tools-menu>summary{display:inline-flex;align-items:center;gap:6px;font-weight:650;font-size:12px}.shop-grade-view select{min-width:0;width:auto;max-width:170px;padding:8px 5px;border:1px solid #ced8e4;border-radius:6px;background:white}.shop-tools-menu{position:relative}.shop-tools-menu>summary{min-height:37px;padding:7px 13px;border:1px solid #ced8e4;border-radius:6px;cursor:pointer;background:white}.shop-tools-menu>summary::after{content:'⌄'}.shop-tools-menu>div{position:absolute;right:0;top:calc(100% + 4px);z-index:12;min-width:165px;padding:5px;background:white;border:1px solid #d8dfe8;border-radius:8px;box-shadow:0 5px 18px #122d401a}.shop-tools-menu button{width:100%;padding:10px;background:white;color:#223549;border:0;text-align:left;font:inherit}.shop-tools-menu button:hover,.shop-tools-menu button:focus-visible{background:#eff4fb}.s-mode-trigger{margin-inline-start:auto;border:1px solid #829dad;background:#203c54;color:white;border-radius:6px;min-height:17px;padding:1px 3px;font:650 9px/1.3 sans-serif;white-space:nowrap}.s-mode-trigger[aria-pressed=true]{background:#d7ece4;color:#163b32}.account:has(.s-mode-trigger)>div:nth-child(2){min-width:0}.shop-header-tools .btn{white-space:nowrap}
@media(max-width:650px){#shopRoot .page-head{align-items:flex-start;flex-direction:column;gap:10px}.shop-header-tools{gap:6px}.shop-grade-view select{max-width:140px}.shop-header-tools .btn{padding-inline:10px}.shop-tools-menu>div{right:auto;left:0}}

.mode-controls{display:grid;gap:8px}.mode-controls label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px;border:1px solid #dae2ea;border-radius:7px;font-weight:600}.mode-controls label select{width:min(55%,210px);min-width:0}.mode-controls #normalMode{justify-self:start}.mode-controls .form-actions{margin:2px 0}#modal:has(#modeForm){max-width:min(440px,96vw)}#modeStatus{border:1px solid #aabbd1;background:#eef4fb;color:#27446a;border-radius:5px;font:600 11px/1.4 sans-serif;white-space:nowrap;padding:3px 6px;margin-left:4px}[data-mode-key]{cursor:pointer;text-decoration:none}[data-mode-key]:focus-visible{outline:2px solid #558ef5}.work-menu-count[data-mode-key]{pointer-events:auto;min-width:24px;min-height:24px}

#modal:has(.shop-pilot){width:min(1080px,96vw);max-width:96vw}.shop-pilot{color:#182c2d;font-size:14px}.pilot-hero{display:grid;grid-template-columns:1.4fr 1fr;gap:clamp(16px,3vw,42px)}.pilot-hero figure{margin:0;min-width:0}.pilot-media{position:relative;background:#fff;border-radius:5px;overflow:hidden}.pilot-media img{width:100%;display:block;height:clamp(235px,33vw,378px);object-fit:cover}.pilot-media figcaption{position:absolute;bottom:10px;left:10px;background:white;padding:4px 7px;font-size:12px}.pilot-thumbs{display:flex;align-items:center;gap:6px;overflow:auto;margin:8px 0}.pilot-thumbs button{background:white;padding:2px;border:1px solid transparent;border-radius:4px;flex:0 0 40px;height:40px}.pilot-thumbs button[aria-pressed=true]{border-color:#285342}.pilot-thumbs img{width:100%;height:100%;object-fit:cover}.pilot-thumbs small{margin-left:auto;white-space:nowrap}.pilot-intro h2{margin:5px 0;font:700 clamp(28px,3.3vw,50px)/1.1 Arial,sans-serif;letter-spacing:-.04em}.pilot-intro>small,.pilot-price>small{font-weight:650;color:#386352}.pilot-intro>p{color:#55645e}.pilot-price{border-block:1px solid #c5d1c7;padding:12px 0;font-size:12px}.pilot-price small{display:block}.pilot-price .shop-price{font-size:30px;color:#142d29}.pilot-intro dl{display:grid;grid-template-columns:auto 1fr;gap:6px 12px}.pilot-intro dd{margin:0;font-weight:600}.pilot-intro dt{color:#576b62}.pilot-qty,.pilot-qty span,.pilot-actions,.pilot-footer{display:flex;align-items:center;gap:7px}.pilot-qty{justify-content:space-between;border-top:1px solid #d4ddd5;padding-top:10px}.pilot-qty span{border:1px solid #b9c8bd;border-radius:5px;gap:0}.pilot-qty button,.pilot-qty input{background:white;color:inherit;border:0;text-align:center;width:34px;height:36px;padding:0}.pilot-qty input{width:46px;appearance:textfield}.pilot-qty input::-webkit-inner-spin-button{appearance:none}.pilot-actions{margin-top:12px}.pilot-actions button:last-child{flex:1;background:#214c40}.pilot-guide{border-top:1px solid #b9c7ba;margin-top:18px;padding:15px 0}.pilot-guide h3{margin:0 0 12px}.pilot-guide>div{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.pilot-guide p{margin:4px 0;font-size:13px;color:#4b5b53}.pilot-footer{justify-content:flex-end;margin-top:8px}.pilot-footer .text-link:first-child{margin-right:auto}
@media(max-width:700px){#modal:has(.shop-pilot){width:100vw;max-width:100vw}.pilot-hero{grid-template-columns:1fr;gap:10px}.pilot-media img{height:min(56vw,320px)}.pilot-thumbs{gap:3px}.pilot-thumbs button{flex-basis:33px;height:33px}.pilot-guide>div{grid-template-columns:1fr;gap:12px}.pilot-intro>p{margin:5px 0}.pilot-intro dl{margin:10px 0}.pilot-footer{flex-wrap:wrap}}

.catalog-product-photo{display:grid;place-items:center;min-height:180px}.catalog-product-photo img.product-thumb{width:100%;max-width:100%;object-fit:contain;background:#fff;height:clamp(235px,33vw,378px)}.pilot-intro{min-width:0;overflow-wrap:anywhere}.shop-pilot .pilot-intro h2{font-family:inherit}

@media (max-width:720px){
 .workspace .topbar:has(#modeStatus){height:84px;padding-bottom:28px}
 .topbar #modeStatus{position:absolute;bottom:3px;left:12px;margin:0;min-height:24px;max-width:calc(100% - 24px);overflow:hidden;text-overflow:ellipsis}
}
