:root {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: #4a3728;
  background: #fbf7f2;
  font-size: 15px;
  line-height: 1.55;
  --plum: #994168;
  --rule: #e4d9ce;
  --muted: #746657;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--plum);
  color: #fff;
  border-radius: 8px;
  padding: 10px 17px;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button.secondary {
  background: white;
  color: #4a3728;
  border-color: #d7c7ba;
}
button.danger {
  background: #fff;
  color: #9d302f;
  border-color: #dbad9e;
}
button.text-button {
  background: transparent;
  color: var(--plum);
  padding: 7px 0;
}
a {
  color: var(--plum);
}
:focus-visible {
  outline: 3px solid #d78640;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding: 22px 5vw;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  font-family: Georgia, serif;
}
.brand img {
  width: 48px;
  height: 48px;
}
.brand small {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  padding-top: 2px;
}
.tag,
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.tag {
  color: var(--muted);
}
main {
  max-width: 1450px;
  padding: 38px 5vw 80px;
  margin: auto;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 42px;
  line-height: 1.13;
  margin: 8px 0 14px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}
p {
  color: var(--muted);
}
.entry {
  max-width: 520px;
  margin: 40px auto;
}
.entry h1 {
  font-size: 60px;
  letter-spacing: -0.025em;
}
.entry form {
  margin: 30px 0 22px;
  display: grid;
  gap: 17px;
}
.entry button {
  margin-top: 4px;
}
.eyebrow {
  color: var(--plum);
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: #fff;
  color: #4a3728;
  border: 1px solid #cbbcaa;
  border-radius: 6px;
  padding: 11px;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
.muted {
  font-size: 13px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.heading h1 {
  font-size: 36px;
}
.status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 13px;
  background: #eee6dc;
  border-radius: 5px;
}
.status.live {
  color: #8a283e;
  background: #f6e4e3;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
}
.workspace:has(aside[hidden]) {
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: auto;
}
.main-column {
  min-width: 0;
}
.media-panel {
  background: #292725;
  color: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.media-heading {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: 12px;
  gap: 12px;
  color: #e4ded6;
}
.media-heading #room-label {
  font-weight: 600;
}
#tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 8px;
  padding: 0 12px;
}
#tiles:empty {
  display: none;
}
.tile {
  min-width: 0;
  position: relative;
  border-radius: 7px;
  background: #181817;
  min-height: 150px;
  display: grid;
  align-items: center;
}
.tile video {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  display: block;
  border-radius: 7px;
}
.tile span {
  padding: 8px 12px;
  font-size: 12px;
  color: #f1e9df;
}
.tile audio {
  display: none;
}
#holding {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 35px;
}
#holding h2 {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
  margin: 20px 0 12px;
}
#holding p {
  color: #d2c9bf;
  max-width: 330px;
  font-size: 14px;
}
.circle {
  font-family: Georgia, serif;
  display: grid;
  place-items: center;
  border: 1px solid #a58b76;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 25px;
  color: #dec7b0;
}
.media-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
}
.media-controls .secondary {
  background: #3a3632;
  color: #fff;
  border-color: #736357;
  font-size: 12px;
}
.media-controls button[aria-pressed="true"] {
  background: #ead7c5;
  color: #392a22;
}
#hls {
  width: 100%;
  max-height: 600px;
}
.callout {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  background: #efe4d6;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
}
.callout p {
  font-size: 13px;
  margin-top: 5px;
}
.callout button {
  flex-shrink: 0;
}
aside section {
  padding: 0 0 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--rule);
}
aside section:last-child {
  border: 0;
}
aside p {
  font-size: 13px;
  margin-bottom: 14px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.button-row button {
  font-size: 13px;
}
.health {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 20px 0;
}
.health span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 7px;
}
.health strong {
  font-size: 13px;
  font-weight: 500;
}
.person {
  margin: 16px 0;
}
.person .name {
  font-weight: 600;
}
.person p {
  font-size: 12px;
  margin: 3px 0 7px;
}
.person button {
  padding: 6px 9px;
  font-size: 11px;
}
.person-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
#invite-result {
  margin-top: 14px;
}
#invite-link {
  font-size: 11px;
}
#question-section,
#activity-section {
  margin-top: 32px;
}
#question-section p {
  font-size: 14px;
  margin-bottom: 12px;
}
#question-form button {
  margin-top: 10px;
}
#question-result {
  font-size: 13px;
  margin-left: 10px;
}
#activity {
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
#activity li {
  margin: 10px 0;
}
#activity time {
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
.question {
  margin: 14px 0;
  font-size: 13px;
}
.question p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}
#notice {
  padding: 14px 18px;
  background: #fae4d8;
  border-left: 3px solid #b44e35;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding: 23px 5vw;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 20px;
  }
}
@media (max-width: 780px) {
  header {
    padding: 18px 5vw;
  }
  .brand {
    font-size: 17px;
  }
  .tag {
    font-size: 9px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 30px;
  }
  .entry h1 {
    font-size: 48px;
  }
  .callout {
    align-items: flex-start;
    flex-direction: column;
  }
  #holding {
    min-height: 300px;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
  .heading .status {
    font-size: 10px;
  }
  aside {
    margin-top: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.tile.audio-tile {
  min-height: 0;
  grid-column: 1/-1;
  background: transparent;
}
.tile.audio-tile span {
  padding: 2px 8px;
  color: #c5b8aa;
}
#tiles {
  grid-template-columns: 1fr;
}
#tiles:has(.tile:not(.audio-tile) ~ .tile:not(.audio-tile)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 600px) {
  #tiles:has(.tile:not(.audio-tile) ~ .tile:not(.audio-tile)) {
    grid-template-columns: 1fr;
  }
}
