:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  background: #04110f;
  color: #ecf7f3;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(30, 160, 116, .22), transparent 38rem),
    linear-gradient(160deg, #061916, #020807 70%);
}
button, input, select { font: inherit; }
.shell { width: min(720px, calc(100% - 32px)); margin: auto; padding: 56px 0 80px; }
.hero { margin-bottom: 28px; }
.brand {
  display: inline-block; padding: 7px 11px; border: 1px solid #2b8069;
  border-radius: 999px; color: #8ce3c3; font-size: 12px; font-weight: 800; letter-spacing: .14em;
}
h1 { margin: 18px 0 8px; font-size: clamp(36px, 8vw, 64px); line-height: .98; letter-spacing: -.045em; }
.hero p { max-width: 600px; color: #9db7af; font-size: 17px; line-height: 1.65; }
.card {
  border: 1px solid rgba(120, 220, 185, .18); border-radius: 24px; padding: 24px;
  background: rgba(7, 28, 24, .78); box-shadow: 0 24px 80px rgba(0,0,0,.28);
  backdrop-filter: blur(18px);
}
form { display: grid; gap: 17px; }
label { display: grid; gap: 8px; color: #bad0c8; font-size: 13px; font-weight: 700; }
input, select {
  width: 100%; border: 1px solid #284f44; border-radius: 13px; padding: 14px 15px;
  background: #071713; color: #f4fffb; outline: none;
}
input:focus, select:focus { border-color: #45c99c; box-shadow: 0 0 0 3px rgba(69,201,156,.14); }
button {
  border: 0; border-radius: 13px; padding: 13px 17px; cursor: pointer; font-weight: 800;
}
button:disabled { opacity: .55; cursor: wait; }
.primary { color: #03100c; background: #5ce0b0; }
.primary.live { color: white; background: #d94e5d; }
.secondary { color: #d9f8ed; background: #173d33; }
.ghost { color: #b9d0c8; background: transparent; border: 1px solid #34584e; }
.notice { width: 100%; margin: 15px 0; color: #211800; background: #ffd76d; }
.hidden { display: none !important; }
.error { min-height: 20px; margin: 0; color: #ff9b9b; font-size: 14px; }
.room-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.room-head h2 { margin: 6px 0 0; font-size: 24px; overflow-wrap: anywhere; }
.status { color: #62dcb2; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.controls button:only-child { grid-column: 1 / -1; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 15px;
  border-radius: 17px; background: #051512;
}
.stats div { display: grid; gap: 3px; text-align: center; }
.stats strong { font-size: 21px; }
.stats span { color: #78968c; font-size: 11px; }
h3 { margin: 24px 0 12px; font-size: 14px; color: #a9c1b8; }
.participants { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.participants li {
  display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid transparent;
  border-radius: 14px; background: rgba(255,255,255,.025);
}
.participants li.speaking { border-color: #49d6a6; background: rgba(73,214,166,.08); }
.avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #204a3e; color: #93e7ca; font-weight: 900;
}
.person { display: grid; flex: 1; gap: 2px; }
.person small { color: #729087; }
.wave { color: #49d6a6; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(440px, calc(100% - 32px)); padding: 13px 16px; border-radius: 13px;
  color: #03100c; background: #8ce3c3; box-shadow: 0 14px 50px #0008; font-weight: 800;
}
@media (max-width: 520px) {
  .shell { padding-top: 34px; }
  .card { padding: 18px; border-radius: 20px; }
  .controls { grid-template-columns: 1fr; }
}
