/* SRE Light Surface V1
   Shared customer-facing surface contract. Loaded last so legacy dark themes cannot
   repaint the retail experience. Functional media canvases/dialogs may remain dark. */
:root{
  color-scheme:light;
  --sre-bg:#fff;
  --sre-surface:#fff;
  --sre-surface-2:#f7f8f9;
  --sre-surface-3:#f1f3f4;
  --sre-line:#d9dee2;
  --sre-line-soft:#e7eaec;
  --sre-text:#17191b;
  --sre-muted:#616b72;
  --sre-muted-2:#78838b;
  --sre-blue:#1769aa;
  --sre-red:#a72a32;
}

html,body{background:#fff!important;color:var(--sre-text)!important;color-scheme:light!important}
body{min-height:100vh}
a{color:inherit}

/* Shared SRE navigation and page shells */
.sre-global-header,.store-header,.hub-header,.dealer-header{
  background:#fff!important;
  color:var(--sre-text)!important;
  border-color:var(--sre-line)!important;
  box-shadow:0 1px 0 rgba(20,28,34,.03)!important;
}
.sre-global-brand,.center-card h2,.section-head h1{color:var(--sre-text)!important}
.sre-global-mark{background:#202428!important;color:#fff!important}
.sre-global-brand-copy small,.dealer-brand small{color:var(--sre-muted)!important}
.sre-global-links a{color:#414b52!important}
.sre-global-links a:hover,.sre-global-links a.active{color:#111!important;border-bottom-color:#222!important}
.sre-global-search input,.sre-global-search button,.sre-global-quote{
  background:#fff!important;color:var(--sre-text)!important;border-color:#c9d0d4!important;
}
.sre-global-search input::placeholder{color:#818b92!important}
.sre-global-search button{background:#f4f6f7!important}
.sre-global-quote span{background:#313a41!important;color:#fff!important}
.prototype{background:#f4f2eb!important;border-color:#ded9ce!important;color:#665f53!important}

main,.directory,.resource-shell,.tv-shell,.manufacturer-shell,.shop-shell,.detail-shell,.unified-shell{
  background:#fff!important;color:var(--sre-text)!important;
}

/* Legacy comfort-theme surfaces */
.product-card,.unified-card,.product-main,.lifecycle-card,.content-section,.related-card,.resource-card,.center-card,
.browse-drawer,.resource-filter-drawer,.quote-drawer,.browse-head,.replacement-result{
  background:#fff!important;color:var(--sre-text)!important;border-color:var(--sre-line)!important;box-shadow:none!important;
}
.product-card:hover,.unified-card:hover,.center-card:hover,.center-card:focus-visible,.resource-card:hover{
  border-color:#aeb7bd!important;box-shadow:0 6px 18px rgba(20,28,34,.06)!important;
}
.crumbs,.detail-name,.product-name,.unified-name,.product-specline,.unified-meta,.related-card small,
.fit-row span,.replacement-result small,.resource-card .meta,.resource-empty,.quote-empty,.card-category,.family-tag{
  color:var(--sre-muted)!important;
}
.detail-family,.family,.unified-brand,.resource-card .type,.resource-stack a,.video-mini a{color:var(--sre-blue)!important}
.product-specline,.unified-meta,.fit-row,.resource-stack a,.content-head,.filter-section,.quote-head,.quote-item,.quote-foot{
  border-color:var(--sre-line-soft)!important;
}
.browse-toggle,.filter-btn,.resource-filter-toggle,.resource-clear,.resource-types button,.filter-row button{
  background:#fff!important;color:#374149!important;border-color:#cbd2d6!important;
}
.filter-btn.active,.resource-types button.active,.filter-row button.active{
  background:#252b30!important;color:#fff!important;border-color:#252b30!important;
}
.unified-filter{color:#3d474e!important}.unified-filter:hover{background:#f5f7f8!important}.unified-filter.active{color:#111!important}
.unified-resources span,.task-line span,.family-tag{background:#f4f6f7!important;color:#58636b!important;border-color:#d7dde1!important}
.resource-filter-drawer select,.replacement-form input{background:#fff!important;color:var(--sre-text)!important;border-color:#cbd2d6!important}
.quote-head button{color:var(--sre-text)!important}.quote-item small{color:var(--sre-muted)!important}.quote-foot a{background:#252b30!important;color:#fff!important}
.manufacturer-logo-fallback{background:#f5f6f7!important;color:#30383e!important;border-color:#d8dde0!important}
footer{border-color:var(--sre-line)!important;color:var(--sre-muted)!important}

/* Factory / manufacturer reference centers */
.hero,
body[data-factory-brand="atosa"] .hero,
body[data-factory-brand="traulsen"] .hero,
body[data-factory-brand="hoshizaki"] .hero{
  background:#f7f8f9!important;color:var(--sre-text)!important;border-bottom:1px solid var(--sre-line)!important;
}
.hero:after{display:none!important}
.brand-signature-wordmark,.hero h1{color:var(--factory-primary,var(--sre-text))!important}
.brand-signature-descriptor,.hero .eyebrow{color:#59646c!important}
.hero p,.hero-side span{color:#515d65!important}
.hero-side b{color:var(--sre-text)!important}
.btn.secondary{background:#fff!important;color:var(--factory-primary,var(--sre-text))!important;border-color:#aeb8bf!important}
.action-card,.family-card,.video-card,.video-empty,.resource-row,.reference-family-detail,.reference-family-resource-list li{
  background:#fff!important;color:var(--sre-text)!important;border-color:#d7dde1!important;
}
.dealer-handoff{
  background:#f7f8f9!important;color:var(--sre-text)!important;border:1px solid #dce1e4!important;
  border-top:5px solid var(--factory-accent)!important;
}
.dealer-handoff p{color:#5f6970!important}
.dealer-handoff a{background:#fff!important;color:var(--sre-text)!important;border-color:#c5cdd2!important}
.dealer-handoff a:last-child,.dealer-handoff .actions [data-dealer-contact]{background:var(--factory-accent)!important;color:#fff!important;border-color:var(--factory-accent)!important}

/* Resource finder */
.resource-title-row h1,.resource-result-context,.resource-model-main a,.resource-general-title{color:var(--sre-text)!important}
.resource-browse,.resource-result-tools,.resource-refine,.resource-table-head,.resource-model-row,.resource-general h2,.resource-general-row,.resource-refine-note{
  border-color:var(--sre-line-soft)!important;
}
.resource-browse-group{border-color:var(--sre-line-soft)!important}
.resource-browse-group h2,.resource-refine label,.resource-table-head,.resource-brand,.resource-category,.resource-model-name,.resource-general-brand,.resource-empty,.resource-refine-note{
  color:var(--sre-muted)!important;
}
.resource-browse-list button{color:#303940!important}.resource-browse-list button:hover,.resource-browse-list button:focus-visible{color:#111!important}
.resource-refine select{background:#fff!important;color:var(--sre-text)!important;border-color:#cbd2d6!important}
.resource-model-row:hover{background:#f8f9fa!important}
.resource-doc-link,.resource-general-open,.resource-reset{color:#1769aa!important}
.resource-general-type{color:#365f83!important}

/* SRE TV: light chrome, intentionally dark playback canvas. */
.tv-stage,.tv-queue-panel{background:#fff!important;color:var(--sre-text)!important;border-color:var(--sre-line)!important}
.tv-playlist-picker{color:var(--sre-muted)!important}.tv-playlist-picker select{background:#fff!important;color:var(--sre-text)!important;border-color:#cbd2d6!important}
.tv-now,.tv-queue-head,.tv-row,.tv-status{border-color:var(--sre-line-soft)!important}
.tv-now span,.tv-row-meta,.tv-status,.tv-empty,.tv-row-index{color:var(--sre-muted)!important}
.tv-controls button{background:#f4f6f7!important;color:#303940!important;border-color:#cbd2d6!important}
.tv-controls #tvStart{background:#252b30!important;color:#fff!important;border-color:#252b30!important}
.tv-queue-head input{background:#fff!important;color:var(--sre-text)!important;border-color:#cbd2d6!important}
.tv-row{background:#fff!important;color:var(--sre-text)!important}.tv-row:hover,.tv-row:focus-visible{background:#f6f8f9!important}.tv-row.active{background:#eef2f4!important}
.tv-player-frame{background:#090b0d!important}

/* Functional dark media stays dark. */
.video-frame,.product-gallery-video,.product-gallery-dialog,.product-gallery-dialog-inner,.product-gallery-dialog-media{
  color-scheme:dark;
}
.video-frame{background:#111!important}
.product-gallery-dialog,.product-gallery-dialog-inner,.product-gallery-dialog-media{background:#111!important;color:#fff!important}
