/* Demand Panel — estilos de la app. Colores, letra y radios: diseño/marca/tokens.css (servido como /marca/tokens.css,
   cargado antes que este archivo). Acá no va ningún hex suelto: si falta un color, se agrega allá. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; scrollbar-gutter: stable; } /* trabar el scroll no corre la página el ancho de la barra */
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p { margin: 0; }
/* Barras de scroll MÍNIMAS en toda la app (2026-11-27, pedido del dueño: "que sea mínimo, así no se nota casi"): 6 px, el
   pulgar de bajo contraste (el color del texto al 18 %, claro y oscuro salen solos), sin carril, un poco más visible al
   pasar el mouse por encima. Vale para la página y para toda caja que scrollea (menú, modales, cajón, tablas, chat, listas).
   Chrome / Edge / Safari: ::-webkit-scrollbar. Firefox: scrollbar-width / scrollbar-color — sólo donde no hay
   ::-webkit-scrollbar, porque en Chrome (≥ 121) esas dos propiedades le ganan a ::-webkit-scrollbar y la dejan más ancha.
   Las cajas que esconden su barra (scrollbar-width: none, p. ej. .seg o .m-chips) la siguen escondiendo. */
:root { --sb-thumb: color-mix(in srgb, var(--text) 18%, transparent); --sb-thumb-h: color-mix(in srgb, var(--text) 36%, transparent); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: var(--sb-thumb-h); }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
  :not(html, body):hover { scrollbar-color: var(--sb-thumb-h) transparent; }
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ui.combo — desplegable con buscador (el filtro de juegos de toda la app). */
.cb { position: relative; display: inline-flex; min-width: 0; }
.cb-b { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; min-width: 180px; max-width: 280px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cb-b:hover, .cb.open .cb-b { border-color: var(--accent); }
.cb.open .cb-b { box-shadow: 0 0 0 3px var(--accent-ring); }
.cb-bt { flex: 1; min-width: 0; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-b em, .cb-o em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.cb-c { color: var(--muted); flex-shrink: 0; transition: transform .15s; } .cb.open .cb-c { transform: rotate(180deg); }
.cb-pop { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-start: 0; z-index: 60; min-width: 100%; width: max-content; max-width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.cb-pop[hidden] { display: none; }
.cb-q { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px; border: 1px solid var(--border-2); border-radius: 9px; color: var(--muted); }
.cb-q input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; }
.cb-q:focus-within { border-color: var(--accent); }
.cb-l { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.cb-o { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 13.5px; text-align: start; cursor: pointer; }
.cb-o[hidden] { display: none; }
.cb-o:hover, .cb-o:focus-visible { background: var(--surface-2); outline: none; }
.cb-o.on { color: var(--accent-ink); font-weight: 600; }
/* Una opción que hoy no se puede elegir (ej. LTC apagado): en su lugar, gris, con el motivo en chico. */
.cb-o.cb-o-off, .cb-o.cb-o-off:hover { cursor: not-allowed; background: transparent; color: var(--muted); }
.cb-o.cb-o-off .cb-ot, .cb-o.cb-o-off em { opacity: .6; }
.cb-nota { flex: none; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cb-ot { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-ck { color: var(--accent); flex-shrink: 0; }
.cb-v { padding: 8px 10px; margin: 0; }
/* Combo con columnas (`cabecera`, 2026-11-20: la moneda — CURRENCY | EXCHANGE RATE): la fila de títulos arriba, el número
   alineado a la derecha y el ✓ de la elegida en su propio lugar, así la columna no se corre. Abajo, `pie`. */
.cb-h { display: flex; justify-content: space-between; gap: 16px; padding: 4px 30px 4px 10px; padding-inline: 10px 30px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.cb-cols .cb-o { position: relative; padding-inline-end: 30px; }
.cb-cols .cb-o em { margin-inline-start: auto; font-size: 12.5px; color: var(--text-2); }
.cb-cols .cb-ck { position: absolute; inset-inline-end: 10px; }
.cb-pie { margin: 0; padding: 6px 10px 2px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); line-height: 1.4; max-width: 300px; }
@media (max-width: 768px) { .cb, .cb-b { width: 100%; max-width: none; } .cb-pop { inset-inline-end: 0; width: auto; max-width: none; } }
/* Todo desplegable de la app es este combo (pedido del dueño, 2026-10-15). Adentro de un campo de formulario ocupa
   el ancho y mide lo que un input (42 px). Deshabilitado: como un input deshabilitado. */
.cb-b:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.cb-b:disabled { cursor: not-allowed; opacity: .6; } .cb-b:disabled:hover { border-color: var(--border-2); }
.cb-i { color: var(--muted); flex-shrink: 0; }
.field .cb, .field .cb-b { width: 100%; max-width: none; } .field .cb-b { height: 42px; font-weight: 400; font-size: 14px; }
/* El de idioma (barra de arriba, pantallas de ingreso, términos, hoja "Más"): angosto, la lista se abre hacia adentro. */
.lang-cb .cb-b { min-width: 0; width: auto; max-width: 200px; color: var(--text-2); font-weight: 500; font-size: 13px; }
.lang-cb .cb-pop { inset-inline-start: auto; inset-inline-end: 0; }
.auth-tools .lang-cb, .auth-tools .lang-cb .cb-b, .terms-top .lang-cb, .terms-top .lang-cb .cb-b { width: auto; }
@media (max-width: 480px) { .auth-tools .lang-cb .cb-b { max-width: 150px; } }
.auth-tools, .terms-top .auth-tools { min-width: 0; }
.auth-tools .lang-mon, .terms-top .lang-mon { min-width: 0; flex-shrink: 1; }
.auth-tools .lang-mon .cb, .terms-top .lang-mon .cb { min-width: 0; }
/* En un telefono, en las pantallas de AFUERA (ingreso, invitacion, terminos, onboarding) la marca + idioma + moneda +
   tema no entran: ahi queda el idioma. La moneda se elige igual en el header de la app y en Account - Preferences. */
@media (max-width: 560px) {
  .auth-tools .lang-mon .lang-cb .cb-b, .terms-top .lang-mon .lang-cb .cb-b { max-width: 120px; }
  .auth-tools .lang-mon .mx-sel, .terms-top .lang-mon .mx-sel { display: none; }
}
/* Los <select> nativos que quedan (pestañas de otros, panel del staff) se ven igual que el combo: mismo alto, borde,
   radio, chevron dibujado y anillo de foco. */
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 500; padding-inline-end: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
[dir=rtl] .field select { background-position: 12px 50%, 17px 50%; }
.field select:hover { border-color: var(--accent); }
.field select:disabled { cursor: not-allowed; opacity: .6; }
/* Los campos que ya muestran su anillo naranja al enfocarse no llevan además el contorno: dentro de .input-addon se veía
   un rectángulo adentro de la caja (el campo de la puja). */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .invite input:focus-visible, .composer input:focus-visible,
.search input:focus-visible, .otp input:focus-visible, .input-addon input:focus-visible, .top-search input:focus-visible { outline: none; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }
.ic.xs { width: 14px; height: 14px; }
.ic.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.center { text-align: center; }
.mono { font-family: var(--mono); font-size: .92em; }
.block { display: block; }
.pos { color: var(--green); }
.label { display: block; font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 500; }
.eyebrow::first-letter { text-transform: uppercase; }
.count { min-width: 26px; height: 22px; padding: 0 8px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; }
.show-m { display: none !important; }

/* ── Buttons & controls ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, color .15s; }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--glow); }
.btn-primary:hover { background: var(--accent-600); }
.btn-primary:disabled { background: var(--surface-3); color: var(--muted); box-shadow: none; }
.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); box-shadow: var(--shadow); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-soft { background: var(--accent-soft); color: var(--accent-ink); }
.btn-danger { background: var(--red); color: var(--on-red); }
.btn-danger:disabled { background: var(--surface-3); color: var(--muted); }
.btn-danger-ghost { background: transparent; color: var(--red); border-color: var(--border-2); }
.btn-discord { background: var(--surface-3); color: var(--text); border-color: var(--border-2); } /* sin el violeta de Discord: el ícono ya dice qué es */
.btn-discord .ic { width: 20px; height: 20px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 48px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .nb, .nb { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-style: normal; display: inline-grid; place-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--text-2); position: relative; flex-shrink: 0; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.sm { width: 32px; height: 32px; }
/* Al tacto, nada por debajo de 40 px (2026-11-24): los botones chicos crecen en la tableta y el teléfono. */
@media (max-width: 899px) { .btn-sm { height: 40px; } .icon-btn.sm { width: 40px; height: 40px; } }
.icon-btn em { position: absolute; top: 4px; inset-inline-end: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; font-style: normal; display: grid; place-items: center; border: 2px solid var(--surface); }
.star.on { color: var(--accent); } .star.on svg { fill: var(--accent); }
.link { color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link .ic { width: 14px; height: 14px; }
.link:hover { text-decoration: underline; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow), 0 0 0 1px var(--border); font-weight: 600; }
.seg em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 600; }
.seg button.on em { color: var(--accent-ink); }
@media (max-width: 899px) { .seg button { height: 38px; } } /* al tacto: más alto para el dedo (32 px en la compu) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border-2); background: var(--surface); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); white-space: nowrap; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.sw { width: 40px; height: 24px; border-radius: 99px; background: var(--surface-3); position: relative; flex-shrink: 0; transition: background .15s; border: 1px solid var(--border-2); }
.sw span { position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .15s; }
.sw.on { background: var(--accent); border-color: var(--accent); }
.sw.on span { transform: translateX(16px); }
.sw:disabled { opacity: .55; }
.sw-l { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--text-2); min-height: 40px; white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .flabel { font-size: 13px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.fl-row { justify-content: space-between; }
/* El buscador de un desplegable (.cb-q) adentro de un .field NO es un campo del formulario: sin esto le caían el borde,
   el alto y el anillo de foco de `.field input` y se veía un rectángulo agrandado adentro del buscador (paso de cobro del
   onboarding, 2026-10-20). Va con más especificidad que `.field input` y antes de él no alcanza: por eso el !important. */
.cb .cb-q input { height: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.field input, .field select, .field textarea, .invite input, .copy-row input, .composer input, .search input, .otp input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .invite input:focus, .composer input:focus, .search input:focus, .otp input:focus, .input-addon:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.hint { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.input-addon { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); padding: 0 4px 0 12px; height: 42px; gap: 8px; }
.input-addon input { border: 0 !important; box-shadow: none !important; padding: 0 !important; height: 100% !important; background: transparent; flex: 1; }
.input-addon em { font-style: normal; color: var(--muted); font-size: 13px; font-weight: 500; padding-inline-end: 8px; }
.input-addon.big { height: 54px; } .input-addon.big input { font-size: 22px; font-weight: 600; }
.input-addon.err { border-color: var(--red); }
.err-t { color: var(--red); font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sel { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); min-width: 0; box-shadow: var(--shadow); }
.sel select { border: 0; background: transparent; outline: none; appearance: none; -webkit-appearance: none; font-size: 13px; font-weight: 500; padding-inline-end: 2px; min-width: 0; max-width: 220px; cursor: pointer; }
.sel .glogo { width: 20px; height: 20px; }
.search { display: flex; align-items: center; gap: 8px; position: relative; flex: 1; min-width: 0; }
.search .ic { position: absolute; inset-inline-start: 12px; color: var(--muted); pointer-events: none; }
.search input { padding-inline-start: 38px; background: var(--surface); }
.search.big input { height: 54px; font-size: 16px; border-radius: 14px; padding-inline-start: 46px; box-shadow: var(--shadow-lg); }
.search.big .ic { inset-inline-start: 16px; width: 20px; height: 20px; }
.lang { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 10px; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); }
.lang select { border: 0; background: transparent; outline: none; font-size: 13px; font-weight: 500; cursor: pointer; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex-shrink: 0; }
.radio-list { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; border: 1px solid var(--border-2); border-radius: 12px; text-align: start; background: var(--surface); }
.radio .rd { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-2); flex-shrink: 0; }
.radio.on { border-color: var(--accent); background: var(--accent-soft); }
.radio.on .rd { border: 5px solid var(--accent); }
.radio:disabled { opacity: .55; }
.radio > div { flex: 1; min-width: 0; } .radio small { display: block; }
.radio .flag { width: 30px; height: 22px; border-radius: 5px; background: var(--surface-2); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ── Avatars, logos, pills ── */
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--av); color: var(--on-accent); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; letter-spacing: .02em; }
.avatar.xs { width: 22px; height: 22px; font-size: 10px; }
.avatar.lg { width: 52px; height: 52px; font-size: 17px; }
.avatar.xl { width: 72px; height: 72px; font-size: 22px; }
.avatar-btn { border-radius: 50%; padding: 2px; display: grid; }
.glogo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--surface-2); flex-shrink: 0; border: 1px solid var(--border); }
.glogo.xs { width: 22px; height: 22px; border-radius: 6px; }
.glogo.sm { width: 32px; height: 32px; border-radius: 8px; }
.glogo.lg { width: 52px; height: 52px; border-radius: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.t-green { background: var(--green-soft); color: var(--green); } .t-blue { background: var(--blue-soft); color: var(--blue); }
.t-violet { background: var(--violet-soft); color: var(--violet); } .t-amber { background: var(--amber-soft); color: var(--amber); }
.t-red { background: var(--red-soft); color: var(--red); } .t-gray { background: var(--gray-soft); color: var(--muted); }
.t-accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; vertical-align: middle; }
.tag-accent { background: var(--accent-soft); color: var(--accent-ink); } .tag-red { background: var(--red-soft); color: var(--red); }
.tag-amber { background: var(--amber-soft); color: var(--amber); } .tag-green { background: var(--green-soft); color: var(--green); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; align-items: center; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.trend .ic { width: 14px; height: 14px; }
.trend.up { color: var(--green); } .trend.down { color: var(--red); }
.prog { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.prog.thin { height: 5px; }
.cd { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.cd.soon { color: var(--accent-ink); }
.live { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 7px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 11.5px; font-weight: 700; vertical-align: middle; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.udot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-inline-start: auto; }

/* ── Shell ── */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; background: var(--side-bg); border-inline-end: 1px solid var(--border); padding: 16px 12px; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand > div { flex: 1; min-width: 0; }
/* El isotipo NO lleva radio: es una "A" con la base tan ancha como la imagen y un radio le comía las dos esquinas. */
.brand-logo { width: 34px; height: 34px; }
.brand b { display: block; font-size: 14px; line-height: 1.2; }
.brand small { color: var(--muted); font-size: 12px; }
.side-nav { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.side-gl { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 0 10px 4px; }
.side-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 13.5px; }
.side-item .ic { width: 17px; height: 17px; color: var(--muted); }
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.side-item.on .ic { color: var(--accent); }
.side-item span { flex: 1; }
.side-item em { font-style: normal; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.side-item em.soft { background: var(--surface-3); color: var(--text-2); }
/* "Sell Here" (nav.cta, 2026-11-20): arriba de todo el menú, un botón cian (el de las acciones principales), no una pestaña. */
.side-ctas { display: flex; flex-direction: column; gap: 6px; }
.side-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--glow); font-weight: 650; font-size: 14px; }
.side-cta .ic { width: 18px; height: 18px; color: var(--on-accent); }
.side-cta:hover { background: var(--accent-600); color: var(--on-accent); }
.side-cta.on { box-shadow: var(--glow), 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); } /* abierta: un aro, sin dejar de ser el botón */
.side-foot { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
button.side-item { width: 100%; text-align: start; }
/* "Contact Us" (2026-11-26) suma un renglón al pie: en una pantalla baja (laptop de 768 px) el menú (compu y tablet) va un
   poco más junto, así la tarjeta de la cuenta sigue entrando sin scrollear el menú. */
@media (min-width: 900px) and (max-height: 820px) {
  .side-nav { gap: 10px; }
  .side-item { height: 32px; }
  .side-foot { padding-top: 6px; }
  .me-card { margin-top: 4px; }
}
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: 6px; border-radius: 12px; border: 1px solid var(--border); }
.me-card:hover { background: var(--surface-2); }
.me-card div { flex: 1; min-width: 0; }
.me-card b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.tier-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 30; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.top-l { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1; }
.top-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; color: var(--text); }
/* Migas del header (2026-10-14): grupo › pestaña › subpantalla; el último tramo es el <h1>. */
.top-crumbs { flex-wrap: nowrap; min-width: 0; gap: 0; font-size: 14px; }
.top-crumbs .cr-i { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex-shrink: 0; }
.top-crumbs .cr-i + .cr-i { margin-inline-start: 6px; }
.top-crumbs .cr-i:last-child { flex-shrink: 1; }
.top-crumbs a.cr, .top-crumbs span.cr { white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.top-crumbs a.cr { color: var(--text-2); font-weight: 500; cursor: pointer; border-radius: 6px; }
.top-crumbs a.cr:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.top-crumbs .cr-sep { color: var(--muted); opacity: .7; flex-shrink: 0; }
.m-logo { display: none; width: 30px; height: 30px; }
.top-search { max-width: 340px; flex: 1; display: flex; align-items: center; position: relative; }
.top-search .ic { position: absolute; inset-inline-start: 11px; color: var(--muted); width: 16px; height: 16px; }
.top-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: 13px; outline: none; }
.top-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.top-r { display: flex; align-items: center; gap: 6px; }
/* ── Header ordenado (2026-11-26, pedido del dueño: "organizar el header"; core.js › topbar) ──
   Izquierda las migas (crecen y se cortan con "…") · centro el buscador (css/buscar.css) · derecha tres grupos separados
   por una rayita: la pantalla (▶ Guide) | cómo se ve (idioma · moneda · tema en UNA pastilla) | lo tuyo
   (silencio · campana · avatar). Todo mide 36 px de alto. Hasta 1180 px "cómo se ve" y el silencio pasan al pie del menú. */
.top .top-crumbs { flex-wrap: nowrap; } /* .crumbs (más abajo) dice wrap: en la tablet "Trade" quedaba arriba de la pestaña */
.top-l { flex: 1 1 0; }
.top-c { flex: 0 1 280px; min-width: 128px; display: flex; }
.top-r { flex-shrink: 0; gap: 0; }
.top-g { display: flex; align-items: center; gap: 6px; }
.top-sep { width: 1px; height: 22px; background: var(--border); margin-inline: 10px; flex-shrink: 0; }
.top .icon-btn { width: 36px; height: 36px; border-radius: 9px; }
.top .guide-btn { height: 36px; padding-inline: 4px 12px; gap: 7px; }
.top .guide-play { width: 26px; height: 26px; }
.top .avatar-btn .avatar { width: 32px; height: 32px; font-size: 12px; }
/* La pastilla de "cómo se ve": los tres controles pegados, con una rayita entre cada uno. */
.top-vista { gap: 0; height: 36px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); }
.top-vista .lang-mon { gap: 0; height: 100%; }
.top-vista .lang-mon > * + *, .top-vista > * + * { border-inline-start: 1px solid var(--border); }
.top-vista .mx-sel { gap: 0; height: 100%; }
.top .top-vista .cb .cb-b { height: 34px; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding-inline: 10px 8px; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.top .top-vista .cb .cb-b:hover, .top .top-vista .cb.open .cb-b { background: var(--surface-2); color: var(--text); }
.top .top-vista .cb .cb-b:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.top .top-vista .lang-cb .cb-b { border-start-start-radius: 9px; border-end-start-radius: 9px; }
.top .top-vista > .icon-btn { height: 34px; border-radius: 0; border-start-end-radius: 9px; border-end-end-radius: 9px; }
@media (max-width: 1180px) {
  .top { padding-inline: 16px 20px; gap: 12px; }
  .top-pref, .top-snd { display: none !important; }
  .top-c { flex-basis: 190px; }
}
/* Laptop y tablet (hasta 1440): el grupo del menú ("Trade ›") se esconde para que la pestaña entre entera (en alemán no entraba). */
@media (max-width: 1440px) {
  .top .top-crumbs .cr-g { display: none; }
  .top .top-crumbs .cr-g + .cr-i .cr-sep { display: none; }
}
/* El silencio al pie del menú (tablet y cajón del teléfono). */
.side-snd.off { color: var(--muted); }
/* ▶ Guide (2026-11-24): la guía de la pantalla, al lado del idioma. Un triángulo de "play" en un círculo del acento y la
   palabra; en el teléfono, sólo el círculo. Sin paso propio de la pestaña queda deshabilitado (nada aparece ni se va). */
.guide-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border-radius: 99px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.guide-btn:hover:not(:disabled) { border-color: var(--accent); }
.guide-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.guide-btn:disabled { cursor: default; opacity: .5; }
.guide-play { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--glow); }
.guide-play .ic { width: 13px; height: 13px; fill: currentColor; margin-inline-start: 2px; } /* el triángulo se ve centrado */
.tp-step { display: inline-flex; align-items: center; gap: 6px; }
.tp-step .ic { fill: currentColor; }
.page { padding: 28px 32px 56px; width: 100%; max-width: 1280px; margin-inline: 0 auto; }
.page-in > * + * { margin-top: 18px; }
.bnav { display: none; }
/* ── El menú (2026-11-27, pedido del dueño: "no diseñemos eso salvo que sea en mobile, y ahí el menú estará a la izquierda") ──
   Desde 900 px el <aside class="side"> está SIEMPRE entero al costado, con los nombres, los grupos, Contact Us y la tarjeta
   de la cuenta: la barra de íconos de 72 px que tenía la tablet (2026-11-20) se fue; lo que se acomoda es la página.
   Sólo en el teléfono (≤ 899 px, el mismo corte que el resto del diseño del teléfono: tarjetas en vez de tablas, la barra de
   abajo) el mismo <aside> es un CAJÓN que entra desde el costado de inicio (izquierda; en árabe, derecha) con ☰ o "Más",
   y flota sobre la página con un velo detrás: no empuja ni achica nada (regla "nada se mueve").
   Al pie: `.side-prefs` (idioma, moneda, tema, silencio) se ve hasta 1180 px, donde el header no los tiene (en la tablet,
   siempre a la vista; en el teléfono, en el cajón); `.side-solo` (salir) sólo en el cajón del teléfono. */
.nav-btn, .side-x, .nav-scrim, .side-solo { display: none; }
.side-prefs { gap: 8px; flex-wrap: wrap; padding: 8px 0 4px; }
.side-prefs .lang-cb, .side-prefs .lang-mon { flex: 1 1 100%; min-width: 0; }
.side-prefs .lang-mon { display: flex; gap: 8px; }
.side-prefs .lang-mon > *, .side-prefs .cb { flex: 1; min-width: 0; }
.side .side-prefs .cb .cb-b { width: 100%; max-width: none; height: 40px; } /* le gana a .lang-mon .mx-cb .cb-b (moneda.css) */
.side-tema { flex: 1 1 100%; justify-content: flex-start; height: 40px; }
@media (max-width: 1180px) {
  .side .side-prefs { display: flex; }
  .side-item span, .side-cta span, .brand b, .brand small, .me-card b, .me-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* Compu y tablet: el pie del menú (Take the tour, Contact Us, las preferencias y la tarjeta de la cuenta) queda SIEMPRE a
   la vista; si no entra todo, lo que scrollea es la lista de pestañas (en una pantalla baja, p. ej. 1024 × 768). */
@media (min-width: 900px) and (min-height: 560px) {
  .side { overflow: hidden; }
  .side-nav { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-inline: -6px; padding-inline: 6px; }
  .side-foot { flex-shrink: 0; }
}
/* Tablet y ventana angosta (900–1180 px): el menú entero, un poco más angosto, y la página con menos margen. Al pie, las
   preferencias en dos renglones: idioma · tema, y moneda · silencio (tema y silencio, sólo el ícono; el nombre queda
   para el lector de pantalla). */
@media (min-width: 900px) and (max-width: 1180px) {
  :root { --side: 244px; }
  .side { padding-inline: 10px; }
  .side .side-prefs { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 6px; padding: 6px 0 2px; }
  .side-prefs .lang-mon { display: contents; }
  .side-prefs .lang-cb { order: 1; } .side-prefs [data-act="theme"] { order: 2; }
  .side-prefs .lang-mon > :not(.lang-cb) { order: 3; } .side-prefs .side-snd { order: 4; }
  .side .side-prefs .cb .cb-b { height: 34px; padding-inline: 10px 8px; font-size: 13px; }
  .side-prefs .side-tema { position: relative; width: 34px; height: 34px; padding: 0; justify-content: center; }
  .side-prefs .side-tema span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; white-space: nowrap; }
  .page { padding: 22px 20px 48px; }
}
/* Teléfono: el cajón entero entra desde el costado. Cerrado está oculto (visibility): ni el lector de pantalla ni Tab lo
   encuentran. */
@media (max-width: 899px) {
  .nav-btn { display: inline-grid; flex-shrink: 0; }
  .app.nav-open .side-x { display: inline-grid; margin-inline-start: auto; flex-shrink: 0; }
  .app.nav-open .side-solo { display: flex; }
  .side { --nav-w: min(300px, calc(100vw - 56px)); --nav-dx: -100%; position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 80; display: flex; width: var(--nav-w); height: auto; overflow-x: hidden; overscroll-behavior: contain; padding-block: calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-bottom)); transform: translateX(var(--nav-dx)); visibility: hidden; transition: transform .26s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .26s; }
  [dir=rtl] .side { --nav-dx: 100%; }
  .app.nav-open .side { box-shadow: var(--shadow-lg); transform: none; visibility: visible; transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(7, 8, 12, .6); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s linear .2s; }
  .app.nav-open .nav-scrim { opacity: 1; visibility: visible; transition: opacity .2s; }
  .side-item { height: 44px; font-size: 15px; }
  .side-cta { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .side, .app.nav-open .side, .nav-scrim, .app.nav-open .nav-scrim { transition: none; }
}
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.ph p { color: var(--muted); margin: 0; }
.ph p .live { margin-inline-end: 8px; }
.ph-a { display: flex; gap: 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h h3 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.card-h p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.card-f { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sub-h { font-size: 13px; font-weight: 650; margin: 18px 0 8px; }
.sec-h { font-size: 15px; font-weight: 650; }
.sec-row { display: flex; align-items: center; justify-content: space-between; }
.ctl-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.info-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--border-2); }
.info-card > .ic { color: var(--accent); margin-top: 1px; }
.info-card b { font-size: 13.5px; } .info-card p { font-size: 13px; color: var(--text-2); }
.info-card.sm { padding: 10px 12px; margin-top: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; height: 40px; color: var(--text-2); font-weight: 600; margin-inline-start: -6px; }
.empty { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty-i { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); margin-bottom: 6px; border: 1px solid var(--border); }
.empty-i .ic { width: 24px; height: 24px; }
.empty h4 { font-size: 15px; font-weight: 650; }
.empty p { color: var(--muted); font-size: 13px; max-width: 360px; margin-bottom: 8px; }
.empty .btn + .btn { margin-inline-start: 6px; }
.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.alert > div { flex: 1; } .alert b { font-size: 13.5px; } .alert p { font-size: 13px; color: var(--text-2); }
.alert-amber { background: var(--amber-soft); border-color: transparent; } .alert-amber > .ic { color: var(--amber); }
.alert-red { background: var(--red-soft); border-color: transparent; } .alert-red > .ic { color: var(--red); }

/* ── Home ── */
.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hello h2 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; margin: 2px 0; }
.hello-a { display: flex; gap: 8px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 12px; background: linear-gradient(90deg, var(--accent-soft), var(--surface) 80%); border: 1px solid var(--border); }
.banner-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.banner-t b { font-size: 13.5px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.setup { padding: 0; overflow: hidden; }
.setup-h { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-align: start; }
.setup-h > div { flex: 1; } .setup-h h3 { font-size: 15px; font-weight: 650; } .setup-h p { font-size: 13px; color: var(--muted); }
.ring { position: relative; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-bg { stroke: var(--surface-3); } .ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.setup-l { border-top: 1px solid var(--border); padding: 6px 10px 10px; }
.setup-l li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; min-height: 52px; }
.setup-l li > div { flex: 1; min-width: 0; } .setup-l li b { font-size: 13.5px; font-weight: 600; } .setup-l li p { font-size: 12.5px; color: var(--muted); }
.setup-l .chk { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px dashed var(--border-2); color: var(--muted); flex-shrink: 0; }
.setup-l .chk .ic { width: 15px; height: 15px; }
.setup-l .done .chk { background: var(--accent); border: 0; color: var(--on-accent); }
.setup-l .done b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border-2); font-weight: 500; }
.setup-l .next { background: var(--accent-soft); }
.setup-l .next .chk { border-color: var(--accent); color: var(--accent); border-style: solid; }
.setup-done { display: flex; align-items: center; gap: 12px; } .setup-done > .ic { color: var(--accent); width: 28px; height: 28px; }
.balance { display: flex; flex-direction: column; gap: 14px; }
.bal-top { display: flex; justify-content: space-between; align-items: center; }
.bal-amt { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-family: var(--mono); font-variant-numeric: tabular-nums; line-height: 1.1; }
.bal-sub { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.bal-sub b { font-size: 14px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.needs li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.needs li:first-child { border-top: 0; padding-top: 0; }
.need-i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.need-t { flex: 1; min-width: 0; } .need-t b { display: block; font-size: 13.5px; font-weight: 600; }
.need-t small { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dminis li { display: flex; align-items: center; gap: 12px; padding: 12px; margin: 0 -12px; border-radius: 12px; cursor: pointer; }
.dminis li:hover { background: var(--surface-2); }
.dmini-t { flex: 1; min-width: 0; } .dmini-t b { display: block; font-size: 13.5px; font-weight: 600; }
.dmini-t small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.dmini-t .tag { margin-top: 4px; }
.dmini-p { text-align: end; } .dmini-p b { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; } .dmini-p small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.vitrine { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.vt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; text-align: start; position: relative; }
.vt:hover { border-color: var(--border-2); background: var(--surface-2); }
.vt .glogo { width: 34px; height: 34px; }
.vt div { flex: 1; min-width: 0; } .vt small { display: block; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt b { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; }
.vt .trend { position: absolute; top: 8px; inset-inline-end: 10px; font-size: 11px; }
.kpi-inline { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; }
.kpi-inline b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.tier-mini { cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.tm-h { display: flex; gap: 12px; align-items: center; } .tm-h b { display: block; font-size: 14px; } .tm-h small { font-size: 12.5px; color: var(--muted); }
.tier-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 22%, var(--surface)); color: color-mix(in srgb, var(--tc) 70%, var(--text)); flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--tc) 40%, transparent); }
.tier-badge.big { width: 64px; height: 64px; border-radius: 18px; } .tier-badge.big .ic { width: 30px; height: 30px; }

/* ── Charts ── */
.chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: var(--h) auto; column-gap: 10px; row-gap: 6px; user-select: none; touch-action: pan-y; }
.ch-y { position: relative; min-width: 44px; }
.ch-y span { position: absolute; inset-inline-end: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ch-plot { position: relative; height: var(--h); }
.ch-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ch-grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 2 4; }
.ch-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.ch-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border-2); opacity: 0; pointer-events: none; }
.ch-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px var(--surface); opacity: 0; pointer-events: none; }
.ch-tip { position: absolute; top: -8px; transform: translateY(-100%); background: var(--text); color: var(--bg); padding: 8px 10px; border-radius: 9px; font-size: 12px; pointer-events: none; opacity: 0; white-space: nowrap; box-shadow: var(--shadow-lg); z-index: 3; }
.tip-row { display: flex; align-items: center; gap: 6px; margin-top: 2px; } .tip-row b { margin-inline-start: 10px; }
.sw-c { width: 8px; height: 8px; border-radius: 2px; }
.ch-gridlines { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.ch-gridlines i { border-top: 1px dashed var(--border); }
.bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; }
.bars.dense { gap: 1px; }
.bar { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; opacity: .85; min-width: 1px; transition: opacity .1s; }
.bar.zero { background: transparent; }
.bars-chart .ch-plot:hover .bar { opacity: .45; } .bars-chart .ch-plot .bar.hl { opacity: 1; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend i.dash { height: 0; border-top: 2px dashed; }
.spark { width: 80px; height: 24px; display: block; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.stat-row b { font-size: 17px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.stat-row small { font-size: 12px; margin-inline-start: 4px; }

/* ── Dashboard ── */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kpi b.sm { font-size: 15px; letter-spacing: 0; }
.kpi small { font-size: 12px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; }
.dash-grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.hbars li { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.hbars li > div { flex: 1; min-width: 0; }
.hb-t { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 14px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.metric > .ic { color: var(--accent); margin-bottom: 6px; }
.metric b { font-size: 20px; font-weight: 700; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.metric small { font-size: 12px; }

/* ── Tables & mobile lists ── */
.tbl-wrap { overflow-x: auto; margin: 0 -20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: start; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-inline-start: 20px; }
.tbl th:last-child, .tbl td:last-child { padding-inline-end: 20px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: end; white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: var(--surface-2); }
.tbl tr.sel td { background: var(--accent-soft); }
.tbl tr.off td { opacity: .55; }
.tbl .tr-cell { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cell-g { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-g b { font-weight: 600; }
.mlist { display: none; }
.mlist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.mlist li:first-child { border-top: 0; }
.ml-t { flex: 1; min-width: 0; } .ml-t b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ml-t small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-r { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ml-r b { font-family: var(--mono); font-variant-numeric: tabular-nums; } .ml-r small { font-size: 11.5px; }

/* ── Catalog / prefs ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-color: var(--accent); }
.tabs a.on .ic { color: var(--accent); }
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feat { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); text-align: start; box-shadow: var(--shadow); }
.feat:hover { border-color: var(--border-2); }
.feat > div { min-width: 0; } .feat b { display: block; font-size: 14.5px; margin: 4px 0 2px; } .feat small { font-size: 12.5px; color: var(--muted); }
.feat small b { display: inline; color: var(--text); font-size: 12.5px; }
.game-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.game-pick.compact { grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 8px; margin: 8px 0 4px; }
.gp { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text-2); min-height: 44px; }
.game-pick.compact .gp { padding: 10px 6px; gap: 6px; } .game-pick.compact .glogo { width: 32px; height: 32px; }
.gp span { text-align: center; line-height: 1.25; }
.gp .gp-c { position: absolute; top: 6px; inset-inline-end: 6px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--accent); color: var(--on-accent); opacity: 0; }
.gp.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.gp.on .gp-c { opacity: 1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.set-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); min-height: 56px; }
.set-list li:first-child { border-top: 0; }
.set-list li > div { flex: 1; min-width: 0; } .set-list b { display: block; font-size: 13.5px; font-weight: 600; } .set-list small { display: block; font-size: 12.5px; color: var(--muted); }
.set-i { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); flex-shrink: 0; }
.save-bar { position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }

/* ── Stock ── */
.stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.stock-card { display: flex; flex-direction: column; gap: 16px; }
.stock-card.expired { opacity: .75; }
.sc-h { display: flex; align-items: center; gap: 12px; } .sc-h > div { flex: 1; min-width: 0; } .sc-h b { display: block; } .sc-h small { font-size: 12.5px; }
.sc-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.sc-n b { display: block; font-size: 15px; font-family: var(--mono); font-variant-numeric: tabular-nums; } .sc-n small { font-size: 11.5px; display: block; }
.sc-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sc-f .muted { display: inline-flex; align-items: center; gap: 4px; }
.sc-a { display: flex; gap: 6px; align-items: center; }
.step-n { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; flex-shrink: 0; }
.step-n.sm { width: 20px; height: 20px; font-size: 11px; }

/* ── Demand ── */
.dfilter-wrap { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.dfilters.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dfilters.inline .search { flex: 1 1 220px; }
.dfilters:not(.inline) { display: flex; flex-direction: column; gap: 14px; }
.dfilters:not(.inline) .sel { width: 100%; height: 46px; }
.dfilters:not(.inline) .sel select { max-width: none; flex: 1; font-size: 16px; }
.dfilters:not(.inline) .search input { height: 46px; font-size: 16px; }
.card.flush .tbl-wrap { margin: 0; }
.dtbl td { padding-top: 14px; padding-bottom: 14px; }
.fill { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.fill .prog { flex: 1; max-width: 120px; } .fill small { font-size: 11.5px; white-space: nowrap; }
.dcards { display: none; }
.card.flush > .empty { padding: 40px 20px; }

/* ── Orders ── */
.md { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.md-r { position: sticky; top: calc(var(--top) + 18px); }
.ord-list { display: flex; flex-direction: column; gap: 12px; }
.olist { display: flex; flex-direction: column; gap: 8px; }
.orow { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; box-shadow: var(--shadow); }
.orow:hover { border-color: var(--border-2); }
.orow.sel { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.olist.compact .orow { box-shadow: none; padding: 10px 12px; }
.or-t { flex: 1; min-width: 0; } .or-t b { display: block; font-size: 13.5px; font-weight: 600; }
.or-t small { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.need-line { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; margin-top: 6px; padding: 2px 8px; border-radius: 6px; }
.or-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.or-r b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 14px; }
.od-card { padding: 24px; }
.od > * + * { margin-top: 18px; }
.od-h { display: flex; align-items: flex-start; gap: 14px; }
.od-h > div { flex: 1; min-width: 0; } .od-h h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.timeline { display: flex; gap: 4px; }
.timeline li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.timeline li::before { content: ''; position: absolute; top: 13px; inset-inline-start: calc(-50% + 16px); inset-inline-end: calc(50% + 16px); height: 2px; background: var(--border); }
.timeline li:first-child::before { display: none; }
.timeline li.done::before, .timeline li.cur::before { background: var(--accent); }
.timeline span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 2px solid var(--border); }
.timeline span .ic { width: 13px; height: 13px; }
.timeline .done span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.timeline .cur span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.timeline.bad .cur span { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.timeline small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.timeline .cur small { color: var(--text); font-weight: 600; }
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.od-grid .card { box-shadow: none; background: var(--surface-2); border-color: transparent; padding: 16px; }
.od-grid .card-h { margin-bottom: 8px; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.kv > div:first-child { border-top: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; text-align: end; display: flex; align-items: center; gap: 4px; justify-content: flex-end; min-width: 0; }
.kv .tot { padding-top: 12px; } .kv .tot dt { color: var(--text); font-weight: 600; } .kv .tot dd b { font-size: 18px; }
.kv.sm > div { padding: 7px 0; font-size: 13px; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.proofs { display: flex; flex-wrap: wrap; gap: 8px; }
.proof { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; }
.od-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; border-top: 1px solid var(--border); }


/* ── Messages ── */
.msg-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr) 290px; height: calc(100vh - var(--top)); }
.msg-l { border-inline-end: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.msg-c { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.msg-r { border-inline-start: 1px solid var(--border); padding: 18px; overflow-y: auto; background: var(--surface); }
.cl-head { padding: 14px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--border); }
.cl-head .seg { width: 100%; } .cl-head .seg button { flex: 1; justify-content: center; }
.cl-body { overflow-y: auto; flex: 1; }
.citem { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--border); cursor: pointer; align-items: flex-start; }
.citem:hover { background: var(--surface-2); }
.citem.on { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.ci-av { position: relative; flex-shrink: 0; }
.ci-av .avatar { position: absolute; inset-inline-end: -4px; bottom: -4px; box-shadow: 0 0 0 2px var(--surface); }
.ci-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ci-r { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; }
.ci-r b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-r small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ci-l { color: var(--text-2) !important; font-size: 12.5px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.msg-help { padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.thread { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.th-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.th-t { flex: 1; min-width: 0; } .th-t b { display: block; font-size: 14px; } .th-t small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-ctx { display: flex; align-items: center; gap: 6px; padding: 8px 18px; font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-bottom: 1px solid var(--border); }
.th-ctx span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.day { text-align: center; margin: 8px 0; } .day span { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 3px 10px; border-radius: 99px; }
.bub { display: flex; align-items: flex-end; gap: 8px; max-width: 80%; }
.bub.me { align-self: flex-end; flex-direction: row-reverse; }
.bub-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bub.me .bub-b { align-items: flex-end; }
.bub-in { padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.bub.me .bub-in { background: var(--accent); color: var(--on-accent); border-color: transparent; border-radius: 16px 16px 4px 16px; }
.bub small { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 3px; }
.att { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; background: rgba(0, 0, 0, .06); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.bub.me .att { background: rgba(255, 255, 255, .2); }
.typing { display: flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.composer input { height: 44px; border-radius: 22px; padding: 0 16px; background: var(--surface-2); font-size: 15px; }
.btn-send { width: 44px; height: 44px; padding: 0; border-radius: 50%; flex-shrink: 0; }
.ctx { display: flex; flex-direction: column; gap: 14px; }
.ctx .card { box-shadow: none; padding: 16px; }
.ctx .sub-h { margin-top: 0; }
.ctx-g { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.ctx .btn { margin-top: 12px; }
.links li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; } .links li:first-child { border-top: 0; }
.links a:hover { color: var(--accent-ink); }

/* ── Feedback ── */
.fb-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fb-opt { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); text-align: start; box-shadow: var(--shadow); }
.fb-opt:hover { border-color: var(--border-2); }
.fb-opt > div { flex: 1; } .fb-opt b { display: block; font-size: 15px; } .fb-opt small { color: var(--muted); font-size: 13px; }
.fo-i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.fo-i.sm { width: 36px; height: 36px; border-radius: 10px; }
.tickets li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); }
.tickets li:first-child { border-top: 0; padding-top: 0; }
.tk-t { flex: 1; min-width: 0; } .tk-t b { display: block; font-size: 13.5px; font-weight: 600; }
.tk-t small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 52px; border-radius: 10px; border: 1px solid var(--border-2); font-size: 13px; flex-shrink: 0; }
.vote .ic { width: 16px; height: 16px; }
.vote.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* ── Help ── */
.help-hero { text-align: center; padding: 36px 20px 30px; border-radius: 20px; background: radial-gradient(120% 140% at 50% 0%, var(--accent-soft), var(--surface) 70%); border: 1px solid var(--border); }
.help-hero h2 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.help-hero p { color: var(--text-2); margin: 6px 0 20px; }
.help-hero .search { max-width: 560px; margin-inline: 0 auto; }
.help-cats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hcat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); text-align: start; box-shadow: var(--shadow); }
.hcat:hover { border-color: var(--border-2); }
.hcat.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.hc-i { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 8px; }
.hcat b { font-size: 14px; } .hcat small { font-size: 12px; color: var(--muted); }
.help-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.help-grid > div > * + * { margin-top: 12px; }
.help-grid aside { display: flex; flex-direction: column; gap: 14px; }
.art-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.art-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); }
.art-list li:first-child a { border-top: 0; }
.art-list a:hover { background: var(--surface-2); }
.art-list a > div { flex: 1; min-width: 0; } .art-list b { display: block; font-size: 14px; font-weight: 600; } .art-list small { font-size: 12px; color: var(--muted); }
.contact-card { display: flex; flex-direction: column; gap: 10px; } .contact-card h4 { font-size: 15px; margin-top: 4px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-ink); }
.article { padding: 28px; } .article h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.article .muted { display: flex; align-items: center; gap: 4px; }
.art-body { margin: 20px 0; font-size: 15.5px; line-height: 1.7; color: var(--text-2); }
.helpful { display: flex; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; font-weight: 600; font-size: 14px; }
.helpful p { display: flex; align-items: center; gap: 6px; color: var(--green); }

/* ── Notifications ── */
.narrow { max-width: 760px; margin-inline: 0 auto; }
.grp-h { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 14px 18px 6px; }
.nlist li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; cursor: pointer; min-height: 60px; }
.nlist li:hover { background: var(--surface-2); }
.nlist li.unread { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.nlist li > div { flex: 1; min-width: 0; } .nlist b { display: block; font-size: 13.5px; font-weight: 600; } .nlist small { font-size: 12px; color: var(--muted); }
.nlist li:not(.unread) b { font-weight: 500; }

/* ── Settings ── */
.set-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.set-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--top) + 20px); }
.set-nav a { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 13.5px; }
.set-nav a:hover { background: var(--surface-2); }
.set-nav a.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow), 0 0 0 1px var(--border); }
.set-nav a.on .ic { color: var(--accent); }
.set-nav a .udot { margin-inline-start: auto; }
.set-body { max-width: 760px; min-width: 0; } .set-body > * + * { margin-top: 16px; }
.set-h { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.set-body .set-h:not(:first-child) { margin-top: 32px; }
.set-p { margin-top: 2px !important; }
.set-hrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.set-nav-m li a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); min-height: 60px; }
.set-nav-m li:first-child a { border-top: 0; }
.set-nav-m b { flex: 1; font-weight: 600; }
.prof-h { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; } .prof-h b { font-size: 16px; } .prof-h .btn { margin-top: 8px; }
.rep-card { background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); }
.rep { display: flex; align-items: center; gap: 14px; }
.rep-t b { display: flex; align-items: center; gap: 6px; font-size: 16px; } .rep-t small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.rep-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.rep-stats > div { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.rep-stats b { display: flex; align-items: center; gap: 4px; font-size: 16px; } .rep-stats small { font-size: 11.5px; color: var(--muted); }
.wallets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.wcard { display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.wcard.def { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.w-h { display: flex; align-items: center; gap: 12px; } .w-h > div { flex: 1; min-width: 0; } .w-h b { display: block; } .w-h small { display: block; }
.net-i { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); }
.w-a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.theme-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.tp { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--border-2); text-align: start; }
.tp.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.tp-prev { height: 70px; border-radius: 8px; display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.tp-prev.light { background: var(--ag-smoke); border: 1px solid #E2E5EA; } .tp-prev.dark { background: var(--ag-canvas); border: 1px solid #2C323A; }
.tp-prev i { height: 8px; border-radius: 4px; background: #CDD2DA; } .tp-prev.dark i { background: #2C323A; }
.tp-prev i:first-child { width: 40%; background: var(--ag-blue); } .tp-prev.dark i:first-child { background: var(--ag-electric); } .tp-prev i:last-child { width: 70%; }
.team li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.team li:first-child { border-top: 0; }
.tm-t { flex: 1; min-width: 160px; } .tm-t b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; } .tm-t small { font-size: 12.5px; }
.sw-l.sm { min-height: 32px; font-size: 12.5px; }
.invite { display: flex; gap: 8px; flex-wrap: wrap; }
.invite input { flex: 1 1 220px; }
.role-help { margin-top: 14px; font-size: 13px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }

/* ── Wallet, tiers ── */
.wal-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.wal-hero { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(150deg, var(--accent-soft), var(--surface) 55%); }
.wal-hero .bal-amt { font-size: 40px; }
.wal-a { display: flex; gap: 8px; flex-wrap: wrap; }
.wal-hero > p { display: flex; align-items: center; gap: 6px; }
.tier-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; background: linear-gradient(120deg, color-mix(in srgb, var(--tc) 16%, var(--surface)), var(--surface) 60%); }
.th-l { display: flex; gap: 16px; align-items: center; } .th-l h2 { font-size: 26px; font-weight: 700; }
.th-r { display: flex; flex-direction: column; gap: 8px; }
.th-row { display: flex; justify-content: space-between; font-size: 13px; gap: 8px; flex-wrap: wrap; }
.tier-ladder { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tl-step { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r); border: 1px solid var(--border); background: var(--surface); position: relative; }
.tl-step.cur { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.tl-step:not(.cur):not(.past) { opacity: .8; }
.tl-step b { font-size: 15px; } .tl-step p { font-size: 12.5px; color: var(--text-2); }
.tl-step .tag { position: absolute; top: 14px; inset-inline-end: 14px; }
.board li { display: flex; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 10px; }
.board li.me { background: var(--accent-soft); }
.board .rank { width: 22px; font-weight: 700; color: var(--muted); text-align: center; }
.board b:first-of-type { flex: 1; min-width: 0; font-size: 13.5px; }
.board small { display: inline-flex; align-items: center; gap: 3px; }
.board .n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.how li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; } .how p { font-size: 13.5px; color: var(--text-2); }
.how + .card { margin-top: 16px; }
.ref-hero { display: flex; flex-direction: column; gap: 14px; }
.ref-hero h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.copy-row { display: flex; gap: 8px; } .copy-row input { flex: 1; }
.reflist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.reflist li:first-child { border-top: 0; padding-top: 0; }
.rl-t { flex: 1; min-width: 0; } .rl-t b { display: block; font-size: 13.5px; } .rl-t small { display: block; font-size: 12.5px; color: var(--muted); }
.rl-t .rl-reason { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: var(--amber-soft); color: var(--amber); font-weight: 500; }

/* ── Auth ── */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.auth-side { display: flex; flex-direction: column; justify-content: space-between; padding: 36px 48px; background: radial-gradient(circle at 80% 15%, rgba(0, 129, 189, .14), transparent 45%), linear-gradient(160deg, var(--ag-white) 0%, #E9F6FB 100%); color: var(--ag-black); border-inline-end: 1px solid var(--border); position: relative; overflow: hidden; }
[data-theme="dark"] .auth-side { background: radial-gradient(circle at 50% 120%, rgba(0, 129, 189, .22), rgba(0, 65, 95, .1) 35%, transparent 60%), radial-gradient(circle at 80% 15%, rgba(0, 129, 189, .14), transparent 40%), var(--ag-black); color: var(--ag-cyan); }
.auth-side::after { content: ''; position: absolute; width: 520px; height: 520px; inset-inline-end: -200px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(73, 244, 253, .16), transparent 65%); pointer-events: none; }
/* El logo completo (public/img/marca, scripts/generar_marca.js): el de letras blancas en oscuro, el de letras negras en claro. */
.as-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.as-logo { height: 52px; width: auto; display: block; }
.as-logo-l { display: none; }
[data-theme="light"] .as-logo-d { display: none; } [data-theme="light"] .as-logo-l { display: block; height: 58px; }
/* "Suppliers" (2026-11-23, pedido del dueño: la pastilla "SUPPLY" con borde y mayúsculas espaciadas parecía de plantilla):
   un lockup sobrio — el logo, una línea fina y la palabra en la tipografía de la marca, sin borde ni mayúsculas. */
.as-sep { width: 1px; height: 38px; background: currentColor; opacity: .22; margin-inline: 4px 2px; }
.as-sup { font-size: 23px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.as-mid { max-width: 460px; position: relative; z-index: 1; }
.as-mid h2 { font-size: 38px; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; }
.as-mid > p { margin: 14px 0 26px; font-size: 15.5px; opacity: .8; }
.as-card { background: var(--surface); color: var(--text); border-radius: 16px; padding: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.as-ch { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.as-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.as-row span { flex: 1; font-weight: 600; } .as-row b { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.as-pts { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.as-pts li { display: flex; align-items: center; gap: 10px; } .as-pts .ic { color: var(--accent); }
.as-foot { opacity: .6; font-size: 12px; position: relative; z-index: 1; }
.auth-main { display: flex; flex-direction: column; padding: 24px 32px; background: var(--surface); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.m-brand { display: none; align-items: center; gap: 8px; font-size: 14px; } .m-brand img { width: 30px; height: 30px; }
.auth-tools { display: flex; gap: 6px; margin-inline-start: auto; }
.auth-form { width: 100%; max-width: 400px; margin: auto; padding: 24px 0; display: flex; flex-direction: column; gap: 14px; }
.auth-form h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.auth-form > p.muted { margin-top: -8px; }
.aform { display: flex; flex-direction: column; gap: 14px; }
/* Título del registro con la flecha para volver al ingreso (arriba a la izquierda de la sección). */
.auth-h { display: flex; align-items: center; gap: 10px; margin-inline-start: -6px; }
.auth-back { flex-shrink: 0; cursor: pointer; }
[dir="rtl"] .auth-back .ic { transform: scaleX(-1); }
/* Ventanas de poca altura (una laptop de 768 px): el ingreso y el registro entran sin scroll (pedido del dueño, 2026-10-20). */
@media (min-width: 900px) and (max-height: 860px) {
  .auth-main { padding-block: 16px; }
  .auth-form { padding: 8px 0; gap: 11px; }
  .auth-form h1 { font-size: 25px; }
  .aform { gap: 11px; }
  .aform .field .hint { margin-top: 3px; }
  .pwm { margin-top: 6px; gap: 4px; }
  .auth-side { padding: 28px 44px; }
}
.auth-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.auth-ic .ic { width: 24px; height: 24px; } .auth-ic.ok { background: var(--green-soft); color: var(--green); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
/* "Vender una vez sin cuenta" al pie del ingreso y del registro (2026-11-26): la entrada secundaria a /sell-once. */
.auth-once { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); text-align: center; }
.auth-once-q { color: var(--muted); font-size: 13px; }
.auth-once-b { gap: 8px; white-space: normal; min-height: 42px; }
.pw-wrap { position: relative; } .pw-wrap input { padding-inline-end: 44px; } .pw-wrap .icon-btn { position: absolute; inset-inline-end: 5px; top: 5px; }
.pwm { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.pwm-b { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; } .pwm-b i { height: 4px; border-radius: 2px; background: var(--surface-3); }
.pwm small { font-size: 12px; color: var(--muted); }
.pwm.s1 i:nth-child(-n+1) { background: var(--red); } .pwm.s2 i:nth-child(-n+2) { background: var(--amber); }
.pwm.s3 i:nth-child(-n+3) { background: var(--accent); } .pwm.s4 i { background: var(--green); }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { height: 56px; text-align: center; font-size: 22px; font-weight: 700; padding: 0; }
.otp.sm input { height: 46px; font-size: 18px; }
/* Código mal (core.js › otpError): tiembla, rojo y el motivo en su renglón RESERVADO (no empuja nada al aparecer). */
.otp-err { min-height: 20px; margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.35; color: var(--red); }
.otp-err:empty { visibility: hidden; }
.otp.otp-mal input { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent); }
.otp.otp-shake { animation: otp-shake .42s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes otp-shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .otp.otp-shake { animation: none; } }
.mail-prev { border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--surface-2); }
.mp-h { display: flex; align-items: center; gap: 6px; width: 100%; font-size: 13px; } .mp-h small { margin-inline-start: auto; color: var(--muted); }
.mail-prev p { font-size: 13.5px; color: var(--text-2); }

/* ── Overlays ── */
.ov { position: fixed; inset: 0; z-index: 60; display: flex; }
.ov-bg { position: absolute; inset: 0; background: rgba(7, 8, 12, .6); opacity: 0; transition: opacity .18s; }
.ov.in .ov-bg { opacity: 1; }
.ov-panel { position: relative; background: var(--surface); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); max-height: 100%; min-width: 0; }
.ov-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px 22px; border-bottom: 1px solid var(--border); position: relative; flex-shrink: 0; }
.ov-head h2 { flex: 1; font-size: 16px; font-weight: 650; min-width: 0; }
.ov-body { padding: 20px 22px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 16px; min-height: 0; overscroll-behavior: contain; }
.ov-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); flex-shrink: 0; background: var(--surface); }
.ov-modal { align-items: center; justify-content: center; padding: 24px; }
.ov-modal .ov-panel { width: 100%; max-width: 520px; max-height: calc(100vh - 48px); border-radius: 18px; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .18s, transform .18s; }
.ov-modal.in .ov-panel { opacity: 1; transform: none; }
.ov-drawer { justify-content: flex-end; }
.ov-drawer .ov-panel { width: 480px; max-width: 100%; height: 100%; opacity: 0; transform: translateY(8px); transition: opacity .18s, transform .18s; border-inline-start: 1px solid var(--border); }
.ov-drawer.in .ov-panel { opacity: 1; transform: none; }
.ov-sheet { align-items: flex-end; }
.ov-sheet .ov-panel { width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; transform: translateY(100%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.ov-sheet.in .ov-panel { transform: none; }
.ov-sheet .ov-head { padding-top: 22px; }
.grab { position: absolute; top: 8px; inset-inline-start: 50%; width: 40px; height: 4px; margin-inline-start: -20px; border-radius: 2px; background: var(--border-2); }
.ov-full .ov-panel { width: 100%; height: 100%; transform: translateY(24px); opacity: 0; transition: transform .22s, opacity .18s; }
.ov-full.in .ov-panel { transform: none; opacity: 1; }
.ov-sheet .ov-foot, .ov-full .ov-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.ov-foot .btn { flex: 0 1 auto; }
/* El pie tiene fondo propio: sin esto, sus esquinas rectas tapan las redondeadas del panel (2026-11-20). */
.ov-panel > .ov-foot:last-child { border-end-start-radius: inherit; border-end-end-radius: inherit; }
.tk-h { display: flex; gap: 14px; align-items: center; } .tk-h h3 { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.tk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.tk-stats b { display: block; font-size: 16px; font-family: var(--mono); font-variant-numeric: tabular-nums; } .tk-stats small { font-size: 11.5px; }
.qty-box { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--border-2); }
.qb-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.qty-in { display: flex; align-items: center; gap: 8px; }
.qty-in .icon-btn { width: 46px; height: 46px; border: 1px solid var(--border-2); border-radius: 12px; }
.qty-in input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--border-2); border-radius: 12px; text-align: center; font-size: 20px; font-weight: 700; background: var(--surface); outline: none; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.qty-in .unit { font-weight: 600; color: var(--muted); min-width: 22px; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.qty-box .chip { flex: 1; justify-content: center; }
.qty-box .chips { flex-wrap: nowrap; }
.calc { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); }
.calc-r { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.calc-r b { color: var(--text); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.calc-r.tot { padding-top: 8px; margin-top: 2px; border-top: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); font-weight: 600; color: var(--text); }
.calc-r.tot b { font-size: 22px; letter-spacing: -.02em; }
.ov-body .sub-h { margin: 4px 0 -8px; }
.note { display: flex; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; color: var(--text-2); border-inline-start: 3px solid var(--accent); }
.check-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--border-2); text-align: start; font-size: 13.5px; }
.check-card .cb { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-2); display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.check-card.on { border-color: var(--accent); background: var(--accent-soft); }
.check-card.on .cb { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sum { box-shadow: none; padding: 6px 16px; background: var(--surface-2); border-color: transparent; }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-top: 10px; }
.success > .card { width: 100%; text-align: start; margin-top: 8px; }
.succ-i { width: 64px; height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; animation: pop .35s ease-out; }
.succ-i .ic { width: 30px; height: 30px; }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.success h3 { font-size: 22px; font-weight: 700; }
.next-steps { width: 100%; text-align: start; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.next-steps li { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.next-steps .ic { color: var(--accent); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 2px dashed var(--border-2); border-radius: 14px; text-align: center; background: var(--surface-2); }
.drop:hover { border-color: var(--accent); }
.drop > .ic { width: 28px; height: 28px; color: var(--accent); }
.drop.sm { flex-direction: row; padding: 14px; margin-top: 14px; justify-content: center; } .drop.sm > .ic { width: 20px; height: 20px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-top: 8px; }
.files li > div { flex: 1; min-width: 0; } .files b { display: block; font-size: 13px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tips { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.tips li { display: flex; align-items: center; gap: 6px; } .tips .ic { color: var(--green); }
#fbForm { display: flex; flex-direction: column; gap: 14px; }
.co-bal { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.co-bal b { font-size: 18px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.steps2 { display: flex; flex-direction: column; gap: 18px; }
.steps2 li { display: flex; gap: 12px; } .steps2 li > div { flex: 1; min-width: 0; }
.qr-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; flex-wrap: wrap; }
.qr { width: 120px; height: 120px; background: var(--ag-white); padding: 6px; border-radius: 10px; border: 1px solid var(--border); fill: var(--ag-black); } /* un QR siempre negro sobre blanco */
.qr-row code { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; letter-spacing: .05em; }
.steps2 .otp { margin-top: 10px; }

/* ── Tour ── */
.tour-block { position: fixed; inset: 0; z-index: 90; }
.tour-block.dim { background: rgba(7, 8, 12, .65); } /* sin nada que señalar (bienvenida): el mismo velo que el spot */
.tour-spot { position: fixed; z-index: 91; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(7, 8, 12, .65), 0 0 0 3px var(--accent); pointer-events: none; transition: all .25s ease; }
.tour-spot[hidden] { display: none; }
/* 2026-11-20 (pedido del dueño): el cartel trae un escenario animado 16:9 (css/tour-anim.css) → hasta 400 px de ancho;
   en el teléfono va de borde a borde (y pegado abajo, como hoja, cuando no señala nada). Alto medido en core.js. */
.tour-pop { position: fixed; z-index: 92; background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; animation: tour-in .24s ease-out both; }
.tour-pop.tour-dock { border-radius: 18px 18px 0 0; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); max-height: calc(100vh - 12px); max-height: calc(100dvh - 12px); }
@keyframes tour-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.tour-stage { margin: 0 0 14px; }
.tp-top { display: flex; justify-content: space-between; align-items: center; margin: -6px -8px 6px 0; }
.tp-step { font-size: 12px; font-weight: 600; color: var(--accent-ink); }
.tour-pop h4 { font-size: 17px; font-weight: 700; margin-bottom: 4px; overflow-wrap: anywhere; }
.tour-pop p { font-size: 13.5px; color: var(--text-2); }
.tour-fin h4 { color: var(--green); }
@media (prefers-reduced-motion: reduce) { .tour-pop { animation: none; } .tour-spot { transition: none; } }
.tp-dots { display: flex; gap: 5px; margin: 14px 0; } .tp-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--surface-3); transition: width .2s; }
.tp-dots i.on { width: 18px; background: var(--accent); }
.tp-f { display: flex; gap: 8px; align-items: center; } .tp-f span { flex: 1; }

/* ── Toasts & skeletons ── */
#toasts { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg); animation: tin .22s ease-out; max-width: 100%; }
/* El ícono va del MISMO color que el texto (pedido del dueño, 2026-11-11): el toast es una pastilla oscura con
   letra clara y el ícono de color (verde / azul / rojo) se leía como otra cosa. El tono sigue en el fondo. */
.toast > .ic, .toast > svg { color: inherit; }
.toast.t-green, .toast.t-blue, .toast.t-red { background: var(--text); color: var(--bg); }
.toast.out { opacity: 0; transform: translateY(6px); transition: all .25s; }
/* Un toast que lleva a algún lado (toast(…, { ir })): es un <button>, y es el ÚNICO que se puede tocar —#toasts tiene
   pointer-events: none para no tapar lo que hay debajo—. */
.toast.ts-link { pointer-events: auto; cursor: pointer; text-align: start; font: inherit; font-size: 13.5px; font-weight: 500; border: 0; }
.toast.ts-link:hover { filter: brightness(1.12); }
.toast .ts-ir { margin-inline-start: 2px; opacity: .75; }
[dir=rtl] .toast .ts-ir { transform: scaleX(-1); }
/* Silencio: apagado, el ícono queda apenas marcado (no es un error, es un estado elegido). */
.snd-mute.off { color: var(--muted); }
.snd-mute.off:hover { color: var(--text); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-title { height: 30px; width: 320px; max-width: 70%; } .sk-line { height: 12px; margin: 10px 0; } .w60 { width: 60%; } .w40 { width: 40%; }
.sk-row { height: 54px; margin-top: 12px; border-radius: 12px; } .sk-big { height: 44px; width: 70%; margin: 14px 0; } .sk-btn { height: 40px; width: 110px; border-radius: 10px; }
.sk-av { width: 40px; height: 40px; border-radius: 10px; }
.skel-list { padding: 8px 16px; }
.sk-card { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }

/* ── Responsive ── */
@media (max-width: 1280px) {
  .msg-layout { grid-template-columns: 300px minmax(0, 1fr); } .msg-r { display: none; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .help-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tier-ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) and (min-width: 900px) {
  .home-grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .md { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
  .od-grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .app.r-messages .page, .app.r-support .page, .app.r-chat .page { padding: 0; max-width: none; }
}
@media (max-width: 899px) {
  :root { --top: 56px; }
  body { font-size: 15px; }
  .hide-m { display: none !important; }
  .show-m { display: block !important; }
  .app { display: block; }
  .top { padding-block: 0; padding-inline: 6px 8px; gap: 6px; } /* el botón del menú va primero, pegado al borde */
  .top-search { display: none; }
  .m-logo { display: block; }
  .top-title { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
  /* Teléfono: sólo los dos últimos tramos (de dónde vengo › dónde estoy); el grupo del menú, nunca. */
  .top-crumbs .cr-g, .top-crumbs .cr-i:not(:nth-last-child(-n+2)) { display: none; }
  .top-crumbs .cr-i:nth-last-child(2) .cr-sep, .top-crumbs .cr-g + .cr-i .cr-sep { display: none; }
  .top-crumbs a.cr { max-width: 120px; font-size: 14px; }
  .top-l { gap: 8px; }
  .nav-btn { margin-inline-end: -2px; }
  .top-r { gap: 2px; }
  .top-g { gap: 2px; }
  .top-sep { display: none; }
  .top-c { flex: 0 0 auto; min-width: 0; }
  .top .guide-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border-color: transparent; background: transparent; } .guide-t { display: none; }
  .page { padding: 16px 16px calc(88px + env(safe-area-inset-bottom)); }
  .page-in > * + * { margin-top: 14px; }
  .bnav { display: flex; position: fixed; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 12px; }
  .bn-i { position: relative; width: 52px; height: 30px; border-radius: 15px; display: grid; place-items: center; transition: background .15s; }
  /* Sell Here en la barra de abajo: el ícono en una pastilla cian, siempre (es el botón, no una pestaña más). */
  .bn.bn-cta { color: var(--accent-ink); }
  .bn.bn-cta .bn-i, .bn.bn-cta.on .bn-i { background: var(--accent-grad); color: var(--on-accent); box-shadow: var(--glow); }
  .bn.bn-cta .bn-i .ic { color: var(--on-accent); }
  .bn-i .ic { width: 21px; height: 21px; }
  .bn.on { color: var(--accent-ink); } .bn.on .bn-i { background: var(--accent-soft); }
  .bn-i em { position: absolute; top: -2px; inset-inline-end: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; font-style: normal; display: grid; place-items: center; border: 2px solid var(--surface); }
  .app.immersive .top, .app.immersive .bnav { display: none; }
  .app.immersive .page { padding: 0; }
  .ph h2 { font-size: 22px; } .ph { align-items: center; }
  .card { padding: 16px; }
  .hello h2 { font-size: 23px; }
  .banner { flex-wrap: wrap; padding: 12px; position: relative; }
  .banner .glogo { display: none; }
  .banner-t { flex-basis: 100%; padding-inline-end: 30px; gap: 6px; }
  .banner .icon-btn { position: absolute; top: 6px; inset-inline-end: 6px; }
  .home-grid, .dash-grid, .dash-grid2, .form-grid, .wal-grid, .help-grid, .md, .od-grid, .fb-opts, .tier-hero { grid-template-columns: minmax(0, 1fr); }
  .home-grid .show-m > * + * { margin-top: 14px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi { padding: 14px; } .kpi b { font-size: 19px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric:last-child { grid-column: span 2; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tbl-wrap { display: none; }
  .mlist { display: block; }
  .dcards { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
  .dcard { border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
  .dcard.off { opacity: .6; background: var(--surface-2); }
  .dc-h { display: flex; align-items: center; gap: 12px; } .dc-t { flex: 1; min-width: 0; } .dc-t b { display: block; font-size: 15px; } .dc-t small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dc-m { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; }
  .dc-m b { display: block; font-size: 15px; font-family: var(--mono); font-variant-numeric: tabular-nums; } .dc-m small { font-size: 11.5px; }
  .dc-m .r { text-align: end; }
  .dc-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
  .dc-f .tags { margin: 0; flex: 1; min-width: 0; }
  .dc-f .btn { height: 44px; padding: 0 18px; }
  .fill .prog { max-width: none; }
  .m-filterbar { display: flex !important; gap: 8px; padding: 12px 12px 0; }
  .m-filterbar .search input { height: 44px; font-size: 16px; }
  .m-filterbar .btn { height: 44px; }
  .m-chips { display: flex !important; gap: 8px; padding: 10px 12px 0; overflow-x: auto; scrollbar-width: none; }
  .m-chips::-webkit-scrollbar { display: none; }
  .ctl-row { gap: 8px; }
  .ctl-row .seg { flex: 1 1 100%; } .ctl-row .seg button { flex: 1; justify-content: center; }
  .ctl-row > .sel { flex: 1 1 100%; } .ctl-row > .sel select { flex: 1; max-width: none; font-size: 16px; }
  .ctl-row .search { flex: 1 1 100%; } .ctl-row .search input { font-size: 16px; height: 44px; }
  input, select, textarea { font-size: 16px !important; }
  .field input, .field select { height: 46px; }
  .row2 { grid-template-columns: 1fr; gap: 12px; }
  .stock-grid, .wallets { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .feat { padding: 12px 14px; }
  .help-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .help-cats .hcat:last-child { grid-column: span 2; }
  .help-hero { padding: 26px 16px 22px; } .help-hero h2 { font-size: 24px; }
  .article { padding: 20px; } .article h2 { font-size: 20px; }
  .tier-ladder { grid-template-columns: 1fr; }
  .tl-step { padding: 14px; }
  .set-layout { grid-template-columns: 1fr; }
  .rep-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .od-h h2 { font-size: 18px; }
  .od-actions .btn { flex: 1 1 auto; }
  .btn-danger-ghost { margin-inline-start: 0; }
  .orow { padding: 12px; }
  .chat-m { height: 100vh; height: 100dvh; }
  .chat-m .thread { height: 100%; }
  .th-h { padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top)); gap: 8px; }
  .th-body { padding: 14px 12px; }
  .bub { max-width: 88%; }
  .composer { padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
  .cl-body { max-height: none; }
  #toasts { inset-inline-start: 16px; inset-inline-end: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); align-items: stretch; max-width: none; }
  .app.immersive ~ #toasts, .toast { justify-content: flex-start; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); min-height: 100vh; }
  .m-brand { display: flex; }
  .auth-form { padding: 20px 0; margin: 0 auto; }
  .auth-form h1 { font-size: 25px; }
  .otp { gap: 6px; } .otp input { height: 52px; }
  .save-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .ov-body { padding: 18px 16px; }
  .ov-head { padding-inline-start: 18px; }
  .ov-foot { padding: 12px 16px; }
  .ov-foot .btn { flex: 1; height: 48px; }
  .ov-full .ov-panel { border-radius: 0; }
  .ov-full .ov-head { padding-top: calc(12px + env(safe-area-inset-top)); }
  .theme-pick { gap: 8px; }
  .copy-row .btn { padding: 0 14px; }
}
@media (max-width: 420px) {
  .hide-xs { display: none !important; }
  .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px; gap: 8px; }
  .stat-row b { font-size: 15px; } .stat-row small { display: none; }
  .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.three .kpi b { font-size: 17px; }
  .bal-amt { font-size: 32px; }
  .timeline small { font-size: 10.5px; }
  .tk-stats b { font-size: 14.5px; }
}
/* ── Ajustes tras revisar capturas ── */
.label::first-letter { text-transform: uppercase; }
.setup-h > .ring { flex: 0 0 auto; }
.side-col > div > * + *, .col > .show-m > * + * { margin-top: 18px; }
.banner-t { cursor: pointer; }
@media (max-width: 899px) {
  .ph { flex-wrap: nowrap; align-items: flex-start; }
  .ph > div:first-child { flex: 1; min-width: 0; }
  .ph-a .btn { height: 40px; padding: 0 12px; }
  .banner { flex-wrap: nowrap; padding: 10px 10px 10px 12px; }
  .banner-t { flex-basis: auto; padding-inline-end: 0; flex-wrap: nowrap; align-items: flex-start; }
  .banner-t b { font-size: 13px; font-weight: 600; }
  .banner .icon-btn { position: static; }
  .col > .show-m > * + * { margin-top: 14px; }
}
@media (max-width: 899px) {
  .tier-ladder { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
  .tier-ladder::-webkit-scrollbar { display: none; }
  .tl-step { scroll-snap-align: start; }
  .vitrine { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vt { padding: 10px; gap: 8px; } .vt .glogo { width: 28px; height: 28px; }
  .vt .trend { position: static; align-self: flex-start; display: none; }
  .vt small.muted { white-space: normal; }
}

/* ── App (2026-10-13): tema automático y página no encontrada ── */
.tp-prev.system { background: linear-gradient(135deg, var(--ag-smoke) 0 50%, var(--ag-canvas) 50% 100%); border: 1px solid var(--border-2); }
.tp-prev.system i { background: #5A6175; } .tp-prev.system i:first-child { background: var(--ag-electric-2); }
.tp b { font-size: 13px; }
.nf .card { max-width: 560px; margin: 40px auto; }
.nf-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.empty .nf-a .btn + .btn { margin-inline-start: 0; }
.nf-solo { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 8px; }
.nf-solo .m-brand { display: flex; align-items: center; gap: 10px; }
.nf-solo .m-brand img { width: 32px; height: 32px; }
.nf-solo .nf { width: 100%; }
.nf-solo .nf .card { margin: 16px auto; }

/* ── Alineación (2026-10-13) ──
   Ícono + texto que van juntos dentro de un renglón (reloj + cuenta regresiva, etc.): nunca se separan al cortar
   la línea y el ícono queda centrado con el texto. */
.ic-t { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; vertical-align: bottom; }
.ic-t > .ic, .ic-t > svg { flex-shrink: 0; }
/* Un ícono al lado de un párrafo de varias líneas va con la PRIMERA línea, no con el medio del párrafo. */
.note { align-items: flex-start; line-height: 1.5; }
.note > .ic, .note > svg { margin-top: calc((1.5em - 14px) / 2); }
.nw { white-space: nowrap; }
/* Los links y acciones del encabezado de una tarjeta no se parten ("View all →" en dos renglones). */
.link { white-space: nowrap; }
.card-h > div:first-child { min-width: 0; }
.card-h > :not(:first-child) { flex-shrink: 0; }
/* Demanda en una lista angosta (Hoy en el teléfono): nombre y datos arriba a todo el ancho, precio y botón abajo —
   con las cuatro cosas en una fila, el nombre quedaba en una columna de 80 px partido palabra por palabra. */
@container dmini (max-width: 520px) {
  .dminis li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "logo txt txt" ". precio accion"; column-gap: 12px; row-gap: 8px; align-items: center; }
  .dminis li > .glogo { grid-area: logo; align-self: start; }
  .dminis li > .dmini-t { grid-area: txt; }
  .dminis li > .dmini-p { grid-area: precio; text-align: start; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .dminis li > .btn, .dminis li > .pill { grid-area: accion; }
}
.dminis { container: dmini / inline-size; }
/* El avatar del que escribe va a la altura del globo, no de la hora que tiene abajo (11px × 1,5 + 3px de espacio). */
.bub.them > .avatar { margin-bottom: calc(11px * 1.5 + 3px); }
/* Ícono + una oración que puede ocupar varias líneas: el texto baja, el ícono queda con la primera línea. */
.ic-p { display: flex; align-items: flex-start; gap: 6px; }
.ic-p > svg { flex-shrink: 0; margin-top: calc((1.5em - 14px) / 2); }
.center.ic-p, .ic-p.center { justify-content: center; }

/* ── Núcleo de la app (2026-10-13) ── */
.sk-page { display: flex; flex-direction: column; gap: 16px; }
.sk-blk { height: 120px; border-radius: var(--r); }
.sk-blk:first-child { height: 64px; max-width: 420px; }
.dev-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--border-2); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.dev-note > svg { flex-shrink: 0; margin-top: 2px; color: var(--violet); }
.ws-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-inline-end: 6px; vertical-align: middle; }
.ws-dot[data-ws="on"] { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.ws-dot[data-ws="conectando"] { background: var(--amber); }
.btn.busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 35%, transparent); border-top-color: currentColor; animation: girar .7s linear infinite; }
.btn-ghost.busy::after { border-color: var(--border-2); border-top-color: var(--text); }
@keyframes girar { to { transform: rotate(360deg); } }
.check-card:disabled { opacity: .5; cursor: not-allowed; }

/* Firma de los términos */
.terms-page { min-height: 100vh; min-height: 100dvh; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.terms-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 820px; margin: 0 auto 16px; }
.terms-top .m-brand { display: flex; align-items: center; gap: 10px; } .terms-top .m-brand img { width: 32px; height: 32px; }
.terms-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.terms-h { display: flex; align-items: center; gap: 14px; }
.terms-h h1 { font-size: 24px; letter-spacing: -.02em; }
.terms-doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 24px; max-height: min(52vh, 520px); overflow-y: auto; box-shadow: var(--shadow); }
.terms-doc section + section { margin-top: 18px; }
.terms-doc h3 { font-size: 15px; font-weight: 650; margin-bottom: 6px; }
.terms-doc p { color: var(--text-2); font-size: 14px; line-height: 1.6; } .terms-doc p + p { margin-top: 8px; }
.terms-end { margin-top: 20px !important; display: flex; align-items: center; gap: 6px; color: var(--green) !important; font-weight: 600; }
.terms-hint { display: flex; align-items: center; gap: 6px; color: var(--accent-ink); font-size: 13px; font-weight: 600; }
.terms-sign { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 24px; transition: opacity .2s; }
.terms-sign.off { opacity: .55; }
.terms-checks { display: grid; gap: 8px; }
.terms-checks .check-card { text-align: start; }
.terms-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.terms-foot small { flex: 1; min-width: 220px; }
@media (max-width: 600px) {
  .terms-doc, .terms-sign { padding: 16px; }
  .terms-h h1 { font-size: 20px; }
  .terms-foot .btn { width: 100%; }
}
.terms-top .m-brand b { white-space: nowrap; }
@media (max-width: 420px) { .terms-top .m-brand b { display: none; } }
/* (Los atajos "Entrar directo" a las cuentas de prueba se sacaron el 2026-11-25, pedido del dueño: .dev-login ya no existe.) */

/* Menú del avatar (arriba a la derecha): Perfil · Seguridad · Equipo · Salir. */
.me-menu { position: relative; }
.me-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: 272px; max-width: calc(100vw - 24px); z-index: 70; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.me-pop[hidden] { display: none; }
.me-pop-h { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.me-pop-h > div { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.me-pop-h b { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-pop-h small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-pop-h .tag { align-self: flex-start; margin-top: 2px; }
.me-pop-i { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text); width: 100%; text-align: start; }
.me-pop-i > span { flex: 1; }
.me-pop-i:hover, .me-pop-i:focus-visible { background: var(--surface-2); outline: none; }
.me-pop-i.on { color: var(--accent-ink); font-weight: 600; }
.me-pop-i .ic { width: 18px; height: 18px; }
.me-pop-i .ic.xs { width: 14px; height: 14px; }
.me-pop-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.acc-solo { max-width: 860px; }
/* Pantalla ancha: las tarjetas de Account Settings en DOS columnas (de arriba a abajo), así no queda media pantalla vacía
   y la página es la mitad de larga. */
@media (min-width: 1240px) {
  .acc-solo { max-width: none; columns: 2; column-gap: 16px; }
  .acc-solo > * { break-inside: avoid; margin-top: 0 !important; margin-bottom: 16px; }
}
.acc-ing-mas { margin-top: 8px; }

/* ── Árabe: de DERECHA A IZQUIERDA (2026-10-14). Lo de izquierda/derecha ya va en propiedades lógicas (inline-start /
   inline-end) y se espeja solo; acá va lo que no: lo que el JS ubica con `left` en px, los íconos con dirección, la letra
   (Inter no tiene árabe) y el espaciado entre letras (corta la escritura ligada del árabe). */
[dir=rtl] body { font-family: 'Segoe UI', 'Noto Sans Arabic', Tahoma, var(--font); }
[dir=rtl] * { letter-spacing: 0 !important; }
[dir=rtl] .chart, [dir=rtl] .slk-bar, [dir=rtl] .slk, [dir=rtl] .tour-spot, [dir=rtl] .tour-pop { direction: ltr; }
[dir=rtl] .tour-pop > * { direction: rtl; }
[dir=rtl] .mono { direction: ltr; unicode-bidi: isolate; }
[dir=rtl] .sw.on span { transform: translateX(-16px); }
[dir=rtl] .nt-card.nuevo::before { border-radius: 3px 0 0 3px; }
[dir=rtl] svg.lucide-chevron-right, [dir=rtl] svg.lucide-chevron-left, [dir=rtl] svg.lucide-arrow-right, [dir=rtl] svg.lucide-arrow-left,
[dir=rtl] svg.lucide-arrow-up-right, [dir=rtl] svg.lucide-send, [dir=rtl] svg.lucide-send-horizontal, [dir=rtl] svg.lucide-log-out,
[dir=rtl] svg.lucide-log-in, [dir=rtl] svg.lucide-chevrons-right, [dir=rtl] svg.lucide-chevrons-left, [dir=rtl] svg.lucide-reply { transform: scaleX(-1); }

/* Pantalla de entrada en el teléfono: el idioma ya es un combo (su tope está arriba, con .lang-cb). */

/* Isotipo de la marca: la versión de contorno claro en oscuro y la de contorno negro en claro (manual: nunca la
   versión equivocada para el fondo). La imagen la pone tokens.css (--logo-iso). */
img.ag-iso { content: var(--logo-iso); object-fit: contain; flex-shrink: 0; }
/* El isotipo se ve ENTERO (pedido del dueño, 2026-11-20: "se ve un círculo cortado encima del logo"). Es una "A" cuya base
   ocupa todo el ancho de la imagen: un border-radius le recortaba las dos esquinas de abajo (marca, barra del teléfono,
   ingreso, términos, onboarding), así que el isotipo suelto no lleva radio (`html` le gana a `.obw-top .m-brand img` y
   compañía) y no se achica en una fila apretada. El de las notificaciones va en una baldosa (.nt-iso, con su radio). */
html img.ag-iso:not(.nt-iso) { border-radius: 0; }
/* Notificación del sistema (isotipo en baldosa + la chapita redonda del tipo en la esquina): la chapita tapaba la esquina
   de abajo de la "A". La "A" va más chica hacia la esquina de inicio de arriba y la chapita sale un poco más afuera:
   quedan en diagonal, sin tocarse (también en la vista previa de la campana y en árabe, que espeja las dos). */
.nt-i > img.nt-iso { padding-block: 5px 11px; padding-inline: 5px 11px; }
.bp-i .nt-i > img.nt-iso { padding-block: 4px 10px; padding-inline: 4px 10px; }
.nt-i:has(> img.nt-iso) > .nt-ti { inset-block-end: -8px; inset-inline-end: -8px; }
/* Los anillos de foco y los enlaces "de marca" usan la tinta de marca del tema. */
a.link, .link { color: var(--accent-ink); }

/* ── Campana: vista previa de notificaciones (2026-10-19; la arma tabs/notifications.js en #bell-pop) ──
   Cuelga de la campana (posición fija: --bp-top / --bp-end las pone el JS con la campana a la vista); en el teléfono es una
   hoja casi a todo el ancho debajo del header. Cabecera y pie fijos; la lista scrollea. */
.bp { position: fixed; z-index: 70; inset-block-start: var(--bp-top, 64px); inset-inline-end: var(--bp-end, 16px); width: 380px; max-width: calc(100vw - 16px); max-height: min(560px, calc(100dvh - var(--bp-top, 64px) - 12px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; outline: none; }
.bp[hidden] { display: none; }
.bp-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 12px 10px; padding-inline: 16px 10px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.bp-ht { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bp-ht b { font-size: 14px; font-weight: 650; white-space: nowrap; }
.bp-n { font-size: 12px; color: var(--muted); font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bp-mk { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; flex-shrink: 0; }
.bp-mk:hover:not(:disabled), .bp-mk:focus-visible { background: var(--surface-2); outline: none; }
.bp-mk:disabled { color: var(--muted); opacity: .6; cursor: default; }
.bp-mk .ic { width: 16px; height: 16px; }
.bp-l { list-style: none; margin: 0; padding: 6px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; }
.bp-i { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-align: start; color: var(--text); transition: background .15s; }
.bp-i:hover, .bp-i:focus-visible { background: var(--surface-2); outline: none; }
.bp-i.nuevo { background: var(--accent-soft); }
.bp-i.nuevo:hover, .bp-i.nuevo:focus-visible { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface-2)); }
.bp-i .nt-i, .bp-i .nt-lg { width: 34px; height: 34px; }
.bp-i .nt-lg { border-radius: 9px; }
.bp-i img.nt-iso { padding: 5px; }
.bp-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-t { font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bp-i.nuevo .bp-t { font-weight: 600; }
.bp-m { font-size: 12px; color: var(--muted); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.bp-i .udot { margin-inline-start: 0; }
.bp-vacio { margin: 0; padding: 22px 16px; text-align: center; font-size: 13.5px; color: var(--muted); }
.bp-sk { display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.bp-sk .sk { height: 52px; border-radius: 10px; }
.bp-f { padding: 8px; border-top: 1px solid var(--border); flex-shrink: 0; }
.bp-todas { width: 100%; }
.bp-flecha { width: 16px; height: 16px; }
[dir="rtl"] .bp-flecha { transform: scaleX(-1); }
@media (max-width: 600px) {
  .bp { inset-inline: 8px; width: auto; max-width: none; max-height: calc(100dvh - var(--bp-top, 64px) - 12px); }
}
/* La bajada de cada pantalla va en el header, debajo de las migas (2026-10-19): una línea chica y gris, cortada si no
   entra (el texto completo, en el tooltip del navegador no hace falta: es una ayuda, no un dato). */
.top-mid { display: flex; flex-direction: column; justify-content: center; min-width: 0; gap: 1px; }
.top-sub { margin: 0; font-size: 12px; line-height: 1.3; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-sub .live { height: 18px; font-size: 10.5px; margin-inline-end: 6px; }
@media (max-width: 768px) { .top-sub { font-size: 11px; } }

/* ── Carga: formas de esqueleto (core.js → skeleton.*) y barra de progreso de arriba (2026-10-21) ── */
#dp-prog { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .2s; overflow: hidden; }
#dp-prog::before { content: ''; position: absolute; inset-block: 0; width: 40%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: dp-prog 1.1s ease-in-out infinite; }
#dp-prog.on { opacity: 1; }
@keyframes dp-prog { from { inset-inline-start: -40%; } to { inset-inline-start: 100%; } }
.btn.busy::after { border-color: color-mix(in srgb, var(--text) 30%, transparent); border-top-color: var(--text); }
.btn-primary.busy::after { border-color: color-mix(in srgb, var(--on-accent) 30%, transparent); border-top-color: var(--on-accent); }
.sk-wrap { pointer-events: none; }
.sk-ph { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.sk-ph .sk-title { margin: 0; }
.sk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.sk-kpi { padding: 16px; }
.sk-tbl .sk-tr { display: grid; grid-template-columns: 40px 2fr 1fr 1fr; gap: 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.sk-tbl .sk-tr:last-child { border-bottom: 0; }
.sk-lst { padding-block: 4px; } .sk-lst .sk-card:last-child { border-bottom: 0; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.sk-tile { padding: 16px; display: flex; flex-direction: column; gap: 4px; min-height: 170px; }
.sk-tile .sk-btn { margin-top: auto; width: 100%; }
.sk-plot { height: 200px; border-radius: 10px; margin-top: 12px; }
.sk-chart { padding: 18px; }
.sk-det { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sk-det > .card, .sk-form { padding: 18px; }
.sk-input { height: 42px; border-radius: 10px; margin-bottom: 8px; }
@media (max-width: 899px) { .sk-det { grid-template-columns: 1fr; } .sk-tbl .sk-tr { grid-template-columns: 40px 1fr 70px; } .sk-tbl .sk-tr > :last-child { display: none; } }
@media (prefers-reduced-motion: reduce) { .sk, #dp-prog::before { animation: none; } }
.sk-sub { display: inline-block; height: 10px; width: 220px; max-width: 60vw; border-radius: 6px; vertical-align: middle; }
.page-in { display: flow-root; } /* que el margen de un primer hijo no se escape: la caja de la página queda donde su esqueleto */

/* La espera de los códigos (js/codigo-espera.js, 2026-11-27): "Checking your code…" 2–3 s y "Code confirmed ✓". El botón
   conserva su ancho (lo fija el JS) y el texto va en una línea: nada se mueve. */
.btn.ce-btn { gap: 8px; overflow: hidden; white-space: nowrap; }
.btn.ce-btn .ce-txt { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.btn.ce-btn:disabled { opacity: 1; cursor: progress; }
.btn.ce-btn-ok, .btn.ce-btn-ok:disabled { background: var(--green-soft); border-color: var(--green); color: var(--green); box-shadow: none; cursor: default; }
.ce-spin { flex: none; display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: girar .7s linear infinite; }
.ce-ok-i { flex: none; }
.otp-err.ce-st { color: var(--muted); }
.otp-err.ce-st-ok { color: var(--green); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ce-spin { animation: none; border-top-color: color-mix(in srgb, currentColor 30%, transparent); border-right-color: currentColor; } }
