:root {
  --paper: #fdfcfc;
  --ink: #121212;
  --muted: #656565;
  --line: #dedede;
  --copper: #1c1c1c;
  --gutter: clamp(20px, 5vw, 84px);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font:
    400 16px/1.48 var(--wm-body,Inter),
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
summary,
input,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.room-shell {
  width: min(100%, 1540px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip {
  position: fixed;
  top: -80px;
  left: 12px;
  background: white;
  color: #242523;
  padding: 12px;
  z-index: 50;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 2px solid #225d75;
  outline-offset: 4px;
}
h1:focus {
  outline: none;
}
.room-header {
  border-bottom: 1px solid var(--line);
}
.room-header > .room-shell,
.room-header-actions,
.room-actions,
.instrument-strip,
.room-footer {
  display: flex;
  align-items: center;
}
.room-header > .room-shell {
  justify-content: space-between;
  height: 76px;
}
.room-brand {
  font:
    730 clamp(21px, 2.4vw, 30px)/1 var(--wm-body,Inter),
    sans-serif;
  letter-spacing: -0.075em;
  text-decoration: none;
}
.room-brand span {
  color: var(--copper);
}
.room-header-actions {
  gap: 16px;
}
.room-exit {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-decoration: none;
}
.room-exit:hover {
  background: #e9e7de;
}
.room-header .language-menu summary {
  border-color: #c9c8bf;
  background: transparent;
}
main.room-shell {
  flex: 1;
}
#room-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5.6vw, 102px);
  align-items: center;
  padding-block: clamp(47px, 8vh, 115px);
}
.room-copy {
  max-width: 640px;
}
.room-eyebrow {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 24px;
  font-size: 0.8rem;
  font-weight: 650;
}
.status-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper);
}
h1 {
  font: 460 clamp(48px,4.1vw,70px)/1.04 var(--wm-display,Inter,Arial,sans-serif);
  letter-spacing: -.04em;
  margin: 0;
  text-wrap: balance;
}
.room-intro,
.brief-heading > p:not(.room-eyebrow),
.sent > p {
  max-width: 43ch;
  margin: 26px 0 0;
  color: #4e514a;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.52;
}
.context-prompt {
  border-left: 2px solid #b98161;
  padding-left: 12px;
  max-width: 46ch;
  color: var(--muted);
  font-size: 0.93rem;
}
.room-actions {
  align-items: center;
  gap: 23px;
  flex-wrap: wrap;
  margin: 28px 0 0;
}
.primary,
.secondary,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 99px;
  font:
    620 0.9rem/1.3 var(--wm-body,Inter),
    sans-serif;
  text-decoration: none;
  transition:
    background 0.16s,
    transform 0.16s,
    border-color 0.16s;
}
.primary {
  background: #131313;
  color: white;
  border: 1px solid #131313;
  padding: 13px 24px;
}
.primary:hover {
  background: #41443c;
}
.primary:disabled,
.secondary:disabled {
  opacity: 0.63;
  cursor: default;
}
.secondary {
  background: transparent;
  border: 1px solid #acafa1;
  padding: 12px 19px;
}
.secondary:hover {
  background: #ebece3;
}
.text-action {
  border: 0;
  background: transparent;
  min-height: 44px;
  padding: 0;
  gap: 8px;
  text-align: left;
}
.text-action:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
:is(.primary, .secondary, .text-action):active:not(:disabled) {
  transform: translateY(1px);
}
#room-cancel {
  margin: 24px 0 0;
}
.call-consent {
  max-width: 46ch;
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.76rem;
}
.room-instrument {
  min-width: 0;
  align-self: stretch;
  min-height: clamp(390px, 38vw, 590px);
  display: grid;
  grid-template-rows: 1fr auto;
  border-block: 1px solid #c9c6bc;
}
.voice-art {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 18px 0 10px;
  background: transparent;
}
.voice-art::before,
.voice-art::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 13px;
  height: 1px;
  background: var(--line);
}
.voice-art::before {
  left: 2px;
}
.voice-art::after {
  right: 2px;
}
.voice-print {
  width: min(67%, 285px);
  transform-origin: 50% 48%;
  transform: scale(var(--voice-scale, 1));
  transition: transform 160ms ease-out;
}
.voice-print img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}
#room-stage:is(
    [data-state="joining"],
    [data-state="listening"],
    [data-state="speaking"]
  )
  .voice-print
  img {
  animation: turn-plate 7s ease-in-out infinite alternate;
}
#room-stage[data-state="joining"] .voice-print {
  opacity: 0.72;
}
@keyframes turn-plate {
  0% {
    transform: rotate(-2deg);
  }
  100% {
    transform: rotate(4deg);
  }
}
.instrument-strip {
  border-top: 1px solid var(--line);
  gap: 10px;
  min-height: 52px;
  color: #656565;
  font-size: 0.82rem;
}
.instrument-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.instrument-status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
#room-stage:is([data-state="listening"], [data-state="speaking"])
  .instrument-status
  i {
  background: var(--copper);
  border-color: var(--copper);
}
#room-stage[data-state="speaking"] .instrument-status i {
  box-shadow: 0 0 0 3px #a9562926;
}
#room-time {
  font:
    500 0.75rem/1.4 ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #494c45;
  font-size: 0.78rem;
  font-weight: 600;
}
.preview-button:hover span {
  text-decoration: underline;
}
.preview-button .ui-icon {
  width: 14px;
  height: 14px;
}
.preview-button[aria-pressed="false"] .ui-icon:nth-child(2),
.preview-button[aria-pressed="true"] .ui-icon:first-child {
  display: none;
}
.preview-button:not([hidden]) ~ .voice-credit {
  margin-left: 12px;
}
.voice-credit {
  display: grid;
  justify-items: end;
  gap: 3px;
  margin-left: auto;
  font:
    640 0.84rem/1.1 var(--wm-body,Inter),
    sans-serif;
  color: #494c45;
  letter-spacing: -0.035em;
}
.voice-credit small {
  font-size: 0.59rem;
  letter-spacing: 0.015em;
  font-weight: 500;
}
.voice-credit img {
  display: block;
  width: 80px;
  height: auto;
  opacity: 0.78;
}
.room-error {
  font-size: 0.9rem;
  color: #773e24;
  max-width: 56ch;
}
.room-transcript {
  margin: 5px 0 28px;
  border-block: 1px solid var(--line);
  max-width: 850px;
}
.room-transcript summary,
.privacy summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  width: max-content;
  max-width: 100%;
  font-weight: 600;
}
.room-transcript summary::-webkit-details-marker,
.privacy summary::-webkit-details-marker {
  display: none;
}
.room-transcript[open] summary svg,
.privacy[open] summary svg {
  transform: rotate(180deg);
}
#transcript-lines {
  max-height: 235px;
  overflow: auto;
  padding-bottom: 12px;
}
#transcript-lines p {
  margin: 8px 0;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.room-footer {
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  padding-block: 19px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.room-footer > a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
.privacy p {
  max-width: 63ch;
  margin: 3px 0 14px;
}
.privacy .ui-icon {
  width: 13px;
}
.brief-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 7vw, 130px);
  padding-block: clamp(44px, 6vw, 94px);
  align-items: start;
}
.brief-heading h1 {
  font-size: clamp(44px,4.2vw,68px);
}
.brief-heading .text-action {
  margin-top: 18px;
}
.room-form {
  min-width: 0;
  max-width: 700px;
}
.room-form fieldset {
  margin: 0 0 26px;
  padding: 16px 0 0;
  border: 0;
  min-width: 0;
}
.room-form legend {
  font:
    650 1.22rem/1.25 var(--wm-body,Inter),
    sans-serif;
  letter-spacing: -0.028em;
  width: 100%;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line);
}
.room-form label {
  display: block;
  font-size: 0.91rem;
  font-weight: 580;
}
.room-form label small {
  margin-left: 4px;
  font-weight: 400;
  color: var(--muted);
}
.room-form input:not([type="checkbox"]),
.room-form textarea {
  width: 100%;
  border: 1px solid #c1c2b9;
  background: #fff;
  border-radius: 6px;
  padding: 11px 12px;
  display: block;
  margin: 6px 0 14px;
  min-height: 45px;
  font-size: 1rem;
  line-height: 1.45;
}
.room-form textarea {
  resize: vertical;
}
.room-form input:focus,
.room-form textarea:focus {
  border-color: var(--copper);
}
.field-count {
  margin: 0;
  text-align: right;
  font-size: 0.73rem;
  color: var(--muted);
}
.field-count.over {
  color: #963b1d;
  font-weight: 650;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.room-form label.permission {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
  font-size: 0.85rem;
  gap: 9px;
}
.permission input {
  margin: 2px 0 0;
  width: 17px;
  height: 17px;
  accent-color: #894929;
  flex: none;
}
.sent {
  padding-block: clamp(70px, 15vh, 200px);
}
.sent .primary {
  margin-top: 30px;
}
.finish-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: #dbe5d2;
  margin-bottom: 22px;
}
@media (max-width: 800px) {
  #room-stage {
    gap: 22px;
    grid-template-columns: 1.07fr 0.93fr;
  }
  .room-header > .room-shell {
    height: 66px;
  }
  .room-instrument {
    min-height: 325px;
  }
  .room-intro {
    margin-top: 17px;
  }
  .room-eyebrow {
    margin-bottom: 17px;
  }
  .brief-section {
    gap: 26px;
  }
}
@media (max-width: 640px) {
  .room-shell {
    padding-inline: 22px;
  }
  .room-header > .room-shell {
    height: 62px;
  }
  .room-header-actions {
    gap: 7px;
  }
  #room-stage {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 30px 5px;
  }
  .room-copy {
    display: contents;
  }
  .room-eyebrow {
    grid-row: 1;
    margin-bottom: 12px;
  }
  h1 {
    grid-row: 2;
    font-size: clamp(45px, 11.4vw, 69px);
    line-height: 1;
  }
  .room-intro {
    grid-row: 3;
    font-size: 1rem;
    margin: 13px 0 0;
    max-width: 48ch;
  }
  .context-prompt {
    grid-row: 4;
    margin-bottom: 0;
  }
  .room-instrument {
    grid-row: 5;
    border-top: 0;
    min-height: 0;
    margin: 14px 0 0;
  }
  .voice-art {
    height: clamp(157px, 40vw, 228px);
    padding: 0;
  }
  .voice-print {
    width: clamp(165px, 45vw, 240px);
  }
  .instrument-strip {
    min-height: 43px;
    font-size: 0.75rem;
    gap: 7px;
  }
  .preview-button:not([hidden]) ~ .voice-credit {
    margin-left: 2px;
  }
  .voice-credit {
    font-size: 0.8rem;
  }
  .voice-credit img {
    width: 72px;
  }
  .room-actions,
  #room-cancel {
    grid-row: 6;
    justify-self: start;
    margin: 18px 0 0;
  }
  .room-error {
    grid-row: 7;
    margin: 10px 0 0;
  }
  .voice-recovery {grid-row:8}
  .call-consent {
    grid-row: 9;
    margin: 10px 0 0;
    max-width: 100%;
  }
  .room-footer {
    margin-top: 21px;
    gap: 4px 15px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .brief-section {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 34px;
  }
  .brief-heading h1 {
    font-size: clamp(46px, 11vw, 67px);
  }
  .brief-heading > p:not(.room-eyebrow) {
    margin-top: 14px;
  }
  .brief-heading .text-action {
    margin-top: 5px;
  }
  .room-form fieldset {
    margin-bottom: 19px;
  }
  .room-transcript {
    margin-top: 14px;
  }
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 365px) {
  .room-shell {
    padding-inline: 16px;
  }
  .room-actions {
    gap: 15px;
  }
  .room-actions .primary {
    padding-inline: 16px;
  }
  .room-header-actions {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .voice-print {
    transform: none;
  }
}

#room-stage {
  row-gap: 15px;
}
.live-brief {
  grid-column: 2;
  align-self: start;
  min-width: 0;
}
.live-brief h2 {
  margin: 0 0 6px;
  font: 620 1.03rem/1.4 var(--wm-body,Inter), sans-serif;
  letter-spacing: -.025em;
}
.live-brief dl {
  margin: 0;
}
.live-brief dl > div {
  display: grid;
  grid-template-columns: minmax(75px, .3fr) 1fr;
  gap: 10px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
  font-size: .87rem;
}
.live-brief dt {
  color: var(--muted);
  font-weight: 550;
}
.live-brief dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
@media (max-width: 640px) {
  #room-stage { row-gap: 0; }
  .live-brief {
    grid-column: 1;
    grid-row: 10;
    margin-top: 19px;
  }
}
.voice-recovery {
  display:flex; flex-wrap:wrap; align-items:center; gap:12px;
}
.voice-recovery :is(button,a) {
  font:inherit; font-size:.86rem; color:inherit; border:0; padding:4px 0;
  background:transparent; text-decoration:underline; text-underline-offset:3px; cursor:pointer;
}
.voice-recovery [disabled] {opacity:.55;cursor:wait}
