:root {
  --brand-50: #eef2ff;
  --brand-100: #dbe4ff;
  --brand-500: #3858e9;
  --brand-600: #2f49d1;
  --brand-700: #213acc;
  --ink: #1e1e1e;
  --ink-2: #0a1628;
  --cream: #f6f7f7;
  --paper: #ffffff;
  --ok: #008a20;
  --ok-bg: #edfaef;
  --err: #cc1818;
  --err-bg: #fcebec;
  --muted: #646970;
  --border: #dcdcde;
  --surface: #fcfcfc;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, Tajawal, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select,
html[lang="ar"] button {
  font-family: Tajawal, Inter, ui-sans-serif, system-ui, sans-serif;
}
a { color: var(--brand-500); text-decoration: none; }
button, input, select, textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }
.meeting-code, .room-id, .mono.meeting-code, .meeting-code-input {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: Inter, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.meeting-code, .room-id, .mono.meeting-code {
  display: inline-block;
}
.meeting-code-input {
  text-align: left;
  unicode-bidi: plaintext;
}
html[dir="rtl"] .meeting-code,
html[dir="rtl"] .meeting-code-input,
html[dir="rtl"] .room-id {
  direction: ltr;
  text-align: left;
}
.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.dim { opacity: 0.72; }

.seal {
  display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink);
}
.seal-rings {
  width: 2.4rem; height: 2.4rem; border-radius: 999px; position: relative;
  background: radial-gradient(circle at 40% 35%, #7b93ff, var(--brand-500) 55%, var(--brand-700));
  box-shadow: 0 0 0 3px rgba(56, 88, 233, 0.2), 0 8px 20px rgba(56, 88, 233, 0.25);
}
.seal-rings::before, .seal-rings::after {
  content: ""; position: absolute; inset: 6px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.55); border-left-color: transparent;
  animation: spin 8s linear infinite;
}
.seal-rings::after { inset: 11px; animation-direction: reverse; animation-duration: 5s; }
.seal.mini .seal-rings { width: 1.8rem; height: 1.8rem; }
.seal-name strong, .seal strong { display: block; font-weight: 900; letter-spacing: -0.03em; }
.seal-name small { display: block; font-size: 0.7rem; color: var(--muted); }

@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  border: 0; cursor: pointer; font-weight: 700;
  border-radius: 4px; padding: 0.7rem 1.2rem;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: none; }
.btn-brand { background: var(--brand-500); color: #fff; box-shadow: none; }
.btn-brand:hover { background: var(--brand-600); color: #fff; }
.btn-ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-500); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border);
}
.btn-xl { padding: 0.9rem 1.4rem; font-size: 1rem; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

.swal2-container { z-index: 20000 !important; }
.swal2-backdrop-show { background: rgba(7, 11, 20, 0.72) !important; backdrop-filter: blur(8px); }
.swal-jalasaty {
  padding: 1.5rem 1.35rem 1.2rem !important;
  border-radius: 1.6rem !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4) !important;
  font-family: Inter, Tajawal, ui-sans-serif, system-ui, sans-serif !important;
}
html[lang="ar"] .swal-jalasaty {
  font-family: Tajawal, Inter, ui-sans-serif, system-ui, sans-serif !important;
}
.room-body .swal-jalasaty {
  background: #1e1e1e !important;
  color: #f0f0f1 !important;
  border: 1px solid #3c434a !important;
}
.skin-stage .swal-jalasaty,
.skin-auth .swal-jalasaty,
.skin-studio .swal-jalasaty {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
}
.swal-jalasaty-title {
  font-weight: 900 !important;
  font-size: 1.3rem !important;
  letter-spacing: -0.02em;
  line-height: 1.4 !important;
}
.room-body .swal-jalasaty-title { color: #fff !important; }
.skin-stage .swal-jalasaty-title,
.skin-auth .swal-jalasaty-title,
.skin-studio .swal-jalasaty-title { color: var(--ink) !important; }
.swal-jalasaty-text {
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}
.room-body .swal-jalasaty .swal-jalasaty-text:not(:has(.host-menu-list)) {
  color: #e2e8f0 !important;
}
.skin-stage .swal-jalasaty-text:not(:has(.host-menu-list)),
.skin-auth .swal-jalasaty-text:not(:has(.host-menu-list)) { color: var(--muted) !important; }
.skin-studio .swal-jalasaty-text:not(:has(.host-menu-list)) { color: #475569 !important; }
.swal-jalasaty-actions { gap: 0.5rem !important; margin-top: 1.1rem !important; }
.swal-jalasaty-btn { min-width: 6.5rem; box-shadow: none !important; }
.swal-jalasaty-danger {
  background: #7f1d1d !important;
  color: #fecaca !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  padding: 0.65rem 1.15rem !important;
  border: 0 !important;
}
.swal-jalasaty-danger:hover { background: #991b1b !important; color: #fff !important; }
.swal2-icon.swal2-warning {
  border-color: var(--brand-500) !important;
  color: var(--brand-500) !important;
}
.swal2-icon.swal2-error { border-color: #f87171 !important; color: #f87171 !important; }
.swal2-icon.swal2-info { border-color: #38bdf8 !important; color: #38bdf8 !important; }
.swal2-icon.swal2-question { border-color: var(--brand-500) !important; color: var(--brand-500) !important; }
.swal2-icon.swal2-success { border-color: #34d399 !important; color: #34d399 !important; }
.swal2-styled:focus { box-shadow: none !important; }
.swal-jalasaty .swal2-input {
  width: auto !important;
  margin: 1rem 0 0 !important;
  border-radius: 1rem !important;
  padding: 0.85rem 1rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}
.room-body .swal-jalasaty .swal2-input,
.skin-stage .swal-jalasaty .swal2-input,
.skin-auth .swal-jalasaty .swal2-input {
  background: rgba(11, 18, 32, 0.55) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
}
.skin-studio .swal-jalasaty .swal2-input {
  background: #f8fafc !important;
  color: var(--ink) !important;
  border: 1px solid #dbe3ee !important;
}
.swal-jalasaty .swal2-input:focus {
  outline: 2px solid var(--brand-600) !important;
  border-color: transparent !important;
}
.swal-jalasaty .swal2-validation-message {
  background: transparent !important;
  color: #f87171 !important;
  font-weight: 700 !important;
}
.icon-btn {
  border: 0; background: rgba(255,255,255,0.08); color: #fff;
  border-radius: 999px; width: 2.2rem; height: 2.2rem; cursor: pointer;
}

.lang-switch {
  display: flex; padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
}
.lang-switch a {
  min-width: 2rem; height: 1.7rem; display: grid; place-items: center;
  border-radius: 999px; color: var(--muted); font-size: 0.75rem; font-weight: 800;
}
.lang-switch a.is-on { background: var(--brand-600); color: #fff; }

.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--brand-500); font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.72rem; margin: 0 0 0.8rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--brand-500);
  box-shadow: 0 0 0 0 rgba(56, 88, 233, 0.45); animation: ping 1.6s infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 10px rgba(56, 88, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 88, 233, 0); }
}

.alert { border-radius: 4px; padding: 0.8rem 1rem; margin: 0.8rem 0; font-weight: 700; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }

.stack { display: grid; gap: 0.85rem; margin-top: 1.2rem; }
.stack label { display: grid; gap: 0.4rem; font-size: 0.9rem; font-weight: 700; }
.stack label small { font-weight: 600; opacity: 0.7; }
.stack input:not([type="checkbox"]), .stack textarea, .stack select {
  border: 1px solid var(--border); background: #fff;
  color: var(--ink); border-radius: 4px; padding: 0.85rem 1rem; font-size: 1rem; min-height: 3rem;
}
.stack input:not([type="checkbox"]):focus, .stack textarea:focus, .stack select:focus {
  outline: 2px solid var(--brand-500); border-color: transparent;
}
.stack input::placeholder, .stack textarea::placeholder { color: #8c8f94; }
.locked-name {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
}
.locked-name strong {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.9rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 800;
  background: var(--cream);
  border: 1px solid var(--border);
  color: var(--ink);
}
.check { display: flex !important; align-items: center; gap: 0.5rem; min-height: auto; }

.wave { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 72px; }
.wave span {
  width: 7px; border-radius: 99px;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
  animation: eq 1s ease-in-out infinite;
}
.wave span:nth-child(1) { height: 22%; animation-delay: 0s; }
.wave span:nth-child(2) { height: 48%; animation-delay: .1s; }
.wave span:nth-child(3) { height: 78%; animation-delay: .18s; }
.wave span:nth-child(4) { height: 100%; animation-delay: .08s; }
.wave span:nth-child(5) { height: 64%; animation-delay: .22s; }
.wave span:nth-child(6) { height: 40%; animation-delay: .14s; }
.wave span:nth-child(7) { height: 28%; animation-delay: .28s; }
.wave.compact { height: 40px; margin-bottom: 0.8rem; }
.wave.compact span { width: 5px; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.45); }
  50% { transform: scaleY(1); }
}

/* marketing stage */
.skin-stage, .skin-auth { min-height: 100vh; }
.stage-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(40px);
}
.orb-a { width: 520px; height: 520px; background: rgba(56, 88, 233, 0.12); top: -120px; inset-inline-end: -80px; }
.orb-b { width: 320px; height: 320px; background: rgba(56, 88, 233, 0.08); bottom: 8%; inset-inline-start: -60px; }
.ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(56, 88, 233, 0.12);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.ring-1 { width: min(70vw, 640px); height: min(70vw, 640px); }
.ring-2 { width: min(90vw, 880px); height: min(90vw, 880px); }

.float-nav {
  position: sticky; top: 0; z-index: 40;
  width: 100%; margin: 0;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2rem);
  border-radius: 0;
  background: #fff; border: 0; border-bottom: 1px solid var(--border);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.float-links { display: flex; gap: 0.15rem; margin-inline-start: auto; }
.float-links a {
  color: var(--ink); font-weight: 600; font-size: 0.9rem;
  padding: 0.45rem 0.9rem; border-radius: 4px;
}
.float-links a.is-on, .float-links a:hover { background: var(--brand-50); color: var(--brand-600); }
.float-end { display: flex; align-items: center; gap: 0.45rem; }
.menu-btn {
  display: none; border: 1px solid var(--border); background: #fff; color: var(--ink);
  width: 2.4rem; height: 2.4rem; border-radius: 4px; cursor: pointer;
}

.page-main { position: relative; z-index: 1; }
.majlis-hero { padding: 3.5rem 0 2rem; }
.hero-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 900; line-height: 1.12;
  margin: 0; letter-spacing: -0.04em; max-width: 14ch;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 38rem; line-height: 1.7; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 1.4rem; }
.drop-in label { display: block; font-size: 0.75rem; font-weight: 800; color: var(--muted); margin-bottom: 0.4rem; }
.drop-field {
  display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: 4px; padding: 0.25rem 0.25rem 0.25rem 1rem; max-width: 28rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.drop-field input {
  flex: 1; border: 0; background: transparent; color: var(--ink); padding: 0.7rem 0.3rem;
}
.drop-field input:focus { outline: none; }
.drop-field button {
  border: 0; background: var(--brand-500); color: #fff; font-weight: 700;
  border-radius: 3px; padding: 0.7rem 1.1rem; cursor: pointer;
}

.hero-orbit {
  position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto;
}
.orbit-core {
  position: absolute; inset: 22%; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(circle, rgba(56, 88, 233, 0.16), #fff 70%);
  border: 1px solid rgba(56, 88, 233, 0.2);
  box-shadow: inset 0 0 40px rgba(56, 88, 233, 0.08), 0 20px 50px rgba(56, 88, 233, 0.12);
}
.orbit-live { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--brand-600); }
.orbit-live b { display: block; color: var(--ink); font-size: 1.8rem; }
.hero-orbit::before, .hero-orbit::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(56, 88, 233, 0.2);
}
.hero-orbit::after { inset: 10%; animation: spin 28s linear infinite; }
.sat {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: var(--brand-600);
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.sat-1 { top: 4%; left: 42%; animation: floaty 4s ease-in-out infinite; }
.sat-2 { top: 38%; right: 0; animation: floaty 5s ease-in-out infinite .4s; }
.sat-3 { bottom: 6%; left: 38%; animation: floaty 4.5s ease-in-out infinite .2s; }
.sat-4 { top: 42%; left: 0; animation: floaty 3.8s ease-in-out infinite .6s; }
@keyframes floaty {
  50% { transform: translateY(-8px); }
}

.ticker {
  display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center;
  margin-top: 2.5rem; color: var(--muted); font-weight: 700; font-size: 0.85rem;
}
.tick-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-600); }

.path-section { padding: 3rem 0 2rem; }
.path-head h2 { font-size: 2rem; font-weight: 900; margin: 0; }
.path-head p { color: var(--muted); }
.path-line {
  list-style: none; padding: 0; margin: 2rem 0 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 0;
  position: relative;
}
.path-line::before {
  content: ""; position: absolute; top: 28px; inset-inline: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-600), transparent);
}
.path-line li { position: relative; padding: 0 0.8rem; }
.path-idx {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--brand-600); color: var(--brand-500);
  font-weight: 900; margin-bottom: 1rem; position: relative; z-index: 1;
}
.path-line i { color: var(--brand-500); margin-bottom: 0.4rem; }
.path-line h3 { margin: 0.2rem 0; font-size: 1rem; }
.path-line p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.bento-wrap { padding: 1rem 0 3rem; }
.bento-title { font-size: 2rem; font-weight: 800; color: var(--ink); }
.bento {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.8rem;
}
.bento article {
  border-radius: 8px; padding: 1.4rem;
  background: #fff; border: 1px solid var(--border);
  min-height: 8.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.bento-wide { grid-column: span 1; background: linear-gradient(160deg, var(--brand-50), #fff) !important; }
.bento .dim { opacity: 1; background: var(--cream) !important; }
.bento i { font-size: 1.4rem; color: var(--brand-500); }
.bento h3 { margin: 0.7rem 0 0.3rem; color: var(--ink); }
.bento p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.whisper { padding-bottom: 3rem; }
.whisper-card {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1.5rem; align-items: start;
  border-radius: 1.8rem; padding: 1.5rem;
  background: rgba(244,246,249,0.04); border: 1px solid rgba(255,255,255,0.08);
}
.whisper-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.whisper-form textarea, .whisper-form button { grid-column: 1 / -1; }
.whisper-form input, .whisper-form textarea {
  border: 1px solid rgba(255,255,255,0.1); background: rgba(11,18,32,0.5);
  color: #fff; border-radius: 0.9rem; padding: 0.7rem 0.85rem;
}

.stage-foot { border-top: 1px solid var(--border); padding: 1.4rem 0 2rem; position: relative; z-index: 1; background: #fff; }
.foot-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: var(--muted); flex-wrap: wrap; }
.foot-row p { margin: 0; }

/* auth */
.auth-main {
  min-height: calc(100vh - 4.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 2.5rem;
  background: var(--cream);
}
.auth-stage {
  width: min(28rem, 100%);
  display: flex;
  justify-content: center;
}
.auth-card {
  width: 100%;
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 2rem 1.6rem; backdrop-filter: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  color: var(--ink);
}
.auth-card h1 { margin: 0 0 0.4rem; font-weight: 800; font-size: 2rem; color: var(--ink); }
.auth-card .lede { color: var(--muted); }
.auth-card .stack label { color: var(--ink); }
.demo-hint {
  margin-top: 1rem; font-size: 0.8rem; color: var(--brand-700);
  background: var(--brand-50); border-radius: 4px; padding: 0.6rem 0.8rem;
}
.auth-alt { color: var(--muted); }

/* studio app */
.skin-studio {
  background: var(--cream);
  color: var(--ink);
  color-scheme: light;
}
.skin-studio .btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}
.skin-studio .menu-btn { color: var(--ink); background: #fff; border: 1px solid var(--border); }
.studio { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.studio-rail {
  background: #1e1e1e; color: #fff; padding: 1.3rem 1rem;
  display: flex; flex-direction: column; gap: 1.4rem;
}
.studio-rail .seal { color: #fff; }
.rail-nav { display: grid; gap: 0.3rem; }
.rail-nav a {
  display: flex; align-items: center; gap: 0.7rem;
  color: #c3c4c7; padding: 0.7rem 0.85rem; border-radius: 4px; font-weight: 600;
}
.rail-nav a.is-on, .rail-nav a:hover { background: rgba(56, 88, 233, 0.22); color: #fff; }
.rail-nav i { color: #9ea3ae; width: 1.1rem; }
.rail-nav a.is-on i { color: #a7b4ff; }
.rail-foot { margin-top: auto; display: grid; gap: 0.8rem; }
.rail-out {
  width: 100%; border: 0; background: rgba(255,255,255,0.08); color: #fff;
  border-radius: 4px; padding: 0.6rem; font-weight: 700; cursor: pointer;
}
.studio-main { min-width: 0; }
.studio-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.4rem 0;
}
.studio-user { display: flex; gap: 0.7rem; align-items: center; margin-inline-start: auto; color: var(--ink); }
.studio-user strong { color: var(--ink); }
.studio-user small { display: block; color: #64748b; }
.avatar-dot {
  width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-600); color: #fff; font-weight: 900;
}
.studio-scroll { padding: 0.5rem 1.5rem 2.5rem; color: var(--ink); }
.desk-hero { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; margin: 1rem 0 1.4rem; flex-wrap: wrap; }
.desk-hero h1 { margin: 0.2rem 0 0; font-size: 2.2rem; font-weight: 900; color: var(--ink); }
.skin-studio .kicker { color: var(--brand-600); }
.desk-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 0.8rem; }
.vinyl, .desk-tile, .desk-list, .panel-form {
  background: #fff;
  color: var(--ink);
  border-radius: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}
.vinyl { display: flex; gap: 1rem; align-items: center; }
.vinyl-meta p { margin: 0 0 0.65rem; color: #475569; font-weight: 800; }
.vinyl-disc {
  width: 8.5rem; height: 8.5rem; border-radius: 50%;
  background: conic-gradient(from 20deg, #1e293b, var(--brand-700), #1e293b);
  display: grid; place-items: center; position: relative; color: #fff; flex-shrink: 0;
}
.vinyl-hole {
  position: absolute; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: #fff;
}
.vinyl-disc strong { position: relative; z-index: 1; font-size: 0.78rem; text-align: center; max-width: 6.2rem; color: #fff; }
.desk-tile { display: flex; flex-direction: column; gap: 0.3rem; color: var(--ink); min-height: 8.5rem; justify-content: center; }
.desk-tile:hover { border-color: var(--brand-100); }
.desk-tile i { color: var(--brand-600); font-size: 1.4rem; }
.desk-tile strong { color: var(--ink); }
.desk-tile span { color: #64748b; font-size: 0.85rem; }
.desk-list { margin-top: 1rem; }
.list-head { display: flex; justify-content: space-between; align-items: center; }
.list-head h2 { margin: 0; color: var(--ink); }
.list-head a { color: var(--brand-600); font-weight: 800; }
.session-row {
  display: flex; gap: 0.8rem; align-items: center; padding: 0.9rem 0;
  border-top: 1px solid #e2e8f0; color: var(--ink);
}
.session-row strong { color: var(--ink); }
.session-orb { width: 12px; height: 12px; border-radius: 50%; background: #cbd5e1; flex-shrink: 0; }
.session-orb.is-live { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.meta { display: flex; flex-wrap: wrap; gap: 0.5rem; color: #64748b; font-size: 0.8rem; }
.meet-actions { margin-inline-start: auto; display: flex; gap: 0.4rem; }
.empty { padding: 1.5rem 0; color: #64748b; }
.admin-subnav {
  display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem;
}
.admin-subnav a {
  display: inline-flex; align-items: center; padding: 0.45rem 0.85rem;
  border-radius: 999px; font-size: 0.82rem; font-weight: 800;
  color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0;
}
.admin-subnav a.is-on, .admin-subnav a:hover {
  color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100);
}
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.75rem;
}
.admin-stat {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 1rem 1.1rem;
  border-radius: 1rem; background: #fff; border: 1px solid #e2e8f0;
}
.admin-stat strong { font-size: 1.55rem; color: var(--ink); line-height: 1; }
.admin-stat span { color: #64748b; font-size: 0.82rem; font-weight: 700; }
.admin-stat.is-live strong { color: #15803d; }
.admin-split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-top: 1rem;
}
.admin-row { align-items: flex-start; }
.admin-role-badge {
  flex: 0 0 auto; min-width: 4.5rem; text-align: center;
  padding: 0.22rem 0.55rem; border-radius: 999px; font-size: 0.68rem; font-weight: 900;
  background: #eef2f6; color: #64748b;
}
.admin-role-badge.is-admin { background: #dcfce7; color: #166534; }
.admin-search { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
.admin-search input {
  min-width: min(100%, 16rem); border: 1px solid #dbe3ee; border-radius: 999px;
  padding: 0.55rem 0.9rem; background: #fff; color: var(--ink);
}
.admin-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.admin-danger { color: #b91c1c !important; }
.admin-inquiry {
  padding: 1rem 0; border-top: 1px solid #e2e8f0;
}
.admin-inquiry-head {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: center;
}
.admin-inquiry-body {
  margin: 0.65rem 0; color: var(--ink); line-height: 1.55; white-space: pre-wrap;
}
.skin-studio .stack label { color: var(--ink); }
.skin-studio .stack input:not([type="checkbox"]), .skin-studio .stack textarea, .skin-studio .stack select {
  background: #f8fafc; color: var(--ink); border: 1px solid #dbe3ee;
}
.skin-studio .stack input:disabled { color: #64748b; background: #eef2f6; }
.skin-studio .locked-name { color: var(--ink); }
.skin-studio .locked-name strong {
  background: #eef2f6;
  color: var(--ink);
  border: 1px solid #dbe3ee;
}
.pmi-note {
  margin: 0; padding: 0.75rem 0.9rem; border-radius: 1rem;
  background: var(--brand-50); color: var(--brand-700); font-weight: 700;
}
.form-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 7rem);
  padding-top: 1.2rem;
}
.form-page .desk-hero {
  width: min(34rem, 100%);
  justify-content: center;
  text-align: center;
}
.form-page .panel-form {
  width: min(34rem, 100%);
  margin-inline: auto;
}

.mobile-overlay { position: fixed; inset: 0; background: rgba(11,18,32,0.55); z-index: 60; }
.mobile-panel {
  position: fixed; top: 0; inset-inline-start: 0; z-index: 61; height: 100%;
  width: min(18rem, 86vw); background: #fff; padding: 1rem; overflow: auto;
  color: var(--ink); border-inline-end: 1px solid var(--border);
}
.mobile-panel a { display: block; color: var(--ink); padding: 0.7rem; border-radius: 4px; font-weight: 700; }
.mobile-panel a:hover { background: var(--brand-50); color: var(--brand-600); }
.mobile-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

/* room / majlis */
.room-body { background:
  radial-gradient(circle at 50% 18%, rgba(56, 88, 233, 0.18), transparent 36%),
  radial-gradient(circle at 80% 80%, rgba(56,189,248,0.08), transparent 28%),
  var(--ink-2); color: #e8eef7; height: 100dvh; overflow: hidden; }
.room-shell { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.room-banner {
  margin: 0 0.75rem 0.5rem; padding: 0.7rem 0.9rem; border-radius: 1rem;
  display: flex; gap: 0.7rem; align-items: flex-start;
  background: rgba(185, 28, 28, 0.22); border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca; font-size: 0.82rem; font-weight: 700; line-height: 1.45;
}
.room-banner i { margin-top: 0.15rem; color: #fca5a5; }
.room-banner strong { display: block; color: #fff; margin-bottom: 0.2rem; }
.room-banner span { font-weight: 600; opacity: 0.92; }
.audio-unlock {
  position: fixed; left: 50%; bottom: 5.6rem; transform: translateX(-50%); z-index: 9;
  border: 0; cursor: pointer; font-weight: 800;
  background: var(--brand-600); color: #fff; border-radius: 4px;
  padding: 0.7rem 1.15rem; box-shadow: 0 12px 28px rgba(56, 88, 233, 0.35);
}
.room-top {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  padding: 0.65rem 1rem;
}
.room-meta {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center;
  color: #cbd5e1; font-size: 0.88rem; min-width: 0; justify-content: center;
}
.room-meta b { color: #fff; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-id {
  padding: 0.15rem 0.55rem; border-radius: 999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
}
.room-count { color: var(--muted); font-weight: 700; font-size: 0.8rem; }
.live-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.28);
  border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.72rem; font-weight: 800;
}
.live-pill .pulse-dot { background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.55); width: 7px; height: 7px; }
.live-pill.slim { padding: 0.1rem 0.45rem; font-size: 0.68rem; }
.room-center {
  margin: auto; width: min(26rem, calc(100% - 2rem));
}
.glass {
  background: rgba(17,24,39,0.8); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2rem; padding: 1.6rem; text-align: center;
}
.glass h1 { color: #fff; }
.glass .stack { text-align: start; }
.glass .btn-xl { width: 100%; }
.wait-rings {
  width: 90px; height: 90px; margin: 0 auto 1rem; border-radius: 50%;
  border: 3px solid var(--brand-600); border-left-color: transparent;
  animation: spin 1.1s linear infinite;
}
.room-workspace {
  flex: 1; display: flex; gap: 0.65rem; min-height: 0; overflow: hidden;
  padding: 0 0.75rem;
}
.room-main {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column; gap: 0.65rem;
}
.tiles {
  flex: 1; min-height: 0; overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem; align-content: start; justify-items: center; align-items: start;
  padding: 0 0.15rem 0.5rem;
}
.room-workspace:not(.is-sharing) .tiles {
  margin-top: 0.45rem;
  padding-top: 0.25rem;
}
.tile {
  position: relative;
  width: 100%; max-width: 16rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 10.5rem; padding: 1rem 0.7rem 0.85rem;
  text-align: center; border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(11,18,32,0.55));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}
.tile-avatar {
  width: 4.6rem; height: 4.6rem; margin: 0 auto 0.55rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 1.25rem;
  background: linear-gradient(145deg, var(--brand-500), var(--brand-700));
  border: 3px solid transparent; color: #fff;
}
.tile.is-unmuted .tile-avatar { border-color: rgba(74, 222, 128, 0.35); }
.tile.speaking .tile-avatar {
  border-color: #4ade80;
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.22);
}
.tile-name { font-weight: 800; font-size: 0.88rem; color: #fff; line-height: 1.3; }
.tile-name, .person-name {
  display: inline-flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 0.22rem; max-width: 100%;
}
.role-badges {
  display: inline-flex; align-items: center; gap: 0.18rem;
  flex: 0 0 auto;
}
.role-badge { font-size: 0.72rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35)); }
.role-badge.is-host { color: #fbbf24; }
.role-badge.is-cohost { color: #cbd5e1; }
.role-badge.is-admin { color: #fde047; font-size: 0.68rem; }
.role-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tile-role { display: block; font-size: 0.68rem; font-weight: 700; color: #fdba74; margin-top: 0.12rem; }
.tile-icons {
  position: absolute; top: 0.55rem; inset-inline-end: 0.55rem;
  display: flex; gap: 0.25rem;
}
.tile-icons i {
  width: 1.45rem; height: 1.45rem; border-radius: 999px;
  display: grid; place-items: center; font-size: 0.62rem;
  background: rgba(0,0,0,0.45); color: #e2e8f0;
}
.tile-icons .is-mute { background: #7f1d1d; color: #fecaca; }
.tile-icons .is-mic-on { background: #166534; color: #bbf7d0; box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35); }
.tile-icons .is-hand { background: rgba(56, 88, 233, 0.9); color: #eef2ff; }
.tile.speaking .tile-icons .is-mic-on {
  background: #15803d; color: #ecfccb;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.55);
  animation: micPulse 0.85s ease-in-out infinite;
}
@keyframes micPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.tile-icons .is-share { background: #0e7490; color: #a5f3fc; }
.tile.is-sharing { border-color: rgba(56,189,248,0.45); }
.tile.is-sharing .tile-avatar {
  border-color: #38bdf8;
  box-shadow: 0 0 0 5px rgba(56,189,248,0.18);
}
.tile.is-me { outline: 1px solid rgba(56, 88, 233, 0.45); }

.screen-stage {
  display: none; flex: 1; min-width: 0; min-height: 0; width: 100%;
}
.room-workspace.is-sharing .screen-stage { display: flex; flex: 1; min-height: 0; }
.room-workspace.is-sharing .room-stage-col {
  flex-direction: column !important;
  align-items: stretch !important;
}
.room-workspace.is-sharing .stage-strip-wrap,
.room-workspace.is-sharing .tiles {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: none !important;
}
.room-workspace.is-sharing .tiles {
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  align-content: start;
  justify-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.55rem;
}
.room-workspace.is-sharing .stage-spotlight { display: none !important; }
.room-workspace.is-sharing .tile {
  flex: 0 0 auto;
  min-height: 0;
  max-width: none;
  padding: 0.7rem 0.45rem 0.55rem;
}
.room-workspace.is-sharing .tile-avatar { width: 2.7rem; height: 2.7rem; font-size: 0.85rem; margin-bottom: 0.3rem; }
.room-workspace.is-sharing .tile-name { font-size: 0.72rem; }
.room-workspace.is-sharing .tile-role { display: none; }

.screen-frame {
  position: relative; flex: 1; min-height: 0;
  display: flex; background: #05070d;
  border-radius: 1.15rem; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.screen-frame video {
  flex: 1; width: 100%; height: 100%; min-height: 12rem;
  object-fit: contain; background: #000;
}
.screen-hud {
  position: absolute; inset-inline: 0.7rem; top: 0.7rem;
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
  pointer-events: none;
}
.screen-who, .screen-actions { pointer-events: auto; }
.screen-who {
  display: flex; align-items: center; gap: 0.45rem; min-width: 0;
  background: rgba(7,11,20,0.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px; padding: 0.28rem 0.7rem 0.28rem 0.35rem;
  font-size: 0.8rem; font-weight: 800; color: #fff;
}
.screen-who #screen-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28rem; }
.screen-actions { display: flex; gap: 0.35rem; }
.hud-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 0; cursor: pointer; color: #fff; font-weight: 800; font-size: 0.78rem;
  background: rgba(7,11,20,0.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px; padding: 0.38rem 0.7rem;
}
.hud-btn:hover { background: rgba(56, 88, 233, 0.9); }
.hud-stop { background: #b91c1c; border-color: transparent; }
.hud-stop:hover { background: #991b1b; }
.screen-stage:fullscreen, .screen-stage:-webkit-full-screen { width: 100%; height: 100%; background: #000; }
.screen-stage:fullscreen .screen-frame, .screen-stage:-webkit-full-screen .screen-frame {
  border-radius: 0; border: 0; height: 100%;
}

.side-panel {
  flex: 0 0 min(22rem, 92vw); width: min(22rem, 92vw);
  background: rgba(11,18,32,0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.15rem;
  display: flex; flex-direction: column; min-height: 0; max-height: 100%;
  overflow: hidden;
}
.panel-body-scroll {
  flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1rem; }
.panel-head h3 { margin: 0; color: #fff; font-size: 1rem; }
.wait-box {
  padding: 0.4rem 0 0; margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.wait-box h4 { margin: 0.45rem 1rem 0.4rem; color: #fdba74; font-size: 0.78rem; }
.wait-list { max-height: 9rem; flex: 0 1 auto; }
.panel-head, .wait-box h4, .chat-form { flex-shrink: 0; }
.person, .wait-row {
  display: flex; justify-content: space-between; gap: 0.5rem; align-items: center;
  padding: 0.7rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem;
}
.person-main { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; flex: 1; }
.person-name { font-weight: 800; color: #fff; text-align: start; justify-content: flex-start; }
.person-meta { color: #94a3b8; font-size: 0.72rem; font-weight: 700; }
.person-mic {
  flex: 0 0 auto; width: 1.55rem; height: 1.55rem; border-radius: 999px;
  display: grid; place-items: center; font-size: 0.68rem;
}
.person-mic .is-mute { color: #fecaca; background: #7f1d1d; width: 100%; height: 100%; border-radius: inherit; display: grid; place-items: center; }
.person-mic .is-mic-on { color: #bbf7d0; background: #166534; width: 100%; height: 100%; border-radius: inherit; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.35); }
.person.is-unmuted .person-meta { color: #86efac; }
button.tile-name.host-pick {
  display: block; width: 100%; margin: 0 auto;
  font-weight: 800; font-size: 0.88rem; color: #fff; line-height: 1.3; text-align: center;
}
#people-list { min-height: 0; }
.dock { overflow: visible; }
.dock-cluster { overflow: visible; }
.dock-btn { position: relative; overflow: visible; }
.dock-badge, .panel-badge {
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
  border-radius: 999px; background: #dc2626; color: #fff;
  font-size: 0.64rem; font-weight: 900; line-height: 1.15rem;
  text-align: center; z-index: 6;
  box-shadow: 0 0 0 2px rgba(17,24,39,0.95);
  font-family: Inter, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  direction: ltr; unicode-bidi: isolate;
  pointer-events: none;
}
.dock-badge {
  position: absolute; top: 0; inset-inline-end: 0;
  transform: translate(25%, -25%);
  display: none;
  align-items: center; justify-content: center;
}
.dock-badge.is-on { display: inline-flex !important; }
.dock-badge.hidden { display: none !important; }
.panel-badge {
  position: static; display: none;
  align-items: center; justify-content: center;
  min-width: 1.15rem; height: 1.15rem; margin-inline-start: 0.35rem;
  vertical-align: middle; box-shadow: none;
}
.panel-badge.is-on { display: inline-flex !important; }
.panel-badge.hidden { display: none !important; }
.wait-box h4 .panel-badge { margin-inline-start: 0.35rem; }
.room-toast-wrap {
  position: fixed; top: 4.2rem; inset-inline-end: 0.85rem; z-index: 12;
  display: grid; gap: 0.45rem; width: min(18rem, calc(100% - 1.7rem)); pointer-events: none;
}
html[dir="rtl"] .room-toast-wrap { inset-inline-end: auto; inset-inline-start: 0.85rem; }
.room-toast {
  pointer-events: auto; cursor: pointer;
  background: rgba(17,24,39,0.94); border: 1px solid rgba(255,255,255,0.12);
  border-inline-start: 3px solid var(--brand-500);
  border-radius: 0.85rem; padding: 0.65rem 0.8rem;
  color: #e2e8f0; font-size: 0.82rem; font-weight: 700; line-height: 1.35;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  animation: toastIn 0.22s ease-out;
}
.room-toast strong { display: block; color: #fff; margin-bottom: 0.15rem; font-size: 0.76rem; }
.room-toast.wait { border-inline-start-color: #f59e0b; }
.room-toast.chat { border-inline-start-color: #38bdf8; }
.room-toast.hand { border-inline-start-color: #a78bfa; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.chat-log {
  flex: 1 1 0; min-height: 0; max-height: 100%;
  overflow-y: auto; overflow-x: hidden;
  padding: 0.8rem; display: flex; flex-direction: column; gap: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.chat-item { background: rgba(255,255,255,0.05); border-radius: 0.9rem; padding: 0.5rem 0.7rem; }
.chat-item strong { display: block; font-size: 0.72rem; color: #fdba74; }
.chat-form { display: flex; gap: 0.4rem; padding: 0.7rem; flex-shrink: 0; border-top: 1px solid rgba(255,255,255,0.06); }
.chat-form input {
  flex: 1; border: 1px solid rgba(255,255,255,0.1); background: #0b1220; color: #fff;
  border-radius: 999px; padding: 0.55rem 0.9rem;
}
.dock {
  z-index: 5;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.45rem;
  width: max-content; max-width: calc(100% - 1.2rem); margin: 0.65rem auto 0.85rem;
  padding: 0.4rem; border-radius: 1.4rem;
  background: rgba(17,24,39,0.9); border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
}
.dock-primary, .dock-secondary {
  display: flex; align-items: center; gap: 0.2rem;
  padding: 0.15rem; border-radius: 1.1rem;
  background: rgba(255,255,255,0.04);
}
.dock-secondary { background: transparent; }
.dock-grow { display: none; }
.dock-cluster {
  display: flex; align-items: center; gap: 0.2rem;
  padding: 0.15rem;
  border-radius: 1.1rem;
  background: rgba(255,255,255,0.04);
}
.dock-end { background: transparent; }
.dock-btn {
  min-width: 4.2rem; border: 0; background: transparent; color: #e2e8f0;
  border-radius: 999px; padding: 0.48rem 0.5rem; cursor: pointer;
  display: grid; place-items: center; gap: 0.12rem; font-size: 0.62rem; font-weight: 700;
}
.dock-btn i { font-size: 1.02rem; }
.dock-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.dock-btn.is-on { background: var(--brand-600); color: #fff; }
.dock-btn.is-share { background: #0e7490; color: #fff; }
.dock-btn.is-share:hover, .dock-btn.is-share.is-on { background: #b91c1c; }
.dock-btn.leave, .dock-btn.danger { background: #7f1d1d; color: #fecaca; }
.dock-btn.leave:hover, .dock-btn.danger:hover { background: #991b1b; color: #fff; }
.react-pop-backdrop {
  position: fixed; inset: 0; z-index: 14;
  background: rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(2px);
}
.react-pop-backdrop.hidden { display: none; }
.react-pop {
  position: fixed; z-index: 15;
  left: 50%; transform: translateX(-50%);
  bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  background: rgba(17, 24, 39, 0.98);
  border-radius: 999px; padding: 0.35rem 0.45rem;
  display: flex; align-items: center; gap: 0.2rem;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
}
.react-pop.hidden { display: none; }
.react-pop button {
  background: none; border: 0; font-size: 1.25rem; cursor: pointer;
  min-width: 2.35rem; min-height: 2.35rem; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  touch-action: manipulation;
}
.react-pop button:active { background: rgba(255,255,255,0.12); }
.react-float {
  position: fixed; inset: 16% 0 auto; pointer-events: none;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: 0.85rem 1.1rem; padding: 0 1rem; z-index: 8;
}
.react-bubble-wrap {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.25rem;
  animation: floatUp 2s ease-out forwards;
}
.react-bubble { display: block; font-size: 2rem; line-height: 1; }
.react-name {
  display: block; max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.72rem; font-weight: 800; color: #fdba74;
  background: rgba(17,24,39,0.82); padding: 0.12rem 0.45rem; border-radius: 999px;
}
@keyframes floatUp { to { transform: translateY(-72px); opacity: 0; } }

.person-name.host-pick, .tile-name.host-pick {
  cursor: pointer; border: 0; background: none; color: inherit; font: inherit;
  padding: 0; text-decoration: underline dotted rgba(253,186,116,0.55);
  text-underline-offset: 0.18rem;
}
.person-name.host-pick:hover, .tile-name.host-pick:hover { color: #fdba74; }
.tile.is-manageable { cursor: pointer; }
.tile.is-manageable:hover { outline: 1px solid rgba(56, 88, 233, 0.5); }

@media (max-width: 900px) {
  .room-workspace.is-sharing .room-main { flex-direction: column; }
  .room-workspace.is-sharing .tiles {
    flex: 0 0 auto; width: auto;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 6.2rem;
    overflow-x: auto; overflow-y: hidden;
    padding-bottom: 0.2rem;
  }
  .room-workspace.is-sharing .tile { min-width: 6.2rem; }
  .side-panel {
    position: fixed; inset: 3.6rem 0.5rem 5.8rem auto; z-index: 8;
    width: min(22rem, calc(100% - 1rem)); max-height: none; height: auto;
  }
  html[dir="rtl"] .side-panel { inset: 3.6rem auto 5.8rem 0.5rem; }

  .dock {
    width: calc(100% - 0.8rem);
    max-width: calc(100% - 0.8rem);
    gap: 0.35rem;
  }
  .dock-btn {
    min-width: 3rem;
    min-height: 3rem;
  }
  .dock-btn span:not(.dock-badge) {
    font-size: 0.58rem;
  }
}

@media (max-width: 980px) {
  .hero-split, .path-line, .desk-grid, .whisper-card, .bento { grid-template-columns: 1fr 1fr; }
  .bento-wide { grid-column: auto; }
  .float-links { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .studio { grid-template-columns: 1fr; }
  .studio-rail { display: none; }
  .path-line::before { display: none; }
}
@media (max-width: 640px) {
  .hero-split, .desk-grid, .whisper-form, .whisper-card, .bento { grid-template-columns: 1fr; }
  .float-nav { border-radius: 0; }
  .hero-copy h1 { max-width: none; }
  .session-row { flex-wrap: wrap; }
  .meet-actions { margin-inline-start: 0; width: 100%; }

  /* meeting room — mobile dock */
  .room-top {
    padding: 0.5rem 0.65rem;
    gap: 0.45rem;
  }
  .room-meta {
    font-size: 0.78rem;
    gap: 0.35rem;
  }
  .room-meta b { max-width: 7.5rem; }
  .room-workspace {
    padding: 0 0.45rem 0.2rem;
  }
  .side-panel {
    inset: 3.2rem 0.35rem calc(8.2rem + env(safe-area-inset-bottom, 0px)) auto;
    width: min(22rem, calc(100% - 0.7rem));
  }
  html[dir="rtl"] .side-panel {
    inset: 3.2rem auto calc(8.2rem + env(safe-area-inset-bottom, 0px)) 0.35rem;
  }
  .audio-unlock {
    bottom: calc(8.4rem + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 1.5rem);
    font-size: 0.78rem;
    padding: 0.65rem 1rem;
  }
  .room-toast-wrap {
    top: 3.5rem;
    inset-inline-end: 0.5rem;
    width: min(18rem, calc(100% - 1rem));
  }
  html[dir="rtl"] .room-toast-wrap { inset-inline-start: 0.5rem; }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 1rem 1rem 0 0;
    padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
    gap: 0.35rem;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.38);
    border-bottom: 0;
  }
  .dock-primary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    gap: 0.15rem;
    padding: 0.12rem;
    border-radius: 0.85rem;
  }
  .dock-secondary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.2rem;
    padding: 0.2rem 0.12rem 0.05rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: transparent;
  }
  .dock-grow {
    display: block;
    flex: 1 1 0.5rem;
    min-width: 0;
  }
  .dock-btn {
    min-width: 0;
    width: 100%;
    min-height: 3.15rem;
    padding: 0.32rem 0.15rem;
    gap: 0.08rem;
    touch-action: manipulation;
  }
  .dock-btn i { font-size: 1.15rem; }
  .dock-btn span:not(.dock-badge) {
    display: block;
    font-size: 0.5rem;
    line-height: 1.05;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.9;
  }
  .dock-secondary .dock-btn {
    min-width: 3.1rem;
    width: auto;
    flex: 0 0 auto;
    min-height: 2.85rem;
  }
  .dock-secondary .dock-btn span:not(.dock-badge) {
    font-size: 0.54rem;
  }
  .dock-btn.leave,
  .dock-btn.danger {
    min-width: 3.4rem;
  }
  .dock-badge {
    min-width: 0.95rem;
    height: 0.95rem;
    font-size: 0.56rem;
    line-height: 0.95rem;
    top: 0.12rem;
    inset-inline-end: 0.12rem;
  }
  .react-pop {
    bottom: calc(7.6rem + env(safe-area-inset-bottom, 0px));
    padding: 0.45rem 0.55rem;
    gap: 0.25rem;
    max-width: calc(100% - 1rem);
    justify-content: center;
  }
  .react-pop button {
    font-size: 1.45rem;
    min-width: 2.55rem;
    min-height: 2.55rem;
  }
  .room-shell {
    padding-bottom: calc(7.4rem + env(safe-area-inset-bottom, 0px));
  }
}
