/* Paletas y dibujos del comparador «Tres diseños claros». Blanco grafito usa sus estilos de origen. */
@font-face{font-family:"Inter VADIC";src:url("temas/inter.woff2") format("woff2");font-style:normal;font-weight:100 900;font-display:swap}
[data-theme="cobre"]{
  --ink:#302923;--muted:#655d57;--line:#e9dfd7;--soft:#faefe5;--accent:#99491d;
  --tc-deep:#8d4526;--tc-mid:#e9a46f;--tc-tail:#f4caa5;--tc-a:#fffcf7;--tc-b:#f7d3a9;--tc-c:#ecb498;
  --tc-band:#fff7f0;--tc-track:#f1e9e1;--tc-art:url("temas/cobre.svg");--tc-radius:6px;--green:#2f715a
}
[data-theme="lavanda"]{
  --ink:#252a48;--muted:#565d71;--line:#dbdfef;--soft:#edefff;--accent:#55449a;
  --tc-deep:#5951aa;--tc-mid:#8898e8;--tc-tail:#a48cdb;--tc-a:#f8fbff;--tc-b:#d8e6ff;--tc-c:#d8bbf1;
  --tc-band:#f6f5ff;--tc-track:#e9eaf6;--tc-art:url("temas/lavanda.svg");--tc-radius:17px;--green:#246756
}
[data-theme="salvia"]{
  --ink:#203a32;--muted:#52655e;--line:#d4e2d9;--soft:#e6f1e6;--accent:#28674e;
  --tc-deep:#32745f;--tc-mid:#70a48b;--tc-tail:#a8be80;--tc-a:#fbfff9;--tc-b:#d9ecca;--tc-c:#b9ddd1;
  --tc-band:#f1f7ef;--tc-track:#dfebe3;--tc-art:url("temas/salvia.svg");--tc-radius:10px;--green:#2e7059
}
:is([data-theme="cobre"],[data-theme="lavanda"],[data-theme="salvia"]){
  color-scheme:light;--paper:#fff;--surface:#fff;--field:#fff;--on-accent:#fff;--red:#a23532;--yellow:#805b21;--gold:var(--tc-mid);
  --hero:var(--tc-band);--hero-text:var(--ink);--shadow:0 5px 22px color-mix(in srgb,var(--accent) 8%,transparent);
  --tc-header:linear-gradient(104deg,var(--tc-a),var(--tc-b) 55%,var(--tc-c));
  --tc-meter:linear-gradient(90deg,var(--tc-mid),var(--tc-deep));
  font-family:"Inter VADIC",Inter,system-ui,sans-serif;font-variant-numeric:tabular-nums
}
.vp-theme-meter,.vp-theme-count{display:none}
.vp-theme-card .sample:is([data-theme="cobre"],[data-theme="lavanda"],[data-theme="salvia"]){
  background:var(--tc-art) right top/50% 70% no-repeat,var(--tc-header);border-radius:var(--tc-radius);color:var(--ink)
}
.vp-theme-card .sample:not([data-theme="atelier"]) .sample-bar{width:58%}
.vp-theme-card .sample:not([data-theme="atelier"]) .sample-bar:after{background:var(--tc-meter)}
html .vp-theme-card[aria-pressed="true"]{border:2px solid var(--accent)}
/* Los mismos controles, permisos y rutas se pintan con los tokens del tema activo. */
html:not([data-theme="atelier"]) .vp-login-art{
  background:var(--tc-art) center 76%/88% 43% no-repeat,var(--tc-header);color:var(--ink);border-radius:var(--tc-radius)
}
html:not([data-theme="atelier"]) .vp-login-art img{visibility:hidden}
html:not([data-theme="atelier"]) .vp-login-art .vp-kicker{color:var(--tc-deep)}
html:not([data-theme="atelier"]) :is(.ws-hero,.ws-intake-hero){
  background:var(--tc-header);color:var(--ink);border:1px solid var(--line);border-radius:var(--tc-radius)
}
html:not([data-theme="atelier"]) .ws-hero::before{background:var(--tc-art) center/contain no-repeat;opacity:.82}
html:not([data-theme="atelier"]) .ws-hero-detail::before{right:21%;width:25%;opacity:.57}
html:not([data-theme="atelier"]) .ws-hero-text{position:relative}
html:not([data-theme="atelier"]) .ws-score progress::-webkit-progress-value{background:var(--tc-meter)}
html:not([data-theme="atelier"]) .ws-score progress::-moz-progress-bar{background:var(--tc-meter)}
html:not([data-theme="atelier"]) .ws-intake-drawing{background:var(--tc-art) center/contain no-repeat}
html:not([data-theme="atelier"]) :is(.vp-primary,.vp-screen .ws-primary){background:var(--accent);color:#fff}
html:not([data-theme="atelier"]) .ws-project{border-radius:var(--tc-radius);border-color:var(--line);background:linear-gradient(115deg,#fff 62%,var(--tc-band))}
html:not([data-theme="atelier"]) .rf-map{background:#fff;border-color:var(--line);border-radius:var(--tc-radius)}
html:not([data-theme="atelier"]) .rf-step{background:var(--tc-band);border-color:var(--line);border-radius:var(--tc-radius)}
html:not([data-theme="atelier"]) .rf-map .rf-step[aria-pressed="true"]{background:var(--soft);border-color:var(--accent);box-shadow:inset 0 -2px var(--accent)}
html[data-theme="cobre"] .rf-map .rf-step:not([aria-pressed="true"]){border-color:transparent;border-right:1px solid var(--line);background:white;border-radius:0}
html[data-theme="lavanda"] .rf-step:not([aria-pressed="true"]){background:linear-gradient(150deg,#fff,var(--tc-band))}
@media(min-width:900px){
  html:not([data-theme="atelier"]) :is(.rf-head,.rf-shell .tv-head){
    position:relative;isolation:isolate;min-width:0;border:1px solid var(--line);border-radius:var(--tc-radius);
    padding:clamp(11px,1.2vw,24px) clamp(16px,1.6vw,30px);background:var(--tc-header)
  }
  html:not([data-theme="atelier"]) :is(.rf-head,.rf-shell .tv-head)::before{
    position:absolute;inset:0 16% 0 auto;width:27%;content:"";z-index:-1;pointer-events:none;
    background:var(--tc-art) center/contain no-repeat
  }
  html:not([data-theme="atelier"]) .tv-head-id{display:block;max-width:64%}
  html:not([data-theme="atelier"]) .vp-theme-count{display:block;color:var(--muted);font-size:.93rem;font-weight:550;margin-top:3px}
  html:not([data-theme="atelier"]) .vp-theme-count::before{content:"";display:inline-block;width:20px;height:3px;background:var(--tc-meter);margin-right:7px;vertical-align:middle}
  html:not([data-theme="atelier"]) .rf-rail{border-left-color:var(--tc-mid)}
  html:not([data-theme="atelier"]) .rf-group header{background:var(--tc-band);border-radius:var(--tc-radius) var(--tc-radius) 0 0}
  html:not([data-theme="atelier"]) .rf-shell .tv-layout{grid-template-columns:minmax(0,1fr)}
  html:not([data-theme="atelier"]) .tv-layout>.tv-rail{display:none}
  html:not([data-theme="atelier"]) .rf-shell .vp-theme-alerts:not([hidden]){
    display:flex;align-items:center;flex-wrap:wrap;gap:5px 14px;text-align:left;width:100%;margin-top:.65rem;padding:.55rem .85rem;
    color:var(--ink);border:1px solid var(--line);border-radius:var(--tc-radius);background:var(--tc-band);font-size:.94rem;line-height:1.25
  }
  .vp-theme-alerts b{font-weight:650}.vp-theme-alerts .tv-icon{color:var(--accent)}.vp-theme-urgent{color:var(--muted);overflow-wrap:anywhere}.vp-theme-alert-total{margin-left:auto}
  html:not([data-theme="atelier"]) .rf-lane{border:0;border-radius:0}
  html:is([data-theme="cobre"],[data-theme="lavanda"]) .rf-lane{display:flex;flex-direction:column;gap:4px}
  html:is([data-theme="cobre"],[data-theme="lavanda"]) .rf-shell .rf-lane-title{
    display:flex;align-items:center;gap:8px;padding:1px 2px 3px;background:transparent;border:0;font-size:.96rem;text-align:left
  }
  html:is([data-theme="cobre"],[data-theme="lavanda"]) .rf-lane-title::after{content:"";flex:1;height:1px;background:var(--line)}
  html:is([data-theme="cobre"],[data-theme="lavanda"]) .rf-lane-title svg{width:35px;height:19px}
  html[data-theme="salvia"] .rf-shell .rf-lane-title{background:var(--tc-header);border:1px solid var(--line);border-radius:var(--tc-radius);margin-right:7px}
  html:not([data-theme="atelier"]) .rf-lane-grid{gap:6px;align-content:start}
  html:not([data-theme="atelier"]) .rf-tv-name h3{font-size:1.55rem;font-weight:650;line-height:1.18;letter-spacing:-.035em}
  html:not([data-theme="atelier"]) .rf-tv-name>small{margin-top:.18rem}
  html:not([data-theme="atelier"]) .rf-name{font-size:1.35rem;font-weight:650}
  html[data-theme="lavanda"] :is(.rf-tv-name h3,.rf-name){letter-spacing:-.04em}
  html:not([data-theme="atelier"]) :is(.rf-tv-project,.rf-group .rf-project){
    background:var(--surface);border:1px solid var(--line);border-radius:var(--tc-radius);
    padding:.63rem .78rem;position:relative
  }
  html:not([data-theme="atelier"]) .rf-group{background:transparent;border:0;overflow:visible}
  html:not([data-theme="atelier"]) .rf-group>.rf-project{margin:0}
  html:not([data-theme="atelier"]) .rf-group:is(.rf-group-many),html:not([data-theme="atelier"]) .rf-bands[data-configured]>.rf-group{row-gap:4px}
  html[data-theme="cobre"] :is(.rf-project,.rf-tv-project)::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;background:var(--tc-meter);border-radius:3px}
  html[data-theme="lavanda"] :is(.rf-group .rf-project,.rf-tv-project){background:linear-gradient(160deg,#fff 22%,var(--tc-band));box-shadow:0 2px 0 var(--line)}
  html[data-theme="salvia"] :is(.rf-project,.rf-tv-project)::before{content:"";position:absolute;left:.8rem;top:0;width:32px;height:3px;background:var(--tc-meter)}
  html:not([data-theme="atelier"]) .vp-theme-meter{display:block;grid-column:1/-1;height:4px;border-radius:8px;background:var(--tc-track);margin-top:4px;overflow:hidden}
  .vp-theme-meter i{display:block;height:100%;background:var(--tc-meter);border-radius:inherit}
  html:is([data-theme="cobre"],[data-theme="salvia"]) .rf-dial svg{display:none}
  html:is([data-theme="cobre"],[data-theme="salvia"]) .rf-dial{aspect-ratio:auto;width:auto;min-width:3rem}
  html:is([data-theme="cobre"],[data-theme="salvia"]) .rf-dial-center{justify-items:end}
  html:is([data-theme="cobre"],[data-theme="salvia"]) .rf-dial-center strong{font-size:1.3rem}
  html:not([data-theme="atelier"]) :is(.rf-group .rf-project:hover,.rf-tv-project:has(.tv-project-link:hover)){background:var(--tc-band);border-color:var(--accent)}
  html:not([data-theme="atelier"]) .rf-card-info .rf-badge{background:color-mix(in srgb,var(--rf-tone) 10%,#fff);padding:3px 7px;border-radius:20px}
}
@media(min-width:900px) and (max-width:1199px){
  html:not([data-theme="atelier"]) :is(.rf-head,.rf-shell .tv-head)::before{right:25%;width:18%;opacity:.42}
}
@media(max-width:899px){
  html:not([data-theme="atelier"]) .tv-head{padding:12px;background:var(--tc-header);border-radius:var(--tc-radius)}
  html:not([data-theme="atelier"]) .vp-login-art{background-position:right 10px center,center;background-size:41% auto,cover}
}
@media(min-width:900px){
  html:not([data-theme="atelier"]) .rf-shell .vp-theme-alerts:not([hidden]){
    display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:baseline
  }
  .vp-theme-alert-total{grid-column:2;grid-row:1;text-align:right}
  .vp-theme-urgent{grid-column:1/-1;grid-row:2;text-align:left}
}
@media(min-width:900px) and (max-height:800px){
  html:not([data-theme="atelier"]) .rf-shell .tv-head{padding-block:7px}
  html:not([data-theme="atelier"]) .rf-shell [data-tv-map] .rf-step>svg{height:26px}
  html:not([data-theme="atelier"]) .rf-shell [data-tv-map] .rf-step b{font-size:.72rem}
}
