/* Cuentas, plazas y medidor · 15-sep-2026 · comparte los tokens de la cabina del Chat */
.gate-shell{min-height:100dvh;display:flex;flex-direction:column;background:var(--chat-bg,#fff);color:var(--chat-ink,#152840)}
.gate-header{display:flex;align-items:center;justify-content:space-between;height:76px;padding:0 30px;gap:12px}.gate-header .row{display:flex;align-items:center;gap:8px}
.gate{flex:1;display:flex;align-items:center;justify-content:center;padding:24px 20px 48px}
.gate-card{width:100%;max-width:440px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:14px}
.gate-card h1{font-size:clamp(26px,4vw,34px);letter-spacing:-.03em;line-height:1.1;margin:8px 0 0}.gate-card>p{color:var(--chat-muted,#617188);font-size:15px;line-height:1.6;margin:0}
.gate-google{min-height:48px;width:100%;justify-content:center;gap:10px;font-size:15px}.gate-google.disabled{opacity:.55;pointer-events:none}
.gate-note{font-size:12px;color:var(--chat-muted,#617188);margin:0}.gate-seats{font-size:12px;color:var(--chat-muted,#617188);margin:6px 0 0}
.gate-legal{font-size:11px;line-height:1.5;color:var(--chat-muted,#617188);margin:18px 0 0}.gate-legal a{color:inherit}
.gate-error{background:#fbece8;color:#974f40;border-radius:10px;padding:10px 14px;font-size:13px;margin:0;width:100%}
.waitlist{width:100%;display:flex;flex-direction:column;gap:10px;text-align:left}.waitlist input[type=email]{min-height:46px;border-radius:12px;border:1px solid var(--chat-line,#e0e6ee);background:var(--chat-field,#fff);color:inherit;padding:0 14px;font-size:15px}.waitlist .consent{display:flex;gap:10px;align-items:flex-start;font-size:12px;color:var(--chat-muted,#617188)}.waitlist .consent input{margin-top:3px;width:18px;height:18px}.waitlist button{min-height:46px;justify-content:center}
.user-chip{display:flex;align-items:center;gap:8px;min-height:44px}.user-initial{width:32px;height:32px;border-radius:50%;background:var(--orange,#ed8135);color:#10233e;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}.user-name{font-size:13px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-logout{min-height:44px;padding:0 10px;background:transparent;border:0;color:var(--chat-muted,#617188);font-size:12px;cursor:pointer}.user-logout:hover{color:var(--chat-ink,#152840)}
.effort-segment{display:inline-flex;border:1px solid var(--chat-line,#e0e6ee);border-radius:12px;overflow:hidden;min-height:44px}.effort-segment button{min-height:44px;min-width:44px;padding:0 14px;border:0;background:transparent;color:var(--chat-muted,#617188);font-size:13px;cursor:pointer}.effort-segment button[aria-pressed=true]{background:var(--chat-hover,#edf2f8);color:var(--chat-ink,#152840);font-weight:600}
.usage-ring{position:relative;min-width:44px;min-height:44px;width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--chat-line,#e0e6ee);border-radius:12px;background:transparent;color:var(--chat-ink,#152840);cursor:pointer}.usage-ring.warn{color:#b9741f}.usage-ring.full{color:#b3473a}
.usage-anchor{position:relative}
.usage-popover{position:absolute;bottom:52px;left:0;width:min(320px,calc(100vw - 32px));background:var(--chat-field,#fff);border:1px solid var(--chat-line,#e0e6ee);border-radius:14px;padding:14px;box-shadow:0 18px 40px rgba(6,16,32,.25);z-index:20;text-align:left}.usage-popover .usage-row{margin-bottom:12px}.usage-popover .row.between{display:flex;justify-content:space-between;align-items:baseline;font-size:13px}.usage-popover strong{font-size:14px}.usage-popover small{display:block;font-size:11px;color:var(--chat-muted,#617188);margin-top:4px}.usage-popover p{font-size:11px;color:var(--chat-muted,#617188);margin:6px 0 0;line-height:1.5}
.usage-bar{height:6px;border-radius:6px;background:var(--chat-hover,#edf2f8);overflow:hidden;margin-top:6px}.usage-bar i{display:block;height:100%;background:var(--orange,#ed8135);border-radius:6px}.usage-row.warn .usage-bar i{background:#e0a33a}.usage-row.full .usage-bar i{background:#c8564a}
.limit-notice{background:#fff2dd;color:#885920;border-radius:10px;padding:10px 14px;font-size:13px;margin:0 0 12px}
html[data-theme=dark] .limit-notice{background:#3a2c14;color:#f1c98a}html[data-theme=dark] .gate-error{background:#3d1f1b;color:#f0b3a8}
.admin{max-width:1120px;width:100%;margin:0 auto;padding:12px 20px 60px}.admin h1{font-size:28px;letter-spacing:-.03em}.admin-token{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:16px 0}.admin-token input{min-height:44px;border-radius:10px;border:1px solid var(--chat-line,#e0e6ee);background:var(--chat-field,#fff);color:inherit;padding:0 12px;min-width:240px}
.admin-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0}.admin-tiles>div{border:1px solid var(--chat-line,#e0e6ee);border-radius:14px;padding:14px;background:var(--chat-field,#fff)}.admin-tiles span{font-size:11px;color:var(--chat-muted,#617188);display:block}.admin-tiles strong{font-size:22px;display:block;margin-top:6px;letter-spacing:-.02em}.admin-tiles .warn{border-color:#e0a33a}
.admin-actions{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 16px}.admin .table{overflow:auto;border:1px solid var(--chat-line,#e0e6ee);border-radius:14px}.admin table{border-collapse:collapse;width:100%;min-width:640px;font-size:13px}.admin th,.admin td{text-align:left;padding:10px 12px;border-bottom:1px solid var(--chat-line,#e0e6ee)}.admin tr.disabled td{opacity:.5}.admin .button.small{min-height:44px;padding:0 12px;font-size:12px}
@media(max-width:600px){.gate-header{height:64px;padding:0 14px}.user-name{display:none}.usage-popover{left:auto;right:0}}
