:root {
  --blue-950: #061746;
  --blue-800: #0b3d91;
  --blue-600: #1f64d8;
  --blue-100: #eaf2ff;
  --white: #ffffff;
  --text: #101828;
  --muted: #5c6881;
  --border: #d9e4f7;
  --shadow: 0 18px 48px rgba(6, 23, 70, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(140deg, #f7fbff 0%, #ffffff 46%, #edf5ff 100%);
}

.shell {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.room-shell {
  width: min(780px, calc(100vw - 32px));
}

.hero {
  padding: 36px 0 22px;
}

.hero.compact {
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--blue-950);
  color: var(--white);
  font-weight: 900;
}

.brand p {
  margin: 0 0 4px;
  color: var(--blue-800);
  font-weight: 800;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
}

h2 {
  font-size: 22px;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.panel {
  margin: 18px 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.status {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status.ready {
  color: #08603a;
  background: #e8f7ef;
}

.status.error {
  color: #9f1d20;
  background: #ffecec;
}

label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  color: var(--text);
  font: inherit;
}

button,
.button {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--white);
  color: var(--blue-950);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.primary {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.message,
.note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.error-text {
  color: #9f1d20;
}

.hidden {
  display: none !important;
}

.participants {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.participant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdff;
}

.participant span {
  color: #08603a;
  font-size: 13px;
  font-weight: 900;
}

audio {
  width: 100%;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 920px);
    padding-top: 18px;
  }

  .brand {
    align-items: flex-start;
  }

  .mark {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
  }

  h1 {
    font-size: 38px;
    line-height: 1.04;
  }

  .lead {
    font-size: 17px;
  }

  .panel {
    padding: 18px;
  }

  .panel-header,
  .participant {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }

  button,
  .button {
    width: 100%;
  }
}
