/* Vela Closer: capa de aplicación sobre theme.css (formularios, tarjeta de acceso, tablas, avisos).
   Todo color sale de los tokens de theme.css. Targets de clic >= 44px de alto. */
:root { --label: #b3b3ab }   /* etiquetas y ayudas: 7.6:1 sobre #121213 */
input::placeholder, textarea::placeholder { color: #9a9a92; opacity: 1 }   /* 5.6:1 sobre el campo */
.empty { color: var(--label) }
[hidden] { display: none !important }
a { color: var(--accent) }

/* ---- tarjeta de acceso (login / registro / verificación / invitación) ---- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px }
.auth-card { width: min(440px, 100%); padding: 36px 34px 28px }
.auth-card.wide { width: min(600px, 100%) }
.auth-card .logo-xl { margin: 0 0 22px }
.auth-card h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px } .auth-card h1 .v-wordmark { font-size: 26px }
.auth-card .sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; line-height: 1.5 }
.auth-card .kicker { display: block; margin-bottom: 10px }
.foot { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; gap: 6px 14px; flex-wrap: wrap }
.foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; display: inline-flex; align-items: center; min-height: 44px }
.foot a:hover { color: var(--ink) }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px }

/* ---- formularios ---- */
.field { display: block; margin-top: 14px }
.field > span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin-bottom: 6px }
.field input, .field select, .field textarea { width: 100%; min-height: 44px }
.field select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat }
.field select option { background: var(--surface); color: var(--ink) }
select:focus { outline: 2px solid rgba(255, 106, 51, .45); outline-offset: 0 }
.field .hint { font-size: 12px; color: var(--label); margin-top: 5px }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px }
@media (max-width: 540px) { .row2 { grid-template-columns: 1fr } }
.group { margin-top: 22px }
.group .kicker { font-size: 10px; margin-bottom: 0 }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin-top: 12px; min-height: 44px; cursor: pointer; line-height: 1.45 }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; cursor: pointer }
.btn-primary { width: 100%; min-height: 46px; margin-top: 22px; font-size: 14px }
.btn-sec { width: 100%; min-height: 46px; margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-strong); border-radius: 10px;
  font: 600 13.5px/1 var(--font-body); text-decoration: none; cursor: pointer; transition: filter .15s }
.btn-sec:hover { filter: brightness(1.15); text-decoration: none }
.btn-sec svg { width: 18px; height: 18px; flex: none }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--ink-3); font-size: 12px }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border) }
.msg { font-size: 13px; margin-top: 12px; min-height: 18px; line-height: 1.45 }
.msg.err { color: var(--bad) } .msg.ok { color: var(--good) } .msg.warn { color: var(--warn) }
.links { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px }
.links a, a.link { color: var(--accent); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center }
.links a.muted { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px }
.alt { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); text-align: center } .alt a { color: var(--accent); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; margin-left: 4px }
.links a:hover, a.link:hover { text-decoration: underline }
.devlink { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(232, 176, 75, .08); border: 1px dashed rgba(232, 176, 75, .45);
  font-size: 12px; color: var(--warn); word-break: break-all; line-height: 1.5 }
.devlink a { color: var(--warn); font-weight: 600 }
.orglist { display: grid; gap: 8px; margin-top: 14px }
.orglist button { width: 100%; min-height: 52px; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--border-strong); font-size: 14px; padding: 10px 16px }
.orglist button small { color: var(--ink-3); font-weight: 500; font-size: 12px }
.orglist button:hover { border-color: var(--accent) }
.secret { font: 600 15px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .08em; color: var(--ink); background: #0f0f10;
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 14px; word-break: break-all; margin-top: 10px }
.state-ico { width: 54px; height: 54px; border-radius: 99px; display: grid; place-items: center; margin-bottom: 18px; font: 700 24px var(--font-display) }
.state-ico.ok { background: rgba(62, 207, 142, .14); color: var(--good) }
.state-ico.bad { background: rgba(240, 100, 122, .14); color: var(--bad) }
.state-ico.wait { background: rgba(255, 106, 51, .14); color: var(--accent) }

/* ---- páginas de la app ---- */
/* ⚠️ 12-sep-2026, reporte de Diego («lo abrí en la Mac y sale como versión móvil»): el tope de 1060 px dejaba
   624 px de vacío en una pantalla de 1920 —37 % de la superficie— y el producto se leía como una app de teléfono
   estirada. El ancho ahora acompaña a la pantalla, con un tope alto para que la línea de texto no se vuelva ilegible. */
main.page { width: 100%; max-width: 1560px; margin: 0 auto; padding: 26px clamp(18px, 2.2vw, 40px) 60px }
main.page.narrow { max-width: 1060px }                 /* lectura larga: reporte y detalle de llamada */
.hgroup { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 6px 0 20px; flex-wrap: wrap }
.hgroup h1 { font-size: 24px; font-weight: 700; letter-spacing: -.01em }
.hgroup p { font-size: 13px; color: var(--ink-3) }
.topbar .meta a.nav { color: var(--ink-2); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; font-weight: 500 }
.topbar .meta a.nav:hover { color: var(--ink) }
.topbar .meta a.nav.accent { color: var(--accent) }
.topbar .meta .who { color: var(--ink-2) }
.topbar .meta .orgname { color: var(--ink); font-weight: 600 }
.topbar select.orgsel { min-height: 40px; padding: 6px 30px 6px 12px; font-size: 12.5px; appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat }
.topbar select.orgsel option { background: var(--surface); color: var(--ink) }
@media (max-width: 720px) { .topbar { flex-wrap: wrap } .topbar .meta { flex-wrap: wrap; white-space: normal } }
.banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; margin: 0 0 18px; font-size: 13.5px; line-height: 1.45;
  background: rgba(232, 176, 75, .1); border: 1px solid rgba(232, 176, 75, .4); color: var(--ink) }
.banner .t { flex: 1; min-width: 220px }
.banner b { color: var(--warn) }
.banner.bad { background: rgba(240, 100, 122, .1); border-color: rgba(240, 100, 122, .4) }
.banner.bad b { color: var(--bad) }
.banner button, .banner .btn { min-height: 40px; white-space: nowrap }
.tbl-wrap { overflow-x: auto }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px }
.tbl th { text-align: left; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--label);
  padding: 10px 12px; border-bottom: 1px solid var(--border-strong); background: rgba(255, 255, 255, .04); white-space: nowrap }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--ink-2); min-height: 44px }
.tbl td.strong { color: var(--ink); font-weight: 600 }
.tbl tr:last-child td { border-bottom: 0 }
.tbl .num { text-align: right; white-space: nowrap }
.tbl .actions { display: flex; gap: 6px; flex-wrap: wrap }
.tbl button.mini { min-height: 36px; padding: 6px 12px; font-size: 12px }
.tbl select.mini { min-height: 36px; padding: 5px 10px; font-size: 12.5px }
.tbl select.mini option { background: var(--surface); color: var(--ink) }
.switch { position: relative; display: inline-block; width: 44px; height: 26px; vertical-align: middle; cursor: pointer }
.switch input { opacity: 0; width: 0; height: 0; position: absolute }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border-strong); transition: background .15s }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 99px; background: var(--ink-3); transition: transform .15s, background .15s }
.switch input:checked + i { background: rgba(255, 106, 51, .28); border-color: rgba(255, 106, 51, .55) }
.switch input:checked + i::after { transform: translateX(18px); background: var(--accent) }
.switch input:focus-visible + i { outline: 2px solid rgba(255, 106, 51, .45) }
.switch input:disabled + i { opacity: .45; cursor: default }
.meter { margin-top: 12px }
.meter .lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin-bottom: 5px }
.meter .lbl b { font-family: var(--font-display); font-weight: 600; color: var(--ink) }
.meter .lbl span { color: var(--ink-3); font-variant-numeric: tabular-nums }
.meter .bar { height: 8px; background: rgba(255, 255, 255, .14); border-radius: 99px; overflow: hidden }
.meter .bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .5s }
.meter .bar i.warn { background: var(--warn) } .meter .bar i.bad { background: var(--bad) }
.pill-ok { color: var(--good); font-weight: 600 } .pill-off { color: var(--ink-3) }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 12px }
.section-title h2 { font-size: 17px; font-weight: 600 }
.section-title .count { font-size: 12.5px; color: var(--ink-3) }
.panel { padding: 18px 20px }

/* ---- ver/ocultar contraseña (auth.js lo inyecta en todo input[type=password]) ---- */
.pw-wrap { position: relative } .pw-wrap input { padding-right: 52px } .pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); min-width: 44px; min-height: 44px; background: transparent; border: 0; color: var(--ink-2); font-size: 12px; font-weight: 600; cursor: pointer; border-radius: 8px; padding: 0 } .pw-eye:hover { color: var(--ink); background: rgba(255,255,255,.06) }
