:root[data-theme="royal-purple"]{--bg:#190c2d;--gold:#e4bf6c;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#190c2d);--surface:color-mix(in srgb,#190c2d 88%,#e4bf6c);--line:color-mix(in srgb,#e4bf6c 28%,#190c2d);--primary:#e4bf6c;--primary-text:#17130e;--hero-base:#481683;--theme-glow:#481683;--weather-bg:linear-gradient(120deg,#481683,#2c0d52,#190c2d);--hero-accent:#e4bf6c;color-scheme:dark}
:root[data-theme="cinema"]{--bg:#220b17;--gold:#fdbe57;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#220b17);--surface:color-mix(in srgb,#220b17 88%,#fdbe57);--line:color-mix(in srgb,#fdbe57 28%,#220b17);--primary:#fdbe57;--primary-text:#17130e;--hero-base:#0055a3;--theme-glow:#0055a3;--weather-bg:linear-gradient(120deg,#0055a3,#00386c,#7b003e);--hero-accent:#fdbe57;color-scheme:dark}
:root[data-theme="royal-lions"]{--bg:#180d2a;--gold:#e8bf62;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#180d2a);--surface:color-mix(in srgb,#180d2a 88%,#e8bf62);--line:color-mix(in srgb,#e8bf62 28%,#180d2a);--primary:#e8bf62;--primary-text:#17130e;--hero-base:#482077;--theme-glow:#482077;--weather-bg:linear-gradient(120deg,#482077,#651736,#111d3c);--hero-accent:#e8bf62;color-scheme:dark}
:root[data-theme="devils"]{--bg:#09271f;--gold:#e5c16b;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#09271f);--surface:color-mix(in srgb,#09271f 88%,#e5c16b);--line:color-mix(in srgb,#e5c16b 28%,#09271f);--primary:#c00d44;--primary-text:#ffffff;--hero-base:#285d50;--theme-glow:#285d50;--weather-bg:linear-gradient(120deg,#285d50,#143c2e,#c00d44);--hero-accent:#e5c16b;color-scheme:dark}
:root[data-theme="midnight"]{--bg:#0b1020;--gold:#8daeff;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#0b1020);--surface:color-mix(in srgb,#0b1020 88%,#8daeff);--line:color-mix(in srgb,#8daeff 28%,#0b1020);--primary:#8daeff;--primary-text:#17130e;--hero-base:#0b1020;--theme-glow:#0b1020;--weather-bg:linear-gradient(120deg,#0b1020,#0b1020,#0b1020);--hero-accent:#8daeff;color-scheme:dark}
:root[data-theme="forest"]{--bg:#101c19;--gold:#8dd9ad;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#101c19);--surface:color-mix(in srgb,#101c19 88%,#8dd9ad);--line:color-mix(in srgb,#8dd9ad 28%,#101c19);--primary:#8dd9ad;--primary-text:#17130e;--hero-base:#101c19;--theme-glow:#101c19;--weather-bg:linear-gradient(120deg,#101c19,#101c19,#101c19);--hero-accent:#8dd9ad;color-scheme:dark}
:root[data-theme="rose"]{--bg:#23131c;--gold:#f4a0bf;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#23131c);--surface:color-mix(in srgb,#23131c 88%,#f4a0bf);--line:color-mix(in srgb,#f4a0bf 28%,#23131c);--primary:#f4a0bf;--primary-text:#17130e;--hero-base:#23131c;--theme-glow:#23131c;--weather-bg:linear-gradient(120deg,#23131c,#23131c,#23131c);--hero-accent:#f4a0bf;color-scheme:dark}
:root[data-theme="ocean"]{--bg:#0b1d29;--gold:#78d5eb;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#0b1d29);--surface:color-mix(in srgb,#0b1d29 88%,#78d5eb);--line:color-mix(in srgb,#78d5eb 28%,#0b1d29);--primary:#78d5eb;--primary-text:#17130e;--hero-base:#0b1d29;--theme-glow:#0b1d29;--weather-bg:linear-gradient(120deg,#0b1d29,#0b1d29,#0b1d29);--hero-accent:#78d5eb;color-scheme:dark}
:root[data-theme="plum"]{--bg:#21142e;--gold:#c7a1ef;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#21142e);--surface:color-mix(in srgb,#21142e 88%,#c7a1ef);--line:color-mix(in srgb,#c7a1ef 28%,#21142e);--primary:#c7a1ef;--primary-text:#17130e;--hero-base:#21142e;--theme-glow:#21142e;--weather-bg:linear-gradient(120deg,#21142e,#21142e,#21142e);--hero-accent:#c7a1ef;color-scheme:dark}
:root[data-theme="ember"]{--bg:#241613;--gold:#f3a879;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#241613);--surface:color-mix(in srgb,#241613 88%,#f3a879);--line:color-mix(in srgb,#f3a879 28%,#241613);--primary:#f3a879;--primary-text:#17130e;--hero-base:#241613;--theme-glow:#241613;--weather-bg:linear-gradient(120deg,#241613,#241613,#241613);--hero-accent:#f3a879;color-scheme:dark}
:root[data-theme="slate"]{--bg:#171e25;--gold:#b4c6d6;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#171e25);--surface:color-mix(in srgb,#171e25 88%,#b4c6d6);--line:color-mix(in srgb,#b4c6d6 28%,#171e25);--primary:#b4c6d6;--primary-text:#17130e;--hero-base:#171e25;--theme-glow:#171e25;--weather-bg:linear-gradient(120deg,#171e25,#171e25,#171e25);--hero-accent:#b4c6d6;color-scheme:dark}
:root[data-theme="mint"]{--bg:#10201e;--gold:#91e0c8;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#10201e);--surface:color-mix(in srgb,#10201e 88%,#91e0c8);--line:color-mix(in srgb,#91e0c8 28%,#10201e);--primary:#91e0c8;--primary-text:#17130e;--hero-base:#10201e;--theme-glow:#10201e;--weather-bg:linear-gradient(120deg,#10201e,#10201e,#10201e);--hero-accent:#91e0c8;color-scheme:dark}
:root[data-theme="cherry"]{--bg:#241319;--gold:#ff9aab;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#241319);--surface:color-mix(in srgb,#241319 88%,#ff9aab);--line:color-mix(in srgb,#ff9aab 28%,#241319);--primary:#ff9aab;--primary-text:#17130e;--hero-base:#241319;--theme-glow:#241319;--weather-bg:linear-gradient(120deg,#241319,#241319,#241319);--hero-accent:#ff9aab;color-scheme:dark}
:root[data-theme="sand"]{--bg:#241f18;--gold:#e5c795;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#241f18);--surface:color-mix(in srgb,#241f18 88%,#e5c795);--line:color-mix(in srgb,#e5c795 28%,#241f18);--primary:#e5c795;--primary-text:#17130e;--hero-base:#241f18;--theme-glow:#241f18;--weather-bg:linear-gradient(120deg,#241f18,#241f18,#241f18);--hero-accent:#e5c795;color-scheme:dark}
:root[data-theme="lavender"]{--bg:#1c192b;--gold:#c7bcff;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#1c192b);--surface:color-mix(in srgb,#1c192b 88%,#c7bcff);--line:color-mix(in srgb,#c7bcff 28%,#1c192b);--primary:#c7bcff;--primary-text:#17130e;--hero-base:#1c192b;--theme-glow:#1c192b;--weather-bg:linear-gradient(120deg,#1c192b,#1c192b,#1c192b);--hero-accent:#c7bcff;color-scheme:dark}
:root[data-theme="teal"]{--bg:#102125;--gold:#75d5ce;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#102125);--surface:color-mix(in srgb,#102125 88%,#75d5ce);--line:color-mix(in srgb,#75d5ce 28%,#102125);--primary:#75d5ce;--primary-text:#17130e;--hero-base:#102125;--theme-glow:#102125;--weather-bg:linear-gradient(120deg,#102125,#102125,#102125);--hero-accent:#75d5ce;color-scheme:dark}
:root[data-theme="cobalt"]{--bg:#101a2d;--gold:#83b5ff;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#101a2d);--surface:color-mix(in srgb,#101a2d 88%,#83b5ff);--line:color-mix(in srgb,#83b5ff 28%,#101a2d);--primary:#83b5ff;--primary-text:#17130e;--hero-base:#101a2d;--theme-glow:#101a2d;--weather-bg:linear-gradient(120deg,#101a2d,#101a2d,#101a2d);--hero-accent:#83b5ff;color-scheme:dark}
:root[data-theme="gold"]{--bg:#211e12;--gold:#ebd17c;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#211e12);--surface:color-mix(in srgb,#211e12 88%,#ebd17c);--line:color-mix(in srgb,#ebd17c 28%,#211e12);--primary:#ebd17c;--primary-text:#17130e;--hero-base:#211e12;--theme-glow:#211e12;--weather-bg:linear-gradient(120deg,#211e12,#211e12,#211e12);--hero-accent:#ebd17c;color-scheme:dark}
:root[data-theme="berry"]{--bg:#25132a;--gold:#ea9ee1;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#25132a);--surface:color-mix(in srgb,#25132a 88%,#ea9ee1);--line:color-mix(in srgb,#ea9ee1 28%,#25132a);--primary:#ea9ee1;--primary-text:#17130e;--hero-base:#25132a;--theme-glow:#25132a;--weather-bg:linear-gradient(120deg,#25132a,#25132a,#25132a);--hero-accent:#ea9ee1;color-scheme:dark}
:root[data-theme="mono"]{--bg:#151515;--gold:#dddddd;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#151515);--surface:color-mix(in srgb,#151515 88%,#dddddd);--line:color-mix(in srgb,#dddddd 28%,#151515);--primary:#dddddd;--primary-text:#17130e;--hero-base:#151515;--theme-glow:#151515;--weather-bg:linear-gradient(120deg,#151515,#151515,#151515);--hero-accent:#dddddd;color-scheme:dark}
:root[data-theme="daylight"]{--bg:#f5f2eb;--gold:#9a3e0d;--text:#292723;--muted:color-mix(in srgb,#292723 74%,#f5f2eb);--surface:color-mix(in srgb,#f5f2eb 88%,#9a3e0d);--line:color-mix(in srgb,#9a3e0d 28%,#f5f2eb);--primary:#9a3e0d;--primary-text:#ffffff;--hero-base:#f5f2eb;--theme-glow:#f5f2eb;--weather-bg:linear-gradient(120deg,#f5f2eb,#f5f2eb,#f5f2eb);--hero-accent:#f0d28d;color-scheme:light}
:root[data-theme="neon-pink"]{--bg:#18091e;--gold:#ff55c8;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#18091e);--surface:color-mix(in srgb,#18091e 88%,#ff55c8);--line:color-mix(in srgb,#ff55c8 28%,#18091e);--primary:#ff55c8;--primary-text:#17130e;--hero-base:#18091e;--theme-glow:#18091e;--weather-bg:linear-gradient(120deg,#18091e,#18091e,#18091e);--hero-accent:#ff55c8;color-scheme:dark}
:root[data-theme="broncos"]{--bg:#260913;--gold:#f8c45a;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#260913);--surface:color-mix(in srgb,#260913 88%,#f8c45a);--line:color-mix(in srgb,#f8c45a 28%,#260913);--primary:#f8c45a;--primary-text:#17130e;--hero-base:#7b0039;--theme-glow:#7b0039;--weather-bg:linear-gradient(120deg,#7b0039,#3c0c22,#260913);--hero-accent:#f8c45a;color-scheme:dark}
:root[data-theme="brisbane-heat"]{--bg:#061c21;--gold:#43e0db;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#061c21);--surface:color-mix(in srgb,#061c21 88%,#43e0db);--line:color-mix(in srgb,#43e0db 28%,#061c21);--primary:#43e0db;--primary-text:#17130e;--hero-base:#007f8a;--theme-glow:#007f8a;--weather-bg:linear-gradient(120deg,#007f8a,#063d49,#071b24);--hero-accent:#43e0db;color-scheme:dark}
:root[data-theme="jackjumpers"]{--bg:#0b1e18;--gold:#f4d44f;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#0b1e18);--surface:color-mix(in srgb,#0b1e18 88%,#f4d44f);--line:color-mix(in srgb,#f4d44f 28%,#0b1e18);--primary:#f4d44f;--primary-text:#17130e;--hero-base:#256546;--theme-glow:#256546;--weather-bg:linear-gradient(120deg,#256546,#143a2b,#1c301c);--hero-accent:#f4d44f;color-scheme:dark}
:root[data-theme="jewels"]{--bg:#bcd8c8;--gold:#174d3a;--text:#123c30;--muted:color-mix(in srgb,#123c30 74%,#bcd8c8);--surface:color-mix(in srgb,#bcd8c8 88%,#174d3a);--line:color-mix(in srgb,#174d3a 28%,#bcd8c8);--primary:#174d3a;--primary-text:#17130e;--hero-base:#dcebe0;--theme-glow:#dcebe0;--weather-bg:linear-gradient(120deg,#dcebe0,#a4cbb5,#174d3a);--hero-accent:#f0d28d;color-scheme:light}
:root[data-theme="mighty-ducks"]{--bg:#211320;--gold:#8fcfc5;--text:#f4edf9;--muted:color-mix(in srgb,#f4edf9 74%,#211320);--surface:color-mix(in srgb,#211320 88%,#8fcfc5);--line:color-mix(in srgb,#8fcfc5 28%,#211320);--primary:#00685e;--primary-text:#ffffff;--hero-base:#4b2a45;--theme-glow:#4b2a45;--weather-bg:linear-gradient(120deg,#4b2a45,#00685e,#00483f);--hero-accent:#8fcfc5;color-scheme:dark}
body{background:radial-gradient(ellipse at 10% 0,color-mix(in srgb,var(--theme-glow,#481683) 35%,transparent),transparent 55%),var(--bg);color:var(--text)}
nav{color:var(--muted)}nav a:hover{color:var(--gold)}
.hero{border-color:var(--line)}
.hero-shade{background:linear-gradient(90deg,color-mix(in srgb,var(--hero-base,#2c0d52) 92%,#120b20) 0%,color-mix(in srgb,var(--hero-base,#2c0d52) 65%,transparent) 36%,transparent 78%),linear-gradient(0deg,#100b20c9,transparent 45%)}
.hero-content,.photo-caption,.hero-date{color:#fff6ff}
.hero h1 em{color:var(--hero-accent,#f0d28d)}
.primary{background:var(--primary,var(--gold));color:var(--primary-text,#29123f)}.primary:hover{background:color-mix(in srgb,var(--primary,var(--gold)) 86%,white)}
:root[data-theme=jewels] .hero-shade,:root[data-theme=daylight] .hero-shade{background:linear-gradient(90deg,#14251fe8,#14251f70,transparent),linear-gradient(0deg,#101a24bb,transparent 50%)}
:root[data-theme] .app-card{background:var(--surface);border-color:var(--line)}
:root[data-theme] .app-card .tile-body{background:var(--surface)}
.tile-body p{color:var(--muted)}.tile-action{color:var(--gold)}.open-icon{border-color:var(--line);color:var(--gold)}
.weather{background:var(--weather-bg);border-color:var(--line)}.weather-message,.current-description,.current-extra,.forecast-day h3,.forecast-rain,.forecast-temp span{color:var(--muted)}
.current-main small{color:var(--text)}.weather-symbol{stroke:var(--gold)}.weather-footer,.footer-brand small,footer{color:var(--muted)}.weather-footer{border-color:var(--line)}.weather-footer a{color:var(--gold)}
.current-weather{border-color:var(--line)}.forecast-day:first-child{background:color-mix(in srgb,var(--text) 5%,transparent)}
select,button{background:var(--surface);color:var(--text);border-color:var(--line)}
.footer-brand{color:var(--text)}
:root[data-theme=devils] .hero,:root[data-theme=devils] .weather{border-color:#c00d44;box-shadow:inset 0 3px #ffc94f}
:root[data-theme=devils] .hero-shade{background:linear-gradient(105deg,#143c2ef0,#143c2e88 45%,#83102f44 75%,#c00d4440),linear-gradient(0deg,#100b20bb,transparent 45%)}
:root[data-theme=mighty-ducks] .hero,:root[data-theme=mighty-ducks] .weather{border-color:#c4ced4;box-shadow:inset 0 3px #ffffff}
:root[data-theme=jewels] .weather,:root[data-theme=daylight] .weather{background:var(--surface)}
.theme-toggle{display:inline-flex;width:auto;height:auto;min-height:40px;gap:8px;padding:8px 11px;font-size:11px;white-space:nowrap}
.theme-toggle svg{width:16px;height:16px;stroke:var(--gold);fill:none}
.theme-dialog{width:min(720px,calc(100% - 28px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--bg);color:var(--text);padding:25px}
.theme-dialog::backdrop{background:#08030bd4;backdrop-filter:blur(5px)}
.theme-dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:15px}
.theme-dialog h2{font-family:'Playfair Display',Georgia,serif;font-weight:500;font-size:30px;margin:0}
.theme-dialog .eyebrow{margin-bottom:8px}.theme-dialog-intro{color:var(--muted);font-size:12px;line-height:1.7;margin:13px 0 23px}
.theme-close{width:auto;min-width:42px;height:42px;flex-shrink:0;font-size:24px}
.theme-group-heading{font-size:11px;color:var(--muted);font-weight:500;letter-spacing:1.3px;text-transform:uppercase;margin:23px 0 11px}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.theme-option{display:flex;align-items:center;justify-content:start;gap:10px;width:100%;height:auto;min-height:60px;padding:12px 10px;text-align:left;font-size:11px;line-height:1.5}
.theme-option[aria-pressed=true]{border:2px solid var(--gold);padding:11px 9px}
.theme-swatch{width:24px;height:24px;flex-shrink:0;display:block;border-radius:50%;border:1px solid #ffffff88;background:var(--swatch)}
.theme-check{margin-left:auto;flex-shrink:0;width:12px;opacity:0;color:var(--gold)}.theme-option[aria-pressed=true] .theme-check{opacity:1}
.theme-option-name{overflow-wrap:anywhere}.theme-note{font-size:10px;color:var(--muted);line-height:1.7;margin:22px 0 0}
@media(max-width:620px){nav{align-items:center;gap:10px 14px}.theme-toggle{font-size:10px;padding:7px 9px;min-height:36px}.theme-dialog{padding:21px 17px}.theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.theme-option{font-size:10px;padding:11px 8px}.theme-option[aria-pressed=true]{padding:10px 7px}.theme-dialog h2{font-size:27px}}
:root[data-theme=jewels]{--primary:#faaf3c;--primary-text:#123c30}

/* V7: consistent, browser-independent theme picker */
.theme-dialog[hidden]{display:none!important}
.theme-dialog:not([hidden]){display:block;position:fixed;inset:0;margin:auto;z-index:10001;box-sizing:border-box;width:min(720px,calc(100vw - 28px));height:max-content;max-height:min(85dvh,720px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 0 0 100vmax rgba(8,3,11,.84),0 22px 70px #0009;-webkit-overflow-scrolling:touch}
body.theme-picker-open{overflow:hidden}
@media(max-width:620px){.theme-dialog:not([hidden]){inset:auto 0 0 0;width:100%;max-height:88dvh;margin:0;border-radius:18px 18px 0 0;padding-bottom:max(22px,env(safe-area-inset-bottom))}}
