:root {
    --ink: #192026;
    --muted: #667085;
    --line: #dde3e8;
    --surface: #ffffff;
    --soft: #f5f7f8;
    --teal: #0f766e;
    --green: #17803d;
    --amber: #b7791f;
    --red: #b42318;
    --violet: #5145cd;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: #f7f8f6;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
    flex: 1 0 auto;
}

.site-footer {
    margin-top: auto;
    flex-shrink: 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--ink);
    text-decoration: underline;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    line-height: 1;
    text-decoration: none;
}

.brand-lockup:hover,
.brand-lockup:focus {
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    background: #0f4f49;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(15, 79, 73, 0.18);
    font-size: 1rem;
    letter-spacing: 0;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.05rem;
}

.brand-byline {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
}

.hero-band {
    padding: 78px 0 56px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.88), rgba(247,248,246,0.98)),
        radial-gradient(circle at top left, rgba(15,118,110,0.18), transparent 34%),
        #f8faf9;
}

.eyebrow {
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 500px;
}

.metric-strip div,
.metric-card,
.feature-card,
.price-card,
.surface,
.empty-state {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 18px 45px rgba(25, 32, 38, 0.06);
}

.metric-strip div {
    border-radius: 8px;
    padding: 14px;
}

.metric-strip strong {
    display: block;
    font-size: 1.4rem;
}

.metric-strip span {
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-value-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 560px;
}

.hero-value-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid rgba(15, 118, 110, 0.16);
    border-radius: 999px;
    color: #0f4f49;
    background: #eef6f4;
    font-size: 0.9rem;
    font-weight: 750;
}

.hero-value-list i {
    color: var(--teal);
}

.dashboard-preview {
    border: 1px solid #cbd5dc;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(25, 32, 38, 0.16);
}

.preview-header {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfd;
}

.preview-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cad3dc;
}

.preview-header strong {
    margin-left: 8px;
    font-size: 0.88rem;
}

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

.preview-panel {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.preview-panel.wide {
    grid-column: 1 / -1;
}

.preview-score {
    font-size: 3rem;
    font-weight: 800;
}

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

.bar-row b {
    display: block;
    height: 100%;
    background: var(--green);
}

.mini-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.mini-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.severity {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.severity.high { background: var(--red); }
.severity.medium { background: var(--amber); }
.severity.low { background: var(--teal); }

.comparison-line {
    display: grid;
    grid-template-columns: 1fr 90px 48px;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    font-size: 0.9rem;
}

.comparison-line b {
    height: 8px;
    border-radius: 999px;
    background: var(--green);
}

.comparison-line b.amber { background: var(--amber); }
.comparison-line b.red { background: var(--red); }
.comparison-line em {
    color: var(--muted);
    font-style: normal;
    text-align: right;
}

.location-preview .preview-header strong {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    color: var(--ink);
}

.location-preview .preview-header i {
    color: var(--teal);
}

.location-preview-scroll {
    overflow-x: auto;
}

.location-preview-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    color: var(--ink);
}

.location-preview-table th,
.location-preview-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.location-preview-table th {
    color: #667085;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.location-preview-table td {
    font-size: 0.98rem;
}

.location-preview-table tbody tr:last-child td {
    border-bottom: 0;
}

.location-preview-table td:first-child {
    width: 250px;
}

.location-preview-table td:nth-child(2),
.location-preview-table td:nth-child(3) {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 850;
    white-space: nowrap;
}

.location-preview-table strong {
    display: block;
    font-weight: 850;
    line-height: 1.25;
}

.location-preview-table span {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
}

.trend-pill,
.issue-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 999px;
    font-style: normal;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.trend-pill {
    gap: 2px;
    padding: 9px 12px;
    font-size: 0.9rem;
}

.trend-pill i {
    font-size: 1rem;
    line-height: 1;
}

.trend-pill.up {
    color: #13734f;
    background: #e7f6ee;
}

.trend-pill.down {
    color: #b42318;
    background: #fdecea;
}

.issue-pill {
    margin-top: 7px;
    padding: 7px 10px;
    font-size: 0.76rem;
}

.issue-pill.high {
    color: #fff;
    background: var(--red);
}

.issue-pill.medium {
    color: #7a4b00;
    background: #fff3d6;
}

.locked-location-preview {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.locked-location-preview-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.locked-location-preview-header span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 850;
}

.locked-location-preview-header i {
    color: var(--teal);
}

.locked-location-preview-header small {
    color: var(--muted);
    font-weight: 700;
}

.locked-location-preview .location-preview-scroll {
    border-top: 1px solid var(--line);
}

.location-preview-table.compact {
    min-width: 660px;
}

.location-preview-table.compact th,
.location-preview-table.compact td {
    padding: 13px 14px;
}

.location-preview-table.compact td {
    font-size: 0.92rem;
}

.location-preview-table.compact td:nth-child(2) {
    font-size: 1.15rem;
}

.feature-card,
.price-card,
.surface,
.empty-state,
.metric-card {
    border-radius: 8px;
}

.feature-card,
.price-card {
    height: 100%;
    padding: 26px;
}

.research-card {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(25, 32, 38, 0.06);
}

.impact-band {
    background:
        linear-gradient(135deg, rgba(238, 246, 244, 0.98), rgba(248, 252, 251, 0.98)),
        #eef6f4;
    border-top: 1px solid rgba(15, 118, 110, 0.16);
    border-bottom: 1px solid rgba(15, 118, 110, 0.16);
}

.impact-band .eyebrow {
    color: var(--teal);
}

.impact-band .pricing-note {
    color: #33534f;
}

.impact-band .research-card {
    border-color: rgba(15, 118, 110, 0.2);
    background: #fff;
}

.impact-band .research-card.urgent {
    border-color: rgba(15, 118, 110, 0.36);
    box-shadow: 0 22px 55px rgba(15, 118, 110, 0.12);
}

.research-card strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--teal);
}

.impact-band .research-card strong {
    color: #0f4f49;
}

.research-card h3 {
    margin: 16px 0 0;
    font-size: 1.05rem;
    font-weight: 850;
}

.research-card p {
    margin: 14px 0;
    color: #3b4650;
}

.research-card span {
    color: var(--muted);
    font-size: 0.82rem;
}

.feature-card i {
    color: var(--teal);
    font-size: 1.7rem;
}

.feature-card h2 {
    font-size: 1.15rem;
    margin-top: 18px;
    font-weight: 800;
}

.feature-card p,
.price-card p,
.theme-block p,
.opportunity p {
    color: var(--muted);
}

.pricing-band {
    background: #eef4f1;
}

.pricing-note {
    max-width: 440px;
}

.price-card h3 {
    margin-top: 16px;
    font-size: 2rem;
    font-weight: 850;
}

.price-card h3 span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.price-card p strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
}

.pricing-disclaimer {
    max-width: 880px;
    color: #41545f;
    font-size: 0.95rem;
}

.price-card.featured {
    border-color: #111827;
    box-shadow: 0 22px 60px rgba(15, 118, 110, 0.18);
}

.page-header,
.report-header,
.print-cover {
    padding: 44px 0 30px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
}

.report-header {
    margin-bottom: 0;
}

.report-header .text-secondary {
    color: #344054 !important;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.surface {
    padding: 24px;
}

.side-panel {
    top: 88px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.section-title i {
    color: var(--teal);
    font-size: 1.2rem;
}

.section-title h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.check-list,
.improvement-list {
    padding-left: 0;
    list-style: none;
}

.check-list li,
.improvement-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
}

.check-list li::before,
.improvement-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--teal);
}

.notice {
    display: flex;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 8px;
    color: #0f4f49;
    background: #eef6f4;
    font-size: 0.9rem;
}

.form-text .google-maps-help-link {
    color: var(--teal);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-text .google-maps-help-link:hover,
.form-text .google-maps-help-link:focus {
    color: var(--ink);
}

.method-note {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    color: #123b38;
    background: #eef6f4;
}

.method-note i {
    margin-top: 2px;
    color: var(--teal);
    font-size: 1.1rem;
}

.method-note strong {
    display: block;
    margin-bottom: 4px;
}

.method-note p {
    margin: 0;
    color: #52616b;
    font-size: 0.92rem;
    line-height: 1.5;
}

.analysis-form textarea {
    min-height: 180px;
}

.metric-card {
    padding: 24px;
    min-height: 150px;
}

.metric-card span,
.metric-card small {
    display: block;
    color: var(--muted);
}

.metric-card strong {
    display: block;
    margin: 8px 0;
    font-size: 2.4rem;
    line-height: 1;
}

.coverage-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #eef6f4;
    box-shadow: var(--shadow-soft);
}

.coverage-strip > div {
    min-width: 0;
}

.coverage-strip span,
.coverage-strip small {
    display: block;
    color: var(--muted);
}

.coverage-strip span {
    margin-bottom: 4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.coverage-strip strong {
    display: block;
    color: var(--ink);
    font-size: 1.1rem;
    line-height: 1.25;
}

.coverage-strip-note {
    grid-column: 1 / -1;
    padding-top: 14px;
    border-top: 1px solid rgba(20, 120, 110, 0.18);
    color: #0f4f49;
    font-weight: 700;
}

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

.dashboard-stat-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fbfcfd;
}

.dashboard-stat-grid span,
.dashboard-insight-label {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard-stat-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 1.35rem;
    line-height: 1;
}

.dashboard-insight {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.dashboard-insight:last-child {
    border-bottom: 0;
}

.dashboard-mini-theme {
    margin-top: 8px;
    padding: 10px 12px;
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    background: #f3f8f7;
    font-weight: 700;
}

.dashboard-mini-theme.complaint {
    border-left-color: var(--red);
    background: #fff5f4;
}

.dashboard-location-list {
    display: grid;
    gap: 16px;
}

.dashboard-location-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.dashboard-location-card h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 850;
}

.dashboard-location-card p {
    margin: 0;
    color: var(--muted);
}

.account-plan {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
    margin-bottom: 18px;
}

.account-plan span {
    display: block;
    color: var(--teal);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
}

.account-plan strong {
    display: block;
    margin: 8px 0;
    font-size: 2rem;
    line-height: 1;
}

.account-plan p {
    margin: 0;
    color: var(--muted);
}

.account-plan-summary {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.account-plan-summary li {
    margin: 4px 0;
    line-height: 1.35;
}

.account-plan .subscription-valid-until {
    margin: -2px 0 10px;
    color: #0f4f49;
    font-weight: 750;
}

.account-plan .subscription-valid-until strong {
    display: inline;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.account-plan .plan-total {
    display: inline;
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.info-tooltip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    margin-left: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--teal);
    font-size: 0.78em;
    line-height: 1;
    vertical-align: super;
}

.info-tooltip-button:hover,
.info-tooltip-button:focus {
    color: var(--ink);
}

.billing-note {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.subscription-manager {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.subscription-manager-section + .subscription-manager-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.subscription-manager-heading {
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.subscription-location-row {
    display: block;
    padding: 10px 0;
}

.subscription-location-row + .subscription-location-row {
    border-top: 1px solid var(--line);
}

.subscription-location-copy {
    min-width: 0;
    margin-bottom: 8px;
}

.subscription-location-copy strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.25;
}

.subscription-location-copy span,
.subscription-location-note,
.subscription-manager-empty {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.subscription-manager-empty {
    margin: 0;
}

.subscription-manager-status {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.slot-downgrade-choices {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fbfa;
}

.slot-removal-choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 0;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.35;
}

.slot-removal-choice input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.subscription-location-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.subscription-location-actions form,
.subscription-manager-final form {
    margin: 0;
}

.subscription-location-actions .btn {
    width: 100%;
}

.subscription-manager-final .btn-link-danger {
    width: 100%;
    text-align: left;
}

.subscription-hide-button {
    margin: 0;
}

.subscription-jump-target {
    scroll-margin-top: 24px;
}

.subscription-jump-target:target {
    outline: 3px solid rgba(15, 118, 110, 0.25);
    outline-offset: 4px;
}

.subscription-manager-final {
    padding-top: 18px;
    border-top-color: rgba(180, 35, 24, 0.18);
}

.plan-list {
    padding-left: 18px;
    margin: 0 0 18px;
    color: #3f4a54;
}

.plan-list li {
    margin-bottom: 8px;
}

.locked-account-intro {
    max-width: 760px;
}

.locked-account-intro p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.locked-checkout-section,
.locked-access-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.locked-checkout-section h3 {
    margin: 4px 0 16px;
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1.2;
}

.locked-checkout-section form,
.locked-access-section form {
    max-width: 620px;
}

.locked-checkout-control .form-control {
    flex: 0 0 120px;
    max-width: 120px;
}

.locked-checkout-control .btn {
    flex: 1 1 220px;
    max-width: 280px;
}

.locked-access-control .form-control {
    min-width: 0;
}

.locked-access-control .btn {
    flex: 0 0 auto;
}

.report-actions {
    display: flex;
    align-items: start;
    gap: 10px;
    flex-wrap: wrap;
}

.report-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.report-title-row > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.report-header h1 {
    overflow-wrap: anywhere;
}

.report-switchers {
    display: flex;
    flex: 0 1 740px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    max-width: 740px;
}

.business-switcher {
    flex: 1 1 300px;
    position: relative;
    min-width: 0;
    max-width: 360px;
    padding: 12px;
    border: 1px solid #0f4f49;
    border-radius: 8px;
    background: #0f4f49;
    box-shadow: 0 12px 30px rgba(15, 79, 73, 0.16);
    z-index: 20;
}

.account-switcher {
    flex-basis: 320px;
    max-width: 360px;
}

.business-switcher-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.business-switcher-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 7px;
    background: #fff;
    color: #172027;
    font-weight: 750;
    text-align: left;
}

.business-switcher-button span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.business-switcher-button i {
    flex: 0 0 auto;
}

.business-switcher-button:focus {
    border-color: #fff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.22);
}

.business-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(420px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid #cdd9df;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(23, 32, 39, 0.22);
    z-index: 2000;
}

.business-switcher-menu[hidden] {
    display: none;
}

.business-switcher-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid var(--line);
    background: #f6faf9;
}

.business-switcher-search-wrap i {
    color: var(--teal);
}

.business-switcher-search {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #172027;
    font-weight: 700;
    outline: 0;
}

.business-switcher-list {
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
    background: #fff;
}

.business-switcher-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 7px;
    color: #172027;
    font-weight: 750;
    text-decoration: none;
}

.business-switcher-item.disabled {
    color: #667085;
    cursor: default;
}

.business-switcher-item:hover,
.business-switcher-item:focus {
    color: #0f4f49;
    background: #eef6f4;
    outline: 0;
}

.business-switcher-item.active {
    color: #fff;
    background: #0f4f49;
}

.business-switcher-item > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-switcher-menu {
    width: min(520px, calc(100vw - 32px));
}

.account-switcher-item {
    align-items: flex-start;
}

.account-switcher-item-copy {
    display: grid;
    gap: 2px;
}

.account-switcher-email {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.account-switcher-businesses {
    min-width: 0;
    overflow: hidden;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-switcher-item.active .account-switcher-businesses {
    color: rgba(255, 255, 255, 0.78);
}

.business-switcher-empty {
    padding: 14px 16px;
    color: var(--muted);
    font-weight: 700;
    background: #fff;
}

.report-tabs-shell {
    border-bottom: 1px solid var(--line);
    background: #eef6f4;
}

.report-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
}

.report-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0;
}

.report-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 8px;
    color: #0f4f49;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.report-tab:hover {
    color: #0b3f3a;
    border-color: rgba(15, 118, 110, 0.38);
    background: #fff;
}

.report-tab.active {
    color: #fff;
    border-color: #0f4f49;
    background: #0f4f49;
}

.report-refresh-form {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.report-refresh-note {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: -2px 0 10px auto;
    color: #4b5b66;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: right;
}

.report-refresh-note i {
    flex: 0 0 auto;
    color: var(--teal);
}

.report-refresh-note a {
    color: #0f4f49;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.refresh-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.refresh-status-main {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    gap: 10px;
}

.refresh-status-main > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--teal);
}

.refresh-status-main span,
.refresh-card-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.refresh-status-main strong,
.refresh-card-meta strong {
    display: block;
    margin-top: 2px;
    font-size: 0.98rem;
}

.refresh-status-main small,
.refresh-card-meta small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.refresh-status-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 14px;
    margin-left: auto;
    min-height: 34px;
    max-width: min(620px, 100%);
    padding: 7px 10px;
    border: 1px solid rgba(23, 128, 61, 0.18);
    border-radius: 8px;
    color: #116137;
    background: #edf9f0;
    font-size: 0.86rem;
    font-weight: 800;
}

.refresh-status-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.refresh-status-copy [data-refresh-state-text] {
    overflow-wrap: anywhere;
}

.refresh-status-message.is-running {
    border-color: rgba(15, 118, 110, 0.2);
    color: #0f4f49;
    background: #eef6f4;
}

.refresh-status-message.is-failed {
    justify-content: flex-start;
    width: auto;
    max-width: min(720px, 100%);
    border-color: rgba(180, 35, 24, 0.18);
    color: var(--red);
    background: #fff5f4;
}

.refresh-status-message.is-stale {
    border-color: rgba(183, 121, 31, 0.22);
    color: #8a5a12;
    background: #fff8e8;
}

.refresh-status-message .spinner-border {
    width: 0.85rem;
    height: 0.85rem;
    border-width: 0.14em;
}

.refresh-status-retry {
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: max-content;
    padding-left: 14px;
    padding-right: 14px;
}

.refresh-card-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.refresh-runtime-note {
    display: flex;
    align-items: flex-start;
    max-width: 460px;
    gap: 10px;
    padding: 10px 12px;
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    background: #eef6f4;
    color: #0f4f49;
    font-size: 0.9rem;
    font-weight: 700;
}

.refresh-runtime-note[hidden] {
    display: none;
}

.refresh-runtime-note i {
    margin-top: 2px;
    flex: 0 0 auto;
}

.refresh-runtime-note.is-visible {
    animation: fadeInUp 0.16s ease-out;
}

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

.portfolio-summary-grid .metric-card {
    min-height: 132px;
}

.portfolio-panel {
    overflow: hidden;
}

.portfolio-table-wrap {
    overflow-x: auto;
}

.portfolio-table {
    min-width: 1040px;
    margin: 0;
}

.portfolio-table th {
    padding: 13px 12px;
    border-bottom-color: #cfd8de;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portfolio-table td {
    padding: 16px 12px;
    border-color: var(--line);
    color: #29353d;
}

.portfolio-location-cell,
.portfolio-number-cell,
.portfolio-topic-cell {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.portfolio-location-cell strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.portfolio-location-meta,
.portfolio-number-cell span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.portfolio-location-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
}

.portfolio-refresh-note {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 850;
}

.portfolio-refresh-note.updating {
    color: #0f4f49;
}

.portfolio-refresh-note.failed {
    color: var(--red);
}

.portfolio-number-cell strong {
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
}

.portfolio-topic-cell strong {
    font-size: 0.95rem;
    line-height: 1.35;
}

.portfolio-priority,
.portfolio-trend-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.2;
}

.portfolio-priority {
    padding: 4px 8px;
    color: #0f4f49;
    background: #e7f5f2;
}

.portfolio-priority.high {
    color: #fff;
    background: var(--red);
}

.portfolio-priority.medium {
    color: #5f3b10;
    background: #f8d889;
}

.portfolio-priority.low {
    color: #0f4f49;
    background: #e7f5f2;
}

.portfolio-trend-pill {
    gap: 6px;
    min-height: 32px;
    padding: 6px 9px;
    white-space: nowrap;
}

.portfolio-trend-pill.up {
    color: #116137;
    background: #edf9f0;
}

.portfolio-trend-pill.down {
    color: var(--red);
    background: #fff0ed;
}

.portfolio-trend-pill.flat {
    color: #4f5d68;
    background: #eef2f4;
}

.portfolio-trend-pill.neutral {
    color: #79510f;
    background: #fff5d6;
}

.portfolio-actions {
    text-align: right;
    white-space: nowrap;
}

.portfolio-empty-state {
    padding: 42px 24px;
    text-align: center;
}

.portfolio-empty-state i {
    color: var(--teal);
    font-size: 1.8rem;
}

.portfolio-empty-state h2 {
    margin: 12px 0 6px;
    font-size: 1.2rem;
    font-weight: 850;
}

.portfolio-empty-state p {
    margin: 0 0 18px;
    color: var(--muted);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-row span {
    width: 64px;
    color: var(--muted);
    font-size: 0.88rem;
}

.rating-row .progress {
    height: 10px;
    background: #e9eef1;
}

.rating-row .progress-bar {
    background: var(--teal);
}

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

.trend-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.trend-grid span,
.trend-grid small {
    display: block;
    color: var(--muted);
}

.trend-grid strong {
    display: block;
    font-size: 1.6rem;
}

.chart-wrap {
    position: relative;
    min-height: 340px;
}

.trend-note {
    max-width: 520px;
    font-size: 0.92rem;
}

.coverage-row {
    position: relative;
    display: flex;
    align-items: center;
    height: 28px;
    margin: 10px 0 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf3f2;
}

.coverage-row span {
    position: relative;
    z-index: 2;
    padding: 0 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #0d514b;
}

.coverage-row b {
    position: absolute;
    inset: 0 auto 0 0;
    min-width: 3px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.24);
}

.coverage-row.scope {
    height: 24px;
    margin-top: 0;
    background: #f5f8f8;
}

.coverage-row.scope span {
    font-size: 0.72rem;
    color: #315f5a;
}

.coverage-row.scope b {
    background: rgba(15, 118, 110, 0.14);
}

.coverage-row.warning span {
    color: #69330d;
}

.coverage-row.warning b {
    background: rgba(183, 121, 31, 0.28);
}

.coverage-row.warning.scope span {
    color: #7a4c1b;
}

.coverage-row.warning.scope b {
    background: rgba(183, 121, 31, 0.15);
}

.trend-table {
    font-size: 0.9rem;
}

.topic-method-note {
    max-width: none;
    width: 100%;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.topic-summary-cell {
    max-width: 760px;
    color: #43505a;
    font-size: 0.88rem;
    line-height: 1.45;
}

.topic-note {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.topic-note b {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--muted);
}

.topic-note.positive b {
    background: var(--teal);
}

.topic-note.negative b {
    background: var(--red);
}

.topic-note.neutral {
    color: var(--muted);
}

.topic-note.neutral b {
    background: #a8b3bc;
}

.reply-count {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    color: #0f4f49;
    background: #e7f5f2;
    font-weight: 800;
}

.review-reply-list {
    display: grid;
    gap: 16px;
}

.review-reply-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.review-comment-pane,
.reply-suggestion-pane {
    border-radius: 8px;
    background: #fff;
}

.review-comment-pane {
    padding: 18px;
    border: 1px solid #e3e8ec;
}

.reply-suggestion-pane {
    padding: 18px;
    border-left: 4px solid var(--teal);
    box-shadow: inset 0 0 0 1px #e3e8ec;
}

.reply-suggestion-pane h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 850;
}

.reply-suggestion-pane p {
    margin: 14px 0 0;
    color: #28323b;
    line-height: 1.6;
}

.review-reply-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.rating-badge,
.theme-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 850;
}

.owner-business-row td {
    color: #7a4a00;
    background: #fff7df;
    border-top-color: #f2d58c;
    border-bottom-color: #f2d58c;
}

.owner-business-row td:first-child {
    border-left: 4px solid #c98a12;
}

.owner-business-row td strong {
    color: #6f4300;
}

.owner-business-row .text-muted {
    color: #8a641f !important;
}

.rating-badge {
    padding: 5px 10px;
    color: #fff;
    background: var(--teal);
}

.rating-1,
.rating-2 {
    background: var(--red);
}

.rating-3 {
    color: #5f3b10;
    background: #ffd978;
}

.source-review-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.source-review-table {
    min-width: 980px;
    margin: 0;
    table-layout: fixed;
}

.source-review-table th,
.source-review-table td {
    vertical-align: top;
    border-color: var(--line);
}

.source-review-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 14px;
    background: #f8fbfa;
}

.source-review-table thead th:not(.source-review-index),
.source-review-table tbody td {
    min-width: 340px;
}

.source-review-table thead th:nth-child(2),
.source-review-table tbody td:nth-child(2) {
    background: #fff9e8;
}

.source-review-table thead th:nth-child(2) {
    border-left: 4px solid #c98a12;
}

.source-review-table thead th span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.source-review-table thead th strong {
    display: block;
    margin-top: 4px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.25;
}

.source-review-table thead th small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
}

.source-review-index {
    width: 56px;
    min-width: 56px !important;
    color: var(--muted);
    text-align: center;
}

.source-review-card {
    display: grid;
    gap: 10px;
}

.source-review-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.source-review-card p {
    margin: 0;
    color: #2d3941;
    font-size: 0.94rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.source-review-empty {
    display: inline-block;
    color: var(--muted);
    font-size: 0.9rem;
}

.theme-chip {
    margin-bottom: 10px;
    padding: 4px 9px;
    color: #0f4f49;
    background: #e7f5f2;
    font-size: 0.78rem;
}

.review-comment-pane blockquote {
    margin: 0;
    color: #344054;
    font-size: 1rem;
    line-height: 1.6;
}

.empty-replies {
    padding: 32px;
    border: 1px dashed #cad5dc;
    border-radius: 8px;
    text-align: center;
    background: #fbfcfc;
}

.empty-replies i {
    color: var(--teal);
    font-size: 1.6rem;
}

.empty-replies h3 {
    margin: 12px 0 6px;
    font-size: 1.15rem;
    font-weight: 850;
}

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

.competitor-note {
    height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.competitor-note h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 850;
}

.competitor-note-summary {
    margin: -4px 0 16px;
    color: var(--muted);
    line-height: 1.45;
}

.competitor-note-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.competitor-note-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.competitor-note-grid ul {
    margin: 0;
    padding-left: 18px;
}

.competitor-note-grid li {
    margin-bottom: 6px;
    line-height: 1.45;
}

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

.growth-plan-item {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.growth-plan-item span {
    display: block;
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.growth-plan-item h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 850;
}

.growth-plan-item h3:last-child {
    margin-bottom: 0;
}

.growth-plan-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.theme-block {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 18px;
}

.theme-block:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.theme-block h3,
.opportunity h3 {
    font-size: 1rem;
    font-weight: 800;
}

.theme-count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    line-height: 1;
    white-space: nowrap;
}

.theme-review-details {
    position: relative;
    flex: 0 0 auto;
}

.theme-review-details > summary.theme-count-pill {
    list-style: none;
    cursor: pointer;
}

.theme-review-details > summary.theme-count-pill::-webkit-details-marker {
    display: none;
}

.theme-review-details[open] > summary.theme-count-pill {
    box-shadow: 0 0 0 3px rgba(16, 127, 111, 0.16);
}

.theme-review-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    width: min(560px, calc(100vw - 48px));
    max-height: 460px;
    overflow: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(17, 24, 39, 0.16);
}

.theme-review-panel h4 {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 850;
    color: var(--ink);
}

.theme-review-match {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.theme-review-match:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.theme-review-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.theme-review-meta span::before {
    content: "\2022";
    margin-right: 6px;
    color: #a7b0b8;
}

.theme-review-match blockquote {
    margin: 0 0 8px;
    padding-left: 10px;
    border-left: 3px solid var(--teal);
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.45;
}

.theme-review-match p {
    margin: 0;
    color: #3b4650;
    font-size: 0.86rem;
    line-height: 1.5;
}

.theme-block.complaint h3 {
    color: var(--red);
}

.quote-list {
    margin: 0 0 14px;
    padding-left: 18px;
    color: #3b4650;
}

.quote-list li {
    margin-bottom: 8px;
}

.action-line {
    padding: 12px;
    border-radius: 8px;
    background: var(--soft);
}

.priority-pill {
    display: inline-flex;
    min-width: 70px;
    justify-content: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-weight: 800;
    font-size: 0.78rem;
}

.priority-pill.high { color: #fff; background: var(--red); }
.priority-pill.medium { color: #402d08; background: #f8d889; }
.priority-pill.low { color: #fff; background: var(--teal); }

.customer-journey-section {
    overflow: hidden;
    padding: 18px;
}

.customer-journey-section-header {
    margin-bottom: 12px;
}

.customer-journey-section-header .section-title {
    align-items: center;
}

.journey-heatmap-list {
    display: grid;
    gap: 8px;
    width: min(100%, 320px);
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.journey-stage-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 14px;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

.journey-stage-row strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.journey-status-dot {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #98a2b3;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.22);
}

.journey-status-dot.positive {
    background: var(--green);
}

.journey-status-dot.caution {
    background: #d89b12;
}

.journey-status-dot.negative {
    background: var(--red);
}

.distribution-table-wrap {
    overflow: visible;
}

.mini-distribution {
    display: flex;
    align-items: end;
    gap: 4px;
    width: 92px;
    height: 34px;
}

.mini-distribution span {
    position: relative;
    display: block;
    width: 14px;
    min-height: 4px;
    background: var(--teal);
    border-radius: 3px 3px 0 0;
    cursor: help;
    outline: 0;
}

.mini-distribution span:focus-visible {
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.22);
}

.mini-distribution span::after {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 20;
    min-width: max-content;
    padding: 6px 8px;
    border-radius: 6px;
    color: #fff;
    background: #111827;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
    content: attr(data-tooltip);
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    white-space: nowrap;
}

.mini-distribution span::before {
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    z-index: 21;
    width: 8px;
    height: 8px;
    background: #111827;
    content: "";
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px) rotate(45deg);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.mini-distribution span.is-first::after {
    left: 0;
    transform: translate(0, 4px);
}

.mini-distribution span.is-first::before {
    left: 6px;
    transform: translate(0, 4px) rotate(45deg);
}

.mini-distribution span.is-last::after {
    right: 0;
    left: auto;
    transform: translate(0, 4px);
}

.mini-distribution span.is-last::before {
    right: 4px;
    left: auto;
    transform: translate(0, 4px) rotate(45deg);
}

.mini-distribution span:hover::after,
.mini-distribution span:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.mini-distribution span:hover::before,
.mini-distribution span:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0) rotate(45deg);
}

.mini-distribution span.is-first:hover::after,
.mini-distribution span.is-first:focus-visible::after,
.mini-distribution span.is-last:hover::after,
.mini-distribution span.is-last:focus-visible::after {
    transform: translate(0, 0);
}

.mini-distribution span.is-last:hover::before,
.mini-distribution span.is-last:focus-visible::before {
    transform: translate(0, 0) rotate(45deg);
}

.mini-distribution span.is-first:hover::before,
.mini-distribution span.is-first:focus-visible::before {
    transform: translate(0, 0) rotate(45deg);
}

.positioning-box {
    padding: 16px;
    border-radius: 8px;
    color: #0e4641;
    background: #e7f5f2;
    font-weight: 700;
}

.difference-box {
    margin-top: 18px;
    padding: 18px;
    border-radius: 8px;
    color: #24343b;
    background: #f2faf8;
}

.difference-box.compact {
    margin-top: 0;
}

.analysis-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 16px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #fff;
    background: var(--teal);
    font-size: 0.9rem;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.16);
}

.analysis-pill:hover {
    color: #fff;
    background: #0b5f59;
}

.difference-label {
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.difference-box h3 {
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 760;
}

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

.difference-list li {
    padding-top: 18px;
    border-top: 1px solid rgba(15, 118, 110, 0.18);
}

.difference-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.difference-item-heading {
    margin: 0 0 14px;
    color: #173f3b;
    font-size: 0.98rem;
    font-weight: 680;
    line-height: 1.42;
}

.difference-item-heading span {
    display: inline;
    margin: 0;
}

.difference-item-heading > span:first-child {
    color: #586875;
    font-weight: 720;
}

.difference-heading-divider {
    color: #5f6d75;
}

.difference-list p {
    margin: 0 0 10px;
    color: #2f4148;
    font-size: 0.94rem;
    font-weight: 430;
    line-height: 1.48;
}

.difference-list p:last-child {
    margin-bottom: 0;
}

.difference-list p b {
    color: #1b3634;
    font-weight: 700;
}

.difference-list em {
    display: block;
    margin-top: 4px;
    margin-bottom: 6px;
    color: #1b3634;
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 760;
}

.difference-list ul {
    margin: 0 0 10px;
    padding-left: 20px;
    color: #2f4148;
    font-weight: 500;
    line-height: 1.5;
}

.difference-list ul li {
    padding-top: 0;
    border-top: 0;
    margin-bottom: 4px;
}

.difference-subhead {
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 118, 110, 0.18);
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.competitor-difference-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.competitor-difference-list li {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.56);
}

.competitor-difference-list strong,
.competitor-difference-list span,
.competitor-difference-list small {
    display: block;
}

.competitor-difference-list strong {
    margin-bottom: 4px;
    color: #0e4641;
}

.competitor-difference-list span {
    color: #173f3b;
    line-height: 1.45;
}

.competitor-difference-list small {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.45;
}

.opportunity {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.opportunity:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.opportunity p strong {
    color: var(--ink);
    font-weight: 850;
}

.opportunity blockquote,
.template-text {
    border-left: 4px solid var(--teal);
    padding: 12px 14px;
    margin: 0 0 12px;
    background: var(--soft);
    border-radius: 0 8px 8px 0;
}

.export-surface {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.sales-filter-panel {
    padding: 18px;
}

.sales-filter-form {
    display: grid;
    grid-template-columns: minmax(160px, 220px) minmax(190px, 260px) auto;
    gap: 14px;
    align-items: end;
}

.sales-filter-actions {
    display: flex;
    align-items: center;
}

.sales-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.empty-state {
    text-align: center;
    padding: 54px 24px;
}

.empty-state i {
    color: var(--teal);
    font-size: 2.5rem;
}

.auth-shell {
    min-height: 74vh;
    display: grid;
    place-items: center;
    padding: 48px 20px;
}

.auth-card {
    width: min(100%, 460px);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(25, 32, 38, 0.08);
}

.auth-card.wide {
    width: min(100%, 560px);
}

.auth-card h1 {
    margin: 10px 0 18px;
    font-weight: 850;
}

.auth-card input:not([type="hidden"]) {
    display: block;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    color: var(--ink);
}

.password-field {
    position: relative;
    display: flex;
    align-items: stretch;
}

.auth-card .password-field input:not([type="hidden"]) {
    padding-right: 3.2rem;
}

.password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    display: inline-flex;
    width: 2.8rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0 0.32rem 0.32rem 0;
    background: #fff;
    color: var(--muted);
}

.password-field input:focus + .password-toggle {
    top: 4px;
    right: 4px;
    bottom: 4px;
    background: #cfe0ff;
    color: #1b4da8;
}

.password-field input:-webkit-autofill + .password-toggle,
.password-field input:autofill + .password-toggle {
    background: #e8f0fe;
}

.password-field input:-webkit-autofill:focus + .password-toggle,
.password-field input:autofill:focus + .password-toggle {
    background: #cfe0ff;
}

.password-toggle:hover,
.password-toggle:focus {
    color: #1b4da8;
    background: #dbe8ff;
}

.password-toggle:focus-visible {
    outline: 0;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    font-size: 0.92rem;
}

.legal-shell {
    padding: 64px 0;
}

.legal-page {
    max-width: 760px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(25, 32, 38, 0.08);
}

.legal-page h1 {
    margin: 10px 0 20px;
    font-weight: 850;
}

.legal-page h2 {
    margin-top: 28px;
    font-size: 1.1rem;
    font-weight: 800;
}

.legal-page p {
    color: var(--muted);
    line-height: 1.65;
}

.account-panel {
    max-width: 680px;
}

.account-panel-wide {
    max-width: none;
}

.dashboard-business-card {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.dashboard-business-card.add-business-card {
    background: #f7fbfa;
}

.dashboard-card-label {
    display: block;
    margin-bottom: 6px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-card-subscription {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 8px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 8px;
    color: #0f4f49;
    background: #eef6f4;
    font-size: 0.82rem;
    font-weight: 750;
}

.dashboard-business-card h3 {
    margin: 0 0 6px;
    font-size: 1.35rem;
    font-weight: 850;
}

.dashboard-business-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.dashboard-card-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.dashboard-card-actions form {
    margin: 0;
}

.dashboard-result-link.btn {
    border-color: var(--teal);
    color: var(--teal);
    background: #fff;
    font-weight: 850;
}

.dashboard-result-link.btn:hover,
.dashboard-result-link.btn:focus {
    border-color: var(--teal);
    color: #fff;
    background: var(--teal);
}

.dashboard-card-status-note,
.dashboard-action-note {
    max-width: 190px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: right;
}

.btn-link-danger {
    padding: 0;
    border: 0;
    color: var(--red);
    background: transparent;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
}

.btn-link-danger:hover,
.btn-link-danger:focus {
    color: #b42318;
    text-decoration: underline;
}

.inactive-business-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.inactive-business-row h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 850;
}

.inactive-business-row p {
    margin: 0;
    color: var(--muted);
}

.inactive-business-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.inactive-business-actions form {
    margin: 0;
}

.print-cover h1 {
    font-weight: 850;
}

.print-section {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.print-section h2 {
    font-size: 1.35rem;
    font-weight: 850;
}

.print-section h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-top: 18px;
}

.print-section blockquote {
    border-left: 4px solid var(--line);
    padding-left: 14px;
    color: #3f4a54;
}

.print-section blockquote span {
    color: var(--muted);
}

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

.pricing-mini-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    background: #f7fbfa;
}

.pricing-mini-grid strong {
    display: block;
    color: var(--teal);
    font-size: 1.25rem;
    line-height: 1.1;
}

.pricing-mini-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.results-dashboard {
    padding-top: 22px;
}

.results-dashboard .surface,
.results-kpi-card,
.results-period-card {
    border-color: #d9e2e7;
    box-shadow: 0 14px 38px rgba(25, 32, 38, 0.045);
}

.results-summary-grid,
.results-theme-grid,
.results-bottom-grid {
    display: grid;
    gap: 20px;
}

.results-summary-grid {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
    align-items: stretch;
}

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

.results-kpi-card,
.results-period-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.results-kpi-card {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 28px;
    padding: 28px 32px;
}

.rating-summary,
.top-issue-summary,
.results-period-card {
    min-width: 0;
}

.top-issue-summary {
    padding-left: 32px;
    border-left: 1px solid #cfd8de;
}

.rating-summary > span,
.top-issue-summary > span,
.results-period-card > span,
.performance-panel h3 small {
    color: #344054;
    font-size: 0.9rem;
    font-weight: 850;
}

.rating-summary > span small,
.performance-panel h3 small {
    color: #344054;
    font-weight: 800;
}

.rating-summary strong {
    display: block;
    margin: 8px 0 4px;
    color: #101828;
    font-size: clamp(2.45rem, 5vw, 3.25rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.96;
}

.rating-stars {
    display: flex;
    gap: 8px;
    margin: 10px 0 14px;
    color: #0f766e;
    font-size: 1.16rem;
}

.rating-summary small,
.top-issue-summary small,
.results-period-card small {
    display: block;
    color: #344054;
    font-size: 1rem;
    font-weight: 760;
}

.top-issue-summary strong {
    display: block;
    max-width: 520px;
    margin: 14px 0 10px;
    color: #101828;
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 900;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.results-dashboard .priority-pill {
    min-width: 0;
    margin-bottom: 12px;
    border-radius: 7px;
    font-style: normal;
    text-transform: capitalize;
}

.results-dashboard .priority-pill.high {
    color: #b42318;
    background: #ffe5e5;
}

.results-dashboard .priority-pill.medium {
    color: #9a5b00;
    background: #fff1d6;
}

.results-dashboard .priority-pill.low {
    color: #0f4f49;
    background: #e7f5f2;
}

.results-period-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 28px;
}

.results-period-card strong {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 18px;
    color: #111827;
    font-size: 1.14rem;
    font-weight: 900;
    line-height: 1.3;
}

.results-period-card strong i {
    color: #344054;
}

.results-period-card p {
    margin: 0 0 14px;
    color: #27313a;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.55;
}

.section-title-with-subcopy {
    align-items: flex-start;
}

.section-title-with-subcopy p {
    margin: 3px 0 0;
    color: #344054;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.4;
}

.fix-first-section {
    padding-bottom: 18px;
}

.fix-first-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.fix-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr) max-content;
    grid-template-areas:
        "header action count"
        "impact action count";
    min-width: 0;
    min-height: 0;
    align-items: start;
    gap: 12px 22px;
    padding: 18px;
    border: 1px solid #dce5ea;
    border-radius: 8px;
    background: #fff;
}

.fix-card-header {
    grid-area: header;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.fix-rank {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #fff;
    background: #0f766e;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

.priority-high .fix-rank {
    background: #e11919;
}

.priority-medium .fix-rank {
    background: #ff8a00;
}

.priority-low .fix-rank {
    background: #0f766e;
}

.fix-card h3 {
    margin: 2px 0 0;
    color: #101828;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.fix-card-header em {
    justify-self: end;
    padding: 5px 8px;
    border-radius: 7px;
    color: #0f4f49;
    background: #e7f5f2;
    font-size: 0.75rem;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.priority-high .fix-card-header em {
    color: #b42318;
    background: #ffe5e5;
}

.priority-medium .fix-card-header em {
    color: #9a5b00;
    background: #fff1d6;
}

.fix-card > p {
    grid-area: impact;
    margin: 0;
    color: #344054;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.48;
}

.fix-action {
    grid-area: action;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    align-self: stretch;
    margin: 0;
    padding: 0 0 0 22px;
    border-top: 0;
    border-left: 1px solid #e4e9ed;
}

.fix-action strong,
.fix-action span,
.fix-card > small {
    display: block;
}

.fix-action strong {
    margin-bottom: 4px;
    color: #101828;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fix-action span {
    color: #344054;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.48;
}

.fix-action i {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0f4f49;
    background: #e7f5f2;
    font-size: 1rem;
}

.priority-high .fix-action i {
    color: #b42318;
    background: #ffe5e5;
}

.priority-medium .fix-action i {
    color: #8a4b00;
    background: #fff1d6;
}

.fix-card > small {
    grid-area: count;
    align-self: end;
    justify-self: end;
    margin-top: 0;
    padding-left: 4px;
    color: #344054;
    font-size: 0.92rem;
    font-weight: 850;
    white-space: nowrap;
}

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

.theme-list-details {
    min-width: 0;
}

.theme-list-details > summary {
    list-style: none;
    cursor: pointer;
}

.theme-list-details > summary::-webkit-details-marker {
    display: none;
}

.theme-list-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dfe7eb;
    border-radius: 8px;
    background: #fff;
    color: #101828;
}

.theme-list-row strong {
    min-width: 0;
    font-size: 1rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.theme-list-row small {
    color: #0f766e;
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}

.theme-list-row.complaint small {
    color: #344054;
}

.theme-list-row > .bi-chevron-right {
    color: #344054;
    font-size: 0.95rem;
}

.theme-list-details[open] .theme-list-row > .bi-chevron-right {
    transform: rotate(90deg);
}

.theme-row-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0f766e;
    background: #e7f5f2;
}

.theme-list-row.complaint .theme-row-icon {
    color: #9a5b00;
    background: #fff1d6;
}

.theme-list-panel {
    position: static;
    width: 100%;
    max-height: 340px;
    margin-top: 8px;
    box-shadow: none;
}

.journey-timeline-section {
    overflow: hidden;
}

.journey-timeline {
    --journey-label-gap: 12px;
    --journey-node-size: 28px;
    --journey-node-top: 2px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 34px 16px;
    padding-top: 12px;
}

.journey-timeline::before {
    position: absolute;
    top: 22px;
    right: 0;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: #15243a;
    content: "";
}

.journey-timeline::after {
    position: absolute;
    top: 15px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-top: 3px solid #15243a;
    border-right: 3px solid #15243a;
    transform: rotate(45deg);
    content: "";
}

.journey-timeline-item {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    padding-top: calc(var(--journey-node-top) + var(--journey-node-size) + var(--journey-label-gap));
    text-align: center;
}

.journey-node {
    position: absolute;
    top: var(--journey-node-top);
    left: 50%;
    z-index: 2;
    width: var(--journey-node-size);
    height: var(--journey-node-size);
    border: 7px solid rgba(15, 118, 110, 0.18);
    border-radius: 50%;
    background: #0f766e;
    transform: translateX(-50%);
}

.journey-timeline-item.caution .journey-node {
    border-color: rgba(255, 138, 0, 0.18);
    background: #ff8a00;
}

.journey-timeline-item.negative .journey-node {
    border-color: rgba(225, 25, 25, 0.18);
    background: #e11919;
}

.journey-timeline-item.neutral .journey-node {
    border-color: rgba(102, 112, 133, 0.18);
    background: #98a2b3;
}

.journey-timeline-item strong {
    color: #101828;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.2;
}

.journey-timeline-item p {
    max-width: 170px;
    margin: 0;
    color: #344054;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.3;
}

.journey-insight {
    display: -webkit-box;
    min-height: 2.6em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.journey-evidence {
    display: -webkit-box;
    max-width: 160px;
    max-height: 3.9em;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: #667085;
    font-size: 0.72rem;
    font-style: italic;
    font-weight: 650;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.journey-timeline-item small {
    max-width: 178px;
    color: #667085;
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.35;
}

.journey-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
}

.journey-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #344054;
    font-size: 0.92rem;
    font-weight: 800;
}

.journey-legend b {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #98a2b3;
}

.journey-legend b.positive {
    background: #0f766e;
}

.journey-legend b.caution {
    background: #ff8a00;
}

.journey-legend b.negative {
    background: #e11919;
}

.journey-legend b.neutral {
    background: #98a2b3;
}

.performance-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 22px;
}

.performance-panel {
    min-width: 0;
    padding-left: 22px;
    border-left: 1px solid #d7e0e5;
}

.performance-panel:first-child {
    padding-left: 0;
    border-left: 0;
}

.performance-panel h3 {
    margin: 0 0 14px;
    color: #101828;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.3;
}

.performance-chart-wrap {
    min-height: 190px;
}

.monthly-summary-section {
    padding-bottom: 14px;
}

.monthly-summary-table {
    margin-bottom: 0;
}

.monthly-summary-table th,
.monthly-summary-table td {
    border-color: #e4e9ed;
}

.monthly-summary-table thead th {
    color: #101828;
    font-size: 0.86rem;
    font-weight: 900;
}

.competitive-table {
    margin-bottom: 0;
}

.competitive-table th {
    color: #101828;
    font-size: 0.86rem;
    font-weight: 900;
}

.competitive-table td {
    border-color: #e4e9ed;
}

.competitive-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.competitive-rating i {
    color: #0f766e;
    font-size: 0.95em;
}

.results-dashboard .owner-business-row td {
    color: #0f4f49;
    background: #e7f5f2;
}

.results-dashboard .owner-business-row td:first-child {
    border-left: 4px solid #0f766e;
}

.results-dashboard .owner-business-row td strong {
    color: #0b3f3a;
}

.results-dashboard .owner-business-row .text-muted {
    color: #0f4f49 !important;
}

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

.opportunity-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dfe7eb;
    border-radius: 8px;
    background: #fff;
}

.opportunity-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #0f4f49;
    background: #e7f5f2;
    font-size: 1.05rem;
}

.opportunity-card h3 {
    margin: 0;
    color: #101828;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.opportunity-bullets {
    display: grid;
    gap: 7px;
    margin: 10px 0 0;
    padding-left: 1.1rem;
    color: #344054;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.46;
}

.opportunity-bullets li::marker {
    color: #0f766e;
    font-size: 0.9em;
}

.opportunity-label {
    font-weight: 900;
    text-transform: uppercase;
}

.opportunity-label-insight {
    color: #0f766e;
}

.opportunity-label-action {
    color: var(--violet);
}

@media (max-width: 767px) {
    .portfolio-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .portfolio-summary-grid .metric-card {
        min-height: 118px;
        padding: 18px;
    }

    .portfolio-summary-grid .metric-card strong {
        font-size: 1.9rem;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    body {
        background: #f5f7f6;
        -webkit-font-smoothing: antialiased;
    }

    main {
        overflow-x: hidden;
    }

    .navbar {
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: saturate(180%) blur(18px);
    }

    .navbar .container,
    main > .container,
    .report-header .container,
    .report-tabs-shell .container,
    .page-header .container,
    .site-footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-byline {
        font-size: 0.64rem;
    }

    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        border: 0;
        border-radius: 8px;
        background: #f3f6f5;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.16);
    }

    .navbar-collapse {
        margin-top: 10px;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 16px 36px rgba(25, 32, 38, 0.08);
    }

    .hero-band {
        padding-top: 44px;
    }

    .page-header,
    .report-header {
        padding: 22px 0 18px;
        margin-bottom: 0;
    }

    .report-header h1,
    .page-header h1 {
        font-size: clamp(2rem, 8.5vw, 2.55rem);
        line-height: 1.04;
        letter-spacing: 0;
        overflow-wrap: anywhere;
    }

    .report-header p,
    .page-header p {
        font-size: 1rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .eyebrow {
        font-size: 0.72rem;
        letter-spacing: 0.07em;
    }

    .surface,
    .empty-state,
    .metric-card,
    .feature-card,
    .price-card {
        padding: 16px;
        box-shadow: 0 10px 26px rgba(25, 32, 38, 0.05);
    }

    .surface {
        margin-top: 14px;
    }

    .section-title {
        gap: 8px;
        margin-bottom: 14px;
    }

    .section-title h2 {
        font-size: 1.04rem;
        line-height: 1.2;
    }

    .section-title i {
        font-size: 1.08rem;
    }

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

    .sales-filter-actions,
    .sales-filter-actions .btn {
        width: 100%;
    }

    .sales-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    .form-control,
    .form-select,
    .business-switcher-button {
        min-height: 44px;
    }

    .btn {
        border-radius: 8px;
    }

    .metric-strip,
    .preview-grid,
    .trend-grid,
    .dashboard-stat-grid,
    .coverage-strip {
        grid-template-columns: 1fr;
    }
    .locked-location-preview-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .customer-journey-section-header {
        margin-bottom: 14px;
    }
    .comparison-line {
        grid-template-columns: 1fr;
    }
    .report-title-row {
        flex-direction: column;
        gap: 16px;
    }
    .report-title-row > * {
        min-width: 0;
        width: 100%;
    }
    .report-switchers {
        flex-basis: auto;
        justify-content: stretch;
        width: 100%;
    }
    .business-switcher {
        max-width: 100%;
        width: 100%;
        flex-basis: auto;
        padding: 10px;
        box-shadow: 0 12px 28px rgba(15, 79, 73, 0.14);
    }
    .business-switcher-menu {
        position: fixed;
        top: auto;
        right: 16px;
        bottom: 16px;
        left: 16px;
        width: auto;
        max-height: min(70vh, 520px);
        border-radius: 8px;
    }
    .business-switcher-list {
        max-height: min(54vh, 420px);
    }
    .report-tabs-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
        overflow: hidden;
    }
    .report-tabs {
        gap: 6px;
        max-width: 100%;
        margin-right: 0;
        margin-left: 0;
        padding: 0 0 2px;
        scroll-padding-left: 16px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .report-tabs::-webkit-scrollbar {
        display: none;
    }
    .report-tab {
        min-height: 44px;
        padding: 9px 12px;
        scroll-snap-align: start;
        border-color: rgba(15, 118, 110, 0.16);
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
        font-size: 0.95rem;
    }
    .report-refresh-note {
        justify-content: flex-start;
        max-width: none;
        margin: 0 0 8px;
        text-align: left;
    }
    .report-refresh-form {
        align-items: stretch;
        flex-direction: column;
        margin-left: 0;
    }
    .refresh-status-card {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
        box-shadow: none;
    }
    .refresh-status-message {
        align-items: stretch;
        flex-direction: column;
        max-width: none;
        justify-content: flex-start;
        min-height: 40px;
        padding: 8px 10px;
    }
    .refresh-status-copy {
        align-items: flex-start;
    }
    .refresh-status-retry {
        width: 100%;
    }
    .report-refresh-form .btn {
        width: 100%;
    }
    .dashboard-card-actions {
        align-items: stretch;
        width: 100%;
    }
    .dashboard-card-status-note,
    .dashboard-action-note {
        max-width: none;
        text-align: left;
    }
    .subscription-location-row,
    .subscription-location-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .subscription-location-actions {
        justify-content: flex-start;
    }
    .inactive-business-row {
        align-items: stretch;
        flex-direction: column;
    }
    .inactive-business-actions {
        justify-content: flex-start;
    }
    .review-reply-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    .review-comment-pane,
    .reply-suggestion-pane {
        padding: 14px;
    }
    .reply-suggestion-pane .btn {
        min-height: 36px;
    }
    .review-reply-meta {
        gap: 6px;
        margin-bottom: 10px;
    }
    .reply-count {
        align-self: stretch;
        text-align: center;
    }
    .source-review-table-wrap {
        margin-right: -16px;
        margin-left: -16px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        -webkit-overflow-scrolling: touch;
    }
    .source-review-table {
        min-width: 760px;
    }
    .source-review-table th,
    .source-review-table td {
        padding: 12px;
    }
    .source-review-table thead th:not(.source-review-index),
    .source-review-table tbody td {
        min-width: 280px;
    }
    .source-review-card {
        padding: 12px;
    }
    .source-review-card p {
        font-size: 0.92rem;
        line-height: 1.45;
    }
    .distribution-table-wrap {
        overflow: visible;
    }
    .distribution-table-wrap table,
    .distribution-table-wrap thead,
    .distribution-table-wrap tbody,
    .distribution-table-wrap tr,
    .distribution-table-wrap td {
        display: block;
        width: 100%;
    }
    .distribution-table-wrap thead {
        display: none;
    }
    .distribution-table-wrap tr {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
    }
    .distribution-table-wrap tr:last-child {
        border-bottom: 0;
    }
    .distribution-table-wrap td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 6px 0;
        border-bottom: 0;
        font-size: 0.98rem;
    }
    .distribution-table-wrap td:first-child {
        display: block;
        padding-top: 0;
        color: #18212a;
        font-size: 1.02rem;
    }
    .distribution-table-wrap td:first-child strong {
        display: block;
        overflow-wrap: anywhere;
    }
    .distribution-table-wrap td:not(:first-child)::before {
        color: #667085;
        font-size: 0.74rem;
        font-weight: 850;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        content: "";
    }
    .distribution-table-wrap td:nth-child(2)::before {
        content: "Avg rating";
    }
    .distribution-table-wrap td:nth-child(3)::before {
        content: "Analyzed reviews";
    }
    .distribution-table-wrap td:nth-child(4)::before {
        content: "Distribution";
    }
    .distribution-table-wrap .mini-distribution {
        flex: 0 0 auto;
    }
    .analysis-pill {
        justify-content: center;
        width: 100%;
        border-radius: 8px;
    }
    .competitor-note-grid {
        grid-template-columns: 1fr;
    }
    .growth-plan-grid {
        grid-template-columns: 1fr;
    }
    .pricing-mini-grid {
        grid-template-columns: 1fr;
    }
    .locked-checkout-control,
    .locked-access-control {
        display: grid;
        gap: 10px;
    }
    .locked-checkout-control .form-control,
    .locked-checkout-control .btn,
    .locked-access-control .form-control,
    .locked-access-control .btn {
        width: 100%;
        max-width: none;
        border-radius: 8px !important;
    }
    .export-surface {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 1199px) {
    .results-summary-grid,
    .performance-grid {
        grid-template-columns: 1fr;
    }

    .performance-panel {
        padding-top: 20px;
        padding-left: 0;
        border-top: 1px solid #d7e0e5;
        border-left: 0;
    }

    .performance-panel:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .fix-first-grid {
        grid-template-columns: 1fr;
    }

    .journey-timeline {
        margin-right: 12px;
        margin-left: 12px;
        gap: 10px;
    }
}

@media (max-width: 991px) {
    .results-theme-grid,
    .results-bottom-grid,
    .results-kpi-card {
        grid-template-columns: 1fr;
    }

    .top-issue-summary {
        padding-top: 24px;
        padding-left: 0;
        border-top: 1px solid #cfd8de;
        border-left: 0;
    }

    .fix-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "impact"
            "action"
            "count";
        gap: 12px;
    }

    .fix-action {
        margin: 4px -18px 0;
        padding: 16px 18px 0;
        border-top: 1px solid #e4e9ed;
        border-left: 0;
    }

    .fix-card > small {
        justify-self: start;
        padding-left: 0;
    }

    .journey-timeline {
        --journey-node-top: 0px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 20px;
    }

    .journey-timeline::before,
    .journey-timeline::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .results-dashboard {
        padding-top: 14px;
    }

    .results-kpi-card,
    .results-period-card {
        padding: 18px;
    }

    .results-summary-grid,
    .results-theme-grid,
    .results-bottom-grid {
        gap: 14px;
    }

    .rating-summary strong {
        font-size: 2.55rem;
    }

    .top-issue-summary strong {
        font-size: 1.35rem;
    }

    .fix-first-grid,
    .journey-timeline {
        grid-template-columns: 1fr;
    }

    .fix-card {
        min-height: 0;
    }

    .fix-card-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .fix-card-header em {
        grid-column: 2;
        justify-self: start;
    }

    .theme-list-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .theme-list-row small {
        grid-column: 2;
        justify-self: start;
        white-space: normal;
    }

    .theme-list-row > .bi-chevron-right {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .journey-timeline {
        margin: 6px 0 14px;
        gap: 14px;
    }

    .journey-timeline-item {
        justify-items: start;
        padding: 12px 12px 12px 54px;
        border: 1px solid #dfe7eb;
        border-radius: 8px;
        text-align: left;
    }

    .journey-node {
        top: 14px;
        left: 22px;
        width: 20px;
        height: 20px;
        border-width: 5px;
        transform: none;
    }

    .journey-timeline-item p {
        max-width: none;
    }

    .journey-evidence {
        max-width: none;
    }

    .journey-timeline-item small {
        max-width: none;
    }

    .journey-legend {
        justify-content: flex-start;
        gap: 10px 16px;
    }

    .performance-chart-wrap {
        min-height: 180px;
    }

    .monthly-summary-section .table-responsive,
    .competitive-table-wrap {
        margin-right: -16px;
        margin-left: -16px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .monthly-summary-table {
        min-width: 680px;
    }

    .opportunity-card {
        align-items: start;
    }

}

@media print {
    .navbar,
    footer,
    .print-hide,
    .alert {
        display: none !important;
    }
    body {
        background: #fff;
    }
    .container {
        max-width: 100%;
    }
    .surface,
    .metric-card {
        box-shadow: none;
    }
    .print-cover {
        margin-bottom: 0;
    }
}
