@font-face {
  font-family: EloSans;
  src: local("Inter"), local("Aptos"), local("Segoe UI");
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    EloSans,
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  color: #202920;
  background: #f7f8f4;
  font-size: 14px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button {
  border: 0;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #83a44d;
  outline-offset: 3px;
}
input,
textarea,
select {
  color: #273326;
  border: 1px solid #dce1d7;
  background: #fff;
  border-radius: 8px;
  padding: 12px 13px;
  max-width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #6b8755;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
input::placeholder,
textarea::placeholder {
  color: #949b91;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4c5849;
  margin-bottom: 9px;
}
label .optional {
  font-weight: 400;
  color: #90988b;
}
[hidden] {
  display: none !important;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 222px;
  flex: 0 0 222px;
  background: #151c18;
  color: #d3dccd;
  display: flex;
  flex-direction: column;
  padding: 29px 17px 14px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
}
.wordmark {
  display: flex;
  gap: 3px;
  align-items: center;
  text-decoration: none;
  font-size: 42px;
  font-weight: 750;
  letter-spacing: -3px;
  line-height: 1;
  color: #eff5e8;
  padding-left: 12px;
  width: max-content;
}
.brand-dot {
  font-family: Arial, sans-serif;
  display: inline-block;
  font-size: 37px;
  font-weight: 500;
  color: #d0ed8b;
  margin-left: 4px;
  transform: translateY(1px);
  letter-spacing: 0;
}
.workspace-chip {
  margin: 36px 0 35px;
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid #303a31;
  border-radius: 9px;
  padding: 10px 9px;
}
.workspace-logo {
  background: #33412e;
  color: #e1efca;
  border: 1px solid #526043;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
}
.workspace-chip strong {
  font-size: 11px;
  color: #e0e7da;
  display: block;
  font-weight: 600;
}
.workspace-chip small {
  display: block;
  font-size: 10px;
  color: #889680;
  margin-top: 4px;
}
.chip-chevron {
  margin-left: auto;
  color: #819376;
  font-size: 18px;
}
.nav-label {
  color: #6e7e69;
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 600;
  margin: 0 14px 15px;
}
nav {
  display: grid;
  gap: 6px;
}
.nav-item {
  width: 100%;
  background: none;
  color: #9caa96;
  display: flex;
  align-items: center;
  padding: 12px 12px;
  gap: 11px;
  border-radius: 7px;
  font-size: 11.5px;
  text-align: left;
  white-space: nowrap;
}
.nav-item svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.5;
}
.nav-item.active {
  color: #d6ecb8;
  background: #2b3727;
}
.nav-item.active svg {
  color: #d2ecaa;
}
.nav-item:hover {
  background: #243022;
}
.nav-count {
  color: #d0e6b4;
  font-size: 10px;
  background: #435336;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: auto;
}
.nav-indicator {
  width: 5px;
  height: 5px;
  background: #bada88;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 60px;
}
.sidebar-tip {
  border: 1px solid #35412f;
  background: linear-gradient(145deg, #263122, #1e291d);
  border-radius: 10px;
  padding: 17px 13px;
  margin-bottom: 19px;
}
.tip-top {
  font-size: 10px;
  color: #d3e5b9;
  display: flex;
  gap: 6px;
  align-items: center;
}
.tip-top > span {
  font-size: 18px;
  color: #d3ef91;
}
.sidebar-tip p {
  font-size: 10px;
  color: #8d9d7f;
  line-height: 1.8;
  margin: 10px 0 16px;
}
.sidebar-tip button {
  border-top: 1px solid #3a452f;
  padding: 13px 0 0;
  width: 100%;
  background: none;
  color: #c1d6a3;
  font-size: 9px;
  text-align: left;
  display: flex;
  justify-content: space-between;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  color: #e0e5dc;
  width: 100%;
  text-align: left;
  border-top: 1px solid #2d382c;
  padding: 16px 7px 0;
}
.profile-avatar {
  width: 29px;
  height: 29px;
  background: #d3dfbd;
  color: #455239;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.profile-button strong {
  font-size: 10px;
  display: block;
  font-weight: 500;
}
.profile-button small {
  display: block;
  font-size: 9px;
  color: #778870;
  margin-top: 4px;
}
.profile-button > span:last-child {
  margin-left: auto;
  color: #75836c;
}
.profile-button svg {
  width: 15px;
}
.main {
  margin-left: 222px;
  width: calc(100% - 222px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 67px;
  border-bottom: 1px solid #e5e8df;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 31px;
  background: #fbfcf9;
}
.breadcrumb {
  font-size: 10px;
  color: #91998b;
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  font-weight: 500;
  color: #4d5947;
}
.breadcrumb > span {
  color: #c7cec0;
}
.topbar-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.connection-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: #748269;
}
.connection-pill i,
.app-footer i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a5b694;
  display: inline-block;
}
.connection-pill.connected i {
  background: #6e9f4c;
}
.connection-pill.error i {
  background: #cc9654;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #7a8770;
  border: 1px solid #e2e6db;
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.icon-button:hover {
  background: #edf1e5;
}
svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
#content {
  padding: 29px 31px 26px;
  flex: 1;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}
.eyebrow {
  display: block;
  font-size: 9px;
  letter-spacing: 1.9px;
  font-weight: 600;
  color: #8b977e;
  margin-bottom: 11px;
}
.page-heading h1 {
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -1.1px;
  margin: 0 0 8px;
}
.page-heading p {
  font-size: 11px;
  color: #818c77;
  margin: 0;
  line-height: 1.6;
}
.heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 7px;
  padding: 11px 14px;
  line-height: 1.25;
  min-height: 36px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.button.primary {
  background: #d1ec95;
  color: #293c19;
  border: 1px solid #c1df80;
}
.button.primary:hover {
  background: #c4e484;
}
.button.secondary {
  background: #fff;
  border: 1px solid #dfe5d8;
  color: #5f6d54;
}
.button.secondary:hover {
  background: #f4f7ed;
}
.button.dark {
  background: #263721;
  color: #f0f4ea;
}
.button.dark:hover {
  background: #3c4e33;
}
.button.ghost {
  background: transparent;
  color: #7a876d;
  padding: 8px;
  font-weight: 500;
}
.button.small {
  font-size: 10px;
  padding: 8px 10px;
  min-height: 29px;
}
.button.danger {
  color: #a15c43;
  background: #fcf4ec;
  border: 1px solid #ead9ca;
}
.button svg {
  width: 14px;
  height: 14px;
}
.button.wide {
  width: 100%;
  justify-content: space-between;
}
.auto-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #748167;
  font-size: 10px;
  margin-right: 6px;
  background: transparent;
}
.switch {
  display: inline-block;
  width: 28px;
  height: 16px;
  position: relative;
  border-radius: 20px;
  background: #d8ded0;
  flex: none;
  transition: 0.2s;
}
.switch:after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  left: 2px;
  top: 2px;
  box-shadow: 0 1px 2px #0001;
  transition: 0.2s;
}
.switch.on {
  background: #8da65b;
}
.switch.on:after {
  transform: translateX(12px);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.metric {
  background: #fdfefa;
  border: 1px solid #e2e7d9;
  border-radius: 9px;
  padding: 16px 19px 15px;
  min-height: 95px;
  position: relative;
  overflow: hidden;
}
.metric-label {
  font-size: 10px;
  color: #829073;
  display: flex;
  align-items: center;
  gap: 7px;
}
.metric-label svg {
  width: 14px;
  height: 14px;
  color: #98a386;
}
.metric-number {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -1px;
  display: inline-block;
  margin-top: 9px;
}
.metric-caption {
  font-size: 9px;
  color: #8a987a;
  margin-left: 10px;
}
.metric .metric-art {
  position: absolute;
  right: 20px;
  bottom: 17px;
  width: 58px;
  height: 30px;
  color: #c1d898;
  stroke-width: 2;
}
.metric .metric-art path {
  fill: none;
}
.source-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}
.section-name {
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-name .count {
  background: #e9eedf;
  color: #8c9a77;
  font-weight: 500;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 5px;
}
.source-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.source-select {
  font-size: 10px;
  padding: 6px 27px 6px 9px;
  border-color: #e1e5db;
  border-radius: 6px;
  min-height: 29px;
  background: #fbfcf8;
}
.demo-label {
  font-size: 8px;
  letter-spacing: 0.8px;
  color: #8e9b79;
  background: #edf3e3;
  padding: 5px 7px;
  border-radius: 4px;
}
.inbox {
  display: grid;
  grid-template-columns: 245px minmax(275px, 1fr) 210px;
  border: 1px solid #e0e5d8;
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
  min-height: 515px;
  height: calc(100vh - 365px);
  max-height: 800px;
}
.lead-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid #e5e9df;
  background: #fff;
}
.search {
  padding: 15px 13px 9px;
  position: relative;
}
.search svg {
  position: absolute;
  left: 23px;
  top: 25px;
  width: 14px;
  height: 14px;
  color: #a2ad97;
}
.search input {
  width: 100%;
  padding: 10px 8px 10px 31px;
  background: #f7f9f3;
  border: 1px solid #edf0e7;
  font-size: 10px;
  border-radius: 6px;
}
.lead-filters {
  display: flex;
  gap: 5px;
  padding: 2px 13px 12px;
  overflow: auto;
}
.filter-chip {
  font-size: 9px;
  padding: 6px 9px;
  border-radius: 5px;
  color: #8b977d;
  background: none;
  white-space: nowrap;
}
.filter-chip.active {
  background: #eef3e4;
  color: #65784a;
}
.lead-list {
  overflow-y: auto;
  flex: 1;
}
.lead-row {
  width: 100%;
  display: flex;
  gap: 10px;
  text-align: left;
  background: #fff;
  padding: 17px 14px;
  border-bottom: 1px solid #f1f3ed;
  border-left: 2px solid transparent;
  min-height: 94px;
  position: relative;
}
.lead-row:hover {
  background: #f8faf3;
}
.lead-row.selected {
  background: #f0f5e7;
  border-left-color: #8ba858;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  background: #e2ead5;
  color: #667454;
  flex: none;
}
.avatar.rose {
  background: #f0e3db;
  color: #a18471;
}
.avatar.lavender {
  background: #e6e5ed;
  color: #9490a6;
}
.avatar.sand {
  background: #f1eadb;
  color: #9e8e67;
}
.lead-row-main {
  flex: 1;
  min-width: 0;
}
.lead-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.lead-row strong {
  font-size: 10px;
  font-weight: 600;
  color: #48583b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead-row time {
  font-size: 8px;
  color: #9aa58b;
  white-space: nowrap;
}
.lead-row p {
  font-size: 9px;
  color: #9aa38d;
  line-height: 1.5;
  margin: 6px 0 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.stage-tag {
  font-size: 8px;
  border-radius: 4px;
  padding: 3px 5px;
  background: #edf2e5;
  color: #829369;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.stage-tag.qualified {
  background: #e3ecd6;
  color: #78914f;
}
.stage-tag.offer {
  background: #f4ecdc;
  color: #b09c63;
}
.stage-tag.won {
  background: #deeddd;
  color: #5e8b57;
}
.stage-tag.lost {
  background: #f0e8e4;
  color: #a68877;
}
.row-tags {
  display: flex;
  gap: 5px;
  align-items: center;
}
.attention-dot {
  width: 4px;
  height: 4px;
  background: #a9bd7c;
  border-radius: 50%;
  margin-left: auto;
}
.human-tag {
  background: #efe9df;
  color: #9c8c6b;
}
.chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fafbf7;
}
.chat-header {
  height: 71px;
  display: flex;
  align-items: center;
  padding: 0 19px;
  border-bottom: 1px solid #e9ecdf;
  background: #fff;
  gap: 10px;
  flex: none;
}
.chat-header strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #43533b;
}
.chat-header small {
  display: block;
  font-size: 9px;
  color: #9aa48d;
  margin-top: 5px;
}
.chat-header .button {
  margin-left: auto;
}
.chat-header .icon-button {
  margin-left: auto;
}
.chat-intro {
  font-size: 8px;
  text-align: center;
  padding: 8px 10px;
  background: #f5f8ed;
  color: #94a47b;
  border-bottom: 1px solid #ecf0e1;
  line-height: 1.5;
}
.message-list {
  flex: 1;
  overflow-y: auto;
  padding: 21px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}
.day-divider {
  font-size: 8px;
  letter-spacing: 0.3px;
  text-align: center;
  color: #a5af97;
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 1px;
}
.day-divider:before,
.day-divider:after {
  content: "";
  height: 1px;
  background: #e9ede1;
  flex: 1;
}
.message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
  align-self: flex-start;
}
.message.outgoing {
  align-self: flex-end;
}
.sender {
  font-size: 8px;
  color: #a3ae94;
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 6px;
}
.outgoing .sender {
  justify-content: flex-end;
  color: #90a170;
}
.sender svg {
  width: 10px;
  height: 10px;
}
.bubble {
  background: #fff;
  border: 1px solid #e7ebde;
  border-radius: 0 10px 10px 10px;
  padding: 11px 13px;
  color: #6e7c5d;
  font-size: 11px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.outgoing .bubble {
  background: #eef4e1;
  border-color: #e5edd7;
  border-radius: 10px 0 10px 10px;
  color: #6b7c50;
}
.outgoing.agent .bubble {
  background: #e7eee2;
}
.message-time {
  color: #aeb8a1;
  font-size: 8px;
  margin-top: 6px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.outgoing .message-time {
  justify-content: flex-end;
}
.message-time svg {
  width: 12px;
  height: 12px;
}
.draft-card {
  width: 100%;
  align-self: stretch;
  background: #f5f8ed;
  border: 1px solid #dce8c6;
  border-radius: 8px;
  padding: 12px;
}
.draft-card .sender {
  color: #7f9363;
  font-weight: 600;
  margin-bottom: 9px;
  justify-content: flex-start;
}
.draft-card textarea {
  width: 100%;
  background: #fefffc;
  font-size: 11px;
  min-height: 115px;
  border: 1px solid #e1e8d5;
}
.draft-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 9px;
}
.error-banner {
  color: #ab7c5a;
  font-size: 10px;
  padding: 9px 10px;
  background: #fcf7ef;
  border: 1px solid #f0e3d0;
  border-radius: 6px;
  line-height: 1.6;
}
.composer {
  border-top: 1px solid #e6eadb;
  padding: 12px 15px 11px;
  background: #fff;
  flex: none;
}
.composer-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  margin-bottom: 9px;
}
.composer-tabs button {
  font-size: 9px;
  background: none;
  color: #a3ad94;
  padding: 3px 5px;
}
.composer-tabs button.active {
  color: #738c50;
  background: #f0f5e6;
  border-radius: 3px;
}
.live-toggle {
  margin: 0 0 0 auto;
  font-weight: 400;
  font-size: 8px;
  color: #a3ad94;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.live-toggle input {
  padding: 0;
  accent-color: #8d9e67;
  width: 11px;
  height: 11px;
  margin: 0;
}
.compose-input {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid #e0e6d7;
  padding: 5px 6px 5px 10px;
  border-radius: 7px;
  background: #fff;
}
.compose-input textarea {
  flex: 1;
  resize: none;
  min-height: 36px;
  max-height: 130px;
  height: 36px;
  border: 0;
  background: none;
  padding: 7px 0;
  font-size: 10px;
  line-height: 1.6;
  outline: none;
}
.send-button {
  width: 30px;
  height: 30px;
  background: #d2ea9f;
  color: #698543;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.send-button svg {
  width: 13px;
}
.compose-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #a6b097;
  font-size: 8px;
  margin-top: 9px;
}
.compose-foot svg {
  width: 10px;
  height: 10px;
}
.lead-details {
  padding: 24px 16px 16px;
  background: #fff;
  border-left: 1px solid #e7ebdf;
  overflow: auto;
  min-width: 0;
}
.detail-profile {
  text-align: center;
  border-bottom: 1px solid #edf0e5;
  padding-bottom: 20px;
  margin-bottom: 19px;
}
.detail-profile .avatar {
  margin: 0 auto 11px;
  width: 48px;
  height: 48px;
  font-size: 14px;
}
.detail-profile strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #536449;
}
.detail-profile small {
  display: block;
  font-size: 9px;
  color: #9aa58d;
  margin-top: 6px;
}
.details-title {
  font-size: 9px;
  color: #849375;
  letter-spacing: 0.7px;
  margin-bottom: 15px;
  font-weight: 600;
}
.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  align-items: center;
  font-size: 9px;
  color: #a5af99;
  margin-bottom: 15px;
}
.detail-line strong {
  font-size: 9px;
  color: #7c8c68;
  font-weight: 500;
}
.detail-stage {
  width: 100%;
  font-size: 10px;
  padding: 8px;
  margin: 0 0 18px;
  background: #f9fbf4;
  border-color: #e6ebdc;
}
.detail-notes {
  border-top: 1px solid #edf0e5;
  padding-top: 20px;
  margin-top: 21px;
}
.detail-notes textarea {
  width: 100%;
  font-size: 10px;
  min-height: 82px;
  background: #fcfdf9;
  padding: 9px;
  resize: vertical;
}
.details-caption {
  font-size: 9px;
  color: #a8b398;
  line-height: 1.7;
  margin-top: 18px;
}
.details-caption svg {
  width: 11px;
  height: 11px;
  vertical-align: middle;
}
.detail-mode {
  background: #f4f7ed;
  border: 1px solid #e7eddc;
  border-radius: 7px;
  padding: 11px;
  margin-top: 3px;
}
.detail-mode strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 500;
  color: #83956b;
}
.detail-mode p {
  font-size: 9px;
  color: #a1ad90;
  line-height: 1.7;
  margin: 6px 0 0;
}
.detail-mode svg {
  width: 12px;
  height: 12px;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #acb69d;
  padding: 0 31px 18px;
}
.app-footer > span:first-child {
  display: flex;
  gap: 6px;
  align-items: center;
}
.app-footer > span:last-child {
  letter-spacing: 1px;
  font-size: 7px;
}
.app-footer b {
  font-weight: 400;
  margin-left: 12px;
  color: #7f8e6b;
}
.empty-state {
  padding: 38px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 200px;
  color: #8a997a;
}
.empty-state .empty-icon {
  width: 47px;
  height: 47px;
  background: #eef3e4;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #a3b77b;
  margin-bottom: 14px;
}
.empty-state h2 {
  font-size: 18px;
  font-weight: 500;
  color: #586a47;
  letter-spacing: -0.4px;
  margin: 0 0 9px;
}
.empty-state p {
  font-size: 11px;
  line-height: 1.7;
  max-width: 280px;
  margin: 0 0 17px;
}
.empty-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.list-empty {
  padding: 30px 17px;
  text-align: center;
  font-size: 11px;
  color: #9eaa8d;
  line-height: 1.8;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 275px;
  gap: 22px;
  max-width: 1100px;
}
.settings-card {
  background: #fff;
  border: 1px solid #e1e7d7;
  border-radius: 11px;
  padding: 25px;
  margin-bottom: 18px;
}
.settings-card h2 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.4px;
  margin: 0 0 8px;
}
.settings-card > p {
  font-size: 11px;
  color: #97a186;
  line-height: 1.7;
  margin: 0 0 23px;
}
.field {
  margin-top: 21px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-size: 12px;
}
.field textarea {
  min-height: 130px;
}
.field-note {
  font-size: 10px;
  color: #9ba78b;
  line-height: 1.7;
  margin: 8px 0 0;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid #eef1e8;
}
.guide-card {
  background: #eef3e5;
  border: 1px solid #e0e9d0;
  border-radius: 11px;
  padding: 23px;
  color: #8a9a76;
  height: fit-content;
}
.guide-card > .large-star {
  font-size: 38px;
  color: #96b267;
  line-height: 1;
  display: block;
  margin-bottom: 20px;
}
.guide-card h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: #657a4c;
  margin: 0 0 12px;
}
.guide-card p {
  font-size: 11px;
  line-height: 1.9;
  margin: 0 0 18px;
}
.guide-card ol {
  padding: 0 0 0 17px;
  font-size: 11px;
  line-height: 1.9;
}
.guide-card li {
  margin: 12px 0;
}
.guide-note {
  font-size: 10px;
  line-height: 1.9;
  border-top: 1px solid #dbe5cc;
  padding-top: 17px;
}
.integration-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}
.integration-heading .service-icon {
  background: #eef6fc;
  color: #77a4be;
  width: 37px;
  height: 37px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.integration-heading .service-icon.ai {
  background: #f0f2e9;
  color: #92a86b;
}
.integration-heading h2 {
  margin: 0;
  font-size: 15px;
}
.integration-heading small {
  font-size: 10px;
  color: #a2ad93;
  display: block;
  margin-top: 5px;
}
.integration-heading .status-pill {
  margin-left: auto;
}
.status-pill {
  font-size: 9px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #96a381;
  padding: 5px 8px;
  background: #f4f7ee;
  border: 1px solid #e5ebda;
  border-radius: 5px;
}
.status-pill.ok {
  color: #71964a;
  background: #f0f6e6;
}
.status-pill.warning {
  color: #ae935d;
  background: #faf5e9;
}
.status-pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.secret-row {
  display: flex;
  gap: 8px;
}
.secret-row input {
  flex: 1;
  min-width: 0;
}
.integration-output {
  margin-top: 12px;
  font-size: 10px;
  line-height: 1.7;
  color: #8c9b77;
}
.link-button {
  font-size: 10px;
  color: #839a60;
  border: 0;
  background: none;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.small-notice {
  border: 1px solid #e6ebda;
  background: #fafbf6;
  padding: 13px 14px;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.8;
  color: #929f80;
  margin-top: 19px;
}
.small-notice strong {
  color: #81926c;
  font-weight: 500;
}
.pipeline-wrap {
  overflow-x: auto;
  padding-bottom: 18px;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 13px;
  min-width: 1200px;
}
.pipeline-column {
  min-height: 430px;
  background: #f0f3e9;
  border: 1px solid #e4e9d9;
  border-radius: 10px;
  padding: 13px 10px;
}
.pipeline-column-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #879674;
  padding: 0 3px 15px;
}
.pipeline-column-heading .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a6b588;
}
.pipeline-column-heading b {
  margin-left: auto;
  background: #e4ead7;
  border-radius: 4px;
  font-size: 9px;
  padding: 3px 5px;
  font-weight: 500;
}
.pipeline-card {
  background: #fff;
  border: 1px solid #e2e9d5;
  border-radius: 7px;
  padding: 14px 11px;
  cursor: pointer;
  display: block;
  text-align: left;
  width: 100%;
  margin-bottom: 10px;
}
.pipeline-card:hover {
  border-color: #b8ce95;
}
.pipeline-card-top {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pipeline-card-top .avatar {
  width: 27px;
  height: 27px;
  font-size: 8px;
}
.pipeline-card strong {
  font-size: 10px;
  font-weight: 500;
  color: #71845a;
}
.pipeline-card p {
  font-size: 9px;
  line-height: 1.7;
  color: #a1ad90;
  margin: 13px 0 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pipeline-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8px;
  color: #acb79d;
}
.pipeline-card-bottom svg {
  width: 11px;
  height: 11px;
}
.pipeline-empty {
  font-size: 10px;
  color: #a8b397;
  text-align: center;
  border: 1px dashed #dce4cb;
  padding: 25px 10px;
  border-radius: 7px;
  line-height: 1.8;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #26371f;
  color: #f0f5e8;
  border: 1px solid #4b623b;
  padding: 13px 18px;
  border-radius: 8px;
  box-shadow: 0 6px 25px #17230e22;
  font-size: 12px;
  z-index: 100;
  max-width: min(90vw, 600px);
  line-height: 1.6;
}
.toast.error {
  background: #634d39;
  border-color: #9c7f5a;
}
dialog {
  border: 1px solid #dee6d0;
  border-radius: 13px;
  background: #fdfefa;
  width: min(520px, 90vw);
  padding: 28px;
  color: #61764e;
  box-shadow: 0 20px 80px #16200e22;
}
dialog::backdrop {
  background: #16200e66;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  font-weight: 500;
  margin: 5px 0 16px;
}
dialog p {
  font-size: 12px;
  line-height: 1.9;
  color: #8d9d7a;
}
dialog .modal-close {
  float: right;
  border: 0;
  background: none;
  color: #8d9d7a;
  font-size: 22px;
  margin: -10px -7px 0 0;
}
dialog ol {
  padding-left: 20px;
  color: #8d9d7a;
  line-height: 1.9;
  font-size: 12px;
}
dialog li {
  margin-bottom: 11px;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #f7f9f2;
}
.auth-intro {
  background: #19231b;
  color: #dbe8cb;
  padding: 50px 9%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}
.auth-intro:after {
  content: "✳";
  position: absolute;
  bottom: 27px;
  right: -80px;
  font-size: 510px;
  color: #243320;
  line-height: 1;
  transform: rotate(15deg);
  pointer-events: none;
}
.auth-intro .wordmark {
  padding: 0;
  margin-bottom: 110px;
}
.auth-intro .eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #90a676;
  z-index: 1;
}
.auth-intro h1 {
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 450;
  line-height: 1.06;
  letter-spacing: -3px;
  margin: 16px 0 23px;
  z-index: 1;
}
.auth-intro h1 span {
  color: #cfe98e;
}
.auth-intro > p {
  font-size: 12px;
  line-height: 1.9;
  color: #8ca077;
  z-index: 1;
}
.auth-orbit {
  display: flex;
  gap: 16px;
  align-items: center;
  color: #aac08c;
  font-size: 9px;
  margin-top: 40px;
  z-index: 1;
}
.auth-orbit i {
  width: 24px;
  height: 1px;
  background: #50663e;
}
.auth-foot {
  font-size: 7px;
  letter-spacing: 2px;
  color: #668153;
  margin-top: auto;
  padding-top: 80px;
  z-index: 1;
}
.auth-card {
  align-self: center;
  width: min(365px, 80%);
  margin: 60px auto;
  color: #586c47;
}
.mini-mark {
  font-size: 42px;
  line-height: 1;
  color: #a1bd74;
  margin-bottom: 35px;
}
.auth-card .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
  margin-bottom: 15px;
}
.auth-card h2 {
  font-size: 32px;
  font-weight: 450;
  letter-spacing: -1.3px;
  margin: 0 0 11px;
}
.auth-card > p {
  font-size: 12px;
  color: #98a587;
  line-height: 1.8;
  margin-bottom: 32px;
}
.auth-card input {
  width: 100%;
  padding: 14px;
  font-size: 12px;
  background: #fff;
}
.auth-card .field-note {
  font-size: 10px;
  margin: 10px 0 25px;
}
.auth-card .button {
  height: 45px;
}
.auth-caption {
  font-size: 10px;
  color: #a3b18e;
  text-align: center;
  margin-top: 25px;
}
.error-text {
  font-size: 11px;
  color: #ad765a;
  margin: 10px 0;
  line-height: 1.7;
}
.details-mobile {
  display: none;
}
.muted {
  color: #a5b194;
}
.loading {
  padding: 70px;
  text-align: center;
  color: #96a67f;
  font-size: 13px;
}
.integration-links {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.integration-links a {
  font-size: 10px;
  color: #8b9f70;
  text-underline-offset: 4px;
}
.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 20px 0;
  color: #8b9d75;
  line-height: 1.7;
  font-size: 11px;
  font-weight: 400;
}
.checkbox-line input {
  accent-color: #91a76c;
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.mobile-menu {
  display: none;
}
.busy {
  opacity: 0.65;
  pointer-events: none;
}
.muted-help {
  font-size: 10px;
  color: #9cab88;
  line-height: 1.8;
}
@media (min-width: 1650px) {
  .sidebar {
    width: 244px;
    flex-basis: 244px;
  }
  .main {
    margin-left: 244px;
    width: calc(100% - 244px);
  }
  #content {
    padding-left: 40px;
    padding-right: 40px;
  }
  .topbar {
    padding: 0 40px;
  }
  .inbox {
    grid-template-columns: 285px minmax(350px, 1fr) 250px;
  }
  .lead-row p {
    max-width: 200px;
  }
  .lead-details {
    padding: 27px 22px;
  }
  .chat-header {
    padding: 0 25px;
  }
  .message-list {
    padding: 24px;
  }
  .bubble {
    font-size: 12px;
  }
  .lead-row strong {
    font-size: 11px;
  }
  .lead-row p {
    font-size: 10px;
  }
  .metrics {
    gap: 18px;
  }
  .metric {
    min-height: 104px;
  }
  .inbox {
    height: calc(100vh - 375px);
  }
}
@media (max-width: 1210px) {
  .inbox {
    grid-template-columns: 230px minmax(260px, 1fr);
  }
  .lead-details {
    display: none;
  }
  .details-mobile {
    display: inline-flex;
  }
  .settings-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .sidebar {
    width: 203px;
    flex-basis: 203px;
  }
  .main {
    margin-left: 203px;
    width: calc(100% - 203px);
  }
  #content {
    padding: 25px 23px;
  }
  .topbar {
    padding: 0 23px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .metric {
    padding: 14px;
  }
  .metric-art {
    display: none;
  }
  .metric-caption {
    font-size: 8px;
  }
  .heading-actions {
    gap: 6px;
  }
  .auto-control {
    font-size: 9px;
    gap: 5px;
  }
  .button {
    padding: 10px 11px;
  }
}
@media (max-width: 980px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .guide-card {
    display: none;
  }
  .sidebar {
    width: 178px;
    flex-basis: 178px;
    padding: 25px 11px 15px;
  }
  .main {
    margin-left: 178px;
    width: calc(100% - 178px);
  }
  .nav-item {
    font-size: 10px;
    gap: 8px;
    padding: 12px 9px;
  }
  .nav-label {
    margin-left: 9px;
  }
  .workspace-chip {
    padding: 10px 7px;
    gap: 6px;
  }
  .workspace-logo {
    width: 25px;
    height: 25px;
  }
  .workspace-chip strong {
    font-size: 9px;
  }
  .workspace-chip small {
    font-size: 8px;
  }
  .chip-chevron {
    font-size: 13px;
  }
  .sidebar-tip {
    padding: 14px 9px;
  }
  .tip-top {
    font-size: 9px;
  }
  .sidebar-tip button {
    font-size: 8px;
  }
  .metrics {
    gap: 8px;
  }
  .metric-caption {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
  .metric {
    min-height: 107px;
  }
  .metric-number {
    margin-top: 10px;
  }
  .inbox {
    grid-template-columns: 200px minmax(220px, 1fr);
    height: 600px;
  }
  .lead-row {
    padding: 15px 9px;
    gap: 7px;
  }
  .lead-row p {
    max-width: 145px;
  }
  .lead-row .avatar {
    width: 27px;
    height: 27px;
    font-size: 8px;
  }
  .lead-row strong {
    font-size: 9px;
  }
  .lead-row time {
    font-size: 7px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 250px;
  }
  .heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .heading-actions .auto-control {
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 5px;
  }
  .auth-intro {
    padding: 40px 10%;
  }
  .auth-intro h1 {
    font-size: 51px;
  }
  .auth-intro .wordmark {
    margin-bottom: 90px;
  }
  .auth-card h2 {
    font-size: 28px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    height: 66px;
    width: 100%;
    padding: 5px 9px 6px;
    display: block;
    border-top: 1px solid #394430;
    z-index: 20;
  }
  .sidebar > .wordmark,
  .workspace-chip,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    height: 100%;
    align-items: center;
  }
  .nav-item {
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    font-size: 8px;
    padding: 7px 2px;
    height: 50px;
  }
  .nav-item svg {
    height: 18px;
    width: 18px;
  }
  .nav-count,
  .nav-indicator {
    display: none;
  }
  .main {
    margin-left: 0;
    width: 100%;
    padding-bottom: 66px;
  }
  .topbar {
    height: 53px;
    padding: 0 18px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .connection-pill {
    font-size: 8px;
  }
  #content {
    padding: 22px 16px;
  }
  .page-heading {
    gap: 10px;
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    max-width: 230px;
    line-height: 1.7;
  }
  .heading-actions .button {
    font-size: 9px;
    padding: 8px 10px;
    min-height: 30px;
  }
  .heading-actions .button svg {
    width: 12px;
  }
  .metrics {
    margin-bottom: 22px;
    gap: 7px;
  }
  .metric {
    padding: 12px 10px;
    min-height: 96px;
    border-radius: 7px;
  }
  .metric-label {
    font-size: 8px;
    gap: 4px;
  }
  .metric-label svg {
    width: 12px;
    height: 12px;
  }
  .metric-number {
    font-size: 25px;
    margin-top: 9px;
  }
  .metric-caption {
    font-size: 7px;
    margin-top: 5px;
  }
  .inbox {
    grid-template-columns: 1fr;
    min-height: 520px;
    height: calc(100dvh - 360px);
    max-height: none;
  }
  .lead-pane {
    border: 0;
  }
  .chat-pane {
    display: none;
  }
  .inbox.has-selected .lead-pane {
    display: none;
  }
  .inbox.has-selected .chat-pane {
    display: flex;
  }
  .chat-header {
    height: 68px;
    padding: 0 13px;
    gap: 8px;
  }
  .chat-header strong {
    font-size: 11px;
  }
  .chat-header small {
    font-size: 8px;
  }
  .chat-back {
    display: flex !important;
  }
  .lead-row {
    min-height: 95px;
    padding: 17px 16px;
    gap: 12px;
  }
  .lead-row .avatar {
    width: 35px;
    height: 35px;
    font-size: 10px;
  }
  .lead-row strong {
    font-size: 11px;
  }
  .lead-row time {
    font-size: 9px;
  }
  .lead-row p {
    max-width: 260px;
    font-size: 10px;
  }
  .stage-tag {
    font-size: 9px;
  }
  .app-footer {
    padding: 0 17px 17px;
  }
  .app-footer > span:last-child {
    display: none;
  }
  .source-select {
    font-size: 9px;
    max-width: 145px;
  }
  .demo-label {
    display: none;
  }
  .section-name {
    font-size: 11px;
  }
  .bubble {
    font-size: 12px;
  }
  .message {
    max-width: 90%;
  }
  .message-list {
    padding: 19px 14px;
  }
  .composer {
    padding: 12px;
  }
  .compose-input textarea {
    font-size: 12px;
  }
  .draft-card textarea {
    font-size: 12px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .settings-card {
    padding: 22px 18px;
  }
  .settings-card h2 {
    font-size: 16px;
  }
  .field {
    margin-top: 20px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 12px;
  }
  .settings-layout {
    gap: 0;
  }
  .form-footer {
    flex-wrap: wrap;
  }
  .secret-row {
    flex-wrap: wrap;
  }
  .secret-row input {
    min-width: 100%;
    flex-basis: 100%;
  }
  .secret-row button {
    margin-top: 5px;
  }
  .integration-heading small {
    font-size: 9px;
  }
  .integration-heading .status-pill {
    font-size: 8px;
  }
  .pipeline {
    grid-template-columns: repeat(6, 230px);
    min-width: 1440px;
  }
  .pipeline-column {
    min-height: 420px;
  }
  .auth-screen {
    grid-template-columns: 1fr;
  }
  .auth-intro {
    min-height: 240px;
    padding: 28px 28px 30px;
  }
  .auth-intro .wordmark {
    font-size: 33px;
    margin-bottom: 30px;
  }
  .auth-intro .brand-dot {
    font-size: 29px;
  }
  .auth-intro .eyebrow {
    font-size: 6px;
    letter-spacing: 1.4px;
    margin-bottom: 8px;
  }
  .auth-intro h1 {
    font-size: 41px;
    letter-spacing: -1.7px;
    margin: 4px 0 12px;
  }
  .auth-intro h1 br {
    display: none;
  }
  .auth-intro > p {
    font-size: 10px;
    margin: 0;
  }
  .auth-orbit,
  .auth-foot {
    display: none;
  }
  .auth-intro:after {
    font-size: 300px;
    bottom: -80px;
    right: -20px;
  }
  .auth-card {
    width: calc(100% - 56px);
    max-width: 400px;
    margin: 35px auto;
  }
  .mini-mark {
    display: none;
  }
  .auth-card h2 {
    font-size: 27px;
  }
  .auth-card > p {
    margin-bottom: 24px;
  }
  .auth-card .eyebrow {
    font-size: 7px;
  }
  .live-toggle {
    font-size: 8px;
  }
  .chat-header .button.small {
    font-size: 9px;
    padding: 7px;
  }
  .details-mobile {
    width: 27px;
    height: 27px;
    margin-left: 0 !important;
  }
  .source-toolbar > .section-name {
    min-width: 110px;
  }
  .field-note {
    font-size: 10px;
  }
  .integration-links {
    gap: 12px;
  }
  .pipeline-card strong {
    font-size: 11px;
  }
  .pipeline-card p {
    font-size: 10px;
  }
  .pipeline-card-bottom {
    font-size: 9px;
  }
  .checkbox-line {
    font-size: 11px;
  }
}
.inbox {
  grid-template-rows: minmax(0, 1fr);
}
.lead-pane,
.chat-pane,
.lead-details,
.message-list {
  min-height: 0;
}
.message-list {
  overflow-y: auto;
}
.bubble {
  color: #56654b;
  font-size: 12px;
}
.outgoing .bubble {
  color: #536741;
}
.sender,
.message-time {
  color: #7f8f6c;
}
.lead-row strong {
  font-size: 11px;
  color: #46563a;
}
.lead-row p {
  font-size: 10px;
  color: #7e8d6d;
}
.lead-row time {
  color: #7f8f6c;
}
.metric-label {
  font-size: 11px;
  color: #6d7c5c;
}
.metric-caption {
  color: #758468;
}
.page-heading p {
  color: #748264;
  font-size: 12px;
}
.field-note,
.settings-card > p {
  color: #748363;
}
.detail-line {
  color: #7b8c68;
}
.detail-notes textarea {
  font-size: 11px;
}
.detail-mode p,
.details-caption {
  color: #7d8e69;
}
.nav-item {
  font-size: 12px;
}
.nav-item.active {
  color: #e3f0d0;
}
.chat-header small {
  color: #7e8f6b;
}
.draft-card .sender {
  font-size: 10px;
}
.chat-back {
  display: none;
  background: none;
  color: #8c9f75;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.chat-back svg {
  width: 16px;
}
.spin {
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (max-width: 980px) {
  .nav-item {
    font-size: 10px;
  }
  .metric-label {
    font-size: 10px;
  }
  .lead-row strong {
    font-size: 10px;
  }
  .lead-row p {
    font-size: 9px;
  }
}
@media (max-width: 720px) {
  .nav-item {
    font-size: 8px;
  }
  .metric-label {
    font-size: 8px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .lead-row strong {
    font-size: 12px;
  }
  .lead-row p {
    font-size: 10px;
  }
}
.account-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #f4f7ed;
  border: 1px solid #e2e9d6;
  border-radius: 9px;
  margin: 18px 0;
}
.account-summary > .service-icon {
  color: #819c5c;
  display: grid;
  place-items: center;
}
.account-summary strong {
  font-size: 12px;
  font-weight: 550;
  color: #657a4e;
}
.account-summary p {
  font-size: 10px;
  color: #8b9a77;
  margin: 7px 0 0;
  line-height: 1.7;
}
.small-notice code,
dialog code {
  background: #eaf0df;
  color: #667f4d;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 10px;
}
.dialog-list {
  margin-top: 22px;
  max-height: 42vh;
  overflow: auto;
  border-top: 1px solid #e5ecd9;
}
.dialog-row {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #ecf0e3;
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 14px 4px;
  color: #708456;
}
.dialog-row:hover {
  background: #f1f6e7;
}
.dialog-row strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.dialog-row small {
  display: block;
  font-size: 10px;
  color: #8d9f78;
  margin-top: 5px;
}
.dialog-row > .button {
  margin-left: auto;
  font-size: 10px;
}
.import-form {
  margin-top: 20px;
}
.import-form input {
  font-size: 12px;
}
.heading-actions {
  flex-wrap: wrap;
}
@media (max-width: 980px) {
  .heading-actions .button {
    font-size: 9px;
    padding: 8px;
  }
  .heading-actions .button svg {
    width: 12px;
  }
  .heading-actions .auto-control {
    width: auto;
  }
}
@media (max-width: 720px) {
  .heading-actions .auto-control {
    width: 100%;
  }
  .page-heading > div:first-child {
    min-width: 45%;
  }
  .account-summary {
    padding: 14px;
  }
  .account-summary strong {
    font-size: 11px;
  }
  .account-summary p {
    font-size: 10px;
  }
}
.persona-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e0e7d5;
  padding: 15px 18px;
  border-radius: 9px;
  margin-bottom: 22px;
  max-width: 1100px;
  flex-wrap: wrap;
}
.persona-toolbar label {
  margin: 0;
  font-size: 11px;
}
.persona-toolbar select {
  min-width: 230px;
  font-size: 12px;
}
.persona-toolbar .field-note {
  margin: 0;
}
.wide-input {
  width: 100%;
}
.accounts-grid {
  display: grid;
  gap: 16px;
}
.account-card {
  padding: 18px;
  border: 1px solid #e1e9d5;
  border-radius: 9px;
  background: #fafcf5;
}
.account-card .integration-heading {
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.account-card .integration-heading strong {
  font-size: 13px;
  color: #647b4b;
}
.account-card > label {
  margin-top: 15px;
}
.account-card label > input:not([type="checkbox"]),
.account-card label > select {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
}
.account-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.account-card .status-pill {
  margin-left: auto;
}
.memory-card {
  border-top: 1px solid #e7ecde;
  padding-top: 18px;
  margin-top: 18px;
}
.memory-card textarea {
  width: 100%;
  min-height: 120px;
  font-size: 11px;
  padding: 9px;
  background: #fafcf6;
}
.memory-card .field-note {
  font-size: 9px;
}
.active-persona {
  margin: 0 0 10px;
}
.source-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.command-box {
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  border: 1px solid #dae5c8;
  border-radius: 7px;
  background: #f0f5e7;
  color: #637d4c;
  font-size: 12px;
  line-height: 1.8;
}
.settings-card .checkbox-line input {
  flex: 0 0 auto;
}
.settings-card .integration-output {
  margin-bottom: 0;
}
.account-card .checkbox-line {
  margin-top: 16px;
  font-weight: 400;
}
#modal {
  max-height: 90vh;
  overflow: auto;
}
@media (max-width: 720px) {
  .persona-toolbar {
    gap: 10px;
    padding: 14px;
  }
  .persona-toolbar select {
    width: 100%;
    min-width: 0;
  }
  .source-toolbar {
    align-items: flex-start;
  }
  .source-controls {
    gap: 5px;
  }
  .source-select {
    max-width: 145px;
  }
  .account-card {
    padding: 14px;
  }
  .account-card .status-pill {
    margin-left: 0;
  }
  .account-actions .button {
    font-size: 10px;
  }
  .command-box {
    font-size: 11px;
  }
}

/* Diagnostic controls retain the existing card and navigation language. */
.log-tools {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.log-tools .field {
  min-width: 160px;
  margin-bottom: 0;
}
.log-tools input {
  max-width: 180px;
}
.log-list {
  display: grid;
  gap: 12px;
}
.log-event {
  background: var(--white, #fff);
  border: 1px solid var(--line, #e3e6df);
  border-radius: 12px;
  overflow: hidden;
}
.log-event summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}
.log-level {
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 11px;
  background: #edf4df;
  color: #546c29;
}
.log-level.error {
  background: #fbe8e3;
  color: #984530;
}
.log-level.warning {
  background: #fff0d6;
  color: #8c651f;
}
.log-summary {
  flex: 1;
  min-width: 0;
}
.log-summary strong,
.log-summary small {
  display: block;
  overflow-wrap: anywhere;
}
.log-summary small {
  margin-top: 5px;
  color: #7b8277;
  font-size: 12px;
}
.log-event time {
  font-size: 11px;
  color: #7b8277;
}
.log-detail {
  padding: 0 20px 20px;
  border-top: 1px solid #eef0e9;
  font-size: 12px;
}
.log-detail pre {
  background: #f4f6f0;
  padding: 16px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
@media (max-width: 700px) {
  .log-event summary {
    flex-wrap: wrap;
    padding: 14px;
  }
  .log-event time {
    width: 100%;
  }
  .log-detail {
    padding: 0 14px 14px;
  }
}

/* Individual attendance controls and account-scoped incoming notifications. */
.lead-ai-controls {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.lead-ai-controls .auto-control {
  padding: 8px 0;
  justify-content: flex-start;
}
.reset-history {
  color: #a44b3d;
  text-align: left;
}
.notification-list {
  display: grid;
  gap: 18px;
}
.notification-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.notification-heading h2 {
  margin-top: 8px;
  margin-bottom: 4px;
}
.notification-messages {
  max-height: 320px;
  overflow: auto;
  margin-bottom: 18px;
}
.notification-message {
  border-top: 1px solid #edf0e7;
  padding: 12px 0;
}
.notification-message time {
  font-size: 11px;
  color: #7b8277;
}
.notification-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0;
  color: #394234;
}
