:root {
  color-scheme: light;
  --ink: #11110f;
  --muted: #6d6d66;
  --quiet: #94948b;
  --line: #deded7;
  --soft-line: #ecece7;
  --paper: #ffffff;
  --wash: #f6f6f2;
  --warm: #f1efe8;
  --error: #a33125;
  --shadow: 0 18px 60px rgba(17, 17, 15, 0.14);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ececec;
  --muted: #b4b4b4;
  --quiet: #8e8e8e;
  --line: #444444;
  --soft-line: #333333;
  --paper: #212121;
  --wash: #2f2f2f;
  --warm: #292929;
  --error: #ff8f86;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  min-width: 320px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.is-hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  min-height: 72px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.brand-block,
.topbar-actions,
.panel-heading,
.chat-heading,
.label-row,
.composer-footer,
.dialog-heading,
.dialog-footer,
.dialog-footer-right,
.runtime-status {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 2px;
  background: var(--paper);
  top: 14px;
  left: 8px;
}

.eyebrow,
.section-kicker,
.empty-index,
.tip-number {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.15em;
  font-weight: 750;
  color: var(--quiet);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h2 {
  margin: 3px 0 0;
  font-size: 17px;
  line-height: 1.25;
}

.topbar-actions {
  justify-content: flex-end;
  gap: 8px;
}

.runtime-status {
  gap: 7px;
  margin-right: 8px;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #31914a;
  box-shadow: 0 0 0 3px #e3f2e6;
}

.status-dot.is-busy {
  background: #c18522;
  box-shadow: 0 0 0 3px #f6ead3;
}

.status-dot.is-error {
  background: var(--error);
  box-shadow: 0 0 0 3px #f6dfdc;
}

.button,
.icon-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 7px;
  font-weight: 650;
}

.settings-button {
  flex: 0 0 auto;
  font-size: 18px;
}

.button {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 13px;
}

.button:hover,
.icon-button:hover {
  border-color: var(--ink);
}

.button-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.button-primary:hover {
  background: #2d2d29;
}

.button-danger {
  color: var(--error);
  border-color: #e8c9c4;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.icon-button {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 21px;
  line-height: 1;
}

.workspace {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(205px, 250px) minmax(380px, 1fr) minmax(250px, 310px);
}

.panel,
.chat-panel {
  min-width: 0;
  background: var(--paper);
}

.guest-panel,
.director-panel {
  padding: 22px 18px;
}

.guest-panel {
  border-right: 1px solid var(--line);
}

.director-panel {
  border-left: 1px solid var(--line);
}

.panel-heading,
.chat-heading,
.dialog-heading,
.dialog-footer {
  justify-content: space-between;
  gap: 16px;
}

.panel-note,
.field-help {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.agent-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.agent-view-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
  padding: 3px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--wash);
}

.agent-view-choice,
.agent-room-filter {
  border: 0;
  color: var(--muted);
  background: transparent;
  white-space: nowrap;
}

.agent-view-choice {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 11px;
}

.agent-view-choice[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(17, 17, 15, 0.08);
}

.agent-editing-note {
  margin: 9px 1px 0;
  color: var(--quiet);
  font-size: 10px;
}

.agent-room-filters {
  display: flex;
  gap: 6px;
  margin-top: 9px;
  padding-bottom: 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.agent-room-filter {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 10px;
}

.agent-room-filter[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.agent-list-empty {
  padding: 18px 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.room-list {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.room-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
}

.room-card:hover,
.room-card.is-active {
  border-color: var(--ink);
}

.room-card.is-active {
  background: var(--ink);
  color: var(--paper);
}

.room-card-main {
  min-width: 0;
}

.room-card strong,
.room-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-card strong {
  font-size: 12px;
}

.room-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.room-card.is-active span {
  color: #c9c9c2;
}

.room-edit {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 5px;
  font-size: 11px;
}

.panel-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--line);
}

.agent-card {
  border: 1px solid var(--soft-line);
  padding: 11px;
  background: var(--paper);
  border-radius: 8px;
  transition: border-color 120ms ease, background 120ms ease;
}

.agent-card:hover {
  border-color: #b8b8af;
  background: #fbfbf9;
}

.agent-card.is-disabled {
  opacity: 0.68;
}

.agent-card-top {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

.agent-initial {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
}

.agent-identity {
  min-width: 0;
}

.agent-identity strong,
.agent-identity span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-identity strong {
  font-size: 13px;
}

.agent-identity span {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.agent-edit {
  border: 0;
  background: transparent;
  padding: 5px;
  color: var(--muted);
  font-size: 12px;
}

.agent-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--soft-line);
  font-size: 10px;
  color: var(--muted);
}

.agent-status {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 3px 7px;
}

.agent-memberships {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.agent-membership {
  max-width: 100%;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-membership.is-current {
  border-color: var(--ink);
  color: var(--ink);
}

.agent-membership.is-unassigned {
  border-style: dashed;
}

.agent-room-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.agent-room-toggle-text {
  color: var(--quiet);
  font-size: 9px;
  white-space: nowrap;
}

.agent-readiness.is-ready {
  color: #27713a;
}

.switch {
  position: relative;
  width: 30px;
  height: 18px;
  display: inline-flex;
  align-items: center;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch-track {
  width: 30px;
  height: 18px;
  background: #d7d7d0;
  border-radius: 12px;
  position: relative;
}

.switch-track::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform 120ms ease;
}

.switch input:checked + .switch-track {
  background: var(--ink);
}

.switch input:checked + .switch-track::after {
  transform: translateX(12px);
}

.privacy-note {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  padding: 12px;
  background: var(--wash);
  border-radius: 8px;
}

.privacy-icon {
  font-size: 20px;
  line-height: 1;
}

.privacy-note strong {
  font-size: 11px;
}

.privacy-note p {
  margin: 3px 0 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.45;
}

.chat-panel {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-rows: auto minmax(280px, 1fr) auto auto;
}

.mobile-room-switcher {
  display: none;
}

.new-message-jump {
  position: fixed;
  z-index: 16;
  left: 50%;
  bottom: 112px;
  transform: translateX(-50%);
  padding: 8px 13px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 24px rgba(17, 17, 15, 0.2);
  font-size: 11px;
}

.chat-heading {
  min-height: 76px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--soft-line);
}

.mode-badge {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 6px;
}

.message-feed {
  min-height: 0;
  overflow-y: auto;
  padding: 28px clamp(18px, 5vw, 64px);
  scroll-behavior: smooth;
}

.empty-state {
  max-width: 580px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0 84px;
}

.empty-state h3 {
  max-width: 520px;
  margin: 17px 0 13px;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(27px, 4vw, 48px);
  line-height: 1.13;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.empty-state > p:last-child {
  max-width: 490px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.message {
  max-width: 760px;
  margin: 0 auto 26px;
}

.message-meta {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 7px;
}

.message-author {
  font-size: 12px;
  font-weight: 800;
}

.message-time {
  font-size: 10px;
  color: var(--quiet);
}

.private-route {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 1px 7px;
  border: 1px solid #d8a0a8;
  border-radius: 999px;
  color: #923b4b;
  background: #fff3f5;
  font-size: 10px;
  letter-spacing: 0.02em;
}

.message-body {
  position: relative;
  padding: 15px 17px;
  background: var(--wash);
  border-left: 2px solid var(--ink);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-bubble-stack {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.message-bubble-stack .message-body {
  width: fit-content;
  max-width: 100%;
  min-width: 72px;
}

.message-body.has-actions {
  padding-right: 82px;
}

.message-body.has-private-repair {
  padding-right: 142px;
}

.message.is-user .message-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left-width: 2px;
}

.message.is-private .message-body,
.private-message-mask {
  background: #fff7f8;
  border: 1px solid #e3b3bb;
  border-left: 3px solid #a9364b;
  box-shadow: 0 8px 22px rgba(126, 34, 51, 0.06);
}

.message.is-private .message-text {
  color: #402428;
}

.message-bubble-stack.is-concealed,
.message-bubble-single.is-concealed {
  display: none;
}

.message-bubble-stack.is-concealed.is-revealed {
  display: grid;
}

.message-bubble-single.is-concealed.is-revealed {
  display: block;
}

.private-message-mask {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 13px 15px;
}

.private-message-mask.is-hidden {
  display: none;
}

.private-message-dots {
  color: #8d5660;
  font-size: 17px;
  letter-spacing: 0.14em;
}

.private-message-reveal,
.private-message-hide {
  border: 0;
  color: #923b4b;
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.private-message-hide {
  margin-left: auto;
}

.message.is-error .message-body {
  color: var(--error);
  background: #fff7f6;
  border-left-color: var(--error);
}

.message-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.repair-private-message,
.copy-message,
.delete-message {
  border: 0;
  padding: 5px 6px;
  background: transparent;
  color: var(--quiet);
  font-size: 10px;
}

.repair-private-message {
  color: #a9364b;
  white-space: nowrap;
}

.delete-message:hover,
.delete-message:focus-visible {
  color: var(--error);
}

.message-body:hover .message-actions,
.message.is-actions-visible .message-actions,
.message-actions:focus-within {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.speaking-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--soft-line);
  color: var(--muted);
  font-size: 12px;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 1s infinite alternate;
}

.typing-dots i:nth-child(2) {
  animation-delay: 180ms;
}

.typing-dots i:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes pulse {
  to {
    opacity: 0.2;
    transform: translateY(-2px);
  }
}

.composer {
  margin: 0 clamp(14px, 4vw, 42px) 22px;
  border: 1px solid #cfcfc7;
  border-radius: 9px;
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(17, 17, 15, 0.06);
}

.composer.is-private-compose {
  border-color: #c96f7f;
  box-shadow: 0 8px 30px rgba(139, 43, 61, 0.11);
}

.composer-route {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 0;
  color: var(--quiet);
  font-size: 11px;
}

.composer-route label {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 700;
}

.composer-route select {
  max-width: 210px;
  min-height: 30px;
  padding: 4px 28px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

.composer.is-private-compose .composer-route select {
  border-color: #c96f7f;
  color: #923b4b;
  background: #fff7f8;
}

#composer-privacy-note {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer textarea {
  width: 100%;
  min-height: 86px;
  max-height: 220px;
  padding: 15px 16px 8px;
  border: 0;
  resize: vertical;
  color: var(--ink);
  background: transparent;
  line-height: 1.6;
}

.composer textarea:focus {
  outline: none;
}

.composer-footer {
  justify-content: space-between;
  gap: 12px;
  padding: 8px 9px 9px 15px;
}

.composer-footer > p {
  margin: 0;
  color: var(--quiet);
  font-size: 10px;
}

.composer-actions {
  display: flex;
  gap: 7px;
}

.control-group {
  display: block;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.control-group legend,
.control-group label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 750;
}

.label-row {
  justify-content: space-between;
}

.control-label {
  font-size: 12px;
  font-weight: 750;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--ink);
}

.label-row label {
  margin-bottom: 0;
}

.label-row output {
  color: var(--muted);
  font-size: 11px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.mode-switch button {
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
}

.mode-switch button:last-child {
  border-right: 0;
}

.mode-switch button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.free-strategy-switch {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 9px;
}

#free-strategy-control > .control-label {
  display: block;
  margin-bottom: 9px;
}

.mic-status {
  margin-top: 10px;
  padding: 9px 10px;
  border-left: 2px solid var(--ink);
  background: var(--wash);
  color: var(--ink);
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.control-group select,
.control-group input[type="number"] {
  width: 100%;
  height: 39px;
  padding: 7px 9px;
}

input[type="range"] {
  width: 100%;
  height: 18px;
  padding: 0;
  border: 0;
  accent-color: var(--ink);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  font-size: 9px;
}

.suffix-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.suffix-input input {
  border: 0 !important;
  border-radius: 0;
}

.suffix-input span {
  padding-right: 9px;
  color: var(--quiet);
  font-size: 10px;
}

.director-tip {
  margin-top: 28px;
  padding: 14px;
  background: var(--warm);
  border-radius: 8px;
}

.director-tip > p:last-child {
  margin: 9px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 13px;
  line-height: 1.65;
}

.agent-dialog,
.room-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.agent-dialog::backdrop,
.room-dialog::backdrop {
  background: rgba(17, 17, 15, 0.38);
}

.access-dialog {
  width: min(390px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.access-dialog::backdrop {
  background: rgba(17, 17, 15, 0.72);
  backdrop-filter: blur(3px);
}

.copy-fallback-dialog {
  width: min(520px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.copy-fallback-dialog::backdrop {
  background: rgba(17, 17, 15, 0.58);
  backdrop-filter: blur(2px);
}

.copy-fallback-dialog form {
  padding: 22px;
}

.copy-fallback-dialog h2 {
  margin: 8px 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 23px;
  font-weight: 500;
}

.copy-fallback-dialog p:not(.section-kicker) {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.copy-fallback-dialog textarea {
  width: 100%;
  min-height: 180px;
  padding: 11px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.65;
}

.copy-fallback-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.access-dialog form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 28px;
}

.access-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
}

.access-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 13px;
  top: 13px;
  border-radius: 50%;
  background: var(--ink);
}

.access-dialog h2 {
  margin: 9px 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
  font-weight: 500;
}

.access-copy,
.access-warning {
  color: var(--muted);
  line-height: 1.6;
}

.access-copy {
  margin: 0 0 22px;
  font-size: 13px;
}

.access-dialog label {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 750;
}

.access-dialog input {
  width: 100%;
  height: 44px;
  padding: 9px 11px;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-align: center;
}

.access-dialog .button {
  width: 100%;
  margin-top: 5px;
}

.access-result {
  min-height: 18px;
  margin: 7px 0;
  color: var(--error);
  font-size: 11px;
  text-align: center;
}

.access-warning {
  margin: 14px 0 0;
  font-size: 10px;
  text-align: center;
}

.security-dialog .security-toggle {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  cursor: pointer;
}

.settings-section {
  padding: 18px 0;
  border-top: 1px solid var(--soft-line);
}

.settings-section:first-of-type {
  margin-top: 16px;
}

.settings-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.settings-section-heading h3 {
  margin: 3px 0 0;
  font-size: 14px;
}

.settings-section-note {
  color: var(--quiet);
  font-size: 10px;
}

.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.theme-choice {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 700;
}

.theme-choice span {
  margin-right: 5px;
  font-size: 16px;
}

.theme-choice[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.settings-security .access-copy {
  margin-bottom: 14px;
}

.security-dialog .security-toggle input {
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.security-toggle span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.security-toggle small,
.security-code-label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.security-dialog #security-access-code {
  font-size: 13px;
  letter-spacing: normal;
}

.security-actions {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
}

.visitor-dialog {
  width: min(760px, calc(100vw - 28px));
}

.visitor-type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.visitor-type-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  cursor: pointer;
}

.visitor-type-choice:has(input:checked) {
  border-color: var(--ink);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.visitor-type-choice input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

.visitor-type-choice span {
  display: grid;
  gap: 4px;
}

.visitor-type-choice strong {
  font-size: 13px;
}

.visitor-type-choice small {
  color: var(--muted);
  font-size: 10px;
}

.visitor-form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.72fr;
  gap: 10px;
}

.visitor-form-grid .field {
  margin: 0;
}

.visitor-endpoint-card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #b9cfbe;
  border-radius: 9px;
  background: #f4faf5;
}

.visitor-endpoint-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.visitor-endpoint-card span,
.visitor-endpoint-card p {
  color: #4e6754;
  font-size: 10px;
}

.visitor-endpoint-card textarea {
  width: 100%;
  min-height: 66px;
  padding: 10px;
  resize: none;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
}

.visitor-endpoint-card p {
  margin: 9px 0 0;
  line-height: 1.55;
}

.visitor-endpoint-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.visitor-endpoint-actions .button {
  min-width: 94px;
}

.visitor-active-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
}

.visitor-active-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.visitor-active-heading h3 {
  margin: 3px 0 0;
  font-size: 14px;
}

.visitor-invite-list {
  display: grid;
  gap: 7px;
}

.visitor-invite-empty {
  margin: 0;
  padding: 13px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.visitor-invite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.visitor-invite-copy {
  min-width: 0;
}

.visitor-invite-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visitor-invite-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.visitor-revoke {
  border: 0;
  background: transparent;
  color: var(--error);
  font-size: 10px;
  cursor: pointer;
}

.visitor-form-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--error);
  font-size: 11px;
}

.message-source-badge {
  padding: 1px 6px;
  border: 1px solid #b9cfbe;
  border-radius: 999px;
  color: #3f6549;
  background: #f3faf4;
  font-size: 9px;
}

html[data-theme="dark"] .visitor-endpoint-card {
  border-color: #405c47;
  background: #26342a;
}

html[data-theme="dark"] .visitor-endpoint-card span,
html[data-theme="dark"] .visitor-endpoint-card p,
html[data-theme="dark"] .message-source-badge {
  color: #a8c8af;
}

html[data-theme="dark"] .message-source-badge {
  border-color: #405c47;
  background: #26342a;
}

html[data-theme="dark"] .status-dot {
  box-shadow: 0 0 0 3px #24472e;
}

html[data-theme="dark"] .status-dot.is-busy {
  box-shadow: 0 0 0 3px #4b3b22;
}

html[data-theme="dark"] .status-dot.is-error {
  box-shadow: 0 0 0 3px #522f2c;
}

html[data-theme="dark"] .button-primary:hover {
  background: #d9d9d9;
}

html[data-theme="dark"] .button-danger {
  border-color: #6d403c;
}

html[data-theme="dark"] .room-card.is-active {
  border-color: #686868;
  background: #343434;
  color: var(--ink);
}

html[data-theme="dark"] .room-card.is-active span {
  color: var(--muted);
}

html[data-theme="dark"] .agent-view-choice[aria-pressed="true"] {
  background: #343434;
  box-shadow: none;
}

html[data-theme="dark"] .agent-room-filter[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

html[data-theme="dark"] .agent-card:hover,
html[data-theme="dark"] .room-prompt-field textarea,
html[data-theme="dark"] .persona-field textarea,
html[data-theme="dark"] .agent-memory-editor textarea {
  border-color: #565656;
  background: #292929;
}

html[data-theme="dark"] .agent-memory-field {
  background: #262626;
}

html[data-theme="dark"] .guest-copy-option {
  background: #272727;
}

html[data-theme="dark"] .agent-readiness.is-ready,
html[data-theme="dark"] .saved-key-row {
  color: #75d18b;
}

html[data-theme="dark"] .switch-track {
  background: #555555;
}

html[data-theme="dark"] .message.is-error .message-body,
html[data-theme="dark"] .connection-result.is-error {
  background: #382523;
}

html[data-theme="dark"] .message.is-private .message-body,
html[data-theme="dark"] .private-message-mask,
html[data-theme="dark"] .composer.is-private-compose .composer-route select {
  color: #f0dfe2;
  background: #332226;
  border-color: #76404b;
}

html[data-theme="dark"] .message.is-private .message-text {
  color: #f0dfe2;
}

html[data-theme="dark"] .private-route {
  color: #efc3cb;
  background: #332226;
  border-color: #76404b;
}

html[data-theme="dark"] .private-message-dots,
html[data-theme="dark"] .private-message-reveal,
html[data-theme="dark"] .private-message-hide {
  color: #efc3cb;
}

html[data-theme="dark"] .composer {
  border-color: #555555;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .room-memory-field,
html[data-theme="dark"] .room-schedule-field {
  background: #272727;
}

html[data-theme="dark"] .room-summarizer-card {
  background: #30302e;
}

html[data-theme="dark"] .mobile-room-switcher {
  background: rgba(33, 33, 33, 0.96);
}

.agent-dialog form,
.room-dialog form {
  padding: 22px;
}

.room-dialog {
  width: min(520px, calc(100vw - 28px));
}

.room-name-field {
  margin-top: 22px;
}

.room-prompt-field {
  margin-top: 16px;
}

.room-prompt-field textarea {
  width: 100%;
  min-height: 132px;
  padding: 10px;
  resize: vertical;
  background: #fbfbf8;
  line-height: 1.6;
}

.room-bubble-field {
  padding: 13px 14px;
  border: 1px solid var(--soft-line);
  background: var(--wash);
}

.room-bubble-field .field-help {
  margin: 7px 0 0 24px;
}

.room-memory-field,
.room-schedule-field {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fcfcf9;
}

.room-memory-field > summary,
.room-schedule-field > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.room-memory-field[open] > summary,
.room-schedule-field[open] > summary {
  margin-bottom: 14px;
}

.room-summarizer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 12px 13px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: var(--wash);
}

.room-summarizer-copy {
  min-width: 0;
}

.room-summarizer-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
}

.room-summarizer-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.room-summarizer-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.room-summarizer-action {
  flex: 0 0 auto;
  min-width: 58px;
}

.memory-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.memory-toggle input {
  accent-color: var(--ink);
}

.schedule-strategy-field,
.schedule-event-toggle {
  margin-top: 14px;
}

.schedule-event-help {
  margin: 7px 0 0;
}

.schedule-event-focus-field {
  margin: 10px 0 0 24px;
}

.schedule-event-focus-field textarea {
  min-height: 76px;
  background: var(--paper);
}

.memory-interval-field,
.memory-focus-field,
.memory-summary-field {
  margin-top: 14px;
}

.memory-focus-field textarea {
  min-height: 108px;
  background: var(--paper);
}

.memory-summary-field textarea {
  min-height: 150px;
  background: var(--paper);
}

.memory-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.memory-status.is-stale {
  color: var(--error);
}

.memory-status.is-error {
  color: var(--error);
}

.memory-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.memory-actions .button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.schedule-quiet-toggle {
  margin-top: 14px;
}

.schedule-quiet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.schedule-quiet-grid > .field,
.schedule-quiet-grid input[type="time"] {
  min-width: 0;
  max-width: 100%;
}

.schedule-quiet-grid input[type="time"] {
  display: block;
  inline-size: 100%;
  min-inline-size: 0;
  padding-inline: 8px;
}

@media (max-width: 720px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .visitor-type-options,
  .visitor-form-grid {
    grid-template-columns: 1fr;
  }

  .visitor-dialog {
    max-height: calc(100vh - 16px);
  }
}

.dialog-intro {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.participant-picker {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.participant-picker legend {
  font-size: 12px;
  font-weight: 750;
}

#room-participant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.participant-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  font-size: 12px;
}

.participant-option input {
  accent-color: var(--ink);
}

.saved-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: #27713a;
  font-size: 10px;
}

.saved-key-row button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--error);
  font-size: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 22px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 750;
}

.field label span {
  color: var(--quiet);
  font-weight: 500;
}

.field > input,
.field > select,
.field > textarea,
.password-field {
  width: 100%;
}

.field > input,
.field > select {
  height: 41px;
  padding: 8px 10px;
}

.field > textarea {
  padding: 10px;
  resize: vertical;
  line-height: 1.55;
}

.password-field {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.password-field input {
  min-width: 0;
  flex: 1;
  height: 39px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
}

.password-field button {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--wash);
  padding: 0 10px;
  font-size: 11px;
}

.advanced-field {
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  padding: 11px;
}

.advanced-field summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.advanced-field[open] summary {
  margin-bottom: 12px;
}

.persona-field textarea {
  min-height: 118px;
  background: #fbfbf8;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-text-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.field-text-actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--quiet);
  font-size: 10px;
}

.field-text-actions button:hover,
.field-text-actions button:focus-visible {
  color: var(--ink);
}

.agent-memory-field {
  padding: 13px 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--wash);
}

.agent-memory-field .memory-toggle {
  align-items: flex-start;
}

.agent-memory-field .memory-toggle span {
  display: grid;
  gap: 3px;
}

.agent-memory-field .memory-toggle small {
  color: var(--muted);
  font-weight: 500;
  line-height: 1.45;
}

.agent-memory-editor {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--soft-line);
}

.agent-memory-editor textarea {
  width: 100%;
  min-height: 118px;
  box-sizing: border-box;
  padding: 10px;
  resize: vertical;
  background: var(--paper);
  line-height: 1.55;
}

.agent-memory-editor .field-help {
  margin-top: 7px;
}

.connection-result {
  margin-top: 16px;
  padding: 10px 12px;
  border-left: 2px solid var(--ink);
  background: var(--wash);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.connection-result.is-error {
  color: var(--error);
  border-left-color: var(--error);
  background: #fff7f6;
}

.dialog-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--soft-line);
}

.dialog-footer-right {
  gap: 8px;
  margin-left: auto;
}

.dialog-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-copy-name-field {
  margin-top: 20px;
}

.guest-copy-options {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.guest-copy-options legend {
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 750;
}

.guest-copy-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--wash);
  cursor: pointer;
}

.guest-copy-option input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--ink);
}

.guest-copy-option span {
  display: grid;
  gap: 3px;
}

.guest-copy-option strong {
  font-size: 12px;
}

.guest-copy-option small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.guest-copy-room-field {
  margin-top: 18px;
}

.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  max-width: min(460px, calc(100vw - 30px));
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1040px) {
  .workspace {
    grid-template-columns: 210px minmax(360px, 1fr) 250px;
  }

  .guest-panel,
  .director-panel {
    padding-inline: 14px;
  }

  .runtime-status {
    display: none;
  }
}

@media (max-width: 840px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 17;
    align-items: flex-start;
    padding-inline: 16px;
    background: var(--paper);
  }

  .workspace {
    display: flex;
    flex-direction: column;
  }

  .chat-panel {
    order: 1;
    min-height: calc(100vh - 73px);
  }

  .chat-heading {
    display: none;
  }

  .mobile-room-switcher {
    position: sticky;
    top: 72px;
    z-index: 15;
    display: block;
    padding: 9px 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  .mobile-room-current {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    text-align: left;
  }

  .mobile-room-current-copy,
  .mobile-room-current-side {
    min-width: 0;
    display: flex;
    align-items: center;
  }

  .mobile-room-current-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-room-current-copy strong {
    max-width: min(54vw, 430px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
  }

  .mobile-room-current-side {
    flex: 0 0 auto;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
  }

  .mobile-room-caret {
    font-size: 18px;
    transition: transform 140ms ease;
  }

  .mobile-room-switcher.is-open .mobile-room-caret {
    transform: rotate(180deg);
  }

  .mobile-room-menu {
    position: absolute;
    top: calc(100% - 3px);
    right: 16px;
    left: 16px;
    display: none;
    max-height: min(60vh, 430px);
    overflow-y: auto;
    padding: 7px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .mobile-room-switcher.is-open .mobile-room-menu {
    display: grid;
    gap: 5px;
  }

  .mobile-room-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid var(--soft-line);
    border-radius: 7px;
  }

  .mobile-room-option.is-active {
    border-color: var(--ink);
    background: var(--wash);
  }

  .mobile-room-option-main {
    min-width: 0;
    padding: 10px;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
  }

  .mobile-room-option-main strong,
  .mobile-room-option-main span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-room-option-main strong {
    font-size: 12px;
  }

  .mobile-room-option-main span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
  }

  .mobile-room-option-edit {
    margin-right: 6px;
    padding: 7px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
  }

  .mobile-room-add {
    padding: 11px;
    border: 1px dashed var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--muted);
    text-align: left;
    font-size: 11px;
  }

  .guest-panel,
  .director-panel {
    order: 2;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 20px 16px;
  }

  .agent-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .director-panel {
    order: 3;
  }
}

@media (max-width: 600px) {
  .topbar {
    min-height: 66px;
  }

  .mobile-room-switcher {
    top: 66px;
  }

  .eyebrow,
  .topbar .button-quiet {
    display: none;
  }

  h1 {
    font-size: 16px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-mark::before {
    inset: 7px;
  }

  .brand-mark::after {
    top: 12px;
    left: 7px;
  }

  .chat-panel {
    min-height: calc(100vh - 66px);
  }

  .chat-heading {
    min-height: 64px;
    padding: 13px 16px;
  }

  .message-feed {
    padding: 22px 16px;
  }

  .empty-state h3 {
    font-size: 30px;
  }

  .composer {
    margin: 0 10px 12px;
  }

  .composer-route {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 5px 8px;
    padding-inline: 12px;
  }

  .composer-route select {
    max-width: calc(100% - 58px);
  }

  #composer-privacy-note {
    width: 100%;
    padding-left: 48px;
  }

  .composer-footer > p {
    display: none;
  }

  .composer-footer {
    justify-content: flex-end;
  }

  .agent-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  #room-participant-list {
    grid-template-columns: 1fr;
  }

  .field-wide {
    grid-column: 1;
  }

  .agent-dialog form {
    padding: 17px;
  }

  .dialog-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog-footer-right {
    margin-left: 0;
  }

  .dialog-footer-right .button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
