:root {
  --blue: #334f82;
  --nav: #50658d;
  --ink: #18263d;
  --muted: #687991;
  --line: #dce3ed;
  --bg: #f5f7fb;
  --soft: #edf2fa;
  --green: #167b56;
  --red: #bc3849;
  --shadow: 0 12px 40px #20335618;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: var(--blue);
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
input,
select,
textarea {
  border: 1px solid #cbd5e3;
  background: #fff;
  border-radius: 9px;
  padding: 11px 13px;
  width: 100%;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8aafe0;
  outline-offset: 2px;
}
label {
  display: block;
  font-weight: 500;
  margin: 17px 0 8px;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 7px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 600;
}
h2 {
  font-size: 20px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
}
small,
.small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.error {
  color: var(--red);
  margin: 12px 0;
  min-height: 20px;
}
.primary,
.secondary {
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.primary {
  color: #fff;
  background: var(--blue);
}
.primary:hover {
  background: #243c68;
}
.secondary {
  background: #fff;
  border: 1px solid #c6d0e0;
  color: var(--blue);
}
.secondary:hover {
  background: var(--soft);
}
.full {
  width: 100%;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #8195b326;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  font-weight: 750;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -5px;
  transform: rotate(-15deg);
  width: 32px;
}
.brand-name {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.8px;
}
.topbar {
  height: 65px;
  background: var(--nav);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 25px;
  gap: 25px;
}
.company-name {
  font-size: 12px;
  opacity: 0.85;
  border-left: 1px solid #ffffff40;
  padding-left: 22px;
  max-width: 170px;
}
.topbar nav {
  display: flex;
  height: 100%;
  gap: 3px;
  margin-left: auto;
}
.nav {
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #fff;
}
.nav:hover,
.nav.active {
  background: #243e682f;
}
.nav.active {
  box-shadow: inset 0 -3px #d4e5ff;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.test-badge {
  font-size: 9px;
  letter-spacing: 0.6px;
  background: #fff1d8;
  color: #725019;
  padding: 4px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.user-avatar,
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  flex-shrink: 0;
  background: #e2eafa;
  color: #3d5787;
}
.user-avatar {
  width: 34px;
  height: 34px;
  background: #e6ecf7;
}
.user-label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  min-width: 65px;
}
.user-label small {
  font-size: 10px;
  opacity: 0.8;
}
.dot-count,
.count-badge {
  background: #c53a50;
  color: #fff;
  border-radius: 12px;
  font-size: 10px;
  padding: 1px 5px;
}
.top-right #notification-button {
  position: relative;
}
.dot-count {
  position: absolute;
  top: 0;
  right: 0;
}
.inbox-page {
  height: calc(100dvh - 65px);
  display: flex;
  overflow: hidden;
}
.inbox-list {
  width: 340px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.list-heading {
  padding: 25px 22px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.list-heading h1 {
  font-size: 21px;
  margin-bottom: 4px;
}
.search-box {
  margin: 0 18px 17px;
  display: flex;
  align-items: center;
  border: 1px solid #cfd8e6;
  border-radius: 24px;
  padding-left: 13px;
  color: var(--muted);
}
.search-box input {
  border: 0;
  background: transparent;
  padding: 10px;
  font-size: 12px;
  border-radius: 24px;
  min-width: 0;
}
.tabs {
  display: flex;
  padding: 0 18px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  padding: 11px 8px 13px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  display: flex;
  gap: 7px;
  align-items: center;
}
.tabs button[aria-selected="true"] {
  color: var(--blue);
  border-color: var(--blue);
}
.tabs span {
  font-size: 10px;
  background: var(--soft);
  padding: 1px 6px;
  border-radius: 10px;
}
.list-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  color: var(--muted);
  font-size: 11px;
  background: #fcfdff;
  border-bottom: 1px solid var(--line);
}
.list-filter select {
  width: auto;
  padding: 3px 5px;
  border: 0;
  background: transparent;
  font-size: 11px;
  max-width: 130px;
}
.tickets-list {
  flex: 1;
  overflow-y: auto;
}
.ticket {
  display: flex;
  text-align: left;
  align-items: center;
  width: 100%;
  padding: 17px 18px;
  gap: 12px;
  border-bottom: 1px solid #edf0f5;
  min-height: 89px;
}
.ticket:hover {
  background: #f5f8fd;
}
.ticket.selected {
  background: #eaf0fa;
  border-left: 3px solid #567cb7;
  padding-left: 15px;
}
.avatar {
  width: 43px;
  height: 43px;
  position: relative;
  font-size: 14px;
}
.channel-mini {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  background: #22b56c;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ticket-copy {
  min-width: 0;
  flex: 1;
}
.ticket-top,
.ticket-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.ticket-top strong {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.ticket-top time {
  font-size: 10px;
  white-space: nowrap;
  color: var(--muted);
}
.ticket-preview {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 217px;
  margin-top: 5px;
}
.ticket-meta {
  font-size: 10px;
  color: var(--blue);
  margin-top: 5px;
}
.list-footer {
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #279c72;
  display: inline-block;
  flex-shrink: 0;
}
.conversation {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  background: #f5f7fa;
  position: relative;
}
.empty-state {
  margin: auto;
  text-align: center;
  padding: 35px;
  max-width: 520px;
  color: var(--muted);
}
.empty-state h2 {
  color: var(--ink);
  margin: 20px 0 10px;
}
.empty-state p {
  font-size: 13px;
  line-height: 1.8;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e7eef8;
  color: #647fa6;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  margin: 0 auto;
}
.empty-icon .icon {
  width: 34px;
  height: 34px;
}
.subtle-chip {
  display: inline-block;
  padding: 7px 12px;
  background: #eaf0f8;
  border-radius: 20px;
  font-size: 11px;
  margin-top: 22px;
  color: #53698c;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 23px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  min-height: 83px;
}
.chat-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.chat-person h2 {
  font-size: 16px;
}
.badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.badge {
  font-size: 10px;
  background: #eef2f8;
  color: #4b6387;
  padding: 2px 8px;
  border: 1px solid #e0e6ef;
  border-radius: 20px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.badge.green {
  background: #e8f6ee;
  color: #17774f;
  border-color: #d3ebdd;
}
.badge.yellow {
  background: #fff4d9;
  color: #7b5b17;
  border-color: #f1e5c2;
}
.chat-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}
.chat-actions .secondary {
  padding: 7px 13px;
  font-size: 11px;
}
.message-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px 35px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background-image: radial-gradient(#ced7e333 0.8px, transparent 0.8px);
  background-size: 20px 20px;
}
.message-row {
  display: flex;
  flex-direction: column;
  max-width: 76%;
  align-self: flex-start;
  min-width: 150px;
}
.message-row.out {
  align-self: flex-end;
}
.message-row.note {
  align-self: flex-end;
}
.bubble {
  padding: 12px 15px;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 12px 12px 12px 3px;
  box-shadow: 0 1px 2px #152a4010;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.out .bubble {
  background: #e8f4eb;
  border-color: #dbece0;
  border-radius: 12px 12px 3px 12px;
}
.note .bubble {
  background: #fff5d8;
  border-color: #efe2b7;
  border-radius: 10px;
}
.bubble-head {
  font-size: 10px;
  font-weight: 650;
  color: #54677e;
  margin-bottom: 5px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.note .bubble-head {
  color: #80621b;
}
.message-time {
  font-size: 10px;
  color: var(--muted);
  padding: 4px 3px;
  text-align: right;
}
.message-event {
  align-self: center;
  max-width: 90%;
  color: #6b7f97;
  font-size: 10px;
  padding: 6px 12px;
  text-align: center;
  background: #e8edf4;
  border-radius: 20px;
}
.message-event time {
  margin-left: 7px;
  opacity: 0.8;
}
.attachment-link {
  display: block;
  margin-top: 8px;
}
.composer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 22px 15px;
}
.composer-hint {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 9px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.composer-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}
.composer textarea {
  min-height: 43px;
  max-height: 135px;
  height: 43px;
  border-radius: 20px;
  resize: none;
  background: #fafbfd;
  padding: 11px 16px;
  font-size: 13px;
}
.send-button {
  background: var(--blue);
  color: white;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.composer-foot {
  font-size: 10px;
  color: #71839a;
  padding-top: 8px;
}
.closed-banner {
  padding: 20px;
  text-align: center;
  background: #fff;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.contact-panel {
  width: 285px;
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid var(--line);
  overflow: auto;
  padding: 21px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-profile {
  text-align: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.contact-profile .avatar {
  margin: 0 auto 12px;
  width: 65px;
  height: 65px;
  font-size: 23px;
}
.contact-profile h3 {
  margin-bottom: 4px;
}
.contact-profile p {
  font-size: 12px;
  color: var(--muted);
}
.detail-item {
  margin: 18px 0;
}
.detail-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.detail-item strong {
  font-size: 12px;
  font-weight: 500;
}
.panel-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.panel-section h3 {
  font-size: 12px;
  margin-bottom: 12px;
}
.history-link {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  font-size: 11px;
}
.content-page {
  max-width: 1260px;
  padding: 40px 35px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}
.page-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card,
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.stat-card small {
  color: var(--muted);
  font-size: 12px;
}
.stat-value {
  font-size: 30px;
  font-weight: 600;
  margin: 9px 0;
  color: var(--blue);
}
.stat-card p {
  font-size: 11px;
  color: var(--muted);
}
.agent-grid,
.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.agent-head,
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.agent-head h3 {
  font-size: 14px;
}
.agent-bars {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 125px;
  margin: 20px 0;
  border-bottom: 1px solid var(--line);
}
.bar-col {
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.bar-track {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
}
.bar-fill {
  width: 100%;
  background: #6084bd;
  border-radius: 7px 7px 0 0;
  min-height: 2px;
  text-align: center;
  color: white;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.bar-fill.closed {
  background: #9bb3d4;
}
.bar-col span {
  font-size: 10px;
  color: var(--muted);
  padding: 5px 0;
}
.agent-totals {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.section-title {
  font-size: 17px;
  margin: 30px 0 18px;
}
.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e6f5ed;
  color: #248755;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-icon.meta {
  background: #e7eefb;
  color: #3d64a0;
}
.connection-grid h3 {
  font-size: 14px;
}
.connection-grid p {
  font-size: 12px;
  margin: 10px 0;
  color: var(--muted);
}
.notice {
  background: #eaf1fb;
  border: 1px solid #d7e3f5;
  color: #456087;
  padding: 15px 18px;
  border-radius: 9px;
  font-size: 12px;
  margin-bottom: 24px;
}
.notice.warn {
  background: #fff6df;
  border-color: #efdfb5;
  color: #7f641c;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-grid .card h3 {
  margin-bottom: 14px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #edf0f4;
  font-size: 12px;
}
.row:last-child {
  border: 0;
}
.row small {
  color: var(--muted);
  display: block;
}
.row-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.token-value {
  display: block;
  background: #edf2fa;
  padding: 12px;
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-size: 12px;
  margin-top: 10px;
  user-select: all;
}
dialog {
  border: 0;
  border-radius: 15px;
  padding: 25px;
  width: min(570px, calc(100vw - 30px));
  box-shadow: var(--shadow);
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #14223970;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-head h2 {
  font-size: 19px;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.modal-footer button {
  min-width: 110px;
}
.modal-description {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 15px;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 22px;
  background: #233953;
  color: #fff;
  box-shadow: var(--shadow);
  border-radius: 9px;
  font-size: 13px;
  z-index: 20;
  max-width: 90vw;
}
.login-wrap {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-intro {
  background: #4d628b;
  color: #fff;
  padding: 45px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100dvh;
}
.login-intro h1 {
  font-size: 46px;
  line-height: 1.2;
  font-weight: 550;
  margin: 22px 0;
  letter-spacing: -1.5px;
}
.login-intro p {
  max-width: 350px;
  font-size: 15px;
  color: #e0e7f4;
  line-height: 1.8;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
}
.login-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  font-size: 12px;
}
.login-flow span {
  border-left: 2px solid #b8c9e8;
  padding-left: 13px;
}
.login-intro small {
  color: #d3ddee;
  font-size: 11px;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.login-panel form {
  max-width: 370px;
  width: 100%;
}
.login-panel .eyebrow {
  color: #657da4;
}
.login-panel h2 {
  font-size: 29px;
  margin: 12px 0 8px;
}
.login-panel .muted {
  margin-bottom: 30px;
}
.login-panel .primary {
  margin-top: 5px;
  justify-content: space-between;
}
.demo-login {
  margin-top: 22px;
  font-size: 11px;
  line-height: 1.7;
  color: #7e6b42;
  background: #fff6e5;
  padding: 12px;
  border-radius: 8px;
}
.mobile-back {
  display: none;
}
.mini-list-empty {
  padding: 35px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.check-list label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-list input {
  width: auto;
  margin: 0;
}
.notification-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.notification-row p {
  color: var(--muted);
  margin-top: 5px;
}
.notification-row button {
  margin-top: 8px;
  color: var(--blue);
  font-weight: 600;
}
progress {
  appearance: none;
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #e8edf5;
}
progress::-webkit-progress-value {
  background: #6084bd;
}
.retry {
  font-size: 10px;
  color: var(--red);
  text-decoration: underline;
  margin-left: 10px;
}
@media (max-width: 1250px) {
  .topbar {
    gap: 14px;
    padding: 0 16px;
  }
  .company-name {
    display: none;
  }
  .nav {
    padding: 0 10px;
  }
  .test-badge {
    display: none;
  }
  .contact-panel {
    width: 260px;
  }
  .inbox-list {
    width: 310px;
  }
  .message-area {
    padding: 22px;
  }
  .user-label {
    display: none;
  }
}
@media (max-width: 980px) {
  .contact-panel {
    position: absolute;
    right: 0;
    top: 65px;
    bottom: 0;
    z-index: 5;
    box-shadow: var(--shadow);
    width: 290px;
  }
  .topbar .nav {
    font-size: 0;
    gap: 0;
  }
  .topbar .nav .icon {
    width: 21px;
    height: 21px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .agent-grid,
  .connection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chat-actions .secondary {
    font-size: 10px;
    padding: 6px 9px;
  }
  .login-intro {
    padding: 40px;
  }
  .login-intro h1 {
    font-size: 36px;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 58px;
    padding: 0 12px;
    gap: 8px;
  }
  .brand-name {
    font-size: 19px;
  }
  .brand-mark {
    font-size: 31px;
    width: 26px;
  }
  .topbar nav {
    margin-left: auto;
  }
  .topbar .nav {
    padding: 0 8px;
  }
  .top-right {
    gap: 1px;
    margin-left: 0;
  }
  .top-right .user-avatar {
    display: none;
  }
  .topbar #notification-button {
    display: none;
  }
  .inbox-page {
    height: calc(100dvh - 58px);
  }
  .inbox-list {
    width: 100%;
  }
  .conversation {
    display: none;
  }
  .inbox-page.chat-open .inbox-list {
    display: none;
  }
  .inbox-page.chat-open .conversation {
    display: flex;
  }
  .mobile-back {
    display: flex;
  }
  .chat-header {
    padding: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .chat-person .avatar {
    width: 34px;
    height: 34px;
  }
  .chat-actions {
    margin-left: auto;
  }
  .chat-person h2 {
    font-size: 14px;
  }
  .badges .badge {
    font-size: 9px;
  }
  .message-area {
    padding: 18px 13px;
  }
  .message-row {
    max-width: 88%;
  }
  .composer {
    padding: 10px 12px;
  }
  .composer-row {
    gap: 4px;
  }
  .content-page {
    padding: 25px 16px;
  }
  .stats {
    gap: 10px;
  }
  .stat-card {
    padding: 15px;
  }
  .stat-value {
    font-size: 25px;
  }
  .agent-grid,
  .connection-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading .primary {
    font-size: 11px;
    padding: 8px 12px;
  }
  .login-wrap {
    grid-template-columns: 1fr;
  }
  .login-intro {
    min-height: 220px;
    padding: 25px;
  }
  .login-intro h1 {
    font-size: 28px;
    margin: 15px 0;
  }
  .login-intro p,
  .login-flow,
  .login-intro small,
  .login-intro .eyebrow {
    display: none;
  }
  .login-intro .brand {
    margin-bottom: 15px;
  }
  .login-panel {
    padding: 30px 25px;
  }
  .contact-panel {
    top: 58px;
  }
  .modal-footer {
    gap: 8px;
  }
  .modal-footer button {
    min-width: 0;
    flex: 1;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.15s ease;
  }
}
