/* LEMARK Silver — storefront page layer.
 * Existing templates own layout, data, controls, status and responsive behavior.
 * Every override is opt-in; no selector changes the default or dark themes.
 * Wear, used/new, availability, validation and payment states retain their meaning.
 */

/* Bridge the page-specific token families. Some are defined in body <style>
   blocks, hence the explicit html attribute specificity. */
html[data-theme="silver"] {
  --sl-panel: #F8F9FA;
  --sl-selected: #E9ECF0;
  --sl-border-strong: #A6ADB8;
  --sl-focus-ring: 0 0 0 3px rgba(69,77,92,.14);
  --sl-page-shadow: 0 2px 6px rgba(44,47,56,.06);
  --sl-metal: linear-gradient(135deg, #56606F, #353C48);
  --bg: var(--sl-bg);
  --surface: var(--sl-surface);
  --surface-2: var(--sl-panel);
  --ink: var(--sl-ink);
  --ink-2: var(--sl-muted);
  --muted: var(--sl-muted);
  --muted-2: #687181;
  --line: var(--sl-line);
  --line-2: #ECEEF1;
  --primary: var(--sl-primary);
  --primary-soft: #657181;
  --primary-bg: var(--sl-selected);
  --accent: #657181;
  --accent-soft: #CBD1D9;
  --primary-grad: var(--sl-metal);
  --rainbow-grad: var(--sl-metal);
  --shadow-sm: var(--sl-page-shadow);
  --shadow-md: var(--sl-page-shadow);
  --shadow-lg: 0 8px 24px rgba(44,47,56,.10);
  --success: #16A34A;
  --success-bg: #E6F7EC;
  --warning: #D97706;
  --warning-bg: #FEF3E2;
  --error: #DC2626;
  --error-bg: #FCE5E5;
  --used: #A86A1F;
  --used-bg: #FBF1DD;
  --lmk-bg: var(--sl-bg);
  --lmk-surface: var(--sl-surface);
  --lmk-surface-2: var(--sl-panel);
  --lmk-ink: var(--sl-ink);
  --lmk-ink-2: var(--sl-muted);
  --lmk-muted: var(--sl-muted);
  --lmk-muted-2: #687181;
  --lmk-line: var(--sl-line);
  --lmk-line-2: #ECEEF1;
  --lmk-border: var(--sl-line);
  --lmk-primary: var(--sl-primary);
  --lmk-primary-soft: #657181;
  --lmk-primary-bg: var(--sl-selected);
  --lmk-accent: #657181;
  --lmk-primary-grad: var(--sl-metal);
  --lmk-shadow-sm: var(--sl-page-shadow);
  --lmk-shadow-md: var(--sl-page-shadow);
  --lmk-shadow-lg: 0 8px 24px rgba(44,47,56,.10);
  --ml-bg: var(--sl-bg);
  --ml-surface: var(--sl-surface);
  --ml-surface-2: var(--sl-panel);
  --ml-ink: var(--sl-ink);
  --ml-ink-2: var(--sl-muted);
  --ml-muted: var(--sl-muted);
  --ml-muted-2: #687181;
  --ml-line: var(--sl-line);
  --ml-line-2: #ECEEF1;
  --ml-primary: var(--sl-primary);
  --ml-primary-soft: #657181;
  --ml-primary-bg: var(--sl-selected);
  --ml-accent: #657181;
  --ml-primary-grad: var(--sl-metal);
  --ml-shadow-sm: var(--sl-page-shadow);
  --ml-shadow-md: var(--sl-page-shadow);
  --ml-shadow-lg: var(--sl-page-shadow);
  --au-bg: var(--sl-bg);
  --au-surface: var(--sl-surface);
  --au-surface-2: var(--sl-panel);
  --au-ink: var(--sl-ink);
  --au-ink-2: var(--sl-muted);
  --au-muted: var(--sl-muted);
  --au-muted-2: #687181;
  --au-line: var(--sl-line);
  --au-line-2: #ECEEF1;
  --au-primary: var(--sl-primary);
  --au-primary-soft: #657181;
  --au-primary-bg: var(--sl-selected);
  --au-accent: #657181;
  --au-accent-soft: #CBD1D9;
  --au-primary-grad: var(--sl-metal);
  --au-shadow-sm: var(--sl-page-shadow);
  --au-shadow-md: var(--sl-page-shadow);
  --ord-bg: var(--sl-bg);
  --ord-surface: var(--sl-surface);
  --ord-surface-2: var(--sl-panel);
  --ord-ink: var(--sl-ink);
  --ord-ink-2: var(--sl-muted);
  --ord-muted: var(--sl-muted);
  --ord-muted-2: #687181;
  --ord-line: var(--sl-line);
  --ord-line-2: #ECEEF1;
  --ord-primary: var(--sl-primary);
  --ord-primary-soft: #657181;
  --ord-primary-bg: var(--sl-selected);
  --ord-accent: #657181;
  --ord-accent-soft: #CBD1D9;
  --ord-primary-grad: var(--sl-metal);
  --ord-shadow-sm: var(--sl-page-shadow);
  --ord-shadow-md: var(--sl-page-shadow);
  --r-bg: var(--sl-bg);
  --r-surface: var(--sl-surface);
  --r-surface-2: var(--sl-panel);
  --r-ink: var(--sl-ink);
  --r-ink-2: var(--sl-muted);
  --r-muted: var(--sl-muted);
  --r-muted-2: #687181;
  --r-line: var(--sl-line);
  --r-line-2: #ECEEF1;
  --r-primary: var(--sl-primary);
  --r-primary-bg: var(--sl-selected);
  --r-accent: #657181;
  --r-primary-grad: var(--sl-metal);
  --r-shadow-sm: var(--sl-page-shadow);
  --r-shadow-md: var(--sl-page-shadow);
  --ct-ink: var(--sl-ink);
  --ct-ink-2: var(--sl-muted);
  --ct-muted: var(--sl-muted);
  --ct-line: var(--sl-line);
  --ct-primary: var(--sl-primary);
  --ct-primary-bg: var(--sl-selected);
  --ct-accent: #657181;
  --ct-grad: var(--sl-metal);
  --ct-rainbow: var(--sl-metal);
}

/* These containers redeclare tokens locally, overriding root inheritance. */
html[data-theme="silver"] :is(.lemark-page, .lemark-cart, .lemark-to, .plat) {
  --bg: var(--sl-bg);
  --surface: var(--sl-surface);
  --surface-2: var(--sl-panel);
  --ink: var(--sl-ink);
  --ink-2: var(--sl-muted);
  --muted: var(--sl-muted);
  --muted-2: #687181;
  --line: var(--sl-line);
  --line-2: #ECEEF1;
  --primary: var(--sl-primary);
  --primary-soft: #657181;
  --primary-bg: var(--sl-selected);
  --accent: #657181;
  --accent-soft: #CBD1D9;
  --primary-grad: var(--sl-metal);
  --rainbow-grad: var(--sl-metal);
  --shadow-sm: var(--sl-page-shadow);
  --shadow-md: var(--sl-page-shadow);
  --shadow-lg: 0 8px 24px rgba(44,47,56,.10);
}
html[data-theme="silver"] .lk-wrap {
  --bg: var(--sl-bg);
  --surface: var(--sl-surface);
  --line: var(--sl-line);
  --ink: var(--sl-ink);
  --ink-2: var(--sl-muted);
  --ink-3: #687181;
  --p1: #657181;
  --p2: var(--sl-primary);
  --p-soft: var(--sl-selected);
  --grad: var(--sl-metal);
}

/* A quiet title hierarchy across existing page namespaces. */
html[data-theme="silver"] :is(.lmk-h1, .brand-meta h1, .lmk-head-info h1,
  .sh-h1, .product-title, .cx-title, .page-head h1, .r-head-title,
  .w-head-title, .ap-hero-name, .auth-form-head h1, .ct-card h1) {
  color: var(--sl-ink);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.18;
  text-wrap: balance;
}
html[data-theme="silver"] :is(.grad, .sh-grad, .snr-grad, .ge-grad,
  .cx-grad, .dl-grad, .gu-gr, .cx-sum-total .val, .ck-sum-total-val,
  .cart-summary-total .value, .sc-sum-total .val, .stat-value, .who-float-value,
  .plat-stat-value, .gu-num.grad) {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--sl-ink);
}
html[data-theme="silver"] :is(.lmk-eyebrow, .brand-eyebrow, .sh-eyebrow,
  .cx-eyebrow, .lmk-s1-eyebrow, .ck-eyebrow, .return-eyebrow,
  .section-eyebrow, .dl-eyebrow, .gu-ey) {
  color: var(--sl-muted);
  background: var(--sl-selected);
  letter-spacing: .04em;
}

/* Catalog — retain all data grids and their existing breakpoints. */
html[data-theme="silver"] :is(.brand-hero, .lmk-page-head, .lmk-sidebar,
  .lmk-filter-bar, .lmk-section, .lmk-cat-card, .model-card) {
  border-color: var(--sl-line);
  border-radius: 16px;
  box-shadow: none;
  background-color: var(--sl-surface);
}
html[data-theme="silver"] :is(.brand-hero, .lmk-page-head)::before,
html[data-theme="silver"] :is(.brand-hero, .lmk-page-head)::after {
  display: none;
}
html[data-theme="silver"] .lemark-page .brand-card {
  border: 1px solid var(--sl-line);
  border-radius: 12px;
  box-shadow: none;
  min-height: 70px;
}
html[data-theme="silver"] :is(.model-card:hover, .lmk-cat-card:hover,
  .lemark-page .brand-card:hover) {
  border-color: var(--sl-border-strong);
  box-shadow: var(--sl-page-shadow);
  transform: translateY(-2px);
}
html[data-theme="silver"] .model-img {
  background: var(--sl-panel);
}
html[data-theme="silver"] :is(.model-trail, .model-shine) { opacity: .18; }
html[data-theme="silver"] :is(.model-arrow, .lmk-sb-group-head .count,
  .lmk-sb-item.active, .lmk-sb-leaf:hover, .lmk-sb-item:hover) {
  background: var(--sl-selected);
  color: var(--sl-primary);
}
html[data-theme="silver"] :is(.lmk-section-head, .lmk-brand-head) {
  background: var(--sl-panel);
}
html[data-theme="silver"] .lmk-section-head::before { display: none; }
html[data-theme="silver"] .lmk-section--used .lmk-section-head {
  background: #FCFAF6;
}
html[data-theme="silver"] .lmk-product:hover {
  background-color: var(--sl-panel);
}
html[data-theme="silver"] :is(.lmk-filter-tab.active, .ml-filter-tab.active,
  .lemark-page .lmk-filter-btn.active, .sr-sort-btn.is-active) {
  background: var(--sl-primary);
  color: var(--sl-primary-ink);
  box-shadow: none;
}
html[data-theme="silver"] :is(.lmk-product-info .article,
  .lmk-brand-tag, .lmk-hl, .lmk-s1-code, .lmk-s2-code) {
  color: var(--sl-primary);
  background-color: var(--sl-selected);
}

/* TO, OEM replacements and oil share this local token container. Only their
   presentation is themed: the existing grids, engine codes and data stay intact. */
html[data-theme="silver"] .lemark-to .lmk-page-head { background: transparent; }
html[data-theme="silver"] .lemark-to .lmk-h1 .grad {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  color: var(--sl-ink);
}
html[data-theme="silver"] .lemark-to :is(.lmk-filter input, .lmk-year,
  .zam-q input, .zb-q input, .zm-q input, .oil-q input):focus {
  border-color: var(--sl-primary);
  box-shadow: var(--sl-focus-ring);
}
html[data-theme="silver"] .lemark-to :is(.card, .vpill, .mcard2, .row,
  .zi-tile, .zs-item, .zb-card, .zm-mod, .zp-card, .oil-card):hover {
  border-color: var(--sl-border-strong);
  box-shadow: var(--sl-page-shadow);
  transform: translateY(-1px);
}
html[data-theme="silver"] .lemark-to .card::before { display: none; }
html[data-theme="silver"] .lemark-to :is(.zi-tile__name, .zam-p-name,
  .zs-item__lbl, .zb-card__name, .zm-mod__nm, .oil-card__nm) mark {
  color: var(--sl-primary);
  background: var(--sl-selected);
}
html[data-theme="silver"] .lemark-to :is(.cta .btn, .oil-cta .btn) {
  background: var(--sl-primary);
  color: var(--sl-primary-ink);
  box-shadow: none;
}
html[data-theme="silver"] .lemark-to :is(.cta .btn, .oil-cta .btn):hover {
  background: var(--sl-ink);
  box-shadow: none;
}
html[data-theme="silver"] .lemark-to .det-price-btn:hover {
  background: var(--sl-primary);
  box-shadow: none;
}
html[data-theme="silver"] .lemark-to .oil-head__ico {
  background: var(--sl-primary);
  box-shadow: none;
}

/* Search — filters, result rows, empty and initial states. */
html[data-theme="silver"] :is(.sh-hero, .sh-card, .sh-manager,
  .snf-card, .snr-card, .ge-card) {
  border-radius: 16px;
  border-color: var(--sl-line);
  box-shadow: none;
  background: var(--sl-surface);
}
html[data-theme="silver"] :is(.sh-hero, .sh-manager)::before,
html[data-theme="silver"] :is(.sh-hero, .sh-manager)::after,
html[data-theme="silver"] :is(.snr-spark, .lmk-filter-empty__spark) {
  display: none;
}
html[data-theme="silver"] :is(.ge-card, .snf-card, .snr-card)::before,
html[data-theme="silver"] :is(.ge-card, .snf-card, .snr-card)::after {
  display: none;
}
html[data-theme="silver"] :is(.sh-visual-inner, .snf-icon-wrap,
  .snr-icon-wrap, .ge-icon-wrap) {
  filter: grayscale(1);
}
html[data-theme="silver"] :is(.sh-card:hover, .sph-card:hover) {
  box-shadow: var(--sl-page-shadow);
  border-color: var(--sl-border-strong);
  transform: translateY(-2px);
}
html[data-theme="silver"] :is(.sh-card-ico.accent, .sh-mgr-visual,
  .snr-icon-bg, .ge-inline-ico, .lmk-filter-empty__icon-wrap) {
  background: var(--sl-selected);
  color: var(--sl-primary);
  border-radius: 14px;
  box-shadow: none;
}
html[data-theme="silver"] :is(.sh-dot, .snf-ring, .snr-ring) {
  animation: none;
  box-shadow: none;
}
html[data-theme="silver"] .sh-orbit-item {
  box-shadow: var(--sl-page-shadow);
}
html[data-theme="silver"] .snf-btn-coral {
  background: var(--sl-selected);
  color: var(--sl-ink);
  box-shadow: none;
}
html[data-theme="silver"] .snf-btn-coral:hover {
  background: var(--sl-line);
  box-shadow: none;
}
html[data-theme="silver"] .sh-box:focus-within {
  border-color: var(--sl-primary);
  box-shadow: var(--sl-focus-ring);
}
html[data-theme="silver"] #filter-panel {
  border-color: var(--sl-line);
  box-shadow: none;
}
html[data-theme="silver"] .lmk-filter-header {
  background: var(--sl-panel);
}
html[data-theme="silver"] .lmk-filter-label {
  font-size: 11px;
  letter-spacing: .04em;
}
html[data-theme="silver"] :is(.sc-head, .sr-table-header) {
  background: var(--sl-panel);
  color: var(--sl-muted);
  border-color: var(--sl-line);
}
html[data-theme="silver"] :is(.sc-row:hover, .sr-row:hover, .sr-subrow:hover) {
  background: var(--sl-panel);
}
html[data-theme="silver"] .sc-row:hover :is(.sc-brand-name, .sc-chev) {
  color: var(--sl-primary);
}
html[data-theme="silver"] .lmk-filter-empty {
  background: var(--sl-panel);
}
html[data-theme="silver"] body.sr-is-selecting :is(.sr-row.sr-selected,
  .sr-subrow.sr-selected) {
  background: var(--sl-selected);
  border-left: 1px solid var(--sl-border-strong);
}
html[data-theme="silver"] .lmk-stock-pill {
  background: var(--sl-selected);
  border-color: var(--sl-border-strong);
}
html[data-theme="silver"] .lmk-flame { filter: none; }
html[data-theme="silver"] :is(.lc-delivery--stock, .lc-delivery--instock) {
  --d-color: var(--sl-primary);
  --d-color-soft: var(--sl-selected);
}
html[data-theme="silver"] .lc-cutoff-tip { box-shadow: 0 0 0 1px var(--sl-border-strong); }
html[data-theme="silver"] .lc-cutoff-ring { border-color: var(--sl-border-strong); }
html[data-theme="silver"] :is(.sr-c-article, .sr-c-name a:hover) {
  color: var(--sl-primary);
}

/* Product — preserve photo ratio, lazy-content reserves and lightbox. */
/* Gallery and details share the same grid. A sticky first-row item can keep
   moving into the full-width details row, especially with Silver's header
   offset. Keep the complete gallery in flow so every thumbnail row contributes
   to the first row's height, independently of the title/purchase column. */
html[data-theme="silver"] #pd-main .product-layout > .gallery {
  position: static;
  top: auto;
}
html[data-theme="silver"] #pd-main .gallery-thumbs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
html[data-theme="silver"] #pd-main .gallery-thumb { min-width: 0; }
@media (max-width: 720px) {
  html[data-theme="silver"] #pd-main .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
html[data-theme="silver"] :is(.gallery-main, .product-header, .buy-block,
  .details-section, .manager-cta, .su-list, .new-analogs-list) {
  border-radius: 16px;
  border-color: var(--sl-line);
  box-shadow: none;
}
html[data-theme="silver"] .gallery-main { background: var(--sl-surface); }
html[data-theme="silver"] .gallery-main:hover { box-shadow: none; }
html[data-theme="silver"] .gallery-thumb.is-active {
  border-color: var(--sl-primary);
  box-shadow: 0 0 0 2px var(--sl-selected);
}
html[data-theme="silver"] .buy-block::before,
html[data-theme="silver"] .manager-cta::after { display: none; }
html[data-theme="silver"] :is(.manager-preview, .compat-row .ico,
  .applic-brand-count, .product-code.brand) {
  background: var(--sl-selected);
  color: var(--sl-primary);
}
html[data-theme="silver"] .price-current { color: var(--sl-ink); }
html[data-theme="silver"] .details-tab.is-active {
  background: var(--sl-primary);
  box-shadow: none;
  transform: none;
}
html[data-theme="silver"] .tab-card:hover {
  border-color: var(--sl-border-strong);
  box-shadow: none;
  transform: translateY(-1px);
}
html[data-theme="silver"] :is(.pd-res-btn.primary,
  .pd-res-btn.primary:hover, .su-btn, .su-btn:hover) { box-shadow: none; }
html[data-theme="silver"] :is(.lmk-add-cart, .btn-buy):not(.is-success):not(.added):not(.in-cart) {
  background: var(--sl-primary);
  color: var(--sl-primary-ink);
  border-color: var(--sl-primary);
  box-shadow: none;
}
html[data-theme="silver"] :is(.lmk-add-cart, .btn-buy):not(.is-success):not(.added):not(.in-cart):hover {
  background: var(--sl-ink);
  box-shadow: none;
}

/* Primary actions are mapped explicitly, preserving red destructive buttons,
   green success buttons and recognizable third-party sign-in identities. */
html[data-theme="silver"] :is(.sh-btn, .sh-btn-primary, .snf-btn-primary,
  .snr-btn-violet, .ge-btn-primary, .ge-inline-btn.primary, .lmk-filter-empty__btn,
  .lmk-filter-apply-mobile button, .cx-btn-checkout, .cx-btn-order,
  .cx-btn-login, .cx-btn-cta, .ck-cta, .ap-lock-btn, .ap-save-btn,
  .ap-orders-btn, .ct-btn, .r-empty-btn, .w-buy, .ord-login-btn, .pay-btn,
  .ord-page .btn-fill, .lemark-cart .btn-checkout,
  .sc-btn-checkout, .sc-btn-pay, .sc-btn-primary,
  .rf-submit, .btn-continue, .dl-btn-primary, .gu-btn-p, .plat-submit,
  .cm-submit, .manager-cta .btn-primary, .auth .btn-primary,
  .plat .btn-primary, .hero-actions .btn-primary) {
  background: var(--sl-primary);
  color: var(--sl-primary-ink);
  border-radius: 12px;
  box-shadow: none;
}
html[data-theme="silver"] :is(.sh-btn, .sh-btn-primary, .snf-btn-primary,
  .snr-btn-violet, .ge-btn-primary, .ge-inline-btn.primary, .lmk-filter-empty__btn,
  .cx-btn-checkout, .cx-btn-order, .cx-btn-login, .cx-btn-cta, .ck-cta,
  .ap-lock-btn, .ap-save-btn, .ap-orders-btn, .ct-btn, .r-empty-btn,
  .w-buy, .ord-login-btn, .pay-btn, .ord-page .btn-fill,
  .lemark-cart .btn-checkout, .sc-btn-checkout, .sc-btn-pay, .sc-btn-primary,
  .rf-submit, .btn-continue, .dl-btn-primary,
  .gu-btn-p, .plat-submit, .cm-submit, .manager-cta .btn-primary,
  .auth .btn-primary, .plat .btn-primary, .hero-actions .btn-primary):hover {
  background: var(--sl-ink);
  box-shadow: none;
}

/* Cart and checkout. Status notices, calculated totals and selection remain
   entirely controlled by their original markup / scripts. */
html[data-theme="silver"] :is(.cx-section, .cx-summary, .cx-empty,
  .cart-summary-inner, .ck-card, .ck-sum, .ck-modal) {
  border-radius: 16px;
  border-color: var(--sl-line);
  box-shadow: none;
}
/* The old compact cart fixes its total to the viewport bottom. Silver already
   uses that space for the mobile dock; a total in the cart flow keeps both the
   order action and the legal footer accessible without stacking fixed bars. */
html[data-theme="silver"] .lemark-cart .cart-summary {
  position: static;
  padding: 20px 16px;
  box-shadow: none;
  border-top: 1px solid var(--sl-line);
  background: var(--sl-surface);
}
html[data-theme="silver"] .lemark-cart .wrap { padding-bottom: 28px; }
html[data-theme="silver"] :is(.cx-section-head, .cx-sum-head, .ck-sum-head) {
  background: var(--sl-panel);
}
html[data-theme="silver"] :is(.cx-sum-promo, .ck-pay-hint, .ck-ph-calc,
  .ck-info-soft, .ck-pay-card.active) {
  background: var(--sl-selected);
  border-color: var(--sl-line);
  box-shadow: none;
}
html[data-theme="silver"] :is(.cx-section-head, .ck-pay-hint)::before,
html[data-theme="silver"] .cx-empty::before { display: none; }
html[data-theme="silver"] :is(.cx-section-ico, .ck-card-ico) {
  background: var(--sl-selected);
  color: var(--sl-primary);
}
html[data-theme="silver"] .cx-section--used .cx-section-ico {
  background: var(--used-bg, #FBF1DD);
  color: var(--used, #A86A1F);
}
html[data-theme="silver"] .cx-section--oot .cx-section-ico {
  background: var(--warning-bg, #FEF3E2);
  color: var(--warning, #D97706);
}
html[data-theme="silver"] :is(.cx-empty-illu, .cx-empty-sparks) { filter: grayscale(1); }
html[data-theme="silver"] .ck-step.active .ck-step-num,
html[data-theme="silver"] .ck-pay-card.active .ck-pay-card-ico {
  background: var(--sl-primary);
  color: var(--sl-primary-ink);
  box-shadow: none;
  transform: none;
}
html[data-theme="silver"] :is(.ck-pay-card:hover, .ck-pvz-item:hover,
  .ck-carrier-trigger:hover, .ck-toggle-btn:hover) {
  border-color: var(--sl-border-strong);
  box-shadow: none;
}
html[data-theme="silver"] :is(.ck-pay-card.active, .ck-radio-card.active,
  .ck-pvz-item.active) { border-color: var(--sl-primary); }
html[data-theme="silver"] .ck-carrier-trigger.open {
  border-color: var(--sl-primary);
  box-shadow: var(--sl-focus-ring);
}
html[data-theme="silver"] :is(.ck-carrier-opts, .ck-pay-hint-icon) {
  box-shadow: var(--sl-page-shadow);
}

/* A manager's shared cart uses the same purchasing surfaces. Paid, used,
   outdated and payment-error indicators keep their original semantic colors. */
html[data-theme="silver"] :is(.sc-section, .sc-summary, .sc-outdated) {
  border-radius: 16px;
  border-color: var(--sl-line);
  box-shadow: none;
}
html[data-theme="silver"] .sc-section:not(.sc-section--used) .sc-section-head,
html[data-theme="silver"] .sc-sum-head { background: var(--sl-panel); }
html[data-theme="silver"] .sc-section:not(.sc-section--used) .sc-section-head::before,
html[data-theme="silver"] :is(.sc-btn-checkout, .sc-btn-pay)::before { display: none; }
html[data-theme="silver"] .sc-thumb { background: var(--sl-panel); }
html[data-theme="silver"] .sc-btn-pdf:hover {
  border-color: var(--sl-border-strong);
  box-shadow: none;
}
html[data-theme="silver"] .sc-orderbar:not(.sc-orderbar--paid) {
  background: var(--sl-surface);
  border-radius: 16px;
  box-shadow: none;
}
html[data-theme="silver"] .sc-pay-modal { border-radius: 16px; }
html[data-theme="silver"] .sc-popup { box-shadow: 0 8px 24px rgba(44,47,56,.10); }
html[data-theme="silver"] #sc-root > div > svg { stroke: var(--sl-primary); }

/* Account, authentication and returns. */
html[data-theme="silver"] .auth {
  border-radius: 16px;
  border: 1px solid var(--sl-line);
  background: var(--sl-surface);
}
html[data-theme="silver"] .auth-brand {
  background: linear-gradient(145deg, #4D5664, #252D38);
}
html[data-theme="silver"] .auth-brand::after {
  background: radial-gradient(circle, rgba(219,225,234,.18), transparent 60%);
}
html[data-theme="silver"] .auth-brand::before { opacity: .4; }
html[data-theme="silver"] .auth-brand-grid { opacity: .16; }
html[data-theme="silver"] :is(.ap-hero, .ap-card, .ct-card, .order-card,
  .detail-card, .r-card, .return-card, .w-item, .w-empty,
  .ord-modal, .return-head) {
  border-radius: 16px;
  border-color: var(--sl-line);
  box-shadow: none;
}
html[data-theme="silver"] .ap-hero::before { display: none; }
html[data-theme="silver"] .ap-avatar { background: var(--sl-metal); box-shadow: none; }
html[data-theme="silver"] :is(.ap-lock-ico, .ct-why, .selected-reason) {
  background: var(--sl-selected);
}
html[data-theme="silver"] .ct-wrap { background: var(--sl-bg); }
html[data-theme="silver"] .ap-lock-ico svg { stroke: var(--sl-primary); }
html[data-theme="silver"] .spend-card {
  background: var(--sl-metal);
  border-radius: 16px;
  box-shadow: none;
}
html[data-theme="silver"] .welcome {
  background: var(--sl-selected);
  border-color: var(--sl-line);
  box-shadow: none;
}
html[data-theme="silver"] .welcome::before,
html[data-theme="silver"] .welcome::after { display: none; }
html[data-theme="silver"] :is(.ord-tab.is-active, .r-tab.is-active,
  .sec-tab.is-active, .reason-card.is-selected) {
  border-color: var(--sl-border-strong);
  background: var(--sl-selected);
  color: var(--sl-primary);
  box-shadow: none;
}
html[data-theme="silver"] .w-tab.is-active {
  background: var(--sl-primary);
  color: var(--sl-primary-ink);
  box-shadow: none;
}
html[data-theme="silver"] :is(.w-item:hover, .order-card:hover) {
  border-color: var(--sl-border-strong);
  box-shadow: var(--sl-page-shadow);
}
html[data-theme="silver"] :is(.return-step.is-active .return-step-num,
  .reason-card.is-selected .reason-card-check) { box-shadow: none; }

/* Information, legal documents and editorial pages. No text or document
   visibility is changed; long-form reading keeps its existing width. */
html[data-theme="silver"] :is(.hero, .dl-hero, .gu-hero, .lg-hero, .plat-hero) {
  background: linear-gradient(160deg, var(--sl-surface), #E8EBEF);
}
html[data-theme="silver"] :is(.hero-deco, .dl-hero-deco, .gu-hero-deco,
  .lg-hero-deco, .plat-hero-deco) { display: none; }
html[data-theme="silver"] :is(.who-bg, .founder-bg, .dl-pack-bg,
  .dl-pickup-bg, .gu-types-bg, .gu-dept-bg, .plat-surface, .vision-bg) {
  background: var(--sl-panel);
}
html[data-theme="silver"] :is(.cat-card, .contact-item, .dl-method-card,
  .dl-carrier-card, .dl-step-card, .dl-faq-item, .gu-term, .gu-type,
  .gu-step, .gu-faq-item, .gu-req, .lg-summary, .lg-req,
  .lg-sum-card, .lg-toc, .plat-format, .plat-faq-item, .plat-lead-card,
  .post-card, .related-card, .cm-form, .article-cover) {
  border-radius: 16px;
  border-color: var(--sl-line);
  box-shadow: none;
}
html[data-theme="silver"] :is(.dl-method-card.featured,
  .plat-format.featured, .lg-toc a.is-active) {
  border-color: var(--sl-border-strong);
  background-color: var(--sl-selected);
}
html[data-theme="silver"] :is(.dl-pack-visual-main, .who-visual-main,
  .gu-dept-vis, .post-cover, .lg-summary) {
  background: var(--sl-selected);
}
html[data-theme="silver"] :is(.gu-law, .lg-law, .tab-law) {
  border: 1px solid var(--sl-line);
  border-radius: 12px;
}
html[data-theme="silver"] :is(.gu-info, .lg-info) {
  border-color: var(--sl-line);
}
html[data-theme="silver"] :is(.final-cta-card, .dl-cta, .gu-cta,
  .bottom-cta, .vision, .plat-lead-aside) {
  background: var(--sl-metal);
  border-radius: 16px;
  box-shadow: none;
}
html[data-theme="silver"] :is(.final-cta-card, .dl-cta, .gu-cta,
  .bottom-cta, .vision, .plat-lead-aside) :is(h2, h3, .grad, .dl-grad, .gu-gr) {
  color: #fff;
  -webkit-text-fill-color: currentColor;
}
html[data-theme="silver"] :is(.tag-chip.active, .pager .current) {
  background: var(--sl-primary);
  color: var(--sl-primary-ink);
  box-shadow: none;
}
html[data-theme="silver"] :is(.post-card:hover, .related-card:hover,
  .dl-carrier-card:hover, .cat-card:hover) {
  box-shadow: var(--sl-page-shadow);
  border-color: var(--sl-border-strong);
  transform: translateY(-2px);
}
html[data-theme="silver"] :is(.article-body, .lg-prose, .gu-prose) {
  color: var(--sl-ink);
  line-height: 1.75;
}
html[data-theme="silver"] :is(.article-body, .lg-prose, .gu-prose) a {
  color: var(--sl-primary);
  text-decoration-color: var(--sl-border-strong);
  text-underline-offset: .2em;
}
html[data-theme="silver"] :is(.news-title, .related-title, .post-title) {
  color: var(--sl-ink);
}

/* Consistent focus without overriding error/success validation. */
html[data-theme="silver"] :is(.lmk-search-input, .lmk-sb-search,
  .lmk-brand-search, .ml-search-row input, .ck-input, .au-input,
  .ap-input, .ct-input, .dv-input, .rf-input, .rf-select, .rf-textarea,
  .form-textarea, .plat-input, .plat-select, .cm-field-input):focus {
  border-color: var(--sl-primary);
  box-shadow: var(--sl-focus-ring);
}
html[data-theme="silver"] .au-field.is-error .au-input:focus {
  border-color: var(--au-error, #DC2626);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
html[data-theme="silver"] .au-field.is-valid:not(.is-error) .au-input:focus {
  border-color: var(--au-success, #16A34A);
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
html[data-theme="silver"] :is(.lmk-search-input, .sh-input, .ml-search-row input,
  .ck-input, .au-input, .ap-input, .ct-input, .form-textarea,
  .plat-input, .cm-field-input)::placeholder {
  color: var(--sl-muted);
  opacity: 1;
}
html[data-theme="silver"] :is(.btn-buy, .lmk-add-cart, .cx-btn-checkout,
  .lemark-cart .btn-checkout, .ck-cta, .pay-btn, .sh-btn, .ap-save-btn,
  .auth .btn-primary, .btn-continue, .rf-submit,
  .sc-btn-checkout, .sc-btn-pay, .sc-btn-primary,
  .lemark-to .cta .btn, .lemark-to .oil-cta .btn):focus-visible {
  outline: 2px solid var(--sl-primary);
  outline-offset: 3px;
  box-shadow: none;
}

/* Functional page controls use short feedback; no load-time choreography. */
html[data-theme="silver"] :is(.lmk-filter-tab, .ml-filter-tab, .sr-sort-btn,
  .details-tab, .ck-radio-card, .ck-pay-card, .ord-tab, .r-tab, .w-tab) {
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(.22,1,.36,1);
}
@media (min-width: 881px) {
  /* Silver's desktop header remains 131px high after its topline scrolls out.
     Leave breathing room above existing sticky filters and order summaries. */
  html[data-theme="silver"] :is(.lmk-sidebar, .cx-summary, .ck-sum,
    .sc-summary, .lg-toc) {
    top: 154px;
  }
  html[data-theme="silver"] #filter-panel { top: 154px; }
  html[data-theme="silver"] .sr-global-toolbar { top: 154px; }
}
@media (max-width: 880px) {
  /* The product template sets bottom:24px inline. Keep its confirmation above
     the glass dock without changing message timing or semantic colors. */
  html[data-theme="silver"] body:has(.sl-dock) #pd-toast {
    bottom: calc(156px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: calc(100vw - 48px);
  }
  html[data-theme="silver"] #filter-panel:not(.hidden) { border-radius: 0; }
  html[data-theme="silver"] :is(.sh-hero, .sh-manager) { border-radius: 16px; }
  html[data-theme="silver"] :is(.details-tab, .ord-tab, .r-tab, .w-tab,
    .ml-filter-tab, .lmk-filter-toggle, .lmk-filter-close-mobile) {
    min-height: 44px;
  }
  html[data-theme="silver"] .lmk-filter-close-mobile { min-width: 44px; }
}
@media (max-width: 560px) {
  html[data-theme="silver"] .lemark-cart .cart-summary-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  html[data-theme="silver"] .lemark-cart .cart-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
  }
  html[data-theme="silver"] .lemark-cart .btn-checkout { justify-content: center; }
  html[data-theme="silver"] .sh-h1 { font-size: 30px; }
  html[data-theme="silver"] :is(.cx-title, .lmk-h1, .brand-meta h1) { font-size: 26px; }
  html[data-theme="silver"] :is(.product-title, .ap-hero-name) { font-size: 22px; }
  html[data-theme="silver"] :is(.sh-hero, .sh-manager) { padding: 24px 20px; }
  html[data-theme="silver"] :is(.au-input, .ck-input, .ap-input, .ct-input,
    .form-textarea, .sh-input) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="silver"] :is(.sh-visual-inner, .sh-scan, .sh-orbit-item,
    .snf-ring, .snr-ring, .cx-empty-illu, .cx-empty-sparks span,
    .auth-brand::before, .auth-brand::after, .details-pane.is-active) {
    animation: none;
  }
}
