/* Theme palettes. Specificity keeps page-local defaults from overriding a choice. */
:root[data-theme][data-theme="dark"] {
    --bg-deep:#050810;
    --bg-mid:#101a2d;
    --bg-glass:rgba(16,26,45,0.96);
    --bg-input:#0a101d;
    --bg-card:rgba(16,26,45,0.96);
    --bg-card-2:#101a2d;
    --line:rgba(232,176,74,0.25);
    --line-strong:rgba(232,176,74,0.65);
    --line-soft:rgba(244,235,208,0.14);
    --line-mid:rgba(244,235,208,0.24);
    --grid:rgba(232,176,74,0.045);
    --grid-strong:rgba(232,176,74,0.09);
    --text:#f4ebd0;
    --text-bright:#f4ebd0;
    --text-muted:#bdb9a9;
    --text-dim:#b0ac9f;
    --gold:#e8b04a;
    --gold-soft:#eabc65;
    --gold-warm:#6ec3c4;
    --teal:#6ec3c4;
    --success:#83d6a3;
    --gs-primary-rgb:232,176,74;
    --gs-secondary-rgb:110,195,196;
    --gs-teal-rgb:110,195,196;
    --gs-amber-rgb:232,176,74;
    --gs-danger-rgb:253,164,175;
    --gs-danger:#fda4af;
    --gs-on-accent:#050810;
    --gs-surface:rgba(244,235,208,0.045);
    --gs-shadow:0 8px 28px rgba(5,8,16,0.6);
    --gs-shadow-lg:0 22px 70px rgba(5,8,16,0.75);
    --theme-scheme:dark;
    color-scheme:dark;
}
:root[data-theme][data-theme="light"] {
    --bg-deep:#f4f2ec;
    --bg-mid:#ffffff;
    --bg-glass:rgba(255,255,255,0.96);
    --bg-input:#f9f8f5;
    --bg-card:rgba(255,255,255,0.96);
    --bg-card-2:#ffffff;
    --line:rgba(146,96,30,0.25);
    --line-strong:rgba(146,96,30,0.65);
    --line-soft:rgba(28,28,28,0.14);
    --line-mid:rgba(28,28,28,0.24);
    --grid:rgba(146,96,30,0.045);
    --grid-strong:rgba(146,96,30,0.09);
    --text:#1c1c1c;
    --text-bright:#1c1c1c;
    --text-muted:#525252;
    --text-dim:#606060;
    --gold:#92601e;
    --gold-soft:#7a521e;
    --gold-warm:#227879;
    --teal:#227879;
    --success:#176a46;
    --gs-primary-rgb:146,96,30;
    --gs-secondary-rgb:34,120,121;
    --gs-teal-rgb:34,120,121;
    --gs-amber-rgb:146,96,30;
    --gs-danger-rgb:180,35,56;
    --gs-danger:#b42338;
    --gs-on-accent:#ffffff;
    --gs-surface:rgba(28,28,28,0.045);
    --gs-shadow:0 8px 28px rgba(244,242,236,0.2);
    --gs-shadow-lg:0 22px 70px rgba(244,242,236,0.25);
    --theme-scheme:light;
    color-scheme:light;
}
:root[data-theme][data-theme="ocean"] {
    --bg-deep:#061c2a;
    --bg-mid:#0d3042;
    --bg-glass:rgba(13,48,66,0.96);
    --bg-input:#092535;
    --bg-card:rgba(13,48,66,0.96);
    --bg-card-2:#0d3042;
    --line:rgba(104,216,238,0.25);
    --line-strong:rgba(104,216,238,0.65);
    --line-soft:rgba(226,245,252,0.14);
    --line-mid:rgba(226,245,252,0.24);
    --grid:rgba(104,216,238,0.045);
    --grid-strong:rgba(104,216,238,0.09);
    --text:#e2f5fc;
    --text-bright:#e2f5fc;
    --text-muted:#afc6cf;
    --text-dim:#a2bac4;
    --gold:#68d8ee;
    --gold-soft:#80def1;
    --gold-warm:#a8d5a2;
    --teal:#a8d5a2;
    --success:#83d6a3;
    --gs-primary-rgb:104,216,238;
    --gs-secondary-rgb:168,213,162;
    --gs-teal-rgb:168,213,162;
    --gs-amber-rgb:104,216,238;
    --gs-danger-rgb:253,164,175;
    --gs-danger:#fda4af;
    --gs-on-accent:#061c2a;
    --gs-surface:rgba(226,245,252,0.045);
    --gs-shadow:0 8px 28px rgba(6,28,42,0.6);
    --gs-shadow-lg:0 22px 70px rgba(6,28,42,0.75);
    --theme-scheme:dark;
    color-scheme:dark;
}
:root[data-theme][data-theme="forest"] {
    --bg-deep:#101f1a;
    --bg-mid:#1a342a;
    --bg-glass:rgba(26,52,42,0.96);
    --bg-input:#142821;
    --bg-card:rgba(26,52,42,0.96);
    --bg-card-2:#1a342a;
    --line:rgba(183,219,140,0.25);
    --line-strong:rgba(183,219,140,0.65);
    --line-soft:rgba(237,245,233,0.14);
    --line-mid:rgba(237,245,233,0.24);
    --grid:rgba(183,219,140,0.045);
    --grid-strong:rgba(183,219,140,0.09);
    --text:#edf5e9;
    --text-bright:#edf5e9;
    --text-muted:#bac7bb;
    --text-dim:#aebbb0;
    --gold:#b7db8c;
    --gold-soft:#c2e09f;
    --gold-warm:#e5bc87;
    --teal:#e5bc87;
    --success:#83d6a3;
    --gs-primary-rgb:183,219,140;
    --gs-secondary-rgb:229,188,135;
    --gs-teal-rgb:229,188,135;
    --gs-amber-rgb:183,219,140;
    --gs-danger-rgb:253,164,175;
    --gs-danger:#fda4af;
    --gs-on-accent:#101f1a;
    --gs-surface:rgba(237,245,233,0.045);
    --gs-shadow:0 8px 28px rgba(16,31,26,0.6);
    --gs-shadow-lg:0 22px 70px rgba(16,31,26,0.75);
    --theme-scheme:dark;
    color-scheme:dark;
}
:root[data-theme][data-theme="amethyst"] {
    --bg-deep:#1b152b;
    --bg-mid:#302441;
    --bg-glass:rgba(48,36,65,0.96);
    --bg-input:#241c35;
    --bg-card:rgba(48,36,65,0.96);
    --bg-card-2:#302441;
    --line:rgba(216,180,254,0.25);
    --line-strong:rgba(216,180,254,0.65);
    --line-soft:rgba(245,237,255,0.14);
    --line-mid:rgba(245,237,255,0.24);
    --grid:rgba(216,180,254,0.045);
    --grid-strong:rgba(216,180,254,0.09);
    --text:#f5edff;
    --text-bright:#f5edff;
    --text-muted:#c6bdd1;
    --text-dim:#bab1c6;
    --gold:#d8b4fe;
    --gold-soft:#debffe;
    --gold-warm:#f4b8cb;
    --teal:#f4b8cb;
    --success:#83d6a3;
    --gs-primary-rgb:216,180,254;
    --gs-secondary-rgb:244,184,203;
    --gs-teal-rgb:244,184,203;
    --gs-amber-rgb:216,180,254;
    --gs-danger-rgb:253,164,175;
    --gs-danger:#fda4af;
    --gs-on-accent:#1b152b;
    --gs-surface:rgba(245,237,255,0.045);
    --gs-shadow:0 8px 28px rgba(27,21,43,0.6);
    --gs-shadow-lg:0 22px 70px rgba(27,21,43,0.75);
    --theme-scheme:dark;
    color-scheme:dark;
}
:root[data-theme][data-theme="sandstone"] {
    --bg-deep:#f4ede1;
    --bg-mid:#fffcf5;
    --bg-glass:rgba(255,252,245,0.96);
    --bg-input:#f9f4ea;
    --bg-card:rgba(255,252,245,0.96);
    --bg-card-2:#fffcf5;
    --line:rgba(147,67,38,0.25);
    --line-strong:rgba(147,67,38,0.65);
    --line-soft:rgba(56,46,36,0.14);
    --line-mid:rgba(56,46,36,0.24);
    --grid:rgba(147,67,38,0.045);
    --grid-strong:rgba(147,67,38,0.09);
    --text:#382e24;
    --text-bright:#382e24;
    --text-muted:#685f56;
    --text-dim:#746c63;
    --gold:#934326;
    --gold-soft:#813f26;
    --gold-warm:#326c65;
    --teal:#326c65;
    --success:#176a46;
    --gs-primary-rgb:147,67,38;
    --gs-secondary-rgb:50,108,101;
    --gs-teal-rgb:50,108,101;
    --gs-amber-rgb:147,67,38;
    --gs-danger-rgb:180,35,56;
    --gs-danger:#b42338;
    --gs-on-accent:#fffcf5;
    --gs-surface:rgba(56,46,36,0.045);
    --gs-shadow:0 8px 28px rgba(244,237,225,0.2);
    --gs-shadow-lg:0 22px 70px rgba(244,237,225,0.25);
    --theme-scheme:light;
    color-scheme:light;
}
:root[data-theme][data-theme="glacier"] {
    --bg-deep:#edf4f9;
    --bg-mid:#ffffff;
    --bg-glass:rgba(255,255,255,0.96);
    --bg-input:#f5f9fc;
    --bg-card:rgba(255,255,255,0.96);
    --bg-card-2:#ffffff;
    --line:rgba(33,90,168,0.25);
    --line-strong:rgba(33,90,168,0.65);
    --line-soft:rgba(25,50,73,0.14);
    --line-mid:rgba(25,50,73,0.24);
    --grid:rgba(33,90,168,0.045);
    --grid-strong:rgba(33,90,168,0.09);
    --text:#193249;
    --text-bright:#193249;
    --text-muted:#506375;
    --text-dim:#5e7080;
    --gold:#215aa8;
    --gold-soft:#1f5295;
    --gold-warm:#16746e;
    --teal:#16746e;
    --success:#176a46;
    --gs-primary-rgb:33,90,168;
    --gs-secondary-rgb:22,116,110;
    --gs-teal-rgb:22,116,110;
    --gs-amber-rgb:33,90,168;
    --gs-danger-rgb:180,35,56;
    --gs-danger:#b42338;
    --gs-on-accent:#ffffff;
    --gs-surface:rgba(25,50,73,0.045);
    --gs-shadow:0 8px 28px rgba(237,244,249,0.2);
    --gs-shadow-lg:0 22px 70px rgba(237,244,249,0.25);
    --theme-scheme:light;
    color-scheme:light;
}
:root[data-theme][data-theme="blueprint"] {
    --bg-deep:#101a38;
    --bg-mid:#1a2b50;
    --bg-glass:rgba(26,43,80,0.96);
    --bg-input:#142243;
    --bg-card:rgba(26,43,80,0.96);
    --bg-card-2:#1a2b50;
    --line:rgba(211,239,126,0.25);
    --line-strong:rgba(211,239,126,0.65);
    --line-soft:rgba(234,240,255,0.14);
    --line-mid:rgba(234,240,255,0.24);
    --grid:rgba(211,239,126,0.045);
    --grid-strong:rgba(211,239,126,0.09);
    --text:#eaf0ff;
    --text-bright:#eaf0ff;
    --text-muted:#b8c1d5;
    --text-dim:#acb5ca;
    --gold:#d3ef7e;
    --gold-soft:#d8ef98;
    --gold-warm:#80d4ed;
    --teal:#80d4ed;
    --success:#83d6a3;
    --gs-primary-rgb:211,239,126;
    --gs-secondary-rgb:128,212,237;
    --gs-teal-rgb:128,212,237;
    --gs-amber-rgb:211,239,126;
    --gs-danger-rgb:253,164,175;
    --gs-danger:#fda4af;
    --gs-on-accent:#101a38;
    --gs-surface:rgba(234,240,255,0.045);
    --gs-shadow:0 8px 28px rgba(16,26,56,0.6);
    --gs-shadow-lg:0 22px 70px rgba(16,26,56,0.75);
    --theme-scheme:dark;
    color-scheme:dark;
}

:root[data-theme] {
    --gs-bg:var(--bg-deep);--gs-bg-2:var(--bg-mid);--gs-glass:var(--bg-glass);--gs-glass-strong:var(--bg-mid);--gs-glass-hover:var(--bg-card-2);--gs-input:var(--bg-input);
    --gs-border:var(--line-soft);--gs-border-strong:var(--line-strong);--gs-divider:var(--line-soft);--gs-primary:var(--gold);--gs-secondary:var(--gold-warm);--gs-teal:var(--teal);--gs-amber:var(--gold-soft);--gs-success:var(--success);--gs-warning:var(--gold);
    --gs-text:var(--text);--gs-text-strong:var(--text-bright);--gs-muted:var(--text-muted);--gs-dim:var(--text-dim);
    --mb-bg-primary:var(--bg-deep);--mb-bg-secondary:var(--bg-mid);--mb-bg-tertiary:var(--bg-card-2);--mb-accent:var(--gold);--mb-text-primary:var(--text);--mb-text-secondary:var(--text-muted);--mb-border:var(--line-mid);
    accent-color:var(--gold);
}
.gs-theme-picker {box-sizing:border-box;width:min(940px,94vw);max-height:90dvh;padding:28px;border:1px solid var(--line-mid);border-radius:20px;background:var(--bg-mid);color:var(--text);box-shadow:var(--gs-shadow-lg);font-family:Inter,system-ui,sans-serif;overflow:auto;}
.gs-theme-picker::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(7px);}
.gs-theme-picker *{box-sizing:border-box;}
.gs-theme-picker header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px;}
.gs-theme-eyebrow{font-size:10px;letter-spacing:.18em;color:var(--gold);font-weight:700;}
.gs-theme-picker h2{font-size:30px;letter-spacing:-.035em;line-height:1.2;margin:8px 0;color:var(--text-bright);font-weight:650;}
.gs-theme-picker p{font-size:13px;line-height:1.6;color:var(--text-muted);margin:0;}
.gs-theme-picker button{font:inherit;cursor:pointer;}
.gs-theme-picker header>button{border:1px solid var(--line-mid);background:transparent;color:var(--text);border-radius:50%;width:32px;height:32px;flex-shrink:0;font-size:22px;line-height:1;}
.gs-theme-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.gs-theme-card{display:flex;flex-direction:column;text-align:left;border:1px solid var(--line-mid);background:var(--bg-input);color:var(--text);border-radius:12px;padding:8px;position:relative;transition:transform .15s,border-color .15s;}
.gs-theme-card:hover{transform:translateY(-2px);border-color:var(--gold);}
.gs-theme-card[aria-checked=true]{outline:2px solid var(--gold);outline-offset:2px;border-color:transparent;}
.gs-theme-mini{display:block;position:relative;height:96px;width:100%;border-radius:7px;overflow:hidden;background:var(--sw-bg);border:1px solid color-mix(in srgb,var(--sw-text) 20%,transparent);}
.gs-theme-mini svg{position:absolute;inset:0;width:100%;height:100%;fill:none;}
.gs-theme-mini .theme-land{fill:var(--sw-surface);}
.gs-theme-mini .theme-contours{stroke:var(--sw-secondary);stroke-width:1;opacity:.4;fill:none;}
.gs-theme-mini .theme-route{stroke:var(--sw-accent);stroke-width:2;stroke-linejoin:round;fill:none;}
.gs-theme-mini circle{fill:var(--sw-accent);stroke:var(--sw-bg);stroke-width:2;}
.theme-mini-nav{position:absolute;left:8px;top:7px;right:8px;height:12px;background:var(--sw-surface);border-radius:3px;display:flex;align-items:center;gap:3px;padding:4px;box-shadow:0 1px 3px #0003;}
.theme-mini-nav i{display:block;height:3px;width:12px;background:var(--sw-text);opacity:.4;}.theme-mini-nav i:first-child{background:var(--sw-accent);opacity:1;}
.theme-mini-panel{position:absolute;left:8px;top:26px;width:42px;height:55px;background:var(--sw-surface);border-radius:3px;padding:7px 5px;box-shadow:0 2px 5px #0002;}
.theme-mini-panel i{display:block;height:3px;margin-bottom:7px;background:var(--sw-text);opacity:.35;}.theme-mini-panel i:first-child{background:var(--sw-accent);opacity:1;}
.gs-theme-card-title{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:13px;font-weight:650;margin:11px 3px 5px;}
.gs-theme-card-title small{font-size:8px;letter-spacing:.08em;font-weight:500;color:var(--text-dim);}
.gs-theme-card-desc{font-size:11px;line-height:1.5;color:var(--text-muted);margin:0 3px;min-height:34px;}
.gs-theme-swatches{display:flex;gap:4px;margin:10px 3px 4px;}.gs-theme-swatches i{width:13px;height:13px;border-radius:50%;border:1px solid var(--line-mid);background:var(--sw-bg);}.gs-theme-swatches i:nth-child(2){background:var(--sw-surface);}.gs-theme-swatches i:nth-child(3){background:var(--sw-accent);}.gs-theme-swatches i:nth-child(4){background:var(--sw-secondary);}
.gs-theme-system{grid-column:1/-1;display:flex;align-items:center;gap:12px;padding:14px;border:1px dashed var(--line-mid);border-radius:10px;background:var(--bg-input);color:var(--text);text-align:left;}
.gs-theme-system>span{font-size:26px;color:var(--gold);}.gs-theme-system strong{font-size:13px;}.gs-theme-system small{font-size:12px;color:var(--text-muted);}.gs-theme-system[aria-checked=true]{outline:2px solid var(--gold);outline-offset:2px;}
.gs-theme-picker footer{display:flex;gap:10px;align-items:center;border-top:1px solid var(--line-soft);margin-top:22px;padding-top:18px;}
.gs-theme-picker footer span{font-size:11px;line-height:1.5;color:var(--text-muted);margin-right:auto;}
.gs-theme-picker footer button{border:1px solid var(--line-mid);border-radius:8px;background:transparent;color:var(--text);padding:10px 16px;font-size:12px;white-space:nowrap;}
.gs-theme-picker footer .gs-theme-apply{border-color:var(--gold);background:var(--gold);color:var(--gs-on-accent);font-weight:650;}
.gs-theme-picker :focus-visible{outline:3px solid var(--gold);outline-offset:3px;}
@media(max-width:720px){.gs-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.gs-theme-picker{padding:20px;}.gs-theme-system{flex-wrap:wrap;}.gs-theme-system small{flex-basis:100%;}.gs-theme-picker h2{font-size:25px;}}
@media(max-width:400px){.gs-theme-picker{padding:14px;width:96vw;}.gs-theme-card-title{font-size:12px;}.gs-theme-card-title small{display:none;}.gs-theme-picker footer{flex-wrap:wrap;}.gs-theme-picker footer span{flex-basis:100%;}}
@media(prefers-reduced-motion:reduce){.gs-theme-card{transition:none;}.gs-theme-card:hover{transform:none;}}

/* Keep confirmation controls visible while the palette grid scrolls. */
.gs-theme-picker[open]{display:flex;flex-direction:column;}
.gs-theme-picker header{flex-shrink:0;padding:0;border:0;background:transparent;}
.gs-theme-picker header>button{padding:0;display:grid;place-items:center;}
.gs-theme-grid{min-height:0;overflow:auto;padding:4px;margin:-4px;}
.gs-theme-picker footer{flex-shrink:0;}

/* Atlas appearance selector. The legend stays neutral while the map previews each palette. */
.gs-theme-picker{--legend-bg:#101a2d;--legend-text:#f4ebd0;--legend-muted:#b8b5a5;--legend-line:#ffffff26;--legend-accent:#e8b04a;width:min(1420px,96vw);height:min(810px,94dvh);max-height:94dvh;padding:8px;border:1px solid #777a7f;border-radius:0;background:#171f2b;color:var(--legend-text);overflow:hidden;box-shadow:0 24px 100px #000b;font-family:Inter,system-ui,sans-serif;}
.gs-theme-picker[open]{display:grid;grid-template-columns:54% 46%;}
.gs-theme-picker:not([open]){display:none;}
.gs-theme-picker::backdrop{background:linear-gradient(#090b0bc9,#090b0be6),repeating-linear-gradient(0deg,transparent 0 59px,#ffffff10 59px 60px),repeating-linear-gradient(90deg,transparent 0 59px,#ffffff10 59px 60px);backdrop-filter:blur(8px);}
.gs-theme-picker::after{content:'';position:absolute;inset:3px;pointer-events:none;background:linear-gradient(var(--legend-accent),var(--legend-accent)) left top/28px 2px no-repeat,linear-gradient(var(--legend-accent),var(--legend-accent)) left top/2px 28px no-repeat,linear-gradient(var(--legend-accent),var(--legend-accent)) right top/28px 2px no-repeat,linear-gradient(var(--legend-accent),var(--legend-accent)) right top/2px 28px no-repeat,linear-gradient(var(--legend-accent),var(--legend-accent)) left bottom/28px 2px no-repeat,linear-gradient(var(--legend-accent),var(--legend-accent)) left bottom/2px 28px no-repeat,linear-gradient(var(--legend-accent),var(--legend-accent)) right bottom/28px 2px no-repeat,linear-gradient(var(--legend-accent),var(--legend-accent)) right bottom/2px 28px no-repeat;}
.gs-theme-atlas{min-width:0;min-height:0;padding:18px;background:linear-gradient(#ffffff05 1px,transparent 1px),linear-gradient(90deg,#ffffff05 1px,transparent 1px);background-size:80px 80px;}
.gs-atlas-map{height:100%;position:relative;overflow:hidden;border:1px solid #ffffff38;background:var(--atlas-ground);color:var(--atlas-ink);}
.gs-atlas-map::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 79px,color-mix(in srgb,var(--atlas-ink) 6%,transparent) 79px 80px),repeating-linear-gradient(90deg,transparent 0 79px,color-mix(in srgb,var(--atlas-ink) 6%,transparent) 79px 80px);}
.gs-atlas-brand{position:absolute;top:23px;left:18px;z-index:1;font:700 13px/1.5 Consolas,monospace;letter-spacing:.12em;color:var(--atlas-accent);}.gs-atlas-brand small{display:block;font-size:11px;letter-spacing:.1em;color:var(--atlas-ink);opacity:.68;}
.gs-atlas-compass{position:absolute;right:20px;top:18px;z-index:1;display:grid;justify-items:center;gap:6px;font:700 11px Consolas,monospace;color:var(--atlas-ink);}.gs-atlas-compass svg{width:28px;height:42px;stroke:var(--atlas-ink);stroke-width:1;fill:var(--atlas-ground);}.gs-atlas-compass path+path{fill:var(--atlas-accent);}
.gs-atlas-scale{position:absolute;right:20px;top:100px;z-index:1;width:120px;text-align:right;font:700 10px/2 Consolas,monospace;letter-spacing:.12em;opacity:.7;}.gs-atlas-scale i{display:block;height:8px;border:1px solid currentColor;background:linear-gradient(90deg,currentColor 50%,transparent 50%);}
.gs-atlas-terrain{position:absolute;inset:0;width:100%;height:100%;fill:none;}.atlas-land{fill:var(--atlas-surface);stroke:var(--atlas-ink);stroke-opacity:.35;}.atlas-contours{stroke:var(--atlas-detail);stroke-width:1.2;opacity:.55;}.atlas-route{stroke:var(--atlas-accent);stroke-width:3.5;}.atlas-dotted{stroke:var(--atlas-ink);stroke-width:2;stroke-dasharray:2 7;opacity:.3;}.atlas-stations rect{fill:var(--atlas-ground);stroke:var(--atlas-accent);stroke-width:2.5;}.atlas-pin{fill:var(--atlas-accent);}.atlas-halo{stroke:var(--atlas-accent);stroke-width:2;opacity:.25;}.atlas-coordinates{font:700 11px Consolas,monospace;letter-spacing:1px;fill:var(--atlas-ink);opacity:.7;}
.gs-atlas-caption{position:absolute;left:18px;right:18px;bottom:114px;z-index:2;display:flex;align-items:flex-end;gap:25px;padding-top:70px;background:linear-gradient(transparent,color-mix(in srgb,var(--atlas-ground) 92%,transparent));}
.gs-atlas-number{font:normal clamp(68px,7vw,124px)/.8 Georgia,serif;letter-spacing:-.07em;color:var(--atlas-accent);}
.gs-atlas-plate{font:700 11px/1.5 Consolas,monospace;color:var(--atlas-accent);letter-spacing:.16em;}
.gs-theme-picker .gs-atlas-caption h3{font:italic 500 clamp(34px,4vw,62px)/1.1 Georgia,serif;letter-spacing:-.03em;margin:3px 0 6px;color:var(--atlas-ink);}
.gs-theme-picker .gs-atlas-caption p{font:14px/1.45 Inter,system-ui,sans-serif;color:var(--atlas-ink);opacity:.78;}
.gs-atlas-colors{position:absolute;bottom:22px;left:18px;right:18px;z-index:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid color-mix(in srgb,var(--atlas-ink) 25%,transparent);background:var(--atlas-ground);}
.gs-atlas-colors>div{min-width:0;padding:10px 12px;border-right:1px solid color-mix(in srgb,var(--atlas-ink) 25%,transparent);}.gs-atlas-colors>div:last-child{border:0;}.gs-atlas-colors i{display:block;height:17px;border:1px solid color-mix(in srgb,var(--atlas-ink) 25%,transparent);margin-bottom:7px;}.gs-atlas-colors span{display:block;font:10px/1.6 Consolas,monospace;text-transform:uppercase;letter-spacing:.08em;opacity:.65;}.gs-atlas-colors strong{font:700 12px/1.5 Consolas,monospace;letter-spacing:.03em;}
.gs-theme-legend{display:flex;flex-direction:column;min-height:0;min-width:0;background:var(--legend-bg);border:1px solid #ffffff38;}
.gs-theme-picker .gs-theme-legend>header{position:relative;display:block;flex:none;padding:36px 36px 27px;margin:0;border-bottom:1px solid var(--legend-line);}
.gs-theme-picker .gs-theme-eyebrow{display:block;font:700 11px/1.5 Consolas,monospace;letter-spacing:.18em;color:var(--legend-accent);}.gs-theme-eyebrow::before{content:'';display:inline-block;width:23px;height:3px;margin-right:12px;vertical-align:middle;background:var(--legend-accent);}
.gs-theme-picker h2{font:600 clamp(28px,2.4vw,40px)/1.15 Georgia,serif;letter-spacing:-.025em;margin:12px 24px 10px 0;color:var(--legend-text);}.gs-theme-picker h2 em{font-weight:500;color:var(--legend-accent);}
.gs-theme-picker .gs-theme-legend>header p{font:14px/1.65 Inter,system-ui,sans-serif;color:var(--legend-muted);}
.gs-theme-picker .gs-theme-legend>header>button{position:absolute;top:38px;right:36px;width:44px;height:44px;border:1px solid var(--legend-line);border-radius:0;background:transparent;color:var(--legend-text);font:30px/1 system-ui;padding:0;display:grid;place-items:center;}
.gs-theme-filters{display:flex;gap:30px;padding:0 36px;border-bottom:1px solid var(--legend-line);flex:none;height:53px;}
.gs-theme-filters button{position:relative;border:0;padding:0;background:none;color:var(--legend-muted);font:700 11px Consolas,monospace;letter-spacing:.14em;}.gs-theme-filters sup{font-size:9px;margin-left:2px;}.gs-theme-filters button[aria-pressed=true]{color:var(--legend-text);}.gs-theme-filters button[aria-pressed=true]::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--legend-accent);}
.gs-theme-picker .gs-theme-grid{display:block;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0;margin:0;scrollbar-width:thin;scrollbar-color:#66707c transparent;}
.gs-theme-picker .gs-theme-card{display:flex;flex-direction:row;align-items:center;gap:18px;min-height:84px;width:100%;padding:16px 28px 16px 32px;margin:0;border:0;border-bottom:1px solid var(--legend-line);border-left:3px solid transparent;border-radius:0;background:transparent;color:var(--legend-text);text-align:left;outline:0;transform:none;transition:background .15s;}
.gs-theme-picker .gs-theme-card[hidden]{display:none;}.gs-theme-picker .gs-theme-card:hover{transform:none;background:#ffffff08;}.gs-theme-picker .gs-theme-card[aria-checked=true]{outline:0;border-left-color:var(--legend-accent);background:#e8b04a19;}
.gs-theme-row-number{flex:none;width:34px;font:12px Consolas,monospace;color:var(--legend-muted);}.gs-theme-card[aria-checked=true] .gs-theme-row-number{color:var(--legend-accent);}
.gs-theme-picker .gs-theme-swatches{display:flex;gap:0;margin:0;width:80px;height:48px;flex:none;border:1px solid #ffffff38;}.gs-theme-picker .gs-theme-swatches i{flex:1;width:auto;height:auto;min-width:0;border:0;border-radius:0;}
.gs-theme-row-copy{flex:1;min-width:0;}.gs-theme-picker .gs-theme-card-title{display:flex;align-items:baseline;justify-content:flex-start;gap:12px;margin:0 0 5px;font:600 22px/1.1 Georgia,serif;color:var(--legend-text);}.gs-theme-picker .gs-theme-card-title small{display:block;font:700 9px Consolas,monospace;letter-spacing:.1em;color:var(--legend-muted);}
.gs-theme-picker .gs-theme-card-desc{display:block;min-height:0;margin:0;font:13px/1.4 Inter,system-ui,sans-serif;color:var(--legend-muted);}
.gs-theme-check{display:grid;place-items:center;flex:none;width:22px;height:22px;border:1px solid #ffffff38;color:transparent;font:bold 15px system-ui;}.gs-theme-card[aria-checked=true] .gs-theme-check{background:var(--legend-accent);border-color:var(--legend-accent);color:#101a2d;}
.gs-theme-picker .gs-theme-system{display:flex;flex:none;gap:9px;margin:0;border:0;border-top:1px solid var(--legend-line);border-radius:0;padding:10px 36px;background:none;color:var(--legend-text);font:11px/1.4 Consolas,monospace;}.gs-theme-system input{accent-color:var(--legend-accent);margin:0;}.gs-theme-picker .gs-theme-system>span{font:10px Consolas,monospace;color:var(--legend-muted);margin-left:auto;}
.gs-theme-picker .gs-theme-legend>footer{display:flex;flex:none;align-items:stretch;gap:0;height:66px;padding:0;margin:0;border-top:1px solid var(--legend-line);}
.gs-theme-picker footer>span{display:flex;align-items:center;gap:10px;padding:0 24px;font:10px Consolas,monospace;letter-spacing:.07em;color:var(--legend-muted);margin-right:auto;}.gs-theme-picker kbd{padding:4px 6px;border:1px solid var(--legend-line);font:inherit;}
.gs-theme-picker footer button{padding:0 26px;border:0;border-left:1px solid var(--legend-line);border-radius:0;color:var(--legend-text);font:700 11px Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;}
.gs-theme-picker footer .gs-theme-apply{background:var(--legend-accent);border-color:var(--legend-accent);color:#101a2d;}.gs-theme-apply b{font:25px system-ui;margin-left:25px;vertical-align:middle;}
.gs-theme-picker :focus-visible,.gs-theme-picker .gs-theme-card:focus-visible{outline:2px solid var(--legend-accent);outline-offset:-4px;}
@media(max-width:1000px){.gs-theme-picker[open]{grid-template-columns:48% 52%;}.gs-theme-picker .gs-theme-legend>header{padding:25px 22px 20px;}.gs-theme-picker .gs-theme-legend>header>button{top:22px;right:20px;width:34px;height:34px;}.gs-theme-filters{padding:0 22px;}.gs-theme-picker .gs-theme-card{gap:12px;padding:14px 16px;}.gs-theme-row-number{width:20px;}.gs-theme-picker .gs-theme-swatches{width:60px;height:42px;}.gs-atlas-caption{gap:16px;}.gs-atlas-number{font-size:78px;}.gs-atlas-colors>div{padding:8px 6px;}.gs-atlas-colors strong{font-size:10px;}.gs-theme-picker footer>span{padding:0 14px;}.gs-theme-picker footer button{padding:0 18px;}.gs-theme-apply b{margin-left:12px;}}
@media(max-width:700px){.gs-theme-picker{width:96vw;height:94dvh;padding:6px;}.gs-theme-picker[open]{grid-template-columns:1fr;grid-template-rows:180px minmax(0,1fr);}.gs-theme-atlas{padding:8px;}.gs-atlas-brand{top:12px;left:12px;font-size:10px;}.gs-atlas-brand small{font-size:8px;}.gs-atlas-compass,.gs-atlas-scale,.gs-atlas-colors,.gs-atlas-number{display:none;}.gs-atlas-caption{left:12px;right:12px;bottom:10px;padding-top:30px;}.gs-theme-picker .gs-atlas-caption h3{font-size:32px;margin:2px 0;}.gs-theme-picker .gs-atlas-caption p{font-size:11px;}.gs-atlas-plate{font-size:9px;}.gs-theme-picker .gs-theme-legend>header{padding:18px 20px 14px;}.gs-theme-picker h2{font-size:29px;margin:9px 30px 7px 0;}.gs-theme-picker .gs-theme-legend>header p{font-size:12px;}.gs-theme-break{display:none;}.gs-theme-eyebrow{font-size:9px!important;}.gs-theme-filters{height:42px;padding:0 20px;}.gs-theme-picker .gs-theme-card{min-height:74px;padding:12px 16px;gap:12px;}.gs-theme-picker .gs-theme-card-title{font-size:20px;}.gs-theme-picker .gs-theme-card-desc{font-size:11px;}.gs-theme-picker .gs-theme-legend>footer{height:55px;flex-wrap:nowrap;}.gs-theme-picker footer>span{flex-basis:auto;font-size:9px;padding:0 12px;gap:5px;}.gs-theme-picker footer button{font-size:10px;padding:0 14px;}.gs-theme-picker .gs-theme-system{padding:9px 20px;}.gs-theme-picker .gs-theme-system>span{font-size:9px;}}
@media(max-height:650px) and (min-width:701px){.gs-theme-picker .gs-theme-legend>header{padding-top:18px;padding-bottom:16px;}.gs-theme-picker h2{font-size:30px;}.gs-theme-picker .gs-theme-legend>header>button{top:18px;}.gs-theme-picker .gs-theme-card{min-height:72px;padding-top:12px;padding-bottom:12px;}}

/* Explicit centering survives page-level universal margin resets. */
.gs-theme-picker{position:fixed;inset:0;margin:auto;width:min(1180px,94vw);height:min(700px,90dvh);max-width:calc(100vw - 24px);max-height:90dvh;transform:none;}
.gs-theme-picker .gs-theme-legend>header{padding:26px 28px 20px;}
.gs-theme-picker h2{font-size:30px;margin-top:10px;margin-bottom:8px;}
.gs-theme-picker .gs-theme-legend>header p{font-size:12px;line-height:1.55;}
.gs-theme-picker .gs-theme-legend>header>button{top:24px;right:24px;width:32px;height:32px;font-size:23px;}
.gs-theme-picker .gs-theme-eyebrow{font-size:10px;}
.gs-theme-filters{height:44px;padding:0 28px;gap:26px;}
.gs-theme-picker .gs-theme-card{min-height:70px;gap:14px;padding:12px 22px;}
.gs-theme-picker .gs-theme-card-title{font-size:19px;gap:10px;margin-bottom:4px;}
.gs-theme-picker .gs-theme-card-desc{font-size:12px;}
.gs-theme-picker .gs-theme-swatches{width:66px;height:40px;}
.gs-theme-row-number{width:25px;font-size:11px;}.gs-theme-check{width:19px;height:19px;font-size:13px;}
.gs-theme-picker .gs-atlas-caption h3{font-size:48px;}.gs-atlas-number{font-size:92px;}.gs-theme-picker .gs-atlas-caption p{font-size:12px;}
.gs-atlas-brand{font-size:11px;}.gs-atlas-brand small{font-size:10px;}
.gs-theme-picker .gs-theme-legend>footer{height:58px;align-items:center;padding:8px 14px;gap:8px;}
.gs-theme-picker footer>span{padding:0;gap:7px;font-size:9px;}
.gs-theme-picker footer button{height:36px;padding:0 15px;border:1px solid var(--legend-line);font-size:10px;letter-spacing:.07em;flex:none;}
.gs-theme-picker footer .gs-theme-apply{min-width:130px;}.gs-theme-apply b{font-size:20px;margin-left:14px;}
.gs-theme-picker .gs-theme-system{padding:9px 28px;font-size:10px;}
@media(max-width:1000px){.gs-theme-picker .gs-theme-legend>header{padding:22px 20px 16px;}.gs-theme-picker h2{font-size:27px;}.gs-theme-picker .gs-theme-card{padding:12px 14px;gap:10px;}.gs-theme-picker .gs-theme-card-title{font-size:18px;}.gs-theme-picker .gs-theme-card-desc{font-size:11px;}.gs-theme-row-number{width:18px;}.gs-theme-picker .gs-theme-swatches{width:52px;}.gs-theme-picker .gs-atlas-caption h3{font-size:38px;}.gs-atlas-number{font-size:70px;}.gs-theme-picker footer .gs-theme-apply{min-width:115px;}}
@media(max-width:700px){.gs-theme-picker{height:92dvh;max-height:92dvh;}.gs-theme-picker[open]{grid-template-rows:150px minmax(0,1fr);}.gs-theme-picker .gs-theme-legend>header{padding:16px 18px 12px;}.gs-theme-picker h2{font-size:26px;margin-right:36px;}.gs-theme-picker .gs-theme-legend>header>button{top:18px;right:16px;}.gs-theme-picker .gs-atlas-caption h3{font-size:29px;}.gs-theme-picker .gs-atlas-caption p{font-size:10px;}.gs-theme-picker .gs-theme-card{min-height:66px;}.gs-theme-filters{height:40px;padding:0 18px;}.gs-theme-picker footer button{height:34px;padding:0 10px;font-size:9px;}.gs-theme-picker footer .gs-theme-apply{min-width:106px;}.gs-theme-picker .gs-theme-system{padding:9px 18px;}.gs-theme-apply b{margin-left:8px;font-size:18px;}}
@media(max-height:600px){.gs-theme-picker .gs-theme-legend>header p{display:none;}.gs-theme-picker .gs-theme-legend>header{padding-top:14px;padding-bottom:12px;}.gs-theme-picker h2{font-size:25px;}.gs-theme-picker .gs-theme-legend>header>button{top:14px;}.gs-theme-picker[open]{max-height:94dvh;}.gs-theme-picker .gs-theme-legend>footer{height:50px;}.gs-theme-atlas{padding:10px;}}

:root[data-theme]{--mb-text:var(--text);--mb-text-muted:var(--text-muted);--mb-accent-hover:var(--gold-soft);--mb-danger:var(--gs-danger);--mb-success:var(--success);--mb-warning:var(--gold);}
:root[data-theme] .mb-toolbar,:root[data-theme] .mb-sidepane,:root[data-theme] .mb-footer{background:var(--bg-glass);color:var(--text);border-color:var(--line-mid);}
:root[data-theme] .esri-widget,:root[data-theme] .esri-widget--button{background-color:var(--bg-mid);color:var(--text);}
