:root {
  color-scheme: dark;
  --bg: #06111b;
  --panel: rgba(12, 28, 43, 0.88);
  --panel-strong: #10283c;
  --line: rgba(155, 195, 220, 0.16);
  --text: #f4f8fb;
  --muted: #9ab0bf;
  --blue: #2e9ae6;
  --green: #30b76f;
  --orange: #f7aa4a;
  --red: #ef6b6b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 50% -20%, #143d5a 0, var(--bg) 45%); }
button, input { font: inherit; }
button { cursor: pointer; }
.ambient { position: fixed; width: 360px; height: 360px; border-radius: 50%; filter: blur(100px); opacity: .17; pointer-events: none; }
.ambient-one { top: 12%; left: -160px; background: var(--blue); }
.ambient-two { right: -160px; bottom: 4%; background: var(--green); }
.topbar { height: 78px; padding: 0 max(22px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(4, 13, 22, .76); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: 47px; height: 47px; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 5px; letter-spacing: .18em; text-transform: uppercase; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.badge { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); padding: 7px 11px; border-radius: 999px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.badge.live { color: #bdf8d4; border-color: rgba(48,183,111,.4); background: rgba(48,183,111,.1); }
.badge.lab { color: #ffe0aa; border-color: rgba(247,170,74,.4); background: rgba(247,170,74,.1); }
.icon-button { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.04); font-size: 22px; }
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 max(56px, env(safe-area-inset-bottom)); position: relative; z-index: 1; }
.loading-card, .hero, .panel { border: 1px solid var(--line); background: var(--panel); box-shadow: 0 24px 70px rgba(0,0,0,.22); backdrop-filter: blur(16px); }
.loading-card { max-width: 560px; margin: 12vh auto; border-radius: 28px; padding: 48px; text-align: center; }
.spinner { width: 44px; height: 44px; margin: 0 auto 22px; border: 3px solid rgba(255,255,255,.12); border-top-color: var(--blue); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 7vw, 64px); letter-spacing: -.045em; line-height: .98; }
h2 { font-size: 25px; letter-spacing: -.025em; }
p { color: var(--muted); line-height: 1.55; }
.hero { border-radius: 30px; padding: clamp(28px, 6vw, 60px); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -140px; top: -170px; box-shadow: 0 0 0 44px rgba(255,255,255,.025), 0 0 0 88px rgba(255,255,255,.018); }
.eyebrow { color: #87cdf7; text-transform: uppercase; font-size: 12px; letter-spacing: .18em; font-weight: 750; }
.hero p { max-width: 610px; font-size: 17px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { min-height: 52px; border-radius: 15px; padding: 0 20px; border: 1px solid transparent; color: white; font-weight: 750; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.button.primary { background: linear-gradient(135deg, #278ed8, #1970ad); box-shadow: 0 10px 28px rgba(26,127,193,.28); }
.button.green { background: linear-gradient(135deg, #32b975, #208c56); box-shadow: 0 10px 28px rgba(33,151,91,.25); }
.button.secondary { background: rgba(255,255,255,.05); border-color: var(--line); }
.button.danger { color: #ffd2d2; background: rgba(239,107,107,.1); border-color: rgba(239,107,107,.3); }
.button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.grid { margin-top: 22px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.panel { border-radius: 24px; padding: 25px; }
.panel-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin-bottom: 5px; }
.panel-head p { font-size: 14px; margin-bottom: 0; }
.member-list { display: grid; gap: 10px; }
.member { min-height: 70px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 17px; padding: 11px 14px; }
.member.selectable { cursor: pointer; transition: border-color .15s, background .15s; }
.member.selectable:has(input:checked) { border-color: rgba(46,154,230,.62); background: rgba(46,154,230,.1); }
.member input { width: 21px; height: 21px; accent-color: var(--blue); }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(145deg, rgba(46,154,230,.3), rgba(48,183,111,.24)); border: 1px solid rgba(116,204,255,.2); }
.member-copy { min-width: 0; flex: 1; }
.member-copy strong { display: block; font-size: 16px; }
.member-copy small { display: block; color: var(--muted); margin-top: 4px; }
.status { font-size: 12px; border-radius: 999px; padding: 6px 9px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.status.joined_phone, .status.joined_web { color: #baf5d1; background: rgba(48,183,111,.13); }
.status.calling, .status.confirming { color: #bfe4ff; background: rgba(46,154,230,.14); }
.status.declined, .status.unanswered { color: #ffd5a1; background: rgba(247,170,74,.13); }
.action-stack { display: grid; gap: 11px; }
.action-stack .button { width: 100%; }
.notice { padding: 14px 15px; border-radius: 15px; background: rgba(247,170,74,.09); color: #ffdca9; border: 1px solid rgba(247,170,74,.18); font-size: 14px; line-height: 1.45; }
.meta-list { display: grid; gap: 13px; margin-top: 20px; }
.meta { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.meta strong { color: var(--text); }
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translate(-50%, 120px); opacity: 0; width: min(520px, calc(100% - 32px)); padding: 15px 18px; border-radius: 15px; background: #172c3c; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.35); transition: .22s; z-index: 20; text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.error-card { max-width: 620px; margin: 10vh auto; text-align: center; }
.error-card code { display: block; color: #ffb8b8; margin: 14px 0 24px; white-space: normal; }

@media (max-width: 760px) {
  .topbar { height: 70px; padding-right: 14px; }
  .brand img { width: 42px; height: 42px; }
  .badge { display: none; }
  .shell { width: min(100% - 22px, 620px); padding-top: 18px; }
  .hero { border-radius: 24px; padding: 28px 22px; }
  .hero p { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .panel { border-radius: 21px; padding: 19px; }
  .button-row { display: grid; }
  .button { min-height: 58px; }
  .member { min-height: 74px; }
}
