:root {
  font-family: Inter, 'PingFang SC', system-ui, sans-serif;
  color: #24362d;
  background: #f5f5f0;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main {
  width: min(1080px, 92vw);
  margin: auto;
}
header {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #ced4c9;
  font-size: 14px;
}
header a {
  color: #46594c;
  text-decoration: none;
}
header a:hover {
  text-decoration: underline;
}
header span {
  color: #8b958b;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(274px, 1fr);
  margin: 28px auto;
  gap: 30px;
  align-items: stretch;
}
.stage {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #c8cfc7;
  min-height: 400px;
  height: min(68vh, 650px);
}
.stage:after {
  position: absolute;
  inset: 55% 0 0;
  content: '';
  background: linear-gradient(transparent, #17291ed9);
  pointer-events: none;
}
.stage img,
.stage video {
  height: 100%;
  width: 100%;
  position: absolute;
  object-fit: cover;
  inset: 0;
}
.stage video {
  opacity: 0;
}
.stage.connected video {
  opacity: 1;
}
.stage-label,
.identity {
  position: absolute;
  z-index: 1;
}
.stage-label {
  top: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: #fcfcf7;
  color: #293c30;
  border-radius: 16px;
  font-size: 13px;
}
.dot {
  border-radius: 50%;
  height: 7px;
  width: 7px;
  background: #91988e;
}
.connected .dot {
  background: #3c8454;
}
.identity {
  bottom: 24px;
  left: 24px;
  color: white;
}
.identity h1 {
  font-size: 38px;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 8px;
}
.identity p,
p.note {
  font-size: 13px;
  margin: 0;
}
.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: max(400px, min(68vh, 650px));
  padding: 16px 4px 8px;
}
h2 {
  font-size: 27px;
  margin: 0;
}
#info {
  font-size: 15px;
  line-height: 1.7;
  color: #516153;
  margin: 12px 0 20px;
}
button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 9px;
  padding: 13px 20px;
  cursor: pointer;
  background: #264835;
  color: white;
}
button.on {
  background: #773f36;
}
button:hover {
  filter: brightness(0.94);
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #668b65;
  outline-offset: 3px;
}
.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d0d8ce;
  margin: 28px 0 8px;
  padding-bottom: 12px;
}
.log-head h3 {
  font-size: 16px;
  margin: 0;
}
.log-head time {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #556754;
}
#log {
  flex: 1;
  overflow: auto;
  min-height: 60px;
}
.empty,
.note {
  color: #637063;
  font-size: 13px;
}
.note {
  padding-top: 15px;
  border-top: 1px solid #d0d8ce;
}
.utterance {
  margin: 12px 0;
}
.utterance strong {
  font-size: 12px;
  color: #526554;
}
.utterance p {
  margin: 3px 0 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#unmute {
  margin-top: 8px;
  background: #51634f;
}
@media (max-width: 700px) {
  header {
    height: 54px;
  }
  main {
    grid-template-columns: 1fr;
    margin: 14px auto;
    gap: 12px;
  }
  .stage {
    height: 45svh;
    min-height: 268px;
  }
  .panel {
    padding: 4px 2px;
    max-height: 430px;
  }
  .log-head {
    margin-top: 18px;
  }
  .identity {
    left: 17px;
    bottom: 14px;
  }
  .identity h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 22px;
  }
  #info {
    margin: 7px 0 12px;
  }
}
