.dnav a[hidden],
.nav-group[hidden] {
  display: none;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 4px 0 0;
}
.section-heading > a {
  font-size: 12px;
  color: var(--teal-deep);
  white-space: nowrap;
}
.section-kicker {
  color: var(--gray);
  font-size: 9px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
#metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
#secondaryMetrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.acq-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  margin: 18px 0;
}
.acq-stat {
  background: #fff;
  padding: 18px;
  min-width: 0;
}
.acq-stat .metric-label {
  font-size: 11px;
  color: #666872;
  display: block;
}
.acq-stat strong {
  font-family: var(--font-sans);
  font-size: 27px;
  letter-spacing: -0.035em;
  display: block;
  line-height: 1.3;
  margin: 8px 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.acq-stat strong.unavailable {
  font-size: 17px;
  color: #7d8187;
  letter-spacing: 0;
  margin: 14px 0;
}
.acq-stat small {
  font-size: 10px;
  line-height: 1.5;
  color: #767981;
  display: block;
}
.acq-stat.positive strong {
  color: var(--teal-deep);
}
.acq-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 24px;
}
.acq-header h1 {
  margin: 5px 0 8px;
}
.acq-header p {
  font-size: 13px;
  color: var(--gray);
}
.acq-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.acq-actions a,
.acq-actions button,
.acq-button {
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--border);
  background: white;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.acq-actions .primary,
.acq-button.primary {
  background: var(--teal-deep);
  color: white;
  border-color: var(--teal-deep);
}
.acq-filter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 16px;
}
.acq-filter label {
  font-size: 11px;
  color: var(--gray);
  display: block;
  margin-bottom: 5px;
}
.acq-filter input,
.acq-filter select,
.acq-search,
.acq-dialog input,
.acq-dialog select,
.acq-dialog textarea {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 10px;
  border-radius: 5px;
  min-height: 36px;
}
.acq-filter .presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 8px;
}
.acq-banner {
  font-size: 12px;
  padding: 12px 16px;
  border: 1px solid #d9e8e6;
  border-radius: 7px;
  background: #f4f9f8;
  margin: 16px 0;
  line-height: 1.6;
}
.acq-banner.warning {
  border-color: #eadcca;
  background: #fffaf2;
  color: #77572d;
}
.acq-banner.error {
  border-color: #eccfcc;
  background: #fff6f5;
  color: #873e36;
}
.acq-demo {
  position: sticky;
  top: 56px;
  z-index: 10;
  background: #1e5058;
  color: #fff;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 12px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.acq-demo a {
  color: #fff;
  text-decoration: underline;
}
.acq-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.acq-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  background: #fff;
  margin: 0 0 22px;
  min-width: 0;
}
.acq-panel h2 {
  font-size: 17px;
  margin: 0 0 6px;
}
.acq-panel .note {
  font-size: 11px;
  margin: 5px 0 16px;
}
.acq-chart svg {
  display: block;
  width: 100%;
  height: 210px;
}
.acq-chart text {
  font: 10px var(--font-sans);
  fill: #7b7d85;
}
.acq-chart .bars {
  fill: #397b80;
}
.acq-chart .cash-line {
  stroke: #356c73;
  fill: none;
  stroke-width: 2;
}
.acq-legend {
  font-size: 10px;
  color: var(--gray);
  display: flex;
  gap: 18px;
}
.acq-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #397b80;
  margin-right: 5px;
}
.acq-table {
  overflow: auto;
}
.acq-table table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  white-space: nowrap;
}
.acq-table th {
  font-size: 10px;
  font-weight: 500;
  color: var(--gray);
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  background: #fafbfb;
}
.acq-table td {
  font-size: 12px;
  border-bottom: 1px solid #f0f1f3;
  padding: 13px 10px;
  text-align: left;
}
.acq-table td small {
  display: block;
  font-size: 10px;
  color: var(--gray);
  margin-top: 4px;
}
.acq-table th button {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.acq-table .money {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.acq-table button {
  background: white;
  border: 1px solid var(--border);
  border-radius: 5px;
  font: inherit;
  font-size: 11px;
  padding: 5px 9px;
  cursor: pointer;
}
.acq-table a {
  color: var(--teal-deep);
}
.acq-tag {
  display: inline-block;
  font-size: 10px;
  border-radius: 4px;
  background: #eff5f4;
  color: #35696e;
  padding: 3px 6px;
}
.acq-tag.review {
  background: #fff5e8;
  color: #8a632f;
}
.acq-tag.neutral {
  background: #f0f1f4;
  color: #666b77;
}
.acq-empty {
  padding: 35px 15px;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
}
.acq-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
  flex-wrap: wrap;
  align-items: center;
}
.acq-toolbar small {
  color: var(--gray);
}
.acq-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.acq-source {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 18px;
}
.acq-source h3 {
  font-size: 15px;
  margin: 0 0 12px;
}
.acq-source p {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.7;
}
.acq-source button {
  margin-top: 10px;
}
.acq-source dl {
  font-size: 11px;
  line-height: 1.8;
}
.acq-source dt {
  color: var(--gray);
  margin-top: 8px;
}
.acq-source dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.acq-dialog {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  width: min(510px, calc(100vw - 32px));
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 90px #18282b25;
}
.acq-dialog::backdrop {
  background: #0c202a55;
}
.acq-dialog h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.acq-dialog p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--gray);
}
.acq-dialog label {
  display: block;
  font-size: 12px;
  margin: 16px 0 5px;
}
.acq-dialog input,
.acq-dialog select,
.acq-dialog textarea {
  width: 100%;
  box-sizing: border-box;
}
.acq-dialog .check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.acq-dialog .check input {
  width: auto;
  min-height: 0;
}
.acq-dialog .acq-actions {
  justify-content: end;
  margin-top: 22px;
}
.acq-dialog .error {
  color: #8b4038;
  font-size: 12px;
}
.acq-calls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.acq-call {
  padding: 16px;
  background: #f8faf9;
  border-radius: 7px;
}
.acq-call h3 {
  font-size: 12px;
  margin: 0 0 12px;
}
.acq-call strong {
  font-size: 25px;
  font-weight: 600;
  color: var(--teal-deep);
}
.acq-call p {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.6;
}
.acq-footnote {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 850px;
}
.acq-footnote summary {
  cursor: pointer;
  color: var(--ink);
}
.acq-footnote dt {
  font-weight: 600;
  margin-top: 13px;
}
.acq-footnote dd {
  margin: 4px 0;
}
.acq-pipeline-stage {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin: 15px 0;
  font-size: 11px;
}
.acq-pipeline-stage div {
  grid-column: 1/-1;
  height: 6px;
  background: #f1f4f3;
  border-radius: 3px;
  overflow: hidden;
}
.acq-pipeline-stage i {
  display: block;
  height: 100%;
  background: #6f9ea1;
}
.acq-source .status {
  font-size: 11px;
}
.acq-summary-note {
  color: var(--gray);
  font-size: 11px;
  line-height: 1.7;
}
.acq-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #193e43;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 100;
}
.acq-button:disabled {
  opacity: 0.5;
  cursor: wait;
}
:focus-visible {
  outline: 2px solid #397b80;
  outline-offset: 3px;
}
@media (max-width: 1100px) {
  .acq-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .acq-grid {
    grid-template-columns: 1fr;
  }
  .acq-sources {
    grid-template-columns: 1fr;
  }
  .acq-stat strong {
    font-size: 24px;
  }
}
@media (max-width: 700px) {
  #metrics {
    grid-template-columns: 1fr;
  }
  #metrics .tile {
    border: 0;
    border-bottom: 1px solid var(--border);
  }
  #metrics .tile:last-child {
    border-bottom: 0;
  }
  #secondaryMetrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .acq-header {
    display: block;
  }
  .acq-header .acq-actions {
    margin-top: 16px;
  }
  .acq-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .acq-stat {
    padding: 14px;
  }
  .acq-stat strong {
    font-size: 23px;
  }
  .acq-stat strong.unavailable {
    font-size: 14px;
  }
  .acq-panel {
    padding: 16px;
  }
  .acq-filter .presets {
    margin-left: 0;
    width: 100%;
  }
  .acq-filter > div {
    flex: 1;
  }
  .acq-filter input {
    width: 100%;
    box-sizing: border-box;
  }
  .section-heading {
    align-items: start;
  }
  .acq-demo {
    top: 55px;
  }
  .acq-search {
    width: 100%;
  }
}

.acq-demo[hidden] {
  display: none;
}

[data-role="agency"] #overviewSales,
[data-role="agency"] .section-heading a[href="leads.html"] {
  display: none !important;
}

#settingsConnections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.connection-form label { display: block; margin: 18px 0 8px; font-size: 13px; font-weight: 600; }
.connection-form input { width: 100%; box-sizing: border-box; border: 1px solid #dce3e4; border-radius: 7px; padding: 12px; background: #fff; font: inherit; font-size: 14px; }
.connection-form .connection-result { margin: 12px 0 0; font-size: 13px; }
[data-sales-view="settings"] dl { display: grid; grid-template-columns: 180px 1fr; gap: 16px 24px; font-size: 14px; line-height: 1.6; }
[data-sales-view="settings"] dt { color: #5f6e70; }
[data-sales-view="settings"] dd { margin: 0; }
@media(max-width: 800px) { #settingsConnections { grid-template-columns: 1fr; } [data-sales-view="settings"] dl { grid-template-columns: 1fr; gap: 6px; } [data-sales-view="settings"] dd { margin-bottom: 14px; } }
