:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #e9edf7;
  background: #10121a;
  --bg: #10121a;
  --panel: #191c28;
  --surface: #222635;
  --line: #313748;
  --text: #e9edf7;
  --muted: #a4aec4;
  --accent: #5878ff;
  --danger: #ff6e7c;
  --shadow: 0 18px 65px #0003;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
body.light {
  --bg: #f4f6fc;
  --panel: #fff;
  --surface: #edf0f8;
  --line: #dce1ed;
  --text: #172039;
  --muted: #5e6a82;
  --accent: #315efb;
  --danger: #bd2742;
  background: var(--bg);
  color: var(--text);
  color-scheme: light;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 16px;
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
}
button:hover {
  filter: brightness(1.13);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent, #fff);
}
button.danger {
  color: var(--danger);
}
button.active {
  background: #315efb25;
  border-color: var(--accent);
}
button svg,
.brand svg,
.empty svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
a {
  color: var(--accent);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 0.82rem;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 1.22rem;
  font-weight: 750;
  color: var(--text);
}
.brand .mark {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  background: #315efb;
  color: white;
  border-radius: 13px;
}
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 30px 20px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 35px;
  background: var(--panel);
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar nav button {
  justify-content: flex-start;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.sidebar nav button.active {
  color: var(--text);
  background: var(--surface);
}
.sidebar footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.workspace {
  padding: 30px clamp(20px, 4vw, 64px);
  max-width: 1600px;
  width: 100%;
  margin: auto;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  gap: 16px;
}
.topline .date {
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.start-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  margin-bottom: 34px;
}
.start-card {
  background: linear-gradient(120deg, #243774, #1d2545);
  border-color: #405695;
  color: #f4f6ff;
  position: relative;
}
.start-card p {
  color: #c0cbee;
  max-width: 380px;
}
.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #a7baff;
  margin-bottom: 22px;
}
.join-row {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.join-row input {
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.room-list {
  display: grid;
  gap: 12px;
}
.room-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.room-symbol {
  background: var(--surface);
  padding: 14px;
  border-radius: 13px;
  display: flex;
  color: var(--accent);
}
.room-symbol svg {
  width: 24px;
  height: 24px;
}
.room-content {
  flex: 1;
  min-width: 0;
}
.room-content h3 {
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px 8px;
  margin-left: 8px;
}
.empty {
  padding: 48px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
}
.empty svg {
  width: 35px;
  height: 35px;
  margin-bottom: 12px;
}
.notice {
  padding: 14px 18px;
  border: 1px solid #bb934c66;
  background: #bc8d2310;
  color: var(--text);
  border-radius: 12px;
  margin-bottom: 22px;
  font-size: 0.9rem;
}
label {
  display: grid;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9rem;
}
input,
select,
textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 13px;
  width: 100%;
  min-height: 46px;
}
input:focus,
select:focus {
  border-color: var(--accent);
}
input[type="checkbox"] {
  width: 19px;
  min-height: 19px;
  accent-color: var(--accent);
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form {
  display: grid;
  gap: 18px;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.auth-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 42px 22px;
}
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  min-height: 75vh;
}
.auth-grid h1 {
  font-size: 3rem;
}
.auth-grid p {
  color: var(--muted);
}
.auth-grid .card {
  padding: 32px;
}
.install {
  max-width: 780px;
  margin: 35px auto;
}
.install .brand {
  margin-bottom: 26px;
}
.install h2 {
  padding-top: 8px;
}
.link-button {
  border: 0;
  background: transparent;
  padding: 5px;
  color: var(--accent);
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: min(550px, calc(100% - 30px));
  padding: 28px;
  max-height: 90vh;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #030714b3;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-head h2 {
  margin: 0;
}
.icon-btn {
  width: 44px;
  padding: 10px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-size: 0.8rem;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 26px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 100;
  max-width: min(620px, 90vw);
  display: none;
}
.loading {
  padding: 70px;
  text-align: center;
}
.prejoin {
  max-width: 1150px;
  margin: auto;
  padding: 32px 24px;
}
.prejoin-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 35px;
  align-items: center;
  margin-top: 65px;
}
.preview {
  aspect-ratio: 16/10;
  background: #171c2a;
  border: 1px solid #333b51;
  border-radius: 22px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #dae0f0;
}
.preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transform: scaleX(-1);
}
.preview .preview-label {
  z-index: 1;
  position: absolute;
  bottom: 15px;
  left: 18px;
  background: #0008;
  padding: 7px 13px;
  border-radius: 8px;
}
.avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #34477a;
  color: #eaf0ff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 600;
}
.device-controls {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.meeting {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.meeting-header {
  padding: 17px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.meeting-header h2 {
  margin: 0;
  font-size: 1.02rem;
}
.connection {
  font-size: 0.8rem;
  color: var(--muted);
}
.meeting-body {
  flex: 1;
  min-height: 0;
  display: flex;
  padding: 20px;
  gap: 18px;
}
.stage {
  flex: 1;
  min-width: 0;
  overflow: auto;
}
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 14px;
  align-content: start;
}
.tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  aspect-ratio: 16/10;
  min-height: 150px;
  background: #1c2334;
  display: grid;
  place-items: center;
  color: #f0f4ff;
}
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.tile.screen {
  grid-column: 1/-1;
  aspect-ratio: 16/9;
  background: #080b12;
}
.tile.screen video {
  object-fit: contain;
}
.tile .caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #080b12b3;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 0.85rem;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tile.speaking {
  border: 2px solid #7693ff;
}
.sidepanel {
  width: 315px;
  flex-shrink: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sidepanel h3 {
  margin: 0;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.tabs button {
  flex: 1;
  padding: 8px;
  font-size: 0.86rem;
}
.messages {
  flex: 1;
  overflow: auto;
  min-height: 0;
  overflow-wrap: anywhere;
}
.message {
  margin-bottom: 16px;
  font-size: 0.92rem;
}
.message strong {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.message p {
  margin: 0;
  white-space: pre-wrap;
}
.chat-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.chat-form input {
  min-width: 0;
}
.meeting-controls {
  padding: 16px 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.meeting-controls .leave {
  background: #b93247;
  border-color: #b93247;
  color: white;
  margin-left: 18px;
}
.participant {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.participant .actions button {
  padding: 5px;
  min-height: 34px;
  font-size: 0.8rem;
}
.waiting-entry {
  background: var(--surface);
  padding: 13px;
  border-radius: 10px;
  margin-bottom: 10px;
}
.waiting-entry p {
  margin-bottom: 8px;
}
.status-center {
  text-align: center;
  padding: 50px 15px;
}
.hidden {
  display: none !important;
}
.help-list {
  padding-left: 20px;
  color: var(--muted);
}
.help-list li {
  margin-bottom: 12px;
}
.meter {
  width: 100%;
  height: 9px;
  accent-color: var(--accent);
}
.user-name {
  overflow-wrap: anywhere;
}
.settings-note {
  font-size: 0.86rem;
  color: var(--muted);
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 12px;
  }
  .workspace {
    padding: 25px;
  }
  .sidepanel {
    width: 280px;
  }
  .meeting-controls button {
    font-size: 0.82rem;
    padding: 10px;
  }
  .meeting-controls .leave {
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 14px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 10px;
  }
  .sidebar nav {
    display: flex;
    gap: 3px;
  }
  .sidebar nav button {
    padding: 10px;
  }
  .sidebar nav button span,
  .sidebar footer,
  .sidebar .brand > span {
    display: none;
  }
  .workspace {
    padding: 24px 18px;
  }
  .topline {
    margin-bottom: 28px;
  }
  .date {
    font-size: 0.82rem;
  }
  .start-grid,
  .settings-grid,
  .auth-grid,
  .prejoin-grid {
    grid-template-columns: 1fr;
  }
  .intro {
    align-items: flex-start;
  }
  .start-grid {
    gap: 15px;
  }
  .room-item {
    gap: 12px;
    padding: 16px;
    flex-wrap: wrap;
  }
  .room-item > .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .room-symbol {
    padding: 10px;
  }
  .card {
    padding: 22px;
  }
  .auth-grid {
    gap: 25px;
    min-height: 0;
    margin-top: 45px;
  }
  .auth-grid h1 {
    font-size: 2.2rem;
  }
  .auth-wrap {
    padding: 25px 18px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .prejoin-grid {
    margin-top: 30px;
    gap: 25px;
  }
  .meeting-header {
    padding: 12px 14px;
  }
  .meeting-header .brand > span {
    display: none;
  }
  .meeting-body {
    padding: 10px;
    position: relative;
  }
  .sidepanel {
    position: absolute;
    right: 10px;
    top: 10px;
    bottom: 10px;
    width: min(340px, calc(100% - 20px));
    z-index: 5;
    box-shadow: var(--shadow);
  }
  .meeting-controls {
    gap: 7px;
    padding: 10px;
  }
  .meeting-controls button {
    padding: 10px;
    min-height: 42px;
  }
  .meeting-controls button .control-label {
    display: none;
  }
  .meeting-controls .leave .control-label {
    display: inline;
  }
  .tile {
    min-height: 130px;
  }
  .install {
    margin: 20px;
  }
  .topline .actions {
    justify-content: flex-end;
  }
  .section-head input {
    max-width: 170px;
  }
  .join-row {
    flex-wrap: wrap;
  }
  .join-row button {
    width: 100%;
  }
  .intro > .actions {
    flex-shrink: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      filter 0.15s;
  }
  .card,
  .room-item {
    animation: appear 0.25s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.brand img {
  max-width: 145px;
  max-height: 43px;
  object-fit: contain;
}
.logo-form {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
input[type="color"] {
  padding: 5px;
  width: 100px;
}
.avatar svg {
  width: 35px;
  height: 35px;
}
.section-head h2 {
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin: 0;
}
.section-head input {
  width: min(320px, 48%);
}
body.light .eyebrow {
  color: #425fd0;
}
body.light .start-card .eyebrow {
  color: #a7baff;
}
.plan-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.plan-price {
  font-size: 1.6rem;
  font-weight: 700;
}
.spaced-heading {
  margin-top: 32px;
}
.register-card {
  max-width: 520px;
  margin: 45px auto;
}
.register-link {
  margin: 20px 0;
  font-size: 0.9rem;
}
body.light {
  --shadow: 0 12px 40px #152a5008;
}
.sidebar nav {
  overflow: auto;
}
@media (max-width: 760px) {
  .sidebar {
    flex-wrap: wrap;
  }
  .sidebar nav {
    max-width: 100%;
    gap: 2px;
  }
  .sidebar nav button {
    padding: 8px;
    min-width: 40px;
  }
  .sidebar nav button span {
    display: none;
  }
  .intro {
    flex-wrap: wrap;
  }
}
.sidebar nav button svg {
  flex-shrink: 0;
}
/* 2.1 — presentation stage and filmstrip */
.meeting {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.meeting-header {
  flex-shrink: 0;
}
.meeting-body {
  min-height: 0;
  overflow: hidden;
}
.stage {
  position: relative;
  overflow: auto;
}
.videos {
  display: block;
  height: 100%;
  min-height: 0;
}
#spotlight[hidden] {
  display: none;
}
#thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 12px;
  align-content: start;
}
#thumbnails .screen {
  grid-column: auto;
}
.presentation-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.presentation-layout #spotlight {
  flex: 1;
  min-height: 0;
  display: flex;
}
#spotlight .tile {
  flex: 1;
  min-width: 0;
  min-height: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}
#spotlight video {
  object-fit: contain;
}
.presentation-layout #thumbnails {
  display: flex;
  flex: 0 0 112px;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 10px;
  padding-bottom: 4px;
}
.presentation-layout #thumbnails .tile {
  flex: 0 0 168px;
  min-height: 0;
  height: 104px;
  aspect-ratio: auto;
}
.presentation-layout #thumbnails .caption {
  font-size: 11px;
  max-width: 95%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.tile-focus {
  position: absolute;
  right: 6px;
  top: 6px;
  font-size: 11px;
  padding: 5px 8px;
  z-index: 2;
  background: #121827cc;
  color: white;
}
.extra-controls {
  display: contents;
}
.meeting-controls {
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom));
}
#spotlight:fullscreen {
  background: #080b12;
  display: flex;
  width: 100%;
  height: 100%;
}
#reaction-layer {
  position: fixed;
  right: 20px;
  bottom: 150px;
  pointer-events: none;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.floating-reaction {
  background: #18243de8;
  color: white;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 22px;
  animation: reaction-rise 3.5s ease-out forwards;
}
@keyframes reaction-rise {
  0% {
    opacity: 0;
    transform: translateY(25px);
  }
  15%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-reaction {
    animation: none;
  }
}
.reaction-picker,
.board-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.reaction-picker button {
  font-size: 28px;
}
#board-editor canvas {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  touch-action: none;
  border-radius: 8px;
}
.board-tools {
  margin-bottom: 12px;
}
.board-tools label {
  max-width: 120px;
}
dialog:has(#board-editor) {
  width: min(1100px, 96vw);
}
@media (max-width: 700px) {
  .meeting-header {
    padding: 10px;
    gap: 8px;
  }
  .meeting-header h2 {
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .meeting-body {
    padding: 8px;
    gap: 8px;
  }
  .presentation-layout {
    gap: 8px;
  }
  .presentation-layout #thumbnails {
    flex-basis: 84px;
  }
  .presentation-layout #thumbnails .tile {
    height: 78px;
    flex-basis: 122px;
  }
  .meeting-controls button {
    min-height: 42px;
    padding: 8px;
  }
  .extra-controls span {
    display: none;
  }
  .meeting-controls {
    gap: 5px;
  }
  .sidepanel {
    position: absolute;
    inset: 65px 8px 115px;
    width: auto;
    z-index: 15;
    background: var(--panel, #161b29);
  }
  .tile .caption {
    font-size: 12px;
    padding: 5px;
  }
  .tile-focus {
    font-size: 10px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .meeting-header {
    padding: 5px;
  }
  .meeting-body {
    padding: 5px;
  }
  .presentation-layout #thumbnails {
    flex-basis: 60px;
  }
  .presentation-layout #thumbnails .tile {
    height: 54px;
    flex-basis: 95px;
  }
  .meeting-controls {
    padding: 5px;
  }
  .meeting-controls button {
    min-height: 32px;
    padding: 5px;
  }
}

#spotlight .tile-focus {
  display: none;
}
.tile-focus {
  min-height: 26px;
  min-width: 26px;
  padding: 3px 6px;
  font-size: 16px;
  line-height: 1;
}
/* 2.2 — shared visual system: public pages, account and administration */
:root {
  --bg: #0c111b;
  --panel: #141c29;
  --surface: #1d2737;
  --line: #293447;
  --text: #edf2f8;
  --muted: #a5b2c6;
  --shadow: 0 8px 28px #0000001a;
  background: var(--bg);
  color: var(--text);
}
body {
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body.light {
  --bg: #f3f5f9;
  --panel: #ffffff;
  --surface: #f0f3f8;
  --line: #dde3ec;
  --text: #192438;
  --muted: #58677d;
  --shadow: 0 8px 28px #22304b07;
}
h1,
h2,
h3 {
  font-weight: 700;
  text-wrap: balance;
}
h1 {
  letter-spacing: -0.045em;
}
p {
  line-height: 1.65;
}
button,
a,
input,
select,
textarea {
  transition:
    background-color 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button {
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}
button:hover {
  filter: none;
  background: color-mix(in srgb, var(--surface) 80%, var(--text) 8%);
}
button.primary:hover,
.button-link.primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, #000);
  color: var(--on-accent, #fff);
}
button:disabled {
  cursor: not-allowed;
}
button.primary,
.button-link.primary {
  box-shadow: 0 3px 8px color-mix(in srgb, var(--accent) 17%, transparent);
}
input,
select,
textarea {
  background: var(--panel);
  border-radius: 10px;
  font-size: 0.94rem;
  box-shadow: 0 1px 2px #00000004;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
textarea {
  font: inherit;
  resize: vertical;
}
label {
  font-size: 0.83rem;
  letter-spacing: 0.005em;
}
select option {
  color: var(--text);
  background: var(--panel);
}
input[type="range"] {
  accent-color: var(--accent);
  box-shadow: none;
}
.card {
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.eyebrow {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.brand {
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}
.brand .mark {
  background: var(--accent);
  color: var(--on-accent, #fff);
  border-radius: 12px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 18%, transparent);
}
.brand img {
  object-fit: contain;
  max-height: 44px;
  max-width: 150px;
}
.shell {
  grid-template-columns: 248px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 28px 16px;
  gap: 32px;
}
.sidebar > .brand {
  padding: 0 12px;
}
.sidebar nav {
  gap: 5px;
}
.sidebar nav button {
  font-size: 0.9rem;
  padding: 13px 16px;
  border-radius: 10px;
  min-width: 0;
}
.sidebar nav button.active {
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--text);
  box-shadow: inset 3px 0 var(--accent);
}
.sidebar nav button:hover {
  background: var(--surface);
}
.sidebar footer {
  padding: 20px 12px 0;
}
.sidebar footer p {
  font-size: 0.78rem;
  margin: 4px 0 16px;
}
.sidebar footer button {
  width: 100%;
}
.workspace {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px clamp(22px, 3.5vw, 56px) 48px;
  min-width: 0;
}
.workspace > .topline {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 36px;
  min-height: 64px;
}
.topline .date {
  font-size: 0.82rem;
  text-transform: capitalize;
}
.topline .actions small {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.intro {
  margin-bottom: 24px;
}
.intro p {
  margin-bottom: 0;
}
.intro h1 {
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}
.start-grid {
  gap: 18px;
}
.start-card {
  background: linear-gradient(120deg, #17263e, #22395e);
  border-color: #33496b;
  padding: 32px;
}
.start-card h2 {
  font-size: 1.8rem;
  max-width: 330px;
}
.start-card .eyebrow {
  color: #c3d0f2;
}
.start-card button {
  margin-top: 12px;
}
.notice {
  border-radius: 12px;
  padding: 15px 18px;
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  color: var(--text);
  font-size: 0.86rem;
}
.room-item {
  border-radius: 14px;
  padding: 20px;
  background: var(--panel);
  box-shadow: 0 2px 6px #00000004;
}
.room-item h3 {
  font-size: 1rem;
}
.badge {
  border-radius: 6px;
  font-size: 0.69rem;
  font-weight: 600;
  padding: 4px 8px;
  line-height: 1.4;
  background: var(--surface);
  color: var(--muted);
}
.room-symbol {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent);
}
.table-wrap {
  padding: 0;
  border-radius: 16px;
}
th {
  background: var(--surface);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
td {
  font-size: 0.87rem;
}
th,
td {
  padding: 16px 20px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--surface) 50%, var(--panel));
}
.form {
  gap: 20px;
}
.settings-grid {
  gap: 20px;
}
.form h2 {
  margin: 12px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--panel);
  padding: 40px 24px;
}
.empty svg {
  color: var(--accent);
}
.auth-wrap {
  max-width: 1160px;
  padding: 32px;
}
.auth-wrap .topline {
  margin-bottom: 36px;
}
.auth-grid {
  min-height: calc(100dvh - 180px);
  gap: 72px;
  margin-top: 0;
}
.auth-grid > section:first-child {
  padding: 32px 0;
}
.auth-grid h1 {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  line-height: 1.08;
}
.auth-grid .card {
  padding: 36px;
  border-radius: 22px;
}
.auth-grid .card h2 {
  font-size: 1.5rem;
}
.auth-grid .card > p {
  font-size: 0.9rem;
}
.auth-grid .device-controls .badge {
  border: 1px solid var(--line);
  padding: 8px 12px;
}
.auth-grid hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 26px 0;
}
.auth-wrap:has(.register-card) {
  max-width: 780px;
}
.register-card {
  max-width: 520px;
  margin: 44px auto;
  padding: 36px;
}
.register-card h1 {
  font-size: 2rem;
}
.register-card .form > a {
  text-align: center;
  font-size: 0.86rem;
}
.portal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.portal-nav > a:not(.brand) {
  font-size: 0.82rem;
  color: var(--muted);
}
.install {
  max-width: 760px;
  padding: 0 24px;
  margin: 30px auto 60px;
}
.install .brand {
  margin: 0;
}
.install > .card {
  padding: 36px;
}
.install .card > h1 {
  font-size: 2rem;
}
.prejoin {
  max-width: 1240px;
  padding: 28px 32px;
  min-height: 100dvh;
}
.prejoin-grid {
  gap: 32px;
  margin-top: 50px;
}
.prejoin-grid > section:last-child {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  padding: 30px;
  box-shadow: var(--shadow);
}
.status-center {
  max-width: 620px;
  margin: 70px auto 24px;
  padding: 46px 38px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.status-center h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin: 16px 0;
}
.status-center p {
  max-width: 440px;
  margin: 0 auto 24px;
  color: var(--muted);
}
.status-symbol {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
  color: var(--accent);
}
.status-symbol svg {
  width: 32px;
  height: 32px;
}
.status-center .actions {
  justify-content: center;
  gap: 10px;
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.button-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent, #fff);
}
.status-footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 20px auto;
  max-width: 500px;
}
dialog {
  padding: 28px;
  border-radius: 20px;
  box-shadow: 0 30px 100px #0005;
}
.dialog-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.dialog-head h2 {
  font-size: 1.2rem;
}
.meeting-header {
  background: var(--panel);
  padding: 12px 20px;
}
.meeting-header h2 {
  font-size: 0.95rem;
}
.meeting-header .connection {
  font-size: 0.72rem;
}
.meeting-controls {
  background: var(--panel);
  border-top: 1px solid var(--line);
}
.meeting-controls button {
  font-size: 0.82rem;
}
.meeting-controls button.active {
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
  color: var(--text);
}
@media (min-width: 901px) {
  .auth-wrap:has(.auth-grid) {
    position: relative;
  }
  .auth-grid > section:first-child::after {
    content: "";
    display: block;
    height: 110px;
    margin-top: 40px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(
      120deg,
      color-mix(in srgb, var(--accent) 9%, var(--panel)),
      var(--panel)
    );
    box-shadow: 18px 18px 0 -5px var(--surface);
  }
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
    gap: 18px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 5px;
  }
  .sidebar nav button {
    flex-shrink: 0;
    padding: 10px 14px;
  }
  .sidebar footer {
    display: none;
  }
  .sidebar > .brand {
    padding: 0;
  }
  .workspace {
    padding: 22px;
  }
  .workspace > .topline {
    margin-bottom: 24px;
  }
  .auth-grid {
    gap: 28px;
  }
  .auth-grid h1 {
    font-size: 2.6rem;
  }
  .prejoin-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }
  .auth-wrap {
    padding: 22px 18px;
  }
  .auth-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-grid > section:first-child {
    padding: 12px 0;
  }
  .auth-grid h1 {
    font-size: 2.2rem;
  }
  .auth-grid .card {
    padding: 24px;
  }
  .auth-wrap .topline {
    margin-bottom: 16px;
  }
  .register-card {
    margin: 26px auto;
    padding: 26px;
  }
  .install {
    padding: 0 16px;
    margin-top: 22px;
  }
  .install > .card {
    padding: 24px;
  }
  .card {
    padding: 22px;
  }
  .table-wrap {
    padding: 0;
  }
  .workspace {
    padding: 18px 16px;
  }
  .workspace > .topline .date {
    max-width: 45%;
    font-size: 0.72rem;
  }
  .workspace > .topline .actions small {
    display: none;
  }
  .sidebar nav button span {
    display: inline;
  }
  .sidebar nav button {
    font-size: 0.8rem;
  }
  .start-grid {
    grid-template-columns: 1fr;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .prejoin {
    padding: 22px 16px;
  }
  .prejoin-grid {
    margin-top: 25px;
    gap: 20px;
  }
  .prejoin-grid > section:last-child {
    padding: 24px;
  }
  .status-center {
    margin: 45px auto 20px;
    padding: 32px 22px;
  }
  .status-center .actions {
    flex-direction: column;
  }
  .status-center .button-link {
    width: 100%;
  }
  .portal-nav .brand {
    font-size: 0.98rem;
  }
  .portal-nav > a:not(.brand) {
    font-size: 0.74rem;
  }
  .meeting-header {
    padding: 10px;
  }
  .meeting-controls button {
    font-size: 0.8rem;
  }
  dialog {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 900px) {
  .sidebar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .sidebar .brand > span {
    display: inline;
  }
  .sidebar nav {
    width: 100%;
  }
}
/* 2.3 — consistent controls, invitations and persistent raised hands */
.meeting-controls button svg,
.tile-focus svg,
.hand-entry svg,
.hand-badge svg,
.code-pill svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.meeting-controls {
  gap: 8px;
  padding: 12px;
  justify-content: center;
}
.meeting-controls button {
  border-radius: 12px;
  min-height: 46px;
  padding: 11px 14px;
  gap: 8px;
}
.extra-controls button span {
  font-size: 0.8rem;
}
.tile-focus {
  width: 30px;
  height: 30px;
  padding: 5px;
}
.tile-focus svg {
  width: 17px;
  height: 17px;
}
#raise-hand.active {
  background: #f7c663;
  color: #222;
  border-color: #f7c663;
}
.hand-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f7c663;
  color: #222;
}
.hand-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.hand-entry > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.hand-entry svg {
  color: #f7c663;
}
.hand-entry button {
  font-size: 0.72rem;
  min-height: 36px;
  padding: 6px 10px;
  flex-shrink: 0;
}
#hands-list:empty {
  display: none;
}
#hands-list {
  background: var(--surface);
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}
#hands-list h3 {
  font-size: 0.85rem;
}
.hand-notice {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 8px;
  z-index: 4;
  max-width: 90%;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 30px;
  background: #f7c663;
  color: #222;
  font-size: 0.75rem;
  box-shadow: var(--shadow);
}
.hand-notice[hidden] {
  display: none;
}
.invite-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 12px;
  align-items: end;
}
.invite-fields input {
  font-size: 0.85rem;
}
.invite-fields button {
  min-height: 46px;
}
.invite-fields button svg {
  width: 18px;
  height: 18px;
}
.meeting-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 650;
  letter-spacing: 0.06em;
  font-size: 1.1rem !important;
}
.code-pill {
  display: inline-flex;
  min-height: 28px;
  padding: 3px 8px;
  font-size: 0.68rem;
  border: 0;
  background: var(--surface);
  margin-left: 10px;
  border-radius: 7px;
  vertical-align: middle;
}
.code-pill svg {
  width: 13px;
  height: 13px;
}
.code-pill span {
  font-family: ui-monospace, Consolas, monospace;
}
.room-code-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 7px;
}
.room-code-label code {
  color: var(--text);
  letter-spacing: 0.035em;
}
.invite-button {
  width: auto !important;
  min-width: 44px;
  padding: 10px 14px !important;
}
#copy-status {
  margin: 18px 0 0;
  font-size: 0.85rem;
  min-height: 1.5em;
}
@media (max-width: 1100px) {
  .meeting-controls .control-label,
  .extra-controls button span {
    display: none;
  }
  .meeting-controls button {
    width: 44px;
    padding: 10px;
  }
  .meeting-controls .leave {
    width: auto;
  }
  .meeting-controls {
    gap: 6px;
  }
}
@media (max-width: 600px) {
  .meeting-controls {
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    gap: 6px;
  }
  .meeting-controls button {
    width: 40px;
    min-height: 40px;
    padding: 8px;
    border-radius: 10px;
  }
  .meeting-controls button svg {
    width: 19px;
    height: 19px;
  }
  .meeting-controls .leave {
    min-width: 65px;
  }
  .meeting-header > .brand {
    display: none;
  }
  .meeting-header > div:first-of-type {
    min-width: 0;
  }
  .meeting-header h2 {
    max-width: 62vw;
  }
  .meeting-header .actions {
    gap: 5px;
  }
  .meeting-header .actions button {
    width: 36px;
    min-height: 36px;
    padding: 7px;
  }
  .code-pill {
    display: flex;
    margin: 3px 0 0;
    max-width: 62vw;
  }
  .code-pill span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .meeting-header {
    gap: 8px;
    padding: 9px 12px;
  }
  .invite-fields {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .invite-fields label:not(:first-child) {
    margin-top: 12px;
  }
  .invite-fields button {
    width: 100%;
  }
  .room-item .actions {
    flex-wrap: wrap;
  }
  .room-code-label code {
    overflow-wrap: anywhere;
  }
  .hand-notice {
    font-size: 0.68rem;
  }
}
/* Compact call dock and overflow menu, inspired by familiar meeting controls. */
.meeting {
  position: relative;
}
.meeting-controls {
  border: 0;
  background: var(--bg);
  padding: 10px 12px 16px;
}
.controls-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 40px;
  max-width: 100%;
  box-shadow: 0 5px 24px #0002;
}
.controls-dock button {
  border-radius: 50%;
  height: 46px;
  min-height: 46px;
  width: 46px;
  min-width: 46px;
  padding: 12px;
  background: var(--surface);
  border: 0;
}
.controls-dock button span {
  display: none;
}
.controls-dock button svg {
  width: 22px;
  height: 22px;
}
.controls-dock #more-controls svg {
  stroke-width: 4;
}
.controls-dock button.leave {
  width: 66px;
  min-width: 66px;
  border-radius: 30px;
  background: #d93036;
  color: #fff;
  margin: 0 0 0 4px;
}
.controls-dock button.leave:hover {
  background: #ba242b;
}
.controls-dock button.active {
  background: #bcd6ff;
  color: #142944;
}
.controls-dock #raise-hand.active {
  background: #f7c663;
  color: #272018;
}
.more-menu {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-10%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 286px;
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 170px);
  overflow-y: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px #0005;
  border-radius: 18px;
  padding: 8px;
}
.more-menu button {
  background: transparent;
  justify-content: flex-start;
  border: 0;
  border-radius: 10px;
  gap: 12px;
  padding: 12px;
  width: 100%;
  font-size: 0.84rem;
  min-height: 46px;
  text-align: left;
}
.more-menu button svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
.more-menu button:hover {
  background: var(--surface);
}
.more-menu button span {
  display: inline;
}
.more-menu button[hidden] {
  display: none;
}
#reaction-layer {
  inset: auto auto 100px 22px;
  width: 260px;
  height: 340px;
  display: block;
  overflow: hidden;
}
.floating-reaction {
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-width: 95px;
  animation: reaction-float 3.5s linear forwards;
}
.floating-reaction > span {
  font-size: 36px;
  line-height: 1.2;
}
.floating-reaction small {
  font-size: 10px;
  line-height: 1.4;
  color: #16243a;
  background: #bcd6ff;
  padding: 3px 7px;
  border-radius: 12px;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reaction-lane-0 {
  left: 0;
}
.reaction-lane-1 {
  left: 52px;
}
.reaction-lane-2 {
  left: 104px;
}
.reaction-lane-3 {
  left: 155px;
}
@keyframes reaction-float {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  12% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-270px);
  }
}
@media (max-width: 600px) {
  .meeting-controls {
    padding: 8px 6px max(10px, env(safe-area-inset-bottom));
  }
  .controls-dock {
    gap: 4px;
    padding: 7px;
  }
  .controls-dock button {
    width: 36px;
    min-width: 36px;
    height: 38px;
    min-height: 38px;
    padding: 8px;
  }
  .controls-dock button svg {
    width: 20px;
    height: 20px;
  }
  .controls-dock button.leave {
    width: 48px;
    min-width: 48px;
    margin-left: 2px;
  }
  .more-menu {
    bottom: 78px;
    left: 50%;
    transform: translateX(-50%);
  }
  #reaction-layer {
    left: 10px;
    bottom: 85px;
    width: 190px;
  }
  .reaction-lane-3 {
    left: 110px;
  }
  .floating-reaction > span {
    font-size: 30px;
  }
}
@media (max-width: 355px) {
  .controls-dock {
    gap: 3px;
    padding: 5px;
  }
  .controls-dock button {
    min-width: 32px;
    width: 32px;
    padding: 6px;
  }
  .controls-dock button.leave {
    min-width: 43px;
    width: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-reaction {
    animation: none;
    position: relative;
    display: inline-flex;
    margin: 8px;
  }
}
.sidepanel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 8px 30px #0002;
  overflow: hidden;
}
.sidepanel-title {
  padding: 22px 20px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sidepanel-title h2 {
  font-size: 1.03rem;
  margin: 0;
}
.sidepanel-title .badge {
  font-size: 0.66rem;
}
.sidepanel .tabs {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  gap: 5px;
}
.sidepanel .tabs button {
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  border-radius: 10px;
}
.sidepanel .tabs button:hover {
  background: var(--surface);
}
.sidepanel .messages {
  padding: 18px;
  min-height: 0;
}
.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  text-align: center;
  padding: 26px 10px;
  color: var(--muted);
}
.chat-empty svg {
  width: 76px;
  height: 76px;
  padding: 20px;
  border-radius: 24px;
  color: var(--accent);
  background: var(--surface);
  margin-bottom: 22px;
}
.chat-empty h3 {
  font-size: 0.94rem;
  color: var(--text);
}
.chat-empty p {
  font-size: 0.8rem;
  max-width: 240px;
}
.sidepanel .chat-form {
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.sidepanel .chat-form input {
  border-radius: 26px;
  padding: 12px 16px;
  background: var(--panel);
}
.sidepanel .chat-form button {
  border-radius: 50%;
  width: 44px;
  padding: 10px;
}
.message {
  border-radius: 14px;
}
.host-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.host-section p {
  font-size: 0.84rem;
}
@media (max-width: 600px) {
  .sidepanel {
    inset: 0 0 0 auto;
    width: 100%;
    max-width: 390px;
    border-radius: 18px;
    z-index: 20;
  }
  .sidepanel-title {
    padding: 18px 18px 8px;
  }
}
.controls-dock .leave .control-label {
  display: none !important;
}
.presentation-layout #thumbnails:empty {
  display: none;
}
