/* Pantallas de acceso y administración — Optimice Multiverse (producción) */
#login-screen { display: none !important; }
#ia-auth { position: fixed; inset: 0; z-index: 200; background: #1B1B1D; display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif; }
.ia-card { width: 100%; max-width: 430px; background: #fff; color: #1E2227; border-radius: 10px; padding: 30px 30px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.4); margin: auto; }
.ia-brand { display: flex; align-items: center; justify-content: center; gap: 10px; background: #1B1B1D; margin: -30px -30px 22px; padding: 18px; border-radius: 10px 10px 0 0; }
.ia-brand { flex-direction: column; gap: 6px; } .ia-brand img { height: 52px; width: auto; display: block; }
.ia-word { font-family: 'Space Grotesk', 'IBM Plex Sans', sans-serif; font-weight: 700; font-size: 20px; color: #15F30A; letter-spacing: .04em; }
.ia-word span, .ia-word i { color: #fff; } .ia-word i { font-style: normal; font-weight: 500; margin-left: .22em; }
.ia-word b { font-size: 12px; background: #15F30A; color: #0B1A0A; padding: 2px 6px; border-radius: 4px; vertical-align: 4px; letter-spacing: .05em; }
.ia-card h1 { font-size: 22px; margin: 0 0 6px; }
.ia-sub { color: #5D6571; font-size: 13.5px; margin: 0 0 16px; line-height: 1.5; }
.ia-card label, .ia-l { display: block; font-size: 12.5px; color: #5D6571; margin-bottom: 12px; }
.ia-card input, .ia-l input { display: block; width: 100%; margin-top: 4px; border: 1px solid #DADEE3; border-radius: 6px; padding: 10px 12px; font-size: 15px; color: #1E2227; background: #fff; box-sizing: border-box; }
.ia-card input:focus, .ia-l input:focus { outline: 2px solid #15F30A; outline-offset: 0; border-color: #15F30A; }
.ia-code { font-family: 'IBM Plex Mono', monospace; font-size: 24px !important; letter-spacing: .35em; text-align: center; }
.ia-btn { display: block; width: 100%; background: #15F30A; color: #0B1A0A; border: none; border-radius: 6px; padding: 12px; font-size: 15px; font-weight: 600; cursor: pointer; margin-top: 4px; }
.ia-btn:hover { background: #11C908; }
.ia-btn:disabled { opacity: .55; cursor: wait; }
.ia-btn.sm { display: inline-block; width: auto; padding: 8px 16px; font-size: 13.5px; margin: 0; }
.ia-btn.sec { background: #fff; color: #1E2227; border: 1px solid #DADEE3; }
.ia-links { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ia-link { background: none; border: none; color: #0E7A07; font-size: 13px; padding: 0; cursor: pointer; text-decoration: underline; }
.ia-msg { min-height: 18px; font-size: 13px; color: #9E2424; margin: 2px 0 8px; }
.ia-msg.ok { color: #1F6B35; }
.ia-foot { margin-top: 18px; border-top: 1px solid #ECEEF1; padding-top: 12px; font-size: 11.5px; color: #8B939E; text-align: center; }
.ia-help { font-size: 12.5px; color: #5D6571; margin-top: 12px; }
.ia-load { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 30px 0; color: #5D6571; font-size: 14px; }
.ia-spin { width: 22px; height: 22px; border: 3px solid #DCFCD9; border-top-color: #15F30A; border-radius: 50%; animation: iaspin .8s linear infinite; }
@keyframes iaspin { to { transform: rotate(360deg); } }
.ia-steps { font-size: 13.5px; padding-left: 20px; margin: 0 0 12px; line-height: 1.55; }
.ia-qr { display: flex; justify-content: center; margin: 4px 0 10px; }
.ia-qr img { width: 190px; height: 190px; border: 1px solid #ECEEF1; border-radius: 8px; padding: 6px; background: #fff; }
.ia-det { font-size: 12.5px; color: #5D6571; margin-bottom: 12px; }
.ia-det code { display: block; margin-top: 6px; word-break: break-all; font-size: 13px; background: #F3F4F6; padding: 8px; border-radius: 4px; color: #1E2227; }
/* Indicador de guardado */
#ia-status { position: fixed; left: 14px; bottom: 14px; z-index: 90; font-family: 'IBM Plex Sans', sans-serif; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 14px; background: #D3F0DB; color: #1F6B35; box-shadow: 0 2px 8px rgba(0,0,0,.15); pointer-events: auto; }
#ia-status.ia-st-saving { background: #FDEAAE; color: #6E5000; }
#ia-status.ia-st-error { background: #FADADA; color: #9E2424; }
/* Botones de cuenta en el lanzador */
.ia-acc { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.ia-acc .ln-switch { margin-top: 0; }
/* Panel de administración */
#ia-admin { position: fixed; inset: 0; z-index: 150; background: rgba(13,11,16,.6); display: none; align-items: flex-start; justify-content: center; padding: 30px 16px; overflow-y: auto; font-family: 'IBM Plex Sans', sans-serif; }
.ia-adm-box { width: 100%; max-width: 1100px; background: #fff; color: #1E2227; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ia-adm-box.sm { max-width: 460px; }
.ia-adm-head { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #DADEE3; flex-wrap: wrap; }
.ia-adm-head h2 { font-size: 19px; margin: 0; flex: 1; }
.ia-tabs { display: flex; gap: 4px; }
.ia-tabs button { background: #F3F4F6; border: 1px solid #DADEE3; border-radius: 16px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.ia-tabs button.on { background: #1B1B1D; color: #5CFF55; border-color: #1B1B1D; font-weight: 600; }
.ia-x { background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: #5D6571; }
.ia-adm-body { padding: 18px 20px 22px; }
.ia-sec { margin-bottom: 22px; }
.ia-sec h3 { font-size: 15px; margin: 0 0 10px; }
.ia-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.ia-grid label { font-size: 12.5px; color: #5D6571; }
.ia-grid input[type=text], .ia-grid input[type=email], .ia-grid select { display: block; width: 100%; margin-top: 4px; border: 1px solid #DADEE3; border-radius: 6px; padding: 8px 10px; font-size: 14px; box-sizing: border-box; background: #fff; color: #1E2227; }
.ia-chk { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; color: #1E2227 !important; font-size: 13.5px !important; }
.ia-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.ia-row .ia-msg { margin: 0; }
.ia-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.ia-t th { text-align: left; font-size: 12px; color: #5D6571; padding: 8px; border-bottom: 1px solid #DADEE3; background: #F3F4F6; }
.ia-t td { padding: 6px 8px; border-bottom: 1px solid #ECEEF1; vertical-align: middle; }
.ia-t input[type=text], .ia-t select { width: 100%; border: 1px solid #DADEE3; border-radius: 4px; padding: 5px 7px; font-size: 13px; box-sizing: border-box; background: #fff; color: #1E2227; }
.ia-act { white-space: nowrap; }
.ia-act .ia-msg { display: inline; margin-left: 6px; font-size: 12px; }
.ia-mini { background: #fff; border: 1px solid #DADEE3; border-radius: 4px; padding: 4px 9px; font-size: 12px; cursor: pointer; margin-right: 4px; }
.ia-mini:hover { border-color: #15F30A; }
.ia-mini.bad { color: #9E2424; }
.ia-muted { color: #5D6571; }
.ia-ok-box { margin-top: 12px; border: 1px solid #3E9B57; background: #D3F0DB; border-radius: 6px; padding: 12px 14px; font-size: 13.5px; }
.ia-ok-box pre { white-space: pre-wrap; background: #fff; border: 1px solid #DADEE3; border-radius: 4px; padding: 10px; font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; margin: 8px 0; }
@media (max-width: 860px) { .ia-grid { grid-template-columns: 1fr 1fr; } .ia-t { display: block; overflow-x: auto; } }
@media (max-width: 520px) { .ia-grid { grid-template-columns: 1fr; } .ia-card { padding: 24px 18px 16px; } .ia-brand { margin: -24px -18px 18px; } }
#ia-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 210; display: none; align-items: flex-start; gap: 12px; max-width: min(620px, calc(100% - 32px)); background: #9E2424; color: #fff; padding: 12px 14px 12px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-family: 'IBM Plex Sans', sans-serif; font-size: 13.5px; line-height: 1.45; }
#ia-toast button { background: none; border: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.ia-btn.bad { background: #B42318; color: #fff; border: 1px solid #B42318; }
.ia-mini.bad { color: #B42318; }
.ia-t td.hs-old { background: #FDECEA; white-space: pre-wrap; word-break: break-word; }
.ia-t td.hs-new { background: #E7F5EC; white-space: pre-wrap; word-break: break-word; }

.ia-legal { text-align: center; font-size: 11.5px; color: #8B939E; margin-top: 8px; line-height: 1.5; } .ia-legal a { color: #0E7A07; }
