
:root{
  --bg:#06080d;--panel:#0e121b;--panel2:#121725;--line:rgba(255,255,255,.09);
  --text:#f7f8fb;--muted:#9097a7;--pink:#ed2aa6;--purple:#693cf1;--teal:#5be1cf;--green:#2be497;--red:#ff6266
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",Arial,sans-serif}
button,a,input,textarea{font:inherit}
body{background:radial-gradient(circle at 60% -10%,rgba(105,60,241,.12),transparent 34%),#06080d}
.app-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;padding:24px 18px 18px;border-right:1px solid var(--line);background:#070a10;display:flex;flex-direction:column}
.brand{display:flex;gap:11px;align-items:center;padding:0 6px 22px}.brand img{width:46px;height:46px;border-radius:13px}.brand strong,.brand span{display:block}.brand strong{font-size:15px}.brand span{margin-top:2px;color:var(--muted);font-size:11px}
nav{display:grid;gap:4px}nav a,nav button{display:flex;align-items:center;gap:11px;min-height:46px;padding:0 13px;border:0;border-radius:12px;background:none;color:#b7bcc8;text-decoration:none;text-align:left;font-weight:650;cursor:pointer}nav .active{background:linear-gradient(100deg,rgba(61,74,235,.9),rgba(105,60,241,.95),rgba(237,42,166,.95));color:#fff}
.sidebar-bottom{margin-top:auto;display:grid;gap:12px}.hosts{padding:13px;border:1px solid var(--line);border-radius:15px;background:#0c1018}.host-dots{display:flex;margin-bottom:10px}.host-dots span{display:grid;place-items:center;width:30px;height:30px;margin-right:-5px;border:2px solid #0c1018;border-radius:50%;background:#202634;font-size:10px;font-weight:800}.hosts strong,.hosts small{display:block}.hosts strong{font-size:11px}.hosts small{margin-top:3px;color:var(--muted);font-size:10px}.ready-chip{display:flex;gap:9px;align-items:center;padding:11px;border-radius:13px;background:#0c1118}.ready-chip i{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px rgba(43,228,151,.08)}.ready-chip b,.ready-chip small{display:block}.ready-chip b{font-size:10px}.ready-chip small{margin-top:2px;color:var(--muted);font-size:9px}.version{color:#6f7584;font-size:9px;text-transform:uppercase;letter-spacing:.08em}
.content{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:42px 0 70px}.page-top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.eyebrow{color:#a36bff;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.page-top h1{margin:8px 0 4px;font-size:43px;letter-spacing:.01em}.page-top p{margin:0;color:var(--muted)}.primary,.gradient{border:0;border-radius:12px;background:linear-gradient(100deg,#3d55ef,#ed2aa6);color:white;font-weight:760;cursor:pointer}.page-top .primary{min-height:46px;padding:0 18px}
.tabs{display:flex;gap:24px;margin:35px 0 14px;border-bottom:1px solid var(--line)}.tabs button{padding:0 0 12px;border:0;border-bottom:2px solid transparent;background:none;color:#9399a8;font-weight:680}.tabs button.active{border-color:var(--pink);color:#e6b5ff}
.guest-card{border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,#121526,#0b0e17);box-shadow:0 28px 90px rgba(0,0,0,.35);overflow:hidden}.guest-main{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:20px;align-items:center;padding:22px}.guest-avatar{display:grid;place-items:center;width:110px;height:110px;border-radius:18px;background:linear-gradient(145deg,#30205d,#161927);font-size:38px;font-weight:800}.guest-headline{display:flex;gap:12px;align-items:center}.guest-headline h2{margin:0;font-size:31px}.status{display:inline-flex;gap:6px;align-items:center;padding:7px 10px;border:1px solid var(--line);border-radius:999px;font-size:10px;font-weight:800;color:#a7adba}.status i{width:7px;height:7px;border-radius:50%;background:#777}.status.ready i,.status.waiting i,.status.admitted i{background:var(--green)}.status.recording i{background:var(--red)}.guest-copy p{margin:7px 0 12px;color:#c9ccd3}.guest-meta{display:flex;gap:12px;flex-wrap:wrap}.guest-meta span{padding:6px 8px;border-radius:8px;background:#181d28;color:#a7adba;font-size:10px}.guest-actions{text-align:center}.guest-actions .gradient{min-width:150px;min-height:44px;padding:0 15px}.guest-actions small{display:block;margin-top:7px;color:#767c8a}
.journey{display:flex;align-items:center;justify-content:center;gap:9px;padding:18px 16px;border-top:1px solid var(--line);background:#090c13}.journey-step{min-width:88px;text-align:center;color:#747b8a}.journey-step i,.journey-step b{display:block}.journey-step i{display:grid;place-items:center;width:43px;height:43px;margin:0 auto 8px;border:1px solid var(--line);border-radius:50%;background:#151a25;font-style:normal}.journey-step b{font-size:10px}.journey-step.active{color:white}.journey-step.active i{border-color:#c438ef;background:rgba(196,56,239,.13);box-shadow:0 0 25px rgba(196,56,239,.18)}.journey-step.done{color:#ac72ee}.journey>span{color:#424855}
.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}.quick-card{display:flex;gap:13px;align-items:center;min-height:88px;padding:15px;border:1px solid var(--line);border-radius:16px;background:#0e121b;color:white;text-decoration:none;text-align:left;cursor:pointer}.quick-card i{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#171c27;font-style:normal}.quick-card b,.quick-card small{display:block}.quick-card b{font-size:13px}.quick-card small{margin-top:4px;color:var(--muted);font-size:10px}
.experience{margin-top:34px;padding:24px 14px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.section-title{text-align:center;color:#a76aff;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.experience-row{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:22px}.experience-row>div{min-width:105px;text-align:center}.experience-row i{display:grid;place-items:center;width:49px;height:49px;margin:0 auto 9px;border-radius:50%;background:linear-gradient(145deg,#3b1c7d,#7a2cd4);font-style:normal}.experience-row b,.experience-row span{display:block}.experience-row b{font-size:11px}.experience-row span{margin-top:4px;color:var(--muted);font-size:9px}.experience-row em{color:#515665;font-style:normal}
.value-row{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;margin-top:24px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--line)}.value-row>div{display:flex;gap:11px;align-items:center;min-height:82px;padding:14px;background:#0c1018}.value-row i{font-style:normal;font-size:22px}.value-row b,.value-row small{display:block}.value-row b{font-size:11px}.value-row small{margin-top:4px;color:var(--muted);font-size:9px;line-height:1.4}
dialog{width:min(700px,calc(100% - 24px));padding:0;border:1px solid var(--line);border-radius:20px;background:#0d1119;color:white;box-shadow:0 40px 130px rgba(0,0,0,.65)}dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(14px)}.dialog-card{padding:22px}.dialog-head{display:flex;justify-content:space-between}.dialog-head h2{margin:7px 0 4px;font-size:26px}.dialog-head p{margin:0;color:var(--muted);font-size:11px}.icon-close{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:#171b24;color:white}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.form-grid label{display:grid;gap:6px}.form-grid span{color:#969cab;font-size:9px;font-weight:800;text-transform:uppercase}.form-grid input,.form-grid textarea{width:100%;padding:11px;border:1px solid var(--line);border-radius:11px;background:#080b11;color:white}.form-grid textarea{min-height:78px}.form-grid .full{grid-column:1/-1}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.dialog-actions button{min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#181d27;color:white}.dialog-actions .primary{border:0}
.toast{position:fixed;right:18px;bottom:18px;padding:11px 13px;border-radius:12px;background:white;color:#111;font-size:11px;font-weight:800;opacity:0;transform:translateY(8px);transition:.2s}.toast.show{opacity:1;transform:none}
@media(max-width:900px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;width:100%;height:auto;display:block}.sidebar nav{display:flex;overflow:auto}.sidebar-bottom{display:none}.content{width:min(100% - 24px,1120px);padding-top:24px}.guest-main{grid-template-columns:80px 1fr}.guest-avatar{width:80px;height:80px}.guest-actions{grid-column:1/-1}.journey{overflow:auto;justify-content:flex-start}.quick-grid,.value-row{grid-template-columns:1fr 1fr}.experience-row{overflow:auto;justify-content:flex-start}}
@media(max-width:560px){.page-top{flex-direction:column}.page-top h1{font-size:36px}.guest-main{grid-template-columns:1fr;text-align:center}.guest-avatar{margin:auto}.guest-headline{justify-content:center;flex-wrap:wrap}.guest-meta{justify-content:center}.quick-grid,.value-row,.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}}

.guest-actions{
  display:grid;
  gap:8px;
  justify-items:stretch;
}
.guest-actions .clear-guest{
  min-width:150px;
  min-height:38px;
  padding:0 14px;
  border:1px solid rgba(255,98,102,.22);
  border-radius:11px;
  background:rgba(255,98,102,.07);
  color:#ff9a9d;
  font-weight:740;
  cursor:pointer;
}
.guest-actions .clear-guest:hover:not(:disabled){
  background:rgba(255,98,102,.13);
}
.guest-actions .clear-guest:disabled{
  opacity:.35;
  cursor:not-allowed;
}

/* 4.5.4 Clear Guest reliability */
.guest-actions .clear-guest{
  opacity:1!important;
  cursor:pointer!important;
  color:#ff9a9d!important;
  border-color:rgba(255,98,102,.30)!important;
  background:rgba(255,98,102,.10)!important;
}
.guest-actions .clear-guest:hover{
  background:rgba(255,98,102,.18)!important;
}

/* 4.5.5 — Green Room live alert */
.green-room-alert{
  width:100%;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:14px;
  margin:0 0 14px;
  padding:14px 16px;
  border:1px solid rgba(43,228,151,.34);
  border-radius:16px;
  background:
    linear-gradient(110deg,rgba(43,228,151,.13),rgba(93,227,207,.08)),
    #0c1218;
  color:white;
  text-align:left;
  cursor:pointer;
  box-shadow:0 0 0 1px rgba(43,228,151,.04),0 16px 45px rgba(43,228,151,.08);
  animation:greenRoomGlow 1.4s ease-in-out infinite;
}
.green-room-alert[hidden]{display:none!important}
.green-room-beacon{
  position:relative;
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
}
.green-room-beacon i{
  position:absolute;
  width:13px;
  height:13px;
  border-radius:50%;
  background:#2be497;
}
.green-room-beacon i:nth-child(2){
  width:27px;height:27px;background:rgba(43,228,151,.12);
  animation:greenRoomPulse 1.2s ease-out infinite;
}
.green-room-beacon i:nth-child(3){
  width:42px;height:42px;background:rgba(43,228,151,.05);
  animation:greenRoomPulse 1.2s .18s ease-out infinite;
}
.green-room-alert-copy small,
.green-room-alert-copy strong,
.green-room-alert-copy em{display:block}
.green-room-alert-copy small{
  color:#6ff2bc;
  font-size:9px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.green-room-alert-copy strong{
  margin-top:3px;
  font-size:15px;
}
.green-room-alert-copy em{
  margin-top:3px;
  color:#98a4af;
  font-size:10px;
  font-style:normal;
}
.green-room-arrow{
  font-size:25px;
  color:#62ebb6;
}
.guest-control-card-link{
  position:relative;
}
.guest-control-card-link mark{
  margin-left:auto;
  padding:5px 7px;
  border-radius:999px;
  background:#2be497;
  color:#06110f;
  font-size:8px;
  font-weight:950;
  letter-spacing:.08em;
  animation:guestBadgeBlink 1s step-end infinite;
}
.guest-control-card-link mark[hidden]{display:none!important}
.guest-control-card-link.guest-waiting-now{
  border-color:rgba(43,228,151,.42);
  box-shadow:0 0 0 1px rgba(43,228,151,.06),0 0 30px rgba(43,228,151,.08);
}
@keyframes greenRoomPulse{
  0%{transform:scale(.55);opacity:.9}
  100%{transform:scale(1.15);opacity:0}
}
@keyframes greenRoomGlow{
  50%{border-color:rgba(43,228,151,.68);box-shadow:0 0 0 1px rgba(43,228,151,.08),0 0 32px rgba(43,228,151,.13)}
}
@keyframes guestBadgeBlink{50%{opacity:.45}}

/* =========================================================
   5.1 — Guest Codes
   ========================================================= */
.code-actions{
  min-width:230px;
  display:grid;
  gap:9px;
}
.guest-code-card{
  padding:12px 13px;
  border:1px solid rgba(112,61,242,.28);
  border-radius:14px;
  background:
    radial-gradient(circle at 75% 0,rgba(237,42,166,.10),transparent 40%),
    rgba(112,61,242,.07);
  text-align:center;
}
.guest-code-card small,.guest-code-card strong,.guest-code-card span{display:block}
.guest-code-card small{
  color:#a9afbd;
  font-size:8px;
  font-weight:900;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.guest-code-card strong{
  margin-top:5px;
  font-variant-numeric:tabular-nums;
  font-size:28px;
  letter-spacing:.12em;
}
.guest-code-card span{
  margin-top:4px;
  color:#858c9b;
  font-size:8px;
}
.guest-code-card.live{
  border-color:rgba(43,228,151,.34);
  box-shadow:0 0 0 1px rgba(43,228,151,.04);
}
.guest-code-card.live strong{color:#6af0b7}
.guest-code-card.revoked strong{color:#ff8588}
.code-button-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}
.code-button-grid button{
  min-height:36px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#171c26;
  color:white;
  font-size:9px;
  font-weight:760;
  cursor:pointer;
}
.code-button-grid button:disabled{opacity:.30;cursor:not-allowed}
.code-button-grid .gradient{
  border:0;
  background:linear-gradient(100deg,#3d55ef,#ed2aa6);
}
.code-button-grid .revoke-code{
  color:#ffd166;
  border-color:rgba(255,209,102,.24);
  background:rgba(255,209,102,.06);
}
.code-button-grid .clear-guest{
  grid-column:1/-1;
  color:#ff9a9d;
  border-color:rgba(255,98,102,.28);
  background:rgba(255,98,102,.08);
}
@media(max-width:900px){
  .code-actions{min-width:0;width:100%}
}
.remote-roster{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--card)}.remote-roster>p{margin:4px 0 14px;color:var(--muted);font-size:12px}.remote-roster-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px}.remote-roster-person{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.03);color:inherit;text-align:left;cursor:pointer}.remote-roster-person i{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:rgba(22,129,92,.15);font-style:normal;font-weight:900}.remote-roster-person b,.remote-roster-person small{display:block}.remote-roster-person small{margin-top:2px;color:var(--muted)}
