/* ==========================================================================
   YCOS - Panel de administración
   Colores tomados del logo: violeta (#9130FB) y cian (#13E4F4) sobre azul tinta.
   - El violeta (oscurecido para que el texto blanco se lea bien) es el color de las ACCIONES.
   - El cian solo se usa sobre fondos oscuros (menú, ingreso): sobre blanco no tiene contraste suficiente.
   - Sora: títulos y cifras. IBM Plex Sans: todo lo demás (tiene cifras de ancho fijo para las tablas).
   ========================================================================== */
:root {
  --ink: #0b1128;           /* menú lateral, ingreso */
  --ink-2: #141c3a;
  --ink-line: rgb(255 255 255 / 0.09);
  --ink-text: #a9b0cc;
  --ink-text-dim: #8c93b0;
  --cyan: #13e4f4;
  --violet-logo: #9130fb;

  --paper: #f4f5fa;         /* fondo del contenido */
  --surface: #fff;
  --text: #121733;
  --muted: #5e6483;
  --line: #e1e3ee;
  --line-strong: #cdd1e1;

  --accent: #7426e0;        /* violeta de acción (6.8:1 con blanco) */
  --accent-hover: #5d17bf;
  --accent-soft: #f1eafe;

  --ok: #11795a;
  --ok-soft: #e4f5ee;
  --warn: #8a5300;
  --warn-soft: #fff1d6;
  --danger: #b8233f;
  --danger-soft: #fdecef;

  --r-lg: 14px;             /* ventanas */
  --r-md: 12px;             /* paneles y tablas */
  --r-sm: 8px;              /* botones y campos */
  --sidebar-w: 252px;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Sora", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 0.9rem; line-height: 1.2; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--surface); border-color: #efc2cc; color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 5px 11px; font-size: 0.82rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: 0.88rem; cursor: pointer; }
.link-btn:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Estructura ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-main { flex: 1; min-width: 0; }
.admin-content { padding: 36px 40px 56px; max-width: 1240px; }

.admin-sidebar {
  width: var(--sidebar-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 24px 14px 16px; background: var(--ink); color: #fff;
}
.admin-brand { padding: 0 12px 28px; }
.admin-brand img { display: block; width: 96px; height: auto; }
.admin-brand small { display: block; margin-top: 8px; color: var(--ink-text-dim); font-size: 0.78rem; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--r-sm);
  color: var(--ink-text); font-weight: 500; font-size: 0.92rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.admin-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav a:hover { background: rgb(255 255 255 / 0.05); color: #fff; }
/* Sección activa: fondo apenas más claro y una barra cian, como la luz del botón de encendido del logo. */
.admin-nav a.active { background: var(--ink-2); color: #fff; font-weight: 600; }
.admin-nav a.active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan);
}
.admin-nav a.active svg { color: var(--cyan); }
.admin-nav a:focus-visible { outline-color: var(--cyan); }
.admin-nav .nav-sep { height: 1px; margin: 12px 12px; background: var(--ink-line); }

.admin-account { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 12px 12px; border-top: 1px solid var(--ink-line); min-width: 0; }
.admin-account .who { min-width: 0; line-height: 1.25; }
.admin-account .who strong { display: block; font-size: 0.88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-account .who span { display: block; color: var(--ink-text-dim); font-size: 0.76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--ink-2); border: 1px solid rgb(255 255 255 / 0.14); color: #fff;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 600;
}
.admin-logout-btn {
  margin: 4px 0 0; padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer; text-align: left;
  background: none; border: 0; color: var(--ink-text); font-weight: 500; font-size: 0.86rem;
}
.admin-logout-btn:hover { background: rgb(255 255 255 / 0.05); color: #fff; }
.admin-logout-btn:focus-visible { outline-color: var(--cyan); }

/* La barra superior solo existe en pantallas chicas (botón de menú + logo). */
.admin-topbar { display: none; }
.mobile-sidebar-toggle { background: none; border: 0; padding: 8px; margin-left: -8px; border-radius: var(--r-sm); color: #fff; cursor: pointer; }
.mobile-sidebar-toggle svg { display: block; width: 24px; height: 24px; }
.mobile-sidebar-toggle:focus-visible { outline-color: var(--cyan); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 55; background: rgb(11 17 40 / 0.6); }
body.sidebar-open { overflow: hidden; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title { font-size: 1.75rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.page-subtitle { margin-top: 6px; color: var(--muted); font-size: 0.94rem; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); font-weight: 500; font-size: 0.86rem; }
.back-link:hover { color: var(--accent); }

@media (max-width: 900px) {
  .admin-sidebar { position: fixed; z-index: 60; left: 0; transform: translateX(-100%); transition: transform 0.25s ease; width: min(var(--sidebar-w), 86vw); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-nav a { padding: 12px 12px; }
  .admin-topbar {
    display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 16px; position: sticky; top: 0; z-index: 20;
    background: var(--ink); color: #fff;
  }
  .admin-topbar img { display: block; width: 76px; height: auto; }
  .admin-content { padding: 24px 16px 48px; }
  .page-title { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) { .admin-sidebar, .admin-nav a, .btn { transition: none; } }

/* ---------- Paneles y métricas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2 { margin-bottom: 0; }

/* Las métricas son UNA sola tira dividida (no tarjetas sueltas): se leen como un renglón de cifras.
   El "gap" de 1px deja ver el fondo de la tira y dibuja las divisiones, incluso cuando las celdas pasan de línea. */
.stats {
  display: flex; flex-wrap: wrap; gap: 1px; margin-bottom: 20px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md);
}
.stat { flex: 1 1 170px; padding: 18px 22px 20px; background: var(--surface); }
.stat__label { color: var(--muted); font-size: 0.84rem; }
.stat__value {
  margin-top: 6px; font-family: var(--font-display); font-size: 2rem; font-weight: 600; line-height: 1.1;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stat__note { margin-top: 4px; color: var(--muted); font-size: 0.8rem; }
/* Solo se colorea la cifra cuando hay algo que atender (inicio.js marca el tipo solo si el valor es mayor a 0). */
.stat--warn .stat__value { color: var(--warn); }
.stat--danger .stat__value { color: var(--danger); }
.stat--warn .stat__label::before, .stat--danger .stat__label::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; background: currentColor;
}
.stat--warn .stat__label::before { background: #d68a00; }
.stat--danger .stat__label::before { background: var(--danger); }
.stat--ok .stat__value { color: var(--text); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-2 > .card + .card { margin-top: 0; }
/* Separación entre una grilla de paneles y lo que viene antes o después (ej.: ficha de sitio -> Módulos). */
.grid-2 + .card, .card + .grid-2, .grid-2 + .grid-2 { margin-top: 20px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .stat { flex-basis: 140px; padding: 14px 16px 16px; } .stat__value { font-size: 1.6rem; } .card { padding: 18px; } }

/* ---------- Barra de herramientas y tablas ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.toolbar input, .toolbar select {
  min-height: 40px; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); min-width: 0;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--accent); }
.toolbar input[type="search"] { flex: 1 1 240px; max-width: 380px; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 640px; font-variant-numeric: tabular-nums; }
.table th {
  text-align: left; padding: 11px 16px; background: #fafbfd; border-bottom: 1px solid var(--line);
  font-size: 0.8rem; font-weight: 500; color: var(--muted); white-space: nowrap;
}
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.is-clickable { cursor: pointer; }
.table tbody tr.is-clickable:hover td { background: #f8f6fe; }
.table .cell-main { font-weight: 600; }
.table .cell-sub { color: var(--muted); font-size: 0.8rem; }
.table .cell-actions { text-align: right; white-space: nowrap; }
.table-empty { text-align: center; color: var(--muted); padding: 40px 16px !important; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.pager div { display: flex; gap: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 0.76rem; font-weight: 500; line-height: 1.6; white-space: nowrap; background: #eef0f6; color: var(--muted);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--accent-soft); color: var(--accent-hover); }

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 16px; }
.form-group label, .form-label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.86rem; }
.form-group input:not([type="checkbox"]), .form-group select, .form-group textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:hover:not(:disabled), .form-group select:hover:not(:disabled), .form-group textarea:hover:not(:disabled) { border-color: #b3b9cf; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(116 38 224 / 0.16); }
.form-group input:disabled, .form-group select:disabled, .form-group textarea:disabled { background: var(--paper); color: var(--muted); }
.form-group textarea { min-height: 88px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-hint { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.checkbox-label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.9rem; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .form-group input, .form-group select, .form-group textarea { transition: none; } }

.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: 0.88rem; margin-bottom: 16px; border: 1px solid transparent; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f3c6d0; }
.alert-info { background: var(--accent-soft); color: var(--accent-hover); border-color: #dccbfb; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #f2d9a2; }

/* ---------- Ventanas y avisos ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgb(11 17 40 / 0.55); }
.modal-box {
  width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; padding: 26px;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 24px 64px rgb(11 17 40 / 0.3);
}
.modal-box.modal-wide { max-width: 680px; }
.modal-box h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.toast-stack { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.toast-alert {
  max-width: 100%; opacity: 0; transform: translateY(10px);
  padding: 11px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 500; font-size: 0.9rem;
  box-shadow: 0 10px 30px rgb(11 17 40 / 0.25); border-left: 3px solid var(--cyan);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast-alert.show { opacity: 1; transform: none; }
.toast-error { background: var(--danger); border-left-color: #ffd0da; }
@media (prefers-reduced-motion: reduce) { .toast-alert { transition: none; } }

.secret-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--ink); color: #fff; }
.secret-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.05rem; letter-spacing: 0.04em; word-break: break-all; }

/* ---------- Detalle de sitio ---------- */
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 0.92rem; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.module-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.module-row:last-child { border-bottom: 0; }
.module-row small { display: block; color: var(--muted); font-size: 0.8rem; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch-slider { position: absolute; inset: 0; border-radius: 999px; background: #c6cbdc; transition: background-color 0.2s ease; }
.switch-slider::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(11 17 40 / 0.2); transition: transform 0.2s ease; }
.switch input:checked + .switch-slider { background: var(--accent); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
.switch input:focus-visible + .switch-slider { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .switch-slider { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) { .switch-slider, .switch-slider::before { transition: none; } }

.role-item strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.role-item ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.85rem; }
.role-item li { margin-bottom: 3px; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }

.activity-item { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.activity-item:first-child { padding-top: 0; }
.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-item time { flex: none; color: var(--muted); font-size: 0.8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Contraseñas ---------- */
.pw-field { position: relative; }
.pw-field input { padding-right: 48px !important; }
.pw-toggle {
  position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer;
}
.pw-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-toggle .icon-eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .icon-eye { display: none; }
.pw-toggle[aria-pressed="true"] .icon-eye-off { display: block; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--accent); }
.pw-toggle:hover { background: var(--accent-soft); }

/* ---------- Ingreso ----------
   Izquierda: la marca, con el símbolo de encendido de la "O" del logo en grande (se dibuja una vez al cargar).
   Derecha: el formulario, sin tarjeta, sobre el fondo claro. En el celular la marca pasa a ser una franja arriba. */
.login { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; min-height: 100dvh; }
.login__brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 44px 48px; background: var(--ink); color: #fff;
}
.login__brand img { position: relative; z-index: 1; display: block; width: 132px; height: auto; }
.login__tagline { position: relative; z-index: 1; max-width: 22ch; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.login__tagline span { display: block; margin-top: 10px; font-family: var(--font); font-size: 0.9rem; font-weight: 400; letter-spacing: 0; color: var(--ink-text); }
.login__power {
  position: absolute; z-index: 0; left: 50%; top: 50%; width: min(64%, 360px); height: auto; transform: translate(-50%, -54%);
}
.login__power path {
  fill: none; stroke: url(#powerGradient); stroke-width: 13; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 0; animation: power-draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) both;
}
.login__power path + path { animation-delay: 0.9s; animation-duration: 0.6s; }
@keyframes power-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .login__power path { animation: none; } }

.login__panel { display: flex; align-items: center; justify-content: center; padding: 48px 24px; background: var(--paper); }
.login__form { width: 100%; max-width: 380px; }
.login__form h1 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.login-lead { margin: 8px 0 28px; color: var(--muted); }
.login__form .btn { min-height: 46px; margin-top: 6px; font-size: 0.95rem; }
.login__form .form-group input { min-height: 46px; }

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login__brand { min-height: 180px; padding: 28px 24px; }
  .login__brand img { width: 104px; }
  .login__tagline { font-size: 1.15rem; max-width: 18ch; }
  .login__tagline span { display: none; }
  .login__power { left: auto; right: -22px; width: 148px; transform: translateY(-50%); }
  .login__panel { align-items: flex-start; padding: 32px 20px 48px; }
}

/* ---- Utilidades de las páginas (sin estilos en línea, para poder usar una CSP estricta) ---- */
.modal-intro { margin-bottom: 16px; }
.mt-12 { margin-top: 12px; }
.sub-title { font-size: 0.95rem; font-weight: 600; margin: 6px 0 8px; }
.sub-title--spaced { margin: 16px 0 4px; }
.card--spaced { margin-top: 20px; }
.table-card--flat { border: 0; border-radius: 0; }
.table-card--flat .table td { padding-left: 0; }
.table-card--flat .table td.cell-actions, .table-card--flat .table td:last-child { padding-right: 0; }
.table-card--tight { margin-top: 6px; }
.table--compact { min-width: 0; }
.form-hint--tight { margin: -8px 0 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row--spaced { margin: 16px 0; }
.account-grid { max-width: 560px; }

.page-title:focus { outline: none; } /* el título recibe el foco solo para anunciar el cambio de sección */
@media (max-width: 520px) { .activity-item { flex-direction: column; gap: 2px; } }
