body[data-gallery-theme] {
  color: var(--theme-text);
  background: var(--theme-base);
  isolation: isolate;
}
[data-gallery-theme=rose]{--theme-image:url("assets/gallery-themes/rose.webp");--theme-base:#f9e8ec;--theme-surface:#fff6f8;--theme-text:#391e2b;--theme-muted:#66404f;--theme-accent:#842f58;--theme-line:#b7899e;--theme-particle:#d4729b;color-scheme:light}
[data-gallery-theme=dawn]{--theme-image:url("assets/gallery-themes/dawn.webp");--theme-base:#f7ebd2;--theme-surface:#fff8e9;--theme-text:#3a2816;--theme-muted:#675039;--theme-accent:#794512;--theme-line:#b79a6a;--theme-particle:#b57721;color-scheme:light}
[data-gallery-theme=olive]{--theme-image:url("assets/gallery-themes/olive.webp");--theme-base:#e6ecde;--theme-surface:#f5faed;--theme-text:#243622;--theme-muted:#455940;--theme-accent:#365c35;--theme-line:#899e82;--theme-particle:#70946c;color-scheme:light}
[data-gallery-theme=midnight]{--theme-image:url("assets/gallery-themes/midnight.webp");--theme-base:#111c36;--theme-surface:#172642;--theme-text:#f0f4ff;--theme-muted:#bdcbe2;--theme-accent:#c8d8ff;--theme-line:#627699;--theme-particle:#deedff;color-scheme:dark}
[data-gallery-theme=ember]{--theme-image:url("assets/gallery-themes/ember.webp");--theme-base:#281b27;--theme-surface:#322235;--theme-text:#fff2e5;--theme-muted:#dec9d4;--theme-accent:#ffd29d;--theme-line:#987385;--theme-particle:#ffbf75;color-scheme:dark}
.theme-backdrop {
  position:fixed; inset:0; z-index:-1; pointer-events:none; overflow:hidden;
  background:linear-gradient(color-mix(in srgb,var(--theme-base) 68%,transparent),color-mix(in srgb,var(--theme-base) 57%,transparent)),var(--theme-image) center / cover;
}
[data-gallery-theme] :is(.card,.filters,.filters input,.filters select,.filters button,#result-pages button,dialog,#chat-input,.assistant,.chat-suggestions button,.recommendations a) {
  background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-line);
}
[data-gallery-theme] :is(header, #chat-form,.chat-header){border-color:var(--theme-line)}
[data-gallery-theme] :is(.caption h2,.filters input,.chat-header h2){color:var(--theme-text)}
[data-gallery-theme] :is(.count,.intro p,.caption p,footer,.filter-summary,#no-results,.empty,.chat-footnote,.filters input::placeholder){color:var(--theme-muted)}
[data-gallery-theme] :is(.intro span,.arrow,.match-note,#active-query,#no-results h2,.home-logo,.artwork-code,.chat-header span,.chat-header button){color:var(--theme-accent)}
[data-gallery-theme] header>a:not(.home-logo){color:var(--theme-accent)!important}
[data-gallery-theme] :is(.chat-launch,#send-chat,#reset-empty){background:var(--theme-accent);color:var(--theme-surface)}
[data-gallery-theme] :is(button,input,select,a):focus-visible{outline-color:var(--theme-accent)}
.gallery-appearance{display:flex;align-items:center;gap:6px;white-space:nowrap}
.gallery-appearance select,.gallery-appearance button{padding:7px;border:1px solid var(--theme-line,#708092);border-radius:5px;background:var(--theme-surface,#111f2d);color:var(--theme-text,#f2ebde);font-size:11px;min-height:32px}
.theme-particle{position:absolute;top:-5%;left:var(--x);width:var(--size);height:calc(var(--size) * .65);border-radius:80% 0 80% 0;background:var(--theme-particle);opacity:.52;animation:theme-fall var(--duration) var(--delay) linear infinite}
:is([data-gallery-theme=midnight],[data-gallery-theme=ember]) .theme-particle{top:auto;bottom:-5%;height:var(--size);border-radius:50%;box-shadow:0 0 9px var(--theme-particle);animation-name:theme-rise}
@keyframes theme-fall{to{transform:translate(80px,110vh) rotate(330deg)}}
@keyframes theme-rise{to{transform:translate(65px,-110vh);opacity:0}}
.theme-backdrop[data-paused] .theme-particle{display:none}
@media(max-width:680px){body[data-gallery-theme] header{height:auto;min-height:57px;flex-wrap:wrap;gap:6px 10px;padding-block:6px}.gallery-appearance{margin-left:auto}.gallery-appearance select{max-width:110px}}
@media(prefers-reduced-motion:reduce){.theme-particle{display:none}}
@media print{.theme-backdrop,.gallery-appearance{display:none!important}}
