:root {
  color-scheme: light;
  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #d7dde5;
  --line-strong: #b7c0cc;
  --text: #172033;
  --muted: #667085;
  --muted-strong: #475467;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --blue: #2563eb;
  --amber: #b45309;
  --danger: #b42318;
  --shadow: 0 12px 32px rgba(22, 32, 51, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--accent-dark); text-decoration: none; }
strong { font-weight: 750; }
small { color: var(--muted); }

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 248px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px;
  background: #172033;
  color: #e6edf6;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
}

.brand-logo {
  width: min(180px, 100%);
  max-height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #0f766e;
  color: #fff;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark.large {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.brand small {
  display: block;
  color: #aab6c7;
  font-size: 12px;
}

.auth-logo {
  width: min(260px, 100%);
  height: auto;
  display: block;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 8px;
  background: #172033;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav a {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 6px;
  color: #cbd5e1;
}

.side-nav a:hover,
.side-nav a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.side-nav a.nav-with-count {
  justify-content: space-between;
}

.side-nav a.nav-with-count strong {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.side-nav a.has-alerts {
  background: rgba(180, 35, 24, 0.2);
  color: #fff;
}

.sidebar-section-title {
  margin: 4px 0 6px;
  color: #91a1b8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.status-link {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 6px;
  color: #cbd5e1;
}

.status-link span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-link i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: var(--status-color, #94a3b8);
}

.status-link strong {
  min-width: 28px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
}

.status-link:hover,
.status-link.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  color: #cbd5e1;
  font-size: 13px;
}

.main-area {
  flex: 1;
  min-width: 0;
}

.page {
  max-width: 1480px;
  margin: 0 auto;
  padding: 26px;
}

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

.toolbar .actions,
.toolbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-actions form {
  margin: 0;
}

.readonly-session-bar {
  max-width: 1480px;
  margin: 18px auto 0;
  padding: 0 26px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.readonly-session-bar span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 850;
}

.readonly-session-bar form {
  margin: 0;
}

.readonly-session-bar button {
  min-height: 34px;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: 0;
}
p { margin-bottom: 10px; color: var(--muted); }

.eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

button, .button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
}

button:hover, .button:hover { border-color: var(--line-strong); }

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.metric-strip > div {
  padding: 13px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.metric-strip strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 2px;
}

.tabs a {
  min-width: max-content;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted-strong);
}

.tabs a.active:not(.has-open) {
  border-color: #16a34a;
  background: #dcfce7;
  color: #14532d;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.22);
}

.tabs a.has-open {
  border-color: #f59e0b;
  background: #fff7ed;
  color: #9a3412;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.tabs a.has-open.active {
  border-color: #ea580c;
  background: #ffedd5;
  color: #9a3412;
  font-weight: 850;
  box-shadow: inset 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.tabs strong {
  min-width: 24px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
}

.tabs a.has-open strong {
  background: #fed7aa;
  color: #7c2d12;
}

.tabs a.active:not(.has-open) strong {
  background: #bbf7d0;
  color: #14532d;
}

.tabs a.active.has-open strong {
  background: #fdba74;
  color: #7c2d12;
}

.tabs em {
  min-width: 20px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 210px 150px auto;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(15, 118, 110, 0.14);
  border-color: var(--accent);
}

.ticket-list,
.conversation,
.side-panel > *,
.settings-card,
.auth-panel,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ticket-list { overflow: hidden; }

.ticket-row {
  display: grid;
  grid-template-columns: 24px 42px minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.ticket-row:last-child { border-bottom: 0; }
.ticket-row:hover { background: var(--surface-soft); }
.ticket-row.unread {
  background: #eefaf8;
  box-shadow: inset 4px 0 0 var(--accent);
}

.ticket-row.rating-negative {
  box-shadow: inset 4px 0 0 var(--danger);
}

.ticket-row.rating-positive {
  box-shadow: inset 4px 0 0 #15803d;
}

.ticket-row.open-status {
  background: #ecfdf3;
  box-shadow: inset 4px 0 0 #16a34a;
}

.ticket-row.open-status:hover {
  background: #e5f8eb;
}

.ticket-row.open-status .channel-token {
  background: #dcfce7;
  color: #14532d;
}

.channel-token {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8edf3;
  color: #243044;
  font-weight: 850;
  text-transform: uppercase;
}

.bulk-form { margin: 0; }

.bulk-bar {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(250px, 1.2fr) 240px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.check-line,
.row-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-weight: 750;
}

.check-line input,
.row-check input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
}

.row-check {
  min-height: 40px;
  justify-content: center;
}

.row-check-placeholder {
  pointer-events: none;
}

.ticket-link {
  display: block;
  color: var(--text);
}

.ticket-main, .ticket-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ticket-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ticket-side { align-items: flex-end; text-align: right; }

.quick-status {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 6px;
  width: 100%;
  max-width: 250px;
}

.quick-status select,
.quick-status button {
  min-height: 32px;
  font-size: 12px;
}

.ticket-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.source {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.unread-dot {
  border-radius: 999px;
  padding: 2px 7px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.mini-chip,
.rating-pill {
  border-radius: 999px;
  padding: 2px 7px;
  background: #eef2f7;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 800;
}

.used-chip {
  border-radius: 999px;
  padding: 2px 8px;
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.rating-pill.positive {
  background: #dcfce7;
  color: #166534;
}

.rating-pill.negative {
  background: #fee2e2;
  color: var(--danger);
}

.stars {
  color: #b45309;
  font-size: 13px;
  letter-spacing: 0;
  white-space: nowrap;
}

.ticket-preview {
  display: block;
  max-width: 920px;
  overflow: hidden;
  color: var(--muted-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-preview b {
  color: var(--text);
}

.ticket-facts,
.context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.ticket-facts span,
.context-strip span {
  min-width: 0;
  max-width: 100%;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-facts b,
.context-strip b {
  color: var(--text);
}

.copy-login {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.copy-login:hover {
  text-decoration: underline;
}

.copy-login.copied {
  color: #15803d;
}

.baselinker-link {
  min-height: 24px;
  padding: 2px 8px;
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 850;
}

.inline-offer-link {
  color: #0f766e;
  font-weight: 850;
  margin-left: 4px;
}

.inline-offer-link:hover {
  text-decoration: underline;
}

.side-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.badge {
  background: var(--badge, #64748b);
  color: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

.badge.alert-error { --badge: var(--danger); }
.badge.alert-muted { --badge: var(--muted); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 348px;
  gap: 18px;
  align-items: start;
}

.ticket-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.ticket-nav > div {
  display: flex;
  gap: 8px;
}

.ticket-back-group {
  align-items: flex-start;
  flex-direction: column;
}

.button.disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.readonly-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  font-weight: 850;
}

.readonly-panel {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding: 16px 0 0;
  color: var(--muted-strong);
}

.readonly-panel strong {
  color: var(--text);
}

.reply-template-menu {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  margin-top: -8px;
  margin-bottom: 12px;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  position: relative;
  z-index: 20;
}

.reply-template-option {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
}

.reply-template-option:hover,
.reply-template-option.active {
  background: #e6f7f3;
  color: var(--primary-dark);
}

.reply-template-option strong {
  font-size: 13px;
}

.reply-template-option span {
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.35;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted-strong);
}

.conversation { padding: 18px; }

.ticket-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.message {
  max-width: 78%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.message.inbound {
  border-left: 4px solid var(--blue);
}

.message.outbound {
  margin-left: auto;
  background: #ecfdf5;
  border-color: #b7e4d6;
}

.message.internal {
  margin-inline: auto;
  background: #fff7ed;
  border-color: #fed7aa;
}

.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.message-body { white-space: normal; word-break: break-word; }

.translation-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}

.translation-box strong {
  display: block;
  margin-bottom: 5px;
}

.inline-message-action {
  margin-top: 10px;
}

.button.small {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 12px;
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
}

.rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.reply-box {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.composer-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 18px;
}

.side-panel > *,
.auth-panel,
.form-panel {
  padding: 16px;
}

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

.settings-card { padding: 16px; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.guide-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.guide-card h2 {
  margin-bottom: 6px;
}

.rule-condition {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rule-condition span {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
}

.rule-muted {
  color: var(--muted);
}

.table-panel {
  overflow-x: auto;
  padding: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

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

.data-table th {
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 12px;
  text-transform: uppercase;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions form {
  margin: 0;
}

.danger-button {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--danger);
}

.danger-button:hover {
  border-color: #fca5a5;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.section-head h2 { margin-bottom: 0; }

.list-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.list-line:last-child { border-bottom: 0; }
.list-line span { color: var(--muted); }

.mini-action {
  font-weight: 800;
  white-space: nowrap;
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.flash {
  max-width: 1480px;
  margin: 14px auto 0;
  padding: 0 26px;
}

.flash-item {
  padding: 10px 12px;
  border-radius: 6px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}

.flash-item.error { background: #fef2f2; border-color: #fecaca; color: var(--danger); }
.flash-item.success { background: #ecfdf5; border-color: #bbf7d0; color: var(--accent-dark); }
.flash-item.warning { background: #fff7ed; border-color: #fed7aa; color: var(--amber); }

.form p { margin-bottom: 12px; }
.form label {
  display: block;
  color: var(--text);
  font-weight: 750;
  margin-bottom: 5px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form #id_color {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}

.form #id_color > div {
  margin: 0;
}

.form #id_color label {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  cursor: pointer;
  font-weight: 750;
}

.status-color-radio {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  outline: 1px solid var(--line-strong);
  appearance: none;
  background: var(--swatch);
}

.status-color-radio:checked {
  outline: 3px solid rgba(15, 118, 110, 0.28);
}

.auth-panel {
  width: min(420px, calc(100vw - 32px));
  margin: 9vh auto;
  box-shadow: var(--shadow);
}

.form-panel {
  max-width: 760px;
  box-shadow: var(--shadow);
}

.meta-box p { overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  .sidebar {
    width: 210px;
  }
  .metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .side-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    min-height: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .side-nav {
    flex-direction: row;
    overflow-x: auto;
  }
  .sidebar-footer {
    display: none;
  }
  .page {
    padding: 16px;
  }
  .readonly-session-bar {
    margin-top: 12px;
    padding: 0 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .toolbar {
    flex-direction: column;
  }
  .filters,
  .ticket-row,
  .bulk-bar,
  .metric-strip {
    grid-template-columns: 1fr;
  }
  .filter-actions,
  .ticket-nav,
  .ticket-nav > div {
    flex-direction: column;
  }
  .ticket-side {
    align-items: flex-start;
    text-align: left;
  }
  .message {
    max-width: 100%;
  }
}
