:root {
  --bg: #f6f7f9;
  --card: #fff;
  --ink: #192b25;
  --muted: #65716e;
  --border: #e4e9e6;
  --primary: #236449;
  --primary-hover: #194e38;
  --soft: #eaf4ee;
  --nav: #142820;
  --danger: #b73e3e;
  --amber: #916619;
  --blue: #326b99;
  --radius: 12px;
  --focus: #438b68;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--ink);
  font-size: 14px;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 10px 14px;
  min-height: 42px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 550;
}
button:hover {
  background: #f0f4f1;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.primary:hover {
  background: var(--primary-hover);
}
.danger {
  color: var(--danger);
}
a {
  color: inherit;
  text-decoration: none;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: var(--nav);
  color: #b2c1b8;
  padding: 30px 19px 22px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -1px;
  font-size: 26px;
  padding: 0 13px 33px;
}
.brand-mark {
  background: #b9e4c5;
  color: var(--nav);
  width: 31px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.brand-mark svg {
  width: 23px;
  height: 23px;
}
.workspace-switch {
  border: 1px solid #3e5146;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.workspace-switch strong {
  display: block;
  color: #f4f7f3;
  font-size: 13px;
  margin-bottom: 3px;
}
.workspace-switch .square {
  background: #31453a;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #d7e9dc;
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  padding: 0 15px;
  margin: 0 0 12px;
  color: #94ab9d;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  margin-bottom: 4px;
  border-radius: 7px;
  font-size: 13px;
  min-height: 44px;
  transition: background 0.15s;
}
.nav-item:hover {
  background: #203b2d;
  color: #fff;
}
.nav-item.active {
  background: #304d3b;
  color: #fff;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-count {
  margin-left: auto;
  background: #486450;
  color: #e2f3e8;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.nav-bottom {
  margin-top: auto;
}
.sidebar-note {
  border: 1px solid #3a5142;
  border-radius: 10px;
  padding: 16px;
  margin: 20px 4px;
  font-size: 12px;
  line-height: 1.7;
}
.sidebar-note strong {
  color: #dcebdd;
  display: block;
  margin-bottom: 5px;
}
.sidebar-user {
  display: flex;
  gap: 10px;
  border-top: 1px solid #32483b;
  padding: 20px 10px 0;
  align-items: center;
  font-size: 11px;
}
.sidebar-user strong {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-bottom: 4px;
}
.sidebar-user .avatar {
  background: #3a5342;
  color: #e0f0df;
  border: 0;
}
.workspace {
  margin-left: 232px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 14px;
  color: #a2aca7;
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.environment {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.environment:before,
.status-dot {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #589774;
  border-radius: 50%;
}
.avatar {
  width: 34px;
  height: 34px;
  min-height: 34px;
  background: #eaf1ec;
  border-radius: 50%;
  padding: 0;
  color: var(--primary);
  font-size: 10px;
  font-weight: 650;
}
main {
  padding: 34px 38px;
  flex: 1;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 10px;
  text-transform: uppercase;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.9px;
  font-weight: 600;
  margin: 0 0 9px;
}
h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.15px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}
p {
  line-height: 1.65;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.head-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.head-actions button {
  font-size: 12px;
}
.demo-banner {
  border: 1px solid #d5e4da;
  background: #eef5ef;
  border-radius: 8px;
  padding: 11px 15px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: #3d6650;
  margin-bottom: 23px;
  line-height: 1.6;
}
.demo-banner svg {
  flex-shrink: 0;
  width: 16px;
}
.demo-banner a {
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.stat {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 19px 20px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 19px;
}
.stat-icon {
  background: #f1f5f2;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #547462;
}
.stat-icon svg {
  width: 16px;
}
.stat-number {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat-foot {
  font-size: 10px;
  margin-top: 10px;
  color: var(--muted);
}
.stat-foot strong {
  font-weight: 500;
  color: var(--primary);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(250px, 1fr);
  gap: 22px;
  margin-bottom: 25px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 23px 0;
  gap: 15px;
}
.panel-head .link {
  font-size: 11px;
  color: var(--primary);
  font-weight: 550;
}
.panel-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin: 7px 0 0;
}
.chart-wrap {
  padding: 22px 23px 14px;
}
.chart-meta {
  display: flex;
  gap: 20px;
  font-size: 10px;
  margin: 0 0 10px 35px;
  color: var(--muted);
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  margin-right: 6px;
  background: #3c8762;
}
.legend-dot.light {
  background: #b9d9c4;
}
.chart {
  width: 100%;
  height: 175px;
  overflow: visible;
}
.chart text {
  font:
    10px Inter,
    Arial,
    sans-serif;
  fill: #839088;
}
.chart .gridline {
  stroke: #edf0ed;
  stroke-dasharray: 4 5;
}
.chart .area {
  fill: #edf5f0;
}
.chart .line {
  fill: none;
  stroke: #3d8661;
  stroke-width: 2.5;
}
.chart .replyline {
  fill: none;
  stroke: #a6cdb4;
  stroke-width: 2.5;
  stroke-dasharray: 5 4;
}
.funnel {
  padding: 22px 23px 14px;
}
.funnel-row {
  margin: 0 0 18px;
}
.funnel-label {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #65746b;
}
.funnel-label b {
  font-weight: 550;
  color: var(--ink);
}
progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  display: block;
  appearance: none;
  background: #edf1ee;
}
progress::-webkit-progress-bar {
  background: #edf1ee;
  border-radius: 4px;
}
progress::-webkit-progress-value {
  background: #56856a;
  border-radius: 4px;
}
progress::-moz-progress-bar {
  background: #56856a;
  border-radius: 4px;
}
.funnel-foot {
  border-top: 1px solid var(--border);
  padding: 13px 23px;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.funnel-foot b {
  color: var(--primary);
  font-weight: 550;
}
.table-toolbar {
  padding: 17px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.tabs {
  display: flex;
  gap: 6px;
}
.tabs button {
  border: 0;
  min-height: 34px;
  font-size: 11px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
}
.tabs button.active {
  background: #edf4ef;
  color: var(--primary);
}
.input-icon {
  position: relative;
}
.input-icon svg {
  width: 15px;
  position: absolute;
  left: 11px;
  top: 12px;
  color: #7b8b80;
}
.input-icon input {
  padding-left: 34px;
  min-width: 220px;
  height: 37px;
  font-size: 11px;
}
.table-scroll {
  position: relative;
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
  text-align: left;
}
th {
  font-size: 10px;
  color: #6e7c74;
  font-weight: 500;
  padding: 14px 17px;
  background: #fafcfb;
  border-bottom: 1px solid var(--border);
}
td {
  font-size: 11px;
  padding: 16px 17px;
  border-bottom: 1px solid #edf0ee;
  color: #617067;
}
tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fcfdfc;
}
.company {
  display: flex;
  align-items: center;
  gap: 10px;
}
.company-icon {
  width: 33px;
  height: 33px;
  border-radius: 8px;
  background: #edf2ec;
  display: grid;
  place-items: center;
  color: #4a6e54;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.company b {
  font-size: 12px;
  color: var(--ink);
  font-weight: 550;
  display: block;
  margin-bottom: 4px;
}
.company small {
  font-size: 10px;
  color: var(--muted);
}
.badge {
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
  background: #f0f2f0;
  color: #68756d;
}
.badge.green {
  background: #eaf5ed;
  color: #2e754c;
}
.badge.amber {
  background: #faf2df;
  color: #896821;
}
.badge.blue {
  background: #ecf1f9;
  color: #496f9d;
}
.badge.red {
  background: #f9eceb;
  color: #a0443d;
}
.row-open {
  padding: 6px 10px;
  font-size: 10px;
  min-height: 34px;
  background: transparent;
}
.table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 22px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
}
.table-foot button {
  font-size: 10px;
  min-height: 32px;
  padding: 5px 9px;
}
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
}
.table-foot .page {
  background: #edf4ef;
  color: var(--primary);
  border-color: #d6e5da;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.count-pill {
  font-size: 10px;
  font-weight: 500;
  background: #f0f4f1;
  color: #5a7764;
  padding: 3px 7px;
  border-radius: 5px;
}
.lower-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
  margin-top: 24px;
}
.campaign-strip,
.activity {
  padding: 18px 23px;
}
.campaign-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.campaign-row:last-child {
  border: 0;
}
.campaign-row .grow {
  flex: 1;
}
.campaign-row b {
  display: block;
  font-weight: 550;
  margin-bottom: 5px;
}
.campaign-row small {
  color: var(--muted);
  font-size: 10px;
}
.activity-row {
  display: flex;
  gap: 12px;
  font-size: 11px;
  padding: 11px 0;
  line-height: 1.5;
}
.activity-symbol {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f5f1;
  color: #518364;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.activity-symbol svg {
  width: 13px;
}
.activity-row small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.empty {
  padding: 48px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.empty svg {
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: #92a69a;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 8px;
}
.empty button {
  margin-top: 12px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.campaign-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.campaign-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.campaign-card .company-icon {
  width: 42px;
  height: 42px;
}
.campaign-card h2 {
  font-size: 17px;
  margin-bottom: 8px;
}
.campaign-card p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}
.card-stats {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 17px 0;
  margin: 3px 0 18px;
  gap: 35px;
}
.card-stats b {
  display: block;
  font-size: 20px;
  font-weight: 550;
  margin-bottom: 5px;
}
.card-stats small {
  font-size: 10px;
  color: var(--muted);
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.card-actions button {
  font-size: 11px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}
.settings-body {
  padding: 24px;
}
.integration {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.integration:first-child {
  padding-top: 0;
}
.integration:last-child {
  border: 0;
  padding-bottom: 0;
}
.integration .grow {
  flex: 1;
}
.integration b {
  font-size: 13px;
  display: block;
  margin-bottom: 5px;
}
.integration small {
  color: var(--muted);
  font-size: 11px;
}
.note {
  padding: 15px;
  border-radius: 8px;
  background: #f5f7f5;
  font-size: 12px;
  color: #5b7162;
  line-height: 1.8;
}
.body-copy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}
footer {
  padding: 19px 38px;
  border-top: 1px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  align-items: center;
}
footer > span {
  color: #829087;
}
footer > a {
  margin-left: auto;
}
footer .status-dot {
  margin-left: 6px;
}
svg.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9e1db;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 100px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 0 0 7px;
}
.field {
  margin-bottom: 18px;
}
.field small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.5;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.full {
  grid-column: 1/-1;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  margin: 15px 0;
}
.checkbox input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--primary);
}
.form-section {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  margin-top: 8px;
  margin-bottom: 22px;
}
.form-section h3 {
  margin-bottom: 18px;
}
dialog {
  scroll-padding-block: 110px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0;
  width: min(740px, calc(100vw - 32px));
  max-height: calc(100dvh - 50px);
  color: var(--ink);
  box-shadow: 0 20px 80px #10271922;
}
dialog::backdrop {
  background: #10241b66;
  backdrop-filter: blur(2px);
}
.modal-head {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  z-index: 1;
}
.modal-head h2 {
  font-size: 19px;
}
.modal-head small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.close {
  padding: 5px;
  min-height: 34px;
  width: 34px;
  border: 0;
  color: var(--muted);
}
.modal-body {
  padding: 24px 26px;
}
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 26px;
  border-top: 1px solid var(--border);
  background: #fff;
  position: sticky;
  bottom: 0;
}
.modal-foot button {
  font-size: 12px;
}
#reload-handoff[hidden] {
  display: none;
}
#claim-form .modal-foot {
  flex-wrap: wrap;
}
#claim-form .modal-foot button {
  min-height: 44px;
  white-space: normal;
}
.modal-errors {
  color: var(--danger);
  font-size: 12px;
  margin: 0 0 15px;
  line-height: 1.7;
}
.message {
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 9px;
  margin: 12px 0;
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.7;
}
.message.inbound {
  background: #f0f7f2;
}
.message .message-meta {
  font-size: 10px;
  color: var(--muted);
  white-space: normal;
  margin-bottom: 10px;
}
.message b {
  display: block;
  font-size: 12px;
  margin-bottom: 9px;
}
.detail-facts {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.lead-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.lead-actions button {
  font-size: 11px;
}
.step-editor {
  border: 1px solid var(--border);
  background: #fafcfb;
  border-radius: 9px;
  padding: 18px;
  margin-bottom: 15px;
}
.step-editor h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.step-editor button {
  font-size: 10px;
  min-height: 30px;
  padding: 4px 8px;
}
.step-editor .field:last-child {
  margin-bottom: 0;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 116px);
  transform: translateX(-50%);
  padding: 14px 22px;
  border-radius: 9px;
  background: #1e4430;
  color: #fff;
  z-index: 100;
  max-width: min(600px, 90vw);
  font-size: 12px;
  box-shadow: 0 8px 30px #18342522;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
#toast.show {
  opacity: 1;
}
#toast.error {
  background: #893b36;
}
.skip {
  position: fixed;
  top: -70px;
  left: 15px;
  padding: 12px;
  background: white;
  z-index: 200;
}
.skip:focus {
  top: 15px;
}
.loading {
  padding: 70px;
  text-align: center;
  color: var(--muted);
}
.search-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.search-filters input {
  flex: 1;
  min-width: 180px;
}
.search-filters select {
  width: auto;
  min-width: 150px;
}
.scenario {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  align-items: flex-start;
}
.step-number {
  width: 32px;
  height: 32px;
  border: 1px solid #d8e5dc;
  background: var(--soft);
  color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.scenario p {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0;
}
.scenario-content {
  flex: 1;
}
.scenario + .scenario {
  border-top: 1px dashed var(--border);
}
.knowledge-text {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.select-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.select-header select {
  max-width: 340px;
}
.event-line {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.event-line time {
  min-width: 130px;
  font-size: 11px;
  color: var(--muted);
}
.login {
  max-width: 400px;
  margin: 80px auto;
}
.login h1 {
  margin-bottom: 16px;
}
.filter-search {
  max-width: 280px;
}
.inline-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.toolbar-title {
  margin: 0;
}
.result-count {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.success-panel {
  background: #eff6f0;
  border: 1px solid #dbe8de;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}
.success-panel h3 {
  color: var(--primary);
}
.success-panel p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.hide {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-top: 42px;
  }
  .chart {
    height: 210px;
  }
  td {
    padding-top: 18px;
    padding-bottom: 18px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .workspace {
    margin-left: 205px;
  }
  main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stat {
    padding: 17px;
  }
  .overview-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .stat-grid {
    gap: 12px;
  }
  .head-actions {
    gap: 7px;
  }
  #toast {
    left: calc(50% + 102px);
  }
  .lower-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 980px) {
  .sidebar {
    width: 75px;
    padding: 26px 10px;
  }
  .brand {
    padding: 0 11px 28px;
  }
  .brand > span:not(.brand-mark),
  .workspace-switch,
  .nav-label,
  .nav-item > span,
  .sidebar-note,
  .sidebar-user,
  .nav-count {
    display: none;
  }
  .nav-item {
    padding: 13px 17px;
    justify-content: center;
  }
  .brand-mark {
    flex-shrink: 0;
  }
  .workspace {
    margin-left: 75px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-head {
    align-items: flex-start;
  }
  .head-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .overview-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .panel-head {
    padding: 18px 18px 0;
  }
  .funnel,
  .chart-wrap {
    padding: 18px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .lower-grid {
    grid-template-columns: 1fr;
  }
  #toast {
    left: calc(50% + 37px);
  }
}
@media (max-width: 700px) {
  .sidebar {
    width: 59px;
    padding: 20px 5px;
  }
  .brand {
    padding: 0 8px 22px;
  }
  .brand-mark {
    width: 30px;
    height: 32px;
  }
  .nav-item {
    padding: 13px 10px;
  }
  .workspace {
    margin-left: 59px;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
  }
  .top-actions {
    gap: 10px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 8px;
  }
  .environment {
    font-size: 9px;
  }
  .avatar {
    display: none;
  }
  main {
    padding: 25px 16px;
  }
  .page-head {
    flex-direction: column;
    gap: 18px;
  }
  .head-actions {
    justify-content: flex-start;
  }
  h1 {
    font-size: 25px;
  }
  .subtitle {
    font-size: 11px;
  }
  .demo-banner {
    font-size: 10px;
    align-items: flex-start;
  }
  .demo-banner a {
    display: none;
  }
  .stat-grid {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat-top {
    font-size: 10px;
    gap: 7px;
    margin-bottom: 12px;
  }
  .stat-icon {
    width: 26px;
    height: 26px;
  }
  .stat-number {
    font-size: 26px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .chart {
    height: 175px;
  }
  .table-toolbar {
    flex-wrap: wrap;
    padding: 14px;
  }
  .tabs {
    gap: 2px;
  }
  .tabs button {
    padding: 7px 9px;
    font-size: 10px;
  }
  .input-icon,
  .input-icon input {
    width: 100%;
  }
  .panel-head {
    padding: 18px 16px 0;
  }
  .table-foot {
    padding: 13px;
    gap: 10px;
  }
  .lower-grid {
    margin-top: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-head {
    padding: 18px 20px;
  }
  .modal-foot {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .select-header {
    flex-wrap: wrap;
  }
  .event-line {
    flex-direction: column;
    gap: 7px;
  }
  footer {
    padding: 16px;
    font-size: 9px;
  }
  footer > span {
    display: none;
  }
  .search-filters select {
    flex: 1;
    min-width: 0;
  }
  .search-filters input {
    min-width: 100%;
  }
  #toast {
    left: calc(50% + 29px);
    max-width: calc(100vw - 90px);
  }
  .filter-search {
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.enrichment-panel {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fafcfb;
  margin: 20px 0;
}
.enrichment-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.enrichment-heading h3 {
  margin: 0;
}
.evidence-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.evidence-item > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.evidence-item strong {
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
}
.evidence-item button {
  font-size: 11px;
  flex-shrink: 0;
}
.evidence-item a {
  color: var(--primary);
  text-decoration: underline;
}
@media (max-width: 700px) {
  .evidence-item {
    flex-direction: column;
  }
}
.job-panel {
  margin-top: 24px;
}
.job-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.job-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.job-info strong {
  font-size: 12px;
}
.job-info p {
  margin: 6px 0 0;
}
.job-row button {
  font-size: 11px;
  flex-shrink: 0;
}
.notice-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.notification-config {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) {
  .job-row {
    flex-wrap: wrap;
  }
  .job-info {
    flex-basis: 100%;
  }
}
.runtime-panel {
  margin-top: 20px;
}
.runtime-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #e7d6ac;
  background: #fbf5e9;
  color: #775718;
  padding: 16px;
  border-radius: 9px;
  margin-bottom: 24px;
  font-size: 12px;
}
.runtime-alert > div {
  min-width: 0;
  flex: 1;
}
.runtime-alert strong {
  font-weight: 600;
}
.runtime-alert p {
  margin: 6px 0 0;
  line-height: 1.6;
}
.runtime-alert a {
  font-size: 11px;
  white-space: nowrap;
  text-decoration: underline;
}
.runtime-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.runtime-metrics b {
  display: block;
  font-size: 24px;
  font-weight: 550;
}
.runtime-metrics span {
  display: block;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 5px;
}
.runtime-link {
  font-size: 12px;
  color: var(--primary);
}
@media (max-width: 700px) {
  .runtime-alert {
    flex-wrap: wrap;
  }
  .runtime-alert a {
    margin-left: 30px;
  }
}
.lead-filter-details {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.lead-filter-details summary {
  cursor: pointer;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 550;
}
.lead-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.lead-filter-grid .field {
  margin: 0;
}
.lead-filter-grid button {
  align-self: end;
}
.page-info {
  padding: 5px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
#lead-table[aria-busy="true"] {
  cursor: progress;
}
@media (max-width: 1100px) {
  .lead-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .lead-filter-grid {
    grid-template-columns: 1fr;
  }
}
.provider-cooldowns {
  margin-bottom: 24px;
  border: 1px solid #e7d6ac;
  background: #fbf5e9;
  color: #775718;
  padding: 18px;
  border-radius: 9px;
}
.provider-cooldowns h3 {
  margin: 0 0 10px;
}
.provider-cooldowns p {
  font-size: 12px;
  margin: 6px 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* User names and account controls remain readable on narrow screens. */
.user-row {
  flex-wrap: wrap;
}
.user-row .grow {
  min-width: 140px;
  overflow-wrap: anywhere;
}
.sidebar-user > div {
  min-width: 0;
}
.sidebar-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#password-form + button {
  margin-top: 16px;
}

#calendar-options {
  border: 0;
  margin: 16px 0 0;
  padding: 0;
  min-width: 0;
}
#calendar-options:disabled {
  opacity: 0.6;
}
.calendar-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}
.calendar-days legend {
  font-weight: 600;
  margin-bottom: 8px;
}
.calendar-days .checkbox {
  margin: 0;
  min-height: 44px;
}

.report-filters {
  padding: 24px;
  margin-bottom: 24px;
}
.report-filter-actions {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.report-campaigns {
  margin-top: 24px;
}
.report-legend {
  flex-wrap: wrap;
}
.report-swatch {
  display: inline-block;
  width: 22px;
  margin-right: 6px;
  border-top: 3px solid currentColor;
  vertical-align: middle;
}
.report-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
}
.report-auto {
  color: var(--primary);
}
.report-human {
  color: var(--amber);
  stroke-dasharray: 8 4;
  border-top-style: dashed;
}
.report-inbound {
  color: var(--blue);
  stroke-dasharray: 2 4;
  border-top-style: dotted;
}
.report-dot {
  fill: currentColor;
}
.report-chart {
  height: auto;
  min-height: 160px;
}
.report-daily summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
}
.report-data {
  max-height: 320px;
}
.report-campaigns th {
  white-space: normal;
  min-width: 100px;
}
.report-campaigns tbody th {
  min-width: 170px;
}
#report-body > .panel {
  margin-top: 24px;
}
#report-body[aria-busy="true"] {
  opacity: 0.7;
}
@media (max-width: 600px) {
  .report-filters {
    padding: 18px;
  }
  .report-filter-actions > .primary {
    width: 100%;
  }
}

.report-plot {
  max-width: 100%;
  overflow-x: auto;
}
.chart.report-chart {
  min-width: 480px;
  min-height: 0;
  width: 100%;
  height: auto;
}
.report-chart text {
  font-size: 14px;
}
.report-legend {
  font-size: 12px;
  gap: 12px;
  margin-left: 0;
}
.report-delivery-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.report-delivery-stats > div {
  min-width: 0;
}
.report-filter-actions button,
.report-daily summary {
  min-height: 44px;
}
@media (max-width: 600px) {
  .report-delivery-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#overview-chart {
  min-width: 0;
}

.sidebar {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sidebar > * {
  flex-shrink: 0;
}
.suppression-card {
  padding: 22px;
  margin-bottom: 16px;
}
.suppression-card h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}
.suppression-card p,
.suppression-event p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.suppression-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.suppression-card-head > div {
  min-width: 0;
}
.suppression-card-head button {
  flex-shrink: 0;
}
.suppression-event {
  grid-template-columns: 130px minmax(0, 1fr);
}
@media (max-width: 600px) {
  .suppression-card-head {
    flex-direction: column;
  }
  .suppression-card {
    padding: 18px;
  }
  .suppression-event {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .suppression-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .suppression-filters select,
  .suppression-filters input,
  .suppression-filters button {
    width: 100%;
    min-width: 0;
  }
}

.inbox-filters {
  padding: 24px;
  margin-bottom: 20px;
}
.inbox-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 20px;
  color: var(--muted);
}
.inbox-summary b {
  color: var(--ink);
}
.inbox-card h2,
.inbox-card p,
.inbox-card .note {
  overflow-wrap: anywhere;
}
#inbox-results[aria-busy="true"] {
  opacity: 0.7;
}
@media (max-width: 600px) {
  .inbox-filters {
    padding: 18px;
  }
  .inbox-filters .head-actions button {
    width: 100%;
  }
}

.conversation-read-heading {
  flex-wrap: wrap;
  align-items: flex-start;
}
#mark-conversation-read {
  white-space: normal;
  max-width: 100%;
  min-height: 44px;
}
#conversation-read-status {
  font-size: 12px;
  margin-block: 12px;
}

.inbox-card .card-top {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

#run-form button,
#report-schedule-form button,
#integration-secret-form button,
#delete-integration-secret,
#lead-tags-form button,
#whatsapp-reply-form button,
[data-knowledge-view],
[data-knowledge-restore],
[data-run-lead],
[data-run-campaign],
[data-report-schedule],
#new-report-schedule,
#refresh-run,
#cancel-run {
  min-height: 44px;
  white-space: normal;
}

.company-controls button,
[data-company-for] {
  min-height: 44px;
  white-space: normal;
}
#reload-company-review[hidden] {
  display: none;
}
.company-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.company-comparison .message {
  font-size: 12px;
}
@media (max-width: 640px) {
  .company-comparison {
    grid-template-columns: 1fr;
  }
}

.signals-controls button,
[data-signals-for] {
  min-height: 44px;
  white-space: normal;
}
.signals-controls blockquote {
  margin: 14px 0;
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  background: var(--bg);
  overflow-wrap: anywhere;
}
.signals-controls .modal-foot {
  flex-wrap: wrap;
}

.draft-history button,
[data-draft-history] {
  min-height: 44px;
  white-space: normal;
}
.draft-history .draft-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.draft-history summary {
  cursor: pointer;
  padding-block: 12px;
}
.draft-history .modal-foot {
  position: static;
  flex-wrap: wrap;
}

.geocoding-panel {
  margin-top: 18px;
}
.geocoding-panel summary {
  cursor: pointer;
  padding-block: 12px;
}
.geocoding-panel button {
  min-height: 44px;
  white-space: normal;
}
#geocoding-error {
  color: var(--danger);
}
#geocoding-results h4 {
  overflow-wrap: anywhere;
}

.wa-template-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.wa-template-panel button {
  min-height: 44px;
  white-space: normal;
}

.reply-ai-panel button,
[data-reply-ai] {
  min-height: 44px;
  white-space: normal;
}
.reply-ai-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.reply-ai-panel summary {
  cursor: pointer;
  padding-block: 12px;
}
.reply-ai-panel blockquote {
  margin-inline: 0;
  padding: 12px;
  border-left: 3px solid var(--primary);
}
.reply-ai-panel .message {
  overflow-wrap: anywhere;
}

#preview-email-calendar {
  min-height: 44px;
  white-space: normal;
}
#calendar-preview-status {
  overflow-wrap: anywhere;
}

.email-content-details summary {
  cursor: pointer;
  padding-block: 8px;
}
.email-extracted-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 320px;
  overflow-y: auto;
}

.conversation-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.conversation-controls select {
  width: auto;
  max-width: 100%;
}
.conversation-parent {
  min-height: 44px;
  margin-block: 4px 12px;
  white-space: normal;
}
.conversation-thread-heading {
  margin-block: 24px 8px;
  overflow-wrap: anywhere;
}
.conversation-message {
  scroll-margin-block: 110px;
}
.conversation-message:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.conversation-depth-1 {
  margin-inline-start: 12px;
}
.conversation-depth-2 {
  margin-inline-start: 24px;
}
.conversation-depth-3 {
  margin-inline-start: 36px;
}
@media (max-width: 600px) {
  .conversation-depth-1 {
    margin-inline-start: 6px;
  }
  .conversation-depth-2 {
    margin-inline-start: 12px;
  }
  .conversation-depth-3 {
    margin-inline-start: 18px;
  }
}

.report-preview-text {
  max-height: 400px;
  overflow-y: auto;
}

.report-delivery-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.report-delivery-item button {
  white-space: normal;
  text-align: start;
  max-width: 100%;
}
.report-delivery-body {
  max-height: 400px;
  overflow-y: auto;
}
#delivery-detail {
  overflow-wrap: anywhere;
  scroll-margin-block: 110px;
}
#delivery-detail-heading:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.run-settings-check h4 {
  margin-block: 0 8px;
}
.run-settings-check ul {
  white-space: normal;
  padding-inline-start: 20px;
}

.faq-panel {
  max-width: 1040px;
}
.faq-download {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-section {
  margin-block: 28px;
}
.faq-section > h2 {
  margin-bottom: 16px;
  font-size: 19px;
}
.faq-question {
  border-top: 1px solid var(--border);
}
.faq-question:last-child {
  border-bottom: 1px solid var(--border);
}
.faq-question > summary,
.faq-about > summary {
  cursor: pointer;
  padding: 16px 4px;
  line-height: 1.6;
  font-weight: 600;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.faq-question > summary:focus-visible,
.faq-about > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.faq-answer {
  padding: 4px 4px 20px;
  line-height: 1.85;
  font-size: 14px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.faq-answer p,
.faq-answer ul,
.faq-answer ol,
.faq-answer pre,
.faq-answer table {
  margin-block: 12px;
}
.faq-answer ul,
.faq-answer ol {
  padding-inline-start: 24px;
}
.faq-answer a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-answer pre {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  background: var(--bg);
}
.faq-answer code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.faq-answer table {
  display: block;
  width: 100%;
  overflow-x: auto;
}
.faq-answer th,
.faq-answer td {
  white-space: normal;
  min-width: 120px;
  max-width: 420px;
  padding: 10px;
  vertical-align: top;
}

.faq-answer table:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.message-attachments a { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; }
.message-attachments ul { padding-inline-start: 1.25rem; }

.knowledge-search-chunk { white-space: pre-wrap; overflow-wrap: anywhere; }
