/* Graphite explorer chrome with blue reserved for interaction. Scene
   photographs, product pixels and the v8 wireless/cable layers retain
   their original rendering and motion. */

html[data-theme="dark"] .coverage-dialog,
html[data-theme="dark"] .equipment-dialog.eq-v6,
html[data-theme="dark"] .account-dialog,
html[data-theme="dark"] #product-dialog {
  color: var(--theme-text);
  background: linear-gradient(145deg, #1a2029 0%, var(--theme-surface) 45%, #0e1218 100%);
  border-color: #3a424f;
  box-shadow: 0 35px 110px #000000a6, 0 8px 30px #00000059, inset 0 1px 0 #ffffff12;
  scrollbar-color: #596372 transparent;
}

html[data-theme="dark"] .coverage-dialog::backdrop,
html[data-theme="dark"] .equipment-dialog::backdrop,
html[data-theme="dark"] .account-dialog::backdrop,
html[data-theme="dark"] #product-dialog::backdrop {
  background: #030508c4;
}

/* Opaque, layered headers stay readable while a long explorer scrolls. */
html[data-theme="dark"] .coverage-dialog .coverage-top,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-header {
  background: linear-gradient(180deg, #1d232dfc, #151a22fc);
  border-color: #343d49;
  box-shadow: inset 0 1px 0 #ffffff08;
}

html[data-theme="dark"] .coverage-dialog .coverage-close,
html[data-theme="dark"] .equipment-dialog .eq-close,
html[data-theme="dark"] .account-dialog .account-close,
html[data-theme="dark"] #product-dialog .dialog-close {
  color: var(--theme-text);
  background: var(--theme-raised);
  border-color: #414b5a;
}

html[data-theme="dark"] .coverage-dialog .coverage-close:hover,
html[data-theme="dark"] .equipment-dialog .eq-close:hover,
html[data-theme="dark"] .account-dialog .account-close:hover,
html[data-theme="dark"] #product-dialog .dialog-close:hover {
  color: #ffffff;
  background: #2a333f;
  border-color: #738092;
}

/* Coverage model, band and camera controls. Transparent in-scene selection
   targets are deliberately outside these selectors. */
html[data-theme="dark"] .coverage-dialog .coverage-top .eyebrow,
html[data-theme="dark"] .coverage-dialog .coverage-toolbar > p,
html[data-theme="dark"] .coverage-dialog .coverage-range-bar > span,
html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-view-controls > p {
  color: var(--theme-muted);
}

html[data-theme="dark"] .coverage-dialog .coverage-models,
html[data-theme="dark"] .coverage-dialog .coverage-view-controls > div {
  background: var(--theme-bg);
  border-color: var(--theme-border);
}

html[data-theme="dark"] .coverage-dialog .coverage-model-button,
html[data-theme="dark"] .coverage-dialog .coverage-view-controls button {
  color: #c4cbd6;
}

html[data-theme="dark"] .coverage-dialog .coverage-model-button:hover,
html[data-theme="dark"] .coverage-dialog .coverage-view-controls button:hover {
  color: var(--theme-text);
  background: var(--theme-raised);
}

html[data-theme="dark"] .coverage-dialog .coverage-model-button.is-active,
html[data-theme="dark"] .coverage-dialog .coverage-view-controls button[aria-pressed="true"] {
  color: #eff6ff;
  background: #1b334f;
  box-shadow: inset 0 0 0 1px #699bd94d, 0 3px 12px #00000040;
}

html[data-theme="dark"] .coverage-dialog .coverage-band-controls button,
html[data-theme="dark"] .coverage-dialog .coverage-playback button {
  color: #c4cbd6;
  background: var(--theme-raised);
  border-color: #414b5a;
}

html[data-theme="dark"] .coverage-dialog .coverage-band-controls button:hover,
html[data-theme="dark"] .coverage-dialog .coverage-playback button:hover:not(:disabled) {
  color: var(--theme-text);
  background: #252d39;
  border-color: #69798d;
}

html[data-theme="dark"] .coverage-dialog .coverage-band-controls button[aria-pressed="true"],
html[data-theme="dark"] .coverage-dialog .coverage-playback button[aria-pressed="true"] {
  color: #cbe5ff;
  background: #172d48;
  border-color: #5288c4;
}

/* Frames and metadata change with the theme; scene photos and wireless
   overlays inside them are neither dimmed nor recoloured. */
html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-map {
  background: var(--theme-bg);
}

html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-map-viewport {
  border-color: #3a424f;
  box-shadow: 0 9px 28px #00000059;
}

html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-inspector,
html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-mesh-note {
  border-color: var(--theme-border);
}

html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-detail-art {
  background: var(--theme-raised);
  border-color: var(--theme-border);
}

html[data-theme="dark"] .coverage-dialog .coverage-inspector-icon {
  color: var(--theme-accent);
  background: var(--theme-soft);
  border-color: #3d4e65;
}

html[data-theme="dark"] .coverage-dialog .coverage-inspector > .eyebrow,
html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-inspector > p:not(.eyebrow),
html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-home-state,
html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-photo-note,
html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-mesh-note p {
  color: var(--theme-muted);
}

html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-mesh-note strong {
  color: #e0e5ed;
}

html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-home-button.community-button {
  color: #c4cbd6;
  background: var(--theme-raised);
  border-color: #414b5a;
}

html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-home-button.community-button:not(.is-selected):hover {
  color: var(--theme-text);
  background: #252d39;
  border-color: #69798d;
}

html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-home-button.is-selected {
  color: #cbe5ff;
  background: #172d48;
  border-color: #5288c4;
}

html[data-theme="dark"] .coverage-dialog.coverage-v6[data-model="eap650"] .coverage-home-button.is-selected {
  color: #a1edc5;
  background: #18342c;
  border-color: #58a680;
}

html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-bottom {
  background: #10151c;
  border-color: var(--theme-border);
}

html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-bottom > p,
html[data-theme="dark"] .coverage-dialog.coverage-v6 .coverage-disclaimer {
  color: var(--theme-muted);
}

html[data-theme="dark"] .coverage-dialog .coverage-disclaimer {
  background: var(--theme-surface);
}

html[data-theme="dark"] .coverage-dialog .coverage-disclaimer a,
html[data-theme="dark"] .coverage-dialog .coverage-mesh-note a {
  color: var(--theme-accent);
}

/* Equipment scene headings, manual step selectors and product references. */
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-kicker,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-scene-heading p,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-step-copy > p:last-child,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-shot-caption,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-product-planned,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-sources,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-product-photo figcaption {
  color: var(--theme-muted);
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-scene-heading h3,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-step-copy h3,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-product-price {
  color: var(--theme-text);
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-cinema {
  background: var(--theme-bg);
  box-shadow: 0 12px 36px #00000059;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-aside,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-product-summary {
  border-color: var(--theme-border);
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-step-nav button {
  color: #c4cbd6;
  background: var(--theme-raised);
  border-color: #414b5a;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-step-nav button:hover {
  color: var(--theme-text);
  background: #252d39;
  border-color: #69798d;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-step-nav button.is-active {
  color: #cbe5ff;
  background: #172d48;
  border-color: #5288c4;
  box-shadow: inset 0 1px 0 #ffffff0a;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-variants {
  background: var(--theme-bg);
  border-color: var(--theme-border);
}

html[data-theme="dark"] .equipment-dialog .eq-variants button,
html[data-theme="dark"] .equipment-dialog .eq-components button {
  color: #c4cbd6;
}

html[data-theme="dark"] .equipment-dialog .eq-variants button:hover {
  background: var(--theme-raised);
  color: var(--theme-text);
}

html[data-theme="dark"] .equipment-dialog .eq-variants button.is-active {
  background: #1b334f;
  color: #eff6ff;
  box-shadow: inset 0 0 0 1px #699bd94d, 0 3px 12px #00000040;
}

html[data-theme="dark"] .equipment-dialog .eq-components button:hover,
html[data-theme="dark"] .equipment-dialog .eq-components button.is-active {
  color: #c0e0ff;
  border-color: var(--theme-accent);
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-box-actions button {
  color: var(--theme-accent);
  border-color: #4b719b;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-box-actions button:hover {
  color: #c0e0ff;
  border-color: #c0e0ff;
}

html[data-theme="dark"] .equipment-dialog .eq-product-stock {
  color: #98dfb6;
}

html[data-theme="dark"] .equipment-dialog .eq-product-stock.is-unavailable {
  color: #edbf9a;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-store-link {
  color: #cbe5ff;
  background: #172d48;
  border-color: #5288c4;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-store-link:hover {
  color: #ffffff;
  background: #234264;
  border-color: #a9d1ff;
}

html[data-theme="dark"] .equipment-dialog .eq-sources summary {
  color: #d5dce6;
}

html[data-theme="dark"] .equipment-dialog .eq-sources a {
  color: var(--theme-accent);
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-product-photo {
  background: radial-gradient(ellipse at 50% 25%, #343c48, #242b35 65%, #1b212b);
  box-shadow: inset 0 1px 0 #ffffff0a;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-footer {
  background: #10151c;
  border-color: var(--theme-border);
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-footer > p,
html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-note {
  color: var(--theme-muted);
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-note {
  background: var(--theme-surface);
}

html[data-theme="dark"] .equipment-dialog[data-playback="active"] #equipment-play-status {
  color: #98dfb6;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-playback button {
  color: #c4cbd6;
  background: var(--theme-raised);
  border-color: #414b5a;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-playback button:hover:not(:disabled) {
  color: var(--theme-text);
  background: #252d39;
  border-color: #69798d;
}

html[data-theme="dark"] .equipment-dialog.eq-v6 .eq-playback button[aria-pressed="true"] {
  color: #cbe5ff;
  background: #172d48;
  border-color: #5288c4;
}

/* Product details retain the original product photographs. */
html[data-theme="dark"] #product-dialog .product-dialog-image {
  background: radial-gradient(ellipse at 50% 25%, #343c48, #242b35 65%, #1b212b);
  box-shadow: inset 0 1px 0 #ffffff0a;
}

html[data-theme="dark"] #product-dialog .product-dialog-info p,
html[data-theme="dark"] #product-dialog .product-dialog-info > p:not([class]),
html[data-theme="dark"] #product-dialog .product-detail-illustration {
  color: var(--theme-muted);
}

html[data-theme="dark"] #product-dialog .product-dialog-info .product-type {
  color: var(--theme-accent);
}

html[data-theme="dark"] #product-dialog .product-dialog-info .product-dialog-price {
  color: var(--theme-text);
}

html[data-theme="dark"] #product-dialog .product-dialog-info .product-stock {
  color: #98dfb6;
}

html[data-theme="dark"] #product-dialog .product-dialog-info .product-stock.is-unavailable {
  color: #edbf9a;
}

html[data-theme="dark"] #product-dialog .product-dialog-info .product-dialog-wholesale {
  background: #1b222d;
  border-color: #3d4859;
  color: #c8d0dc;
}

html[data-theme="dark"] #product-dialog .product-dialog-unavailable {
  color: #edbf9a !important;
}

html[data-theme="dark"] #product-dialog .product-buy {
  color: #ffffff;
  background: #2d64ed;
  box-shadow: 0 5px 18px #07153666, inset 0 1px 0 #ffffff1a;
}

html[data-theme="dark"] #product-dialog .product-buy:hover {
  color: #ffffff;
  background: #3168ee;
}

/* The same login/sign-up choices are available in both themes. */
html[data-theme="dark"] .account-dialog .account-dialog-head .eyebrow,
html[data-theme="dark"] .account-dialog .account-intro,
html[data-theme="dark"] .account-dialog .account-choice p,
html[data-theme="dark"] .account-dialog .account-choice-index,
html[data-theme="dark"] .account-dialog .account-channel {
  color: var(--theme-muted);
}

html[data-theme="dark"] .account-dialog .account-mode {
  background: var(--theme-bg);
}

html[data-theme="dark"] .account-dialog .account-mode button {
  color: #c4cbd6;
}

html[data-theme="dark"] .account-dialog .account-mode button:hover {
  background: var(--theme-raised);
  color: var(--theme-text);
}

html[data-theme="dark"] .account-dialog .account-mode button[aria-selected="true"] {
  color: #eff6ff;
  background: #1b334f;
  box-shadow: inset 0 0 0 1px #699bd94d, 0 3px 12px #00000040;
}

html[data-theme="dark"] .account-dialog .account-choice {
  border-color: var(--theme-border);
}

html[data-theme="dark"] .account-dialog .account-contact {
  color: var(--theme-accent);
}

html[data-theme="dark"] .coverage-dialog button:not(.coverage-signal):focus-visible,
html[data-theme="dark"] .coverage-dialog a:focus-visible,
html[data-theme="dark"] .equipment-dialog button:focus-visible,
html[data-theme="dark"] .equipment-dialog a:focus-visible,
html[data-theme="dark"] .equipment-dialog summary:focus-visible,
html[data-theme="dark"] .account-dialog button:focus-visible,
html[data-theme="dark"] .account-dialog a:focus-visible,
html[data-theme="dark"] #product-dialog button:focus-visible,
html[data-theme="dark"] #product-dialog a:focus-visible {
  outline: 2px solid #a9d1ff;
  outline-offset: 4px;
}
