/* =====================================================================
   Laksh360 Meet - "Studio" design.
   Org branding overrides only the --brand-* variables; everything that
   should carry the org's identity (ambient glow, buttons, highlights)
   is built from them.
   ===================================================================== */
:root {
  --brand-1: #8b5cf6;
  --brand-2: #6366f1;
  --brand-3: #3b82f6;
  --brand: var(--brand-2);
  --brand-gradient: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));
  --brand-soft: color-mix(in srgb, var(--brand) 12%, transparent);
  --brand-glow: color-mix(in srgb, var(--brand-1) 45%, transparent);

  --ink: #0e0d24;
  --bg: #f5f5fa;
  --surface: #ffffff;
  --surface-2: #f1f1f8;
  --surface-3: #e9e9f3;
  --text: #0e0d24;
  --text-2: #4f4f73;
  --text-3: #8686a4;
  --border: #e6e6f0;
  --danger: #e5484d;
  --danger-soft: #fdecec;
  --success: #12a150;
  --success-soft: color-mix(in srgb, #12a150 14%, transparent);
  --warning: #f59e0b;

  /* meeting room ("studio"): light by default, dark on request */
  --call-bg: #eef0f8;
  --tile-bg: rgb(255 255 255 / 78%);
  --tile-solid: #ffffff;
  --tile-line: rgb(14 13 36 / 7%);
  --tile-text: #0e0d24;
  --tile-text-2: #4f4f73;
  --glass: rgb(255 255 255 / 62%);
  --glass-line: rgb(255 255 255 / 70%);
  --tool-bg: rgb(14 13 36 / 5%);
  --tool-hover: rgb(14 13 36 / 10%);
  --room-ambient:
    radial-gradient(900px 600px at 8% -10%, color-mix(in srgb, var(--brand-1) 20%, transparent), transparent 60%),
    radial-gradient(800px 600px at 105% 110%, color-mix(in srgb, var(--brand-3) 16%, transparent), transparent 60%),
    #eef0f8;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 1px 2px rgb(14 13 36 / 5%), 0 10px 30px rgb(14 13 36 / 7%);
  --shadow-lift: 0 2px 6px rgb(14 13 36 / 8%), 0 18px 40px rgb(14 13 36 / 12%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
/* Always light, whatever the browser or device theme (no dark variant on purpose). */
:root[data-theme="dark"] {
  --bg: #0b0a18; --surface: #15142b; --surface-2: #1e1d3a; --surface-3: #282748;
  --text: #f4f4fb; --text-2: #b6b5d2; --text-3: #7f7e9e; --border: #2a2949;
  --danger-soft: #3a1b22; --shadow: 0 1px 0 rgb(255 255 255 / 3%) inset; --shadow-lift: 0 18px 40px rgb(0 0 0 / 35%); color-scheme: dark;
}
/* The meeting page is always light unless someone picks the dark studio (Settings > Room look). */
.room-page {
  --bg: #eef0f8; --surface: #ffffff; --surface-2: #f1f1f8; --surface-3: #e7e7f2;
  --text: #0e0d24; --text-2: #4f4f73; --text-3: #8686a4; --border: #e2e2ee; --danger-soft: #fdecec; color-scheme: light;
}
.room-page[data-room="dark"] {
  --bg: #0b0a18; --surface: #15142b; --surface-2: #1e1d3a; --surface-3: #282748;
  --text: #f4f4fb; --text-2: #b6b5d2; --text-3: #7f7e9e; --border: #2a2949;
  --danger-soft: #3a1b22; --shadow: 0 1px 0 rgb(255 255 255 / 3%) inset; --shadow-lift: 0 18px 40px rgb(0 0 0 / 35%); color-scheme: dark;
  --call-bg: #0a0918;
  --tile-bg: rgb(255 255 255 / 5%);
  --tile-solid: #17162e;
  --tile-line: rgb(255 255 255 / 8%);
  --tile-text: #f4f4fb;
  --tile-text-2: #c9c8e2;
  --glass: rgb(30 29 58 / 55%);
  --glass-line: rgb(255 255 255 / 12%);
  --tool-bg: rgb(255 255 255 / 7%);
  --tool-hover: rgb(255 255 255 / 14%);
  /* re-declared here: a var() inside a custom property is resolved where it's defined */
  --room-ambient:
    radial-gradient(900px 600px at 8% -10%, color-mix(in srgb, var(--brand-1) 34%, transparent), transparent 60%),
    radial-gradient(800px 600px at 105% 110%, color-mix(in srgb, var(--brand-3) 28%, transparent), transparent 60%),
    #0a0918;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.02em; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gradient-text { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: color-mix(in srgb, var(--brand-1) 30%, transparent); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 17px; }
.logo img { height: 32px; width: auto; }
.logo .logo-dark { display: none; }

.room-page .logo .logo-light { display: block; }
.room-page .logo .logo-dark { display: none; }
.room-page[data-room="dark"] .logo .logo-light { display: none; }
.room-page[data-room="dark"] .logo .logo-dark { display: block; }
.logo .tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--brand-gradient); color: #fff; letter-spacing: .02em; }
.logo.org-logo img { height: 32px; max-width: 160px; object-fit: contain; }
.logo .org-name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--text); transition: background .15s, transform .08s, box-shadow .2s, opacity .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand-gradient); color: #fff; border: 0; box-shadow: 0 6px 18px -6px var(--brand-glow), inset 0 1px 0 rgb(255 255 255 / 18%); }
.btn-primary:hover { background: var(--brand-gradient); box-shadow: 0 10px 24px -6px var(--brand-glow), inset 0 1px 0 rgb(255 255 255 / 22%); filter: brightness(1.05); }
.btn-danger { background: var(--danger); color: #fff; border: 0; }
.btn-danger:hover { background: var(--danger); filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-white { background: #fff; color: #17153a; border: 0; box-shadow: 0 8px 24px -8px rgb(0 0 0 / 35%); }
.btn-white:hover { background: #fff; filter: brightness(.97); }
.btn-glass { background: rgb(255 255 255 / 14%); color: #fff; border: 1px solid rgb(255 255 255 / 24%); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgb(255 255 255 / 22%); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 2px; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input { height: 44px; width: 100%; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--brand-soft); }
.textarea { height: auto; padding: 10px 14px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238686a4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.error { color: var(--danger); background: var(--danger-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.hint { font-size: 13px; color: var(--text-3); min-height: 1em; margin: 0 0 12px; }
.optional { font-weight: 400; color: var(--text-3); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin: 0 0 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.switch-row span { display: grid; font-size: 14px; }
.switch-row small { color: var(--text-3); font-size: 12px; }
.switch-row input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; cursor: pointer; transition: background .15s; flex: none; }
.switch-row input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgb(0 0 0 / 25%); }
.switch-row input:checked { background: var(--brand-2); }
.switch-row input:checked::after { transform: translateX(18px); }
.radio-list { display: grid; gap: 6px; margin-bottom: 12px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 14px; }
.radio-list input { accent-color: var(--brand); }
.radio-list label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- pills, avatars, empty ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; vertical-align: 2px; white-space: nowrap; }
.pill-open { background: var(--success-soft); color: var(--success); }
.pill-ended { background: var(--surface-2); color: var(--text-3); }
.pill-sched { background: var(--brand-soft); color: var(--brand); }
.pill-live { background: var(--success-soft); color: var(--success); }
.pill-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .3; } }
.avatar { width: clamp(48px, 22%, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: clamp(16px, 3vw, 32px); background: var(--brand-gradient); user-select: none; font-family: var(--display); }
.av-0 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.av-1 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.av-2 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.av-3 { background: linear-gradient(135deg, #14b8a6, #0ea5e9); }
.av-4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-5 { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.avatar-stack { display: flex; }
.avatar-stack .avatar { width: 30px; font-size: 12px; border: 2px solid var(--surface); margin-left: -8px; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.empty { padding: 32px 20px; text-align: center; color: var(--text-3); font-size: 14px; }
.empty .icon { width: 28px; height: 28px; color: var(--brand-1); display: block; margin: 0 auto 8px; }

/* ---------- app pages: top bar ---------- */
.app-page { background:
  radial-gradient(1000px 420px at 10% -12%, color-mix(in srgb, var(--brand-1) 14%, transparent), transparent 70%),
  radial-gradient(900px 420px at 100% -10%, color-mix(in srgb, var(--brand-3) 10%, transparent), transparent 70%),
  var(--bg); background-attachment: fixed; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.topbar .who { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.top-nav { display: flex; gap: 4px; margin-right: auto; margin-left: 18px; }
.top-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); text-decoration: none; }
.top-nav a:hover { background: var(--surface-2); color: var(--text); }
.top-nav a.on { background: var(--brand-soft); color: var(--brand); }
.top-nav .icon { width: 17px; height: 17px; }
.user-chip { display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--text); }
.user-chip .avatar { width: 30px; font-size: 12px; }
.container { max-width: 960px; margin: 0 auto; padding: 32px 24px 60px; }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 0 0 12px; font-family: var(--font); }

/* ---------- home ---------- */
.home { max-width: 1180px; margin: 0 auto; padding: 26px 24px 64px; }
.home-hero { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 30px 32px; color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 28px; align-items: end;
  background:
    radial-gradient(600px 300px at 0% 0%, rgb(255 255 255 / 18%), transparent 60%),
    radial-gradient(500px 340px at 100% 120%, color-mix(in srgb, var(--brand-3) 60%, transparent), transparent 70%),
    linear-gradient(135deg, var(--brand-1), var(--brand-2) 60%, var(--brand-3));
  box-shadow: 0 24px 60px -24px var(--brand-glow); }
.home-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgb(255 255 255 / 16%) 0 2px, transparent 3px) 0 0 / 26px 26px; mask-image: linear-gradient(to left, #000, transparent 55%); pointer-events: none; }
.home-hero > * { position: relative; z-index: 1; }
.eyebrow { font-size: 13px; font-weight: 600; opacity: .85; margin: 0 0 6px; letter-spacing: .01em; }
.home-hero h1 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 6px; font-weight: 800; line-height: 1.1; }
.home-hero .sub { margin: 0; opacity: .9; font-size: 15px; }
.hero-actions { display: grid; gap: 10px; }
.hero-actions .row { display: flex; gap: 8px; }
.hero-actions .input { background: rgb(255 255 255 / 14%); border: 1px solid rgb(255 255 255 / 24%); color: #fff; backdrop-filter: blur(10px); }
.hero-actions .input::placeholder { color: rgb(255 255 255 / 70%); }
.hero-actions .input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / 18%); }
.hero-actions .row .input { flex: 1; min-width: 0; }
.hero-or { display: flex; align-items: center; gap: 10px; font-size: 12px; opacity: .75; }
.hero-or::before, .hero-or::after { content: ''; flex: 1; height: 1px; background: rgb(255 255 255 / 28%); }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 22px; align-items: start; }
.home-col { display: grid; gap: 20px; min-width: 0; }
.sheet { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px 20px; min-width: 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-head h2 { font-size: 17px; margin: 0; display: flex; align-items: center; gap: 8px; }
.sheet-head h2 .icon { width: 19px; height: 19px; color: var(--brand-1); }
.sheet-head .count { font-family: var(--font); font-size: 12px; font-weight: 700; color: var(--text-3); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }

/* timeline */
.timeline { display: grid; }
.tl-item { display: grid; grid-template-columns: 62px 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 0; }
.tl-time { text-align: right; font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1.1; }
.tl-time small { display: block; font-family: var(--font); font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; }
.tl-rail { position: relative; align-self: stretch; }
.tl-rail::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: -14px; width: 2px; background: var(--border); }
.tl-item:last-child .tl-rail::before { display: none; }
.tl-rail i { position: absolute; left: 3px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-1); }
.tl-item.soon .tl-rail i { background: var(--brand-1); box-shadow: 0 0 0 5px var(--brand-soft); }
.tl-main .title { font-weight: 600; }
.tl-main .meta { font-size: 13px; color: var(--text-3); }
.tl-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.tl-day { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 8px 0 2px 92px; }

/* rooms */
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.room-tile { position: relative; border: 1px solid var(--border); border-radius: 18px; padding: 14px; display: grid; gap: 10px; background: var(--surface); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.room-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--brand-1) 40%, var(--border)); }
.room-tile .rt-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-tile .rt-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.room-tile .rt-icon .icon { width: 19px; height: 19px; }
.room-tile .rt-name { font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.room-tile .rt-live { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); min-height: 30px; }
.room-tile .rt-actions { display: flex; gap: 6px; }
.room-tile .rt-actions .btn { flex: 1; }
.room-tile .rt-menu { position: absolute; top: 10px; right: 10px; }
.room-new { border-style: dashed; place-content: center; text-align: center; color: var(--text-2); cursor: pointer; min-height: 150px; background: transparent; font-weight: 600; }
.room-new .icon { width: 26px; height: 26px; margin: 0 auto; color: var(--brand-1); }

/* your room */
.my-room { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 20px; color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--brand-1) 16%, transparent), transparent 70%),
              radial-gradient(360px 200px at 0% 100%, color-mix(in srgb, var(--brand-3) 10%, transparent), transparent 70%), var(--surface); }
.my-room .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.my-room h2 { margin: 4px 0 2px; font-size: 20px; }
.my-room .status { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; min-height: 30px; }
.room-link { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.room-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; }
.my-room .btn-row { display: flex; gap: 8px; }
.my-room .btn-row .btn { flex: 1; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface-2); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.stat span { font-size: 12px; color: var(--text-3); }

/* lists (recent meetings, members) */
.meeting-list { display: grid; }
.meeting-row { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border); }
.meeting-row:first-child { border-top: 0; }
.meeting-row .row-main { flex: 1; min-width: 0; }
.meeting-row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meeting-row .meta { font-size: 13px; color: var(--text-3); }
.meeting-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.row-icon .icon { width: 18px; height: 18px; }
.date-chip { width: 48px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; padding: 4px 0; line-height: 1.1; }
.date-chip span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.date-chip strong { font-size: 18px; font-family: var(--display); }
.member { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 14px; }
.member:first-child { border-top: 0; }
.member .avatar { width: 32px; font-size: 12px; flex: none; }
.member .m-main { flex: 1; min-width: 0; }
.member .m-main div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .m-mail { font-size: 12px; color: var(--text-3); }
.more-link { display: block; text-align: center; font-size: 13px; font-weight: 600; padding-top: 10px; text-decoration: none; cursor: pointer; background: none; border: 0; color: var(--brand); width: 100%; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.invite-text { white-space: pre-wrap; font-family: var(--font); font-size: 14px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.invite-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

/* ---------- sign-in ---------- */
.auth-wrap { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr); }
.auth-art { position: relative; overflow: hidden; color: var(--text); padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--room-ambient); border-right: 1px solid var(--border); }
.auth-art h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; margin: 0 0 12px; font-weight: 800; max-width: 520px; }
.auth-art p { color: var(--text-2); max-width: 470px; margin: 0; }
.auth-art .points { display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.auth-art .points span { display: flex; gap: 8px; align-items: center; }
.auth-art .points .icon { width: 18px; height: 18px; color: var(--brand-1); }
/* a small Mac-style meeting window */
.mac-win { max-width: 500px; margin-top: 26px; border-radius: 16px; background: rgb(255 255 255 / 70%); border: 1px solid rgb(255 255 255 / 80%); box-shadow: 0 30px 70px -30px rgb(14 13 36 / 40%), 0 0 0 1px rgb(14 13 36 / 5%); backdrop-filter: blur(16px); overflow: hidden; }
.mac-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid rgb(14 13 36 / 6%); font-size: 12px; font-weight: 600; color: var(--text-3); }
.mac-bar i { width: 11px; height: 11px; border-radius: 50%; }
.mac-bar i:nth-child(1) { background: #ff5f57; } .mac-bar i:nth-child(2) { background: #febc2e; } .mac-bar i:nth-child(3) { background: #28c840; }
.mac-bar span { margin-left: auto; margin-right: auto; padding-right: 50px; }
.mac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.mac-grid .t { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.mac-grid .t.g1 { background: linear-gradient(160deg, #e9d5ff, #c4b5fd 55%, #a5b4fc); }
.mac-grid .t.g2 { background: linear-gradient(160deg, #ccfbf1, #99f6e4 55%, #7dd3fc); }
.mac-grid .t.g3 { background: linear-gradient(160deg, #fde68a, #fdba74 55%, #fca5a5); }
.mac-grid .t.g4 { background: linear-gradient(160deg, #e0e7ff, #c7d2fe 55%, #bae6fd); }
.mac-grid .t.speak { outline: 2px solid var(--brand-1); outline-offset: -2px; }
.mac-grid .t b { position: absolute; left: 8px; bottom: 7px; font-size: 11px; font-weight: 600; color: #fff; background: rgb(14 13 36 / 45%); padding: 1px 8px; border-radius: 999px; }
.mac-grid .t .wave { position: absolute; right: 8px; bottom: 9px; display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.mac-grid .t .wave u { width: 3px; border-radius: 2px; background: #fff; animation: wave 1s ease-in-out infinite; }
.mac-grid .t .wave u:nth-child(2) { animation-delay: .15s; } .mac-grid .t .wave u:nth-child(3) { animation-delay: .3s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 12px; } }
.mac-dockbar { display: flex; justify-content: center; gap: 6px; padding: 4px 10px 12px; }
.mac-dockbar i { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(180deg, #fff, #eef0f6); border: 1px solid rgb(14 13 36 / 8%); box-shadow: 0 2px 4px rgb(14 13 36 / 8%); }
.mac-dockbar i.on { background: var(--brand-gradient); border-color: transparent; }
.mac-dockbar i.red { background: linear-gradient(180deg, #ff6b6b, #e5484d); border-color: transparent; }
.auth-side { display: grid; place-items: center; padding: 32px 20px; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h1 { font-size: 28px; margin: 26px 0 4px; font-weight: 800; }
.auth-card p.sub { color: var(--text-2); margin: 0 0 24px; }

/* ---------- branding settings page ---------- */
.settings-head h1 { margin: 0 0 4px; font-size: 28px; font-weight: 800; }
.settings-head p { margin: 0 0 22px; color: var(--text-2); }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.settings-form { padding: 24px; }
.logo-picker { display: flex; align-items: center; gap: 14px; }
.logo-box { width: 160px; height: 64px; border: 1px dashed var(--border); border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); font-size: 13px; overflow: hidden; }
.logo-box img { max-width: 140px; max-height: 48px; object-fit: contain; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; padding: 3px; }
.bg-tools { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.bg-tools .btn.on { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); }
.bg-opt { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2) center / cover no-repeat; display: grid; place-items: center; cursor: pointer; color: var(--text-2); font-size: 11px; font-weight: 600; gap: 2px; padding: 0; transition: transform .15s, box-shadow .15s; }
.bg-opt:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.bg-opt .icon { width: 18px; height: 18px; }
.bg-opt span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bg-opt.on { outline: 2.5px solid var(--brand-2); outline-offset: 1px; }
/* blur / no-effect / add-picture tiles: solid brand tile with a white symbol */
.bg-opt.icon-tile { background: var(--brand-gradient); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%); }
.bg-opt.icon-tile .icon { width: 30px; height: 30px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 15%)); }
.bg-opt.icon-tile.plain { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); box-shadow: none; }
.bg-opt.icon-tile.plain .icon { width: 26px; height: 26px; filter: none; }
.bg-opt.icon-tile:hover { filter: brightness(1.06); }
.bg-opt.busy::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgb(255 255 255 / 55%); animation: live 1s ease-in-out infinite; }
.dialog .bg-grid + input + .hint { margin-top: 6px; }
.logo-box.icon-box { width: 64px; height: 64px; font-size: 11px; text-align: center; }
.logo-box.icon-box img { max-width: 52px; max-height: 52px; border-radius: 12px; }
.rail-initial { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-gradient); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; }
.logo-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.logo-btns label.btn { cursor: pointer; }
.color-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.color-row input[type="color"] { width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: none; cursor: pointer; }
.color-row .input { width: 130px; font-family: ui-monospace, Consolas, monospace; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; }
.preview-card { position: sticky; top: 84px; }
.preview-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 8px; }
.mini-join { border-radius: 18px; padding: 18px; box-shadow: var(--shadow); display: grid; gap: 8px; border: 1px solid var(--border);
  background: radial-gradient(400px 220px at 0% 0%, color-mix(in srgb, var(--brand-1) 12%, transparent), transparent 70%), var(--surface); }
.mini-logo { height: 32px; display: flex; align-items: center; }
.mini-logo img { max-height: 32px; max-width: 150px; object-fit: contain; }
.mini-logo span { font-weight: 800; font-family: var(--display); }
.mini-title { font-size: 18px; font-weight: 800; margin-top: 6px; font-family: var(--display); }
.mini-host { font-size: 13px; color: var(--text-2); }
.mini-welcome { background: color-mix(in srgb, var(--brand-2) 12%, transparent); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.mini-input { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--text-3); }
.mini-btn { background: linear-gradient(135deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3)); color: #fff; font-weight: 600; text-align: center; border-radius: 10px; padding: 9px; font-size: 14px; }
.mini-powered { font-size: 11px; color: var(--text-3); text-align: center; }
.mini-call { margin-top: 12px; border-radius: 18px; padding: 12px 12px 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--room-ambient); border: 1px solid var(--border); }
.mini-tile { aspect-ratio: 16 / 10; background: rgb(255 255 255 / 80%); border: 1px solid rgb(14 13 36 / 6%); border-radius: 10px; outline: 2px solid transparent; outline-offset: -2px; }
.mini-tile.speaking { outline-color: var(--brand-1); }
.mini-tools { grid-column: 1 / -1; justify-self: center; display: flex; gap: 5px; background: rgb(255 255 255 / 70%); border: 1px solid rgb(14 13 36 / 6%); border-radius: 10px; padding: 4px 6px; }
.mini-tools i { width: 14px; height: 14px; border-radius: 4px; background: rgb(14 13 36 / 14%); }
.mini-tools i.on { background: var(--brand-2); }
.mini-tools i.leave { background: var(--danger); }
@media (max-width: 860px) { .settings-grid { grid-template-columns: 1fr; } .preview-card { position: static; } }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; line-height: 1.7; }
.legal h1 { font-size: 34px; margin: 8px 0 4px; font-weight: 800; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; }
.legal .updated { color: var(--text-3); font-size: 13px; margin-top: 0; }
.legal ul { padding-left: 20px; }
.draft-banner { background: #fff7e0; color: #7a5200; border: 1px solid #f3d27a; border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-contact { padding: 16px 20px; margin: 18px 0; }
.legal-links { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 10px; }
.legal-links a { color: var(--text-3); }

/* ---------- admin reports ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tab { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; }
.tab.active { background: var(--brand-soft); color: var(--brand); }
.report-row { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.report-row:last-child { border-bottom: 0; }
.report-main { flex: 1; min-width: 0; }
.report-main .title { font-weight: 600; }
.report-main .meta { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.report-main blockquote { margin: 8px 0 0; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; font-size: 14px; white-space: pre-wrap; }
.log-scroll { max-height: 60vh; overflow: auto; }

/* ---------- org branding bits ---------- */
.powered-by { display: inline-flex; gap: 4px; font-size: 12px; color: var(--text-3); text-decoration: none; }
.powered-by strong { color: var(--text-2); }
.powered-by:hover strong { color: var(--brand); }
.powered-wrap { text-align: center; margin-top: 14px; }

/* ---------- toast, dialogs, menus ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: color-mix(in srgb, var(--ink) 92%, transparent); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; z-index: 100; box-shadow: 0 12px 40px rgb(0 0 0 / 30%); max-width: calc(100% - 32px); backdrop-filter: blur(12px); border: 1px solid rgb(255 255 255 / 8%); animation: toast-in .25s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
.dialog { border: 1px solid var(--border); padding: 0; border-radius: 22px; background: var(--surface); color: var(--text); width: min(460px, calc(100% - 32px)); box-shadow: 0 30px 80px rgb(0 0 0 / 35%); }
.dialog[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.dialog::backdrop { background: rgb(10 9 24 / 55%); backdrop-filter: blur(4px); }
.dialog-body { padding: 22px 24px 24px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dialog-head h2 { font-size: 19px; margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.dialog.dialog-wide { width: min(760px, calc(100% - 32px)); }
.menu { position: absolute; background: var(--surface); color: var(--text); border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgb(0 0 0 / 40%); padding: 6px; min-width: 240px; z-index: 20; animation: pop .18s var(--ease); }
.menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; font-weight: 500; }
.menu button:hover { background: var(--surface-2); }
.menu .danger { color: var(--danger); }
.user-menu { top: 60px; right: 20px; position: fixed; }

/* ---------- meeting page: shared ---------- */
.room-page { background: var(--room-ambient); background-attachment: fixed; }
.status-msg { text-align: center; padding: 90px 20px; color: var(--text); }
.status-msg h1 { font-size: 26px; margin: 18px 0 6px; font-weight: 800; }
.status-msg p { color: var(--text-2); margin: 0 0 22px; }
.status-msg #status-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.wait-pulse { display: inline-grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--brand-soft); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-1) 40%, transparent); } 50% { box-shadow: 0 0 0 22px transparent; } }
#waiting-logo.org { width: auto; max-width: 72px; height: auto; max-height: 56px; object-fit: contain; }

/* ---------- pre-join ---------- */
.prejoin { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 400px); gap: 36px; align-items: center; max-width: 1140px; margin: 0 auto; padding: 32px 24px; }
.preview { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(500px 300px at 50% 40%, var(--brand-soft), transparent 70%), var(--tile-solid); border-radius: var(--radius-xl); overflow: hidden; display: grid; place-items: center; border: 1px solid var(--tile-line); box-shadow: 0 30px 80px -34px rgb(14 13 36 / 35%), 0 0 0 6px rgb(255 255 255 / 40%); }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview .avatar { width: 104px; height: 104px; font-size: 38px; box-shadow: 0 0 0 10px var(--brand-soft); }
.preview .preview-tools { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px); }
.preview .notice { position: absolute; top: 14px; left: 14px; right: 14px; background: rgb(0 0 0 / 60%); color: #fff; font-size: 13px; padding: 9px 12px; border-radius: 12px; backdrop-filter: blur(10px); }
.preview-name { position: absolute; left: 16px; top: 14px; font-size: 13px; font-weight: 600; color: #fff; background: rgb(0 0 0 / 40%); padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.mic-check { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--text-2); justify-content: center; }
.mic-check .icon { width: 18px; height: 18px; }
.level { flex: 1; max-width: 200px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.level-fill { height: 100%; background: var(--brand-gradient); transform-origin: left; transform: scaleX(0); transition: transform .08s linear; }
.field .level { max-width: none; margin-top: 6px; }
.join-card { background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--glass-line); border-radius: var(--radius-xl); padding: 26px; backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 30px 80px -34px rgb(14 13 36 / 30%); }
.prejoin h1 { font-size: 28px; margin: 0 0 4px; font-weight: 800; line-height: 1.15; }
.prejoin .host { color: var(--text-2); margin: 0 0 18px; }
.prejoin .logo { margin-bottom: 22px; }
.sched-note { display: flex; align-items: center; gap: 8px; color: var(--brand-1); font-weight: 600; font-size: 14px; margin: -8px 0 16px; }
.sched-note .icon { width: 17px; height: 17px; }
.welcome-note { background: var(--brand-soft); color: var(--text); border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: -4px 0 16px; }
.here-now { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); margin: -6px 0 16px; }
.here-now .avatar-stack .avatar { border-color: var(--tile-solid); }
.rec-notice { display: flex; align-items: center; gap: 8px; background: rgb(239 68 68 / 10%); color: #b91c1c; border: 1px solid rgb(239 68 68 / 35%); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; margin: 0 0 14px; }
.room-page[data-room="dark"] .rec-notice { color: #fca5a5; }
.joining-as { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); margin-bottom: 14px; }
.joining-as .avatar { width: 40px; font-size: 15px; }
.joining-label { font-size: 12px; color: var(--text-3); }
.joining-name { font-weight: 600; }
.join-card .btn-primary { height: 48px; font-size: 15px; border-radius: 14px; }

/* ---------- recording ---------- */
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; flex: none; animation: rec-blink 1.4s ease-in-out infinite; }
@keyframes rec-blink { 50% { opacity: .35; } }
.rec-badge { display: inline-flex; align-items: center; gap: 6px; background: rgb(239 68 68 / 12%); color: #b91c1c; border: 1px solid rgb(239 68 68 / 45%); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.room-page[data-room="dark"] .rec-badge { color: #fca5a5; }
.rec-points { margin: 0 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.btn-danger .rec-dot { background: #fff; animation: none; }
.report-link-row { padding: 4px 8px; border-top: 1px solid var(--border); }
.report-link-row .btn { color: var(--text-2); }

/* =====================================================================
   Meeting room
   [rail] [ meeting card: header / stage / controls ] [ people · chat · notes ]
   ===================================================================== */
.call { position: fixed; inset: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; padding: 14px; background: var(--room-ambient); color: var(--text); }
.call-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); min-height: 0; }
.rail-logo { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px; }
.rail-logo img { max-width: 34px; max-height: 34px; object-fit: contain; }
.rail-btn { position: relative; width: 42px; height: 42px; border-radius: 13px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; cursor: pointer; text-decoration: none; transition: background .15s, color .15s; }
.rail-btn:hover { background: var(--surface-2); color: var(--text); }
.rail-btn.on { background: var(--brand-2); color: #fff; box-shadow: 0 6px 16px -6px var(--brand-glow); }
.rail-btn.panel-open { background: var(--brand-soft); color: var(--brand); }
.rail-btn .icon { width: 21px; height: 21px; }
.rail-space { flex: 1; }
.meet-card { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow);
  --tile-bg: #eceef4; --tile-solid: #eceef4; --tile-line: transparent; --tile-text: #0e0d24; --tile-text-2: #4f4f73; }
.room-page[data-room="dark"] .meet-card { --tile-bg: #1d1c36; --tile-solid: #1d1c36; --tile-text: #f4f4fb; --tile-text-2: #c9c8e2; }
.call-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.call-header .title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.call-header .title-text { min-width: 0; }
.call-date { font-size: 12px; color: var(--text-3); font-weight: 500; }
.call-header .title { font-family: var(--display); font-weight: 700; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; line-height: 1.25; }
.call-header .org-mark { height: 36px; max-width: 120px; object-fit: contain; flex: none; border-radius: 10px; }
.call-header .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; font-family: var(--font); }
.chip .icon { width: 16px; height: 16px; }
button.chip { cursor: pointer; }
button.chip:hover { background: var(--surface-2); color: var(--text); }
.conn-banner { align-self: center; background: #b7791f; color: #fff; font-size: 13px; padding: 6px 14px; border-radius: 999px; }
.present-banner { align-self: center; display: inline-flex; align-items: center; gap: 10px; background: var(--brand-soft); color: var(--text); font-size: 13px; font-weight: 500; padding: 4px 4px 4px 12px; border-radius: 999px; }
.present-banner .icon { width: 16px; height: 16px; color: var(--brand); }
.present-banner .btn { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--brand-2); color: #fff; border: 0; font-size: 12px; }
.call-body { flex: 1; min-height: 0; display: flex; position: relative; }
.call-body > .stage { flex: 1 1 auto; min-width: 0; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgb(34 197 94 / 25%); animation: live 2s ease-in-out infinite; }

/* stage + tiles */
.stage { position: relative; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 12px; }
.stage[data-mode="grid"] .main-area, .stage[data-mode="grid"] .strip { display: none; }
.stage[data-mode="focus"] .grid { display: none; }
.stage[data-mode="focus"] { align-items: stretch; flex-direction: column; }
.main-area { flex: 1; min-width: 0; display: flex; }
.main-area .tile { flex: 1; }
.strip { height: 118px; flex: none; display: flex; flex-direction: row; gap: 10px; overflow: hidden; justify-content: flex-start; }
.strip .tile { height: 100%; aspect-ratio: 16 / 10; flex: none; border-radius: 16px; }
.strip .tile .name { font-size: 12px; left: 6px; bottom: 6px; padding: 2px 8px; }
.strip .avatar { width: 44px; font-size: 16px; }
.grid { --cols: 1; --rows: 1; width: 100%; height: 100%; display: grid; gap: 12px; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); }
.tile { position: relative; background: var(--tile-bg); border: 1px solid var(--tile-line); border-radius: 20px; overflow: hidden; display: grid; place-items: center; min-height: 0; outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .2s, box-shadow .3s; animation: tile-in .35s var(--ease); }
@keyframes tile-in { from { opacity: 0; transform: scale(.97); } }
.tile.speaking { outline-color: var(--brand-1); }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.local video { transform: scaleX(-1); }
.tile.cam-off video { display: none; }
.tile.cam-off .avatar { box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand-1) 8%, transparent); }
.tile.speaking.cam-off .avatar { animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--brand-1) 30%, transparent), 0 0 0 26px color-mix(in srgb, var(--brand-1) 10%, transparent); } }
.tile .name { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / 90%); color: #0e0d24; backdrop-filter: blur(10px); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgb(14 13 36 / 10%); }
.tile .name .icon { width: 15px; height: 15px; }
.tile .name .mic-off { color: var(--danger); }
.tile .name-text { overflow: hidden; text-overflow: ellipsis; }
.tile .badge-host { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 1px 7px; border-radius: 999px; background: var(--brand-gradient); }
.tile.screen { background: #05040d; }
.tile.screen video { object-fit: contain; }
.tile.pinned { outline-color: var(--brand-3); }
.tile .pin-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 12px; border: 0; background: rgb(10 9 24 / 55%); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; backdrop-filter: blur(10px); }
.tile .pin-btn .icon { width: 17px; height: 17px; }
.tile:hover .pin-btn, .tile .pin-btn:focus-visible, .tile.pinned .pin-btn { opacity: 1; }
.tile.pinned .pin-btn { background: var(--brand-2); }
@media (hover: none) { .tile .pin-btn { opacity: .85; } }
.tile-net { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #fff; }
.tile-net:not(:empty) { background: rgb(10 9 24 / 60%); padding: 4px 9px; border-radius: 999px; }
.tile.more { cursor: default; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; }
.more-avatars { display: flex; }
.more-avatars .avatar { width: 40px; font-size: 14px; border: 2px solid var(--tile-solid); margin-left: -10px; }
.more-avatars .avatar:first-child { margin-left: 0; }
.more-text { font-size: 14px; font-weight: 600; color: var(--tile-text-2); }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 4px; border-radius: 1px; background: color-mix(in srgb, var(--tile-text) 25%, transparent); }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 9px; } .bars i:nth-child(3) { height: 14px; }
.bars.q-good i.on { background: #4ade80; }
.bars.q-poor i.on { background: #fbbf24; }
.bars.q-lost i.on { background: #f87171; }
.tile .hand-badge { position: absolute; top: 10px; left: 10px; display: none; align-items: center; gap: 6px; background: #f59e0b; color: #1b1a33; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; animation: pop .25s var(--ease); }
.tile .hand-badge .icon { width: 15px; height: 15px; }
.tile.hand-up .hand-badge { display: inline-flex; }
.tile.hand-up .tile-net { top: 42px; }

/* your own shared screen: a calm card instead of a live copy (avoids the mirror tunnel) */
.share-note { display: none; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 12px; color: var(--tile-text-2); font-size: 14px; }
.share-note .icon { width: 30px; height: 30px; color: var(--brand-1); }
.share-note .btn { height: 34px; font-size: 13px; }
.share-note-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.share-note-actions .icon { width: 16px; height: 16px; color: inherit; }
.tile.self-screen { background: var(--tile-bg); }
.tile.self-screen video, .tile.self-screen .avatar { display: none; }
.tile.self-screen .share-note { display: flex; }
.strip .share-note { font-size: 12px; gap: 6px; }
.strip .share-note .btn { display: none; }
.tile.self-preview video { transform: none; }
.tile.self-preview .avatar { display: none; }

/* controls: timer chip | quiet round buttons, one accent for what's on | meeting code chip */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-group { display: flex; align-items: flex-end; gap: 8px; height: 46px; }
.tool { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; transform-origin: 50% 100%;
  transition: transform .25s cubic-bezier(.25, 1.5, .5, 1), margin .25s cubic-bezier(.25, 1.5, .5, 1), background .15s, box-shadow .2s; }
.tool .icon { width: 21px; height: 21px; }
/* macOS Dock: the button under the pointer grows most, its neighbours a little, the next ones a touch */
@media (hover: hover) {
  .toolbar .tool:hover { transform: translateY(-9px) scale(1.3); margin: 0 9px; z-index: 2; box-shadow: 0 14px 24px -12px rgb(14 13 36 / 45%); }
  .toolbar .tool:hover + .tool, .toolbar .tool:has(+ .tool:hover) { transform: translateY(-4px) scale(1.14); margin: 0 4px; }
  .toolbar .tool:hover + .tool + .tool, .toolbar .tool:has(+ .tool + .tool:hover) { transform: translateY(-1px) scale(1.05); margin: 0 1px; }
  .toolbar .tool:not(.active):not(.panel-open):not(.off):not(.tool-leave):not(.recording):not(.hand-up):hover { background: var(--surface-2); }
}
/* "launch" bounce when clicked */
.toolbar .tool.bounce { animation: dock-bounce .55s cubic-bezier(.3, .7, .4, 1); }
@keyframes dock-bounce { 0%, 100% { translate: 0 0; } 30% { translate: 0 -14px; } 55% { translate: 0 0; } 75% { translate: 0 -5px; } }
.tool.active, .tool.panel-open { background: var(--brand-2); border-color: transparent; color: #fff; box-shadow: 0 6px 16px -6px var(--brand-glow); }
.tool.off { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 28%, transparent); color: var(--danger); }
.tool.busy { opacity: .6; cursor: progress; }
.tool.hand-up { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.tool.recording { background: var(--danger); border-color: transparent; color: #fff; }
.tool-leave { width: auto; padding: 0 18px; border-radius: 999px; gap: 8px; display: inline-flex; align-items: center; background: var(--danger); border-color: transparent; color: #fff; font-weight: 600; font-size: 14px; margin-left: 6px; }
.tool-leave .label { display: inline; }
.tool-leave .icon { width: 19px; height: 19px; }
@media (hover: hover) { .toolbar .tool-leave:hover { background: #d13a3f; } }
/* mic / camera with a small arrow for picking devices (like the quick menus in Meet) */
.split { display: inline-flex; align-items: center; height: 46px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); padding-left: 2px; }
.split .tool { border-color: transparent; }
.tool-chev { width: 30px; height: 40px; border: 0; background: none; border-radius: 999px; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.tool-chev:hover { background: var(--surface-3); color: var(--text); }
.tool-chev .icon { width: 16px; height: 16px; }
.dev-menu { width: 380px; max-width: calc(100vw - 16px); padding: 8px; }
.menu .dev-quick button { white-space: nowrap; }
.call .dev-menu { transform: translateX(-50%); }
.dev-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); padding: 8px 10px 4px; }
.dev-title .icon { width: 15px; height: 15px; }
.menu button.dev-item { padding: 8px 10px; font-size: 14px; }
.dev-item .tick { width: 18px; height: 18px; color: var(--brand); flex: none; }
.dev-item .tick.off { visibility: hidden; }
.dev-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-quick { display: flex; gap: 6px; padding: 10px 4px 2px; margin-top: 6px; border-top: 1px solid var(--border); }
.menu .dev-quick button { width: auto; flex: 1; justify-content: center; gap: 6px; padding: 0 10px; height: 38px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.menu .dev-quick button .icon { width: 18px; height: 18px; }
.menu .dev-quick button.on { background: var(--brand-soft); border-color: var(--brand-2); color: var(--brand); }
.dev-empty { padding: 6px 10px; font-size: 13px; color: var(--text-3); }
.tool-badge { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
/* label above the button on hover */
.toolbar .tool:not(.tool-leave)::after { content: attr(aria-label); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; padding: 4px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; }
@media (hover: hover) { .toolbar .tool:hover::after { opacity: 1; } }
.mobile-only { display: none !important; }
.preview .tool { width: 46px; height: 46px; }
.code-chip span { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.call .menu { left: 50%; bottom: 96px; top: auto; right: auto; transform: translateX(-50%); animation: none; }
.call .person-menu { transform: none; bottom: auto; }

/* side panel */
.panel { width: 340px; min-height: 0; background: var(--surface); color: var(--text); border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); animation: panel-in .25s var(--ease); }
.panel-invite { margin: 4px 12px 12px; height: 46px; border-radius: 999px; }
@keyframes panel-in { from { opacity: 0; transform: translateX(14px); } }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 6px 16px; gap: 8px; }
.panel-head h2 { font-size: 16px; margin: 0; }
.panel-tabs { display: flex; gap: 2px; background: var(--surface-2); border-radius: 12px; padding: 3px; flex: 1; }
.panel-tabs button { flex: 1; border: 0; background: none; padding: 7px 8px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.panel-tabs button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.panel-tabs .icon { width: 15px; height: 15px; }
.panel-chat, .panel-people, .panel-notes { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-list { flex: 1; overflow-y: auto; padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.chat-empty { font-size: 13px; color: var(--text-3); background: var(--surface-2); border-radius: 14px; padding: 10px 12px; margin: 0; }
.chat-msg { max-width: 88%; align-self: flex-start; }
.chat-msg .who { font-size: 12px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; color: var(--text-2); margin: 0 0 3px 4px; }
.chat-msg .who time { font-weight: 400; font-size: 11px; color: var(--text-3); }
.chat-msg .text { font-size: 14px; white-space: pre-wrap; word-break: break-word; background: var(--surface-2); padding: 8px 12px; border-radius: 4px 16px 16px 16px; }
.chat-msg.mine { align-self: flex-end; }
.chat-msg.mine .who { justify-content: flex-end; margin: 0 4px 3px 0; }
.chat-msg.mine .text { background: var(--brand-gradient); color: #fff; border-radius: 16px 4px 16px 16px; }
.chat-msg.mine .text a { color: #fff; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-form .input { border-radius: 14px; }
.chat-form .btn { width: 44px; padding: 0; flex: none; border-radius: 14px; }
.notes-area { flex: 1; margin: 6px 12px 0; border: 1px solid var(--border); border-radius: 14px; padding: 12px; resize: none; background: var(--surface-2); outline: none; line-height: 1.55; font-size: 14px; }
.notes-area:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--brand-soft); }
.notes-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-size: 12px; color: var(--text-3); }
.people-scroll { flex: 1; overflow-y: auto; padding: 0 8px 8px; }
.people-sec-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); padding: 10px 10px 6px; }
.person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; }
.person:hover { background: var(--surface-2); }
.person .avatar { width: 34px; font-size: 13px; flex: none; }
.person .pname { flex: 1; min-width: 0; font-size: 14px; }
.person .pname div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .prole { font-size: 12px; color: var(--text-3); }
.person .picons { display: flex; align-items: center; gap: 6px; color: var(--text-3); }
.person .picons .icon { width: 17px; height: 17px; }
.person .picons .mic-off { color: var(--danger); }
.person .picons .hand { color: #f59e0b; }
.person .pmenu { width: 32px; height: 32px; padding: 0; }
.person .lobby-actions { display: flex; gap: 6px; }
.host-tools { border-top: 1px solid var(--border); padding: 12px; display: grid; gap: 10px; }
.person-menu { min-width: 220px; }

/* reactions */
.react-menu { padding: 8px; min-width: 0; }
.react-row { display: flex; gap: 4px; }
.react-row button { font-size: 26px; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 14px; transition: transform .15s var(--ease); }
.react-row button:hover { transform: scale(1.15); }
.reactions { position: absolute; left: 24px; bottom: 8px; width: 160px; height: 60%; pointer-events: none; overflow: hidden; }
.reaction { position: absolute; bottom: 0; display: flex; flex-direction: column; align-items: center; animation: float-up 3.2s ease-out forwards; }
.reaction .emoji { font-size: 40px; line-height: 1; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 30%)); }
.reaction .rname { font-size: 11px; background: rgb(10 9 24 / 60%); color: #fff; padding: 2px 8px; border-radius: 999px; margin-top: 4px; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
@keyframes float-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: 1; transform: translateY(-20px) scale(1.1); } 20% { transform: translateY(-50px) scale(1); } 80% { opacity: 1; } 100% { transform: translateY(-320px); opacity: 0; } }

/* waiting-to-join alert (hosts) */
.lobby-alert { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 4px 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text); animation: pop .25s var(--ease); max-width: 440px; }
.lobby-alert-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 4px; }
.lobby-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; flex: none; }
.lobby-btn .icon { width: 16px; height: 16px; }
.lobby-btn.deny { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.lobby-btn.admit { background: var(--brand-2); color: #fff; border: 0; }

/* ---------- whiteboard ---------- */
.main-area > .wb { flex: 1; min-width: 0; }
.wb { display: flex; flex-direction: column; gap: 8px; min-height: 0; color: var(--text); }
.wb-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.wb-tools, .wb-actions { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px; box-shadow: 0 6px 20px rgb(0 0 0 / 22%); min-width: 0; }
.wb-tools, .wb-actions { overflow-x: auto; scrollbar-width: none; }
.wb-tools::-webkit-scrollbar, .wb-actions::-webkit-scrollbar { display: none; }
.wb-btn { width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.wb-btn:hover { background: var(--surface-2); color: var(--text); }
.wb-btn.on { background: var(--brand-soft); color: var(--brand-1); }
.wb-btn:disabled { opacity: .35; cursor: default; background: none; }
.wb-btn .icon { width: 18px; height: 18px; }
.wb-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; flex: none; }
.wb-swatch { width: 26px; height: 26px; flex: none; border: 0; border-radius: 50%; background: none; padding: 3px; cursor: pointer; }
.wb-swatch i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 15%); }
.wb-swatch.on { box-shadow: 0 0 0 2px var(--brand-1); }
.wb-size i { display: block; border-radius: 50%; background: currentColor; }
.wb-size i.s0 { width: 4px; height: 4px; }
.wb-size i.s1 { width: 8px; height: 8px; }
.wb-size i.s2 { width: 13px; height: 13px; }
.wb-pages { display: flex; align-items: center; gap: 2px; }
.wb-page-label { font-size: 13px; color: var(--text-2); padding: 0 6px; white-space: nowrap; }
.wb-select { height: 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 13px; padding: 0 6px; margin: 0 2px; }
.wb-close { color: var(--danger); }
.wb .mod-only { display: none; }
.wb.wb-mod .mod-only { display: grid; }
.wb.wb-mod select.mod-only { display: block; }
.wb.wb-readonly .wb-tools { display: none; }
.wb.wb-readonly .wb-bar { justify-content: flex-end; }
.wb-area { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; overflow: hidden; }
.wb-canvas { display: block; background: #fff; border-radius: 16px; touch-action: none; cursor: crosshair; box-shadow: 0 20px 50px -18px rgb(0 0 0 / 55%); }
.wb[data-tool="text"] .wb-canvas { cursor: text; }
.wb[data-tool="eraser"] .wb-canvas { cursor: cell; }
.wb.wb-readonly .wb-canvas { cursor: default; }
.wb-cursors { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.wb-cursor { position: absolute; left: 0; top: 0; transition: transform .08s linear; }
.wb-cursor i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); border: 2px solid #fff; }
.wb-cursor span { position: absolute; left: 8px; top: 6px; background: var(--c); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.wb-text { position: absolute; min-width: 160px; max-width: 60%; background: rgb(255 255 255 / 92%); border: 1.5px dashed var(--brand-1); border-radius: 6px; padding: 2px 6px; font-family: var(--font); font-weight: 500; line-height: 1.25; resize: none; outline: none; field-sizing: content; }
.wb-viewonly { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgb(15 14 42 / 75%); color: #fff; font-size: 12px; padding: 4px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.wb-fit { position: absolute; right: 10px; bottom: 10px; }

/* ---------- annotation on shared screens ---------- */
.an { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.an-layer { position: absolute; }
.an-canvas { display: block; pointer-events: none; touch-action: none; }
.an.open.main .an-canvas { pointer-events: auto; cursor: crosshair; }
.an.open.main[data-tool="text"] .an-canvas { cursor: text; }
.an.open.main[data-tool="eraser"] .an-canvas { cursor: cell; }
.an-start { position: absolute; right: 10px; top: 10px; pointer-events: auto; background: rgb(10 9 24 / 70%); color: #fff; border-color: rgb(255 255 255 / 14%); border-radius: 999px; backdrop-filter: blur(10px); }
.an-start:hover { background: var(--brand-2); }
.an-start .icon { width: 16px; height: 16px; }
.an-bar { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); max-width: calc(100% - 16px); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; pointer-events: auto; z-index: 2; }
.an-group { display: flex; align-items: center; gap: 2px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 4px; box-shadow: 0 8px 24px rgb(0 0 0 / 35%); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.an-group::-webkit-scrollbar { display: none; }
.an .wb-swatch[data-color="#ffffff"] i { box-shadow: inset 0 0 0 1px rgb(0 0 0 / 30%); }
.an .wb-cursors { z-index: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .home-hero { grid-template-columns: 1fr; align-items: start; }
  .home-grid { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}
@media (max-width: 760px) {
  .prejoin { grid-template-columns: 1fr; gap: 20px; padding: 18px 14px; }
  .join-card { padding: 20px; }
  .home { padding: 16px 14px 48px; }
  .home-hero { padding: 22px; border-radius: 22px; }
  .hero-actions .row { flex-wrap: wrap; }
  .container { padding: 20px 16px 48px; }
  .topbar { padding: 10px 14px; }
  .top-nav { margin-left: 6px; }
  .top-nav a span, .user-chip .name { display: none; }
  .user-chip { padding: 3px; }
  .tl-item { grid-template-columns: 50px 18px minmax(0, 1fr); }
  .tl-actions { grid-column: 3; justify-content: flex-start; }
  .tl-day { padding-left: 78px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  /* phone: the meeting card fills the screen, the rail becomes a row of tabs underneath */
  .call { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .call-rail { grid-row: 2; flex-direction: row; justify-content: space-around; padding: 4px 6px; border-radius: 18px; }
  .rail-logo, .call-rail .rail-btn.on, .rail-space { display: none; }
  .meet-card { padding: 10px; gap: 8px; border-radius: 20px; }
  .call-header .title { font-size: 16px; }
  .call-header .meta .chip:not(.net) { display: none; }
  .lobby-alert { max-width: 200px; }
  .toolbar { justify-content: center; }
  .tool-group { gap: 5px; }
  .tool { width: 40px; height: 40px; }
  .tool .icon { width: 19px; height: 19px; }
  .tool-leave { padding: 0 12px; margin-left: 2px; }
  .tool-leave .label, .code-chip, .timer-chip { display: none; }
  .toolbar .tool::after { display: none; }
  .desktop-only { display: none !important; }
  .mobile-only { display: grid !important; }
  .call .menu { bottom: 130px; }
  .panel { position: fixed; inset: 0; width: auto; margin: 0; border-radius: 0; z-index: 25; }
  .reactions { left: 10px; }
  .stage[data-mode="focus"] { flex-direction: column; }
  .strip { width: auto; flex-direction: row; height: 92px; justify-content: flex-start; }
  .strip .tile { height: 100%; aspect-ratio: auto; flex: 1 1 0; min-width: 0; }
  .present-banner { margin: 0 8px 8px; font-size: 13px; }
  .grid { gap: 8px; }
  .tile { border-radius: 18px; }
  .meeting-row { flex-wrap: wrap; }
  .meeting-row .actions { width: 100%; justify-content: flex-start; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .wb-bar { flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 6px; }
  .wb-tools, .wb-actions { justify-content: flex-start; overflow-x: auto; }
  .wb-btn { width: 32px; height: 32px; }
  .wb-select { font-size: 12px; }
}
