/* VenFácil Growth OS · hoja única de estilos.
   GOS-DISEÑO-01 B0: tokens del «aspecto nuevo» del ERP (E:\VenFacil_Informes\identidad\medidas2.txt,
   bloque ASPECTO NUEVO, 13/10/2026), armazón con menú lateral, panel móvil, barra inferior y barra superior.
   Los componentes (tarjetas, tablas, botones, pills…) se rehacen en B1: aquí solo toman los colores y la letra. */

/* 1. Tokens --vb-* copiados tal cual del fichero de identidad ----------------------------------- */
:root {
  --vb-amber-soft: #FFF7ED;
  --vb-amber: #B45309;
  --vb-bg: #F5F7FA;
  --vb-blue-hover: #1E40AF;
  --vb-blue-line: #C7D7FE;
  --vb-blue-soft: #EFF4FF;
  --vb-blue: #1D4ED8;
  --vb-border: #E3E8EF;
  --vb-btn-text: #334155;
  --vb-control: 34px;
  --vb-faint: #94A3B8;
  --vb-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --vb-fs: 13px;
  --vb-gap: 14px;
  --vb-green-soft: #ECFDF3;
  --vb-green: #15803D;
  --vb-grey-soft: #F1F5F9;
  --vb-head-bg: #F8FAFC;
  --vb-ink: #021C33;
  --vb-lh: 1.45;
  --vb-muted: #64748B;
  --vb-page-max: 1120px;
  --vb-radius-card: 10px;
  --vb-radius-item: 7px;
  --vb-radius: 8px;
  --vb-red-soft: #FEF2F2;
  --vb-red: #B91C1C;
  --vb-row-line: #EEF2F6;
  --vb-scroll: #CBD5E1;
  --vb-shadow-dialog: 0 24px 48px rgba(15, 23, 42, .24);
  --vb-shadow-pop: 0 8px 24px rgba(15, 23, 42, .12);
  --vb-sidebar: 224px;
  --vb-surface: #FFFFFF;
  --vb-text-2: #475569;
  --vb-text: #0F172A;
  --vb-topbar: 56px;
  --vb-touch: 44px;

  /* 2. Tokens --vfc-* complementarios. Donde el fichero trae dos valores manda la orden B0
        (título 20/600, base 13, control 34, radio de tarjeta 10, relleno 12, sin sombra). */
  --vfc-fs-title: 20px;
  --vfc-fw-title: 600;
  --vfc-fs-title-m: 18px;
  --vfc-fs-base: 13px;
  --vfc-fs-sub: 13px;
  --vfc-fs-label: 12px;
  --vfc-fs-figure: 20px;
  --vfc-fs-figure-m: 18px;
  --vfc-control: 34px;
  --vfc-control-touch: 44px;
  --vfc-radius-card: 10px;
  --vfc-radius-control: 8px;
  --vfc-pad-card: 12px;
  --vfc-shadow-card: none;
  --vfc-gap: 14px;
  --vfc-page-pad: 24px;
  --vfc-page-pad-m: 16px;
  --vfc-side-w: 224px;
  --vfc-side-active-bg: #EFF4FF;
  --vfc-side-active-text: #1D4ED8;
  --vfc-topbar-h: 56px;
  --vfc-th-bg: #F8FAFC;
  --vfc-th-text: #475569;
  --vfc-th-h: 36px;
  --vfc-row: 40px;
  --vfc-row-line: #EEF2F6;
  --vfc-btn-border: #E3E8EF;
  --vfc-field-border: #8492A6;  /* contraste mínimo de controles (WCAG 1.4.11); #E3E8EF solo en tarjetas y botones */
  --vfc-v4-row-btn: 28px;
  --vfc-seg-bg: #F1F5F9;
  --vfc-seg-h: 36px;
  --vfc-seg-item: 28px;
  --vfc-win-w: 480px;
  --vfc-win-radius: 10px;
  --vfc-win-head-pad: 16px 24px;
  --vfc-win-body-pad: 12px 16px 16px;
  --vfc-win-title: 20px;
  --vfc-win-shadow: var(--vb-shadow-dialog);

  /* 3. Nombres heredados de la hoja anterior: ahora son alias de los tokens, hasta que B1 los retire. */
  --bg: var(--vb-bg); --card: var(--vb-surface); --ink: var(--vb-text); --muted: var(--vb-muted); --line: var(--vb-border);
  --brand: var(--vb-ink); --brand-2: var(--vb-blue); --ok: var(--vb-green); --warn: var(--vb-amber); --bad: var(--vb-red);
  --radius: var(--vb-radius-card); --shadow: var(--vfc-shadow-card);
}

/* 4. Base ------------------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { background: var(--vb-bg); scrollbar-color: var(--vb-scroll) transparent; }
body { margin: 0; font: var(--vb-fs)/var(--vb-lh) var(--vb-font); color: var(--vb-text); background: var(--vb-bg); min-height: 100vh; }
a { color: var(--vb-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
svg.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
/* Iconos del menú (B1, decisión 6): trazo fino 16–18 px delante de cada entrada. */
.sidebar nav a .ico, .sidebar nav summary .ico { width: 18px; height: 18px; margin-right: 8px; }
.sidebar nav .group a .ico { width: 16px; height: 16px; }
.bottombar .ico { width: 20px; height: 20px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--vb-surface); color: var(--vb-blue); padding: 6px 10px; border-radius: var(--vb-radius); z-index: 100; }
.skip-link:focus { left: 8px; }

/* 5. Armazón: menú lateral, barra superior, contenido, panel y barra inferior -------------------- */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
body.app .shell { margin-left: var(--vb-sidebar); }

.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--vb-sidebar); background: var(--vb-surface); border-right: 1px solid var(--vb-border); display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; z-index: 30; }
.sidebar .brand { height: var(--vb-topbar); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--vb-border); }
.sidebar .brand a, .topbar .brand-mobile { color: var(--vb-ink); text-decoration: none; min-width: 0; }
/* Marca (B1, decisión 7): sale de PRODUCT_NAME; primera palabra destacada (acento como el ERP) y el resto en pequeño. */
.brand-name { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.brand-name strong { font-weight: 700; font-size: 16px; letter-spacing: .1px; color: var(--vb-ink); }
.brand-name .accent { color: var(--vb-blue); }
.brand-name small { font-size: 11px; font-weight: 600; color: var(--vb-muted); }
.topbar .brand-mobile { display: none; }
.sidebar nav { flex: 1; padding: 4px 12px 12px; }
.sidebar nav a, .sidebar nav summary { display: block; min-height: var(--vb-control); line-height: var(--vb-control); padding: 0 10px; border-radius: var(--vb-radius-item); color: var(--vb-text); font-size: var(--vb-fs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar nav summary { display: flex; align-items: center; gap: 8px; }
.sidebar nav summary .label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar nav a:hover, .sidebar nav summary:hover { background: var(--vb-grey-soft); text-decoration: none; }
.sidebar nav a:link, .sidebar nav a:visited { color: var(--vb-text); } /* bloque 6: «Inicio» y el resto nunca en azul salvo la página activa */
.sidebar nav a[aria-current="page"] { background: var(--vfc-side-active-bg); color: var(--vfc-side-active-text); font-weight: 600; }
/* Módulos ocultos vistos por el equipo de plataforma (GOS-LANZ-1101, añadido): marca «En elaboración» en dos líneas. */
.sidebar nav a.wip-item { white-space: normal; line-height: 1.25; padding-top: 6px; padding-bottom: 6px; }
.sidebar nav a .wip { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--vb-amber-soft); color: var(--warn); font-size: 10px; font-weight: 600; line-height: 16px; vertical-align: middle; }
.sidebar nav details { margin-top: 2px; }
.sidebar nav summary { cursor: pointer; list-style: none; justify-content: space-between; font-weight: 500; user-select: none; }
.sidebar nav summary::-webkit-details-marker { display: none; }
.sidebar nav summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid var(--vb-muted); border-bottom: 1.6px solid var(--vb-muted); transform: rotate(45deg); margin: 0 4px 3px 0; transition: transform .15s; }
.sidebar nav details[open] > summary::after { transform: rotate(225deg); margin-bottom: -2px; }
.sidebar nav details[open] > summary { color: var(--vb-text); }
.sidebar nav .group a { padding-left: 22px; }
.sidebar .foot { flex: none; border-top: 1px solid var(--vb-border); padding: 10px 16px; min-width: 0; }
.sidebar .foot strong { display: block; color: var(--vb-text); font-size: var(--vb-fs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .foot .panel-actions { display: none; }
.sidebar .foot form { margin: 0; }
.sidebar .close { display: none; }

.topbar { position: sticky; top: 0; height: var(--vb-topbar); background: var(--vb-surface); border-bottom: 1px solid var(--vb-border); display: flex; align-items: center; gap: 10px; padding: 0 16px; z-index: 20; }
.topbar .crumbs { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--vb-text-2); font-size: var(--vb-fs); }
.topbar .crumbs strong { color: var(--vb-text); font-weight: 600; }
.topbar .company-switch { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--vb-text-2); font-size: var(--vb-fs); }
.topbar .company-switch .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.topbar form { margin: 0; }
.icon-btn { width: var(--vb-control); height: var(--vb-control); padding: 0; border: 1px solid var(--vb-border); background: var(--vb-surface); color: var(--vb-text); border-radius: var(--vb-radius); display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--vb-grey-soft); text-decoration: none; }
.icon-btn[aria-current="page"] { background: var(--vfc-side-active-bg); color: var(--vfc-side-active-text); border-color: var(--vb-blue-line); }
.icon-btn .count { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--vb-red); color: #fff; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; }
.icon-btn .count.zero { background: var(--vb-faint); }
.menu-toggle { display: none; }
.backdrop { display: none; }

main { flex: 1; width: 100%; max-width: calc(var(--vb-page-max) + 2 * var(--vfc-page-pad)); margin: 0 auto; padding: var(--vfc-page-pad); min-width: 0; }
body.auth main { max-width: 480px; }

.bottombar { display: none; }

@media (max-width: 1023.98px) {
  body.app .shell { margin-left: 0; }
  .sidebar { width: min(var(--vb-sidebar), 86vw); transform: translateX(-100%); transition: transform .18s ease; visibility: hidden; }
  body.menu-open .sidebar { transform: none; visibility: visible; box-shadow: var(--vb-shadow-pop); }
  body.menu-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 25; }
  body.menu-open { overflow: hidden; }
  .menu-toggle { display: inline-flex; }
  .sidebar .close { display: inline-flex; }
  main { padding: var(--vfc-page-pad-m); }
}
@media (max-width: 767.98px) {
  .bottombar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--vb-surface); border-top: 1px solid var(--vb-border); padding: 2px 4px calc(2px + env(safe-area-inset-bottom)); }
  .bottombar a, .bottombar button { flex: 1; min-height: var(--vb-touch); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: 11px/1.1 var(--vb-font); color: var(--vb-text-2); background: none; border: 0; border-radius: var(--vb-radius-item); padding: 4px 0; cursor: pointer; }
  .bottombar a:hover, .bottombar button:hover { text-decoration: none; background: var(--vb-grey-soft); }
  .bottombar a:link, .bottombar a:visited { color: var(--vb-text-2); }
  .bottombar [aria-current="page"] { color: var(--vb-blue); font-weight: 600; }
  main { padding-bottom: calc(var(--vb-touch) + 28px); }
  /* Por debajo de 768 px «Cambiar» y «Salir» viven solo en el panel del menú (la barra superior queda con ☰, migas y campana). */
  .topbar .session { display: none; }
  /* Móvil: «☰» + marca en la barra superior (las migas pasan al título de la página). */
  .topbar .crumbs { display: none; }
  .topbar .brand-mobile { display: inline-flex; flex: 1; min-width: 0; }
  .sidebar .foot .panel-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
}

/* htmx: reglas del indicador que la librería inyectaba como <style> en línea (includeIndicatorStyles: false) */
.htmx-indicator { opacity: 0; }
.htmx-request .htmx-indicator { opacity: 1; transition: opacity 200ms ease-in; }
.htmx-request.htmx-indicator { opacity: 1; transition: opacity 200ms ease-in; }

/* 7. Componentes heredados (se rehacen en B1; aquí solo cambian colores, letra y las rejillas) --- */
.badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 600; text-align: center; }
.badge.zero { background: var(--vb-faint); }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: var(--vfc-fs-title); font-weight: var(--vfc-fw-title); }
.page-head .sub { color: var(--vb-text-2); font-size: var(--vfc-fs-sub); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
/* Títulos de tarjeta y sección (B1, decisión 5): mayúscula inicial, 16 px seminegrita, #0F172A. */
:where(.card) h2 { margin: 0 0 12px; font-size: 16px; color: var(--vb-text); font-weight: 600; text-transform: none; letter-spacing: 0; }
.grid { display: grid; gap: var(--vb-gap); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.kpi { padding: 14px 16px; }
.kpi .label { color: var(--vb-muted); font-size: 12px; text-transform: none; letter-spacing: 0; }
.kpi .value { font-size: 24px; font-weight: 700; margin: 4px 0 2px; }
.kpi .delta { font-size: 12px; color: var(--muted); }
.kpi .delta.up { color: var(--ok); } .kpi .delta.down { color: var(--bad); }
.kpi.inverse .delta.up { color: var(--bad); } .kpi.inverse .delta.down { color: var(--ok); }
.two { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Conexiones (B1, decisión 8): las tarjetas de Google a ancho completo para que sus tablas no corten columnas. */
.grid.google { grid-template-columns: minmax(0, 1fr); }
/* GOS-CORR-NUCLEO-1015 (D2): a 1366 px tres tablas en fila obligaban a desplazar «Por canal» dentro de su tarjeta. */
@media (max-width: 1439.98px) { .three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1279.98px) { .three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023.98px) { .two, .three { grid-template-columns: minmax(0, 1fr); } }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--vfc-th-text); font-weight: 600; font-size: 12px; text-transform: none; letter-spacing: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:hover td { background: var(--vb-head-bg); }
.table-wrap { overflow-x: auto; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--vb-grey-soft); color: var(--vb-btn-text); }
.pill::first-letter { text-transform: uppercase; } /* bloque 6: estados («activa», «prueba»…) con mayúscula inicial en todas las píldoras */
.pill.subscribed { background: var(--vb-green-soft); color: var(--ok); }
.pill.churned { background: var(--vb-red-soft); color: var(--bad); }
.pill.activated { background: var(--vb-amber-soft); color: var(--warn); }
.pill.critical { background: var(--vb-red-soft); color: var(--bad); }
.pill.warning { background: var(--vb-amber-soft); color: var(--warn); }
.pill.info { background: var(--vb-blue-soft); color: var(--brand-2); }
.pill.off { background: var(--vb-grey-soft); color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; max-width: 100%; }
/* Un <select> o <textarea> con contenido ancho no puede ensanchar su etiqueta ni la página (390 px). */
textarea { font: inherit; max-width: 100%; padding: 7px 10px; border: 1px solid var(--vfc-field-border); border-radius: 8px; background: #fff; }
.filters label > input, .filters label > select, .filters label > textarea { min-width: 0; }
input, select { font: inherit; padding: 7px 10px; border: 1px solid var(--vfc-field-border); border-radius: 8px; background: #fff; min-width: 140px; max-width: 100%; }
input.short { min-width: 80px; width: 90px; }
/* Casillas y botones de opción (B1, añadido de José): tamaño fijo (sin el min-width de los campos de texto), en la misma
   línea que su etiqueta y alineados con ella; la etiqueta envuelve al control, así que es clicable. */
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; min-width: 0; max-width: none; padding: 0; margin: 0; flex: none; accent-color: var(--vb-blue); cursor: pointer; }
input[type="checkbox"] { border-radius: 4px; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { cursor: default; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; cursor: pointer; font-size: inherit; color: inherit; max-width: 100%; }
label:has(> input[type="checkbox"]:disabled), label:has(> input[type="radio"]:disabled) { cursor: default; }
.filters label:has(> input[type="checkbox"]), .filters label:has(> input[type="radio"]) { font-size: 12px; color: var(--muted); }
/* Botones (B1, decisión 4): secundario por defecto (blanco, borde #E3E8EF, texto #334155); UN principal azul por pantalla o tarjeta. */
button, .btn { font: inherit; padding: 8px 14px; border-radius: var(--vb-radius); border: 1px solid var(--vfc-btn-border); background: var(--vb-surface); color: var(--vb-btn-text); cursor: pointer; }
button:hover, .btn:hover { background: var(--vb-grey-soft); text-decoration: none; }
button.ghost, .btn.ghost { background: var(--vb-surface); color: var(--vb-btn-text); }
button.primary, .btn.primary { background: var(--vb-blue); border-color: var(--vb-blue); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--vb-blue-hover); border-color: var(--vb-blue-hover); }
button[disabled], .btn[disabled] { color: #94A3B8; background: #F8FAFC; border: 1px solid #E2E8F0; cursor: not-allowed; }
button.small { padding: 4px 10px; font-size: 12px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 24px; text-align: center; }
.login { max-width: 380px; margin: 40px auto; }
.login h1 { margin: 0 0 6px; font-size: 22px; }
.login form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.login input, .login select { width: 100%; }
.error { background: var(--vb-red-soft); color: var(--bad); padding: 10px 12px; border-radius: 8px; font-size: 13px; }
.notice { background: var(--vb-blue-soft); color: var(--brand); padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.notice.quota.warning { background: var(--vb-amber-soft); color: var(--warn); }
.notice.quota.exhausted { background: var(--vb-red-soft); color: var(--bad); }
.notice.quota a { color: inherit; text-decoration: underline; }
.month-usage.warning .kpi .value { color: var(--warn); }
.month-usage.exhausted .kpi .value { color: var(--bad); }
.quota-note { margin: 0; font-size: 13px; color: var(--vb-text-2); }
.quota-note.exhausted { color: var(--bad); }
.quota-note.warning { color: var(--warn); }
/* Tablas anchas (Envíos): las columnas prescindibles se ocultan por anchura; Estado siempre visible (GOS-H-CORR-1015). */
@media (max-width: 1439.98px) { .col-xl { display: none; } }
@media (max-width: 1279.98px) { .col-lg, .col-md { display: none; } }
.timeline { list-style: none; padding: 0; margin: 0; }
/* La línea de tiempo va dentro de .table-wrap: conserva una anchura mínima legible y se desplaza si la columna es más estrecha. */
.timeline { min-width: 520px; }
.timeline li { display: grid; grid-template-columns: 140px 130px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.timeline code { font-size: 12px; color: var(--muted); }
.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.segmented button { border: 0; border-radius: 0; background: #fff; color: var(--ink); padding: 6px 12px; }
.segmented button.active { background: var(--brand-2); color: #fff; }
.chart-box { position: relative; height: 280px; }
.chart-pending { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--vb-radius); }
.funnel { display: grid; gap: 8px; }
.funnel .step { display: grid; grid-template-columns: 110px minmax(0, 1fr) 60px; align-items: center; gap: 10px; }
.funnel .bar { display: block; width: 100%; height: 22px; appearance: none; -webkit-appearance: none; border: 0; background: var(--vb-grey-soft); border-radius: 6px; overflow: hidden; }
.funnel .bar::-webkit-progress-bar { background: var(--vb-grey-soft); border-radius: 6px; }
.funnel .bar::-webkit-progress-value { background: var(--brand-2); border-radius: 6px; }
.funnel .bar::-moz-progress-bar { background: var(--brand-2); border-radius: 6px; }
.funnel .step small { color: var(--muted); }
dl.props { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; margin: 0; }
dl.props dt { color: var(--muted); } dl.props dd { margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

ul.checklist{list-style:none;padding:0;margin:8px 0}
ul.checklist li{margin:4px 0}

.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.calendar .cal-head{font-size:12px;color:#6b7280;text-align:center;padding:4px}
.calendar .cal-day{min-height:96px;border:1px solid #e5e7eb;border-radius:6px;padding:4px;background:#fff;font-size:12px}
.calendar.week .cal-day{min-height:220px}
.calendar .cal-day.blank{border:none;background:transparent}
.calendar .cal-day.today{border-color:#2563eb;box-shadow:inset 0 0 0 1px #2563eb}
.calendar .cal-day.weekend{background:#fafafa}
.calendar .cal-date{font-weight:600;margin-bottom:4px}
.calendar .cal-item{display:block;margin:2px 0;padding:2px 4px;border-radius:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111827;text-decoration:none}
.calendar .cal-item.campaign{background:#dbeafe}
.calendar .cal-item.campaign.sent{background:#dcfce7}
.calendar .cal-item.campaign.cancelled,.calendar .cal-item.campaign.sent_partial{background:#fee2e2}
.calendar .cal-item.campaign.draft,.calendar .cal-item.campaign.pending_approval{background:#f3f4f6}
.calendar .cal-item.automation{background:#ede9fe}
.calendar .cal-item.keydate{background:#fef3c7}
.calendar .cal-item.keydate.platform{background:#fde68a}
.calendar .cal-item.warning{background:#fee2e2}

/* 8. Utilidades (sustituyen a los 258 estilos en línea; la CSP prohíbe style="…"). Van al final y con
   porque un estilo en línea ganaba a cualquier regla de componente: mismo resultado. */
.mt-8 { margin-top: 8px; } .mt-10 { margin-top: 10px; } .mt-12 { margin-top: 12px; } .mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; } .mt-18 { margin-top: 18px; } .mt-22 { margin-top: 22px; }
.mb-6 { margin-bottom: 6px; } .mb-8 { margin-bottom: 8px; } .mb-10 { margin-bottom: 10px; } .mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; } .mb-16 { margin-bottom: 16px; }
.stack { flex-direction: column; align-items: stretch; }
.w-100 { width: 100%; } .w-140 { width: 140px; } .w-150 { width: 150px; } .w-160 { width: 160px; } .w-260 { width: 260px; } .w-320 { width: 320px; }
.maxw-480 { max-width: 480px; } .maxw-520 { max-width: 520px; } .maxw-560 { max-width: 560px; } .maxw-640 { max-width: 640px; }
.minw-180 { min-width: 180px; } .minw-260 { min-width: 260px; }
.d-inline { display: inline; } .grow { flex: 1; } .row-6 { display: flex; gap: 6px; align-items: center; }
.fs-12 { font-size: 12px; } .fs-14 { font-size: 14px; } .fs-16 { font-size: 16px; } .fs-120 { font-size: 1.2em; } .fs-92 { font-size: 0.92em; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } .font-inherit { font-family: inherit; }
.figure-22 { font-size: 22px; font-weight: 700; margin: 6px 0; } .bold { font-weight: 700; }
.pre-wrap { white-space: pre-wrap; } .list-pad { padding-left: 18px; line-height: 1.7; } .bg-soft { background: #fafafa; }
.cols-10-10 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols-12-10 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols-13-10 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols-14-10 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols-10-12 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.cols-10-16 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.cols-auto-420 { grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }
@media (max-width: 1023.98px) {
  .cols-10-10, .cols-12-10, .cols-13-10, .cols-14-10, .cols-10-12, .cols-10-16, .cols-auto-420 { grid-template-columns: minmax(0, 1fr); }
}
.segmented a.active, .segmented .btn.active { background: var(--brand-2); color: #fff; }
