:root {
  color-scheme: dark;
  --bg-0: #050812;
  --bg-1: #09101b;
  --bg-2: #0d1623;
  --bg-3: #121d2d;
  --panel: rgba(15, 22, 35, 0.68);
  --panel-strong: rgba(18, 28, 44, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(167, 195, 226, 0.14);
  --border-strong: rgba(133, 220, 255, 0.34);
  --hairline: rgba(255, 255, 255, 0.07);
  --text: rgba(240, 247, 255, 0.96);
  --muted: rgba(187, 203, 223, 0.74);
  --muted-2: rgba(161, 177, 198, 0.58);
  --accent: #73d9ff;
  --accent-2: #9fe8ff;
  --accent-3: #7a8cff;
  --accent-rgb: 115, 217, 255;
  --warm: #ffbc88;
  --danger: #ff8ea3;
  --success: #8fe7c9;
  --shadow-lg: 0 34px 84px rgba(0, 0, 0, 0.52), 0 12px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --shadow-md: 0 22px 52px rgba(0, 0, 0, 0.34), 0 8px 18px rgba(0, 0, 0, 0.18);
  --shadow-sm: 0 12px 26px rgba(0, 0, 0, 0.2);
  --glow-soft: 0 0 0 1px rgba(var(--accent-rgb), 0.06), 0 0 32px rgba(var(--accent-rgb), 0.08);
  --glow-accent: 0 0 0 1px rgba(var(--accent-rgb), 0.18), 0 0 28px rgba(var(--accent-rgb), 0.14), 0 0 56px rgba(122, 140, 255, 0.1);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --blur: 22px;
  --maxw: 960px;
  --authw: 440px;
  --topbar-h: 74px;
  --focus: 0 0 0 1px rgba(var(--accent-rgb), 0.88), 0 0 0 4px rgba(var(--accent-rgb), 0.16), 0 10px 30px rgba(var(--accent-rgb), 0.16);
  --glass-grad: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.045));
  --echo-grad: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  --user-grad: linear-gradient(135deg, rgba(104, 212, 255, 0.96), rgba(115, 217, 255, 0.94) 36%, rgba(122, 140, 255, 0.9) 100%);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 680px at 10% 8%, rgba(115, 217, 255, 0.09), transparent 58%),
    radial-gradient(900px 620px at 88% 12%, rgba(122, 140, 255, 0.08), transparent 56%),
    radial-gradient(860px 560px at 52% 108%, rgba(255, 188, 136, 0.05), transparent 60%),
    linear-gradient(180deg, #162233 0%, var(--bg-2) 28%, var(--bg-1) 58%, var(--bg-0) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  background:
    radial-gradient(34% 24% at 16% 12%, rgba(115, 217, 255, 0.11), transparent 72%),
    radial-gradient(26% 18% at 82% 16%, rgba(122, 140, 255, 0.1), transparent 72%),
    radial-gradient(24% 18% at 58% 76%, rgba(115, 217, 255, 0.08), transparent 74%);
  filter: blur(54px);
  opacity: 0.92;
  animation: auroraFloat 22s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 92%);
  opacity: 0.1;
}

@keyframes auroraFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(1.25%, -1%, 0) scale(1.04); }
  100% { transform: translate3d(-1%, 1.25%, 0) scale(1.06); }
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.auth-shell,
.echo-shell {
  position: relative;
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card,
.glass-card {
  position: relative;
  width: 100%;
  background: linear-gradient(180deg, rgba(20, 30, 46, 0.76), rgba(11, 17, 28, 0.66));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--blur)) saturate(135%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(135%);
  box-shadow: var(--shadow-lg), var(--glow-soft);
  overflow: hidden;
}

.auth-card::before,
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.1), transparent 18%, transparent 82%, rgba(255,255,255,0.025)),
    radial-gradient(120% 64% at 50% -6%, rgba(159, 232, 255, 0.08), transparent 42%);
}

.auth-card::after,
.glass-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.035);
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

.auth-card {
  max-width: var(--authw);
  padding: 30px;
}

.auth-head {
  margin-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #eefaff 0%, #d8f7ff 14%, var(--accent-2) 30%, var(--accent) 56%, var(--accent-3) 86%, rgba(122, 140, 255, 0.18) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 0 20px rgba(var(--accent-rgb), 0.28), 0 0 36px rgba(122, 140, 255, 0.18);
}

.brand-word {
  font-size: 0.9rem;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.98), rgba(191, 222, 255, 0.88));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.06);
}

.auth-title {
  margin: 18px 0 8px;
  font-size: clamp(1.9rem, 3.3vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.auth-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.error-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 142, 163, 0.24);
  background: linear-gradient(180deg, rgba(255, 142, 163, 0.14), rgba(255, 142, 163, 0.08));
  color: #ffdce4;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 10px 24px rgba(255, 142, 163, 0.08);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.input,
#message {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(167, 195, 226, 0.16);
  background: linear-gradient(180deg, rgba(8, 14, 24, 0.78), rgba(12, 18, 28, 0.68));
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -18px 28px rgba(0,0,0,0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease, filter 180ms ease;
}

.input::placeholder,
#message::placeholder {
  color: rgba(192, 206, 225, 0.42);
}

.input:hover,
#message:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  background: linear-gradient(180deg, rgba(9, 15, 26, 0.84), rgba(13, 20, 31, 0.74));
}

.input:focus,
#message:focus,
button:focus-visible,
a:focus-visible,
input[type="checkbox"]:focus-visible + .switch-ui {
  box-shadow: var(--focus);
  border-color: rgba(var(--accent-rgb), 0.62);
}

.input:focus,
#message:focus {
  background: linear-gradient(180deg, rgba(11, 17, 28, 0.92), rgba(12, 18, 30, 0.82));
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 13px 16px;
  color: white;
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--user-grad);
  box-shadow: 0 14px 32px rgba(79, 148, 255, 0.26), 0 0 0 1px rgba(255,255,255,0.08) inset, 0 0 34px rgba(var(--accent-rgb), 0.12);
}

.btn-primary:hover {
  filter: brightness(1.05) saturate(1.03);
  box-shadow: 0 18px 40px rgba(79, 148, 255, 0.32), 0 0 0 1px rgba(255,255,255,0.1) inset, 0 0 42px rgba(var(--accent-rgb), 0.16);
}

.auth-footer {
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 0.88rem;
}

.app-root {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 12;
  padding: 16px 16px 0;
}

.topbar {
  height: var(--topbar-h);
  max-width: calc(var(--maxw) + 120px);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(180deg, rgba(25, 36, 55, 0.82), rgba(15, 22, 35, 0.66));
  border: 1px solid var(--border);
  border-radius: 24px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.06);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.user-name {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
}

.role-chip {
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  color: rgba(212, 226, 242, 0.82);
  font-size: 0.78rem;
  text-transform: capitalize;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.role-chip {
  color: rgba(224, 236, 250, 0.94);
}

.signout-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.signout-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
  transform: translateY(-1px);
}

.app-main {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 16px 24px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 14px;
  min-height: calc(100vh - 90px);
}

.transcript-card {
  min-height: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(21, 31, 48, 0.82), rgba(12, 18, 29, 0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
}

.transcript-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(90% 40% at 50% 0%, rgba(var(--accent-rgb), 0.05), transparent 55%);
}

#transcript {
  height: 100%;
  min-height: 48vh;
  max-height: calc(100vh - 236px);
  overflow: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}

#transcript::-webkit-scrollbar { width: 10px; }
#transcript::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
#transcript::-webkit-scrollbar-track { background: transparent; }

.msg {
  display: flex;
  width: 100%;
}

.msg.echo { justify-content: flex-start; }
.msg.user { justify-content: flex-end; }

.bubble {
  position: relative;
  max-width: min(78%, 700px);
  padding: 14px 16px;
  border-radius: 20px;
  line-height: 1.56;
  font-size: 0.97rem;
  box-shadow: var(--shadow-sm);
  word-wrap: break-word;
  white-space: pre-wrap;
}

.msg.echo .bubble {
  background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.04));
  border: 1px solid rgba(167, 195, 226, 0.14);
  color: var(--text);
  border-top-left-radius: 10px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.05);
}

.msg.user .bubble {
  background: var(--user-grad);
  color: white;
  border: 1px solid rgba(255,255,255,0.14);
  border-top-right-radius: 10px;
  box-shadow: 0 16px 34px rgba(78, 133, 255, 0.24), 0 0 28px rgba(var(--accent-rgb), 0.1), inset 0 1px 0 rgba(255,255,255,0.18);
}

.bubble.typing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 78px;
}

.bubble.typing::before,
.bubble.typing::after,
.bubble.typing span {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f0fbff, var(--accent));
  opacity: 0.85;
  animation: echoDots 1.2s infinite ease-in-out;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.24);
}

.bubble.typing span { animation-delay: 0.16s; }
.bubble.typing::after { animation-delay: 0.32s; }

@keyframes echoDots {
  0%, 80%, 100% { transform: translateY(0) scale(0.9); opacity: 0.42; }
  40% { transform: translateY(-3px) scale(1); opacity: 1; }
}

.composer-wrap {
  position: sticky;
  bottom: 0;
  z-index: 10;
}

#composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 34, 52, 0.88), rgba(13, 20, 31, 0.76));
  border: 1px solid var(--border);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(255,255,255,0.02);
}

#mic,
#send {
  appearance: none;
  border: 1px solid var(--border);
  outline: none;
}

#mic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 10px 20px rgba(0,0,0,0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease, filter 180ms ease;
}

#mic:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 24px rgba(0,0,0,0.18), 0 0 18px rgba(var(--accent-rgb), 0.1);
}

#mic.recording {
  background: radial-gradient(circle at 50% 34%, rgba(255,255,255,0.2), transparent 40%), linear-gradient(135deg, rgba(115, 217, 255, 0.98), rgba(122, 140, 255, 0.9));
  border-color: rgba(var(--accent-rgb), 0.42);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.34), 0 0 30px rgba(var(--accent-rgb), 0.22), 0 0 56px rgba(122, 140, 255, 0.12), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: micPulse 1.7s infinite ease-out;
}

@keyframes micPulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.34), 0 0 30px rgba(var(--accent-rgb), 0.22), 0 0 56px rgba(122, 140, 255, 0.1), inset 0 1px 0 rgba(255,255,255,0.2); }
  70% { box-shadow: 0 0 0 14px rgba(var(--accent-rgb), 0), 0 0 38px rgba(var(--accent-rgb), 0.26), 0 0 60px rgba(122, 140, 255, 0.14), inset 0 1px 0 rgba(255,255,255,0.2); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0), 0 0 24px rgba(var(--accent-rgb), 0.16), 0 0 42px rgba(122, 140, 255, 0.08), inset 0 1px 0 rgba(255,255,255,0.2); }
}

.mic-glyph {
  font-size: 1.1rem;
  line-height: 1;
  filter: saturate(0) brightness(1.28);
}

#message {
  min-width: 0;
  border-radius: 18px;
  padding: 15px 16px;
  background: linear-gradient(180deg, rgba(7, 12, 22, 0.76), rgba(12, 18, 29, 0.66));
}

#send {
  height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  color: white;
  font-weight: 700;
  background: var(--user-grad);
  box-shadow: 0 12px 28px rgba(79, 148, 255, 0.24), 0 0 28px rgba(var(--accent-rgb), 0.12), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#send:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgba(79, 148, 255, 0.3), 0 0 38px rgba(var(--accent-rgb), 0.16), inset 0 1px 0 rgba(255,255,255,0.18);
}

/* Keyboard focus ring for the composer buttons (their static box-shadow + outline:none
   would otherwise swallow the shared button:focus-visible ring — same id specificity,
   so these later rules win). */
#mic:focus-visible,
#send:focus-visible {
  box-shadow: var(--focus);
  border-color: rgba(var(--accent-rgb), 0.62);
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 6px 0;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-ui {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), inset 0 -8px 16px rgba(0,0,0,0.12);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(218,226,236,0.88));
  box-shadow: 0 3px 10px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 180ms ease;
}

.switch input[type="checkbox"]:checked + .switch-ui {
  background: linear-gradient(135deg, rgba(115, 217, 255, 0.8), rgba(122, 140, 255, 0.68));
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.16), inset 0 1px 0 rgba(255,255,255,0.12);
}

.switch input[type="checkbox"]:checked + .switch-ui::after {
  transform: translateX(20px);
}

.switch-label {
  font-size: 0.92rem;
}

#status {
  min-height: 1.3em;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

[data-role="manager"] .role-chip,
[data-role="admin"] .role-chip {
  color: rgba(240, 247, 255, 0.94);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.retention-note {
  text-align: center;
  font-size: 0.78rem;
  margin: 8px 0 2px;
  opacity: 0.76;
  color: rgba(183, 197, 216, 0.76);
  letter-spacing: 0.01em;
}

@media (max-width: 720px) {
  .topbar-wrap { padding: 12px 12px 0; }
  .topbar {
    height: auto;
    min-height: var(--topbar-h);
    padding: 12px 14px;
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .app-main {
    padding: 14px 12px 20px;
    min-height: calc(100vh - 94px);
  }
  #transcript {
    padding: 18px;
    max-height: calc(100vh - 270px);
  }
  .bubble { max-width: 88%; }
  .controls-row {
    flex-direction: column;
    align-items: flex-start;
  }
  #status { text-align: left; }
}

@media (max-width: 480px) {
  .auth-shell { padding: 18px; }
  .auth-card { padding: 22px 18px; border-radius: 24px; }
  .auth-title { font-size: 1.72rem; }
  .brand-word { font-size: 0.84rem; }
  .user-name { max-width: 120px; }
  #composer {
    grid-template-columns: 48px 1fr;
    grid-template-areas:
      "mic message"
      "send send";
  }
  #mic { grid-area: mic; width: 48px; height: 48px; }
  #message { grid-area: message; }
  #send {
    grid-area: send;
    width: 100%;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}