/* AEMAZON v161: device preference only; photos, videos, QR and maps are never inverted. */
:root { color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
 :root {
  --aem-ui-surface:#000000;--aem-ui-text-warm:#ffb58d;--aem-ui-text-red:#ffb4ab;--aem-ui-text-green:#8fd5af;--aem-ui-text-blue:#a5c9ff;--aem-ui-text-purple:#d0baff; --aem-ui-panel:#000000; --aem-ui-line:#3b414a;
  --aem-ui-ink:#e9ecf1; --aem-ui-muted:#aab2be; --aem-ui-faint:#8993a2;
  --aem-ui-warm:#34251f; --aem-ui-red:#382426; --aem-ui-green:#21342c;
  --aem-ui-blue:#202f42; --aem-ui-purple:#30273d;
 }
 html,body { background-color:#000000; color:#e9ecf1; }
 input,textarea,select,button { color-scheme:dark; }
 input::placeholder,textarea::placeholder { color:#8993a2; }
 dialog { background-color:#000000; color:#e9ecf1; }
 /* Scanner/exported tickets and map raster tiles keep their original content colors. */
}

/* v162: older installed apps draw the hamburger with fixed black CSS shadows.
   Keep all three strokes visible even when their injector runs after this file. */
@media (prefers-color-scheme: dark) {
 html.aemazon-ios-unified-header header#globalTopbar #mobileToggle::after,
 html.aemazon-app-unified-header header#globalTopbar #mobileToggle::after {
  background-color:var(--aem-ui-ink,#e9ecf1) !important;
  box-shadow:0 -5.5px 0 var(--aem-ui-ink,#e9ecf1),0 5.5px 0 var(--aem-ui-ink,#e9ecf1) !important;
 }
}

/* v163: identical true-black canvas/card fills, including standalone pages. */
@media (prefers-color-scheme: dark) {
 html,body { background-color:#000000 !important; }
}
