/* Modo conectado de Army Gym; comparte los tokens del prototipo. */
#app-root { height: 100%; min-height: 0; }
.live-app, .live-auth, .live-loading { color: var(--ink); background: var(--phone-screen-bg); font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
.live-app { height: 100%; min-height: 0; }
.live-brand { gap: 8px; min-width: 0; }
.live-mark { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-family: 'Avenir Next', 'Trebuchet MS', sans-serif; font-size: 23px; font-weight: 900; font-style: italic; line-height: 1; }
.live-brand-name { font-family: 'Avenir Next', 'Trebuchet MS', sans-serif; font-size: 18px; font-weight: 900; letter-spacing: .04em; white-space: nowrap; }
.live-eyebrow, .live-kicker { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.live-auth { --od-gap: 0; min-height: 100%; padding: 24px 20px 32px; }
.live-auth-intro { margin: 56px 0 24px; }
.live-auth-intro h1, .live-greeting h1 { margin: 8px 0; font-family: 'Avenir Next', 'Trebuchet MS', sans-serif; font-size: clamp(28px, 8vw, 34px); line-height: 1.15; letter-spacing: -.04em; }
.live-auth-intro p:last-child, .live-greeting p:last-child { margin: 0; color: var(--muted); }
.live-form { display: grid; gap: 16px; margin-top: 20px; }
.live-field { display: grid; gap: 6px; font-weight: 700; }
.live-field > span, .live-field-error { display: block; }
.live-field input { min-height: 48px; font-size: 16px; }
.live-field-error { min-height: 0; color: #ffb9b9; font-size: 13px; font-weight: 500; }
.live-field-error:empty { display: none; }
.live-field input[aria-invalid='true'] { border-color: #ffb9b9; }
.live-primary, .live-secondary, .live-text-button { min-height: 48px; border-radius: 12px; font: inherit; font-weight: 800; cursor: pointer; }
.live-primary { width: 100%; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.live-primary:disabled { opacity: .55; cursor: wait; }
.live-secondary { width: 100%; padding: 10px 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); }
.live-text-button { align-self: flex-start; margin-top: 12px; padding: 8px 0; border: 0; background: transparent; color: var(--accent); text-align: left; }
.live-fineprint { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.live-alert { margin: 12px 0; padding: 12px 14px; border: 1px solid #66764d; border-radius: 12px; background: #27351e; color: #e3f4c8; }
.live-alert-error { border-color: #9a5656; background: #402729; color: #ffe3e3; }
.live-alert button { min-height: 44px; margin-left: 8px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.live-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.live-connection { color: var(--success); font-size: 12px; font-weight: 700; white-space: nowrap; }
.live-scroll { padding: 20px 20px 32px; }
.live-stack { display: grid; gap: 16px; }
.live-greeting { margin-bottom: 8px; }
.live-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.live-card h2 { margin: 0 0 8px; font-family: 'Avenir Next', 'Trebuchet MS', sans-serif; font-size: 21px; line-height: 1.25; }
.live-card p { margin: 8px 0 0; color: var(--muted); }
.live-membership { border-color: #706b34; background: #292b21; }
.live-card-top, .live-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-card-top { margin-bottom: 16px; }
.live-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border: 1px solid #8d8646; border-radius: 999px; color: #ffe680; font-size: 13px; font-weight: 800; white-space: nowrap; }
.live-pill-active { border-color: #3f735b; background: #233b30; color: var(--success); }
.live-stat { display: grid; gap: 0; margin: 18px 0; }
.live-stat strong { font-family: 'Avenir Next', 'Trebuchet MS', sans-serif; font-size: clamp(42px, 13vw, 58px); line-height: 1; color: var(--accent); }
.live-stat span { display: block; color: var(--muted); }
.live-detail { padding-top: 12px; border-top: 1px solid #62633b; }
.live-detail span { color: var(--muted); }
.live-detail strong { text-align: right; }
.live-count { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.live-count strong { font-family: 'Avenir Next', 'Trebuchet MS', sans-serif; font-size: 38px; line-height: 1.1; color: var(--accent); }
.live-count span { color: var(--muted); }
.live-member { --od-gap: 12px; min-height: 64px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.live-member:last-child { border-bottom: 0; }
.live-search { display: grid; gap: 10px; }
.live-search .live-text-button { margin-top: 0; }
.live-member-item { border-bottom: 1px solid var(--line); }
.live-member-item:last-child { border-bottom: 0; }
.live-member-item .live-member { width: 100%; border: 0; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.live-member-email { overflow-wrap: anywhere; }
.live-chevron { display: block; flex: none; color: var(--accent); font-size: 22px; line-height: 1; }
.live-member-detail { padding: 0 0 18px 54px; }
.live-member-detail p { margin: 0; overflow-wrap: anywhere; }
.live-member-detail p strong { color: var(--ink); }
.live-member-detail .live-form { margin-top: 16px; }
.live-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: #48492e; color: var(--accent); font-weight: 800; }
.live-member .od-field { --od-gap: 2px; }
.live-member .od-field span { color: var(--muted); font-size: 14px; }
.live-empty { padding: 20px 4px; }
.live-empty p { margin-bottom: 0; }
.live-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; padding: 8px 16px; border-top: 1px solid var(--line); background: #1e2025; }
.live-nav button { min-height: 52px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.live-nav button[aria-current='page'] { background: #363625; color: var(--accent); }
.live-loading { display: grid; align-content: center; justify-items: center; gap: 16px; min-height: 100%; padding: 24px; text-align: center; }
.live-loading p { margin: 0; color: var(--muted); }
.live-auth button:focus-visible, .live-app button:focus-visible, .live-auth input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) { .live-primary:hover { background: #fff078; } .live-secondary:hover, .live-nav button:hover, .live-member-item .live-member:hover { background: #41444c; } .live-text-button:hover { color: #fff078; } }
@media (max-width: 380px) { .live-header, .live-scroll { padding-left: 16px; padding-right: 16px; } .live-auth { padding-left: 16px; padding-right: 16px; } .live-brand-name { font-size: 16px; } .live-member-detail { padding-left: 0; } }
@media (prefers-reduced-motion: reduce) { .live-app *, .live-auth * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
