:root {
  color-scheme: light dark;
  --page: #f5f4ef;
  --surface: #fffefa;
  --surface-soft: #f0efe9;
  --text: #282b27;
  --muted: #62685f;
  --line: #dedfd8;
  --accent: #526e59;
  --accent-hover: #425b49;
  --accent-ink: #fff;
  --incoming: #eceee9;
  --outgoing: #dce9de;
  --ai-surface: #e7eee6;
  --focus: #5b7961;
  --danger: #a34c43;
  --shadow: 0 12px 36px rgb(33 36 30 / 7%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #171916;
    --surface: #20231f;
    --surface-soft: #292d28;
    --text: #f0f1eb;
    --muted: #b2b8ae;
    --line: #383e37;
    --accent: #a8c2aa;
    --accent-hover: #bdd2be;
    --accent-ink: #172019;
    --incoming: #292d29;
    --outgoing: #304236;
    --ai-surface: #26342a;
    --focus: #b4cfb7;
    --danger: #e5a097;
    --shadow: 0 12px 36px rgb(0 0 0 / 20%);
  }
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-top: 5rem; }
body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: calc(6px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: var(--page);
}
.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--accent);
  background: var(--surface);
}
.brand-mark svg { width: 21px; height: 21px; }
.room-context { min-width: 0; overflow: hidden; color: var(--muted); font-size: .875rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
body.in-room .beta { display: none; }
.beta {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
}
.header-actions { display: flex; align-items: center; gap: 9px; }
.unread-badge {
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1;
}
.menu { position: relative; }
.menu summary {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(220px, calc(100vw - 32px));
  gap: 3px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.menu nav a, .menu nav button {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: .92rem;
  text-align: left;
  text-decoration: none;
}
.menu nav a:hover, .menu nav button:hover { background: var(--surface-soft); }
.menu nav .sign-out { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--danger); }
.menu-scrim { display: none; position: fixed; z-index: 9; inset: 0; border: 0; background: rgb(19 23 19 / 20%); }
body.menu-open .menu-scrim { display: block; }

.wrap {
  width: min(100%, 790px);
  margin-inline: auto;
  padding: var(--space-6) clamp(14px, 3.5vw, 28px);
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: var(--space-2);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.18;
}
h2 { margin-bottom: var(--space-2); font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; }
p { margin-bottom: var(--space-4); }
.muted, .small-note { color: var(--muted); }
.eyebrow { margin-bottom: var(--space-2); color: var(--muted); font-size: .8rem; font-weight: 500; letter-spacing: .02em; }
.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.login-card {
  width: min(100%, 410px);
  margin: clamp(44px, calc((100svh - 500px) / 2), 180px) auto 40px;
  padding: clamp(22px, 5vw, 32px);
}
.login-card h1 { margin-bottom: 7px; }
.login-form { display: grid; gap: 9px; margin-top: 24px; }
.login-form label { font-size: .86rem; font-weight: 500; }
.login-form input, .composer textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
}
.login-form input { min-height: 48px; padding: 10px 13px; border-color: var(--muted); }
.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: .94rem;
  font-weight: 500;
}
.primary-button { background: var(--accent); color: var(--accent-ink); }
.primary-button:hover { background: var(--accent-hover); }
.secondary-button { border-color: var(--line); background: var(--surface); color: var(--text); }
.secondary-button:hover { background: var(--surface-soft); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .65; }
.small-note { margin: 16px 0 8px; font-size: .8rem; }
.public-links { display: flex; gap: 16px; font-size: .88rem; }
.error { min-height: 1.35em; margin: 0; color: var(--danger); font-size: .86rem; }
.room-list { display: grid; gap: 9px; max-width: 520px; margin-top: 20px; }
.room-choice {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  text-align: left;
}
.room-choice:hover { border-color: var(--accent); background: var(--surface-soft); }
.room-choice span:last-child { color: var(--muted); font-size: 1.25rem; }
.room-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.room-heading {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 1px 8px;
}
.room-heading h1 { margin: 0; font-size: 1.18rem; font-weight: 600; letter-spacing: -.025em; }
body.in-room #app { width: 100%; max-width: none; padding: 0; }
.thread {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 0 clamp(14px, 3.5vw, 28px) calc(var(--composer-height, 124px) + var(--status-height, 0px) + 72px + env(safe-area-inset-bottom));
}
.history-control { display: flex; justify-content: center; padding: 6px 0 15px; }
.history-control button {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .84rem;
}
.history-control button:hover { background: var(--surface-soft); color: var(--text); }
.messages { display: flex; flex-direction: column; gap: 3px; }
.day-separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  text-align: center;
}
.day-separator::before, .day-separator::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.message-row { display: flex; width: 100%; align-items: flex-end; gap: 1px; }
.message-row.mine { justify-content: flex-end; }
.message-row.theirs, .message-row.ai-row { justify-content: flex-start; }
.message {
  position: relative;
  width: fit-content;
  max-width: min(82%, 610px);
  padding: 8px 12px 9px;
  border-radius: 19px;
  background: var(--incoming);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.38;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.message.mine { border-bottom-right-radius: 7px; background: var(--outgoing); }
.message.theirs { border-bottom-left-radius: 7px; }
.message.ai {
  border-left: 2px solid var(--accent);
  border-bottom-left-radius: 7px;
  background: var(--ai-surface);
}
.message.pending-message { opacity: .82; }
.message.group-start { margin-top: 7px; }
.message.group-mid { border-radius: 16px; }
.message.group-end.mine { border-top-right-radius: 7px; }
.message.group-end.theirs, .message.group-end.ai { border-top-left-radius: 7px; }
.message-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.25;
}
.message-header .sender { font-weight: 600; }
.message.ai .sender { color: var(--accent); }
.message.ai .ai-sender { display: inline-flex; align-items: center; gap: 5px; font-size: .9rem; font-weight: 650; }
.ai-mark, .ai-mark svg { display: inline-flex; width: 15px; height: 15px; flex: 0 0 15px; }
.message-header time { flex: 0 0 auto; font-size: .875rem; font-variant-numeric: tabular-nums; }
.message a {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  padding: 3px;
}
.message img {
  display: block;
  width: auto;
  max-width: min(72vw, 320px);
  max-height: min(42svh, 360px);
  border-radius: 11px;
  object-fit: contain;
}
.message.photo-message { padding: 5px; border: 0; background: transparent; line-height: 1; }
.message.photo-message .message-header { padding: 0 3px 6px; }
.photo-frame {
  position: relative;
  display: inline-grid;
  max-width: min(72vw, 360px);
  max-height: min(42svh, 360px);
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  outline: 1px solid var(--line);
  background: var(--surface-soft);
}
.message.photo-message .photo-frame > a { display: block; padding: 0; border: 0; background: transparent; }
.message.photo-message .photo-frame img { width: auto; height: auto; max-width: min(72vw, 360px); max-height: min(42svh, 360px); border-radius: 13px; }
.photo-state {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.4;
  text-align: center;
}
.photo-frame.is-loaded .photo-state { display: none; }
.photo-frame.is-failed {
  min-width: min(220px, 72vw);
  min-height: 124px;
}
.photo-frame.is-failed .photo-state { padding-bottom: 58px; }
.photo-retry {
  position: absolute;
  z-index: 2;
  bottom: 8px;
  left: 50%;
  min-width: 112px;
  min-height: 44px;
  padding: 0 13px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: .9rem;
}
.message a:focus-visible { border-radius: 14px; }
.message-menu { position: relative; flex: 0 0 44px; }
.message-menu summary, .icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.message-menu summary::-webkit-details-marker { display: none; }
.message-menu summary svg { width: 22px; height: 22px; }
.message-menu .delete-popover {
  position: absolute;
  right: 2px;
  bottom: calc(100% - 3px);
  z-index: 5;
  min-width: 150px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.delete-popover button {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  text-align: left;
}
.delete-popover button:hover { background: var(--surface-soft); }
.message-row.mine .message-menu { order: 2; }
.message-row.mine .message { order: 1; }
.message-row.theirs .message-menu { order: 0; }
.message-row.theirs .message { order: 1; }
.message-menu summary:hover, .icon-button:hover { background: var(--surface-soft); color: var(--text); }
.message-menu[open] summary { color: var(--accent); }
@media (hover: hover) {
  .message-menu summary { opacity: 0; }
  .message-row:hover .message-menu summary, .message-menu:focus-within summary, .message-menu[open] summary { opacity: 1; }
}
.empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  max-width: 310px;
  margin: clamp(52px, 12vh, 120px) auto 36px;
  color: var(--muted);
  text-align: center;
}
.empty-state svg { width: 40px; height: 40px; margin-bottom: 5px; color: var(--accent); }
.empty-state strong { color: var(--text); font-size: 1rem; font-weight: 600; }
.empty-state p { margin: 0; font-size: .88rem; }
.status-line {
  position: fixed;
  z-index: 12;
  right: 16px;
  bottom: calc(var(--composer-height, 124px) + env(safe-area-inset-bottom) + 10px);
  left: 16px;
  width: fit-content;
  max-width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
  font-size: .9rem;
}
.admin-content > .eyebrow { margin: 0 0 10px; }
.composer {
  position: fixed;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  width: min(100%, 760px);
  gap: 7px;
  margin-inline: auto;
  padding: 8px max(14px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--page);
}
.ask-chip {
  justify-self: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
}
.ask-chip:disabled { cursor: not-allowed; opacity: .7; }
.ask-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.compose-row { display: flex; min-width: 0; align-items: flex-end; gap: 6px; }
.composer textarea {
  min-height: 44px;
  max-height: 138px;
  flex: 1 1 auto;
  padding: 10px 13px;
  border-radius: 19px;
  line-height: 1.35;
  resize: none;
}
.composer textarea::placeholder { color: var(--muted); opacity: .9; }
.icon-button { flex: 0 0 44px; }
.icon-button svg { width: 21px; height: 21px; }
.photo-button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.send-button { border: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); transition: background-color .12s ease, color .12s ease; }
.send-button.is-ready { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.send-button.is-ready:hover { background: var(--accent-hover); }
.send-button:disabled { cursor: default; opacity: 1; }
.send-button[aria-busy="true"] { opacity: .68; }
.icon-button:disabled { cursor: wait; opacity: .55; }
.admin-panel, .content-panel { padding: clamp(18px, 4vw, 26px); }
.admin-panel { margin-top: 10px; }
.admin-panel p:last-child { margin-bottom: 0; }
.admin-panel-heading, .admin-usage-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-panel-heading h2 { margin: 0; }
.admin-state { display: inline-flex; min-height: 28px; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: .82rem; font-weight: 500; }
.admin-state.is-on { color: var(--accent); }
.admin-usage-heading { margin-top: 20px; font-size: .9rem; }
.admin-usage-heading strong { font-size: .92rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.usage-track { height: 7px; margin: 10px 0 4px; overflow: hidden; border-radius: 999px; background: var(--surface-soft); }
.usage-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.usage-note { margin: 0 0 15px; color: var(--muted); font-size: .82rem; }
.admin-alert { padding: 10px 12px; border-left: 2px solid var(--danger); color: var(--danger); font-size: .86rem; }
.content-panel { margin: 12px 0 20px; }
.content-panel h2 { margin-top: 22px; font-weight: 700; }
.content-panel h2:first-child { margin-top: 0; }
.content-panel ul { padding-left: 1.25rem; }
.content-panel li { margin: 5px 0; }
.info-page { width: min(100%, 680px); margin-inline: auto; }
body.in-room #app .info-page { padding-inline: clamp(14px, 3.5vw, 28px); }
.info-heading { display: grid; grid-template-columns: minmax(60px, 1fr) auto minmax(60px, 1fr); align-items: center; margin-bottom: 12px; }
.info-heading h1 { grid-column: 2; margin: 0; text-align: center; }
.page-back { display: inline-flex; width: fit-content; min-width: 60px; min-height: 44px; align-items: center; gap: 5px; margin-top: 0; color: var(--muted); font-size: .9rem; text-decoration: none; }
.page-back:hover { color: var(--text); }
.page-footer { margin: 22px 0 12px; color: var(--muted); font-size: .82rem; }
.welcome-page { max-width: 700px; margin-inline: auto; }
.welcome-mark { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--accent); }
.welcome-mark svg { width: 30px; height: 30px; }
.welcome-title { margin-bottom: 6px; }
.welcome-intro { font-size: .96rem; }
.welcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.welcome-card { display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 12px; min-height: 136px; padding: 18px; }
.welcome-index { display: block; margin-top: 2px; color: var(--accent); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.welcome-card h2 { font-size: .98rem; }
.welcome-card p { margin: 0; color: var(--text); font-size: .9rem; }
.welcome-actions { display: flex; align-items: center; gap: 14px; }
.skip-button { min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--accent); cursor: pointer; font-size: .9rem; font-weight: 500; }
.help-list { display: grid; gap: 10px; }
.help-list section { padding: 15px 0; border-top: 1px solid var(--line); }
.help-list section:first-child { border-top: 0; }
.help-list p { margin: 0; color: var(--text); font-size: .96rem; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.photo-viewer {
  width: min(1100px, calc(100vw - 28px));
  max-width: calc(100vw - 28px);
  max-height: calc(100svh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
}
.photo-viewer::backdrop { background: rgb(18 21 18 / 78%); }
.photo-viewer form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.photo-viewer-close { min-width: 44px; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); color: var(--text); cursor: pointer; }
.photo-viewer img { display: block; width: 100%; height: auto; max-height: calc(100svh - 100px); object-fit: contain; border-radius: 12px; }
.confirm-dialog {
  width: min(390px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.confirm-dialog::backdrop { background: rgb(18 21 18 / 48%); }
@media (prefers-color-scheme: dark) {
  .confirm-dialog::backdrop { background: rgb(0 0 0 / 68%); }
}
.confirm-dialog h2 { margin-bottom: 7px; font-size: 1.15rem; }
.confirm-dialog p { margin-bottom: 20px; color: var(--muted); }
.danger-button { min-height: 44px; padding: 0 16px; border: 1px solid transparent; border-radius: 14px; background: var(--danger); color: var(--surface); cursor: pointer; font-size: .94rem; font-weight: 500; }
.ai-thinking-copy { display: inline-block; }

@media (max-width: 540px) {
  .site-header { min-height: 54px; }
  .wrap { padding-top: 16px; }
  .message { max-width: 84%; padding: 8px 11px; }
  .welcome-grid { grid-template-columns: 1fr; gap: 8px; }
  .welcome-card { min-height: auto; padding: 15px; }
  .welcome-index { margin-bottom: 0; }
}
@media (max-width: 360px) {
  .site-header { padding-right: 10px; padding-left: 10px; }
  .brand { gap: 6px; font-size: .94rem; }
  .room-context { font-size: .82rem; }
  .menu summary { min-width: 42px; padding-inline: 8px; }
  .composer { padding-right: 10px; padding-left: 10px; }
  .compose-row { gap: 4px; }
  .message { max-width: 81%; }
}
@media (max-height: 700px) {
  .login-card { margin-top: 24px; }
}
@media (min-width: 700px) {
  .wrap { padding-top: 26px; }
  .thread { padding-bottom: calc(var(--composer-height, 112px) + var(--status-height, 0px) + 72px + env(safe-area-inset-bottom)); }
  .composer { padding-inline: 18px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-top-left-radius: 18px; border-top-right-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
