/* Original is intentionally untouched: removing data-theme restores each page's original CSS. */
:root[data-theme="ice"]{--theme-bg:#080f20;--theme-panel:#14223c;--theme-soft:#0d1a30;--theme-text:#eaf6ff;--theme-muted:#b4c9df;--theme-accent:#43e6f5;--theme-on-accent:#052129;--theme-border:#31516c;--theme-danger:#ffacae;--theme-focus:#8bf5ff;color-scheme:dark}
:root[data-theme="wine"]{--theme-bg:#280c1c;--theme-panel:#4b2038;--theme-soft:#361327;--theme-text:#faf1f5;--theme-muted:#e0bacb;--theme-accent:#e6cea0;--theme-on-accent:#280c1c;--theme-border:#85536b;--theme-danger:#ffb5c9;--theme-focus:#f9e8c7;color-scheme:dark}
:root[data-theme]{--background:var(--theme-bg);--foreground:var(--theme-text);--card:var(--theme-panel);--card-foreground:var(--theme-text);--muted:var(--theme-soft);--muted-foreground:var(--theme-muted);--border:var(--theme-border);--primary:var(--theme-accent);--primary-foreground:var(--theme-on-accent);--viz-series-1:var(--theme-accent);--destructive:var(--theme-danger)}
html[data-theme] body{background:var(--theme-bg);color:var(--theme-text)}
html[data-theme] :is(header,.card,.viz-controls,#etf-dashboard section,.theme-card){background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-text)}
html[data-theme] header{border-bottom:1px solid var(--theme-border)}
html[data-theme] :is(a,header a,.viz-stat-value){color:var(--theme-accent)}
html[data-theme] :is(small,.sub,footer,.text-muted,#message){color:var(--theme-muted)}
html[data-theme] :is(input,select,.form-control,.form-select){background:var(--theme-soft);color:var(--theme-text);border-color:var(--theme-border)}
html[data-theme] input::placeholder{color:var(--theme-muted);opacity:.8}
html[data-theme] :is(button,.btn){background:var(--theme-accent);color:var(--theme-on-accent);border:1px solid var(--theme-accent)}
html[data-theme] :is(button.secondary,button.danger){background:transparent;color:var(--theme-accent);border-color:var(--theme-border)}
html[data-theme] button.danger,html[data-theme] #message.error{color:var(--theme-danger)}
html[data-theme] :is(td,th,.emails li,.days label){border-color:var(--theme-border)}
html[data-theme] th{background:var(--theme-panel);color:var(--theme-text)}
html[data-theme] tbody tr:nth-child(even){background:var(--theme-soft)}
html[data-theme] tbody tr:hover{background:var(--theme-panel)}
html[data-theme] input[type="checkbox"],html[data-theme] input[type="radio"]{accent-color:var(--theme-accent)}
html[data-theme] :focus-visible{outline:2px solid var(--theme-focus);outline-offset:3px}
html[data-theme] #etf-dashboard :is(.viz-controls,section){padding:18px;border:1px solid var(--theme-border);border-radius:12px}
html[data-theme] #etf-dashboard .viz-stat{box-shadow:none}
html[data-theme] #etf-dashboard .bar{border-radius:4px;background:var(--theme-accent)}
html[data-theme="wine"] :is(h1,h2,#etf-dashboard h2){font-family:Georgia,"Noto Serif TC","PMingLiU",serif}
html[data-theme="ice"] .viz-badge{background:#102d40;color:#43e6f5;border-color:#31516c}
html[data-theme="wine"] .viz-badge{background:#361327;color:#e6cea0;border-color:#85536b}
.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.theme-card{border:2px solid #c6d4ce;border-radius:10px;padding:14px;background:#fff;color:#193632;margin:0;cursor:pointer}.theme-card:has(input:checked){border-color:#197360;box-shadow:0 0 0 1px #197360}.theme-card img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:5px;margin:8px 0}.theme-card strong{display:block}.theme-swatches{display:flex;gap:5px;margin:10px 0}.theme-swatches i{width:23px;height:23px;border-radius:50%;border:1px solid #ffffff60}.theme-mini{height:110px;padding:12px;background:#142120;color:#edf6f4;border-radius:5px;margin:8px 0}.theme-mini div{background:#203832;height:16px;margin:8px 0;border-left:55px solid #63d5c2}.theme-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}html[data-theme] .theme-card:has(input:checked){border-color:var(--theme-accent);box-shadow:0 0 0 1px var(--theme-accent)}#theme-message{white-space:pre-line}@media(max-width:720px){.theme-grid{grid-template-columns:1fr}}

/* Saved style library: independent color tokens and decorative vector heroes. */
:root[data-theme="n1"]{--theme-bg:#e9f0ee;--theme-panel:#f7faf9;--theme-soft:#dce7e2;--theme-text:#173b36;--theme-muted:#526963;--theme-accent:#173b36;--theme-on-accent:#ffffff;--theme-border:#a6bcb3;--theme-danger:#a42038;--theme-focus:#173b36;color-scheme:light}
html[data-theme="n1"] .site-theme-hero{background-image:url('/theme-assets/n1-hero.svg')}
:root[data-theme="n2"]{--theme-bg:#071c28;--theme-panel:#102d38;--theme-soft:#183e45;--theme-text:#eef7f6;--theme-muted:#bbd4d5;--theme-accent:#79dcca;--theme-on-accent:#071c28;--theme-border:#41646b;--theme-danger:#ffb5c9;--theme-focus:#79dcca;color-scheme:dark}
html[data-theme="n2"] .site-theme-hero{background-image:url('/theme-assets/n2-hero.svg')}
:root[data-theme="n3"]{--theme-bg:#f4f6f8;--theme-panel:#ffffff;--theme-soft:#e3ebef;--theme-text:#23343d;--theme-muted:#506773;--theme-accent:#276873;--theme-on-accent:#ffffff;--theme-border:#aebec6;--theme-danger:#a42038;--theme-focus:#276873;color-scheme:light}
html[data-theme="n3"] .site-theme-hero{background-image:url('/theme-assets/n3-hero.svg')}
:root[data-theme="u1"]{--theme-bg:#f5edd9;--theme-panel:#fffaf0;--theme-soft:#ebe0c4;--theme-text:#20221f;--theme-muted:#535845;--theme-accent:#e3b52f;--theme-on-accent:#20221f;--theme-border:#a59d80;--theme-danger:#a42038;--theme-focus:#e3b52f;color-scheme:light}
html[data-theme="u1"] .site-theme-hero{background-image:url('/theme-assets/u1-hero.svg')}
:root[data-theme="u2"]{--theme-bg:#121316;--theme-panel:#202327;--theme-soft:#292d31;--theme-text:#f4f4ec;--theme-muted:#c9cdd4;--theme-accent:#c7f541;--theme-on-accent:#121316;--theme-border:#69725b;--theme-danger:#ffb5c9;--theme-focus:#c7f541;color-scheme:dark}
html[data-theme="u2"] .site-theme-hero{background-image:url('/theme-assets/u2-hero.svg')}
:root[data-theme="u3"]{--theme-bg:#f6f0e5;--theme-panel:#fffaf2;--theme-soft:#e5e9ed;--theme-text:#122b46;--theme-muted:#536277;--theme-accent:#b92338;--theme-on-accent:#ffffff;--theme-border:#aeb8c1;--theme-danger:#a42038;--theme-focus:#b92338;color-scheme:light}
html[data-theme="u3"] .site-theme-hero{background-image:url('/theme-assets/u3-hero.svg')}
:root[data-theme="g1"]{--theme-bg:#f5f3ed;--theme-panel:#fffefa;--theme-soft:#e9e5db;--theme-text:#363833;--theme-muted:#66654f;--theme-accent:#756039;--theme-on-accent:#ffffff;--theme-border:#bdb29a;--theme-danger:#a42038;--theme-focus:#756039;color-scheme:light}
html[data-theme="g1"] .site-theme-hero{background-image:url('/theme-assets/g1-hero.svg')}
:root[data-theme="g2"]{--theme-bg:#15131c;--theme-panel:#251b38;--theme-soft:#302640;--theme-text:#f4efe2;--theme-muted:#d2c8dc;--theme-accent:#d5b573;--theme-on-accent:#15131c;--theme-border:#796889;--theme-danger:#ffb5c9;--theme-focus:#d5b573;color-scheme:dark}
html[data-theme="g2"] .site-theme-hero{background-image:url('/theme-assets/g2-hero.svg')}
:root[data-theme="g3"]{--theme-bg:#e4ede6;--theme-panel:#faf9f2;--theme-soft:#d8e4dd;--theme-text:#214e51;--theme-muted:#516a64;--theme-accent:#214e51;--theme-on-accent:#ffffff;--theme-border:#a9bcb0;--theme-danger:#a42038;--theme-focus:#214e51;color-scheme:light}
html[data-theme="g3"] .site-theme-hero{background-image:url('/theme-assets/g3-hero.svg')}

.site-theme-hero{display:none}html[data-theme] .site-theme-hero{display:flex;align-items:center;min-height:220px;border:1px solid var(--theme-border);border-radius:14px;background-color:var(--theme-panel);background-size:cover;background-position:center;margin-bottom:24px;padding:24px 32px;box-sizing:border-box}html[data-theme] .site-theme-hero h1{font-size:clamp(24px,3vw,38px);max-width:460px;line-height:1.4;margin:8px 0}html[data-theme] .site-theme-hero p{color:var(--theme-muted);max-width:420px}.site-theme-hero small{letter-spacing:.15em;color:var(--theme-accent)}html[data-theme^="g"] :is(h1,h2,h3){font-family:Georgia,"Noto Serif TC","PMingLiU",serif}html[data-theme^="u"] :is(h1,h2,h3){font-weight:800;letter-spacing:-.025em}html[data-theme^="u"] :is(.card,.btn,button){border-radius:3px}html[data-theme^="n"] .card{border-radius:16px}html[data-theme] .viz-badge{background:var(--theme-soft);color:var(--theme-text)}.theme-card img{height:auto;aspect-ratio:3/2;object-fit:contain}.theme-card input{width:auto}.theme-actions{position:sticky;bottom:0;padding:12px;background:var(--theme-panel,#fff);border:1px solid var(--theme-border,#c6d4ce);z-index:5}.theme-card small{display:block}#theme-message{padding:12px} @media(max-width:600px){html[data-theme] .site-theme-hero{background-position:65% center;background-size:auto 100%;padding:20px;min-height:190px}.site-theme-hero>div{background:var(--theme-panel);padding:10px;border-radius:8px;max-width:75%}.theme-grid{grid-template-columns:1fr}}

.theme-live-mini{margin:14px 0;padding:16px;background:var(--theme-bg);color:var(--theme-text);border-radius:8px;min-height:155px}.theme-mini-heading{font-weight:700;font-size:16px;overflow-wrap:anywhere}.theme-live-mini small{color:var(--theme-muted)!important}.theme-mini-controls{padding:8px;background:var(--theme-panel);font-size:12px;margin:12px 0}.theme-mini-chart i{display:block;height:8px;width:80%;background:var(--theme-accent);margin:8px 0}.theme-mini-chart i:nth-child(2){width:60%}.theme-mini-chart i:nth-child(3){width:40%}.site-theme-hero h1{overflow-wrap:anywhere}html[data-theme] #etf-dashboard>.top h2{font-size:22px}
