:root {
    --navy: #000028;
    --teal: #009999;
    --mint: #00FFB9;
    --muted-blue: #5A7A9A;
    --lavender: #AAAACC;
    --light-teal: #E0F5F5;
    --warm-gray: #F3F3F0;
    --border-lav: #CCCCDD;
    --dark-text: #333333;
    --med-text: #444444;
    --partner: #0ea5a5;
    --partner-hover: #0d8f8f;
    --partner-light: #f0fafa;
    --partner-border: #b0d9d9;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--warm-gray);
    margin: 0;
    padding: 0;
    color: var(--dark-text);
}

/* ── Landing page ──────────────────────────────────────── */

.landing-page {
    min-height: 100vh;
    background: var(--warm-gray);
}

/* Hero + Login section */
.landing-hero-section {
    background: var(--navy);
    padding: 48px 32px 56px;
    position: relative;
    overflow: hidden;
}

.landing-hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,153,153,0.10) 0%, transparent 60%);
    border-radius: 50%;
}

.landing-hero-section::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,255,185,0.06) 0%, transparent 60%);
    border-radius: 50%;
}

.landing-hero-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.landing-logo {
    font-size: 14px;
    font-weight: bold;
    color: white;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.landing-eyebrow {
    color: var(--teal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.landing-title {
    color: white;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
}

.landing-tagline {
    color: var(--lavender);
    font-size: 17px;
    font-style: italic;
    margin: -4px 0 20px;
}

.landing-desc {
    color: var(--lavender);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 auto 32px;
    max-width: 500px;
}

/* Stats row */
.landing-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-bottom: 36px;
}

.landing-stat {
    text-align: center;
}

.landing-stat-value {
    color: var(--mint);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.landing-stat-label {
    color: var(--muted-blue);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.landing-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(90,122,154,0.3);
}

/* Login card (centered) */
.login-card {
    background: white;
    border-radius: 8px;
    padding: 32px 36px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0, 0, 40, 0.15);
    text-align: center;
    border-top: 4px solid var(--teal);
}

.login-card h2 {
    color: var(--navy);
    font-size: 20px;
    margin: 0 0 4px 0;
    font-weight: bold;
}

.login-card .login-card-sub {
    color: var(--muted-blue);
    font-size: 13px;
    margin-bottom: 20px;
}

.login-card .form-control {
    border: 1px solid var(--border-lav);
    border-radius: 4px;
    font-size: 14px;
}

.login-card .form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(0, 153, 153, 0.15);
}

/* How It Works strip */
.landing-how-section {
    background: white;
    border-bottom: 1px solid var(--border-lav);
    padding: 36px 32px;
}

.landing-how-inner {
    max-width: 800px;
    margin: 0 auto;
}

.landing-how-eyebrow {
    text-align: center;
    color: var(--teal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.landing-how-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.landing-how-step {
    flex: 0 0 200px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.landing-how-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal) 0%, #007a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-how-text strong {
    color: var(--navy);
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.landing-how-text p {
    color: var(--muted-blue);
    font-size: 11px;
    margin: 0;
    line-height: 1.4;
}

.landing-how-arrow {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
    position: relative;
}

.landing-how-arrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--mint) 100%);
}

.landing-how-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid var(--mint);
}

/* Feature highlights */
.landing-features-section {
    padding: 40px 32px;
    background: var(--warm-gray);
}

.landing-features-inner {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.landing-feat-card {
    background: white;
    border: 1px solid var(--border-lav);
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.landing-feat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,40,0.06);
}

.landing-feat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--light-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.landing-feat-card h4 {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.landing-feat-card p {
    color: var(--muted-blue);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Footer strip */
.landing-footer {
    background: var(--navy);
    padding: 16px 32px;
    border-top: 2px solid var(--teal);
}

.landing-footer-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-footer-links {
    display: flex;
    align-items: center;
}

/* Landing responsive */
@media (max-width: 768px) {
    .landing-hero-section {
        padding: 36px 20px 40px;
    }
    .landing-title {
        font-size: 30px;
    }
    .landing-stats {
        gap: 16px;
    }
    .landing-stat-value {
        font-size: 22px;
    }
    .landing-how-steps {
        flex-direction: column;
        gap: 16px;
    }
    .landing-how-step {
        flex: none;
    }
    .landing-how-arrow {
        transform: rotate(90deg);
    }
    .landing-features-inner {
        grid-template-columns: 1fr;
    }
    .landing-footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ── Header ─────────────────────────────────────────────── */

.app-header {
    background: var(--navy);
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-bottom: 3px solid var(--teal);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header h2 {
    color: var(--mint);
    margin: 0;
    font-size: 17px;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.app-header .app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.app-header .app-brand-logo {
    height: 54px;
}

.app-header .app-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.app-header .app-tagline {
    display: flex;
    flex-direction: column;
    font-style: italic;
    font-weight: 400;
    font-size: 11px;
    line-height: 1.25;
    color: var(--lavender);
    letter-spacing: 0;
    margin-top: 3px;
}

.app-header .app-tagline-line {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .app-header .app-tagline {
        display: none;
    }
}

.app-header .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-header .header-nav-link {
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.app-header .header-nav-link:hover {
    background: rgba(0,153,153,0.15);
    color: var(--mint);
}

.app-header .abm-header-btn {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    padding: 5px 14px;
    border-radius: 16px;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 1px 4px rgba(230,126,34,0.3);
}

.app-header .abm-header-btn:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(230,126,34,0.4);
    color: white;
}

.app-header .abm-header-btn:active {
    transform: translateY(0);
}

.app-header .user-info {
    color: var(--lavender);
    font-size: 12px;
    padding-left: 16px;
    border-left: 1px solid rgba(170,170,204,0.3);
}

.app-header .feedback-btn {
    background: var(--teal);
    color: white;
    border: none;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.15s, transform 0.1s;
}

.app-header .feedback-btn:hover {
    background: #00b3b3;
    transform: translateY(-1px);
}

.app-header .feedback-btn:active {
    transform: translateY(0);
}

.admin-dropdown {
    position: relative;
}
.admin-dropdown-toggle {
    color: var(--teal);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 4px;
    background: none;
    border: 1px solid var(--teal);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.admin-dropdown-toggle:hover {
    background: rgba(0,153,153,0.15);
    color: var(--mint);
}
.admin-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: var(--navy);
    border: 1px solid var(--teal);
    border-radius: 6px;
    min-width: 180px;
    z-index: 1100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.admin-dropdown:hover .admin-dropdown-menu,
.admin-dropdown:focus-within .admin-dropdown-menu {
    display: block;
}
.admin-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #AAAACC;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.1s, color 0.1s;
}
.admin-dropdown-menu a:hover {
    background: rgba(0,153,153,0.2);
    color: var(--mint);
}

.impersonate-banner {
    background: linear-gradient(90deg, var(--partner), var(--partner-hover));
    color: white;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    z-index: 600;
}
.impersonate-exit-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    padding: 3px 12px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}
.impersonate-exit-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* ── Panels ─────────────────────────────────────────────── */

.search-panel {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin: 12px 12px 12px 0;
    border: 1px solid var(--border-lav);
}

.results-panel {
    background: white;
    border-radius: 6px;
    padding: 20px;
    margin: 0 12px 12px 0;
    border: 1px solid var(--border-lav);
    min-height: 300px;
}

.history-panel {
    background: var(--navy);
    border-radius: 6px;
    padding: 16px;
    margin: 12px 0 12px 12px;
    position: sticky;
    top: 72px;
    min-height: calc(100vh - 84px);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
}

.history-panel h5 {
    color: var(--mint) !important;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px !important;
}

.history-panel .btn-outline-secondary {
    color: var(--lavender);
    border-color: var(--muted-blue);
    font-size: 11px;
}

.history-panel .btn-outline-secondary:hover {
    background: var(--muted-blue);
    color: white;
    border-color: var(--muted-blue);
}

/* ── History items ──────────────────────────────────────── */

.history-item {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(170, 170, 204, 0.2);
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 4px;
    margin-bottom: 2px;
}

.history-item:hover {
    background: rgba(0, 153, 153, 0.12);
}

.history-item .history-name {
    color: white !important;
}

.history-item .history-date {
    color: var(--lavender) !important;
}

.history-item button {
    color: var(--muted-blue) !important;
    opacity: 0.5;
    transition: opacity 0.15s, color 0.15s;
}

.history-item:hover button {
    opacity: 1;
    color: #ff6b6b !important;
}

.history-panel .text-muted {
    color: var(--lavender) !important;
}

/* ── Portfolio items ─────────────────────────────────────── */

.portfolio-item {
    padding: 10px 10px 8px;
    border-bottom: 1px solid rgba(170, 170, 204, 0.2);
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 4px;
    margin-bottom: 4px;
    min-height: 38px;
    position: relative;
    isolation: isolate;
}

.portfolio-item:hover {
    background: rgba(0, 153, 153, 0.12);
}

.portfolio-name {
    color: white;
    font-size: 13px;
    font-weight: bold;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portfolio-pill {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-left: 6px;
    white-space: nowrap;
}

.portfolio-win-high {
    background: rgba(0, 200, 83, 0.2);
    color: #00E676;
}

.portfolio-win-mid {
    background: rgba(255, 183, 77, 0.2);
    color: #FFB74D;
}

.portfolio-win-low {
    background: rgba(239, 83, 80, 0.2);
    color: #EF5350;
}

.portfolio-pill-deal {
    background: rgba(0, 153, 153, 0.2);
    color: var(--mint);
}

.portfolio-pill-surge {
    background: rgba(255, 183, 77, 0.2);
    color: #FFB74D;
}

.portfolio-pill-date {
    background: rgba(170, 170, 204, 0.2);
    color: var(--lavender);
}

.portfolio-metrics {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.portfolio-metric {
    color: var(--lavender);
    font-size: 10px;
}

.portfolio-surge {
    color: #FFB74D;
}

.portfolio-tier-high {
    color: #4CAF50;
    font-weight: 600;
}

.portfolio-tier-mid {
    color: #FFB74D;
    font-weight: 600;
}

.portfolio-tier-low {
    color: #EF5350;
    font-weight: 600;
}

.portfolio-opp {
    color: var(--muted-blue);
    font-size: 10px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Tabs ───────────────────────────────────────────────── */

.nav-tabs {
    border-bottom: 2px solid var(--border-lav);
}

.nav-tabs .nav-link {
    color: var(--muted-blue);
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.nav-tabs .nav-link:hover {
    color: var(--teal);
    border-bottom-color: var(--teal);
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--navy);
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--teal);
    font-weight: bold;
}

/* ── Buttons ────────────────────────────────────────────── */

.btn-primary,
.btn-primary:active,
.btn-primary:visited {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
    color: white !important;
    font-weight: 600;
    border-radius: 4px;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #007a7a !important;
    border-color: #007a7a !important;
    box-shadow: 0 0 0 2px rgba(0, 153, 153, 0.2) !important;
}

.btn-primary:disabled {
    background: var(--border-lav) !important;
    border-color: var(--border-lav) !important;
    color: var(--muted-blue) !important;
}

.btn-outline-info {
    color: var(--teal) !important;
    border-color: var(--teal) !important;
    font-size: 13px;
}

.btn-outline-info:hover {
    background: var(--teal) !important;
    color: white !important;
}

.btn-outline-success {
    color: var(--teal) !important;
    border-color: var(--teal) !important;
    font-size: 13px;
}

.btn-outline-success:hover {
    background: var(--teal) !important;
    color: white !important;
    border-color: var(--teal) !important;
}

/* ── Form inputs ────────────────────────────────────────── */

.form-control,
.form-select {
    border: 1px solid var(--border-lav);
    border-radius: 4px;
    font-size: 13px;
    color: var(--dark-text);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(0, 153, 153, 0.15);
}

.form-control::placeholder {
    color: var(--lavender);
}

/* ── Checklist ──────────────────────────────────────────── */

.form-check-input:checked {
    background-color: var(--teal);
    border-color: var(--teal);
}

.form-check-label {
    font-size: 13px;
    color: var(--dark-text);
}

/* ── Alerts ─────────────────────────────────────────────── */

.alert-success {
    background: var(--light-teal);
    color: var(--navy);
    border: 1px solid var(--teal);
}

.alert-warning {
    background: #fef9e7;
    color: var(--navy);
    border: 1px solid #e2c76a;
}

.alert-danger {
    background: #fdf0f0;
    color: #5a1a1a;
    border: 1px solid #d4a0a0;
}

/* ── Cards ──────────────────────────────────────────────── */

.card {
    border: 1px solid var(--border-lav);
    border-radius: 6px;
    border-left: 3px solid var(--teal);
}

.card-title {
    color: var(--navy);
    font-size: 15px;
}

/* ── Progress bar ───────────────────────────────────────── */

.progress {
    background: var(--light-teal);
    border-radius: 4px;
    height: 8px;
}

.progress-bar {
    background: var(--teal) !important;
}

/* ── Spinner ────────────────────────────────────────────── */

.spinner-border.text-info {
    color: var(--teal) !important;
}

/* ── Report preview ─────────────────────────────────────── */

.report-preview {
    border: 1px solid var(--border-lav);
    border-radius: 6px;
    padding: 20px;
    margin: 16px 0;
    background: white;
    color: #1a1a2e;
}

.report-title-bar {
    background: var(--navy);
    padding: 16px 20px;
    border-radius: 6px 6px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-title-bar h3 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
}

.report-title-bar .win-prob {
    background: var(--teal);
    padding: 8px 14px;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    width: 100px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.metric-cards {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.metric-card {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    background: transparent;
    border: none;
}

.metric-card .value {
    color: var(--teal);
    font-size: 18px;
    font-weight: bold;
}

.metric-card .label {
    color: var(--muted-blue);
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.metric-card .wallet-sub {
    color: var(--muted-blue);
    font-size: 10px;
    margin-top: 3px;
    line-height: 1.3;
}

.metric-card .wallet-note {
    color: var(--med-text);
    font-size: 9px;
    font-style: italic;
    margin-top: 3px;
    line-height: 1.3;
}

.financial-health-card {
    margin: 12px 0;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0, 153, 153, 0.2);
    background: linear-gradient(135deg, rgba(0, 0, 40, 0.03), rgba(0, 153, 153, 0.04));
}

.fh-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.fh-grade {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.fh-grade-a { background: #15803d; }
.fh-grade-b { background: #0369a1; }
.fh-grade-c { background: #d97706; }
.fh-grade-d { background: #dc2626; }

.fh-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--navy);
}

.fh-subtitle {
    font-size: 9px;
    color: var(--muted-blue);
    margin-top: 1px;
}

.fh-signals {
    display: flex;
    gap: 16px;
    margin: 8px 0;
}

.fh-signal {
    font-size: 11px;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fh-signal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.fh-dot-good { background: #15803d; }
.fh-dot-neutral { background: #0369a1; }
.fh-dot-caution { background: #d97706; }
.fh-dot-risk { background: #dc2626; }

.fh-summary {
    font-size: 12px;
    color: #5A7A9A;
    line-height: 1.5;
    margin-top: 6px;
}
.fh-summary a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.fh-summary a:hover {
    text-decoration: underline;
}

.fh-admin-badge {
    font-size: 8px;
    background: #f3e8ff;
    color: #6b21a8;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.why-now-section {
    background: var(--navy);
    padding: 16px 20px;
    border-radius: 4px;
    margin: 12px 0;
}

.why-now-section h4 {
    color: var(--mint);
    margin: 0 0 8px 0;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.why-now-section p {
    color: var(--border-lav);
    margin: 0 0 8px 0;
    font-size: 13px;
    line-height: 1.6;
}

.why-now-section p:last-child {
    margin-bottom: 0;
}

.why-now-section strong {
    color: var(--mint);
    font-weight: bold;
}

.why-now-section a {
    color: var(--mint);
    text-decoration: underline;
    text-decoration-color: rgba(0, 255, 185, 0.4);
}

.why-now-section a:hover {
    text-decoration-color: var(--mint);
}

.section-header {
    color: var(--teal);
    font-size: 11px;
    font-weight: bold;
    margin: 16px 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tech-stack-section {
    margin: 12px 0;
}

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

.tech-stack-group {
    flex: 1;
}

.tech-group-label {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.tech-group-label.siemens-label {
    color: var(--teal);
}

.tech-group-label.competitor-label {
    color: #cc4444;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.tech-pill.siemens-pill {
    background: var(--light-teal);
    color: var(--teal);
    border: 1px solid var(--teal);
}

/* Siemens products the customer did not renew (SIEMENS FOOTPRINT) */
.non-renewal-block {
    margin-top: 6px;
}

.non-renewal-label {
    color: #a84100;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.tech-pill.non-renewed-pill {
    background: #fff2ba;
    color: #4d3901;
    border: 1px dashed #edbf00;
}

.siemens-pill-detail {
    display: inline-block;
    position: relative;
    vertical-align: top;
}

.siemens-pill-detail > summary {
    list-style: none;
    cursor: pointer;
}

.siemens-pill-detail > summary::-webkit-details-marker {
    display: none;
}

.siemens-pill-clickable::after {
    content: " \25BE";
    font-size: 8px;
    margin-left: 3px;
    opacity: 0.7;
}

.siemens-pill-detail[open] > .siemens-pill-clickable::after {
    content: " \25B4";
}

.pill-detail-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--teal);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 6px;
    min-width: 340px;
    max-width: 560px;
    max-height: 280px;
    overflow-y: auto;
}

.pill-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.pill-detail-table th {
    background: var(--light-teal);
    color: var(--teal);
    font-weight: 700;
    text-align: left;
    padding: 4px 6px;
    border-bottom: 1px solid var(--teal);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.pill-detail-table td {
    padding: 3px 6px;
    border-bottom: 1px solid #eee;
    color: #333;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pill-detail-table tr:last-child td {
    border-bottom: none;
}

.pill-detail-table tr:hover td {
    background: #f6fffe;
}

.tech-pill.competitor-pill {
    background: #fff0f0;
    color: #993333;
    border: 1px solid #ddaaaa;
}

.competitor-pill-detail {
    display: inline-block;
    position: relative;
    vertical-align: top;
}

.competitor-pill-detail > summary {
    list-style: none;
    cursor: pointer;
}

.competitor-pill-detail > summary::-webkit-details-marker {
    display: none;
}

.competitor-pill-clickable::after {
    content: " \25BE";
    font-size: 8px;
    margin-left: 3px;
    opacity: 0.7;
}

.competitor-pill-detail[open] > .competitor-pill-clickable::after {
    content: " \25B4";
}

.pill-detail-panel-competitor {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddaaaa;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 6px;
    min-width: 280px;
    max-width: 460px;
    max-height: 280px;
    overflow-y: auto;
}

.pill-detail-panel-competitor .pill-detail-table th {
    background: #fff0f0;
    color: #993333;
    border-bottom: 1px solid #ddaaaa;
}

.intensity-score {
    font-size: 9px;
    color: #888;
    margin-left: 2px;
    font-weight: normal;
}

.tech-pill.hiring-signal-pill {
    background: #fff8e6;
    color: #8a6d00;
    border: 1px solid #d4b74a;
    border-style: dashed;
}

.hiring-signal-badge {
    font-size: 8px;
    color: #8a6d00;
    margin-left: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tech-none {
    color: var(--muted-blue);
    font-size: 10px;
    font-style: italic;
}

.opportunity-bullet {
    padding: 8px 0;
    font-size: 13px;
    color: var(--dark-text);
    line-height: 1.5;
}

.opp-bullet-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.opportunity-bullet strong {
    color: var(--navy);
}

.opp-priority-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 22px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.opp-inline-score {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-left: 6px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.opp-priority-badge.opp-tier-high,
.opp-inline-score.opp-tier-high { background: #1B8A2E; }
.opp-priority-badge.opp-tier-medium,
.opp-inline-score.opp-tier-medium { background: #D4790E; }
.opp-priority-badge.opp-tier-low,
.opp-inline-score.opp-tier-low { background: #B0362D; }

.tr-activity-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #e8f5e9 0%, #e0f2f1 100%);
    border: 1px solid #80cbc4;
    border-left: 4px solid #00897b;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
}

.tr-activity-badge {
    display: inline-block;
    background: #00897b;
    color: white;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.tr-activity-body {
    flex: 1;
    font-size: 12px;
    color: var(--dark-text);
    line-height: 1.5;
}

.tr-activity-body strong {
    color: #00695c;
}

.tr-activity-products {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tr-activity-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.tr-act-siemens {
    background: var(--light-teal);
    color: var(--teal);
}

.tr-act-comp {
    background: #ffebee;
    color: #c62828;
}

.trustradius-section {
    margin: 16px 0 8px;
}

.trustradius-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.tr-column {
    flex: 1;
    border: 1px solid var(--border-lav);
    border-radius: 6px;
    padding: 12px;
}

.tr-siemens {
    border-left: 3px solid var(--teal);
}

.tr-siemens-weak {
    border-left: 3px solid #f0a050;
}

.tr-competitors {
    border-left: 3px solid #e57373;
}

.tr-col-header {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    color: var(--navy);
}

.tr-product-card {
    background: var(--warm-gray);
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 6px;
}

.tr-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.tr-product-header strong {
    font-size: 12px;
    color: var(--navy);
}

.tr-rating {
    font-size: 11px;
    font-weight: bold;
    color: var(--teal);
    background: var(--light-teal);
    padding: 2px 6px;
    border-radius: 3px;
}

.tr-competitors .tr-rating {
    color: #c62828;
    background: #ffebee;
}

.tr-pros, .tr-cons {
    margin: 0;
    padding-left: 16px;
    list-style: none;
}

.tr-pros li, .tr-cons li {
    font-size: 11px;
    color: var(--dark-text);
    line-height: 1.5;
    position: relative;
    padding-left: 4px;
}

.tr-pros li::before {
    content: "+";
    position: absolute;
    left: -12px;
    color: var(--teal);
    font-weight: bold;
}

.tr-cons li::before {
    content: "−";
    position: absolute;
    left: -12px;
    color: #e57373;
    font-weight: bold;
}

@media (max-width: 768px) {
    .trustradius-grid {
        grid-template-columns: 1fr;
    }
}

.card-row {
    display: flex;
    gap: 10px;
    margin: 8px 0;
}

.risk-card {
    flex: 1;
    background: var(--light-teal);
    padding: 12px;
    border-radius: 4px;
}

.risk-card h5 {
    color: var(--navy);
    margin: 0 0 4px 0;
    font-size: 12px;
    font-weight: bold;
}

.risk-card p {
    color: var(--muted-blue);
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
}

.contact-card {
    flex: 1;
    border: 1px solid var(--border-lav);
    padding: 12px;
    border-radius: 4px;
    background: white;
}

.contact-card .role {
    color: var(--teal);
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.contact-card .name {
    color: var(--navy);
    font-size: 13px;
    font-weight: bold;
    margin-top: 2px;
}

.contact-card .name a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px dashed var(--teal);
}

.contact-card .name a:hover {
    color: var(--teal);
    border-bottom-style: solid;
}

.contact-card .title {
    color: var(--navy);
    font-size: 11px;
}

.contact-card .angle {
    color: var(--med-text);
    font-size: 10px;
    font-style: italic;
    margin-top: 6px;
    line-height: 1.4;
}

.deal-pain-row {
    display: flex;
    gap: 16px;
    margin: 12px 0;
}

.deal-pain-row > div {
    flex: 1;
}

.phase-card {
    background: var(--warm-gray);
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 6px;
    border-left: 3px solid var(--teal);
}

.phase-card .phase-label {
    color: var(--teal);
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.phase-card .phase-headline {
    color: var(--navy);
    font-size: 12px;
    font-weight: bold;
}

.phase-card .phase-price {
    color: var(--teal);
    font-size: 12px;
    font-weight: bold;
}

.phase-card .phase-detail {
    color: var(--med-text);
    font-size: 10px;
    line-height: 1.4;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: var(--muted-blue);
}

.loading-spinner p {
    color: var(--navy);
}

.loading-spinner .text-muted {
    color: var(--muted-blue) !important;
}

/* ── Share / export ─────────────────────────────────────── */

.share-section {
    margin-top: 16px;
    padding: 16px;
    background: var(--warm-gray);
    border-radius: 6px;
    border: 1px solid var(--border-lav);
}

.share-section h6 {
    color: var(--navy);
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}

/* ── Scrollbar (history) ────────────────────────────────── */

.history-panel ::-webkit-scrollbar {
    width: 5px;
}

.history-panel ::-webkit-scrollbar-track {
    background: transparent;
}

.history-panel ::-webkit-scrollbar-thumb {
    background: var(--muted-blue);
    border-radius: 3px;
}

/* ── History-panel dropdown (dark bg) ──────────────────── */

.history-panel .dash-dropdown {
    border: 1px solid var(--muted-blue) !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.history-panel .dash-dropdown .dash-dropdown-trigger {
    min-height: 28px !important;
}

.history-panel .dash-dropdown .dash-dropdown-value,
.history-panel .dash-dropdown .dash-dropdown-value-item {
    color: white !important;
    font-size: 11px !important;
}

.history-panel .dash-dropdown .dash-dropdown-value-item {
    background: rgba(0, 153, 153, 0.25) !important;
    border: 1px solid rgba(0, 153, 153, 0.4) !important;
    border-radius: 3px !important;
}

.history-panel .dash-dropdown .dash-dropdown-placeholder {
    color: var(--lavender) !important;
    font-size: 11px !important;
}

.history-panel .dash-dropdown-wrapper .dash-dropdown-content {
    background: var(--navy) !important;
    border: 1px solid var(--muted-blue) !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.history-panel .dash-dropdown-wrapper .dash-dropdown-search {
    color: white !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--muted-blue) !important;
    font-size: 11px !important;
}

.history-panel .dash-dropdown-wrapper .dash-dropdown-option {
    color: white !important;
    background: var(--navy) !important;
    font-size: 11px !important;
    padding: 6px 10px !important;
}

.history-panel .dash-dropdown-wrapper .dash-dropdown-option:hover,
.history-panel .dash-dropdown-wrapper .dash-dropdown-option[aria-selected="true"] {
    background: rgba(0, 153, 153, 0.2) !important;
    color: var(--mint) !important;
}

.history-panel .dash-dropdown-wrapper .dash-dropdown-action-button {
    color: var(--lavender) !important;
}

.history-panel .dash-dropdown-wrapper .dash-dropdown-action-button:hover {
    color: white !important;
    background: rgba(0, 153, 153, 0.15) !important;
}

.history-panel .dash-dropdown .dash-dropdown-trigger-icon {
    color: var(--lavender) !important;
}

/* ── Status badges ──────────────────────────────────────── */

.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.status-running {
    background: rgba(0, 153, 153, 0.15);
    color: var(--teal);
}

.status-complete {
    background: var(--light-teal);
    color: var(--navy);
}

.status-error {
    background: #fdf0f0;
    color: #5a1a1a;
}

/* ── Separator ──────────────────────────────────────────── */

hr {
    border-color: var(--border-lav);
    opacity: 0.5;
}

/* ── No-reports placeholder ─────────────────────────────── */

.history-panel p.text-muted {
    color: var(--lavender) !important;
    font-size: 12px;
    text-align: center;
    padding: 20px 0;
}

/* ═══════════════════════════════════════════════════════════
   About page
   ═══════════════════════════════════════════════════════════ */

.about-page {
    background: var(--warm-gray);
    min-height: 100vh;
}

/* ── Nav ────────────────────────────────────────────────── */

.about-nav {
    background: var(--navy);
    border-bottom: 3px solid var(--teal);
    position: sticky;
    top: 0;
    z-index: 100;
}

.about-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Hero ───────────────────────────────────────────────── */

.about-hero {
    background: var(--navy);
    position: relative;
    overflow: hidden;
    padding: 80px 32px 72px;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,153,153,0.10) 0%, transparent 60%);
    border-radius: 50%;
}

.about-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,255,185,0.06) 0%, transparent 60%);
    border-radius: 50%;
}

.about-hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.about-hero-eyebrow {
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-hero-title {
    color: white;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px;
    white-space: pre-line;
}

.about-hero-desc {
    color: var(--lavender);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 auto 40px;
    max-width: 600px;
}

.about-hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

.about-stat {
    text-align: center;
}

.about-stat-value {
    color: var(--mint);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.about-stat-label {
    color: var(--muted-blue);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

/* ── Section base ──────────────────────────────────────── */

.about-section {
    padding: 72px 32px;
}

.about-section-dark {
    background: var(--navy);
}

.about-section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section-eyebrow {
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
}

.about-section-eyebrow-light {
    color: var(--mint);
}

.about-section-title {
    color: var(--navy);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 48px;
}

.about-section-title-light {
    color: white;
}

/* ── How It Works — Steps ──────────────────────────────── */

.about-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.about-step {
    flex: 0 0 280px;
    text-align: center;
    padding: 0 16px;
}

.about-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal) 0%, #007a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 20px rgba(0,153,153,0.25);
}

.about-step-number {
    color: var(--teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.about-step-title {
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.about-step-desc {
    color: var(--muted-blue);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.about-step-connector {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    position: relative;
}

.about-step-connector::before {
    content: '';
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--teal) 0%, var(--mint) 100%);
}

.about-step-connector::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--mint);
}

/* Step icons (CSS shapes) */
.step-icon-search,
.step-icon-ai,
.step-icon-export {
    width: 28px;
    height: 28px;
    position: relative;
}

.step-icon-search::before {
    content: '';
    width: 18px;
    height: 18px;
    border: 3px solid white;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.step-icon-search::after {
    content: '';
    width: 3px;
    height: 10px;
    background: white;
    position: absolute;
    bottom: 0;
    right: 2px;
    transform: rotate(-45deg);
    border-radius: 2px;
}

.step-icon-ai::before {
    content: '';
    width: 22px;
    height: 22px;
    border: 3px solid white;
    border-radius: 4px;
    position: absolute;
    top: 3px;
    left: 3px;
}

.step-icon-ai::after {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 11px;
    left: 11px;
    box-shadow: -6px -4px 0 0 white, 6px -4px 0 0 white, 0 6px 0 0 white;
}

.step-icon-export::before {
    content: '';
    width: 18px;
    height: 22px;
    border: 3px solid white;
    border-radius: 3px;
    position: absolute;
    top: 1px;
    left: 5px;
}

.step-icon-export::after {
    content: '';
    width: 10px;
    height: 3px;
    background: white;
    position: absolute;
    top: 12px;
    left: 9px;
    box-shadow: 0 -5px 0 0 white, 0 5px 0 0 white;
}

/* ── Features grid ─────────────────────────────────────── */

.about-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-feature-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(0,153,153,0.25);
    border-radius: 8px;
    padding: 28px 24px;
    transition: transform 0.2s, border-color 0.2s;
}

.about-feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
}

.about-feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0,153,153,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.about-feature-title {
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.about-feature-desc {
    color: var(--lavender);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

/* Feature icons */
.feat-icon-target,
.feat-icon-stack,
.feat-icon-chart,
.feat-icon-people,
.feat-icon-deal,
.feat-icon-shield,
.feat-icon-review,
.feat-icon-intent,
.feat-icon-chat {
    width: 22px;
    height: 22px;
    position: relative;
}

.feat-icon-target::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 1px;
}

.feat-icon-target::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--mint);
    border-radius: 50%;
    position: absolute;
    top: 7px;
    left: 7px;
}

.feat-icon-stack::before {
    content: '';
    width: 20px;
    height: 4px;
    background: var(--teal);
    border-radius: 2px;
    position: absolute;
    top: 2px;
    left: 1px;
    box-shadow: 0 6px 0 var(--mint), 0 12px 0 var(--teal);
}

.feat-icon-chart::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--teal);
    position: absolute;
    bottom: 1px;
    left: 2px;
    border-radius: 2px;
    box-shadow: 6px 4px 0 var(--mint), 12px -2px 0 var(--teal);
}

.feat-icon-people::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    position: absolute;
    top: 1px;
    left: 7px;
}

.feat-icon-people::after {
    content: '';
    width: 16px;
    height: 8px;
    border: 2px solid var(--mint);
    border-top: none;
    border-radius: 0 0 8px 8px;
    position: absolute;
    bottom: 1px;
    left: 3px;
}

.feat-icon-deal::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-bottom: 16px solid var(--teal);
    position: absolute;
    top: 1px;
    left: 0;
}

.feat-icon-deal::after {
    content: '';
    width: 10px;
    height: 2px;
    background: var(--navy);
    position: absolute;
    bottom: 4px;
    left: 6px;
    box-shadow: 0 -4px 0 var(--navy);
}

.feat-icon-shield::before {
    content: '';
    width: 18px;
    height: 20px;
    border: 2px solid var(--teal);
    border-radius: 2px 2px 8px 8px;
    position: absolute;
    top: 0;
    left: 2px;
}

.feat-icon-shield::after {
    content: '';
    width: 6px;
    height: 10px;
    border-bottom: 2px solid var(--mint);
    border-right: 2px solid var(--mint);
    transform: rotate(45deg);
    position: absolute;
    top: 3px;
    left: 7px;
}

.feat-icon-review::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--teal);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 2px;
}

.feat-icon-review::after {
    content: '\2605';
    font-size: 10px;
    color: var(--mint);
    position: absolute;
    top: 2px;
    left: 7px;
}

.feat-icon-intent::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid var(--teal);
    position: absolute;
    top: 1px;
    left: 1px;
}

.feat-icon-intent::after {
    content: '!';
    font-size: 11px;
    font-weight: bold;
    color: var(--navy);
    position: absolute;
    top: 6px;
    left: 8px;
}

.feat-icon-chat::before {
    content: '';
    width: 18px;
    height: 14px;
    border: 2px solid var(--teal);
    border-radius: 4px;
    position: absolute;
    top: 0;
    left: 1px;
}

.feat-icon-chat::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 6px solid var(--teal);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    position: absolute;
    bottom: 0;
    left: 4px;
    transform: rotate(45deg);
}

/* ── Footer ────────────────────────────────────────────── */

.about-footer {
    background: var(--navy);
    border-top: 3px solid var(--teal);
    padding: 40px 32px;
}

.about-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-footer-team {
    text-align: center;
}

.about-cta-btn {
    display: inline-block;
    background: var(--teal);
    color: white !important;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.about-cta-btn:hover {
    background: #007a7a;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 768px) {
    .about-hero {
        padding: 48px 20px 40px;
    }
    .about-hero-title {
        font-size: 28px;
    }
    .about-hero-stats {
        gap: 24px;
    }
    .about-stat-value {
        font-size: 24px;
    }
    .about-steps {
        flex-direction: column;
        align-items: center;
    }
    .about-step {
        flex: none;
        max-width: 320px;
        margin-bottom: 24px;
    }
    .about-step-connector {
        transform: rotate(90deg);
        margin: 0 0 16px;
    }
    .about-features-grid {
        grid-template-columns: 1fr;
    }
    .about-footer-inner {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .about-footer-cta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}

/* About page outline CTA button */

.about-cta-btn-outline {
    display: inline-block;
    color: var(--teal) !important;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--teal);
    transition: background 0.2s, color 0.2s;
    margin-right: 10px;
}

.about-cta-btn-outline:hover {
    background: var(--teal);
    color: white !important;
}

/* ═══════════════════════════════════════════════════════════
   How to Use page
   ═══════════════════════════════════════════════════════════ */

.htu-page {
    background: var(--warm-gray);
    min-height: 100vh;
}

/* ── Hero ───────────────────────────────────────────────── */

.htu-hero {
    background: var(--navy);
    padding: 60px 32px 52px;
    position: relative;
    overflow: hidden;
}

.htu-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,153,153,0.10) 0%, transparent 60%);
    border-radius: 50%;
}

.htu-hero-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.htu-hero-title {
    color: white;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
}

/* ── Section base ──────────────────────────────────────── */

.htu-section {
    padding: 64px 32px;
}

.htu-section-alt {
    background: white;
}

.htu-section-dark {
    background: var(--navy);
}

.htu-section-inner {
    max-width: 860px;
    margin: 0 auto;
}

/* ── Quick Start ───────────────────────────────────────── */

.htu-quickstart {
    max-width: 600px;
    margin: 0 auto;
}

.htu-qs-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px 0;
}

.htu-qs-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal) 0%, #007a7a 100%);
    color: white;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0,153,153,0.2);
}

.htu-qs-body {
    flex: 1;
    padding-top: 4px;
}

.htu-qs-title {
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
}

.htu-qs-desc {
    color: var(--muted-blue);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.htu-qs-divider {
    width: 2px;
    height: 20px;
    background: linear-gradient(180deg, var(--teal) 0%, var(--mint) 100%);
    margin-left: 21px;
}

/* ── Search modes grid ─────────────────────────────────── */

.htu-search-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.htu-search-grid.about-bu-grid {
    grid-template-columns: repeat(3, 1fr);
}

.htu-search-card {
    background: var(--warm-gray);
    border: 1px solid var(--border-lav);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.htu-search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,40,0.06);
}

.htu-search-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.htu-search-badge {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--light-teal);
    color: var(--teal);
}

.htu-search-badge-alt {
    background: var(--navy);
    color: var(--mint);
}

.htu-search-card-title {
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.htu-search-card-desc {
    color: var(--dark-text);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 12px;
}

.htu-search-when-label {
    color: var(--teal);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.htu-search-when {
    color: var(--muted-blue);
    font-size: 12px;
    font-style: italic;
    line-height: 1.5;
}

/* ── Reading Your Brief ────────────────────────────────── */

.htu-brief-list {
    max-width: 680px;
    margin: 0 auto;
}

.htu-brief-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-lav);
}

.htu-brief-item:last-child {
    border-bottom: none;
}

.htu-brief-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
    margin-top: 6px;
}

.htu-brief-body {
    flex: 1;
}

.htu-brief-title {
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}

.htu-brief-desc {
    color: var(--muted-blue);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ── Sharing & Exporting ───────────────────────────────── */

.htu-export-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.htu-export-card {
    background: var(--warm-gray);
    border: 1px solid var(--border-lav);
    border-radius: 8px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.2s;
}

.htu-export-card:hover {
    transform: translateY(-2px);
}

.htu-export-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal) 0%, #007a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.htu-export-title {
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
}

.htu-export-desc {
    color: var(--muted-blue);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

/* Export icons */
.htu-icon-pdf,
.htu-icon-email,
.htu-icon-share,
.htu-icon-chat {
    width: 24px;
    height: 24px;
    position: relative;
}

.htu-icon-pdf::before {
    content: '';
    width: 16px;
    height: 20px;
    border: 2px solid white;
    border-radius: 2px;
    position: absolute;
    top: 2px;
    left: 4px;
}

.htu-icon-pdf::after {
    content: '';
    width: 8px;
    height: 2px;
    background: white;
    position: absolute;
    top: 11px;
    left: 8px;
    box-shadow: 0 4px 0 white;
}

.htu-icon-email::before {
    content: '';
    width: 20px;
    height: 14px;
    border: 2px solid white;
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 2px;
}

.htu-icon-email::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 6px solid white;
    position: absolute;
    top: 7px;
    left: 4px;
}

.htu-icon-share::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    right: 2px;
    box-shadow: 0 12px 0 white, -12px 6px 0 white;
}

.htu-icon-share::after {
    content: '';
    width: 12px;
    height: 2px;
    background: white;
    position: absolute;
    top: 10px;
    left: 3px;
    transform: rotate(-30deg);
    box-shadow: 0 0 0 0 white;
}

.htu-icon-chat::before {
    content: '';
    width: 18px;
    height: 14px;
    border: 2px solid white;
    border-radius: 4px;
    position: absolute;
    top: 1px;
    left: 2px;
}

.htu-icon-chat::after {
    content: '\2026';
    font-size: 14px;
    color: white;
    position: absolute;
    top: -1px;
    left: 7px;
}

/* ── Tips ───────────────────────────────────────────────── */

.htu-tips-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.htu-tip {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(0,153,153,0.2);
    border-radius: 8px;
    padding: 20px;
    transition: border-color 0.2s;
}

.htu-tip:hover {
    border-color: var(--teal);
}

.htu-tip-number {
    color: var(--mint);
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.6;
}

.htu-tip-body {
    flex: 1;
}

.htu-tip-title {
    color: white;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}

.htu-tip-desc {
    color: var(--lavender);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
}

/* ── FAQ ────────────────────────────────────────────────── */

.htu-faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.htu-faq-item {
    border-bottom: 1px solid var(--border-lav);
    padding: 20px 0;
}

.htu-faq-item:last-child {
    border-bottom: none;
}

.htu-faq-q {
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.htu-faq-a {
    color: var(--muted-blue);
    font-size: 13px;
    line-height: 1.7;
}

/* ── Dashboard help bar ────────────────────────────────── */

.dashboard-help-bar {
    text-align: center;
    padding: 12px 24px;
    background: var(--navy);
    border-top: 1px solid rgba(0,153,153,0.2);
}

/* ── How to Use responsive ─────────────────────────────── */

@media (max-width: 768px) {
    .htu-hero {
        padding: 40px 20px 36px;
    }
    .htu-hero-title {
        font-size: 26px;
    }
    .htu-search-grid,
    .htu-search-grid.about-bu-grid {
        grid-template-columns: 1fr;
    }
    .htu-export-grid {
        grid-template-columns: 1fr;
    }
    .htu-tips-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Chat Floating Widget ────────────────────────────── */

.chat-fab {
    position: fixed;
    bottom: calc(24px + var(--ac-bottom-bar-offset, 0px));
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--navy);
    color: white;
    padding: 12px 20px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 40, 0.3);
    z-index: 9998;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 0, 40, 0.4);
}
.chat-fab-bubble {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    background: var(--teal);
    border-radius: 10px 10px 10px 2px;
}
.chat-fab-bubble::after {
    content: "...";
    position: absolute;
    top: -1px;
    left: 4px;
    font-size: 14px;
    font-weight: 900;
    color: white;
    letter-spacing: 0.5px;
    line-height: 20px;
}
.chat-fab-text {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.chat-panel-floating {
    position: fixed;
    bottom: calc(24px + var(--ac-bottom-bar-offset, 0px));
    right: 24px;
    width: 400px;
    height: 520px;
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border-lav);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: chatSlideUp 0.2s ease-out;
}

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

.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--navy);
    color: white;
    flex-shrink: 0;
}

.chat-panel-title {
    font-size: 14px;
    font-weight: 600;
}

.chat-close-btn {
    background: none;
    border: none;
    color: #AAAACC;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.chat-close-btn:hover {
    color: white;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 85%;
    animation: chatFadeIn 0.2s ease-out;
}

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

.chat-msg-user {
    align-self: flex-end;
}

.chat-msg-user .chat-msg-content {
    background: var(--navy);
    color: white;
    border-radius: 12px 12px 2px 12px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.chat-msg-assistant {
    align-self: flex-start;
}

.chat-msg-assistant .chat-msg-content {
    background: var(--warm-gray);
    color: var(--dark-text);
    border-radius: 12px 12px 12px 2px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid var(--border-lav);
}

.chat-markdown p {
    margin: 0 0 8px 0;
}
.chat-markdown p:last-child {
    margin-bottom: 0;
}
.chat-markdown strong {
    color: var(--navy);
}
.chat-markdown ul, .chat-markdown ol {
    margin: 4px 0;
    padding-left: 20px;
}
.chat-markdown li {
    margin-bottom: 2px;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-lav);
    background: white;
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    font-size: 13px !important;
    border-radius: 6px !important;
}

.chat-send-btn {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
    font-size: 13px;
    padding: 4px 16px;
}

.chat-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.chat-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 18px !important;
    min-height: 20px;
}

.chat-typing-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    animation: chatDotPulse 1.4s ease-in-out infinite;
}

.chat-typing-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatDotPulse {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1); }
}

.chat-mic-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--warm-gray);
    border: 1px solid var(--border-lav);
    color: var(--muted-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
    padding: 0;
}

.chat-mic-btn:hover {
    background: var(--light-teal);
    border-color: var(--teal);
}

.chat-mic-btn.recording {
    background: #c62828;
    border-color: #c62828;
    animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.chat-audio-banner {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-blue);
    background: var(--warm-gray);
    border-top: 1px solid var(--border-lav);
    flex-shrink: 0;
}

.chat-audio-banner.recording-active {
    color: #c62828;
    background: #FFF5F5;
    border-top-color: #FFCDD2;
}

.chat-audio-banner.recording-active::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c62828;
    animation: pulse-recording 1.5s infinite;
    flex-shrink: 0;
}

.chat-audio-banner.transcribing {
    color: var(--teal);
    background: var(--light-teal);
    border-top-color: var(--teal);
}

.chat-audio-banner.transcription-done {
    color: #2E7D32;
    background: #F1F8E9;
    border-top-color: #C8E6C9;
}

.battle-cards-section {
    margin-top: 12px;
}

.battle-cards-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: linear-gradient(135deg, #000028 0%, #1B1B3A 100%);
    border-radius: 6px;
    border: 1px solid #2A2A4A;
    user-select: none;
}

.battle-cards-toggle:hover {
    border-color: var(--teal);
}

.battle-cards-toggle .toggle-icon {
    color: var(--mint);
    font-size: 10px;
    margin-right: 8px;
    transition: transform 0.2s;
    display: inline-block;
}

details[open] > .battle-cards-toggle .toggle-icon {
    transform: rotate(90deg);
}

.battle-cards-toggle .toggle-label {
    color: var(--mint);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.battle-cards-toggle .toggle-count {
    margin-left: auto;
    background: var(--teal);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
}

.battle-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
}

.battle-card {
    border: 1px solid #2A2A4A;
    border-radius: 6px;
    padding: 14px;
    background: #FAFAFE;
    border-left: 3px solid #c62828;
}

.battle-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.battle-card-competitor {
    font-weight: bold;
    font-size: 13px;
    color: var(--navy);
}

.battle-card-hiring {
    border-left-color: #d4b74a;
}

.bc-hiring-badge {
    margin-left: 6px;
    font-size: 8px;
    font-weight: 700;
    color: #8a6d00;
    background: #fff8e6;
    border: 1px dashed #d4b74a;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.battle-card-category {
    margin-left: 8px;
    font-size: 10px;
    color: #666;
    background: #EEEEF5;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.battle-card-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 11px;
    line-height: 1.5;
}

.battle-card-row .bc-label {
    flex-shrink: 0;
    font-weight: bold;
    font-size: 10px;
    letter-spacing: 0.3px;
    min-width: 110px;
}

.battle-card-row .bc-value {
    color: #444;
}

.bc-label-why { color: #555; }
.bc-label-weak { color: #c62828; }
.bc-label-play { color: var(--teal); }
.bc-label-proof { color: #1565C0; }

/* ── Buyer Intent Scanner Page ────────────────────────── */

.intent-page {
    min-height: 100vh;
    background: var(--warm-gray);
}

.intent-nav {
    background: var(--navy);
    padding: 14px 32px;
    border-bottom: 2px solid var(--teal);
}

.intent-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.intent-hero {
    background: var(--navy);
    padding: 40px 32px 48px;
    text-align: center;
}

.intent-hero-inner {
    max-width: 700px;
    margin: 0 auto;
}

.intent-eyebrow {
    color: var(--teal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.intent-title {
    color: white;
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 14px;
}

.intent-desc {
    color: var(--lavender);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto 28px;
    max-width: 560px;
}

.intent-action-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.intent-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 32px 48px;
}

.intent-scan-progress {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(0,0,40,0.03);
    border-radius: 6px;
    margin-bottom: 16px;
}

.intent-scan-complete {
    padding: 12px 16px;
    background: rgba(0,153,153,0.08);
    border-radius: 6px;
    margin-bottom: 16px;
}

.intent-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.intent-summary-card {
    background: white;
    border: 1px solid var(--border-lav);
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
}

.intent-summary-card.intent-high {
    border-left: 4px solid var(--teal);
}

.intent-summary-card.intent-med {
    border-left: 4px solid #f9a825;
}

.intent-summary-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
}

.intent-summary-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.intent-section-title {
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.intent-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,40,0.06);
}

.intent-table thead {
    background: var(--navy);
}

.intent-table th {
    color: var(--lavender);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 12px;
    text-align: left;
}

.intent-table td {
    padding: 10px 12px;
    font-size: 13px;
    color: var(--dark-text);
    border-bottom: 1px solid var(--border-lav);
    vertical-align: middle;
}

.intent-table tbody tr:hover {
    background: rgba(0,153,153,0.03);
}

.intent-table-sm td {
    font-size: 12px;
    padding: 8px 10px;
}

.intent-row {}

.intent-acct-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 13px;
}

.intent-acct-industry {
    font-size: 11px;
    color: var(--muted-blue);
}

.intent-td-score {
    white-space: nowrap;
}

.intent-score-num {
    font-weight: 800;
    font-size: 16px;
    color: var(--navy);
    margin-right: 6px;
}

.intent-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.intent-badge-high {
    background: var(--teal);
    color: white;
}

.intent-badge-med {
    background: #f9a825;
    color: #333;
}

.intent-badge-low {
    background: var(--border-lav);
    color: #666;
}

.intent-pill {
    display: inline-block;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    margin: 1px 2px;
    font-weight: 600;
}

.intent-pill-siemens {
    background: var(--light-teal);
    color: var(--teal);
}

.intent-pill-comp {
    background: #ffebee;
    color: #c62828;
}

.intent-bombora-surge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #00796b;
    background: #e0f2f1;
    padding: 2px 8px;
    border-radius: 10px;
}

.intent-bombora-active {
    display: inline-block;
    font-size: 10px;
    color: var(--muted-blue);
    background: var(--warm-gray);
    padding: 2px 8px;
    border-radius: 10px;
}

.intent-unmatched-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-lav);
}

@media (max-width: 768px) {
    .intent-hero {
        padding: 32px 20px 36px;
    }
    .intent-title {
        font-size: 26px;
    }
    .intent-summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .intent-table {
        font-size: 11px;
    }
    .intent-action-row {
        flex-direction: column;
        align-items: center;
    }
}

/* ── UX Improvements ─────────────────────────────────── */

/* #1 Product Focus card */
.product-focus-card {
    background: linear-gradient(135deg, #E0F5F5 0%, #f0fffe 100%);
    border: 1px solid var(--teal);
    border-radius: 8px;
    padding: 14px 16px;
}

.product-focus-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.product-focus-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.2px;
}

.product-focus-optional-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--teal);
    background: rgba(0, 153, 153, 0.12);
    padding: 2px 7px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-focus-hint {
    font-size: 11px;
    color: var(--muted-blue);
    margin-bottom: 10px;
    line-height: 1.4;
}

/* Override Dash CSS custom properties on product-focus-card scope */
.product-focus-card {
    --Dash-Stroke-Strong: #CCCCDD;
    --Dash-Fill-Interactive-Strong: #009999;
    --Dash-Text-Disabled: #8888AA;
    --Dash-Shading-Strong: rgba(0, 0, 40, 0.12);
    --Dash-Shading-Weak: rgba(0, 0, 40, 0.06);
}

.product-focus-card .dash-dropdown {
    border: 1px solid rgba(0, 153, 153, 0.35) !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    min-height: 36px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    color: var(--navy) !important;
    box-shadow: 0 1px 3px rgba(0, 40, 40, 0.06) !important;
    outline: none !important;
}

.product-focus-card .dash-dropdown:hover {
    border-color: var(--teal) !important;
    box-shadow: 0 1px 4px rgba(0, 153, 153, 0.12) !important;
}

.product-focus-card .dash-dropdown:focus {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 2px rgba(0, 153, 153, 0.18) !important;
    outline: none !important;
}

.product-focus-card .dash-dropdown .dash-dropdown-value {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    color: var(--navy) !important;
}

.product-focus-card .dash-dropdown .dash-dropdown-placeholder {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    color: var(--muted-blue) !important;
}

.product-focus-card .dash-dropdown .dash-dropdown-trigger {
    min-height: 34px !important;
}

.product-focus-card .dash-dropdown-wrapper .dash-dropdown-search {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    color: var(--navy) !important;
}

.product-focus-card .dash-dropdown-wrapper .dash-dropdown-content {
    border: 1px solid rgba(0, 153, 153, 0.3) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 40, 40, 0.1) !important;
    background: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
}

.product-focus-card .dash-dropdown-wrapper .dash-dropdown-option {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    color: var(--navy) !important;
    background: #fff !important;
    padding: 8px 12px !important;
}

.product-focus-card .dash-dropdown-wrapper .dash-dropdown-option:hover {
    background: var(--light-teal) !important;
    color: var(--navy) !important;
}

.product-focus-card .dash-dropdown .dash-dropdown-value-item {
    background: rgba(0, 153, 153, 0.12) !important;
    border: 1px solid rgba(0, 153, 153, 0.3) !important;
    border-radius: 4px;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    color: var(--navy) !important;
}

.product-focus-card .dash-dropdown-wrapper .dash-dropdown-action-button {
    border-left: 1px solid rgba(0, 153, 153, 0.25);
}

.product-focus-card .dash-dropdown-wrapper .dash-dropdown-action-button:hover {
    background: rgba(0, 153, 153, 0.15);
    color: var(--navy);
}

.product-focus-card .dash-dropdown .dash-dropdown-trigger-icon {
    color: var(--teal) !important;
}

.product-focus-card .dash-dropdown-wrapper .dash-dropdown-clear {
    color: var(--muted-blue);
}


/* #2 Tab descriptors */
.tab-descriptor {
    font-size: 12px;
    color: var(--muted-blue);
    margin-bottom: 10px;
    padding: 6px 10px;
    background: var(--warm-gray);
    border-left: 3px solid var(--teal);
    border-radius: 0 4px 4px 0;
}

/* #4 Sticky export bar */
.export-sticky-bar {
    position: sticky;
    top: 61px;
    z-index: 500;
    background: white;
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--border-lav);
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 40, 0.06);
    border-radius: 0;
}

/* #5 Chat FAB entrance animation */
@keyframes fabBounceIn {
    0%   { opacity: 0; transform: translateY(16px) scale(0.92); }
    60%  { opacity: 1; transform: translateY(-4px) scale(1.02); }
    80%  { transform: translateY(2px) scale(0.99); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes fabGlowPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 153, 153, 0.25); }
    50%       { box-shadow: 0 4px 28px rgba(0, 153, 153, 0.55); }
}

.chat-fab-active {
    animation: fabBounceIn 0.45s ease-out forwards,
               fabGlowPulse 2s ease-in-out 0.45s 3;
}

/* #10 How-to-Use quick-start banner */
.htu-quickstart-banner {
    background: var(--navy);
    border-bottom: 2px solid var(--teal);
    padding: 14px 24px;
}

.htu-qs-banner-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.htu-qs-banner-steps {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.htu-qs-banner-step {
    display: flex;
    align-items: center;
    gap: 7px;
}

.htu-qs-banner-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.htu-qs-banner-label {
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.htu-qs-banner-arrow {
    color: var(--teal);
    font-size: 16px;
    font-weight: 700;
}

.htu-qs-banner-cta {
    background: var(--teal);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
    transition: background 0.15s;
    flex-shrink: 0;
}

.htu-qs-banner-cta:hover {
    background: #007a7a;
    color: white;
    text-decoration: none;
}

@media (max-width: 640px) {
    .htu-qs-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .htu-qs-banner-steps {
        gap: 6px;
    }
    .htu-qs-banner-arrow {
        display: none;
    }
}

/* ── Portfolio pin/remove ─────────────────────────────── */

.portfolio-row {
    display: flex;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 4px;
}

.portfolio-row .portfolio-item {
    margin-bottom: 0;
    border-radius: 4px 0 0 4px;
}

.portfolio-remove-btn {
    flex-shrink: 0;
    width: 22px;
    min-width: 22px;
    align-self: stretch;
    background: transparent;
    border: none;
    color: rgba(170, 170, 204, 0.4);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    padding: 0;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-remove-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}

/* Save to Saved Accounts button */
.save-to-portfolio-btn {
    background: transparent;
    color: var(--muted-blue);
    border: 1px solid var(--border-lav);
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.save-to-portfolio-btn:hover:not(:disabled) {
    background: rgba(0, 153, 153, 0.1);
    color: var(--teal);
    border-color: var(--teal);
}

.save-to-portfolio-btn.saved,
.save-to-portfolio-btn:disabled {
    background: rgba(0, 153, 153, 0.12);
    color: var(--teal);
    border-color: var(--teal);
    cursor: default;
    opacity: 0.85;
}

/* ─── What's New notification badge ─── */
.wn-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF4444;
    display: inline-block;
    margin-left: 6px;
    flex-shrink: 0;
    vertical-align: middle;
    animation: wn-pulse 2s ease-in-out infinite;
}

@keyframes wn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── What's New header link wrapper ─── */
.wn-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

/* ─── What's New page ─── */
.wn-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.wn-hero {
    padding: 0 0 28px;
    border-bottom: 1px solid #E8E8F0;
    margin-bottom: 32px;
}

.wn-title {
    font-size: 28px;
    font-weight: 800;
    color: #000028;
    margin: 0 0 6px;
}

.wn-subtitle {
    font-size: 14px;
    color: #5A7A9A;
    margin: 0;
    line-height: 1.5;
}

.wn-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #E0F5F5;
    color: #007a7a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 12px;
}

.wn-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #009999;
    animation: wn-pulse 2s ease-in-out infinite;
}

.wn-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wn-release {
    background: white;
    border: 1px solid #CCCCDD;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,40,0.05);
}

.wn-release-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: #FAFAFF;
    border-bottom: 1px solid #E8E8F0;
}

.wn-release-version {
    font-size: 15px;
    font-weight: 700;
    color: #000028;
}

.wn-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 10px;
    border-radius: 10px;
}

.wn-tag-new {
    background: #E0F5F5;
    color: #007a7a;
}

.wn-tag-update {
    background: #FFF8E1;
    color: #F9A825;
}

.wn-tag-launch {
    background: #E8F5E9;
    color: #2E7D32;
}

.wn-items {
    padding: 4px 0;
}

.wn-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    transition: background 0.15s;
}

.wn-item:hover {
    background: #F8F8FC;
}

.wn-item + .wn-item {
    border-top: 1px solid #F0F0F8;
}

.wn-item-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5FA;
    border-radius: 8px;
    margin-top: 1px;
}

.wn-item-body {
    flex: 1;
    min-width: 0;
}

.wn-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #000028;
    margin-bottom: 3px;
}

.wn-item-desc {
    font-size: 13px;
    color: #5A7A9A;
    line-height: 1.5;
    margin: 0;
}

.wn-item-hidden {
    opacity: 0.40;
}

.wn-admin-btn {
    flex-shrink: 0;
    align-self: center;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.wn-hide-btn {
    background: #FFF0F0;
    color: #C0392B;
    border-color: #F0D0D0;
}
.wn-hide-btn:hover {
    background: #FDDEDE;
    border-color: #C0392B;
}

.wn-restore-btn {
    background: #F0FFF4;
    color: #27AE60;
    border-color: #D0F0D8;
}
.wn-restore-btn:hover {
    background: #DEFCE8;
    border-color: #27AE60;
}

/* ─── What's New page nav ─── */
.wn-nav {
    background: #000028;
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wn-nav-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* --- Opportunity Scoring --- */

.title-scores-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.opp-score-badge-lg {
    text-align: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    color: #fff;
    width: 100px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.opp-score-badge-lg.opp-tier-high { background: #1B8A2E; }
.opp-score-badge-lg.opp-tier-medium { background: #D4790E; }
.opp-score-badge-lg.opp-tier-low { background: #B0362D; }

.opp-tier-label {
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
    opacity: 0.9;
}

.opp-tier-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}
.opp-tier-badge.opp-tier-high { background: #1B8A2E; }
.opp-tier-badge.opp-tier-medium { background: #D4790E; }
.opp-tier-badge.opp-tier-low { background: #B0362D; }

.opp-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.opp-header-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    cursor: default;
}
.opp-header-badge.opp-tier-high { background: #1B8A2E; }
.opp-header-badge.opp-tier-medium { background: #D4790E; }
.opp-header-badge.opp-tier-low { background: #B0362D; }

/* ── Challenger Sales Plays ──────────────────────────────────────────────── */

.challenger-play-section {
    margin-top: 14px;
}
.challenger-play-section details[open] > .battle-cards-toggle {
    border-radius: 6px 6px 0 0;
}
.challenger-play-section details[open] > div {
    border: 1px solid #e0e0ea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0 14px 14px;
}
.challenger-opp-checklist .form-check {
    padding-left: 1.8em;
}
.challenger-opp-checklist .form-check-label {
    font-size: 13px;
    color: #333;
}
.challenger-play-card {
    transition: box-shadow 0.2s;
}
.challenger-play-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.challenger-card-details > summary {
    list-style: none;
}
.challenger-card-details > summary::-webkit-details-marker {
    display: none;
}
.challenger-card-details[open] > summary .challenger-collapse-chevron {
    transform: rotate(90deg);
}
.challenger-card-details > summary:hover .challenger-card-summary {
    opacity: 0.85;
}

/* ── Partner Login ─────────────────────────────────────── */

.partner-page {
    min-height: 100vh;
    background: #000028;
    color: white;
}

.partner-hero {
    padding: 48px 32px 40px;
    position: relative;
    overflow: hidden;
}

.partner-hero::before {
    content: '';
    position: absolute;
    top: -250px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,153,153,0.12) 0%, transparent 55%);
    border-radius: 50%;
}

.partner-hero::after {
    content: '';
    position: absolute;
    bottom: -180px;
    left: -120px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14,165,165,0.08) 0%, transparent 55%);
    border-radius: 50%;
}

.partner-hero-inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.partner-badge {
    display: inline-block;
    background: rgba(14,165,165,0.15);
    color: var(--partner);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(14,165,165,0.3);
    margin-bottom: 20px;
}

.partner-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.partner-logo-siemens {
    font-size: 14px;
    font-weight: bold;
    color: white;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.partner-logo-divider {
    width: 1px;
    height: 20px;
    background: rgba(90,122,154,0.4);
}

.partner-logo-gc {
    color: #009999;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.partner-logo-img {
    height: 32px;
    margin-right: -4px;
}

.partner-tagline {
    color: var(--lavender);
    font-size: 15px;
    font-style: italic;
    margin: -16px 0 22px;
}

.partner-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
    color: white;
}

.partner-title-accent {
    color: var(--partner);
}

.partner-subtitle {
    color: #aaaacc;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 auto 28px;
    max-width: 520px;
}

.partner-value-props {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 36px;
}

.partner-value-prop {
    display: flex;
    align-items: center;
    gap: 8px;
}

.partner-value-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #009999;
    flex-shrink: 0;
}

.partner-value-text {
    color: #ccccdd;
    font-size: 12px;
    font-weight: 600;
}

.partner-login-card {
    background: white;
    border-radius: 10px;
    padding: 32px 36px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 40, 0.25);
    text-align: center;
    border-top: 4px solid var(--partner);
}

.partner-login-card h2 {
    color: #000028;
    font-size: 20px;
    margin: 0 0 4px 0;
    font-weight: bold;
}

.partner-login-card .plc-sub {
    color: #5a7a9a;
    font-size: 13px;
    margin-bottom: 20px;
}

.partner-login-card .plc-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--partner);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s;
}

.partner-login-card .plc-btn:hover {
    background: var(--partner-hover);
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.partner-login-card .plc-btn:active {
    transform: translateY(0);
}

.partner-login-card .plc-note {
    color: #5a7a9a;
    font-size: 11px;
    margin-top: 12px;
    line-height: 1.5;
}

/* Partner pilot steps section */
.partner-steps-section {
    background: #00002E;
    border-top: 1px solid rgba(90,122,154,0.2);
    border-bottom: 1px solid rgba(90,122,154,0.2);
    padding: 40px 32px;
}

.partner-steps-inner {
    max-width: 820px;
    margin: 0 auto;
}

.partner-steps-eyebrow {
    text-align: center;
    color: var(--partner);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.partner-steps-heading {
    text-align: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
}

.partner-steps-subtext {
    text-align: center;
    color: #aaaacc;
    font-size: 13px;
    margin: 0 0 32px;
    line-height: 1.6;
}

.partner-steps-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.partner-step {
    flex: 0 0 220px;
    text-align: center;
    padding: 0 12px;
}

.partner-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(14,165,165,0.15);
    border: 2px solid var(--partner);
    color: var(--partner);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.partner-step-title {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.partner-step-desc {
    color: #aaaacc;
    font-size: 12px;
    line-height: 1.5;
}

.partner-step-arrow {
    flex: 0 0 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    position: relative;
}

.partner-step-arrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--partner), #009999);
}

.partner-step-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #009999;
}

/* Partner benefits section */
.partner-benefits-section {
    padding: 40px 32px;
    background: #000028;
}

.partner-benefits-inner {
    max-width: 820px;
    margin: 0 auto;
}

.partner-benefits-eyebrow {
    text-align: center;
    color: #009999;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.partner-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.partner-benefit-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(90,122,154,0.2);
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.partner-benefit-card:hover {
    transform: translateY(-2px);
    border-color: rgba(14,165,165,0.4);
}

.partner-benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
}

.partner-benefit-icon.pbi-target {
    background: rgba(14,165,165,0.15);
}

.partner-benefit-icon.pbi-clock {
    background: rgba(0,153,153,0.15);
}

.partner-benefit-icon.pbi-chart {
    background: rgba(0,255,185,0.1);
}

.partner-benefit-card h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}

.partner-benefit-card p {
    color: #aaaacc;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

/* Partner scope bar */
.partner-scope-bar {
    background: #00002E;
    border-top: 1px solid rgba(90,122,154,0.2);
    padding: 16px 32px;
    display: flex;
    justify-content: center;
    gap: 48px;
}

.partner-scope-item {
    text-align: center;
}

.partner-scope-label {
    color: var(--partner);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.partner-scope-value {
    color: #ccccdd;
    font-size: 12px;
}

/* Partner footer */
.partner-footer {
    background: #000028;
    padding: 16px 32px;
    border-top: 2px solid var(--partner);
}

.partner-footer-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Partner notice */
.partner-notice {
    background: rgba(0,153,153,0.06);
    border-top: 1px solid rgba(90,122,154,0.2);
    border-bottom: 1px solid rgba(90,122,154,0.2);
    padding: 14px 24px;
    text-align: center;
}

/* ── PME Dashboard ─────────────────────────────────────────────────── */

.pme-page {
    min-height: 100vh;
    background: #000028;
    color: white;
}

.pme-header {
    background: #000028;
    padding: 12px 24px;
    border-bottom: 3px solid #009999;
}

.pme-header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pme-body {
    padding: 36px 32px;
    background: linear-gradient(180deg, #001a2e 0%, #000028 100%);
    min-height: calc(100vh - 100px);
}

.pme-badge {
    display: inline-block;
    background: rgba(0,153,153,0.12);
    color: #00FFB9;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid rgba(0,255,185,0.25);
    margin-left: 12px;
    vertical-align: middle;
}

.pme-body-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.pme-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
}

.pme-title {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin: 0 0 4px;
}

.pme-subtitle {
    color: #aaaacc;
    font-size: 13px;
    margin: 0;
}

.pme-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.pme-partner-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(90,122,154,0.2);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.pme-partner-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0,153,153,0.4);
    box-shadow: 0 8px 24px rgba(0,153,153,0.12);
}

.pme-partner-card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.pme-partner-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #009999, #00FFB9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.pme-partner-email {
    font-size: 14px;
    font-weight: 600;
    color: white;
    word-break: break-all;
}

.pme-partner-date {
    font-size: 11px;
    color: #5a7a9a;
    margin-top: 2px;
}

.pme-partner-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid rgba(90,122,154,0.15);
    border-bottom: 1px solid rgba(90,122,154,0.15);
}

.pme-partner-stat {
    text-align: center;
    flex: 1;
}

.pme-partner-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: #00FFB9;
    line-height: 1;
}

.pme-partner-stat-lbl {
    font-size: 10px;
    color: #5a7a9a;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.pme-view-btn {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: rgba(0,153,153,0.15);
    color: #009999;
    border: 1px solid rgba(0,153,153,0.3);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.pme-view-btn:hover {
    background: rgba(0,153,153,0.25);
    border-color: rgba(0,153,153,0.5);
    color: #00FFB9;
    text-decoration: none;
}

.pme-empty {
    text-align: center;
    padding: 48px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(90,122,154,0.3);
    border-radius: 12px;
    grid-column: 1 / -1;
}

.pme-footer {
    background: #000028;
    padding: 16px 32px;
    border-top: 2px solid #009999;
}

.pme-footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .pme-header-inner {
        flex-direction: column;
        gap: 8px;
    }
    .pme-cards-grid {
        grid-template-columns: 1fr;
    }
    .pme-footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Partner responsive */
@media (max-width: 768px) {
    .partner-hero {
        padding: 36px 20px 32px;
    }
    .partner-title {
        font-size: 28px;
    }
    .partner-value-props {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .partner-steps-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .partner-step {
        flex: none;
    }
    .partner-step-arrow {
        transform: rotate(90deg);
    }
    .partner-benefits-grid {
        grid-template-columns: 1fr;
    }
    .partner-scope-bar {
        flex-direction: column;
        gap: 12px;
    }
    .partner-footer-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ── Partner Mode — dashboard reskin ────────────────────── */

.partner-mode {
    background: #000028;
}

.partner-mode .app-header {
    background: #000028;
    border-bottom: 3px solid var(--partner);
}

.partner-mode .app-header h2 {
    color: var(--partner);
}

.partner-mode .app-header .app-tagline {
    color: var(--partner);
    opacity: 0.75;
}

.partner-mode .app-header .header-nav-link {
    color: var(--partner);
}

.partner-mode .app-header .header-nav-link:hover {
    background: rgba(14,165,165, 0.15);
    color: #f0a060;
}

.partner-mode .app-header .feedback-btn {
    background: var(--partner);
}

.partner-mode .app-header .feedback-btn:hover {
    background: var(--partner-hover);
}

.partner-mode .app-header .user-info {
    color: #aaaacc;
    border-left-color: rgba(14,165,165, 0.3);
}

.partner-mode .history-panel {
    background: #00002E;
    border: 1px solid rgba(14,165,165, 0.15);
}

.partner-mode .history-panel .btn-info {
    border-color: var(--partner) !important;
    color: var(--partner) !important;
    background: transparent !important;
}

.partner-mode .history-panel .btn-info:not(.btn-outline-info) {
    background: var(--partner) !important;
    border-color: var(--partner) !important;
    color: white !important;
}

.partner-mode .portfolio-item:hover {
    background: rgba(14,165,165, 0.12);
}

.partner-mode .portfolio-win-high {
    background: var(--partner) !important;
}

.partner-mode .partner-welcome-panel {
    background: #00002E;
    border-color: rgba(14,165,165, 0.2);
}

.partner-mode .search-panel {
    background: #00002E;
    border-color: rgba(14,165,165, 0.2);
}

.partner-mode .results-panel {
    background: #000028;
    border-color: rgba(14,165,165, 0.2);
    color: #EEEEF0;
}

.partner-mode .impersonate-banner {
    background: linear-gradient(90deg, var(--partner), var(--partner-hover)) !important;
}

.partner-mode .challenger-play-card {
    color: var(--dark-text);
}

.partner-mode .challenger-play-section details[open] > div {
    background: #fff;
}

.partner-mode .challenger-opp-checklist .form-check-label {
    color: var(--dark-text);
}

/* Partner Account Feedback Card */
.partner-feedback-card {
    background: linear-gradient(135deg, var(--partner-light) 0%, #e8f6f6 100%);
    border: 1px solid var(--partner-border);
    border-left: 4px solid var(--partner);
    border-radius: 8px;
    padding: 0;
    margin: 12px 0 16px 0;
    overflow: hidden;
}
.pfb-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.pfb-toggle:hover {
    background: rgba(14,165,165, 0.06);
}
.pfb-toggle-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pfb-toggle-icon {
    font-size: 16px;
    color: var(--partner);
    transition: transform .2s;
}
.pfb-toggle-icon.open {
    transform: rotate(90deg);
}
.pfb-toggle-title {
    font-size: 13px;
    font-weight: 600;
    color: #000028;
}
.pfb-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    padding-left: 16px;
}
.pfb-progress-text {
    font-size: 11px;
    color: var(--navy);
    white-space: nowrap;
    font-weight: 600;
}
.pfb-progress-track {
    width: 72px;
    height: 6px;
    background: rgba(14,165,165,0.15);
    border-radius: 3px;
    overflow: hidden;
}
.pfb-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--partner);
    border-radius: 3px;
    transition: width .3s ease;
}
.pfb-progress-fill.complete {
    background: #15803d;
}
.pfb-toggle-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.pfb-badge-pending {
    background: #e0f5f0;
    color: #92400e;
}
.pfb-badge-done {
    background: #dcfce7;
    color: #15803d;
}
.pfb-body {
    padding: 0 16px 16px 16px;
    display: none;
}
.pfb-body.open {
    display: block;
}
.pfb-step {
    margin-bottom: 14px;
}
.pfb-step:last-child {
    margin-bottom: 0;
}
.pfb-label {
    font-size: 13px;
    font-weight: 600;
    color: #000028;
    margin-bottom: 6px;
}
.pfb-btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.pfb-btn {
    padding: 6px 16px;
    border: 1px solid #CCCCDD;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: #5A7A9A;
    transition: all .15s;
}
.pfb-btn:hover {
    border-color: var(--partner);
    color: var(--partner);
}
.pfb-btn.selected {
    background: var(--partner);
    color: #fff;
    border-color: var(--partner);
}
.pfb-btn.selected-yes {
    background: #15803d;
    color: #fff;
    border-color: #15803d;
}
.pfb-btn.selected-no {
    background: #dc2626;
    color: #fff;
    border-color: #dc2626;
}
.pfb-select {
    padding: 6px 12px;
    border: 1px solid #CCCCDD;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    min-width: 200px;
    background: #fff;
}
.pfb-input {
    padding: 6px 12px;
    border: 1px solid #CCCCDD;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    width: 100%;
    max-width: 300px;
    background: #fff;
}
.pfb-textarea {
    padding: 6px 12px;
    border: 1px solid #CCCCDD;
    border-radius: 4px;
    font-size: 12px;
    font-family: inherit;
    width: 100%;
    min-height: 50px;
    resize: vertical;
    background: #fff;
}
.pfb-save-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--partner-border);
}
.pfb-general-feedback-btn {
    font-size: 11px;
    color: var(--partner);
    background: none;
    border: 1px solid var(--partner);
    border-radius: 4px;
    padding: 4px 10px;
    cursor: pointer;
    font-weight: 500;
    transition: background .15s, color .15s;
}
.pfb-general-feedback-btn:hover {
    background: var(--partner);
    color: #fff;
}
.pfb-reset-link {
    font-size: 11px;
    color: #5A7A9A;
    text-decoration: none;
    cursor: pointer;
    margin-right: auto;
}
.pfb-reset-link:hover {
    color: #dc2626;
    text-decoration: underline;
}
.pfb-autosave-label {
    font-size: 11px;
    color: #5A7A9A;
    font-weight: 500;
    opacity: 0;
    transition: opacity .3s;
}
.pfb-autosave-label.saving {
    opacity: 1;
    color: var(--partner);
}
.pfb-autosave-label.saved {
    opacity: 1;
    color: #15803d;
}
.pfb-autosave-label.error {
    opacity: 1;
    color: #dc2626;
}
.pfb-pending-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--partner);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ── Partner About & How-to-Use page styles ── */

.pa-nav {
    background: #000028;
    border-bottom: 1px solid rgba(14,165,165,0.2);
}

.pa-hero-eyebrow {
    color: var(--partner);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.pa-hero-stats {
    justify-content: center;
    gap: 40px;
    margin-top: 28px;
}

.pa-stat {
    text-align: center;
}

.pa-stat-value {
    color: var(--partner) !important;
    font-size: 22px !important;
}

.pa-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .pa-features-grid {
        grid-template-columns: 1fr;
    }
}

.pa-section-eyebrow {
    text-align: center;
    color: var(--partner);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.pa-section-eyebrow-light {
    text-align: center;
    color: var(--partner);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.pa-section {
    background: #00002E;
}

.pa-sources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .pa-sources-grid {
        grid-template-columns: 1fr;
    }
}

.pa-source-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(90,122,154,0.2);
    border-radius: 8px;
    padding: 16px;
    transition: border-color 0.2s;
}

.pa-source-card:hover {
    border-color: rgba(14,165,165,0.4);
}

.pa-source-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(14,165,165,0.15);
    color: var(--partner);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pa-source-icon-alt {
    background: rgba(0,153,153,0.15);
    color: #009999;
}

.pa-source-body strong {
    color: white;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.pa-source-body p {
    color: #aaaacc;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

.pa-htu-hero {
    background: #000028;
}

.pa-htu-hero::before {
    background: radial-gradient(circle, rgba(14,165,165,0.08) 0%, transparent 55%);
}

.pa-htu-section {
    background: #000028;
}

.pa-htu-section-alt {
    background: #00002E;
}

.pa-htu-section-dark {
    background: #000020;
}

.pa-qs-banner {
    background: linear-gradient(135deg, rgba(14,165,165,0.1) 0%, rgba(0,153,153,0.1) 100%);
    border-bottom: 1px solid rgba(14,165,165,0.2);
}

.pa-qs-num {
    background: rgba(14,165,165,0.2) !important;
    color: var(--partner) !important;
}

.pa-qs-cta {
    background: var(--partner) !important;
    border-color: var(--partner) !important;
}

.pa-qs-cta:hover {
    background: var(--partner-hover) !important;
    border-color: var(--partner-hover) !important;
}

.pa-qs-number {
    background: rgba(14,165,165,0.15) !important;
    border-color: var(--partner) !important;
    color: var(--partner) !important;
}

.pa-qs-divider {
    border-color: rgba(14,165,165,0.2) !important;
}

.pa-brief-marker {
    background: var(--partner) !important;
}

.pa-tip-number {
    color: var(--partner) !important;
}

.pa-faq-item .htu-faq-q::before {
    color: var(--partner);
}

.pa-feedback-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .pa-feedback-grid {
        grid-template-columns: 1fr;
    }
}

.pa-feedback-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(90,122,154,0.2);
    border-radius: 10px;
    padding: 24px 20px;
    transition: border-color 0.2s;
}

.pa-feedback-card:hover {
    border-color: rgba(14,165,165,0.4);
}

.pa-feedback-card-title {
    color: white;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pa-feedback-card p {
    color: #aaaacc;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ── Partner How-to-Use compact redesign ── */

.pa-htu-compact-hero {
    background: #000028;
    padding: 48px 32px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pa-htu-compact-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14,165,165,0.08) 0%, transparent 55%);
    border-radius: 50%;
}

.pa-htu-compact-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.pa-htu-compact-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin: 0 0 8px;
    line-height: 1.2;
}

.pa-htu-compact-subtitle {
    color: #aaaacc;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
}

.pa-htu-steps-section {
    background: #00002E;
    padding: 36px 32px;
    border-top: 1px solid rgba(14,165,165,0.15);
    border-bottom: 1px solid rgba(90,122,154,0.15);
}

.pa-htu-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pa-htu-steps-grid {
        grid-template-columns: 1fr;
    }
}

.pa-htu-step-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(90,122,154,0.2);
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.pa-htu-step-card:hover {
    transform: translateY(-2px);
    border-color: rgba(14,165,165,0.4);
}

.pa-htu-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(14,165,165,0.15);
    border: 2px solid var(--partner);
    color: var(--partner);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.pa-htu-step-title {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.pa-htu-step-desc {
    color: #aaaacc;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.pa-htu-brief-section {
    background: #000028;
    padding: 36px 32px;
}

.pa-htu-brief-inner {
    max-width: 880px;
    margin: 0 auto;
}

.pa-htu-brief-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .pa-htu-brief-grid {
        grid-template-columns: 1fr;
    }
}

.pa-htu-brief-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(90,122,154,0.15);
    border-radius: 8px;
    padding: 14px 16px;
    transition: border-color 0.2s;
}

.pa-htu-brief-card:hover {
    border-color: rgba(14,165,165,0.35);
}

.pa-htu-brief-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--partner);
    flex-shrink: 0;
    margin-top: 6px;
}

.pa-htu-brief-card strong {
    color: white;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}

.pa-htu-brief-card p {
    color: #8888aa;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

.pa-htu-actions-section {
    background: #00002E;
    padding: 36px 32px;
    border-top: 1px solid rgba(90,122,154,0.15);
}

.pa-htu-actions-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .pa-htu-actions-inner {
        grid-template-columns: 1fr;
    }
}

.pa-htu-action-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(90,122,154,0.2);
    border-radius: 10px;
    padding: 24px;
    transition: border-color 0.2s;
}

.pa-htu-action-card:hover {
    border-color: rgba(14,165,165,0.4);
}

.pa-htu-action-header {
    margin-bottom: 16px;
}

.pa-htu-action-eyebrow {
    color: var(--partner);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pa-htu-action-header h3 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.pa-htu-action-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pa-htu-action-steps > div {
    color: #aaaacc;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    gap: 0;
}

.pa-htu-action-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(14,165,165,0.15);
    color: var(--partner);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 8px;
}

.pa-htu-action-step-label {
    color: white;
    font-weight: 600;
}

/* ── Priority Queue ─────────────────────────────────────────────── */

.priority-reason {
    font-size: 10px;
    color: #00FFB9;
    margin-top: 2px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.priority-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(0,255,185,0.12);
    color: #00FFB9;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}


/* ── Account Comparison ─────────────────────────────────────────── */

.compare-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    margin-bottom: 8px;
    background: rgba(0,153,153,0.1);
    border-radius: 4px;
    border: 1px solid rgba(0,153,153,0.25);
}

.compare-count {
    font-size: 11px;
    color: #AAAACC;
}

.compare-count strong {
    color: #00FFB9;
}

.portfolio-checkbox {
    width: 18px;
    min-height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 6px;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: #5A7A9A;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-checkbox.checked {
    color: #009999;
}

.history-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.history-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    color: #5A7A9A;
    user-select: none;
}

.history-checkbox.checked {
    color: #009999;
}

.history-action-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    margin-bottom: 8px;
    background: rgba(0,153,153,0.1);
    border-radius: 4px;
    border: 1px solid rgba(0,153,153,0.25);
}

.compare-modal .modal-content {
    background: #0A0A2E;
    border: 1px solid rgba(0,255,185,0.2);
    color: #EEEEF0;
    max-width: 900px;
}

.compare-modal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
}

.compare-modal .modal-title {
    font-size: 14px;
    font-weight: 700;
    color: #00FFB9;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.compare-table th {
    background: rgba(0,153,153,0.12);
    color: #00FFB9;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.compare-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #EEEEF0;
}

.compare-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.compare-table .metric-label {
    color: #AAAACC;
    font-weight: 600;
    font-size: 11px;
}

.compare-best {
    color: #00FFB9;
    font-weight: 700;
}

.compare-worst {
    color: #FF6B6B;
}

.compare-radar-container {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}

/* ── Territory Heatmap ──────────────────────────────────────────── */

.heatmap-container {
    padding: 4px 0;
}

.heatmap-container .js-plotly-plot {
    border-radius: 6px;
}

/* ── Watch Toggle ───────────────────────────────────────────────── */

.watch-btn {
    background: none;
    border: none;
    color: #5A7A9A;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.15s;
    flex-shrink: 0;
}

.watch-btn:hover {
    color: #00FFB9;
}

.watch-btn.watching {
    color: #00FFB9;
}

.watch-changes-badge {
    display: inline-block;
    background: #FF6B6B;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 6px;
    margin-left: 4px;
    line-height: 14px;
    min-width: 14px;
    text-align: center;
}

.portfolio-alert-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #FF6B6B;
    border-radius: 50%;
    border: 1.5px solid #0A0A2E;
}

.change-detail-text {
    font-size: 9px;
    color: #FF9F43;
    margin-top: 1px;
    font-style: italic;
}

/* ── Digest Preferences ─────────────────────────────────────────── */

.digest-pref-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    margin-bottom: 6px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    font-size: 11px;
    color: #AAAACC;
}

.digest-pref-row .digest-label {
    flex: 1;
}

/* ── Next Best Action Cards ─────────────────────────────────────── */

.nba-section {
    margin: 16px 0;
    padding: 12px;
    background: rgba(0,153,153,0.06);
    border: 1px solid rgba(0,153,153,0.15);
    border-radius: 8px;
}

.nba-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.nba-title {
    font-size: 11px;
    font-weight: 700;
    color: #00FFB9;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.nba-subtitle {
    font-size: 10px;
    color: #AAAACC;
}

.nba-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nba-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
    transition: border-color 0.15s;
}

.nba-card:hover {
    border-color: rgba(0,255,185,0.2);
}

.nba-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.nba-icon-outreach { background: rgba(0,153,153,0.2); }
.nba-icon-content { background: rgba(0,102,204,0.2); }
.nba-icon-meeting { background: rgba(255,159,67,0.2); }
.nba-icon-research { background: rgba(108,92,231,0.2); }
.nba-icon-internal { background: rgba(90,122,154,0.2); }
.nba-icon-play { background: rgba(0,255,185,0.15); }

.nba-body {
    flex: 1;
    min-width: 0;
}

.nba-action-title {
    font-size: 12px;
    font-weight: 600;
    color: #EEEEF0;
    line-height: 1.3;
    margin-bottom: 2px;
}

.nba-action-why {
    font-size: 10px;
    color: #AAAACC;
    line-height: 1.4;
    margin-bottom: 6px;
}

.nba-tags {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.nba-urgency {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

.nba-urgency-today {
    background: rgba(255,107,107,0.2);
    color: #FF6B6B;
}

.nba-urgency-this_week {
    background: rgba(255,159,67,0.2);
    color: #FF9F43;
}

.nba-urgency-this_month {
    background: rgba(90,122,154,0.2);
    color: #5A7A9A;
}

.nba-effort {
    font-size: 9px;
    color: #5A7A9A;
    padding: 1px 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

.nba-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.nba-action-btn {
    background: rgba(0,153,153,0.15);
    border: 1px solid rgba(0,153,153,0.3);
    color: #009999;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.nba-action-btn:hover {
    background: rgba(0,153,153,0.25);
    color: #00FFB9;
}

.nba-done-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #5A7A9A;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 3px;
    cursor: pointer;
}

.nba-done-btn:hover {
    background: rgba(0,255,185,0.1);
    color: #00FFB9;
}

/* ── Watch Toast Notification ──────────────────────────────────────────── */

.watch-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 380px;
    background: linear-gradient(135deg, #1a2332 0%, #0d1b2a 100%);
    border: 1px solid rgba(0,153,153,0.4);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 15px rgba(0,153,153,0.15);
    z-index: 10000;
    overflow: hidden;
    animation: toast-slide-in 0.4s ease-out;
}

@keyframes toast-slide-in {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}

.watch-toast-content {
    padding: 0;
}

.watch-toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-weight: 600;
    font-size: 13px;
    color: #E0F0FF;
}

.watch-toast-header .toast-icon {
    font-size: 16px;
}

.watch-toast-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.watch-toast-acct {
    font-weight: 500;
    color: #C0D8EE;
    font-size: 12px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-toast-signal {
    font-size: 10px;
    color: #009999;
    background: rgba(0,153,153,0.12);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.watch-toast-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    justify-content: flex-end;
}

.watch-toast-btn-primary {
    background: rgba(0,153,153,0.2);
    border: 1px solid rgba(0,153,153,0.4);
    color: #00FFB9;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.watch-toast-btn-primary:hover {
    background: rgba(0,153,153,0.35);
}

.watch-toast-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #5A7A9A;
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.watch-toast-btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    color: #8AAFCF;
}

/* ── Chart Full View ──────────────────────────────────────────────────── */
.chart-modal .modal-content {
    background: #0A0A2E;
    border: 1px solid rgba(0,255,185,0.2);
    color: #EEEEF0;
    max-width: 900px;
}

.chart-modal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
}

.chart-modal .modal-title {
    font-size: 14px;
    font-weight: 700;
    color: #00FFB9;
}

.chart-modal .modal-body {
    padding: 16px;
}

.chart-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* ── Infographic / Value Brief Modal ─────────────────────────────────── */
.infographic-modal .modal-content {
    background: #0A0A2E;
    border: 1px solid rgba(0,255,185,0.2);
    color: #EEEEF0;
}
.infographic-modal .modal-header {
    background: #0A0A2E;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
}
.infographic-modal .modal-body {
    padding: 16px 20px;
}
.infographic-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.infographic-modal .modal-footer .btn-secondary {
    border-color: rgba(255,255,255,0.15);
    color: #AAAACC;
}
.infographic-modal .modal-footer .btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    color: #EEEEF0;
}

.chart-legend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Digital Thread Recommendations ─────────────────────────────────────── */
.dt-section-wrapper {
    margin: 16px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f5fafa 0%, #eef6f6 100%);
    border-radius: 8px;
    border-left: 3px solid #009999;
}

.dt-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.dt-card {
    background: #fff;
    border-radius: 6px;
    border: 1px solid #c8e6e6;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.dt-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.dt-card-name {
    font-size: 13px;
    font-weight: 700;
    color: #000028;
    line-height: 1.3;
    flex: 1;
}

.dt-type-badge {
    font-size: 9px;
    font-weight: 700;
    background: #e0f4f4;
    color: #007070;
    border-radius: 3px;
    padding: 2px 6px;
    white-space: nowrap;
    margin-top: 1px;
}

.dt-industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dt-industry-tag {
    font-size: 10px;
    font-weight: 600;
    background: #e8f4f4;
    color: #005555;
    border-radius: 3px;
    padding: 2px 7px;
}

.dt-description {
    font-size: 11px;
    color: #444;
    line-height: 1.5;
    border-top: 1px solid #eef4f4;
    padding-top: 8px;
}

.dt-footer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    border-top: 1px solid #eef4f4;
    padding-top: 8px;
}
.dt-footer > * {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.dt-section-label {
    font-size: 9px;
    font-weight: 700;
    color: #5A7A9A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.dt-tags {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dt-sd-tag {
    font-size: 10px;
    font-weight: 600;
    color: #000028;
    background: #e8f0f8;
    border-radius: 3px;
    padding: 1px 5px;
    display: inline-block;
    margin-bottom: 2px;
}

.dt-diff-list {
    display: flex;
    flex-direction: column;
}

.dt-card details summary .dt-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}
.dt-card details[open] summary .dt-arrow {
    transform: rotate(90deg);
}

@media (max-width: 700px) {
    .dt-cards-grid { grid-template-columns: 1fr; }
    .dt-footer { grid-template-columns: 1fr; }
}

/* ── Dark dropdown for portfolio state filter ──────────── */
.dash-dropdown-wrapper:has(.dash-dropdown-dark) {
    --Dash-Stroke-Strong: #AAAACC;
    --Dash-Fill-Inverse-Strong: #0a0a3a;
    --Dash-Fill-Interactive-Strong: #009999;
    --Dash-Fill-Interactive-Weak: rgba(0, 153, 153, 0.2);
    --Dash-Fill-Disabled: rgba(170, 170, 204, 0.15);
    --Dash-Text-Strong: #EEEEF0;
    --Dash-Text-Weak: #AAAACC;
    --Dash-Text-Disabled: #AAAACC;
}
/* Dash 4 renders the open menu in a container inside the wrapper (not next to the
   dropdown), so the menu is styled from the wrapper; the ~ rules below never match it. */
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content {
    background-color: #0a0a3a !important;
    border: 1px solid rgba(170, 170, 204, 0.5) !important;
    border-radius: 6px !important;
    color: #EEEEF0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 20, 0.25) !important;
}
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content .dash-dropdown-option {
    background-color: #0a0a3a !important;
    color: #EEEEF0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    padding: 7px 12px !important;
    accent-color: #009999;
}
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content .dash-dropdown-option:hover,
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content .dash-dropdown-option:focus-within {
    background-color: rgba(0, 153, 153, 0.2) !important;
    color: #fff !important;
}
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content .dash-dropdown-search,
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content input[type="search"],
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content input[type="text"] {
    background: transparent !important;
    color: #EEEEF0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
}
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content input::placeholder { color: #AAAACC !important; }
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content .dash-dropdown-action-button {
    color: #EEEEF0 !important;
}
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content .dash-dropdown-action-button:hover {
    color: #5eead4 !important;
}
.dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content .dash-dropdown-clear { color: #AAAACC !important; }
.dash-dropdown.dash-dropdown-dark {
    background-color: #0a0a3a !important;
    border: 1px solid rgba(170, 170, 204, 0.5) !important;
    border-radius: 6px !important;
    color: #EEEEF0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 20, 0.15) !important;
}
.dash-dropdown.dash-dropdown-dark .dash-dropdown-value,
.dash-dropdown.dash-dropdown-dark .dash-dropdown-placeholder {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    color: #AAAACC !important;
}
.dash-dropdown.dash-dropdown-dark .dash-dropdown-trigger-icon {
    color: #AAAACC !important;
}
.dash-dropdown.dash-dropdown-dark:hover {
    border-color: var(--teal) !important;
}
.dash-dropdown.dash-dropdown-dark:focus {
    border-color: #009999 !important;
    box-shadow: 0 0 0 2px rgba(0, 153, 153, 0.2) !important;
    outline: none !important;
}
.dash-dropdown-dark ~ .dash-dropdown-content {
    background-color: #0a0a3a !important;
    border: 1px solid rgba(170, 170, 204, 0.5) !important;
    border-radius: 6px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 20, 0.25) !important;
}
.dash-dropdown-dark ~ .dash-dropdown-content .dash-dropdown-search {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    color: #EEEEF0 !important;
}
.dash-dropdown-dark ~ .dash-dropdown-content .dash-dropdown-option {
    background-color: #0a0a3a !important;
    color: #EEEEF0 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
    padding: 7px 12px !important;
}
.dash-dropdown-dark ~ .dash-dropdown-content .dash-dropdown-option:hover {
    background-color: rgba(0, 153, 153, 0.2) !important;
    color: #fff !important;
}
.dash-dropdown.dash-dropdown-dark .dash-dropdown-value-item {
    background-color: rgba(0, 153, 153, 0.25) !important;
    border: 1px solid rgba(0, 179, 179, 0.4) !important;
    border-radius: 4px !important;
    color: #fff !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
}
.dash-dropdown-dark ~ .dash-dropdown-content .dash-dropdown-action-button {
    border-left: 1px solid rgba(0, 179, 179, 0.4);
    color: #fff;
}
.dash-dropdown-dark ~ .dash-dropdown-content .dash-dropdown-action-button:hover {
    background-color: rgba(0, 153, 153, 0.3);
    color: #fff;
}
.dash-dropdown-dark ~ .dash-dropdown-content .dash-dropdown-clear {
    color: #AAAACC;
}

/* ── Digital Thread Modal ─────────────────────────────────────────────── */
.dt-modal .modal-content {
    background: #0A0A2E;
    border: 1px solid rgba(0,255,185,0.2);
    color: #EEEEF0;
}
.dt-modal .modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 16px;
}
.dt-modal .modal-body {
    padding: 16px 20px;
}
.dt-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}
.dt-modal .progress {
    background: rgba(255,255,255,0.06);
}
.dt-modal .modal-footer .btn-secondary {
    border-color: rgba(255,255,255,0.15);
    color: #AAAACC;
}
.dt-modal .modal-footer .btn-secondary:hover {
    background: rgba(255,255,255,0.06);
    color: #EEEEF0;
}

/* ── Research pills (search method selector) ──────────────────────── */
.research-pills {
    display: flex;
    gap: 8px 18px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 4px;
    padding-top: 16px;
}
/* Find accounts | Research an account: the order sellers work in (app.py dashboard_layout). */
.research-pill-group { display: flex; flex-direction: column; gap: 6px; }
.research-pill-group-find { padding-right: 18px; border-right: 1px solid var(--border-lav); }
.research-pill-group-label { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
                             color: #5A7A9A; }
.research-pill-group-pills { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.research-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--border-lav);
    background: #fff;
    color: var(--navy);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.research-pill:hover {
    background: var(--light-teal);
    border-color: var(--teal);
    color: var(--navy);
}
.research-pill.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.research-pill .pill-icon {
    font-size: 14px;
    line-height: 1;
}
/* Opens another page (LeadCompass, Target Market), so it reads as a link, not a search mode. */
a.research-pill-link,
a.research-pill-link:visited {
    text-decoration: none;
    color: var(--teal);
    border-color: var(--teal);
}
a.research-pill-link::after {
    content: "→";
    margin-left: 2px;
}
a.research-pill-link:hover {
    text-decoration: none;
}

/* ── BU Selector (header segmented control) ────────────────────── */
.bu-selector {
    display: inline-flex;
    border: 1.5px solid var(--teal);
    border-radius: 6px;
    overflow: hidden;
    margin: 0 8px;
    flex-shrink: 0;
}
.bu-seg-btn {
    background: transparent;
    color: var(--teal);
    border: none;
    padding: 4px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.bu-seg-btn:hover {
    background: rgba(0,153,153,0.15);
}
.bu-seg-btn.active {
    background: var(--teal);
    color: #fff;
}
.bu-context-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(0,153,153,0.08);
    border: 1px solid rgba(0,153,153,0.25);
    color: var(--teal);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
    user-select: none;
}

/* ── LeadCompass ("View as Lead Compass") ───────────────────────── */
.lead-compass { background: var(--warm-gray); min-height: 100vh; }
.lc-page { padding: 16px 24px 40px; }
.lc-proto-badge { margin-left: 10px; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--navy); background: var(--mint); vertical-align: middle; }
.lc-card { background: #fff; border: 1px solid var(--border-lav); border-radius: 6px; padding: 12px 16px; margin-bottom: 12px; }
.lc-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.lc-align-end { align-items: flex-end; }
.lc-filter { min-width: 150px; flex: 0 1 180px; }
.lc-filter-wide { flex: 1 1 260px; }
.lc-filter-full { flex: 1 1 100%; }
.lc-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted-blue); margin-bottom: 4px; }
.lc-small { font-size: 11px; color: var(--muted-blue); }
.lc-muted { color: var(--muted-blue); font-size: 12px; }
.lc-warn { font-size: 12px; color: #B0362D; background: #fdf3f2; border-left: 3px solid #B0362D; padding: 6px 10px; border-radius: 4px; margin: 6px 0; }
.lc-note { font-size: 12px; color: var(--med-text); background: var(--light-teal); border-left: 3px solid var(--teal); padding: 8px 12px; border-radius: 4px; margin-bottom: 12px; }
.lc-empty { padding: 24px; text-align: center; color: var(--muted-blue); font-size: 13px; }
.lc-summary { font-size: 12px; margin: 4px 0 8px; }
.lc-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--teal); margin: 12px 0 8px; }
.lc-card > .lc-section-title:first-child { margin-top: 0; }
.lc-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--teal); }
.lc-badge { display: inline-block; padding: 1px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; color: #fff; margin-right: 4px; white-space: nowrap; }
.lc-link { color: var(--teal); font-weight: 600; cursor: pointer; text-decoration: none; }
.lc-link:hover { text-decoration: underline; }
.lc-table { font-size: 12px; margin-bottom: 0; }
.lc-table th { background: var(--warm-gray); color: var(--navy); font-size: 11px; font-weight: 700; }
.lc-json { width: 100%; font-family: Consolas, monospace; font-size: 11px; border: 1px solid var(--border-lav); border-radius: 4px; padding: 6px; }
.lc-run-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lc-run-status { font-size: 12px; color: var(--dark-text); }
.lc-tabs { margin-bottom: 0; }
.lc-tabs .tab, .lc-subtabs .tab { font-size: 13px; font-weight: 600; color: var(--muted-blue); padding: 8px 16px !important; border: none !important; background: transparent !important; }
.lc-tabs .tab--selected, .lc-subtabs .tab--selected { color: var(--navy) !important; border-bottom: 3px solid var(--teal) !important; }
.lc-tab-body { padding-top: 12px; }
.lc-kv > div { display: flex; gap: 8px; font-size: 12px; padding: 2px 0; border-bottom: 1px dashed #EEEEF4; }
.lc-kv-k { flex: 0 0 42%; color: var(--muted-blue); font-weight: 600; }
.lc-kv-v { flex: 1; color: var(--dark-text); word-break: break-word; }
.lc-detail { border-top: 3px solid var(--teal); padding-top: 12px; }
.lc-detail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.lc-detail-name { font-size: 16px; font-weight: 700; color: var(--navy); }
.lc-bg-item { background: #fff; border: 1px solid var(--border-lav); border-radius: 6px; margin-bottom: 8px; }
.lc-bg-item[open] { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.lc-bg-summary { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 10px 14px; cursor: pointer; font-size: 12px; list-style: none; }
.lc-bg-summary::-webkit-details-marker { display: none; }
.lc-bg-rank { font-weight: 800; color: var(--teal); min-width: 36px; }
.lc-bg-name { font-weight: 700; color: var(--navy); font-size: 13px; min-width: 220px; }
.lc-bg-body { padding: 4px 14px 14px; border-top: 1px solid #EEEEF4; }
.lc-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.lc-score-card { border: 1px solid var(--border-lav); border-radius: 6px; padding: 10px 12px; background: var(--warm-gray); }
.lc-score-value { font-size: 28px; font-weight: 800; color: var(--navy); }
.lc-analysis-head { border-left: 3px solid var(--teal); }
.lc-rec { border: 1px solid var(--border-lav); border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; font-size: 12px; }
.lc-rec > div { margin-bottom: 3px; }

/* ── LeadCompass V2 ─────────────────────────────────────────────── */
.lc2-strip { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 12px; margin-bottom: 12px; }
.lc2-stat { background: #fff; border: 1px solid var(--border-lav); border-radius: 12px; padding: 2px 10px; }
.lc-legend, .lc-guide { padding: 8px 16px; }
.lc2-company { background: #fff; border: 1px solid var(--border-lav); border-radius: 6px; margin-bottom: 8px; }
.lc2-company-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 10px 14px; cursor: pointer;
    font-size: 12px; border-radius: 6px 6px 0 0; }
.lc2-company-head:hover { background: var(--light-teal); }
.lc2-company-head:hover .lc2-open-hint { visibility: visible; }
.lc2-open-hint { margin-left: auto; color: var(--teal); font-weight: 700; visibility: hidden; }
.lc2-notworked { color: #B35900; font-weight: 600; }
.lc2-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px 66px; }
.lc2-areas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 14px 10px 66px; font-size: 11px; }
.lc2-area { padding: 1px 8px; border-radius: 10px; background: #000028; color: #fff; font-weight: 600; }
.lc2-area-muted { background: #E6E6E9; color: #000028; font-weight: 400; }
.lc2-solution-head { margin: 8px 0; padding: 8px 12px; border-left: 4px solid var(--teal); background: var(--light-teal); }
.lc2-solution-head .lc2-areas { padding: 6px 0 0 0; }
.lc3-actionbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
    margin: 0 0 12px; padding: 8px 16px; background: #fff; border: 1px solid var(--border-lav); border-radius: 6px; }
.lc3-actionbar > * { margin: 0 !important; }
.lc2-business-bar { padding: 8px 14px; }
/* #36: the match strip is one line inside the run bar; the per-status chips open on click. */
.lc3-strip-wrap { flex-basis: 100%; font-size: 12px; }
.lc3-strip > summary { cursor: pointer; list-style: none; }
.lc3-strip > summary::-webkit-details-marker { display: none; }
.lc-info { cursor: help; color: #009999; font-size: 15px; align-self: center; padding-bottom: 4px; }
/* #36 aligned rows: one column per attribute so flags can be scanned down a column */
.lc3-row { display: grid; grid-template-columns: 36px minmax(160px, 2fr) minmax(130px, 1.4fr) minmax(90px, 0.8fr)
    minmax(96px, 0.8fr) minmax(136px, 1fr) 84px 96px 84px 96px 124px 84px; gap: 6px; align-items: center; padding: 6px 8px;
    border-bottom: 1px solid var(--border-lav); cursor: pointer; font-size: 12px; background: #fff; }
.lc3-conf-high { color: #1B8A2E; font-weight: 700; }
.lc3-conf-review { color: #B35900; font-weight: 700; }
.lc3-conf-low { color: #B0362D; font-weight: 700; }
.lc3-row:hover { background: var(--light-teal); }
/* Sticks below the sticky app header (65 px). */
.lc3-row-head { cursor: default; font-weight: 700; font-size: 11px; background: #F3F3F0; position: sticky; top: 65px;
    z-index: 5; }
/* dcc.Tabs' wrapper had overflow: hidden, which made it the header row's scroll box: the row never stuck. */
.lc3-theme #lc3-tabs-parent { overflow: clip; }
.lc3-row-head:hover { background: #F3F3F0; }
.lc3-rc { overflow: hidden; text-overflow: ellipsis; }
.lc3-rc-rank { color: var(--teal); font-weight: 700; }
.lc3-tag { display: inline-block; padding: 1px 6px; margin: 1px 3px 1px 0; border-radius: 3px; font-size: 11px;
    font-weight: 600; line-height: 16px; white-space: nowrap; }
/* Every tag of a cell stays visible (a second one wraps under the first) instead of an ellipsis outside the tags. */
.lc3-rc-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 3px; }
.lc3-rc-tags .lc3-tag { margin: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; line-height: 14px; }
.lc3-rc.lc3-rc-wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lc3-tag-crm { background: #E0F5F5; color: #006666; }
.lc3-tag-none { background: #E6E6E9; color: #000028; }
.lc3-tag-warn { background: #FFF1E0; color: #B35900; }
.lc3-tag-dup { background: #FDE7D6; color: #A34A00; border: 1px solid #D4790E; }
.lc3-tag-partner { background: #EDE7F6; color: #4A2F80; }
.lc3-tag-customer { background: #E3F4E5; color: #1B6E28; }
.lc3-more-contacts > summary { margin: 6px 4px; }
.lc2-other-bu { margin: 6px 0; }
/* #39 workflow: numbered steps joined by a line */
.lc3-workflow { display: flex; flex-wrap: wrap; gap: 10px; }
.lc3-workflow-step { display: flex; gap: 8px; flex: 1 1 210px; max-width: 280px; padding: 8px 10px;
    border: 1px solid var(--border-lav); border-top: 3px solid var(--teal); border-radius: 4px; background: #fff; }
.lc3-workflow-num { flex: 0 0 24px; height: 24px; border-radius: 12px; background: var(--teal); color: #fff;
    font-weight: 700; text-align: center; line-height: 24px; }
.lc2-inline-link { padding: 0 4px; font-size: 12px; vertical-align: baseline; }
.lc2-contact { border-top: 1px solid var(--border-lav); }
.lc2-contact-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 6px 4px; cursor: pointer;
    font-size: 13px; }
.lc2-contact-line:hover { background: var(--light-teal); }
.lc2-contact-score { font-weight: 700; color: var(--teal); }
.lc2-contact-body { padding: 4px 12px 10px 24px; }
.lc2-md-kv table, .lc2-md-table table { width: 100%; font-size: 12px; border-collapse: collapse; margin-bottom: 6px; }
.lc2-md-kv thead { display: none; }
.lc2-md-kv td { padding: 2px 0; border-bottom: 1px dashed #EEEEF4; color: var(--dark-text); word-break: break-word; }
.lc2-md-kv td:first-child { width: 42%; padding-right: 8px; color: var(--muted-blue); font-weight: 600; }
.lc2-md-table th { background: var(--warm-gray); color: var(--navy); font-size: 11px; font-weight: 700; padding: 4px; }
.lc2-md-table td { padding: 4px; border-top: 1px solid #dee2e6; }
.lc2-md-table tr:hover td { background: rgba(0, 0, 0, 0.075); }
.lc2-md-kv p, .lc2-md-table p { margin: 0; }
.lc-chip { font-size: 11px; padding: 2px 8px; border-radius: 12px; border: 1px solid var(--teal); color: var(--teal);
    cursor: pointer; background: #fff; }
.lc-chip:hover { background: var(--teal); color: #fff; }
.lc-chip-score { font-weight: 700; }
.lc2-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.lc2-top .lc-score-value { font-size: 20px; word-break: break-word; }
.lc-pre { white-space: pre-wrap; font-family: Consolas, monospace; font-size: 11px; background: var(--warm-gray);
    border: 1px solid var(--border-lav); border-radius: 4px; padding: 8px; max-height: 320px; overflow-y: auto; }
.lc2-summary { max-height: 260px; }
.lc-copy { float: right; cursor: pointer; color: var(--teal); font-size: 16px; }
.lc-saved { color: #1B8A2E; font-size: 11px; font-weight: 700; }
.lc-conflict { color: #D4790E; font-weight: 700; }
.lc2-apply-dd { min-width: 220px; font-size: 12px; }
.lc2-compare td { vertical-align: middle; }
.lc2 details.lc-card > summary { cursor: pointer; }
.lc2 details.lc-card > summary.lc-section-title { margin: 0; display: list-item; }
.lc2-toast { position: fixed; top: 70px; right: 20px; z-index: 2000; min-width: 320px; }
.lc2 #lc2-l-table td[data-dash-column="name"]:hover,
.lc2 #lc3-l-table td[data-dash-column="name"]:hover { color: var(--navy) !important; }
.lc2-detail-head { display: flex; align-items: center; gap: 12px; }
.lc2 .app-header { display: flex; align-items: center; justify-content: space-between; }
.app-header a.feedback-btn { text-decoration: none; display: inline-block; }
.app-header a.feedback-btn:hover { color: white; }
.lc2-type { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600;
    border: 1px solid; vertical-align: middle; white-space: nowrap; }
.lc2-type-contact { color: #007A7A; border-color: #007A7A; background: #E6F4F4; }
.lc2-type-lead { color: #5A4A8A; border-color: #8A7AB8; background: #F1EEF8; }
.lc2-type-tag { display: inline-block; width: 16px; height: 16px; line-height: 14px; margin-right: 4px; border-radius: 50%;
    border: 1px solid; font-size: 10px; font-weight: 700; text-align: center; }
.lc2-crm-link { font-size: 12px; margin-left: 4px; }
.lc2-checkdrop .dropdown-toggle { min-width: 190px; text-align: left; background: #fff; border: 1px solid #ccc;
    font-size: 13px; }
.lc2-checkdrop-list { padding: 6px 12px; font-size: 13px; white-space: nowrap; }
.lc2-confirm { position: sticky; top: -16px; z-index: 5; background: #fff8ec; border: 2px solid #D4790E;
    border-radius: 6px; padding: 12px 16px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }

/* ── LeadCompass V3 theme (#36, Mitchell 2026-10-29) ─────────────────
   V3 only (.lc3-theme on the page root and the detail modal): the system UI font (Segoe UI on Windows), tabular
   numbers, a cool colour per kind of section, and a dark mode built on Bootstrap 5.3's dark tokens. */
.lc3-theme {
    --lc-bg: #F3F3F0; --lc-surface: #fff; --lc-surface-2: #F6F7FA; --lc-text: #1F2433; --lc-hover: #E6F6F6;
    --lc-danger: #B0362D;
    --sec: var(--teal);
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    color: var(--lc-text);
}
.lc3-theme .lc-score-value, .lc3-theme .modal-title, .lc3-theme .app-header h2 { letter-spacing: -0.01em; }
.lc3-theme .lc-section-title { letter-spacing: 1.2px; }
/* Section colours: people teal, activity blue, AI indigo, company slate, signals violet, decisions orange */
.lc3-theme .lc3-sec-people { --sec: #009999; }
.lc3-theme .lc3-sec-activity { --sec: #2563EB; }
.lc3-theme .lc3-sec-ai { --sec: #4F46E5; }
.lc3-theme .lc3-sec-company { --sec: #475569; }
.lc3-theme .lc3-sec-signal { --sec: #7C3AED; }
.lc3-theme .lc3-sec-risk { --sec: #C2410C; }
.lc3-theme [class*="lc3-sec-"] { border-left: 4px solid var(--sec); }
.lc3-theme [class*="lc3-sec-"] > .lc-section-title,
.lc3-theme [class*="lc3-sec-"] > summary.lc-section-title { color: var(--sec); }
.lc3-theme [class*="lc3-sec-"] > summary.lc-section-title::marker { color: var(--sec); }
.lc3-theme .lc-score-card { border-top: 3px solid var(--teal); background: var(--lc-surface-2); }
.lc3-theme .lc-score-value { color: var(--navy); }
.lc3-theme-btn { margin-right: 10px; padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 600;
    cursor: pointer; border: 1px solid var(--teal); background: transparent; color: var(--teal); }
.lc3-theme-btn:hover { background: var(--teal); color: #fff; }
/* Bootstrap's yellow outline text is 1.6:1 on white. */
.lc3-theme .btn-outline-warning { --bs-btn-color: #A34A00; --bs-btn-border-color: #D4790E; --bs-btn-hover-bg: #D4790E;
    --bs-btn-hover-border-color: #D4790E; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #B35900; }
/* Filters: inputs, Dash dropdowns and the customer-status menu one height and font; a multi-select with several
   values shows only "N selected" (Dash squeezed the first value to "C…" next to it). */
.lc3-theme .lc-filter .form-control, .lc3-theme .lc-filter .dash-dropdown { min-height: 34px; font-size: 13px; }
.lc3-theme .dash-dropdown-trigger:has(.dash-dropdown-value-count) > .dash-dropdown-value { display: none; }
.lc3-theme .lc2-checkdrop, .lc3-theme .lc2-checkdrop .dropdown-toggle { width: 100%; min-width: 0; }
.lc3-theme .lc2-checkdrop .dropdown-toggle { min-height: 34px; display: flex; align-items: center;
    justify-content: space-between; border-color: rgba(0, 18, 77, 0.45); }
/* Dash tables (Leads tab, a company's leads, Admin) set monospace on their table; use the V3 font (Juan, 2026-10-30). */
.lc3-theme .dash-table-container :is(table, input, button, .page-number) { font-family: inherit !important; }

/* #36 aligned contact and duplicate rows: one column per attribute, like the Companies view's aligned rows */
.lc3-crow { display: grid; grid-template-columns: 14px minmax(0, 1.5fr) 40px minmax(0, 1.2fr) 84px 92px minmax(0, 1.1fr);
    gap: 8px; align-items: center; padding: 6px 4px; font-size: 12px; }
.lc3-crow-head { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--muted-blue); border-bottom: 2px solid var(--border-lav); padding-bottom: 4px; }
.lc3-crow-head > .lc3-rc, .lc3-row-head > .lc3-rc { white-space: normal; }
.lc3-theme .lc2-contact-line { display: grid; list-style: none; flex-wrap: nowrap; }
.lc3-theme .lc2-contact-line::-webkit-details-marker { display: none; }
.lc3-chevron { color: var(--teal); font-weight: 700; transition: transform 0.15s; display: inline-block; }
.lc2-contact[open] > summary .lc3-chevron { transform: rotate(90deg); }
.lc3-rc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc3-crow .lc2-area { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.lc3-notes { white-space: normal; display: flex; flex-wrap: wrap; gap: 3px; }
.lc3-notes .lc3-tag { margin: 0; max-width: 100%; white-space: normal; overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lc3-theme .lc2-md-table td:has(a) { overflow-wrap: anywhere; }
.lc3-theme .lc2-md-table td a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc3-num { font-variant-numeric: tabular-nums; font-weight: 700; }
.lc3-excluded .lc2-contact-line { opacity: 0.6; }
.lc3-drow { display: grid; grid-template-columns: minmax(0, 2fr) 44px minmax(0, 1fr) auto; gap: 8px; align-items: center;
    padding: 6px 0; border-bottom: 1px solid var(--border-lav); font-size: 12px; }
.lc3-drow.lc3-crow-head { padding: 0 0 4px; border-bottom-width: 2px; }
.lc3-drow > .lc3-rc { white-space: normal; }
.lc3-dup-actions { display: flex; flex-direction: column; gap: 4px; }
.lc3-intent-table td:first-child { font-weight: 700; color: var(--sec); }

/* Dark mode: Bootstrap's dark tokens on a navy base, and the V3 tokens the classes above read */
.lc3-theme.lc3-dark {
    color-scheme: dark;
    --bs-body-color: #E2E7F0; --bs-body-color-rgb: 226,231,240; --bs-body-bg: #10182B; --bs-body-bg-rgb: 16,24,43;
    --bs-emphasis-color: #fff; --bs-emphasis-color-rgb: 255,255,255;
    --bs-secondary-color: rgba(226, 231, 240, 0.75); --bs-secondary-color-rgb: 226,231,240;
    --bs-secondary-bg: #1E2A44; --bs-secondary-bg-rgb: 30,42,68; --bs-tertiary-color: rgba(226, 231, 240, 0.5);
    --bs-tertiary-color-rgb: 226,231,240; --bs-tertiary-bg: #18223A; --bs-tertiary-bg-rgb: 24,34,58;
    --bs-primary-text-emphasis: #6ea8fe; --bs-secondary-text-emphasis: #a7acb1; --bs-success-text-emphasis: #75b798;
    --bs-info-text-emphasis: #6edff6; --bs-warning-text-emphasis: #ffda6a; --bs-danger-text-emphasis: #ea868f;
    --bs-primary-bg-subtle: #031633; --bs-secondary-bg-subtle: #161719; --bs-success-bg-subtle: #051b11;
    --bs-info-bg-subtle: #032830; --bs-warning-bg-subtle: #332701; --bs-danger-bg-subtle: #2c0b0e;
    --bs-heading-color: inherit; --bs-link-color: #5EEAD4; --bs-link-hover-color: #99F6E4; --bs-link-color-rgb: 94,234,212;
    --bs-link-hover-color-rgb: 153,246,228; --bs-code-color: #e685b5; --bs-border-color: #2E3B58;
    --bs-border-color-translucent: rgba(255, 255, 255, 0.15); --bs-btn-close-filter: invert(1) grayscale(100%) brightness(200%);
    --lc-bg: #0B1222; --lc-surface: #121B30; --lc-surface-2: #18223A; --lc-text: #E2E7F0; --lc-hover: #133A40;
    --lc-danger: #F4A3A0;
    --navy: #E2E7F0; --dark-text: #E2E7F0; --med-text: #C9D1E0; --muted-blue: #9AA9C2; --border-lav: #2E3B58;
    --warm-gray: #18223A; --light-teal: #123238; --teal: #22C3C3;
    background-color: var(--lc-bg); color: var(--lc-text);
}
.lc3-dark .lc3-sec-people { --sec: #2DD4BF; }
.lc3-dark .lc3-sec-activity { --sec: #60A5FA; }
.lc3-dark .lc3-sec-ai { --sec: #A5B4FC; }
.lc3-dark .lc3-sec-company { --sec: #94A3B8; }
.lc3-dark .lc3-sec-signal { --sec: #C4B5FD; }
.lc3-dark .lc3-sec-risk { --sec: #FB923C; }
.lc3-dark.modal { --bs-modal-bg: var(--lc-surface); --bs-modal-color: var(--lc-text); --bs-modal-border-color: var(--border-lav);
    background-color: transparent; }
.lc3-dark .modal-content { background-color: var(--lc-bg); color: var(--lc-text); }
.lc3-dark .modal-header { border-color: var(--border-lav); background: var(--lc-surface); }
.lc3-dark .btn-close { filter: var(--bs-btn-close-filter); }
.lc3-dark .lc-card, .lc3-dark .lc2-company, .lc3-dark .lc3-row, .lc3-dark .lc3-actionbar, .lc3-dark .lc2-stat,
.lc3-dark .lc3-workflow-step, .lc3-dark .lc-bg-item, .lc3-dark .lc-rec, .lc3-dark .lc-chip {
    background: var(--lc-surface); border-color: var(--border-lav); color: var(--lc-text); }
.lc3-dark .lc3-row-head, .lc3-dark .lc3-row-head:hover { background: var(--lc-surface-2); }
.lc3-dark .lc3-row:hover, .lc3-dark .lc2-company-head:hover, .lc3-dark .lc2-contact-line:hover { background: var(--lc-hover); }
.lc3-dark .lc2-solution-head { background: var(--light-teal); }
.lc3-dark .lc2-confirm { background: #2A2112; }
.lc3-dark .lc-warn { background: #2C1416; color: #F4A3A0; }
.lc3-dark .lc-note { background: var(--light-teal); color: var(--med-text); }
.lc3-dark .lc-saved { color: #4ADE80; }
.lc3-dark .lc2-notworked, .lc3-dark .lc-conflict { color: #FDBA74; }
.lc3-dark .lc2-area { background: #2B3A5C; color: #E2E7F0; }
.lc3-dark .lc2-area-muted { background: #1E2A44; color: #9AA9C2; }
.lc3-dark .lc3-tag-crm { background: #123238; color: #5EEAD4; }
.lc3-dark .lc3-tag-none { background: #1E2A44; color: #C9D1E0; }
.lc3-dark .lc3-tag-warn, .lc3-dark .lc3-tag-dup { background: #33200F; color: #FDBA74; }
.lc3-dark .lc3-tag-partner { background: #261E3D; color: #C4B5FD; }
.lc3-dark .lc3-tag-customer { background: #10291A; color: #86EFAC; }
.lc3-dark .lc3-conf-high { color: #4ADE80; }
.lc3-dark .lc3-conf-review { color: #FDBA74; }
.lc3-dark .lc3-conf-low { color: #F4A3A0; }
.lc3-dark .lc2-type-contact { background: #123238; color: #5EEAD4; border-color: #2DD4BF; }
.lc3-dark .lc2-type-lead { background: #261E3D; color: #C4B5FD; border-color: #8B7FD0; }
.lc3-dark .lc2-md-table tr:hover td { background: rgba(255, 255, 255, 0.05); }
.lc3-dark .lc2-md-table td, .lc3-dark .lc2-md-kv td, .lc3-dark .lc-kv > div { border-color: var(--border-lav); }
.lc3-dark .lc2-md-table a, .lc3-dark .lc-link { color: var(--bs-link-color); }
.lc3-dark .table { --bs-table-bg: transparent; --bs-table-color: var(--lc-text); --bs-table-hover-bg: rgba(255,255,255,0.05);
    --bs-table-hover-color: var(--lc-text); }
.lc3-dark .dash-spreadsheet-container th, .lc3-dark .dash-spreadsheet-container td {
    background-color: var(--lc-surface) !important; color: var(--lc-text) !important; border-color: var(--border-lav) !important; }
.lc3-dark .dash-spreadsheet-container th { background-color: var(--lc-surface-2) !important; }
.lc3-dark .dash-spreadsheet-container tr:hover td { background-color: var(--lc-hover) !important; }
.lc3-dark .dash-spreadsheet-container td[data-dash-column="name"] { color: #5EEAD4 !important; }
.lc3-dark .dash-dropdown, .lc3-dark .dash-dropdown-content, .lc3-dark .dash-dropdown-search,
.lc3-dark .dash-dropdown-option, .lc3-dark .Select-control, .lc3-dark .Select-menu-outer {
    background-color: var(--lc-surface-2) !important; color: var(--lc-text) !important; border-color: var(--border-lav) !important; }
.lc3-dark .dash-dropdown-option:hover, .lc3-dark .dash-dropdown-option[aria-selected="true"] { background-color: var(--lc-hover) !important; }
.lc3-dark .dash-dropdown-value, .lc3-dark .dash-dropdown-placeholder { color: var(--lc-text) !important; }
.lc3-dark .lc-tabs .tab--selected { color: var(--lc-text) !important; }
.lc3-dark .lc-pre { background: var(--lc-surface-2); color: var(--lc-text); }
.lc3-dark .impersonate-banner { filter: brightness(0.85); }
.lc3-dark .app-header { background: #000028; --teal: #009999; }
/* Dash 4 controls and DataTable paging draw their own light colours. */
.lc3-dark .dash-dropdown-value-count { color: var(--lc-text) !important; background: var(--lc-hover) !important; }
.lc3-dark .dash-slider-mark { color: var(--muted-blue) !important; }
.lc3-dark .lc3-workflow-num, .lc3-dark .lc-chip:hover { color: #000028; }
.lc3-dark .btn-outline-warning { --bs-btn-color: #FFC107; --bs-btn-border-color: #FFC107; --bs-btn-hover-bg: #FFC107;
    --bs-btn-hover-border-color: #FFC107; --bs-btn-hover-color: #000028; }
.lc3-dark input:not([type=checkbox]):not([type=radio]):not([type=range]), .lc3-dark textarea, .lc3-dark select {
    background-color: var(--lc-surface-2) !important; color: var(--lc-text) !important; border-color: var(--border-lav) !important; }
.lc3-dark input::placeholder, .lc3-dark textarea::placeholder { color: var(--muted-blue) !important; }
.lc3-dark .previous-next-container, .lc3-dark .previous-next-container .page-number,
.lc3-dark .previous-next-container .current-page-shadow, .lc3-dark .previous-next-container .last-page {
    color: var(--lc-text) !important; }
.lc3-dark .previous-next-container button { color: var(--lc-text) !important; background: var(--lc-surface-2) !important;
    border-color: var(--border-lav) !important; }
.lc3-dark .page-link { --bs-pagination-bg: var(--lc-surface); --bs-pagination-color: var(--teal);
    --bs-pagination-border-color: var(--border-lav); --bs-pagination-hover-bg: var(--lc-hover);
    --bs-pagination-disabled-bg: var(--lc-surface-2); --bs-pagination-disabled-color: var(--muted-blue); }
.lc3-dark .lc-proto-badge { color: #000028; }
.lc3-dark .lc2-checkdrop .dropdown-toggle { background: var(--lc-surface-2); color: var(--lc-text); border-color: var(--border-lav); }

/* Preview V2 installed base overview: one expandable row per product line */
.pv2-product-line > summary::-webkit-details-marker {
    display: none;
}

.pv2-product-line > summary:hover {
    background: #fafafa !important;
}

/* ── Partner New Logo (beta) ─────────────────────────────────────────── */
.pnl-beta-badge {
    display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 10px;
    background: #fef3c7; color: #92400e; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
    vertical-align: middle;
}
.pnl-panel { padding: 18px 20px; margin-bottom: 16px; color: #EEEEF0; }
.partner-mode .pnl-panel { background: #00002E; border-color: rgba(14,165,165, 0.35); }
.pnl-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pnl-title-row { display: flex; align-items: center; }
.pnl-title { font-size: 16px; font-weight: 700; color: white; }
.pnl-sub { color: #aaaacc; font-size: 12px; margin-top: 2px; }
.pnl-tabs { display: flex; gap: 8px; }
.pnl-tab {
    background: transparent; color: var(--partner); border: 1px solid var(--partner); border-radius: 18px;
    padding: 5px 16px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s;
}
.pnl-tab:hover { background: rgba(14,165,165, 0.15); }
.pnl-tab.active { background: var(--partner); color: white; }
.pnl-preview-note { margin: 12px 0 0; font-size: 12px; padding: 6px 12px; }
.pnl-view { margin-top: 16px; border-top: 1px solid rgba(170,170,204,0.15); padding-top: 14px; }
.pnl-filters { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.pnl-table-wrap { overflow-x: auto; min-height: 80px; }
.pnl-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pnl-table th {
    text-align: left; color: #8f8fb5; font-weight: 600; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.04em; padding: 6px 8px; border-bottom: 1px solid rgba(170,170,204,0.2); white-space: nowrap;
}
.pnl-table td { padding: 8px; border-bottom: 1px solid rgba(170,170,204,0.08); vertical-align: top; color: #EEEEF0; }
.pnl-table tbody tr:hover { background: rgba(14,165,165, 0.07); }
.pnl-table tr.pnl-row-selected { background: rgba(14,165,165, 0.14); }
.pnl-col-check { width: 28px; }
.pnl-company { font-weight: 600; color: white; }
.pnl-domain { color: #8f8fb5; font-size: 11px; }
.pnl-domain-missing { color: #f0b429; font-style: italic; }
.pnl-location { white-space: nowrap; color: #c8c8e0; }
.pnl-band { white-space: nowrap; }
.pnl-score {
    display: inline-block; min-width: 34px; text-align: center; padding: 2px 6px; border-radius: 10px;
    background: rgba(170,170,204,0.15); color: #EEEEF0; font-weight: 700;
}
.pnl-score-mid { background: rgba(240,180,41,0.2); color: #f6cf6b; }
.pnl-score-high { background: rgba(14,165,165,0.3); color: #5eead4; }
.pnl-chip {
    display: inline-block; margin: 0 4px 3px 0; padding: 1px 7px; border-radius: 9px; font-size: 11px;
    background: rgba(170,170,204,0.12); color: #c8c8e0; white-space: nowrap;
}
.pnl-chip-intent { background: rgba(14,165,165,0.15); color: #7fdcdc; }
.pnl-chip-more { background: transparent; color: #8f8fb5; cursor: help; }
.pnl-empty { color: #aaaacc; font-size: 13px; text-align: center; padding: 24px 12px; }
.pnl-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0; }
.pnl-page-label { color: #aaaacc; font-size: 12px; }
.pnl-help { color: #aaaacc; font-size: 13px; margin-bottom: 10px; }
.pnl-help code { color: #7fdcdc; background: transparent; }
.pnl-nt-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
.pnl-nt-name { flex: 2; }
.pnl-nt-domain { flex: 2; }
.pnl-nt-country { flex: 1; }
.pnl-nt-actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.pnl-credits { color: #8f8fb5; font-size: 12px; margin-left: auto; }
.pnl-run-status { margin-top: 10px; }
.pnl-run-status .alert { font-size: 13px; padding: 8px 12px; margin: 0; }
.pnl-fineprint { color: #8f8fb5; font-size: 11px; margin: 10px 0 0; }
.pnl-doc-section .pnl-beta-badge { font-size: 9px; }
.pnl-chip-match { background: rgba(14,165,165,0.35); color: #e6fffb; font-weight: 600; }
.pnl-fit-note { color: #aaaacc; font-size: 12px; margin: -2px 0 10px; }
.pnl-fit-note strong { color: #c8f2f2; font-weight: 600; }
.pnl-req { color: #f87171; font-weight: 700; }
.pnl-nt-head { margin-bottom: 4px; }
.pnl-nt-head span { color: #8f8fb5; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.pnl-nt-hint { color: #aaaacc; font-size: 12px; margin-top: 8px; }
.pnl-company-link {
    background: none; border: none; padding: 0; text-align: left; cursor: pointer; color: white;
    text-decoration: underline; text-decoration-color: rgba(14,165,165,0.5); text-underline-offset: 3px;
}
.pnl-company-link:hover, .pnl-company-link:focus-visible { color: #5eead4; text-decoration-color: #5eead4; outline: none; }
.pnl-modal .modal-content { background: #00002E; color: #EEEEF0; border: 1px solid rgba(14,165,165,0.35); }
.pnl-modal .modal-header, .pnl-modal .modal-footer { border-color: rgba(170,170,204,0.15); }
.pnl-modal .modal-title { color: white; font-size: 18px; font-weight: 700; }
.pnl-modal .btn-close { filter: invert(1); }
.pnl-detail-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.pnl-detail-loc { color: #c8c8e0; }
.pnl-detail-domain { color: #5eead4; }
.pnl-detail-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.pnl-detail-stat { background: rgba(170,170,204,0.08); border-radius: 6px; padding: 10px 12px; }
.pnl-detail-stat-label { color: #8f8fb5; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.pnl-detail-stat-value { color: white; font-size: 15px; font-weight: 700; margin-top: 2px; }
.pnl-detail-section { margin-bottom: 14px; }
.pnl-detail-title { color: white; font-weight: 600; font-size: 13px; }
.pnl-detail-note { color: #8f8fb5; font-size: 11px; margin-left: 8px; }
.pnl-detail-body { margin-top: 6px; }
.pnl-intent-score { margin-left: 6px; font-weight: 700; color: #e6fffb; }
.pnl-detail-pages { margin: 0; padding-left: 18px; font-size: 12px; }
.pnl-detail-pages li { margin-bottom: 3px; }
.pnl-detail-page-url { color: #c8c8e0; margin-right: 8px; word-break: break-all; }
.pnl-muted { color: #8f8fb5; font-size: 12px; }
.pnl-web { border-top: 1px solid rgba(170,170,204,0.15); padding-top: 12px; margin-top: 4px; }
.pnl-web-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.pnl-web-summary { color: #EEEEF0; font-size: 13px; line-height: 1.55; margin-bottom: 8px; }
.pnl-web-ops, .pnl-web-news { font-size: 12px; color: #c8c8e0; padding-left: 18px; margin-bottom: 8px; }
.pnl-web-angle { font-size: 12px; color: #c8f2f2; margin-bottom: 8px; }
.pnl-web-subtitle { color: white; font-size: 12px; font-weight: 600; margin: 6px 0 4px; }
.pnl-web-news a, .pnl-web-sources a { color: #5eead4; }
.pnl-web-date { margin-right: 8px; }
.pnl-web-sources { font-size: 12px; color: #aaaacc; margin: 4px 0 6px; }
.pnl-web-sources summary { cursor: pointer; }
.pnl-web-sources ul { padding-left: 18px; margin: 4px 0 0; }
.pnl-web-foot { font-size: 11px; }
.pnl-web-loading { display: flex; align-items: center; gap: 6px; }
.pnl-modal-footer { justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.pnl-modal-footer .pnl-web-actions { margin-top: 0; }
.pnl-modal-footer-right { display: flex; gap: 8px; }
.pnl-table-hint { color: #8f8fb5; font-size: 11px; margin: -6px 0 8px; }
.pnl-web { border-top: none; padding-top: 0; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(170,170,204,0.15); }
/* New Logo filters: labelled, matching the app's dark dropdowns (.dash-dropdown-dark) */
.pnl-filters { align-items: flex-end; gap: 10px; }
.pnl-filter { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 4px; }
.pnl-filter-wide { flex: 1.6; min-width: 200px; }
.pnl-filter-label {
    color: #AAAACC; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em; margin: 0;
}
.pnl-search-input.form-control {
    background-color: #0a0a3a; border: 1px solid rgba(170, 170, 204, 0.5); border-radius: 6px; color: #EEEEF0;
    font-family: Arial, Helvetica, sans-serif; font-size: 11px; min-height: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 20, 0.15);
}
.pnl-search-input.form-control::placeholder { color: #AAAACC; }
.pnl-search-input.form-control:hover { border-color: var(--teal); }
.pnl-search-input.form-control:focus {
    background-color: #0a0a3a; color: #EEEEF0; border-color: #009999;
    box-shadow: 0 0 0 2px rgba(0, 153, 153, 0.2);
}
/* New Logo selection bar: appears on the first tick and stays pinned to the bottom of the screen */
.pnl-select-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 14px;
    position: sticky; bottom: 12px; z-index: 20; margin-top: 10px;
    background: #0a0a3a; border: 1px solid rgba(14,165,165,0.6); border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0, 0, 20, 0.45);
}
.pnl-select-count { color: #EEEEF0; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pnl-select-count strong { color: white; }
.pnl-select-warn { color: #f6cf6b; font-weight: 600; }
.pnl-select-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pnl-select-clear {
    background: none; border: none; padding: 0; color: #AAAACC; font-size: 12px;
    text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.pnl-select-clear:hover, .pnl-select-clear:focus-visible { color: white; outline: none; }
.pnl-tab-count {
    display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 9px;
    background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
/* New Logo allowance meter (panel header) */
.pnl-usage { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pnl-meter {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 16px;
    background: rgba(170,170,204,0.08); border: 1px solid rgba(14,165,165,0.35); font-size: 12px; color: #EEEEF0;
}
.pnl-meter-label { font-weight: 700; color: white; }
.pnl-meter-bar { width: 64px; height: 6px; border-radius: 3px; background: rgba(170,170,204,0.2); overflow: hidden; }
.pnl-meter-fill { display: block; height: 100%; background: var(--partner); border-radius: 3px; }
.pnl-meter-count { font-weight: 600; }
.pnl-meter-reset { color: #8f8fb5; font-size: 11px; }
.pnl-meter-low { border-color: rgba(240,180,41,0.6); }
.pnl-meter-low .pnl-meter-fill { background: #f0b429; }
.pnl-meter-low .pnl-meter-count { color: #f6cf6b; }
.pnl-meter-out { border-color: rgba(248,113,113,0.6); }
.pnl-meter-out .pnl-meter-count { color: #fca5a5; }
.pnl-done-alert { margin: 12px 0 0; font-size: 13px; padding: 8px 12px; }
.pnl-select-cost { color: #c8c8e0; }
.pnl-limit-alert { font-size: 12px; padding: 8px 12px; margin: 0; }

/* Bottom-right launchers (Dig Deeper today, Ask Me Anything later) lift above any bar pinned to
   the bottom of the screen: a page sets body.ac-bottom-bar while such a bar shows. The Ask Me
   Anything widget picks up the same variable via assets/ask_me_anything.js. */
body.ac-bottom-bar { --ac-bottom-bar-offset: 76px; }
.chat-fab, .chat-panel-floating { transition: bottom 0.2s ease, transform 0.2s, box-shadow 0.2s; }

/* While a partner browses New Logo / Run Research, the open report and its Dig Deeper are hidden
   (body.pnl-browsing); "Back to …" at the top of the panel brings them back. */
body.pnl-browsing .results-panel,
body.pnl-browsing .chat-fab,
body.pnl-browsing .chat-panel-floating { display: none !important; }
.pnl-back-link {
    background: none; border: none; padding: 0; margin: 0 0 10px; color: #5eead4; font-size: 13px; font-weight: 600;
    cursor: pointer; text-align: left;
}
.pnl-back-link:hover, .pnl-back-link:focus-visible { text-decoration: underline; text-underline-offset: 3px; outline: none; }

/* Run Research form: one company with Industry, plus Product Focus */
.pnl-nt-industry { flex: 1.4; min-width: 170px; }
.pnl-nt-head .pnl-nt-industry { min-width: 170px; }
.pnl-focus-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.pnl-focus-row .pnl-filter { max-width: 280px; }
.pnl-focus-note { color: #8f8fb5; font-size: 12px; flex: 1; min-width: 220px; padding-bottom: 6px; }

/* ── Target Market (/target-market, beta) ─────────────────────────────────
   Dark page in the app's dark tokens (as the Partner New Logo panel); fonts, buttons (dbc info / outline-info sm),
   dropdowns (.dash-dropdown-dark), inputs (.pnl-search-input), table (.pnl-table), score (.pnl-score), header
   (.app-header) and badge (.pnl-beta-badge) are the app's own. Status colours match the Companies by status bar. */
.tm-page { min-height: 100vh; background: #0d1326; color: #EEEEF0; }
.tm-page .app-header h2 { display: flex; align-items: center; color: var(--mint); font-size: 16px; font-weight: 600; }
.tm-logo { height: 42px; margin-right: 10px; }
.tm-brand-sep { color: var(--muted-blue); margin: 0 10px; font-weight: 400; }
.tm-brand-page { color: #EEEEF0; font-size: 14px; font-weight: 700; }
.tm-page .form-check-label { color: #EEEEF0; font-size: 13px; }
.tm-body { max-width: 1800px; margin: 0 auto; padding: 22px 28px 60px; }
.tm-title { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.tm-sub { color: #AAAACC; font-size: 13px; margin: 0 0 14px; }
.tm-muted { color: #8f8fb5; font-size: 12px; }
.tm-card { background: #172040; border: 1px solid rgba(170,170,204,0.2); border-radius: 6px; padding: 16px 20px; margin-bottom: 14px; }
.tm-card-title { font-size: 16px; font-weight: 700; color: #fff; }
.tm-card-sub { color: #AAAACC; font-size: 13px; margin: 2px 0 10px; }
.tm-empty { text-align: center; padding: 28px; }
.tm-alert { margin: 8px 0; font-size: 13px; }
.tm-hint { font-size: 13px; margin-top: -8px; }
.tm-hint b { color: #EEEEF0; font-weight: 600; }
.tm-ask-row { display: flex; gap: 10px; align-items: flex-start; }
/* The Ask box wraps long requests and grows with them (field-sizing), up to ~6 lines, then scrolls. */
.tm-page .tm-ask .tm-ask-input.form-control { flex: 1; font-size: 14px; line-height: 1.45; min-height: 42px; max-height: 150px;
    padding: 9px 12px; resize: vertical; white-space: pre-wrap; overflow-wrap: anywhere; field-sizing: content; }
.tm-ask-btn { min-height: 42px; }
.tm-ask-mic { flex-shrink: 0; width: 42px; height: 42px; border-radius: 6px; padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #0a0a3a; border: 1px solid var(--teal); }
.tm-ask-mic:hover, .tm-ask-mic:focus-visible { background: rgba(14,165,165,0.18); outline: none; }
.tm-ask-mic.recording { background: #c62828; border-color: #c62828; animation: pulse-recording 1.5s infinite; }
/* audio.js's status banner, on the dark card */
.tm-ask-audio .chat-audio-banner { margin-top: 8px; border-radius: 6px; border: 1px solid rgba(170,170,204,0.2);
    background: #0d1326; color: #c8c8e0; font-size: 13px; padding: 7px 12px; }
.tm-ask-audio .chat-audio-banner.recording-active { color: #ff8a80; background: rgba(198,40,40,0.15); border-color: rgba(198,40,40,0.5); }
.tm-ask-audio .chat-audio-banner.transcribing { color: #5eead4; background: rgba(14,165,165,0.12); border-color: rgba(14,165,165,0.4); }
.tm-ask-audio .chat-audio-banner.transcription-done { color: #9be7a0; background: rgba(46,125,50,0.15); border-color: rgba(46,125,50,0.5); }
/* Try pills wrap (two lines on a laptop screen) so every example shows without scrolling. */
.tm-examples { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tm-example { background: transparent; border: 1px solid rgba(170,170,204,0.5); color: #AAAACC; border-radius: 20px;
              padding: 3px 10px; font-size: 11px; cursor: pointer; }
.tm-example:hover { border-color: var(--teal); color: #fff; }
.tm-ask-note { margin-top: 8px; font-size: 13px; color: #EEEEF0; }
.tm-ask-spark { color: var(--mint); }
.tm-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.tm-filter { display: flex; flex-direction: column; gap: 4px; }
.tm-filter-wide { grid-column: span 2; }
.tm-filter-actions { justify-content: flex-end; }
.tm-product { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center; }
.tm-checklist .form-check-inline { margin-right: 14px; }
.tm-named { padding-top: 6px; }
.tm-kpis { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tm-kpi { background: #172040; border: 1px solid rgba(170,170,204,0.2); border-radius: 6px; padding: 12px 24px;
          text-align: center; color: #EEEEF0; }
.tm-kpi-total .tm-kpi-num { font-size: 36px; font-weight: 800; }
.tm-kpi-group { display: flex; border: 1px solid rgba(170,170,204,0.2); border-radius: 6px; overflow: hidden; }
.tm-kpi-status { border: none; border-right: 1px solid rgba(170,170,204,0.2); border-radius: 0; cursor: pointer; min-width: 150px; }
.tm-kpi-status:last-child { border-right: none; }
.tm-kpi-status:hover { background: rgba(14,165,165,0.07); }
.tm-kpi-num { font-size: 28px; font-weight: 700; color: var(--mint); line-height: 1.1; }
.tm-kpi-label { font-size: 11px; color: #AAAACC; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.tm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.tm-bar { display: flex; height: 40px; border-radius: 6px; overflow: hidden; background: #0d1326; margin: 6px 0 12px; }
.tm-seg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 13px; }
.tm-seg-empty { width: 100%; }
.tm-seg-dim { opacity: 0.22; }
.tm-seg { border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.tm-seg:hover, .tm-seg:focus-visible { filter: brightness(1.15); outline: 2px solid #fff; outline-offset: -2px; }
.tm-legend-item, .tm-legend-all {
    background: none; border: 1px solid transparent; border-radius: 12px; padding: 2px 8px; margin: -2px -8px;
    color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.tm-legend-item:hover, .tm-legend-item:focus-visible { border-color: rgba(255, 255, 255, 0.35); outline: none; }
.tm-legend-item.tm-seg-dim { opacity: 0.45; }
.tm-legend-picked { border-color: #0ea5a5; background: rgba(14, 165, 165, 0.18); color: #fff; }
.tm-legend-all { color: #7dd3d3; text-decoration: underline; }
.tm-legend-all:hover, .tm-legend-all:focus-visible { color: #fff; outline: none; }
.tm-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tm-legend { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13px; color: #c8c8e0; }
.tm-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.tm-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 220px; }
/* Research's Product focus, next to Research selected. */
.tm-focus { display: flex; align-items: center; gap: 8px; min-width: 290px; }
.tm-top-size { width: 112px; }
.tm-focus .dash-dropdown-dark, .tm-focus .dash-dropdown-wrapper { flex: 1; min-width: 210px; }
.tm-sort .dash-dropdown-dark, .tm-sort .dash-dropdown-wrapper { flex: 1; }
.tm-table-wrap { overflow-x: auto; }
/* Score pinned to the right edge of the scrolling table, on the card's background, with a shadow when rows scroll under it. */
.tm-table .tm-score-col { position: sticky; right: 0; z-index: 1; background: #172040; box-shadow: -8px 0 8px -6px rgba(0,0,0,0.55); }
.tm-table thead .tm-score-col { z-index: 2; }
.tm-table tbody tr:hover .tm-score-col { background: linear-gradient(rgba(14,165,165,0.07), rgba(14,165,165,0.07)), #172040; }
.tm-co-name { font-weight: 600; color: #fff; }
.tm-co-domain { margin-top: 2px; }
.tm-status { white-space: nowrap; }
.tm-products-cell { max-width: 220px; color: #c8c8e0; }
.tm-intent-cell { min-width: 170px; max-width: 240px; }
.tm-intent-n { font-weight: 600; color: var(--mint); }
.tm-intent-topics { font-size: 12px; margin-top: 2px; }
.tm-row-check input { cursor: pointer; }
.tm-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 6px 0 18px; }
.tm-top10 { border-left: 3px solid var(--teal); }
.tm-top-head { display: flex; justify-content: space-between; align-items: flex-start; }
.tm-top-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(170,170,204,0.08); }
.tm-top-item:last-child { border-bottom: none; }
.tm-top-rank { color: #AAAACC; min-width: 22px; }
.tm-top-main { flex: 1; }
.tm-top-why { color: #c8c8e0; font-size: 12px; margin-top: 2px; }
.tm-footnote { color: #8f8fb5; font-size: 12px; margin-top: 20px; }
/* New-logo hint: the app's callout (teal left rule), not an alert colour */
.tm-newlogo { display: flex; align-items: center; justify-content: space-between; gap: 16px;
              border-left: 3px solid var(--teal); padding: 12px 16px; }
.tm-newlogo-text { color: #EEEEF0; font-size: 13px; }
.tm-newlogo-tag { color: var(--mint); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.04em;
                  margin-right: 6px; }
.tm-newlogo-btn { white-space: nowrap; }
/* Insights */
.tm-insights .tm-card-sub { max-width: 900px; }

/* One progress pill for Target Market (layout.busy_pill), driven by the data-dash-is-loading flag Dash puts on each
   section while its callback runs. It names the first step still pending (ask, list, top N, insights, AI summary).
   It sits just above the Ask box, over the bottom of the intro (a zero-height anchor, so showing it moves nothing),
   and once the page is scrolled past it, it sticks under the header. It fades in after 0.4s so quick updates don't
   flash, and lets clicks through. A section dims until its new content arrives.
   White on teal is 3.5:1, so the text stays large (19px bold) to meet the contrast minimum for large text. */
.tm-busy-anchor { position: sticky; top: 140px; height: 0; z-index: 1500; display: flex; justify-content: center;
                  align-items: flex-end; pointer-events: none; }
.tm-busy { display: none; position: relative; overflow: hidden; align-items: center; gap: 10px; margin-bottom: 6px;
           justify-content: center; padding: 8px 20px 10px; border-radius: 22px; background: var(--teal);
           color: #fff; font-size: 19px; font-weight: 700; line-height: 1.2; box-shadow: 0 4px 16px rgba(0,0,0,0.45);
           animation: tm-busy-in 0.25s ease-out 0.4s both; }
@keyframes tm-busy-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.tm-busy .spinner-border { color: #fff !important; width: 1rem; height: 1rem; border-width: 0.18em; }
/* Indeterminate progress: a mint stripe sweeping along the bottom edge. */
.tm-busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 35%; background: var(--mint);
                  animation: tm-busy-sweep 1.4s ease-in-out infinite; }
@keyframes tm-busy-sweep { from { transform: translateX(-100%); } to { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) {
    .tm-busy { animation: tm-busy-fade 0s linear 0.4s both; }
    .tm-busy::after { animation: none; width: 100%; opacity: 0.6; }
}
@keyframes tm-busy-fade { from { opacity: 0; } to { opacity: 1; } }
.tm-busy-text { display: none; }
.tm-body:has(#tm-ask-note[data-dash-is-loading], #tm-summary[data-dash-is-loading], #tm-table[data-dash-is-loading],
             #tm-top10-panel[data-dash-is-loading], #tm-insights[data-dash-is-loading],
             #tm-insights-ai[data-dash-is-loading]) .tm-busy { display: flex; }
.tm-body:has(#tm-ask-note[data-dash-is-loading]) .tm-busy-ask { display: inline; }
.tm-body:not(:has(#tm-ask-note[data-dash-is-loading])):has(#tm-summary[data-dash-is-loading],
             #tm-table[data-dash-is-loading]) .tm-busy-list { display: inline; }
.tm-body:not(:has(#tm-ask-note[data-dash-is-loading], #tm-summary[data-dash-is-loading],
             #tm-table[data-dash-is-loading])):has(#tm-top10-panel[data-dash-is-loading]) .tm-busy-top { display: inline; }
.tm-body:not(:has(#tm-ask-note[data-dash-is-loading], #tm-summary[data-dash-is-loading], #tm-table[data-dash-is-loading],
             #tm-top10-panel[data-dash-is-loading])):has(#tm-insights[data-dash-is-loading]) .tm-busy-insights { display: inline; }
.tm-body:not(:has(#tm-ask-note[data-dash-is-loading], #tm-summary[data-dash-is-loading], #tm-table[data-dash-is-loading],
             #tm-top10-panel[data-dash-is-loading], #tm-insights[data-dash-is-loading])):has(#tm-insights-ai[data-dash-is-loading])
             .tm-busy-ai { display: inline; }
#tm-summary, #tm-insights, #tm-top10-panel, #tm-table { transition: opacity 0.15s; }
#tm-summary[data-dash-is-loading], #tm-insights[data-dash-is-loading], #tm-top10-panel[data-dash-is-loading],
#tm-table[data-dash-is-loading] { opacity: 0.45; transition: opacity 0.2s ease 0.4s; }
.tm-ai-btn { white-space: nowrap; }
.tm-insight-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tm-insight { background: #0d1326; border: 1px solid rgba(170,170,204,0.2); border-radius: 6px; padding: 12px 14px; }
.tm-insight-title { color: var(--mint); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
                    margin-bottom: 8px; }
.tm-insight-row { font-size: 13px; color: #EEEEF0; padding: 6px 0; border-top: 1px solid rgba(170,170,204,0.08); }
.tm-insight-row:first-of-type { border-top: none; }
.tm-insight-row b { color: #fff; }
.tm-insight-focus { color: #fff; }
.tm-insight-ex { font-size: 12px; margin-top: 2px; }
.tm-insight-link { background: none; border: none; padding: 0; color: var(--mint); font-size: 12px; font-weight: 600;
                   text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tm-insight-link:hover, .tm-insight-link:focus-visible { color: #fff; outline: none; }
.tm-ai { border-left: 3px solid var(--teal); }
.tm-ai-list { margin: 6px 0 8px 18px; padding: 0; font-size: 13px; color: #EEEEF0; }
.tm-ai-list li { margin-bottom: 4px; }
.tm-ai-play { font-size: 13px; color: #EEEEF0; }
.tm-ai-note { font-size: 11px; margin-top: 6px; }
@media (max-width: 1000px) {
    .tm-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tm-kpi-group { flex-wrap: wrap; }
    .tm-insight-grid { grid-template-columns: 1fr; }
}
/* Target Market: company name opens its popup */
.tm-co-link { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; font-weight: 600; color: #fff; }
.tm-co-link:hover, .tm-co-link:focus-visible { color: var(--mint); text-decoration: underline; outline: none; }

/* Target Market text sizes: half a step up from the shared 11-13px styles, on this page only (Partner New Logo
   and the shared dropdown / table styles are unchanged elsewhere). Titles and KPI numbers keep their size. */
.tm-page, .tm-sub, .tm-card-sub, .tm-hint, .tm-alert, .tm-ask-note, .tm-legend, .tm-seg, .tm-newlogo-text,
.tm-insight-row, .tm-page .form-check-label { font-size: 13.5px; }
.tm-page .pnl-table { font-size: 13px; }
.tm-page .pnl-table th { font-size: 11.5px; }
.tm-muted, .tm-top-why, .tm-intent-topics, .tm-footnote { font-size: 12.5px; }
.tm-page .pnl-filter-label, .tm-kpi-label, .tm-insight-title, .tm-newlogo-tag { font-size: 11.5px; }
.tm-example { font-size: 12px; padding: 3px 10px; line-height: 1.35; }
.tm-page .pnl-search-input.form-control { font-size: 13px; min-height: 34px; }
.tm-page .dash-dropdown.dash-dropdown-dark,
.tm-page .dash-dropdown.dash-dropdown-dark .dash-dropdown-value,
.tm-page .dash-dropdown.dash-dropdown-dark .dash-dropdown-placeholder,
.tm-page .dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content,
.tm-page .dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content .dash-dropdown-option,
.tm-page .dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content input[type="search"],
.tm-page .dash-dropdown-wrapper:has(.dash-dropdown-dark) .dash-dropdown-content input[type="text"] { font-size: 13px !important; }
.tm-page .btn-sm { font-size: 12.5px; }
/* The company popup (shared .pnl-modal) gets the same step on this page */
.tm-modal .pnl-detail-head, .tm-modal .pnl-web-summary, .tm-modal .pnl-detail-title { font-size: 13.5px; }
.tm-modal .pnl-web-ops, .tm-modal .pnl-web-news, .tm-modal .pnl-web-angle, .tm-modal .pnl-web-sources,
.tm-modal .pnl-muted, .tm-modal .tm-top-why { font-size: 12.5px; }
.tm-modal .pnl-detail-stat-label, .tm-modal .pnl-detail-note { font-size: 11.5px; }
.tm-modal .pnl-detail-stat-value { font-size: 15px; }
/* Target Market popup: competitive installs (HG) */
.tm-comp-list { list-style: none; padding: 0; margin: 0; }
.tm-comp-item { padding: 8px 0; border-bottom: 1px solid rgba(170,170,204,0.08); }
.tm-comp-item:last-child { border-bottom: none; }
.tm-comp-name { color: #fff; font-weight: 600; }
.tm-comp-siemens { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
/* Target Market intro: tagline, "How this works" (lede, three steps, why) */
.tm-intro { margin-bottom: 14px; }
.tm-intro-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tm-intro-tagline { color: var(--mint); font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.tm-intro-toggle { margin-top: 6px; white-space: nowrap; }
.tm-intro-lede { color: #EEEEF0; font-size: 14px; line-height: 1.5; max-width: 980px; margin: 0 0 12px; }
.tm-intro-lede b { color: #fff; }
.tm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 10px; }
.tm-step { background: #172040; border: 1px solid rgba(170,170,204,0.2); border-left: 3px solid var(--teal); border-radius: 6px;
           padding: 12px 16px; }
.tm-step-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tm-step-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%;
               background: rgba(14,165,165,0.25); color: var(--mint); font-size: 12px; font-weight: 700; }
.tm-step-name { color: #fff; font-weight: 700; font-size: 14px; }
.tm-step-text { color: #c8c8e0; font-size: 13px; line-height: 1.45; }
.tm-step-text b { color: #EEEEF0; font-weight: 600; }
.tm-intro-why { color: #c8c8e0; font-size: 13px; max-width: 980px; }
.tm-intro-why summary { cursor: pointer; color: #AAAACC; }
.tm-intro-why p { margin: 6px 0 0; line-height: 1.5; }
@media (max-width: 900px) { .tm-steps { grid-template-columns: 1fr; } }

/* Report: "From Target Market" card (target_market/report_context.py), in the Financial Health card's style. */
.tm-report-context {
    margin: 12px 0;
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0, 153, 153, 0.2);
    background: linear-gradient(135deg, rgba(0, 0, 40, 0.03), rgba(0, 153, 153, 0.04));
}
.tm-report-context-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.tm-report-context-title { color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.tm-report-context-date { color: #5A7A9A; font-size: 12px; }
.tm-report-context-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 18px; }
.tm-report-context-fact { display: flex; flex-direction: column; }
.tm-report-context-k { color: #5A7A9A; font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; }
.tm-report-context-v { color: var(--navy); font-size: 13px; }
.tm-report-context-filters { margin-top: 8px; color: #5A7A9A; font-size: 12px; }

/* Filter bar: the filters collapsed to their chips; "All filters" opens the full set (.tm-filters). */
.tm-filterbar { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.tm-filters-toggle { flex: 0 0 auto; background: transparent; border: 1px solid rgba(14,165,165,0.6); color: #EEEEF0;
                     border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tm-filters-toggle::after { content: " ▾"; color: var(--teal); }
.tm-filters-toggle.open::after { content: " ▴"; }
.tm-filters-toggle:hover, .tm-filters-toggle:focus-visible { border-color: var(--teal); outline: none; }
.tm-filter-count:not(:empty) { margin-left: 6px; background: var(--teal); color: #000028; border-radius: 10px;
                               padding: 0 7px; font-size: 11px; font-weight: 700; }
.tm-filter-summary { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; font-size: 12px; }
.tm-filter-chip { background: rgba(14,165,165,0.12); border: 1px solid rgba(14,165,165,0.35); color: #EEEEF0;
                  border-radius: 14px; padding: 2px 10px; max-width: 420px; overflow: hidden; text-overflow: ellipsis;
                  white-space: nowrap; }
.tm-filter-chip-k { color: #AAAACC; }
.tm-filterbar .pnl-select-clear { flex: 0 0 auto; }

/* Target Market research: small progress bar in the running-research message. */
.tm-progress { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.tm-progress .tm-progress-bar { flex: 1; height: 6px; max-width: 360px; background: rgba(170,170,204,0.2); }
.tm-progress .tm-muted { font-size: 12px; white-space: nowrap; }
/* Your combined reports: the latest Target Market combined (ABM) reports, linked */
.tm-combined-list { margin: 6px 0 10px; font-size: 13px; }
.tm-combined-list-title { font-weight: 600; margin-right: 8px; }
.tm-combined-list ul { list-style: none; margin: 4px 0 0; padding: 0; }
.tm-combined-list li { padding: 2px 0; }
.tm-combined-list a { color: var(--mint); font-weight: 600; }
.tm-combined-more summary { cursor: pointer; color: var(--mint); font-size: 12px; margin-top: 2px; }

/* Page switch indicator (app.py page-loading): a small pill at the top of the dimmed old page. */
.page-loading { position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 2000;
                display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px;
                background: #000028; color: #fff; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,40,0.35); }
@media (max-width: 900px) { .research-pill-group-find { border-right: none; padding-right: 0; } }

/* Target lists (target_market/lists_view.py): filter-bar buttons, open-list bar, dialogs. */
.tm-list-save-btn { flex: 0 0 auto; background: var(--teal); border: 1px solid var(--teal); color: #000028;
                    border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tm-list-save-btn:hover, .tm-list-save-btn:focus-visible { background: #14b8b8; outline: none; }
.tm-list-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px;
                 border-color: rgba(14,165,165,0.6); }
.tm-list-strip-name { color: #fff; font-size: 14px; }
.tm-list-strip-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tm-list-strip-btn { background: transparent; border: 1px solid rgba(170,170,204,0.5); color: #EEEEF0;
                     border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.tm-list-strip-btn:hover, .tm-list-strip-btn:focus-visible { border-color: var(--teal); outline: none; }
.tm-list-strip-primary { background: var(--teal); border-color: var(--teal); color: #000028; font-weight: 700; }
.tm-list-strip-close { color: #AAAACC; }
/* Target list dialogs use the company popup's dark dialog (.pnl-modal); these rules style their contents. */
.tm-list-modal .modal-body { font-size: 13.5px; }
.tm-list-modal .modal-footer { gap: 8px; }
.tm-list-input.form-control { background: #172040; border: 1px solid rgba(170,170,204,0.45); color: #EEEEF0;
                              font-size: 13.5px; border-radius: 6px; }
.tm-list-input.form-control::placeholder { color: #8A8AB0; }
.tm-list-input.form-control:focus { background: #172040; color: #fff; border-color: var(--teal);
                                    box-shadow: 0 0 0 2px rgba(14,165,165,0.25); }
.tm-list-input.form-control[readonly] { color: #c8c8e0; }
.tm-list-label { display: block; font-size: 12px; font-weight: 600; color: #AAAACC; margin: 12px 0 5px;
                 letter-spacing: 0.02em; }
.tm-list-modal .tm-list-label:first-child { margin-top: 0; }
.tm-list-hint { font-size: 12px; color: #AAAACC; margin-top: 6px; }
.tm-list-error { color: #ff8a80; font-size: 13px; margin-top: 8px; }
.tm-list-error:empty { display: none; }
.tm-list-check { margin-top: 12px; color: #EEEEF0; }
.tm-list-check .form-check-input { background-color: #172040; border-color: rgba(170,170,204,0.6); }
.tm-list-check .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.tm-list-link { display: flex; align-items: center; gap: 8px; }
.tm-list-link .tm-list-input { flex: 1; }
.tm-list-copy { flex: 0 0 auto; color: var(--teal); cursor: pointer; font-size: 18px; padding: 4px 6px;
                border: 1px solid rgba(14,165,165,0.5); border-radius: 6px; line-height: 1; }
.tm-list-copy:hover { background: rgba(14,165,165,0.12); }
.tm-list-search { margin-bottom: 4px; }
.tm-list-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #AAAACC;
                   margin: 16px 0 8px; }
.tm-list-row { display: flex; align-items: center; gap: 10px; background: #172040;
               border: 1px solid rgba(170,170,204,0.2); border-radius: 6px; padding: 9px 12px; margin-bottom: 6px; }
.tm-list-row:hover { border-color: rgba(14,165,165,0.6); }
.tm-list-row-open { flex: 1; text-align: left; background: none; border: none; padding: 0; cursor: pointer; min-width: 0;
                    color: inherit; }
.tm-list-row-open:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.tm-list-row-name { font-weight: 700; color: #fff; font-size: 14px; }
.tm-list-row-note { font-size: 13px; color: #c8c8e0; margin-top: 2px; }
.tm-list-row-meta { font-size: 12px; color: #AAAACC; margin-top: 2px; }
.tm-list-row-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.tm-list-row-btn { background: transparent; border: 1px solid rgba(170,170,204,0.5); color: #EEEEF0; border-radius: 6px;
                   padding: 3px 10px; font-size: 12px; cursor: pointer; }
.tm-list-row-btn:hover, .tm-list-row-btn:focus-visible { border-color: var(--teal); outline: none; }
.tm-list-row-btn.danger { color: #ff8a80; border-color: rgba(255,138,128,0.45); }
.tm-list-row-btn.danger:hover { border-color: #ff8a80; background: rgba(255,138,128,0.08); }
.tm-list-empty { padding: 6px 2px; color: #AAAACC; }
.tm-save-pinned { margin-top: 12px; }
/* Toasts: navy with an accent stripe (teal / blue / amber), below the header on the right. */
.tm-list-toast-wrap { position: fixed; top: 84px; right: 20px; z-index: 2100; }
.tm-list-toast.toast { background: #00002E; color: #EEEEF0; border: 1px solid rgba(14,165,165,0.35);
                       border-left: 4px solid var(--teal); box-shadow: 0 6px 20px rgba(0,0,40,0.45); max-width: 380px; }
.tm-list-toast .toast-header { background: transparent; color: #fff; border-bottom-color: rgba(170,170,204,0.15);
                               font-weight: 700; }
.tm-list-toast .toast-header .btn-close { filter: invert(1); }
.tm-list-toast .toast-body { font-size: 13px; }
.tm-list-toast-info.toast { border-left-color: #5aa2ff; }
.tm-list-toast-warning.toast { border-left-color: #f5b041; }

/* Target Market "Upload list" (target_market/upload.py): button, dialog, list bar, Source chips. */
.tm-upload-btn { flex: 0 0 auto; background: transparent; border: 1px solid var(--teal); color: var(--teal);
                 border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.tm-upload-btn:hover, .tm-upload-btn:focus-visible { background: rgba(14,165,165,0.15); outline: none; }
.tm-upload-drop { width: 100%; padding: 22px; border: 2px dashed rgba(170,170,204,0.45); border-radius: 8px;
                  text-align: center; cursor: pointer; background: rgba(255,255,255,0.03); color: #c8c8e0; }
.tm-upload-drop:hover { border-color: var(--teal); }
.tm-upload-browse { color: var(--teal); font-weight: 600; }
.tm-upload-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.tm-upload-label { display: block; font-size: 12px; font-weight: 600; color: #AAAACC; margin-bottom: 4px; }
.tm-upload-count { font-size: 14px; color: #EEEEF0; margin-bottom: 4px; }
.tm-upload-strip .tm-upload-mode { font-size: 12.5px; color: #EEEEF0; }
.tm-upload-strip .tm-upload-mode .form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.tm-src { display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: 11px; white-space: nowrap; }
.tm-src-list { background: rgba(14,165,165,0.2); color: #5fd4d4; }
.tm-src-found { background: rgba(170,170,204,0.12); color: #c8c8e0; }
.tm-src-outside { background: rgba(230,170,40,0.18); color: #f0c060; cursor: help; }
.tm-src-group { background: rgba(170,170,204,0.18); color: #d8d8ee; margin-left: 4px; cursor: help; }
/* Uploaded rows not in Company Lists, researched as new targets (target_market.upload.notfound_view) */
.tm-notfound .tm-nf-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.tm-nf-row { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.tm-nf-name { font-weight: 600; color: #EEEEF0; }
.tm-nf-why { font-size: 12px; }
.tm-upload-group-list label { display: block; font-size: 13px; color: #EEEEF0; margin: 2px 0; cursor: pointer; }
.tm-src-interest { background: rgba(0,255,185,0.1); color: var(--mint); margin-left: 4px; cursor: help; }
/* Under the upload strip: criteria applied from the file (with Undo), Product Interest, unrecognised values */
.tm-upload-note { font-size: 12px; margin: -4px 0 8px; display: flex; flex-direction: column; gap: 2px; }
.tm-upload-note .tm-upload-warn { color: #f0c060; }
.tm-link-btn { background: none; border: none; padding: 0; color: var(--mint); font-weight: 600; font-size: 12px;
               cursor: pointer; text-decoration: underline; }
.tm-focus-note { margin: 4px 0 8px; }
@media (max-width: 760px) { .tm-upload-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Target Market score pop-up (callbacks.score_view). */
.tm-score-btn { background: none; border: 0; padding: 0; cursor: pointer; }
.tm-score-btn:hover .pnl-score, .tm-score-btn:focus-visible .pnl-score { outline: 2px solid var(--teal); outline-offset: 1px; }
.tm-score-btn:focus-visible { outline: none; }
.tm-score-kind { color: #EEEEF0; font-size: 13.5px; margin-bottom: 10px; }
.tm-score-table td:nth-child(n+3), .tm-score-table th:nth-child(n+3) { text-align: right; white-space: nowrap; }
.tm-score-total td { border-top: 1px solid rgba(170,170,204,0.45); }
.tm-score-notes { margin: 8px 0 0 18px; padding: 0; font-size: 12.5px; }

/* History: a Target Market combined report (links to the ABM report; no report actions) */
.history-combined-link { display: block; text-decoration: none; min-width: 0; }
.history-combined-link:hover .history-name { text-decoration: underline; }
.history-combined-badge { font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 4px;
                          background: rgba(0, 255, 185, 0.12); color: var(--mint); letter-spacing: 0.3px; }

/* ── Technology Portfolio (TPS, DI AUT) ───────────────────────────────── */
.tps-section { padding: 12px 0; display: flex; flex-direction: column; gap: 12px; }
.tps-note { font-size: 11px; color: var(--muted-blue); line-height: 1.4; }
.tps-group-title {
    font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--muted-blue); margin-bottom: 6px;
}
.tps-grid, .tps-plays {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px;
}
.tps-tile, .tps-play {
    background: #fff; border: 1px solid var(--border-lav); border-left: 3px solid var(--border-lav);
    border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
}
.tps-tile.tps-owned { border-left-color: var(--teal); }
.tps-tile.tps-pipeline { border-left-color: #D4790E; }
.tps-tile.tps-whitespace { background: var(--warm-gray); }
.tps-play { border-left-color: var(--teal); background: var(--light-teal); }
.tps-tile-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tps-code { font-size: 10px; font-weight: 700; color: var(--teal); margin-right: 6px; }
.tps-name { font-size: 12px; font-weight: 700; color: var(--navy); }
.tps-badge { font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 8px; white-space: nowrap; }
.tps-badge-owned { background: var(--light-teal); color: var(--teal); }
.tps-badge-pipeline { background: #FDF0E2; color: #D4790E; }
.tps-badge-whitespace { background: #fff; color: var(--muted-blue); border: 1px solid var(--border-lav); }
.tps-figure { font-size: 11px; color: var(--med-text); }
.tps-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tps-tag {
    font-size: 10px; color: var(--navy); background: var(--warm-gray); border: 1px solid var(--border-lav);
    border-radius: 3px; padding: 1px 6px;
}
.tps-tag-hg { color: var(--teal); background: var(--light-teal); border-color: var(--light-teal); }
.tps-tag-smp { color: #fff; background: var(--muted-blue); border-color: var(--muted-blue); }
.tps-tag-approx { color: var(--muted-blue); background: #fff; border-style: dashed; }
.tps-details summary { font-size: 10px; font-weight: 700; color: var(--muted-blue); cursor: pointer; }
.tps-detail-body { font-size: 11px; color: var(--med-text); display: flex; flex-direction: column; gap: 3px;
                   padding-top: 4px; }
.tps-play-reasons { font-size: 11px; color: var(--med-text); margin: 0; padding-left: 16px; }
.tps-play-actions { display: flex; gap: 8px; }
@media (max-width: 768px) {
    .tps-grid, .tps-plays { grid-template-columns: 1fr; }
}
.tps-play-why { font-size: 12px; color: var(--navy); font-weight: 600; line-height: 1.35; }
.tps-play-opp { font-size: 11px; color: var(--teal); font-weight: 600; }
.tps-opp-chip {
    font-size: 10px; font-weight: 700; border-radius: 3px; padding: 1px 6px; margin-left: 8px;
    border: 1px solid var(--border-lav); color: var(--navy); background: var(--warm-gray); white-space: nowrap;
}
.tps-opp-chip.tps-opp-upsell { color: var(--teal); background: var(--light-teal); border-color: var(--light-teal); }
.tps-opp-chip.tps-opp-advance { color: #D4790E; background: #FDF0E2; border-color: #FDF0E2; }
.tps-tile.tps-light { border-left-color: var(--muted-blue); }
.tps-badge-light { background: #fff; color: var(--muted-blue); border: 1px dashed var(--muted-blue); }
.tps-owned-source { color: var(--muted-blue); font-size: 10px; }
