:root {
  --ink: #17191f;
  --muted: #696b73;
  --paper: #f5f2eb;
  --paper-deep: #ebe7de;
  --white: #fffefa;
  --blue: #3158f5;
  --blue-dark: #2446d3;
  --green: #27a56d;
  --red: #ef4e4e;
  --line: rgba(23, 25, 31, .13);
  --font-display: "Plus Jakarta Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 28px 80px rgba(43, 39, 30, .13);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(49, 88, 245, .26), 0 1px 2px rgba(23, 25, 31, .1);
  transition: transform .2s ease, box-shadow .2s ease;
}

.logo-mark svg { width: 36px; height: 36px; display: block; }

.wordmark:hover .logo-mark { transform: translateY(-1px); box-shadow: 0 11px 22px rgba(49, 88, 245, .3), 0 1px 2px rgba(23, 25, 31, .1); }

.github-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f5159;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: color .2s ease;
}

.github-link:hover { color: var(--ink); }
.github-link svg { width: 19px; fill: currentColor; }

.landing {
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: 42px;
  padding: 42px 0 108px;
  position: relative;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  color: #62646c;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .115em;
  text-transform: uppercase;
}

.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(39,165,109,.1); }

h1, h2, p { margin-top: 0; }

.hero-copy h1 {
  max-width: 650px;
  margin-bottom: 25px;
  font-size: clamp(52px, 5.4vw, 77px);
  line-height: .98;
  letter-spacing: -.067em;
  font-weight: 770;
}

.hero-copy h1 span { color: var(--blue); }

.hero-description {
  max-width: 495px;
  margin-bottom: 21px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: -.015em;
}

.feature-pills { max-width: 620px; margin-bottom: 29px; display: flex; flex-wrap: wrap; gap: 8px; }
.feature-pills span { min-height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(49,88,245,.11); border-radius: 999px; color: #656872; background: rgba(255,255,255,.48); font-size: 9px; font-weight: 700; }
.feature-pills svg { width: 13px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero-actions { width: min(650px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.room-action-card { min-width: 0; min-height: 278px; padding: 19px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,250,.82); box-shadow: 0 16px 42px rgba(43,39,30,.08); text-align: left; }
.start-room-card { border-color: rgba(49,88,245,.21); background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(49,88,245,.055)); box-shadow: 0 18px 46px rgba(49,88,245,.11); }
.action-card-heading { display: flex; align-items: center; gap: 11px; }
.action-card-heading > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.action-card-heading small { color: #858791; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.action-card-heading strong { font-size: 17px; letter-spacing: -.025em; }
.action-card-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: var(--blue); background: rgba(49,88,245,.1); }
.action-card-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.room-action-card > p { min-height: 36px; margin: 13px 0 14px; color: #767880; font-size: 11px; line-height: 1.55; }
.room-create-options { display: grid; }
.room-create-options > label, .room-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #666872; font-size: 9px; font-weight: 750; letter-spacing: .025em; }
.room-create-options label > span, .room-field > span { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.room-create-options label small, .room-field small { color: #a0a19e; font-size: 7px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.room-create-options input, .room-field input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--ink); background: rgba(255,255,255,.88); font-size: 11px; font-weight: 550; letter-spacing: 0; text-transform: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.room-create-options input::placeholder, .room-field input::placeholder { color: #a1a19e; font-weight: 450; }
.room-create-options input:focus, .room-field input:focus { border-color: rgba(49,88,245,.55); background: white; box-shadow: 0 0 0 3px rgba(49,88,245,.07); }
.audio-option { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #6c6e75; font-size: 11px; font-weight: 700; cursor: pointer; user-select: none; }
.audio-option input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }
.audio-switch { width: 30px; height: 18px; padding: 2px; display: inline-flex; align-items: center; border-radius: 999px; background: #cbcbd0; transition: background .18s ease; }
.audio-switch i { width: 14px; height: 14px; display: block; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(20,22,28,.22); transition: transform .18s ease; }
.audio-option input:checked + .audio-switch { background: var(--blue); }
.audio-option input:checked + .audio-switch i { transform: translateX(12px); }
.audio-option input:focus-visible + .audio-switch { outline: 3px solid rgba(49,88,245,.2); outline-offset: 2px; }
.audio-option:has(input:disabled) { cursor: not-allowed; opacity: .48; }

.button {
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: .68; }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.button-primary { color: white; background: var(--blue); box-shadow: 0 9px 24px rgba(49, 88, 245, .22); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 12px 28px rgba(49, 88, 245, .27); }
.button-secondary { border: 1px solid var(--line); background: white; }

#share-button, .join-button { width: 100%; min-height: 45px; margin-top: auto; border-radius: 11px; font-size: 12px; }
.join-form { gap: 10px; }
.join-form > p { margin-bottom: 2px; }
.join-button { margin-top: auto; border: 1px solid rgba(49,88,245,.24); color: var(--blue); background: rgba(49,88,245,.07); box-shadow: none; }
.join-button:hover { color: white; background: var(--blue); box-shadow: 0 10px 24px rgba(49,88,245,.18); }
.join-button svg { width: 17px; }

.trust-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 21px; color: #74756f; font-size: 11px; font-weight: 600; }
.trust-row span { display: flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero-art { height: 560px; position: relative; display: grid; place-items: center; perspective: 1100px; }
.hero-art::before { content: ""; position: absolute; inset: 6% -7% 0 3%; background: radial-gradient(circle at 50% 50%, rgba(80,111,255,.15), transparent 65%); filter: blur(12px); }
.art-orbit { position: absolute; border: 1px solid rgba(49,88,245,.11); border-radius: 50%; transform: rotate(-12deg); }
.orbit-one { width: 530px; height: 350px; }
.orbit-two { width: 620px; height: 440px; opacity: .7; }

.browser-card {
  width: 520px;
  height: 339px;
  position: relative;
  border: 1px solid rgba(20,30,60,.13);
  border-radius: 16px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 35px 85px rgba(48,52,69,.19), 0 8px 24px rgba(48,52,69,.08);
  transform: rotateY(-4deg) rotateX(2deg) rotateZ(1deg);
}

.browser-bar { height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #e9e9ec; background: #fafafa; border-radius: 16px 16px 0 0; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d3d4da; }
.browser-bar span { width: 225px; height: 17px; margin: 0 auto; border-radius: 5px; background: #eff0f3; }
.browser-body { height: 301px; display: flex; overflow: hidden; border-radius: 0 0 16px 16px; }
.mini-content { min-width: 0; flex: 1; padding: 16px 20px 20px; background: #f5f6f9; }
.mini-room-heading { height: 43px; display: flex; align-items: center; justify-content: space-between; }
.mini-room-heading > span { display: flex; flex-direction: column; gap: 3px; }
.mini-room-heading small { color: #7d8290; font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.mini-room-heading strong { color: #2c303b; font-size: 12px; letter-spacing: -.02em; }
.mini-avatars { display: flex; }
.mini-avatars i { width: 22px; height: 22px; margin-left: -5px; display: grid; place-items: center; border: 2px solid #f5f6f9; border-radius: 50%; color: #526078; background: #dce6ff; font-size: 6px; font-style: normal; font-weight: 800; }
.mini-avatars i:nth-child(2) { color: #765b49; background: #f4ddc9; }
.mini-avatars i:nth-child(3) { color: #536c5c; background: #d7eddd; }
.mini-stage { height: 218px; display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(112px, .8fr); gap: 9px; }
.mini-stream, .mini-chat { min-width: 0; overflow: hidden; border: 1px solid #e1e3e9; border-radius: 9px; background: white; }
.mini-stream { padding: 7px; display: flex; flex-direction: column; gap: 7px; color: #7a7f8d; font-size: 7px; }
.mini-window { min-height: 0; padding: 20px 19px; display: flex; flex: 1; align-items: end; gap: 8px; border-radius: 6px; background: linear-gradient(145deg, #262b37, #161921); }
.mini-window i { width: 28%; height: 48%; display: block; border-radius: 3px 3px 0 0; background: #687de7; }
.mini-window i:nth-child(2) { height: 74%; background: #8d9ce7; }
.mini-window i:nth-child(3) { height: 62%; background: #526ce8; }
.mini-stream > b { padding-left: 2px; font-size: 7px; }
.mini-chat { padding: 10px 8px 8px; display: flex; flex-direction: column; }
.mini-chat > strong { padding: 0 2px 8px; color: #373b45; font-size: 8px; border-bottom: 1px solid #ececf0; }
.mini-chat p { margin: 9px 0 0; display: flex; gap: 6px; color: #737886; font-size: 6px; line-height: 1.4; }
.mini-chat p > i { width: 17px; height: 17px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #536386; background: #dfe7fb; font-size: 6px; font-style: normal; font-weight: 800; }
.mini-chat p:nth-of-type(2) > i { color: #795c4d; background: #f4e1d5; }
.mini-chat p span { min-width: 0; }
.mini-chat p b { display: block; color: #424650; font-size: 6px; }
.mini-chat > div { height: 25px; margin-top: auto; padding: 0 7px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #e5e6eb; border-radius: 6px; color: #a4a7af; font-size: 6px; }
.mini-chat > div b { color: var(--blue); font-size: 9px; }

.live-chip { position: absolute; left: 32px; bottom: -21px; padding: 11px 15px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(23,25,31,.08); border-radius: 10px; background: white; box-shadow: 0 12px 35px rgba(30,35,50,.14); font-size: 12px; font-weight: 700; }
.live-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(239,78,78,.13); }
.viewer-bubble { position: absolute; right: -3px; bottom: 52px; min-width: 155px; padding: 11px 14px 11px 10px; display: flex; align-items: center; gap: 10px; border: 1px solid rgba(23,25,31,.08); border-radius: 12px; background: white; box-shadow: 0 14px 38px rgba(30,35,50,.15); }
.avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #ece7ff; color: #7254ce; font-size: 9px; font-weight: 800; }
.viewer-bubble > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.viewer-bubble strong { font-size: 10px; }.viewer-bubble small { color: #92939b; font-size: 8px; }

.landing-footnote { position: absolute; bottom: 35px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: #8a8985; font-size: 10px; letter-spacing: .015em; }

.room-layout {
  width: min(1280px, calc(100% - 48px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 28px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 34px;
}

.stage-section { min-width: 0; }
.room-heading { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: end; }
.room-heading h1 { margin: 8px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.045em; }
.viewer-count { display: flex; align-items: center; gap: 7px; color: #6f7077; font-size: 12px; font-weight: 650; }
.viewer-count svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.room-actions { display: flex; align-items: center; gap: 14px; }
.close-room-button { height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(239,78,78,.2); border-radius: 10px; color: #d74747; background: rgba(255,255,255,.65); cursor: pointer; font-size: 10px; font-weight: 730; }
.close-room-button:hover { background: white; }
.close-room-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.quality-settings { position: relative; }
.quality-button {
  height: 38px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #5f6168;
  background: rgba(255,255,255,.65);
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
}
.quality-button:hover, .quality-button[aria-expanded="true"] { color: var(--ink); background: white; }
.quality-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quality-button .chevron { width: 14px; transition: transform .18s ease; }
.quality-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.quality-menu {
  width: 320px;
  max-height: min(690px, calc(100vh - 24px));
  padding: 9px;
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(35,37,45,.18);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b7bdce transparent;
}
.quality-menu::-webkit-scrollbar, .chat-messages::-webkit-scrollbar { width: 9px; }
.quality-menu::-webkit-scrollbar-track, .chat-messages::-webkit-scrollbar-track { background: transparent; }
.quality-menu::-webkit-scrollbar-thumb, .chat-messages::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: #b7bdce;
  background-clip: padding-box;
}
.quality-menu::-webkit-scrollbar-thumb:hover, .chat-messages::-webkit-scrollbar-thumb:hover { background-color: #8d96ad; }
.quality-menu-heading { padding: 7px 8px 10px; display: flex; justify-content: space-between; color: #92938f; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.quality-menu-heading strong { color: #62636a; }
.quality-menu button { width: 100%; padding: 9px 9px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.quality-menu button:hover { background: #f3f1eb; }
.quality-menu button:disabled { cursor: default; opacity: .72; }
.quality-menu button:disabled:hover { background: transparent; }
.quality-menu button > span { display: flex; flex-direction: column; gap: 3px; }
.quality-menu button strong { font-size: 11px; }
.quality-menu button small { color: #8a8b91; font-size: 9px; }
.quality-menu button i { width: 14px; height: 14px; border: 1px solid #c8c8c8; border-radius: 50%; }
.quality-menu button.active i { border: 4px solid var(--blue); }
.quality-menu .advanced-toggle { margin-top: 7px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }
.quality-menu .advanced-toggle:disabled { color: #a5a6aa; cursor: not-allowed; opacity: .55; }
.quality-menu .advanced-toggle:disabled:hover { background: transparent; }
.quality-menu .advanced-toggle:disabled svg { stroke: #b4b5b9; }
.advanced-toggle svg { width: 16px; fill: none; stroke: #777981; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.advanced-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.advanced-panel { margin: 3px 6px 5px; padding: 12px 3px 3px; border-top: 1px solid var(--line); }
.advanced-panel > label { margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #66686f; font-size: 10px; font-weight: 700; }
.advanced-panel select {
  width: 145px;
  height: 36px;
  padding: 0 34px 0 11px;
  border: 1px solid rgba(23,25,31,.15);
  border-radius: 10px;
  outline: 0;
  color: #30323a;
  background-color: rgba(255,255,255,.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23666872' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  box-shadow: 0 1px 2px rgba(23,25,31,.04);
  appearance: none;
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.advanced-panel select:hover { border-color: rgba(49,88,245,.36); background-color: white; }
.advanced-panel select:focus-visible { border-color: rgba(49,88,245,.62); background-color: white; box-shadow: 0 0 0 3px rgba(49,88,245,.1), 0 2px 5px rgba(23,25,31,.06); }
.advanced-panel select option { color: #30323a; background: white; font-weight: 550; }

@supports (appearance: base-select) {
  .advanced-panel select,
  .advanced-panel select::picker(select) { appearance: base-select; }
  .advanced-panel select { padding-right: 11px; background-image: none; }
  .advanced-panel select::picker-icon { color: #696b73; transition: rotate .18s ease; }
  .advanced-panel select:open::picker-icon { rotate: 180deg; }
  .advanced-panel select::picker(select) {
    margin-top: 5px;
    padding: 5px;
    border: 1px solid rgba(23,25,31,.12);
    border-radius: 11px;
    background: #fffefa;
    box-shadow: 0 14px 34px rgba(36,39,49,.17), 0 2px 7px rgba(36,39,49,.08);
  }
  .advanced-panel select option {
    min-height: 34px;
    padding: 9px 10px;
    align-items: center;
    border-radius: 7px;
    color: #484a52;
    background: transparent;
    cursor: pointer;
  }
  .advanced-panel select option:hover { color: #2446d3; background: rgba(49,88,245,.075); }
  .advanced-panel select option:checked { color: #2446d3; background: rgba(49,88,245,.11); font-weight: 750; }
  .advanced-panel select option::checkmark { margin-left: auto; color: var(--blue); }
}
.advanced-panel .bitrate-control { margin-top: 4px; display: block; }
.bitrate-control > span:first-child { display: flex; justify-content: space-between; }
.bitrate-control output { color: var(--blue); font-variant-numeric: tabular-nums; }
.bitrate-control input { width: 100%; height: 3px; margin: 14px 0 5px; display: block; accent-color: var(--blue); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: #9a9b9f; font-size: 8px; font-weight: 500; }
.bandwidth-card { margin: 14px 0 10px; padding: 12px; border: 1px solid rgba(49,88,245,.13); border-radius: 10px; background: rgba(49,88,245,.055); }
.bandwidth-card > div { margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; }
.bandwidth-card span { color: #656a7b; font-size: 9px; font-weight: 750; }
.bandwidth-card strong { color: var(--blue); font-size: 16px; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.bandwidth-card small { margin-top: 3px; display: block; color: #8d8f98; font-size: 8px; }
.compression-note { padding: 10px; display: flex; align-items: flex-start; gap: 8px; border-radius: 9px; color: #777980; background: #f0eee8; }
.compression-note svg { width: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.compression-note > span { display: flex; flex-direction: column; gap: 3px; }
.compression-note strong { color: #5b5d64; font-size: 9px; }
.compression-note small { font-size: 8px; line-height: 1.4; }
.quality-menu .apply-advanced { min-height: 37px; margin-top: 10px; justify-content: center; color: white; background: var(--blue); font-size: 10px; font-weight: 750; }
.quality-menu .apply-advanced:hover { background: var(--blue-dark); }

.video-shell { position: relative; overflow: hidden; background: #17191e; box-shadow: var(--shadow); }
.host-video-shell { aspect-ratio: 16 / 10; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; }
.video-shell video { width: 100%; height: 100%; display: block; object-fit: contain; position: relative; z-index: 1; background: #15171b; }
.video-empty { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; color: #989ba4; font-size: 13px; background: radial-gradient(circle at 50% 48%, #24272e, #17191e 70%); }
.video-empty svg { width: 38px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.video-empty .button { min-height: 42px; margin-top: 6px; padding: 0 16px; }
.room-share-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.audio-option-dark { color: #b6b8c0; }
.has-video .video-empty { display: none; }
.presentation-controls { margin: 18px auto 0; display: flex; justify-content: center; align-items: center; gap: 9px; }
.stop-button { min-height: 44px; padding: 0 17px; border: 1px solid rgba(239,78,78,.22); color: #d94545; background: rgba(255,255,255,.66); box-shadow: none; font-size: 12px; }
.stop-button:hover { background: white; }
.stop-button span { width: 9px; height: 9px; border-radius: 2px; background: var(--red); }
.audio-control-button, .microphone-control-button { min-height: 44px; padding: 0 15px; border: 1px solid var(--line); color: #62646c; background: rgba(255,255,255,.66); box-shadow: none; font-size: 11px; }
.audio-control-button:hover, .microphone-control-button:hover { background: white; }
.audio-control-button svg, .microphone-control-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.audio-control-button.muted { color: #d94545; border-color: rgba(239,78,78,.22); }
.audio-control-button .audio-control-muted-line, .audio-control-button .audio-control-add { display: none; }
.audio-control-button.muted .audio-control-waves, .audio-control-button.needs-audio .audio-control-waves { display: none; }
.audio-control-button.muted .audio-control-muted-line, .audio-control-button.needs-audio .audio-control-add { display: block; }
.microphone-control-button.active { color: var(--blue); border-color: rgba(49,88,245,.25); background: rgba(49,88,245,.08); }
.microphone-control-button.active .microphone-control-add { display: none; }

.room-sidebar { height: min(660px, calc(100vh - 120px)); min-height: 580px; margin-top: 70px; display: flex; flex-direction: column; gap: 14px; }
.share-panel { padding: 19px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,254,250,.78); box-shadow: 0 16px 45px rgba(43,39,30,.07); }
.share-panel-heading { margin-bottom: 15px; display: flex; align-items: center; gap: 11px; }
.panel-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--blue); background: rgba(49,88,245,.09); }
.panel-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel-kicker { margin-bottom: 3px; color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.share-panel h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; }
.share-panel > p:not(.panel-kicker) { margin-bottom: 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.room-code-card { min-height: 98px; margin-bottom: 14px; padding: 13px 10px 12px 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(49,88,245,.2); border-radius: 13px; background: linear-gradient(135deg, rgba(49,88,245,.12), rgba(49,88,245,.045)); }
.room-code-card > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.room-code-card > div > span { color: #686f8c; font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.room-code-digits { margin-top: 5px; display: flex; align-items: center; gap: 3px; }
.room-code-digit { width: 28px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(49,88,245,.18); border-radius: 8px; color: var(--blue); background: rgba(255,255,255,.86); box-shadow: 0 4px 10px rgba(49,88,245,.07); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; font-weight: 780; line-height: 1; text-transform: uppercase; }
.room-code-separator { width: 10px; display: grid; place-items: center; color: rgba(49,88,245,.48); font-size: 15px; font-weight: 800; }
.room-code-card button { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border: 0; border-radius: 9px; color: var(--blue); background: rgba(255,255,255,.75); cursor: pointer; transition: color .18s, background .18s, transform .18s; }
.room-code-card button:hover { color: white; background: var(--blue); transform: translateY(-1px); }
.room-code-card button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-link-label { margin: 0 0 8px; display: flex; align-items: center; gap: 9px; color: #8c8d91; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.share-link-label i { height: 1px; flex: 1; background: var(--line); }
.share-link-wrap { display: flex; gap: 8px; }
.share-link-wrap input { width: 100%; min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: #5e6067; background: white; font-size: 11px; }
.share-link-wrap .button { min-height: 46px; padding: 0 14px; font-size: 12px; }
.share-link-wrap .button svg { width: 16px; }
.copy-button.copied { background: var(--green); }
.room-code-row { margin-top: 13px; padding: 12px 0 0; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: #7d7e83; font-size: 10px; }
.room-code-row strong { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }
.panel-note { margin-top: 6px; padding: 13px; display: flex; align-items: flex-start; gap: 9px; border-radius: 10px; color: #797a80; background: #efede7; font-size: 10px; line-height: 1.45; }
.panel-note svg { width: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.chat-panel { min-height: 0; display: flex; flex: 1; flex-direction: column; overflow: visible; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,254,250,.82); box-shadow: 0 16px 45px rgba(43,39,30,.07); }
.chat-heading { height: 53px; padding: 0 16px; display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.chat-heading > div { display: flex; align-items: center; gap: 8px; }
.chat-heading h2 { margin: 0; font-size: 13px; letter-spacing: -.015em; }
.chat-heading-actions > span { color: #92938f; font-size: 8px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.chat-heading .chat-heading-actions { gap: 10px; }
.chat-sound-toggle, .chat-action-toggle { width: 30px; height: 30px; padding: 0; position: relative; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: #73757c; background: transparent; cursor: pointer; transition: color .18s, background .18s, border-color .18s; }
.chat-sound-toggle:hover, .chat-action-toggle:hover { color: var(--blue); background: rgba(49,88,245,.07); }
.chat-sound-toggle:focus-visible, .chat-action-toggle:focus-visible, .chat-expand-button:focus-visible, .notification-card-close:focus-visible { outline: 3px solid rgba(49,88,245,.16); outline-offset: 1px; }
.chat-sound-toggle[aria-pressed="false"], .chat-action-toggle[aria-pressed="false"] { color: #a1a19d; border-color: var(--line); background: rgba(239,237,231,.65); }
.chat-sound-toggle svg, .chat-action-toggle svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-sound-toggle .chat-sound-off { display: none; }
.chat-sound-toggle[aria-pressed="false"] .chat-sound-off { display: block; }
.chat-action-toggle .chat-toggle-off { display: none; }
.chat-action-toggle[aria-pressed="false"] .chat-toggle-off { display: block; }
.control-popover { width: 190px; padding: 10px 11px; position: absolute; z-index: 30; top: calc(100% + 8px); left: 50%; display: flex; visibility: hidden; flex-direction: column; gap: 3px; border: 1px solid rgba(23,25,31,.12); border-radius: 9px; color: #d8d9de; background: #292b31; box-shadow: 0 10px 25px rgba(23,25,31,.22); opacity: 0; pointer-events: none; text-align: left; transform: translate(-50%, -3px); transition: opacity .14s ease, transform .14s ease, visibility .14s; }
.control-popover::before { width: 8px; height: 8px; position: absolute; top: -5px; left: calc(50% - 4px); border-top: 1px solid rgba(23,25,31,.12); border-left: 1px solid rgba(23,25,31,.12); background: #292b31; content: ''; transform: rotate(45deg); }
.control-popover strong { color: white; font-size: 9px; line-height: 1.25; }
.control-popover > span { font-size: 8px; font-weight: 550; line-height: 1.4; }
.chat-heading-actions button:hover > .control-popover, .chat-heading-actions button:focus-visible > .control-popover { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.chat-heading-actions button:last-child > .control-popover { right: -1px; left: auto; transform: translateY(-3px); }
.chat-heading-actions button:last-child > .control-popover::before { right: 11px; left: auto; }
.chat-heading-actions button:last-child:hover > .control-popover, .chat-heading-actions button:last-child:focus-visible > .control-popover { transform: translateY(0); }
.chat-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(39,165,109,.1); }
.chat-messages { min-height: 0; padding: 15px 13px; display: flex; flex: 1; flex-direction: column; gap: 13px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d1d0cb transparent; }
.chat-empty { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 9px; color: #9a9995; font-size: 10px; text-align: center; }
.chat-empty svg { width: 25px; fill: none; stroke: #b6b6b2; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.chat-message { max-width: 88%; align-self: flex-start; }
.chat-message.own { align-self: flex-end; }
.chat-message header { margin: 0 4px 5px; display: flex; align-items: center; gap: 7px; }
.chat-message.own header { justify-content: flex-end; }
.chat-message header strong { color: #64666c; font-size: 9px; }
.chat-message header time { color: #aaa9a4; font-size: 8px; }
.chat-message p { margin: 0; padding: 9px 11px; border: 1px solid rgba(23,25,31,.09); border-radius: 4px 11px 11px 11px; color: #44464d; background: white; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.chat-message.own p { border-color: transparent; border-radius: 11px 4px 11px 11px; color: white; background: var(--blue); }
.chat-emote { width: auto; height: 24px; display: inline-block; vertical-align: middle; object-fit: contain; }
.chat-activity { display: flex; align-items: center; justify-content: center; gap: 7px; color: #898a90; font-size: 9px; }
.chat-activity::before, .chat-activity::after { height: 1px; flex: 1; content: ''; background: var(--line); }
.chat-activity span { white-space: nowrap; }
.chat-activity strong { color: #666870; }
.chat-activity time { white-space: nowrap; color: #aaa9a4; }
.chat-form { margin: 0 11px 11px; min-height: 43px; padding-left: 11px; display: flex; flex: 0 0 auto; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: white; transition: border-color .2s, box-shadow .2s; }
.chat-form:focus-within { border-color: rgba(49,88,245,.5); box-shadow: 0 0 0 3px rgba(49,88,245,.07); }
.chat-form input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.chat-form input::placeholder { color: #a2a29e; }
.chat-form input:disabled { cursor: not-allowed; }
.chat-form button { width: 39px; height: 39px; display: grid; flex: 0 0 auto; place-items: center; border: 0; color: var(--blue); background: transparent; cursor: pointer; }
.chat-form button:disabled { color: #bbb; cursor: not-allowed; }
.chat-form svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.viewer-layout { width: min(1320px, calc(100% - 48px)); min-height: calc(100vh - 88px); margin: 0 auto; padding: 20px 0 45px; }
.viewer-topbar { margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; color: #76777c; font-size: 12px; }
.viewer-topbar > div { display: flex; align-items: center; gap: 8px; }
.viewer-topbar .viewer-room-actions { gap: 8px; }
.audio-option-compact { height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.65); }
.audio-option-compact .audio-switch { width: 26px; height: 16px; }
.audio-option-compact .audio-switch i { width: 12px; height: 12px; }
.audio-option-compact input:checked + .audio-switch i { transform: translateX(10px); }
.audio-control-button-compact { min-height: 38px; padding: 0 10px; }
.viewer-share-button { min-height: 38px; padding: 0 13px; font-size: 10px; }
.viewer-topbar strong { color: var(--ink); }
.room-code-small { display: flex; align-items: center; gap: 7px; }
.room-code-small b { padding: 6px 9px; border: 1px solid rgba(49,88,245,.14); border-radius: 7px; color: var(--blue); background: rgba(49,88,245,.06); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .06em; }
.viewer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; }
.viewer-video-shell { width: 100%; height: min(74vh, 820px); min-height: 440px; border-radius: 16px; }
.viewer-chat { height: min(74vh, 820px); min-height: 440px; }
.viewer-placeholder { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; background: radial-gradient(circle at 50% 48%, #272b34, #17191e 65%); }
.viewer-placeholder h1 { margin: 25px 0 9px; font-size: 24px; letter-spacing: -.035em; }
.viewer-placeholder p { color: #9b9ea7; font-size: 13px; }
.viewer-placeholder .button { margin-top: 15px; color: var(--ink); }
.loader-rings { width: 82px; height: 82px; display: grid; place-items: center; position: relative; }
.loader-rings i { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; animation: ripple 2s ease-out infinite; }
.loader-rings i:nth-child(2) { animation-delay: 1s; }
.loader-rings span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; color: #8da0ff; background: rgba(89,116,255,.15); }
.loader-rings svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.ended .loader-rings i { display: none; }
.ended .loader-rings span { color: #aaa; background: rgba(255,255,255,.07); }
.play-button { position: absolute; z-index: 4; left: 50%; bottom: 30px; transform: translateX(-50%); }
.play-button:hover { transform: translateX(-50%) translateY(-1px); }
.viewer-privacy { margin-top: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; color: #858681; font-size: 10px; }
.viewer-privacy svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Multi-stream room */
body[data-screen="room"] { background: #f1eee7; }
body[data-screen="room"] .site-header { width: min(1440px, calc(100% - 48px)); height: 72px; }

.room-experience {
  width: min(1440px, calc(100% - 48px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 10px 0 34px;
}

.room-topbar { min-height: 66px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.room-identity { display: flex; align-items: center; }
.room-identity h1 { margin: 0; font-size: 23px; letter-spacing: -.04em; }
.room-topbar-actions { display: flex; align-items: center; gap: 10px; }
.participant-presence { display: flex; align-items: center; gap: 6px; }
.participant-avatars { display: flex; align-items: center; padding-left: 8px; position: relative; }
.participant-avatar { width: 31px; height: 31px; padding: 0; margin-left: -8px; position: relative; display: grid; place-items: center; border: 2px solid #f1eee7; border-radius: 50%; background: #dce8ff; box-shadow: 0 1px 4px rgba(39,42,52,.16); cursor: default; font: inherit; font-size: 16px; line-height: 1; }
.participant-avatar.actionable { cursor: pointer; }
.participant-avatar.actionable:hover, .participant-avatar.actionable[aria-expanded="true"] { z-index: 2; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(39,42,52,.2); }
.participant-avatar.color-1 { background: #fce2c4; }
.participant-avatar.color-2 { background: #d9f0df; }
.participant-avatar.color-3 { background: #f4ddf3; }
.participant-avatar.color-4 { background: #d6eff1; }
.participant-avatar.color-5 { background: #f7e4a8; }
.participant-avatar.color-6 { background: #e3defa; }
.participant-avatar.color-7 { background: #f8dada; }
.participant-avatar.host { background: #3158f5; }
.participant-avatar.sharing { border-color: var(--red); box-shadow: 0 0 0 2px rgba(209,67,67,.2), 0 1px 4px rgba(39,42,52,.16); }
.participant-overflow { color: #62656d; background: #fff; font-size: 9px; font-weight: 800; }
.participant-avatar::after { content: attr(data-tooltip); position: absolute; z-index: 20; top: calc(100% + 8px); left: 50%; width: max-content; max-width: 210px; padding: 6px 8px; border-radius: 6px; color: white; background: #24262d; box-shadow: 0 5px 18px rgba(22,24,30,.2); font-size: 9px; font-weight: 650; line-height: 1.2; opacity: 0; pointer-events: none; transform: translate(-50%, -3px); transition: opacity .12s ease, transform .12s ease; }
.participant-avatar:hover::after, .participant-avatar:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.participant-avatar:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.participant-avatar:last-child::after { right: 0; left: auto; transform: translateY(-3px); }
.participant-avatar:last-child:hover::after, .participant-avatar:last-child:focus-visible::after { transform: translateY(0); }
.participant-menu { min-width: 170px; padding: 5px; position: absolute; z-index: 45; top: calc(100% + 9px); right: 0; border: 1px solid rgba(23,25,31,.12); border-radius: 10px; background: #fffefa; box-shadow: 0 14px 35px rgba(30,35,50,.18); }
.participant-menu button { width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; color: #b72e2e; background: transparent; cursor: pointer; text-align: left; font: inherit; font-size: 10px; font-weight: 750; }
.participant-menu button:hover, .participant-menu button:focus-visible { outline: none; background: #fde9e7; }
.participant-count { height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 7px; color: #6f7077; font-size: 10px; font-weight: 700; }
.participant-count svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.connection-check-wrap { position: relative; }
.connection-check-button { height: 38px; padding: 0 11px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; color: #6d7078; background: rgba(255,255,255,.68); cursor: pointer; font: inherit; font-size: 9px; font-weight: 700; transition: color .18s, border-color .18s, background .18s; }
.connection-check-button:hover, .connection-check-button[aria-expanded="true"] { border-color: rgba(49,88,245,.25); color: var(--blue); background: white; }
.connection-check-button:focus-visible, .connection-check-panel button:focus-visible { outline: 3px solid rgba(49,88,245,.16); outline-offset: 1px; }
.connection-check-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-button { height: 38px; padding: 0 11px; position: relative; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(49,88,245,.18); border-radius: 10px; color: var(--blue); background: rgba(255,255,255,.68); cursor: pointer; font: inherit; font-size: 9px; font-weight: 750; transition: color .18s, border-color .18s, background .18s; }
.drop-button:hover { border-color: rgba(49,88,245,.34); background: white; }
.drop-button:disabled { color: #999ba1; border-color: var(--line); cursor: not-allowed; opacity: .7; }
.drop-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-button i { min-width: 17px; height: 17px; padding: 0 5px; position: absolute; top: -7px; right: -7px; display: grid; place-items: center; border: 2px solid #f1eee7; border-radius: 999px; color: white; background: var(--red); box-shadow: 0 2px 5px rgba(209,67,67,.25); font-size: 7px; font-style: normal; }
.connection-check-panel { width: 420px; max-height: min(620px, calc(100vh - 105px)); padding: 15px; position: absolute; z-index: 40; top: calc(100% + 9px); right: 0; overflow-y: auto; overscroll-behavior: contain; border: 1px solid rgba(23,25,31,.11); border-radius: 15px; background: rgba(255,254,250,.98); box-shadow: 0 20px 55px rgba(30,35,50,.18), 0 3px 10px rgba(30,35,50,.06); animation: connection-panel-in .16s ease-out; }
.connection-check-panel[hidden] { display: none; }
.connection-check-panel > header { min-height: 38px; margin-bottom: 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.connection-check-panel > header > div { display: flex; flex-direction: column; gap: 3px; }
.connection-check-panel > header span { color: #92938f; font-size: 8px; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.connection-check-panel h2 { margin: 0; font-size: 16px; letter-spacing: -.025em; }
.connection-check-panel > header button { width: 29px; height: 29px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 8px; color: #898b91; background: transparent; cursor: pointer; }
.connection-check-panel > header button:hover { color: var(--ink); background: #efede7; }
.connection-check-panel > header svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.connection-check-summary { min-height: 58px; padding: 10px 12px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(49,88,245,.12); border-radius: 11px; background: rgba(49,88,245,.05); }
.connection-check-summary > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.connection-check-summary strong { color: #353944; font-size: 11px; }
.connection-check-summary small { color: #7d7f86; font-size: 8px; line-height: 1.35; }
.connection-summary-icon { width: 38px; height: 38px; padding: 9px; display: flex; flex: 0 0 auto; align-items: flex-end; justify-content: center; gap: 2px; border-radius: 10px; color: var(--blue); background: white; box-shadow: 0 2px 8px rgba(49,88,245,.08); }
.connection-summary-icon i { width: 4px; height: 7px; display: block; border-radius: 2px 2px 0 0; background: currentColor; }
.connection-summary-icon i:nth-child(2) { height: 12px; }.connection-summary-icon i:nth-child(3) { height: 18px; }
.connection-check-summary[data-quality="testing"] .connection-summary-icon i { animation: connection-bars .8s ease-in-out infinite alternate; }
.connection-check-summary[data-quality="testing"] .connection-summary-icon i:nth-child(2) { animation-delay: .12s; }.connection-check-summary[data-quality="testing"] .connection-summary-icon i:nth-child(3) { animation-delay: .24s; }
.connection-check-summary[data-quality="good"] { border-color: rgba(39,165,109,.18); background: rgba(39,165,109,.07); }.connection-check-summary[data-quality="good"] .connection-summary-icon { color: var(--green); }
.connection-check-summary[data-quality="fair"] { border-color: rgba(205,146,36,.2); background: rgba(205,146,36,.08); }.connection-check-summary[data-quality="fair"] .connection-summary-icon { color: #bd7d10; }
.connection-check-summary[data-quality="poor"] { border-color: rgba(209,67,67,.2); background: rgba(209,67,67,.07); }.connection-check-summary[data-quality="poor"] .connection-summary-icon { color: var(--red); }
.connection-check-results { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.connection-check-empty { min-height: 105px; padding: 20px; display: grid; place-items: center; color: #8c8d91; font-size: 10px; line-height: 1.5; text-align: center; }
.connection-peer { padding: 11px 12px 12px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.72); }
.connection-peer-heading { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connection-peer-person { min-width: 0; display: flex; align-items: center; gap: 8px; }
.connection-peer-avatar { width: 26px; height: 26px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #e5ebfb; font-size: 13px; }
.connection-peer-person > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.connection-peer-person strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.connection-peer-person small { color: #92938f; font-size: 8px; }
.connection-peer-quality { padding: 4px 7px; border-radius: 999px; color: #777a81; background: #efeee9; font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.connection-peer[data-quality="good"] .connection-peer-quality { color: #187e50; background: rgba(39,165,109,.11); }
.connection-peer[data-quality="fair"] .connection-peer-quality { color: #95640f; background: rgba(205,146,36,.13); }
.connection-peer[data-quality="poor"] .connection-peer-quality { color: #b13a3a; background: rgba(209,67,67,.11); }
.connection-peer-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.connection-metric { min-width: 0; padding: 7px 6px; display: flex; flex-direction: column; gap: 3px; border-radius: 8px; background: #f4f2ed; }
.connection-metric small { overflow: hidden; color: #92938f; font-size: 7px; font-weight: 700; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.connection-metric strong { color: #42454d; font-size: 9px; white-space: nowrap; }
.connection-peer[data-quality="testing"] .connection-metric strong { width: 70%; height: 8px; overflow: hidden; border-radius: 4px; color: transparent; background: linear-gradient(90deg, #e5e3dd, #f1f0ec, #e5e3dd); background-size: 200% 100%; animation: connection-shimmer 1s linear infinite; }
.connection-peer-error { margin: 0; color: #a84a4a; font-size: 9px; line-height: 1.4; }
.connection-check-panel > footer { margin-top: 11px; padding-top: 11px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); }
.connection-check-panel > footer span { max-width: 245px; color: #959691; font-size: 7px; line-height: 1.4; letter-spacing: 0; text-transform: none; }
.connection-check-panel > footer button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(49,88,245,.18); border-radius: 8px; color: var(--blue); background: rgba(49,88,245,.06); cursor: pointer; font: inherit; font-size: 8px; font-weight: 750; }
.connection-check-panel > footer button:hover { background: rgba(49,88,245,.1); }.connection-check-panel > footer button:disabled { cursor: wait; opacity: .55; }
@keyframes connection-panel-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes connection-bars { from { opacity: .35; transform: scaleY(.65); } to { opacity: 1; transform: scaleY(1); } }
@keyframes connection-shimmer { to { background-position: -200% 0; } }
.room-code-pill { height: 38px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; color: #74767c; background: rgba(255,255,255,.68); cursor: pointer; font-size: 9px; }
.room-code-pill:hover { background: white; }
.room-code-pill b { color: var(--blue); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .05em; }
.room-code-pill svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.room-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: stretch; gap: 16px; }
.room-workspace.chat-collapsed { grid-template-columns: minmax(0, 1fr) 48px; }
.room-workspace.chat-collapsed > .room-sidebar { display: none; }
.chat-expand-button { padding: 15px 0; display: none; flex-direction: column; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 16px; color: #7c7f88; background: rgba(255,254,250,.72); box-shadow: 0 16px 45px rgba(43,39,30,.06); cursor: pointer; font: inherit; font-size: 9px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; transition: color .16s ease, border-color .16s ease, background .16s ease; }
.room-workspace.chat-collapsed .chat-expand-button { display: flex; }
.chat-expand-button:hover { color: var(--blue); border-color: rgba(49,88,245,.24); background: rgba(255,255,255,.94); }
.chat-expand-icon { width: 30px; height: 30px; position: relative; display: grid; flex: none; place-items: center; border-radius: 10px; color: var(--blue); background: rgba(49,88,245,.08); transition: background .16s ease; }
.chat-expand-button:hover .chat-expand-icon { background: rgba(49,88,245,.14); }
.chat-expand-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-expand-label { writing-mode: vertical-rl; }
.chat-expand-dot { width: 11px; height: 11px; position: absolute; top: -4px; right: -4px; display: none; border: 2.5px solid var(--white); border-radius: 50%; background: var(--blue); box-shadow: 0 1px 3px rgba(49,88,245,.35); }
.chat-expand-button[data-unread] .chat-expand-dot { display: block; animation: chat-unread-in .2s ease-out; }
@keyframes chat-unread-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.streams-panel { min-width: 0; min-height: min(720px, calc(100vh - 176px)); padding: 19px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,250,.72); box-shadow: 0 18px 55px rgba(43,39,30,.07); }
.streams-heading { margin-bottom: 15px; display: flex; justify-content: flex-end; }
.stream-count { padding: 7px 10px; border: 1px solid rgba(49,88,245,.13); border-radius: 999px; color: #66709b; background: rgba(49,88,245,.055); font-size: 9px; font-weight: 750; white-space: nowrap; }

.stream-grid { min-height: 0; display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 12px; }
.stream-grid:empty { display: none; }
.stream-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.stream-grid[data-count="1"] .stream-card { width: min(100%, 1000px); margin: auto; }
.stream-grid[data-count="3"] .stream-card:first-child { grid-column: 1 / -1; width: min(70%, 760px); justify-self: center; }
.stream-grid[data-count="5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stream-grid[data-count="5"] .stream-card:first-child,
.stream-grid[data-count="5"] .stream-card:nth-child(2) { width: calc(150% + 6px); }

.stream-card { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: #17191e; box-shadow: 0 14px 34px rgba(21,23,29,.17); }
.stream-card.host-stream { border-color: rgba(86,116,255,.72); box-shadow: 0 0 0 2px rgba(49,88,245,.13), 0 14px 34px rgba(21,23,29,.17); }
.stream-card.voice-only { border: 2px solid rgba(255,82,91,.92); box-shadow: 0 0 0 3px rgba(255,82,91,.14), 0 14px 34px rgba(21,23,29,.2); }
.stream-card-media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 48%, #282c34, #17191e 70%); }
.stream-card-media video, .stream-card-media canvas { width: 100%; height: 100%; display: block; object-fit: contain; background: #15171b; }
.voice-avatar-stage { width: 100%; height: 100%; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 50% 46%, #343944 0, #24272f 48%, #17191e 78%); }
.voice-avatar-stage::before { width: clamp(138px, 23vw, 226px); aspect-ratio: 1; position: absolute; content: ''; border: 1px solid rgba(255,102,109,.24); border-radius: 50%; box-shadow: 0 0 55px rgba(255,82,91,.12); }
.voice-avatar-stage strong { position: absolute; bottom: 12%; color: rgba(255,255,255,.7); font-size: 9px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.voice-avatar { width: clamp(104px, 17vw, 176px); aspect-ratio: 1; z-index: 1; display: grid; place-items: center; border: 5px solid #ff525b; border-radius: 50%; background: #dce8ff; box-shadow: 0 0 0 8px rgba(255,82,91,.11), 0 18px 44px rgba(0,0,0,.32); font-size: clamp(48px, 7vw, 78px); line-height: 1; }
.voice-avatar.color-1 { background: #fce2c4; }
.voice-avatar.color-2 { background: #d9f0df; }
.voice-avatar.color-3 { background: #f4ddf3; }
.voice-avatar.color-4 { background: #d6eff1; }
.voice-avatar.color-5 { background: #f7e4a8; }
.voice-avatar.color-6 { background: #e3defa; }
.voice-avatar.color-7 { background: #f8dada; }
.voice-avatar.host { background: var(--blue); }
.stream-card-media:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; background: #000; }
.stream-fullscreen { width: 34px; height: 34px; padding: 0; position: absolute; z-index: 2; right: 10px; bottom: 10px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: white; background: rgba(15,17,22,.72); box-shadow: 0 5px 16px rgba(0,0,0,.22); cursor: pointer; opacity: .82; transition: opacity .18s, background .18s, transform .18s; }
.stream-fullscreen:hover { opacity: 1; background: rgba(15,17,22,.9); transform: translateY(-1px); }
.stream-fullscreen:focus-visible { outline: 3px solid rgba(104,126,240,.5); outline-offset: 2px; opacity: 1; }
.stream-fullscreen svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stream-fullscreen .fullscreen-exit { display: none; }
.stream-fullscreen.active .fullscreen-enter { display: none; }
.stream-fullscreen.active .fullscreen-exit { display: block; }
.stream-connecting { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 9px; color: #a6a9b2; background: radial-gradient(circle at 50% 48%, #282c34, #17191e 70%); font-size: 10px; }
.connecting .stream-connecting { display: flex; }
.stream-connecting span { width: 8px; height: 8px; border: 2px solid #687ef0; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.stream-card footer { min-height: 58px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: white; background: #20232a; }
.stream-person { min-width: 0; display: flex; align-items: center; gap: 9px; }
.stream-avatar { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #dce8ff; font-size: 16px; line-height: 1; }
.stream-avatar.color-1 { background: #fce2c4; }
.stream-avatar.color-2 { background: #d9f0df; }
.stream-avatar.color-3 { background: #f4ddf3; }
.stream-avatar.color-4 { background: #d6eff1; }
.stream-avatar.color-5 { background: #f7e4a8; }
.stream-avatar.color-6 { background: #e3defa; }
.stream-avatar.color-7 { background: #f8dada; }
.host-stream .stream-avatar { color: white; background: var(--blue); }
.stream-person > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stream-person strong, .stream-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-person strong { font-size: 10px; }
.stream-person small { max-width: 390px; color: #989ca7; font-size: 8px; }
.stream-card-actions { display: flex; align-items: center; gap: 7px; }
.audio-state { color: #79c99e; font-size: 8px; font-weight: 750; white-space: nowrap; }
.audio-state.off { color: #878b95; }
.stream-mute { height: 32px; padding: 0 9px; display: flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.11); border-radius: 8px; color: #d3d5db; background: rgba(255,255,255,.055); cursor: pointer; font-size: 8px; font-weight: 720; }
.stream-mute:hover { background: rgba(255,255,255,.1); }
.stream-mute:disabled { cursor: default; opacity: .58; }
.stream-mute svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stream-mute .muted-line { display: none; }
.stream-mute.muted { color: #ff9999; }
.stream-mute.muted .muted-line { display: block; }

.streams-empty { min-height: 0; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; color: #85878d; text-align: center; }
.empty-screen-icon { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(49,88,245,.12); border-radius: 18px; color: #7288eb; background: rgba(49,88,245,.06); }
.empty-screen-icon svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.streams-empty h2 { margin: 18px 0 7px; color: #55575e; font-size: 18px; }
.streams-empty p { max-width: 390px; margin: 0; font-size: 11px; line-height: 1.5; }

.stream-controls { min-height: 66px; margin-top: 15px; padding: 9px 10px 9px 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 13px; background: rgba(239,237,231,.65); }
.stream-control-copy { min-width: 125px; margin-right: auto; display: flex; flex-direction: column; gap: 3px; }
.stream-control-copy span { color: #8c8d91; font-size: 8px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.stream-control-copy strong { color: #55575e; font-size: 10px; }
.stream-controls .audio-option-compact { flex: 0 0 auto; background: rgba(255,255,255,.62); }
.stream-controls .audio-control-button, .stream-controls .microphone-control-button { width: 38px; min-height: 38px; padding: 0; justify-content: center; background: rgba(255,255,255,.68); }
.test-stream-button { min-height: 38px; padding: 0 11px; border-style: dashed; color: #59627d; background: rgba(255,255,255,.68); font-size: 9px; }
.stream-button { min-height: 40px; padding: 0 14px; font-size: 10px; }
.stream-button.stop-stream { color: #d94545; border: 1px solid rgba(239,78,78,.2); background: white; box-shadow: none; }

.room-workspace > .room-sidebar { height: 0; min-height: 100%; margin-top: 0; gap: 12px; }
.invite-strip { min-height: 66px; padding: 10px 10px 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,254,250,.78); box-shadow: 0 12px 35px rgba(43,39,30,.05); }
.invite-strip > div { display: flex; flex-direction: column; gap: 3px; }
.invite-strip > div span { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.invite-strip > div strong { font-size: 12px; }
.invite-strip .button { min-height: 38px; padding: 0 11px; font-size: 9px; }
.invite-strip .button svg { width: 15px; }
.room-workspace .chat-panel { background: rgba(255,254,250,.82); }
.room-workspace .chat-messages { padding: 14px 12px; gap: 11px; }
.room-workspace .chat-activity { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; justify-content: stretch; gap: 7px; padding: 6px 7px; border-radius: 8px; background: rgba(235,233,227,.65); line-height: 1.35; }
.room-workspace .chat-activity::before, .room-workspace .chat-activity::after { display: none; }
.room-workspace .chat-activity > i { width: 6px; height: 6px; border-radius: 50%; background: #90939c; }
.room-workspace .activity-joined > i, .room-workspace .activity-stream-started > i { background: var(--green); }
.room-workspace .activity-left > i, .room-workspace .activity-stream-stopped > i { background: var(--red); }
.room-workspace .activity-settings > i { background: var(--blue); }
.room-workspace .chat-activity span { white-space: normal; }
.chat-file-transfer { padding: 10px; border: 1px solid rgba(49,88,245,.16); border-radius: 11px; background: rgba(49,88,245,.055); }
.chat-file-heading { display: flex; align-items: center; gap: 8px; }
.chat-file-heading > span:first-child { width: 28px; height: 28px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--blue); background: white; }
.chat-file-heading svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.chat-file-heading > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-file-heading strong { overflow: hidden; color: #555863; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.chat-file-heading small { color: #888b94; font-size: 7px; }
.chat-file-info { margin-top: 9px; padding: 8px 9px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid rgba(23,25,31,.08); border-radius: 8px; background: rgba(255,255,255,.74); }
.chat-file-info strong { min-width: 0; overflow: hidden; color: #454850; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.chat-file-info span { flex: 0 0 auto; color: #92949b; font-size: 7px; }
.chat-file-progress { height: 3px; margin: 8px 1px 0; overflow: hidden; border-radius: 999px; background: rgba(49,88,245,.12); }
.chat-file-progress i { width: var(--drop-progress, 0%); height: 100%; display: block; border-radius: inherit; background: var(--blue); transition: width .15s linear; }
.chat-file-actions { margin-top: 8px; display: flex; justify-content: flex-end; gap: 6px; }
.chat-file-actions button, .chat-file-actions a { min-height: 29px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 7px; color: #666972; background: white; cursor: pointer; font: inherit; font-size: 7px; font-weight: 750; text-decoration: none; }
.chat-file-actions .chat-file-accept, .chat-file-actions .chat-file-download { border-color: var(--blue); color: white; background: var(--blue); }
.chat-file-actions button:hover, .chat-file-actions a:hover { border-color: rgba(49,88,245,.3); color: var(--blue); background: rgba(49,88,245,.06); }
.chat-file-actions .chat-file-accept:hover, .chat-file-actions .chat-file-download:hover { color: white; background: var(--blue-dark); }
.chat-file-transfer[data-status="completed"] { border-color: rgba(39,165,109,.18); background: rgba(39,165,109,.06); }
.chat-file-transfer[data-status="completed"] .chat-file-heading > span:first-child { color: var(--green); }
.chat-file-transfer[data-status="declined"], .chat-file-transfer[data-status="cancelled"], .chat-file-transfer[data-status="error"] { border-color: rgba(209,67,67,.14); background: rgba(209,67,67,.045); }
.room-privacy { margin: 15px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; color: #858681; font-size: 9px; }
.room-privacy svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.drop-dialog { width: min(620px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; overflow: hidden; border: 0; border-radius: 20px; color: var(--ink); background: transparent; box-shadow: 0 28px 90px rgba(22,25,36,.28); }
.drop-dialog::backdrop { background: rgba(20,23,31,.48); backdrop-filter: blur(5px); }
.drop-dialog[open] { animation: password-dialog-in .18s ease-out; }
.drop-dialog-shell { max-height: min(760px, calc(100vh - 32px)); padding: 20px; overflow-y: auto; border: 1px solid rgba(255,255,255,.58); border-radius: 20px; background: var(--white); scrollbar-width: thin; }
.drop-dialog header { margin-bottom: 17px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 34px; align-items: center; gap: 11px; }
.drop-dialog-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: rgba(49,88,245,.09); }
.drop-dialog-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-dialog header > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.drop-dialog header small { color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.drop-dialog header strong { font-size: 19px; letter-spacing: -.035em; }
.drop-dialog header button { width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 9px; color: #7d7f87; background: transparent; cursor: pointer; }
.drop-dialog header button:hover { color: var(--ink); background: #efede7; }
.drop-dialog header button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.drop-zone { min-height: 145px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1.5px dashed rgba(49,88,245,.3); border-radius: 15px; color: #555863; background: rgba(49,88,245,.045); cursor: pointer; text-align: center; transition: border-color .18s, background .18s, transform .18s; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--blue); background: rgba(49,88,245,.085); transform: translateY(-1px); }
.drop-zone > span { width: 43px; height: 43px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: white; box-shadow: 0 5px 15px rgba(49,88,245,.1); }
.drop-zone svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { font-size: 12px; }
.drop-zone small { max-width: 390px; margin-top: 5px; color: #888a91; font-size: 9px; line-height: 1.45; }
.drop-transfers { margin-top: 18px; }
.drop-transfers-heading { margin-bottom: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.drop-transfers-heading strong { font-size: 11px; }
.drop-transfers-heading span { color: #92938f; font-size: 8px; }
.drop-transfer-list { display: flex; flex-direction: column; gap: 8px; }
.drop-empty { min-height: 72px; margin: 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #979793; background: rgba(239,237,231,.4); font-size: 9px; text-align: center; }
.drop-transfer { min-width: 0; padding: 11px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.72); }
.drop-file-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: rgba(49,88,245,.08); }
.drop-file-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-transfer-main { min-width: 0; }
.drop-transfer-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.drop-transfer-copy strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.drop-transfer-copy span { flex: 0 0 auto; color: #85878f; font-size: 8px; }
.drop-transfer-detail { margin-top: 3px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #92938f; font-size: 8px; }
.drop-progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 999px; background: #ebe9e3; }
.drop-progress i { width: var(--drop-progress, 0%); height: 100%; display: block; border-radius: inherit; background: var(--blue); transition: width .15s linear; }
.drop-transfer[data-status="completed"] .drop-file-icon { color: var(--green); background: rgba(39,165,109,.1); }
.drop-transfer[data-status="declined"] .drop-file-icon, .drop-transfer[data-status="cancelled"] .drop-file-icon, .drop-transfer[data-status="error"] .drop-file-icon { color: #9b6b6b; background: rgba(209,67,67,.08); }
.drop-transfer-actions { display: flex; align-items: center; gap: 6px; }
.drop-transfer-actions button, .drop-transfer-actions a { min-height: 31px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: #666972; background: white; cursor: pointer; font: inherit; font-size: 8px; font-weight: 750; text-decoration: none; }
.drop-transfer-actions .drop-accept, .drop-transfer-actions .drop-download { border-color: rgba(49,88,245,.18); color: white; background: var(--blue); }
.drop-transfer-actions button:hover, .drop-transfer-actions a:hover { border-color: rgba(49,88,245,.28); color: var(--blue); background: rgba(49,88,245,.06); }
.drop-transfer-actions .drop-accept:hover, .drop-transfer-actions .drop-download:hover { color: white; background: var(--blue-dark); }
.drop-privacy { margin: 14px 0 0; padding: 10px 11px; display: flex; align-items: flex-start; gap: 8px; border-radius: 10px; color: #7e807f; background: #efede7; font-size: 8px; line-height: 1.45; }
.drop-privacy svg { width: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.quality-menu .coming-soon { padding: 4px 6px; border-radius: 5px; color: #7c7f88; background: #eceae5; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.quality-menu > .bandwidth-card { margin: 8px 5px 4px; }

@keyframes spin { to { transform: rotate(360deg); } }

.password-dialog { width: min(420px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; color: var(--ink); background: transparent; box-shadow: 0 28px 90px rgba(22,25,36,.28); }
.password-dialog::backdrop { background: rgba(20,23,31,.48); backdrop-filter: blur(5px); }
.password-dialog[open] { animation: password-dialog-in .18s ease-out; }
.password-dialog form { padding: 28px; position: relative; border: 1px solid rgba(255,255,255,.58); border-radius: 20px; background: var(--white); }
.password-dialog-close { width: 34px; height: 34px; padding: 0; position: absolute; top: 15px; right: 15px; display: grid; place-items: center; border: 0; border-radius: 9px; color: #7d7f87; background: transparent; cursor: pointer; }
.password-dialog-close:hover { color: var(--ink); background: #efede7; }
.password-dialog-close svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.password-dialog-icon { width: 46px; height: 46px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 14px; color: var(--blue); background: rgba(49,88,245,.09); }
.password-dialog-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-dialog-kicker { display: block; margin-bottom: 6px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.password-dialog h2 { margin: 0 42px 8px 0; font-size: 23px; letter-spacing: -.04em; }
.password-dialog form > p:not(.password-dialog-error) { margin: 0 0 22px; color: #74767e; font-size: 12px; line-height: 1.55; }
.password-dialog form > p strong { color: #555863; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.password-dialog form > label { display: block; margin-bottom: 7px; color: #62646d; font-size: 9px; font-weight: 760; }
.password-input-wrap { height: 48px; padding-left: 13px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: white; transition: border-color .2s, box-shadow .2s; }
.password-input-wrap:focus-within { border-color: rgba(49,88,245,.58); box-shadow: 0 0 0 4px rgba(49,88,245,.08); }
.password-input-wrap > svg { width: 17px; flex: 0 0 auto; fill: none; stroke: #92949b; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.password-input-wrap input { width: 100%; min-width: 0; height: 46px; padding: 0 11px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.password-input-wrap input::placeholder { color: #aaa9a5; }
.password-input-wrap button { height: 32px; margin-right: 7px; padding: 0 9px; border: 0; border-radius: 7px; color: #747780; background: #f0eee8; cursor: pointer; font-size: 9px; font-weight: 750; }
.password-input-wrap button:hover { color: var(--blue); background: rgba(49,88,245,.08); }
.password-dialog-error { margin: 8px 0 0; color: #ce4141; font-size: 10px; font-weight: 650; }
.password-dialog-actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; }
.password-dialog-actions .button { min-height: 45px; font-size: 12px; }
.password-cancel { border: 1px solid var(--line); color: #686a72; background: white; box-shadow: none; }
.password-cancel:hover { background: #f0eee8; box-shadow: none; }
@keyframes password-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.room-status { position: fixed; z-index: 120; inset: 0; padding: 24px; display: grid; place-items: center; background: rgba(245,242,235,.48); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.room-status-card { width: min(440px, 100%); padding: 38px; text-align: center; border: 1px solid rgba(23,25,31,.11); border-radius: 20px; background: rgba(255,254,250,.94); box-shadow: 0 28px 80px rgba(43,39,30,.2); animation: room-status-in .22s ease-out; }
.room-status-spinner { width: 34px; height: 34px; margin: 0 auto 22px; display: block; border: 3px solid rgba(49,88,245,.18); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.room-status-kicker { display: block; margin-bottom: 7px; color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.room-status h2 { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(22px, 4vw, 28px); letter-spacing: -.045em; }
.room-status p { margin: 0 auto; max-width: 340px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.room-status-home { width: fit-content; min-width: 150px; margin: 24px auto 0; text-decoration: none; }
.room-status[data-mode="ended"] .room-status-card { border-color: rgba(239,78,78,.18); }
.room-status[data-mode="ended"] .room-status-kicker { color: var(--red); }
@keyframes room-status-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.toast { position: fixed; z-index: 100; left: 50%; bottom: 25px; padding: 12px 17px; border-radius: 10px; color: white; background: #202229; box-shadow: 0 10px 35px rgba(0,0,0,.2); font-size: 12px; font-weight: 650; opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-tone="error"] { background: #c43f3f; }
.notification-toaster { width: 380px; max-width: calc(100% - 28px); position: fixed; z-index: 110; right: 18px; bottom: 18px; display: flex; flex-direction: column-reverse; gap: 9px; pointer-events: none; }
.notification-card { width: 100%; min-height: 74px; padding: 12px 12px 12px 13px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 25px; align-items: start; gap: 11px; border: 1px solid rgba(23,25,31,.1); border-radius: 13px; color: #24262d; background: rgba(255,254,250,.97); box-shadow: 0 15px 45px rgba(30,35,50,.16), 0 2px 8px rgba(30,35,50,.06); pointer-events: auto; animation: notification-in .24s cubic-bezier(.2,.8,.2,1); }
.notification-card.removing { opacity: 0; transform: translateX(18px) scale(.98); transition: opacity .18s, transform .18s; }
.notification-card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: rgba(49,88,245,.09); }
.notification-card[data-kind="joined"] .notification-card-icon, .notification-card[data-kind="stream-started"] .notification-card-icon { color: var(--green); background: rgba(39,165,109,.1); }
.notification-card[data-kind="left"] .notification-card-icon, .notification-card[data-kind="stream-stopped"] .notification-card-icon { color: var(--red); background: rgba(239,78,78,.09); }
.notification-card-icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-card-copy { min-width: 0; padding-top: 1px; }
.notification-card-copy strong { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: -.01em; }
.notification-card-copy p { margin: 0; display: -webkit-box; overflow: hidden; color: #6f7179; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notification-card-close { width: 25px; height: 25px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 7px; color: #97989c; background: transparent; cursor: pointer; }
.notification-card-close:hover { color: #55575e; background: #efede7; }
.notification-card-close svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@keyframes notification-in { from { opacity: 0; transform: translateX(22px) scale(.98); } to { opacity: 1; transform: translateX(0) scale(1); } }
.sr-only { width: 1px; height: 1px; padding: 0; margin: -1px; position: absolute; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes ripple { 0% { transform: scale(.62); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

@media (max-width: 1100px) {
  .site-header { height: 76px; }
  .landing { min-height: calc(100vh - 76px); grid-template-columns: 1fr; gap: 24px; padding: 26px 0 58px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .eyebrow { margin-bottom: 17px; }
  .hero-copy h1 { margin-bottom: 18px; font-size: clamp(49px, 6vw, 62px); }
  .hero-description { margin-bottom: 17px; line-height: 1.5; }
  .feature-pills { margin-bottom: 22px; justify-content: center; }
  .room-action-card { text-align: left; }
  .room-action-card { min-height: 250px; padding: 17px; }
  .room-action-card > p { margin: 10px 0 12px; }
  .trust-row { margin-top: 22px; }
  .hero-art { height: 400px; }
  .landing-footnote { bottom: 21px; }
}

@media (min-width: 1101px) and (max-height: 850px) {
  .site-header { height: 72px; }
  .landing { min-height: calc(100vh - 72px); gap: 34px; padding: 18px 0 46px; }
  .eyebrow { margin-bottom: 16px; }
  .hero-copy h1 { margin-bottom: 18px; font-size: clamp(49px, 4.7vw, 65px); }
  .hero-description { margin-bottom: 16px; font-size: 16px; line-height: 1.5; }
  .feature-pills { margin-bottom: 20px; }
  .room-action-card { min-height: 244px; padding: 16px; }
  .room-action-card > p { margin: 10px 0 11px; }
  .trust-row { margin-top: 20px; }
  .hero-art { height: 440px; transform: scale(.9); transform-origin: center; }
  .landing-footnote { bottom: 17px; }
}

@media (max-width: 980px) {
  .room-layout { grid-template-columns: 1fr; align-items: start; }
  .room-sidebar { max-width: 700px; width: 100%; height: auto; min-height: 0; margin: 10px auto 0; }
  .chat-panel { min-height: 360px; flex: none; }
  .viewer-grid { grid-template-columns: 1fr; }
  .viewer-chat { height: 380px; min-height: 380px; }
  .room-workspace { grid-template-columns: 1fr; }
  .room-workspace.chat-collapsed { grid-template-columns: 1fr; }
  .chat-expand-button { height: 46px; padding: 0 16px; flex-direction: row; justify-content: center; gap: 10px; }
  .chat-expand-label { writing-mode: horizontal-tb; }
  .room-workspace > .room-sidebar { width: 100%; max-width: none; height: auto; min-height: 0; }
  .room-workspace .chat-panel { height: 420px; }
  .streams-panel { min-height: 620px; }
}

@media (max-width: 760px) {
  .connection-check-button span { display: none; }
  .connection-check-button { width: 38px; padding: 0; justify-content: center; }
  .drop-button span { display: none; }
  .drop-button { width: 38px; padding: 0; justify-content: center; }
}

@media (max-width: 620px) {
  .site-header, .landing, .room-layout, .viewer-layout, .room-experience { width: min(100% - 28px, 1180px); }
  .site-header { height: 64px; }
  .logo-mark, .logo-mark svg { width: 33px; height: 33px; }
  .wordmark-text { font-size: 23px; }
  .github-link span { display: none; }
  .landing { min-height: calc(100vh - 64px); gap: 0; padding: 24px 0 42px; }
  .eyebrow { margin-bottom: 15px; font-size: 9px; }
  .hero-copy h1 { margin-bottom: 16px; font-size: clamp(40px, 13vw, 49px); }
  .hero-description { margin-bottom: 16px; font-size: 15px; line-height: 1.55; }
  .feature-pills { margin-bottom: 20px; gap: 6px; }
  .feature-pills span { min-height: 28px; padding: 0 9px; font-size: 8px; }
  .hero-actions { width: 100%; grid-template-columns: 1fr; }
  .room-action-card { min-height: 0; padding: 16px; border-radius: 15px; }
  .room-action-card > p { min-height: 0; }
  #share-button, .join-button { margin-top: 14px; }
  .trust-row { margin-top: 20px; justify-content: center; gap: 12px 15px; font-size: 10px; }
  .hero-art { display: none; }
  .landing-footnote { display: none; }
  .room-layout, .viewer-layout { min-height: calc(100vh - 72px); padding-top: 18px; }
  .room-heading { align-items: flex-start; gap: 20px; }
  .room-heading h1 { font-size: 25px; }
  .room-actions { align-items: flex-end; flex-direction: column-reverse; gap: 8px; }
  .viewer-count { white-space: nowrap; }
  .quality-menu { right: 0; }
  .quality-menu { width: calc(100% - 28px); top: 78px; right: 14px; }
  .viewer-topbar { align-items: flex-start; }
  .viewer-topbar .viewer-room-actions { align-items: flex-end; flex-direction: column; }
  .host-video-shell { border-radius: 11px; }
  .share-panel { padding: 26px 20px 22px; }
  .room-code-digits { gap: 2px; }
  .room-code-digit { width: 24px; height: 40px; font-size: 19px; }
  .room-code-separator { width: 8px; }
  .room-code-card button { width: 34px; height: 38px; }
  .viewer-video-shell { height: calc(100vh - 180px); min-height: 390px; border-radius: 11px; }
  .viewer-placeholder { padding: 25px; }
  .viewer-placeholder h1 { font-size: 21px; }
  body[data-screen="room"] .site-header { width: calc(100% - 28px); }
  .room-topbar { align-items: flex-start; }
  .room-topbar-actions { align-items: flex-end; flex-direction: column; }
  .participant-presence { align-items: flex-end; flex-direction: column; }
  .participant-count { height: auto; }
  .connection-check-panel { width: auto; max-height: calc(100vh - 118px); position: fixed; top: 88px; right: 14px; left: 14px; }
  .room-code-pill { order: 2; }
  .stream-grid, .stream-grid[data-count="5"] { grid-template-columns: 1fr; }
  .stream-grid[data-count="3"] .stream-card:first-child,
  .stream-grid[data-count="5"] .stream-card:first-child,
  .stream-grid[data-count="5"] .stream-card:nth-child(2) { width: 100%; grid-column: auto; }
  .streams-panel { min-height: 540px; padding: 13px; }
  .stream-controls { align-items: stretch; flex-wrap: wrap; }
  .stream-control-copy { width: 100%; }
  .stream-controls .quality-settings, .stream-controls .quality-button { flex: 1; }
  .stream-controls .quality-button { justify-content: center; }
  .stream-person small { max-width: 190px; }
  .audio-state { display: none; }
  .chat-heading { padding: 0 10px 0 13px; }
  .chat-heading .chat-heading-actions { gap: 4px; }
  .chat-heading-actions > span { display: none; }
  .notification-toaster { right: 14px; bottom: 10px; }
  .password-dialog form { padding: 23px 20px 20px; }
  .password-dialog-actions { grid-template-columns: 1fr; }
  .password-dialog-actions .password-cancel { order: 2; }
  .drop-dialog-shell { padding: 16px; }
  .drop-zone { min-height: 132px; padding: 18px 12px; }
  .drop-transfer { grid-template-columns: 34px minmax(0, 1fr); }
  .drop-file-icon { width: 34px; height: 34px; }
  .drop-transfer-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
