@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* ---- color ---- */
  --r-bg: #eef1f6;
  --r-ambient-1: rgba(51, 85, 209, 0.11);
  --r-ambient-2: rgba(22, 150, 160, 0.09);
  --r-surface: rgba(255, 255, 255, 0.8);
  --r-surface-solid: #ffffff;
  --r-surface-2: #f5f7fb;
  --r-ink: #131a2a;
  --r-ink-2: #4f586c;
  --r-ink-3: #646d80;
  --r-line: rgba(19, 26, 42, 0.08);
  --r-line-strong: rgba(19, 26, 42, 0.15);
  --r-fill: rgba(19, 26, 42, 0.06);
  --r-fill-2: rgba(19, 26, 42, 0.035);
  --r-brand: #3355d1;
  --r-brand-ink: #2a48b8;
  --r-brand-soft: rgba(51, 85, 209, 0.1);
  --r-on-brand: #ffffff;
  --r-critical: #c9302f;
  --r-critical-soft: rgba(201, 48, 47, 0.1);
  --r-high: #a35404;
  --r-high-soft: rgba(217, 115, 13, 0.12);
  --r-medium: #8a6500;
  --r-medium-soft: rgba(196, 150, 0, 0.13);
  --r-low: #5d7290;
  --r-low-soft: rgba(93, 114, 144, 0.12);
  --r-ok: #177a44;
  --r-ok-soft: rgba(23, 122, 68, 0.1);
  --r-scrim: rgba(12, 16, 26, 0.28);
  --r-toast: rgba(19, 26, 42, 0.92);
  --r-on-toast: #ffffff;
  --r-shadow-1: 0 1px 2px rgba(19, 26, 42, 0.04), 0 2px 10px rgba(19, 26, 42, 0.04);
  --r-shadow-2: 0 2px 6px rgba(19, 26, 42, 0.05), 0 12px 32px rgba(19, 26, 42, 0.08);
  --r-shadow-3: 0 8px 24px rgba(19, 26, 42, 0.1), 0 32px 80px rgba(19, 26, 42, 0.16);
  --r-glass-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.6);

  /* ---- tipografía ---- */
  --r-font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r-font-display: "Manrope", "Figtree", -apple-system, "Segoe UI", sans-serif;
  --r-font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* ---- medidas ---- */
  --r-space-1: 4px; --r-space-2: 8px; --r-space-3: 12px; --r-space-4: 16px; --r-space-5: 20px;
  --r-space-6: 24px; --r-space-7: 32px; --r-space-8: 40px; --r-space-9: 56px;
  --r-radius-xs: 8px; --r-radius-sm: 10px; --r-radius-md: 14px; --r-radius-lg: 20px; --r-radius-xl: 28px; --r-radius-pill: 999px;
  --r-gutter: clamp(16px, 2.2vw, 40px);
  --r-sidebar-w: 264px;
  --r-appbar-h: 64px;
  --r-inspector-w: 420px;
  --r-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}
/* Claro por defecto. El oscuro se activa solo con data-theme="dark" en <html> (elección del usuario,
   o "Automática", que lo resuelve con JS según el sistema). */
:root[data-theme="dark"] {
  --r-bg: #0b0e14; --r-ambient-1: rgba(84, 110, 255, 0.16); --r-ambient-2: rgba(30, 170, 180, 0.1);
  --r-surface: rgba(24, 28, 39, 0.74); --r-surface-solid: #161a24; --r-surface-2: #1c2130;
  --r-ink: #eef1f7; --r-ink-2: #a4adbf; --r-ink-3: #8590a5;
  --r-line: rgba(255, 255, 255, 0.07); --r-line-strong: rgba(255, 255, 255, 0.14); --r-fill: rgba(255, 255, 255, 0.08); --r-fill-2: rgba(255, 255, 255, 0.045);
  --r-brand: #6b86ff; --r-brand-ink: #93a7ff; --r-brand-soft: rgba(107, 134, 255, 0.16); --r-on-brand: #0b0e14;
  --r-critical: #ff6b63; --r-critical-soft: rgba(255, 107, 99, 0.15); --r-high: #ffa24a; --r-high-soft: rgba(255, 162, 74, 0.15);
  --r-medium: #e9c046; --r-medium-soft: rgba(233, 192, 70, 0.15); --r-low: #93a8c6; --r-low-soft: rgba(147, 168, 198, 0.15);
  --r-ok: #4fd18b; --r-ok-soft: rgba(79, 209, 139, 0.14);
  --r-scrim: rgba(0, 0, 0, 0.5); --r-toast: rgba(238, 241, 247, 0.95); --r-on-toast: #131a2a;
  --r-shadow-1: 0 0 0 1px rgba(255, 255, 255, 0.04); --r-shadow-2: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 32px rgba(0, 0, 0, 0.35);
  --r-shadow-3: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 32px 80px rgba(0, 0, 0, 0.55); --r-glass-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  color-scheme: dark;
}

/* ---------- base ---------- */
[x-cloak] { display: none !important; }
.r-root, .r-root * { box-sizing: border-box; }
.r-root { margin: 0; min-height: 100%; color: var(--r-ink); font: 400 15px/1.5 var(--r-font); -webkit-font-smoothing: antialiased;
  background: radial-gradient(1200px 700px at 8% -10%, var(--r-ambient-1), transparent 60%), radial-gradient(900px 600px at 100% 0%, var(--r-ambient-2), transparent 55%), var(--r-bg);
  background-attachment: fixed; }
:where(.r-root) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.r-root :focus-visible { outline: 2px solid var(--r-brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .r-root *, .r-root *::before, .r-root *::after { animation: none !important; transition: none !important; } }

/* tipografía */
.r-display { margin: 0; font: 800 clamp(28px, 2.4vw, 38px)/1.1 var(--r-font-display); letter-spacing: -0.025em; text-wrap: balance; }
.r-title-1 { margin: 0; font: 700 22px/1.25 var(--r-font-display); letter-spacing: -0.015em; }
.r-title-2 { margin: 0; font: 700 17px/1.3 var(--r-font-display); letter-spacing: -0.01em; }
.r-headline { font-weight: 600; font-size: 15px; }
.r-body { font-size: 15px; }
.r-callout { font-size: 14px; color: var(--r-ink-2); }
.r-caption { font-size: 12.5px; color: var(--r-ink-2); }
.r-overline { font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--r-ink-3); }
.r-num { font-family: var(--r-font-display); font-variant-numeric: tabular-nums; }
.r-mono { font-family: var(--r-font-mono); font-size: 0.9em; }
.r-muted { color: var(--r-ink-2); }
.r-link { all: unset; cursor: pointer; color: var(--r-brand-ink); font-weight: 500; }
.r-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- marco de la aplicación ----------
   Header corporativo a todo el ancho (r-appbar) + sidebar del módulo flotante a la izquierda
   (r-sidebar, plegable) + contenido fluido (r-main > r-crumbs + r-page). El menú general y el
   perfil se abren como off-canvas flotantes (r-offcanvas). Pensado para una plataforma con
   muchos módulos, no para un panel de una sola lista de links. */
.r-app { min-height: 100vh; }
.r-appbar { position: fixed; top: 0; left: 0; right: 0; z-index: 35; height: var(--r-appbar-h); display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: var(--r-space-5); padding: env(safe-area-inset-top, 0px) var(--r-space-5) 0 var(--r-space-4);
  background: var(--r-surface); border-bottom: 1px solid var(--r-line); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
.r-appbar__start, .r-appbar__end { display: flex; align-items: center; gap: var(--r-space-2); min-width: 0; }
.r-appbar__end { justify-content: flex-end; gap: var(--r-space-3); }
.r-appbar__center { min-width: 0; width: 100%; max-width: 640px; justify-self: center; }
.r-appbar__start > * { flex: none; }
.r-appbar__divider { width: 1px; height: 28px; background: var(--r-line-strong); margin: 0 var(--r-space-2); }
.r-logo { all: unset; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 8px; border-radius: var(--r-radius-md); }
.r-logo:hover { background: var(--r-fill-2); }
.r-logo__mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--r-brand); box-shadow: 0 6px 16px -4px var(--r-brand); }
.r-logo__name { font: 800 17px/1 var(--r-font-display); letter-spacing: -0.02em; }
/* Logo en el header: assets/logos/symplwork-logo.png ("symplwork by soluturing"). No hay versión clara:
   en el tema oscuro se pasa a blanco con un filtro. */
.r-logo__img { display: block; height: 26px; width: auto; }
:root[data-theme="dark"] .r-logo__img { filter: brightness(0) invert(1); }
.r-module-switch { all: unset; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 10px; border-radius: var(--r-radius-pill); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--r-ink); min-width: 0; }
.r-module-switch:hover { background: var(--r-fill-2); }
.r-module-switch__icon { display: grid; place-items: center; color: var(--r-ink-2); flex: none; }
.r-module-switch__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-account { all: unset; display: inline-flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: var(--r-radius-pill); cursor: pointer; }
.r-account:hover { background: var(--r-fill-2); }
.r-account__name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.r-account__role { font-size: 12px; color: var(--r-ink-2); }

.r-sidebar { position: fixed; top: calc(var(--r-appbar-h) + 12px); bottom: 12px; left: 12px; width: var(--r-sidebar-w); z-index: 30; display: flex; flex-direction: column; gap: 2px;
  padding: 16px 12px 12px; border-radius: var(--r-radius-xl); background: var(--r-surface); box-shadow: var(--r-shadow-2), var(--r-glass-edge);
  -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); overflow-y: auto; overflow-x: hidden; transition: width .25s var(--r-ease); }
.r-sidebar__head { display: flex; align-items: center; gap: 12px; padding: 4px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--r-line); }
.r-sidebar__icon { display: grid; place-items: center; flex: none; width: 26px; color: var(--r-ink); }
.r-sidebar__title { font: 700 15px/1.2 var(--r-font-display); }
.r-sidebar__sub { font-size: 12px; color: var(--r-ink-2); line-height: 1.3; }
.r-sidebar__foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--r-line); }
.r-app[data-sidebar="collapsed"] .r-sidebar { width: 76px; }
.r-app[data-sidebar="collapsed"] .r-sidebar :is(.r-nav__text, .r-nav__count, .r-nav__label, .r-sidebar__text) { display: none; }
.r-app[data-sidebar="collapsed"] .r-sidebar .r-nav__item { justify-content: center; padding: 8px 0; }
.r-app[data-sidebar="collapsed"] .r-sidebar__head { justify-content: center; padding-inline: 0; }
.r-app[data-sidebar="none"] .r-sidebar { display: none; }

.r-main { min-width: 0; padding-top: var(--r-appbar-h); margin-left: calc(var(--r-sidebar-w) + 24px); display: flex; flex-direction: column; transition: margin-left .25s var(--r-ease); }
.r-app[data-sidebar="collapsed"] .r-main { margin-left: calc(76px + 24px); }
.r-app[data-sidebar="none"] .r-main { margin-left: 12px; }
.r-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 18px var(--r-gutter) 0; font-size: 13.5px; color: var(--r-ink-2); }
.r-crumbs button { all: unset; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.r-crumbs button:hover { background: var(--r-fill-2); color: var(--r-ink); }
.r-crumbs [aria-current="page"] { color: var(--r-ink); font-weight: 600; padding: 2px 6px; }
.r-crumbs svg { color: var(--r-ink-3); }
.r-page { width: 100%; padding: 14px var(--r-gutter) var(--r-space-9); display: flex; flex-direction: column; gap: var(--r-space-7); }
.r-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--r-space-4); flex-wrap: wrap; }
.r-page-head__sub { margin: 6px 0 0; color: var(--r-ink-2); font-size: 15px; }
.r-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--r-space-5); }
.r-col-3 { grid-column: span 3; } .r-col-4 { grid-column: span 4; } .r-col-5 { grid-column: span 5; } .r-col-6 { grid-column: span 6; }
.r-col-7 { grid-column: span 7; } .r-col-8 { grid-column: span 8; } .r-col-9 { grid-column: span 9; } .r-col-12 { grid-column: span 12; }
@media (max-width: 1280px) { .r-col-3 { grid-column: span 6; } .r-col-4, .r-col-5, .r-col-7, .r-col-8 { grid-column: span 12; } }
@media (max-width: 640px) { .r-col-3, .r-col-6, .r-col-9 { grid-column: span 12; } }
.r-stack { display: flex; flex-direction: column; gap: var(--r-space-3); min-width: 0; }
.r-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--r-space-2); min-width: 0; }
.r-split { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: var(--r-space-6); align-items: start; }
.r-split__aside { position: sticky; top: calc(var(--r-appbar-h) + 20px); }
@media (max-width: 1100px) { .r-split { grid-template-columns: minmax(0, 1fr); } .r-split__aside { position: static; } }

/* ---------- navegación ---------- */
.r-nav__label { padding: 16px 12px 6px; }
.r-nav__item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 8px 12px; border-radius: var(--r-radius-md);
  cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--r-ink-2); transition: background .15s, color .15s; }
.r-nav__item svg { flex: none; }
.r-nav__item:hover { background: var(--r-fill-2); color: var(--r-ink); }
.r-nav__item[aria-current="page"] { background: var(--r-brand-soft); color: var(--r-brand-ink); font-weight: 600; }
.r-nav__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-nav__count { margin-left: auto; font: 700 12px/1 var(--r-font-display); }
.r-nav__count--alert { color: #fff; background: var(--r-critical); padding: 4px 8px; border-radius: var(--r-radius-pill); }

/* off-canvas flotante (menú general a la izquierda, perfil a la derecha) */
.r-offcanvas { position: fixed; z-index: 60; top: 12px; bottom: 12px; left: 12px; width: min(400px, calc(100vw - 24px)); display: flex; flex-direction: column;
  border-radius: var(--r-radius-xl); background: var(--r-surface-solid); box-shadow: var(--r-shadow-3); overflow: hidden; animation: r-oc-left .3s var(--r-ease); }
.r-offcanvas--right { left: auto; right: 12px; width: min(380px, calc(100vw - 24px)); animation-name: r-oc-right; }
.r-offcanvas__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 12px 20px; }
.r-offcanvas__body { flex: 1; overflow-y: auto; padding: 4px 12px 16px; }
.r-offcanvas__foot { padding: 14px 20px; border-top: 1px solid var(--r-line); }
@keyframes r-oc-left { from { transform: translateX(-28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes r-oc-right { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.r-module { border-radius: var(--r-radius-lg); }
.r-module + .r-module { margin-top: 4px; }
.r-module__head { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; border-radius: var(--r-radius-lg); cursor: pointer; }
.r-module__head:hover { background: var(--r-fill-2); }
.r-module__head[aria-current="true"] { background: var(--r-brand-soft); }
.r-module__icon { width: 28px; display: grid; place-items: center; flex: none; color: var(--r-ink-2); }
.r-module__head[aria-current="true"] .r-module__icon { color: var(--r-brand-ink); }
.r-module__name { font-weight: 700; font-size: 15px; }
.r-module__desc { font-size: 12.5px; color: var(--r-ink-2); line-height: 1.35; }
.r-module__pages { display: flex; flex-direction: column; gap: 1px; padding: 2px 0 8px 40px; }
.r-module__pages .r-nav__item { min-height: 34px; padding: 6px 10px; font-size: 14px; }

/* ---------- superficies ---------- */
.r-card { background: var(--r-surface); border-radius: var(--r-radius-lg); box-shadow: var(--r-shadow-1), var(--r-glass-edge); min-width: 0;
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); }
.r-card--solid { background: var(--r-surface-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
.r-card--pad { padding: var(--r-space-5) var(--r-space-6); }
.r-card--tone-critical { background: var(--r-critical-soft); box-shadow: none; }
.r-card--tone-high { background: var(--r-high-soft); box-shadow: none; }
.r-card--tone-ok { background: var(--r-ok-soft); box-shadow: none; }
.r-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--r-space-3); padding: var(--r-space-5) var(--r-space-6) var(--r-space-3); }
.r-card__body { padding: 0 var(--r-space-6) var(--r-space-5); }
.r-section { display: flex; flex-direction: column; gap: var(--r-space-3); min-width: 0; }
.r-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--r-space-3); padding: 0 4px; }

/* lista agrupada */
.r-list { display: flex; flex-direction: column; }
.r-item { all: unset; box-sizing: border-box; position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px var(--r-space-5); }
.r-item + .r-item::before, .r-item + .r-item-wrap::before, .r-item-wrap + .r-item::before, .r-item-wrap + .r-item-wrap::before { content: ""; position: absolute; top: 0; left: var(--r-inset, 20px); right: 20px; border-top: 1px solid var(--r-line); }
.r-item-wrap { position: relative; }
button.r-item { cursor: pointer; transition: background .12s; }
button.r-item:hover { background: var(--r-fill-2); }
.r-item[aria-selected="true"] { background: var(--r-brand-soft); }
.r-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.r-item__title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-item__sub { font-size: 13.5px; color: var(--r-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-item__end { flex: none; display: flex; align-items: center; gap: 10px; color: var(--r-ink-2); font-size: 14px; }
.r-item--danger { justify-content: center; color: var(--r-critical); font-weight: 600; }
.r-kv { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 12px; align-items: baseline; width: 100%; }
.r-kv dt { color: var(--r-ink-2); font-size: 14px; }
.r-kv dd { margin: 0; overflow-wrap: anywhere; }
.r-kv__empty { color: var(--r-ink-3); }

/* tabla fluida */
.r-table-wrap { overflow-x: auto; min-width: 0; }
.r-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.r-table th { position: sticky; top: 0; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--r-ink-3);
  padding: 12px 14px; border-bottom: 1px solid var(--r-line); white-space: nowrap; background: var(--r-surface-solid); }
.r-table td { padding: 12px 14px; border-bottom: 1px solid var(--r-line); vertical-align: middle; }
.r-table tr:last-child td { border-bottom: 0; }
.r-table th:first-child, .r-table td:first-child { padding-left: var(--r-space-5); }
.r-table th:last-child, .r-table td:last-child { padding-right: var(--r-space-5); }
.r-table tbody tr { cursor: pointer; transition: background .12s; }
.r-table tbody tr:hover { background: var(--r-fill-2); }
.r-table tbody tr[aria-selected="true"] { background: var(--r-brand-soft); }
.r-table tbody tr.r-row--quiet td { color: var(--r-ink-2); }
.r-table tbody tr.r-row--fresh { animation: r-fresh 2.6s ease-out; }
.r-table .r-cell-strong { font-weight: 600; color: var(--r-ink); }
.r-table .r-cell-num { font-family: var(--r-font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.r-table .r-cell-end { text-align: right; }
.r-table tr.r-group-row td { padding-top: 18px; padding-bottom: 8px; cursor: default; background: transparent; }
.r-table tr.r-group-row:hover { background: transparent; }
@keyframes r-fresh { from { background: var(--r-brand-soft); } to { background: transparent; } }

/* ---------- controles ---------- */
.r-btn { all: unset; box-sizing: border-box; position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: var(--r-radius-pill);
  font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; background: var(--r-surface-solid); color: var(--r-ink); box-shadow: var(--r-shadow-1), inset 0 0 0 1px var(--r-line-strong);
  transition: transform .12s, background .15s, box-shadow .15s, filter .15s; }
.r-btn:hover { box-shadow: var(--r-shadow-2), inset 0 0 0 1px var(--r-line-strong); }
.r-btn:active { transform: scale(0.98); }
.r-btn--primary { background: var(--r-brand); color: var(--r-on-brand); box-shadow: 0 6px 16px -6px var(--r-brand); }
.r-btn--primary:hover { filter: brightness(1.07); box-shadow: 0 8px 20px -6px var(--r-brand); }
.r-btn--tinted { background: var(--r-brand-soft); color: var(--r-brand-ink); box-shadow: none; }
.r-btn--tinted:hover { box-shadow: none; filter: brightness(0.97); }
.r-btn--ghost { background: transparent; box-shadow: none; color: var(--r-ink-2); }
.r-btn--ghost:hover { background: var(--r-fill-2); box-shadow: none; color: var(--r-ink); }
.r-btn--danger { background: var(--r-critical-soft); color: var(--r-critical); box-shadow: none; }
.r-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.r-btn--lg { height: 46px; padding: 0 22px; font-size: 15.5px; }
.r-btn--icon { width: 38px; padding: 0; }
.r-btn--icon.r-btn--sm { width: 32px; }
.r-btn[disabled] { opacity: 0.45; pointer-events: none; }
.r-btn__count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-radius-pill); background: var(--r-critical); color: #fff; font: 700 10.5px/18px var(--r-font-display); text-align: center; }
.r-spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: r-spin .7s linear infinite; }
@keyframes r-spin { to { transform: rotate(360deg); } }
@media (pointer: coarse) { .r-btn { height: 44px; } .r-btn--sm { height: 38px; } .r-btn--icon { width: 44px; } }

.r-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.r-field__label { font-size: 13px; font-weight: 600; color: var(--r-ink-2); }
.r-field__hint { font-size: 12.5px; color: var(--r-ink-3); }
.r-field__error { font-size: 12.5px; font-weight: 500; color: var(--r-critical); }
.r-input, .r-select, .r-textarea { width: 100%; min-height: 42px; padding: 10px 14px; border: 0; border-radius: var(--r-radius-md); background: var(--r-surface-solid); color: var(--r-ink);
  box-shadow: inset 0 0 0 1px var(--r-line-strong); outline: none; font-size: 15px; transition: box-shadow .15s; }
.r-input::placeholder, .r-textarea::placeholder { color: var(--r-ink-3); }
.r-input:focus, .r-select:focus, .r-textarea:focus { box-shadow: inset 0 0 0 1.5px var(--r-brand), 0 0 0 4px var(--r-brand-soft); }
.r-input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--r-critical), 0 0 0 4px var(--r-critical-soft); }
.r-input[disabled] { opacity: 0.6; }
.r-search { position: relative; display: flex; align-items: center; min-width: 0; }
.r-search svg { position: absolute; left: 13px; color: var(--r-ink-3); pointer-events: none; }
.r-search .r-input { padding-left: 40px; padding-right: 48px; border-radius: var(--r-radius-pill); min-height: 40px; }
.r-search kbd { position: absolute; right: 12px; font: 600 11px/1 var(--r-font); color: var(--r-ink-3); background: var(--r-fill); padding: 4px 6px; border-radius: 6px; }

.r-switch { all: unset; box-sizing: border-box; flex: none; position: relative; width: 48px; height: 28px; border-radius: var(--r-radius-pill); background: var(--r-fill); box-shadow: inset 0 0 0 1px var(--r-line); cursor: pointer; transition: background .2s; }
.r-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); transition: transform .24s var(--r-ease); }
.r-switch[aria-checked="true"] { background: var(--r-brand); box-shadow: none; }
.r-switch[aria-checked="true"]::after { transform: translateX(20px); }
.r-switch[disabled] { opacity: 0.4; cursor: default; }

.r-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--r-radius-pill); background: var(--r-fill); max-width: 100%; overflow-x: auto; }
.r-seg button, .r-seg a { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: var(--r-radius-pill); font-size: 13.5px; font-weight: 600; color: var(--r-ink-2); cursor: pointer; white-space: nowrap; }
.r-seg button:hover, .r-seg a:hover { color: var(--r-ink); }
.r-seg :is(button, a)[aria-pressed="true"] { background: var(--r-surface-solid); color: var(--r-ink); box-shadow: var(--r-shadow-1), inset 0 0 0 1px var(--r-line); }
.r-seg__count { font: 700 12px/1 var(--r-font-display); color: var(--r-ink-3); }
.r-seg__count--alert { color: var(--r-critical); }

.r-chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--r-radius-pill); font-size: 13px; font-weight: 600;
  background: var(--r-surface-solid); box-shadow: inset 0 0 0 1px var(--r-line-strong); color: var(--r-ink-2); cursor: pointer; }
.r-chip[aria-pressed="true"] { background: var(--r-ink); color: var(--r-bg); box-shadow: none; }

/* ---------- datos ---------- */
.r-badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--r-radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--r-fill); color: var(--r-ink-2); }
.r-badge--critical { background: var(--r-critical-soft); color: var(--r-critical); }
.r-badge--high { background: var(--r-high-soft); color: var(--r-high); }
.r-badge--medium { background: var(--r-medium-soft); color: var(--r-medium); }
.r-badge--ok { background: var(--r-ok-soft); color: var(--r-ok); }
.r-badge--brand { background: var(--r-brand-soft); color: var(--r-brand-ink); }
.r-badge--solid-critical { background: var(--r-critical); color: #fff; }

/* halo de severidad: la firma del sistema */
.r-halo { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.r-halo--sm { width: 28px; height: 28px; }
.r-halo--critical { background: var(--r-critical-soft); color: var(--r-critical); box-shadow: 0 0 0 4px color-mix(in srgb, var(--r-critical) 8%, transparent); }
.r-halo--high { background: var(--r-high-soft); color: var(--r-high); }
.r-halo--medium { background: var(--r-medium-soft); color: var(--r-medium); }
.r-halo--low { background: var(--r-low-soft); color: var(--r-low); }
.r-halo--info { background: var(--r-fill); color: var(--r-ink-3); }
.r-halo--ok { background: var(--r-ok-soft); color: var(--r-ok); }
.r-halo--live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: r-ring 2.2s var(--r-ease) infinite; }
@keyframes r-ring { 0% { transform: scale(0.85); opacity: 0.55; } 100% { transform: scale(1.35); opacity: 0; } }

.r-notice { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.r-notice--ok { color: var(--r-ok); }
.r-notice--wait { color: var(--r-high); }
.r-notice--bad { color: var(--r-critical); font-weight: 700; }
.r-notice--muted { color: var(--r-ink-3); }

.r-stat { display: flex; flex-direction: column; gap: 8px; padding: var(--r-space-5) var(--r-space-6); min-height: 140px; text-align: left; }
button.r-stat { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: var(--r-space-5) var(--r-space-6); min-height: 140px; cursor: pointer; color: var(--r-ink);
  background: var(--r-surface); border-radius: var(--r-radius-lg); box-shadow: var(--r-shadow-1), var(--r-glass-edge); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); transition: transform .15s var(--r-ease), box-shadow .15s; }
button.r-stat:focus-visible { outline: 2px solid var(--r-brand); outline-offset: 2px; }
button.r-stat:hover { transform: translateY(-2px); box-shadow: var(--r-shadow-2), var(--r-glass-edge); }
.r-stat__label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--r-ink-2); }
.r-stat__icon { display: grid; place-items: center; flex: none; }
.r-stat__value { font: 800 40px/1 var(--r-font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.r-stat__unit { font: 600 15px/1 var(--r-font); color: var(--r-ink-3); margin-left: 6px; letter-spacing: 0; }
.r-stat__note { margin-top: auto; font-size: 13px; color: var(--r-ink-2); }

.r-avatar { flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; font-family: var(--r-font-display); letter-spacing: 0.01em; }
.r-progress { height: 8px; border-radius: var(--r-radius-pill); background: var(--r-fill); overflow: hidden; }
.r-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--r-brand); }

.r-chart { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); align-items: end; gap: clamp(3px, 0.5vw, 8px); height: 180px; }
.r-chart__col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.r-chart__ghost { position: absolute; bottom: 0; left: 8%; right: 8%; border-radius: 6px 6px 3px 3px; background: var(--r-fill); }
.r-chart__bar { position: relative; width: 64%; min-height: 3px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--r-brand), color-mix(in srgb, var(--r-brand) 70%, transparent)); }
.r-chart__axis { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: clamp(3px, 0.5vw, 8px); margin-top: 8px; font: 600 11px/1 var(--r-font-display); color: var(--r-ink-3); text-align: center; }
.r-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--r-ink-2); }
.r-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; }

.r-steps { display: flex; flex-direction: column; }
.r-step { display: grid; grid-template-columns: 26px 1fr; gap: 12px; position: relative; padding-bottom: 16px; }
.r-step:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--r-fill); }
.r-step__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--r-fill); color: var(--r-ink-2); }
.r-step__dot--ok { background: var(--r-ok-soft); color: var(--r-ok); }
.r-step__dot--bad { background: var(--r-critical-soft); color: var(--r-critical); }
.r-step__title { font-weight: 600; font-size: 14px; }
.r-step__meta { font-size: 13px; color: var(--r-ink-2); }

.r-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; color: var(--r-ink-2); }
.r-empty__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--r-fill-2); color: var(--r-ink-3); }
.r-empty__title { color: var(--r-ink); font: 700 17px/1.3 var(--r-font-display); }

.r-live { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-radius-pill); background: var(--r-ok-soft); color: var(--r-ok); font-size: 13px; font-weight: 700; }
.r-live__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: r-blink 1.8s ease-in-out infinite; }
.r-live--off { background: var(--r-fill); color: var(--r-ink-2); }
.r-live--off .r-live__dot { animation: none; }
@keyframes r-blink { 50% { opacity: 0.35; } }

/* ---------- superposiciones ---------- */
.r-scrim { position: fixed; inset: 0; z-index: 39; background: var(--r-scrim); animation: r-fade .2s; }
.r-inspector { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(var(--r-inspector-w), calc(100vw - 24px)); z-index: 40; display: flex; flex-direction: column;
  border-radius: var(--r-radius-xl); background: var(--r-surface-solid); box-shadow: var(--r-shadow-3); animation: r-slide .28s var(--r-ease); overflow: hidden; }
.r-inspector__head { display: flex; align-items: center; justify-content: flex-end; padding: 14px 14px 0; }
.r-inspector__body { flex: 1; overflow-y: auto; padding: 0 24px 24px; display: flex; flex-direction: column; gap: 20px; }
.r-inspector__foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--r-line); }
@keyframes r-slide { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes r-fade { from { opacity: 0; } to { opacity: 1; } }
.r-sheet { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 64px); display: flex; flex-direction: column;
  border-radius: var(--r-radius-xl); background: var(--r-surface-solid); box-shadow: var(--r-shadow-3); animation: r-pop .24s var(--r-ease); overflow: hidden; }
.r-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; }
.r-sheet__body { overflow-y: auto; padding: 8px 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.r-sheet__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 20px; }
@keyframes r-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
.r-alert { position: fixed; z-index: 70; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 32px)); padding: 24px; display: flex; flex-direction: column; gap: 10px;
  border-radius: var(--r-radius-xl); background: var(--r-surface-solid); box-shadow: var(--r-shadow-3); animation: r-pop .2s var(--r-ease); }
.r-alert__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--r-critical-soft); color: var(--r-critical); }
.r-alert__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.r-menu { position: absolute; z-index: 50; min-width: 230px; padding: 6px; border-radius: var(--r-radius-lg); background: var(--r-surface-solid); box-shadow: var(--r-shadow-3); animation: r-fade .12s; }
.r-menu__item { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--r-radius-sm); font-size: 14px; font-weight: 500; cursor: pointer; }
.r-menu__item:hover { background: var(--r-fill-2); }
.r-menu__item--danger { color: var(--r-critical); }
.r-menu__sep { height: 1px; margin: 6px 10px; background: var(--r-line); }
.r-menu__label { padding: 8px 12px 4px; }
.r-popover { position: absolute; z-index: 50; top: calc(100% + 10px); right: 0; width: min(400px, calc(100vw - 24px)); border-radius: var(--r-radius-lg); background: var(--r-surface-solid); box-shadow: var(--r-shadow-3); overflow: hidden; animation: r-fade .15s; }
.r-toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 12px 18px;
  border-radius: var(--r-radius-pill); background: var(--r-toast); color: var(--r-on-toast); font-size: 14px; font-weight: 500; box-shadow: var(--r-shadow-3); animation: r-toast .3s var(--r-ease); }
.r-toast button { all: unset; cursor: pointer; font-weight: 700; color: var(--r-brand); }
@keyframes r-toast { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- carga ---------- */
/* Skeleton: bloques que ocupan el lugar del contenido mientras carga (wire:init o wire:loading). */
.r-skeleton { display: block; border-radius: var(--r-radius-sm); background: linear-gradient(90deg, var(--r-fill-2) 25%, var(--r-fill) 37%, var(--r-fill-2) 63%); background-size: 400% 100%; animation: r-shimmer 1.4s ease infinite; }
.r-skeleton--text { height: 12px; border-radius: 6px; }
.r-skeleton--title { height: 22px; width: 40%; border-radius: 8px; }
.r-skeleton--circle { border-radius: 50%; }
.r-skeleton-rows { display: flex; flex-direction: column; }
.r-skeleton-row { display: flex; align-items: center; gap: 14px; padding: 14px var(--r-space-5); border-top: 1px solid var(--r-line); }
.r-skeleton-row:first-child { border-top: 0; }
@keyframes r-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
/* Mientras Livewire procesa, el bloque marcado se atenúa sin saltar. */
.r-loading-dim { opacity: .55; pointer-events: none; }

/* ---------- paginación ---------- */
.r-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px var(--r-space-5); border-top: 1px solid var(--r-line); }
.r-pagination__pages { display: flex; align-items: center; gap: 4px; }
.r-pagination__page { all: unset; box-sizing: border-box; min-width: 34px; height: 34px; padding: 0 10px; border-radius: var(--r-radius-pill); display: inline-grid; place-items: center; cursor: pointer; font: 600 13.5px/1 var(--r-font-display); color: var(--r-ink-2); }
.r-pagination__page:hover { background: var(--r-fill-2); color: var(--r-ink); }
.r-pagination__page[aria-current="page"] { background: var(--r-brand-soft); color: var(--r-brand-ink); }
.r-pagination__page[disabled] { opacity: .4; pointer-events: none; }

/* ---------- formularios de página ---------- */
/* Crear y editar son páginas: secciones con título a la izquierda y campos a la derecha, y una barra de acciones fija abajo. */
.r-form { display: flex; flex-direction: column; gap: var(--r-space-5); }
.r-form-section { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: var(--r-space-6); padding: var(--r-space-6); }
.r-form-section__title { margin: 0 0 4px; font: 700 16px/1.3 var(--r-font-display); }
.r-form-section__desc { margin: 0; font-size: 13.5px; color: var(--r-ink-2); }
.r-form-section__fields { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 20px; align-content: start; }
.r-form-section__fields > * { grid-column: span 12; }
.r-form-section__fields > .r-span-6 { grid-column: span 6; } .r-form-section__fields > .r-span-4 { grid-column: span 4; } .r-form-section__fields > .r-span-8 { grid-column: span 8; } .r-form-section__fields > .r-span-3 { grid-column: span 3; }
@media (max-width: 1000px) { .r-form-section { grid-template-columns: minmax(0, 1fr); } .r-form-section__fields > [class*="r-span-"] { grid-column: span 12; } }
.r-actionbar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px 12px 22px;
  border-radius: var(--r-radius-xl); background: var(--r-surface); box-shadow: var(--r-shadow-2), var(--r-glass-edge); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
.r-actionbar__state { font-size: 13.5px; color: var(--r-ink-2); }
.r-actionbar__state--dirty { color: var(--r-high); font-weight: 600; }
.r-actionbar__actions { display: flex; gap: 8px; margin-left: auto; }

/* ---------- checkbox ---------- */
.r-check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14.5px; }
.r-check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; background: var(--r-surface-solid); box-shadow: inset 0 0 0 1.5px var(--r-line-strong); cursor: pointer; display: grid; place-items: center; }
.r-check input:checked { background: var(--r-brand); box-shadow: none; }
.r-check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--r-on-brand); border-bottom: 2px solid var(--r-on-brand); transform: translateY(-1px) rotate(-45deg); }
.r-check input:disabled { opacity: .5; cursor: default; }
.r-check__sub { display: block; font-size: 12.5px; color: var(--r-ink-2); }

/* ---------- avisos en página ---------- */
.r-banner { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--r-radius-lg); background: var(--r-fill-2); font-size: 14px; }
.r-banner > svg { flex: none; margin-top: 1px; }
.r-banner__body { flex: 1; min-width: 0; }
.r-banner__title { font-weight: 700; margin-bottom: 2px; }
.r-banner--info { background: var(--r-brand-soft); color: var(--r-ink); } .r-banner--info > svg { color: var(--r-brand-ink); }
.r-banner--warning { background: var(--r-high-soft); } .r-banner--warning > svg { color: var(--r-high); }
.r-banner--danger { background: var(--r-critical-soft); } .r-banner--danger > svg { color: var(--r-critical); }
.r-banner--ok { background: var(--r-ok-soft); } .r-banner--ok > svg { color: var(--r-ok); }

/* ---------- detalles desplegables ---------- */
.r-details { border-radius: var(--r-radius-lg); background: var(--r-fill-2); }
.r-details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 600; }
.r-details > summary::-webkit-details-marker { display: none; }
.r-details > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--r-ink-3); border-bottom: 2px solid var(--r-ink-3); transform: rotate(45deg); transition: transform .2s; }
.r-details[open] > summary::after { transform: rotate(-135deg); }
.r-details__body { padding: 0 16px 14px; }

/* ---------- autenticación ----------
   Pantallas sin marco de app (ingresar, verificar, recuperar, sesión vencida): panel flotante a la izquierda
   con el formulario y, a la derecha, la foto de marca como tarjeta redondeada. Debajo de 900px, solo el panel. */
.r-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 12px; padding: 12px; }
.r-auth__panel { display: flex; flex-direction: column; min-height: calc(100vh - 24px); padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px) 28px;
  border-radius: var(--r-radius-xl); background: var(--r-surface); box-shadow: var(--r-shadow-2), var(--r-glass-edge); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px); }
.r-auth__logo { height: 52px; width: auto; align-self: flex-start; }
:root[data-theme="dark"] .r-auth__logo { filter: brightness(0) invert(1); }
.r-auth__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; width: 100%; max-width: 400px; margin: 32px auto; }
.r-auth__head { display: flex; flex-direction: column; gap: 8px; }
.r-auth__icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--r-brand-ink); margin-bottom: 4px; }
.r-auth__foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--r-ink-3); }
.r-auth__media { position: relative; overflow: hidden; border-radius: var(--r-radius-xl); background: var(--r-surface-2) center / cover no-repeat; box-shadow: var(--r-shadow-1); }
.r-auth__caption { position: absolute; left: 24px; right: 24px; bottom: 24px; max-width: 520px; padding: 20px 24px; border-radius: var(--r-radius-lg); color: #fff;
  background: rgba(12, 16, 26, 0.55); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.r-auth__caption strong { display: block; font: 700 20px/1.25 var(--r-font-display); letter-spacing: -0.01em; margin-bottom: 4px; }
.r-auth__caption span { font-size: 14.5px; color: rgba(255, 255, 255, 0.85); }
.r-input-icon { position: relative; display: flex; align-items: center; }
.r-input-icon > svg { position: absolute; left: 14px; color: var(--r-ink-3); pointer-events: none; }
.r-input-icon .r-input { padding-left: 44px; }
.r-input-icon__end { position: absolute; right: 6px; }
.r-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.r-otp .r-input { text-align: center; font: 700 22px/1 var(--r-font-display); padding: 0; min-height: 56px; }
.r-rules { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--r-ink-2); }
.r-rules li { display: flex; align-items: center; gap: 8px; }
.r-rules li[data-ok="true"] { color: var(--r-ok); }
@media (max-width: 900px) { .r-auth { grid-template-columns: minmax(0, 1fr); } .r-auth__media { display: none; } }

/* ---------- pantallas chicas ---------- */
@media (max-width: 1100px) {
  .r-sidebar { display: none; }
  .r-main, .r-app[data-sidebar="collapsed"] .r-main { margin-left: 0; }
  .r-appbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .r-account__text, .r-appbar__divider, .r-module-switch__text--wide { display: none; }
}
@media (max-width: 720px) {
  .r-appbar { gap: var(--r-space-2); padding-inline: var(--r-space-2); }
  .r-logo__name, .r-module-switch { display: none; }
  .r-logo__img { height: 26px; }
  .r-kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .r-sheet { top: auto; bottom: 0; left: 0; right: 0; width: 100%; transform: none; border-radius: var(--r-radius-xl) var(--r-radius-xl) 0 0; max-height: 92vh; animation: r-up .3s var(--r-ease); }
  @keyframes r-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
  .r-stat__value { font-size: 34px; }
}
