@font-face {
  font-family: Inter;
  src: local("Inter");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
body {
  --bg: #f7f8f5;
  --surface: #fff;
  --soft: #f5f6f3;
  --line: #e8ebe5;
  --text: #24352d;
  --muted: #829087;
  --accent: #246e4b;
  --green: #eaf3df;
  --incoming: #fff;
  --outgoing: #e9f1df;
  --chat: #f5f6f1;
  --shadow: 0 12px 45px #19352c12;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  color: inherit;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #93b977;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.layout {
  height: 100dvh;
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  overflow: hidden;
}
.sidebar {
  background: #143c31;
  color: #c8d6cd;
  display: flex;
  flex-direction: column;
  padding: 28px 16px 20px;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #f4f7ed;
  padding: 0 12px;
}
.brand-symbol {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #d9edb8;
  color: #193f30;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 30px;
  flex: none;
  line-height: 1;
}
.brand-name {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.9px;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: #97b5a3;
  margin-top: 4px;
}
.nav-label {
  padding: 0 14px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #729482;
  margin-bottom: 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #bcd0c3;
  position: relative;
}
.nav-button:hover {
  background: #ffffff08;
}
.nav-button.active {
  background: #2b5142;
  color: #f0f5e9;
}
.nav-button.active:before {
  content: "";
  position: absolute;
  left: -16px;
  width: 3px;
  height: 25px;
  background: #c5e299;
  border-radius: 2px;
}
.nav-button .count {
  margin-left: auto;
  background: #def0c0;
  color: #173e2b;
  min-width: 22px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 10px;
}
.future {
  margin-left: auto;
  font-size: 8px;
  background: #ffffff0a;
  border: 1px solid #ffffff15;
  padding: 3px 4px;
  border-radius: 4px;
  color: #8cab97;
}
.sidebar-spacer {
  flex: 1;
}
.account-card {
  border-top: 1px solid #ffffff13;
  padding: 18px 7px 0;
  display: flex;
  gap: 9px;
  align-items: center;
}
.avatar {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #efece2;
  color: #8b8165;
  font-size: 12px;
  letter-spacing: 0.3px;
  flex: none;
  font-weight: 600;
}
.account-card .avatar {
  height: 32px;
  width: 32px;
  background: #355747;
  color: #e3edd8;
  font-size: 10px;
}
.account-name {
  font-size: 11px;
  font-weight: 500;
  color: #dce5d9;
}
.account-sub {
  font-size: 9px;
  color: #85a38d;
  margin-top: 4px;
}
.connection {
  background: #1e4436;
  padding: 12px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 10px;
  line-height: 1.7;
  color: #b2c8b7;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a4d884;
  margin-right: 5px;
}
.connection b {
  display: block;
  color: #e1eada;
  font-weight: 500;
}
.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.topbar {
  height: 81px;
  flex: none;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  padding: 0 30px;
  gap: 20px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
}
.breadcrumb svg {
  height: 12px;
  width: 12px;
}
.page-title {
  font-size: 23px;
  letter-spacing: -0.8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}
.subcount {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  letter-spacing: 0;
  font-weight: 400;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.date-label {
  font-size: 11px;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 500;
  min-height: 35px;
  white-space: nowrap;
}
.btn:hover {
  background: var(--soft);
  text-decoration: none;
}
.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn.danger {
  color: #b6524b;
}
.icon-button {
  height: 34px;
  width: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--muted);
  border-radius: 7px;
  flex: none;
}
.icon-button:hover {
  background: var(--soft);
  color: var(--text);
}
.icon-button svg {
  height: 18px;
  width: 18px;
}
.inbox {
  flex: 1;
  display: grid;
  grid-template-columns: 320px minmax(280px, 1fr) 273px;
  min-height: 0;
}
.list-pane {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}
.list-controls {
  padding: 21px 18px 13px;
  flex: none;
}
.search {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--muted);
}
.search svg {
  width: 15px;
  height: 15px;
}
.search input {
  border: 0;
  outline: 0;
  background: none;
  width: 100%;
  color: var(--text);
  font-size: 11px;
}
.search input::placeholder {
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 4px;
  margin: 15px 0 13px;
}
.filter {
  padding: 7px 10px;
  font-size: 10px;
  color: var(--muted);
  border-radius: 5px;
  white-space: nowrap;
}
.filter.active {
  background: var(--green);
  color: #447038;
  font-weight: 600;
}
.filter span {
  font-size: 9px;
  margin-left: 4px;
}
.filters select {
  min-width: 0;
  max-width: 80px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
}
.list-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.segment-select {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 9px;
  max-width: 100px;
  letter-spacing: 0.2px;
}
.conversation-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
}
.conversation {
  width: 100%;
  display: flex;
  text-align: left;
  gap: 11px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.conversation:hover {
  background: var(--soft);
}
.conversation.selected {
  background: #f0f5e9;
}
.conversation.selected:before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  background: #729956;
  border-radius: 3px;
}
.conversation .avatar {
  width: 37px;
  height: 37px;
  margin-top: 3px;
}
.conversation-content {
  min-width: 0;
  flex: 1;
}
.conversation-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.conversation-name {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
}
.conversation-time {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.conversation-preview {
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.5;
}
.conversation.unread .conversation-preview {
  color: var(--text);
}
.conversation-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.badge {
  font-size: 9px;
  line-height: 1.3;
  padding: 4px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--soft);
  color: var(--muted);
  white-space: nowrap;
}
.badge.hot {
  background: #fcf0df;
  color: #a9772a;
}
.badge.demo {
  background: #eaf0fa;
  color: #5d7eb0;
}
.badge.trial {
  background: #f0eafb;
  color: #8666a7;
}
.badge.paid {
  background: #e8f4eb;
  color: #4d8b5b;
}
.badge.opted {
  background: #f8e9e6;
  color: #a66b63;
}
.badge.replied {
  background: #eef3e7;
  color: #789151;
}
.badge svg {
  width: 10px;
  height: 10px;
}
.unread-count {
  background: #356c4e;
  color: white;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 9px;
}
.list-footer {
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  color: var(--muted);
  font-size: 9px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.chat-pane {
  display: flex;
  flex-direction: column;
  background: var(--chat);
  min-width: 0;
  min-height: 0;
}
.chat-header {
  background: var(--surface);
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 15px 23px;
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}
.chat-header .avatar {
  background: #e4ebda;
  color: #73915a;
}
.chat-title {
  font-size: 13px;
  font-weight: 600;
}
.chat-phone {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.chat-tools {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.window-bar {
  padding: 10px 22px;
  font-size: 9px;
  color: #7d8c70;
  background: #f0f3e9;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  border-bottom: 1px solid #e9eddf;
}
.window-bar svg {
  height: 12px;
  width: 12px;
}
.window-bar.closed {
  background: #fcf1de;
  color: #a27a36;
}
.window-bar .right {
  margin-left: auto;
  font-size: 8px;
  color: var(--muted);
}
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 25px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  background-image: radial-gradient(#b4c0a620 0.7px, transparent 0.7px);
  background-size: 12px 12px;
}
.date-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 8px;
  font-size: 9px;
  color: var(--muted);
}
.date-divider span {
  padding: 6px 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
}
.message {
  max-width: 85%;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.message.outbound {
  align-self: flex-end;
  align-items: flex-end;
}
.bubble {
  padding: 13px 15px 10px;
  background: var(--incoming);
  border: 1px solid #e5e9e1;
  border-radius: 0 10px 10px 10px;
  box-shadow: 0 1px 2px #24352d03;
  font-size: 11px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 105px;
}
.message.outbound .bubble {
  background: var(--outgoing);
  border-color: #dbe6cf;
  border-radius: 10px 0 10px 10px;
}
.template-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  color: #7e916e;
  padding-bottom: 8px;
  border-bottom: 1px solid #96ad7d28;
  margin-bottom: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.template-label svg {
  width: 11px;
  height: 11px;
}
.message-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 8px;
  color: #92a084;
  margin-top: 7px;
  line-height: 1;
}
.message-time svg {
  height: 12px;
  width: 12px;
}
.message-time .read {
  color: #4a93b4;
}
.message .caption {
  font-size: 8px;
  color: var(--muted);
  padding: 0 2px;
}
.quick-chip {
  border: 1px solid #e6e9df;
  background: #f8faf4;
  padding: 4px 8px;
  border-radius: 4px;
  color: #6d8059;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.quick-chip svg {
  width: 12px;
  height: 12px;
}
.bubble img,
.bubble video {
  max-width: 100%;
  max-height: 240px;
  border-radius: 6px;
}
.bubble audio {
  max-width: 100%;
  width: 220px;
}
.message-error {
  color: #b76859;
  font-size: 9px;
  line-height: 1.5;
}
.composer-wrap {
  padding: 17px 22px 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  position: relative;
  flex: none;
}
.composer {
  border: 1px solid #e0e6d9;
  border-radius: 9px;
  background: var(--surface);
  overflow: hidden;
}
.composer textarea {
  width: 100%;
  min-height: 61px;
  max-height: 145px;
  resize: vertical;
  border: 0;
  background: transparent;
  padding: 13px 14px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.7;
  outline: 0;
  display: block;
}
.composer textarea::placeholder {
  color: #a0aa9c;
}
.composer-bottom {
  padding: 3px 8px 8px;
  display: flex;
  gap: 1px;
  align-items: center;
}
.saved-button {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: var(--muted);
  padding: 8px;
}
.saved-button svg {
  height: 14px;
  width: 14px;
}
.send-button {
  margin-left: auto;
  background: #246e4b;
  color: white;
  width: 33px;
  height: 31px;
  border-radius: 6px;
  display: grid;
  place-items: center;
}
.send-button svg {
  width: 15px;
  height: 15px;
}
.composer-help {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
  margin-top: 10px;
}
.composer-help kbd {
  font: inherit;
}
.composer-banner {
  background: var(--soft);
  padding: 13px;
  border-radius: 7px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.replies-popover {
  position: absolute;
  bottom: 130px;
  left: 22px;
  right: 22px;
  max-height: 270px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 9px;
  z-index: 5;
  padding: 6px;
}
.reply-option {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: left;
  border-radius: 5px;
}
.reply-option:hover {
  background: var(--soft);
}
.reply-option b {
  font-size: 11px;
  display: block;
  margin-bottom: 5px;
}
.reply-option span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-pane {
  border-left: 1px solid var(--line);
  background: var(--surface);
  overflow-y: auto;
  scrollbar-width: thin;
  min-width: 0;
}
.contact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.contact-profile {
  padding: 25px 20px 21px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.contact-profile .avatar {
  width: 55px;
  height: 55px;
  font-size: 17px;
  background: #e8ecdf;
  color: #809365;
  margin: auto;
}
.contact-profile h3 {
  font-size: 15px;
  letter-spacing: -0.3px;
  margin: 12px 0 6px;
  font-weight: 600;
}
.contact-profile p {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 13px;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.contact-actions .btn {
  font-size: 9px;
  padding: 6px 8px;
  min-height: 28px;
}
.contact-actions .btn svg {
  height: 12px;
  width: 12px;
}
.contact-section {
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 13px;
  font-weight: 500;
}
.stage-select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #e7e7db;
  background: var(--soft);
  border-radius: 6px;
  font-size: 10px;
  color: var(--text);
}
.field-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  font-size: 10px;
  margin: 14px 0;
  color: var(--muted);
}
.field-row:first-of-type {
  margin-top: 0;
}
.field-row:last-child {
  margin-bottom: 0;
}
.field-value {
  max-width: 145px;
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}
.field-value small {
  color: var(--muted);
  font-size: 9px;
  display: block;
  margin-top: 5px;
}
.tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tag {
  font-size: 9px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 5px 7px;
  border-radius: 4px;
  color: var(--muted);
}
.notes-box {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.followup {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text);
  background: var(--soft);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.followup svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.delete-link {
  font-size: 9px;
  color: #b07b70;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.delete-link svg {
  width: 12px;
  height: 12px;
}
.empty {
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: 36px;
  gap: 12px;
  color: var(--muted);
  height: 100%;
}
.empty .empty-icon {
  height: 62px;
  width: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--green);
  color: #6c8a50;
}
.empty-icon svg {
  width: 28px;
  height: 28px;
}
.empty h2 {
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 8px 0 0;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 300px;
  margin: 0;
}
.mobile-back,
.mobile-nav,
.mobile-only {
  display: none;
}
.content-page {
  flex: 1;
  overflow: auto;
  padding: 30px;
  background: var(--bg);
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 16px;
}
.page-intro h2 {
  font-size: 21px;
  letter-spacing: -0.6px;
  font-weight: 550;
  margin: 0 0 8px;
}
.page-intro p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 550;
}
.card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.metric-label {
  font-size: 10px;
  color: var(--muted);
}
.metric-value {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 500;
  margin-top: 12px;
}
.metric-sub {
  font-size: 9px;
  color: #78945d;
  margin-top: 9px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  padding: 14px 18px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
td {
  font-size: 11px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
.contact-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.contact-cell .avatar {
  width: 30px;
  height: 30px;
  font-size: 9px;
}
.contact-cell small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.kanban {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  min-height: 400px;
}
.kanban-column {
  min-width: 225px;
  max-width: 225px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px;
}
.kanban-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 11px;
}
.kanban-card {
  text-align: left;
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  margin-bottom: 10px;
}
.kanban-card b {
  font-size: 11px;
  font-weight: 550;
}
.kanban-card p {
  font-size: 10px;
  color: var(--muted);
  margin: 9px 0;
  line-height: 1.6;
}
.kanban-card small {
  font-size: 9px;
  color: var(--muted);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child {
  border: 0;
}
.setting-row b {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
.setting-row p {
  font-size: 10px;
  margin: 4px 0 0;
  max-width: 280px;
}
.toggle {
  appearance: none;
  width: 32px;
  height: 18px;
  min-width: 32px;
  background: #c3cbbf;
  border-radius: 20px;
  position: relative;
  cursor: pointer;
}
.toggle:checked {
  background: #528348;
}
.toggle:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  transition: transform 0.15s;
}
.toggle:checked:after {
  transform: translateX(14px);
}
.form-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 17px 0 7px;
}
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 10px 12px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.7;
}
.input.textarea {
  min-height: 85px;
  resize: vertical;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
.status-note {
  font-size: 10px;
  background: var(--green);
  color: #668449;
  border: 1px solid #cbdcba;
  padding: 13px;
  border-radius: 7px;
  line-height: 1.8;
}
.status-note.warning {
  background: #faf1df;
  color: #a17d43;
  border-color: #ebdbb8;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #143c3155;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 25px;
  width: 450px;
  max-width: 100%;
  max-height: 90dvh;
  overflow: auto;
  box-shadow: var(--shadow);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.modal h3 {
  font-size: 16px;
  letter-spacing: -0.4px;
  font-weight: 550;
  margin: 0;
}
.modal p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #243f31;
  color: white;
  font-size: 12px;
  border-radius: 8px;
  padding: 13px 20px;
  max-width: 90%;
  box-shadow: var(--shadow);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.boot {
  height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
}
.boot p {
  color: var(--muted);
  font-size: 12px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
}
.login-art {
  background: #143c31;
  padding: 55px;
  display: flex;
  flex-direction: column;
  color: #edf4e5;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #a7c27b20;
  border-radius: 50%;
  right: -220px;
  bottom: -100px;
  box-shadow:
    0 0 0 70px #a7c27b08,
    0 0 0 140px #a7c27b05;
}
.login-copy {
  margin: auto 0;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #a3be8d;
}
.login-copy h1 {
  font-size: 48px;
  font-weight: 450;
  letter-spacing: -2px;
  line-height: 1.18;
  margin: 20px 0;
}
.login-copy h1 em {
  font-family: Georgia, serif;
  color: #d2e9ac;
  font-weight: 400;
}
.login-copy p {
  font-size: 13px;
  line-height: 1.9;
  color: #9fbba9;
  max-width: 330px;
}
.login-mini {
  margin-top: 30px;
  background: #ffffff08;
  border: 1px solid #ffffff15;
  border-radius: 10px;
  padding: 17px 20px;
  max-width: 300px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.login-mini span {
  font-size: 10px;
  color: #adc6b2;
}
.login-mini b {
  font-size: 12px;
  display: block;
  color: #e4eedb;
  margin-bottom: 5px;
}
.login-bottom {
  font-size: 10px;
  color: #789b85;
}
.login-form {
  display: grid;
  place-content: center;
  padding: 45px;
}
.login-form-inner {
  max-width: 335px;
}
.login-form h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  font-weight: 500;
}
.login-form p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.google-button {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  margin: 25px 0 18px;
  background: var(--surface);
  font-size: 12px;
}
.google-g {
  font-weight: bold;
  font-size: 16px;
  color: #4285f4;
}
.login-note {
  font-size: 10px !important;
}
.preview-pill {
  display: inline-block;
  color: #a17d43;
  background: #faf1df;
  border: 1px solid #ebdbb8;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
  margin-left: 7px;
}
.skeleton {
  height: 80px;
  margin: 15px;
  background: linear-gradient(
    100deg,
    var(--soft) 30%,
    var(--surface) 50%,
    var(--soft) 70%
  );
  background-size: 200%;
  border-radius: 7px;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (min-width: 1650px) {
  .inbox {
    grid-template-columns: 360px minmax(280px, 1fr) 300px;
  }
  .layout {
    grid-template-columns: 225px 1fr;
  }
  .messages {
    padding: 28px 45px;
  }
  .bubble {
    font-size: 12px;
  }
}
@media (max-width: 1250px) {
  .layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .nav-button {
    font-size: 12px;
  }
  .inbox {
    grid-template-columns: 290px minmax(280px, 1fr);
  }
  .contact-pane {
    display: none;
  }
  .contact-pane.open {
    display: block;
    position: fixed;
    right: 0;
    top: 81px;
    bottom: 0;
    width: 290px;
    z-index: 20;
    box-shadow: var(--shadow);
  }
  .topbar {
    padding: 0 22px;
  }
  .mobile-only {
    display: inline-grid;
  }
  .future {
    display: none;
  }
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 11px;
  }
  .brand {
    padding: 0 8px;
  }
  .brand-name,
  .brand small,
  .nav-label,
  .nav-button span,
  .nav-button .count,
  .account-name,
  .account-sub,
  .connection {
    display: none;
  }
  .nav-button {
    justify-content: center;
    padding: 13px;
  }
  .nav-button.active:before {
    left: -11px;
  }
  .account-card {
    padding: 18px 8px 0;
  }
  .nav-button svg {
    width: 20px;
    height: 20px;
  }
  .inbox {
    grid-template-columns: 275px minmax(250px, 1fr);
  }
  .message {
    max-width: 92%;
  }
  .messages {
    padding: 20px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .date-label {
    display: none;
  }
}
@media (max-width: 700px) {
  .layout {
    display: flex;
    flex-direction: column;
    height: 100dvh;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    flex: 1;
    min-height: 0;
  }
  .topbar {
    height: 73px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 9px;
    margin-bottom: 5px;
  }
  .page-title {
    font-size: 21px;
  }
  .top-actions .btn {
    padding: 8px;
    min-height: 32px;
    font-size: 10px;
  }
  .top-actions .btn svg {
    width: 14px;
    height: 14px;
  }
  .top-actions .btn span {
    display: none;
  }
  .top-actions {
    gap: 5px;
  }
  .inbox {
    display: flex;
    flex: 1;
    min-height: 0;
  }
  .list-pane {
    width: 100%;
    border: 0;
  }
  .list-controls {
    padding: 17px 20px 13px;
  }
  .conversation {
    padding: 18px 20px;
  }
  .conversation .avatar {
    height: 42px;
    width: 42px;
  }
  .conversation-name {
    font-size: 13px;
  }
  .conversation-preview {
    font-size: 11px;
    margin: 8px 0;
  }
  .conversation-time {
    font-size: 10px;
  }
  .badge {
    font-size: 9px;
  }
  .search {
    padding: 12px;
  }
  .search input {
    font-size: 12px;
  }
  .filter {
    font-size: 11px;
    padding: 8px 12px;
  }
  .filters {
    gap: 6px;
    margin-top: 16px;
  }
  .chat-pane {
    display: none;
    width: 100%;
    height: 100%;
  }
  .inbox.chat-open .list-pane {
    display: none;
  }
  .inbox.chat-open .chat-pane {
    display: flex;
  }
  .has-chat .topbar {
    display: none;
  }
  .chat-header {
    height: 72px;
    padding: 14px 14px;
    gap: 9px;
  }
  .mobile-back {
    display: grid;
    width: 25px;
    margin-left: -3px;
  }
  .chat-header .avatar {
    width: 34px;
    height: 34px;
  }
  .chat-title {
    font-size: 13px;
  }
  .chat-tools .icon-button {
    width: 30px;
  }
  .window-bar {
    padding: 11px 18px;
    font-size: 10px;
  }
  .window-bar .right {
    display: none;
  }
  .messages {
    padding: 22px 18px;
    gap: 18px;
  }
  .bubble {
    font-size: 12px;
    padding: 12px 14px 10px;
  }
  .message {
    max-width: 88%;
  }
  .message-time {
    font-size: 9px;
  }
  .date-divider {
    font-size: 10px;
  }
  .composer-wrap {
    padding: 12px 13px calc(12px + env(safe-area-inset-bottom));
  }
  .composer textarea {
    font-size: 13px;
    min-height: 66px;
  }
  .composer-bottom {
    padding: 3px 7px 7px;
  }
  .composer-help {
    display: none;
  }
  .saved-button {
    font-size: 10px;
    padding: 8px;
  }
  .send-button {
    width: 38px;
    height: 35px;
  }
  .contact-pane.open {
    top: 0;
    bottom: 0;
    width: 100%;
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .contact-heading {
    padding: 18px 24px;
  }
  .contact-profile {
    padding: 25px;
  }
  .contact-section {
    padding: 21px 25px;
  }
  .section-label {
    font-size: 10px;
  }
  .field-row {
    font-size: 12px;
  }
  .notes-box {
    font-size: 12px;
  }
  .stage-select {
    font-size: 12px;
  }
  .followup {
    font-size: 12px;
  }
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    gap: 5px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 8px 10px calc(7px + env(safe-area-inset-bottom));
    flex: none;
  }
  .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    color: var(--muted);
    width: 55px;
    padding: 4px;
  }
  .mobile-nav button.active {
    color: var(--accent);
  }
  .mobile-nav svg {
    width: 19px;
    height: 19px;
  }
  .has-chat .mobile-nav {
    display: none;
  }
  .content-page {
    padding: 22px 16px;
  }
  .page-intro {
    align-items: start;
  }
  .page-intro h2 {
    font-size: 19px;
  }
  .page-intro p {
    font-size: 11px;
  }
  .page-intro .btn {
    font-size: 10px;
    padding: 9px;
  }
  .cards {
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 27px;
  }
  .card {
    padding: 19px;
  }
  .login-page {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 27px;
    min-height: 36dvh;
  }
  .login-art .brand {
    padding: 0;
  }
  .login-copy {
    margin-top: 35px;
  }
  .login-copy h1 {
    font-size: 34px;
    margin: 13px 0;
    letter-spacing: -1.2px;
  }
  .login-copy p,
  .login-mini,
  .login-bottom {
    display: none;
  }
  .login-form {
    padding: 30px;
    place-content: center;
    min-height: 55dvh;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .modal {
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 25px 23px calc(25px + env(safe-area-inset-bottom));
    max-height: 90dvh;
  }
  #toast {
    bottom: 85px;
    font-size: 11px;
  }
  .chat-open ~ #toast {
    bottom: 145px;
  }
  .btn {
    min-height: 38px;
  }
  .input {
    font-size: 13px;
  }
  .top-actions .icon-button {
    width: 30px;
  }
}
@media (prefers-color-scheme: dark) {
  body {
    --bg: #151e19;
    --surface: #1b261f;
    --soft: #212e24;
    --line: #303b30;
    --text: #dee6d6;
    --muted: #83937f;
    --accent: #77a861;
    --green: #2b3b25;
    --incoming: #273329;
    --outgoing: #35442c;
    --chat: #19241c;
    --shadow: 0 12px 45px #0003;
  }
  .sidebar {
    background: #102b22;
  }
  .conversation.selected {
    background: #2a3825;
  }
  .filter.active {
    color: #b3c79c;
  }
  .chat-header .avatar,
  .contact-profile .avatar {
    background: #33402d;
    color: #acc18e;
  }
  .avatar {
    background: #3b3c30;
    color: #c4bc91;
  }
  .window-bar {
    background: #263221;
    border-color: #34422a;
    color: #a3b590;
  }
  .window-bar.closed {
    background: #3d3524;
    color: #c8ab75;
  }
  .bubble {
    border-color: #34422e;
  }
  .message.outbound .bubble {
    border-color: #4b5d38;
  }
  .badge.hot {
    background: #443620;
    color: #d7b066;
  }
  .badge.demo {
    background: #293649;
    color: #96afd0;
  }
  .badge.trial {
    background: #3c2f4a;
    color: #b7a1d1;
  }
  .badge.paid {
    background: #2b4230;
    color: #9dc4a2;
  }
  .badge.opted {
    background: #4a3029;
    color: #ca9a8c;
  }
  .badge.replied {
    background: #354029;
    color: #b2c48d;
  }
  .quick-chip {
    background: #35412e;
    border-color: #465338;
    color: #b5c49e;
  }
  .template-label {
    color: #b3c49a;
  }
  .composer {
    border-color: #47533d;
  }
  .composer textarea::placeholder {
    color: #71836a;
  }
  .send-button,
  .btn.primary {
    background: #4c7c43;
    color: #f4f8eb;
  }
  .status-note {
    background: #2d3f25;
    border-color: #455b35;
    color: #aac291;
  }
  .status-note.warning,
  .preview-pill {
    background: #3d3524;
    border-color: #675537;
    color: #d0b17e;
  }
  .stage-select {
    border-color: var(--line);
  }
  .google-button {
    color: var(--text);
  }
}
.delivery-filters {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.delivery-filters label {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
  min-width: 130px;
}
.funnel-cards {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.funnel-cards .metric {
  padding: 17px 13px;
}
.funnel-cards .metric-value {
  font-size: 26px;
}
.health-banner {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 17px 20px;
  border: 1px solid #d5e3c9;
  background: var(--green);
  color: #67834d;
  border-radius: 8px;
  font-size: 12px;
}
.health-banner b {
  font-weight: 550;
}
.health-banner p {
  font-size: 11px;
  line-height: 1.6;
  margin: 5px 0 0;
  opacity: 0.85;
}
.health-banner.critical {
  background: #f9e8e4;
  border-color: #e7b8af;
  color: #a54638;
}
.health-banner.warn {
  background: #fff2d9;
  border-color: #e9d6a8;
  color: #9f7c3e;
}
.code-chip {
  display: inline-block;
  border: 1px solid currentColor;
  opacity: 0.75;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 9px;
  vertical-align: middle;
}
.failure-bar {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 0;
}
.failure-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  font-size: 11px;
  line-height: 1.6;
}
.failure-bar-head b {
  white-space: nowrap;
  font-weight: 550;
}
.failure-bar-head small {
  font-size: 9px;
  color: var(--muted);
}
.bar-track {
  height: 6px;
  display: block;
  background: var(--soft);
  border-radius: 4px;
  margin-top: 9px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  background: #bca678;
  border-radius: 4px;
}
.bar-fill.critical {
  background: #bd6b5e;
}
.bar-fill.high,
.bar-fill.warn {
  background: #c3a05b;
}
.failed-bubble {
  border-left: 3px solid #c36e60 !important;
}
.delivery-failure {
  font-size: 10px;
  color: #ad685b;
  line-height: 1.75;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
}
.delivery-failure b {
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}
.delivery-failure p {
  margin: 7px 0;
}
.delivery-failure summary {
  font-size: 9px;
  cursor: pointer;
  color: var(--muted);
}
.history-item {
  margin: 12px 0;
  font-size: 9px;
}
.history-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  cursor: pointer;
}
.history-item summary span:first-child {
  overflow-wrap: anywhere;
  max-width: 135px;
}
.history-item p {
  font-size: 9px;
  line-height: 1.8;
  color: var(--muted);
}
.message-time {
  width: 100%;
  padding: 0;
}
.list-footer svg {
  width: 10px;
  height: 10px;
  vertical-align: middle;
}
.chat-phone .badge {
  font-size: 8px;
  padding: 2px 4px;
}
@media (max-width: 1250px) {
  .funnel-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 700px) {
  .funnel-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .funnel-cards .metric {
    padding: 14px 12px;
  }
  .funnel-cards .metric-value {
    font-size: 24px;
  }
  .health-banner {
    padding: 14px;
  }
  .health-banner b {
    font-size: 11px;
  }
  .health-banner p {
    font-size: 10px;
  }
  .delivery-filters {
    gap: 9px;
  }
  .delivery-filters label {
    min-width: 130px;
  }
  .delivery-failure {
    font-size: 11px;
  }
  .failure-bar-head {
    font-size: 10px;
  }
}
@media (prefers-color-scheme: dark) {
  .health-banner.critical {
    background: #452b26;
    border-color: #744138;
    color: #d69b8f;
  }
  .health-banner.warn {
    background: #423820;
    border-color: #645431;
    color: #cfb577;
  }
  .health-banner {
    border-color: #455b35;
    color: #aac291;
  }
  .delivery-failure {
    color: #cb978c;
  }
}

.media-image {
  display: block;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  max-width: 100%;
}
.message-bubble audio {
  max-width: 100%;
}

/* The workspace reflows vertically at every size; reports never require sideways panning. */
html,
body,
#app {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.layout,
.workspace,
.content-page,
.inbox,
.list-pane,
.chat-pane,
.card,
.settings-grid > *,
.topbar > *,
.page-intro > * {
  min-width: 0;
  max-width: 100%;
}
.content-page {
  overflow-x: clip;
  container-type: inline-size;
}
img,
video,
audio {
  max-width: 100%;
}
.input,
select,
textarea {
  min-width: 0;
  max-width: 100%;
}
p,
h1,
h2,
h3,
b,
small,
.notes-box,
.field-row {
  overflow-wrap: anywhere;
}
.filters,
.page-intro,
.setting-row,
.form-actions {
  flex-wrap: wrap;
}
.setting-row > span {
  min-width: 0;
  flex: 1 1 150px;
}
.delivery-filters label {
  min-width: 0;
  flex: 1 1 145px;
}
.funnel-cards,
.cards {
  min-width: 0;
}
.metric {
  min-width: 0;
  overflow-wrap: anywhere;
}
.table-wrap {
  overflow: visible;
  max-width: 100%;
}
table {
  table-layout: fixed;
  white-space: normal;
  width: 100%;
}
th,
td {
  overflow-wrap: anywhere;
  word-break: normal;
  padding: 12px 10px;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  overflow: visible;
  align-items: start;
}
.kanban-column {
  min-width: 0;
  max-width: none;
  width: 100%;
}
.brand {
  padding: 0;
  justify-content: center;
}
.brand-wordmark {
  display: block;
  width: 154px;
  height: auto;
  filter: invert(1);
}
.brand-mark {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.boot-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
}
.topbar-mark {
  width: 19px;
  height: 19px;
  border-radius: 5px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
}
.login-art .brand {
  justify-content: flex-start;
}
.login-art .brand-wordmark {
  width: 190px;
}
@media (max-width: 1250px) and (min-width: 701px) {
  .inbox {
    grid-template-columns: min(43%, 290px) minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .sidebar .brand-wordmark {
    display: none;
  }
  .sidebar .brand-mark {
    display: block;
  }
  .sidebar .brand {
    padding: 0;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 0 14px;
    gap: 8px;
  }
  .topbar > div:first-child {
    flex: 1;
  }
  .top-actions {
    flex: none;
  }
  .page-title {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 20px;
  }
  .mobile-nav {
    gap: 0;
    padding-left: 4px;
    padding-right: 4px;
  }
  .mobile-nav button {
    width: 20%;
    min-width: 0;
  }
  .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-person {
    min-width: 0;
  }
  .chat-person b {
    overflow-wrap: anywhere;
  }
  .list-controls {
    padding-left: 14px;
    padding-right: 14px;
  }
  .conversation {
    padding-left: 14px;
    padding-right: 14px;
  }
  .messages {
    padding-left: 12px;
    padding-right: 12px;
  }
  .funnel-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container (max-width:980px) {
  .table-wrap {
    border: 0;
    background: none;
  }
  .table-wrap table,
  .table-wrap tbody {
    display: block;
    width: 100%;
  }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  .table-wrap tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    margin-bottom: 12px;
    padding: 5px;
  }
  .table-wrap td {
    display: block;
    min-width: 0;
    border: 0;
    padding: 9px;
  }
  .table-wrap td::before {
    content: attr(data-label);
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--muted);
    margin-bottom: 5px;
  }
  .table-wrap td[colspan] {
    grid-column: 1/-1;
  }
}
@media (max-width: 360px) {
  .login-art {
    padding: 22px;
  }
  .login-form {
    padding: 22px;
  }
  .modal {
    padding: 18px;
  }
  .btn {
    max-width: 100%;
    white-space: normal;
  }
}
