/* ==========================================================================
   Campo Brokers — componentes compartidos (.cbt-*)
   --------------------------------------------------------------------------
   Lee los tokens de cb-tokens.css. Reglas de la casa (25-oct-2026):
     · Sin degradados, brillos, sombras de color ni MAYÚSCULAS espaciadas.
     · Un solo botón .cbt-btn--primary por vista; en filas, secundario o enlace.
     · El estado se dice con texto; el color (punto de 6px) solo lo acompaña.
     · Cifras con .cbt-num (tabulares). Lote y VIN con .cbt-id (mono).
   Convivencia:
     · Sin @layer: las dos hojas de Tailwind del panel van fuera de capa o
       dentro de una, y una regla en capa perdería contra ellas.
     · Cada componente declara su letra, borde, fondo e interlínea: en la web
       hay preflight global de Tailwind y en el panel la hoja de Trezo pone
       márgenes a p y h1-h4 sin capa.
     · NUNCA «modal», «overlay» ni «backdrop» en un nombre de clase: la
       plantilla del panel les fuerza z-index:99000 !important.
   ========================================================================== */

/* ---------- Ámbito: neutraliza los estilos de elemento de la plantilla ---------- */
.cbt-scope {
	font-family: var(--cbt-font, 'Archivo', system-ui, sans-serif);
	font-size: var(--cbt-t-14, 14px);
	line-height: var(--cbt-l-14, 20px);
	color: var(--cbt-ink, #23271A);
	-webkit-font-smoothing: antialiased;
}
.cbt-scope p,
.cbt-scope h1, .cbt-scope h2, .cbt-scope h3, .cbt-scope h4,
.cbt-scope ul, .cbt-scope ol, .cbt-scope dl, .cbt-scope dd, .cbt-scope figure {
	margin: 0;
	line-height: inherit;
	letter-spacing: normal;
}
.cbt-scope ul, .cbt-scope ol { padding: 0; list-style: none; }
.cbt-scope *, .cbt-scope *::before, .cbt-scope *::after { box-sizing: border-box; }
.cbt-scope a { color: inherit; }

/* ---------- Tipografía ---------- */
.cbt-h1 {
	margin: 0;
	font-family: var(--cbt-font-title, 'Space Grotesk', sans-serif);
	font-size: 22px; line-height: 28px; font-weight: 600;
	letter-spacing: -.01em;
	color: var(--cbt-ink, #23271A);
}
.cbt-h2 {
	margin: 0;
	font-family: var(--cbt-font-title, 'Space Grotesk', sans-serif);
	font-size: 17px; line-height: 24px; font-weight: 600;
	letter-spacing: -.005em;
	color: var(--cbt-ink, #23271A);
}
.cbt-h3 {
	margin: 0;
	font-family: var(--cbt-font, 'Archivo', sans-serif);
	font-size: var(--cbt-t-14, 14px); line-height: var(--cbt-l-14, 20px); font-weight: 600;
	color: var(--cbt-ink, #23271A);
}
.cbt-text-2 { color: var(--cbt-muted, #62655A); }
.cbt-text-3 { color: var(--cbt-faint, #8C8F80); }
.cbt-small { font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px); }
.cbt-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.cbt-strong { font-weight: 600; }
.cbt-id {
	font-family: var(--cbt-mono, 'JetBrains Mono', monospace);
	font-size: 12px; line-height: 16px; letter-spacing: 0;
	color: var(--cbt-muted, #62655A);
}
.cbt-link {
	color: var(--cbt-link, #5A6826);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	background: none; border: 0; padding: 0; cursor: pointer;
	font: inherit; font-weight: 500;
}
.cbt-link:hover { color: var(--cbt-ink, #23271A); }

/* ---------- Encabezado de página ---------- */
.cbt-page-header {
	display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between;
	gap: 12px 20px;
	margin: 0 0 16px;
}
.cbt-page-header__main { min-width: 0; flex: 1 1 320px; }
.cbt-page-header__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cbt-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0;
	margin-top: 4px;
	font-size: var(--cbt-t-13, 13px); line-height: var(--cbt-l-13, 18px);
	color: var(--cbt-muted, #62655A);
}
.cbt-meta > * { display: inline-flex; align-items: center; }
.cbt-meta > * + *::before {
	content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%;
	background: var(--cbt-line-strong, #C9CBBE); margin: 0 10px;
}

/* ---------- Botones ---------- */
.cbt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 36px; padding: 0 14px;
	border: 1px solid var(--cbt-line-strong, #C9CBBE);
	border-radius: var(--cbt-r-6, 6px);
	background: var(--cbt-surface, #fff);
	color: var(--cbt-ink, #23271A);
	font-family: var(--cbt-font, 'Archivo', sans-serif);
	font-size: var(--cbt-t-13, 13px); line-height: 1; font-weight: 600;
	letter-spacing: 0; text-transform: none;
	text-decoration: none; white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .12s, border-color .12s, color .12s;
	-webkit-appearance: none; appearance: none;
	margin: 0;
}
.cbt-btn:hover { background: var(--cbt-hover, #F7F8F3); border-color: var(--cbt-faint, #8C8F80); color: var(--cbt-ink, #23271A); }
.cbt-btn:active { background: var(--cbt-sunken, #EDEEE6); }
.cbt-btn:focus-visible,
.cbt-link:focus-visible,
.cbt-tab:focus-visible,
.cbt-seg__opt:focus-visible {
	outline: 2px solid var(--cbt-focus, #5A6826);
	outline-offset: 2px;
}
.cbt-btn--primary {
	background: var(--cbt-accent, #BF5618);
	border-color: var(--cbt-accent, #BF5618);
	color: #fff;
}
.cbt-btn--primary:hover { background: var(--cbt-accent-hover, #A3470F); border-color: var(--cbt-accent-hover, #A3470F); color: #fff; }
.cbt-btn--primary:active { background: var(--cbt-accent-press, #8A3C0D); border-color: var(--cbt-accent-press, #8A3C0D); }
.cbt-btn--ghost { background: transparent; border-color: transparent; color: var(--cbt-ink-2, #4A4E3F); }
.cbt-btn--ghost:hover { background: var(--cbt-hover, #F7F8F3); border-color: transparent; }
.cbt-btn--sm { height: 30px; padding: 0 10px; font-size: var(--cbt-t-12, 12px); }
.cbt-btn--lg { height: 42px; padding: 0 18px; font-size: var(--cbt-t-14, 14px); }
.cbt-btn--block { width: 100%; }
.cbt-btn[disabled],
.cbt-btn[aria-disabled="true"] {
	background: var(--cbt-sunken, #EDEEE6);
	border-color: var(--cbt-line, #E3E5DC);
	color: var(--cbt-faint, #8C8F80);
	cursor: not-allowed;
}
.cbt-btn svg { width: 16px; height: 16px; flex: none; }
.cbt-btn--sm svg { width: 14px; height: 14px; }

/* ---------- Superficies ---------- */
.cbt-card {
	background: var(--cbt-surface, #fff);
	border: 1px solid var(--cbt-line, #E3E5DC);
	border-radius: var(--cbt-r-8, 8px);
	box-shadow: none;
}
.cbt-card__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--cbt-line, #E3E5DC);
}
.cbt-card__body { padding: 16px; }
.cbt-section { margin-top: 24px; }
.cbt-section > .cbt-h2 + * { margin-top: 10px; }

/* ---------- Franja de cifras ---------- */
.cbt-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	background: var(--cbt-surface, #fff);
	border: 1px solid var(--cbt-line, #E3E5DC);
	border-radius: var(--cbt-r-8, 8px);
	overflow: hidden;
}
/* Cada celda pinta su filete izquierdo y superior y se mete 1px bajo el borde
   de la caja: así las líneas salen bien tanto en una fila como en 2×2 o 1×4. */
.cbt-stat {
	padding: 12px 16px;
	border-left: 1px solid var(--cbt-line, #E3E5DC);
	border-top: 1px solid var(--cbt-line, #E3E5DC);
	margin: -1px 0 0 -1px;
	min-width: 0;
}
.cbt-stat__label { display: block; font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px); color: var(--cbt-muted, #62655A); }
.cbt-stat__value {
	display: block; margin-top: 4px;
	font-size: var(--cbt-t-20, 20px); line-height: var(--cbt-l-20, 26px); font-weight: 600;
	font-variant-numeric: tabular-nums; color: var(--cbt-ink, #23271A);
}
.cbt-stat__note { display: block; margin-top: 2px; font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px); color: var(--cbt-faint, #8C8F80); }
.cbt-stat__note.is-warn { color: var(--cbt-warn, #93590B); }
.cbt-stat__note.is-neg { color: var(--cbt-neg, #B42318); }

/* ---------- Estado: punto + texto ---------- */
.cbt-status {
	display: inline-flex; align-items: center; gap: 7px;
	font-size: var(--cbt-t-13, 13px); line-height: var(--cbt-l-13, 18px);
	color: var(--cbt-ink, #23271A);
	white-space: nowrap;
}
.cbt-status::before {
	content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
	background: var(--cbt-neutral-dot, #9DA08F);
}
.cbt-status.is-done::before { background: var(--cbt-done, #6B7A2E); }
.cbt-status.is-action::before { background: var(--cbt-accent, #BF5618); }
.cbt-status.is-progress::before { background: var(--cbt-warn-dot, #C98A12); }
.cbt-status.is-problem::before { background: var(--cbt-neg, #B42318); }
.cbt-status.is-problem { color: var(--cbt-neg-ink, #7A1A12); }
.cbt-status.is-neutral { color: var(--cbt-muted, #62655A); }
.cbt-status__detail { display: block; margin-top: 2px; padding-left: 13px; font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px); color: var(--cbt-muted, #62655A); white-space: normal; }

/* Etiqueta neutra (procedencia, tipo de título…). Nunca de color. */
.cbt-tag {
	display: inline-flex; align-items: center;
	height: 20px; padding: 0 6px;
	border: 1px solid var(--cbt-line, #E3E5DC);
	border-radius: var(--cbt-r-4, 4px);
	background: var(--cbt-surface, #fff);
	color: var(--cbt-ink-2, #4A4E3F);
	font-size: var(--cbt-t-12, 12px); line-height: 1; font-weight: 500;
	letter-spacing: 0; text-transform: none; white-space: nowrap;
}

/* ---------- Avisos ---------- */
.cbt-alert {
	display: flex; align-items: flex-start; gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--cbt-line, #E3E5DC);
	border-radius: var(--cbt-r-6, 6px);
	background: var(--cbt-surface, #fff);
	color: var(--cbt-ink, #23271A);
	font-size: var(--cbt-t-13, 13px); line-height: var(--cbt-l-13, 18px);
}
.cbt-alert__icon { flex: none; width: 18px; height: 18px; margin-top: 0; }
.cbt-alert__body { flex: 1; min-width: 0; }
.cbt-alert__title { display: block; font-weight: 600; }
.cbt-alert__actions { flex: none; display: flex; gap: 8px; align-items: center; align-self: center; }
.cbt-alert--warn { background: var(--cbt-warn-bg, #FBF3E1); border-color: var(--cbt-warn-line, #EBD3A1); color: var(--cbt-warn-ink, #6B4307); }
.cbt-alert--neg { background: var(--cbt-neg-bg, #FDF1EF); border-color: var(--cbt-neg-line, #F4C7C0); color: var(--cbt-neg-ink, #7A1A12); }
.cbt-alert--pos { background: var(--cbt-pos-bg, #EEF3E4); border-color: var(--cbt-pos-line, #CFDDB4); color: var(--cbt-pos, #3B6A1E); }
.cbt-alert--info { background: var(--cbt-hover, #F7F8F3); }
@media (max-width: 640px) {
	.cbt-alert { flex-wrap: wrap; }
	.cbt-alert__actions { width: 100%; padding-left: 28px; }
}

/* ---------- Pestañas ---------- */
.cbt-tabs {
	display: flex; gap: 22px;
	border-bottom: 1px solid var(--cbt-line, #E3E5DC);
	overflow-x: auto; scrollbar-width: none;
	margin: 0; padding: 0;
}
.cbt-tabs::-webkit-scrollbar { display: none; }
.cbt-tab {
	position: relative;
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 0; margin: 0 0 -1px;
	border: 0; border-bottom: 2px solid transparent;
	background: none;
	color: var(--cbt-muted, #62655A);
	font-family: var(--cbt-font, 'Archivo', sans-serif);
	font-size: var(--cbt-t-14, 14px); line-height: var(--cbt-l-14, 20px); font-weight: 500;
	letter-spacing: 0; text-transform: none;
	white-space: nowrap; text-decoration: none; cursor: pointer;
	box-shadow: none; border-radius: 0;
}
.cbt-tab:hover { color: var(--cbt-ink, #23271A); }
.cbt-tab.is-active,
.cbt-tab[aria-selected="true"] { color: var(--cbt-ink, #23271A); font-weight: 600; border-bottom-color: var(--cbt-ink, #23271A); }
.cbt-tab__count { font-variant-numeric: tabular-nums; color: var(--cbt-faint, #8C8F80); font-weight: 500; }
.cbt-tab.is-active .cbt-tab__count { color: var(--cbt-muted, #62655A); }

/* ---------- Control segmentado (filtros) ---------- */
.cbt-seg {
	display: inline-flex; padding: 2px; gap: 2px;
	background: var(--cbt-sunken, #EDEEE6);
	border-radius: var(--cbt-r-6, 6px);
}
.cbt-seg__opt {
	height: 28px; padding: 0 10px;
	border: 1px solid transparent; border-radius: var(--cbt-r-4, 4px);
	background: transparent; color: var(--cbt-muted, #62655A);
	font-family: var(--cbt-font, 'Archivo', sans-serif);
	font-size: var(--cbt-t-13, 13px); font-weight: 500; line-height: 1;
	cursor: pointer; white-space: nowrap;
}
.cbt-seg__opt:hover { color: var(--cbt-ink, #23271A); }
.cbt-seg__opt.is-active,
.cbt-seg__opt[aria-pressed="true"] { background: var(--cbt-surface, #fff); border-color: var(--cbt-line, #E3E5DC); color: var(--cbt-ink, #23271A); font-weight: 600; }

/* ---------- Tabla ---------- */
.cbt-table-wrap {
	background: var(--cbt-surface, #fff);
	border: 1px solid var(--cbt-line, #E3E5DC);
	border-radius: var(--cbt-r-8, 8px);
	overflow-x: auto;
}
.cbt-table {
	width: 100%; border-collapse: collapse; border-spacing: 0;
	font-size: var(--cbt-t-13, 13px); line-height: var(--cbt-l-13, 18px);
	color: var(--cbt-ink, #23271A);
	margin: 0;
}
.cbt-table th {
	padding: 9px 14px;
	background: var(--cbt-hover, #F7F8F3);
	border-bottom: 1px solid var(--cbt-line, #E3E5DC);
	color: var(--cbt-muted, #62655A);
	font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px); font-weight: 500;
	text-align: left; text-transform: none; letter-spacing: 0; white-space: nowrap;
}
.cbt-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--cbt-sunken, #EDEEE6);
	vertical-align: top;
	background: transparent;
}
.cbt-table tbody tr:last-child td { border-bottom: 0; }
.cbt-table tbody tr:hover td { background: var(--cbt-hover, #F7F8F3); }
.cbt-table .cbt-num,
.cbt-table th.cbt-num { text-align: right; }
.cbt-table td.cbt-num { white-space: nowrap; }
.cbt-table__sub { display: block; margin-top: 2px; font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px); color: var(--cbt-faint, #8C8F80); }
.cbt-table tr.is-expanded td { background: var(--cbt-hover, #F7F8F3); border-bottom-color: transparent; }
.cbt-table tr.cbt-row-detail td { padding-top: 0; background: var(--cbt-hover, #F7F8F3); }
.cbt-table__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 10px 14px;
	border-top: 1px solid var(--cbt-line, #E3E5DC);
	font-size: var(--cbt-t-12, 12px); color: var(--cbt-muted, #62655A);
}

/* Lista densa (alternativa a la tabla cuando cada fila tiene mucho que decir) */
.cbt-list { background: var(--cbt-surface, #fff); border: 1px solid var(--cbt-line, #E3E5DC); border-radius: var(--cbt-r-8, 8px); }
.cbt-list__row { padding: 14px 16px; border-top: 1px solid var(--cbt-sunken, #EDEEE6); }
.cbt-list__row:first-child { border-top: 0; }
.cbt-list__head {
	padding: 9px 16px; background: var(--cbt-hover, #F7F8F3);
	border-bottom: 1px solid var(--cbt-line, #E3E5DC);
	border-radius: var(--cbt-r-8, 8px) var(--cbt-r-8, 8px) 0 0;
	font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px); color: var(--cbt-muted, #62655A);
}

/* ---------- Libro de cuentas ---------- */
.cbt-ledger { margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.cbt-ledger__row {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	padding: 4px 0;
	font-size: var(--cbt-t-13, 13px); line-height: var(--cbt-l-13, 18px);
}
.cbt-ledger__row dt, .cbt-ledger__label { color: var(--cbt-ink-2, #4A4E3F); margin: 0; font-weight: 400; }
.cbt-ledger__row dd, .cbt-ledger__value { margin: 0; text-align: right; white-space: nowrap; }
.cbt-ledger__row.is-sub dt, .cbt-ledger__row.is-sub .cbt-ledger__label { color: var(--cbt-muted, #62655A); padding-left: 12px; }
.cbt-ledger__row.is-total {
	margin-top: 4px; padding-top: 8px;
	border-top: 1px solid var(--cbt-line-strong, #C9CBBE);
	font-weight: 600;
}
.cbt-ledger__row.is-total dt, .cbt-ledger__row.is-total .cbt-ledger__label { color: var(--cbt-ink, #23271A); font-weight: 600; }
.cbt-ledger__row.is-extra dd, .cbt-ledger__row.is-extra .cbt-ledger__value { color: var(--cbt-neg, #B42318); }

/* ---------- Hitos (línea de tiempo) ---------- */
.cbt-steps {
	display: flex; flex-wrap: wrap; gap: 6px 0;
	margin: 0; padding: 0; list-style: none;
	font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px);
	color: var(--cbt-muted, #62655A);
}
.cbt-step { display: inline-flex; align-items: center; gap: 6px; }
.cbt-step + .cbt-step::before {
	content: ""; display: inline-block; width: 18px; height: 1px;
	background: var(--cbt-line-strong, #C9CBBE); margin: 0 8px 0 2px;
}
.cbt-step__dot {
	flex: none; width: 9px; height: 9px; border-radius: 50%;
	border: 1.5px solid var(--cbt-line-strong, #C9CBBE); background: var(--cbt-surface, #fff);
}
.cbt-step.is-done { color: var(--cbt-ink-2, #4A4E3F); }
.cbt-step.is-done .cbt-step__dot { background: var(--cbt-done, #6B7A2E); border-color: var(--cbt-done, #6B7A2E); }
.cbt-step.is-current { color: var(--cbt-ink, #23271A); font-weight: 600; }
.cbt-step.is-current .cbt-step__dot { border-color: var(--cbt-accent, #BF5618); box-shadow: 0 0 0 2px var(--cbt-accent-soft, #F6E3D6); }
.cbt-step.is-locked { color: var(--cbt-faint, #8C8F80); }
.cbt-steps--vertical { flex-direction: column; gap: 8px; }
.cbt-steps--vertical .cbt-step + .cbt-step::before { display: none; }

/* ---------- Formularios ---------- */
.cbt-field { display: flex; flex-direction: column; gap: 6px; }
.cbt-label { font-size: var(--cbt-t-13, 13px); line-height: var(--cbt-l-13, 18px); font-weight: 600; color: var(--cbt-ink, #23271A); }
.cbt-help { font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px); color: var(--cbt-muted, #62655A); }
.cbt-error { font-size: var(--cbt-t-12, 12px); line-height: var(--cbt-l-12, 16px); color: var(--cbt-neg, #B42318); font-weight: 500; }
.cbt-input, .cbt-select {
	width: 100%; height: 38px; padding: 0 12px;
	border: 1px solid var(--cbt-line-strong, #C9CBBE);
	border-radius: var(--cbt-r-6, 6px);
	background: var(--cbt-surface, #fff);
	color: var(--cbt-ink, #23271A);
	font-family: var(--cbt-font, 'Archivo', sans-serif);
	font-size: var(--cbt-t-14, 14px); line-height: normal;
	box-shadow: none; outline: none; margin: 0;
	-webkit-appearance: none; appearance: none;
}
.cbt-select {
	padding-right: 32px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362655A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 10px center; background-size: 14px;
}
.cbt-input::placeholder { color: var(--cbt-faint, #8C8F80); }
.cbt-input:hover, .cbt-select:hover { border-color: var(--cbt-faint, #8C8F80); }
.cbt-input:focus, .cbt-select:focus { border-color: var(--cbt-focus, #5A6826); box-shadow: 0 0 0 3px rgba(90, 104, 38, .16); }
.cbt-input[aria-invalid="true"] { border-color: var(--cbt-neg, #B42318); }
.cbt-input--mono { font-family: var(--cbt-mono, 'JetBrains Mono', monospace); letter-spacing: .02em; }
.cbt-search { position: relative; }
.cbt-search .cbt-input { padding-left: 34px; }
.cbt-search__icon { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--cbt-faint, #8C8F80); pointer-events: none; }

/* ---------- Vacío ---------- */
.cbt-empty {
	padding: 32px 20px; text-align: center;
	color: var(--cbt-muted, #62655A);
	font-size: var(--cbt-t-13, 13px); line-height: var(--cbt-l-13, 18px);
}
.cbt-empty__title { display: block; color: var(--cbt-ink, #23271A); font-weight: 600; font-size: var(--cbt-t-14, 14px); margin-bottom: 4px; }
.cbt-empty .cbt-btn { margin-top: 12px; }

/* ---------- Diálogo y aviso flotante ---------- */
.cbt-dialog {
	position: fixed; inset: 0; z-index: var(--cbt-z-dialog, 99100);
	display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(35, 39, 26, .45);
}
.cbt-dialog[hidden] { display: none; }
.cbt-dialog__box {
	position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto;
	background: var(--cbt-surface, #fff);
	border-radius: var(--cbt-r-dialog, 12px);
	box-shadow: var(--cbt-shadow-modal);
	padding: 20px;
}
.cbt-toast {
	position: fixed; z-index: var(--cbt-z-toast, 99200);
	left: 50%; bottom: 24px; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 12px;
	max-width: calc(100vw - 32px);
	padding: 10px 14px;
	background: var(--cbt-ink, #23271A); color: #fff;
	border-radius: var(--cbt-r-6, 6px);
	box-shadow: var(--cbt-shadow-pop);
	font-family: var(--cbt-font, 'Archivo', sans-serif);
	font-size: var(--cbt-t-13, 13px); line-height: var(--cbt-l-13, 18px);
}
.cbt-toast .cbt-link { color: #fff; }

/* ---------- Carga ---------- */
.cbt-skeleton {
	display: block; height: 12px; border-radius: var(--cbt-r-4, 4px);
	background: var(--cbt-sunken, #EDEEE6);
}

/* ---------- Iconos (cb_icon) ---------- */
.cbt-icon { display: inline-block; flex: none; vertical-align: -0.15em; }

/* ---------- Utilidades mínimas ---------- */
.cbt-row { display: flex; align-items: center; gap: 8px; }
.cbt-stack > * + * { margin-top: 16px; }
.cbt-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
	.cbt-scope *, .cbt-btn, .cbt-tab { transition: none !important; animation: none !important; }
}
