/* Intranet v3 · se carga DESPUÉS de app.css. Reutiliza sus variables y añade el tema oscuro. */
:root {
  --paper: #ececee;
  --line: #dcdce0;
  --line-soft: #f0f0f2;
  --topbar: rgba(236, 236, 238, 0.9);
  --row-hover: #fbf4f4;
  --accent-text: #b71720;
  --accent-num: #e01b27;
  --theme-on: #17181a;
  --sync-text: var(--ink-soft);
  --st-new: #e01b27;
  --st-contacted: oklch(0.6 0.14 255);
  --st-following: oklch(0.76 0.14 75);
  --st-interested: oklch(0.65 0.13 150);
  --st-neutral: #8b8d93;
  --cm-side-w: 248px;
  --cm-rail-w: 64px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #111214;
  --panel: #17181a;
  --panel-alt: #1c1d20;
  --line: #26282d;
  --line-soft: #1f2024;
  --ink: #e9eaec;
  --ink-soft: #c7cad1;
  --muted: #8b9099;
  --muted-soft: #9a9fa8;
  --sync-text: #fff;
  --topbar: rgba(17, 18, 20, 0.88);
  --row-hover: rgba(224, 27, 39, 0.08);
  --accent-text: #ff8a92;
  --accent-num: #ff5a64;
  --accent-soft: rgba(224, 27, 39, 0.14);
  --theme-on: #2a2c30;
  --success-bg: rgba(34, 197, 94, 0.14);   --success-fg: #4ade80;
  --info-bg: rgba(59, 130, 246, 0.16);     --info-fg: #93c5fd;
  --neutral-bg: #222327;                   --neutral-fg: #c7cad1;
  --danger-bg: rgba(224, 27, 39, 0.16);    --danger-fg: #ff8a92;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
html { background: var(--paper); }
body { margin: 0; font-family: "Instrument Sans", system-ui, sans-serif; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a:hover { color: var(--accent-text); }

/* Keep legacy text and inverse surfaces readable without recoloring action buttons. */
html[data-theme="dark"] .text-button,
html[data-theme="dark"] .danger-link,
html[data-theme="dark"] .panel-head a,
html[data-theme="dark"] .subtle-link,
html[data-theme="dark"] .back,
html[data-theme="dark"] .compact-list > a:hover strong,
html[data-theme="dark"] .compact-list > a:hover b,
html[data-theme="dark"] .status-new,
html[data-theme="dark"] .messages p.error { color: var(--accent-text); }
html[data-theme="dark"] .messages p.success { background: var(--success-bg); color: var(--success-fg); }
html[data-theme="dark"] .linked-object a,
html[data-theme="dark"] .blog-empty-state > span,
html[data-theme="dark"] .blog-form input[type="file"]::file-selector-button { background: var(--panel-alt); color: var(--ink); }
html[data-theme="dark"] .blog-profile-guide { background: var(--panel-alt); }
html[data-theme="dark"] .metric-accent { background: linear-gradient(135deg, var(--panel), var(--panel-alt)); }

/* ---------- Layout ---------- */
.cm-layout { display: flex; min-height: 100vh; }
.cm-shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-main { width: 100%; max-width: 1440px; padding: 28px 28px 56px; margin: 0; }

/* ---------- Sidebar ---------- */
.cm-side {
  position: sticky; top: 0; height: 100vh; flex: 0 0 auto; z-index: 30;
  width: var(--cm-side-w); transition: width .2s ease; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px; padding: 20px 12px 14px;
  background: linear-gradient(180deg, rgba(224,27,39,.2), rgba(224,27,39,0) 24%), #16171a;
  color: #c7cad1; border-right: 1px solid #26282d;
}
html[data-sidebar="collapsed"] .cm-side { width: var(--cm-rail-w); }
html.cm-resizing, html.cm-resizing * { user-select: none; cursor: col-resize !important; }
html.cm-resizing .cm-side { transition: none; }
.cm-fade { transition: opacity .15s; }
html[data-sidebar="collapsed"] .cm-side .cm-fade { opacity: 0; pointer-events: none; }

.cm-brand { display: flex; align-items: center; gap: 12px; height: 40px; flex: 0 0 40px; color: #fff; text-decoration: none; background: transparent; }
.cm-brand:hover { color: #fff; }
.cm-brand img { width: 40px; height: 40px; flex: 0 0 40px; display: block; background: transparent; }
.cm-brand strong { font-family: Sora, sans-serif; font-size: 15px; line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; }

.cm-nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; display: flex; flex-direction: column; gap: 8px; }
.cm-nav::-webkit-scrollbar { display: none; }
.cm-group { display: flex; flex-direction: column; gap: 2px; }
.cm-group-toggle {
  position: relative; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border: 0; background: none; font: inherit; font-size: 11px; font-weight: 600; color: #9a9fa8;
  white-space: nowrap; text-align: left; cursor: pointer;
}
.cm-group-toggle:hover { color: #c7cad1; }
.cm-group-toggle .cm-label { flex: 1; transition: opacity .15s; }
.cm-group-toggle svg { flex: 0 0 10px; transition: transform .15s, opacity .15s; }
.cm-group.is-folded .cm-group-toggle svg { transform: rotate(-90deg); }
.cm-group-toggle::before { content: ""; position: absolute; left: 10px; top: 50%; width: 20px; height: 1px; background: rgba(255,255,255,.14); opacity: 0; transition: opacity .15s; }
html[data-sidebar="collapsed"] .cm-group-toggle { pointer-events: none; }
html[data-sidebar="collapsed"] .cm-group-toggle::before { opacity: 1; }
html[data-sidebar="collapsed"] .cm-group-toggle .cm-label,
html[data-sidebar="collapsed"] .cm-group-toggle svg { opacity: 0; }
.cm-group.is-folded > a:not(.active) { display: none; }
html[data-sidebar="collapsed"] .cm-group.is-folded > a { display: flex; }

.cm-nav a {
  position: relative; display: flex; align-items: center; height: 36px; flex: 0 0 36px;
  border: 1px solid transparent; border-radius: 10px; color: #c7cad1; text-decoration: none;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
}
.cm-nav a:hover { color: #fff; border-color: rgba(224,27,39,.28); background: rgba(224,27,39,.12); }
.cm-nav a.active { color: #fff; border-color: rgba(224,27,39,.35); background: linear-gradient(135deg, rgba(224,27,39,.26), rgba(255,255,255,.03)); }
.cm-vehicle-heading { display: flex; align-items: center; gap: 2px; }
.cm-vehicle-heading > a { flex: 1; min-width: 0; }
.cm-vehicle-toggle { flex: 0 0 32px; display: grid; place-items: center; width: 32px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #c7cad1; cursor: pointer; }
.cm-vehicle-toggle:hover { background: rgba(224,27,39,.12); color: #fff; }
.cm-vehicle-toggle:focus-visible { outline: 2px solid #ff8a92; outline-offset: -2px; }
.cm-vehicle-toggle svg { transition: transform .15s; }
.cm-vehicle-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.cm-subnav { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px; }
.cm-subnav[hidden] { display: none; }
.cm-subnav a { padding: 0 10px 0 38px; font-size: 12.5px; }
html[data-sidebar="collapsed"] .cm-vehicle-heading { flex-direction: column; }
html[data-sidebar="collapsed"] .cm-vehicle-heading > a { width: 100%; flex: 0 0 36px; }
html[data-sidebar="collapsed"] .cm-subnav { display: none; }
.cm-ico { width: 38px; flex: 0 0 38px; display: grid; place-items: center; color: #8b9099; }
.cm-nav a.active .cm-ico { color: #ff8a92; }
.cm-nav a .cm-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: opacity .15s; }
html[data-sidebar="collapsed"] .cm-nav a .cm-label { opacity: 0; }
.cm-count { font-family: "DM Mono", monospace; font-size: 11px; color: #ff8a92; padding-right: 10px; }
.cm-pip { position: absolute; top: 6px; left: 24px; width: 7px; height: 7px; border-radius: 50%; background: #e01b27; box-shadow: 0 0 0 2px #16171a; opacity: 0; transition: opacity .15s; }
html[data-sidebar="collapsed"] .cm-pip { opacity: 1; }

.cm-user { display: flex; align-items: center; gap: 12px; height: 44px; flex: 0 0 44px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.cm-avatar { width: 32px; height: 32px; flex: 0 0 32px; margin-left: 4px; border-radius: 50%; background: #2a2c30; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.cm-user-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cm-user-text strong { font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-user-text small { font-size: 12px; color: #8b9099; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-user form { margin: 0; }
.cm-logout { border: 0; background: none; padding: 4px; font: inherit; font-size: 12px; font-weight: 600; color: #ff8a92; cursor: pointer; white-space: nowrap; }
.cm-logout:hover { color: #fff; }
.cm-resize { position: absolute; top: 0; right: 0; width: 6px; height: 100%; cursor: col-resize; z-index: 2; }
.cm-resize:hover, html.cm-resizing .cm-resize { background: rgba(224,27,39,.35); }

.cm-tip {
  position: fixed; left: calc(var(--cm-rail-w) + 8px); top: 0; transform: translateY(-50%); z-index: 60; pointer-events: none;
  display: none; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px;
  background: #26282d; border: 1px solid #34363c; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.cm-tip.is-visible { display: flex; }
.cm-tip b { font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; color: #ff8a92; }

/* ---------- Topbar ---------- */
.cm-top {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  padding: 12px 28px; background: var(--topbar); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.cm-iconbtn { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--ink-soft); cursor: pointer; }
.cm-iconbtn:hover { border-color: rgba(224,27,39,.5); }
.cm-menu { display: none; }
.cm-search { position: relative; flex: 1 1 280px; max-width: 460px; display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.cm-search:focus-within { border-color: rgba(224,27,39,.5); }
.cm-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 9px 0; font: inherit; font-size: 14px; color: var(--ink); }
.cm-search kbd { font-family: "DM Mono", monospace; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.cm-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.cm-tools a { padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.cm-tools a:hover { color: var(--ink); background: var(--panel); }
.cm-tools a.active { color: var(--accent-text); background: var(--accent-soft); }
.cm-top-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.cm-sync { display: flex; align-items: center; gap: 14px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.cm-sync-state { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cm-sync-state strong { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--sync-text); white-space: nowrap; }
.cm-sync-state p { margin: 0; font-size: 12px; color: var(--muted); }
.cm-sync-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.cm-sync.is-running .cm-sync-dot { background: #e0a31b; animation: cm-pulse 1s ease-in-out infinite; }
@keyframes cm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.cm-sync-btn { border: 1px solid rgba(224,27,39,.5); border-radius: 9px; background: #6c0f14; color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.cm-sync-btn:hover { background: #e01b27; color: #fff; }
.cm-sync-btn:disabled { opacity: .5; cursor: default; }
.cm-theme { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.cm-theme button { display: flex; align-items: center; gap: 6px; border: 0; border-radius: 7px; padding: 5px 10px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cm-theme button[aria-pressed="true"] { background: var(--theme-on); color: #fff; }
.cm-swatch { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; }

/* ---------- Dashboard ---------- */
.cm-dash { display: flex; flex-direction: column; gap: 20px; }
.cm-page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.cm-page-head h1 { margin: 0; font-family: Sora, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.cm-page-head span { font-size: 13.5px; color: var(--muted); }
.cm-page-head span::first-letter { text-transform: uppercase; }

.cm-metrics { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.cm-metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 -1px -1px 0; }
.cm-metric { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.cm-metric:hover { background: var(--panel-alt); color: var(--ink); }
.cm-metric span { font-size: 12.5px; color: var(--muted); }
.cm-metric strong { font-family: "DM Mono", monospace; font-size: 34px; font-weight: 500; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cm-metric.is-accent strong { color: var(--accent-num); }
.cm-metric small { font-size: 12px; color: var(--muted-soft); }
.cm-metric small.is-alert { color: var(--accent-text); }

.cm-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cm-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 20px; }
.cm-panel-head h2 { margin: 0; font-family: Sora, sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.cm-pipe { flex: 1 1 200px; max-width: 420px; display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.cm-pipe-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--muted); }
.cm-pipe-legend li { display: flex; align-items: center; gap: 6px; }
.cm-pipe-legend b { font-family: "DM Mono", monospace; font-weight: 500; color: var(--ink); }
.cm-link { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent-text); text-decoration: none; }

.cm-tabs { display: flex; flex-wrap: wrap; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.cm-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; margin-bottom: -1px; padding: 0 0 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.cm-tabs button:hover { color: var(--ink); }
.cm-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: #e01b27; }
.cm-tabs button span { font-weight: 500; color: var(--muted-soft); }

.cm-table-scroll { overflow-x: auto; }
.cm-leads { min-width: 860px; --cols: 60px minmax(0,1.6fr) minmax(0,1fr) 130px 140px 120px; }
.cm-thead, .cm-row { display: grid; grid-template-columns: var(--cols); gap: 16px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); }
.cm-thead { padding-top: 10px; padding-bottom: 10px; font-size: 12px; color: var(--muted-soft); }
.cm-row { font-size: 13.5px; color: var(--ink); text-decoration: none; }
.cm-row:hover { background: var(--row-hover); color: var(--ink); }
.cm-row[hidden] { display: none; }
.cm-row time { font-family: "DM Mono", monospace; font-size: 12.5px; color: var(--muted); }
.cm-cell-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cm-cell-main strong { font-weight: 600; white-space: nowrap; }
.cm-cell-main span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-soft { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-alert { color: var(--accent-text); }
.cm-status { display: flex; align-items: center; gap: 8px; }
.cm-empty { margin: 0; padding: 36px 20px; text-align: center; font-size: 14px; color: var(--muted); }

.cm-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 2px; display: inline-block; background: var(--st-neutral); }
.is-new { background: var(--st-new); }
.is-contacted { background: var(--st-contacted); }
.is-following { background: var(--st-following); }
.is-interested { background: var(--st-interested); }
.is-not_interested, .is-closed, .is-duplicate, .is-spam { background: var(--st-neutral); }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
  html[data-sidebar="collapsed"] .cm-vehicle-heading { flex-direction: row; }
  html[data-sidebar="collapsed"] .cm-vehicle-heading > a { flex: 1; }
  html[data-sidebar="collapsed"] .cm-subnav:not([hidden]) { display: flex; }
  .cm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px !important; transform: translateX(-100%); transition: transform .2s ease; }
  .cm-side.is-open { transform: none; }
  html[data-sidebar="collapsed"] .cm-side .cm-fade,
  html[data-sidebar="collapsed"] .cm-nav a .cm-label,
  html[data-sidebar="collapsed"] .cm-group-toggle .cm-label,
  html[data-sidebar="collapsed"] .cm-group-toggle svg { opacity: 1; pointer-events: auto; }
  html[data-sidebar="collapsed"] .cm-group-toggle::before, html[data-sidebar="collapsed"] .cm-pip { opacity: 0; }
  html[data-sidebar="collapsed"] .cm-group-toggle { pointer-events: auto; }
  .cm-resize, .cm-collapse { display: none; }
  .cm-menu { display: grid; }
  .cm-top { padding: 10px 16px; }
  .cm-main { padding: 20px 16px 48px; }
  .cm-sync-state { display: none; }
}

/* Acciones de escritorio del listado de solicitudes: las exportaciones Arturo,
   los tres accesos a CSV y la URL de exportación no caben ni aportan en un
   teléfono, así que se ocultan en el mismo corte en que la tabla pasa a
   tarjetas. */
@media (max-width: 760px) {
  .hide-on-mobile { display: none; }

  /* La acción de envío queda siempre a mano, como la barra de sincronización
     lo está arriba: seleccionar recorre la lista entera y el botón no puede
     quedarse atrás en el scroll. Por debajo del cajón del menú (z-index 30) y
     de su fondo (15), para que el menú abierto la tape. */
  .lead-send-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 14;
    margin: 0;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--topbar);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }

  .lead-send-bar .button {
    width: 100%;
  }

  /* Hueco para que la barra no tape la última tarjeta ni la navegación. */
  .cm-main:has(.lead-send-bar) {
    padding-bottom: 96px;
  }
}

/* El recuento de seleccionados se lee bajo la acción de envío, igual en móvil
   que en escritorio. */
.lead-selected-count { margin: 0.35rem 0 1rem; }

/* ---------- Listados en móvil: de tabla a tarjetas ---------- */
/* Cada fila pasa a ser una tarjeta y cada celda muestra el nombre de su
   columna, que responsive-tables.js copia a data-label desde la cabecera
   renderizada.

   El corte está en 760px, no en los 900px del cajón del menú: entre ambos
   anchos todavía cabe media tabla y la tarjeta desperdiciaría la mitad de la
   pantalla, así que una tablet conserva la tabla con su desplazamiento. */
@media (max-width: 760px) {
  /* Only once the cells carry their names: if the script never ran, the table
     keeps its own scroll container instead of dragging the whole page. */
  .table-wrap:has(table[data-labelled]) {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .table-wrap table[data-labelled],
  .analytics-table-wrap table[data-labelled] {
    display: block;
    min-width: 0;
  }

  /* Los nombres de columna viven ya en cada celda. */
  table[data-labelled] thead {
    display: none;
  }

  table[data-labelled] tbody,
  table[data-labelled] tbody tr,
  table[data-labelled] tbody td {
    display: block;
  }

  table[data-labelled] tbody tr {
    position: relative;
    margin-bottom: 12px;
    padding: 4px 16px 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
  }

  table[data-labelled] tbody tr:last-child {
    margin-bottom: 0;
  }

  table[data-labelled] tbody td {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }

  table[data-labelled] tbody td[data-label]::before {
    content: attr(data-label);
    grid-column: 1;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.6;
  }

  /* Cells that stack several elements (a date over its time) would otherwise
     send every sibling after the first back under the column name. */
  table[data-labelled] tbody td[data-label] > * {
    grid-column: 2;
  }

  /* Primera celda con nombre: encabeza la tarjeta, sin línea superior. */
  table[data-labelled] tbody td[data-label]:first-of-type,
  table[data-labelled] tbody td[data-label-none] + td[data-label] {
    border-top: 0;
  }

  /* Casillas de selección: sin nombre que mostrar, fuera del flujo de filas. */
  table[data-labelled] tbody td[data-label-none] {
    display: flex;
    gap: 12px;
    padding: 10px 0 0;
    border-top: 0;
  }

  /* El aviso de "no hay resultados" no es una tarjeta. */
  table[data-labelled] tbody tr[data-row-notice] {
    padding: 0;
    border: 0;
    background: none;
  }

  table[data-labelled] tbody td[colspan] {
    display: block;
    padding: 24px 16px;
    border-top: 0;
    text-align: center;
  }
}
