:root {
  color-scheme: light;
  --ink: #1d251f;
  --ink-soft: #5d6861;
  --paper: #eef1ec;
  --surface: #fbfcf9;
  --surface-raised: #ffffff;
  --line: #d8ded7;
  --line-strong: #bdc7bd;
  --forest: #1c332d;
  --forest-mid: #29473f;
  --forest-light: #dbe8e1;
  --coral: #e96556;
  --coral-dark: #c94c40;
  --coral-soft: #fae9e5;
  --amber: #efb944;
  --amber-soft: #fff5dc;
  --sky: #5d8795;
  --online: #65c598;
  --offline: #98a39d;
  --shadow: 0 20px 55px rgba(18, 37, 31, 0.18);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 280px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(233, 101, 86, 0.34);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

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

svg {
  display: block;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon-sprite symbol,
[data-icon] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-symbol svg,
.icon-button svg,
.field-group label svg,
.group-heading svg,
.feedback-line svg,
.login-button svg,
.photo-button svg,
.voice-button svg,
.voice-action svg,
.voice-state-icon svg,
.send-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.login-view {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 24px 18px;
  background: var(--forest);
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
  pointer-events: none;
}

.login-frame {
  position: relative;
  z-index: 1;
  width: min(100%, 438px);
  padding: clamp(26px, 7vw, 42px);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 34px;
}

.brand-symbol {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
}

.brand-symbol svg {
  width: 29px;
  height: 29px;
  stroke-width: 1.65;
}

.brand-symbol.compact {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  background: var(--coral);
}

.brand-symbol.compact svg {
  width: 21px;
  height: 21px;
}

.brand-name {
  margin-bottom: 8px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.login-brand h1 {
  margin-bottom: 0;
  font-family: "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}

.login-form {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.field-group label svg {
  width: 15px;
  height: 15px;
}

.field-group input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: #f7f9f5;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-group input::placeholder,
.message-form textarea::placeholder {
  color: #929c95;
}

.field-group input:focus {
  border-color: var(--forest-mid);
  background: var(--surface-raised);
  box-shadow: 0 0 0 3px rgba(28, 51, 45, 0.09);
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin-top: 4px;
  padding: 0 16px 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--coral);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.login-button:hover {
  background: var(--coral-dark);
}

.login-button:active {
  transform: translateY(1px);
}

.login-button:disabled {
  opacity: 0.68;
}

.login-button svg {
  width: 20px;
  height: 20px;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--coral-dark);
  font-size: 13px;
  line-height: 1.45;
}

.login-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.switch-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--forest-mid);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.switch-button:hover {
  color: var(--forest);
}

.app-shell {
  min-height: 100dvh;
  background: var(--paper);
}

.app-header {
  height: calc(62px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--forest);
  color: #fff;
}

.header-inner {
  display: flex;
  width: min(100%, 820px);
  height: 62px;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 28px);
}

.app-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.app-brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.app-brand-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.app-brand-copy > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.room-chip {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.room-chip span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
}

.room-chip strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.app-main {
  width: 100%;
}

.section-inner {
  width: min(100%, 820px);
  margin: 0 auto;
  padding-right: clamp(16px, 5vw, 28px);
  padding-left: clamp(16px, 5vw, 28px);
}

.connection-section {
  background: var(--forest);
  color: #fff;
}

.connection-inner {
  padding-top: 8px;
  padding-bottom: 22px;
}

.connection-heading,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.connection-heading {
  margin-bottom: 18px;
}

.section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.connection-heading .section-kicker {
  color: #f2bd68;
}

.connection-heading h1 {
  margin-bottom: 0;
  font-size: 25px;
  font-weight: 750;
  line-height: 1.25;
}

.connection-pill {
  display: inline-flex;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
}

.connection-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--offline);
}

.connection-pill.is-online {
  color: #d9f5e7;
}

.connection-pill.is-online i {
  background: var(--online);
  box-shadow: 0 0 0 4px rgba(101, 197, 152, 0.12);
}

.target-switch {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  align-items: stretch;
  gap: 7px;
}

.link-bridge {
  display: grid;
  align-content: center;
  color: rgba(255, 255, 255, 0.38);
}

.link-bridge::before {
  content: "";
  display: block;
  width: 100%;
  margin-bottom: 4px;
  border-top: 1px dashed currentColor;
}

.link-bridge::after {
  content: "";
  display: block;
  width: 100%;
  border-top: 1px dashed currentColor;
}

.link-bridge svg {
  width: 18px;
  height: 18px;
  margin: 0 auto 4px;
}

.endpoint-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 84px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.endpoint-button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.endpoint-button:active {
  transform: scale(0.99);
}

.endpoint-button[aria-pressed="true"] {
  border-color: rgba(246, 144, 125, 0.88);
  background: rgba(233, 101, 86, 0.14);
}

.endpoint-button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.endpoint-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--amber);
  color: var(--forest);
  font-size: 16px;
  font-weight: 900;
}

.endpoint-button[data-slot="b"] .endpoint-avatar {
  background: #a8d4c1;
}

.endpoint-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.endpoint-kicker {
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-weight: 700;
}

.endpoint-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.endpoint-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.endpoint-status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--offline);
}

.endpoint-button.is-online .endpoint-status::before {
  background: var(--online);
}

.feedback-line {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.45;
}

.feedback-line svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.feedback-line[data-tone="success"] {
  color: #d8f5e6;
}

.feedback-line[data-tone="working"] {
  color: #f5d99f;
}

.feedback-line[data-tone="error"] {
  border-color: rgba(246, 144, 125, 0.28);
  background: rgba(233, 101, 86, 0.12);
  color: #ffd9d2;
}

.interaction-section {
  padding: 23px 0 24px;
  background: var(--surface);
}

.section-heading {
  margin-bottom: 19px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.target-caption {
  max-width: 44%;
  overflow: hidden;
  padding: 5px 8px;
  border: 1px solid #e6cfc9;
  border-radius: 5px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-group + .action-group {
  margin-top: 18px;
}

.group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.group-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.group-heading svg {
  width: 15px;
  height: 15px;
  color: var(--coral);
}

.group-heading small {
  color: var(--ink-soft);
  font-size: 10px;
}

.action-grid {
  display: grid;
  gap: 8px;
}

.action-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.action-button {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 9px 6px;
  border: 1px solid #d5e1da;
  border-radius: 8px;
  background: #e8f0ec;
  color: var(--forest);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.action-button[data-mode="local"] {
  border-color: #eadfbf;
  background: var(--amber-soft);
}

.action-button[data-mode="target"] {
  border-color: #eed9d3;
  background: #fbefeb;
}

.action-button:hover:not(:disabled) {
  border-color: #9db9aa;
  background: #dcebe3;
}

.action-button[data-mode="local"]:hover:not(:disabled) {
  border-color: #ddbe76;
  background: #ffefc8;
}

.action-button[data-mode="target"]:hover:not(:disabled) {
  border-color: #df9c8f;
  background: #fbe3de;
}

.action-button:active:not(:disabled) {
  transform: scale(0.975);
}

.action-button:disabled:not(.is-sending) {
  opacity: 0.42;
}

.action-button.is-sending {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.action-button.is-sending .action-icon {
  border: 2px solid rgba(233, 101, 86, 0.22);
  border-top-color: var(--coral);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.action-button.is-sending .action-icon svg {
  visibility: hidden;
}

.action-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
}

.action-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-copy {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 2px;
}

.action-copy strong {
  max-width: 100%;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-copy small {
  color: currentColor;
  font-size: 9px;
  opacity: 0.58;
}

.action-grid-two .action-button {
  min-height: 62px;
  justify-content: flex-start;
  flex-direction: row;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
}

.action-grid-two .action-copy {
  justify-items: start;
}

.action-grid-two .action-copy strong {
  font-size: 13px;
}

.compact-group {
  padding-bottom: 2px;
}

.compose-section {
  padding: 22px 0 calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #f4f6f2;
}

.compose-heading {
  margin-bottom: 13px;
}

.counter {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.counter.over-limit {
  color: var(--coral-dark);
  font-weight: 800;
}

.message-form {
  display: grid;
  gap: 10px;
}

.message-form textarea {
  width: 100%;
  min-height: 104px;
  max-height: 220px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.message-form textarea:focus {
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(28, 51, 45, 0.08);
}

.message-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.attachment-tools {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.photo-button,
.voice-button,
.send-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  font-weight: 800;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, opacity 150ms ease;
}

.photo-button,
.voice-button {
  min-width: 92px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: 13px;
}

.voice-button {
  border-color: #d7cbb1;
  background: var(--amber-soft);
}

.photo-button:hover:not(:disabled) {
  border-color: var(--forest-mid);
}

.voice-button:hover:not(:disabled) {
  border-color: #c6a556;
  background: #ffefc8;
}

.send-button {
  min-width: 128px;
  margin-left: auto;
  padding: 0 17px;
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #fff;
  font-size: 14px;
}

.send-button:hover:not(:disabled) {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
}

.photo-button:active:not(:disabled),
.voice-button:active:not(:disabled),
.send-button:active:not(:disabled) {
  transform: translateY(1px);
}

.photo-button:disabled,
.voice-button:disabled,
.send-button:disabled {
  opacity: 0.55;
}

.photo-button svg,
.send-button svg {
  width: 19px;
  height: 19px;
}

.voice-composer {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #ddd8c8;
  border-radius: 8px;
  background: #fbf8ee;
  transition: border-color 160ms ease, background 160ms ease;
}

.voice-composer[data-state="recording"] {
  border-color: rgba(233, 101, 86, 0.62);
  background: #fff2ef;
}

.voice-composer[data-state="ready"] {
  border-color: #b9d2c5;
  background: #f0f7f3;
}

.voice-line {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.voice-state-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--amber);
  color: var(--forest);
}

.voice-state-icon svg {
  width: 18px;
  height: 18px;
}

.voice-composer[data-state="recording"] .voice-state-icon {
  background: var(--coral);
  color: #fff;
  animation: voicePulse 1.1s ease-in-out infinite;
}

.voice-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.voice-copy strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-copy span {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.voice-timer {
  color: var(--ink-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.voice-progress {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4dfd0;
}

.voice-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 80ms linear;
}

.voice-composer[data-state="ready"] .voice-progress i {
  background: var(--forest-mid);
}

.voice-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.voice-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.voice-action svg {
  width: 15px;
  height: 15px;
}

.voice-send {
  min-width: 108px;
  margin-left: auto;
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
}

.voice-action:disabled {
  opacity: 0.52;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 32px));
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: var(--forest);
  box-shadow: 0 12px 30px rgba(18, 37, 31, 0.24);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.toast.error {
  background: var(--coral-dark);
}

@keyframes voicePulse {
  50% {
    box-shadow: 0 0 0 5px rgba(233, 101, 86, 0.13);
    transform: scale(0.96);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .login-view {
    display: block;
    padding: 0;
  }

  .login-frame {
    display: flex;
    min-height: 100dvh;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
  }

  .login-brand {
    margin-bottom: 32px;
  }

  .connection-heading h1 {
    font-size: 23px;
  }

  .endpoint-button {
    min-height: 80px;
    gap: 8px;
    padding: 9px;
  }

  .endpoint-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 14px;
  }

  .message-tools {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .attachment-tools {
    flex: 1 1 190px;
  }

  .photo-button,
  .voice-button {
    min-width: 0;
    flex: 1;
  }

  .send-button {
    flex: 1 1 128px;
  }

  .voice-actions {
    flex-wrap: wrap;
  }

  .voice-send {
    flex: 1 1 108px;
  }
}

@media (max-width: 360px) {
  .login-frame {
    padding: 26px 20px;
  }

  .login-brand {
    gap: 12px;
  }

  .brand-symbol {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .header-inner {
    gap: 8px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-brand-copy > span {
    display: none;
  }

  .room-chip {
    padding: 0 8px;
  }

  .target-switch {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 4px;
  }

  .endpoint-button {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .endpoint-copy {
    justify-items: center;
    width: 100%;
  }

  .endpoint-name {
    max-width: 100%;
  }

  .endpoint-kicker {
    display: none;
  }

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

  .action-button {
    min-height: 66px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 9px 11px;
    text-align: left;
  }

  .action-copy {
    justify-items: start;
  }

  .connection-heading,
  .section-heading {
    gap: 10px;
  }

  .connection-pill {
    padding: 0 8px;
  }
}

@media (max-width: 300px) {
  .action-grid-two {
    grid-template-columns: 1fr;
  }

  .room-chip span {
    display: none;
  }

  .feedback-line {
    padding-right: 6px;
    padding-left: 6px;
  }
}

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