/* ===== Meet with Me — design system ===== */
:root {
  --bg: #0b0d14;
  --bg-2: #10131c;
  --surface: #151927;
  --surface-2: #1c2133;
  --surface-3: #242a40;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f7;
  --muted: #8f95ab;
  --accent: #7c6cff;
  --accent-2: #38c8b0;
  --accent-grad: linear-gradient(135deg, #7c6cff 0%, #4fa3ff 100%);
  --danger: #ff5c6c;
  --danger-2: #d63c4b;
  --success: #3ddc84;
  --warn: #ffb648;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --toolbar-h: 76px;
  --header-h: 56px;
  --panel-w: 360px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.45;
  overflow: hidden;
}
#app { height: 100%; }
.view { height: 100%; }
.view[hidden], [hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hint { font-size: 13px; color: var(--muted); }
.hint.error, .error { color: var(--danger); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; color: var(--accent-2); }

.icon { width: 22px; height: 22px; flex: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 14px; background: var(--surface-2); color: var(--text);
  transition: background 0.15s, transform 0.1s, border-color 0.15s, opacity 0.15s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent-grad); color: #fff; box-shadow: 0 8px 24px rgba(124, 108, 255, 0.35); }
.btn-primary:hover { filter: brightness(1.08); background: var(--accent-grad); }
.btn-secondary { background: var(--surface-3); border-color: var(--border-strong); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-2); }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 10px; border: none; background: transparent; color: var(--muted); transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.primary { background: var(--accent); color: #fff; }
.icon-btn.primary:hover { filter: brightness(1.1); }
.link-btn { background: none; border: none; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.link-btn:hover { color: var(--text); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 500; color: var(--muted); }
input[type="text"], input[type="number"], textarea, select {
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 11px 13px; color: var(--text); outline: none; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus, input[type="number"]:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.25); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f95ab' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--surface-3); position: relative; cursor: pointer; transition: background 0.15s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.switch-label { display: flex; flex-direction: column; }
.switch-label small { color: var(--muted); font-size: 12px; }

/* ===== Brand ===== */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; font-size: 17px; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: var(--accent-grad); position: relative; box-shadow: 0 6px 16px rgba(124, 108, 255, 0.4); flex: none; }
.brand-mark::after { content: ''; position: absolute; inset: 8px 9px 8px 7px; border-radius: 4px 4px 4px 4px; background: #fff; clip-path: polygon(0 0, 62% 0, 62% 30%, 100% 10%, 100% 90%, 62% 70%, 62% 100%, 0 100%); }
.brand-mark.small { width: 24px; height: 24px; border-radius: 7px; }
.app-header { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--border); }

/* ===== Landing ===== */
.landing { overflow-y: auto; position: relative; }
.landing-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 520px; height: 520px; background: #5b4dff; top: -160px; left: -120px; }
.blob.b2 { width: 460px; height: 460px; background: #1fb8a3; bottom: -140px; right: -80px; animation-delay: -6s; }
.blob.b3 { width: 320px; height: 320px; background: #ff6c8f; top: 40%; left: 55%; opacity: 0.25; animation-delay: -12s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }
.landing-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 22px 40px; max-width: 1200px; margin: 0 auto; }
.landing-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.landing-nav a { text-decoration: none; }
.landing-nav a:hover { color: var(--text); }
.landing-main { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 40px 40px 60px; min-height: calc(100vh - 90px); }
.hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 30px; }
.start-card { background: rgba(21, 25, 39, 0.8); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; max-width: 560px; box-shadow: var(--shadow); }
.start-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.join-inline { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.join-inline input { flex: 1; }
.hero-visual { display: flex; justify-content: center; }
.mock { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); position: relative; }
.mock-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock-tile { aspect-ratio: 16/9; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; position: relative; overflow: hidden; }
.mock-tile span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.15); }
.mock-tile.t1 { background: linear-gradient(135deg, #2d2a6b, #4a3fb0); box-shadow: inset 0 0 0 2px var(--success); }
.mock-tile.t2 { background: linear-gradient(135deg, #1e4a44, #2c8a7c); }
.mock-tile.t3 { background: linear-gradient(135deg, #5a2a3f, #a0405f); }
.mock-tile.t4 { background: linear-gradient(135deg, #3f3a1e, #8a7c2c); }
.mock-poll { margin-top: 10px; background: var(--surface-2); border-radius: 12px; padding: 12px; }
.mock-poll-q { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.mock-bar { position: relative; height: 26px; border-radius: 7px; background: var(--surface-3); margin-top: 6px; overflow: hidden; font-size: 12px; display: flex; align-items: center; padding: 0 10px; justify-content: space-between; }
.mock-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(124,108,255,0.7), rgba(79,163,255,0.6)); border-radius: 7px; }
.mock-bar span, .mock-bar b { position: relative; }
.mock-music { position: absolute; top: -14px; right: 18px; background: var(--surface-3); border: 1px solid var(--border-strong); padding: 6px 12px; border-radius: 999px; font-size: 13px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent-2); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; height: 40%; }
.eq i:nth-child(2) { animation-delay: -0.2s; } .eq i:nth-child(3) { animation-delay: -0.4s; } .eq i:nth-child(4) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.features { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 20px 40px 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.feature-icon { font-size: 26px; margin-bottom: 10px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; }
.landing-footer { position: relative; z-index: 1; text-align: center; color: var(--muted); font-size: 13px; padding: 20px 20px 40px; }

/* ===== Lobby ===== */
.lobby { display: flex; flex-direction: column; }
.lobby-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 420px); gap: 40px; align-items: center; max-width: 1180px; width: 100%; margin: 0 auto; padding: 30px 32px; overflow-y: auto; }
.preview-col { display: flex; flex-direction: column; gap: 12px; }
.preview-wrap { position: relative; aspect-ratio: 16/9; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.preview-wrap video, .waiting-preview video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.preview-wrap.mirror video, .waiting-preview.mirror video, .tile.self.mirror video { transform: scaleX(-1); }
.preview-wrap.no-video video, .waiting-preview.no-video video { visibility: hidden; }
.preview-avatar { position: absolute; inset: 0; display: grid; place-items: center; background: var(--surface); }
.preview-avatar span { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 44px; background: var(--accent); }
.preview-avatar.small span { width: 64px; height: 64px; font-size: 24px; }
.preview-wrap:not(.no-video) .preview-avatar, .waiting-preview:not(.no-video) .preview-avatar { display: none; }
.preview-error { position: absolute; left: 12px; right: 12px; top: 12px; background: rgba(214, 60, 75, 0.9); padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.preview-controls { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.ctl { width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(20, 24, 38, 0.8); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; transition: background 0.15s; }
.ctl:hover { background: rgba(40, 46, 70, 0.9); }
.ctl.off { background: var(--danger); }
.ctl.off:hover { background: var(--danger-2); }
.level-meter { position: absolute; left: 14px; bottom: 22px; width: 6px; height: 36px; border-radius: 3px; background: rgba(0,0,0,0.5); overflow: hidden; }
.level-meter i { position: absolute; bottom: 0; left: 0; right: 0; height: 0%; background: var(--success); transition: height 0.08s linear; }
.device-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.device-row label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.device-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.device-label .icon { width: 15px; height: 15px; color: var(--accent-2); }
.device-row select { padding: 9px 30px 9px 12px; font-size: 13px; }
.join-col { display: flex; flex-direction: column; gap: 16px; }
.join-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.join-card h2 { font-size: 24px; }
.lobby-links { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 13px; }
.lobby-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== Music card ===== */
.music-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.music-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.music-head h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.music-head h3 .icon { width: 18px; height: 18px; color: var(--accent-2); }
.music-play { width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--accent-grad); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(124,108,255,0.35); }
.music-play svg { width: 18px; height: 18px; }
.stations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.station { border: 1px solid var(--border); background: var(--bg-2); border-radius: 10px; padding: 10px 12px; text-align: left; display: flex; flex-direction: column; gap: 2px; transition: border-color 0.15s, background 0.15s; }
.station b { font-size: 13px; font-weight: 600; }
.station small { font-size: 11px; color: var(--muted); }
.station:hover { border-color: var(--border-strong); }
.station.active { border-color: var(--accent); background: rgba(124, 108, 255, 0.12); }
.music-vol { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.music-vol .icon { width: 18px; height: 18px; }
.music-vol input[type="range"] { flex: 1; accent-color: var(--accent); }
.music-now { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* ===== Waiting ===== */
.waiting { display: flex; flex-direction: column; }
.waiting-main { flex: 1; display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.waiting-card { width: min(520px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 14px; text-align: center; box-shadow: var(--shadow); }
.waiting-card h2 { font-size: 22px; }
.waiting-card .music-card { text-align: left; }
.waiting-anim { display: flex; justify-content: center; gap: 8px; }
.waiting-anim span { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s ease-in-out infinite; }
.waiting-anim span:nth-child(2) { animation-delay: 0.15s; } .waiting-anim span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-8px); opacity: 1; } }
.waiting-preview { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.waiting-preview .preview-controls { bottom: 10px; }
.waiting-preview .ctl { width: 42px; height: 42px; }

/* ===== Meeting ===== */
.meeting { display: flex; flex-direction: column; background: var(--bg); }
.meet-header { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; gap: 12px; border-bottom: 1px solid var(--border); flex: none; }
.meet-header-left, .meet-header-right, .meet-header-center { display: flex; align-items: center; gap: 10px; min-width: 0; }
.meet-title-wrap { display: flex; flex-direction: column; min-width: 0; }
.meet-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.meet-id { background: none; border: none; padding: 0; color: var(--muted); font-size: 12px; text-align: left; letter-spacing: 0.04em; }
.meet-id:hover { color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); }
.badge .icon { width: 14px; height: 14px; }
.badge-rec { color: #fff; background: var(--danger); }
.badge-rec i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.meet-clock { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }
.meet-timer { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(56, 200, 176, 0.15); color: var(--accent-2); }
.meet-timer.urgent { background: rgba(255, 92, 108, 0.18); color: var(--danger); animation: pulse 1s infinite; }
.seg { display: inline-flex; background: var(--surface); border-radius: 10px; padding: 3px; border: 1px solid var(--border); }
.seg-btn { border: none; background: transparent; color: var(--muted); width: 34px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.seg-btn.active { background: var(--surface-3); color: var(--text); }
.seg-btn .icon { width: 18px; height: 18px; }
.music-pill { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.music-pill button { width: 26px; height: 26px; border-radius: 50%; border: none; background: var(--surface-3); color: var(--text); display: grid; place-items: center; }
.music-pill button svg { width: 14px; height: 14px; }
#btn-quality .icon { color: var(--success); }
#btn-quality.ok .icon { color: var(--warn); }
#btn-quality.bad .icon { color: var(--danger); }

.meet-body { flex: 1; display: flex; min-height: 0; }
.meet-main { flex: 1; position: relative; min-width: 0; display: flex; flex-direction: column; padding: 12px; gap: 10px; }
.tiles { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; min-height: 0; overflow: hidden; }
.stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.meet-main.speaker .tiles { flex: none; height: 120px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overflow-y: hidden; padding: 0 4px; scrollbar-width: thin; }
.meet-main.speaker .tiles .tile { width: 200px !important; height: 112px !important; flex: none; }
.meet-main.speaker .tiles:empty { display: none; }
.meet-main.speaker .stage .tile { width: 100%; height: 100%; max-width: 100%; }
.alone-hint { position: absolute; inset: 0; display: grid; place-items: end center; pointer-events: none; padding-bottom: 20px; }
.alone-card { pointer-events: auto; background: rgba(21, 25, 39, 0.92); backdrop-filter: blur(10px); border: 1px solid var(--border-strong); padding: 18px 22px; border-radius: 16px; text-align: center; max-width: 420px; box-shadow: var(--shadow); }
.alone-card { position: relative; padding-right: 30px; padding-left: 30px; }
.alone-card h3 { font-size: 16px; margin-bottom: 4px; }
.alone-actions { margin-top: 12px; display: flex; gap: 8px; justify-content: center; }
.alone-card-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 2px; }
.alone-card-tools .icon-btn, .alone-pill .icon-btn { width: 28px; height: 28px; border-radius: 8px; }
.alone-card-tools .icon { width: 16px; height: 16px; }
.alone-pill { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(21, 25, 39, 0.92); backdrop-filter: blur(10px); border: 1px solid var(--border-strong); font-size: 13px; color: var(--muted); box-shadow: var(--shadow); }
.alone-pill .icon { width: 16px; height: 16px; }

/* Tiles */
.tile { position: relative; width: var(--tile-w, 320px); height: var(--tile-h, 180px); background: var(--surface); border-radius: 14px; overflow: hidden; border: 2px solid transparent; transition: border-color 0.2s, box-shadow 0.2s; flex: none; }
.tile.speaking { border-color: var(--success); box-shadow: 0 0 0 1px rgba(61, 220, 132, 0.3); }
.tile.pinned { border-color: var(--accent); }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.tile.screen video { object-fit: contain; background: #000; }
.tile.no-video video { display: none; }
.tile-avatar { position: absolute; inset: 0; display: none; place-items: center; background: var(--surface-2); }
.tile.no-video .tile-avatar { display: grid; }
.tile-avatar span { width: clamp(40px, 30%, 96px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: clamp(16px, 2.6vw, 34px); color: #fff; }
.tile.speaking .tile-avatar span { box-shadow: 0 0 0 6px rgba(61, 220, 132, 0.35); }
.tile-name { position: absolute; left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); font-size: 12px; font-weight: 500; max-width: calc(100% - 16px); }
.tile-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-name .icon { width: 14px; height: 14px; color: var(--danger); }
.tile-name .icon.host { color: var(--warn); }
.tile-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.tile-badges span { padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.tile-badges .icon { width: 14px; height: 14px; }
.tile-hand { background: var(--warn) !important; color: #000; font-weight: 600; }
.tile-reaction { position: absolute; top: 8px; right: 8px; font-size: 28px; animation: pop 0.4s ease-out; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.tile-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.tile:hover .tile-actions { opacity: 1; }
.tile-actions button { width: 30px; height: 30px; border-radius: 8px; border: none; background: rgba(0, 0, 0, 0.6); color: #fff; display: grid; place-items: center; }
.tile-actions button .icon { width: 16px; height: 16px; }
.tile-actions button:hover { background: var(--accent); }
.tile-conn { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 7px; border-radius: 8px; background: rgba(0,0,0,0.55); color: var(--warn); }
.tile-conn .icon { width: 14px; height: 14px; }
.tile-conn.bad { color: var(--danger); }
.tile-conn.connecting { color: var(--muted); }
.tile .conn-spinner { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.35); color: var(--muted); font-size: 13px; gap: 8px; }
.tile .conn-spinner::before { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tile.self .tile-name { background: rgba(124, 108, 255, 0.55); }

/* Reactions layer */
.reactions-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-emoji { position: absolute; bottom: 20px; font-size: 40px; animation: floatUp 3s ease-out forwards; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.float-emoji small { font-size: 11px; color: var(--text); background: rgba(0,0,0,0.5); padding: 2px 6px; border-radius: 6px; }
@keyframes floatUp { 0% { transform: translateY(0) scale(0.6); opacity: 0; } 10% { opacity: 1; transform: translateY(-20px) scale(1); } 100% { transform: translateY(-70vh) scale(1.2); opacity: 0; } }

/* Side panel */
.side-panel { width: var(--panel-w); flex: none; border-left: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--border); }
.panel-tabs { display: flex; gap: 4px; }
.panel-tab { position: relative; background: transparent; border: none; color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.panel-tab.active { background: var(--surface-3); color: var(--text); }
.tab-badge, .tb-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; margin-left: 4px; }
.tab-badge.info, .tb-badge.info { background: var(--accent); }
.panel-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.panel-body[hidden] { display: none; }
.panel-scroll { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.panel-section-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin: 8px 0 4px; display: flex; justify-content: space-between; align-items: center; }
.panel-section-title .link-btn { text-transform: none; letter-spacing: 0; }
.empty-state { text-align: center; color: var(--muted); padding: 30px 16px; font-size: 14px; }
.empty-state .big { font-size: 34px; margin-bottom: 8px; }

/* Chat */
.chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { display: flex; flex-direction: column; gap: 3px; max-width: 92%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-meta { font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.msg-meta b { color: var(--text); font-weight: 600; }
.msg-meta .dm { color: var(--accent-2); }
.msg-body { background: var(--surface-2); padding: 8px 12px; border-radius: 12px 12px 12px 4px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.msg.mine .msg-body { background: var(--accent); color: #fff; border-radius: 12px 12px 4px 12px; }
.msg.mine .msg-body a { color: #fff; }
.msg-body a { color: var(--accent-2); }
.msg.system { align-self: center; max-width: 100%; }
.msg.system .msg-body { background: transparent; color: var(--muted); font-size: 12px; padding: 2px 8px; }
.chat-typing { height: 18px; padding: 0 14px; font-size: 12px; color: var(--muted); font-style: italic; }
.chat-compose { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-compose select { width: auto; max-width: 96px; flex: none; padding: 8px 24px 8px 8px; font-size: 12px; border-radius: 8px; }
.chat-compose textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; padding: 9px 12px; border-radius: 10px; line-height: 1.4; }
.chat-compose .icon-btn { flex: none; width: 40px; height: 40px; }

/* People */
.person { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; }
.person:hover { background: var(--surface-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; flex: none; }
.person-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.person-name b { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-name small { color: var(--muted); font-size: 12px; }
.person-status { display: flex; gap: 6px; align-items: center; color: var(--muted); }
.person-status .icon { width: 18px; height: 18px; }
.person-status .off { color: var(--danger); }
.person-status .hand { color: var(--warn); }
.person-status .icon-btn { width: 30px; height: 30px; }
.waiting-item { display: flex; align-items: center; gap: 10px; padding: 8px; background: rgba(255, 182, 72, 0.08); border: 1px solid rgba(255, 182, 72, 0.25); border-radius: 10px; }
.waiting-item .actions { display: flex; gap: 6px; }
.host-tools { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }

/* Polls */
.poll { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.poll-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.poll-q { font-weight: 600; font-size: 14px; }
.poll-meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.poll-status { padding: 2px 7px; border-radius: 999px; background: rgba(61, 220, 132, 0.15); color: var(--success); font-weight: 600; font-size: 11px; }
.poll-status.closed { background: var(--surface-3); color: var(--muted); }
.poll-options { display: flex; flex-direction: column; gap: 6px; }
.poll-opt { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); text-align: left; overflow: hidden; transition: border-color 0.15s; cursor: pointer; width: 100%; }
.poll-opt:hover { border-color: var(--border-strong); }
.poll-opt.chosen { border-color: var(--accent); }
.poll-opt .bar { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(124, 108, 255, 0.25); transition: width 0.4s ease; }
.poll-opt .check { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; flex: none; position: relative; }
.poll-opt.multi .check { border-radius: 5px; }
.poll-opt.chosen .check { border-color: var(--accent); background: var(--accent); }
.poll-opt.chosen .check .icon { width: 12px; height: 12px; color: #fff; }
.poll-opt .txt { flex: 1; position: relative; font-size: 14px; }
.poll-opt .pct { position: relative; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.poll-voters { font-size: 11px; color: var(--muted); padding-left: 40px; margin-top: -4px; }
.poll-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.poll-new { display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 14px; padding: 14px; }
.poll-new .opt-row { display: flex; gap: 6px; }
.poll-new .opt-row input { flex: 1; padding: 9px 11px; }
.poll-new .opt-row .icon-btn { width: 36px; height: 36px; flex: none; }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.checkline input { accent-color: var(--accent); }

/* Toolbar */
.toolbar { height: var(--toolbar-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-top: 1px solid var(--border); background: var(--bg-2); flex: none; gap: 12px; }
.toolbar-group { display: flex; align-items: center; gap: 6px; }
.toolbar-group.left, .toolbar-group.right { flex: 1; }
.toolbar-group.right { justify-content: flex-end; }
.split { display: flex; align-items: stretch; }
.tb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 66px; height: 58px; padding: 6px 8px; border: none; background: transparent; border-radius: 10px; color: var(--text); transition: background 0.15s; }
.tb:hover { background: var(--surface-2); }
.tb .tb-icon { display: grid; place-items: center; }
.tb .tb-icon .icon { width: 24px; height: 24px; }
.tb .tb-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tb.off .tb-icon { color: var(--danger); }
.tb.active { background: rgba(124, 108, 255, 0.18); }
.tb.active .tb-icon { color: var(--accent); }
.tb.sharing .tb-icon { color: var(--success); }
.tb-badge { position: absolute; top: 4px; right: 8px; }
.split .tb { border-radius: 10px 0 0 10px; min-width: 60px; }
.tb-chevron { width: 20px; border: none; background: transparent; color: var(--muted); border-radius: 0 10px 10px 0; display: grid; place-items: center; padding: 0; }
.tb-chevron:hover { background: var(--surface-2); color: var(--text); }
.tb-chevron .icon { width: 16px; height: 16px; }

/* Ended */
.ended { display: flex; flex-direction: column; }
.ended-main { flex: 1; display: grid; place-items: center; padding: 24px; }
.ended-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 34px; text-align: center; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.ended-card h2 { font-size: 24px; }
.ended-actions { display: flex; gap: 10px; justify-content: center; margin-top: 6px; }
.rating { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.stars { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.stars button { background: none; border: none; color: var(--surface-3); padding: 2px; transition: color 0.1s, transform 0.1s; }
.stars button .icon { width: 30px; height: 30px; }
.stars button.on, .stars button:hover { color: var(--warn); transform: scale(1.1); }

/* Toasts */
.toast-root { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(460px, calc(100vw - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 10px 10px 14px; box-shadow: var(--shadow); font-size: 14px; opacity: 0; transform: translateY(-8px); transition: opacity 0.2s, transform 0.2s; width: 100%; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-icon .icon { width: 20px; height: 20px; color: var(--accent); }
.toast-error { border-color: rgba(255, 92, 108, 0.5); } .toast-error .toast-icon .icon { color: var(--danger); }
.toast-success .toast-icon .icon { color: var(--success); }
.toast-msg { flex: 1; }
.toast-actions { display: flex; gap: 6px; }
.toast-close { background: none; border: none; color: var(--muted); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; }
.toast-close:hover { background: var(--surface-3); color: var(--text); }
.toast-close .icon { width: 16px; height: 16px; }

/* Modals */
.modal-overlay { position: fixed; inset: 0; background: rgba(5, 7, 12, 0.7); backdrop-filter: blur(4px); z-index: 900; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity 0.2s; }
.modal-overlay.show { opacity: 1; }
.modal { width: 100%; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 40px); transform: translateY(10px) scale(0.98); transition: transform 0.2s; }
.modal-overlay.show .modal { transform: none; }
.modal-sm { max-width: 400px; } .modal-md { max-width: 520px; } .modal-lg { max-width: 720px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 22px; }
.modal-title { font-size: 18px; }
.modal-body { padding: 4px 22px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; border-top: 1px solid var(--border); }
.modal .row { display: flex; gap: 10px; }
.modal .row > * { flex: 1; }
.settings-section { display: flex; flex-direction: column; gap: 10px; }
.settings-section h4 { margin: 6px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.kbd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.kbd-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
kbd { font-family: var(--font); background: var(--surface-3); border: 1px solid var(--border-strong); border-bottom-width: 2px; padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--text); }
.info-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-row span:first-child { color: var(--muted); }
.info-row code { background: var(--bg-2); padding: 3px 8px; border-radius: 6px; font-size: 13px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg-2); border-radius: 10px; padding: 10px; }
.stat b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); font-size: 12px; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.emoji-grid button { font-size: 26px; background: none; border: none; border-radius: 10px; padding: 6px; transition: background 0.1s, transform 0.1s; }
.emoji-grid button:hover { background: var(--surface-3); transform: scale(1.15); }

/* Menus */
.menu { position: fixed; z-index: 950; min-width: 220px; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s; max-height: 70vh; overflow-y: auto; }
.menu.show { opacity: 1; transform: none; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: none; background: transparent; border-radius: 8px; text-align: left; font-size: 14px; }
.menu-item:hover { background: var(--surface-3); }
.menu-item:disabled { opacity: 0.45; cursor: default; }
.menu-item.danger { color: var(--danger); }
.menu-item.active { color: var(--accent); }
.menu-icon .icon { width: 18px; height: 18px; }
.menu-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-hint { font-size: 12px; color: var(--muted); }
.menu-check .icon { width: 16px; height: 16px; }
.menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.menu-header { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 8px 10px 4px; font-weight: 600; }
.menu .emoji-grid { padding: 4px; }

/* Responsive */
@media (max-width: 1000px) {
  .landing-main { grid-template-columns: 1fr; min-height: 0; padding-top: 10px; }
  .hero-visual { display: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .lobby-main { grid-template-columns: 1fr; max-width: 640px; }
}
@media (max-width: 760px) {
  :root { --toolbar-h: 68px; --panel-w: 100%; }
  .landing-header, .landing-main, .features { padding-left: 20px; padding-right: 20px; }
  .features { grid-template-columns: 1fr; }
  .tb { min-width: 48px; padding: 6px 4px; }
  .tb .tb-label { display: none; }
  .toolbar-group.left, .toolbar-group.right { flex: none; }
  .toolbar { justify-content: space-between; padding: 0 8px; }
  .meet-header-center, #btn-fullscreen, .music-pill { display: none; }
  .meet-title { max-width: 140px; }
  .side-panel { position: absolute; inset: var(--header-h) 0 var(--toolbar-h) 0; z-index: 5; border-left: none; }
  .meet-main.speaker .tiles { height: 90px; }
  .meet-main.speaker .tiles .tile { width: 150px !important; height: 84px !important; }
  .device-row { grid-template-columns: 1fr; }
  .start-actions { flex-direction: column; }
  .kbd-list { grid-template-columns: 1fr; }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 4px; }

/* ===== Accounts, pricing, plan limits ===== */
.account-area { display: flex; align-items: center; gap: 8px; }
.account-btn { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; }
.account-btn .avatar { width: 26px; height: 26px; font-size: 11px; }
.account-btn:hover { background: var(--surface-2); }
.plan-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: var(--surface-3); color: var(--muted); }
.plan-pill.pro, .plan-pill.team { background: var(--accent-grad); color: #fff; }
.badge-plan { border: none; cursor: pointer; color: var(--muted); }
.badge-plan.counting { background: rgba(255, 182, 72, 0.15); color: var(--warn); font-variant-numeric: tabular-nums; }
.badge-plan.urgent { background: rgba(255, 92, 108, 0.18); color: var(--danger); animation: pulse 1s infinite; }
.badge-plan.pro { background: rgba(124, 108, 255, 0.18); color: var(--accent); }

.pricing { overflow-y: auto; }
.pricing-main { max-width: 960px; margin: 0 auto; padding: 40px 24px 80px; text-align: center; }
.pricing-main h1 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 12px; }
.pricing-main .lede { margin: 0 auto 24px; }
.interval-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 28px; }
.interval-toggle .seg-btn { width: auto; padding: 0 16px; height: 36px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.save-badge { font-size: 10px; padding: 2px 6px; border-radius: 999px; background: rgba(61, 220, 132, 0.18); color: var(--success); font-weight: 700; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; text-align: left; max-width: 720px; margin: 0 auto; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 20px 60px rgba(124, 108, 255, 0.18); }
.plan-card .ribbon { position: absolute; top: -12px; right: 20px; background: var(--accent-grad); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan-card h2 { font-size: 22px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-sub { color: var(--muted); font-size: 13px; min-height: 18px; }
.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; }
.plan-features .icon { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 1px; }
.plan-features li.no { color: var(--muted); }
.plan-features li.no .icon { color: var(--muted); opacity: 0.5; }
.plan-card .btn { margin-top: auto; }
.pricing-note { margin-top: 18px; }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 900px; margin: 50px auto 0; text-align: left; }
.faq-item h3 { font-size: 15px; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 14px; }

.account { display: flex; flex-direction: column; overflow-y: auto; }
.account-main { max-width: 640px; width: 100%; margin: 0 auto; padding: 36px 24px 60px; display: flex; flex-direction: column; gap: 16px; }
.account-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.account-card h2 { font-size: 18px; }
.account-head { display: flex; align-items: center; gap: 14px; }
.account-head .avatar { width: 52px; height: 52px; font-size: 18px; }
.account-head b { font-size: 16px; }
.account-head small { color: var(--muted); }
.usage-bar { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.usage-bar i { display: block; height: 100%; background: var(--accent-grad); border-radius: 5px; transition: width 0.4s; }
.usage-bar.warn i { background: var(--warn); }
.usage-bar.full i { background: var(--danger); }
.account-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.limit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; }
.limit-list span:first-child { color: var(--muted); }
.signin-sent { text-align: center; padding: 10px 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.signin-sent .big { font-size: 40px; }
.menu-item .menu-hint.pro { color: var(--accent); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; }
@media (max-width: 760px) { .limit-list { grid-template-columns: 1fr; } .landing-nav a[data-nav] { display: none; } }

/* ===== Permanent rooms ===== */
.landing-rooms { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; border-top: 1px solid var(--border); }
.landing-rooms-label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 4px; }
.room-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong); font-size: 13px; text-decoration: none; transition: background 0.15s; }
.room-chip:hover { background: var(--surface-3); }
.room-chip.live { border-color: rgba(61, 220, 132, 0.5); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 6px; animation: pulse 1.4s infinite; }
.room-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.room-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.room-row-main b { font-size: 15px; display: flex; align-items: center; }
.room-row-link { font-size: 13px; color: var(--accent-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-row-link:hover { text-decoration: underline; }
.room-row-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.room-link-preview { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
@media (max-width: 600px) { .room-row { flex-direction: column; align-items: stretch; } .room-row-actions { justify-content: flex-end; } }
