/* AxisMeet — light Axis Meridi theme (white paper, ink, blue accent).
   Video tiles stay dark and sit on a light stage (Google-Meet style). */
:root {
  --paper:    #FFFFFF;
  --paper-2:  #F7F8FA;
  --stage:    #ECEEF1;
  --ink:      #0B0D10;
  --fg-1:     #111827;
  --fg-2:     #4B5563;
  --fg-3:     #5b6471;
  --fg-muted: #9CA3AF;
  --blue:     #2E5A9A;
  --blue-deep:#1E3E6E;
  --blue-soft:rgba(46,90,154,0.10);
  --line-soft: rgba(17,17,17,0.06);
  --line:      rgba(17,17,17,0.10);
  --line-strong: rgba(17,17,17,0.20);
  --ok:  #16a34a; --warn: #f59e0b; --err: #dc2626; --err-deep: #b91c1c;
  --tile: #15181F;            /* dark video surface */
  --tile-line: rgba(255,255,255,0.12);

  --font: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow-hover: 0 8px 24px rgba(15,23,42,0.08);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font); font-weight: 400;
  background: var(--paper); color: var(--fg-1);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.5;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: var(--blue-soft); }

.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(17,17,17,0.5); }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 24px; border-radius: 99px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  transition: transform .15s var(--ease-quart), background .2s var(--ease-quart), border-color .2s var(--ease-quart), opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--fg-1); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); background: var(--paper-2); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: var(--err-deep); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 12px; }
.btn-block { width: 100%; }

/* ---------- inputs ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--fg-2); }
.input, .select {
  height: 46px; padding: 0 14px; width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  color: var(--fg-1); outline: none; transition: border-color .2s var(--ease-quart);
}
textarea.input { height: auto; padding: 12px 14px; resize: none; line-height: 1.45; }
.input:focus, .select:focus { border-color: var(--blue); }
.input::placeholder { color: var(--fg-muted); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }

/* =====================================================================
   LANDING
   ===================================================================== */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(17,17,17,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 100% 78% at 50% -8%, #000 30%, transparent 76%);
          mask-image: radial-gradient(ellipse 100% 78% at 50% -8%, #000 30%, transparent 76%);
}
body.landing { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.nav {
  position: relative; z-index: 2; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; padding: 0 28px; border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: 0 0 26px; }
.brand .mark-img { width: 28px; height: 28px; object-fit: contain; display: block; flex: 0 0 28px; filter: brightness(0); }
.brand .brand-name { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 13px; color: var(--fg-2); }
.nav-right a { color: var(--fg-2); transition: color .2s var(--ease-quart); }
.nav-right a:hover { color: var(--ink); }

.hero-wrap {
  position: relative; z-index: 1; flex: 1 1 auto; width: 100%;
  max-width: 1140px; margin: 0 auto; padding: clamp(36px, 7vw, 92px) 28px 56px;
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(36px, 6vw, 92px); align-items: center;
}
@media (max-width: 880px) { .hero-wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; align-items: start; } }
.hero-copy .eyebrow { display: block; margin-bottom: 22px; }
.hero-copy h1 { font-size: clamp(33px, 4.6vw, 52px); font-weight: 200; letter-spacing: -0.045em; line-height: 1.05; color: var(--ink); }
.hero-copy p { font-size: clamp(15px, 1.35vw, 17px); font-weight: 300; color: var(--fg-2); max-width: 470px; margin: 22px 0 32px; line-height: 1.6; }
.trust { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.trust li { display: flex; align-items: center; gap: 13px; font-size: 13.5px; color: var(--fg-2); }
.trust .ti { width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid var(--line); border-radius: 99px; display: grid; place-items: center; color: var(--blue); }

.panel-card {
  position: relative; z-index: 1;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 26px; display: flex; flex-direction: column; gap: 20px;
}
.panel-head h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.panel-head .eyebrow { display: block; margin-bottom: 7px; }
.panel-head p { font-size: 13px; color: var(--fg-2); margin-top: 6px; font-weight: 300; line-height: 1.5; }
#panelBody { display: flex; flex-direction: column; gap: 14px; }
#panelBody form { display: flex; flex-direction: column; gap: 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--fg-muted); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }
.panel-divider { height: 1px; background: var(--line-soft); margin: 0 -26px; }
.join-row .field { gap: 9px; }
.join-row .row .input { flex: 1 1 auto; }
.row { display: flex; gap: 10px; }
.signed-in-as { font-size: 13px; color: var(--fg-2); }
.signed-in-as b { color: var(--ink); font-weight: 500; }
.err-text { color: var(--err); font-size: 12.5px; min-height: 4px; }
.btn-mymeridi { background: var(--paper); color: var(--fg-1); border: 1px solid var(--line); }
.btn-mymeridi:hover { border-color: var(--line-strong); background: var(--paper-2); }
.btn-mymeridi .mm { color: var(--blue); display: inline-flex; }

.pj-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }

.foot {
  position: relative; z-index: 1; flex: 0 0 auto; max-width: 1140px; width: 100%; margin: 0 auto; padding: 22px 28px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-muted);
}

/* host dashboard — scheduling + saved meetings */
.sched-wrap { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.sched-form { display: flex; flex-direction: column; gap: 11px; }
.mlist { display: flex; flex-direction: column; max-height: 230px; overflow-y: auto; }
.mlist .empty { padding: 12px 2px; text-align: left; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line-soft); }
.mrow:first-child { border-top: none; }
.mrow-info { flex: 1 1 auto; min-width: 0; }
.mname { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msub { font-size: 11.5px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow-acts { display: flex; gap: 6px; flex: 0 0 auto; }
.mrow-acts .iconbtn { width: 28px; height: 28px; }

/* =====================================================================
   MEETING ROOM
   ===================================================================== */
.room { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; background: var(--paper); }
.room-top {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 18px; border-bottom: 1px solid var(--line-soft); flex: 0 0 auto; background: var(--paper);
}
.room-top .meta { display: flex; align-items: center; gap: 14px; min-width: 0; }
.room-title { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; color: var(--fg-2); }
.chip button { color: var(--fg-2); display: inline-flex; }
.chip.copy:hover { border-color: var(--line-strong); color: var(--ink); cursor: pointer; }
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--fg-2); }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--fg-muted); }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); }
.rec-pill { display: none; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(220,38,38,0.10); color: var(--err); font-size: 12px; font-weight: 500; }
.rec-pill.on { display: inline-flex; }
.rec-pill .dot { background: var(--err); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.room-body { flex: 1 1 auto; display: flex; min-height: 0; }
.stage { flex: 1 1 auto; position: relative; padding: 16px; min-width: 0; background: var(--stage); }

/* video grid */
.grid { display: grid; gap: 12px; width: 100%; height: 100%; align-content: center; justify-items: stretch; }
.tile {
  position: relative; background: var(--tile); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; min-height: 0;
  transition: border-color .2s var(--ease-quart), box-shadow .2s var(--ease-quart);
}
.tile.speaking { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.tile video { width: 100%; height: 100%; object-fit: cover; background: #0B0D12; }
.tile.mirror video { transform: scaleX(-1); }
.tile.video-off video { display: none; }
.tile .avatar { position: absolute; inset: 0; display: none; place-items: center; background: var(--tile); }
.tile.video-off .avatar { display: grid; }
.tile .avatar .circle { width: 84px; height: 84px; border-radius: 99px; background: #232733; border: 1px solid rgba(255,255,255,0.10); display: grid; place-items: center; font-size: 30px; font-weight: 300; color: #cbd2dc; }
.tile .label {
  position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px;
  height: 28px; padding: 0 10px; background: rgba(11,13,18,0.62); backdrop-filter: blur(6px);
  border-radius: 99px; font-size: 12px; font-weight: 500; color: #fff; max-width: calc(100% - 20px);
}
.tile .label .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .badges { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.tile .badge { width: 28px; height: 28px; border-radius: 99px; background: rgba(11,13,18,0.62); backdrop-filter: blur(6px); display: none; place-items: center; color: #fff; }
.tile .badge.show { display: grid; }
.tile .badge.muted { color: #fca5a5; }
.tile .badge.hand { color: #fcd34d; }
.tile .label .mini { display: none; color: #fca5a5; }
.tile.aud-off .label .mini { display: inline-flex; }

.grid[data-n="1"] { grid-template-columns: minmax(0, 1100px); }
.grid[data-n="2"] { grid-template-columns: repeat(2, 1fr); }
.grid[data-n="3"], .grid[data-n="4"] { grid-template-columns: repeat(2, 1fr); }
.grid[data-n="5"], .grid[data-n="6"] { grid-template-columns: repeat(3, 1fr); }
.grid[data-n="7"], .grid[data-n="8"] { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .grid[data-n] { grid-template-columns: 1fr !important; } }

/* control bar */
.controls {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 76px; padding: 0 18px; border-top: 1px solid var(--line-soft); position: relative; background: var(--paper);
}
.ctrl {
  width: 52px; height: 52px; border-radius: 99px; background: var(--paper);
  border: 1px solid var(--line); color: var(--fg-1); display: grid; place-items: center;
  transition: background .18s var(--ease-quart), border-color .18s, transform .15s, color .18s; position: relative;
}
.ctrl:hover { background: var(--paper-2); border-color: var(--line-strong); }
.ctrl:active { transform: scale(0.95); }
.ctrl.off { background: #FBE9E9; border-color: #F3C2C2; color: var(--err); }
.ctrl.active { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); }
.ctrl.leave { background: var(--err); border-color: var(--err); color: #fff; width: 60px; }
.ctrl.leave:hover { background: var(--err-deep); }
.ctrl-group { display: flex; align-items: center; gap: 10px; }
.controls .right { position: absolute; right: 18px; display: flex; gap: 10px; }
.badge-count { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 600; display: none; align-items: center; justify-content: center; }
.badge-count.show { display: flex; }

/* side panel */
.panel { flex: 0 0 340px; width: 340px; border-left: 1px solid var(--line-soft); display: none; flex-direction: column; min-height: 0; background: var(--paper); }
.panel.open { display: flex; }
@media (max-width: 720px) { .panel { position: absolute; right: 0; top: 0; bottom: 0; z-index: 30; box-shadow: -20px 0 40px rgba(15,23,42,0.12); } }
.panel-tabs { display: flex; height: 50px; border-bottom: 1px solid var(--line-soft); flex: 0 0 auto; }
.panel-tabs button { flex: 1; font-size: 13px; font-weight: 500; color: var(--fg-2); border-bottom: 2px solid transparent; }
.panel-tabs button.active { color: var(--ink); border-bottom-color: var(--blue); }
.panel-tabs .closex { flex: 0 0 46px; color: var(--fg-2); }
.panel-body { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.tabview { display: none; flex-direction: column; height: 100%; }
.tabview.show { display: flex; }

.lobby-sec { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); background: var(--paper-2); }
.lobby-sec .eyebrow { margin-bottom: 10px; display: block; }
.plist { padding: 8px 0; }
.prow { display: flex; align-items: center; gap: 11px; padding: 9px 16px; }
.prow .pav { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 500; color: var(--fg-2); }
.prow .pinfo { flex: 1 1 auto; min-width: 0; }
.prow .pname { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .psub { font-size: 11px; color: var(--fg-muted); }
.prow .pstate { display: flex; gap: 7px; color: var(--fg-muted); }
.prow .pstate .s { display: none; } .prow .pstate .s.show { display: inline-flex; }
.prow .pstate .s.muted { color: var(--err); } .prow .pstate .s.hand { color: #d97706; }
.prow .pacts { display: flex; gap: 6px; }
.iconbtn { width: 30px; height: 30px; border-radius: 99px; border: 1px solid var(--line); color: var(--fg-2); display: grid; place-items: center; transition: .18s var(--ease-quart); background: var(--paper); }
.iconbtn:hover { color: var(--ink); border-color: var(--line-strong); }
.iconbtn.go { color: var(--ok); border-color: rgba(22,163,74,0.4); }
.iconbtn.no { color: var(--err); border-color: rgba(220,38,38,0.35); }

.chat { display: flex; flex-direction: column; height: 100%; }
.chat-msgs { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 13px; }
.msg .who { font-size: 11px; color: var(--fg-muted); margin-bottom: 3px; display: flex; gap: 8px; }
.msg .who b { color: var(--fg-2); font-weight: 500; }
.msg .body { font-size: 13.5px; font-weight: 400; line-height: 1.45; color: var(--fg-1); word-wrap: break-word; overflow-wrap: anywhere; }
.msg.system .body { color: var(--fg-muted); font-size: 12px; font-style: italic; }
.msg.me .body { color: var(--blue-deep); }
.chat-input { flex: 0 0 auto; padding: 12px 14px; border-top: 1px solid var(--line-soft); display: flex; gap: 9px; }
.chat-input .input { height: 42px; }
.chat-input .send { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 99px; background: var(--blue); color: #fff; display: grid; place-items: center; transition: .18s; }
.chat-input .send:hover { background: var(--blue-deep); }
.empty { padding: 28px 16px; text-align: center; color: var(--fg-muted); font-size: 13px; }

/* reactions overlay + picker */
.reactions { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.reaction-float { position: absolute; bottom: 10px; text-align: center; animation: floatUp 3s var(--ease-quart) forwards; will-change: transform, opacity; }
.reaction-float .emo { font-size: 40px; line-height: 1; display: block; }
.reaction-float .who { display: inline-block; font-size: 11px; color: #fff; background: rgba(11,13,18,.6); border-radius: 99px; padding: 1px 8px; margin-top: 2px; }
@keyframes floatUp { 0%{opacity:0;transform:translateY(0) scale(.5)} 12%{opacity:1;transform:translateY(-14px) scale(1)} 100%{opacity:0;transform:translateY(-44vh) scale(1.1)} }
.react-picker { position: absolute; bottom: 84px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 6px 8px; box-shadow: var(--shadow-hover); z-index: 20; }
.react-picker button { width: 40px; height: 40px; border-radius: 99px; font-size: 22px; line-height: 1; transition: transform .12s var(--ease-quart), background .15s; }
.react-picker button:hover { background: var(--paper-2); transform: scale(1.18); }

/* mute-while-talking nudge */
.nudge { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 8; background: #111; color: #fff; font-size: 13px; font-weight: 500; padding: 9px 16px; border-radius: 99px; box-shadow: var(--shadow-hover); animation: slideIn .25s var(--ease-expo); }

/* per-tile connection quality + hover actions */
.tile .qdot { position: absolute; left: 10px; top: 10px; width: 9px; height: 9px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 3px rgba(11,13,18,.35); display: none; z-index: 2; }
.tile.q-show .qdot { display: block; }
.tile .qdot.ok { background: #34d399; } .tile .qdot.mid { background: #fbbf24; } .tile .qdot.low { background: #f87171; }
.tile-acts { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; opacity: 0; transition: opacity .15s; z-index: 3; }
.tile:hover .tile-acts { opacity: 1; }
.tile-acts button { width: 28px; height: 28px; border-radius: 99px; background: rgba(11,13,18,.6); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; }
.tile-acts button.on { background: var(--blue); }

/* speaker layout */
.grid[data-layout="speaker"] { grid-template-columns: repeat(auto-fill, 128px); grid-auto-rows: 76px; justify-content: center; align-content: start; gap: 10px; }
.grid[data-layout="speaker"] .tile.is-main { grid-column: 1 / -1; aspect-ratio: 16/9; max-height: 62vh; width: 100%; margin: 0 auto; }
@media (max-width: 720px) { .grid[data-layout="speaker"] { grid-template-columns: repeat(auto-fill, 92px); grid-auto-rows: 56px; } }

/* raised-hands section */
.hand-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; }
.hand-row .ord { width: 20px; height: 20px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-deep); font-size: 11px; font-weight: 600; display: grid; place-items: center; flex: 0 0 20px; }

/* =====================================================================
   PRE-JOIN / LOBBY OVERLAY
   ===================================================================== */
.overlay { position: fixed; inset: 0; z-index: 50; background: var(--paper); display: grid; place-items: center; padding: 24px; }
.prejoin { width: 100%; max-width: 880px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 760px) { .prejoin { grid-template-columns: 1fr; max-width: 460px; } }
.preview { position: relative; aspect-ratio: 16/9; background: var(--tile); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.preview.video-off video { display: none; }
.preview .ph { position: absolute; inset: 0; display: none; place-items: center; color: #8b93a0; }
.preview.video-off .ph { display: grid; }
.preview .pv-controls { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 12px; }
.pv-btn { width: 46px; height: 46px; border-radius: 99px; background: rgba(11,13,18,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18); color: #fff; display: grid; place-items: center; }
.pv-btn.off { background: var(--err); border-color: var(--err); color: #fff; }
.prejoin-form { display: flex; flex-direction: column; gap: 16px; }
.prejoin-form h1 { font-size: 24px; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
.prejoin-form .sub { font-size: 13.5px; color: var(--fg-2); margin-top: -8px; }
.devsel { display: flex; flex-direction: column; gap: 10px; }
.bg-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bg-label { font-size: 12px; color: var(--fg-2); margin-right: 2px; }
.bg-opt { height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); color: var(--fg-1); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s; }
.bg-opt:hover { border-color: var(--line-strong); }
.bg-opt.on { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); }
.bg-up { display: inline-flex; align-items: center; }
.lobby-wait { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 28px; color: var(--fg-1); }
.spinner { width: 30px; height: 30px; border-radius: 99px; border: 2px solid var(--line); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* toasts / admit prompts */
.toasts { position: fixed; top: 70px; right: 18px; z-index: 80; display: flex; flex-direction: column; gap: 10px; width: 320px; max-width: calc(100vw - 36px); }
.toast { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px 15px; box-shadow: var(--shadow-hover); animation: slideIn .3s var(--ease-expo); }
.toast.warn { border-color: rgba(245,158,11,0.45); } .toast.err { border-color: rgba(220,38,38,0.4); } .toast.ok { border-color: rgba(22,163,74,0.4); }
.toast .t-msg { font-size: 13px; }
.toast .t-row { display: flex; align-items: center; gap: 10px; }
.toast .t-row .pav { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 500; color: var(--fg-2); }
.toast .t-acts { display: flex; gap: 8px; margin-top: 12px; }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
