@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(fonts/inter-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: dark;
  --bg: #0e0f10; --panel: #151618; --card: #1b1c1f; --raised: #232528; --hover: rgb(255 255 255 / 0.06);
  --text: #ececea; --text2: #a9a9a3; --muted: #6f6f6a;
  --line: rgb(255 255 255 / 0.08); --line2: rgb(255 255 255 / 0.15);
  --accent: #7d95f5; --accent-soft: rgb(125 149 245 / 0.14); --neg: #f0635f; --ok: #4cc38a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font: 14px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 7px;
  border: 1px solid var(--line2); background: var(--card); cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--raised); }
.btn.primary { background: var(--accent); border-color: transparent; color: #0b0d17; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--neg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn:disabled { opacity: 0.5; cursor: default; }
input[type=text] { height: 36px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line2); background: var(--card); outline: none; width: 100%; }
input[type=text]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- home / lobby / transcript pages ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; margin-bottom: 4px; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.sub { color: var(--text2); margin: 0 0 28px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.card h2 { font-size: 13px; font-weight: 600; color: var(--text2); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.rooms { list-style: none; margin: 0; padding: 0; }
.rooms li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.rooms li:first-child { border-top: 0; }
.rooms .t { flex: 1; min-width: 0; }
.rooms .t b { display: block; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rooms .t span { color: var(--muted); font-size: 12.5px; }
.checks { display: flex; gap: 18px; margin: 14px 0 18px; color: var(--text2); }
.checks label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.lobby { max-width: 420px; }
.lobby h1 { font-size: 22px; margin: 0 0 4px; font-weight: 650; }
.lobby .row, .checks { flex-wrap: wrap; }
.checks { row-gap: 8px; }

.tx-page .line { padding: 8px 0; border-top: 1px solid var(--line); }
.tx-page .line:first-child { border-top: 0; }

/* ---------- in the meeting ---------- */
.room { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr 360px; grid-template-rows: 48px 1fr 64px;
  grid-template-areas: "top side" "stage side" "bar side"; }
.room.no-side { grid-template-columns: 1fr 0; }
.room.no-side .side { display: none; }
.top { grid-area: top; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.top .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.top .grow { flex: 1; }
.stage { grid-area: stage; position: relative; padding: 12px; overflow: hidden; display: flex; min-width: 0; min-height: 0; }
.lay { flex: 1; position: relative; min-width: 0; min-height: 0; }
.tile { position: relative; background: var(--card); border-radius: 12px; overflow: hidden; min-height: 0; display: flex;
  align-items: center; justify-content: center; outline: 2px solid transparent; transition: outline-color 0.15s; }
.lay > .tile { position: absolute; left: 0; top: 0; container-type: size;
  transition: transform 0.28s var(--ease), width 0.28s var(--ease), height 0.28s var(--ease), outline-color 0.15s; }
.lay > .tile.off { display: none; }
.tile.speaking { outline-color: var(--ok); }
.tile video { width: 100%; height: 100%; object-fit: cover; }
.tile.screen video, .tile.main video { object-fit: contain; }
.tile.main, .tile.screen { background: #000; }
.tile.local.mirror video { transform: scaleX(-1); }
.tile .avatar { width: clamp(34px, 36cqmin, 96px); height: clamp(34px, 36cqmin, 96px); border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: clamp(13px, 14cqmin, 36px); font-weight: 600; color: #0b0d17; }
.tile.main .avatar { width: clamp(56px, 22cqmin, 140px); height: clamp(56px, 22cqmin, 140px); font-size: clamp(20px, 8cqmin, 52px); }
.tile .label { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 6px; background: rgb(0 0 0 / 0.55);
  font-size: 12.5px; display: flex; gap: 6px; align-items: center; max-width: calc(100% - 16px); z-index: 1; }
.tile .label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .mic-off { color: var(--neg); }
.tile.in-strip .label { left: 5px; bottom: 5px; font-size: 11.5px; padding: 1px 6px; }
.tile:fullscreen { background: #000; border-radius: 0; outline: 0; }
.tile:fullscreen video { object-fit: contain; }
.tile:fullscreen .avatar { width: 160px; height: 160px; font-size: 60px; }
/* the buttons on a tile: focus, full screen, hide the filmstrip */
.tc { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; z-index: 2; }
.tile:hover .tc, .tile.touched .tc, .tile:focus-within .tc, .tile:fullscreen .tc { opacity: 1; }
/* Full screen: macOS slides its menu bar over the top edge when the mouse goes there, so the buttons sit at the bottom */
.tile:fullscreen .tc { top: auto; bottom: 18px; right: 18px; }
.tile:fullscreen .tc button { width: 40px; height: 40px; border-radius: 10px; }
.tile:fullscreen .presenting { top: 56px; }
.tc button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgb(0 0 0 / 0.55); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tc button:hover { background: rgb(0 0 0 / 0.8); }
.tile:not(:has(video)) .tc .needs-video { display: none; }
.tile.in-strip .tc { top: 5px; right: 5px; }
.tile.in-strip .tc button { width: 26px; height: 26px; }
@media (hover: none) { .tile:hover:not(.touched):not(:fullscreen) .tc { opacity: 0; } }
/* "+N others": the people on the next page */
.tile.more { cursor: pointer; flex-direction: column; gap: 6px; background: var(--raised); border: 1px solid var(--line); }
.tile.more:hover { background: #2b2d31; }
.tile.more .faces { display: flex; padding-left: 10px; }
.tile.more .faces i { width: clamp(28px, 24cqmin, 48px); height: clamp(28px, 24cqmin, 48px); border-radius: 50%; margin-left: -10px;
  display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 600; font-size: clamp(11px, 9cqmin, 17px);
  color: #0b0d17; box-shadow: 0 0 0 3px var(--raised); }
.tile.more b { font-weight: 600; color: var(--text2); font-size: clamp(11.5px, 9cqmin, 15px); }
.tile.more.off { display: none; }
.pager { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2px; z-index: 3;
  background: var(--raised); border: 1px solid var(--line2); border-radius: 18px; padding: 3px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pager.vertical { flex-direction: column; }
.pager.off { display: none; }
.pager span { padding: 0 4px; color: var(--text2); }
.pager button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; display: flex;
  align-items: center; justify-content: center; }
.pager button:hover:not(:disabled) { background: var(--hover); }
.pager button:disabled { opacity: 0.3; cursor: default; }
/* your own screen share: say so, and offer to stop */
.presenting { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; align-items: center;
  background: rgb(20 21 23 / 0.88); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 6px 6px 12px; white-space: nowrap; font-size: 13px; }
.presenting .btn { height: 28px; font-size: 12.5px; }
.tile.in-strip .presenting { display: none; }

.bar { grid-area: bar; display: flex; align-items: center; justify-content: center; gap: 10px; border-top: 1px solid var(--line); }
.ctl { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: var(--card); cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.ctl:hover { background: var(--raised); }
.ctl.off { background: #3a1d1d; border-color: transparent; color: var(--neg); }
.ctl.on { background: var(--accent-soft); color: var(--accent); }
.ctl.leave { background: var(--neg); border-color: transparent; color: #fff; width: 64px; border-radius: 22px; }
.ctl svg { width: 20px; height: 20px; }

.side { grid-area: side; border-left: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.side header { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px; height: 48px; border-bottom: 1px solid var(--line); flex: none; }
.side header b { flex: 1; font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-dot.on { background: var(--neg); box-shadow: 0 0 0 3px rgb(240 99 95 / 0.2); }
.lines { flex: 1; overflow-y: auto; padding: 8px 16px 16px; }
.lines .empty { color: var(--muted); padding: 24px 0; text-align: center; }
.line { padding: 6px 0; }
.line .who { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; }
.line .who b { font-weight: 600; }
.line .who time { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.line .text { color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.line.interim .text { color: var(--text2); font-style: italic; }
.line.cont { padding-top: 0; }
.line.cont .who { display: none; }

#toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(20px); background: var(--raised);
  border: 1px solid var(--line2); padding: 8px 14px; border-radius: 8px; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.25s var(--ease); z-index: 10; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- chat, live badge, keys ---------- */
.only-chat .line:not(.chat), .only-chat.live-lines, .only-chat .live-lines { display: none; }
.lines.only-chat:not(:has(.line.chat))::after, #wrap.only-chat #lines:not(:has(.line.chat))::after {
  content: 'No messages yet.'; display: block; color: var(--muted); padding: 24px 0; text-align: center; }
.only-chat .empty { display: none; }
.btn.msg-only { height: 28px; padding: 0 8px; font-size: 12.5px; color: var(--text2); }
.btn.msg-only.on { color: var(--accent); background: var(--accent-soft); }
.line.chat .text { color: var(--text); }
.line .tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); background: var(--accent-soft);
  padding: 0 6px; border-radius: 4px; line-height: 16px; }
.chatform { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); flex: none; }
.chatform input { flex: 1; min-width: 0; height: 34px; }
.chatform .btn { height: 34px; padding: 0 10px; }
.ctl { position: relative; }
.ctl .unread { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--neg);
  box-shadow: 0 0 0 2px var(--card); }
.ctl.busy { opacity: 0.6; cursor: progress; }
.badge-live { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #fff;
  background: var(--neg); border-radius: 4px; padding: 0 6px; line-height: 17px; vertical-align: 1px; }
.live-lines { border-style: dashed; }
.live-lines .line { border-top: 0; }
#keyout { margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line2); }
#keyout p { margin: 0 0 8px; }
#keyout code, #keyout pre { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
#keyout code.key { background: var(--raised); padding: 2px 6px; border-radius: 5px; word-break: break-all; }
#keyout pre { margin: 0 0 8px; padding: 10px; background: var(--bg); border-radius: 6px; overflow-x: auto; white-space: pre; }

@media (max-width: 820px) {
  .room { grid-template-columns: 1fr; grid-template-rows: 48px 1fr 38vh 64px; grid-template-areas: "top" "stage" "side" "bar"; }
  .room.no-side { grid-template-columns: 1fr; grid-template-rows: 48px 1fr 0 64px; }
  .side { border-left: 0; border-top: 1px solid var(--line); }
  .room:not(.no-side) { grid-template-rows: 48px 1fr 46vh 64px; }
}

/* ---------- rich chat text, mentions, composer ---------- */
.line.chat .text { white-space: normal; }
.line .text code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--raised); border-radius: 4px; padding: 1px 4px; }
.line .text pre { margin: 4px 0; padding: 8px 10px; background: var(--raised); border-radius: 7px; overflow-x: auto; white-space: pre; }
.line .text pre code { background: none; padding: 0; }
.line .text a { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.mention { color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 0 3px; font-weight: 500; }
.mention.me { color: #1a1300; background: #f5c451; }
.line.mentioned { background: rgb(245 196 81 / 0.08); box-shadow: inset 3px 0 0 #f5c451; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.composer { position: relative; flex: 1; min-width: 0; display: flex; }
.chatform textarea { flex: 1; min-width: 0; min-height: 34px; max-height: 140px; resize: none; padding: 7px 12px; border-radius: 7px;
  border: 1px solid var(--line2); background: var(--card); color: inherit; font: inherit; line-height: 1.4; outline: none; }
.chatform textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chatform { align-items: flex-end; }
.mention-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--raised); border: 1px solid var(--line2);
  border-radius: 9px; padding: 4px; z-index: 5; box-shadow: 0 8px 24px rgb(0 0 0 / 0.4); }
.mention-pop button { display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.mention-pop button.sel, .mention-pop button:hover { background: var(--hover); }
.mention-pop i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 10px;
  font-weight: 700; color: #0b0d17; flex: none; }

/* ---------- hands, reactions, recording, popovers ---------- */
.bar .ctl { position: relative; }
.ctl.popped { background: var(--raised); border-color: var(--accent); }
.ctl#hand.on { background: #3b3115; color: #f5c451; border-color: #f5c451; }
.ctl .rec-dot { position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--neg);
  border: 2px solid var(--card); animation: recblink 2s infinite; }
.ctl .rec-dot[hidden] { display: none; }
.room > .popover { position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%); z-index: 8; background: var(--raised);
  border: 1px solid var(--line2); border-radius: 12px; padding: 10px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.45); max-width: calc(100vw - 24px); }
.room:not(.no-side) > .popover { left: calc((100% - 360px) / 2); }
#pop-react { display: flex; gap: 2px; padding: 6px; }
#pop-react[hidden], .room > .popover[hidden] { display: none; }
.emo { width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; font-size: 26px; cursor: pointer; line-height: 1; }
.emo:hover { background: var(--hover); transform: scale(1.12); }
#pop-rec { width: 320px; }
#pop-rec p { margin: 6px 0 10px; }
.seg { display: flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.seg button { flex: 1; height: 32px; border: 0; background: none; color: var(--text2); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
#pop-rec .btn { width: 100%; justify-content: center; }
#pop-hands, .room > #pop-hands { top: 54px; bottom: auto; left: auto; right: 12px; transform: none; min-width: 240px; }
.queue { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: q; }
.queue li { display: flex; align-items: center; gap: 8px; padding: 4px 0; counter-increment: q; }
.queue li::before { content: counter(q) '.'; color: var(--muted); min-width: 16px; font-variant-numeric: tabular-nums; }
.queue .who { flex: 1; }
.queue .btn { height: 26px; padding: 0 8px; font-size: 12.5px; }
.btn.ghost.hands, .btn.ghost.hands:hover, .btn.ghost.hands.popped { color: #ffd772; background: #2e2712; border: 1px solid #f5c451; font-weight: 600; }
.btn.ghost.hands.nudge { animation: nudge 1.4s var(--ease); }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgb(245 196 81 / 0); } 25% { box-shadow: 0 0 0 6px rgb(245 196 81 / 0.35); } 60% { box-shadow: 0 0 0 10px rgb(245 196 81 / 0); } }
.rec-pill { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: #fff; background: var(--neg); border: 0; border-radius: 12px;
  padding: 2px 10px; font-family: inherit; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; max-width: 40vw; cursor: default; }
.rec-pill[hidden] { display: none; }
.rec-pill span { overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.rec-pill .dot, .notice .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: recblink 1.6s infinite; }
.rec-pill.mine { cursor: pointer; }
.rec-pill.mine u { text-decoration: none; background: rgb(255 255 255 / 0.22); border-radius: 8px; padding: 0 7px; margin-right: -6px; }
.rec-pill.mine:hover u { background: rgb(255 255 255 / 0.35); }
@keyframes recblink { 50% { opacity: 0.45; } }
.popover.menu { display: flex; flex-direction: column; padding: 4px; min-width: 200px; }
.popover.menu button { display: flex; gap: 10px; align-items: center; padding: 10px; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.popover.menu button:hover:not(:disabled) { background: var(--hover); }
.popover.menu svg { width: 18px; height: 18px; flex: none; }
/* the settings menu: one row per setting, its state on the right */
#pop-settings { width: 300px; }
#pop-settings button { min-height: 46px; }
#pop-settings button > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#pop-settings small { color: var(--muted); font-size: 12px; line-height: 1.35; }
#pop-settings small:empty { display: none; }
#pop-settings button:disabled { cursor: default; }
#pop-settings button:disabled .sw { opacity: 0.45; }
#pop-settings button.busy { cursor: progress; opacity: 0.7; }
#pop-settings em { font-style: normal; flex: none; }
#pop-settings .go { color: var(--muted); font-size: 20px; line-height: 1; }
#pop-settings .rec-time { color: var(--neg); font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
#pop-settings button.recording { color: var(--neg); }
.sw { position: relative; width: 34px; height: 20px; border-radius: 10px; background: var(--line2); transition: background 0.15s; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.15s var(--ease); }
.sw.on { background: var(--accent); }
.sw.on::after { transform: translateX(14px); }
/* "this call is being recorded": stays until dismissed */
.notice { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / 0.45); }
.notice[hidden] { display: none; }
.notice .box { width: min(420px, 100%); background: var(--raised); border: 1px solid var(--line2); border-radius: 14px; padding: 18px;
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.5); }
.notice b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.notice .dot { width: 10px; height: 10px; background: var(--neg); }
.notice p { margin: 10px 0 16px; color: var(--text2); line-height: 1.45; }
.notice .row { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.tile .hand { position: absolute; top: 8px; left: 8px; z-index: 2; background: rgb(24 22 16 / 0.82); color: #ffd772; font-weight: 700; font-size: 13px;
  border: 1.5px solid #f5c451; border-radius: 8px; padding: 1px 8px; }
.tile.in-strip .hand { top: 5px; left: 5px; font-size: 11.5px; padding: 1px 6px; }
.tile:has(> .hand:not([hidden])) { box-shadow: inset 0 0 0 2px #f5c451; }
.reactions { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.reactions .float { position: absolute; bottom: 8px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: floatup 3.2s var(--ease) forwards; }
.reactions .float span { font-size: 34px; line-height: 1; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.4)); }
.reactions .float small { font-size: 11px; color: #fff; background: rgb(0 0 0 / 0.55); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
@keyframes floatup { 0% { transform: translate(0, 20px) scale(0.6); opacity: 0; } 12% { transform: translate(0, 0) scale(1.1); opacity: 1; }
  75% { opacity: 1; } 100% { transform: translate(var(--drift, 0), -55vh) scale(1); opacity: 0; } }
.tile .tile-react { position: absolute; right: 10px; bottom: 10px; z-index: 3; font-size: clamp(22px, 18cqmin, 54px); line-height: 1;
  animation: tilepop 2s var(--ease) forwards; pointer-events: none; }
@keyframes tilepop { 0% { transform: scale(0.3); opacity: 0; } 15% { transform: scale(1.15); opacity: 1; } 80% { opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@media (max-width: 560px) {
  .bar { gap: 6px; }
  .bar .ctl { width: 40px; height: 40px; }
  .bar .ctl.leave { width: 52px; }
  #pop-settings { width: min(300px, calc(100vw - 24px)); }
  .room > .popover, .room:not(.no-side) > .popover { left: 50%; }
  .top #invite { padding: 0 8px; }
  .top #invite .lbl { display: none; }
  .top:has(.rec-pill:not([hidden])) .count { display: none; }
  .rec-pill { max-width: none; flex: 0 1 auto; }
}
.ctl[hidden], .btn[hidden], .popover.menu button[hidden] { display: none; }
@media (max-width: 400px) {
  .bar { gap: 4px; }
  .bar .ctl { width: 38px; height: 38px; }
  .bar .ctl.leave { width: 48px; }
  .top { gap: 6px; padding: 0 10px; }
}

/* ---------- transcript switch, devices ---------- */
.tx-pill { color: var(--text2); border: 1px solid var(--line2); border-radius: 12px; padding: 1px 10px; font-size: 12.5px; white-space: nowrap; }
.tx-pill[hidden], .live-dot[hidden] { display: none; }
#pop-devices { width: 320px; }
.devices { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.devices label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text2); }
.devices select { height: 34px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); color: var(--text); padding: 0 8px; font: inherit; max-width: 100%; }
.meter { height: 6px; border-radius: 3px; background: var(--card); overflow: hidden; margin-bottom: 12px; }
.meter i { display: block; height: 100%; width: 0; background: var(--ok); transition: width 0.08s linear; }
.meter.idle { opacity: 0.4; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text2); cursor: pointer; margin-bottom: 10px; }
#pop-devices .btn { width: 100%; justify-content: center; }
.devpick { margin: -6px 0 18px; color: var(--text2); }
.devpick summary { cursor: pointer; font-size: 13.5px; }
.devpick .devices { margin-bottom: 0; }
