/* Palettes extend the shared identity tokens in both appearance modes. */
:root[data-palette="tradalvo"][data-theme="Claro"]{--background:#f5f7f4;--surface:#ffffff;--surface-soft:#edf3ef;--foreground:#14231d;--muted:#64736c;--line:#dce5e0;--brand:#0b6b4f;--brand-soft:#dff3e9;--brand-strong:#0b6b4f;--brand-on:#ffffff;--hero:#14231d;--hero-text:#ffffff;--hero-muted:#d6e1db;}
:root[data-palette="tradalvo"][data-theme="Oscuro"]{--background:#0b1511;--surface:#111e18;--surface-soft:#172820;--foreground:#edf7f2;--muted:#9aaca3;--line:#294037;--brand:#4fcea0;--brand-soft:#153d2e;--brand-strong:#4fcea0;--brand-on:#0b1511;--hero:#0b1511;--hero-text:#edf7f2;--hero-muted:#9aaca3;}
:root[data-palette="medianoche"][data-theme="Claro"]{--background:#f2f5fb;--surface:#ffffff;--surface-soft:#eaf0fa;--foreground:#182740;--muted:#5e708e;--line:#d9e2f0;--brand:#345cba;--brand-soft:#e3ebff;--brand-strong:#345cba;--brand-on:#ffffff;--hero:#182740;--hero-text:#ffffff;--hero-muted:#d6e1db;}
:root[data-palette="medianoche"][data-theme="Oscuro"]{--background:#0b1221;--surface:#111d32;--surface-soft:#1a2941;--foreground:#e9efff;--muted:#a2b2ce;--line:#2c3c56;--brand:#91b0ff;--brand-soft:#253b66;--brand-strong:#91b0ff;--brand-on:#0b1221;--hero:#0b1221;--hero-text:#e9efff;--hero-muted:#a2b2ce;}
:root[data-palette="esmeralda"][data-theme="Claro"]{--background:#eff7f3;--surface:#fcfffd;--surface-soft:#e2f0e8;--foreground:#15372b;--muted:#5c776b;--line:#cfe3d8;--brand:#006d4c;--brand-soft:#cbefdf;--brand-strong:#006d4c;--brand-on:#ffffff;--hero:#15372b;--hero-text:#ffffff;--hero-muted:#d6e1db;}
:root[data-palette="esmeralda"][data-theme="Oscuro"]{--background:#071b16;--surface:#0d2921;--surface-soft:#15382d;--foreground:#e0fff1;--muted:#96bca9;--line:#285345;--brand:#56dcac;--brand-soft:#14563d;--brand-strong:#56dcac;--brand-on:#071b16;--hero:#071b16;--hero-text:#e0fff1;--hero-muted:#96bca9;}
:root[data-palette="violeta"][data-theme="Claro"]{--background:#f6f3fb;--surface:#ffffff;--surface-soft:#efe9f7;--foreground:#302041;--muted:#7c6b8c;--line:#e0d7eb;--brand:#7848a8;--brand-soft:#eee0ff;--brand-strong:#7848a8;--brand-on:#ffffff;--hero:#302041;--hero-text:#ffffff;--hero-muted:#d6e1db;}
:root[data-palette="violeta"][data-theme="Oscuro"]{--background:#191222;--surface:#241b32;--surface-soft:#30243f;--foreground:#f3eafa;--muted:#b9a3cc;--line:#4a365e;--brand:#c69aee;--brand-soft:#4b2d65;--brand-strong:#c69aee;--brand-on:#191222;--hero:#191222;--hero-text:#f3eafa;--hero-muted:#b9a3cc;}
:root[data-palette="terminal"][data-theme="Claro"]{--background:#f5f7ef;--surface:#ffffff;--surface-soft:#eaf0de;--foreground:#29351e;--muted:#687658;--line:#dce4ce;--brand:#486800;--brand-soft:#e3efbd;--brand-strong:#486800;--brand-on:#ffffff;--hero:#29351e;--hero-text:#ffffff;--hero-muted:#d6e1db;}
:root[data-palette="terminal"][data-theme="Oscuro"]{--background:#11170f;--surface:#1b2317;--surface-soft:#263020;--foreground:#edf6df;--muted:#a4b596;--line:#3c4c30;--brand:#b3d96b;--brand-soft:#3c4e21;--brand-strong:#b3d96b;--brand-on:#11170f;--hero:#11170f;--hero-text:#edf6df;--hero-muted:#a4b596;}
:root[data-palette="carmesi"][data-theme="Claro"]{--background:#faf3f4;--surface:#ffffff;--surface-soft:#f6e8ec;--foreground:#44202b;--muted:#8e6873;--line:#ebd8de;--brand:#9b3052;--brand-soft:#f7dce5;--brand-strong:#9b3052;--brand-on:#ffffff;--hero:#44202b;--hero-text:#ffffff;--hero-muted:#d6e1db;}
:root[data-palette="carmesi"][data-theme="Oscuro"]{--background:#221218;--surface:#301b24;--surface-soft:#402631;--foreground:#fbeaf0;--muted:#c7a2af;--line:#593440;--brand:#ed9db7;--brand-soft:#632d43;--brand-strong:#ed9db7;--brand-on:#221218;--hero:#221218;--hero-text:#fbeaf0;--hero-muted:#c7a2af;}
:root[data-palette="cromo"][data-theme="Claro"]{--background:#f4f5f6;--surface:#ffffff;--surface-soft:#eceff2;--foreground:#26333d;--muted:#697985;--line:#dbe1e5;--brand:#48677c;--brand-soft:#dfeaf0;--brand-strong:#48677c;--brand-on:#ffffff;--hero:#26333d;--hero-text:#ffffff;--hero-muted:#d6e1db;}
:root[data-palette="cromo"][data-theme="Oscuro"]{--background:#151a1e;--surface:#20272d;--surface-soft:#2a333b;--foreground:#eef2f5;--muted:#a5b2bc;--line:#414e58;--brand:#acc9da;--brand-soft:#304c5c;--brand-strong:#acc9da;--brand-on:#151a1e;--hero:#151a1e;--hero-text:#eef2f5;--hero-muted:#a5b2bc;}
:root[data-palette="vapor"][data-theme="Claro"]{--background:#f7f3fa;--surface:#ffffff;--surface-soft:#eee8f4;--foreground:#352540;--muted:#7d6a8c;--line:#e2d8ec;--brand:#75508f;--brand-soft:#eadcf5;--brand-strong:#75508f;--brand-on:#ffffff;--hero:#352540;--hero-text:#ffffff;--hero-muted:#d6e1db;}
:root[data-palette="vapor"][data-theme="Oscuro"]{--background:#191525;--surface:#251e36;--surface-soft:#322843;--foreground:#f1eafb;--muted:#b8a7cf;--line:#49395e;--brand:#9ee1d9;--brand-soft:#284c51;--brand-strong:#9ee1d9;--brand-on:#191525;--hero:#191525;--hero-text:#f1eafb;--hero-muted:#b8a7cf;}
:root[data-palette="dorado"][data-theme="Claro"]{--background:#faf7f0;--surface:#fffefa;--surface-soft:#f1ebde;--foreground:#40321e;--muted:#85755a;--line:#e6ddcb;--brand:#856016;--brand-soft:#f3e5bd;--brand-strong:#856016;--brand-on:#ffffff;--hero:#40321e;--hero-text:#ffffff;--hero-muted:#d6e1db;}
:root[data-palette="dorado"][data-theme="Oscuro"]{--background:#1c1710;--surface:#2a2218;--surface-soft:#382e20;--foreground:#fbf1dd;--muted:#c1ae8c;--line:#53442d;--brand:#dfbd74;--brand-soft:#574424;--brand-strong:#dfbd74;--brand-on:#1c1710;--hero:#1c1710;--hero-text:#fbf1dd;--hero-muted:#c1ae8c;}

:root[data-dashboard-background="limpio"] body .app-shell{background:var(--background)}
:root[data-dashboard-background="titanio"] body .app-shell{background:repeating-linear-gradient(120deg,transparent 0 26px,color-mix(in srgb,var(--brand) 3%,transparent) 27px 28px),var(--background)}
:root[data-dashboard-background="seda"] body .app-shell{background:radial-gradient(ellipse at 90% 15%,color-mix(in srgb,var(--brand) 13%,transparent),transparent 40%),radial-gradient(ellipse at 30% 85%,color-mix(in srgb,var(--brand) 7%,transparent),transparent 45%),var(--background)}
:root[data-dashboard-background="velas"] body .app-shell{background:repeating-linear-gradient(90deg,transparent 0 71px,color-mix(in srgb,var(--brand) 4%,transparent) 72px 78px,transparent 79px 120px),repeating-linear-gradient(0deg,transparent 0 105px,color-mix(in srgb,var(--brand) 2%,transparent) 106px 107px),var(--background)}
.tm-screen{max-width:1600px;margin:auto}.tm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:22px 0}.tm-filters{display:flex;gap:8px;flex-wrap:wrap}.tm-search input{max-width:250px;min-height:40px}.tm-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.tm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tm-theme{min-width:0;overflow:hidden;text-align:left;padding:0;border:2px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);cursor:pointer;transition:transform .18s,border-color .18s}.tm-theme:hover{transform:translateY(-3px);border-color:var(--muted)}.tm-theme.is-selected{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.tm-theme-caption{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:15px 13px}.tm-theme-caption b{display:block;font-size:13px;font-weight:650}.tm-theme-caption small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.tm-theme-caption .badge{font-size:9px;white-space:nowrap;padding:4px 6px}.tm-choice-circle{height:16px;width:16px;border:1px solid var(--line);border-radius:50%;flex:none}.tm-mini{display:flex;height:139px;background:var(--tm-bg);color:var(--tm-text);padding:10px;gap:9px;pointer-events:none}.tm-mini-sidebar{width:22%;padding:6px;background:var(--tm-panel);border:1px solid var(--tm-line);border-radius:5px}.tm-mini-sidebar i{display:block;width:12px;height:12px;background:var(--tm-accent);border-radius:3px;margin-bottom:12px}.tm-mini-sidebar b{height:4px;display:block;background:var(--tm-line);margin:8px 0;border-radius:2px}.tm-mini-sidebar b:first-of-type{background:var(--tm-accent)}.tm-mini-content{flex:1;min-width:0}.tm-mini-top{display:flex;justify-content:space-between;align-items:center;font-size:7px;font-weight:700}.tm-mini-top i{background:var(--tm-accent);width:20px;height:7px;border-radius:2px}.tm-mini-heading{font-size:7px;margin:8px 0;color:var(--tm-muted)}.tm-mini-stats{display:flex;gap:5px}.tm-mini-stats i{height:17px;flex:1;background:var(--tm-panel);border:1px solid var(--tm-line);border-radius:3px}.tm-mini-chart{background:var(--tm-panel);border:1px solid var(--tm-line);border-radius:4px;height:44px;margin-top:6px;padding:5px;color:var(--tm-accent)}.tm-mini-chart svg{width:100%;height:100%}.tm-mini-bottom{font-size:6px;color:var(--tm-muted);display:flex;justify-content:space-between;align-items:center;margin-top:5px}.tm-mini-bottom i{width:20px;height:3px;background:var(--tm-accent)}.tm-detail{position:sticky;top:24px;padding:24px}.tm-detail>h3{font-size:25px;margin:12px 0}.tm-detail>p{font-size:12px;color:var(--muted);line-height:1.7}.tm-mini-large{border-radius:12px;border:1px solid var(--line);height:190px;padding:14px}.tm-mini-large .tm-mini-chart{height:68px}.tm-mini-large .tm-mini-stats i{height:24px}.tm-mini-large .tm-mini-heading{font-size:9px;margin:12px 0}.tm-mini-large .tm-mini-top{font-size:9px}.tm-swatches{display:flex;gap:8px;margin:18px 0 25px}.tm-swatches span{height:25px;width:25px;border:1px solid var(--line);border-radius:50%}.tm-detail>.button{width:100%;margin-top:10px}.tm-save-note{font-size:11px!important}.tm-background-section{padding:24px;margin-top:24px}.tm-background-section h3{margin:0;font-size:18px}.tm-background-section>p{font-size:12px;color:var(--muted);line-height:1.6}.tm-backgrounds{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:20px}.tm-bg-choice{padding:8px;text-align:left;border:2px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);min-width:0}.tm-bg-choice.is-selected{border-color:var(--brand)}.tm-bg-choice b{display:block;font-size:11px;margin:10px 0 5px}.tm-bg-choice small{font-size:10px;color:var(--muted);line-height:1.5;display:block}.tm-bg-sample{display:block;height:55px;border:1px solid var(--line);border-radius:6px;background:var(--surface-soft)}.tm-bg-velas{background:repeating-linear-gradient(90deg,transparent 0 17px,color-mix(in srgb,var(--brand) 15%,transparent) 18px 24px,transparent 25px 40px),var(--surface-soft)}.tm-bg-titanio{background:repeating-linear-gradient(120deg,transparent 0 9px,color-mix(in srgb,var(--brand) 8%,transparent) 10px 11px),var(--surface-soft)}.tm-bg-seda{background:radial-gradient(ellipse at 10% 10%,color-mix(in srgb,var(--brand) 25%,transparent),transparent 65%),var(--surface-soft)}.tm-bg-seccion{background:linear-gradient(120deg,var(--brand-soft) 0 33%,var(--surface-soft) 33% 66%,var(--line) 66%)}.tm-preview-background{padding:14px;border-radius:10px;border:1px solid var(--line);margin:18px 0;display:grid;gap:6px}.tm-preview-background small{font-size:10px;color:var(--muted)}.tm-preview-background b{font-size:12px}.tm-empty{padding:25px;grid-column:1/-1}
@media(max-width:1250px){.tm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-layout{grid-template-columns:minmax(0,1fr) 285px}.tm-backgrounds{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.tm-layout{grid-template-columns:1fr}.tm-detail{position:static;grid-row:1}.tm-mini-large{height:165px}.tm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tm-detail .tm-mini-large{max-width:450px}.tm-toolbar{align-items:stretch;flex-direction:column}}
@media(max-width:600px){.tm-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tm-mini{height:120px;padding:7px;gap:6px}.tm-theme-caption{padding:12px 8px;flex-wrap:wrap}.tm-theme-caption b{font-size:12px}.tm-backgrounds{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-detail{padding:18px}.tm-background-section{padding:18px}}
@media(prefers-reduced-motion:reduce){.tm-theme{transition:none}.tm-theme:hover{transform:none}}
.tm-search>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.tm-search input{width:100%}
