.sr {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.home-link {
  font-size: 0.92rem;
  font-weight: 600;
}
.room-wrap {
  width: min(760px, calc(100% - 32px));
  margin: clamp(20px, 4vw, 60px) auto;
}
.lobby {
  background: linear-gradient(125deg, #fff1e0, #f6dfc9);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 74px);
  box-shadow: inset 0 0 0 1px #e6d7c6;
}
.lobby h1 {
  font-size: clamp(3.3rem, 7vw, 5.1rem);
  letter-spacing: -0.08em;
  line-height: 0.96;
  font-weight: 580;
  margin: 0 0 20px;
}
.lobby h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  color: #b74519;
  letter-spacing: -0.04em;
}
.lobby > p:not(.eyebrow) {
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 24px;
}
.lobby-note {
  margin-top: 19px;
  color: #526052;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 7px;
}
.room {
  border: 1px solid #d4d8cb;
  border-radius: 20px;
  overflow: hidden;
  background: #fffefa;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  box-shadow: 0 13px 40px #1e39280c;
}
.room-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  background: #fffef9;
}
.room-head h1 {
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0;
}
.room-head small {
  color: #56665b;
}
.partner-icon {
  background: #e2ead7;
  color: #496851;
  border-radius: 50%;
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
}
.tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool {
  padding: 0;
  width: 38px;
  height: 38px;
  border: 1px solid #d6dacd;
  background: #f8f9f2;
  border-radius: 50%;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.tool:not(:disabled):hover {
  background: #e4e9dc;
}
.leave {
  font-size: 1.5rem;
  color: #96441f;
}
.tool.send {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.tool.send:hover {
  background: #436253;
}
.invite,
.call-area {
  padding: 14px 20px;
  background: #eef2e7;
  border-bottom: 1px solid var(--line);
}
.invite label {
  font-weight: 650;
}
.invite > div,
.call-line {
  display: flex;
  align-items: center;
  gap: 9px;
}
.invite input {
  border: 1px solid #b5c2b1;
  min-width: 0;
  flex: 1;
  background: #fffefa;
  border-radius: 8px;
  padding: 7px 9px;
  color: #405549;
}
.invite small {
  color: var(--muted);
}
.invite .tool {
  width: 34px;
  height: 34px;
}
.call-line {
  flex-wrap: wrap;
}
.call-line span {
  margin-right: auto;
}
.call-line .button {
  min-height: 36px;
  font-size: 0.87rem;
}
.videos {
  position: relative;
  background: #1a2c25;
  margin-top: 8px;
  border-radius: 10px;
  overflow: hidden;
}
.videos video:first-child {
  width: 100%;
  display: block;
  max-height: 250px;
}
.videos video + video {
  position: absolute;
  width: 24%;
  max-height: 90px;
  object-fit: contain;
  right: 8px;
  top: 8px;
}
.history {
  height: clamp(230px, 43vh, 490px);
  background: #f4f4ec;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 8px;
}
.history-empty {
  margin: auto;
  text-align: center;
  color: #5a645a;
}
.history-empty img {
  width: 44px;
}
.history-empty p {
  margin: 4px 0;
}
.msg {
  background: #fffef9;
  padding: 9px 13px;
  border-radius: 15px 15px 15px 3px;
  align-self: flex-start;
  border: 1px solid #dde1d6;
  max-width: 85%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.msg.me {
  align-self: flex-end;
  background: #f9ddc9;
  border-color: #efcfbb;
  border-radius: 15px 15px 3px 15px;
}
.msg time {
  display: block;
  color: #656c60;
  font-size: 0.72rem;
  text-align: right;
}
.msg img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
}
.msg audio {
  max-width: 100%;
  height: 34px;
}
.msg a {
  display: block;
  text-decoration: underline;
  font-weight: 590;
}
.msg.system {
  background: transparent;
  border: none;
  align-self: center;
  color: #536257;
  font-size: 0.87rem;
}
.room #compose {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #fffef9;
}
.room #message {
  border: 1px solid #d9dece;
  border-radius: 22px;
  min-width: 0;
  flex: 1;
  padding: 8px 13px;
  background: #f8f8f1;
}
.recording {
  background: #fbcec1;
  color: #9c261d;
}
.room .tool {
  flex: none;
}
#notice {
  min-height: 1.5em;
  color: #804120;
  text-align: center;
  font-weight: 550;
  margin: 12px 0;
}
#notice:empty {
  margin: 0;
}
.room-wrap:has(.room:not([hidden])) {
  margin-top: clamp(10px, 2.4vw, 32px);
}
@media (max-width: 500px) {
  .room-wrap {
    width: calc(100% - 20px);
  }
  .room-head {
    padding: 12px 10px;
    gap: 7px;
  }
  .room .tool {
    width: 33px;
    height: 33px;
  }
  .room #compose {
    padding: 8px 6px;
    gap: 4px;
  }
  .invite,
  .call-area {
    padding: 10px 12px;
  }
  .room .history {
    padding: 10px;
  }
  .room .tools {
    gap: 4px;
  }
  .partner-icon {
    width: 33px;
    height: 33px;
  }
  .lobby-note {
    align-items: flex-start;
  }
}
.verification {
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}
.verification summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 650;
}
.verification p {
  margin: 8px 0;
}
.verification output {
  font:
    600 0.92rem/1.6 ui-monospace,
    monospace;
  color: var(--ink);
}
