/* Temi alternativi. Oro mantiene il foglio originale; gli altri usano token condivisi. */
:root {
  --ui-bg: #101314;
  --ui-surface: #191d1e;
  --ui-raised: #222829;
  --ui-text: #f1f5f2;
  --ui-secondary: #c2ccc7;
  --ui-muted: #9aa8a1;
  --ui-border: #343e3a;
  --ui-accent: #a7edcf;
  --ui-accent-rgb: 167, 237, 207;
  --ui-on-accent: #102b20;
  --ui-secondary-pick: #c6d4ee;
  --ui-on-secondary: #17243a;
  --ui-warning: #f0c17e;
  --ui-danger: #ffb0ac;
  --ui-radius: 16px;
  --ui-radius-sm: 8px;
  --ui-shadow: 0 12px 40px rgba(0, 0, 0, .14);
  --ui-font-display: 'Manrope', system-ui, sans-serif;
}

:root[data-theme="paper"] {
  --ui-bg: #f5f2eb;
  --ui-surface: #fffcf7;
  --ui-raised: #ede8df;
  --ui-text: #292720;
  --ui-secondary: #534d43;
  --ui-muted: #6c6459;
  --ui-border: #d9d1c4;
  --ui-accent: #a24430;
  --ui-accent-rgb: 162, 68, 48;
  --ui-on-accent: #ffffff;
  --ui-secondary-pick: #405879;
  --ui-on-secondary: #ffffff;
  --ui-warning: #875514;
  --ui-danger: #b12c30;
  --ui-radius: 6px;
  --ui-radius-sm: 4px;
  --ui-shadow: 0 6px 24px rgba(73, 52, 25, .05);
  --ui-font-display: Georgia, 'Times New Roman', serif;
}

:root[data-theme="aurora"] {
  --ui-bg: #101126;
  --ui-surface: #1a1c36;
  --ui-raised: #252743;
  --ui-text: #f2f0ff;
  --ui-secondary: #cbc8e6;
  --ui-muted: #a5a3c3;
  --ui-border: #383a5c;
  --ui-accent: #c4b5fd;
  --ui-accent-rgb: 196, 181, 253;
  --ui-on-accent: #251a45;
  --ui-secondary-pick: #9ed9ed;
  --ui-on-secondary: #152f3a;
  --ui-warning: #f2c78d;
  --ui-danger: #ffb3bf;
  --ui-radius: 20px;
  --ui-radius-sm: 10px;
  --ui-shadow: 0 14px 45px rgba(6, 5, 25, .2);
}

:root[data-theme="gold"] {
  --ui-bg: #05060b;
  --ui-surface: #101322;
  --ui-raised: #1d2031;
  --ui-text: #e8e6df;
  --ui-secondary: #c3c9d6;
  --ui-muted: #9aa2b4;
  --ui-border: #4b4126;
  --ui-accent: #f0db8f;
  --ui-accent-rgb: 212, 175, 55;
  --ui-on-accent: #231804;
}

:root[data-theme="tga"] {
  --ui-bg: #050a0d;
  --ui-surface: #0d1a20;
  --ui-raised: #142932;
  --ui-text: #f4fbfc;
  --ui-secondary: #c2d6df;
  --ui-muted: #94afb9;
  --ui-border: #2c4854;
  --ui-accent: #6ed8eb;
  --ui-accent-rgb: 110, 216, 235;
  --ui-on-accent: #06191f;
  --ui-secondary-pick: #f2ad79;
  --ui-on-secondary: #271408;
  --ui-warning: #ffbf88;
  --ui-danger: #ffb0a5;
  --ui-radius: 12px;
  --ui-radius-sm: 6px;
}

/* Superfici e tipografia: niente riflettori, tagli o bagliori nei nuovi temi. */
:root:not([data-theme="gold"]),
:root:not([data-theme="gold"]) body { background: var(--ui-bg); color: var(--ui-text); }
:root:not([data-theme="gold"]) { --gold: var(--ui-accent); --gold-light: var(--ui-accent); }
:root:not([data-theme="gold"]) ::selection { background: rgba(var(--ui-accent-rgb), .3); color: var(--ui-text); }
:root:not([data-theme="gold"]) :is(.stage-bg, .stage-grid, .beam, .particles, .shine, .burst) { display: none; }
:root[data-theme="aurora"] .stage-bg {
  display: block;
  z-index: 0;
  background: radial-gradient(ellipse at 90% 0, rgba(112, 83, 206, .15), transparent 55%),
              radial-gradient(ellipse at 0 85%, rgba(54, 119, 152, .08), transparent 50%);
}
:root[data-theme="tga"] .stage-bg {
  display: block;
  z-index: 0;
  background: radial-gradient(ellipse at 95% 0, rgba(var(--ui-accent-rgb), .16), transparent 55%),
              radial-gradient(ellipse at 0 65%, rgba(205, 112, 57, .12), transparent 50%);
}
#root { position: relative; overflow-x: clip; }
:root:not([data-theme="gold"]) .font-display {
  font-family: var(--ui-font-display);
  font-weight: 700;
  letter-spacing: .015em;
}
:root:not([data-theme="gold"]) :is(.tracking-mega, .tracking-widest) { letter-spacing: .1em; }
:root:not([data-theme="gold"]) :is(.gold-text, .gold-sheen) {
  background: none;
  color: var(--ui-text);
  animation: none;
}
:root:not([data-theme="gold"]) :is(.cut, .cut-sm) { clip-path: none; border-radius: var(--ui-radius-sm); }
:root:not([data-theme="gold"]) :is(.panel, .nominee) {
  background: var(--ui-surface);
  border-color: var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  backdrop-filter: none;
}
:root:not([data-theme="gold"]) .hairline { background: var(--ui-border); }
:root:not([data-theme="gold"]) .nominee { overflow: hidden; }
:root:not([data-theme="gold"]) .nominee:hover {
  transform: translateY(-3px);
  border-color: var(--ui-muted);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
}
:root:not([data-theme="gold"]) .nominee.is-first { border-color: var(--ui-accent); box-shadow: 0 0 0 2px var(--ui-accent); }
:root:not([data-theme="gold"]) .nominee.is-second { border-color: var(--ui-secondary-pick); box-shadow: 0 0 0 2px var(--ui-secondary-pick); }
:root:not([data-theme="gold"]) .nominee.is-winner { border-color: var(--ui-warning); box-shadow: 0 0 0 2px var(--ui-warning); }
:root:not([data-theme="gold"]) :is(.btn-gold, .badge-gold) {
  background: var(--ui-accent);
  color: var(--ui-on-accent);
  box-shadow: none;
  animation: none;
}
:root:not([data-theme="gold"]) .btn-gold:hover { filter: brightness(1.08); box-shadow: none; }
:root:not([data-theme="gold"]) .btn-ghost {
  color: var(--ui-accent);
  border-color: var(--ui-border);
  background: transparent;
  box-shadow: none;
}
:root:not([data-theme="gold"]) .btn-ghost:hover { background: rgba(var(--ui-accent-rgb), .08); border-color: var(--ui-accent); }
:root:not([data-theme="gold"]) :is(.btn-plat, .badge-plat) { background: var(--ui-secondary-pick); color: var(--ui-on-secondary); box-shadow: none; }
:root:not([data-theme="gold"]) .btn-plat-ghost { color: var(--ui-secondary); background: transparent; border-color: var(--ui-border); }
:root:not([data-theme="gold"]) .btn-plat-ghost:hover { background: var(--ui-raised); border-color: var(--ui-muted); }
:root:not([data-theme="gold"]) .field { background: var(--ui-bg); color: var(--ui-text); border-color: var(--ui-border); }
:root:not([data-theme="gold"]) .field:focus { border-color: var(--ui-accent); box-shadow: 0 0 0 3px rgba(var(--ui-accent-rgb), .15); }
:root:not([data-theme="gold"]) select.field {
  background-image: linear-gradient(45deg, transparent 50%, var(--ui-accent) 50%), linear-gradient(135deg, var(--ui-accent) 50%, transparent 50%);
}
:root:not([data-theme="gold"]) select.field option { background: var(--ui-surface); color: var(--ui-text); }
:root:not([data-theme="gold"]) .tab-active { color: var(--ui-accent); }
:root:not([data-theme="gold"]) .tab-active::after { background: var(--ui-accent); box-shadow: none; left: 12px; right: 12px; }
:root:not([data-theme="gold"]) .tga-table :is(th, td) { border-bottom-color: var(--ui-border); }
:root:not([data-theme="gold"]) .tga-table tbody tr:hover td { background: var(--ui-raised); }
:root:not([data-theme="gold"]) .sticky-col { background: var(--ui-surface); }
:root:not([data-theme="gold"]) .scroll-thin { scrollbar-color: var(--ui-border) transparent; }
:root:not([data-theme="gold"]) .scroll-thin::-webkit-scrollbar-thumb { background: var(--ui-border); }

/* Compatibilità con le utility del frontend esistente, comprese le viste admin. */
:root:not([data-theme="gold"]) :is(.text-gold-50, .text-gold-100, .text-gold-200, .text-gold-200\/90,
  .text-gold-300, .text-gold-300\/50, .text-gold-300\/60, .text-gold-300\/70, .text-gold-300\/80,
  .text-gold-400\/40, .text-gold-400\/60, .text-gold-400\/70, .text-gold-400\/80, .text-gold-400\/90) { color: var(--ui-accent); }
:root:not([data-theme="gold"]) .text-gold-300\/25 { color: rgba(var(--ui-accent-rgb), .2); }
:root:not([data-theme="gold"]) :is(.text-platinum-100, .text-platinum-200, .text-white) { color: var(--ui-text); }
:root:not([data-theme="gold"]) .text-platinum-300 { color: var(--ui-secondary); }
:root:not([data-theme="gold"]) :is(.text-platinum-400, .text-platinum-500, .text-platinum-500\/50) { color: var(--ui-muted); }
:root:not([data-theme="gold"]) .text-white\/10 { color: var(--ui-border); }
:root:not([data-theme="gold"]) :is(.text-amber2, .text-amber2\/70) { color: var(--ui-warning); }
:root:not([data-theme="gold"]) :is(.text-red-200, .text-red-200\/80, .text-red-300, .text-red-300\/80, .text-red-300\/90) { color: var(--ui-danger); }
:root:not([data-theme="gold"]) :is(.border-gold-400\/10, .border-gold-400\/12, .border-gold-400\/15,
  .border-gold-400\/25, .border-gold-400\/30, .border-gold-400\/50, .border-gold-400\/60,
  .border-white\/5, .border-white\/10) { border-color: var(--ui-border); }
:root:not([data-theme="gold"]) :is(.bg-gold-400\/10, .bg-gold-400\/15, .bg-gold-400\/25, .bg-gold-400\/\[\.05\]) { background-color: rgba(var(--ui-accent-rgb), .1); }
:root:not([data-theme="gold"]) .bg-gold-400 { background-color: var(--ui-accent); box-shadow: none; }
:root:not([data-theme="gold"]) .bg-platinum-200 { background-color: var(--ui-secondary-pick); box-shadow: none; }
:root:not([data-theme="gold"]) :is(.bg-white\/5, .bg-white\/10) { background-color: var(--ui-raised); }
:root:not([data-theme="gold"]) .bg-obsidian-900 { background-color: var(--ui-raised); }
:root:not([data-theme="gold"]) .bg-obsidian-950\/80 { background-color: var(--ui-bg); }
:root:not([data-theme="gold"]) :is(.hover\:bg-gold-400\/5, .hover\:bg-gold-400\/10):hover { background-color: rgba(var(--ui-accent-rgb), .08); }
:root:not([data-theme="gold"]) .hover\:bg-white\/\[\.03\]:hover { background-color: var(--ui-raised); }
:root:not([data-theme="gold"]) .hover\:border-gold-400\/50:hover { border-color: var(--ui-accent); }
:root:not([data-theme="gold"]) .hover\:text-gold-100:hover { color: var(--ui-accent); }

/* Tonalità del marchio: stessi asset, senza immagini aggiuntive al cambio tema. */
:root[data-theme="graphite"] .brand-logo { filter: grayscale(1) sepia(1) saturate(1.4) hue-rotate(98deg) brightness(.94); }
:root[data-theme="paper"] .brand-logo { filter: grayscale(1) brightness(.6) sepia(1) saturate(2.8) hue-rotate(-41deg) brightness(.71); }
:root[data-theme="aurora"] .brand-logo { filter: grayscale(1) sepia(1) saturate(1.4) hue-rotate(193deg); }
:root[data-theme="tga"] .brand-logo { filter: url(#brand-logo-tint); }
:root[data-theme="tga"] .brand-logo-ink { flood-color: var(--ui-warning); }
.site-header .brand-logo { width: auto; height: 34px; }
.auth-brand .brand-logo { width: min(460px, 100%); height: auto; margin-inline: auto; }
@media (width < 640px) {
  .site-header .brand-logo { height: 46px; }
}
:root[data-theme="paper"] :is(input, select, textarea) { color-scheme: light; }
:root:not([data-theme="gold"]) .auth-screen { min-height: calc(100vh - 12rem); }
:root:not([data-theme="gold"]) .auth-screen .font-display { font-family: 'Manrope', system-ui, sans-serif; }
:root:not([data-theme="gold"]) .auth-screen > div > p { font-weight: 400; }
:root:not([data-theme="gold"]) .category-watermark { display: none; }
:root:not([data-theme="gold"]) .progress-fill { background: var(--ui-accent) !important; box-shadow: none !important; }
:root:not([data-theme="gold"]) .rail-active { box-shadow: inset 3px 0 0 var(--ui-accent) !important; }
:root:not([data-theme="gold"]) .nominee-caption :is(h3, .text-platinum-300) { color: #fff; }
:root:not([data-theme="gold"]) .poster-placeholder { --poster-placeholder: var(--ui-raised); --poster-accent: var(--ui-accent-rgb); }
:root:not([data-theme="gold"]) .poster-placeholder-shade { display: none; }
:root:not([data-theme="gold"]) .podium-step { background: rgba(var(--ui-accent-rgb), .08) !important; border-color: var(--ui-border) !important; }
:root:not([data-theme="gold"]) .winner-reveal > .absolute { background: var(--ui-bg); opacity: .97; }
:root:not([data-theme="gold"]) img[src$="logo-p-gold.png"] { filter: grayscale(1); opacity: .5; }
:root[data-theme="paper"] img[src$="logo-p-gold.png"] { filter: grayscale(1) brightness(.4); }

/* Selettore sempre raggiungibile, anche prima dell'accesso. */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--ui-border); border-radius: 8px;
  color: var(--ui-secondary); background: var(--ui-surface);
  font-size: 12px; font-weight: 600; transition: border-color .15s, color .15s;
}
.theme-trigger:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.theme-trigger-icon { width: 16px; height: 16px; flex-shrink: 0; border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme-dialog::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(2px); }
html:has(.theme-dialog[open]) { overflow: hidden; }
.theme-dialog {
  --theme-dialog-gap: 48px;
  --theme-dialog-padding: 30px;
  position: fixed;
  inset: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  width: min(710px, calc(100vw - var(--theme-dialog-gap)));
  max-width: none;
  max-height: calc(100vh - var(--theme-dialog-gap));
  max-height: calc(100dvh - var(--theme-dialog-gap) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  margin: auto; overflow: hidden;
  padding: 0; border: 1px solid var(--ui-border); border-radius: 20px;
  background: var(--ui-surface); color: var(--ui-text); box-shadow: 0 24px 100px rgba(0, 0, 0, .3);
}
.theme-dialog[open], .theme-dialog form { display: flex; flex-direction: column; }
.theme-dialog form { min-height: 0; }
.theme-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; flex-shrink: 0; gap: 20px; padding: var(--theme-dialog-padding) var(--theme-dialog-padding) 20px; }
.theme-dialog-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 5px var(--theme-dialog-padding) 0; }
.theme-dialog h2 { margin: 0 0 8px; font: 800 28px/1.2 'Manrope', system-ui, sans-serif; letter-spacing: -.04em; }
.theme-dialog-header p { max-width: 480px; color: var(--ui-muted); font-size: 13px; line-height: 1.7; }
.theme-close { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; color: var(--ui-secondary); border: 1px solid var(--ui-border); border-radius: 50%; font-size: 20px; line-height: 1; }
.theme-close:hover { background: var(--ui-raised); }
.theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.theme-option { cursor: pointer; position: relative; min-width: 0; padding: 0; overflow: hidden; text-align: left; border: 1px solid var(--ui-border); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.theme-option:hover { border-color: var(--ui-muted); }
.theme-option:has(input:checked) { border-color: var(--ui-accent); box-shadow: 0 0 0 1px var(--ui-accent); }
.theme-option:has(input:focus-visible) { outline: 2px solid var(--ui-accent); outline-offset: 3px; }
.theme-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-option-info { display: block; padding: 13px 15px 15px; }
.theme-option-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.theme-option-name { color: var(--ui-text); font-size: 14px; font-weight: 800; }
.theme-option-label { display: block; margin-top: 4px; color: var(--ui-muted); font-size: 11px; }
.theme-check { display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--ui-border); border-radius: 50%; color: transparent; font-size: 11px; }
.theme-option:has(input:checked) .theme-check { color: var(--ui-on-accent); background: var(--ui-accent); border-color: var(--ui-accent); }
.theme-preview { --preview-bg: #101314; --preview-surface: #222829; --preview-text: #edf4ef; --preview-accent: #a7edcf; display: block; height: 116px; padding: 12px 15px 0; overflow: hidden; background: var(--preview-bg); border-bottom: 1px solid var(--ui-border); }
.theme-preview[data-preview="paper"] { --preview-bg: #f5f2eb; --preview-surface: #e8e1d5; --preview-text: #292720; --preview-accent: #a24430; }
.theme-preview[data-preview="aurora"] { --preview-bg: #101126; --preview-surface: #2b2a4b; --preview-text: #f2f0ff; --preview-accent: #c4b5fd; background: radial-gradient(ellipse at 100% 0, #312952, var(--preview-bg)); }
.theme-preview[data-preview="gold"] { --preview-bg: #05060b; --preview-surface: #1d2031; --preview-text: #f0db8f; --preview-accent: #d4af37; background: radial-gradient(ellipse at 50% 0, #3b3015, var(--preview-bg)); }
.theme-preview[data-preview="tga"] {
  --preview-bg: #050a0d;
  --preview-surface: #142932;
  --preview-text: #f4fbfc;
  --preview-accent: #6ed8eb;
  background: radial-gradient(ellipse at 95% 0, #224854, transparent 60%),
              radial-gradient(ellipse at 0 65%, #3f2419, var(--preview-bg) 68%);
}
.theme-preview[data-preview="tga"] .theme-preview-cards i:nth-child(2) { border-color: #f2ad79; }
.theme-preview-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--preview-surface); }
.theme-preview-logo { font: 800 9px/1 'Manrope', sans-serif; letter-spacing: -.04em; color: var(--preview-text); }
.theme-preview-dots { display: flex; gap: 4px; }
.theme-preview-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--preview-accent); }
.theme-preview-content { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding-top: 10px; }
.theme-preview-sidebar { display: grid; align-content: start; gap: 6px; padding-top: 3px; }
.theme-preview-sidebar i { display: block; width: 90%; height: 3px; background: var(--preview-surface); border-radius: 2px; }
.theme-preview-sidebar i:first-child { background: var(--preview-accent); }
.theme-preview-heading { display: block; width: 65%; height: 5px; margin: 2px 0 10px; background: var(--preview-text); border-radius: 2px; opacity: .85; }
.theme-preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.theme-preview-cards i { display: block; height: 58px; border-radius: 4px 4px 0 0; background: linear-gradient(150deg, var(--preview-surface), var(--preview-bg)); border: 1px solid var(--preview-surface); }
.theme-preview-cards i:first-child { border-color: var(--preview-accent); background: linear-gradient(145deg, var(--preview-surface), var(--preview-bg) 80%); }
.theme-preview[data-preview="paper"] :is(.theme-preview-cards i, .theme-preview-heading) { border-radius: 0; }
.theme-preview[data-preview="gold"] .theme-preview-cards i { border-radius: 0; clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px); }
.theme-description { min-height: 20px; margin: 18px 0 20px; font-size: 12px; color: var(--ui-secondary); }
.theme-dialog-footer { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 18px; padding: 16px var(--theme-dialog-padding); border-top: 1px solid var(--ui-border); }
.theme-save-note { max-width: 290px; font-size: 11px; line-height: 1.6; color: var(--ui-muted); }
.theme-dialog-buttons { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.theme-cancel, .theme-save { min-height: 40px; padding: 10px 16px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.theme-cancel { color: var(--ui-secondary); border: 1px solid var(--ui-border); }
.theme-cancel:hover { background: var(--ui-raised); }
.theme-save { color: var(--ui-on-accent); background: var(--ui-accent); }
.theme-error { flex-shrink: 0; padding: 8px var(--theme-dialog-padding); color: var(--ui-danger, #ffb0ac); font-size: 12px; }
.theme-account-link { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; margin-bottom: 24px; border: 1px solid var(--ui-border); border-radius: 8px; text-align: left; color: var(--ui-text); }
.theme-account-link:hover { background: var(--ui-raised); }
.theme-account-link small { display: block; margin-top: 3px; color: var(--ui-muted); font-size: 11px; }

/* Focus visibile e dialoghi utilizzabili su schermi piccoli. */
:is(button, a, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 4px; }
.app-modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (max-width: 767px) {
  .site-header .header-inner { gap: 10px; flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; }
  .site-header .header-brand { margin-right: auto; }
  .site-header .header-nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .site-header .header-nav:empty { display: none; }
  .site-header .header-nav button { padding-top: 12px; padding-bottom: 12px; }
  .site-header:has(.header-nav:empty) .header-inner { padding-bottom: 10px; }
  .site-header .header-nav:not(:empty) + .header-actions { padding-bottom: 4px; }
  .theme-trigger-label { display: none; }
  .theme-trigger { padding: 8px 10px; }
}
@media (max-width: 540px) {
  .theme-dialog { --theme-dialog-gap: 24px; --theme-dialog-padding: 20px; border-radius: 16px; }
  .theme-dialog h2 { font-size: 24px; }
  .theme-dialog-header { padding-bottom: 14px; gap: 10px; }
  .theme-options { gap: 10px; }
  .theme-preview { height: 98px; padding: 10px 10px 0; }
  .theme-preview-content { grid-template-columns: 22px 1fr; gap: 8px; }
  .theme-preview-cards { gap: 4px; }
  .theme-option-info { padding: 10px; }
  .theme-option-name { font-size: 12px; }
  .theme-option-label { font-size: 10px; }
  .theme-dialog-footer { align-items: stretch; flex-direction: column; gap: 8px; padding-block: 12px; }
  .theme-save-note { max-width: none; }
  .theme-dialog-buttons { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
