:root {
  color-scheme: light;
  --ink: #102a2e;
  --ink-soft: #284247;
  --muted: #63777a;
  --paper: #f4f7f5;
  --panel: #ffffff;
  --line: #dbe4df;
  --accent: #cc4f35;
  --green: #147a52;
  --green-soft: #e1f3e9;
  --amber: #9a6700;
  --amber-soft: #fff3d4;
  --red-soft: #fbe6e0;
  --shadow: 0 16px 40px rgba(16, 42, 46, 0.06);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font: 1rem/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.masthead { display: flex; align-items: center; gap: 0.8rem; padding: 1rem clamp(1.25rem, 4vw, 4rem); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); }
.brand { display: flex; align-items: center; gap: 0.8rem; color: inherit; text-decoration: none; }
.brand span:last-child { display: grid; }
.brand small { color: var(--muted); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.brand strong { font-size: 1rem; letter-spacing: -0.02em; }
.brand-mark { display: grid; width: 2.65rem; aspect-ratio: 1; place-items: center; background: var(--ink); color: white; font-weight: 850; letter-spacing: -0.06em; }
.status { color: var(--muted); font-size: 0.875rem; }
.status i { display: inline-block; width: 0.55rem; height: 0.55rem; margin-right: 0.4rem; border-radius: 50%; background: #20a66a; }
main { width: min(1240px, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: 0.98; letter-spacing: -0.06em; }
h2 { margin-bottom: 0; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.1; letter-spacing: -0.035em; }
h3 { margin-bottom: 0.6rem; font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.02em; }
.eyebrow { margin-bottom: 0.55rem; color: var(--accent); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.quiet { color: var(--muted); }
.intro { padding: 2rem 0 1rem; }
.intro.compact { max-width: 850px; }
.empty-state { display: grid; grid-template-columns: 5rem 1fr; gap: 1.25rem; margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.empty-state .step { color: var(--accent); font-size: 2rem; font-weight: 850; }
.empty-state p:not(.eyebrow) { max-width: 720px; color: var(--muted); }
.empty-state code { display: block; max-width: 100%; overflow-x: auto; margin-top: 1.2rem; padding: 0.9rem 1rem; border-radius: 3px; background: var(--ink); color: #d9f3e7; font-size: 0.875rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.25rem; }
.period { display: grid; min-width: 245px; padding-left: 1rem; border-left: 3px solid var(--accent); }
.period span, .period small { color: var(--muted); font-size: 0.8rem; }
.period strong { margin: 0.1rem 0; font-size: 0.95rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.metric-card { position: relative; padding: 1.25rem; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.metric-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--ink); content: ""; }
.metric-card p { margin-bottom: 0.8rem; color: var(--muted); font-size: 0.875rem; }
.metric-card > strong { display: block; margin-bottom: 0.5rem; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -0.05em; }
.delta { display: inline-flex; align-items: center; padding: 0.15rem 0.4rem; border-radius: 2px; font-size: 0.76rem; font-weight: 750; }
.delta.good { color: var(--green); background: var(--green-soft); }
.delta.bad { color: #a63b29; background: var(--red-soft); }
.delta.neutral { color: var(--muted); background: #edf1ef; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(290px, 0.9fr); align-items: start; gap: 1rem; margin-top: 1rem; }
.data-quality-panel { margin-top: 1rem; }
.quality-label { padding: 0.25rem 0.55rem; background: #edf1ef; color: var(--muted); font-size: 0.72rem; font-style: normal; font-weight: 750; }
.quality-label.good { color: var(--green); background: var(--green-soft); }
.quality-label.degraded { color: var(--amber); background: var(--amber-soft); }
.quality-label.suspected-tracking-issue, .quality-label.stale, .quality-label.insufficient { color: #9a2f20; background: var(--red-soft); }
.quality-label.compact { margin-left: auto; white-space: nowrap; }
.quality-summary { margin: 0; padding: 0.9rem 1.5rem; color: var(--ink-soft); font-size: 0.88rem; }
.source-health { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-health > div { display: grid; gap: 0.1rem; padding: 0.85rem 1rem; border-right: 1px solid var(--line); }
.source-health > div:last-child { border-right: 0; }
.source-health small, .source-health span { color: var(--muted); font-size: 0.67rem; }
.source-health strong { font-size: 0.85rem; }
.event-health { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; padding: 0.8rem 1.5rem; }
.event-health > strong { margin-right: 0.3rem; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.event-health span { padding: 0.2rem 0.45rem; background: #edf3f0; color: var(--ink-soft); font-size: 0.7rem; }
.quality-findings { padding: 0 1.5rem 0.8rem; }
.quality-findings p { margin: 0.35rem 0; color: var(--ink-soft); font-size: 0.78rem; }
.quality-findings .severity { margin-right: 0.35rem; font-size: 0.65rem; font-weight: 750; text-transform: uppercase; }
.priority-panel { margin-top: 1rem; }
.priority-list { display: grid; }
.priority-card { min-width: 0; padding: 1.35rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line); }
.priority-card:last-child { border-bottom: 0; }
.priority-card header { display: flex; align-items: baseline; gap: 0.65rem; margin-bottom: 1rem; }
.priority-card header span { color: var(--accent); font-size: 0.78rem; font-weight: 850; }
.priority-card header h3 { margin: 0; }
.priority-card header .quality-label + .status-label { margin-left: 0; }
.status-label { margin-left: auto; padding: 0.2rem 0.5rem; background: #edf1ef; color: var(--muted); font-size: 0.72rem; font-style: normal; font-weight: 750; }
.status-label.high, .status-label.critical { color: #9a2f20; background: var(--red-soft); }
.status-label.medium { color: var(--amber); background: var(--amber-soft); }
.status-label.low, .status-label.info { color: var(--green); background: var(--green-soft); }
.funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); }
.funnel-stage { position: relative; display: grid; align-content: start; min-height: 128px; padding: 0.9rem; border-right: 1px solid var(--line); }
.funnel-stage:last-child { border-right: 0; }
.funnel-stage:not(:last-child)::after { position: absolute; z-index: 1; top: 50%; right: -0.45rem; width: 0.75rem; height: 0.75rem; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: white; content: ""; transform: translateY(-50%) rotate(45deg); }
.funnel-stage small { color: var(--muted); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; }
.funnel-stage strong { margin: 0.25rem 0 0; font-size: 1.25rem; letter-spacing: -0.035em; }
.funnel-stage strong i { color: var(--muted); font-style: normal; font-weight: 400; }
.funnel-stage .previous { margin-bottom: 0.4rem; color: var(--muted); font-size: 0.7rem; }
.funnel-stage .delta { justify-self: start; margin-top: auto; }
.commercial-stage { background: #f8fbf9; }
.funnel-context { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.7rem 0; color: var(--muted); font-size: 0.75rem; }
.funnel-context strong { color: var(--ink-soft); }
.priority-diagnostic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr); gap: 0.35rem 1.5rem; margin-top: 0.3rem; padding: 1rem; border-left: 3px solid var(--accent); background: #fbfcfb; }
.priority-diagnostic .finding-meta, .priority-diagnostic h3, .priority-diagnostic > p, .priority-diagnostic > small { grid-column: 1; }
.priority-diagnostic h3 { margin: 0; }
.priority-diagnostic > p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.priority-diagnostic > small { color: var(--muted); }
.priority-diagnostic .confidence-note { grid-column: 1; padding: 0.45rem 0.6rem; background: var(--amber-soft); color: var(--amber); }
.priority-diagnostic .recommendation { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; }
.priority-diagnostic .drilldown-link { grid-column: 1; }
.scope-note { margin: 0; padding: 0.9rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.action-queue-panel { margin-top: 1rem; }
.action-queue { margin: 0; padding: 0; list-style: none; }
.action-queue li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.action-queue li:last-child { border-bottom: 0; }
.action-rank { color: var(--accent); font-size: 1.1rem; font-weight: 850; }
.action-queue h3 { margin-bottom: 0.35rem; }
.action-queue p { margin-bottom: 0.8rem; color: var(--ink-soft); }
.drilldown-link { justify-self: start; color: var(--accent); font-size: 0.8rem; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.back-link { color: var(--muted); font-size: 0.82rem; font-weight: 700; text-decoration-color: #a9bbb3; text-underline-offset: 3px; }
.detail-page { width: min(1380px, calc(100% - 2.5rem)); }
.detail-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.detail-heading h1 { font-size: clamp(2rem, 4vw, 3.8rem); }
.diagnostic-summary { padding: clamp(1.25rem, 3vw, 2rem); }
.diagnostic-summary > p { max-width: 900px; color: var(--ink-soft); }
.diagnostic-summary .recommendation { max-width: 900px; }
.evidence-list { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-soft); }
.evidence-list li + li { margin-top: 0.25rem; }
.uncertainty { padding: 0.7rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.confidence-note { color: var(--amber); font-size: 0.82rem; }
.quality-context { max-width: 900px; margin-bottom: 1rem; padding: 0.8rem 1rem; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.quality-context > strong { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.quality-context p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.track-action { display: flex; align-items: center; gap: 0.8rem; margin-top: 1rem; }
button { padding: 0.65rem 0.9rem; border: 0; border-radius: 2px; background: var(--ink); color: white; font: inherit; font-size: 0.8rem; font-weight: 750; cursor: pointer; }
button:hover { background: var(--ink-soft); }
button.secondary { border: 1px solid var(--line); background: white; color: var(--muted); }
.access-page { width: min(920px, calc(100% - 2.5rem)); }
.access-section { margin-top: 1rem; padding: 1.5rem; }
.access-section h2 { margin-bottom: 1rem; }
.access-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr) auto; gap: 0.75rem; align-items: end; }
.access-form label { display: grid; gap: 0.3rem; font-size: 0.82rem; font-weight: 700; }
.access-form input, .access-form select, .access-grants select { width: 100%; min-height: 2.75rem; padding: 0.55rem; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; }
.access-row { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.access-row > div:first-child { display: grid; min-width: 0; overflow-wrap: anywhere; }
.access-row small { color: var(--muted); }
.access-grants { display: grid; gap: 0.5rem; width: min(100%, 440px); }
.access-grants form { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.access-grants form span { font-size: 0.85rem; }
.access-grants button, .access-row > form button { white-space: nowrap; }
.access-notice { padding: 0.85rem 1rem; background: var(--green-soft); color: var(--green); }
.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; }
@media (max-width: 680px) { .access-form { grid-template-columns: 1fr; } .access-row { display: grid; } .access-grants { width: 100%; } }
.track-action small { color: var(--muted); }
.actions-panel { margin-top: 1rem; }
.action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-list article { position: relative; padding: 1.15rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.action-list article:nth-child(even) { border-right: 0; }
.action-list h3 { margin-bottom: 0.35rem; }
.action-list h3 a { text-decoration-color: #a9bbb3; text-underline-offset: 3px; }
.action-list p { margin-bottom: 0.5rem; color: var(--ink-soft); font-size: 0.85rem; }
.action-list > article > small { color: var(--muted); }
.action-status, .impact-label { padding: 0.18rem 0.45rem; background: #edf1ef; }
.impact-label { display: inline-block; margin-top: 0.65rem; color: var(--green); font-size: 0.72rem; font-weight: 750; }
.ready-actions, .completed-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }
.ready-actions > strong, .completed-actions > strong { grid-column: 1 / -1; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.ready-actions a, .completed-actions a { display: grid; padding: 0.7rem; background: var(--green-soft); text-decoration: none; }
.ready-actions span, .completed-actions span { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; }
.ready-actions small, .completed-actions small { color: var(--muted); }
.action-state { display: grid; min-width: 230px; padding-left: 1rem; border-left: 3px solid var(--accent); }
.action-state span, .action-state small { color: var(--muted); font-size: 0.8rem; }
.action-summary { padding: 1.5rem; }
.action-summary > p, .snapshot-copy > p { color: var(--ink-soft); }
.expected-metrics { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1rem 0; }
.expected-metrics > strong { width: 100%; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
.expected-metrics span { padding: 0.22rem 0.5rem; background: #edf3f0; font-size: 0.75rem; }
.lifecycle-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.lifecycle-actions > strong { margin-right: 0.4rem; font-size: 0.75rem; text-transform: uppercase; }
.lifecycle-grid, .baseline-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lifecycle-grid > div, .baseline-grid > div { display: grid; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lifecycle-grid small, .baseline-grid small { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; }
.evaluate-action { padding: 1rem 1.5rem; }
.snapshot-copy { padding: 1.25rem 1.5rem; }
.impact-list article { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.impact-list article:last-child { border-bottom: 0; }
.impact-list article > p { color: var(--ink-soft); }
.impact-changes { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.impact-changes span { display: grid; min-width: 145px; padding: 0.55rem 0.7rem; background: #f4f7f5; }
.impact-changes small { color: var(--muted); }
.detail-section { margin-top: 1rem; }
.detail-funnel { margin: 1rem; }
.candidate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.candidate-list article { padding: 1.25rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.candidate-list article:nth-child(even) { border-right: 0; }
.candidate-list article > p { margin: 0; color: var(--ink-soft); font-size: 0.86rem; }
.detail-section td:first-child small { color: var(--muted); white-space: normal; }
.analytics-panel { margin-top: 1rem; }
.analytics-grid { grid-template-columns: repeat(5, 1fr); padding: 1rem; }
.analytics-grid .metric-card::before { background: var(--green); }
.tracked-events { display: grid; gap: 0.65rem; padding: 1rem 1.5rem 1.25rem; border-top: 1px solid var(--line); }
.tracked-events > strong { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tracked-events > div { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tracked-events span { padding: 0.25rem 0.5rem; background: #edf3f0; color: var(--ink-soft); font-size: 0.76rem; }
.panel { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 0.35rem; }
.count { color: var(--muted); font-size: 0.8rem; }
.finding { padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.finding:last-child { border-bottom: 0; }
.finding > p { margin-bottom: 1rem; color: var(--ink-soft); }
.finding-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.65rem; color: var(--muted); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.06em; text-transform: uppercase; }
.severity { padding: 0.18rem 0.45rem; border-radius: 2px; }
.severity.high { color: #9a2f20; background: var(--red-soft); }
.severity.critical { color: #721c12; background: #f7d5cb; }
.severity.medium { color: var(--amber); background: var(--amber-soft); }
.severity.low, .severity.info { color: var(--green); background: var(--green-soft); }
.commercial-priority { color: var(--ink); }
.recommendation { padding: 0.9rem 1rem; border-left: 3px solid var(--green); background: #f1f8f4; }
.recommendation strong { font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.recommendation p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.panel > .quiet { margin: 0; padding: 1.5rem; }
.opportunities ol { margin: 0; padding: 0; list-style: none; }
.opportunities li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.opportunities li:last-child { border-bottom: 0; }
.opportunities li > span { color: var(--accent); font-weight: 800; }
.opportunities li div { display: grid; gap: 0.2rem; }
.opportunities small { color: var(--muted); font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; }
.opportunities strong { font-size: 0.9rem; line-height: 1.35; }
.table-panel { margin-top: 1rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th, td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th { color: var(--muted); background: #f9fbfa; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
th:first-child, td:first-child { max-width: 360px; text-align: left; overflow: hidden; text-overflow: ellipsis; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfb; }
td a { text-decoration-color: #a9bbb3; text-underline-offset: 3px; }
.product-nav { display: flex; flex: 1; align-items: center; gap: 0.2rem; min-width: 0; overflow-x: auto; }
.product-nav a { padding: 0.55rem 0.7rem; border-bottom: 2px solid transparent; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.product-nav a:hover, .product-nav a.active { border-color: var(--accent); color: var(--ink); }
.business-switcher { position: relative; flex: 0 0 auto; min-width: 150px; }
.business-switcher summary { max-width: 205px; padding: 0.45rem 0.65rem; overflow: hidden; border: 1px solid var(--line); color: var(--ink); cursor: pointer; font-size: 0.8rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.business-switcher[open] summary { border-color: var(--green); }
.business-switcher nav { position: absolute; z-index: 10; top: calc(100% + 0.25rem); left: 0; display: grid; min-width: max(240px, 100%); max-width: min(340px, 90vw); padding: 0.35rem; border: 1px solid var(--line); background: white; box-shadow: var(--shadow); }
.business-switcher nav a, .business-switcher nav span { padding: 0.6rem 0.7rem; overflow-wrap: anywhere; font-size: 0.8rem; text-decoration: none; }
.business-switcher nav a:hover, .business-switcher nav a[aria-current] { background: var(--green-soft); }
.business-switcher nav .switcher-add { border-top: 1px solid var(--line); color: var(--accent); font-weight: 750; }
.add-business-link { flex: 0 0 auto; padding: 0.55rem 0.75rem; border: 1px solid var(--ink); color: var(--ink); font-size: 0.78rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.add-business-link:hover, .add-business-link.active { background: var(--ink); color: white; }
.masthead a:focus-visible, .business-switcher summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.operator-page .page-heading { align-items: end; }
.operator-page .page-heading .primary-link { flex: 0 0 auto; }
.operator-note { margin: -0.4rem 0 1.2rem; color: var(--muted); font-size: 0.85rem; }
.operator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.operator-card { min-width: 0; }
.operator-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--line); }
.operator-card-heading h2 { font-size: 1.4rem; }
.operator-card-heading .eyebrow { overflow-wrap: anywhere; }
.operator-sources { display: grid; }
.operator-source { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.25rem 0.7rem; padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--line); }
.operator-source > div { display: grid; min-width: 0; }
.operator-source strong { font-size: 0.88rem; }
.operator-source small { color: var(--muted); font-size: 0.72rem; overflow-wrap: anywhere; }
.operator-source > small { grid-column: 1 / -1; }
.connection-state { flex: 0 0 auto; padding: 0.25rem 0.5rem; background: #edf1ef; color: var(--muted); font-size: 0.72rem; font-weight: 750; white-space: nowrap; }
.connection-state.current, .connection-state.data-current { background: var(--green-soft); color: var(--green); }
.connection-state.delayed, .connection-state.data-delayed { background: var(--amber-soft); color: var(--amber); }
.connection-state.stale, .connection-state.refresh-needed { background: var(--red-soft); color: #9a2f20; }
.connection-state.no-data, .connection-state.not-configured, .connection-state.setup-needed, .connection-state.collection-needed { background: var(--amber-soft); color: var(--amber); }
.connection-state.healthy, .operations-state.healthy { background: var(--green-soft); color: var(--green); }
.connection-state.warning, .operations-state.warning { background: var(--amber-soft); color: var(--amber); }
.connection-state.critical, .operations-state.critical { background: var(--red-soft); color: #9a2f20; }
.connection-state.unknown, .operations-state.unknown { background: #edf1ef; color: var(--muted); }
.operations-state.stale { background: var(--red-soft); color: #9a2f20; }
.operator-next-step { margin: 0; padding: 0.9rem 1.5rem 0; color: var(--ink-soft); font-size: 0.82rem; }
.operator-card-actions { display: flex; gap: 1rem; padding: 1rem 1.5rem; }
.operator-card-actions a { color: var(--accent); font-size: 0.8rem; font-weight: 750; text-underline-offset: 3px; }
.operator-empty { padding: 1.5rem; }
.operator-empty p { color: var(--muted); }
.operator-operations { border-top: 1px solid var(--line); }
.operations-banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; padding: 1rem 1.5rem; }
.operations-banner > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; }
.operations-banner .eyebrow { flex-basis: 100%; margin: 0; }
.operations-banner strong { font-size: 1rem; }
.operations-banner span { color: var(--muted); font-size: 0.82rem; }
.operations-banner a { flex: 0 0 auto; }
.operations-state { align-self: flex-start; padding: 0.35rem 0.65rem; font-size: 0.8rem; font-weight: 800; }
.operations-intro { padding: 1.25rem 1.5rem; }
.operations-intro > p:first-child { margin-bottom: 0.7rem; color: var(--ink-soft); }
.operations-timestamps { display: flex; flex-wrap: wrap; gap: 0.35rem 1.3rem; color: var(--muted); font-size: 0.78rem; }
.operations-timestamps strong { color: var(--ink-soft); }
.operations-error { margin: 0.8rem 0 0; color: #9a2f20; font-size: 0.82rem; }
.operations-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.8rem; margin: 1rem 0; }
.operations-metrics section { min-width: 0; padding: 1rem; }
.operations-metrics small { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.operations-metrics strong { display: block; margin: 0.3rem 0; font-size: 1.45rem; letter-spacing: -0.04em; }
.operations-metrics p { margin: 0; color: var(--muted); font-size: 0.73rem; }
.operations-section { margin-top: 1rem; }
.operations-issue { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem; border-top: 1px solid var(--line); }
.operations-issue h3 { display: inline; margin-left: 0.5rem; font-size: 1rem; }
.operations-issue p { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 0.82rem; }
.operations-issue > small { color: var(--muted); }
.operations-issue form, .operations-issue a { flex: 0 0 auto; }
.operations-trend { display: inline-block; margin-left: 0.6rem; padding: 0.2rem 0.45rem; background: #edf1ef; color: var(--ink-soft); font-size: 0.68rem; font-weight: 750; text-transform: uppercase; }
.operations-trend.new, .operations-trend.continuing { background: var(--amber-soft); color: var(--amber); }
.operations-trend.apparently-cleared { background: var(--green-soft); color: var(--green); }
.operations-trend.unverified, .operations-trend.reported { background: var(--red-soft); color: #9a2f20; }
.operations-history-note { margin: 0; padding: 0.8rem 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; }
.operations-empty { padding: 1rem 1.5rem; }
.operations-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.5rem; border-top: 1px solid var(--line); font-size: 0.82rem; }
.operations-list span { color: var(--muted); }
.operations-detail-copy { padding: 0 1.5rem; color: var(--ink-soft); }
.operations-detail-copy:first-of-type { padding-top: 1rem; }
.operations-detail-copy:last-child { padding-bottom: 1rem; }
.welcome-hero { max-width: 850px; padding: clamp(2rem, 8vw, 7rem) 0; }
.welcome-hero > p:not(.eyebrow), .page-intro, .onboarding-heading > p:not(.eyebrow) { max-width: 720px; margin-top: 1.2rem; color: var(--muted); }
.primary-link { display: inline-flex; margin-top: 1rem; padding: 0.7rem 0.95rem; border-radius: 2px; background: var(--ink); color: white; font-size: 0.82rem; font-weight: 750; text-decoration: none; }
.primary-link.compact { margin: 1rem 1.25rem 1.25rem; }
.text-link { color: var(--accent); font-size: 0.8rem; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-actions { display: flex; align-items: center; gap: 1rem; }
.executive-main { padding-top: clamp(1.25rem, 2.4vw, 2rem); }
.executive-hero { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; padding: 0 0 1.35rem; }
.executive-hero h1 { max-width: 780px; font-size: clamp(1.9rem, 3.7vw, 3.35rem); line-height: 1.02; }
.executive-hero h1 span { color: var(--accent); }
.executive-hero > div:first-child > p:last-child { margin: 0.65rem 0 0; color: var(--muted); font-size: 0.9rem; }
.executive-counts { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); min-width: 360px; border: 1px solid var(--line); background: var(--panel); }
.executive-counts div { display: grid; padding: 0.75rem 0.85rem; border-right: 1px solid var(--line); }
.executive-counts div:last-child { border-right: 0; }
.executive-counts strong { font-size: 1.4rem; line-height: 1; }
.executive-counts span { margin-top: 0.35rem; color: var(--muted); font-size: 0.66rem; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 0.8fr); align-items: start; gap: 1rem; }
.overview-side { display: grid; gap: 1rem; }
.attention-item { padding: 1.35rem 1.5rem; border-bottom: 1px solid var(--line); }
.attention-item:last-child { border-bottom: 0; }
.attention-item > p { margin-bottom: 1rem; color: var(--ink-soft); }
.recommendation-state { margin-left: auto; padding: 0.18rem 0.45rem; background: #edf1ef; color: var(--muted); font-size: 0.68rem; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase; }
.recommendation-state.awaiting-decision { color: var(--amber); background: var(--amber-soft); }
.recommendation-state.underway, .recommendation-state.completed { color: var(--green); background: var(--green-soft); }
.recommendation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 0.8rem; }
.recommendation-actions form { margin: 0; }
.recommendation-actions .drilldown-link { margin-left: auto; }
.positive-item { display: grid; grid-template-columns: 2rem 1fr; gap: 0.7rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.positive-item:last-child { border-bottom: 0; }
.positive-item > span { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 800; }
.positive-item p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.8rem; }
.snapshot-counts { display: grid; grid-template-columns: 1fr 1fr; }
.snapshot-counts a { display: grid; padding: 1rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.snapshot-counts a:nth-child(even) { border-right: 0; }
.snapshot-counts strong { font-size: 1.5rem; }
.snapshot-counts span { color: var(--muted); font-size: 0.72rem; }
.overview-priorities, .recent-impact { margin-top: 1rem; }
.compact-priority-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-priority { display: grid; grid-template-columns: 1fr auto; gap: 0.7rem; min-width: 0; padding: 1.2rem; border-right: 1px solid var(--line); text-decoration: none; }
.compact-priority:last-child { border-right: 0; }
.compact-priority > div:first-child { display: flex; align-items: baseline; gap: 0.55rem; }
.compact-priority > div:first-child small { color: var(--accent); font-weight: 850; }
.compact-priority > p, .compact-priority > .trend-row { grid-column: 1 / -1; }
.compact-priority > p { margin: 0; color: var(--ink-soft); font-size: 0.84rem; }
.summary-status { align-self: start; padding: 0.25rem 0.5rem; background: #edf1ef; color: var(--muted); font-size: 0.7rem; font-weight: 750; white-space: nowrap; }
.summary-status.needs-attention { color: #9a2f20; background: var(--red-soft); }
.summary-status.measurement-concern { color: var(--amber); background: var(--amber-soft); }
.summary-status.opportunity, .summary-status.healthy, .summary-status.healthy-with-opportunities { color: var(--green); background: var(--green-soft); }
.summary-status.large, .quality-label.large { padding: 0.45rem 0.7rem; font-size: 0.78rem; }
.trend-row { display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem; color: var(--muted); font-size: 0.68rem; }
.positive { color: var(--green); }
.negative { color: #a63b29; }
.neutral { color: var(--muted); }
.recent-impact > a { display: block; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.recent-impact > a span { margin-left: 0.5rem; color: var(--green); font-size: 0.75rem; }
.recent-impact > a p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.82rem; }
.period-note { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.75rem; }
.priority-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.priority-summary-card header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid var(--line); }
.priority-summary-card header small { color: var(--accent); font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.priority-summary-card > .quiet { padding: 1rem 1.25rem 0; }
.trend-summary { display: grid; grid-template-columns: repeat(3, 1fr); }
.trend-summary.large { grid-template-columns: repeat(4, 1fr); }
.trend-summary > div { display: grid; padding: 1rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trend-summary > div:last-child { border-right: 0; }
.trend-summary small { color: var(--muted); font-size: 0.68rem; }
.priority-callout { padding: 1.2rem 1.25rem 0; }
.priority-decision .recommendation.wide { margin: 1.25rem; }
.priority-decision > .drilldown-link { margin: 0 1.25rem 1.25rem; }
.signal-row { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.signal-row:last-child { border-bottom: 0; }
.signal-row > p { color: var(--ink-soft); }
.event-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.event-grid > div { display: grid; padding: 1rem 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.event-grid > div:nth-child(even) { border-right: 0; }
.event-grid span, .event-grid small { color: var(--muted); }
.action-section, .ready-section { margin-top: 1rem; }
.action-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-page-card { display: grid; gap: 0.45rem; padding: 1.2rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.action-page-card:nth-child(even) { border-right: 0; }
.action-page-card.ready { background: #f1f8f4; }
.action-page-card > div { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; }
.action-page-card em { padding: 0.15rem 0.4rem; background: #edf1ef; font-style: normal; }
.action-page-card p { margin: 0; color: var(--ink-soft); font-size: 0.83rem; }
.action-page-card small { color: var(--muted); }
.implementation-date { display: grid; gap: 0.2rem; }
.implementation-date span { color: var(--muted); font-size: 0.68rem; }
.action-edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.25rem 1.5rem; }
.action-edit-form label, .profile-form label { display: grid; gap: 0.35rem; }
.action-edit-form label > span, .profile-form label > span { color: var(--muted); font-size: 0.72rem; font-weight: 700; }
.action-edit-form .wide, .profile-form .wide { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 0.65rem 0.7rem; border: 1px solid var(--line); border-radius: 2px; background: white; color: var(--ink); font: inherit; font-size: 0.86rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 2px solid var(--green-soft); }
.onboarding-heading { max-width: 850px; margin-bottom: 2rem; }
.onboarding-heading h1 { font-size: clamp(2.25rem, 5vw, 4.6rem); }
.form-section { margin-top: 1rem; }
.form-section .section-heading p:last-child { margin: 0.45rem 0 0; color: var(--muted); font-size: 0.82rem; }
.form-grid { display: grid; gap: 1rem; padding: 1.25rem 1.5rem; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.form-grid.three { grid-template-columns: repeat(2, 1fr); }
.profile-form label small { color: var(--muted); font-size: 0.68rem; }
.repeater { display: grid; }
.repeater-actions { display: flex; justify-content: flex-end; padding: 1rem 1.5rem; }
.repeat-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 0; padding: 1.3rem 1.5rem 1.5rem; border: 0; border-bottom: 1px solid var(--line); }
.outcome-form-row { grid-template-columns: repeat(4, 1fr); }
.repeat-row legend { padding: 0 0.35rem; color: var(--accent); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.row-controls { position: absolute; top: 0.6rem; right: 1.5rem; display: flex; gap: 0.6rem; }
.row-controls button { padding: 0.2rem; background: transparent; color: var(--muted); font-size: 0.7rem; }
.row-controls button:hover { background: transparent; color: var(--ink); }
.row-controls .remove-row:hover { color: #a63b29; }
.event-mapping-list article { display: grid; grid-template-columns: minmax(180px, 0.35fr) 1fr; gap: 1rem; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); }
.event-mapping-list article:last-child { border-bottom: 0; }
.event-mapping-list article > div:first-child { display: grid; align-content: start; }
.event-mapping-list article > div:first-child span { color: var(--muted); font-size: 0.72rem; }
.event-options { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.profile-form label.event-choice { display: flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.55rem; border: 1px solid var(--line); background: white; }
.profile-form label.event-choice input { width: auto; margin: 0; }
.profile-form label.event-choice > span { color: var(--ink-soft); font-size: 0.76rem; font-weight: 650; }
.profile-form label.event-choice.unobserved { border-color: #ecd999; background: var(--amber-soft); }
.profile-form label.event-choice small { color: var(--amber); }
.form-actions { position: sticky; z-index: 3; bottom: 0; display: flex; justify-content: end; gap: 0.6rem; padding: 1rem 0; background: linear-gradient(transparent, var(--paper) 25%); }
.form-message { display: flex; gap: 0.8rem; margin: 1rem 0; padding: 0.9rem 1rem; border-left: 3px solid var(--green); background: var(--green-soft); }
.form-message.error { border-color: #a63b29; background: var(--red-soft); }
.connection-grid { display: grid; grid-template-columns: 1fr 1fr; }
.connection-grid > div { display: grid; gap: 0.2rem; padding: 1rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.connection-grid > div:last-child { border-right: 0; }
.connection-grid small, .connection-grid span, .connection-grid em { color: var(--muted); font-size: 0.72rem; font-style: normal; }
.validation-grid { display: grid; grid-template-columns: 1fr 1fr; }
.validation-grid > div { padding: 1.2rem 1.5rem; border-right: 1px solid var(--line); }
.validation-grid > div:last-child { border-right: 0; }
.validation-row { display: grid; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.validation-row span, .validation-row small { color: var(--muted); font-size: 0.72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.observed-events, .validation-warnings, .validation-success { margin: 0; padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.observed-events p, .validation-warnings ul { margin: 0.4rem 0 0; color: var(--muted); font-size: 0.8rem; }
.validation-warnings { background: var(--amber-soft); color: var(--amber); }
.operator-guide { margin-top: 1rem; }
.operator-guide ol { margin: 0; padding: 1.2rem 1.5rem 1.2rem 3rem; }
.operator-guide li + li { margin-top: 0.65rem; }
.operator-guide code { padding: 0.15rem 0.3rem; background: #edf1ef; }
footer { padding: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 0.75rem; }
@media (max-width: 1100px) { .masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; } .product-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; } .overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .funnel { grid-template-columns: repeat(3, 1fr); } .funnel-stage:nth-child(3) { border-right: 0; } .funnel-stage:nth-child(3)::after { display: none; } .source-health { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .executive-hero { align-items: start; flex-direction: column; } .executive-counts { width: 100%; } .compact-priority-grid, .priority-summary-grid, .operator-grid { grid-template-columns: 1fr; } .compact-priority { border-right: 0; border-bottom: 1px solid var(--line); } .metric-grid, .analytics-grid { grid-template-columns: repeat(2, 1fr); } .content-grid { grid-template-columns: 1fr; } .priority-diagnostic { grid-template-columns: 1fr; } .priority-diagnostic .recommendation { grid-column: 1; grid-row: auto; } .lifecycle-grid, .baseline-grid, .trend-summary.large { grid-template-columns: repeat(2, 1fr); } .repeat-row, .outcome-form-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .operations-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .operations-banner, .operations-issue, .operations-list > div { align-items: flex-start; flex-direction: column; } .operations-metrics { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .masthead { grid-template-columns: minmax(0, 1fr) auto; } .brand { grid-column: 1 / -1; } .business-switcher { grid-column: 1; grid-row: 2; } .add-business-link { grid-column: 2; grid-row: 2; } .product-nav { grid-row: 3; } .status { display: none; } .page-heading, .detail-heading { align-items: start; flex-direction: column; } .period { min-width: 0; } .metric-grid { grid-template-columns: 1fr 1fr; } .empty-state { grid-template-columns: 1fr; } .candidate-list, .action-list, .action-page-grid, .event-grid { grid-template-columns: 1fr; } .candidate-list article, .action-list article, .action-page-card, .event-grid > div { border-right: 0; } .source-health, .connection-grid, .validation-grid, .form-grid.two, .form-grid.three { grid-template-columns: 1fr; } .source-health > div, .connection-grid > div, .validation-grid > div { border-right: 0; border-bottom: 1px solid var(--line); } .priority-card header { flex-wrap: wrap; } .quality-label.compact { margin-left: 0; } .status-label { margin-left: auto; } .ready-actions, .completed-actions { grid-template-columns: 1fr; } .lifecycle-grid, .baseline-grid { grid-template-columns: repeat(2, 1fr); } .event-mapping-list article { grid-template-columns: 1fr; } .product-nav { padding-bottom: 0.25rem; } }
@media (max-width: 650px) { .funnel { grid-template-columns: repeat(2, 1fr); } .funnel-stage:nth-child(3) { border-right: 1px solid var(--line); } .funnel-stage:nth-child(3)::after { display: block; } .funnel-stage:nth-child(even) { border-right: 0; } .funnel-stage:nth-child(even)::after { display: none; } }
@media (max-width: 420px) { main { width: min(100% - 1.5rem, 1240px); } .metric-grid { grid-template-columns: 1fr; } .section-heading, .finding { padding: 1.1rem; } }
/* Account access */
.login-main { min-height: calc(100vh - 100px); display: grid; place-items: center; padding: 2rem 1rem; }
.login-panel { width: min(100%, 420px); padding: clamp(1.5rem, 4vw, 2.25rem); }
.login-panel form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.login-panel label { display: grid; gap: .4rem; }
.login-panel input { width: 100%; }
.login-panel button { justify-self: start; }
.form-error { color: #9f273c; font-weight: 700; }
.sign-out-form { display: inline-flex; margin-left: auto; }
.sign-out-form button { background: transparent; color: inherit; border: 1px solid currentColor; }
