/* Ambitious Corp: carbón + oro. Pensado para la calle (sol) y para enseñar en el iPad. */
:root {
  --bg: #161618; --surface: #222225; --surface2: #2d2d31; --line: #3a3a40;
  --ink: #f2efe9; --muted: #a39f97; --gold: #c9a06a; --gold2: #e2c08f; --gold-ink: #1a1408;
  --s-nh: #7e8790; --s-ni: #e05a4f; --s-vl: #f0a93a; --s-ld: #3f97e8; --s-ct: #9a6cf0; --s-vt: #2fb872; --s-nt: #4a4f56;
  --display: "Cinzel", Georgia, serif;
  --ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --tabs-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 15px; line-height: 1.45; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-left)); background: radial-gradient(120% 80% at 50% 0%, #2a241b 0%, var(--bg) 60%); overflow-y: auto; height: 100%; }
.login-card { width: 100%; max-width: 380px; display: grid; gap: 14px; text-align: center; }
.login-logo { width: 84px; height: 84px; margin: 0 auto; border-radius: 22px; }
.login h1 { font-family: var(--display); font-size: 34px; margin: 0; letter-spacing: .02em; color: var(--gold2); }
.login-sub { margin: -8px 0 6px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.login form { display: grid; gap: 12px; text-align: left; }
.form-msg { min-height: 1.2em; margin: 0; color: var(--s-ni); font-size: 13px; }
.form-msg.ok { color: var(--s-vt); }
.demo-note { font-size: 12px; color: var(--s-vl); margin: 0; }

/* ---------- Campos y botones ---------- */
.field { display: grid; gap: 5px; min-width: 0; }
.field > span, .label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { width: 100%; background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; min-height: 46px; }
textarea { min-height: 80px; resize: vertical; }
input[type="date"], input[type="datetime-local"] { min-width: 0; }
.btn { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; min-height: 46px; background: var(--surface2); color: var(--ink); border: 1px solid var(--line); }
.btn.gold { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); border: 0; }
.btn.danger { background: transparent; color: var(--s-ni); border-color: var(--s-ni); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; min-width: 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--surface2); border-radius: 12px; padding: 4px; gap: 4px; border: 1px solid var(--line); }
.seg button { background: none; border: 0; border-radius: 9px; padding: 9px 6px; font-weight: 700; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Estructura ---------- */
#app { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.top { background: #1c1c1e; border-bottom: 1px solid var(--line); padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left)); display: grid; gap: 8px; z-index: 5; }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font-family: var(--display); font-size: 18px; color: var(--gold2); display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync { font-size: 11px; padding: 5px 10px; border-radius: 99px; background: var(--surface2); color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--s-nh); }
.sync[data-s="live"] i { background: var(--s-vt); } .sync[data-s="demo"] i { background: var(--s-vl); } .sync[data-s="err"] i { background: var(--s-ni); }
.today { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.today div { background: var(--surface); border-radius: 10px; padding: 5px 4px; text-align: center; min-width: 0; }
.today b { display: block; font-family: var(--mono); font-size: 17px; line-height: 1.15; }
.today span { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
main { position: relative; min-height: 0; }
.view { position: absolute; inset: 0 0 calc(var(--tabs-h) + env(safe-area-inset-bottom)) 0; }
.view.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.wrap { max-width: 860px; margin: 0 auto; padding: 16px max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left)); display: grid; gap: 16px; }
h2 { font-family: var(--display); font-size: 20px; margin: 0; color: var(--gold2); letter-spacing: .01em; }
h3 { margin: 0; font-size: 15px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; min-width: 0; }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.empty { border: 2px dashed var(--line); border-radius: 14px; padding: 22px 16px; text-align: center; color: var(--muted); display: grid; gap: 6px; }
.empty strong { color: var(--ink); font-size: 16px; }

/* ---------- Tabs ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: #1c1c1e; border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); }

/* ---------- Mapa ---------- */
#map { position: absolute; inset: 0; background: #d9d4cc; }
.leaflet-container { font-family: var(--ui); }
.mtool { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: rgba(28,28,30,.92); color: var(--ink); display: grid; place-items: center; }
.draw-bar { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 600; background: rgba(28,28,30,.96); border: 1px solid var(--gold); border-radius: 16px; padding: 12px; display: grid; gap: 10px; font-size: 13px; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #3f97e8; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(63,151,232,.25); }
.terr-label { background: rgba(28,28,30,.85); color: var(--gold2); border: 1px solid var(--gold); border-radius: 8px; padding: 2px 8px; font-weight: 700; font-size: 12px; white-space: nowrap; }

/* ---------- Hoja (sheet) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); padding: 18px max(16px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); display: grid; gap: 14px; }
.sheet header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sheet header h3 { font-size: 19px; line-height: 1.2; overflow-wrap: anywhere; }
.x { background: var(--surface2); border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 22px; flex: none; }
.sgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hist { display: grid; gap: 6px; font-size: 13px; }
.hist div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.pill { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 99px; color: #fff; background: var(--c); white-space: nowrap; }

/* ---------- Leads ---------- */
.list { display: grid; gap: 8px; }
.lead > i { align-self: stretch; background: var(--c); }
.lead .who { min-width: 0; }
.lead .who strong { display: block; font-size: 15.5px; overflow-wrap: anywhere; }
.lead .who small { color: var(--muted); display: block; overflow-wrap: anywhere; }
.lead .when { text-align: right; font-size: 12px; color: var(--muted); display: grid; gap: 4px; justify-items: end; }
.lead .when b { color: var(--ink); font-family: var(--mono); font-size: 12.5px; }
.late { color: var(--s-ni) !important; }

/* ---------- Calculadora ---------- */
.calc-hero { background: linear-gradient(160deg, #2b2418 0%, #1d1a15 55%, #19191b 100%); border: 1px solid #5a4a33; border-radius: 20px; padding: 20px; display: grid; gap: 4px; text-align: center; }
.calc-hero .label { color: var(--gold); }
.calc-hero .big { white-space: nowrap; font-family: var(--mono); font-size: clamp(40px, 11vw, 64px); font-weight: 700; color: var(--gold2); line-height: 1; letter-spacing: -.02em; }
.calc-hero .big small { font-size: .32em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.calc-hero .sub { color: var(--ink); font-size: 14px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kv .strong { color: var(--ink); font-weight: 700; }
.kv .tot { border-top: 1px solid var(--line); padding-top: 8px; }
.terms { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 8px; }
@media (max-width: 420px) { .terms { grid-template-columns: repeat(2, 1fr); } }
.term { background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; display: grid; gap: 2px; }
.term[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.term b { font-family: var(--mono); font-size: 18px; }
.term span { font-size: 11px; color: var(--muted); }
.alert { border-radius: 12px; padding: 10px 12px; font-size: 13px; background: rgba(240,169,58,.12); border: 1px solid rgba(240,169,58,.45); color: #f6d9a9; }
.alert.bad { background: rgba(224,90,79,.12); border-color: rgba(224,90,79,.5); color: #f3b8b1; }
.alert.ok { background: rgba(47,184,114,.1); border-color: rgba(47,184,114,.45); color: #b9ecd0; }
.extras { display: grid; gap: 8px; }
.extra { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--surface2); border-radius: 12px; padding: 10px 12px; }
.extra input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--gold); }
.extra small { color: var(--muted); display: block; }
.extra .who { display: none; }
.extra.on .who { display: flex; grid-column: 2 / -1; gap: 6px; }
.extra .who .chip { padding: 5px 10px; font-size: 12px; }
.mine-panel { border-color: #5a4a33; background: #1f1c17; }
.out { font-family: var(--mono); font-size: 13px; white-space: pre-wrap; background: var(--surface2); border-radius: 12px; padding: 12px; min-height: 0; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 8px 6px; border-bottom: 1px solid var(--line); font-weight: 700; }
th:first-child, td:first-child { text-align: left; }
td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
td:first-child { font-family: var(--ui); font-weight: 600; }
tr.me td { background: rgba(201,160,106,.1); }
.rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface2); font-family: var(--mono); font-size: 11px; margin-right: 8px; }
tbody tr:first-child .rank { background: var(--gold); color: var(--gold-ink); }
.fbar { display: grid; grid-template-columns: 92px 1fr 46px; gap: 10px; align-items: center; font-size: 13px; }
.fbar div { height: 14px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.fbar div i { display: block; height: 100%; background: var(--c); }
.terr { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; background: var(--surface2); border-radius: 12px; padding: 10px 12px; }
.terr i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 700; z-index: 2000; max-width: calc(100% - 32px); text-align: center; }

@media (min-width: 900px) {
  .calc-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: start; }
  .calc-grid > div { display: grid; gap: 16px; }
}
@media (max-width: 380px) { .sgrid { grid-template-columns: repeat(3, 1fr); } .today span { font-size: 8.5px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

#downBlock { gap: 8px; }
#downBlock .chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

/* ================= v2: estatus SalesRabbit, lazo, rutas ================= */
.sbadge { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: #fff; border: 2.5px solid var(--c); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pin { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--c); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.pin.mine { box-shadow: 0 0 0 2.5px var(--gold2), 0 2px 6px rgba(0,0,0,.5); }
.pin.sel { transform: scale(1.18); }
.me-dot { width: 18px; height: 18px; }

.map-tools { position: absolute; top: 12px; right: max(12px, env(safe-area-inset-right)); z-index: 500; display: grid; gap: 8px; }
.map-left { position: absolute; top: 12px; left: max(12px, env(safe-area-inset-left)); z-index: 500; display: grid; gap: 8px; justify-items: start; }
.mtool.on { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.map-chip { background: rgba(28,28,30,.92); color: var(--ink); }
.map-chip[aria-pressed="true"] { background: #7bc043; border-color: #7bc043; color: #10200a; }
.fab { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 500; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 14px 22px; font-weight: 800; font-size: 15px; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: var(--gold-ink); box-shadow: 0 8px 24px rgba(0,0,0,.45); white-space: nowrap; }

.search-box { position: absolute; top: 12px; left: calc(max(12px, env(safe-area-inset-left)) + 56px); right: calc(max(12px, env(safe-area-inset-right)) + 56px); z-index: 600; background: rgba(28,28,30,.97); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; gap: 8px; max-height: 60%; overflow-y: auto; }
.search-res { display: grid; gap: 4px; }
.search-item { text-align: left; background: var(--surface2); border: 0; border-radius: 10px; padding: 10px 12px; font-size: 13px; }

.legend { position: absolute; top: 12px; right: calc(max(12px, env(safe-area-inset-right)) + 56px); z-index: 600; width: min(300px, calc(100% - 92px)); max-height: calc(100% - 100px); overflow-y: auto; background: rgba(28,28,30,.97); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: grid; gap: 6px; }
.legend-head { display: grid; gap: 2px; margin-bottom: 4px; }
.lg-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: none; border: 0; border-radius: 10px; padding: 5px 6px; text-align: left; font-size: 14px; }
.lg-row[aria-pressed="false"] { opacity: .38; }
.lg-row b { color: var(--muted); }

.lasso-layer { position: absolute; inset: 0; z-index: 550; cursor: crosshair; touch-action: none; background: rgba(226,192,143,.05); }
.lasso-hint { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 560; background: rgba(28,28,30,.96); border: 1px solid var(--gold); border-radius: 99px; padding: 6px 6px 6px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lasso-hint .btn { min-height: 36px; padding: 6px 12px; }

.map-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 700; background: var(--bg); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 14px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left)); display: grid; gap: 10px; max-height: 62%; overflow-y: auto; box-shadow: 0 -10px 30px rgba(0,0,0,.4); }
.mp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mp-head h3 { font-size: 18px; }
.lasso-counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px 4px; }
.lc { display: grid; justify-items: center; gap: 3px; background: none; border: 0; padding: 4px 2px; border-radius: 12px; }
.lc b { font-size: 15px; line-height: 1; }
.lc span { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.15; }
.lc[aria-pressed="false"] { opacity: .35; }
.map-panel .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.map-panel .btn svg { width: 18px; height: 18px; }
.route-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.route-list li { display: grid; grid-template-columns: 24px auto 1fr auto; gap: 10px; align-items: center; background: var(--surface); border-radius: 12px; padding: 8px 10px; }
.rn { font-family: var(--mono); font-weight: 700; color: var(--gold2); text-align: center; }
.rl-main { background: none; border: 0; text-align: left; padding: 0; min-width: 0; }
.rl-main b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.rl-main small { color: var(--muted); }
.route-list .chip { text-decoration: none; }
.route-n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font: 800 11px var(--mono); box-shadow: 0 1px 4px rgba(0,0,0,.5); }

.sgrid { grid-template-columns: repeat(3, 1fr); }
.sbtn { border: 0; border-radius: 12px; padding: 10px 4px; font-size: 12px; font-weight: 800; line-height: 1.15; min-height: 64px; display: grid; justify-items: center; align-content: center; gap: 5px; background: var(--surface2); color: var(--ink); box-shadow: inset 0 -3px 0 var(--c); }
.sbtn svg { background: #fff; border-radius: 50%; padding: 3px; width: 28px; height: 28px; box-sizing: border-box; }
.sbtn[aria-pressed="true"] { background: var(--c); color: #fff; box-shadow: 0 0 0 2px #fff inset; }

.lead { display: grid; grid-template-columns: 6px auto 1fr auto; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 0; overflow: hidden; width: 100%; }
.lead .pill { background: var(--c); }

.tabs a, .tabs button { background: none; border: 0; border-radius: 12px; display: grid; justify-items: center; align-content: center; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs button[aria-current="page"] { color: var(--gold2); background: rgba(201,160,106,.12); }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; text-align: center; }
@media (max-width: 380px) { .sgrid { grid-template-columns: repeat(3, 1fr); } }

.link-btn { background: none; border: 0; color: var(--gold2); font-weight: 600; font-size: 13px; padding: 4px; justify-self: center; text-decoration: underline; text-underline-offset: 3px; }
.lasso-layer { background: rgba(226,192,143,.10); box-shadow: inset 0 0 0 3px rgba(226,192,143,.55); -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lasso-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lasso-svg polyline { fill: rgba(226,192,143,.12); stroke: #e2c08f; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; }
/* Botón de guardar siempre visible al fondo de la hoja de la casa */
.save-bar { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); z-index: 2; background: var(--bg); margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(0,0,0,.35); order: 99; }
/* Compañeros en vivo */
.share-chip[aria-pressed="true"] { background: #20b2aa; border-color: #20b2aa; color: #04201f; }
.mate { position: relative; width: 34px; height: 34px; }
.mate-dot { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #20b2aa; color: #04201f; font: 800 12px var(--ui); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(32,178,170,.25), 0 2px 6px rgba(0,0,0,.45); }
.mate-name { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(28,28,30,.9); color: #fff; font: 700 11px var(--ui); padding: 2px 7px; border-radius: 99px; }
/* ---------- v3: aprobación, sin señal, un toque, contacto ---------- */
.pend-text { color: var(--ink); line-height: 1.55; margin: 0; }
.sync[data-s="off"] i, .sync[data-s="offq"] i { background: var(--s-ni); }
.sync[data-s="queue"] i { background: var(--s-vl); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.tabs button { position: relative; }
.tab-badge { position: absolute; top: 4px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--s-ni); color: #fff; font: 800 11px/18px var(--ui); text-align: center; }
.sbtn { position: relative; }
.quick-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold2); vertical-align: middle; }
.sbtn .quick-dot { position: absolute; top: 7px; right: 8px; }
.quick-note { margin-top: -6px; }
.contact-row:empty { display: none; }
.contact-row .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.contact-row .btn svg { width: 18px; height: 18px; }
.btn.call { background: #1f7a4d; border-color: #1f7a4d; color: #fff; }
.btn.wa { background: #25d366; border-color: #25d366; color: #062b14; }
.member { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--surface2); border-radius: 12px; padding: 10px 12px; }
.member .btn { min-height: 40px; padding: 8px 14px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 13px; }
.req-panel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
@media (prefers-reduced-motion: reduce) { .sync[data-s="queue"] i { animation: none; } }
