/* Telemetry (2TR8DE) — estilos. Temas claro/oscuro con variables CSS. */
:root {
  color-scheme: light;
  --page: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f9f9f7;
  --surface-3: #f1f1ec;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --line: #e7e6e0;
  --grid: #e1e0d9;
  --axis: #c3c2b7;
  --ring: rgba(11, 11, 11, 0.08);
  --accent: #0b7f72;
  --accent-ink: #ffffff;
  --accent-soft: #e2f3f0;
  --pos: #0b7a0b;          /* texto de ganancia */
  --neg: #c62f2f;          /* texto de pérdida  */
  --bar-pos: #0f9d8f;      /* barras: polaridad azul/rojo */
  --bar-neg: #e34948;
  --good: #0ca30c; --warn: #eda100; --bad: #d03b3b; --idle: #898781;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .05);
  --radius: 14px;
  --s1: #0f9d8f; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
  --heat-neg: #c62f2f; --heat-mid: #f0efec; --heat-pos: #0b7f72;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #202020;
  --surface-3: #262625;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --line: #2c2c2a;
  --grid: #2c2c2a;
  --axis: #383835;
  --ring: rgba(255, 255, 255, 0.10);
  --accent: #19c2ad;
  --accent-ink: #06201d;
  --accent-soft: #0f2a27;
  --pos: #34c034;
  --neg: #ef6b6b;
  --bar-pos: #19c2ad;
  --bar-neg: #e66767;
  --shadow: none;
  --s1: #19c2ad; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --heat-neg: #b8322f; --heat-mid: #383835; --heat-pos: #17a594;
}

* { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; min-height: 100%; }   /* v4.45.3: con height:100% la barra de arriba (sticky) se iba al bajar en páginas largas */
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.num, table td.n, table th.n { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
:root { --appbar-h: 58px; }
.app { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - var(--appbar-h)); }
.sidebar {
  position: sticky; top: var(--appbar-h); height: calc(100vh - var(--appbar-h)); overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
}
/* Barra superior: marca + módulos (Telemetry · Research · Comunidad · Operaciones) + tema + usuario */
/* Barra superior: marca a la izquierda, módulos al centro (bloque segmentado), tema y usuario a la derecha */
.appbar {
  position: sticky; top: 0; z-index: 30; height: var(--appbar-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line);
}
.appbar-brand { justify-self: start; }
.appbar-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.appbar-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 16px; flex: none; }
.appbar-brand .logo { width: 32px; height: 32px; border-radius: 9px; background: #0b0b0b; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--ring); }
.modtabs { justify-self: center; display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.modtabs::-webkit-scrollbar { display: none; }
.modtabs-in { display: contents; }
.modtabs-m { display: none; }   /* barra del celular: va fuera de la barra de arriba (que es sticky) para que iPhone no la mueva */
.modtab { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 9px; color: var(--ink-2); font-weight: 550; font-size: 13.5px; white-space: nowrap; transition: color .15s, background .15s; }
.modtab .mi { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.modtab .mi svg { width: 16px; height: 16px; }
.modtab:hover { color: var(--ink); }
.modtab.on { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px var(--ring); }
.modtab.on .mi { color: var(--accent); }
.modtab .dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.appbar .user-chip { padding: 4px 4px 4px 8px; }
.user-txt { line-height: 1.25; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.user-txt small { display: block; font-size: 11.5px; color: var(--muted); }
.side-title { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 4px 12px 10px; }
.nav a > span:first-of-type { min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }   /* nombres largos bajan a otra línea, no se cortan */
.nav-tag { flex: none; margin-left: auto; font-size: 10.5px; font-weight: 650; border-radius: 6px; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); }
.nav-tag.hub { margin-left: 6px; }
.nav-ext { margin-left: auto; display: inline-flex; color: var(--muted); }
.nav-tag + .nav-ext { margin-left: 6px; }
.nav a .nav-ext svg { width: 13px; height: 13px; }
/* Portada de cada módulo */
.mod-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); max-width: 1180px; }
/* v4.49 "Institucional": icono en cuadro con borde fino, etiqueta (PASO N / VIP / ADMIN) en la esquina, sin flecha */
.mod-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; align-content: start; column-gap: 12px; row-gap: 6px; padding: 20px; border-radius: 12px; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.mod-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.mod-ico { grid-column: 1; grid-row: 1; width: 44px; height: 44px; margin-bottom: 8px; box-sizing: border-box; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--axis); color: var(--accent); display: grid; place-items: center; }
:root[data-theme="dark"] .mod-ico { background: #141413; border-color: #383835; }
.mod-ico svg { width: 22px; height: 22px; stroke-width: 1.6; }
.mod-chip { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--axis); color: var(--ink-2); font-size: 11px; font-weight: 650; letter-spacing: .04em; white-space: nowrap; }
:root[data-theme="dark"] .mod-chip { border-color: #383835; }
.mod-title { grid-column: 1 / -1; font-weight: 700; font-size: 16px; }
.mod-desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 13px; line-height: 1.5; }
@media (max-width: 820px) {
  /* celular: icono, nombre y etiqueta en una fila; la descripción debajo */
  .mod-grid { gap: 12px; }
  .mod-card { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 12px; padding: 16px; }
  .mod-card:hover { transform: none; box-shadow: none; }
  .mod-ico { margin-bottom: 0; }
  .mod-title { grid-column: 2; grid-row: 1; font-size: 15.5px; }
  .mod-chip { grid-column: 3; align-self: center; }
  .mod-desc { line-height: 1.45; }
}
.banner.mod-note { align-items: center; max-width: 1180px; }
.banner.mod-note svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 700; font-size: 16px; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; background: #0b0b0b; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--ring); }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2);
  font-weight: 500; margin-bottom: 2px;
}
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav svg { width: 18px; height: 18px; flex: none; }
.side-foot { margin-top: auto; display: grid; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 600; color: var(--ink); }

.main { min-width: 0; }
.topbar {
  position: sticky; top: var(--appbar-h); z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 14px 28px; background: var(--page); border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 20px; margin: 0; font-weight: 650; letter-spacing: -.01em; }
.topbar .sub { color: var(--muted); font-size: 12.5px; }
.topbar .spacer { flex: 1; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.content { padding: 8px 28px 48px; max-width: 1440px; }
.btn.menu-btn { display: none; }

/* ---------- controles ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 550;
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--neg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.icon { width: 36px; padding: 0; }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .55; cursor: default; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: 10px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font-weight: 550; font-size: 13px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 550; font-size: 13px; }
.field .hint { color: var(--muted); font-size: 12px; }
.input {
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  outline: none; width: 100%;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.copy { display: flex; gap: 6px; }
.copy code { flex: 1; display: flex; align-items: center; padding: 0 12px; height: 38px; border-radius: 10px; background: var(--surface-3); overflow: auto; white-space: nowrap; font-size: 13px; }

/* ---------- tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px 20px; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; flex-wrap: wrap; }
.card-h h3 { margin: 0; font-size: 14.5px; font-weight: 650; }
.card-h .spacer { flex: 1; }
.card-b { padding: 12px 20px 18px; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.g-kpi { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.g-2 { grid-template-columns: 1.6fr 1fr; }
.g-2e { grid-template-columns: 1fr 1fr; }
.section { margin-top: 18px; }
.section-title { font-size: 13px; font-weight: 650; color: var(--ink-2); margin: 26px 0 10px; text-transform: uppercase; letter-spacing: .05em; }

.kpi { padding: 16px 18px; }
.kpi .lbl { color: var(--ink-2); font-size: 12.5px; font-weight: 550; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 25px; font-weight: 680; letter-spacing: -.02em; margin-top: 6px; }
.kpi .val.sm { font-size: 20px; }
.kpi .val .cur, .acct .cur { font-size: 13px; color: var(--muted); font-weight: 550; margin-left: 4px; letter-spacing: 0; }
.kpi .foot { color: var(--muted); font-size: 12px; margin-top: 4px; }
.pos { color: var(--pos); } .neg { color: var(--neg); }

.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.mini > div { padding: 14px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini .lbl { color: var(--muted); font-size: 12px; }
.mini .v { font-weight: 650; font-size: 16px; margin-top: 2px; }

/* tarjetas de cuenta */
.accounts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.acct { cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; overflow: hidden; }
.acct:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.acct .top { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px 0; }
.acct .name { font-weight: 650; font-size: 15px; }
.acct .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.acct .eq { padding: 10px 18px 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.acct .eq small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.acct .spark { height: 64px; margin: 4px 6px 0; }
.acct .stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.acct .stats > div { padding: 10px 12px; text-align: center; }
.acct .stats > div + div { border-left: 1px solid var(--line); }
.acct .stats .lbl { font-size: 11px; color: var(--muted); }
.acct .stats .v { font-weight: 650; font-size: 13.5px; margin-top: 2px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--idle); }
.pill.online .dot { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.pill.delayed .dot { background: var(--warn); }
.pill.offline .dot { background: var(--bad); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); }
.badge.real { background: color-mix(in srgb, var(--s2) 16%, transparent); color: var(--s2); }
.badge.demo { background: var(--accent-soft); color: var(--accent); }
.badge.manager { background: color-mix(in srgb, var(--s7) 18%, transparent); color: var(--s7); }   /* Gerente: morado, distinto de Administrador y Estudiante */

/* ---------- tablas ---------- */
.tbl-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl .n { text-align: right; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.toolbar .input { height: 36px; max-width: 240px; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 20px; color: var(--muted); font-size: 12.5px; }

.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.heat th { color: var(--muted); font-weight: 600; padding: 4px; }
.heat td { text-align: center; padding: 7px 1px; border-radius: 6px; font-weight: 600; min-width: 32px; font-size: 11px; }
.heat td.y { text-align: left; color: var(--ink-2); padding-left: 2px; }
.heat td.empty { background: transparent; color: var(--muted); font-weight: 400; }

.chart { width: 100%; height: 300px; }
.chart.sm { height: 220px; }

/* ---------- estados ---------- */
.empty { text-align: center; padding: 56px 20px; }
.empty .ico { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.empty h2 { margin: 0 0 6px; font-size: 18px; }
.empty p { color: var(--ink-2); max-width: 460px; margin: 0 auto 18px; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); margin-bottom: 16px; }
.banner.info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.skeleton { background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { from { background-position: 200% 0 } to { background-position: -200% 0 } }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: 100%; max-width: 400px; padding: 30px 28px; }
.auth h1 { font-size: 22px; margin: 14px 0 4px; }
.auth p.sub { color: var(--ink-2); margin: 0 0 22px; }
.err { color: var(--neg); font-size: 13px; min-height: 18px; margin-bottom: 8px; }

/* ---------- modal y toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; }
.modal .mh { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal .mh h2 { margin: 0; font-size: 17px; flex: 1; }
.modal .mb { padding: 20px 22px; }
.modal .mf { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.steps b { font-weight: 650; }
.kbd { font-family: inherit; font-size: 12px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface-2); }
.toast-wrap { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 8px; z-index: 60; }
.toast { padding: 11px 14px; border-radius: 12px; background: var(--ink); color: var(--page); box-shadow: 0 8px 24px rgba(0,0,0,.18); font-weight: 550; max-width: 360px; }
.dropdown { position: relative; }
.dropdown .menu { position: absolute; right: 0; top: 40px; min-width: 210px; padding: 6px; z-index: 20; }
.dropdown .menu button { display: flex; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; cursor: pointer; gap: 8px; }
.dropdown .menu button:hover { background: var(--surface-3); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .g-2, .g-2e { grid-template-columns: 1fr; } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 40; left: 0; top: var(--appbar-h); width: 250px; transform: translateX(-100%); transition: transform .2s; }
  /* móvil: marca, tema y usuario arriba; los módulos en una barra fija abajo, con icono y nombre (estilo app) */
  .appbar { display: flex; gap: 8px; padding: 0 12px; }
  .appbar-end { margin-left: auto; gap: 8px; }
  .user-txt { display: none; }
  /* barra de abajo = el mismo selector de la computadora, dentro de una franja fija (v4.49) */
  .appbar .modtabs { display: none; }
  .modtabs.modtabs-m {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: block; -webkit-transform: translateZ(0); transform: translateZ(0); justify-self: stretch; width: auto; overflow: visible;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; border: 0; border-top: 1px solid var(--line); background: var(--surface);
  }
  :root[data-theme="dark"] .modtabs.modtabs-m { background: #141413; }
  .modtabs-in { display: flex; gap: 2px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
  .modtab { flex: 1; min-width: 0; flex-direction: column; justify-content: center; gap: 3px; min-height: 48px; padding: 4px 2px; border-radius: 9px; font-size: 11.5px; }
  .modtab .ml { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .modtab .mi, .modtab .mi svg { width: 19px; height: 19px; }
  .modtab.on { color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px var(--ring); }
  :root[data-theme="dark"] .modtab.on { background: var(--surface-3); box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 0 0 1px var(--ring); }
  .app { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .toast-wrap { bottom: calc(100px + env(safe-area-inset-bottom)); }
  .cx-toast { bottom: calc(106px + env(safe-area-inset-bottom)); }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  .g-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .foot { display: none; }
  .topbar .sub { display: none; }
  .btn.menu-btn { display: inline-flex; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  /* en el móvil las acciones (filtros, periodo) bajan a su propia fila y no tapan el título */
  .topbar { flex-wrap: wrap; position: static; row-gap: 10px; }
  .topbar h1 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-actions { order: 5; width: 100%; }
  .topbar-actions:empty { display: none; }
  .accounts { grid-template-columns: 1fr; }
  .kpi .val { font-size: 21px; }
}

/* ---------- extras MVC ---------- */
.flash { margin-bottom: 16px; }
.flash.ok { background: color-mix(in srgb, var(--good) 12%, var(--surface)); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.flash.err { background: color-mix(in srgb, var(--bad) 12%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
form.inline { display: inline; margin: 0; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.acct-link { color: inherit; display: block; }
.install { max-width: 760px; }
.status-box { display: flex; gap: 12px; align-items: center; }
.done-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.seg a { padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: 13px; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
.seg button.on, .seg a.on { cursor: default; }
/* pantallas de acceso: nada puede desbordar la tarjeta */
.auth .card { overflow-wrap: anywhere; }
.auth .banner { margin: 0 0 18px; }
code.path { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-3); font-size: 12px; word-break: break-all; white-space: normal; }

/* Administración: Cells */
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cell-card { padding: 14px 16px; color: var(--ink); text-decoration: none; transition: border-color .12s, transform .12s; }
.cell-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.cell-card.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cell-card.none .nm { color: var(--muted); }
.cell-card .nm { font-weight: 650; font-size: 14px; margin-bottom: 4px; }
.cell-card .ct { color: var(--muted); font-size: 12px; margin-top: 4px; }
.tbl tr.grp td { background: var(--surface-2); font-weight: 650; font-size: 12.5px; color: var(--ink); padding-top: 8px; padding-bottom: 8px; }
.tbl tr.grp td span { color: var(--muted); font-weight: 500; }
.tbl tbody tr.grp:hover td { background: var(--surface-2); }

/* Marca 2TR8DE */
.brand-logo { display: flex; justify-content: center; margin: 2px 0 22px; }
.brand-logo img { display: block; width: 200px; height: auto; }
.brand-logo .for-dark { display: none; }
[data-theme="dark"] .brand-logo .for-light { display: none; }
[data-theme="dark"] .brand-logo .for-dark { display: block; }
.brand .by { color: var(--muted); font-weight: 600; font-size: 10.5px; letter-spacing: .08em; }

/* Ver / ocultar contraseña */
.pw-wrap { position: relative; }
.pw-wrap .input { width: 100%; padding-right: 42px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
.pw-eye:hover { color: var(--ink); background: var(--surface-3); }

/* ---- Estrategias (magic number) */
.st-help { color: var(--muted); font-size: 12.5px; margin: 0; padding: 0 20px 10px; }
.st-tbl td { padding-top: 6px; padding-bottom: 6px; }
.st-tbl tbody tr { cursor: pointer; }
.st-tbl tbody tr.off td { opacity: .45; }
.st-tbl input[type=checkbox], #stAll { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
.st-spark { width: 120px; height: 30px; display: block; }
.st-sel { border-top: 1px solid var(--line); padding: 4px 20px 20px; }
.st-summary { margin: 0 0 12px; font-size: 13.5px; }
.st-summary:empty { display: none; }
.st-tbl thead th { z-index: 3; }   /* la fila de títulos queda encima de las mini gráficas al hacer scroll */
/* Notas del mentor */
.note-form { padding: 4px 20px 12px; display: grid; gap: 8px; }
.note-form textarea { resize: vertical; min-height: 64px; font: inherit; padding: 10px 12px; }
.note-actions { display: flex; align-items: center; gap: 12px; justify-content: space-between; color: var(--muted); font-size: 12.5px; flex-wrap: wrap; }
.note-about { font-size: 13px; padding: 6px 6px 6px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--ink); display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.note-about[hidden] { display: none; }
.note-about .btn { height: 28px; padding: 0 10px; font-size: 12.5px; flex: none; }
.note-empty { color: var(--muted); padding: 0 20px 16px; margin: 0; }
.notes { padding: 0 20px 14px; }
.note { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; transition: box-shadow .2s, border-color .2s; }
.note.hl { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.note-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.note-when { color: var(--muted); font-size: 12px; }
.note-del .btn { height: 26px; padding: 0 8px; font-size: 12px; color: var(--muted); }
.note-b { margin-top: 6px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.tbl td.nt { white-space: nowrap; }
.note-pill { border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-right: 6px; }
.btn.xs { height: 26px; padding: 0 8px; font-size: 12px; }
/* Enlaces para compartir */
.share-url { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.share-url code { background: var(--surface); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; font-size: 12.5px; overflow-wrap: anywhere; max-width: 100%; }
.main.public { min-height: 100vh; }
.main.public .content { margin: 0 auto; }
/* Aviso de notas nuevas */
.banner.notify { align-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.notify-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.notify-ico svg { width: 18px; height: 18px; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.badge.new-badge { background: var(--accent); color: var(--accent-ink); }
.note.pending { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.note-right { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.note-h .note-right .note-del { margin-left: 0; }
.note-acct { font-weight: 650; }
.note-sep { color: var(--muted); }
.badge.ack-wait { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 75%, var(--ink)); }
.badge.ack-ok { background: color-mix(in srgb, var(--good) 15%, transparent); color: color-mix(in srgb, var(--good) 80%, var(--ink)); }
.notes-past { margin-top: 4px; }
.notes-past > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); padding: 6px 0 10px; list-style: none; }
.notes-past > summary::-webkit-details-marker { display: none; }
.notes-past > summary::before { content: "▸ "; }
.notes-past[open] > summary::before { content: "▾ "; }
.notes-past .note { opacity: .85; }
.filter-empty { color: var(--muted); padding: 14px 20px; margin: 0; }
/* Notas a la comunidad */
.badge.community { background: color-mix(in srgb, var(--s2) 16%, transparent); color: color-mix(in srgb, var(--s2) 85%, var(--ink)); }
.ann-who { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ann-who > summary { cursor: pointer; }
.ann-who > div { margin-top: 4px; color: var(--ink-2); }
.nav-badge[hidden] { display: none; }

/* ------------------------------------------------------------ Competencias */
.cp-row { display: flex; align-items: center; gap: 10px; }
.cp-sp { flex: 1; }
.cp-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.cp-muted { color: var(--muted); font-size: 12.5px; }
.cp-pad { padding: 16px 20px; }
.cp-prog { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.cp-prog > i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.cp-tug { display: flex; height: 12px; border-radius: 8px; overflow: hidden; margin: 14px 0 8px; }
.cp-tug.big { height: 14px; margin: 16px 0 8px; }
.cp-pos { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 12.5px; background: var(--surface-3); flex: none; }
.cp-pos.p1 { background: #d4a017; color: #1b1400; } .cp-pos.p2 { background: #a9b0b6; color: #111; } .cp-pos.p3 { background: #b8733a; color: #160b02; }
.cp-amt { font-size: 24px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.cp-amt.big { font-size: 40px; }
.cp-vs { font-weight: 800; color: var(--muted); font-size: 18px; }
.cp-card { display: block; color: inherit; text-decoration: none; }
.cp-card:hover { border-color: var(--ring); }
.cp-card.mine { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cp-tag { background: var(--accent-soft); color: var(--accent); }
.cp-accts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 12px 20px 20px; }
.cp-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: relative; background: var(--surface-2); overflow: hidden; }
.cp-box .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.cp-past { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 12px 20px 20px; }
.cp-trophy { color: #d4a017; display: inline-flex; } .cp-trophy svg { width: 18px; height: 18px; }
.cp-banner { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 16px; margin-bottom: 16px;
  background: linear-gradient(120deg, color-mix(in srgb, #d4a017 26%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, #d4a017 45%, transparent); }
.cp-banner .ico { width: 58px; height: 58px; border-radius: 16px; background: #d4a017; color: #1b1400; display: grid; place-items: center; flex: none; }
.cp-banner .ico svg { width: 32px; height: 32px; }
.cp-win { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.cp-pair { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cp-pair select { flex: 1; min-width: 0; }
.cp-check { color: var(--accent); font-weight: 700; }
.cp-cells { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-cells label { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; background: var(--surface-2); cursor: pointer; }
.cp-cells input:checked + span { color: var(--accent); }
@media (max-width: 760px) {
  .cp-amt { font-size: 20px; } .cp-amt.big { font-size: 24px; } .cp-win { font-size: 22px; }
  .cp-banner { padding: 16px; gap: 12px; } .cp-banner .ico { width: 44px; height: 44px; }
  .cp-hide-sm { display: none; }
}
.cp-vs-big { font-size: 24px; padding-bottom: 30px; }
@media (max-width: 760px) { .cp-vs-big { font-size: 15px; padding-bottom: 22px; } }

/* ------------------------------------------------------------ SweetAlert2 con el estilo de la app */
.swal2-container { z-index: 2000; }
.sw-popup { border: 1px solid var(--line) !important; border-radius: 16px !important; box-shadow: 0 18px 50px rgba(0,0,0,.35) !important; }
.sw-title { font-size: 19px !important; color: var(--ink) !important; }
.sw-text { color: var(--ink-2) !important; font-size: 14px !important; }
.sw-actions { gap: 8px; }
.sw-actions .btn { min-width: 110px; justify-content: center; }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.08); }
.swal2-popup.swal2-toast.sw-toast { display: flex !important; align-items: center !important; gap: 12px; padding: 14px 20px !important; min-height: 62px; min-width: 300px; position: relative; overflow: hidden; }
.sw-toast .swal2-icon { margin: 0 !important; flex: 0 0 auto; align-self: center !important; }
.sw-toast .swal2-html-container, .sw-toast .swal2-actions, .sw-toast .swal2-close, .sw-toast .swal2-loader { display: none !important; }
.sw-toast-title { flex: 1 1 auto; font-size: 15.5px !important; font-weight: 650 !important; color: var(--ink) !important; margin: 0 !important; padding: 0 !important; line-height: 1.35 !important; text-align: left !important; }
.sw-toast .swal2-timer-progress-bar-container { position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- Cuentas: buscador, filtros y menú ⋯ ---------- */
.list-tools { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; display: block; margin: 0; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search .input { padding-left: 36px; width: 100%; }
.seg button .n { color: var(--muted); margin-left: 3px; }
.list-tools .seg { max-width: 100%; overflow-x: auto; }
.list-tools .seg button { white-space: nowrap; }
.list-count { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }
.list-empty { padding: 22px 16px; text-align: center; color: var(--muted); }
.list-empty .btn { margin-left: 8px; }
.sub2 { color: var(--muted); font-size: 12px; margin-top: 2px; font-weight: 400; }
.tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.row-actions { align-items: center; }
.row-actions .btn.icon { width: 34px; height: 34px; justify-content: center; }
.row-actions .btn.icon svg { width: 18px; height: 18px; }
.row-actions .btn.on { box-shadow: 0 0 0 2px var(--accent); }
.rmenu { position: fixed; display: none; min-width: 280px; max-width: calc(100vw - 16px); padding: 6px; z-index: 70; box-shadow: 0 12px 32px rgba(0,0,0,.35); white-space: normal; }
.rmenu.open { display: block; }
.rmenu form { margin: 0; display: block; }
.rmenu .mi { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); font: inherit; }
.rmenu .mi:hover, .rmenu .mi:focus-visible { background: var(--surface-3); outline: none; }
.rmenu .mi svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-2); }
.rmenu .mi b { display: block; font-weight: 600; font-size: 13.5px; }
.rmenu .mi small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.rmenu .mi.danger, .rmenu .mi.danger svg { color: var(--bad); }
.rmenu hr { border: 0; height: 1px; background: var(--line); margin: 4px 6px; }
@media (max-width: 720px) { .search { max-width: none; flex-basis: 100%; } .list-count { margin-left: 0; } }

/* ---------- Competencias: resultado guardado e historial ---------- */
.cp-saved { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.cp-saved-ico { display: flex; color: var(--accent); flex: none; }
.cp-saved-ico svg { width: 18px; height: 18px; }
.cp-lock { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.cp-lock svg { width: 13px; height: 13px; }
.cp-sub { padding: 12px 20px 0; font-weight: 650; font-size: 13px; }
.cp-tro { display: flex; align-items: center; gap: 12px; }
.cp-tro .t { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--muted); }
.cp-tro .t svg { width: 17px; height: 17px; }
.cp-tro .t.on { background: color-mix(in srgb, #e2a514 22%, transparent); color: #e2a514; }
.cp-tro .w { margin-left: auto; font-size: 22px; font-weight: 800; }

/* ---------- Formulario de Copy Trading ---------- */
.fx { max-width: 760px; }
.fx-card { padding: 20px 24px; margin-bottom: 12px; }
.fx-head { display: flex; gap: 14px; align-items: center; padding: 20px 24px; margin-bottom: 12px; }
.fx-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.fx-ic svg { width: 22px; height: 22px; }
.fx-q { display: block; font-weight: 650; font-size: 14.5px; margin-bottom: 10px; }
.fx-req { color: var(--bad); }
.fx-hint { color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.fx-hint b { color: var(--ink); }
.fx-note { display: flex; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 12%, transparent); font-size: 12.5px; color: var(--ink-2); }
.fx-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; padding: 6px; }
.fx-eye svg { width: 18px; height: 18px; }
.fx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.fx-opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--surface-2); margin: 0; }
.fx-check { margin-top: 8px; font-weight: 400; }
.fx-opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.fx-opt input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.fx-opt small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.fx-actions { display: flex; align-items: center; gap: 10px; margin: 16px 0 30px; flex-wrap: wrap; }
.fx-ok { width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.fx-sum { margin-top: 18px; display: grid; grid-template-columns: 180px 1fr; row-gap: 10px; font-size: 14px; }
.fx-sum span { color: var(--muted); }
.cf-changed { color: var(--warn); font-size: 12px; font-weight: 650; margin-top: 6px; }
.cf-sub { color: var(--muted); font-size: 11.5px; }
.cf-pw { display: inline-flex; gap: 4px; align-items: center; }
.cf-pw code { background: var(--surface-3); padding: 3px 8px; border-radius: 6px; }
/* Formulario en Administración: estudiantes con varias cuentas se abren y se cierran */
.cf-tog { display: inline-flex; width: 22px; color: var(--muted); vertical-align: -3px; }
.cf-indent { margin-left: 22px; }
.cf-chev { transition: transform .15s; }
tr.cf-group { cursor: pointer; }
tr.cf-group:hover td { background: var(--surface-2); }
tr.cf-group.open .cf-chev { transform: rotate(90deg); }
tr.cf-group:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cf-count { margin-left: 6px; background: var(--accent-soft); color: var(--accent); }
tr.cf-child td { background: color-mix(in srgb, var(--accent) 4%, transparent); }
td.cf-rail { border-left: 3px solid var(--accent); }
tbody.cf-block[hidden], tr.cf-child[hidden] { display: none; }
@media (max-width: 720px) { .fx-grid { grid-template-columns: 1fr 1fr; } .fx-sum { grid-template-columns: 1fr; row-gap: 2px; } .fx-sum b { margin-bottom: 8px; } }

/* Cuadro de texto dentro de las ventanas de confirmación (p. ej. motivo de cancelación) */
.swal2-popup .sw-input { width: auto; margin: 6px 1.6em 0; min-height: 76px; font: inherit; font-size: 14px; resize: vertical; }
.swal2-popup .sw-input-label { margin: 14px 1.6em 0; justify-content: flex-start; font-weight: 600; font-size: 13.5px; color: var(--ink); }
/* Copy Trading: cuenta conectada, solicitud de cancelación */
.badge.copy-on { background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.badge.copy-cancel { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.fx-note.fx-cancel { background: color-mix(in srgb, var(--bad) 10%, transparent); }
.linkbtn { background: none; border: 0; padding: 0; margin-left: 6px; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
tr.cf-cancel td { background: color-mix(in srgb, var(--bad) 6%, transparent); }
.btn.copy-mark { border-color: var(--good); color: var(--good); white-space: nowrap; }
.cf-why { max-width: 190px; white-space: normal; }
.row-actions .row-gap { visibility: hidden; }
/* Formulario: tipo de cuenta (real / fondeo) */
.fx-grid.fx-grid2 { grid-template-columns: repeat(2, 1fr); }
.fx-opt.fx-off { opacity: .55; cursor: not-allowed; }
.badge.kind-real { background: color-mix(in srgb, var(--s2) 16%, transparent); color: var(--s2); }
.badge.kind-fondeo { background: color-mix(in srgb, var(--s7) 18%, transparent); color: var(--s7); }
.tbl td.cf-srv { max-width: 160px; white-space: normal; }   /* servidores largos: bajan de línea en el guion */
.fx-grid.fx-grid3 { grid-template-columns: repeat(3, 1fr); }
#cfTable td, #cfTable th { padding-left: 10px; padding-right: 10px; }   /* tabla del formulario: más columnas, celdas más justas */

/* ---------- Administración en pestañas (v4.25) ---------- */
.atabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.atabs::-webkit-scrollbar { display: none; }
.atabs a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.atabs a:hover { color: var(--ink); text-decoration: none; }
.atabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.atabs .n { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; background: var(--surface-3); color: var(--ink-2); }
.atabs .n.bad { background: var(--bad); color: #fff; }
.pend-h { font-size: 15px; margin: 0 0 10px; }
.pend { display: grid; gap: 10px; }
.pend-it { display: flex; align-items: center; gap: 14px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.pend-it .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.pend-it .num { font-size: 22px; font-weight: 750; min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.pend-it .txt { flex: 1; min-width: 0; }
.pend-it .t { font-weight: 650; }
.pend-it .d { color: var(--muted); font-size: 13px; margin-top: 2px; }
.pend-it .btn { white-space: nowrap; }
.pend-it.ok { opacity: .55; box-shadow: none; }
/* Copy Trading */
.cx-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cx-tools .spacer { flex: 1; }
.cx-tools .input { height: 36px; width: 260px; max-width: 100%; }
.cx-tools .btn.icon { height: 36px; width: 36px; justify-content: center; }
.cx-seg { max-width: 100%; overflow-x: auto; }
.cx-seg button { white-space: nowrap; }
.cx-seg button.alert { color: var(--bad); }
#cxTable td { vertical-align: middle; }
#cxTable tr.cx-cancel td:first-child { box-shadow: inset 4px 0 0 var(--bad); }
#cxTable tr.cx-risk td:first-child { box-shadow: inset 4px 0 0 var(--warn); }
#cxTable tr.cx-ret td:first-child { box-shadow: inset 4px 0 0 #2f6fe0; }
.cx-sub { color: var(--muted); font-size: 12px; }
.cx-why { max-width: 230px; white-space: normal; margin-top: 3px; line-height: 1.35; }
.badge.cx-noplat { background: transparent; border: 1px dashed var(--warn); color: var(--warn); }
.cx-prev { color: var(--warn); font-size: 12px; font-weight: 650; margin-top: 2px; }
.cx-chk-f { margin: 4px 0 0; }
.cx-chk { display: inline-flex; gap: 7px; align-items: center; font-size: 12.5px; font-weight: 650; color: var(--warn); cursor: pointer; }
.cx-chk input { width: 16px; height: 16px; accent-color: var(--warn); margin: 0; cursor: pointer; }
.cx-sw { width: 44px; height: 24px; border-radius: 999px; border: 0; background: #d6d5cf; position: relative; cursor: pointer; padding: 0; flex: none; transition: background .15s; vertical-align: middle; }
.cx-sw::after { content: "–"; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25);
  display: grid; place-items: center; font-size: 12px; font-weight: 900; line-height: 1; color: #9a998f; transition: left .15s; }
.cx-sw.on { background: var(--good); }
.cx-sw.on::after { content: "✓"; left: 23px; color: var(--good); }
.cx-sw:disabled { cursor: not-allowed; opacity: .55; }
.cx-sw.on:disabled { opacity: .8; }
[data-theme="dark"] .cx-sw:not(.on) { background: #4a4a46; }
.cx-pill { display: table; margin-top: 6px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.cx-pill.bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.cx-pill.ret { background: color-mix(in srgb, #2f6fe0 14%, transparent); color: #2f6fe0; }
.cx-pill.fixed { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
[data-copy-pw].on { box-shadow: 0 0 0 2px var(--accent); }
.cx-pop { position: fixed; z-index: 70; width: 290px; max-width: calc(100vw - 16px); padding: 14px 16px; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.cx-pop-l { font-size: 12px; color: var(--muted); font-weight: 650; margin-bottom: 6px; }
.cx-pop-r { display: flex; gap: 8px; align-items: center; }
.cx-pop-r code { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; background: var(--surface-3); padding: 7px 10px; border-radius: 8px; overflow-wrap: anywhere; }
.cx-pop-f { font-size: 12px; color: var(--muted); margin-top: 8px; }
.cx-fix { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-fix label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 13px; cursor: pointer; }
.cx-fix label input { margin: 0; accent-color: var(--accent); }
.cx-fix label.on { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.cx-fix label[hidden] { display: none; }
.cx-toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80; background: #1a1a19; color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; display: flex; gap: 16px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 24px); transition: opacity .4s; }
.cx-toast .linkbtn { color: #19c2ad; margin: 0; }
.cx-toast.gone { opacity: 0; pointer-events: none; }
@media (max-width: 720px) { .cx-tools .input { width: 100%; flex: 1; } .cx-tools .spacer { display: none; } .pend-it { flex-wrap: wrap; } .pend-it .btn { margin-left: 44px; } }
/* Avisos del Copy en Notas y Formulario */
.badge.copy-note { background: var(--accent-soft); color: var(--accent); }
.banner.notify.ret { background: color-mix(in srgb, #2f6fe0 9%, var(--surface)); border-color: color-mix(in srgb, #2f6fe0 35%, transparent); }
.banner.notify.ret .notify-ico { background: #2f6fe0; color: #fff; }
.btn.blue, .btn.primary.blue { background: #2f6fe0; border-color: #2f6fe0; color: #fff; }
.note-b .cn-t, .note-b .cn-l, .note-b .cn-q { display: block; }
.note-b .cn-t { font-weight: 700; }
.note-b .cn-q { font-style: italic; color: var(--ink-2); }
.fx-ret { border: 1.5px solid #2f6fe0 !important; }
.fx-ret-box { background: color-mix(in srgb, #2f6fe0 8%, var(--surface)); border: 1px solid color-mix(in srgb, #2f6fe0 30%, transparent); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; font-size: 14px; }
.fx-ret-box b { color: #2456b8; }
[data-theme="dark"] .fx-ret-box b { color: #8db2ff; }
.fx-fixme { color: #2f6fe0; font-weight: 700; font-size: 12px; margin-left: 6px; }
.fx-ret .input.fixme { border: 1.5px solid #2f6fe0; }
th.cx-sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.cx-sort:hover { color: var(--ink); }
th.cx-sort::after { content: ""; margin-left: 4px; font-size: 11px; }
th.cx-sort:hover::after { content: "↕"; opacity: .45; }
th.cx-sort.on { color: var(--ink); }
th.cx-sort.on::after { content: "↑"; opacity: 1; color: var(--accent); }
th.cx-sort.on.desc::after { content: "↓"; }
/* Depósitos y retiros (Detalle de la cuenta, v4.26) */
.dw-note { font-size: 12.5px; color: var(--muted); }
.dw-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 6px 20px 14px; }
.dw-k > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.dw-k .l { font-size: 12px; color: var(--muted); font-weight: 650; }
.dw-k .v { font-size: 20px; font-weight: 750; margin-top: 2px; font-variant-numeric: tabular-nums; }
.dw-k .v small { font-size: 12px; color: var(--muted); font-weight: 650; margin-left: 5px; }
.dw-k .s { font-size: 12px; color: var(--muted); }
.dw-t td:first-child, .dw-t th:first-child { padding-left: 20px; }
.dw-t .dw-c { color: var(--muted); }
.dw-b { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.dw-b.in { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--pos); }
.dw-b.out { background: color-mix(in srgb, var(--bad) 13%, transparent); color: var(--neg); }
.dw-empty { color: var(--muted); padding: 0 20px 16px; margin: 0; }
.dw-all { display: flex; align-items: center; gap: 12px; padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.dw-all span { color: var(--muted); font-size: 13px; flex: 1; }
.dw-modal { max-width: 760px; display: flex; flex-direction: column; }
.dw-tools { display: flex; gap: 10px; align-items: center; padding: 14px 22px 10px; flex-wrap: wrap; }
.dw-tools .spacer { flex: 1; }
.dw-scroll { max-height: min(420px, 55vh); overflow: auto; border-top: 1px solid var(--line); }
.dw-scroll .tbl { margin: 0; }
.dw-scroll thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.dw-mf { justify-content: space-between !important; align-items: center; }
.dw-mf span { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .dw-k { grid-template-columns: 1fr; } }
/* Detalle de la cuenta en pestañas (v4.26) */
.dtabs { margin: 18px 0 16px; }
.dpanel > .section, .dpanel > .card, .dpanel > .grid { margin-bottom: 16px; }
/* Portafolio: buscador de estudiante */
.pf-who { position: relative; display: inline-flex; align-items: center; }
.pf-who .input { height: 36px; width: 250px; max-width: 100%; padding-right: 30px; }
.pf-clear { position: absolute; right: 8px; color: var(--muted); font-weight: 700; text-decoration: none; padding: 2px 4px; }
.pf-clear:hover { color: var(--ink); text-decoration: none; }
/* Estrategias: columnas más juntas para que quepa Ret/DD */
.st-tbl th, .st-tbl td { padding-left: 9px; padding-right: 9px; }
.st-tbl svg { max-width: 96px; }

/* ------------------------------------------------------------ Comunidad (Fase 2) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg-links { flex-wrap: wrap; }
.seg-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 550; font-size: 13px; }
.seg-links a:hover { color: var(--ink); }
.seg-links a.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
.seg-n { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-h { font-size: 15px; font-weight: 650; margin: 32px 0 12px; }
.sec-h span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.qa-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.qa-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.qa-card:hover { border-color: var(--accent); }
.qa-thumb { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.qa-thumb svg { width: 22px; height: 22px; }
.qa-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.qa-title { font-weight: 650; }
.qa-meta { color: var(--muted); font-size: 12.5px; }
.qa-actions { display: flex; gap: 2px; justify-content: flex-end; align-items: center; }
.qa-actions .btn { height: 32px; padding: 0 10px; }
.tbl td.qa-tcell { white-space: normal; min-width: 200px; }
.qa-admin { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.qa-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.qa-player { width: min(960px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.qa-player::backdrop { background: rgba(0, 0, 0, .6); }
.qa-player .card-h { padding: 12px 12px 12px 20px; }
.qa-player .btn svg { width: 14px; height: 14px; }
.qa-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.qa-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sup-grid { grid-template-columns: minmax(280px, 380px) 1fr; align-items: start; }
.sup-text { height: auto; padding: 10px 12px; resize: vertical; font: inherit; }
.sup-list { display: grid; gap: 12px; }
.sup-cases { display: grid; gap: 14px; max-width: 980px; }
.ticket { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.card.ticket { padding: 16px 18px; }
.ticket-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ticket h4 { margin: 8px 0 4px; font-size: 14.5px; }
.ticket h4 small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 6px; }
.ticket-msg { margin: 6px 0; color: var(--ink-2); white-space: pre-line; }
.ticket-reply { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.ticket-reply b { font-size: 12px; color: var(--accent); }
.ticket-reply p { margin: 4px 0 0; white-space: pre-line; }
.ticket-wait { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.ticket-st { margin-left: auto; font-size: 11.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.ticket-st.st-new { background: color-mix(in srgb, #2f6fe0 15%, transparent); color: #2f6fe0; }
.ticket-st.st-open { background: var(--accent-soft); color: var(--accent); }
.ticket-st.st-pending { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 75%, var(--ink)); }
.ticket-st.st-closed { background: color-mix(in srgb, var(--good) 15%, transparent); color: color-mix(in srgb, var(--good) 80%, var(--ink)); }
.ticket-urg { font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.ticket-urg.urg-High { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 40%, transparent); }
.ticket-urg.urg-Medium { color: color-mix(in srgb, var(--warn) 80%, var(--ink)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.ticket-form { margin-top: 12px; display: grid; gap: 8px; }
.ticket-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.ticket-actions .input { width: auto; height: 36px; }
.wf-files { display: grid; gap: 8px; }
.wf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); }
.wf-row:first-child { border-top: 0; }
.wf-name { font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.wf-row .btn { margin-left: auto; }
.wf-row form.inline { margin: 0; }
.wf-row .btn + form.inline .btn { margin-left: 0; }
.wf-up, .wf-edit { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.wf-up .input, .wf-edit .input { flex: 1 1 220px; min-width: 0; height: 36px; }
.wf-up input[type=file] { padding: 6px 8px; }
@media (max-width: 900px) { .sup-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Research (Fase 3) */
.re-up-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.re-up-h { margin: 0; font-size: 16px; font-weight: 650; }
.re-drop { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px dashed var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.re-drop:hover, .re-drop:focus-within { border-color: var(--accent); color: var(--ink); }
.re-drop svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.re-up-row .btn.primary { height: 44px; padding: 0 20px; }
.re-tabs { display: flex; flex-wrap: wrap; margin: 20px 0 12px; width: fit-content; max-width: 100%; }
.re-panel[hidden] { display: none !important; }
.re-name { font-weight: 600; white-space: normal !important; min-width: 120px; }
.re-inds { white-space: normal !important; min-width: 220px; color: var(--ink-2); font-size: 12.5px; }
.re-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; flex: 1; }
.re-bar span { display: block; height: 100%; border-radius: 3px; }
.re-edge { display: flex; align-items: center; gap: 8px; }
.re-edge > span { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); width: 22px; text-align: right; }
.g-a { background: var(--good); } .g-b { background: var(--s4); } .g-c { background: var(--s2); } .g-d { background: var(--bad); } .g-n { background: var(--idle); }
.re-g-a { color: var(--pos); font-weight: 650; } .re-g-b { color: color-mix(in srgb, var(--s4) 75%, var(--ink)); font-weight: 650; }
.re-g-c { color: var(--s2); font-weight: 650; } .re-g-d { color: var(--neg); font-weight: 650; }
.re-sig { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; color: #fff; white-space: nowrap; }
.re-sig.g-b { color: #3a2a00; }
.re-top { display: flex; gap: 20px; flex-wrap: wrap; padding: 18px 20px; margin-top: 16px; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.re-top-l { flex: 1 1 340px; min-width: 0; }
.re-top-l .lbl { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.re-top-name { font-size: 22px; font-weight: 700; margin: 4px 0 2px; }
.re-insight { margin: 10px 0 0; color: var(--ink-2); }
.re-top-r { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 10px; flex: 0 1 300px; }
.re-top-r div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.re-top-r span { display: block; color: var(--muted); font-size: 11.5px; }
.re-top-r b { font-size: 18px; }
.re-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.re-row:first-child { border-top: 0; }
.re-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.re-dirs { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.re-dirs li b { display: block; }
.re-dirs li span { color: var(--ink-2); font-size: 13px; }
.re-sigs { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); }
.re-help .card-b p { margin-top: 0; }
.pl-grid { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .pl-grid { grid-template-columns: 1fr; } }
.pl-inputs .field label { display: flex; align-items: center; gap: 6px; }
.pl-file { height: auto; padding: 8px 10px; font-size: 12.5px; }
.pl-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.pl-tabs { display: flex; flex-wrap: wrap; margin-bottom: 14px; width: fit-content; max-width: 100%; }
.pl-panel[hidden] { display: none !important; }
.pl-panel > .grid.g-kpi, .pl-panel .pl-split .grid { margin-bottom: 14px; }
.pl-tcard { margin-top: 14px; }
.pl-tcard tr[data-strategy-index] { cursor: pointer; }
.pl-empty { padding: 32px 20px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.pl-st { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--ink-2); }
.pl-st.pass { background: color-mix(in srgb, var(--good) 16%, transparent); color: color-mix(in srgb, var(--good) 75%, var(--ink)); }
.pl-st.warning { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.pl-st.fail { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--neg); }
.pl-pass { color: var(--pos); } .pl-fail { color: var(--neg); } .pl-warning { color: color-mix(in srgb, var(--warn) 75%, var(--ink)); }
.pl-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .pl-split { grid-template-columns: 1fr; } }
.pl-mini { display: grid; gap: 10px; }
.pl-mini-it { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pl-mini-it strong { display: block; }
.pl-mini-it > span { color: var(--ink-2); font-size: 12.5px; }
.pl-bar { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.pl-canvas { display: block; width: 100%; height: 260px; margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pl-modal { width: min(880px, calc(100vw - 32px)); }
.pl-modal .card-b { max-height: 70vh; overflow: auto; }
/* Synthetic: colores que usa el script del Hub, mapeados al template */
.syn { --red: var(--neg); --green: var(--pos); --cyan: var(--accent); --gold: color-mix(in srgb, var(--s4) 80%, var(--ink)); --text: var(--ink-2); --white: var(--ink); --line2: var(--line); }
.syn .hidden { display: none !important; }
.syn-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 16px; border: 1.5px dashed var(--line); border-radius: 12px; background: var(--surface-2); text-align: center; }
.syn-drop p { margin: 0; color: var(--ink-2); }
.syn-drop > svg { width: 26px; height: 26px; color: var(--muted); }
.syn-drop.drag-over { border-color: var(--accent); background: var(--accent-soft); }
.syn-drop.has-file { border-style: solid; }
.syn-progress { display: none; height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: 12px; overflow: hidden; }
.syn-progress > div { height: 100%; width: 0; background: var(--accent); transition: width .18s; }
.syn-msg { margin-top: 10px; font-size: 13px; }
.syn .kpi.s-proceed .val, .syn .kpi.s-approved .val { color: var(--pos); }
.syn .kpi.s-watchlist .val, .syn .kpi.s-needs-review .val { color: var(--gold); }
.syn .kpi.s-discard .val, .syn .kpi.s-rejected .val { color: var(--neg); }
.syn .actions-title { font-weight: 650; margin-bottom: 8px; }
.syn .action-item { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; color: var(--ink-2); }
.syn .action-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.syn .dot-green { background: var(--good); } .syn .dot-gold { background: var(--warn); } .syn .dot-red { background: var(--bad); }
.syn .action-label { font-weight: 650; color: var(--ink); }
.syn .dist-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.syn .dist-seg { height: 100%; }
.syn .dist-A { background: var(--good); } .syn .dist-B { background: var(--accent); } .syn .dist-C { background: var(--s4); } .syn .dist-D { background: #f5a623; } .syn .dist-F { background: var(--bad); }
.syn .grade-counts { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 14px; font-size: 13px; }
.syn .gc-chip { display: inline-flex; align-items: center; gap: 4px; }
.syn .gc-dot { width: 8px; height: 8px; border-radius: 50%; }
.syn .gc-sep { color: var(--muted); }
.syn-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.syn .filter-btns { flex-wrap: wrap; }
.syn .filter-btn, .syn .date-btn { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; color: var(--ink-2); font: inherit; font-weight: 550; font-size: 13px; }
.syn .filter-btn.active, .syn .date-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--ring); }
.syn .export-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.syn .export-btn, .syn .per-page-btn, .syn .page-btn { height: 32px; padding: 0 12px; font-size: 13px; }
.syn .per-page-btn.active { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.syn .pagination-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 12px; }
.syn .per-page-row, .syn .page-nav { display: flex; gap: 6px; align-items: center; }
.syn-table td.dim { color: var(--ink-2); text-align: right; }
.syn-table td.score-cell { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.syn-table td.strategy-name-cell { font-weight: 600; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.syn .badge-grade { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.syn .grade-A { background: color-mix(in srgb, var(--good) 18%, transparent); color: color-mix(in srgb, var(--good) 75%, var(--ink)); }
.syn .grade-B { background: var(--accent-soft); color: var(--accent); }
.syn .grade-C { background: color-mix(in srgb, var(--s4) 20%, transparent); color: color-mix(in srgb, var(--s4) 70%, var(--ink)); }
.syn .grade-D { background: color-mix(in srgb, #f5a623 18%, transparent); color: color-mix(in srgb, #f5a623 65%, var(--ink)); }
.syn .grade-F { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--neg); }
.syn .badge-proceed, .syn .badge-approved, .syn .badge-PROCEED { background: color-mix(in srgb, var(--good) 18%, transparent); color: color-mix(in srgb, var(--good) 75%, var(--ink)); }
.syn .badge-watchlist, .syn .badge-needs-review, .syn .badge-WATCHLIST { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.syn .badge-discard, .syn .badge-rejected, .syn .badge-DISCARD { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--neg); }
.syn .rejection-reasons { font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: normal; max-width: 260px; }
.syn .rejection-reasons.oos-reason { color: color-mix(in srgb, var(--warn) 75%, var(--ink)); }
.syn .oos-robustness { font-size: 11.5px; margin-top: 3px; color: var(--muted); }
.syn .oos-robustness-high { color: var(--pos); } .syn .oos-robustness-low { color: var(--neg); }
.syn .deep-btn { border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.syn .deep-btn:hover { border-color: var(--accent); }
.syn .mc-verdict-badge, .syn .mc-verdict { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; margin-right: 6px; }
.syn .mc-verdict { font-size: 14px; padding: 4px 12px; }
.syn .verdict-robust { background: color-mix(in srgb, var(--good) 18%, transparent); color: color-mix(in srgb, var(--good) 75%, var(--ink)); }
.syn .verdict-marginal { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.syn .verdict-fragile { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--neg); }
.syn .mc-verdict-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; }
.syn .mc-trade-count, .syn .mc-est { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.syn .mc-metrics-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.syn .mc-stat, .syn .comp-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.syn .mc-stat-val, .syn .comp-stat-val { font-size: 19px; font-weight: 680; }
.syn .mc-stat-lbl, .syn .comp-stat-lbl { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.syn .mc-stat-sub { font-size: 11.5px; color: var(--muted); }
.syn .mc-section-lbl { font-weight: 650; margin: 18px 0 8px; }
.syn .mc-stress-table td, .syn .batch-mc-table td { white-space: nowrap; }
.syn .mc-stress-table td:not(:first-child), .syn .batch-mc-table td:nth-child(2), .syn .batch-mc-table td:nth-child(n+4) { text-align: right; font-variant-numeric: tabular-nums; }
.syn .batch-match-note { margin: 14px 0 8px; color: var(--ink-2); font-size: 13px; }
.syn .batch-skip-row td { color: var(--muted); }
.syn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.syn .dq-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.syn .dq-head h3 { margin: 0; font-size: 14.5px; }
.syn .dq-level-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; }
.syn .dq-excellent { background: color-mix(in srgb, var(--good) 18%, transparent); color: color-mix(in srgb, var(--good) 75%, var(--ink)); }
.syn .dq-good { background: var(--accent-soft); color: var(--accent); }
.syn .dq-fair { background: color-mix(in srgb, var(--warn) 18%, transparent); color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.syn .dq-limited { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--neg); }
.syn .dq-detect-row { display: flex; flex-wrap: wrap; gap: 18px; }
.syn .dq-detect-item { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.syn .dq-detect-label { color: var(--muted); font-size: 12px; }
.syn .dq-ok, .syn .dq-oos-active { color: var(--pos); } .syn .dq-miss, .syn .dq-oos-missing { color: color-mix(in srgb, var(--warn) 75%, var(--ink)); }
.syn .dq-dup-note, .syn .dq-warn-item { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
.syn .latest-upload-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); margin-bottom: 14px; }
.syn .luc-label { font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }
.syn .luc-file { font-weight: 650; }
.syn .luc-meta, .syn .history-meta { font-size: 12.5px; color: var(--muted); }
.syn .luc-right, .syn .history-right { display: flex; gap: 6px; }
.syn .history-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.syn .history-controls .input { max-width: 260px; height: 36px; }
.syn .history-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.syn .history-row:first-child { border-top: 0; }
.syn .history-file { font-weight: 600; word-break: break-all; }
.syn .show-more-btn { margin-top: 8px; }
.banner > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.syn .mc-stress-table th, .syn .batch-mc-table th { position: static; }
.mem-sig { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; display: grid; gap: 2px; }
.mem-sig span { color: var(--ink-2); font-size: 13px; }
.mem-good { border-left-color: var(--good); } .mem-warn { border-left-color: var(--warn); } .mem-bad { border-left-color: var(--bad); }
.si-conn .dot { background: var(--good); }
.si-conn .dot.err { background: var(--bad); }

/* ---------------- Administración › Seguridad (bóveda y auditoría) */
.sec-card .card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-card .card-h h3 { display: flex; align-items: center; gap: 8px; }
.sec-card .card-h h3 svg { width: 18px; height: 18px; color: var(--accent); }
.sec-lead { margin: 0 0 14px; color: var(--ink-2, var(--muted)); max-width: 680px; line-height: 1.5; }
.sec-form { display: grid; gap: 12px; max-width: 460px; margin-top: 4px; }
.sec-form .field { margin: 0; }
.sec-ack { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-2, var(--muted)); }
.sec-ack input { margin-top: 3px; flex: none; }
.sec-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.sec-stats > div { background: var(--surface); padding: 12px 16px; display: grid; gap: 2px; }
.sec-stats b { font-size: 22px; font-variant-numeric: tabular-nums; }
.sec-stats span { font-size: 12.5px; color: var(--muted); }
.sec-h4 { margin: 18px 0 8px; font-size: 14px; }
.sec-more { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.sec-more > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.sec-more[open] > summary { margin-bottom: 12px; }
tr.aud-fail td { background: color-mix(in srgb, var(--neg) 7%, transparent); }
.aud-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; margin-bottom: 16px; }
.aud-filter .input[type="search"] { flex: 1 1 220px; }
.aud-filter .input { width: auto; }
.aud-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .sec-stats { grid-template-columns: 1fr; } .aud-filter .input { flex: 1 1 100%; } }

/* ---------------- Verificación en dos pasos (login) */
.mfa-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 16px; }
.mfa-ico svg { width: 22px; height: 22px; }
.mfa-ico.big { width: 64px; height: 64px; border-radius: 50%; margin: 18px auto 0; }
.mfa-ico.big svg { width: 32px; height: 32px; }
.auth .mfa-err { background: color-mix(in srgb, var(--neg) 10%, var(--surface)); border-color: color-mix(in srgb, var(--neg) 35%, transparent); }
.auth .mfa-err svg { width: 18px; height: 18px; flex: none; color: var(--neg); }
.mfa-code { border: 0; margin: 0 0 18px; padding: 0; }
.mfa-code legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.mfa-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.mfa-boxes .input { height: 56px; padding: 0; text-align: center; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mfa-boxes.bad .input { border-color: var(--neg); }
.mfa-hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.mfa-hint svg { width: 14px; height: 14px; }
.mfa-btn { width: 100%; height: 44px; justify-content: center; font-size: 15px; }
.mfa-back { margin: 12px 0 0; }
.mfa-back .linkbtn { font-size: 13.5px; color: var(--ink-2); }
.mfa-foot { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.mfa-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; }
.mfa-steps span { height: 4px; border-radius: 4px; background: var(--line); }
.mfa-steps span.on { background: var(--accent); }
.mfa-list { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.45; }
.mfa-qr { width: 184px; height: 184px; margin: 0 auto 14px; padding: 6px; box-sizing: border-box; border-radius: 12px; background: #ffffff; border: 1px solid var(--line); }
.mfa-qr svg { width: 100%; height: 100%; display: block; }
.mfa-key { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 18px; }
.mfa-key .copy { min-width: 0; }
.mfa-key .copy { display: flex; gap: 8px; align-items: center; }
.mfa-key code { flex: 1 1 auto; min-width: 0; height: auto; padding: 9px 12px; border-radius: 10px; background: var(--surface-3); color: var(--ink); font-size: 13px; letter-spacing: .5px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.mfa-step2 { margin: 0 0 12px; font-size: 13.5px; padding-top: 14px; border-top: 1px solid var(--line); }
.mfa-done { text-align: center; }
.mfa-checks { list-style: none; margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 10px; text-align: left; font-size: 13.5px; }
.mfa-checks li { display: flex; gap: 10px; align-items: flex-start; }
.mfa-checks svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.mfa-back .linkbtn { margin-left: 0; }
.mfa-key .copy .btn { flex: none; white-space: nowrap; }
.mfa-open { display: flex; justify-content: center; margin: -4px 0 14px; font-size: 13.5px; font-weight: 600; }

/* ---------------- Biblioteca Q&A (v4.42): última sesión destacada + anteriores */
:root { --t-sqx-bg: #e2f3f0; --t-sqx: #075e55; --t-bp-bg: #efedff; --t-bp: #4a3aa7; --t-ann-bg: #f9eeda; --t-ann: #6b4300; --t-gen-bg: #f1f1ec; --t-gen: #52514e; }
:root[data-theme="dark"] { --t-sqx-bg: #0f2a27; --t-sqx: #19c2ad; --t-bp-bg: #221f3a; --t-bp: #b3abf3; --t-ann-bg: #3a2a07; --t-ann: #f0b84a; --t-gen-bg: #2c2c2a; --t-gen: #d6d5cc; }
.qa-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--t-gen-bg); color: var(--t-gen); }
.qa-tag.t-sqx { background: var(--t-sqx-bg); color: var(--t-sqx); }
.qa-tag.t-bp { background: var(--t-bp-bg); color: var(--t-bp); }
.qa-tag.t-ann { background: var(--t-ann-bg); color: var(--t-ann); }
.qa-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.qa-cells { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.qa-cells a { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 9px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.qa-cells a span { font-size: 12px; color: var(--muted); }
.qa-cells a:hover { background: var(--surface-3); color: var(--ink); }
.qa-cells a.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.qa-cells a.on span { color: inherit; opacity: .75; }
.qa-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; width: 300px; max-width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.qa-search svg { width: 16px; height: 16px; flex: none; }
.qa-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; }
.qa-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.qa-hero { flex: 999 1 560px; min-width: 0; overflow: hidden; padding: 0; }
.qa-stage { position: relative; aspect-ratio: 16 / 9; background: #000; display: grid; place-items: center; scroll-margin-top: calc(var(--appbar-h, 58px) + 12px);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px calc(100% / 12)); }
.qa-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qa-latest { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 8px; background: #0f2a27; color: #19c2ad; font-size: 12.5px; font-weight: 700; }
.qa-bigplay { width: 84px; height: 84px; border-radius: 50%; border: 0; background: #19c2ad; color: #06201d; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 0 0 10px rgba(25,194,173,.16); transition: transform .15s; }
.qa-bigplay:hover { transform: scale(1.05); }
.qa-bigplay svg { width: 34px; height: 34px; margin-left: 4px; }
.qa-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px 20px; }
.qa-info-t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qa-info-t h2 { margin: 0; font-size: 21px; }
.qa-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13.5px; }
.qa-info-a { display: flex; gap: 8px; flex-wrap: wrap; }
.qa-info-a .btn { height: 42px; padding: 0 16px; }
.qa-info-a .btn svg { width: 14px; height: 14px; }
.qa-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.qa-side-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.qa-side-h h2 { margin: 0; font-size: 15px; }
.qa-side-h span { font-size: 12.5px; color: var(--muted); }
.qa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-chips button { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.qa-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--page); font-weight: 700; }
.qa-list { padding: 0; overflow: hidden; }
.qa-row { width: 100%; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.qa-row:last-of-type { border-bottom: 0; }
.qa-row:hover, .qa-row.on { background: var(--surface-2); }
.qa-row.on .qa-row-p { background: var(--accent); color: var(--accent-ink); }
.qa-day { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 10px; background: var(--surface-3); line-height: 1.15; }
.qa-day b { font-size: 18px; }
.qa-day span { font-size: 11px; color: var(--ink-2); letter-spacing: .04em; }
.qa-row-t { display: flex; flex-direction: column; gap: 5px; min-width: 0; align-items: flex-start; }
.qa-row-t b { font-size: 14.5px; }
.qa-row-p { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.qa-row-p svg { width: 14px; height: 14px; margin-left: 2px; }
.qa-none { margin: 0; padding: 18px; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .qa-search { width: 100%; }
  .qa-info { padding: 16px; }
  .qa-info-a, .qa-info-a .btn { width: 100%; justify-content: center; }
  .qa-info-a .btn { flex: 1; }
  .qa-bigplay { width: 68px; height: 68px; }
}
.qa-dur { display: inline-flex; gap: 8px; } .qa-dur[hidden] { display: none; }
.qa-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.qa-back svg { width: 12px; height: 12px; }
.qa-back[hidden] { display: none; }

/* ── v4.43 · Rediseño Rule Extraction ("Mapa de reglas") y Synthetic ("Veredicto y línea de corte"). Solo interfaz. */
@font-face { font-family: "Barlow SC"; font-weight: 700; font-display: swap; src: url("../lib/barlow/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow SC"; font-weight: 800; font-display: swap; src: url("../lib/barlow/barlow-semi-condensed-latin-800-normal.woff2") format("woff2"); }
:root { --cond: "Barlow SC", "Arial Narrow", system-ui, sans-serif; --cut: #a86b00; --cut-bg: #fbf3e1; --cut-line: #d9a23c; --top-bg: #eef7f5; --top-line: #cfe6e1; }
:root[data-theme="dark"] { --cut: #f0b84a; --cut-bg: #1f1a10; --cut-line: #c98500; --top-bg: #0f1a18; --top-line: #23413d; }
.flow { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.flow li { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; font-size: 13px; }
.flow li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); font-style: normal; font-size: 11px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.flow li.done i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.flow li[aria-current="step"] { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); font-weight: 700; }
.flow li[aria-current="step"] i { border-color: var(--accent); }
.ring { --p: 0; --sz: 96px; --th: 10px; width: var(--sz); height: var(--sz); border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); }
.ring > div { width: calc(var(--sz) - var(--th) * 2); height: calc(var(--sz) - var(--th) * 2); border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

/* Rule Extraction */
.rm-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 20px 24px; margin-top: 20px; }
.rm-verdict .ring b { font-size: 22px; line-height: 1; } .rm-verdict .ring span { font-size: 11px; color: var(--ink-2); }
.rm-verdict p { flex: 1 1 380px; margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.rm-verdict p b { color: var(--ink); } .rm-verdict p em { font-style: normal; font-weight: 700; color: var(--accent); }
.rm-verdict .btn.primary { height: 46px; padding: 0 18px; }
.rm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; margin-top: 16px; }
.rm-col { overflow: hidden; }
.rm-col .card-h span { font-size: 12.5px; color: var(--muted); }
.rm-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 20px; border-top: 1px solid var(--line); }
.rm-row.top { background: var(--top-bg); }
.rm-rank { font-family: var(--cond); font-size: 20px; font-weight: 800; color: var(--muted); text-align: center; }
.rm-row.top .rm-rank, .rm-row.top .rm-wr { color: var(--accent); }
.rm-mid { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rm-mid > div:first-child { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rm-mid b { font-size: 15px; overflow-wrap: anywhere; } .rm-mid small { font-size: 12px; color: var(--muted); }
.rm-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.rm-bar span { display: block; height: 100%; border-radius: 99px; background: color-mix(in srgb, var(--accent) 45%, var(--surface-3)); }
.rm-row.top .rm-bar span { background: var(--accent); }
.rm-end { text-align: right; } .rm-wr { font-family: var(--cond); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rm-end small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.rm-h { margin: 22px 0 10px; font-size: 16px; }
.rm-combos { display: flex; flex-wrap: wrap; gap: 10px; }
.rm-combo { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.rm-combo.top { background: var(--top-bg); border-color: var(--top-line); }
.rm-combo span { padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink); font-size: 12px; font-weight: 800; }
.rm-combo.top span { background: var(--accent); color: var(--accent-ink); }
.rm-tests { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.rm-test { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.rm-test > i { width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-style: normal; font-weight: 800; display: grid; place-items: center; }
.rm-test b { font-size: 15px; } .rm-test span { color: var(--ink-2); line-height: 1.5; font-size: 13px; }
.rm-detail { margin: 28px 0 0; font-size: 16px; }

/* Synthetic */
.sv-hero { display: flex; flex-wrap: wrap; align-items: stretch; overflow: hidden; border-radius: 20px; border: 1px solid var(--top-line);
  background-color: var(--top-bg); background-image: linear-gradient(color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px); background-size: 24px 24px; }
.sv-l { flex: 2 1 420px; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sv-k { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sv-big { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.sv-big > b { font-family: var(--cond); font-size: clamp(76px, 12vw, 120px); font-weight: 800; line-height: .8; color: var(--accent); letter-spacing: -.02em; }
.sv-big strong { display: block; font-family: var(--cond); font-size: clamp(28px, 4vw, 38px); font-weight: 800; line-height: 1; text-transform: uppercase; }
.sv-big span { display: block; margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.sv-split { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.sv-split span:nth-child(1) { background: var(--accent); } .sv-split span:nth-child(2) { background: var(--s4); } .sv-split span:nth-child(3) { background: var(--bad); }
.sv-counts { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.sv-counts b { font-family: var(--cond); font-size: 22px; font-weight: 800; }
.sv-counts .c1 { color: var(--accent); } .sv-counts .c2 { color: var(--cut); } .sv-counts .c3 { color: var(--neg); }
.sv-r { flex: 1 1 280px; padding: 24px 28px; border-left: 1px dashed var(--top-line); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center; }
.sv-r .ring { --sz: 150px; --th: 11px; } .sv-r .ring > div { background: var(--top-bg); }
.sv-r .ring b { font-family: var(--cond); font-size: 52px; font-weight: 800; line-height: .9; }
.sv-r .ring span { font-family: var(--cond); font-size: 17px; font-weight: 700; color: var(--accent); }
.sv-r > span { font-size: 13px; color: var(--ink-2); }
.sv-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sv-btns .btn { height: 44px; padding: 0 16px; font-weight: 700; }
.sv-btns .btn.out { background: transparent; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
@media (max-width: 720px) { .sv-r { border-left: 0; border-top: 1px dashed var(--top-line); } .sv-l, .sv-r { padding: 20px; } }
.sv-rank-h { margin: 0; font-family: var(--cond); font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.syn-table th { text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px; }
.syn-table td { vertical-align: middle; padding-top: 12px; padding-bottom: 12px; }
.syn-table tr.adv td { background: var(--top-bg); border-color: var(--top-line); }
.syn-table .sv-pos { font-family: var(--cond); font-size: 30px; font-weight: 800; line-height: 1; color: var(--muted); width: 56px; }
.syn-table tr.adv .sv-pos { font-size: 38px; color: var(--accent); }
.syn-table .sv-dec { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.syn-table tr.adv .sv-dec { color: var(--accent); } .syn-table tr.watch .sv-dec { color: var(--cut); } .syn-table tr.out .sv-dec { color: var(--neg); }
.sv-med { display: inline-flex; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--muted); align-items: center; justify-content: center; box-sizing: border-box; font-family: var(--cond); font-size: 21px; font-weight: 800; color: var(--muted); }
.sv-med.g-A, .sv-med.g-B { border-color: var(--accent); color: var(--accent); } .sv-med.g-C { border-color: var(--s4); color: var(--cut); }
.sv-med.g-D, .sv-med.g-F { border-color: var(--bad); color: var(--neg); }
.syn-table tr:not(.adv) .sv-med { border-width: 2px; opacity: .85; }
.sv-pts { display: block; font-size: 11.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.sv-rdd { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.sv-rdd > div { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.sv-rdd > div span { display: block; height: 100%; background: var(--s4); border-radius: 99px; }
.syn-table tr.adv .sv-rdd > div span { background: var(--accent); } .syn-table tr.out .sv-rdd > div span { background: var(--bad); }
.sv-rdd b { font-family: var(--cond); font-size: 24px; font-weight: 800; min-width: 54px; text-align: right; font-variant-numeric: tabular-nums; }
.syn-table tr.sv-cut td { background: var(--cut-bg); border-top: 2px dashed var(--cut-line); border-bottom: 2px dashed var(--cut-line); padding: 12px 16px; white-space: normal; }
.sv-cut-in { position: sticky; left: 16px; max-width: min(1100px, calc(100vw - 72px)); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sv-cut-in b { font-family: var(--cond); font-size: 19px; font-weight: 800; color: var(--cut); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.sv-cut-in span { color: var(--ink-2); font-size: 13px; }

/* ── v4.44 · Login "Marca gigante" (también Mfa, MfaSetup y MfaDone, que usan _AuthLayout). Solo interfaz. */
/* v4.45: fondo sobrio (puntos finos + luz suave arriba) en lugar de la marca gigante. */
.auth { position: relative; overflow: hidden; align-content: center; gap: 22px;
  background-color: var(--page);
  background-image: radial-gradient(ellipse 60% 45% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 70%),
    radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.4px);
  background-size: 100% 100%, 22px 22px; }
.auth::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 65% at 50% 50%, transparent 55%, var(--page) 100%); }
.auth > * { position: relative; z-index: 1; }
.auth-legal { margin: 0; text-align: center; font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.auth .card.auth-card { position: relative; max-width: 440px; padding: 32px 32px 28px; border-radius: 22px; border-top: 4px solid var(--accent);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); box-shadow: 0 24px 70px rgba(16, 24, 40, .14); }
:root[data-theme="dark"] .auth .card.auth-card { box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-top .brand-logo { margin: 0; justify-content: flex-start; }
.auth-top .brand-logo img { width: 160px; }
.auth-pill { padding: 5px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.auth h1 { font-family: var(--cond); font-size: 32px; font-weight: 800; line-height: .95; text-transform: uppercase; letter-spacing: .005em; margin: 24px 0 10px; overflow-wrap: normal; }
.auth h1.auth-hero { font-size: 34px; line-height: 1; margin-top: 22px; }
.auth h1 span { color: var(--accent); }
.auth p.sub { font-size: 15px; }
.auth .field { gap: 8px; margin-bottom: 16px; }
.auth .field label { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.auth .input { height: 48px; border-radius: 12px; font-size: 16px; padding: 0 16px; }
.auth .pw-wrap .input { padding-right: 52px; }
.auth .pw-eye { width: 40px; height: 40px; right: 5px; border-radius: 10px; }
.auth .btn.primary { width: 100%; height: 52px; border-radius: 12px; justify-content: center; gap: 10px; font-family: var(--cond); font-size: 22px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.auth-step { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; color: var(--muted); font-size: 12.5px; text-align: center; }
.auth-card > .auth-step:last-child { margin-bottom: 8px; }   /* v4.49.2: si "Paso 2" cierra la tarjeta, mismo espacio abajo que arriba */
.auth-step::before, .auth-step::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth p.sub.auth-foot { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

/* v4.46 · Logo completo de 2TR8DE en la barra de arriba (en vez del ícono + texto). */
.appbar-brand .wm { display: block; width: 110px; height: auto; }
.appbar-brand .wm.for-dark { display: none; }
[data-theme="dark"] .appbar-brand .wm.for-light { display: none; }
[data-theme="dark"] .appbar-brand .wm.for-dark { display: block; }
@media (max-width: 380px) { .appbar-brand .wm { width: 92px; } }

/* v4.46.1 · Ranking de Synthetic en el celular: cada fila es una tarjeta, sin deslizar de lado. Solo interfaz. */
@media (max-width: 720px) {
  .syn-table, .syn-table tbody { display: block; }
  .syn-table thead { display: none; }
  .syn-table tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "pos name name grade" "rdd rdd rdd rdd" "net win dd act"; gap: 10px 12px; align-items: center; padding: 14px 4px; border-top: 1px solid var(--line); }
  .syn-table tr.adv { background: var(--top-bg); border-color: var(--top-line); }
  .syn-table tr td { display: block; padding: 0; border: 0; background: transparent !important; white-space: normal; text-align: left !important; min-width: 0; }
  .syn-table .sv-c-pos { grid-area: pos; width: auto; padding-left: 8px; }
  .syn-table .sv-c-name { grid-area: name; max-width: none; overflow: visible; overflow-wrap: anywhere; }
  .syn-table .sv-c-name .rejection-reasons { max-width: none; }
  .syn-table .sv-c-grade { grid-area: grade; justify-self: end; text-align: center !important; padding-right: 8px; }
  .syn-table .sv-c-rdd { grid-area: rdd; padding: 0 8px; }
  .syn-table .sv-rdd { min-width: 0; }
  .syn-table .sv-c-net { grid-area: net; padding-left: 8px; }
  .syn-table .sv-c-win { grid-area: win; }
  .syn-table .sv-c-dd { grid-area: dd; }
  .syn-table .sv-c-act { grid-area: act; justify-self: end; text-align: right !important; padding-right: 8px; }
  .syn-table .sv-c-net::before, .syn-table .sv-c-win::before, .syn-table .sv-c-dd::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .syn-table .sv-c-net, .syn-table .sv-c-win, .syn-table .sv-c-dd { font-variant-numeric: tabular-nums; color: var(--ink); }
  .syn-table tr.sv-cut { display: block; padding: 0; border: 0; }
  .syn-table tr.sv-cut td { display: block; border-top: 2px dashed var(--cut-line) !important; border-bottom: 2px dashed var(--cut-line) !important; background: var(--cut-bg) !important; padding: 12px 14px; }
  .sv-cut-in { position: static; max-width: none; }
  .syn .tbl-wrap:has(.syn-table) { overflow: visible; }
}

/* ── v4.47 · Administración › Usuarios del Hub y cambiar contraseña. */
.hu-connect { margin-bottom: 16px; }
.hu-connect-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hu-connect-f { display: flex; gap: 8px; flex-wrap: wrap; }
.hu-connect-f .input { width: 240px; max-width: 100%; height: 40px; }
.hu-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.hu-kpi { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.hu-kpi span { display: block; font-size: 12.5px; color: var(--muted); }
.hu-kpi b { font-family: var(--cond); font-size: 30px; font-weight: 800; }
.hu-c-ok { color: var(--accent); } .hu-c-warn { color: var(--cut); } .hu-c-bad { color: var(--neg); }
.hu-list { overflow: hidden; margin-bottom: 16px; }
.hu-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hu-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.hu-search svg { width: 18px; height: 18px; flex: none; }
.hu-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; outline: none; }
.hu-tools .seg button { white-space: nowrap; }
.hu-cell { height: 40px; width: auto; }
.hu-tools .btn.primary { height: 40px; }
.hu-tbl td { vertical-align: middle; }
.hu-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hu-who b { display: block; }
.hu-av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.hu-av-lg { width: 48px; height: 48px; font-size: 16px; }
.hu-user { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.hu-acc { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--surface-3); color: var(--muted); }
.hu-acc.on { background: var(--accent-soft); color: var(--accent); }
.hu-st { display: inline-block; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hu-st-ok { background: var(--accent-soft); color: var(--accent); }
.hu-st-pend { background: var(--cut-bg); color: var(--cut); }
.hu-st-susp { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--neg); }
.hu-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 18px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.hu-modal { max-width: 620px; border-top: 4px solid var(--accent); }
.hu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 560px) { .hu-grid { grid-template-columns: 1fr; } }
.hu-tog { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; }
.hu-tog b { display: block; } .hu-tog small { display: block; font-size: 12.5px; color: var(--muted); }
.hu-tog input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--surface-3); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.hu-tog input[type=checkbox]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.hu-tog input[type=checkbox]:checked { background: var(--accent); }
.hu-tog input[type=checkbox]:checked::after { left: 21px; }
.hu-tog input[type=checkbox]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hu-tog-bad input[type=checkbox]:checked { background: var(--bad); }
.hu-check { display: flex; align-items: center; gap: 10px; margin-top: 4px; color: var(--ink-2); }
.hu-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.hu-drawer-bg { place-items: stretch end; padding: 0; }
.hu-drawer { width: 460px; max-width: 100%; height: 100%; max-height: 100vh; background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.hu-drawer .mh { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.hu-drawer .mh h2 { margin: 0; font-size: 18px; }
.hu-drawer form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.hu-dbody { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.hu-dbody > .hu-who { margin-bottom: 14px; }
.hu-sec { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); margin-top: 6px; }
.hu-drawer .mf { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); }
.pw-page { max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.pw-form .btn.primary { height: 44px; padding: 0 20px; }
.hu-grid { align-items: start; }
.hu-grid .field, .hu-dbody .field { align-content: start; }
.hu-who b { display: inline; }
.hu-who .badge { vertical-align: 1px; }
.hu-tbl .btn:disabled, .hu-sec .btn:disabled { opacity: .45; cursor: not-allowed; }
.hu-tools .seg { max-width: 100%; overflow-x: auto; }
@media (max-width: 720px) {
  .hu-tbl th:nth-child(n+2):nth-child(-n+4), .hu-tbl td:nth-child(n+2):nth-child(-n+4),
  .hu-tbl th:nth-child(6), .hu-tbl td:nth-child(6), .hu-tbl th:nth-child(7), .hu-tbl td:nth-child(7) { display: none; }
  .hu-tbl .row-actions .btn:disabled { display: none; }
  .hu-tools .btn.primary, .hu-cell { flex: 1 1 auto; }
}

.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.chk input { width: 16px; height: 16px; }
