.theme-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid #507387;border-radius:8px;padding:8px 10px;background:transparent;color:inherit;font-size:12px;white-space:nowrap}.theme-toggle:hover{border-color:#8ce1ff}.theme-toggle [aria-hidden]{font-size:17px;line-height:1}
:root[data-theme="dark"]{color-scheme:dark;--ink:#e5edf4;--muted:#a4b4c2;--paper:#101b27;--white:#172432;--line:#304354;--accent:#51b7e8;--dark:#07131e;--gold:#ffd56d}
:root[data-theme="dark"] body{background:#101b27;color:#e5edf4}
:root[data-theme="dark"] .announcement{background:#0b1d2a}
:root[data-theme="dark"] .hero{background:#132331;color:#edf5fb}
:root[data-theme="dark"] .hero:after{border-color:#264050;box-shadow:0 0 0 75px #1a2b3880,0 0 0 150px #1a2b3860}
:root[data-theme="dark"] .hero .eyebrow,:root[data-theme="dark"] .showcase-intro,:root[data-theme="dark"] .showcase-footer,:root[data-theme="dark"] .hero-footnote{color:#a9c6d4}
:root[data-theme="dark"] .hero-copy>p:not(.eyebrow){color:#bdcbd4}
:root[data-theme="dark"] .hero h1 em{color:#70c9ec}
:root[data-theme="dark"] .hero-piece,:root[data-theme="dark"] .hero-piece-label{background:#1b2a38;color:#e9f3f7}
:root[data-theme="dark"] .hero-piece-image,:root[data-theme="dark"] .product-media,:root[data-theme="dark"] .detail-gallery,:root[data-theme="dark"] .detail-image-button,:root[data-theme="dark"] .image-dialog{background:#172635}
:root[data-theme="dark"] .benefit-strip,:root[data-theme="dark"] .product-card,:root[data-theme="dark"] .choose-button,:root[data-theme="dark"] .secondary-button,:root[data-theme="dark"] .drawer-bottom,:root[data-theme="dark"] .registration-dialog,:root[data-theme="dark"] .product-dialog,:root[data-theme="dark"] .detail-thumbnails button{background:#172432;color:#e5edf4}
:root[data-theme="dark"] .benefit-strip{border-color:#304354}
:root[data-theme="dark"] .catalog-section{background:#101b27}
:root[data-theme="dark"] .product-card,:root[data-theme="dark"] .product-bottom,:root[data-theme="dark"] .product-specs,:root[data-theme="dark"] .product-specs>div,:root[data-theme="dark"] .cart-line,:root[data-theme="dark"] .drawer-bottom,:root[data-theme="dark"] .detail-thumbnails button{border-color:#34495a}
:root[data-theme="dark"] input:not([type=checkbox]),:root[data-theme="dark"] select,:root[data-theme="dark"] textarea{background:#0c1721;color:#e5edf4;border-color:#405366}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#91a3b2}
:root[data-theme="dark"] .choose-button{border-color:#547184;color:#e5edf4}
:root[data-theme="dark"] .choose-button:hover{background:#087fbd;color:#fff}
:root[data-theme="dark"] .secondary-button,:root[data-theme="dark"] .dialog-close,:root[data-theme="dark"] .quantity button{border-color:#466174;background:#1c3040;color:#e5edf4}
:root[data-theme="dark"] .mobile-navigation{background:#101b27;border-color:#304354;color:#e5edf4}
:root[data-theme="dark"] .media-label,:root[data-theme="dark"] .zoom-hint{background:#0d1b28eF;color:#e5edf4}
:root[data-theme="dark"] .product-detail-layout,:root[data-theme="dark"] .review-dialog{background:#172432}
:root[data-theme="dark"] .account-dialog,:root[data-theme="dark"] .custom-dialog,:root[data-theme="dark"] .kits-dialog,:root[data-theme="dark"] .orders-dialog{background:#172432;color:#e5edf4}
:root[data-theme="dark"] .account-panel input[readonly],:root[data-theme="dark"] .account-address,:root[data-theme="dark"] .account-payment-note,:root[data-theme="dark"] .account-password button,:root[data-theme="dark"] .account-actions,:root[data-theme="dark"] .registration-footer,:root[data-theme="dark"] .review-footer{background:#1c2d3b;color:#e5edf4}
:root[data-theme="dark"] .account-address,:root[data-theme="dark"] .account-password,:root[data-theme="dark"] .account-panel input:not([type=checkbox]),:root[data-theme="dark"] .account-panel select{border-color:#405668}
:root[data-theme="dark"] .account-panel input[readonly]{color:#c2d0d9}
:root[data-theme="dark"] .catalog-action,:root[data-theme="dark"] .catalog-action:nth-child(2),:root[data-theme="dark"] .choice-chip,:root[data-theme="dark"] .upload-zone,:root[data-theme="dark"] .attachment-row,:root[data-theme="dark"] .order-card,:root[data-theme="dark"] .order-conditions,:root[data-theme="dark"] .notification-row,:root[data-theme="dark"] .receiving-options .check-label,:root[data-theme="dark"] .order-disclosure{background:#1b2a38;color:#e5edf4;border-color:#3b5061}
:root[data-theme="dark"] .catalog-action small,:root[data-theme="dark"] .choice-chip,:root[data-theme="dark"] .order-timeline li{color:#afc0cc}
:root[data-theme="dark"] .catalog-action:nth-child(2),:root[data-theme="dark"] .cart-notice,:root[data-theme="dark"] .product-highlight{background:#4b3c18;color:#ffe39a;border-color:#78652c}
:root[data-theme="dark"] .kit-row:has(input[type=checkbox]:checked),:root[data-theme="dark"] .receiving-options .check-label:has(input:checked){background:#19374a;color:#e5edf4}
:root[data-theme="dark"] .attachment-type,:root[data-theme="dark"] .repeat-detail-note,:root[data-theme="dark"] .status-pill{background:#24394a;color:#d3e5ef}
:root[data-theme="dark"] .status-pill[data-status=awaiting_payment]{background:#4b3c18;color:#ffe39a}
:root[data-theme="dark"] .status-pill[data-status=queued],:root[data-theme="dark"] .status-pill[data-status=in_production]{background:#183b53;color:#a9dcff}
:root[data-theme="dark"] .status-pill[data-status=ready],:root[data-theme="dark"] .status-pill[data-status=completed]{background:#173d32;color:#a8e6c5}

/* Product details: keep every control legible against the dark dialog. */
:root[data-theme="dark"] .detail-dialog-bar{
  background:#0d1b27;
  color:#b8cfdb;
  border-color:#304b5c;
}
:root[data-theme="dark"] .product-dialog .detail-content,
:root[data-theme="dark"] .product-dialog .detail-buy,
:root[data-theme="dark"] .product-dialog[data-mode="edit"] .detail-buy{
  background:#172432;
  color:#edf5f9;
  border-color:#3b5263;
}
:root[data-theme="dark"] .product-dialog .detail-buy{
  box-shadow:0 -10px 25px #050d1480;
}
:root[data-theme="dark"] .product-dialog .small-note,
:root[data-theme="dark"] #detail-color-note{
  color:#b9ccd7;
}
:root[data-theme="dark"] .color-choice{
  background:#101c28;
  color:#e7f0f5;
  border-color:#486071;
}
:root[data-theme="dark"] .color-choice:hover{
  background:#1d3343;
  border-color:#73c6e7;
}
:root[data-theme="dark"] .color-choice[aria-pressed="true"]{
  background:#153b52;
  color:#fff;
  border-color:#69c9ef;
  box-shadow:inset 0 0 0 1px #69c9ef;
}
:root[data-theme="dark"] .color-choice:focus-visible{
  outline:3px solid #ffd56d;
  outline-offset:2px;
}
:root[data-theme="dark"] .filament-selected{
  background:#153749;
  color:#d9f0fb;
  border-color:#59bce3;
}
:root[data-theme="dark"] .detail-buy>label,
:root[data-theme="dark"] .detail-sticky-summary strong,
:root[data-theme="dark"] .detail-sticky-summary span{
  color:#edf5f9;
}

/* Keep the closing sections readable when the storefront uses the dark theme. */
:root[data-theme="dark"] .purchase-band{
  background:#132735;
  color:#edf5f9;
}
:root[data-theme="dark"] .purchase-band .section-kicker{
  color:#72c9e7;
}
:root[data-theme="dark"] .purchase-band .steps li{
  border-color:#3b5667;
}
:root[data-theme="dark"] .purchase-band .steps li>span{
  color:#ffd56d;
}
:root[data-theme="dark"] .purchase-band .steps h3{
  color:#f3f8fb;
}
:root[data-theme="dark"] .purchase-band .steps p{
  color:#b9ccd7;
}
:root[data-theme="dark"] .help-section{
  background:#101b27;
  color:#e5edf4;
}
:root[data-theme="dark"] .help-section .section-kicker{
  color:#72c9e7;
}
:root[data-theme="dark"] .help-section h2,
:root[data-theme="dark"] .help-questions summary{
  color:#f0f6fa;
}
:root[data-theme="dark"] .help-questions details{
  border-color:#304354;
}
:root[data-theme="dark"] .help-questions p{
  color:#b2c3ce;
}
:root[data-theme="dark"] .help-contact-links .section-link{
  border-color:#3e5d70;
  background:#182c3a;
  color:#dcebf2;
}
:root[data-theme="dark"] .help-contact-links .section-link:hover{
  border-color:#6fc9e8;
  background:#1d3545;
  color:#fff;
}
@media(max-width:760px){.theme-toggle{padding:7px 8px}.theme-toggle-label{display:none}.site-header .header-actions{gap:12px}}
@media(max-width:430px){.site-header .header-actions{gap:8px}.site-header .registration-trigger{padding:7px 8px;font-size:11px}}
@media(prefers-reduced-motion:no-preference){:root[data-theme] body,:root[data-theme] .product-card,:root[data-theme] .theme-toggle{transition:background-color .18s ease,color .18s ease,border-color .18s ease}}
