:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --ink: #121820;
    --ink-soft: #35404c;
    --muted: #707986;
    --line: #e3e7ec;
    --line-strong: #cbd3dc;
    --primary: #0d6b64;
    --primary-strong: #084b46;
    --clay: #8b5e34;
    --violet: #5b55a4;
    --danger: #b42318;
    --success: #087443;
    --warning: #a15c07;
    --shadow: 0 1px 2px rgba(18, 24, 32, 0.04), 0 10px 28px rgba(18, 24, 32, 0.04);
    --shadow-soft: 0 1px 2px rgba(18, 24, 32, 0.05);
}

/* Light analytics theme: keep the analytics layouts, but use LeadTack's app palette. */
.command-dashboard,
.stats-board,
.site-stats-board {
    background: transparent;
    color: var(--ink);
    margin: 0;
    min-height: auto;
    padding: 0;
}

.command-dashboard.is-loading,
.stats-board.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.command-heading h1,
.stats-board-heading h1,
.site-stats-heading h1 {
    color: var(--ink);
}

.dashboard-glyph {
    background:
        linear-gradient(var(--primary) 0 0) 0 0 / 6px 6px no-repeat,
        linear-gradient(var(--primary) 0 0) 10px 0 / 6px 6px no-repeat,
        linear-gradient(var(--primary) 0 0) 0 10px / 6px 6px no-repeat,
        linear-gradient(var(--primary) 0 0) 10px 10px / 6px 6px no-repeat;
}

.stats-glyph {
    border-color: var(--primary);
}

.stats-glyph,
.stats-glyph::before,
.stats-glyph::after {
    background:
        linear-gradient(var(--primary) 0 0) 0 9px / 4px 6px no-repeat,
        linear-gradient(var(--primary) 0 0) 7px 4px / 4px 11px no-repeat,
        linear-gradient(var(--primary) 0 0) 14px 0 / 4px 15px no-repeat;
}

.site-globe {
    border-color: var(--primary);
}

.site-globe::before,
.site-globe::after {
    background: var(--primary);
}

.live-pill,
.site-client-pill.is-assigned,
.client-yes {
    background: #e5f7ed;
    color: var(--success);
}

.range-tabs {
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: none;
}

.range-tabs::-webkit-scrollbar {
    display: none;
}

.range-tabs a {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--ink-soft);
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    padding: 0 15px;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.range-tabs a + a::before {
    background: var(--line);
    content: "";
    height: 18px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}

.range-tabs a:hover {
    background: var(--surface-2);
    color: var(--primary-strong);
}

.range-tabs a.active {
    background: #eef7f5;
    box-shadow: inset 0 0 0 1px #cde5e1;
    color: var(--primary-strong);
    font-weight: 650;
}

.range-tabs a.active::before,
.range-tabs a.active + a::before {
    opacity: 0;
}

.command-kpi,
.site-kpi-card,
.command-panel,
.site-chart-card,
.stats-table-shell {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}

.comparison-panel {
    grid-column: 1 / -1;
}

.comparison-panel .month-bars {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    min-height: 220px;
}

.comparison-panel .week-bars {
    height: 170px;
}

.comparison-panel .week-bars i {
    max-width: 42px;
}

.top-sites-grid {
    display: grid;
    gap: 20px 14px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.top-sites-grid .command-panel {
    margin: 0;
}

.command-kpi span,
.site-kpi-card span,
.command-kpi small,
.site-kpi-card small,
.site-stats-heading p,
.month-week span,
.bar-row span,
.lead-volume-chart text,
.yoy-chart text,
.client-site-list span,
.stats-board-footer,
.command-empty {
    color: var(--muted);
}

.command-kpi strong,
.site-kpi-card strong,
.command-panel h2,
.site-chart-card h2,
.client-site-list strong,
.chart-legend span {
    color: var(--ink);
}

.command-kpi small.positive,
.site-kpi-card small.positive,
.stats-delta.positive {
    color: var(--success);
}

.command-kpi small.negative,
.site-kpi-card small.negative,
.stats-delta.negative {
    color: var(--danger);
}

.lead-volume-chart line,
.yoy-chart line {
    stroke: var(--line);
}

.lead-volume-chart polygon {
    fill: rgba(13, 107, 100, 0.10);
}

.lead-volume-chart polyline,
.yoy-chart polyline.current,
.yoy-chart circle.current {
    stroke: var(--primary);
}

.lead-volume-chart circle,
.yoy-chart circle {
    fill: var(--surface);
}

.yoy-chart polyline.previous,
.yoy-chart circle.previous {
    stroke: var(--line-strong);
}

.lead-volume-chart circle,
.yoy-chart circle,
.bar-row div,
.week-bars i,
.daily-bars i {
    cursor: help;
}

.bar-row div {
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.bar-row i,
.week-bars .current,
.chart-legend .current,
.daily-bars i {
    background: var(--primary);
}

.daily-bars {
    background:
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 20%,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 7.14% 100%;
}

.daily-bars i:hover {
    background: var(--primary-strong);
}

.week-bars {
    border-color: var(--line);
}

.week-bars .previous,
.chart-legend .previous {
    background: var(--line-strong);
}

.client-site-list a {
    border-color: var(--line);
    color: var(--ink);
}

.client-site-list a:hover strong,
.stats-back-link,
.stats-site-link {
    color: var(--primary-strong);
}

.stats-back-link:hover,
.stats-site-link:hover {
    color: var(--primary);
}

.stats-jump {
    border-color: var(--line-strong);
    color: var(--ink);
}

.stats-jump:hover,
.stats-board-table tbody tr:hover {
    background: var(--surface-2);
}

.stats-site-filter {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.stats-site-filter::placeholder {
    color: var(--muted);
}

.stats-board-table th,
.stats-board-table td {
    border-color: var(--line);
}

.stats-board-table th {
    color: var(--muted);
}

.stats-sort-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 5px;
    justify-content: inherit;
    padding: 0;
    text-align: inherit;
    text-transform: inherit;
}

.stats-sort-button::after {
    color: var(--line-strong);
    content: "↕";
    font-size: 10px;
    line-height: 1;
}

.stats-sort-button.is-sorted {
    color: var(--primary-strong);
}

.stats-sort-button.is-sorted[data-sort-direction="desc"]::after {
    content: "↓";
}

.stats-sort-button.is-sorted[data-sort-direction="asc"]::after {
    content: "↑";
}

.stats-board-table td {
    color: var(--ink);
}

.stats-board-table td.is-selected,
.stats-board-table th.is-selected {
    color: var(--primary-strong);
}

.stats-delta-empty {
    color: var(--muted);
}

.volume-high {
    background: var(--success);
}

.volume-moderate {
    background: #d9970f;
}

.volume-quiet {
    background: var(--muted);
}

.client-no,
.site-client-pill.is-unassigned {
    background: #fff5d8;
    color: var(--warning);
}

.site-menu-button {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--muted);
}

/* EOF top-site equal split override. */
.command-dashboard .top-sites-grid {
    display: grid;
    gap: 20px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
}

.command-dashboard .top-sites-grid > .command-panel {
    min-width: 0;
    width: 100%;
}

@media (max-width: 600px) {
    .command-dashboard .top-sites-grid {
        grid-template-columns: 1fr;
    }
}

/* Website stats v2: compact, light, and decision-focused. */
.site-health-board {
    display: grid;
    gap: 18px;
}

.site-health-heading {
    align-items: start;
    margin-bottom: 0;
}

.site-health-heading h1 {
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.08;
}

.site-health-actions {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.site-meta-pill {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    display: inline-flex;
    font-size: 12px;
    font-weight: 650;
    min-height: 30px;
    padding: 0 11px;
}

.site-meta-pill.is-live {
    background: #e9f7f4;
    border-color: #cce9e2;
    color: var(--primary-strong);
}

.site-meta-pill.is-paused {
    background: #fff5d8;
    border-color: #f2daa2;
    color: var(--warning);
}

.site-health-kpis {
    gap: 12px;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    margin: 0;
}

.site-health-kpis .site-kpi-card {
    border-radius: 8px;
    padding: 14px 15px;
}

.site-health-kpis .site-kpi-card strong {
    font-size: 24px;
}

.site-health-strip {
    display: grid;
    gap: 12px;
    grid-template-columns: 1.35fr 1fr 1fr;
}

.site-signal-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-width: 0;
    padding: 16px;
}

.site-signal-card strong {
    color: var(--ink);
    display: block;
    font-size: 18px;
    line-height: 1.2;
    margin-top: 4px;
}

.site-signal-card p {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0 0;
}

.signal-label {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.signal-score {
    align-items: center;
    background:
        conic-gradient(var(--primary) var(--score), var(--surface-2) 0);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 auto;
    height: 62px;
    justify-content: center;
    position: relative;
    width: 62px;
}

.signal-score::before {
    background: var(--surface);
    border-radius: inherit;
    content: "";
    inset: 7px;
    position: absolute;
}

.signal-score span {
    color: var(--primary-strong);
    font-size: 16px;
    font-weight: 800;
    position: relative;
}

.signal-score.steady {
    background: conic-gradient(#2f80d7 var(--score), var(--surface-2) 0);
}

.signal-score.watch {
    background: conic-gradient(var(--warning) var(--score), var(--surface-2) 0);
}

.signal-score.quiet {
    background: conic-gradient(var(--muted) var(--score), var(--surface-2) 0);
}

.site-health-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-health-grid .site-chart-card {
    background: var(--surface);
    border-color: var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
}

.site-health-grid .site-chart-wide {
    grid-column: 1 / -1;
}

.site-card-heading {
    align-items: start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.site-card-heading h2 {
    color: var(--ink);
    font-size: 15px;
    margin: 0;
}

.site-card-heading p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 4px 0 0;
}

.site-card-heading > span,
.site-card-link {
    color: var(--primary-strong);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.site-card-link:hover {
    color: var(--primary);
}

.site-daily-bars {
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 220px;
    overflow: hidden;
}

.site-recent-list {
    display: grid;
    gap: 8px;
}

.site-recent-list a {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    min-width: 0;
    padding: 10px 12px;
    text-decoration: none;
}

.site-recent-list a:hover {
    background: #eef7f5;
    border-color: #cce9e2;
}

.site-recent-list span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.site-recent-list span:last-child {
    justify-items: end;
}

.site-recent-list strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-recent-list small {
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-recent-list .status-chip {
    font-size: 11px;
    min-height: 22px;
    padding: 0 9px;
}

@media (max-width: 1100px) {
    .site-health-kpis {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .site-health-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .site-health-heading {
        display: grid;
    }

    .site-health-actions {
        justify-content: flex-start;
    }

    .site-health-kpis,
    .site-health-grid {
        grid-template-columns: 1fr;
    }

    .site-card-heading,
    .site-recent-list a {
        align-items: start;
        display: grid;
    }

    .site-recent-list span:last-child {
        justify-items: start;
    }
}

@media (max-width: 520px) {
    .site-signal-card {
        align-items: start;
    }

    .signal-score {
        height: 52px;
        width: 52px;
    }
}

/* Stats compare mode. */
.stats-heading-tools {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    min-width: 0;
}

.compare-toggle {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--ink-soft);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 650;
    gap: 8px;
    min-height: 38px;
    padding: 5px 12px 5px 6px;
}

.compare-toggle input {
    appearance: none;
    background: var(--line-strong);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 20px;
    margin: 0;
    min-height: 20px;
    padding: 0;
    position: relative;
    width: 36px;
}

.compare-toggle input::after {
    background: var(--surface);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    content: "";
    height: 16px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform 0.16s ease;
    width: 16px;
}

.compare-toggle input:checked {
    background: var(--primary);
}

.compare-toggle input:checked::after {
    transform: translateX(16px);
}

.no-client-toggle {
    min-width: 132px;
}

.stat-compare-pair {
    color: var(--muted);
    display: none;
    font-weight: 400;
}

.stats-board.is-compare-view .stats-compare-cell {
    white-space: nowrap;
}

.stats-board.is-compare-view .stat-compare-pair {
    display: inline;
}

.stat-separator {
    color: var(--line-strong);
    margin: 0 3px;
}

.stat-previous {
    color: var(--muted);
}

@media (max-width: 640px) {
    .stats-heading-tools {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .compare-toggle {
        justify-content: space-between;
        width: 100%;
    }
}

/* Final layout override: top-site cards split the full row 50/50. */
.command-dashboard .top-sites-grid {
    display: grid;
    gap: 20px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
}

.command-dashboard .top-sites-grid > .command-panel {
    min-width: 0;
    width: 100%;
}

@media (max-width: 600px) {
    .command-dashboard .top-sites-grid {
        grid-template-columns: 1fr;
    }
}

/* Keep the two top-site cards as an equal split inside their own full-width row. */
.command-dashboard .top-sites-grid {
    display: grid;
    gap: 20px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
}

.command-dashboard .top-sites-grid > .command-panel {
    min-width: 0;
    width: 100%;
}

@media (max-width: 600px) {
    .command-dashboard .top-sites-grid {
        grid-template-columns: 1fr;
    }
}

/* Segmented analytics tabs. */
.range-tabs {
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: none;
}

.range-tabs::-webkit-scrollbar {
    display: none;
}

.range-tabs a {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--ink-soft);
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    padding: 0 15px;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.range-tabs a + a::before {
    background: var(--line);
    content: "";
    height: 18px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}

.range-tabs a:hover {
    background: var(--surface-2);
    color: var(--primary-strong);
}

.range-tabs a.active {
    background: #eef7f5;
    box-shadow: inset 0 0 0 1px #cde5e1;
    color: var(--primary-strong);
    font-weight: 650;
}

.range-tabs a.active::before,
.range-tabs a.active + a::before {
    opacity: 0;
}

/* Segmented analytics tabs. */
.range-tabs {
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: none;
}

.range-tabs::-webkit-scrollbar {
    display: none;
}

.range-tabs a {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--ink-soft);
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    padding: 0 15px;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.range-tabs a + a::before {
    background: var(--line);
    content: "";
    height: 18px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}

.range-tabs a:hover {
    background: var(--surface-2);
    color: var(--primary-strong);
}

.range-tabs a.active {
    background: #eef7f5;
    box-shadow: inset 0 0 0 1px #cde5e1;
    color: var(--primary-strong);
    font-weight: 650;
}

.range-tabs a.active::before,
.range-tabs a.active + a::before {
    opacity: 0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    line-height: 1.45;
    overflow-x: hidden;
}

a {
    color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.28);
    outline-offset: 2px;
}

.app-frame {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 180ms ease;
}

.sidebar-collapsed .app-frame {
    grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar {
    background: #ffffff;
    border-right: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 18px 14px;
    position: sticky;
    top: 0;
}

.sidebar-screen-height {
    height: 100vh;
    min-height: 100vh;
}

@supports (height: 100dvh) {
    .sidebar-screen-height {
        height: 100dvh;
        min-height: 100dvh;
    }
}

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

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
    font-size: 15px;
    color: var(--ink);
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
}

.brand-text,
.nav-text,
.logout-text {
    transition: opacity 140ms ease;
}

.brand-mark {
    align-items: center;
    background: #eef7f5;
    border: 1px solid #cde5e1;
    border-left: 4px solid var(--primary);
    color: var(--primary-strong);
    display: inline-flex;
    flex: 0 0 44px;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 13px;
    font-weight: 900;
    height: 44px;
    justify-content: center;
}

.sidebar-toggle {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 34px;
    font: inherit;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-weight: 900;
    height: 34px;
    justify-content: center;
}

.hamburger-icon {
    display: grid;
    gap: 4px;
    width: 16px;
}

.hamburger-icon span {
    background: currentColor;
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 100%;
}

.sidebar-arrow-icon {
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    display: none;
    height: 9px;
    transform: rotate(45deg);
    width: 9px;
}

.sidebar-toggle:hover {
    background: #edf2f5;
    color: var(--ink);
}

.side-nav {
    display: grid;
    gap: 4px;
}

.side-nav a {
    align-items: center;
    border-left: 3px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    display: flex;
    gap: 10px;
    font-weight: 720;
    padding: 9px 10px;
    text-decoration: none;
}

.nav-mark {
    align-items: center;
    background: #f0f3f6;
    border-radius: 5px;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
}

.nav-mark svg {
    fill: currentColor;
    height: 16px;
    width: 16px;
}

.side-nav a:hover,
.side-nav a.active {
    background: #f3f7f7;
    border-color: var(--primary);
    color: var(--ink);
}

.logout-form {
    margin-top: auto;
}

.logout-button {
    width: 100%;
}

.logout-icon {
    display: none;
}

.logout-icon svg {
    fill: currentColor;
    height: 17px;
    width: 17px;
}

.sidebar-collapsed .sidebar {
    gap: 22px;
    padding-left: 14px;
    padding-right: 14px;
}

.sidebar-collapsed .sidebar-head {
    display: block;
    min-height: 22px;
}

.sidebar-collapsed .brand {
    display: none;
}

.sidebar-collapsed .sidebar-toggle {
    background: var(--surface);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
}

.sidebar-collapsed .hamburger-icon {
    display: none;
}

.sidebar-collapsed .sidebar-arrow-icon {
    display: block;
}

.sidebar-collapsed .brand-text,
.sidebar-collapsed .nav-text,
.sidebar-collapsed .logout-text {
    display: none;
}

.sidebar-collapsed .side-nav a {
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
}

.sidebar-collapsed .logout-icon {
    display: inline-flex;
}

.sidebar-collapsed .logout-button {
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

.shell {
    margin: 0 auto;
    max-width: 1360px;
    padding: 26px 26px 48px;
    width: 100%;
}

.auth-shell {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 24px;
}

.auth-panel,
.panel,
.table-wrap,
.filters,
.metric-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
}

.auth-panel {
    margin: 0 auto;
    max-width: 440px;
    padding: 32px;
    width: 100%;
}

.page-heading {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.heading-actions form {
    margin: 0;
}

.lead-nav-buttons {
    display: inline-flex;
    gap: 6px;
}

.button.is-disabled {
    cursor: not-allowed;
    opacity: 0.45;
    pointer-events: none;
}

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

h1,
h2 {
    margin: 0;
}

h1 {
    font-family: "Aptos Display", "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    font-size: 30px;
    font-weight: 760;
    line-height: 1.12;
}

h2 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 760;
    margin-bottom: 16px;
}

.metric-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.network-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.metric-card {
    box-shadow: var(--shadow-soft);
    padding: 14px 15px;
    position: relative;
}

.metric-card::before {
    background: var(--primary);
    content: "";
    height: 3px;
    left: 14px;
    position: absolute;
    right: 14px;
    top: 0;
}

.metric-card.warning {
    border-color: var(--line);
}

.metric-card.warning::before {
    background: var(--warning);
}

.metric-card span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.metric-card strong {
    color: var(--ink);
    display: block;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 26px;
    line-height: 1;
}

.metric-card a {
    color: var(--primary-strong);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    text-decoration: none;
}

.metric-card a:hover {
    color: var(--primary);
}

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

label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

label span,
.form-field > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

input,
select,
textarea {
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
    min-height: 40px;
    min-width: 0;
    padding: 9px 11px;
    width: 100%;
}

textarea {
    resize: vertical;
}

.button {
    align-items: center;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 760;
    justify-content: center;
    min-height: 38px;
    padding: 8px 13px;
    text-decoration: none;
    white-space: nowrap;
}

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.button-primary:hover {
    background: var(--primary-strong);
}

.button-secondary {
    background: #f1f4f6;
    border: 1px solid var(--line);
    color: #1f2937;
}

.button-secondary:hover {
    background: #e8edf1;
}

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

.button-danger:hover {
    background: #fdd7d4;
}

.button-small {
    font-size: 12px;
    min-height: 30px;
    padding: 5px 8px;
}

.filters {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(200px, 2fr) repeat(2, minmax(130px, 1fr)) repeat(2, minmax(118px, 0.85fr)) minmax(130px, auto) minmax(92px, auto);
    box-shadow: var(--shadow-soft);
    margin-bottom: 16px;
    padding: 12px;
}

.filters > label:first-child {
    grid-column: auto;
}

.filters .button {
    width: 100%;
}

.filters label {
    gap: 5px;
}

.filters label span {
    font-size: 11px;
    font-weight: 650;
}

.filters input,
.filters select {
    font-size: 13px;
    min-height: 34px;
    padding: 6px 9px;
}

.filters .button {
    font-size: 13px;
    min-height: 34px;
    padding: 6px 11px;
}

.filter-checkbox {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 7px;
    display: flex;
    gap: 8px;
    min-height: 34px;
    padding: 6px 10px;
}

.filter-checkbox input {
    accent-color: var(--primary);
    flex: 0 0 auto;
    min-height: 0;
    width: auto;
}

.filter-checkbox span {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
}

.inline-form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
}

.integration-form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 1fr) 150px 190px minmax(260px, 2fr);
}

.integration-form .wide-field {
    grid-column: span 1;
}

.form-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.checkbox-dropdown {
    position: relative;
}

.checkbox-dropdown summary {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    list-style: none;
    min-height: 40px;
    min-width: 0;
    padding: 9px 11px;
    width: 100%;
}

.checkbox-dropdown summary::-webkit-details-marker {
    display: none;
}

.checkbox-dropdown summary::after {
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    content: "";
    height: 7px;
    margin-left: 10px;
    transform: rotate(45deg);
    width: 7px;
}

.checkbox-dropdown[open] summary::after {
    margin-top: 5px;
    transform: rotate(-135deg);
}

.checkbox-dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
    left: 0;
    min-width: min(340px, 90vw);
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
}

.checkbox-search {
    font-size: 13px;
    min-height: 34px;
    padding: 6px 9px;
}

.checkbox-options {
    display: grid;
    gap: 3px;
    max-height: 220px;
    overflow: auto;
}

.checkbox-option {
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    display: grid;
    gap: 8px;
    grid-template-columns: 16px minmax(0, 1fr);
    min-height: 30px;
    padding: 5px 6px;
}

.checkbox-option:hover {
    background: #f4f7f8;
}

.checkbox-option input {
    min-height: 16px;
    padding: 0;
    width: 16px;
}

.checkbox-option span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 450;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkbox-option-all {
    border-bottom: 1px solid var(--line);
    border-radius: 5px 5px 0 0;
    padding-bottom: 8px;
}

.niche-field {
    position: relative;
}

.niche-field > span {
    color: var(--ink-soft);
    font-weight: 700;
}

.niche-dropdown {
    position: relative;
}

.niche-dropdown summary {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    justify-content: space-between;
    list-style: none;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.niche-dropdown summary::-webkit-details-marker {
    display: none;
}

.niche-dropdown summary::after {
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    content: "";
    height: 7px;
    margin-left: 10px;
    transform: rotate(45deg);
    width: 7px;
}

.niche-dropdown[open] summary::after {
    margin-top: 5px;
    transform: rotate(-135deg);
}

.niche-dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 8px;
    left: 0;
    min-width: min(320px, 90vw);
    padding: 8px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
}

.niche-search,
.niche-add-row input {
    min-height: 36px;
}

.niche-options {
    display: grid;
    gap: 4px;
    max-height: 190px;
    overflow-y: auto;
}

.niche-option {
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    padding: 8px 9px;
    text-align: left;
}

.niche-option:hover,
.niche-option.is-selected {
    background: #eef7f5;
    color: var(--primary-strong);
}

.niche-add-row {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 8px;
}

.table-wrap {
    overflow-x: auto;
    box-shadow: var(--shadow-soft);
}

.embedded-table {
    box-shadow: none;
    margin: 0;
}

table {
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.35;
    min-width: 1040px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 9px 11px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #fbfcfd;
    color: var(--muted);
    font-size: 11px;
    font-weight: 720;
    position: sticky;
    text-transform: uppercase;
    top: 0;
}

.is-resizable-table th {
    padding-right: 18px;
    position: sticky;
    user-select: none;
}

.stats-board-table.is-resizable-table th {
    position: relative;
}

.column-resize-handle {
    bottom: 7px;
    cursor: col-resize;
    position: absolute;
    right: 0;
    top: 7px;
    touch-action: none;
    width: 10px;
    z-index: 2;
}

.column-resize-handle::after {
    background: transparent;
    border-radius: 999px;
    bottom: 0;
    content: "";
    position: absolute;
    right: 4px;
    top: 0;
    transition: background 140ms ease, opacity 140ms ease;
    width: 2px;
}

.column-resize-handle:hover::after,
.is-column-resizing .column-resize-handle::after {
    background: var(--primary);
    opacity: 0.75;
}

.is-column-resizing,
.is-column-resizing * {
    cursor: col-resize !important;
    user-select: none !important;
}

tbody tr:hover {
    background: #fbfcfd;
}

td small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 3px;
}

tr:last-child td {
    border-bottom: 0;
}

.lead-cell {
    align-items: flex-start;
    display: grid;
    gap: 9px;
    grid-template-columns: 4px minmax(0, 1fr);
}

td.lead-cell {
    display: table-cell;
    padding-left: 30px;
    position: relative;
}

td.lead-cell > div {
    min-width: 0;
}

.source-rail {
    background: var(--source-color, var(--primary));
    display: block;
    height: 32px;
    width: 4px;
}

td.lead-cell .source-rail {
    bottom: 13px;
    height: auto;
    left: 14px;
    min-height: 32px;
    position: absolute;
    top: 13px;
}

.source-name {
    color: var(--ink);
    font-weight: 400;
}

.source-filter-link {
    border-radius: 6px;
    color: inherit;
    display: inline-grid;
    max-width: 100%;
    padding: 2px 4px;
    text-decoration: none;
}

.source-filter-link:hover {
    background: #eef7f5;
}

.source-filter-link:hover .source-name {
    color: var(--primary-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.duplicate-badge {
    align-items: center;
    background: #fff5d8;
    border: 1px solid #f2daa2;
    border-radius: 999px;
    color: var(--warning);
    display: flex;
    font-size: 10px;
    font-weight: 750;
    gap: 4px;
    line-height: 1;
    margin-top: 5px;
    padding: 4px 7px;
    width: fit-content;
}

.duplicate-badge em {
    background: rgba(161, 92, 7, 0.12);
    border-radius: 999px;
    font-style: normal;
    min-width: 16px;
    padding: 2px 4px;
    text-align: center;
}

.lead-name-row {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    max-width: 100%;
}

.inline-view-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 18px;
    justify-content: center;
    padding: 0;
    width: 18px;
}

.inline-view-button svg {
    fill: currentColor;
    height: 14px;
    width: 14px;
}

.inline-view-button:hover,
.inline-view-button:focus-visible {
    background: transparent;
    color: var(--primary-strong);
    outline: 0;
}

.date-main {
    display: block;
    font-weight: 400;
}

.status-form {
    min-width: 142px;
}

.bulk-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 0 0 12px;
}

.bulk-select-all {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 12px;
    font-weight: 600;
    gap: 7px;
}

.bulk-selected-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.select-col {
    text-align: center;
    width: 36px;
}

.select-col input[type="checkbox"],
.bulk-select-all input[type="checkbox"] {
    accent-color: var(--primary);
    height: 15px;
    width: 15px;
}

.lead-table th:nth-child(6),
.lead-table td:nth-child(6) {
    width: 112px;
}

.lead-table th:nth-child(7),
.lead-table td:nth-child(7) {
    width: 66px;
}

.lead-table .status-form {
    min-width: 0;
    width: 104px;
}

.lead-table .status-select {
    max-width: 104px;
    min-width: 0;
    width: 100%;
}

.status-select {
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    min-height: 28px;
    padding: 4px 26px 4px 9px;
}

.status-new {
    background: #e8f4ff;
    color: #075985;
}

.status-contacted {
    background: #f1ecff;
    color: var(--violet);
}

.status-qualified {
    background: #e5f7ed;
    color: var(--success);
}

.status-won {
    background: #fff5d8;
    color: #92400e;
}

.status-lost {
    background: #feeceb;
    color: var(--danger);
}

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

.table-link {
    color: var(--primary-strong);
    font-weight: 500;
    text-decoration: none;
}

.table-link:hover {
    text-decoration: underline;
}

.row-action-menu {
    display: inline-flex;
    justify-content: flex-end;
    position: relative;
}

.icon-button {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.icon-button:hover,
.icon-button[aria-expanded="true"] {
    background: #f1f4f6;
    border-color: var(--line);
    color: var(--ink);
}

.kebab-button span,
.kebab-button span::before,
.kebab-button span::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    display: block;
    height: 4px;
    width: 4px;
}

.kebab-button span {
    position: relative;
}

.kebab-button span::before,
.kebab-button span::after {
    left: 0;
    position: absolute;
}

.kebab-button span::before {
    top: -7px;
}

.kebab-button span::after {
    top: 7px;
}

.row-action-menu .row-actions {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 6px;
    min-width: 112px;
    padding: 6px;
    position: fixed;
    z-index: 25;
}

.row-action-menu .row-actions[hidden] {
    display: none;
}

.row-action-menu .row-actions .button,
.row-action-menu .row-actions form {
    width: 100%;
}

.muted {
    color: var(--muted);
}

code,
.secret-code {
    background: #f4f6f8;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: #273142;
    display: inline-block;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 13px;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 4px 7px;
}

.copy-field {
    background: #fbfcfd;
    font-family: "Cascadia Mono", Consolas, monospace;
}

.copy-box {
    align-items: center;
    background: #fbfcfd;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    display: inline-grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 28px;
    max-width: 100%;
    min-height: 34px;
    padding: 3px 3px 3px 9px;
    width: min(360px, 100%);
}

.copy-box-text {
    color: var(--ink-soft);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 12px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-box-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 5px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 28px;
}

.copy-box-button:hover,
.copy-box-button.is-copied {
    background: #eef4f4;
    color: var(--primary-strong);
}

.copy-box-button svg {
    fill: currentColor;
    height: 16px;
    width: 16px;
}

td .copy-box {
    grid-template-columns: minmax(0, 1fr) 24px;
    min-height: 28px;
    padding: 2px 2px 2px 7px;
    width: min(230px, 100%);
}

td .copy-box-text {
    font-size: 11px;
}

td .copy-box-button {
    height: 24px;
    width: 24px;
}

td .copy-box-button svg {
    height: 14px;
    width: 14px;
}

.copy-menu-button svg {
    fill: currentColor;
    height: 16px;
    width: 16px;
}

.webhook-copy-menu {
    justify-content: flex-start;
}

.webhook-copy-actions {
    min-width: 142px;
}

.webhook-copy-actions [data-copy-value],
.webhook-copy-actions [data-copy-button] {
    width: 100%;
}

.webhook-copy-actions [data-copy-button].is-copied {
    background: #eef7f5;
    color: var(--primary-strong);
}

.webhook-url-field {
    min-width: 240px;
    width: min(360px, 100%);
}

.empty {
    color: var(--muted);
    padding: 38px 16px;
    text-align: center;
}

.badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
}

.badge-new {
    background: #e8f4ff;
    color: #075985;
}

.badge-contacted {
    background: #f1ecff;
    color: var(--violet);
}

.badge-qualified {
    background: #e5f7ed;
    color: var(--success);
}

.badge-won {
    background: #fff5d8;
    color: #92400e;
}

.badge-lost {
    background: #feeceb;
    color: var(--danger);
}

.network-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.status-bars {
    display: grid;
    gap: 14px;
}

.status-bar-row {
    display: grid;
    gap: 7px;
}

.status-bar-row > div:first-child {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.status-bar-row span {
    color: var(--muted);
    font-weight: 720;
}

.status-bar-row strong {
    color: var(--ink);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 13px;
}

.status-bar-track {
    background: #eef2f5;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.status-bar-fill {
    display: block;
    height: 100%;
    min-width: 2px;
}

.status-fill-new {
    background: #2f80c2;
}

.status-fill-contacted {
    background: #7665c9;
}

.status-fill-qualified {
    background: #138a56;
}

.status-fill-won {
    background: #b87912;
}

.status-fill-lost {
    background: #c24132;
}

.network-table {
    margin-top: 0;
}

.command-dashboard {
    background: #191a18;
    color: #f4f7f2;
    margin: -26px;
    min-height: calc(100vh - 52px);
    padding: 26px;
}

.command-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
}

.command-heading h1 {
    align-items: center;
    color: #f7faf7;
    display: flex;
    font-size: 22px;
    gap: 10px;
    line-height: 1;
}

.dashboard-glyph {
    background:
        linear-gradient(#2e8cff 0 0) 0 0 / 6px 6px no-repeat,
        linear-gradient(#2e8cff 0 0) 10px 0 / 6px 6px no-repeat,
        linear-gradient(#2e8cff 0 0) 0 10px / 6px 6px no-repeat,
        linear-gradient(#2e8cff 0 0) 10px 10px / 6px 6px no-repeat;
    display: inline-block;
    height: 16px;
    width: 16px;
}

.live-pill {
    background: #092c0e;
    border-radius: 999px;
    color: #18e24d;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 13px;
}

.range-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.range-tabs a {
    background: #2a2b29;
    border: 1px solid #51524e;
    border-radius: 999px;
    color: #e8ebe5;
    font-size: 13px;
    font-weight: 650;
    padding: 6px 14px;
    text-decoration: none;
}

.range-tabs a:hover,
.range-tabs a.active {
    background: #062d58;
    border-color: #1d72d8;
    color: #f4f8ff;
}

.command-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 22px;
}

.command-kpi {
    background: #151614;
    border: 1px solid #20221f;
    border-radius: 8px;
    min-width: 0;
    padding: 15px 17px;
}

.command-kpi span {
    color: #a8aaa3;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.command-kpi strong {
    color: #ffffff;
    display: block;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 28px;
    font-weight: 850;
    line-height: 1;
}

.command-kpi .best-site-name {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-kpi small {
    color: #a8aaa3;
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.command-kpi small.positive {
    color: #16f04d;
}

.command-kpi small.negative {
    color: #ff756e;
}

.command-grid {
    display: grid;
    gap: 20px 14px;
    grid-template-columns: minmax(0, 1.7fr) minmax(250px, 0.9fr);
}

.command-panel {
    background: #262724;
    border: 1px solid #454743;
    border-radius: 11px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    min-width: 0;
    overflow: hidden;
    padding: 20px 22px;
}

.command-panel h2 {
    color: #dfe5da;
    font-size: 14px;
    font-weight: 750;
    margin: 0 0 14px;
}

.lead-volume-chart {
    display: block;
    height: auto;
    width: 100%;
}

.lead-volume-chart line {
    stroke: #3c3e3a;
    stroke-width: 1;
}

.lead-volume-chart text {
    fill: #8f928c;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 10px;
}

.lead-volume-chart .x-label {
    text-anchor: middle;
}

.lead-volume-chart polygon {
    fill: rgba(47, 128, 219, 0.14);
}

.lead-volume-chart polyline {
    fill: none;
    stroke: #2f80db;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.lead-volume-chart circle {
    fill: #191a18;
    stroke: #2f80db;
    stroke-width: 2;
}

.bar-list {
    display: grid;
    gap: 12px;
}

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

.bar-row span {
    color: #9c9f98;
    font-size: 12px;
    text-align: right;
}

.bar-row div {
    background: #2f312d;
    border-radius: 4px;
    height: 20px;
    overflow: hidden;
}

.bar-row i {
    background: #317cd3;
    border-radius: inherit;
    display: block;
    height: 100%;
}

.month-bars {
    align-items: end;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 180px;
    padding: 8px 8px 0;
}

.month-week {
    align-items: center;
    display: grid;
    gap: 8px;
}

.week-bars {
    align-items: end;
    border-bottom: 1px solid #3c3e3a;
    display: flex;
    gap: 8px;
    height: 140px;
    justify-content: center;
}

.week-bars i {
    border-radius: 4px 4px 0 0;
    display: block;
    width: min(34px, 38%);
}

.week-bars .current,
.chart-legend .current {
    background: #317cd3;
}

.week-bars .previous,
.chart-legend .previous {
    background: #6a6a64;
}

.month-week span {
    color: #8f928c;
    font-size: 12px;
    text-align: center;
}

.chart-legend {
    display: flex;
    gap: 18px;
    margin-top: 14px;
}

.chart-legend span {
    align-items: center;
    color: #d6dbd2;
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
}

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

.client-site-list {
    display: grid;
    gap: 0;
    margin-bottom: 18px;
}

.client-site-list a {
    align-items: center;
    border-bottom: 1px solid #3d3f3a;
    color: #ffffff;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 7px 0;
    text-decoration: none;
}

.client-site-list a:hover strong {
    color: #69a9ff;
}

.client-site-list strong {
    font-size: 14px;
    font-weight: 760;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-site-list span {
    color: #a2a59e;
    flex: 0 0 auto;
    font-size: 13px;
}

.stats-jump {
    align-items: center;
    border: 1px solid #5d5f5a;
    border-radius: 9px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 760;
    min-height: 38px;
    padding: 8px 17px;
    text-decoration: none;
}

.stats-jump::after {
    content: "↗";
    margin-left: 6px;
}

.stats-jump:hover {
    background: #30322e;
}

.command-empty {
    color: #9c9f98;
    font-size: 13px;
    margin: 4px 0 0;
}

.stats-board {
    background: #1d1e1c;
    color: #f4f7f2;
    margin: -26px;
    min-height: calc(100vh - 52px);
    padding: 26px;
}

.stats-board-heading {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 25px;
}

.stats-board-heading h1 {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-size: 22px;
    gap: 10px;
    line-height: 1;
}

.stats-glyph {
    border-bottom: 2px solid #48a0ff;
    display: inline-grid;
    gap: 2px;
    grid-template-columns: repeat(3, 4px);
    height: 17px;
    width: 18px;
}

.stats-glyph::before,
.stats-glyph::after {
    content: "";
}

.stats-glyph,
.stats-glyph::before,
.stats-glyph::after {
    background:
        linear-gradient(#48a0ff 0 0) 0 9px / 4px 6px no-repeat,
        linear-gradient(#48a0ff 0 0) 7px 4px / 4px 11px no-repeat,
        linear-gradient(#48a0ff 0 0) 14px 0 / 4px 15px no-repeat;
}

.stats-site-filter {
    background: #2b2c29;
    border: 1px solid #4b4d48;
    border-radius: 6px;
    color: #eef1ec;
    font-size: 14px;
    max-width: 250px;
    min-height: 38px;
    padding: 8px 12px;
}

.stats-site-filter::placeholder {
    color: #aaaea6;
}

.stats-range-tabs {
    margin-bottom: 22px;
}

.stats-table-shell {
    background: #282926;
    border: 1px solid #484a45;
    border-radius: 11px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    overflow-x: auto;
    padding: 15px 22px;
}

.stats-board-table {
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.25;
    min-width: 820px;
    width: 100%;
}

.stats-board-table th,
.stats-board-table td {
    border-bottom: 1px solid #42443f;
    padding: 10px 8px;
    text-align: right;
    vertical-align: middle;
}

.stats-board-table th:first-child,
.stats-board-table td:first-child {
    text-align: left;
}

.stats-board-table th {
    background: transparent;
    color: #999d95;
    font-size: 12px;
    font-weight: 760;
    position: static;
}

.stats-board-table tbody tr {
    cursor: pointer;
}

.stats-board-table tbody tr:hover {
    background: #2e302c;
}

.stats-board-table tbody tr:last-child td {
    border-bottom: 0;
}

.stats-board-table td {
    color: #ffffff;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-weight: 800;
}

.stats-board-table td.is-selected,
.stats-board-table th.is-selected {
    color: #74b6ff;
}

.stats-site-link {
    align-items: center;
    color: #4aa0ff;
    display: inline-flex;
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    font-weight: 650;
    gap: 8px;
    text-decoration: none;
}

.stats-site-link:hover {
    color: #7cbbff;
}

.volume-dot {
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 8px;
    height: 8px;
    width: 8px;
}

.volume-high {
    background: #10c843;
}

.volume-moderate {
    background: #ffbb22;
}

.volume-quiet {
    background: #8c9088;
}

.stats-delta {
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    font-weight: 800;
}

.stats-delta.positive {
    color: #11d63d;
}

.stats-delta.negative {
    color: #ff6e66;
}

.stats-delta-empty {
    color: #8f928c;
}

.client-pill {
    border-radius: 999px;
    display: inline-flex;
    font-family: "Aptos", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    font-weight: 850;
    justify-content: center;
    line-height: 1;
    min-width: 48px;
    padding: 6px 10px;
}

.client-yes {
    background: #09340d;
    color: #20e34f;
}

.client-yes::before {
    content: "";
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    height: 4px;
    margin: 0 6px 1px 0;
    transform: rotate(-45deg);
    width: 8px;
}

.client-no {
    background: #3b2504;
    color: #ffb020;
}

.client-no::before {
    content: "";
    background:
        linear-gradient(currentColor 0 0) center / 10px 2px no-repeat,
        linear-gradient(currentColor 0 0) center / 2px 10px no-repeat;
    height: 10px;
    margin-right: 6px;
    transform: rotate(45deg);
    width: 10px;
}

.stats-board-footer {
    align-items: center;
    color: #a5a9a1;
    display: flex;
    font-size: 12px;
    gap: 14px;
    justify-content: space-between;
    margin-top: 12px;
}

.stats-legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.stats-legend span {
    align-items: center;
    display: inline-flex;
    gap: 5px;
}

.site-stats-board {
    background: #1d1e1c;
    color: #f4f7f2;
    margin: -26px;
    min-height: calc(100vh - 52px);
    padding: 26px;
}

.site-stats-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.stats-back-link {
    color: #4aa0ff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    text-decoration: none;
}

.stats-back-link:hover {
    color: #7cbbff;
}

.site-stats-heading h1 {
    align-items: center;
    color: #ffffff;
    display: flex;
    font-size: 22px;
    gap: 9px;
    margin-bottom: 4px;
}

.site-stats-heading p {
    color: #a6aaa2;
    font-size: 13px;
    margin: 0;
}

.site-globe {
    border: 2px solid #4aa0ff;
    border-radius: 50%;
    display: inline-block;
    height: 17px;
    position: relative;
    width: 17px;
}

.site-globe::before,
.site-globe::after {
    background: #4aa0ff;
    content: "";
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
}

.site-globe::before {
    height: 100%;
    top: 0;
    width: 2px;
}

.site-globe::after {
    height: 2px;
    top: 50%;
    width: 100%;
}

.site-heading-actions {
    align-items: flex-end;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.site-menu-button {
    align-items: center;
    background: #151614;
    border: 1px solid #232420;
    border-radius: 6px;
    color: #d4d8d0;
    cursor: pointer;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 34px;
}

.site-menu-button span,
.site-menu-button span::before,
.site-menu-button span::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    display: block;
    height: 3px;
    width: 3px;
}

.site-menu-button span {
    position: relative;
}

.site-menu-button span::before,
.site-menu-button span::after {
    position: absolute;
    top: 0;
}

.site-menu-button span::before {
    left: -6px;
}

.site-menu-button span::after {
    left: 6px;
}

.site-client-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    gap: 6px;
    padding: 6px 11px;
}

.site-client-pill::before {
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    height: 4px;
    transform: rotate(-45deg);
    width: 8px;
}

.site-client-pill.is-assigned {
    background: #09340d;
    color: #20e34f;
}

.site-client-pill.is-unassigned {
    background: #3b2504;
    color: #ffb020;
}

.site-client-pill.is-unassigned::before {
    background:
        linear-gradient(currentColor 0 0) center / 10px 2px no-repeat,
        linear-gradient(currentColor 0 0) center / 2px 10px no-repeat;
    border: 0;
    height: 10px;
    transform: rotate(45deg);
    width: 10px;
}

.site-kpi-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 22px;
}

.site-kpi-card {
    background: #151614;
    border: 1px solid #20221f;
    border-radius: 8px;
    min-width: 0;
    padding: 15px 17px;
}

.site-kpi-card span {
    color: #a8aaa3;
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
}

.site-kpi-card strong {
    color: #ffffff;
    display: block;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 26px;
    font-weight: 850;
    line-height: 1;
}

.site-kpi-card small {
    color: #a8aaa3;
    display: block;
    font-size: 12px;
    margin-top: 6px;
}

.site-kpi-card small.positive {
    color: #16f04d;
}

.site-kpi-card small.negative {
    color: #ff756e;
}

.site-chart-grid {
    display: grid;
    gap: 20px 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-chart-card {
    background: #262724;
    border: 1px solid #454743;
    border-radius: 11px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    min-width: 0;
    overflow: hidden;
    padding: 20px 22px;
}

.site-chart-card h2 {
    color: #dfe5da;
    font-size: 14px;
    font-weight: 750;
    margin: 0 0 14px;
}

.site-chart-wide {
    grid-column: 1 / -1;
}

.daily-bars {
    align-items: end;
    background:
        linear-gradient(#373935 1px, transparent 1px) 0 0 / 100% 20%,
        linear-gradient(90deg, #32342f 1px, transparent 1px) 0 0 / 7.14% 100%;
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(30, minmax(0, 1fr));
    height: 170px;
    padding: 4px 4px 0;
}

.daily-bars i {
    background: #2f80d7;
    border-radius: 3px 3px 0 0;
    display: block;
    min-height: 4px;
}

.daily-bars i:hover {
    background: #55a3ff;
}

.yoy-chart {
    display: block;
    height: auto;
    width: 100%;
}

.yoy-chart line {
    stroke: #3c3e3a;
    stroke-width: 1;
}

.yoy-chart text {
    fill: #8f928c;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 10px;
}

.yoy-chart .x-label {
    text-anchor: middle;
}

.yoy-chart polyline {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.yoy-chart polyline.current,
.yoy-chart circle.current {
    stroke: #2f80d7;
}

.yoy-chart polyline.previous,
.yoy-chart circle.previous {
    stroke: #8a8c86;
}

.yoy-chart polyline.previous {
    stroke-dasharray: 6 6;
}

.yoy-chart circle {
    fill: #262724;
    stroke-width: 2;
}

.section-title-row {
    align-items: start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.section-title-row h2 {
    margin-bottom: 4px;
}

.section-title-row p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.period-stats-table table {
    min-width: 900px;
}

.stats-website-table,
.stats-recent-table {
    margin-top: 16px;
}

.stats-website-table table {
    min-width: 1280px;
}

.period-label {
    color: var(--ink);
    display: block;
    font-weight: 550;
}

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

.outreach-card {
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    display: grid;
    gap: 5px;
    overflow: hidden;
    padding: 12px 12px 12px 16px;
    position: relative;
    text-decoration: none;
}

.outreach-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
}

.outreach-rail {
    background: var(--source-color, var(--primary));
    bottom: 12px;
    left: 0;
    position: absolute;
    top: 12px;
    width: 4px;
}

.outreach-name {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.outreach-card strong {
    font-size: 15px;
    font-weight: 650;
}

.outreach-card span,
.outreach-card small {
    color: var(--muted);
    font-size: 12px;
}

.signal-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    line-height: 1;
    padding: 5px 8px;
    width: fit-content;
}

.signal-hot {
    background: #fff1d6;
    color: #9a5800;
}

.signal-steady {
    background: #e5f7ed;
    color: var(--success);
}

.signal-watch {
    background: #e8f4ff;
    color: #075985;
}

.signal-quiet {
    background: #eef2f5;
    color: var(--muted);
}

.website-signal-panel {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.website-signal-panel h2 {
    margin: 0;
}

.signal-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.signal-summary > span:not(.signal-pill) {
    background: #f4f7f8;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    padding: 5px 8px;
}

.detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 20px;
}

.website-detail {
    align-items: start;
}

.settings-accordion-panel {
    display: grid;
    gap: 10px;
}

.settings-accordion {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    overflow: hidden;
}

.settings-accordion summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
    padding: 14px 15px;
}

.settings-accordion summary::-webkit-details-marker {
    display: none;
}

.settings-accordion summary::after {
    border: solid var(--ink-soft);
    border-width: 0 1.5px 1.5px 0;
    content: "";
    flex: 0 0 auto;
    height: 7px;
    transform: rotate(45deg);
    width: 7px;
}

.settings-accordion[open] summary::after {
    margin-top: 5px;
    transform: rotate(-135deg);
}

.settings-accordion summary span {
    color: var(--ink);
    font-weight: 760;
}

.settings-accordion summary small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
}

.settings-accordion-body {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    padding: 15px;
}

.panel {
    margin-bottom: 16px;
    padding: 20px;
}

.lead-edit-panel[hidden] {
    display: none;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.add-source-panel {
    border-top: 3px solid var(--primary);
}

.add-source-panel[hidden] {
    display: none;
}

.details {
    display: grid;
    gap: 10px 16px;
    grid-template-columns: 128px minmax(0, 1fr);
    margin: 0;
}

.details dt {
    color: var(--muted);
    font-weight: 760;
}

.details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.submitted-fields dd {
    white-space: normal;
}

.status-field {
    align-items: center;
    display: flex;
    min-height: 0;
    white-space: normal;
}

.lead-info-status-form {
    margin: 0;
    max-width: none;
    min-width: 0;
    width: auto;
}

.lead-info-status-form .status-select {
    min-width: 118px;
    width: auto;
}

.lead-inline-status-picker {
    position: relative;
}

.lead-inline-status-picker summary {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    list-style: none;
}

.lead-inline-status-picker summary::-webkit-details-marker {
    display: none;
}

.lead-inline-status-picker summary::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--primary-strong);
    content: "";
    height: 0;
    margin-top: 2px;
    width: 0;
}

.lead-inline-status-picker[open] summary::after {
    border-bottom: 7px solid var(--primary-strong);
    border-top: 0;
}

.lead-inline-status-picker summary:focus-visible {
    border-radius: 4px;
    outline: 3px solid rgba(15, 118, 110, 0.28);
    outline-offset: 4px;
}

.lead-inline-status-value {
    color: var(--ink);
    font-size: 16px;
    font-weight: 500;
}

.lead-inline-status-menu {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    left: 0;
    margin-top: 10px;
    min-width: 160px;
    padding: 6px;
    position: absolute;
    top: 100%;
    z-index: 20;
}

.lead-inline-status-menu form {
    margin: 0;
}

.lead-inline-status-option {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    display: block;
    font: inherit;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.lead-inline-status-option:hover {
    background: #eef4f8;
}

.lead-inline-status-option.is-active {
    background: #eef4f8;
    color: var(--primary-strong);
    cursor: default;
    font-weight: 800;
}

.lead-message {
    white-space: pre-wrap;
}

.message-body {
    margin: 0;
    white-space: normal;
}

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

.compact-list a {
    border: 1px solid var(--line);
    border-left: 4px solid var(--warning);
    border-radius: 6px;
    color: var(--primary-strong);
    display: grid;
    font-weight: 780;
    padding: 11px 12px;
    text-decoration: none;
}

.compact-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.section-head {
    align-items: end;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-head h2 {
    margin: 0;
}

.section-head .muted {
    display: block;
    margin-top: 4px;
}

.panel-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.panel-title-row h2 {
    margin: 0;
}

.copy-info-button {
    align-items: center;
    background: #f1f4f6;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.copy-info-button svg {
    fill: currentColor;
    height: 16px;
    width: 16px;
}

.copy-info-button:hover,
.copy-info-button:focus-visible,
.copy-info-button.is-copied {
    background: #eef7f5;
    border-color: #cce9e2;
    color: var(--primary-strong);
    outline: 0;
}

.copy-info-button.is-copied {
    background: #e5f7ed;
    border-color: #bfe8d0;
    color: var(--success);
}

.copy-info-button.is-copied svg {
    display: none;
}

.copy-info-button.is-copied::before {
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    content: "";
    height: 5px;
    transform: rotate(-45deg) translateY(-1px);
    width: 10px;
}

.note-form {
    margin-bottom: 18px;
}

.note-list {
    display: grid;
    gap: 12px;
}

.note-item {
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 16px;
}

.note-item p {
    margin: 0;
    white-space: pre-wrap;
}

.note-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.empty-inline {
    color: var(--muted);
    margin: 0;
}

.check-row {
    align-items: center;
    display: flex;
    gap: 10px;
}

.check-row input {
    min-height: auto;
    width: auto;
}

.danger-action {
    margin-top: 18px;
}

.webhook-methods {
    border-top: 1px solid var(--line);
    margin-top: 20px;
    padding-top: 18px;
}

.webhook-methods h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

.method-grid {
    display: grid;
    gap: 12px;
}

.payload {
    background: #121820;
    border-radius: 6px;
    color: #e5edf7;
    margin: 0;
    overflow-x: auto;
    padding: 16px;
}

.raw-payload-accordion {
    padding: 0;
}

.raw-payload-accordion summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
    padding: 16px 20px;
}

.raw-payload-accordion summary::-webkit-details-marker {
    display: none;
}

.raw-payload-accordion summary::after {
    color: var(--primary);
    content: "+";
    font-size: 22px;
    font-weight: 850;
    line-height: 1;
}

.raw-payload-accordion[open] summary::after {
    content: "-";
}

.raw-payload-accordion summary:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.28);
    outline-offset: -3px;
}

.raw-payload-accordion summary span {
    color: var(--ink);
    font-size: 16px;
    font-weight: 760;
}

.raw-payload-accordion summary small {
    color: var(--muted);
    font-weight: 700;
}

.raw-payload-accordion .payload {
    border-radius: 0 0 6px 6px;
    margin: 0 22px 22px;
}

.lead-dock {
    background: var(--surface);
    border-left: 1px solid var(--line-strong);
    box-shadow: -14px 0 30px rgba(18, 24, 32, 0.1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100vh;
    max-width: min(430px, 92vw);
    padding: 22px;
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(105%);
    transition: transform 180ms ease;
    width: 430px;
    z-index: 50;
}

.lead-dock-open .lead-dock {
    transform: translateX(0);
}

.lead-dock-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.dock-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.dock-nav-button {
    align-items: center;
    background: #f1f4f6;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--muted);
    cursor: pointer;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.dock-nav-button svg {
    fill: currentColor;
    height: 17px;
    width: 17px;
}

.dock-nav-button:hover:not(:disabled),
.dock-nav-button:focus-visible {
    background: #eef7f5;
    border-color: #cce9e2;
    color: var(--primary-strong);
    outline: 0;
}

.dock-nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.lead-dock h2 {
    font-size: 22px;
    line-height: 1.2;
}

.dock-close {
    align-items: center;
    background: #e5ebf2;
    border: 0;
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 36px;
    font-size: 24px;
    height: 36px;
    justify-content: center;
}

.dock-details {
    display: grid;
    gap: 10px 14px;
    grid-template-columns: 98px minmax(0, 1fr);
    margin: 0;
}

.dock-details dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.dock-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.dock-details dd.lead-message {
    white-space: pre-wrap;
}

.alert {
    border-radius: 6px;
    font-weight: 750;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.alert p {
    margin: 0;
}

.alert-copy {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.alert-copy span {
    font-size: 12px;
    text-transform: uppercase;
}

.alert-error {
    background: #feeceb;
    color: var(--danger);
}

.alert-success {
    background: #e5f7ed;
    color: var(--success);
}

@media (max-width: 980px) {
    .app-frame {
        grid-template-columns: 1fr;
    }

    .sidebar-collapsed .app-frame {
        grid-template-columns: 1fr;
    }

    .sidebar {
        align-items: center;
        flex-direction: row;
        min-height: auto;
        overflow-x: auto;
        padding: 14px 16px;
        position: static;
    }

    .sidebar-screen-height {
        height: auto;
        min-height: auto;
    }

    .side-nav {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
    }

    .side-nav a {
        flex: 0 0 auto;
    }

    .sidebar-toggle {
        display: none;
    }

    .sidebar-collapsed .sidebar-toggle {
        position: static;
        transform: none;
    }

    .sidebar-collapsed .brand-text,
    .sidebar-collapsed .nav-text,
    .sidebar-collapsed .logout-text {
        display: inline;
    }

    .sidebar-collapsed .brand {
        display: flex;
    }

    .sidebar-collapsed .logout-icon {
        display: none;
    }

    .logout-form {
        margin-left: auto;
        margin-top: 0;
    }

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

    .filters,
    .detail-grid,
    .network-grid,
    .command-grid,
    .outreach-grid,
    .inline-form,
    .integration-form {
        grid-template-columns: 1fr;
    }

    .command-dashboard {
        margin: -24px -18px -36px;
        min-height: calc(100vh - 48px);
        padding: 24px 18px 36px;
    }

    .stats-board {
        margin: -24px -18px -36px;
        min-height: calc(100vh - 48px);
        padding: 24px 18px 36px;
    }

    .site-stats-board {
        margin: -24px -18px -36px;
        min-height: calc(100vh - 48px);
        padding: 24px 18px 36px;
    }

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

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

    .site-chart-grid {
        grid-template-columns: 1fr;
    }

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

    .filters > label:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .filters {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .filters > label:first-child {
        grid-column: span 1;
    }

    .table-wrap {
        background: transparent;
        border: 0;
        box-shadow: none;
        overflow: visible;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    table[data-resizable-table] {
        min-width: 0 !important;
        table-layout: auto !important;
        width: 100% !important;
    }

    table[data-resizable-table] colgroup[data-resizable-cols],
    .column-resize-handle {
        display: none;
    }

    thead {
        display: none;
    }

    tbody {
        display: grid;
        gap: 12px;
    }

    tr {
        background: var(--surface);
        border: 1px solid var(--line);
        border-left: 5px solid var(--source-color, var(--primary));
        border-radius: 8px;
        box-shadow: var(--shadow);
        overflow: hidden;
    }

    tbody tr:hover {
        background: var(--surface);
    }

    td {
        align-items: start;
        border-bottom: 1px solid var(--line);
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
        padding: 12px 14px;
        text-align: left;
    }

    td:last-child {
        border-bottom: 0;
    }

    td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 850;
        text-transform: uppercase;
    }

    td.empty,
    td[colspan] {
        display: block;
        text-align: center;
    }

    td.empty::before,
    td[colspan]::before {
        content: none;
    }

    .lead-cell {
        grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    }

    td.lead-cell {
        display: grid;
        padding-left: 14px;
        position: static;
    }

    .lead-cell::before {
        align-self: start;
    }

    .source-rail {
        display: none;
    }

    td.lead-cell .source-rail {
        position: static;
    }

    .status-form {
        min-width: 0;
    }

    .status-select {
        max-width: 220px;
    }

    .webhook-url-field {
        min-width: 0;
        width: 100%;
    }

    .row-actions,
    .heading-actions {
        justify-content: stretch;
    }

    .row-actions .button,
    .row-actions form,
    .heading-actions .button,
    .heading-actions form,
    .form-actions .button {
        width: 100%;
    }

    .lead-dock {
        border-left: 0;
        border-top: 1px solid var(--line-strong);
        bottom: 0;
        height: min(82vh, 680px);
        max-width: 100vw;
        padding: 20px;
        top: auto;
        transform: translateY(105%);
        width: 100vw;
    }

    .lead-dock-open .lead-dock {
        transform: translateY(0);
    }

    .website-signal-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .signal-summary {
        justify-content: flex-start;
    }

    .dock-details,
    .details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sidebar,
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .side-nav,
    .heading-actions {
        width: 100%;
    }

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

    .side-nav a,
    .heading-actions .button,
    .logout-form,
    .logout-form .button {
        width: 100%;
    }

    .metric-grid {
        grid-template-columns: 1fr;
    }

    .command-dashboard {
        margin: -20px -12px -36px;
        padding: 20px 12px 32px;
    }

    .stats-board {
        margin: -20px -12px -36px;
        padding: 20px 12px 32px;
    }

    .site-stats-board {
        margin: -20px -12px -36px;
        padding: 20px 12px 32px;
    }

    .command-heading,
    .stats-board-heading {
        align-items: flex-start;
        gap: 12px;
    }

    .stats-board-heading {
        flex-direction: column;
    }

    .site-stats-heading {
        flex-direction: column;
    }

    .site-heading-actions {
        align-items: flex-start;
        justify-items: start;
        width: 100%;
    }

    .stats-site-filter {
        max-width: none;
        width: 100%;
    }

    .range-tabs {
        gap: 6px;
    }

    .range-tabs a {
        font-size: 12px;
        padding: 5px 10px;
    }

    .stats-table-shell {
        padding: 10px;
    }

    .stats-board-table {
        min-width: 0;
    }

    .stats-board-table td,
    .stats-board-table th {
        text-align: left;
    }

    .stats-board-table td {
        font-size: 13px;
    }

    .stats-board-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .command-kpis {
        grid-template-columns: 1fr;
    }

    .site-kpi-grid {
        grid-template-columns: 1fr;
    }

    .command-panel,
    .site-chart-card {
        border-radius: 9px;
        padding: 16px 14px;
    }

    .comparison-panel {
        grid-column: auto;
    }

    .comparison-panel .month-bars {
        grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
        min-height: 150px;
    }

    .comparison-panel .week-bars {
        height: 112px;
    }

    .top-sites-grid {
        grid-template-columns: 1fr;
    }

    .daily-bars {
        gap: 2px;
        height: 140px;
    }

    .bar-row {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .month-bars {
        gap: 10px;
        min-height: 150px;
    }

    .week-bars {
        height: 112px;
    }

    .shell {
        padding: 20px 12px 36px;
    }

    h1 {
        font-size: 28px;
    }

    .auth-shell {
        padding: 14px;
    }

    .auth-panel,
    .panel,
    .filters,
    .metric-card {
        border-radius: 7px;
    }

    .panel {
        padding: 16px;
    }

    .filters {
        padding: 12px;
    }

    td {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .lead-cell {
        grid-template-columns: 1fr;
    }
}

/* Light analytics theme: keep the analytics layouts, but use LeadTack's app palette. */
.command-dashboard,
.stats-board,
.site-stats-board {
    background: transparent;
    color: var(--ink);
    margin: 0;
    min-height: auto;
    padding: 0;
}

.command-heading h1,
.stats-board-heading h1,
.site-stats-heading h1 {
    color: var(--ink);
}

.dashboard-glyph {
    background:
        linear-gradient(var(--primary) 0 0) 0 0 / 6px 6px no-repeat,
        linear-gradient(var(--primary) 0 0) 10px 0 / 6px 6px no-repeat,
        linear-gradient(var(--primary) 0 0) 0 10px / 6px 6px no-repeat,
        linear-gradient(var(--primary) 0 0) 10px 10px / 6px 6px no-repeat;
}

.stats-glyph {
    border-color: var(--primary);
}

.stats-glyph,
.stats-glyph::before,
.stats-glyph::after {
    background:
        linear-gradient(var(--primary) 0 0) 0 9px / 4px 6px no-repeat,
        linear-gradient(var(--primary) 0 0) 7px 4px / 4px 11px no-repeat,
        linear-gradient(var(--primary) 0 0) 14px 0 / 4px 15px no-repeat;
}

.site-globe {
    border-color: var(--primary);
}

.site-globe::before,
.site-globe::after {
    background: var(--primary);
}

.live-pill,
.site-client-pill.is-assigned,
.client-yes {
    background: #e5f7ed;
    color: var(--success);
}

.range-tabs {
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 0;
    max-width: 100%;
    overflow-x: auto;
    padding: 3px;
    scrollbar-width: none;
}

.range-tabs::-webkit-scrollbar {
    display: none;
}

.range-tabs a {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 7px;
    color: var(--ink-soft);
    display: inline-flex;
    font-size: 13px;
    font-weight: 500;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    padding: 0 15px;
    position: relative;
    text-decoration: none;
    white-space: nowrap;
}

.range-tabs a + a::before {
    background: var(--line);
    content: "";
    height: 18px;
    left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
}

.range-tabs a:hover {
    background: var(--surface-2);
    color: var(--primary-strong);
}

.range-tabs a.active {
    background: #eef7f5;
    box-shadow: inset 0 0 0 1px #cde5e1;
    color: var(--primary-strong);
    font-weight: 650;
}

.range-tabs a.active::before,
.range-tabs a.active + a::before {
    opacity: 0;
}

.command-kpi,
.site-kpi-card,
.command-panel,
.site-chart-card,
.stats-table-shell {
    background: var(--surface);
    border-color: var(--line);
    box-shadow: var(--shadow-soft);
}

.command-kpi span,
.site-kpi-card span,
.command-kpi small,
.site-kpi-card small,
.site-stats-heading p,
.month-week span,
.bar-row span,
.lead-volume-chart text,
.yoy-chart text,
.client-site-list span,
.stats-board-footer,
.command-empty {
    color: var(--muted);
}

.command-kpi strong,
.site-kpi-card strong,
.command-panel h2,
.site-chart-card h2,
.client-site-list strong,
.chart-legend span {
    color: var(--ink);
}

.command-kpi small.positive,
.site-kpi-card small.positive,
.stats-delta.positive {
    color: var(--success);
}

.command-kpi small.negative,
.site-kpi-card small.negative,
.stats-delta.negative {
    color: var(--danger);
}

.lead-volume-chart line,
.yoy-chart line {
    stroke: var(--line);
}

.lead-volume-chart polygon {
    fill: rgba(13, 107, 100, 0.10);
}

.lead-volume-chart polyline,
.yoy-chart polyline.current,
.yoy-chart circle.current {
    stroke: var(--primary);
}

.lead-volume-chart circle,
.yoy-chart circle {
    fill: var(--surface);
}

.yoy-chart polyline.previous,
.yoy-chart circle.previous {
    stroke: var(--line-strong);
}

.bar-row div {
    background: var(--surface-2);
    border: 1px solid var(--line);
}

.bar-row i,
.week-bars .current,
.chart-legend .current,
.daily-bars i {
    background: var(--primary);
}

.daily-bars {
    background:
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 20%,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 7.14% 100%;
}

.daily-bars i:hover {
    background: var(--primary-strong);
}

.week-bars {
    border-color: var(--line);
}

.week-bars .previous,
.chart-legend .previous {
    background: var(--line-strong);
}

.client-site-list a {
    border-color: var(--line);
    color: var(--ink);
}

.client-site-list a:hover strong,
.stats-back-link,
.stats-site-link {
    color: var(--primary-strong);
}

.stats-back-link:hover,
.stats-site-link:hover {
    color: var(--primary);
}

.stats-jump {
    border-color: var(--line-strong);
    color: var(--ink);
}

.stats-jump:hover,
.stats-board-table tbody tr:hover {
    background: var(--surface-2);
}

.stats-site-filter {
    background: var(--surface);
    border-color: var(--line-strong);
    color: var(--ink);
}

.stats-site-filter::placeholder {
    color: var(--muted);
}

.stats-board-table th,
.stats-board-table td {
    border-color: var(--line);
}

.stats-board-table th {
    color: var(--muted);
}

.stats-board-table td {
    color: var(--ink);
}

.stats-board-table td.is-selected,
.stats-board-table th.is-selected {
    color: var(--primary-strong);
}

.stats-delta-empty {
    color: var(--muted);
}

.volume-high {
    background: var(--success);
}

.volume-moderate {
    background: #d9970f;
}

.volume-quiet {
    background: var(--muted);
}

.client-no,
.site-client-pill.is-unassigned {
    background: #fff5d8;
    color: var(--warning);
}

.site-menu-button {
    background: var(--surface-2);
    border-color: var(--line);
    color: var(--muted);
}
/* Actual EOF override: keep top-site cards 50/50 across the full row. */
.command-dashboard .top-sites-grid {
    display: grid;
    gap: 20px;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
}

.command-dashboard .top-sites-grid > .command-panel {
    min-width: 0;
    width: 100%;
}

@media (max-width: 600px) {
    .command-dashboard .top-sites-grid {
        grid-template-columns: 1fr;
    }
}

/* Actual EOF override: website stats v2 must beat older repeated analytics blocks. */
.site-stats-board.site-health-board {
    background: transparent;
    color: var(--ink);
    display: grid;
    gap: 18px;
    margin: 0;
    min-height: auto;
    padding: 0;
}

.site-stats-heading.site-health-heading {
    align-items: start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 0;
}

.site-stats-heading.site-health-heading h1 {
    color: var(--ink);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.08;
}

.site-health-actions {
    align-items: end;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.site-kpi-grid.site-health-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    margin: 0;
}

.site-health-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-health-grid .site-chart-card,
.site-health-strip .site-signal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    color: var(--ink);
}

.site-health-grid .site-chart-wide {
    grid-column: 1 / -1;
}

@media (max-width: 1100px) {
    .site-kpi-grid.site-health-kpis {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .site-health-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .site-stats-heading.site-health-heading,
    .site-card-heading,
    .site-recent-list a {
        display: grid;
    }

    .site-health-actions {
        justify-content: flex-start;
    }

    .site-kpi-grid.site-health-kpis,
    .site-health-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard compact period chart beside Leads by niche. */
.compact-period-panel .compact-period-bars {
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
    min-height: 168px;
    padding: 4px 2px 0;
}

.compact-period-panel .week-bars {
    gap: 5px;
    height: 128px;
}

.compact-period-panel .week-bars i {
    max-width: 24px;
    width: min(24px, 42%);
}

.compact-period-panel .month-week {
    gap: 7px;
}

.compact-period-panel .month-week span {
    font-size: 12px;
}

.compact-period-panel .chart-legend {
    margin-top: 16px;
}

@media (max-width: 900px) {
    .compact-period-panel .compact-period-bars {
        min-height: 150px;
    }

    .compact-period-panel .week-bars {
        height: 112px;
    }
}

/* Dashboard operator signals. */
.command-signal-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: -8px 0 18px;
}

.command-signal-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
    box-shadow: var(--shadow-soft);
    min-width: 0;
    padding: 13px 14px;
}

.command-signal-card span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 750;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.command-signal-card strong {
    color: var(--ink);
    display: block;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-signal-card.signal-primary strong {
    color: var(--primary-strong);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 26px;
}

.command-signal-card small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 6px;
}

.command-signal-card small.positive {
    color: var(--success);
}

.command-signal-card small.negative {
    color: var(--danger);
}

.timing-line-chart {
    display: block;
    height: auto;
    width: 100%;
}

.timing-line-chart line {
    stroke: var(--line);
    stroke-width: 1;
}

.timing-line-chart text {
    fill: var(--muted);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 10px;
}

.timing-line-chart .x-label {
    text-anchor: middle;
}

.timing-line-chart polyline {
    fill: none;
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.timing-line-chart circle {
    fill: var(--surface);
    stroke: var(--primary);
    stroke-width: 2;
}

.recent-feed-list {
    display: grid;
    gap: 8px;
}

.recent-feed-list a {
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 9px 10px;
    text-decoration: none;
}

.recent-feed-list a:hover {
    background: #eef7f5;
    border-color: #cce9e2;
}

.recent-feed-list span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.recent-feed-list strong {
    font-size: 13px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-feed-list small,
.recent-feed-list em,
.command-panel-note {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.recent-feed-list em {
    flex: 0 0 auto;
}

.site-health-panel {
    grid-column: 1 / -1;
}

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

.site-health-mini div {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.site-health-mini strong {
    color: var(--ink);
    display: block;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 24px;
    line-height: 1;
}

.site-health-mini span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 6px;
}

.command-panel-note {
    margin: 12px 0 0;
}

@media (max-width: 1100px) {
    .command-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .command-signal-grid,
    .site-health-mini {
        grid-template-columns: 1fr;
    }

    .recent-feed-list a {
        align-items: start;
        display: grid;
    }
}

/* Actual EOF override: keep Lead command center status/actions columns compact. */
.lead-table th:nth-child(1),
.lead-table td:nth-child(1) {
    width: 36px;
}

.lead-table th:nth-child(6),
.lead-table td:nth-child(6) {
    width: 112px;
}

.lead-table th:nth-child(7),
.lead-table td:nth-child(7) {
    width: 66px;
}

.lead-table .status-form {
    min-width: 0;
    width: 104px;
}

.lead-table .status-select {
    max-width: 104px;
    min-width: 0;
    padding-right: 20px;
    width: 100%;
}
