/* Material selection, article detail and internal request share one light palette. */
#app #content .shop-page,
#editor:has(.article-detail,.request-form,.material-detail-lines),
#app #content :is(.material-results,.material-filters,.material-summary) {
  color-scheme: light;
  --surface: #fff; --canvas: #f3f6fb; --ink: #182b45; --muted: #4c617b;
  --border: #d2ddeb; --line: var(--border); --blue: #204eb0;
  --shop-muted: var(--muted); --shop-border: var(--border);
  color: var(--ink);
}
#app #content .shop-page .shop-finder {
  background: linear-gradient(110deg,#fff 30%,#edf2ff)!important;
  border: 1px solid var(--border)!important; border-radius: 18px!important;
  padding: clamp(14px,2.3vw,30px)!important;
}
#app #content .shop-page #shop-search-form { flex-wrap:wrap; gap:10px; }
#app #content .shop-page #shop-search-form > label {
  position:static; width:100%; height:auto; clip-path:none; overflow:visible;
  color:var(--ink); font-size:clamp(1.05rem,1.7vw,1.36rem); font-weight:680; letter-spacing:-.025em;
}
#app #content .shop-page .search { background:white; color:var(--muted); border-color:#afbed2; border-radius:11px; }
#app #content .shop-page .search:focus-within { outline:2px solid #456cc0; outline-offset:2px; }
#app #content .shop-page #shop-suggestions { background:white; color:var(--ink); border-color:var(--border); border-radius:12px; box-shadow:0 12px 36px #142c522b; }
#app #content .shop-page #shop-suggestions button { background:white; color:var(--ink); border-color:var(--border); }
#app #content .shop-page #shop-suggestions button:is(:hover,[aria-selected=true]) { background:#e9effc; color:#173c88; }
#app #content .shop-page :is(.shop-suggestion-icon,.shop-filter-chips button,.shop-category-tree button.selected,.shop-layout-switch button[aria-pressed=true]) { background:#e9effc; color:#193f90; }
#app #content .shop-page :is(.shop-sidebar,.shop-filter-panel,.shop-results-toolbar,.shop-empty) { color:var(--ink); background:white; border-color:var(--border); border-radius:14px!important; }
#app #content .shop-page .shop-products:not(.is-list) {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr)); gap:16px;
}
#app #content .shop-page .product-card {
  --surface:white; --border:#d2ddeb;
  display:flex; flex-direction:column; align-items:stretch; gap:12px;
  min-width:0; padding:clamp(14px,1.5vw,22px); background:white!important; color:var(--ink);
  border:1px solid var(--border)!important; border-radius:17px!important; box-shadow:0 3px 12px #19375409!important;
}
#app #content .shop-page .catalog-image {
  display:grid; place-items:center; width:100%; height:clamp(88px,9vw,138px); min-height:0;
  background:#f2f5fa; border:1px solid #e3e9f2; border-radius:11px; color:var(--muted);
}
#app #content .shop-page .catalog-image img { width:100%; height:100%; object-fit:contain; }
#app #content .shop-page .catalog-body { display:flex; flex-direction:column; flex:1; gap:5px; min-width:0; }
#app #content .shop-page .catalog-body .eyebrow { color:#31589e; }
#app #content .shop-page .catalog-title { color:var(--ink); font-size:1.08rem; line-height:1.35; overflow-wrap:anywhere; }
#app #content .shop-page .catalog-buy {
  display:flex; flex-direction:column; align-items:stretch; gap:10px; margin-top:auto;
  padding:13px 0 0; border-top:1px solid var(--border); color:var(--ink);
}
#app #content .shop-page .catalog-order { display:grid; grid-template-columns:minmax(0,1fr); gap:8px; }
#app #content .shop-page .catalog-buy button.primary { width:100%; margin:0; white-space:normal; }
#app #content .shop-page .catalog-price { color:var(--ink); font-variant-numeric:tabular-nums; }
#app #content .shop-page :is(.catalog-code,.catalog-subtitle,.product-selected-price,.article-content-info,.catalog-buy .order-scope,.catalog-price small,.shop-suggestion-copy small,.shop-price-note) { color:var(--muted); }
#app #content .shop-page .catalog-buy .order-scope-missing { background:#eff3f9; color:#455a77; border-color:#8097b9; }
#app #content .shop-page .price-kind,#editor .price-kind { background:#ebf0fa; color:#304b78; border-color:#cfdaed; }
#editor:has(.article-detail,.request-form,.material-detail-lines) { background:white; color:var(--ink); border:1px solid var(--border); border-radius:18px; }
#editor:has(.article-detail,.request-form,.material-detail-lines) :is(.dialog-body,.dialog-head,.dialog-foot) { background:var(--canvas); color:var(--ink); border-color:var(--border); }
#editor :is(.article-detail,.request-form,.material-detail-lines) :is(h2,h3,h4,strong,b,dt,dd,legend,label) { color:var(--ink); }
#editor :is(.article-detail,.request-form) :is(p,small,.muted,.subline,.request-sku,.variant-selected>span) { color:var(--muted); }
#editor :is(.article-gallery,.article-configuration,.article-purchase-box,.article-variants,.article-information,.request-section,.request-summary,.request-line,.material-detail-lines) {
  background:#fff; border:1px solid var(--border); border-radius:15px; color:var(--ink); min-width:0;
}
#editor :is(.article-configuration,.article-purchase-box,.request-section,.request-summary) { padding:clamp(14px,2vw,24px); }
#editor .variant-option { background:white; color:var(--ink); border:1px solid var(--border); border-radius:10px; }
#editor .variant-option[aria-pressed=true] { background:#edf2ff; border-color:var(--blue); box-shadow:inset 0 0 0 1px var(--blue); }
#editor :is(.article-detail,.request-form) :is(select,input:not([type=checkbox],[type=radio]),textarea) {
  color:var(--ink); background:white; border:1px solid #b3c2d6; border-radius:9px; min-height:44px; min-width:0; max-width:100%;
}
#editor :is(.variant-selected,.request-order-controls,.request-logistics>div,.request-status-note,.request-price-note,.article-photo-placeholder,.order-package-summary,.order-scope-missing) {
  background:#f1f5fb; color:#344e72; border-color:#c7d5e9;
}
#editor .request-section-head>span { background:#e6edfb; color:#284a88; }
#editor :is(.request-summary,.article-purchase-box) button.primary,#editor .article-add { background:#204eb0; color:white; border:1px solid #204eb0; }
#editor .request-form :is(.request-net dd,.request-number),#editor .article-detail .article-main-price { color:#193d7f; }
#app #content .material-summary .stat { background:white; color:#172940; border-color:#d2ddeb; border-radius:14px; }
#app #content .badge.orange,#editor .badge.orange { color:#3d4786; background:#eef0ff; border-color:#c6cdef; }
#app .next-bottom>.next-capture-trigger>.ico { background:#204eb0; color:white; }
#app .next-bottom>button.active { background:#e9effc; color:#193f90; }
#app .next-bottom>button:focus-visible { outline-color:#204eb0; }
@media(max-width:760px) {
  #app .layout #content { padding-bottom:calc(94px + env(safe-area-inset-bottom)); }
  #editor .article-commerce-grid,#editor .request-workspace { grid-template-columns:minmax(0,1fr); }
  #editor .request-summary { position:static; }
  #editor .request-form :is(.request-fields,.request-line) > * { min-width:0; }
  #app #content .shop-page .catalog-image { height:90px; }
}
