/* Demand Panel — estilos de la pestaña "account". Sólo variables de app.css (claro y oscuro salen solos). */

/* ── Marco: menú de secciones (compu) · lista de secciones y "volver" (teléfono) ── */
.acc .acc-hub, .acc .acc-back { display: none; }
@media (min-width: 900px) { .acc .acc-back + .ph { margin-top: 0; } }
.acc .set-body > .card + .card, .acc .set-body > .acc-note + .card { margin-top: 16px; }
.acc .card-f { align-items: center; }
.acc-f-note { margin-inline-end: auto; }

/* Identidad (tienda / miembro) */
.acc-id { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.acc-id-t { flex: 1; min-width: 0; }
.acc-id-t b { display: block; font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-id-t small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-ro { background: var(--surface-2) !important; color: var(--text-2); }
.field input:disabled, .field select:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

/* Roles: un color por rol */
.acc-rol.r-admin { background: var(--accent-soft); color: var(--accent-ink); }
.acc-rol.r-manager { background: var(--blue-soft); color: var(--blue); }
.acc-rol.r-operator { background: var(--violet-soft); color: var(--violet); }
.acc-rol.r-viewer { background: var(--gray-soft); color: var(--muted); }

/* Discord: el mismo vínculo del onboarding (js/discord-vinculo.js, clases ob-* de onboarding.css), con su aire entre bloques. */
.acc-dc { display: flex; flex-direction: column; gap: 14px; }
.acc-dc .ob-p { margin: 0; }

/* Preferencias: idioma + tema */
/* Una columna: la tarjeta va en media página y, al lado del idioma, las tres del tema quedaban de 50 px y cortaban su nombre. */
.acc-prefs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.acc-prefs .field .cb { max-width: 320px; }
.acc .theme-pick { margin-bottom: 0; }
.acc .tp { background: var(--surface); color: var(--text-2); }
.acc .tp.on { color: var(--text); }
.acc-tp-l { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; line-height: 16px; min-width: 0; }
.acc-tp-l > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc .tp { min-width: 0; }

/* Sonidos de los avisos */
.acc-snd-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block-end: 12px; margin-block-end: 4px; border-block-end: 1px solid var(--border); }
.acc-snd-vol { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); flex: 0 1 280px; min-width: 180px; }
.acc-snd-vol input { flex: 1; min-width: 0; accent-color: var(--accent); cursor: pointer; }
.acc-snd-vol b { font-size: 12.5px; color: var(--text-2); min-width: 4ch; text-align: end; font-variant-numeric: tabular-nums; }
.acc-snd-vol.off { opacity: .5; }
.acc-snd li > div:not(.acc-snd-a) { flex: 1; min-width: 0; }
.acc-snd li > .acc-snd-a { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.acc-snd-a .cb { width: auto; } .acc-snd-a .cb-b { width: 160px; min-width: 0; max-width: 160px; }
.acc-snd li.off .set-i, .acc-snd.mudo .set-i { opacity: .5; }
.acc-snd.mudo .acc-snd-a .cb-b { color: var(--muted); }
.acc-snd-h { margin: 12px 0 0; line-height: 1.4; }
.acc-snd-h .ic { flex-shrink: 0; }
@media (max-width: 600px) {
  .acc-snd li { flex-wrap: wrap; }
  .acc-snd li > div:not(.acc-snd-a) { flex: 1 1 calc(100% - 60px); }
  .acc-snd li > .acc-snd-a { flex: 1 1 100%; padding-inline-start: 50px; }
  .acc-snd-a .cb { flex: 1; } .acc-snd-a .cb-b { max-width: none; width: 100%; }
  .acc-snd-vol { flex-basis: 100%; }
}
.acc-tp-sys { display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px; overflow: hidden; }
.acc-tp-sys .tp-prev { border-radius: 0; }
.acc-tp-sys .tp-prev.light { border-inline-end: 0; } .acc-tp-sys .tp-prev.dark { border-inline-start: 0; }

/* Listas de ajustes */
.acc .set-list li > .btn, .acc .set-list li > .pill, .acc .set-list li > .tag { flex-shrink: 0; }
.acc .set-list small { line-height: 1.4; }
.acc-hash { font-size: 11px; }
.set-i.acc-ok { background: var(--green-soft); color: var(--green); }
.acc-when { text-align: end; flex-shrink: 0; }
.acc-when b { font-size: 13px; font-weight: 600; } .acc-when small { font-size: 12px; }
.acc-ing li:first-child .acc-when b { color: var(--green); }

/* Nota con ícono (retiros, sólo admin) */
.acc-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--text-2); font-size: 13px; line-height: 1.45; }
.acc-note > svg { flex-shrink: 0; margin-top: 1px; }
.acc-note p, .acc-note span { margin: 0; }
.acc .set-body > .acc-note:first-child { margin-top: 0; }

/* Contraseña */
.acc-pass { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
/* Cuenta creada con Discord (2026-11-20): el candado tapa la tarjeta entera (cabecera incluida). Lo de abajo queda en su
   lugar, borroso e inerte, para que la tarjeta mida lo mismo. Si el texto no entra (teléfono), scrollea ADENTRO. */
.acc-pass-card { position: relative; }
.acc-pass-card.is-locked > :not(.acc-lock) { filter: blur(3px); opacity: .35; user-select: none; pointer-events: none; }
.acc-lock { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 20px 24px; text-align: center; overflow-y: auto; border-radius: inherit;
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(2px); }
.acc-lock-i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 8%, transparent); }
.acc-lock h4 { margin: 4px 0 0; font-size: 16px; }
.acc-lock p { margin: 0; max-width: 520px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.acc-lock-dc { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2);
  border: 1px solid var(--border); font-size: 12.5px; font-weight: 500; color: var(--text); }
.acc-lock small { max-width: 520px; font-size: 12.5px; }

/* ── Equipo ── */
.acc-ch { padding: 20px 20px 0; }
.acc-ch .card-h { margin-bottom: 14px; }
.acc-team { border-top: 1px solid var(--border); }
.acc-team li { display: grid; grid-template-columns: 36px minmax(0, 1fr) 104px 176px 76px; align-items: center; column-gap: 14px; padding: 12px 20px; border-top: 1px solid var(--border); min-height: 64px; }
.acc-team li:first-child { border-top: 0; }
.acc-team li.inv { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.acc-av-inv { width: 36px; height: 36px; border-radius: 50%; border: 1px dashed var(--border-2); background: var(--surface); color: var(--muted); display: grid; place-items: center; }
.acc-tm-t { min-width: 0; }
.acc-tm-t b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; min-width: 0; }
/* El nombre baja de renglón en vez de cortarse ("de…", "Ra…"). */
.acc-tm-n { white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.acc-tm-t small { display: block; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.acc-2f { display: inline-grid; place-items: center; color: var(--green); flex-shrink: 0; }
.acc-tm-m { display: contents; }
.acc-tm-rol { grid-column: 3; display: flex; }
.acc-tm-st { grid-column: 4; display: flex; align-items: center; gap: 8px; min-width: 0; }
.acc-tm-st small { font-size: 12px; white-space: nowrap; }
.acc-tm-a { grid-column: 5; display: flex; justify-content: flex-end; gap: 2px; }

/* ── Overlays ── */
.acc-ov .ov-body > * + * { margin-top: 16px; }
.acc-ov-p { margin: 0; font-size: 14px; }
.acc-steps { display: flex; flex-direction: column; gap: 18px; list-style: none; margin: 0; padding: 0; }
.acc-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; }
.acc-steps li > div > b { display: block; font-size: 14px; font-weight: 650; line-height: 28px; }
.acc-steps li > div > small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.acc-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.acc-qr { width: 176px; height: 176px; margin: 10px 0 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.acc-qr svg { display: block; width: 100%; height: 100%; }
.acc-key { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.acc-key code { flex: 1; min-width: 0; min-height: 42px; display: flex; align-items: center; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface-2); font-size: 13px; letter-spacing: .04em; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
.acc-key .btn { flex-shrink: 0; }
.acc-otp { margin-top: 10px; }
.acc-otp .otp input { height: 48px; font-size: 20px; }
.acc-radios { gap: 8px; }
.acc-radio { cursor: pointer; }
.acc-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.acc-radio b { display: block; font-size: 13.5px; font-weight: 600; }
.acc-radio small { font-size: 12.5px; line-height: 1.4; }
.acc-radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.acc-radio:has(input:checked) .rd { border: 5px solid var(--accent); }
.acc-radio:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-ring); }
.acc-radio.off { opacity: .5; cursor: not-allowed; }
.acc-inv { display: flex; flex-direction: column; gap: 16px; }
.acc-ov .acc-id { padding-bottom: 14px; margin-bottom: 0; }
.acc-danger { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.acc-danger > div { flex: 1; min-width: 0; }
.acc-danger b { display: block; font-size: 13.5px; } .acc-danger small { display: block; font-size: 12.5px; }
.acc-danger .btn { flex-shrink: 0; }
.acc-sent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 8px 0; }
.acc-sent b { font-size: 16px; } .acc-sent p { margin: 0; font-size: 14px; }
.acc-sent .dev-note { text-align: start; align-self: stretch; }
.acc-matriz { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.acc-matriz .tbl th:first-child, .acc-matriz .tbl td:first-child { padding-inline-start: 14px; }
.acc-matriz .tbl th:last-child, .acc-matriz .tbl td:last-child { padding-inline-end: 14px; }
.acc-matriz .tbl tr:last-child td { border-bottom: 0; }
.acc-matriz .c { text-align: center; width: 84px; }
.acc-si, .acc-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; }
.acc-si { background: var(--green-soft); color: var(--green); } .acc-no { color: var(--muted); }
.acc-si svg, .acc-no svg { width: 14px; height: 14px; }
@media (min-width: 900px) { .ov-modal .acc-ov-w { width: min(680px, calc(100vw - 48px)); } }

/* ── Aceptar una invitación (pantalla pública) ── */
.acc-invcard { border: 1px solid var(--border); border-radius: 14px; padding: 6px 16px 12px; background: var(--surface-2); }
.acc-invcard .kv > div { border-top-color: var(--border-2); }
.acc-invcard dd { min-width: 0; }
.acc-dd-e { overflow-wrap: anywhere; }
.acc-invrol { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.acc-invrol svg { flex-shrink: 0; margin-top: 1px; }
.acc-note-s { margin-top: 0; }
.acc-ic-bad { background: var(--red-soft); color: var(--red); }

/* ── Teléfono ── */
@media (max-width: 899px) {
  .acc .acc-nav-d { display: none; }
  .acc .acc-hub { display: block; }
  .acc .acc-back { display: inline-flex; margin-bottom: -6px; }
  .acc-hub-t { flex: 1; min-width: 0; }
  .acc-hub-t b { display: block; font-weight: 600; } .acc-hub-t small { display: block; font-size: 12.5px; color: var(--muted); }
  .acc-prefs, .acc-pass { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .acc .card-f { flex-wrap: wrap; }
  .acc .card-f .btn { flex: 1 1 100%; }
  .acc-f-note { flex: 1 1 100%; }
  /* Un botón baja a su renglón (alineado con el texto); una etiqueta corta queda al costado. */
  .acc .set-list li:has(> .btn) { flex-wrap: wrap; }
  .acc .set-list li:has(> .btn) > div { flex: 1 1 calc(100% - 50px); }
  .acc .set-list li > .btn { margin-inline-start: 50px; }
  .acc-ing li > div { flex-basis: auto !important; }
  .acc-team li { grid-template-columns: 36px minmax(0, 1fr) auto; row-gap: 8px; padding: 12px 16px; }
  .acc-team li > :first-child { grid-row: 1 / span 2; align-self: start; }
  .acc-tm-m { display: flex; grid-column: 2 / 4; flex-wrap: wrap; align-items: center; gap: 8px; }
  .acc-tm-a { grid-column: 3; grid-row: 1; }
  .acc-ch { padding: 16px 16px 0; }
  .acc-ch .card-h { flex-wrap: wrap; }
  .acc-danger { flex-wrap: wrap; }
  .acc-danger .btn { flex: 1 1 100%; }
  .acc-qr { margin-inline-start: auto; margin-inline-end: auto; }
  .acc-matriz .tbl { font-size: 12.5px; }
  .acc-matriz .tbl th, .acc-matriz .tbl td { padding: 10px 4px; }
  .acc-matriz .tbl th { font-size: 11px; }
  .acc-matriz .tbl th:first-child, .acc-matriz .tbl td:first-child { padding-inline-start: 12px; }
  .acc-matriz .tbl th:last-child, .acc-matriz .tbl td:last-child { padding-inline-end: 8px; }
  .acc-matriz .c { width: 56px; }
}

/* ── Equipo: permisos y links de invitación (2026-10-19; js/tabs/account.js › pickerPermisos / vistaLinks) ── */
.acc-duenio { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: var(--accent-ink); }
.acc-np { display: block; font-size: 11.5px; margin-block-start: 2px; }
.acc-rol.r-custom { background: var(--surface-2); color: var(--text-2); border: 1px dashed var(--border); }
.acc-perms { display: flex; flex-direction: column; gap: 10px; }
.acc-pres { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-pre { position: relative; cursor: pointer; }
.acc-pre input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.acc-pre span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface); }
.acc-pre input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.acc-pre input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-ring); }
.acc-pre input:disabled + span { opacity: .6; cursor: not-allowed; }
.acc-pgs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* Invitar / editar / crear link: la ventana se ensancha para que los permisos vayan en DOS columnas (2026-10-20). */
@media (min-width: 760px) {
  .ov-modal .ov-panel.acc-ov-perm { max-width: min(820px, calc(100vw - 48px)); }
  .acc-ov-perm .acc-pgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.acc-pg { margin: 0; padding: 8px 10px 10px; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.acc-pg legend { padding: 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.acc-pm { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; cursor: pointer; border-radius: 8px; }
.acc-pm + .acc-pm { border-block-start: 1px solid var(--border); }
.acc-pm input { margin-block-start: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--accent); cursor: pointer; }
.acc-pm input:disabled { cursor: not-allowed; }
.acc-pm .set-i { flex: none; }
.acc-pm-t { display: flex; flex-direction: column; min-width: 0; }
.acc-pm-t b { font-size: 13.5px; font-weight: 600; }
.acc-pm-t small { font-size: 12px; line-height: 1.35; }
.acc-pm:has(input:checked) .acc-pm-t b { color: var(--text); }
.acc-pm:has(input:not(:checked)) .acc-pm-t b { color: var(--text-2); }
.acc-lk-o { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 560px) { .acc-lk-o { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.acc-usos { max-width: 120px; }
.acc-lks { list-style: none; margin: 0; padding: 0; }
.acc-lk { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.acc-lk + .acc-lk { border-block-start: 1px solid var(--border); }
.acc-lk-t { flex: 1; min-width: 0; }
.acc-lk-t b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; }
.acc-lk-t small { display: block; font-size: 12.5px; overflow-wrap: anywhere; }
.acc-lk-p { font-size: 12px; font-weight: 500; }
.acc-lk-sp { width: 28px; flex: none; }
.acc-lk-url { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
.acc-lk-url code { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; text-align: start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 12.5px; }
.acc-invperms { margin-block-start: 10px; }
.acc-invperms ul { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.acc-invperms li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.acc-o { margin: 10px 0 4px; }

/* ── Sub-pestañas de Account Settings (Perfil · Seguridad · Equipo), 2026-10-20 ── */
.acc-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); width: fit-content; max-width: 100%; }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tab { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; text-decoration: none; }
.acc-tab:hover { background: var(--surface-2); color: var(--text); }
.acc-tab.on { background: var(--accent-soft); color: var(--accent-ink); }
.acc-tab:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
@media (max-width: 520px) { .acc-tabs { width: 100%; } }

/* ── Avatar de Discord guardado nuestro (lib/avatar.js): la foto tapa las iniciales ── */
.avatar.acc-av-img { position: relative; overflow: hidden; padding: 0; }
.avatar.acc-av-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ── Discord vinculado: el ID queda fijo (js/discord-vinculo.js) ── */
.dc-fijo { display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; line-height: 1.45; }
.dc-fijo svg { flex: none; margin-top: 2px; }

/* La sección de strikes va en UNA columna en todos los anchos (la lista necesita el ancho; .acc-solo parte en dos). */
.acc-solo.stk-body { columns: auto; max-width: 980px; }
.acc-solo.stk-body > * { margin-bottom: 0; }
.acc-solo.stk-body > * + * { margin-top: 16px !important; }
/* ── Strikes (2026-11-23, términos §11 y §15): el estado, la escalera y cada strike con su apelación ──
   Nada se mueve: el botón "Apelar" está siempre (deshabilitado con el motivo abajo) y la columna de la apelación tiene
   ancho fijo en la compu. */
.stk-top { display: flex; align-items: center; gap: 18px; }
.stk-n { flex: none; width: 88px; height: 88px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--tn-s); color: var(--tn); }
.stk-n b { font-family: var(--mono); font-size: 34px; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.stk-n small { font-size: 11.5px; font-weight: 650; text-transform: lowercase; }
.stk-top.stk-tn-green { --tn: var(--green); --tn-s: var(--green-soft); }
.stk-top.stk-tn-amber { --tn: var(--amber); --tn-s: var(--amber-soft); }
.stk-top.stk-tn-red { --tn: var(--red); --tn-s: var(--red-soft); }
.stk-st { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.stk-st > .ic { flex: none; color: var(--tn); margin-top: 2px; }
.stk-st b { font-size: 15.5px; font-weight: 700; }
.stk-st p { margin-top: 3px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.stk-escT { display: block; margin-top: 18px; }
.stk-esc { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.stk-esc li { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--border); color: var(--text-2); }
.stk-esc li b { font-family: var(--mono); font-size: 13px; font-weight: 750; }
.stk-esc li span { font-size: 12.5px; line-height: 1.35; }
.stk-esc li.on { border-color: transparent; background: var(--amber-soft); color: var(--amber); }
.stk-esc li.on.s-susp { background: var(--red-soft); color: var(--red); }
.stk-esc li.yo { box-shadow: inset 0 0 0 1.5px currentColor; }
.stk-nota { display: flex; align-items: flex-start; gap: 7px; margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.stk-nota > .ic { flex: none; margin-top: 2px; }
.stk-l { list-style: none; margin: 0; padding: 0; }
.stk-f { display: grid; grid-template-columns: auto minmax(0, 1fr) 230px; align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.stk-f:first-child { padding-top: 2px; }
.stk-f:last-child { border-bottom: 0; padding-bottom: 2px; }
.stk-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.stk-f.vigente .stk-ic { background: var(--red-soft); color: var(--red); }
.stk-fb { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.stk-fh { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.stk-fh b { font-size: 14px; font-weight: 650; }
.stk-f.anulado .stk-fh b { text-decoration: line-through; color: var(--muted); }
.stk-f.vencido .stk-fh b { color: var(--text-2); }
.stk-c.c-aviso, .stk-c.c-prioridad { background: var(--amber-soft); color: var(--amber); }
.stk-c.c-suspension { background: var(--red-soft); color: var(--red); }
.stk-f:not(.vigente) .stk-c { background: var(--surface-2); color: var(--muted); }
.stk-meta { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.stk-ap { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; text-align: end; min-width: 0; }
.stk-ap small { font-size: 12px; line-height: 1.4; }
.stk-ap .btn:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--border); box-shadow: none; }
.stk-resp { display: flex; align-items: flex-start; gap: 6px; margin-top: 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; line-height: 1.45; text-align: start; color: var(--text); }
.stk-resp > .ic { flex: none; margin-top: 2px; color: var(--muted); }
.stk-ovs { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.stk-ovs > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stk-ovs b { font-size: 14px; font-weight: 650; }
.stk-ovs .stk-ic { background: var(--surface); }
#acc-apelar { margin-top: 0; } /* el modal ya separa sus partes (16 px) */
#acc-apelar textarea { width: 100%; resize: vertical; min-height: 120px; }
.stk-cnt { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .stk-top { align-items: flex-start; gap: 14px; }
  .stk-n { width: 72px; height: 72px; border-radius: 16px; }
  .stk-n b { font-size: 28px; }
  .stk-esc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stk-f { grid-template-columns: auto minmax(0, 1fr); }
  .stk-ap { grid-column: 2; align-items: flex-start; text-align: start; }
}

/* Canales de aviso (2026-11-24): email · Discord · navegador. Bloqueados por ahora (interruptores deshabilitados +
   candado); la tarjeta ya mide lo que va a medir cuando se habiliten. */
.acc-av li > .sw { flex-shrink: 0; }
.acc-av .sw:disabled { cursor: not-allowed; }
.acc-av small .link { white-space: nowrap; }
.acc-av-lock { flex-shrink: 0; color: var(--muted); }
.acc-av-lock .ic { width: 12px; height: 12px; }
.acc-av-h { margin: 12px 0 0; line-height: 1.4; }
.acc-av-h .ic { flex-shrink: 0; }

/* Umbral mínimo de demanda (pedido del dueño, 2026-11-26; tabs/account.js › vistaUmbral), justo ARRIBA de "Canales de
   aviso": las dos tarjetas van en un mismo bloque (.acc-avs) para que el corte de columna de la pantalla ancha
   (.acc-solo, app.css) no las separe. Un renglón con el campo en la moneda que se ve (el código adelante), el USD al lado
   EN VIVO (ancho fijo: escribir no corre los botones), Guardar y "Sin mínimo"; y el renglón del estado / error / sin
   guardar con alto FIJO de un renglón (dos en el teléfono). Propiedades lógicas: en árabe se espeja solo. */
.acc-avs > * + * { margin-top: 16px; }
.acc-um { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.acc-um-r { display: flex; align-items: center; gap: 8px 12px; min-width: 0; }
.acc-um-v { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.acc-um-in { flex: 0 1 220px; min-width: 0; height: 40px; padding-inline: 10px 6px; gap: 6px; }
.acc-um-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.acc-um-in.err { border-color: var(--red); }
.acc-um-in.err:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 22%, transparent); }
.acc-um-in input { min-width: 0; width: 100%; font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: start; }
.acc-um-in input::placeholder { font-family: var(--font, inherit); font-weight: 500; color: var(--muted); }
.acc-um-in input:disabled { cursor: not-allowed; }
.acc-um-cur { flex-shrink: 0; font-size: 12.5px; font-weight: 650; color: var(--muted); font-family: var(--mono); }
/* El USD de al lado: ancho fijo para el monto más largo (≈ US$ 1,000,000), así lo que se tipea no empuja nada. */
.acc-um-usd { flex: 0 0 auto; width: 16ch; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: isolate; text-align: start; }
.acc-um-b { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; flex-shrink: 0; }
.acc-um-b .btn { height: 40px; }
.acc-um-st { margin: 0; height: 17px; font-size: 12.5px; line-height: 17px; min-width: 0; }
.acc-um-st > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.acc-um-st > span > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-um-st .ic, .acc-um-st svg { flex-shrink: 0; }
.acc-um-now { color: var(--text-2); font-weight: 600; }
.acc-um-pend { color: var(--amber, var(--text-2)); font-weight: 600; }
.acc-um-err { color: var(--red); font-weight: 600; }
.acc-um-ro { color: var(--muted); }
/* Teléfono y columnas angostas: el campo y su USD en un renglón; los dos botones debajo, al dedo; el estado en dos
   renglones fijos. */
@media (max-width: 760px), (min-width: 1240px) and (max-width: 1500px) {
  .acc-um-r { flex-wrap: wrap; }
  .acc-um-v { flex: 1 1 100%; }
  .acc-um-in { flex: 1 1 auto; }
  .acc-um-b { flex: 1 1 100%; margin-inline-start: 0; }
  .acc-um-b .btn { flex: 1 1 0; justify-content: center; }
}
@media (max-width: 760px) {
  .acc-um-in { height: 46px; }
  .acc-um-b .btn { height: 44px; }
  .acc-um-st { height: 34px; }
  .acc-um-st > span { align-items: flex-start; }
  .acc-um-st > span > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
