:root {
  color-scheme: light;
  --bg: #f3f7f8;
  --panel: #ffffff;
  --panel-subtle: #f8fbfb;
  --text: #102a43;
  --muted: #5f7280;
  --line: #d9e5ea;
  --line-strong: #c3d4dc;
  --accent: #168575;
  --accent-hover: #106f61;
  --accent-soft: #e2f6f2;
  --accent-ring: rgba(22, 133, 117, 0.22);
  --sidebar: #102a43;
  --sidebar-soft: #163953;
  --muri-teal: #00c5b4;
  --muri-teal-dark: #00a298;
  --muri-blue: #1a71a2;
  --muri-blue-dark: #125682;
  --muri-navy: #0c2e4d;
  --muri-ink: #06182a;
  --success: #1f9d68;
  --warning: #d99a21;
  --danger: #c2413a;
  --info: #2f80ed;
  --shadow-sm: 0 1px 2px rgba(16, 42, 67, 0.05);
  --shadow-md: 0 14px 34px rgba(16, 42, 67, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.site-body {
  background: #f7fbfb;
  color: var(--muri-ink);
}

.is-hidden {
  display: none !important;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.auth-panel .brand {
  color: var(--text);
  margin-bottom: 26px;
}

.auth-heading {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.app-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: var(--sidebar);
  color: #fff;
  padding: 22px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--accent);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav {
  display: grid;
  gap: 5px;
}

.grouped-nav {
  gap: 10px;
  align-content: start;
}

.nav-group {
  display: grid;
  gap: 5px;
}

.nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  width: 100%;
  padding: 4px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(230, 244, 247, 0.62);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-group-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-group-toggle i {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.nav-group.is-collapsed .nav-group-toggle i {
  transform: rotate(-45deg);
}

.nav-group-items {
  display: grid;
  gap: 5px;
}

.nav-group.is-collapsed .nav-group-items {
  display: none;
}

.nav a,
.nav-placeholder {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9d8df;
  text-decoration: none;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.nav-placeholder {
  opacity: 0.58;
  cursor: default;
}

.nav-placeholder > span:last-child {
  display: grid;
  gap: 1px;
}

.nav-placeholder small {
  color: rgba(201, 216, 223, 0.7);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-icon {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #9de7de;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav a.active,
.nav a:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav a.active::before {
  content: "";
  position: absolute;
  left: -8px;
  width: 3px;
  height: 22px;
  border-radius: 999px;
  background: var(--muri-teal);
}

.nav a.active .nav-icon,
.nav a:hover .nav-icon {
  background: linear-gradient(135deg, var(--muri-teal-dark), var(--muri-blue));
  border-color: var(--muri-teal);
  color: #fff;
}

.main {
  padding: 30px;
  min-width: 0;
}

.topbar,
.panel-header,
.topbar-actions,
.metrics,
.workspace,
.report-grid,
.form-grid {
  display: grid;
  gap: 16px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 20px;
}

.topbar-actions {
  grid-template-columns: 180px 180px 150px auto auto auto;
  align-items: center;
  gap: 10px;
}

.support-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -6px 0 22px;
  padding: 13px 15px;
  border: 1px solid rgba(217, 154, 33, 0.36);
  border-left: 4px solid var(--warning);
  border-radius: 10px;
  background: #fff8e8;
  box-shadow: var(--shadow-sm);
}

.support-banner div {
  display: grid;
  gap: 3px;
}

.support-banner strong {
  color: var(--text);
}

.support-banner span {
  color: var(--muted);
  font-size: 13px;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.status-line {
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

h2 {
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0;
}

p,
small {
  color: var(--muted);
}

button,
select,
input,
textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

button {
  padding: 0 14px;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: pointer;
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

button:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.indexer-submit-button {
  border-color: transparent;
  color: #fff;
  box-shadow: 0 9px 20px rgba(0, 32, 54, 0.16);
}

.indexer-submit-button:hover:not(:disabled) {
  filter: brightness(0.96);
}

.indexer-service-google {
  background: #1a73e8;
}

.indexer-service-bing {
  background: #008373;
}

.indexer-service-indexnow {
  background: #6454d6;
}

.indexer-service-yandex {
  background: #d93025;
}

.indexer-service-speedy {
  background: #e37400;
}

.indexer-service-omega {
  background: #7c3aed;
}

.indexer-service-default {
  background: var(--accent);
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  outline: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.small-button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.secondary-button {
  background: #ffffff;
  color: var(--text);
  border-color: var(--line);
}

.secondary-button:hover:not(:disabled) {
  background: var(--panel-subtle);
  border-color: var(--line-strong);
  color: var(--text);
}

.danger-button {
  background: var(--danger);
  border-color: var(--danger);
}

.danger-button:hover:not(:disabled) {
  background: #a9322c;
  border-color: #a9322c;
}

select,
input,
textarea {
  padding: 0 11px;
}

textarea {
  min-height: 140px;
  padding: 10px;
  resize: vertical;
}

.compact-input {
  width: 92px;
}

.metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.setup-checklist {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
}

.site-health-panel {
  margin-bottom: 18px;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.health-healthy {
  background: #e1f7ec;
  color: #11643e;
}

.health-stale {
  background: #fff3d6;
  color: #835500;
}

.health-setup {
  background: #edf4f6;
  color: var(--muted);
}

.health-grid,
.health-activity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.health-grid,
.health-activity {
  margin-bottom: 14px;
}

.health-grid span,
.health-activity span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-subtle);
}

.health-grid strong,
.health-grid small,
.health-activity strong,
.health-activity small {
  display: block;
}

.health-grid strong {
  font-size: 22px;
}

.health-grid small,
.health-activity small {
  margin-top: 4px;
  color: var(--muted);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.checklist-grid span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

.checklist-grid i {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid #c9d2d8;
  border-radius: 999px;
}

.checklist-grid span.is-complete {
  color: var(--text);
  background: var(--accent-soft);
  border-color: #b9e6df;
}

.checklist-grid span.is-complete i {
  background: var(--muri-teal-dark);
  border-color: var(--muri-teal-dark);
}

.checklist-grid span.is-complete i::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.metrics article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.metrics article {
  padding: 16px;
  display: grid;
  gap: 6px;
  overflow: hidden;
  position: relative;
}

.metrics article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--accent);
  opacity: 0.9;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
}

.metrics strong {
  color: var(--text);
  font-size: 24px;
  letter-spacing: 0;
}

.metric-card {
  min-height: 154px;
  align-content: start;
}

.ai-metrics .metric-card strong {
  overflow-wrap: anywhere;
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.metric-icon,
.source-dot,
.empty-state i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-style: normal;
  font-weight: 700;
}

.metric-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 12px;
}

.metric-icon-visitors {
  background: #dff3ef;
  color: #106a5c;
}

.metric-icon-leads {
  background: #e7efff;
  color: #315fba;
}

.metric-icon-conversions {
  background: #e4f5e9;
  color: #2f7d46;
}

.metric-icon-revenue {
  background: #fff2d6;
  color: #9a6500;
}

.metric-icon-source {
  background: #edf4f6;
  color: #52606b;
}

.metric-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 32px;
  margin-top: 8px;
}

.metric-bars i {
  display: block;
  width: 100%;
  min-width: 12px;
  border-radius: 4px 4px 0 0;
  opacity: 0.95;
}

.bar-tone-teal {
  background: var(--accent);
}

.bar-tone-blue {
  background: var(--info);
}

.bar-tone-green {
  background: var(--success);
}

.bar-tone-amber {
  background: var(--warning);
}

.bar-tone-slate {
  background: #607482;
}

.bar-step-1 {
  opacity: 0.72;
}

.bar-step-2 {
  opacity: 0.42;
}

.workspace {
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  margin-bottom: 18px;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.4fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.performance-grid {
  display: grid;
  grid-template-columns: minmax(440px, 1.1fr) minmax(360px, 0.9fr);
  gap: 18px;
  margin: 18px 0;
}

.chart-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.chart-panel-wide {
  min-height: 320px;
}

.chart-panel .panel-header select {
  width: auto;
  min-width: 126px;
}

.trend-chart,
.funnel-chart,
.page-performance-chart,
.form-performance-cards {
  min-height: 230px;
  min-width: 0;
}

.chart-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.chart-summary strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.chart-summary span,
.chart-legend span,
.funnel-stage small,
.donut-caption small {
  color: var(--muted);
  font-size: 13px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: 220px;
  overflow: visible;
}

.chart-grid line {
  stroke: #e1eaee;
  stroke-width: 1;
}

.chart-grid text,
.chart-labels text {
  fill: var(--muted);
  font-size: 11px;
}

.chart-labels text {
  text-anchor: middle;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.chart-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.funnel-chart {
  display: grid;
  gap: 13px;
  align-content: center;
}

.funnel-stage {
  display: grid;
  gap: 6px;
}

.funnel-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.funnel-stage-head strong {
  color: var(--text);
  font-size: 14px;
}

.funnel-stage-head span {
  color: var(--text);
  font-weight: 850;
}

.funnel-track {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f6;
}

.funnel-track i {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
}

.page-performance-chart {
  display: grid;
  gap: 13px;
}

.page-performance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.page-performance-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.page-performance-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.page-performance-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.page-performance-label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.page-performance-label strong {
  color: var(--text);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.page-performance-label small {
  color: var(--muted);
  font-size: 12px;
}

.page-performance-bars {
  display: grid;
  gap: 5px;
}

.page-performance-bars span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
}

.page-performance-bars i {
  display: block;
  height: 10px;
  min-width: 0;
  border-radius: 999px;
}

.page-performance-bars b {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.pageviews {
  background: var(--accent);
}

.leads {
  background: var(--info);
}

.conversions {
  background: var(--success);
}

.form-performance-cards {
  display: grid;
  gap: 12px;
}

.form-performance-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-subtle);
}

.form-performance-card > small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.form-performance-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.form-performance-head strong {
  color: var(--text);
  font-size: 14px;
}

.form-performance-head span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #dff3ef;
  color: #106a5c;
  font-size: 11px;
  font-weight: 850;
}

.form-status-ignored .form-performance-head span {
  background: #fff2d6;
  color: #9a6500;
}

.mini-funnel {
  display: grid;
  gap: 6px;
}

.mini-funnel span {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
}

.mini-funnel small,
.mini-funnel b,
.form-card-metrics small {
  color: var(--muted);
  font-size: 12px;
}

.mini-funnel i {
  display: block;
  height: 9px;
  min-width: 0;
  border-radius: 999px;
}

.mini-funnel .views {
  background: var(--accent);
}

.mini-funnel .starts {
  background: var(--info);
}

.mini-funnel .submits {
  background: #7b61ff;
}

.mini-funnel .leads {
  background: var(--success);
}

.form-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-card-metrics span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
}

.form-card-metrics strong {
  color: var(--text);
  font-size: 14px;
}

.source-graphic {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.source-donut {
  min-height: 150px;
}

.donut-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 42, 67, 0.08);
}

.donut-ring span {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: 0 0 0 1px rgba(16, 42, 67, 0.08);
}

.donut-caption {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  text-align: center;
}

.donut-caption strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.traffic-mix {
  display: grid;
  gap: 12px;
}

.mix-strip {
  display: flex;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eff2;
}

.mix-strip i {
  display: block;
  min-width: 8px;
}

.mix-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
}

.mix-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.mix-legend b {
  margin-left: auto;
  color: var(--text);
  font-weight: 700;
}

.install-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.report-grid {
  grid-template-columns: 1fr 1fr;
}

.forms-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.35fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.forms-layout .panel:first-child {
  grid-row: span 2;
}

.form-detail-panel {
  grid-column: 1 / -1;
}

.form-detail,
.form-detail-grid {
  display: grid;
  gap: 16px;
}

.form-detail-grid {
  grid-template-columns: 1fr;
}

.form-detail-grid h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 4px 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.check-list span {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.check-list li.is-complete span {
  border-color: var(--muri-teal-dark);
  background: var(--muri-teal-dark);
}

.check-list li.is-complete span::after {
  content: "";
  display: block;
  width: 8px;
  height: 4px;
  margin: 5px 0 0 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.check-list strong,
.check-list small {
  display: block;
}

.check-list small {
  color: var(--muted);
}

.visitor-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: 18px;
  min-width: 0;
}

.panel-header {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 16px;
}

.panel-header p {
  margin-top: 4px;
  line-height: 1.45;
}

.inline-control {
  min-width: 190px;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #0e2435;
  color: #edf6f4;
  border-radius: 9px;
  padding: 14px;
  margin: 0 0 16px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-grid {
  grid-template-columns: 1fr;
}

.nudge-editor {
  display: grid;
  gap: 14px;
}

.nudge-device-notice {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #bdeee1;
  border-radius: 8px;
  background: #e9fbf5;
  color: #0f3b33;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.nudge-layout {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(320px, 0.55fr);
  gap: 18px;
}

.nudge-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.nudge-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nudge-manager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-subtle);
}

.nudge-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  align-items: start;
  gap: 14px;
  border: 1px solid #d9e5ea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 42, 67, 0.12);
  padding: 14px;
}

.nudge-preview-width-full {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.nudge-preview-size-compact {
  gap: 10px;
  padding: 10px 12px;
}

.nudge-preview-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nudge-preview-icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 3px;
  border-radius: 999px;
  background: #e9fbf5;
  color: #0f6c5d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}

.nudge-preview-badge {
  justify-self: start;
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf4f7;
  color: #38606d;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.2;
  text-transform: uppercase;
}

.nudge-preview-copy strong {
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.nudge-preview-size-compact .nudge-preview-copy strong {
  font-size: 14px;
}

.nudge-preview-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.nudge-preview-copy .nudge-preview-icon {
  color: #0f6c5d;
  font-size: 17px;
  line-height: 1;
}

.nudge-preview-copy .nudge-preview-badge {
  color: #38606d;
  font-size: 11px;
  line-height: 1.2;
}

.nudge-preview-size-compact .nudge-preview-copy span {
  font-size: 12px;
}

.nudge-preview-size-compact .nudge-preview-copy .nudge-preview-icon {
  font-size: 15px;
}

.nudge-preview-size-compact .nudge-preview-copy .nudge-preview-badge {
  font-size: 10px;
}

.nudge-preview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-self: end;
  min-width: 0;
}

.nudge-preview-actions span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(220px, 38vw);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nudge-preview-trust {
  flex: 1 1 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nudge-preview-type-mobile_call .nudge-preview-copy {
  display: none;
}

.nudge-preview-type-mobile_call .nudge-preview-actions {
  grid-column: 1;
  grid-row: 1;
  justify-self: stretch;
  width: 100%;
}

.nudge-preview-type-mobile_call .nudge-preview-actions span {
  gap: 9px;
  max-width: none;
  width: 100%;
  text-align: center;
}

.nudge-preview-type-mobile_call .nudge-preview-actions span::before {
  content: "\260E";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  font-size: 17px;
  line-height: 1;
}

.nudge-preview-mobile-layout-full_width {
  grid-template-columns: minmax(0, 1fr) 32px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  padding: 12px 14px;
}

.nudge-preview-mobile-layout-full_width .nudge-preview-actions span {
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
}

.nudge-preview-mobile-layout-floating_pill {
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  max-width: 360px;
  margin-inline: auto;
  padding: 10px;
  border-radius: 999px;
}

.nudge-preview-mobile-layout-floating_pill .nudge-preview-actions span {
  min-height: 46px;
  border-radius: 999px;
  font-size: 15px;
}

.nudge-preview-mobile-layout-floating_pill .nudge-preview-actions i {
  border-radius: 999px;
}

.nudge-preview-mobile-layout-floating_circle {
  grid-template-columns: 56px 30px;
  gap: 8px;
  width: max-content;
  margin-left: auto;
  padding: 8px;
  border-radius: 999px;
}

.nudge-preview-mobile-layout-floating_circle .nudge-preview-actions {
  width: auto;
}

.nudge-preview-mobile-layout-floating_circle .nudge-preview-actions span {
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
}

.nudge-preview-mobile-layout-floating_circle .nudge-preview-actions span::before {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  font-size: 23px;
}

.nudge-preview-mobile-layout-floating_circle .nudge-preview-actions i {
  width: 30px;
  height: 30px;
  border-radius: 999px;
}

.nudge-preview-type-exit_popup {
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: start;
  padding: 22px;
  border-radius: 16px;
  background: #ffffff;
}

.nudge-preview-type-exit_popup .nudge-preview-copy {
  grid-column: 1;
  gap: 8px;
  padding-right: 4px;
}

.nudge-preview-type-exit_popup .nudge-preview-copy strong {
  font-size: 21px;
  line-height: 1.15;
}

.nudge-preview-type-exit_popup .nudge-preview-copy span {
  font-size: 14px;
  line-height: 1.45;
}

.nudge-preview-type-exit_popup .nudge-preview-actions {
  display: contents;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: stretch;
  width: 100%;
  margin-top: 4px;
}

.nudge-preview-type-exit_popup .nudge-preview-actions span {
  grid-column: 1 / -1;
  grid-row: 2;
  width: 100%;
  max-width: none;
  min-height: 44px;
  margin-top: 4px;
}

.nudge-preview-type-exit_popup .nudge-preview-trust {
  grid-column: 1 / -1;
  grid-row: 3;
  text-align: center;
}

.nudge-preview-type-exit_popup .nudge-preview-actions i {
  grid-column: 2;
  grid-row: 1;
}

.nudge-preview-exit-layout-centered_box {
  max-width: 360px;
  margin-inline: auto;
}

.nudge-preview-exit-layout-bottom_sheet {
  max-width: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-top: 34px;
}

.nudge-preview-exit-layout-side_slide {
  max-width: 330px;
  margin-left: auto;
}

.nudge-preview-size-compact .nudge-preview-actions span {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.nudge-preview-actions i {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-style: normal;
  font-size: 0;
  line-height: 1;
}

.nudge-preview-actions i::before,
.nudge-preview-actions i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.nudge-preview-actions i::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nudge-preview-actions i::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nudge-preview-theme-dark {
  background: #102a43;
  border-color: #1d4665;
}

.nudge-preview-theme-dark .nudge-preview-copy strong {
  color: #ffffff;
}

.nudge-preview-theme-dark .nudge-preview-copy span {
  color: #cfe0e8;
}

.nudge-preview-theme-dark .nudge-preview-icon,
.nudge-preview-theme-dark .nudge-preview-badge {
  background: #183a55;
  color: #d8e8ef;
}

.nudge-preview-theme-dark .nudge-preview-actions span {
  background: #36c0a8;
  color: #07251f;
}

.nudge-preview-theme-dark .nudge-preview-actions i {
  background: #183a55;
  border-color: #2d5876;
  color: #d8e8ef;
}

.nudge-preview-theme-dark .nudge-preview-trust {
  color: #cfe0e8;
}

.nudge-preview-theme-mint {
  background: #e9fbf5;
  border-color: #bdeee1;
}

.nudge-preview-theme-mint .nudge-preview-copy strong {
  color: #0f3b33;
}

.nudge-preview-theme-mint .nudge-preview-copy span {
  color: #2f655b;
}

.nudge-preview-theme-mint .nudge-preview-icon,
.nudge-preview-theme-mint .nudge-preview-badge {
  background: #d5f7ed;
  color: #0f3b33;
}

.nudge-preview-theme-mint .nudge-preview-actions i {
  background: #f8fffd;
  border-color: #bdeee1;
  color: #2f655b;
}

.nudge-preview-theme-contrast {
  background: #07151f;
  border-color: #07151f;
}

.nudge-preview-theme-contrast .nudge-preview-copy strong {
  color: #ffffff;
}

.nudge-preview-theme-contrast .nudge-preview-copy span {
  color: #d8e8ef;
}

.nudge-preview-theme-contrast .nudge-preview-icon,
.nudge-preview-theme-contrast .nudge-preview-badge {
  background: #f5c542;
  color: #07151f;
}

.nudge-preview-theme-contrast .nudge-preview-actions span {
  background: #f5c542;
  color: #07151f;
}

.nudge-preview-theme-contrast .nudge-preview-actions i {
  background: #ffffff;
  border-color: #ffffff;
  color: #07151f;
}

.nudge-preview-theme-contrast .nudge-preview-trust {
  color: #d8e8ef;
}

.nudge-rule-list {
  display: grid;
  gap: 10px;
}

.nudge-rule-list span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-subtle);
}

.nudge-rule-list strong {
  color: var(--text);
  font-size: 13px;
}

.nudge-rule-list small {
  color: var(--muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .nudge-manager {
    grid-template-columns: 1fr;
  }

  .nudge-preview {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .nudge-preview-actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
  }

  .nudge-preview-actions span {
    flex: 1;
    max-width: none;
  }

  .nudge-preview-type-mobile_call .nudge-preview-actions {
    grid-column: 1;
    justify-self: stretch;
  }

  .nudge-preview-mobile-layout-floating_circle {
    grid-template-columns: 56px 30px;
    width: max-content;
  }

  .nudge-preview-mobile-layout-floating_circle .nudge-preview-actions {
    width: auto;
  }

  .nudge-preview-mobile-layout-floating_circle .nudge-preview-actions span {
    flex: 0 0 56px;
    max-width: 56px;
  }
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-subtle);
  color: var(--text);
  font-weight: 750;
}

.toggle-row input {
  min-height: 18px;
  width: 18px;
}

.utm-builder {
  display: grid;
  gap: 16px;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.segmented-control label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
}

.segmented-control label:has(input:checked) {
  border-color: #b9e6df;
  background: var(--accent-soft);
  color: #0f665b;
}

.segmented-control button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
}

.segmented-control button.is-active {
  border-color: #b9e6df;
  background: var(--accent-soft);
  color: #0f665b;
}

.setup-notes {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.setup-code {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.setup-code pre {
  margin-bottom: 0;
}

.table-input {
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  font-size: 13px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.form-health {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.form-health-good {
  border-color: #bbe8d0;
  background: #e6f7ee;
  color: #176b45;
}

.form-health-warn {
  border-color: #f2d58d;
  background: #fff6dd;
  color: #835500;
}

.form-health-muted {
  border-color: #d6e2e8;
  background: #edf4f6;
  color: #52606b;
}

.usage-summary,
.usage-grid {
  display: grid;
  gap: 12px;
}

.usage-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.usage-summary article,
.usage-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.usage-summary article {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.usage-summary span,
.usage-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.usage-summary strong {
  font-size: 18px;
}

.usage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}

.usage-card {
  display: grid;
  gap: 12px;
  min-height: 118px;
  padding: 14px;
}

.usage-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.usage-card-head strong,
.usage-stat strong {
  font-size: 20px;
}

.usage-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef0;
}

.usage-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--muri-teal-dark);
  transition: width 0.2s ease;
}

.usage-bar i.is-near-limit {
  background: var(--warning);
}

.usage-bar i.is-over-limit {
  background: var(--danger);
}

.usage-stat {
  align-content: center;
}

.usage-warnings {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.usage-warnings p {
  padding: 10px 12px;
  border: 1px solid #f2d58d;
  border-radius: 8px;
  background: #fff6dd;
  color: #7a5100;
  font-weight: 700;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-wrap table {
  min-width: 760px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th {
  background: var(--panel-subtle);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

th:first-child {
  border-top-left-radius: 8px;
}

th:last-child {
  border-top-right-radius: 8px;
}

tbody tr {
  transition: background 0.14s ease;
}

tbody tr:hover {
  background: #f6faf9;
}

td strong,
td small {
  display: block;
}

td small {
  margin-top: 4px;
}

.table-button {
  min-height: 32px;
  padding: 0 10px;
  white-space: nowrap;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover,
.selected-row {
  background: var(--accent-soft);
}

.journey-preview {
  display: grid;
  gap: 3px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.journey-preview strong {
  color: var(--text);
  font-size: 12px;
}

.journey-preview span {
  display: block;
}

.lead-detail {
  display: grid;
  gap: 18px;
}

.lead-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
}

.lead-filter-bar label,
.lead-card-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.lead-manager-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.88fr) minmax(520px, 1.12fr);
  gap: 18px;
  align-items: start;
}

.lead-inbox-list {
  display: grid;
  gap: 12px;
  max-height: 780px;
  overflow: auto;
  padding-right: 3px;
}

.lead-inbox-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #b7cbd3;
  border-radius: 8px;
  background: #ffffff;
}

.lead-inbox-item.is-selected {
  border-left-color: var(--accent);
  background: linear-gradient(180deg, #ffffff, #f4fbf9);
  box-shadow: inset 0 0 0 1px #b9e6df;
}

.lead-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: start;
}

.lead-card-head span,
.lead-card-meta span,
.lead-detail-grid span,
.lead-field-grid span {
  min-width: 0;
}

.lead-card-head strong,
.lead-card-head small,
.lead-card-meta strong,
.lead-card-meta small {
  display: block;
}

.lead-card-head strong {
  color: var(--text);
  font-size: 15px;
}

.lead-card-head small,
.lead-card-meta small,
.lead-detail-grid small,
.lead-field-grid small {
  color: var(--muted);
  font-size: 12px;
}

.lead-score {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0f665b;
  font-size: 15px;
}

.lead-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.lead-card-meta strong,
.lead-detail-grid strong,
.lead-field-grid strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.lead-flags,
.lead-card-actions,
.lead-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.lead-contact-actions a {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  text-decoration: none;
}

.lead-flag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0f665b;
  font-size: 12px;
  font-weight: 800;
}

.lead-flag-warn {
  background: #fff1e6;
  color: #8f3a00;
}

.lead-flag-muted {
  background: #edf4f6;
  color: #506674;
}

.lead-card-controls {
  display: grid;
  grid-template-columns: minmax(130px, 0.85fr) minmax(90px, 0.55fr) minmax(0, 1.6fr);
  gap: 10px;
  align-items: end;
}

.lead-contact-card,
.lead-field-section {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.lead-contact-card h3,
.lead-field-section h3 {
  margin: 0;
  color: var(--text);
}

.lead-contact-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.lead-detail-grid,
.lead-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lead-detail-grid span,
.lead-field-grid span {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-subtle);
}

.lead-field-grid span.is-missing {
  background: #f7f9fa;
}

.lead-field-grid span.is-missing strong {
  color: var(--muted);
  font-weight: 650;
}

.lead-detail > p,
.muted-copy {
  color: var(--muted);
  margin: 0;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 18px;
  align-items: start;
}

.lead-story h3 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.lead-story p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.quality-score {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5fbf8;
  text-align: center;
}

.quality-score strong {
  display: block;
  color: var(--success);
  font-size: 34px;
  line-height: 1;
}

.quality-score small {
  color: var(--muted);
  font-weight: 700;
}

.touchpoint-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.touchpoint-strip span {
  position: relative;
  display: grid;
  min-width: 150px;
  gap: 4px;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.touchpoint-strip i {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--success);
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.touchpoint-strip strong,
.touchpoint-strip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.touchpoint-strip small {
  color: var(--muted);
}

.attribution-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.attribution-badges span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-subtle);
}

.attribution-badges small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.attribution-badges strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.journey-map {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbfb);
}

.journey-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.journey-map-head strong {
  color: var(--text);
  font-size: 15px;
}

.journey-map-head small {
  color: var(--muted);
  font-size: 12px;
}

.journey-path {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
}

.journey-node {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(120px, 1fr);
  gap: 9px;
  align-items: center;
  flex: 0 0 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.journey-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #cfe0e8;
}

.journey-node i,
.timeline-event i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.journey-node span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.journey-node strong,
.journey-node small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-node strong {
  color: var(--text);
  font-size: 13px;
}

.journey-node small {
  color: var(--muted);
  font-size: 12px;
}

.journey-node-pageview i,
.timeline-event-pageview i {
  background: var(--accent);
}

.journey-node-form i,
.timeline-event-form i {
  background: var(--info);
}

.journey-node-lead i,
.timeline-event-lead i {
  background: #7b61ff;
}

.journey-node-conversion i,
.timeline-event-conversion i {
  background: var(--success);
}

.journey-node-nudge i,
.timeline-event-nudge i {
  background: var(--warning);
  color: #2d2200;
}

.journey-node-event i,
.timeline-event-event i {
  background: #607482;
}

.visitor-tabs-panel {
  margin-bottom: 18px;
}

.journey-explorer {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(440px, 1fr) minmax(280px, 0.46fr);
  gap: 18px;
  align-items: start;
}

.journey-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.journey-filter-bar button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
}

.journey-filter-bar button.is-active {
  border-color: #b9e6df;
  background: var(--accent-soft);
  color: #0f665b;
}

.journey-explorer-list {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
}

.journey-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 7px 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.journey-list-item.is-selected {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px #b9e6df;
}

.journey-list-item span,
.journey-list-item > small {
  min-width: 0;
}

.journey-list-item strong,
.journey-list-item small {
  display: block;
}

.journey-list-item strong {
  color: var(--text);
  font-size: 14px;
}

.journey-list-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.journey-list-item b {
  grid-row: span 2;
  align-self: center;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #edf4f6;
  color: var(--text);
}

.journey-list-item.intent-hot {
  border-left-color: var(--success);
}

.journey-list-item.intent-warm {
  border-left-color: #7b61ff;
}

.journey-list-item.intent-engaged {
  border-left-color: var(--accent);
}

.journey-list-item.intent-low {
  border-left-color: #8a98a3;
}

.journey-explorer-canvas,
.journey-intent-detail {
  display: grid;
  gap: 16px;
}

.journey-explorer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 18px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.journey-explorer-hero h3 {
  margin: 4px 0 8px;
  color: var(--text);
  font-size: 22px;
}

.journey-explorer-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.intent-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf4f6;
}

.intent-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.intent-hot .intent-meter span,
.intent-meter.intent-hot span {
  background: var(--success);
}

.intent-warm .intent-meter span,
.intent-meter.intent-warm span {
  background: #7b61ff;
}

.intent-engaged .intent-meter span,
.intent-meter.intent-engaged span {
  background: var(--accent);
}

.intent-low .intent-meter span,
.intent-meter.intent-low span {
  background: #8a98a3;
}

.intent-summary {
  display: grid;
  gap: 3px;
}

.intent-summary strong {
  color: var(--text);
  font-size: 28px;
}

.intent-summary small {
  color: var(--muted);
  font-weight: 800;
}

.intent-signal-list {
  display: grid;
  gap: 9px;
}

.intent-signal-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 4px 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-subtle);
}

.intent-signal-list strong,
.intent-signal-list small {
  min-width: 0;
}

.intent-signal-list small {
  color: var(--muted);
}

.intent-signal-list b {
  grid-row: span 2;
  align-self: center;
  justify-self: end;
  color: var(--text);
}

.journey-node.intent-hot,
.timeline-event.intent-hot {
  background: #f1fbf4;
  border-color: #bee8c8;
}

.journey-node.intent-warm,
.timeline-event.intent-warm {
  background: #f6f3ff;
  border-color: #d8ccff;
}

.journey-node.intent-engaged,
.timeline-event.intent-engaged {
  background: #edf9f6;
  border-color: #b9e6df;
}

.journey-node.intent-friction,
.timeline-event.intent-friction {
  background: #fff7e6;
  border-color: #f0d28a;
}

.journey-node.intent-low,
.timeline-event.intent-low {
  background: #ffffff;
}

.lead-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.journey-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: start;
}

.lead-workflow-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.journey-grid h3,
.lead-workflow-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.lead-notes {
  display: grid;
  gap: 10px;
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-list article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.activity-list strong,
.activity-list small {
  display: block;
}

.activity-list small,
.activity-list p {
  color: var(--muted);
}

.activity-list p {
  margin: 0;
  line-height: 1.4;
}

.session-list {
  display: grid;
  gap: 10px;
}

.session-list article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.session-list strong,
.session-list small {
  display: block;
}

.session-list small,
.session-list p {
  color: var(--muted);
}

.session-list p {
  margin: 0;
  line-height: 1.4;
}

.visitor-detail {
  display: grid;
  gap: 16px;
}

.detail-summary,
.detail-stats {
  display: grid;
  gap: 6px;
}

.detail-summary strong {
  font-size: 18px;
}

.detail-summary small,
.detail-stats small {
  color: var(--muted);
}

.detail-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.visitor-detail .detail-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-stats span {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.detail-stats strong {
  display: block;
  font-size: 18px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.journey-timeline li {
  grid-template-columns: 64px 30px 1fr;
  align-items: start;
}

.journey-timeline li:not(.timeline-event) {
  grid-template-columns: 1fr;
}

.timeline time {
  color: var(--muted);
  font-size: 12px;
}

.timeline strong,
.timeline small {
  display: block;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 44px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}

.bar-row span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bar-row div {
  height: 9px;
  background: #e7eff2;
  border-radius: 999px;
  overflow: hidden;
}

.bar-row i {
  display: block;
  height: 100%;
}

.bar-row b {
  text-align: right;
}

.source-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  color: #fff;
  font-size: 10px;
}

.source-search {
  background: var(--info);
}

.source-social {
  background: #7d61c8;
}

.source-email {
  background: var(--warning);
}

.source-referral {
  background: var(--success);
}

.source-direct {
  background: #60717f;
}

.source-other {
  background: var(--accent);
}

.event-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}

.event-event {
  color: #0f665b;
  background: #eefaf7;
  border-color: #c5ebe4;
}

.event-lead {
  color: #2464b8;
  background: #edf5ff;
  border-color: #cadcf8;
}

.event-conversion {
  color: #835500;
  background: #fff6dd;
  border-color: #f2d58d;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 18px;
  border: 1px dashed #c7d7df;
  border-radius: 10px;
  background: var(--panel-subtle);
}

.empty-state i {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: #0f665b;
  font-size: 12px;
}

.empty-state strong {
  font-size: 14px;
}

.empty-state small {
  max-width: 360px;
  line-height: 1.4;
}

.client-report-hero,
.client-report-public-hero,
.pixel-manager-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #effaf8 100%);
  box-shadow: var(--shadow-sm);
}

.client-report-hero h2,
.client-report-public-hero h1,
.pixel-manager-hero h2 {
  color: var(--text);
  margin: 0 0 8px;
}

.client-report-hero p,
.client-report-public-hero p,
.pixel-manager-hero p {
  max-width: 760px;
  line-height: 1.55;
}

.pixel-manager-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 52%, #edf9f7 100%);
}

.pixel-manager-hero > span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e9fbf5;
  color: #0f665b;
  font-size: 12px;
  font-weight: 900;
}

.pixel-manager-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.pixel-health-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.pixel-health-card strong {
  overflow-wrap: anywhere;
}

.pixel-destination-card {
  display: grid;
  gap: 14px;
}

.field-help {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.pixel-rule-list span {
  background: linear-gradient(135deg, #ffffff, #f6fbfb);
}

.pixel-alert-list {
  display: grid;
  gap: 10px;
}

.pixel-alert {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 9px;
  background: var(--panel-subtle);
}

.pixel-alert strong {
  color: var(--text);
}

.pixel-alert small {
  color: var(--muted);
  line-height: 1.45;
}

.pixel-alert-ok {
  border-left-color: #168575;
}

.pixel-alert-info {
  border-left-color: #3874d8;
}

.pixel-alert-attention {
  border-left-color: #d89614;
}

.pixel-alert-critical {
  border-left-color: #c94a4a;
}

.audience-lab-pixel-table table {
  min-width: 960px;
}

.audience-lab-events-panel {
  min-width: 0;
  overflow: hidden;
}

.audience-lab-event-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
}

.audience-lab-event-card,
.audience-lab-event-empty {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-subtle);
}

.audience-lab-event-empty {
  padding: 14px;
  color: var(--muted);
}

.audience-lab-event-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.22fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.audience-lab-event-meta,
.audience-lab-event-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.audience-lab-event-main {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.65fr);
}

.audience-lab-event-card span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.audience-lab-event-card strong {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.audience-lab-event-card small,
.audience-lab-event-card em {
  min-width: 0;
  max-width: 100%;
  color: var(--text);
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.audience-lab-event-card em {
  color: var(--muted);
  font-size: 12px;
}

.client-report-actions,
.client-share-row,
.client-report-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.client-report-actions span,
.client-report-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #0f665b;
  font-size: 12px;
  font-weight: 800;
}

.client-report-settings {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.2fr);
  gap: 14px;
}

.client-report-settings label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.client-report-settings textarea {
  min-height: 92px;
  resize: vertical;
}

.client-report-section-toggles {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.client-report-section-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-subtle);
  color: var(--text);
}

.client-report-grid,
.client-report-public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.client-story-list,
.client-channel-list,
.client-report-funnel {
  display: grid;
  gap: 10px;
}

.client-story-list article,
.client-channel-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-subtle);
}

.client-story-list strong,
.client-channel-list strong {
  color: var(--text);
}

.client-story-list small,
.client-channel-list small {
  line-height: 1.45;
}

.client-channel-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.client-funnel-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.client-funnel-row span {
  display: grid;
  gap: 2px;
}

.client-funnel-row strong {
  color: var(--text);
}

.client-funnel-row i {
  display: block;
  min-width: 16px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--muri-teal-dark), var(--muri-blue));
}

.client-share-row input {
  flex: 1 1 360px;
}

.client-share-table {
  margin-top: 14px;
}

.client-share-table small {
  display: block;
  max-width: 360px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.client-report-public-body {
  min-height: 100vh;
  background: #f4f8f8;
}

.client-report-public {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 44px;
}

.client-report-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muri-ink);
  font-weight: 900;
}

.client-report-public-hero {
  display: block;
  padding: 30px;
}

.client-report-public-hero h1 {
  font-size: 38px;
  line-height: 1.1;
}

.client-report-public-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.client-report-public-metrics article,
.client-report-card,
.client-report-loading {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.client-report-public-metrics article {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.client-report-public-metrics span,
.client-report-public-metrics small {
  color: var(--muted);
}

.client-report-public-metrics strong {
  color: var(--text);
  font-size: 24px;
  overflow-wrap: anywhere;
}

.client-report-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.client-report-card h2 {
  margin: 0;
}

.client-report-footer {
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.client-report-loading {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 360px;
  padding: 28px;
  text-align: center;
}

.client-report-loading strong {
  color: var(--text);
  font-size: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 251, 251, 0.94);
  border-bottom: 1px solid rgba(12, 46, 77, 0.1);
  backdrop-filter: blur(12px);
}

.site-nav,
.hero-section,
.signal-band,
.content-section,
.feature-grid,
.cta-section,
.page-hero,
.contact-layout,
.site-footer,
.login-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muri-ink);
  font-weight: 800;
  text-decoration: none;
}

.site-brand img {
  flex: 0 0 auto;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-links a,
.footer-links a {
  color: #31546a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-links a:hover,
.footer-links a:hover {
  color: var(--muri-teal-dark);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  gap: 56px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 70px 0;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.site-eyebrow {
  color: var(--muri-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
  color: var(--muri-ink);
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.98;
  max-width: 820px;
}

.hero-copy p,
.page-hero p,
.split-section p,
.cta-section p {
  color: #39576a;
  font-size: 18px;
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--muri-teal-dark);
  border-radius: 6px;
  background: var(--muri-teal-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.secondary-site-button {
  background: #fff;
  color: var(--muri-ink);
  border-color: rgba(12, 46, 77, 0.18);
}

.attribution-visual {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(12, 46, 77, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 197, 180, 0.12), rgba(26, 113, 162, 0.08)),
    #fff;
  box-shadow: 0 18px 50px rgba(6, 24, 42, 0.12);
}

.flow-node {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(12, 46, 77, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.flow-node span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--muri-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.flow-node.active span {
  background: var(--muri-teal-dark);
}

.flow-node strong {
  color: var(--muri-ink);
  font-size: 18px;
}

.flow-node small {
  color: #577082;
}

.flow-line {
  width: 2px;
  height: 28px;
  margin-left: 36px;
  background: linear-gradient(var(--muri-teal), var(--muri-blue));
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(12, 46, 77, 0.1);
  border-radius: 8px;
  background: rgba(12, 46, 77, 0.1);
}

.signal-band article {
  display: grid;
  gap: 8px;
  padding: 24px;
  background: #fff;
}

.signal-band strong {
  color: var(--muri-navy);
  font-size: 20px;
}

.signal-band span {
  color: #4e6879;
  line-height: 1.5;
}

.content-section,
.feature-grid,
.cta-section,
.page-hero,
.contact-layout {
  padding: 76px 0 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 46px;
  align-items: start;
}

.split-section h2,
.cta-section h2 {
  color: var(--muri-ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  margin-top: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.contact-form,
.contact-panel,
.login-card {
  border: 1px solid rgba(12, 46, 77, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(6, 24, 42, 0.08);
}

.feature-grid article {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--muri-teal-dark);
  color: #fff;
  font-weight: 800;
}

.feature-grid h3 {
  color: var(--muri-navy);
  font-size: 20px;
  margin: 0;
}

.feature-grid p {
  color: #4e6879;
  line-height: 1.6;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 70px;
}

.page-hero {
  display: grid;
  gap: 14px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 78px;
}

.contact-form,
.login-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.contact-form button,
.login-card button {
  background: var(--muri-teal-dark);
  border-color: var(--muri-teal-dark);
  font-weight: 800;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-panel {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.contact-panel h2 {
  color: var(--muri-navy);
  margin: 0;
}

.contact-panel ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #4e6879;
  line-height: 1.5;
}

.login-page {
  min-height: 100vh;
}

.login-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 74px);
  padding: 44px 0;
}

.login-card {
  width: min(430px, 100%);
}

.login-card h1 {
  color: var(--muri-ink);
  font-size: 32px;
  line-height: 1.1;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 40px;
  border-top: 1px solid rgba(12, 46, 77, 0.1);
}

.site-footer p {
  max-width: 430px;
  margin-top: 10px;
  color: #577082;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .app-shell,
  .topbar,
  .workspace,
  .forms-layout,
  .visitor-layout,
  .lead-filter-bar,
  .lead-manager-layout,
  .journey-explorer,
  .journey-explorer-hero,
  .journey-grid,
  .nudge-layout,
  .pixel-manager-layout,
  .lead-workflow-grid,
  .report-grid,
  .insight-grid,
  .performance-grid,
  .source-graphic,
  .page-performance-row,
  .metrics,
  .usage-summary,
  .usage-grid,
  .setup-checklist,
  .nudge-grid,
  .pixel-health-grid,
  .client-report-grid,
  .client-report-public-grid,
  .client-report-public-metrics,
  .health-grid,
  .health-activity,
  .checklist-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding: 14px;
  }

  .nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grouped-nav {
    grid-template-columns: 1fr;
  }

  .nav-group-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav a,
  .nav-placeholder {
    justify-content: flex-start;
    padding: 9px;
  }

  .nav-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .main {
    padding: 18px;
  }

  .topbar-actions {
    grid-template-columns: 1fr;
  }

  .support-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .client-report-hero,
  .pixel-manager-hero {
    flex-direction: column;
  }

  .audience-lab-event-card,
  .audience-lab-event-main {
    grid-template-columns: 1fr;
  }

  .client-funnel-row {
    grid-template-columns: 1fr;
  }

  .client-report-settings {
    grid-template-columns: 1fr;
  }

  .lead-story,
  .lead-stats,
  .lead-card-meta,
  .lead-card-controls,
  .lead-detail-grid,
  .lead-field-grid,
  .visitor-detail .detail-stats,
  .attribution-badges {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .site-footer,
  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-section,
  .split-section,
  .feature-grid,
  .contact-layout,
  .signal-band {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 48px 0;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 42px;
  }
}
