:root {
  color-scheme: light;
  --navy: #10243f;
  --navy-2: #173457;
  --bg: #f4f7fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --line: #d8e0ea;
  --line-strong: #b6c3d4;
  --blue: #1f5fbf;
  --blue-soft: #e8f1ff;
  --amber: #946200;
  --amber-soft: #fff4d9;
  --green: #167647;
  --green-soft: #e8f6ef;
  --red: #b42318;
  --red-soft: #ffebe9;
  --shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

button:disabled,
textarea:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-panel {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand-row,
.ops-brand,
.composer-title,
.identity-strip,
.toolbar,
.dialog-actions,
.mobile-topbar {
  display: flex;
  align-items: center;
}

.brand-row {
  gap: 12px;
  margin-bottom: 24px;
}

.brand-row img,
.ops-brand img {
  border-radius: 8px;
}

.brand-name {
  font-size: 18px;
  line-height: 24px;
  font-weight: 760;
}

.brand-sub,
.identity-role,
.view-header p,
.team-panel-header span,
.review-destination,
.metric-card span,
.conversation-item span,
.stack-item span {
  color: var(--muted);
}

.login-panel h1,
.view-header h1 {
  margin: 0;
  letter-spacing: 0;
}

.login-panel p {
  margin: 8px 0 22px;
  color: var(--muted);
}

.field-label,
.internal-note-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 750;
  color: #334155;
}

.token-input,
.search-input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.token-input,
.search-input {
  min-height: 42px;
  padding: 9px 12px;
}

textarea {
  resize: vertical;
  min-height: 104px;
  padding: 10px 12px;
  line-height: 20px;
}

.token-input:focus,
.search-input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.14);
}

.primary-button,
.secondary-button,
.amber-button,
.icon-button,
.sidebar-action {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 760;
  white-space: nowrap;
}

.primary-button {
  width: 100%;
  margin-top: 16px;
  color: #fff;
  background: var(--blue);
}

.primary-button.inline {
  width: auto;
  margin-top: 0;
}

.secondary-button,
.icon-button {
  color: #243044;
  background: #fff;
  border-color: var(--line);
}

.compact-button {
  min-height: 34px;
  margin-bottom: 10px;
  padding: 6px 10px;
}

.amber-button {
  color: #442d00;
  background: #ffd980;
  border-color: #e5b84e;
}

.status-line {
  min-height: 22px;
  color: var(--red);
  font-size: 13px;
}

.ops-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ops-brand {
  gap: 10px;
  padding: 8px;
  text-decoration: none;
  font-weight: 800;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-button {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: #d8e7f8;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
  background: var(--navy-2);
}

.sidebar-action {
  margin-top: auto;
  color: #eaf2ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.sidebar-action + .sidebar-action {
  margin-top: 0;
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  height: 60px;
  padding: 0 12px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.mobile-topbar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.main-panel {
  min-width: 0;
  padding: 22px;
}

body.messages-route {
  overflow: hidden;
}

body.messages-route .ops-shell {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body.messages-route .main-panel {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
  padding: 14px 18px 12px;
}

body.messages-route .identity-strip {
  min-height: 48px;
  margin-bottom: 0;
  padding: 8px 12px;
}

.identity-strip {
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.identity-name {
  display: block;
  font-weight: 800;
}

.identity-capability {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.view-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.view-header h1 {
  font-size: 28px;
  line-height: 34px;
}

.view-header p {
  margin: 6px 0 0;
}

.view-header.compact {
  align-items: center;
}

.toolbar {
  gap: 8px;
  min-width: min(520px, 100%);
}

.compact-toolbar {
  min-width: min(460px, 100%);
}

.messages-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.filter-tab,
.mini-metric {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: #26364e;
  display: grid;
  gap: 4px;
  text-align: left;
}

.filter-tab {
  cursor: pointer;
}

.filter-tab:hover,
.filter-tab.active {
  border-color: #9ec1f4;
  background: var(--blue-soft);
}

.filter-tab:focus-visible,
.conversation-item:focus-visible,
.nav-button:focus-visible {
  outline: 2px solid #8fc6ff;
  outline-offset: 2px;
}

.filter-tab span,
.mini-metric span {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 760;
}

.filter-tab strong,
.mini-metric strong {
  font-size: 20px;
  line-height: 24px;
}

.filter-tab.warning.active,
.filter-tab.warning:hover,
.mini-metric.warning {
  border-color: #f0cc75;
  background: var(--amber-soft);
}

.mini-metric.danger {
  border-color: #ffb4ad;
  background: var(--red-soft);
}

.message-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric-card,
.plain-section,
.conversation-list,
.conversation-main,
.team-panel,
.sync-panel,
.identity-strip,
.table-wrap,
.notice,
.stack-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-card {
  min-height: 102px;
  padding: 15px;
}

.metric-card strong {
  display: block;
  font-size: 26px;
  line-height: 32px;
  margin-top: 10px;
}

.metric-card span {
  display: block;
  font-size: 13px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.plain-section {
  padding: 16px;
}

.plain-section h2,
.team-panel-header strong,
.auditView h2 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 24px;
}

.stack-list {
  display: grid;
  gap: 8px;
}

.stack-item {
  padding: 12px;
}

.stack-item strong {
  display: block;
  margin-bottom: 4px;
}

.device-card {
  display: grid;
  gap: 12px;
}

.device-card-head,
.device-actions,
.category-toggle {
  display: flex;
  align-items: center;
}

.device-card-head {
  justify-content: space-between;
  gap: 12px;
}

.device-card-head span {
  display: block;
}

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.category-toggle {
  min-height: 36px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
}

.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 780;
  border: 1px solid var(--line);
}

.status.healthy,
.status.sent {
  color: var(--green);
  background: var(--green-soft);
  border-color: #bce4ce;
}

.status.delayed,
.status.pending,
.status.in_progress,
.status.medium {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #f0cc75;
}

.status.stale,
.status.degraded,
.status.high,
.status.needs_reconciliation,
.status.down {
  color: var(--red);
  background: var(--red-soft);
  border-color: #ffb4ad;
}

#messagesView {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

#messagesView.hidden {
  display: none !important;
}

body.messages-route .view-header.compact {
  margin-bottom: 0;
  align-items: center;
}

body.messages-route .view-header.compact h1 {
  font-size: 24px;
  line-height: 29px;
}

body.messages-route .view-header.compact p {
  margin: 2px 0 0;
}

.messages-controls {
  min-height: 0;
  margin-bottom: 0;
}

.messages-controls .detail-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 16px;
}

.filter-tabs,
.message-metrics {
  gap: 6px;
}

.filter-tab,
.mini-metric {
  min-height: 52px;
  padding: 8px 10px;
}

.filter-tab strong,
.mini-metric strong {
  font-size: 18px;
  line-height: 22px;
}

.messages-layout {
  min-height: 0;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(420px, 1fr) minmax(280px, 340px);
  gap: 10px;
  overflow: hidden;
}

.conversation-list,
.conversation-main,
.message-side-rail,
.team-panel,
.sync-panel {
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.conversation-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  background: #fbfdff;
}

.conversation-count {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 760;
  background: #fff;
}

#conversationList {
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  gap: 7px;
  align-content: start;
}

.conversation-item {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  text-align: left;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.conversation-item:hover {
  background: #f8fbff;
  border-color: #c7d8ef;
}

.conversation-item.active {
  background: #eff6ff;
  border-color: #91bbf5;
  box-shadow: inset 3px 0 0 var(--blue), 0 1px 2px rgba(16, 24, 40, 0.05);
}

.conversation-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #dfeaf8;
  color: #23405f;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
}

.conversation-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.conversation-top,
.conversation-meta-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.conversation-name,
.conversation-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-name {
  flex: 1 1 auto;
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 850;
}

.conversation-time,
.conversation-message-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
}

.conversation-preview {
  color: #40516b;
  font-size: 13px;
  line-height: 17px;
}

.conversation-badges {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  overflow: hidden;
}

.conversation-message-count {
  margin-left: auto;
  font-weight: 760;
}

.conversation-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #f5f8fc;
}

.conversation-header {
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  display: grid;
  gap: 3px;
  background: rgba(255, 255, 255, 0.96);
}

.conversation-header strong,
.conversation-header div {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-header.empty {
  color: var(--muted);
  background: #fff;
}

.message-timeline {
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px 18px;
  display: grid;
  align-content: start;
  gap: 11px;
  background: #f5f8fc;
}

.message-row {
  max-width: min(700px, 82%);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.message-row.support {
  justify-self: end;
  background: #e9f2ff;
  border-color: #b8d2f8;
}

.message-row.user {
  justify-self: start;
}

.message-row .meta {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
}

.message-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.support-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(31, 95, 191, 0.2);
  background: #dceaff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
}

.support-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 20px;
}

.message-flags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.message-row.support .message-flags {
  justify-content: flex-end;
}

.customer-composer {
  border-top: 1px solid #9db6d8;
  background: #f0f6ff;
  padding: 10px 14px 12px;
  display: grid;
  gap: 8px;
  box-shadow: 0 -1px 0 rgba(16, 24, 40, 0.03);
}

.customer-composer textarea {
  min-height: 88px;
  max-height: 160px;
  resize: vertical;
  background: #fff;
}

.composer-title {
  gap: 9px;
}

.person-icon {
  display: inline-flex;
  min-width: 70px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--blue);
  background: #dceaff;
  font-size: 11px;
  font-weight: 850;
}

.composer-title span:not(.person-icon),
.composer-footer span {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

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

.message-side-rail {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  overflow-y: auto;
  padding-right: 2px;
  align-content: start;
}

.sync-panel {
  padding: 12px;
  display: grid;
  gap: 9px;
  align-content: start;
}

.side-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.side-panel-header span {
  color: var(--muted);
  font-size: 11px;
  line-height: 15px;
  font-weight: 760;
}

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

.detail-row,
.queue-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px 9px;
  font-size: 12px;
  line-height: 17px;
}

.detail-key {
  color: var(--muted);
  font-size: 10px;
  line-height: 14px;
  font-weight: 820;
  text-transform: uppercase;
}

.detail-value {
  overflow-wrap: anywhere;
}

.sync-panel h2 {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 19px;
}

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

.queue-status-hint {
  color: var(--muted);
}

.team-panel {
  background: #fffaf0;
  border-color: #e2bd61;
  display: grid;
  grid-template-rows: auto minmax(76px, 1fr) auto;
}

.team-panel-header {
  padding: 12px;
  border-bottom: 1px solid #e2bd61;
}

.team-panel-header span {
  display: block;
}

.internal-notes {
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
}

.internal-note {
  border: 1px solid #f0cc75;
  border-radius: 8px;
  background: #fff;
  padding: 9px;
  margin-bottom: 7px;
}

.internal-note .meta {
  color: var(--amber);
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 4px;
}

.internal-note-form {
  padding: 10px;
  border-top: 1px solid #e2bd61;
  display: grid;
  gap: 7px;
}

.internal-note-form textarea {
  min-height: 94px;
  max-height: 160px;
  resize: vertical;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: #334155;
  font-size: 12px;
  text-transform: uppercase;
}

.table-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  font-weight: 800;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: normal;
}

.detail-section {
  margin-top: 14px;
}

.detail-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.notice {
  padding: 12px;
  margin-bottom: 12px;
  color: var(--muted);
}

.review-dialog {
  width: min(640px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.review-dialog::backdrop {
  background: rgba(16, 24, 40, 0.42);
}

.review-dialog h2 {
  margin-top: 0;
}

.review-dialog pre {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.dialog-actions {
  justify-content: flex-end;
  gap: 10px;
}

.mobile-only {
  display: none;
}

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

@media (max-width: 1180px) {
  .ops-shell {
    grid-template-columns: 188px minmax(0, 1fr);
  }

  .sidebar {
    padding: 12px 8px;
  }

  .nav-button {
    min-height: 36px;
    padding: 7px 9px;
  }

  body.messages-route .main-panel {
    padding: 10px;
  }

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

  .messages-layout {
    grid-template-columns: 200px minmax(0, 1fr) 220px;
    gap: 8px;
  }

  .filter-tab,
  .mini-metric {
    padding: 7px 8px;
  }

  .conversation-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    padding: 8px;
  }

  .conversation-avatar {
    width: 32px;
    height: 32px;
  }

  .customer-composer {
    padding: 8px 10px 10px;
  }

  .customer-composer textarea {
    min-height: 70px;
  }

  .internal-note-form textarea {
    min-height: 78px;
  }

  .sync-panel,
  .team-panel-header,
  .internal-note-form {
    padding: 10px;
  }
}

@media (max-width: 900px) {
  body.messages-route {
    overflow: auto;
  }

  .ops-shell {
    display: block;
  }

  body.messages-route .ops-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(280px, 82vw);
    transform: translateX(-105%);
    transition: transform 160ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-topbar {
    display: flex;
  }

  .main-panel {
    padding: 14px;
  }

  body.messages-route .main-panel {
    height: auto;
    min-height: calc(100dvh - 60px);
    display: block;
    overflow: visible;
    padding: 12px;
  }

  body.messages-route .identity-strip {
    margin-bottom: 12px;
  }

  #messagesView {
    display: block;
    overflow: visible;
  }

  #messagesView.hidden {
    display: none !important;
  }

  .identity-strip,
  .view-header,
  .view-header.compact,
  .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    min-width: 0;
    width: 100%;
  }

  .metric-grid,
  .split-grid,
  .filter-tabs,
  .message-metrics,
  .messages-layout,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .device-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .device-actions {
    justify-content: stretch;
  }

  .filter-tabs,
  .message-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conversation-list,
  .conversation-main,
  .team-panel,
  .sync-panel,
  .message-side-rail {
    min-height: auto;
  }

  .conversation-list {
    max-height: calc(100dvh - 372px);
    min-height: 240px;
  }

  body.messages-route:not(.messages-selected) .conversation-main,
  body.messages-route:not(.messages-selected) .message-side-rail {
    display: none;
  }

  body.messages-route.messages-selected .conversation-list {
    display: none;
  }

  body.messages-route.messages-selected .conversation-main {
    height: min(760px, calc(100dvh - 88px));
    min-height: 560px;
    margin-top: 10px;
  }

  .message-side-rail {
    grid-template-columns: 1fr;
    margin-top: 10px;
    overflow: visible;
  }

  .mobile-only {
    display: inline-flex;
  }

  .message-row {
    max-width: 100%;
  }

  .message-timeline {
    padding: 12px;
  }

  .primary-button.inline,
  .secondary-button,
  .amber-button {
    width: 100%;
  }
}
