/* Tablero: valores del prototipo Opus / BoardUI gratuito. Sólo se carga por piel.js. */
@font-face {
  font-family: 'Inter Tablero';
  src: url('/shared/fonts/InterVariable.woff2?v=f55b18fdf5') format('woff2');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

[data-piel] {
  --tb-font: 'Inter Tablero', Inter, system-ui, sans-serif;
  --tb-bg: #ffffff;
  --tb-menu: #f7f7f7;
  --tb-text: #0a0a0a;
  /* Tablero en producción (QA del 11/11): #737373 quedaba en 4,43:1 sobre el gris del menú y 4,12:1 sobre el lila
     suave. #6b6b6b pasa 4,5:1 en los tres fondos (blanco 5,33; #f7f7f7 4,97; #f3edf6 4,63). */
  --tb-muted: #6b6b6b;
  --tb-muted-on-menu: var(--tb-muted);
  --tb-line: #ebebeb;
  --tb-line-strong: #e0e0e0;
  /* El borde decorativo del prototipo no llega a 3:1: los campos usan este borde. */
  --tb-control-border: #8a8a8a;
  --tb-accent: #5f3a70;
  --tb-accent-top: #77508a;
  --tb-accent-soft: #f3edf6;
  --tb-warn: #b45309;
  --tb-warn-soft: #fef3c7;
  --tb-ok: #3f6212;
  --tb-ok-soft: #ecfccb;
  --tb-danger: #a13d36;
  --tb-danger-soft: #fbeeea;
  --tb-count: #525252;
  --tb-size-small: 13px;
  --tb-size-base: 14px;
  --tb-size-input-mobile: 16px;
  --tb-size-section: 18px;
  --tb-size-title: 24px;
  --tb-size-number: 28px;
  --tb-weight-regular: 400;
  --tb-weight-medium: 500;
  --tb-weight-strong: 600;
  --tb-radius-control: 10px;
  --tb-radius-card: 16px;
  --tb-radius-menu: 24px;
  --tb-radius-pill: 999px;
  --tb-control-height: 36px;
  --tb-touch: 44px;
  --tb-row-height: 52px;
  --tb-sidebar-width: 272px;
  --tb-content-width: 1560px;
  --tb-topbar-height: 68px;
  --tb-bottom-height: 72px;
  --tb-test-banner-height: 26px;
  --tb-space-1: 4px;
  --tb-space-2: 8px;
  --tb-space-3: 12px;
  --tb-space-4: 16px;
  --tb-space-5: 20px;
  --tb-space-6: 24px;
  --tb-space-7: 32px;
  --tb-space-8: 40px;
  --tb-shadow-menu: 0 1px 0 rgb(0 0 0 / .02), 0 1px 12px rgb(0 0 0 / .06), 0 0 1px rgb(0 0 0 / .32);
  --tb-shadow-card: 0 1px 1px rgb(0 0 0 / .05);
  --tb-shadow-control: 0 1px 2px rgb(0 0 0 / .05);
  --tb-shadow-primary: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(0 0 0 / .05);
  --tb-gradient-primary: linear-gradient(180deg, var(--tb-accent-top), var(--tb-accent));
  --tb-overlay: rgb(10 10 10 / .4);
  --tb-focus-width: 2px;
}

/* Adaptadores de tokens existentes: incluyen el tema guardado, sin modificar su preferencia. */
html[data-piel] body,
html[data-piel] body.lp-redesign.lp-dark {
  --bg: var(--tb-bg);
  --bg2: var(--tb-menu);
  --card: var(--tb-bg);
  --card2: var(--tb-menu);
  --border: var(--tb-line);
  --border-s: var(--tb-control-border);
  --sep: var(--tb-line);
  --text: var(--tb-text);
  --text2: var(--tb-count);
  --text3: var(--tb-muted);
  --text4: var(--tb-muted);
  --accent: var(--tb-accent);
  --accent2: var(--tb-accent);
  --accent-s: var(--tb-accent-soft);
  --on-accent: var(--tb-bg);
  --green: var(--tb-ok);
  --green-s: var(--tb-ok-soft);
  --orange: var(--tb-warn);
  --orange-s: var(--tb-warn-soft);
  --red: var(--tb-danger);
  --red-s: var(--tb-danger-soft);
  --blue: var(--tb-accent);
  --blue-s: var(--tb-accent-soft);
  --font-display: var(--tb-font);
  --font-sans: var(--tb-font);
  --t-display: var(--tb-size-title);
  --t-title: var(--tb-size-section);
  --t-body: var(--tb-size-base);
  --t-ui: var(--tb-size-base);
  --t-small: var(--tb-size-small);
  --t-label: var(--tb-size-small);
  --ls-display: normal;
  --ls-label: normal;
  --r1: var(--tb-radius-control);
  --r2: var(--tb-radius-control);
  --r3: var(--tb-radius-card);
  --shadow: var(--tb-shadow-card);
  --nav-h: var(--tb-topbar-height);
  --nav-w: var(--tb-sidebar-width);
  color-scheme: light;
}
