body {
    font-family: Arial;
    background: #f4f6f8;
    padding: 30px;
}

.nav {
    margin-bottom: 20px;
}

.cards,
.stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.card,
.stat,
.health,
.box,
.chart-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    margin-bottom: 25px;
}

.stat {
    width: 220px;
}

.card {
    width: auto;
}

.chart-card {
    width: 100%;
    max-width: 1100px;
}

.chart-container {
    width: 100%;
    height: 450px;
}

#priceChart {
    width: 100% !important;
    height: 450px !important;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-size: 14px;
}

th {
    background: #111827;
    color: white;
}

input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-right: 8px;
}

button {
    background: #111827;
    color: white;
    border: 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

a {
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
}

.green {
    color: #16a34a;
    font-weight: bold;
}

.red {
    color: #dc2626;
    font-weight: bold;
}

.blue {
    color: #2563eb;
    font-weight: bold;
}

.discount {
    background: #fef2f2;
}

.out {
    background: #f3f4f6;
}

.filters button {
    margin-right: 10px;
}

.badge {
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: bold;
}

.red-badge {
    background: #dc2626;
}

.purple-badge {
    background: #9333ea;
}

.orange-badge {
    background: #ea580c;
}

.green-badge {
    background: #16a34a;
}

.blue-badge {
    background: #2563eb;
}

.top-nav {
    margin-bottom: 20px;
    font-weight: bold;
}

.top-nav a {
    margin-right: 8px;
}


.nav-cards {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.nav-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 18px;
    min-width: 220px;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    transition: 0.15s ease;
}

.nav-card:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.nav-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.nav-card p {
    margin: 0;
    color: #555;
    font-size: 14px;
}


.nav-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.nav-card {
    min-width: 0;
}

@media (max-width: 1200px) {
    .nav-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .nav-cards {
        grid-template-columns: 1fr;
    }
}


.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.badge-green {
    background: #16a34a;
}

.badge-yellow {
    background: #d97706;
}

.badge-red {
    background: #dc2626;
}


.executive-panel {
    margin: 18px 0;
}

.section-header {
    margin-bottom: 14px;
}

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

.section-header p {
    color: #64748b;
    margin-top: 0;
}

.executive-digest-card {
    background: #0f172a;
    color: white;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.executive-digest-card h3 {
    margin: 6px 0 12px 0;
}

.executive-digest-card p {
    line-height: 1.6;
}

.executive-digest-card small {
    color: #cbd5e1;
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: bold;
}

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

.signal-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.signal-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.signal-retailer {
    font-weight: bold;
    color: #334155;
    text-transform: capitalize;
}

.signal-card h3 {
    margin: 0 0 10px 0;
}

.signal-card p {
    color: #475569;
    line-height: 1.5;
}

.signal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.signal-meta span {
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    color: #334155;
    font-weight: bold;
}

@media (max-width: 900px) {
    .signal-card-grid {
        grid-template-columns: 1fr;
    }
}



.signal-card-grid:has(.signal-card:only-child) {
    grid-template-columns: 1fr;
}

.signal-card-grid:has(.signal-card:only-child) .signal-card {
    max-width: none;
}


.single-signal-grid {
    grid-template-columns: 1fr;
}

.single-signal-grid .signal-card {
    width: 100%;
}


.single-signal-grid .signal-card-top {
    justify-content: flex-start;
}

.single-signal-grid .signal-card-top .badge {
    margin-left: 12px;
}

.single-signal-grid .signal-card {
    padding: 20px;
}


.single-signal-grid {
    grid-template-columns: minmax(420px, 640px);
}

.single-signal-grid .signal-card {
    width: auto;
    max-width: 640px;
}


.digest-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.digest-meta-row span {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
}


.retailer-overview {
    margin: 30px 0;
}

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

.retailer-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.retailer-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.retailer-card-top h3 {
    margin: 0;
    text-transform: capitalize;
}

.retailer-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 12px 0 14px 0;
}

.retailer-metrics div {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
}

.retailer-metrics strong {
    display: block;
    font-size: 22px;
    color: #0f172a;
}

.retailer-metrics span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.retailer-next-scan {
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 900px) {
    .retailer-card-grid {
        grid-template-columns: 1fr;
    }
}


.chart-panel {
    margin: 30px 0;
}

.chart-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.chart-card canvas {
    max-height: 320px;
}


.compare-form {
    display: flex;
    gap: 10px;
    margin: 20px 0 28px 0;
    align-items: center;
}

.compare-form select {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    min-width: 180px;
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    align-items: start;
}

.compare-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.compare-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.compare-card h3 {
    margin-top: 0;
}

.compare-card strong {
    font-size: 28px;
    color: #0f172a;
}

.compare-signal-card {
    margin-bottom: 12px;
}

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

    .compare-form {
        flex-direction: column;
        align-items: stretch;
    }
}


.retailer-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-top: 12px;
}

.retailer-form input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    min-width: 220px;
    font-size: 14px;
}

.retailer-form button {
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: bold;
}

.retailer-form button:hover {
    opacity: 0.9;
}


.frequency-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.frequency-field label {
    font-size: 13px;
    font-weight: bold;
    color: #334155;
}


.helper-text {
    color: #64748b;
    font-size: 13px;
    margin-top: 10px;
}


.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #0f172a;
    color: white;
    padding: 14px 20px;
    border-radius: 16px;
    margin-bottom: 26px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.nav-brand {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

@media (max-width: 900px) {
    .app-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
    }
}


.app-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: #0f172a;
    color: white;
    padding: 16px 22px;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.nav-brand-block {
    display: flex;
    flex-direction: column;
    min-width: 260px;
}

.nav-brand-main {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1;
}

.nav-brand-subtitle {
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.nav-admin-link {
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #94a3b8 !important;
}

.nav-admin-link:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: white !important;
}

@media (max-width: 1000px) {
    .app-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-brand-block {
        min-width: 0;
    }

    .nav-links {
        justify-content: flex-start;
    }
}


.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 24px 0;
}

.page-actions a {
    background: #0f172a;
    color: white;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
}

.page-actions a:hover {
    opacity: 0.9;
}


.retailer-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.retailer-card-link:hover {
    transform: translateY(-2px);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}


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

.table-action-button {
    background: #0f172a;
    color: white;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.table-action-button:hover {
    opacity: 0.9;
}

.warning-button {
    background: #d97706;
}

.success-button {
    background: #16a34a;
}


.retailers-table-section {
    margin-top: 10px;
}


.retailer-onboarding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
    margin: 18px 0 20px 0;
}

.retailer-onboarding-grid .executive-panel {
    margin: 0;
}

@media (max-width: 900px) {
    .retailer-onboarding-grid {
        grid-template-columns: 1fr;
    }
}


.page-dashboard .nav-dashboard,
.page-intelligence .nav-intelligence,
.page-compare .nav-compare,
.page-retailers .nav-retailers,
.page-products .nav-products,
.page-alerts .nav-alerts,
.page-operations .nav-operations {
    background: rgba(255, 255, 255, 0.16);
    color: white !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}


.feedback-box {
    padding: 12px 14px;
    border-radius: 14px;
    margin: 14px 0;
    font-size: 14px;
    font-weight: 700;
}

.feedback-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.feedback-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.feedback-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}


.feedback-box {
    padding: 14px 16px;
    border-radius: 14px;
    margin: 18px 0 22px 0;
    font-size: 15px;
    font-weight: 700;
    max-width: 900px;
}

.feedback-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    box-shadow: 0 8px 20px rgba(153, 27, 27, 0.08);
}

.feedback-error::before {
    content: "Validation failed: ";
    font-weight: 900;
}

.feedback-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.feedback-success::before {
    content: "Success: ";
    font-weight: 900;
}

.feedback-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.feedback-info::before {
    content: "Info: ";
    font-weight: 900;
}


.feedback-detail {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    line-height: 1.5;
}


.feedback-title {
    font-size: 17px;
    font-weight: 900;
    margin-bottom: 10px;
}

.feedback-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.feedback-stats span {
    background: rgba(255,255,255,0.55);
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.feedback-detail ul {
    margin: 8px 0 0 18px;
    padding: 0;
}

.feedback-detail li {
    margin-bottom: 6px;
}


.danger-button {
    background: #dc2626;
}


.edit-retailer-form {
    display: grid;
    gap: 14px;
    max-width: 720px;
}

.edit-retailer-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

.edit-retailer-form input {
    padding: 11px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
}

.edit-retailer-form button {
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 800;
    width: fit-content;
}

.checkbox-row {
    flex-direction: row !important;
    align-items: center;
}

.checkbox-row input {
    width: auto;
}


.table-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0;
}

.table-controls input,
.table-controls select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 14px;
    min-width: 220px;
}


.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 14px 0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.pagination-controls select,
.pagination-controls button {
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: white;
    font-size: 13px;
    font-weight: 700;
}

.pagination-controls button {
    cursor: pointer;
}

.pagination-controls button:hover {
    background: #f1f5f9;
}


.pagination-controls button {
    color: #0f172a;
    background: white;
}


.executive-summary-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 700;
}


.timeline-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.timeline-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.timeline-type {
    color: #2563eb;
}

.timeline-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.timeline-card p {
    color: #475569;
    line-height: 1.5;
}


.details-toggle {
    margin-top: 12px;
}

.details-summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
}

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

.details-content {
    margin-top: 20px;
}


.signal-feed-header {
    margin-top: 22px;
}

/* Landing Page */

.landing-page {
    margin: 0;
    padding: 0;
    background: #f4f7fb;
    color: #0f172a;
}

.landing-nav {
    max-width: 1180px;
    margin: 24px auto 0;
    padding: 20px 24px;
    background: #0f172a;
    color: white;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.landing-brand {
    font-size: 28px;
    font-weight: 800;
}

.landing-subtitle {
    color: #94a3b8;
    font-weight: 600;
}

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

.landing-nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 700;
}

.landing-login-link {
    border: 1px solid #475569;
    padding: 10px 18px;
    border-radius: 999px;
}

.landing-hero {
    max-width: 1180px;
    margin: 56px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: center;
}

.landing-eyebrow {
    color: #2563eb;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 16px;
}

.landing-hero h1 {
    font-size: 58px;
    line-height: 1.02;
    margin: 0 0 22px;
    letter-spacing: -0.04em;
}

.landing-hero p {
    font-size: 20px;
    line-height: 1.65;
    color: #475569;
    max-width: 720px;
}

.landing-hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.landing-primary-button,
.landing-secondary-button {
    display: inline-block;
    padding: 15px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
}

.landing-primary-button {
    background: #0f172a;
    color: white;
}

.landing-secondary-button {
    background: white;
    color: #0f172a;
    border: 1px solid #cbd5e1;
}

.landing-signal-card {
    background: #0f172a;
    color: white;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.signal-card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
}

.signal-priority,
.signal-confidence {
    background: rgba(255, 255, 255, 0.1);
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 10px;
    border-radius: 999px;
}

.landing-signal-card h3 {
    font-size: 28px;
    margin: 0 0 16px;
}

.landing-signal-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

.signal-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.signal-metrics div {
    background: rgba(255, 255, 255, 0.08);
    padding: 14px;
    border-radius: 16px;
}

.signal-metrics strong {
    display: block;
    font-size: 24px;
}

.signal-metrics span {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 4px;
}

.landing-section {
    max-width: 1180px;
    margin: 64px auto;
    padding: 0 20px;
}

.landing-section-header {
    max-width: 820px;
    margin-bottom: 28px;
}

.landing-section h2,
.landing-cta h2 {
    font-size: 40px;
    line-height: 1.1;
    margin: 0 0 14px;
    letter-spacing: -0.03em;
}

.landing-section p,
.landing-cta p {
    font-size: 18px;
    color: #475569;
    line-height: 1.65;
}

.landing-problem-grid,
.landing-feature-grid,
.landing-audience-grid,
.landing-signal-grid {
    display: grid;
    gap: 18px;
}

.landing-problem-grid {
    grid-template-columns: repeat(4, 1fr);
}

.landing-problem-grid div,
.landing-feature-card,
.landing-audience-grid div,
.landing-mini-signal {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.landing-problem-grid div,
.landing-audience-grid div {
    font-size: 18px;
    font-weight: 800;
}

.landing-feature-grid {
    grid-template-columns: repeat(4, 1fr);
}

.landing-feature-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
}

.landing-feature-card p {
    font-size: 16px;
}

.landing-dark-section {
    background: #0f172a;
    color: white;
    max-width: none;
    padding: 72px calc((100% - 1180px) / 2);
}

.landing-dark-section .landing-section-header {
    padding: 0 20px;
}

.landing-dark-section h2 {
    color: white;
}

.landing-dark-section p {
    color: #cbd5e1;
}

.landing-signal-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0 20px;
}

.landing-mini-signal {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: white;
}

.landing-mini-signal span {
    display: block;
    color: #93c5fd;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.landing-mini-signal strong {
    font-size: 18px;
    line-height: 1.4;
}

.landing-audience-grid {
    grid-template-columns: repeat(5, 1fr);
}

.landing-cta {
    max-width: 980px;
    margin: 80px auto;
    padding: 48px;
    background: white;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .landing-nav,
    .landing-hero {
        margin-left: 16px;
        margin-right: 16px;
    }

    .landing-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .landing-nav-links {
        flex-wrap: wrap;
    }

    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-hero h1 {
        font-size: 42px;
    }

    .landing-problem-grid,
    .landing-feature-grid,
    .landing-signal-grid,
    .landing-audience-grid {
        grid-template-columns: 1fr;
    }

    .landing-dark-section {
        padding: 56px 0;
    }
}

.executive-insight-box,
.executive-action-box {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.executive-insight-box strong,
.executive-action-box strong {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.executive-insight-box span,
.executive-action-box span {
    line-height: 1.5;
}
/* ================================
   Products Page V2
   ================================ */

.page-products .page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 26px 70px;
}

.page-products .page-hero {
    margin-bottom: 22px;
}

.page-products .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2563eb;
}

.page-products .page-hero h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-products .page-hero p {
    max-width: 720px;
    margin-top: 10px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.page-products .summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 24px 0 34px;
}

.page-products .summary-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.page-products .summary-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.page-products .summary-card strong {
    display: block;
    margin-top: 12px;
    font-size: 34px;
    line-height: 1;
    color: #0f172a;
}

.page-products .summary-card p {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.page-products .intel-section,
.page-products .table-section {
    margin-top: 34px;
}

.page-products .section-header {
    margin-bottom: 14px;
}

.page-products .section-header h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.page-products .section-header p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}

.page-products .intel-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.page-products .intel-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    min-height: 190px;
}

.page-products .intel-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.page-products .intel-card-top span:first-child {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.page-products .intel-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.page-products .intel-card p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.page-products .digest-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.page-products .digest-meta-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #eef2ff;
    color: #334155;
    padding: 6px 9px;
    font-size: 11px;
    font-weight: 800;
}

.page-products .badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.page-products .badge-red {
    background: #fee2e2;
    color: #b91c1c;
}

.page-products .badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

.page-products .badge-green {
    background: #dcfce7;
    color: #166534;
}

.page-products .badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.page-products table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.page-products th {
    background: #0f172a;
    color: #ffffff;
    font-size: 12px;
    padding: 13px 14px;
    text-align: left;
}

.page-products td {
    padding: 13px 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    vertical-align: top;
}

.page-products tr:hover td {
    background: #f8fafc;
}

.page-products details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.page-products summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    font-size: 18px;
}

.page-products summary::-webkit-details-marker {
    display: none;
}

.page-products summary span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.page-products details[open] summary {
    margin-bottom: 16px;
}

.page-products .filters {
    margin: 16px 0;
}

.page-products .filters button {
    border: none;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .page-products .summary-grid,
    .page-products .intel-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-products .summary-grid,
    .page-products .intel-card-grid {
        grid-template-columns: 1fr;
    }
}
/* ================================
   Rivalync Design System V1
   Global Sidebar Navigation
   ================================ */

body:not(.landing-page) {
    background: #f6f8fb;
    color: #0f172a;
    padding-left: 280px;
    min-height: 100vh;
}

.app-nav {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    margin: 0 !important;
    padding: 24px 18px !important;
    border-radius: 0 !important;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 30%),
        #08111f !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 28px !important;
    box-shadow: 18px 0 45px rgba(15, 23, 42, 0.18) !important;
    z-index: 1000;
}

.nav-brand-block {
    min-width: 0 !important;
    padding: 4px 4px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.nav-brand-main {
    font-size: 26px !important;
    font-weight: 950 !important;
    letter-spacing: -0.04em !important;
    color: #ffffff;
}

.nav-brand-subtitle {
    margin-top: 8px !important;
    font-size: 11px !important;
    line-height: 1.35;
    color: #94a3b8 !important;
    text-transform: uppercase;
}

.nav-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 13px !important;
    border-radius: 12px !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    text-decoration: none;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

.page-dashboard .nav-dashboard,
.page-intelligence .nav-intelligence,
.page-compare .nav-compare,
.page-retailers .nav-retailers,
.page-products .nav-products,
.page-alerts .nav-alerts,
.page-operations .nav-operations {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35) !important;
}

.nav-admin-link {
    margin-top: 8px;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

@media (max-width: 900px) {
    body:not(.landing-page) {
        padding-left: 0;
        padding-top: 0;
    }

    .app-nav {
        position: static !important;
        width: auto;
        height: auto;
        margin-bottom: 22px !important;
        border-radius: 0 0 22px 22px !important;
    }

    .nav-links {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }
}
/* Global workspace width fix after sidebar */
body:not(.landing-page) {
    padding-left: 230px;
}

.app-nav {
    width: 200px !important;
}

body:not(.landing-page) > h1,
body:not(.landing-page) > h2,
body:not(.landing-page) > p,
body:not(.landing-page) > div,
body:not(.landing-page) > table,
body:not(.landing-page) > section,
body:not(.landing-page) > main {
    max-width: 1180px;
}

.page-products .page-shell {
    max-width: 1260px;
}

.page-intelligence,
.page-dashboard,
.page-products {
    overflow-x: hidden;
}

.page-products table {
    font-size: 12px;
}

.page-products td,
.page-products th {
    padding: 11px 12px;
}
/* Fix non-page-shell pages after sidebar layout */
body:not(.landing-page):not(.page-products) {
    padding-right: 34px;
}

body:not(.landing-page):not(.page-products) > h1,
body:not(.landing-page):not(.page-products) > h2,
body:not(.landing-page):not(.page-products) > h3,
body:not(.landing-page):not(.page-products) > p,
body:not(.landing-page):not(.page-products) > div,
body:not(.landing-page):not(.page-products) > table,
body:not(.landing-page):not(.page-products) > section {
    margin-left: 34px;
    max-width: 1180px;
}
/* ================================
   Rivalync UI Foundation V1
   Cards, KPIs, Tables, Typography
   ================================ */

body:not(.landing-page) {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #f3f6fb 100%);
}

body:not(.landing-page) h1 {
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: #0f172a;
}

body:not(.landing-page) h2 {
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -0.035em;
    color: #0f172a;
}

body:not(.landing-page) p {
    color: #475569;
}

/* Generic top-level cards and panels */
body:not(.landing-page) .stat-card,
body:not(.landing-page) .summary-card,
body:not(.landing-page) .executive-panel,
body:not(.landing-page) .retailer-card,
body:not(.landing-page) .comparison-card,
body:not(.landing-page) .intel-card,
body:not(.landing-page) .feedback-box {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

/* KPI cards */
body:not(.landing-page) .stat-card,
body:not(.landing-page) .summary-card {
    min-height: 112px;
    padding: 20px;
}

body:not(.landing-page) .stat-card strong,
body:not(.landing-page) .summary-card strong {
    font-size: 34px;
    letter-spacing: -0.04em;
    color: #0f172a;
}

body:not(.landing-page) .stat-card span,
body:not(.landing-page) .summary-card span {
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Executive dark intelligence panels */
body:not(.landing-page) .executive-panel.dark,
body:not(.landing-page) .executive-panel,
body:not(.landing-page) .signal-card-dark {
    border-radius: 24px;
}

body:not(.landing-page) .executive-panel.dark,
body:not(.landing-page) .signal-card-dark {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 35%),
        #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

/* Tables */
body:not(.landing-page) table {
    border-radius: 18px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    background: #ffffff;
}

body:not(.landing-page) th {
    background: #0b1220 !important;
    color: #f8fafc !important;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.02em;
    padding: 13px 14px;
}

body:not(.landing-page) td {
    border-bottom: 1px solid #e5e7eb;
    padding: 13px 14px;
    color: #0f172a;
}

body:not(.landing-page) tr:last-child td {
    border-bottom: none;
}

body:not(.landing-page) tr:hover td {
    background: #f8fafc;
}

/* Links */
body:not(.landing-page) a {
    color: #2563eb;
    font-weight: 750;
}

/* Buttons */
body:not(.landing-page) button,
body:not(.landing-page) .table-action-button,
body:not(.landing-page) .page-actions a {
    border-radius: 999px;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

/* Badges */
body:not(.landing-page) .green,
body:not(.landing-page) .red {
    font-weight: 850;
}

/* Section spacing */
body:not(.landing-page) section,
body:not(.landing-page) .table-section,
body:not(.landing-page) .intel-section {
    margin-top: 30px;
}

/* Inputs and selects */
body:not(.landing-page) input,
body:not(.landing-page) select,
body:not(.landing-page) textarea {
    border-radius: 12px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    padding: 10px 12px;
    outline: none;
}

body:not(.landing-page) input:focus,
body:not(.landing-page) select:focus,
body:not(.landing-page) textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
/* Rivalync Beta Badge */
.nav-brand-main {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.22);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-top: 4px;
}
/* Rivalync Beta Badge */
.nav-brand-main {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.22);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.35);
    padding: 3px 7px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
}
/* Dashboard Hero V2 */
.page-dashboard .dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.9fr);
    gap: 22px;
    align-items: stretch;
    margin-top: 8px;
    margin-bottom: 28px;
}

.page-dashboard .hero-left {
    border-radius: 28px;
    padding: 34px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 34%),
        linear-gradient(135deg, #0b1220 0%, #111827 100%);
    color: #ffffff;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.22);
}

.page-dashboard .hero-eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.page-dashboard .hero-left h1 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: 44px;
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.page-dashboard .hero-left p {
    max-width: 660px;
    margin: 16px 0 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.65;
}

.page-dashboard .hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.page-dashboard .hero-stat {
    border-radius: 22px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.page-dashboard .hero-stat strong {
    display: block;
    color: #0f172a;
    font-size: 38px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.page-dashboard .hero-stat span {
    display: block;
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (max-width: 1100px) {
    .page-dashboard .dashboard-hero {
        grid-template-columns: 1fr;
    }
}
.badge-blue {
    background: #2563eb;
    color: #ffffff;
}
/* ================================
   Global Section Spacing Fix
   Dashboard + Intelligence
   ================================ */

body:not(.landing-page) .executive-panel {
    padding: 28px !important;
}

body:not(.landing-page) .section-header {
    margin-bottom: 22px !important;
}

body:not(.landing-page) .section-header h2 {
    margin: 0 0 8px 0 !important;
}

body:not(.landing-page) .section-header p {
    margin: 0 !important;
    max-width: 760px;
    color: #64748b !important;
}

body:not(.landing-page) .signal-card-grid {
    margin-top: 4px !important;
}

body:not(.landing-page) .signal-card {
    padding: 22px !important;
}

body:not(.landing-page) .signal-card h3 {
    margin-top: 10px !important;
    margin-bottom: 12px !important;
}

body:not(.landing-page) .signal-card p {
    line-height: 1.65 !important;
}
/* Sidebar Navigation Icons */
.nav-links a {
    gap: 12px !important;
}

.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    height: 22px;
    font-size: 18px;
    line-height: 1;
    color: currentColor;
    opacity: 0.9;
}

.nav-links a span:last-child {
    display: inline-flex;
    align-items: center;
}
/* Sidebar SVG Icons */
.nav-icon {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
}

.nav-svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-links a {
    gap: 14px !important;
}

/* Retailers V2 - Collapsible Management Table */
.retailer-management-details {
    margin-top: 24px;
}

.retailer-management-summary {
    cursor: pointer;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 30px rgba(15,23,42,.06);
    list-style: none;
}

.retailer-management-summary::-webkit-details-marker {
    display: none;
}

.retailer-management-summary::before {
    content: "▼ ";
    margin-right: 6px;
}

.retailer-management-details[open] .retailer-management-summary::before {
    content: "▲ ";
}

/* Retailers V2 - KPI row */
.page-retailers .retailer-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 22px 0 28px !important;
}

.page-retailers .retailer-summary-grid .summary-card {
    min-height: 120px !important;
    padding: 20px !important;
}

@media (max-width: 1100px) {
    .page-retailers .retailer-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    .page-retailers .retailer-summary-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Retailers V2 - Health Board */
.retailer-health-board {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.retailer-health-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) 140px 110px 100px 150px;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.retailer-health-row:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
}

.retailer-health-main strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
}

.retailer-health-main span,
.retailer-health-metric span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
}

.retailer-health-metric strong {
    display: block;
    font-size: 16px;
    color: #0f172a;
}

.retailer-health-action {
    text-align: right;
    color: #2563eb;
    font-size: 13px;
    font-weight: 850;
}

@media (max-width: 1000px) {
    .retailer-health-row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .retailer-health-action {
        text-align: left;
    }
}

/* Dashboard V3 - Visualization Layer */
.dashboard-v3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin: 28px 0;
}

.dashboard-chart-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.dashboard-chart-card canvas {
    width: 100% !important;
    height: 280px !important;
}

@media (max-width: 1100px) {
    .dashboard-v3-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard V4 - Compact Executive Intelligence */
.dashboard-executive-summary {
    margin-top: 28px;
}

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

.executive-summary-tile {
    border-radius: 20px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 34%),
        #0b1220;
    color: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.executive-summary-tile h3 {
    margin: 10px 0 10px;
    color: #ffffff;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.executive-summary-tile p {
    color: #cbd5e1 !important;
    line-height: 1.55;
    margin-bottom: 16px;
}

.executive-summary-tile .signal-meta span {
    background: rgba(255,255,255,0.10);
    color: #e5e7eb;
}

@media (max-width: 1100px) {
    .executive-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard V4 - Competitive Activity Feed */
.competitive-feed {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.competitive-feed-row {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.feed-priority-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.dot-high {
    background: #dc2626;
}

.dot-medium {
    background: #d97706;
}

.dot-low {
    background: #2563eb;
}

.feed-main {
    min-width: 0;
}

.feed-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.feed-topline strong {
    color: #0f172a;
    font-size: 14px;
}

.feed-title {
    color: #111827;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.feed-context {
    color: #64748b;
    font-size: 13px;
}

.feed-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feed-badge-green {
    background: #dcfce7;
    color: #166534;
}

.feed-badge-yellow {
    background: #fef3c7;
    color: #92400e;
}

.feed-badge-red {
    background: #fee2e2;
    color: #991b1b;
}

.feed-action {
    white-space: nowrap;
    color: #334155;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 800px) {
    .competitive-feed-row {
        grid-template-columns: 12px 1fr;
    }

    .feed-action {
        grid-column: 2;
        width: fit-content;
    }
}

/* Dashboard V4 - Compact Hero */
.page-dashboard .dashboard-hero-compact {
    min-height: auto !important;
    padding: 22px 26px !important;
    gap: 18px !important;
}

.page-dashboard .dashboard-hero-compact .hero-left h1 {
    font-size: 34px !important;
    line-height: 1.05 !important;
    margin: 8px 0 10px !important;
    max-width: 520px;
}

.page-dashboard .dashboard-hero-compact .hero-left p {
    max-width: 560px;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.page-dashboard .hero-right-compact {
    gap: 12px !important;
}

.page-dashboard .hero-right-compact .hero-stat {
    min-height: 88px !important;
    padding: 16px !important;
}

.page-dashboard .hero-right-compact .hero-stat strong {
    font-size: 30px !important;
}

.page-dashboard .hero-right-compact .hero-stat span {
    font-size: 10px !important;
}

/* Dashboard V5 - Operational Intelligence Row */
.dashboard-v5-widget-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.dashboard-v5-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
    min-height: 230px;
}

.dashboard-v5-card-header h2 {
    margin: 0 0 6px;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.dashboard-v5-card-header p {
    margin: 0 0 18px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.pressure-list,
.lifecycle-list,
.recent-signal-list {
    display: grid;
    gap: 12px;
}

.pressure-row,
.lifecycle-row,
.recent-signal-row {
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 10px;
}

.pressure-row:last-child,
.lifecycle-row:last-child,
.recent-signal-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pressure-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.pressure-row strong,
.recent-signal-row strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 4px;
}

.pressure-row span,
.recent-signal-row span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.pressure-row em {
    font-style: normal;
    white-space: nowrap;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
}

.lifecycle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lifecycle-row span {
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
}

.lifecycle-row strong {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
    text-transform: capitalize;
}

@media (max-width: 1100px) {
    .dashboard-v5-widget-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard V6 - Premium Dark Intelligence Cards */
.executive-summary-tile {
    border-radius: 18px !important;
    padding: 20px !important;
    background: #08111f !important;
    border: 1px solid rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14) !important;
}

.executive-summary-tile h3 {
    font-size: 20px !important;
    margin: 8px 0 8px !important;
}

.executive-summary-tile p {
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin-bottom: 12px !important;
}

.executive-summary-tile .eyebrow {
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
}

.executive-summary-tile .signal-meta {
    margin-top: 10px !important;
    gap: 6px !important;
}

.executive-summary-tile .signal-meta span {
    font-size: 10px !important;
    padding: 4px 8px !important;
}
/* ==========================================
   LANDING PAGE V2
   ========================================== */

.landing-v2 {
    background: #f8fafc;
    color: #0f172a;
}

.landing-v2-nav {
    max-width: 1280px;
    margin: 24px auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-v2-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-v2-logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg,#7c3aed,#6366f1);
    color: white;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.landing-v2-brand-name {
    font-size: 18px;
    font-weight: 800;
}

.landing-v2-tagline {
    font-size: 13px;
    color: #64748b;
}

.landing-v2-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.landing-v2-links a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

.landing-v2-login {
    background: #0f172a;
    color: white !important;
    padding: 12px 24px;
    border-radius: 12px;
}

.landing-v2-main {
    max-width: 1280px;
    margin: auto;
    padding: 0 32px 80px;
}

.landing-v2-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 80px;
}

.landing-v2-eyebrow {
    display: inline-block;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 12px;
    font-weight: 800;
    padding: 8px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.landing-v2-hero h1 {
    font-size: 72px;
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.05em;
}

.landing-v2-hero h1 span {
    color: #6d28d9;
    display: block;
}

.landing-v2-hero p {
    margin-top: 24px;
    font-size: 22px;
    line-height: 1.7;
    color: #475569;
}

.landing-v2-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.landing-v2-primary {
    background: linear-gradient(135deg,#7c3aed,#6366f1);
    color: white;
    text-decoration: none;
    padding: 16px 26px;
    border-radius: 14px;
    font-weight: 700;
}

.landing-v2-secondary {
    background: white;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    text-decoration: none;
    padding: 16px 26px;
    border-radius: 14px;
    font-weight: 700;
}

.landing-v2-trust-row {
    margin-top: 24px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 14px;
}

.landing-v2-demo-card {
    background: radial-gradient(circle at top right,#4f46e5,#020617);
    color: white;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(99,102,241,.25);
}

.demo-card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
}

.demo-card-top span,
.demo-card-top strong {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
}

.demo-card-top span {
    background: rgba(139,92,246,.25);
}

.demo-card-top strong {
    background: rgba(34,197,94,.20);
    color: #4ade80;
}

.demo-metrics {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    margin-top: 30px;
}

.demo-metrics div {
    background: rgba(255,255,255,.06);
    padding: 18px;
    border-radius: 16px;
}

.demo-metrics strong {
    display: block;
    font-size: 34px;
}

.metric-red { color:#fb7185; }
.metric-purple { color:#a78bfa; }
.metric-green { color:#4ade80; }

.demo-metrics span {
    display: block;
    margin-top: 8px;
}

.demo-metrics em {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-style: normal;
    font-size: 12px;
}

.mini-chart-card {
    margin-top: 28px;
    background: rgba(255,255,255,.04);
    border-radius: 16px;
    padding: 16px;
}

.mini-chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fake-chart {
    height: 130px;
}

.fake-chart svg {
    width: 100%;
    height: 100%;
}

.fake-chart polyline {
    fill: none;
    stroke: #8b5cf6;
    stroke-width: 4;
}

.chart-muted {
    stroke: #94a3b8 !important;
    stroke-dasharray: 5;
}

.landing-v2-panel {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 36px;
    margin-bottom: 28px;
}

.landing-v2-panel h2 {
    margin-top: 0;
    font-size: 40px;
}

.landing-v2-panel p {
    color: #64748b;
}

.landing-v2-problem-grid,
.landing-v2-feature-grid,
.landing-v2-signal-grid,
.landing-v2-steps {
    display: grid;
    gap: 20px;
}

.landing-v2-problem-grid {
    grid-template-columns: repeat(4,1fr);
    margin-top: 28px;
}

.landing-v2-feature-grid {
    grid-template-columns: repeat(4,1fr);
    margin-top: 28px;
}

.landing-v2-feature-grid div,
.landing-v2-problem-grid div,
.signal-example {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
}

.landing-v2-section-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-v2-signal-grid {
    grid-template-columns: repeat(3,1fr);
    margin-top: 28px;
}

.signal-red {
    background: #fff7f7;
}

.signal-yellow {
    background: #fffdf5;
}

.signal-example-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.signal-example-metrics strong {
    display: block;
    font-size: 24px;
}

.signal-example-metrics em {
    font-style: normal;
    font-size: 12px;
    color: #64748b;
}

.landing-v2-how {
    margin-top: 50px;
}

.landing-v2-steps {
    grid-template-columns: repeat(3,1fr);
    margin-top: 30px;
}

.landing-v2-steps div {
    background: white;
    border-radius: 22px;
    border: 1px solid #e2e8f0;
    padding: 28px;
}

.landing-v2-steps span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #7c3aed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.landing-v2-final-cta {
    margin-top: 60px;
    background: linear-gradient(135deg,#7c3aed,#4338ca);
    color: white;
    border-radius: 24px;
    padding: 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-v2-final-cta a {
    background: white;
    color: #0f172a;
    text-decoration: none;
    padding: 16px 26px;
    border-radius: 14px;
    font-weight: 700;
}

.landing-v2-footer {
    background: #020617;
    color: white;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Landing V2 visual refinement */
.landing-v2-demo-card {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.95), transparent 42%),
        linear-gradient(145deg, #2e1065 0%, #312e81 45%, #020617 100%) !important;
    box-shadow: 0 36px 90px rgba(124, 58, 237, 0.32) !important;
}

.landing-v2-hero {
    grid-template-columns: 1fr 0.92fr !important;
    gap: 48px !important;
}

.landing-v2-hero h1 {
    font-size: 66px !important;
}

.landing-v2-panel {
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.05) !important;
}

.landing-v2-problem-grid div,
.landing-v2-feature-grid div,
.signal-example,
.landing-v2-steps div {
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.04) !important;
}

.signal-example {
    padding: 26px !important;
}

.signal-green {
    background: #f4fdf7;
}

.signal-example-summary {
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 12px;
}
/* Early Access Form */

.landing-v2-form-wrapper {
    width: 100%;
    max-width: 700px;
}

.landing-v2-lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.landing-v2-lead-form input,
.landing-v2-lead-form textarea {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
}

.landing-v2-lead-form textarea {
    resize: vertical;
}

.landing-v2-lead-form button {
    border: none;
    background: white;
    color: #111827;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Landing V2 polish pass - hero glow, darker card, cleaner cards */

.landing-v2-hero {
    position: relative;
}

.landing-v2-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: 40px;
    width: 520px;
    height: 520px;
    background:
        radial-gradient(circle, rgba(99, 102, 241, 0.34) 0%, rgba(124, 58, 237, 0.22) 35%, rgba(255,255,255,0) 70%);
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

.landing-v2-hero-copy,
.landing-v2-demo-card {
    position: relative;
    z-index: 1;
}

.landing-v2-demo-card {
    background:
        radial-gradient(circle at 68% 0%, rgba(109, 40, 217, 0.65), transparent 36%),
        linear-gradient(180deg, #111827 0%, #0b1020 52%, #020617 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 36px 90px rgba(79, 70, 229, 0.32),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.landing-v2-demo-card h2 {
    color: #ffffff;
}

.landing-v2-demo-card p {
    color: #cbd5e1;
}

.mini-chart-card {
    background: rgba(15, 23, 42, 0.62) !important;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.fake-chart polyline {
    stroke-width: 5 !important;
    filter: drop-shadow(0 0 7px rgba(139, 92, 246, 0.65));
}

.chart-muted {
    stroke-width: 4 !important;
    opacity: 0.75;
}

.signal-example {
    min-height: 235px;
    display: flex;
    flex-direction: column;
}

.signal-example > span {
    align-self: flex-start;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
}

.signal-example h3 {
    margin-top: 12px;
    margin-bottom: 8px;
}

.signal-example p {
    min-height: 38px;
}

.signal-example-summary {
    min-height: 66px;
}

.signal-example-metrics {
    margin-top: auto !important;
    align-items: flex-end;
}

.landing-v2-problem-grid div span,
.landing-v2-feature-grid div span {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f3e8ff;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 18px;
}

.landing-v2-problem-grid div span {
    background: #ffe4e6;
    color: #fb7185;
}


/* Landing V2 card text alignment fix */

.landing-v2-problem-grid div,
.landing-v2-feature-grid div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.landing-v2-problem-grid div strong,
.landing-v2-feature-grid div h3 {
    display: block;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.landing-v2-problem-grid div p,
.landing-v2-feature-grid div p {
    margin: 0;
    line-height: 1.4;
}

.landing-v2-problem-grid div span,
.landing-v2-feature-grid div span {
    flex-shrink: 0;
}


/* Landing V2 Mobile Responsive Fix */

@media (max-width: 768px) {
    .landing-v2-nav {
        padding: 18px;
        margin: 12px auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .landing-v2-links {
        width: 100%;
        gap: 14px;
        flex-wrap: wrap;
    }

    .landing-v2-main {
        padding: 0 16px 50px;
    }

    .landing-v2-hero {
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        margin-top: 28px;
        margin-bottom: 42px;
    }

    .landing-v2-hero h1 {
        font-size: 42px !important;
        line-height: 1.08;
    }

    .landing-v2-hero p {
        font-size: 16px;
    }

    .landing-v2-actions {
        flex-direction: column;
    }

    .landing-v2-primary,
    .landing-v2-secondary {
        text-align: center;
    }

    .landing-v2-demo-card {
        padding: 22px;
        border-radius: 22px;
    }

    .demo-metrics {
        grid-template-columns: 1fr;
    }

    .landing-v2-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .landing-v2-panel h2 {
        font-size: 28px;
    }

    .landing-v2-problem-grid,
    .landing-v2-feature-grid,
    .landing-v2-signal-grid,
    .landing-v2-steps {
        grid-template-columns: 1fr !important;
    }

    .landing-v2-section-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .landing-v2-final-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px;
    }

    .landing-v2-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}


/* Landing V2 Final Polish Pass */

/* Hero glow and darker SaaS demo card */
.landing-v2-hero {
    position: relative;
}

.landing-v2-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    top: 25px;
    width: 560px;
    height: 560px;
    background:
        radial-gradient(circle, rgba(99, 102, 241, 0.34) 0%, rgba(124, 58, 237, 0.24) 34%, rgba(255,255,255,0) 72%);
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.landing-v2-hero-copy,
.landing-v2-demo-card {
    position: relative;
    z-index: 1;
}

.landing-v2-demo-card {
    background:
        radial-gradient(circle at 72% 0%, rgba(124, 58, 237, 0.68), transparent 34%),
        linear-gradient(180deg, #101827 0%, #0b1020 52%, #020617 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow:
        0 36px 90px rgba(79, 70, 229, 0.34),
        inset 0 1px 0 rgba(255,255,255,0.08) !important;
}

.landing-v2-demo-card h2 {
    color: #ffffff;
}

.landing-v2-demo-card p {
    color: #cbd5e1;
}

.mini-chart-card {
    background: rgba(15, 23, 42, 0.62) !important;
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.fake-chart polyline {
    stroke-width: 5 !important;
    filter: drop-shadow(0 0 7px rgba(139, 92, 246, 0.65));
}

.chart-muted {
    stroke-width: 4 !important;
    opacity: 0.75;
}

/* Problem and feature card alignment */
.landing-v2-problem-grid div,
.landing-v2-feature-grid div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.landing-v2-problem-grid div span,
.landing-v2-feature-grid div span {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #f3e8ff;
    color: #7c3aed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    font-weight: 900;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.landing-v2-problem-grid div span {
    background: #ffe4e6;
    color: #fb7185;
}

.landing-v2-problem-grid div strong,
.landing-v2-feature-grid div h3 {
    display: block;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.landing-v2-problem-grid div p,
.landing-v2-feature-grid div p {
    margin: 0;
    line-height: 1.45;
}

/* Recent signal card alignment */
.signal-example {
    min-height: 235px;
    display: flex;
    flex-direction: column;
}

.signal-example > span {
    align-self: flex-start;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
}

.signal-example h3 {
    margin-top: 12px;
    margin-bottom: 8px;
}

.signal-example p {
    min-height: 38px;
}

.signal-example-summary {
    min-height: 66px;
}

.signal-example-metrics {
    margin-top: auto !important;
    align-items: flex-end;
}

/* Mobile responsive landing */
@media (max-width: 768px) {
    .landing-v2-nav {
        padding: 18px;
        margin: 12px auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .landing-v2-links {
        width: 100%;
        gap: 14px;
        flex-wrap: wrap;
    }

    .landing-v2-main {
        padding: 0 16px 50px;
    }

    .landing-v2-hero {
        grid-template-columns: 1fr !important;
        gap: 34px !important;
        margin-top: 28px;
        margin-bottom: 42px;
    }

    .landing-v2-hero::after {
        right: -120px;
        top: 260px;
        width: 420px;
        height: 420px;
    }

    .landing-v2-hero h1 {
        font-size: 42px !important;
        line-height: 1.08;
    }

    .landing-v2-hero p {
        font-size: 16px;
    }

    .landing-v2-actions {
        flex-direction: column;
    }

    .landing-v2-primary,
    .landing-v2-secondary {
        text-align: center;
    }

    .landing-v2-demo-card {
        padding: 22px;
        border-radius: 22px;
    }

    .demo-metrics {
        grid-template-columns: 1fr;
    }

    .landing-v2-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .landing-v2-panel h2 {
        font-size: 28px;
    }

    .landing-v2-problem-grid,
    .landing-v2-feature-grid,
    .landing-v2-signal-grid,
    .landing-v2-steps {
        grid-template-columns: 1fr !important;
    }

    .landing-v2-section-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .landing-v2-final-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 28px;
    }

    .landing-v2-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }
}


/* Rivalync logo image */

.landing-v2-logo-img {
    height: 46px;
    width: auto;
    border-radius: 12px;
    object-fit: contain;
}


/* Final Rivalync logo sizing */
.landing-v2-logo-img {
    height: 34px !important;
    width: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    display: block;
}

.landing-v2-footer .landing-v2-logo-img {
    height: 36px !important;
}


/* Rivalync logo final placement */

.landing-v2-brand-header .landing-v2-logo-img {
    width: 210px !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain !important;
}

.landing-v2-footer-logo-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
}

.landing-v2-footer-logo-box .landing-v2-logo-img {
    width: 180px !important;
    height: auto !important;
    max-height: 48px !important;
    object-fit: contain !important;
}


/* Final logo refinement */

.landing-v2-brand-header .landing-v2-logo-img {
    width: 185px !important;
    height: auto !important;
    max-height: 46px !important;
}

.landing-v2-footer-logo-box {
    padding: 6px 10px !important;
    border-radius: 10px !important;
}

.landing-v2-footer-logo-box .landing-v2-logo-img {
    width: 145px !important;
    max-height: 34px !important;
}

.landing-v2-footer {
    min-height: 78px;
}



/* Revert uploaded logo experiment */
.landing-v2-logo-img,
.landing-v2-footer-logo-box {
    display: none !important;
}

.landing-v2-logo-mark {
    display: inline-flex !important;
}


/* Landing V2 mobile cleanup override */

@media (max-width: 768px) {
    body.landing-page {
        overflow-x: hidden;
    }

    .landing-v2-nav {
        width: calc(100% - 24px) !important;
        margin: 12px auto 0 !important;
        padding: 14px 16px !important;
        border-radius: 18px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    .landing-v2-logo-mark {
        width: 34px !important;
        height: 34px !important;
        font-size: 18px !important;
    }

    .landing-v2-brand-name {
        font-size: 20px !important;
        line-height: 1 !important;
    }

    .landing-v2-tagline {
        font-size: 10px !important;
        white-space: nowrap;
    }

    .landing-v2-links {
        display: none !important;
    }

    .landing-v2-main {
        padding: 0 14px 42px !important;
    }

    .landing-v2-hero {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        margin-top: 36px !important;
        margin-bottom: 34px !important;
    }

    .landing-v2-hero-copy {
        text-align: left !important;
    }

    .landing-v2-eyebrow {
        font-size: 11px !important;
        padding: 7px 10px !important;
    }

    .landing-v2-hero h1 {
        font-size: 38px !important;
        line-height: 1.08 !important;
        letter-spacing: -1.2px !important;
        margin-top: 18px !important;
    }

    .landing-v2-hero p {
        font-size: 16px !important;
        line-height: 1.6 !important;
        max-width: 100% !important;
    }

    .landing-v2-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-top: 24px !important;
    }

    .landing-v2-primary,
    .landing-v2-secondary {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 15px 16px !important;
    }

    .landing-v2-trust-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        margin-top: 18px !important;
        font-size: 12px !important;
    }

    .landing-v2-demo-card {
        width: 100% !important;
        padding: 22px !important;
        border-radius: 24px !important;
    }

    .landing-v2-demo-card h2 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    .landing-v2-demo-card p {
        font-size: 15px !important;
        line-height: 1.55 !important;
    }

    .demo-card-top {
        gap: 10px !important;
    }

    .demo-metrics {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .mini-chart-card {
        margin-top: 16px !important;
    }

    .landing-v2-panel,
    .landing-v2-how,
    .landing-v2-final-cta {
        width: 100% !important;
        padding: 22px !important;
        border-radius: 24px !important;
        margin-bottom: 24px !important;
    }

    .landing-v2-panel h2,
    .landing-v2-how h2,
    .landing-v2-final-cta h2 {
        font-size: 26px !important;
        line-height: 1.15 !important;
    }

    .landing-v2-problem-grid,
    .landing-v2-feature-grid,
    .landing-v2-signal-grid,
    .landing-v2-steps {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .landing-v2-problem-grid div,
    .landing-v2-feature-grid div,
    .landing-v2-steps div,
    .signal-example {
        min-height: auto !important;
        padding: 20px !important;
    }

    .signal-example-summary {
        min-height: auto !important;
    }

    .signal-example p {
        min-height: auto !important;
    }

    .signal-example-metrics {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .signal-example-metrics strong {
        font-size: 20px !important;
    }

    .landing-v2-section-top {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .landing-v2-lead-form input,
    .landing-v2-lead-form textarea {
        font-size: 14px !important;
        padding: 14px !important;
    }

    .landing-v2-footer {
        padding: 24px 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }
}


/* Emergency mobile overflow fix */

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

* {
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .landing-v2-main,
    .landing-v2-hero,
    .landing-v2-hero-copy,
    .landing-v2-demo-card,
    .landing-v2-panel,
    .landing-v2-how,
    .landing-v2-final-cta,
    .landing-v2-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .landing-v2-main {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .landing-v2-demo-card,
    .landing-v2-panel,
    .landing-v2-how,
    .landing-v2-final-cta {
        overflow: hidden !important;
    }

    .landing-v2-final-cta {
        border-radius: 24px !important;
        padding: 28px 20px !important;
    }

    .landing-v2-lead-form,
    .landing-v2-lead-form input,
    .landing-v2-lead-form textarea,
    .landing-v2-lead-form button {
        width: 100% !important;
        max-width: 100% !important;
    }

    .landing-v2-footer {
        margin-top: 32px !important;
        padding: 28px 20px !important;
    }

    .landing-v2-hero h1 {
        font-size: 34px !important;
    }

    .landing-v2-demo-card {
        padding: 20px !important;
    }

    .demo-card-top {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}



/* CTA final desktop fix */

@media (min-width: 769px) {
    .landing-v2-final-cta {
        display: grid !important;
        grid-template-columns: 0.9fr 1.1fr !important;
        gap: 64px !important;
        align-items: center !important;
        padding: 64px 72px !important;
    }

    .landing-v2-form-wrapper {
        max-width: none !important;
        width: 100% !important;
        display: contents !important;
    }

    .landing-v2-form-wrapper h2,
    .landing-v2-form-wrapper p {
        grid-column: 1 !important;
    }

    .landing-v2-form-wrapper h2 {
        font-size: 34px !important;
        line-height: 1.12 !important;
        margin: 0 0 18px 0 !important;
        max-width: 420px !important;
    }

    .landing-v2-form-wrapper p {
        font-size: 16px !important;
        line-height: 1.55 !important;
        max-width: 460px !important;
        margin: 0 !important;
    }

    .landing-v2-lead-form {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        width: 100% !important;
        max-width: 620px !important;
        margin: 0 !important;
        justify-self: end !important;
    }

    .landing-v2-lead-form input,
    .landing-v2-lead-form textarea,
    .landing-v2-lead-form button {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* CTA final spacing refinement */

@media (min-width: 769px) {
    .landing-v2-final-cta {
        min-height: auto !important;
        padding-top: 52px !important;
        padding-bottom: 52px !important;
        margin-bottom: 56px !important;
    }

    .landing-v2-form-wrapper h2 {
        margin-bottom: 16px !important;
    }

    .landing-v2-form-wrapper p {
        align-self: start !important;
        margin-top: -150px !important;
    }

    .landing-v2-lead-form {
        align-self: center !important;
    }
}


/* Legal pages */

.legal-page {
    max-width: 820px;
    margin: 80px auto;
    padding: 0 24px;
    color: #0f172a;
}

.legal-page a {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 700;
}

.legal-page h1 {
    font-size: 44px;
    margin-top: 32px;
}

.legal-page h2 {
    margin-top: 34px;
    font-size: 24px;
}

.legal-page p {
    color: #475569;
    line-height: 1.7;
}

.landing-v2-footer-links {
    display: flex;
    gap: 18px;
}

.landing-v2-footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
}

.landing-v2-footer-links a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {
    .landing-v2-footer-links {
        flex-direction: column;
        gap: 10px;
    }
}


/* Features Page */

.features-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px 90px;
}

.features-hero {
    max-width: 860px;
    padding: 80px 0 70px;
}

.features-hero h1 {
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin: 18px 0 24px;
    color: #0f172a;
}

.features-hero p {
    font-size: 21px;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 34px;
}

.features-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 42px;
    margin-bottom: 30px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.05);
}

.features-section h2 {
    font-size: 38px;
    margin: 0 0 30px;
    letter-spacing: -0.03em;
}

.features-dark {
    background: linear-gradient(145deg, #111827, #020617);
    color: #ffffff;
    border: none;
}

.features-dark p {
    color: #cbd5e1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.features-grid div {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    background: rgba(255,255,255,0.78);
}

.features-dark .features-grid div {
    background: rgba(255,255,255,0.06);
    border-color: rgba(148, 163, 184, 0.18);
}

.features-grid span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    background: #ede9fe;
    color: #7c3aed;
    font-weight: 900;
    margin-bottom: 18px;
}

.features-grid h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.features-grid p {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.features-dark .features-grid p {
    color: #cbd5e1;
}

.features-outcome-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.features-outcome-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 24px;
    border-radius: 18px;
    font-weight: 800;
    color: #0f172a;
}

.features-cta {
    background: linear-gradient(135deg,#7c3aed,#4338ca);
    color: #ffffff;
    border-radius: 28px;
    padding: 54px;
    text-align: center;
}

.features-cta h2 {
    font-size: 40px;
    margin: 0 0 14px;
}

.features-cta p {
    color: #ddd6fe;
    margin-bottom: 28px;
}

@media (max-width: 768px) {
    .features-page {
        padding: 24px 14px 50px;
    }

    .features-hero {
        padding: 46px 0 34px;
    }

    .features-hero h1 {
        font-size: 38px;
    }

    .features-hero p {
        font-size: 16px;
    }

    .features-section {
        padding: 22px;
        border-radius: 24px;
    }

    .features-section h2 {
        font-size: 28px;
    }

    .features-grid,
    .features-outcome-grid {
        grid-template-columns: 1fr;
    }

    .features-cta {
        padding: 32px 22px;
        text-align: left;
    }

    .features-cta h2 {
        font-size: 30px;
    }
}


/* Features page refinement */

.features-dark {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
}

.features-dark .features-grid {
    margin-top: 20px !important;
}

.features-cta {
    padding: 56px 42px !important;
}

.features-cta h2 {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.features-cta p {
    font-size: 16px !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
}

.features-cta .landing-v2-primary {
    background: #ffffff !important;
    color: #4f46e5 !important;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18) !important;
}

@media (max-width: 768px) {
    .features-dark {
        padding: 26px 22px !important;
    }

    .features-cta {
        padding: 34px 22px !important;
    }
}


/* Demo Page */

.demo-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 32px 90px;
}

.demo-hero {
    max-width: 940px;
    padding: 80px 0 70px;
}

.demo-hero h1 {
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin: 18px 0 24px;
    color: #0f172a;
}

.demo-hero p {
    font-size: 21px;
    line-height: 1.65;
    color: #475569;
    max-width: 780px;
}

.demo-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    padding: 42px;
    margin-bottom: 30px;
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.05);
}

.demo-dark-panel {
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.28), transparent 38%),
        linear-gradient(145deg, #111827, #020617);
    color: #ffffff;
    border: none;
}

.demo-panel-copy span {
    display: inline-flex;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}

.demo-dark-panel .demo-panel-copy span {
    background: rgba(139, 92, 246, 0.22);
    color: #c4b5fd;
}

.demo-panel-copy h2 {
    font-size: 38px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.demo-panel-copy p {
    color: #64748b;
    line-height: 1.65;
    font-size: 16px;
}

.demo-dark-panel .demo-panel-copy p {
    color: #cbd5e1;
}

.demo-signal-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.22);
}

.demo-signal-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.demo-signal-top span,
.demo-signal-top strong {
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
}

.demo-signal-top span {
    background: rgba(244, 63, 94, 0.18);
    color: #fb7185;
}

.demo-signal-top strong {
    background: rgba(34, 197, 94, 0.16);
    color: #4ade80;
}

.demo-signal-card h3 {
    font-size: 28px;
    margin: 0 0 14px;
}

.demo-signal-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

.demo-metric-grid,
.demo-inventory-grid,
.demo-health-grid {
    display: grid;
    gap: 16px;
}

.demo-metric-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 24px;
}

.demo-metric-grid div {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 18px;
}

.demo-metric-grid strong {
    display: block;
    font-size: 28px;
    color: #ffffff;
}

.demo-metric-grid span {
    color: #94a3b8;
    font-size: 13px;
}

.demo-lifecycle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.demo-lifecycle-grid div,
.demo-inventory-grid div,
.demo-health-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
}

.demo-lifecycle-grid span {
    display: inline-flex;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 14px;
}

.demo-lifecycle-grid strong {
    display: block;
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 8px;
}

.demo-lifecycle-grid p {
    margin: 0;
    color: #64748b;
}

.demo-inventory-grid {
    grid-template-columns: repeat(3, 1fr);
}

.demo-inventory-grid strong {
    display: block;
    font-size: 34px;
    color: #7c3aed;
}

.demo-inventory-grid span {
    display: block;
    font-weight: 900;
    color: #0f172a;
    margin-top: 6px;
}

.demo-inventory-grid p {
    color: #64748b;
    margin-bottom: 0;
}

.demo-health-grid {
    grid-template-columns: repeat(3, 1fr);
}

.demo-health-grid div {
    background: rgba(255,255,255,0.08);
    border-color: rgba(148, 163, 184, 0.18);
}

.demo-health-grid strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
}

.demo-health-grid span {
    color: #cbd5e1;
    display: block;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .demo-page {
        padding: 24px 14px 50px;
    }

    .demo-hero {
        padding: 46px 0 34px;
    }

    .demo-hero h1 {
        font-size: 38px;
    }

    .demo-hero p {
        font-size: 16px;
    }

    .demo-panel {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 24px;
        gap: 24px;
    }

    .demo-panel-copy h2 {
        font-size: 28px;
    }

    .demo-signal-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-metric-grid,
    .demo-lifecycle-grid,
    .demo-inventory-grid,
    .demo-health-grid {
        grid-template-columns: 1fr;
    }

    .demo-signal-card {
        padding: 22px;
    }

    .demo-signal-card h3 {
        font-size: 23px;
    }
}


/* Dashboard V6: Attention Panel */

.attention-panel {
    margin: 28px auto;
}

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

.attention-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.attention-card-header h3 {
    margin: 6px 0 0;
    font-size: 20px;
    color: #0f172a;
}

.attention-card-header strong {
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.attention-card > p {
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
    min-height: 58px;
}

.attention-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.attention-metrics span {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 9px;
}

.recommended-action {
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
}

.recommended-action span {
    display: block;
    color: #2563eb;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    margin-bottom: 6px;
}

.recommended-action p {
    margin: 0;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1200px) {
    .attention-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .attention-list {
        grid-template-columns: 1fr;
    }
}


.attention-extra.hidden {
    display: none;
}

.attention-toggle {
    display: block;
    margin: 22px auto 4px;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.attention-toggle:hover {
    transform: translateY(-1px);
}


.attention-list.attention-list-collapsed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.attention-list.attention-list-expanded {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}


/* Dashboard V6: Retail Network Overview */

.network-overview-panel {
    margin: 28px auto;
}

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

.network-overview-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.network-overview-card strong {
    display: block;
    font-size: 30px;
    color: #0f172a;
    margin-bottom: 8px;
}

.network-overview-card span {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .network-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .network-overview-grid {
        grid-template-columns: 1fr;
    }
}


.dashboard-charts-secondary {
    margin-top: 28px;
}


.coverage-summary-card {
    max-width: 760px;
}

.coverage-retailer-list {
    margin: 18px 0;
    display: grid;
    gap: 10px;
}

.coverage-retailer-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(241, 245, 249, 0.8);
}

.coverage-retailer-row strong {
    color: #0f172a;
}

.coverage-retailer-row span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.coverage-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0 4px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.coverage-toggle-btn:hover {
    opacity: 0.92;
}

.coverage-retailer-list-collapsed {
    display: none;
}

.health-matrix-toggle-btn {
    margin-bottom: 18px;
}

.coverage-retailer-list-collapsed {
    display: none;
}

.health-matrix-more-note {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.health-matrix-expand-footer {
    margin-top: 16px;
}

.health-matrix-expand-footer .coverage-toggle-btn {
    margin-top: 10px;
}

.page-alerts .dashboard-v5-widget-grid:first-of-type {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.page-alerts .dashboard-v5-widget-grid:first-of-type .dashboard-v5-card {
    min-height: 110px;
    padding: 24px;
}

.page-alerts .dashboard-v5-widget-grid:first-of-type .dashboard-v5-card h2 {
    font-size: 32px;
    margin-bottom: 6px;
}

.page-alerts .dashboard-v5-widget-grid:first-of-type .dashboard-v5-card p {
    margin: 0;
}

.page-alerts .dashboard-v5-widget-grid:nth-of-type(2) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.alert-event-row {
    align-items: flex-start;
}

.affected-sku-details {
    margin-top: 10px;
}

.affected-sku-details summary {
    cursor: pointer;
    color: #2563eb;
    font-weight: 800;
    font-size: 13px;
}

.affected-sku-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.affected-sku-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(241, 245, 249, 0.9);
}

.affected-sku-row strong {
    font-size: 12px;
    color: #0f172a;
}

.affected-sku-row a {
    font-size: 12px;
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
}

/* Command Center V3 polish */
.briefing-card .briefing-item {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.briefing-card .briefing-item span {
    color: #64748b !important;
}

.briefing-card .briefing-item p {
    color: #334155 !important;
}

.command-kpi {
    min-height: 88px;
    transition: transform .15s ease, box-shadow .15s ease;
}

.command-kpi:hover,
.exec-move-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.exec-move-card {
    padding: 16px !important;
}

.move-title h3 {
    font-size: 26px !important;
}

.move-title p {
    max-width: 680px;
}

.impact-score {
    font-size: 36px !important;
}

.impact-bar {
    height: 14px !important;
    width: 220px !important;
}

.move-action {
    padding: 12px !important;
}

.move-meta {
    gap: 8px !important;
}

.meta-box {
    padding: 9px !important;
}

.meta-box strong {
    font-size: 16px;
}

.pill-critical {
    background: #dc2626 !important;
    color: #ffffff !important;
}

.pill-major {
    background: #f97316 !important;
    color: #ffffff !important;
}

.pill-moderate {
    background: #2563eb !important;
    color: #ffffff !important;
}

.pill-high {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.move-details {
    font-size: 14px;
}


/* Command Center recommended actions */
.recommended-actions-section {
    border: 1px solid #dbeafe !important;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.action-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.action-card h3 {
    margin: 10px 0 8px;
    font-size: 20px;
    color: #0f172a;
}

.action-reason {
    color: #334155;
    line-height: 1.45;
    margin-bottom: 14px;
}

.action-label {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    padding: 6px 10px;
    border-radius: 999px;
    text-transform: uppercase;
}

.action-card.critical .action-label {
    background: #fee2e2;
    color: #991b1b;
}

.action-card.opportunity .action-label {
    background: #dcfce7;
    color: #166534;
}

.action-card.monitor .action-label {
    background: #dbeafe;
    color: #1d4ed8;
}

.action-next {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
}

.action-next strong {
    display: block;
    margin-bottom: 5px;
    color: #0f172a;
}

.action-next p {
    margin: 0;
    color: #334155;
    line-height: 1.45;
}

.impact-chip {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}


/* Command Center V3: market brief and compact actions */
.briefing-card h2 {
    margin-top: 4px;
    margin-bottom: 16px;
}

.recommended-actions-section .move-section-header {
    margin-bottom: 10px;
}

.action-card {
    padding: 14px !important;
}

.action-card h3 {
    font-size: 17px !important;
    margin: 8px 0 6px !important;
}

.action-reason {
    font-size: 13px;
    margin-bottom: 8px !important;
}

.impact-chip {
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}


/* Command Center: embedded market brief KPIs */
.briefing-kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.briefing-kpi-strip div {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 14px;
    padding: 14px;
}

.briefing-kpi-strip strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: #ffffff;
}

.briefing-kpi-strip span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

@media (max-width: 900px) {
    .briefing-kpi-strip {
        grid-template-columns: 1fr 1fr;
    }
}


/* Command Center: Market Direction */
.market-direction-panel {
    border-color: #c7d2fe !important;
}

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

.direction-card {
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.direction-card span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 8px;
}

.direction-card strong {
    display: block;
    font-size: 22px;
    color: #0f172a;
}

.threat-direction {
    background: #fff7ed;
}

.opportunity-direction {
    background: #f0fdf4;
}

.volatility-direction {
    background: #eff6ff;
}

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


/* Command Center: What's New Since Last Scan */
.changes-panel {
    border-color: #bfdbfe !important;
}

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

.change-row {
    display: grid;
    grid-template-columns: 42px 1fr 70px;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
}

.change-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #0f172a;
    color: #ffffff;
    font-weight: 900;
}

.change-row h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #0f172a;
}

.change-row p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
}

.change-row span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #64748b;
}

.change-row > strong {
    text-align: right;
    color: #0f172a;
}

@media (max-width: 900px) {
    .change-row {
        grid-template-columns: 34px 1fr;
    }

    .change-row > strong {
        grid-column: 2;
        text-align: left;
    }
}


/* Command Center: clean change feed */
.clean-change-row {
    grid-template-columns: 1fr 82px !important;
    align-items: start !important;
}

.change-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}

.change-worse {
    background: #ffedd5;
    color: #9a3412;
}

.change-better {
    background: #dbeafe;
    color: #1d4ed8;
}

.change-new {
    background: #dcfce7;
    color: #166534;
}

.change-stable {
    background: #e2e8f0;
    color: #334155;
}

.change-metric {
    font-weight: 700;
}

.change-impact {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 9px;
    text-align: center;
}

.change-impact span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
    margin-bottom: 3px;
}

.change-impact strong {
    color: #0f172a;
    font-size: 14px;
}


/* Rivalync Daily Brief */
.daily-brief-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 24px 52px rgba(15,23,42,.22);
    margin-bottom: 18px;
}

.daily-brief-header h2 {
    margin: 4px 0 8px;
    font-size: 32px;
    line-height: 1.1;
}

.daily-brief-header p {
    margin: 0;
    color: rgba(255,255,255,.76);
    max-width: 820px;
}

.daily-brief-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.daily-brief-block {
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    padding: 16px;
}

.daily-brief-block span,
.daily-priority-list span,
.daily-brief-kpis span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 6px;
}

.daily-brief-block strong {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.daily-brief-block p {
    margin: 0;
    color: #334155;
    line-height: 1.4;
}

.daily-priority-list {
    margin-top: 14px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    padding: 16px;
}

.daily-priority-list span {
    color: rgba(255,255,255,.72);
}

.daily-priority-list ol {
    margin: 8px 0 0;
    padding-left: 22px;
}

.daily-priority-list li {
    margin: 6px 0;
    color: #ffffff;
    font-weight: 700;
}

.daily-brief-kpis {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin-top: 14px;
}

.daily-brief-kpis div {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    padding: 12px;
}

.daily-brief-kpis strong {
    display: block;
    font-size: 28px;
    color: #ffffff;
}

.daily-brief-kpis span {
    margin-top: 4px;
    color: rgba(255,255,255,.7);
}

@media (max-width: 900px) {
    .daily-brief-grid,
    .daily-brief-kpis {
        grid-template-columns: 1fr;
    }
}


/* Command Center: Market Timeline */
.timeline-panel {
    border-color: #cbd5e1 !important;
}

.timeline {
    border-left: 3px solid #e2e8f0;
    margin-left: 18px;
    padding-left: 22px;
}

.timeline-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
}

.timeline-row:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    position: absolute;
    left: -30px;
    top: 7px;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #e2e8f0;
}

.dot-red {
    background: #ef4444;
}

.dot-blue {
    background: #2563eb;
}

.timeline-time {
    width: 92px;
    color: #64748b;
    font-size: 12px;
    flex-shrink: 0;
    padding-top: 4px;
}

.timeline-content {
    flex: 1;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
}

.timeline-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: #0f172a;
}

.timeline-content p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
}

.timeline-content span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

@media (max-width: 900px) {
    .timeline-row {
        display: block;
    }

    .timeline-time {
        width: auto;
        margin-bottom: 6px;
    }
}


/* Command Center: segmented status bars */
.bar {
    height: 14px !important;
    background:
        repeating-linear-gradient(
            to right,
            #e5e7eb 0,
            #e5e7eb 16px,
            transparent 16px,
            transparent 20px
        ) !important;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    background:
        repeating-linear-gradient(
            to right,
            #ef4444 0,
            #ef4444 16px,
            transparent 16px,
            transparent 20px
        ) !important;
}

.bar-fill.opportunity {
    background:
        repeating-linear-gradient(
            to right,
            #06b6d4 0,
            #06b6d4 16px,
            transparent 16px,
            transparent 20px
        ) !important;
}

/* Command Center: Market Intelligence Feed */
.intelligence-feed-panel {
    border-color: #bfdbfe !important;
}

.intelligence-feed {
    display: grid;
    gap: 10px;
}

.feed-row {
    display: grid;
    grid-template-columns: 1fr 110px;
    gap: 14px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px;
}

.feed-main h3 {
    margin: 6px 0 4px;
    font-size: 16px;
    color: #0f172a;
}

.feed-main p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
}

.feed-metric {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #0f172a;
}

.feed-impact {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
    text-align: center;
}

.feed-impact span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
}

.feed-impact strong {
    display: block;
    margin: 4px 0 7px;
    font-size: 15px;
    color: #0f172a;
}

.feed-impact-bar {
    height: 10px;
    background:
        repeating-linear-gradient(
            to right,
            #e5e7eb 0,
            #e5e7eb 10px,
            transparent 10px,
            transparent 13px
        );
    border-radius: 999px;
    overflow: hidden;
}

.feed-impact-bar div {
    height: 100%;
    background:
        repeating-linear-gradient(
            to right,
            #2563eb 0,
            #2563eb 10px,
            transparent 10px,
            transparent 13px
        );
}

@media (max-width: 900px) {
    .feed-row {
        grid-template-columns: 1fr;
    }

    .feed-impact {
        text-align: left;
    }
}


/* Command Center: data freshness banner */
.freshness-banner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 28px rgba(15,23,42,.06);
}

.freshness-banner span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
    margin-bottom: 6px;
}

.freshness-banner h2 {
    margin: 0 0 5px;
    font-size: 24px;
    color: #0f172a;
}

.freshness-banner p {
    margin: 0;
    color: #334155;
}

.freshness-live {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.freshness-live span {
    color: #166534;
}

.freshness-degraded {
    background: #fffbeb;
    border-color: #fde68a;
}

.freshness-degraded span {
    color: #92400e;
}

.freshness-stale {
    background: #fef2f2;
    border-color: #fecaca;
}

.freshness-stale span {
    color: #991b1b;
}

.freshness-stats {
    display: flex;
    gap: 10px;
}

.freshness-stats div {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 16px;
    min-width: 110px;
    text-align: center;
}

.freshness-stats strong {
    display: block;
    font-size: 24px;
    color: #0f172a;
}

.freshness-stats small {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-top: 3px;
}

@media (max-width: 900px) {
    .freshness-banner {
        display: block;
    }

    .freshness-stats {
        margin-top: 14px;
    }
}


/* Command Center: Executive Summary */
.executive-summary-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 16px 36px rgba(15,23,42,.07);
}

.executive-summary-body {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
}

.executive-summary-body h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #0f172a;
}

.executive-summary-body > p {
    margin: 0 0 14px;
    color: #334155;
    line-height: 1.45;
}

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

.summary-columns > div,
.summary-priorities {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.summary-columns strong,
.summary-priorities strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #475569;
    margin-bottom: 8px;
}

.summary-columns ul,
.summary-priorities ol {
    margin: 0;
    padding-left: 18px;
}

.summary-columns li,
.summary-priorities li {
    margin: 6px 0;
    color: #0f172a;
    line-height: 1.4;
}

.summary-priorities {
    margin-top: 12px;
}

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


/* Command Center: Hero score cards */
.priority-move-card {
    padding: 18px !important;
}

.priority-move-card .move-grid {
    grid-template-columns: 1fr 180px !important;
    align-items: stretch !important;
}

.hero-score-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-score-box .score-label {
    font-size: 12px;
    font-weight: 900;
    color: #475569;
}

.hero-score-box .score {
    font-size: 54px !important;
    margin: 8px 0;
}

.hero-score-box .bar {
    height: 18px !important;
}

.hero-move-name {
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.priority-move-card .move-hero {
    font-size: 15px !important;
    max-width: 720px;
}

.priority-move-card .move-action {
    background: #f8fafc !important;
}

.move-card.threat.priority-move-card {
    border-left: 7px solid #ef4444;
}

.move-card.opportunity.priority-move-card {
    border-left: 7px solid #22c55e;
}

.move-card .pill.critical {
    font-size: 11px;
    padding: 7px 11px;
}

@media (max-width: 900px) {
    .priority-move-card .move-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-score-box {
        margin-top: 12px;
    }
}


/* Command Center: compact move cards */
.priority-move-card {
    padding: 12px !important;
}

.priority-move-card .move-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
}

.priority-move-card .pill-row {
    gap: 5px !important;
    margin-bottom: 6px !important;
}

.priority-move-card .pill {
    font-size: 9px !important;
    padding: 4px 7px !important;
}

.priority-move-card .hero-move-name {
    font-size: 20px !important;
    margin: 4px 0 !important;
}

.priority-move-card .move-hero {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
}

.priority-move-card .move-action {
    padding: 9px !important;
    margin-top: 6px !important;
}

.priority-move-card .move-action strong {
    font-size: 11px !important;
}

.priority-move-card .move-action p {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 4px 0 0 !important;
}

.priority-move-card .hero-score-box {
    padding: 10px !important;
    border-radius: 14px !important;
}

.priority-move-card .hero-score-box .score-label {
    font-size: 10px !important;
}

.priority-move-card .hero-score-box .score {
    font-size: 34px !important;
    margin: 2px 0 5px !important;
}

.priority-move-card .hero-score-box .bar {
    height: 10px !important;
}

.priority-move-card .metric-strip {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
    margin-top: 8px !important;
}

.priority-move-card .metric {
    padding: 7px !important;
    border-radius: 10px !important;
}

.priority-move-card .metric span {
    font-size: 8px !important;
}

.priority-move-card .metric strong {
    font-size: 12px !important;
}

.priority-move-card details {
    margin-top: 8px !important;
}

.priority-move-card summary {
    font-size: 11px !important;
}

.priority-move-card details p,
.priority-move-card details li {
    font-size: 11px !important;
    line-height: 1.35 !important;
}

@media (max-width: 900px) {
    .priority-move-card .metric-strip {
        grid-template-columns: 1fr !important;
    }
}


/* Command Center: restore premium move-card spacing */
.priority-move-card {
    padding: 18px !important;
}

.priority-move-card .move-grid {
    grid-template-columns: 1fr 180px !important;
    gap: 16px !important;
}

.priority-move-card .pill-row {
    gap: 8px !important;
    margin-bottom: 10px !important;
}

.priority-move-card .pill {
    font-size: 11px !important;
    padding: 6px 10px !important;
}

.priority-move-card .hero-move-name {
    font-size: 24px !important;
    margin: 8px 0 !important;
}

.priority-move-card .move-hero {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin: 0 0 12px !important;
}

.priority-move-card .move-action {
    padding: 14px !important;
    margin-top: 10px !important;
}

.priority-move-card .move-action strong {
    font-size: 13px !important;
}

.priority-move-card .move-action p {
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.priority-move-card .hero-score-box .score {
    font-size: 48px !important;
}

.priority-move-card .hero-score-box .bar {
    height: 16px !important;
}

.priority-move-card .metric-strip {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-top: 12px !important;
}

.priority-move-card .metric {
    padding: 11px !important;
}

.priority-move-card .metric span {
    font-size: 10px !important;
}

.priority-move-card .metric strong {
    font-size: 15px !important;
}

.more-moves {
    margin-top: 14px;
}

.more-moves summary {
    cursor: pointer;
    font-weight: 800;
    color: #2563eb;
    padding: 12px 0;
}

.freshness-initializing {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.freshness-initializing span {
    color: #1d4ed8;
}


/* Command Center: Executive Brief narrative */
.executive-brief-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 22px 48px rgba(15,23,42,.08);
}

.executive-brief-label {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 7px 11px;
    margin-bottom: 16px;
}

.executive-brief-panel h2 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.12;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.executive-brief-narrative {
    max-width: 980px;
    margin: 0;
    font-size: 19px;
    line-height: 1.65;
    color: #334155;
}

.executive-brief-priorities {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.executive-brief-priorities strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #475569;
    margin-bottom: 10px;
}

.executive-brief-priorities ol {
    margin: 0;
    padding-left: 22px;
}

.executive-brief-priorities li {
    margin: 8px 0;
    font-size: 17px;
    line-height: 1.45;
    color: #0f172a;
    font-weight: 700;
}

@media (max-width: 900px) {
    .executive-brief-panel {
        padding: 20px;
    }

    .executive-brief-panel h2 {
        font-size: 26px;
    }

    .executive-brief-narrative {
        font-size: 16px;
    }
}


/* Command Center: Decision Engine reasoning */
.decision-reasoning {
    background: #ffffff !important;
    border: 1px solid #dbeafe !important;
}

.reasoning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.reasoning-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
}

.reasoning-grid span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #64748b;
    margin-bottom: 5px;
}

.reasoning-grid p {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: #334155;
}

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


/* Command Center: Since Last Verification strip */
.since-verification-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06);
}

.since-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.since-header span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #64748b;
}

.since-header strong {
    color: #0f172a;
    font-size: 14px;
}

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

.since-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.since-item > span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: #ffffff;
}

.since-increasing > span {
    color: #dc2626;
}

.since-decreasing > span {
    color: #16a34a;
}

.since-new > span {
    color: #2563eb;
}

.since-item strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    line-height: 1.3;
}

.since-item p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.3;
}

.since-empty {
    margin: 0;
    color: #64748b;
}

@media (max-width: 900px) {
    .since-items {
        grid-template-columns: 1fr;
    }

    .since-header {
        display: block;
    }

    .since-header strong {
        display: block;
        margin-top: 4px;
    }
}


/* Command Center: Market Intelligence powered direction */
.direction-card p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.market-themes-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.market-theme {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.market-theme span {
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #475569;
    margin-bottom: 6px;
}

.market-theme p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
}

.theme-high {
    border-color: #fecaca;
    background: #fef2f2;
}

.theme-medium {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.theme-low {
    border-color: #dcfce7;
    background: #f0fdf4;
}

@media (max-width: 900px) {
    .market-themes-row {
        grid-template-columns: 1fr;
    }
}


/* Command Center: Confidence proof */
.confidence-proof {
    margin-top: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

.confidence-score-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.confidence-score-row span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.confidence-score-row strong {
    font-size: 22px;
    color: #0f172a;
}

.confidence-score-row em {
    font-style: normal;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 4px 8px;
}

.confidence-proof ul {
    margin: 0;
    padding-left: 18px;
}

.confidence-proof li {
    margin: 5px 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.35;
}


/* Command Center: compact confidence proof override */
.confidence-proof {
    margin-top: 8px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
}

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

.confidence-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.confidence-score {
    font-size: 15px;
    font-weight: 900;
    color: #0f172a;
}

.confidence-level {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.confidence-level.high {
    background: #dcfce7;
    color: #166534;
}

.confidence-level.medium {
    background: #fef3c7;
    color: #92400e;
}

.confidence-level.low {
    background: #fee2e2;
    color: #991b1b;
}

.confidence-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: #64748b;
}

.confidence-footer strong {
    color: #475569;
}



.pill.confidence{
    background:#eef2ff;
    color:#1d4ed8;
    border:1px solid #bfdbfe;
    font-weight:800;
}

/* Command Center: Market Memory inside cards */
.memory-proof {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.memory-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.memory-header strong {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #475569;
}

.memory-strength {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 2px 8px;
}

.memory-strong {
    background: #dcfce7;
    color: #166534;
}

.memory-medium {
    background: #fef3c7;
    color: #92400e;
}

.memory-weak {
    background: #f1f5f9;
    color: #475569;
}

.memory-proof ul {
    margin: 0;
    padding-left: 18px;
}

.memory-proof li {
    margin: 3px 0;
    font-size: 12px;
    line-height: 1.3;
    color: #334155;
}


/* Command Center: Forecast callout */
.forecast-callout {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    border-radius: 14px;
}

.forecast-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #1d4ed8;
    margin-bottom: 6px;
}

.forecast-callout strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.forecast-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.forecast-meta span {
    font-size: 11px;
    font-weight: 800;
    color: #475569;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    padding: 4px 8px;
}


/* Epic 7: Executive Brief V2 */
.executive-brief-v2 {
    margin: 24px 0;
    padding: 24px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #1e293b;
}

.executive-brief-v2 .section-head h2 {
    color: #ffffff;
}

.executive-brief-v2 .section-head p {
    color: #cbd5e1;
}

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

.brief-card-v2 {
    background: #ffffff;
    color: #0f172a;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
}

.brief-card-v2 span {
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 8px;
}

.brief-card-v2 strong {
    display: block;
    font-size: 17px;
    line-height: 1.3;
    color: #0f172a;
}

@media (max-width: 900px) {
    .brief-grid-v2 {
        grid-template-columns: 1fr;
    }
}


/* Epic 7: AI Market Analyst */
.analyst-callout {
    margin: 12px 0;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

.analyst-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #475569;
    margin-bottom: 8px;
}

.analyst-callout p {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.45;
}

/* Epic 8: Executive Card UX refinement */
.analyst-callout {
    margin: 14px 0 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.analyst-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: #93c5fd;
    margin-bottom: 8px;
}

.analyst-callout p {
    margin: 0;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
}

.forecast-callout {
    margin: 10px 0 12px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 14px;
}

.forecast-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: #2563eb;
    margin-bottom: 5px;
}

.forecast-callout strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.35;
}

.forecast-meta span {
    font-size: 10px;
    font-weight: 900;
}

.priority-move-card details {
    margin-top: 10px;
}

.priority-move-card details summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    color: #2563eb;
}


/* Epic 8: AI Analyst list format */
.analyst-callout ul {
    margin: 0;
    padding-left: 18px;
}

.analyst-callout li {
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.55;
    font-weight: 700;
    margin: 5px 0;
}


/* Epic 9: Executive Decisions */
.executive-decisions-panel {
    margin: 24px 0;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.decision-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.decision-card-v2 {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.decision-rank {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #0f172a;
    color: #ffffff;
    font-weight: 900;
    font-size: 13px;
}

.decision-body h3 {
    margin: 8px 0 6px;
    font-size: 16px;
    color: #0f172a;
}

.decision-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #475569;
}

.decision-urgency {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 8px;
}

.urgency-critical {
    background: #fee2e2;
    color: #991b1b;
}

.urgency-high {
    background: #ffedd5;
    color: #9a3412;
}

.urgency-medium {
    background: #fef3c7;
    color: #92400e;
}

.urgency-low {
    background: #dcfce7;
    color: #166534;
}

.decision-score {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
}

.decision-score small {
    font-size: 11px;
    color: #64748b;
}

@media (max-width: 1000px) {
    .decision-grid-v2 {
        grid-template-columns: 1fr;
    }
}


/* Intelligence Feed page */
.feed-controls a {
    font-weight: 800;
    color: #2563eb;
    text-decoration: none;
}

.intelligence-feed-list {
    display: grid;
    gap: 14px;
}

.feed-signal-card {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 18px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
}

.feed-signal-main h3 {
    margin: 10px 0 6px;
    font-size: 20px;
    color: #0f172a;
}

.feed-signal-headline {
    margin: 0 0 12px;
    color: #475569;
    font-size: 14px;
    line-height: 1.45;
}

.feed-ai-summary {
    padding: 12px;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
}

.feed-ai-summary strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #93c5fd;
    margin-bottom: 6px;
}

.feed-ai-summary ul {
    margin: 0;
    padding-left: 18px;
}

.feed-ai-summary li {
    font-size: 13px;
    line-height: 1.45;
    margin: 4px 0;
    color: #f8fafc;
}

.feed-signal-side {
    display: grid;
    gap: 10px;
}

.feed-signal-side div {
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.feed-signal-side span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 5px;
}

.feed-signal-side strong {
    font-size: 13px;
    color: #0f172a;
    line-height: 1.35;
}

@media (max-width: 900px) {
    .feed-signal-card {
        grid-template-columns: 1fr;
    }
}


/* Retailer navigation */
.retailer-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 900;
}

.retailer-link:hover {
    color: #2563eb;
    text-decoration: underline;
}


/* Retailer Intelligence: AI Executive Brief */
.retailer-ai-brief {
    margin: 16px 0 20px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #334155;
}

.retailer-ai-brief ul {
    margin: 0;
    padding-left: 20px;
}

.retailer-ai-brief li {
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 700;
    margin: 7px 0;
}


/* Retailer Intelligence tabs */
.retailer-nav {
    display: flex;
    gap: 12px;
    margin: 18px 0 20px;
    flex-wrap: wrap;
}

.retailer-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #d9e2ef;
}

.retailer-nav-item:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #2563eb;
}

.retailer-nav-item.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}


/* Retailer Products Workspace */
.product-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.product-kpi-card {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.product-kpi-card span {
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 8px;
}

.product-kpi-card strong {
    font-size: 28px;
    color: #0f172a;
}

.product-kpi-card.danger {
    background: #fff1f2;
}

.product-kpi-card.warning {
    background: #fffbeb;
}

.product-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.product-workspace-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.product-workspace-table th {
    text-align: left;
    padding: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    border-bottom: 1px solid #e5e7eb;
}

.product-workspace-table td {
    padding: 12px;
    border-bottom: 1px solid #eef2f7;
    font-size: 13px;
    color: #334155;
}

.product-title-cell {
    font-weight: 900;
    color: #0f172a !important;
    min-width: 220px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.status-pill.success {
    background: #dcfce7;
    color: #166534;
}

.status-pill.danger {
    background: #fee2e2;
    color: #991b1b;
}

.status-pill.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-pill.neutral {
    background: #f1f5f9;
    color: #64748b;
}

@media (max-width: 900px) {
    .product-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* Product Workspace filters */
.product-toolbar {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}

.product-toolbar input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid #d9e2ef;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    background: #ffffff;
}

.product-toolbar input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.product-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-filter {
    border: 1px solid #d9e2ef;
    background: #ffffff;
    color: #1e293b;
    font-weight: 900;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
}

.product-filter:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.product-filter.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.product-workspace-table tbody tr:hover {
    background: #f8fafc;
}


/* Product table sorting */
.product-workspace-table th {
    cursor: pointer;
    user-select: none;
}

.product-workspace-table th:hover {
    color: #2563eb;
    background: #f8fafc;
}

.product-workspace-table th[data-direction="asc"]::after {
    content: " ▲";
    font-size: 10px;
}

.product-workspace-table th[data-direction="desc"]::after {
    content: " ▼";
    font-size: 10px;
}


/* Retailer Intelligence Workspace */
.intelligence-card-grid {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.intelligence-signal-card {
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.signal-card-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
}

.signal-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #2563eb;
    margin-bottom: 8px;
}

.signal-card-top h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.35;
}

.signal-score {
    font-size: 28px;
    font-weight: 900;
    color: #0f172a;
}

.signal-score small {
    font-size: 12px;
    color: #64748b;
}

.signal-ai-block {
    margin: 14px 0;
    padding: 14px;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
}

.signal-ai-block strong {
    display: block;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.signal-ai-block ul {
    margin: 0;
    padding-left: 18px;
}

.signal-ai-block li {
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.5;
    margin: 5px 0;
    font-weight: 700;
}

.signal-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.signal-detail-grid div {
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.signal-detail-grid span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
    margin-bottom: 5px;
}

.signal-detail-grid strong {
    color: #0f172a;
    font-size: 14px;
}

.signal-evidence {
    margin-top: 12px;
}

.signal-evidence summary {
    cursor: pointer;
    font-weight: 900;
    color: #2563eb;
}

.signal-evidence li {
    margin: 5px 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
}

.signal-evidence h4 {
    margin: 14px 0 6px;
    font-size: 13px;
    color: #0f172a;
}

@media (max-width: 900px) {
    .signal-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* Sprint 2.1: Intelligence Workspace polish */
.polished-signal-card {
    border-left: 6px solid #f97316;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.polished-signal-card .signal-card-top {
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.polished-signal-card .signal-score {
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    min-width: 72px;
    text-align: center;
}

.signal-section-title {
    margin: 16px 0 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: #64748b;
}

.signal-detail-grid div {
    border-left: 4px solid #2563eb;
}

.signal-detail-grid div:nth-child(1) {
    border-left-color: #22c55e;
}

.signal-detail-grid div:nth-child(2) {
    border-left-color: #f97316;
}

.signal-detail-grid div:nth-child(3) {
    border-left-color: #0ea5e9;
}

.signal-detail-grid div:nth-child(4) {
    border-left-color: #8b5cf6;
}

.signal-evidence {
    padding: 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}


/* Intelligence chart panel */
.signal-chart-panel {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.signal-chart-panel canvas {
    width: 100%;
    max-height: 260px;
}


/* Premium inventory chart treatment */
.rv-chart-card {
    position: relative;
    min-height: 340px;
}

.rv-chart-card canvas {
    min-height: 280px;
}

.chart-current-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 12px 16px;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.chart-current-badge span {
    display: block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: #93c5fd;
}

.chart-current-badge strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
    margin-top: 4px;
}

.chart-current-badge small {
    display: block;
    font-size: 11px;
    color: #cbd5e1;
    margin-top: 2px;
}


/* Intelligence progressive disclosure */
.signal-ai-details {
    margin: 14px 0;
}

.signal-ai-details summary {
    cursor: pointer;
    font-weight: 900;
    color: #2563eb;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.signal-ai-details[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.signal-ai-details .signal-ai-block {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.signal-card-action {
    margin: 14px 0;
}

.signal-evidence summary {
    padding: 8px 0;
}


/* Compare 2.0 */
.compare-verdict-card {
    margin: 24px;
}

.compare-verdict-layout {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: center;
}

.compare-verdict-layout h2 {
    margin: 14px 0 8px;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 950;
}

.compare-verdict-layout p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.5;
}

.compare-winner-box {
    padding: 18px;
    border-radius: 20px;
    background: #0f172a;
    color: #ffffff;
    text-align: center;
}

.compare-winner-box span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #93c5fd;
    font-weight: 900;
}

.compare-winner-box strong {
    display: block;
    font-size: 28px;
    margin: 8px 0 4px;
}

.compare-winner-box small {
    color: #cbd5e1;
}

.compare-battle-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-top: 24px;
}

.compare-battle-card {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.compare-battle-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.compare-battle-card strong {
    display: block;
    font-size: 42px;
    line-height: 1;
    margin: 10px 0 4px;
    color: #0f172a;
    font-weight: 950;
}

.compare-battle-card small {
    color: #64748b;
    font-weight: 800;
}

.compare-vs-pill {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #2563eb;
    color: #ffffff;
    font-weight: 950;
}

.compare-metric-bars {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.compare-metric-bars span {
    display: block;
    font-size: 12px;
    color: #475569;
    font-weight: 900;
    margin-bottom: 6px;
}

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

.compare-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #2563eb;
}

@media (max-width: 900px) {
    .compare-verdict-layout,
    .compare-battle-grid {
        grid-template-columns: 1fr;
    }

    .compare-vs-pill {
        margin: 0 auto;
    }
}


/* Compare 2.0 Head-to-Head Scoreboard */
.compare-scoreboard-card {
    margin: 24px;
}

.compare-scoreboard-table {
    margin-top: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.compare-scoreboard-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
    color: #334155;
}

.compare-scoreboard-row:last-child {
    border-bottom: none;
}

.compare-scoreboard-head {
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.scoreboard-metric {
    font-weight: 950;
    color: #0f172a;
}

.compare-scoreboard-head .scoreboard-metric {
    color: #ffffff;
}

@media (max-width: 900px) {
    .compare-scoreboard-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .compare-scoreboard-head {
        display: none;
    }

    .compare-scoreboard-row {
        border: 1px solid #e5e7eb;
        margin: 10px;
        border-radius: 14px;
    }
}


/* Compare 2.0 Competitive Breakdown */
.compare-breakdown-card {
    margin: 24px;
}

.compare-breakdown-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.compare-breakdown-item {
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.compare-breakdown-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: start;
    margin-bottom: 14px;
}

.compare-breakdown-top h3 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
}

.compare-breakdown-top p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.compare-breakdown-bars {
    display: grid;
    gap: 10px;
}

.compare-breakdown-bar-row {
    display: grid;
    grid-template-columns: 120px 1fr 70px;
    gap: 12px;
    align-items: center;
}

.compare-breakdown-bar-row span {
    font-size: 12px;
    font-weight: 900;
    color: #334155;
}

.compare-breakdown-bar-row strong {
    font-size: 13px;
    color: #0f172a;
    text-align: right;
}

.compare-bar-track {
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.compare-bar-track i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #2563eb;
}

@media (max-width: 900px) {
    .compare-breakdown-top {
        grid-template-columns: 1fr;
    }

    .compare-breakdown-bar-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .compare-breakdown-bar-row strong {
        text-align: left;
    }
}


/* Compare 2.0 AI Recommendation */
.compare-ai-recommendation-card {
    margin: 24px;
}

.compare-differences-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.compare-difference-card {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.compare-difference-card span {
    display: block;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: #64748b;
    margin-bottom: 6px;
}

.compare-difference-card p {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 800;
}

@media (max-width: 900px) {
    .compare-differences-grid {
        grid-template-columns: 1fr;
    }
}


/* Compare 2.0 trend charts */
.compare-trends-card {
    margin: 24px;
}

.compare-trend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.compare-trend-chart {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    min-height: 300px;
}

.compare-trend-chart h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.compare-trend-chart canvas {
    width: 100%;
    min-height: 240px;
}

/* Compare evidence disclosure */
.compare-detail-toggle {
    margin: 24px;
}

.compare-detail-toggle > summary {
    cursor: pointer;
    padding: 16px 18px;
    border-radius: 18px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.compare-detail-toggle[open] > summary {
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .compare-trend-grid {
        grid-template-columns: 1fr;
    }
}


/* Fix Compare chart infinite height growth */
.compare-trend-chart {
    height: 320px;
    min-height: 320px;
    max-height: 320px;
    overflow: hidden;
}

.compare-chart-canvas-wrap {
    position: relative;
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    width: 100%;
}

.compare-chart-canvas-wrap canvas {
    display: block;
    width: 100% !important;
    height: 240px !important;
    max-height: 240px !important;
}


/* Compare detailed evidence side-by-side */
.compare-detail-toggle .compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.compare-detail-toggle .compare-column {
    min-width: 0;
}

@media (max-width: 900px) {
    .compare-detail-toggle .compare-grid {
        grid-template-columns: 1fr;
    }
}


/* Compare 2.0 Matchup Hero */
.compare-matchup-hero {
    margin: 24px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
}

.matchup-retailer {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.matchup-retailer span,
.matchup-winner span {
    display: block;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #93c5fd;
}

.matchup-retailer strong {
    display: block;
    font-size: 46px;
    line-height: 1;
    margin: 10px 0 4px;
}

.matchup-retailer small,
.matchup-winner small {
    color: #cbd5e1;
    font-weight: 800;
}

.matchup-center {
    text-align: center;
}

.matchup-vs {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #2563eb;
    color: #ffffff;
    font-weight: 950;
}

.matchup-winner {
    min-width: 190px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    color: #0f172a;
}

.matchup-winner strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 22px;
    line-height: 1.15;
}

.matchup-winner small {
    color: #475569;
}

.matchup-mini-bars {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.matchup-mini-bars em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: #cbd5e1;
    margin-bottom: 4px;
    font-weight: 800;
}

.matchup-mini-bars div {
    background: rgba(255,255,255,0.16);
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}

.matchup-mini-bars i {
    display: block;
    height: 100%;
    background: #60a5fa;
    border-radius: 999px;
}

@media (max-width: 900px) {
    .compare-matchup-hero {
        grid-template-columns: 1fr;
    }
}


/* Compare hero layout refinement */
.compare-matchup-hero {
    align-items: stretch;
}

.matchup-retailer,
.matchup-center {
    min-width: 0;
}

.matchup-center {
    display: grid;
    align-content: center;
}

.matchup-winner {
    word-break: break-word;
}

@media (max-width: 900px) {
    .compare-matchup-hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .matchup-center {
        order: -1;
    }

    .matchup-vs {
        display: none;
    }

    .matchup-winner {
        width: 100%;
        box-sizing: border-box;
    }

    .matchup-retailer strong {
        font-size: 34px;
    }
}


/* Compare hero readability fix */
.compare-matchup-hero {
    min-height: 300px;
}

.matchup-retailer {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.matchup-mini-bars {
    margin-top: 22px;
}

.matchup-mini-bars div {
    position: relative;
    height: 22px;
    background: transparent;
    overflow: visible;
}

.matchup-mini-bars em {
    position: relative;
    z-index: 2;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 6px;
}

.matchup-mini-bars div::after {
    content: "";
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    margin-top: 4px;
}

.matchup-mini-bars i {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 8px;
    background: #60a5fa;
    border-radius: 999px;
    z-index: 1;
}

@media (max-width: 900px) {
    .compare-matchup-hero {
        min-height: auto;
    }

    .matchup-retailer {
        min-height: 180px;
    }
}


/* Compare evidence row alignment */
.compare-detail-toggle .compare-column {
    display: grid;
    grid-template-rows:
        auto
        minmax(110px, auto)
        minmax(150px, auto)
        minmax(130px, auto)
        auto;
    gap: 18px;
}

.compare-detail-toggle .retailer-card,
.compare-detail-toggle .compare-card,
.compare-detail-toggle .compare-signal-card {
    height: 100%;
}

.compare-detail-toggle .compare-column > h2 {
    margin: 0 0 4px;
}

.compare-detail-toggle .compare-column > h3 {
    margin: 0;
}

@media (max-width: 900px) {
    .compare-detail-toggle .compare-column {
        display: block;
    }
}


/* Compare final MVP polish freeze */
.page-compare h1 {
    margin: 8px 24px 6px;
    font-size: 34px;
    letter-spacing: -0.04em;
}

.page-compare > p {
    margin: 0 24px 18px;
    color: #64748b;
    font-weight: 700;
}

.page-compare .compare-form {
    margin: 0 24px 24px;
    padding: 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.page-compare .compare-form select {
    height: 44px;
    font-weight: 800;
}

.page-compare .compare-form button {
    height: 44px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 950;
    cursor: pointer;
}

.compare-matchup-hero {
    position: relative;
    overflow: hidden;
    padding: 28px;
    background:
        radial-gradient(circle at top left, rgba(37,99,235,0.38), transparent 32%),
        radial-gradient(circle at bottom right, rgba(14,165,233,0.24), transparent 34%),
        linear-gradient(135deg, #020617 0%, #0f172a 55%, #1e293b 100%);
}

.compare-matchup-hero::before {
    content: "Competitive Matchup";
    position: absolute;
    top: 18px;
    right: 24px;
    color: rgba(255,255,255,0.18);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.matchup-retailer {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.matchup-retailer strong {
    font-size: 58px;
    letter-spacing: -0.06em;
}

.matchup-center {
    min-width: 220px;
}

.matchup-vs {
    width: 64px;
    height: 64px;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}

.matchup-winner {
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}

.compare-trends-card {
    margin-top: 28px;
}

.compare-trend-grid {
    grid-template-columns: 1fr;
}

.compare-trend-chart {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
}

.compare-chart-canvas-wrap {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
}

.compare-chart-canvas-wrap canvas {
    height: 300px !important;
    max-height: 300px !important;
}

.compare-detail-toggle {
    border-radius: 20px;
}

.compare-detail-toggle > summary {
    list-style: none;
}

.compare-detail-toggle > summary::-webkit-details-marker {
    display: none;
}

.compare-detail-toggle > summary::after {
    content: " ↓";
    opacity: 0.75;
}

.compare-detail-toggle[open] > summary::after {
    content: " ↑";
}

@media (max-width: 900px) {
    .page-compare h1,
    .page-compare > p,
    .page-compare .compare-form,
    .compare-matchup-hero,
    .compare-trends-card,
    .compare-detail-toggle {
        margin-left: 12px;
        margin-right: 12px;
    }

    .matchup-retailer strong {
        font-size: 40px;
    }
}

/* Emergency Compare overflow fix */
.matchup-mini-bars {
    overflow: hidden;
}

.matchup-mini-bars i,
.compare-bar-track i {
    max-width: 100% !important;
}

.compare-matchup-hero {
    max-width: calc(100vw - 360px);
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .compare-matchup-hero {
        max-width: none;
    }
}

/* Command Center Fresh Changes Today */
.fresh-changes-panel {
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 44%);
}

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

.fresh-change-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.fresh-change-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.fresh-change-top strong {
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.fresh-change-top small {
    font-size: 12px;
    color: #64748b;
}

.fresh-change-card h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.fresh-change-card p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.fresh-change-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .fresh-change-grid {
        grid-template-columns: 1fr;
    }
}

/* Global nav alert badge */
.nav-alerts {
    position: relative;
}

.nav-alert-count {
    margin-left: 6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}

.nav-alerts.has-alerts {
    background: rgba(239,68,68,0.18);
}

/* Command Center alert indicator */
.command-alert-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.command-alert-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Sidebar alert badge final */
.nav-alerts {
    position: relative;
}

.sidebar-alert-badge {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 18px;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.9);
}

/* Alerts Action Center */
.alerts-action-center {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 45%);
    border: 1px solid #fed7aa;
    border-radius: 22px;
    padding: 22px;
    margin: 24px;
    box-shadow: 0 14px 34px rgba(15,23,42,.07);
}

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

.priority-alert-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

.priority-alert-card.priority-high {
    border-color: #fecaca;
}

.priority-alert-card.priority-medium {
    border-color: #fed7aa;
}

.priority-alert-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.priority-alert-top strong {
    font-size: 13px;
    color: #475569;
}

.priority-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .06em;
}

.priority-pill.priority-high {
    background: #dc2626;
    color: #ffffff;
}

.priority-pill.priority-medium {
    background: #f97316;
    color: #ffffff;
}

.priority-pill.priority-low {
    background: #e2e8f0;
    color: #334155;
}

.priority-alert-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
}

.priority-alert-meta {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.priority-alert-action {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
}

.priority-alert-action span {
    display: block;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 950;
    margin-bottom: 5px;
}

.priority-alert-action p {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.4;
}

.priority-alert-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 900px) {
    .alerts-action-center {
        margin: 12px;
    }

    .priority-alert-grid {
        grid-template-columns: 1fr;
    }
}

/* Alerts page MVP polish */
.page-alerts {
    background: #f3f6fb;
}

.page-alerts h1,
.page-alerts .page-subtitle,
.page-alerts .dashboard-v5-widget-grid,
.page-alerts .table-section {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.page-alerts h1 {
    margin-top: 36px;
    font-size: 38px;
    letter-spacing: -0.04em;
}

.page-alerts .page-subtitle {
    color: #475569;
    font-weight: 650;
    margin-bottom: 22px;
}

.alerts-action-center {
    max-width: 1180px;
    margin: 24px auto !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    border-radius: 26px !important;
    padding: 24px !important;
    box-shadow: 0 22px 48px rgba(15,23,42,.08) !important;
}

.alerts-action-center .section-header {
    margin-bottom: 20px;
}

.alerts-action-center .section-header h2 {
    font-size: 28px;
    letter-spacing: -0.035em;
    margin-bottom: 4px;
}

.priority-alert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.priority-alert-card {
    position: relative;
    min-height: 245px;
    display: flex;
    flex-direction: column;
    border-radius: 22px !important;
    padding: 18px !important;
    border: 1px solid #e2e8f0 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
}

.priority-alert-card.priority-high {
    border-left: 6px solid #ef4444 !important;
}

.priority-alert-card.priority-medium {
    border-left: 6px solid #f97316 !important;
}

.priority-alert-card.priority-low {
    border-left: 6px solid #22c55e !important;
}

.priority-alert-top {
    margin-bottom: 16px !important;
}

.priority-alert-top strong {
    background: #f1f5f9;
    color: #0f172a !important;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px !important;
    font-weight: 950 !important;
}

.priority-alert-card h3 {
    font-size: 18px !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
}

.priority-alert-meta {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8 !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    margin-bottom: 14px !important;
}

.priority-alert-action {
    margin-top: auto;
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 12px !important;
}

.priority-alert-action span {
    color: #64748b !important;
}

.priority-alert-action p {
    font-size: 13px !important;
    font-weight: 700;
}

.priority-alert-footer {
    font-size: 11px !important;
}

/* Alert KPI cards */
.page-alerts .dashboard-v5-widget-grid {
    gap: 16px !important;
    margin-top: 22px;
    margin-bottom: 22px;
}

.page-alerts .dashboard-v5-card {
    border-radius: 22px !important;
    box-shadow: 0 16px 36px rgba(15,23,42,.07) !important;
}

.page-alerts .dashboard-v5-card-header h2 {
    font-size: 34px !important;
    letter-spacing: -0.04em;
}

.page-alerts .dashboard-v5-card-header p {
    font-weight: 850;
    color: #64748b;
}

/* High activity and recent events */
.page-alerts .pressure-list {
    display: grid;
    gap: 10px;
}

.page-alerts .pressure-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px 14px;
}

.page-alerts .pressure-row strong {
    font-size: 14px;
    color: #0f172a;
}

.page-alerts .pressure-row span {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.page-alerts .pressure-row em {
    background: #eef2ff;
    color: #3730a3;
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

/* Raw alert history */
.page-alerts .table-section {
    background: #ffffff;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 36px rgba(15,23,42,.06);
}

.raw-alert-toggle-btn {
    border-radius: 999px !important;
    padding: 12px 18px !important;
    font-weight: 950 !important;
}

/* Better mobile/ narrow layout */
@media (max-width: 1100px) {
    .priority-alert-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 760px) {
    .priority-alert-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Alerts compact action-list override */
.page-alerts {
    background: #eef3f9 !important;
}

.page-alerts h1 {
    max-width: 1040px !important;
    margin: 38px auto 10px !important;
    font-size: 38px !important;
}

.page-alerts .page-subtitle {
    max-width: 1040px !important;
    margin: 0 auto 24px !important;
}

.alerts-action-center-v2 {
    max-width: 1040px !important;
    margin: 24px auto !important;
    padding: 24px !important;
    border-radius: 24px !important;
    background: #ffffff !important;
    border: 1px solid #dbe4ef !important;
    box-shadow: 0 20px 44px rgba(15,23,42,.08) !important;
}

.action-center-head {
    display: flex !important;
    justify-content: space-between !important;
    gap: 18px !important;
    align-items: flex-start !important;
}

.alert-view-link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.priority-alert-list-v2 {
    display: grid;
    gap: 12px;
}

.priority-alert-row-v2 {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 18px;
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    border-left: 6px solid #94a3b8;
}

.priority-alert-row-v2.priority-high {
    border-left-color: #ef4444;
}

.priority-alert-row-v2.priority-medium {
    border-left-color: #f97316;
}

.priority-alert-row-v2.priority-low {
    border-left-color: #22c55e;
}

.priority-alert-heading-v2 {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.alert-type-pill {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.priority-alert-main-v2 h3 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
}

.priority-alert-retailer-v2 {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.priority-alert-action-v2 {
    margin: 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}

.priority-alert-action-v2 strong {
    color: #0f172a;
}

.priority-alert-proof-v2 {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    text-align: right;
}

.priority-alert-proof-v2 strong {
    color: #0f172a;
    font-size: 18px;
}

.priority-alert-proof-v2 span,
.priority-alert-proof-v2 em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.page-alerts .dashboard-v5-widget-grid,
.page-alerts .table-section {
    max-width: 1040px !important;
}

@media (max-width: 760px) {
    .alerts-action-center-v2,
    .page-alerts h1,
    .page-alerts .page-subtitle,
    .page-alerts .dashboard-v5-widget-grid,
    .page-alerts .table-section {
        max-width: calc(100% - 24px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .priority-alert-row-v2 {
        grid-template-columns: 1fr;
    }

    .priority-alert-proof-v2 {
        text-align: left;
    }
}

/* Alerts decision-focused KPI override */
.decision-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.decision-kpi {
    min-height: 130px !important;
    padding: 18px !important;
}

.decision-kpi strong {
    font-size: 38px !important;
}

.decision-kpi em {
    color: #475569 !important;
    font-size: 12px !important;
    line-height: 1.35;
}

.decision-kpi.critical {
    border-left: 5px solid #ef4444;
}

.decision-kpi.high {
    border-left: 5px solid #f97316;
}

.decision-kpi.opportunity {
    border-left: 5px solid #22c55e;
}

.decision-kpi.verified {
    border-left: 5px solid #2563eb;
}

.decision-kpi.critical .kpi-icon {
    background: #fee2e2;
    color: #dc2626;
}

.decision-kpi.high .kpi-icon {
    background: #ffedd5;
    color: #ea580c;
}

.decision-kpi.opportunity .kpi-icon {
    background: #dcfce7;
    color: #15803d;
}

.decision-kpi.verified .kpi-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

/* Alerts final compact polish */
.alerts-main {
    max-width: 1220px !important;
}

.alerts-header {
    margin-bottom: 22px !important;
}

.alerts-header h1 {
    font-size: 40px !important;
}

.decision-kpi,
.alerts-kpi-card {
    min-height: 112px !important;
    padding: 16px !important;
}

.decision-kpi strong,
.alerts-kpi-card strong {
    font-size: 34px !important;
}

.alerts-kpi-card em {
    margin-top: 10px !important;
}

.kpi-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
}

.priority-card {
    min-height: 220px !important;
    padding: 14px !important;
}

.priority-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.priority-card .alert-action {
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.activity-row {
    padding: 8px 0 !important;
}

.activity-row::after {
    content: "";
    grid-column: 2 / -1;
    height: 7px;
    border-radius: 999px;
    background: #e5e7eb;
    margin-top: -4px;
}

.activity-row:nth-child(1)::after {
    background: linear-gradient(90deg, #ef4444 0 92%, #e5e7eb 92% 100%);
}

.activity-row:nth-child(2)::after,
.activity-row:nth-child(3)::after {
    background: linear-gradient(90deg, #f97316 0 72%, #e5e7eb 72% 100%);
}

.activity-row:nth-child(4)::after,
.activity-row:nth-child(5)::after {
    background: linear-gradient(90deg, #cbd5e1 0 48%, #e5e7eb 48% 100%);
}

.sidebar-alert-badge {
    transform: translateY(-50%) scale(.88) !important;
}

/* Alerts expandable sections */
.alert-expand-block {
    margin-top: 16px;
}

.alert-expand-block > summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    color: #2563eb;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 950;
    list-style: none;
}

.alert-expand-block > summary::-webkit-details-marker {
    display: none;
}

.alert-expand-block > summary::after {
    content: "↓";
    font-weight: 950;
}

.alert-expand-block[open] > summary::after {
    content: "↑";
}

.expanded-alert-grid {
    margin-top: 14px;
}

.compact-expand {
    grid-column: 1 / -1;
}

.compact-expand[open] {
    display: grid;
    gap: 10px;
}

/* Alerts final MVP polish */
.alerts-panel-head {
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.alerts-panel-title-icon {
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, .12);
}

.priority-card .alert-action {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 10px;
    margin-top: 12px;
    font-weight: 950 !important;
}

.priority-card .alert-action span {
    display: block;
    color: #64748b;
    font-size: 9px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.raw-table-head h2::after,
.alerts-panel h2::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: #2563eb;
    margin-top: 8px;
}

.raw-table-head h2::after {
    background: #ef4444;
}

.alert-expand-block > summary {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    background: #f8fafc !important;
}

.decision-kpi.verified strong {
    color: #16a34a !important;
}

/* Product Investigation MVP */
.investigation-link {
    display: inline-flex;
    margin-top: 14px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.product-investigation-hero {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.product-investigation-hero h1 {
    margin: 8px 0 8px;
    font-size: 42px;
    letter-spacing: -0.05em;
    color: #0f172a;
    max-width: 820px;
}

.product-investigation-hero p {
    color: #475569;
    font-weight: 700;
}

.back-link {
    display: inline-flex;
    margin-bottom: 14px;
    color: #2563eb;
    font-weight: 900;
    text-decoration: none;
}

.product-health-badge {
    background: #0f172a;
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.product-investigation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 22px;
}

.investigation-panel {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 36px rgba(15,23,42,.06);
}

.recommendation-box {
    margin-top: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 14px;
}

.recommendation-box strong {
    display: block;
    margin-bottom: 6px;
    color: #1d4ed8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.recommendation-box p {
    margin: 0;
    color: #0f172a;
    font-weight: 750;
    line-height: 1.45;
}

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

.variant-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px;
}

.variant-row strong {
    display: block;
    color: #0f172a;
}

.variant-row span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

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

@media (max-width: 900px) {
    .product-investigation-hero,
    .product-investigation-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

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

/* Product Investigation V2 */
.product-hero-v2 {
    margin-bottom: 22px;
}

.product-current-situation {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.situation-main-card,
.situation-kpi-card {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 16px 36px rgba(15,23,42,.06);
}

.situation-main-card h2 {
    margin: 8px 0 18px;
    color: #0f172a;
    font-size: 30px;
    letter-spacing: -0.04em;
}

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

.situation-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
}

.situation-grid span,
.situation-kpi-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.situation-grid strong {
    color: #0f172a;
    font-size: 17px;
}

.situation-kpi-card strong {
    display: block;
    color: #0f172a;
    font-size: 36px;
    letter-spacing: -0.05em;
}

.situation-kpi-card p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.product-chart-wrap {
    height: 320px;
    min-height: 320px;
}

.product-chart-wrap canvas {
    height: 320px !important;
}

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

.product-timeline-v2 .timeline-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

@media (max-width: 1100px) {
    .product-current-situation {
        grid-template-columns: 1fr 1fr;
    }

    .situation-main-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .product-current-situation,
    .situation-grid,
    .product-timeline-v2 {
        grid-template-columns: 1fr;
    }
}

/* Intelligence V2 - Strategic Pattern Library */
.intelligence-v2 {
    max-width: 1180px;
}

.intelligence-hero-v2 {
    margin-bottom: 22px;
}

.intelligence-hero-v2 h1 {
    font-size: 44px;
    letter-spacing: -0.05em;
}

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

.pattern-summary-card,
.intelligence-section-v2 {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(15,23,42,.06);
}

.pattern-summary-card {
    padding: 18px;
}

.pattern-summary-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.pattern-summary-card strong {
    display: block;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.pattern-summary-card p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.intelligence-section-v2 {
    padding: 22px;
    margin-bottom: 24px;
}

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

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

.pattern-card-v2 {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.pattern-card-v2.compact {
    min-height: 170px;
}

.pattern-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.pattern-card-top span {
    color: #334155;
    font-size: 12px;
    font-weight: 950;
}

.pattern-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pattern-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

.pattern-badge.warning {
    background: #ffedd5;
    color: #ea580c;
}

.pattern-badge.neutral {
    background: #e2e8f0;
    color: #334155;
}

.pattern-card-v2 h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.25;
}

.pattern-card-v2 p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.pattern-card-v2 a {
    margin-top: auto;
    color: #2563eb;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
}

.pattern-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.pattern-meta span {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 8px;
    color: #475569;
    font-size: 11px;
    font-weight: 850;
}

.intelligence-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

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

.strategy-row-v2 {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px;
}

.strategy-row-v2 strong {
    display: block;
    color: #0f172a;
}

.strategy-row-v2 span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.strategy-score {
    text-align: right;
}

.scope-details-v2 summary {
    cursor: pointer;
    color: #2563eb;
    font-weight: 950;
}

.scope-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
    margin-top: 16px;
}

.scope-note-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
}

.scope-note-card strong {
    color: #0f172a;
}

.scope-note-card p {
    color: #475569;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 1000px) {
    .intelligence-pattern-strip,
    .intelligence-pattern-grid,
    .compact-pattern-grid,
    .intelligence-two-column,
    .scope-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* Operations V2 monitoring */
.ops-health-score-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: stretch;
}

.ops-health-score-circle {
    min-height: 220px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
}

.ops-health-score-circle strong {
    display: block;
    font-size: 48px;
    color: #0f172a;
    letter-spacing: -0.06em;
    line-height: 1;
}

.ops-health-score-circle span {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ops-health-score-circle.good {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.ops-health-score-circle.warn {
    background: #fff7ed;
    border-color: #fed7aa;
}

.ops-health-score-circle.bad {
    background: #fef2f2;
    border-color: #fecaca;
}

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

.worker-row span:last-child {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.ops-live-feed {
    display: grid;
    gap: 10px;
}

.ops-live-row {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 12px;
    align-items: start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
}

.ops-live-row strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.ops-live-row span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    margin-top: 3px;
}

.ops-live-row p {
    margin: 5px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ops-live-row em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.ops-live-dot {
    display: inline-flex;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 5px;
}

.ops-live-dot.scan {
    background: #2563eb;
}

.ops-live-dot.alert {
    background: #ef4444;
}

.ops-live-dot.move {
    background: #22c55e;
}

@media (max-width: 1000px) {
    .ops-health-score-layout,
    .ops-diagnosis-grid {
        grid-template-columns: 1fr;
    }

    .ops-live-row {
        grid-template-columns: 20px 1fr;
    }

    .ops-live-row em {
        grid-column: 2;
    }
}

/* Compare V2 executive top */
.compare-executive-hero {
    margin-bottom: 22px;
}

.compare-executive-hero h1 {
    margin: 8px 0 10px;
    font-size: 44px;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.compare-executive-hero p {
    max-width: 820px;
    color: #475569;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
}

.compare-market-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 16px;
    margin: 24px 0;
}

.compare-summary-card,
.compare-scoreboard {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(15,23,42,.06);
}

.compare-summary-card {
    padding: 18px;
    border-left: 5px solid #2563eb;
}

.compare-summary-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.compare-summary-card strong {
    display: block;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.compare-summary-card p {
    margin: 8px 0 0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.compare-scoreboard {
    padding: 22px;
    margin-bottom: 24px;
}

.compare-scoreboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.compare-score-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px;
}

.compare-score-row strong {
    display: block;
    color: #0f172a;
    font-size: 20px;
}

.compare-score-row span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.compare-score-row em {
    font-style: normal;
    font-size: 36px;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -0.05em;
}

@media (max-width: 1000px) {
    .compare-market-summary,
    .compare-scoreboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Compare V3 verdict hero */
.compare-verdict-hero-v3 {
    display: grid;
    grid-template-columns: 1fr 0.9fr 1fr;
    gap: 18px;
    align-items: stretch;
    background: #0f172a;
    border-radius: 28px;
    padding: 28px;
    margin: 28px 0;
    box-shadow: 0 28px 60px rgba(15,23,42,.18);
}

.compare-retailer-card-v3 {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    padding: 24px;
    color: #ffffff;
}

.compare-label {
    display: block;
    color: #93c5fd;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .09em;
    margin-bottom: 12px;
}

.compare-retailer-card-v3 > strong {
    display: block;
    font-size: 64px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.compare-retailer-card-v3 > em {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-style: normal;
    font-size: 13px;
    font-weight: 850;
}

.compare-metric-stack {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.compare-metric-stack div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    padding: 11px 12px;
}

.compare-metric-stack span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 850;
}

.compare-metric-stack b {
    color: #ffffff;
    font-size: 14px;
}

.compare-verdict-center-v3 {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    align-self: center;
    text-align: center;
    box-shadow: 0 18px 42px rgba(15,23,42,.16);
}

.compare-verdict-center-v3 > span {
    display: block;
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.compare-verdict-center-v3 h2 {
    margin: 0;
    color: #0f172a;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.compare-verdict-center-v3 p {
    margin: 8px 0 16px;
    color: #475569;
    font-weight: 800;
}

.verdict-reasons-v3 {
    display: grid;
    gap: 8px;
    text-align: left;
}

.verdict-reasons-v3 div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 10px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 850;
}

/* Hide old decorative bar styles if any survived */
.page-compare .matchup-mini-bars {
    display: none !important;
}

@media (max-width: 1000px) {
    .compare-verdict-hero-v3 {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .compare-retailer-card-v3 > strong {
        font-size: 48px;
    }
}

/* Compare scoreboard normalized polish */
.compare-scoreboard-v2 .compare-score-row em {
    font-size: 32px !important;
}

.compare-scoreboard-v2 .compare-score-row span {
    color: #475569 !important;
    font-weight: 850 !important;
}

.compare-retailer-card-v3 .compare-metric-stack div:nth-child(3) {
    opacity: .72;
}

.compare-retailer-card-v3 .compare-metric-stack div:nth-child(3) span::after {
    content: " (internal)";
    opacity: .75;
}

/* Retailers smart status */
.retailer-smart-status {
    display: grid;
    gap: 5px;
    min-width: 150px;
}

.retailer-smart-status small {
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
    max-width: 220px;
    overflow-wrap: anywhere;
}

/* Retailers table overflow fix */
.page-retailers .retailers-table-section {
    max-width: 100%;
    overflow: hidden;
}

.page-retailers .retailers-table-section table,
.page-retailers #retailersTable {
    width: 100%;
    min-width: 1100px;
}

.page-retailers .retailers-table-section {
    overflow-x: auto;
}

.page-retailers .retailers-table-section::-webkit-scrollbar {
    height: 10px;
}

.page-retailers .retailers-table-section::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.page-retailers #retailersTable th,
.page-retailers #retailersTable td {
    white-space: nowrap;
}

.page-retailers #retailersTable td:first-child,
.page-retailers #retailersTable td:nth-child(11) {
    white-space: normal;
    min-width: 160px;
}

.page-retailers .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 260px;
}

/* Retailers table hard containment */
.page-retailers .retailers-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 18px;
}

.page-retailers .retailers-table-scroll table {
    width: max-content !important;
    min-width: 1250px !important;
    border-collapse: collapse;
}

.page-retailers .retailers-table-scroll th,
.page-retailers .retailers-table-scroll td {
    white-space: nowrap;
}

.page-retailers .retailers-table-scroll td:first-child {
    white-space: normal;
    min-width: 150px;
}

.page-retailers .retailers-table-scroll td:nth-child(11) {
    white-space: normal;
    min-width: 220px;
    max-width: 280px;
}

.page-retailers .retailers-table-scroll::-webkit-scrollbar {
    height: 10px;
}

.page-retailers .retailers-table-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
}

/* Retailers simplified table */
.page-retailers .retailers-table-scroll {
    overflow-x: visible !important;
}

.page-retailers .retailers-table-scroll table,
.page-retailers #retailersTable,
.page-retailers .retailers-clean-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed;
}

.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    white-space: normal !important;
    vertical-align: top;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) {
    width: 16%;
}

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) {
    width: 18%;
}

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) {
    width: 15%;
}

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) {
    width: 9%;
}

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) {
    width: 16%;
}

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) {
    width: 14%;
}

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) {
    width: 12%;
}

.page-retailers .retailer-issue-text {
    display: block;
    color: #dc2626;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    max-width: 180px;
    overflow-wrap: anywhere;
}

.page-retailers .retailers-clean-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0 !important;
}

.page-retailers .retailers-clean-actions .table-action-button {
    padding: 6px 8px;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .page-retailers .retailers-clean-table,
    .page-retailers .retailers-clean-table thead,
    .page-retailers .retailers-clean-table tbody,
    .page-retailers .retailers-clean-table th,
    .page-retailers .retailers-clean-table td,
    .page-retailers .retailers-clean-table tr {
        display: block;
        width: 100% !important;
    }

    .page-retailers .retailers-clean-table thead {
        display: none;
    }

    .page-retailers .retailers-clean-table tr {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        padding: 14px;
        margin-bottom: 12px;
    }

    .page-retailers .retailers-clean-table td {
        border: none;
        padding: 8px 0;
    }
}

/* ==========================================================
   Retailers Action Buttons V2
   ========================================================== */

.retailers-clean-actions{
    display:flex;
    flex-direction:column;
    gap:8px;
    align-items:flex-start;
}

.retailers-clean-actions .table-action-button{
    width:125px;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:12px;

    background:#ffffff;
    color:#1f2937;

    border:1px solid #dbe3ef;

    font-size:14px;
    font-weight:700;
    text-decoration:none;

    transition:all .18s ease;
}

.retailers-clean-actions .table-action-button:hover{
    background:#f8fafc;
    border-color:#2563eb;
    color:#2563eb;
}

/* Workspace = Primary */

.retailers-clean-actions .table-action-button:first-child{
    background:#2563eb;
    color:#ffffff;
    border:none;
}

.retailers-clean-actions .table-action-button:first-child:hover{
    background:#1d4ed8;
    color:#ffffff;
}

/* Pause button */

.retailers-clean-actions .warning-button{
    background:#fff7ed;
    color:#c2410c;
    border:1px solid #fdba74;
}

.retailers-clean-actions .warning-button:hover{
    background:#ffedd5;
    color:#9a3412;
}

/* Enable button */

.retailers-clean-actions .success-button{
    background:#ecfdf5;
    color:#15803d;
    border:1px solid #86efac;
}

.retailers-clean-actions .success-button:hover{
    background:#dcfce7;
}

/* Better spacing */

.retailers-clean-actions .table-action-button + .table-action-button{
    margin-top:0;
}


/* Retailers table final containment */
.page-retailers .retailers-table-section {
    overflow: hidden !important;
}

.page-retailers .retailers-clean-table {
    width: 100% !important;
    table-layout: fixed !important;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) {
    width: 16% !important;
}

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) {
    width: 18% !important;
}

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) {
    width: 12% !important;
}

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) {
    width: 9% !important;
}

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) {
    width: 15% !important;
    overflow-wrap: anywhere;
}

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) {
    width: 15% !important;
    overflow-wrap: anywhere;
}

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) {
    width: 15% !important;
}

/* Compact action buttons so they do not push table outside */
.page-retailers .retailers-clean-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.page-retailers .retailers-clean-actions .table-action-button {
    width: auto !important;
    min-width: 0 !important;
    height: 34px !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1 !important;
}

/* Workspace gets full row */
.page-retailers .retailers-clean-actions .table-action-button:first-child {
    grid-column: 1 / -1 !important;
}

/* Pause / Enable also full row */
.page-retailers .retailers-clean-actions .warning-button,
.page-retailers .retailers-clean-actions .success-button {
    grid-column: 1 / -1 !important;
}

/* Make long text wrap instead of expanding columns */
.page-retailers .retailers-clean-table td,
.page-retailers .retailers-clean-table th {
    overflow-wrap: anywhere !important;
}


/* Retailers actions final: Open + More */
.page-retailers .retailer-action-menu {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.page-retailers .retailer-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .18);
}

.page-retailers .retailer-primary-action:hover {
    background: #1d4ed8;
}

.page-retailers .retailer-more-actions {
    position: relative;
}

.page-retailers .retailer-more-actions summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.page-retailers .retailer-more-actions summary::-webkit-details-marker {
    display: none;
}

.page-retailers .retailer-more-actions summary::after {
    content: "⋯";
    margin-left: 6px;
    color: #64748b;
}

.page-retailers .retailer-more-menu {
    position: absolute;
    right: 0;
    top: 42px;
    z-index: 50;
    min-width: 170px;
    display: grid;
    gap: 4px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, .16);
}

.page-retailers .retailer-more-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.page-retailers .retailer-more-menu a:hover {
    background: #f1f5f9;
}

.page-retailers .retailer-more-menu .danger-link {
    color: #c2410c;
}

.page-retailers .retailer-more-menu .success-link {
    color: #15803d;
}

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) {
    width: 12% !important;
}

/* Retailers visible action buttons - final */
.page-retailers .retailer-action-menu,
.page-retailers .retailer-more-actions,
.page-retailers .retailer-more-menu {
    display: none !important;
}

.page-retailers .retailers-visible-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 170px;
    min-width: 170px;
}

.page-retailers .retailers-visible-actions a {
    height: 32px;
    border-radius: 10px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.page-retailers .retailer-action-primary {
    grid-column: 1 / -1;
    background: #2563eb;
    color: #ffffff !important;
    border: 1px solid #2563eb;
}

.page-retailers .retailer-action-secondary {
    background: #ffffff;
    color: #0f172a !important;
    border: 1px solid #dbe4ef;
}

.page-retailers .retailer-action-secondary:hover {
    border-color: #2563eb;
    color: #2563eb !important;
}

.page-retailers .retailer-action-warning {
    grid-column: 1 / -1;
    background: #fff7ed;
    color: #c2410c !important;
    border: 1px solid #fdba74;
}

.page-retailers .retailer-action-success {
    grid-column: 1 / -1;
    background: #ecfdf5;
    color: #15803d !important;
    border: 1px solid #86efac;
}

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
}

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) {
    width: 13% !important;
}

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) {
    width: 14% !important;
}

/* ==========================================================
   Retailers table final polish
   ========================================================== */

.page-retailers .retailers-clean-table {
    table-layout: fixed !important;
}

.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    padding: 18px 14px !important;
    vertical-align: top !important;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) { width: 18% !important; }

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) { width: 19% !important; }

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) { width: 12% !important; }

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) { width: 9% !important; }

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) { width: 15% !important; }

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) { width: 13% !important; }

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) { width: 14% !important; }

.page-retailers .retailers-visible-actions {
    width: 150px !important;
    min-width: 150px !important;
    gap: 5px !important;
}

.page-retailers .retailers-visible-actions a {
    height: 28px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    padding: 0 8px !important;
}

.page-retailers .retailer-action-primary {
    height: 34px !important;
    font-size: 13px !important;
}

.page-retailers td:nth-child(3),
.page-retailers td:nth-child(3) * {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.page-retailers td:nth-child(3) .badge,
.page-retailers td:nth-child(3) .badge-muted {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}


/* Retailers compact final fix */
.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    padding: 14px 10px !important;
    font-size: 14px !important;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) { width: 16% !important; }

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) { width: 19% !important; }

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) { width: 11% !important; }

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) { width: 8% !important; }

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) { width: 14% !important; }

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) { width: 14% !important; }

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) {
    width: 18% !important;
    min-width: 190px !important;
}

/* Compatibility: small readable badge */
.page-retailers .retailers-clean-table td:nth-child(3) .badge,
.page-retailers .retailers-clean-table td:nth-child(3) .badge-muted {
    display: inline-flex !important;
    width: auto !important;
    max-width: 100px !important;
    padding: 4px 7px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

.page-retailers .retailers-clean-table td:nth-child(3) .muted-small {
    margin-top: 5px !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Actions: all visible, compact, not clipped */
.page-retailers .retailers-visible-actions {
    width: 180px !important;
    min-width: 180px !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
}

.page-retailers .retailers-visible-actions a {
    height: 28px !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    font-weight: 850 !important;
}

.page-retailers .retailer-action-primary {
    grid-column: span 1 !important;
    height: 28px !important;
    font-size: 11px !important;
}

.page-retailers .retailer-action-warning,
.page-retailers .retailer-action-success {
    grid-column: span 2 !important;
}

/* Status badge smaller */
.page-retailers .retailer-smart-status .badge {
    padding: 6px 10px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    max-width: 170px !important;
}

.page-retailers .retailer-smart-status small {
    font-size: 11px !important;
}

/* Prevent clipping */
.page-retailers .retailers-table-section,
.page-retailers .retailers-table-scroll {
    overflow: visible !important;
}

/* Retailers final clean action links */
.page-retailers .retailers-clean-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    padding: 14px 12px !important;
    font-size: 14px !important;
    vertical-align: top !important;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) { width: 17% !important; }

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) { width: 19% !important; }

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) { width: 13% !important; }

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) { width: 8% !important; }

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) { width: 15% !important; }

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) { width: 15% !important; }

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) { width: 13% !important; }

.page-retailers .retailers-visible-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 8px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.page-retailers .retailers-visible-actions a {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #2563eb !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
}

.page-retailers .retailers-visible-actions a:hover {
    text-decoration: underline !important;
}

.page-retailers .retailers-visible-actions .retailer-action-warning {
    color: #c2410c !important;
}

.page-retailers .retailers-visible-actions .retailer-action-success {
    color: #15803d !important;
}

.page-retailers .retailers-clean-table td:nth-child(3) .badge,
.page-retailers .retailers-clean-table td:nth-child(3) .badge-muted {
    display: inline-flex !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.page-retailers .retailers-table-section,
.page-retailers .retailers-table-scroll {
    overflow: hidden !important;
}


/* Retailers customer-facing vertical action buttons */
.page-retailers .retailers-visible-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    width: 92px !important;
    min-width: 92px !important;
}

.page-retailers .retailers-visible-actions a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 92px !important;
    height: 30px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    border: 1px solid #dbe4ef !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.page-retailers .retailers-visible-actions a:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    text-decoration: none !important;
}

.page-retailers .retailers-visible-actions .retailer-action-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.page-retailers .retailers-visible-actions .retailer-action-primary:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.page-retailers .retailers-visible-actions .retailer-action-warning {
    background: #fff7ed !important;
    color: #c2410c !important;
    border-color: #fdba74 !important;
}

.page-retailers .retailers-visible-actions .retailer-action-success {
    background: #ecfdf5 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) {
    width: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
}

/* Retailers actions 2x2 layout */
.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) {
    width: 170px !important;
    min-width: 170px !important;
    max-width: 170px !important;
}

.page-retailers .retailers-visible-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 160px !important;
    min-width: 160px !important;
}

.page-retailers .retailers-visible-actions a {
    width: auto !important;
    height: 34px !important;
    padding: 0 10px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
}

/* Open + Scan top row */
.page-retailers .retailer-action-primary {
    grid-column: auto !important;
}

/* Pause / Enable full width bottom */
.page-retailers .retailer-action-warning,
.page-retailers .retailer-action-success {
    grid-column: 1 / -1 !important;
}

/* Stop header words breaking badly */
.page-retailers .retailers-clean-table th {
    white-space: nowrap !important;
}

/* Give compatibility/products slightly more room */
.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) {
    width: 14% !important;
}

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) {
    width: 8% !important;
}


/* ==========================================================
   Retailers table layout reset - template style
   ========================================================== */

.page-retailers .retailers-clean-table {
    display: block !important;
    width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
}

.page-retailers .retailers-clean-table thead,
.page-retailers .retailers-clean-table tbody {
    display: block !important;
    width: 100% !important;
}

.page-retailers .retailers-clean-table thead tr,
.page-retailers .retailers-clean-table tbody tr {
    display: grid !important;
    grid-template-columns: 1.15fr 1.25fr .8fr .55fr 1fr 1fr 180px !important;
    gap: 18px !important;
    align-items: start !important;
    width: 100% !important;
}

.page-retailers .retailers-clean-table thead tr {
    background: #0f172a !important;
    border-radius: 22px 22px 0 0 !important;
    padding: 18px 22px !important;
}

.page-retailers .retailers-clean-table tbody tr {
    padding: 22px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
}

.page-retailers .retailers-clean-table th {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

/* Actions exactly visible: 2x2 */
.page-retailers .retailers-visible-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
}

.page-retailers .retailers-visible-actions a {
    width: 86px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.page-retailers .retailer-action-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
    grid-column: auto !important;
}

.page-retailers .retailer-action-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #dbe4ef !important;
}

.page-retailers .retailer-action-warning {
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fdba74 !important;
    grid-column: auto !important;
}

.page-retailers .retailer-action-success {
    background: #ecfdf5 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
    grid-column: auto !important;
}

/* Compatibility badge readable */
.page-retailers .retailers-clean-table td:nth-child(3) .badge,
.page-retailers .retailers-clean-table td:nth-child(3) .badge-muted {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

/* Prevent right-side clipping */
.page-retailers .retailers-table-section,
.page-retailers .retailers-table-scroll {
    overflow: visible !important;
}

/* Mobile fallback */
@media (max-width: 1100px) {
    .page-retailers .retailers-clean-table thead {
        display: none !important;
    }

    .page-retailers .retailers-clean-table tbody tr {
        display: block !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 18px !important;
        margin-bottom: 14px !important;
    }

    .page-retailers .retailers-clean-table td {
        margin-bottom: 12px !important;
    }
}


/* ==========================================================
   Retailers emergency reset + text-only actions
   ========================================================== */

.page-retailers .retailers-clean-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.page-retailers .retailers-clean-table thead {
    display: table-header-group !important;
}

.page-retailers .retailers-clean-table tbody {
    display: table-row-group !important;
}

.page-retailers .retailers-clean-table tr {
    display: table-row !important;
}

.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    display: table-cell !important;
    padding: 18px 14px !important;
    vertical-align: top !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) { width: 17% !important; }

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) { width: 19% !important; }

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) { width: 13% !important; }

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) { width: 8% !important; }

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) { width: 15% !important; }

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) { width: 15% !important; }

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) { width: 13% !important; }

/* text-only action links */
.page-retailers .retailers-visible-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.page-retailers .retailers-visible-actions a {
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: #2563eb !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
}

.page-retailers .retailers-visible-actions a:hover {
    text-decoration: underline !important;
}

.page-retailers .retailers-visible-actions .retailer-action-warning {
    color: #c2410c !important;
}

.page-retailers .retailers-visible-actions .retailer-action-success {
    color: #15803d !important;
}

/* compatibility badge readable */
.page-retailers .retailers-clean-table td:nth-child(3) .badge,
.page-retailers .retailers-clean-table td:nth-child(3) .badge-muted {
    display: inline-flex !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.page-retailers .retailers-table-section,
.page-retailers .retailers-table-scroll {
    overflow: hidden !important;
}


/* Retailers vertical action links + readable table */
.page-retailers .retailers-clean-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    padding: 16px 14px !important;
    vertical-align: top !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) { width: 17% !important; }

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) { width: 20% !important; }

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) { width: 13% !important; }

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) { width: 9% !important; }

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) { width: 12% !important; }

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) { width: 16% !important; }

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) { width: 13% !important; }

/* Vertical actions */
.page-retailers .retailers-visible-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 5px !important;
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
}

.page-retailers .retailers-visible-actions a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 90px !important;
    height: 27px !important;
    padding: 0 6px !important;
    border-radius: 8px !important;
    border: 1px solid #dbe4ef !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.page-retailers .retailers-visible-actions .retailer-action-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.page-retailers .retailers-visible-actions .retailer-action-warning {
    background: #fff7ed !important;
    color: #c2410c !important;
    border-color: #fdba74 !important;
}

.page-retailers .retailers-visible-actions .retailer-action-success {
    background: #ecfdf5 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

/* Stop words breaking letter-by-letter */
.page-retailers .retailers-clean-table td,
.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table a,
.page-retailers .muted-small {
    word-break: normal !important;
    overflow-wrap: normal !important;
}

/* Compatibility badge readable and compact */
.page-retailers .retailers-clean-table td:nth-child(3) .badge,
.page-retailers .retailers-clean-table td:nth-child(3) .badge-muted {
    display: inline-flex !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

/* Retailers table spacing polish */
.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    padding: 18px 16px !important;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) { width: 16% !important; }

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) { width: 20% !important; }

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) { width: 13% !important; }

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) { width: 8% !important; }

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) { width: 13% !important; }

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) { width: 15% !important; }

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) { width: 15% !important; }

.page-retailers .retailers-clean-table td:first-child a {
    display: block;
    line-height: 1.15 !important;
}

.page-retailers .retailers-clean-table td:first-child .muted-small {
    margin-top: 6px !important;
    line-height: 1.35 !important;
}

.page-retailers .retailer-smart-status .badge {
    width: 160px !important;
    justify-content: center !important;
}

.page-retailers .retailer-smart-status small {
    display: block !important;
    margin-top: 7px !important;
    line-height: 1.25 !important;
}

.page-retailers .retailers-visible-actions {
    width: 105px !important;
    min-width: 105px !important;
}

.page-retailers .retailers-visible-actions a {
    width: 105px !important;
    height: 30px !important;
}

.page-retailers .retailers-clean-table tbody tr {
    min-height: 142px !important;
}


/* ==========================================================
   Retailers overlap + hover artifact fix
   ========================================================== */

/* Remove weird hover/selection artifacts */
.page-retailers .retailers-clean-table tr:hover,
.page-retailers .retailers-clean-table td:hover,
.page-retailers .retailers-clean-table th:hover {
    background: transparent !important;
    box-shadow: none !important;
}

/* Clear old pseudo/overlay effects if any */
.page-retailers .retailers-clean-table tr::before,
.page-retailers .retailers-clean-table tr::after,
.page-retailers .retailers-clean-table td::before,
.page-retailers .retailers-clean-table td::after {
    display: none !important;
    content: none !important;
}

/* Better column distribution */
.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) {
    width: 15% !important;
}

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) {
    width: 22% !important;
}

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) {
    width: 12% !important;
}

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) {
    width: 7% !important;
}

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) {
    width: 11% !important;
}

.page-retailers .retailers-clean-table th:nth-child(6),
.page-retailers .retailers-clean-table td:nth-child(6) {
    width: 16% !important;
}

.page-retailers .retailers-clean-table th:nth-child(7),
.page-retailers .retailers-clean-table td:nth-child(7) {
    width: 17% !important;
}

/* Compact row height but avoid overlapping */
.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    padding: 20px 14px !important;
    vertical-align: top !important;
}

/* Retailer column: stop ugly letter-by-letter wrapping */
.page-retailers .retailers-clean-table td:first-child {
    min-width: 140px !important;
}

.page-retailers .retailers-clean-table td:first-child a {
    display: inline-block !important;
    max-width: 140px !important;
    line-height: 1.2 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.page-retailers .retailers-clean-table td:first-child .muted-small {
    max-width: 130px !important;
    line-height: 1.25 !important;
}

/* Status badge: no overflow into compatibility */
.page-retailers .retailer-smart-status {
    max-width: 100% !important;
    overflow: hidden !important;
}

.page-retailers .retailer-smart-status .badge {
    width: auto !important;
    min-width: 120px !important;
    max-width: 180px !important;
    padding: 7px 14px !important;
    justify-content: center !important;
}

.page-retailers .retailer-smart-status small {
    max-width: 180px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* Compatibility clean */
.page-retailers .retailers-clean-table td:nth-child(3) {
    min-width: 105px !important;
}

.page-retailers .retailers-clean-table td:nth-child(3) .badge,
.page-retailers .retailers-clean-table td:nth-child(3) .badge-muted {
    max-width: 105px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Last success shorter display area */
.page-retailers .retailers-clean-table td:nth-child(5) {
    white-space: nowrap !important;
}

/* Actions vertical buttons, contained */
.page-retailers .retailers-visible-actions {
    width: 100px !important;
    min-width: 100px !important;
    max-width: 100px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
}

.page-retailers .retailers-visible-actions a {
    width: 100px !important;
    height: 30px !important;
    border-radius: 9px !important;
}

/* Prevent body/table horizontal bleed */
.page-retailers .retailers-table-section {
    overflow: hidden !important;
}


/* Retailers 5-column clean table */
.page-retailers .retailers-clean-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.page-retailers .retailers-clean-table thead { display: table-header-group !important; }
.page-retailers .retailers-clean-table tbody { display: table-row-group !important; }
.page-retailers .retailers-clean-table tr { display: table-row !important; }

.page-retailers .retailers-clean-table th,
.page-retailers .retailers-clean-table td {
    display: table-cell !important;
    padding: 18px 20px !important;
    vertical-align: top !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    background: transparent !important;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) { width: 22% !important; }

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) { width: 28% !important; }

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) { width: 18% !important; }

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) { width: 14% !important; }

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) { width: 18% !important; }

.page-retailers .retailers-visible-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    width: 170px !important;
}

.page-retailers .retailers-visible-actions a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.page-retailers .retailer-action-primary {
    background: #2563eb !important;
    color: #fff !important;
    border: 1px solid #2563eb !important;
}

.page-retailers .retailer-action-secondary {
    background: #fff !important;
    color: #0f172a !important;
    border: 1px solid #dbe4ef !important;
}

.page-retailers .retailer-action-warning {
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fdba74 !important;
}

.page-retailers .retailer-action-success {
    background: #ecfdf5 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
}

.page-retailers .retailer-smart-status .badge {
    width: auto !important;
    min-width: 130px !important;
    max-width: 180px !important;
    justify-content: center !important;
}

.page-retailers .retailer-smart-status small {
    display: block !important;
    margin-top: 7px !important;
    white-space: normal !important;
}

.page-retailers .retailers-clean-table td:nth-child(3) .badge,
.page-retailers .retailers-clean-table td:nth-child(3) .badge-muted {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    white-space: nowrap !important;
}

.page-retailers .retailers-clean-table tr:hover,
.page-retailers .retailers-clean-table td:hover {
    background: transparent !important;
    box-shadow: none !important;
}


/* ==========================================================
   Retailers table clean reset
   ========================================================== */

.page-retailers .retailers-table-section {
    overflow: hidden !important;
}

.page-retailers .retailers-table-scroll {
    overflow: visible !important;
}

.page-retailers .retailers-clean-table {
    display: table !important;
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
}

.page-retailers .retailers-clean-table thead {
    display: table-header-group !important;
}

.page-retailers .retailers-clean-table tbody {
    display: table-row-group !important;
}

.page-retailers .retailers-clean-table tr {
    display: table-row !important;
    background: transparent !important;
    box-shadow: none !important;
}

.page-retailers .retailers-clean-table thead tr {
    background: #0f172a !important;
}

.page-retailers .retailers-clean-table th {
    display: table-cell !important;
    background: #0f172a !important;
    color: #ffffff !important;
    padding: 18px 20px !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.page-retailers .retailers-clean-table td {
    display: table-cell !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 22px 20px !important;
    vertical-align: top !important;
    border-bottom: 1px solid #e2e8f0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.page-retailers .retailers-clean-table th:nth-child(1),
.page-retailers .retailers-clean-table td:nth-child(1) { width: 22% !important; }

.page-retailers .retailers-clean-table th:nth-child(2),
.page-retailers .retailers-clean-table td:nth-child(2) { width: 28% !important; }

.page-retailers .retailers-clean-table th:nth-child(3),
.page-retailers .retailers-clean-table td:nth-child(3) { width: 18% !important; }

.page-retailers .retailers-clean-table th:nth-child(4),
.page-retailers .retailers-clean-table td:nth-child(4) { width: 14% !important; }

.page-retailers .retailers-clean-table th:nth-child(5),
.page-retailers .retailers-clean-table td:nth-child(5) { width: 18% !important; }

.page-retailers .retailers-clean-table td:first-child a {
    display: inline !important;
    color: #2563eb !important;
    font-weight: 950 !important;
    line-height: 1.2 !important;
}

.page-retailers .muted-small {
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}

.page-retailers .retailer-smart-status .badge {
    display: inline-flex !important;
    min-width: 130px !important;
    max-width: 180px !important;
    justify-content: center !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 950 !important;
}

.page-retailers .retailer-smart-status small {
    display: block !important;
    margin-top: 8px !important;
    white-space: normal !important;
    max-width: 240px !important;
}

.page-retailers .retailers-clean-table td:nth-child(3) .badge,
.page-retailers .retailers-clean-table td:nth-child(3) .badge-muted {
    display: inline-flex !important;
    background: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

/* Actions */
.page-retailers .retailers-visible-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    width: 160px !important;
}

.page-retailers .retailers-visible-actions a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    padding: 0 8px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.page-retailers .retailer-action-primary {
    background: #2563eb !important;
    color: #ffffff !important;
    border: 1px solid #2563eb !important;
}

.page-retailers .retailer-action-secondary {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #dbe4ef !important;
}

.page-retailers .retailer-action-warning {
    background: #fff7ed !important;
    color: #c2410c !important;
    border: 1px solid #fdba74 !important;
}

.page-retailers .retailer-action-success {
    background: #ecfdf5 !important;
    color: #15803d !important;
    border: 1px solid #86efac !important;
}

.page-retailers .retailers-clean-table tr:hover,
.page-retailers .retailers-clean-table td:hover {
    background: #ffffff !important;
    box-shadow: none !important;
}


/* ==========================================================
   Retailers clean grid manager
   ========================================================== */

.rv-retailer-manager {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 28px;
    padding: 26px;
    margin-top: 28px;
    box-shadow: 0 18px 42px rgba(15,23,42,.06);
}

.rv-retailer-controls {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 14px;
    margin: 22px 0 18px;
}

.rv-retailer-controls input,
.rv-retailer-controls select {
    height: 46px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    background: #ffffff;
}

.rv-retailer-pagination {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: #334155;
    font-weight: 850;
}

.rv-retailer-pagination button {
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid #dbe4ef;
    background: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.rv-retailer-grid-header,
.rv-retailer-row {
    display: grid;
    grid-template-columns: 1.15fr 1.35fr .85fr .55fr .75fr 170px;
    gap: 18px;
    align-items: center;
}

.rv-retailer-grid-header {
    background: #0f172a;
    color: #ffffff;
    padding: 16px 18px;
    border-radius: 18px 18px 0 0;
    font-size: 13px;
    font-weight: 950;
}

.rv-retailer-row {
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.rv-retailer-name a {
    color: #2563eb;
    font-size: 16px;
    font-weight: 950;
    text-decoration: none;
}

.rv-retailer-name span,
.rv-retailer-status span,
.rv-retailer-compat span,
.rv-retailer-products span,
.rv-retailer-lastscan span {
    display: block;
    margin-top: 5px;
    color: #475569;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

.rv-pill {
    display: inline-flex;
    min-width: 118px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.rv-pill.green {
    background: #16a34a;
    color: #ffffff;
}

.rv-pill.amber {
    background: #f59e0b;
    color: #ffffff;
}

.rv-pill.red {
    background: #dc2626;
    color: #ffffff;
}

.rv-retailer-compat strong {
    display: inline-flex;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.rv-retailer-products strong {
    font-size: 17px;
    font-weight: 950;
    color: #0f172a;
}

.rv-retailer-lastscan {
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
}

.rv-retailer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.rv-retailer-actions a {
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid #dbe4ef;
    color: #0f172a;
    background: #ffffff;
}

.rv-retailer-actions a.primary {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.rv-retailer-actions a.warning {
    background: #fff7ed;
    border-color: #fdba74;
    color: #c2410c;
}

.rv-retailer-actions a.success {
    background: #ecfdf5;
    border-color: #86efac;
    color: #15803d;
}

@media (max-width: 1100px) {
    .rv-retailer-controls {
        grid-template-columns: 1fr;
    }

    .rv-retailer-grid-header {
        display: none;
    }

    .rv-retailer-row {
        grid-template-columns: 1fr;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        margin-bottom: 12px;
    }

    .rv-retailer-actions {
        max-width: 220px;
    }
}

/* =======================================================
   Retailers Compatibility Badge Final
======================================================= */

.rv-retailer-compat strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 118px !important;
    height: 28px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    border: 1px solid #d5dce7 !important;
    background: #eef2f7 !important;
    color: #334155 !important;
    white-space: nowrap !important;
}

.rv-retailer-compat strong.supported {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0369a1 !important;
}

.rv-retailer-compat strong.unsupported {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

.rv-retailer-compat strong.advanced {
    background: #f3e8ff !important;
    border-color: #d8b4fe !important;
    color: #7e22ce !important;
}

.rv-retailer-compat strong.pending {
    background: #fef3c7 !important;
    border-color: #fcd34d !important;
    color: #92400e !important;
}


/* =======================================================
   FORCE Retailers Compatibility Colors
======================================================= */

.page-retailers .rv-retailer-compat strong.supported {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0369a1 !important;
}

.page-retailers .rv-retailer-compat strong.unsupported {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

.page-retailers .rv-retailer-compat strong.advanced {
    background: #f3e8ff !important;
    border-color: #d8b4fe !important;
    color: #7e22ce !important;
}

.page-retailers .rv-retailer-compat strong.pending {
    background: #fef3c7 !important;
    border-color: #fcd34d !important;
    color: #92400e !important;
}

.page-retailers .rv-retailer-compat strong {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 118px !important;
    height: 28px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}


/* ==========================================================
   Retailer Workspace V2 Executive Decision Layer
   ========================================================== */

.retailer-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.retailer-decision-card {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, .06);
}

.retailer-decision-card .eyebrow {
    display: block;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 10px;
}

.retailer-decision-card h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.15;
}

.retailer-decision-card p {
    margin: 0;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.action-card {
    border-left: 5px solid #2563eb;
}

.decision-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.decision-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.decision-level.level-high {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.decision-level.level-medium {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.decision-level.level-low {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.today-intel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.today-intel-grid div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 10px;
}

.today-intel-grid strong {
    display: block;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.today-intel-grid span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

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

.trend-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
}

.trend-list span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.trend-list strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.confidence-card h2 {
    font-size: 38px;
}

.confidence-bar {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 18px;
}

.confidence-bar div {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
}

@media (max-width: 900px) {
    .retailer-decision-grid {
        grid-template-columns: 1fr;
    }

    .today-intel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ==========================================================
   Executive Action Queue polish
   ========================================================== */

.priority-card {
    min-height: 280px !important;
}

.priority-pill {
    border-radius: 999px !important;
    padding: 7px 10px !important;
}

.alert-action span {
    display: block;
    margin-bottom: 5px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.alert-time {
    display: grid;
    gap: 2px;
}

.alert-time span {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.priority-open-retailer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
}

.priority-open-retailer:hover {
    background: #2563eb;
}

.priority-card .priority-arrow {
    display: none !important;
}


/* ==========================================================
   Customer Settings Page
   ========================================================== */

.page-settings {
    background: #f3f7fc;
}

.settings-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 28px 80px;
}

.settings-hero {
    margin-bottom: 24px;
}

.settings-hero h1 {
    margin: 8px 0 10px;
    font-size: 44px;
    letter-spacing: -0.05em;
    color: #0f172a;
}

.settings-hero p {
    max-width: 780px;
    color: #475569;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.settings-feedback {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 900;
}

.settings-feedback.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.settings-feedback.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1.2fr .9fr .9fr;
    gap: 18px;
    margin-bottom: 18px;
}

.settings-card {
    background: #ffffff;
    border: 1px solid #dbe4ef;
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 16px 40px rgba(15,23,42,.06);
}

.settings-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.settings-card h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: -0.035em;
}

.settings-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.settings-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.settings-field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.settings-field span {
    color: #334155;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.settings-field input,
.settings-field select {
    height: 44px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    padding: 0 13px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
    background: #ffffff;
}

.settings-toggle {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    margin-bottom: 10px;
    cursor: pointer;
}

.settings-toggle input {
    margin-top: 4px;
    transform: scale(1.15);
}

.settings-toggle strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
}

.settings-toggle span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
}

.competitor-settings-card {
    margin-top: 18px;
}

.competitor-check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.competitor-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
}

.competitor-check input {
    margin-top: 4px;
}

.competitor-check strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.competitor-check em {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
}

.settings-actions {
    margin-top: 20px;
}

.settings-save-btn,
.settings-test-form button {
    height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.settings-test-form {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-test-form button {
    background: #0f172a;
}

.settings-test-form span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1050px) {
    .settings-grid,
    .settings-two-col,
    .competitor-check-grid {
        grid-template-columns: 1fr;
    }
}


/* Settings summary card */
.settings-summary-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: #0f172a;
    color: #ffffff;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 18px 42px rgba(15,23,42,.16);
}

.settings-summary-card h2 {
    margin: 8px 0 8px;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.settings-summary-card p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 750;
}

.settings-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 10px;
}

.settings-summary-stats div {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 14px;
}

.settings-summary-stats strong {
    display: block;
    font-size: 20px;
    font-weight: 950;
}

.settings-summary-stats span {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.include-all-toggle {
    border-color: #bfdbfe;
    background: #eff6ff;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .settings-summary-card {
        display: grid;
    }

    .settings-summary-stats {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Executive Alerts Intelligence Layer
   ========================================================== */

.alert-executive-brief {
    background: #0f172a;
    color: #ffffff;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 18px 42px rgba(15,23,42,.16);
}

.alert-executive-brief h2 {
    margin: 8px 0 14px;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.alert-executive-brief ul {
    margin: 0;
    padding-left: 18px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
}

.executive-decision-card {
    min-height: 360px !important;
}

.confidence-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 950;
    white-space: nowrap;
}

.decision-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.decision-facts div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px;
}

.decision-facts strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.decision-facts span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.price-range-note {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 12px;
}

.why-generated {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 10px;
    margin-top: 10px;
}

.why-generated span {
    display: block;
    color: #2563eb;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 5px;
}

.why-generated p {
    margin: 0;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
}

.executive-decision-card .alert-time {
    margin-top: 10px;
}


/* ==========================================================
   Executive Alerts Card Layout Fix
   Equal-height horizontal decision cards
   ========================================================== */

.priority-alert-cards {
    display: flex !important;
    align-items: stretch !important;
    gap: 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 8px 4px 22px !important;
    scroll-snap-type: x proximity !important;
}

.priority-alert-cards::-webkit-scrollbar {
    height: 10px !important;
}

.priority-alert-cards::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 999px !important;
}

.priority-card.executive-decision-card {
    flex: 0 0 320px !important;
    width: 320px !important;
    min-height: 650px !important;
    height: auto !important;

    display: flex !important;
    flex-direction: column !important;

    padding: 18px !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 12px 30px rgba(15,23,42,.06) !important;

    box-sizing: border-box !important;
    scroll-snap-align: start !important;
}

.priority-card.executive-decision-card .priority-card-top {
    min-height: 34px !important;
    margin-bottom: 14px !important;
}

.priority-card.executive-decision-card .event-pill {
    min-height: 28px !important;
    margin: 0 0 14px !important;
}

.priority-card.executive-decision-card h3 {
    min-height: 62px !important;
    margin: 0 0 8px !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
}

.priority-card.executive-decision-card .retailer-name {
    min-height: 22px !important;
    margin-bottom: 12px !important;
    font-size: 13px !important;
    font-weight: 850 !important;
}

.priority-card.executive-decision-card .decision-facts {
    min-height: 82px !important;
    margin: 12px 0 !important;
}

.priority-card.executive-decision-card .price-range-note {
    min-height: 48px !important;
    margin-bottom: 12px !important;
}

.priority-card.executive-decision-card .alert-action {
    min-height: 116px !important;
    margin: 0 0 12px !important;
}

.priority-card.executive-decision-card .why-generated {
    min-height: 94px !important;
    margin: 0 0 12px !important;
}

.priority-card.executive-decision-card .alert-time {
    min-height: 38px !important;
    margin-top: auto !important;
    margin-bottom: 10px !important;
}

.priority-card.executive-decision-card .priority-open-retailer {
    width: 100% !important;
    height: 36px !important;
    margin-top: 0 !important;
    border-radius: 999px !important;
}

.expanded-alert-grid {
    margin-top: 14px !important;
}

@media (max-width: 900px) {
    .priority-alert-cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        overflow-x: visible !important;
    }

    .priority-card.executive-decision-card {
        width: 100% !important;
        flex: none !important;
        min-height: auto !important;
    }
}


/* Settings email test action layout */
.settings-test-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.settings-test-actions .settings-test-form {
    margin-top: 0;
}

.settings-test-actions .settings-test-form:nth-child(2) button {
    background: #2563eb;
}

/* ==========================================================
   Internal Admin / Operations Console
   ========================================================== */

.internal-admin-banner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    background: #111827;
    color: #ffffff;
    border-radius: 18px;
    padding: 16px 20px;
    margin: 0 0 22px;
    box-shadow: 0 14px 34px rgba(15,23,42,.16);
}

.internal-admin-banner strong {
    font-size: 15px;
    font-weight: 950;
}

.internal-admin-banner span {
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 750;
}

@media (max-width: 900px) {
    .internal-admin-banner {
        display: grid;
    }
}

/* Landing Page V3 */
.landing-v3 {
    background: #07111f;
    color: #e5edf7;
    font-family: Inter, Arial, sans-serif;
}

.landing-v3 a {
    color: inherit;
    text-decoration: none;
}

.landing-v3-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-v3-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-v3-logo {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    display: grid;
    place-items: center;
    font-weight: 900;
}

.landing-v3-brand strong {
    display: block;
    font-size: 20px;
}

.landing-v3-brand span {
    color: #94a3b8;
    font-size: 12px;
}

.landing-v3-nav nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #cbd5e1;
    font-size: 14px;
}

.landing-v3-nav .login-link {
    background: #111827;
    border: 1px solid #334155;
    padding: 10px 14px;
    border-radius: 12px;
}

.landing-v3-hero {
    max-width: 1180px;
    margin: 40px auto 0;
    padding: 40px 24px 80px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 44px;
    align-items: center;
}

.landing-v3 .eyebrow,
.landing-v3-final span,
.section-heading span {
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 900;
}

.hero-copy h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: .95;
    letter-spacing: -0.055em;
    margin: 18px 0;
    color: #f8fafc;
}

.hero-copy p {
    color: #b6c3d1;
    font-size: 18px;
    line-height: 1.7;
    max-width: 680px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.primary-cta,
.secondary-cta {
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 900;
}

.primary-cta {
    background: #2563eb;
    color: white;
}

.secondary-cta {
    border: 1px solid #334155;
    color: #cbd5e1;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    color: #94a3b8;
    font-size: 13px;
}

.trust-row span {
    background: rgba(148,163,184,.08);
    border: 1px solid rgba(148,163,184,.14);
    border-radius: 999px;
    padding: 8px 11px;
}

.hero-dashboard {
    background: linear-gradient(180deg, #101b2e, #0b1220);
    border: 1px solid #243044;
    border-radius: 28px;
    padding: 26px;
    box-shadow: 0 40px 100px rgba(0,0,0,.35);
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 22px;
}

.dashboard-top strong {
    background: rgba(239,68,68,.15);
    color: #fecaca;
    padding: 7px 10px;
    border-radius: 999px;
}

.hero-dashboard h2 {
    font-size: 28px;
    line-height: 1.15;
    margin: 0 0 12px;
}

.hero-dashboard p {
    color: #94a3b8;
    line-height: 1.6;
}

.signal-metrics {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    margin: 24px 0;
}

.signal-metrics div {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 16px;
}

.signal-metrics strong {
    display: block;
    font-size: 26px;
}

.signal-metrics span {
    color: #94a3b8;
    font-size: 12px;
}

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

.fake-signal-list div {
    background: rgba(15,23,42,.8);
    border: 1px solid #243044;
    padding: 13px;
    border-radius: 14px;
    color: #cbd5e1;
}

.fake-signal-list span {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: #38bdf8;
    margin-right: 8px;
}

.landing-v3-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 70px 24px;
}

.landing-v3-section h2,
.landing-v3-final h2 {
    color: #f8fafc;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.04em;
    margin: 12px 0;
}

.landing-v3-section > p {
    color: #94a3b8;
    font-size: 17px;
    line-height: 1.7;
    max-width: 760px;
}

.problem-grid,
.feature-grid,
.steps-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-top: 28px;
}

.feature-grid {
    grid-template-columns: repeat(4,1fr);
}

.problem-grid div,
.feature-grid div,
.steps-grid div,
.pricing-card {
    background: #0f172a;
    border: 1px solid #243044;
    border-radius: 22px;
    padding: 22px;
}

.problem-grid strong,
.feature-grid h3,
.steps-grid h3,
.pricing-card h3 {
    color: #f8fafc;
    font-size: 19px;
}

.problem-grid p,
.feature-grid p,
.steps-grid p,
.pricing-card p,
.pricing-card li {
    color: #94a3b8;
    line-height: 1.6;
}

.feature-grid span,
.steps-grid strong {
    color: #38bdf8;
    font-weight: 900;
}

.pricing-card strong {
    display: block;
    font-size: 36px;
    margin: 12px 0;
}

.pricing-card.featured {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37,99,235,.35);
}

.landing-v3-final {
    max-width: 1180px;
    margin: 40px auto 80px;
    padding: 42px;
    background: linear-gradient(135deg, #111827, #0b1220);
    border: 1px solid #243044;
    border-radius: 30px;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 36px;
}

.landing-v3-final p {
    color: #94a3b8;
    line-height: 1.7;
}

.landing-v3-form {
    display: grid;
    gap: 12px;
}

.landing-v3-form input,
.landing-v3-form textarea {
    width: 100%;
    box-sizing: border-box;
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 14px;
}

.landing-v3-form button {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-weight: 900;
    cursor: pointer;
}

@media (max-width: 900px) {
    .landing-v3-nav {
        flex-direction: column;
        gap: 18px;
        align-items: flex-start;
    }

    .landing-v3-nav nav {
        flex-wrap: wrap;
    }

    .landing-v3-hero,
    .landing-v3-final {
        grid-template-columns: 1fr;
    }

    .problem-grid,
    .feature-grid,
    .steps-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .signal-metrics {
        grid-template-columns: 1fr;
    }
}

/* Rivalync landing - truthful positioning */
.rivalync-landing {
    background:
        radial-gradient(circle at 20% 0%, rgba(37,99,235,.22), transparent 34%),
        radial-gradient(circle at 85% 10%, rgba(124,58,237,.18), transparent 34%),
        #07111f;
    color: #e5edf7;
    font-family: Inter, Arial, sans-serif;
}

.rivalync-landing * { box-sizing: border-box; }

.rivalync-landing a {
    color: inherit;
    text-decoration: none;
}

.rl-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rl-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rl-brand > span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    display: grid;
    place-items: center;
    font-weight: 950;
    font-size: 22px;
}

.rl-brand strong {
    display: block;
    font-size: 21px;
    color: #fff;
}

.rl-brand small {
    color: #94a3b8;
    font-size: 12px;
}

.rl-nav nav {
    display: flex;
    gap: 22px;
    align-items: center;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
}

.rl-login {
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px 14px;
}

.rl-hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 76px 24px 80px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.rl-eyebrow {
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 12px;
    font-weight: 950;
}

.rl-hero h1 {
    font-size: clamp(48px, 6vw, 78px);
    line-height: .95;
    letter-spacing: -.06em;
    color: #f8fafc;
    margin: 18px 0;
}

.rl-hero p {
    color: #b6c3d1;
    font-size: 18px;
    line-height: 1.7;
    max-width: 680px;
}

.rl-actions {
    display: flex;
    gap: 14px;
    margin-top: 30px;
}

.rl-primary,
.rl-secondary {
    padding: 15px 18px;
    border-radius: 14px;
    font-weight: 950;
}

.rl-primary {
    background: #2563eb;
    color: white;
}

.rl-secondary {
    border: 1px solid #334155;
    color: #cbd5e1;
}

.rl-proof-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rl-proof-row span {
    color: #94a3b8;
    border: 1px solid rgba(148,163,184,.15);
    background: rgba(148,163,184,.07);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 13px;
}

.rl-product-card,
.rl-signal-demo,
.rl-pricing-grid > div,
.rl-problem-grid > div,
.rl-feature-grid > div,
.rl-flow > div,
.rl-final {
    background: linear-gradient(180deg, rgba(15,23,42,.98), rgba(8,13,24,.98));
    border: 1px solid #243044;
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.rl-product-card {
    border-radius: 30px;
    padding: 26px;
}

.rl-card-header,
.rl-demo-top {
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 20px;
}

.rl-card-header strong,
.rl-demo-top strong {
    color: #bfdbfe;
}

.rl-alert-card {
    border-radius: 20px;
    padding: 18px;
    background: #020617;
    border: 1px solid #1e293b;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.rl-alert-card span {
    color: #fca5a5;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.rl-alert-card h3 {
    margin: 8px 0;
    font-size: 24px;
    color: #fff;
}

.rl-alert-card p {
    color: #94a3b8;
    line-height: 1.55;
}

.rl-alert-card > strong {
    height: fit-content;
    background: #7f1d1d;
    color: #fecaca;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
}

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

.rl-metrics div {
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 16px;
}

.rl-metrics strong {
    display: block;
    font-size: 28px;
    color: #fff;
}

.rl-metrics span {
    color: #94a3b8;
    font-size: 12px;
}

.rl-decision-box {
    margin-top: 14px;
    border-radius: 18px;
    background: rgba(37,99,235,.12);
    border: 1px solid rgba(37,99,235,.3);
    padding: 16px;
}

.rl-decision-box span {
    color: #93c5fd;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 950;
    letter-spacing: .1em;
}

.rl-decision-box p {
    margin: 8px 0 0;
    color: #dbeafe;
}

.rl-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 74px 24px;
}

.rl-section h2,
.rl-final h2 {
    color: #f8fafc;
    font-size: clamp(34px, 4.4vw, 54px);
    letter-spacing: -.05em;
    line-height: 1;
    margin: 14px 0;
}

.rl-problem {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 32px;
}

.rl-problem-grid,
.rl-feature-grid,
.rl-flow,
.rl-pricing-grid {
    display: grid;
    gap: 16px;
}

.rl-problem-grid {
    grid-template-columns: 1fr;
}

.rl-feature-grid {
    grid-template-columns: repeat(3,1fr);
    margin-top: 30px;
}

.rl-flow {
    grid-template-columns: repeat(4,1fr);
    margin-top: 30px;
}

.rl-pricing-grid {
    grid-template-columns: repeat(2,1fr);
    margin-top: 28px;
}

.rl-problem-grid > div,
.rl-feature-grid > div,
.rl-flow > div,
.rl-pricing-grid > div {
    border-radius: 22px;
    padding: 22px;
}

.rl-feature-grid span,
.rl-flow strong {
    color: #38bdf8;
    font-weight: 950;
}

.rl-feature-grid h3,
.rl-flow h3,
.rl-pricing-grid h3,
.rl-problem-grid strong {
    color: #fff;
    font-size: 19px;
}

.rl-feature-grid p,
.rl-flow p,
.rl-pricing-grid p,
.rl-pricing-grid li,
.rl-problem-grid p,
.rl-signal-copy p,
.rl-signal-copy li,
.rl-final p {
    color: #94a3b8;
    line-height: 1.65;
}

.rl-signal-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 34px;
    align-items: center;
}

.rl-signal-copy ul {
    padding-left: 18px;
    margin-top: 22px;
}

.rl-signal-demo {
    border-radius: 28px;
    padding: 28px;
}

.rl-signal-demo h3 {
    color: #fff;
    font-size: 30px;
    margin: 10px 0;
}

.rl-signal-demo p {
    color: #cbd5e1;
    line-height: 1.7;
}

.rl-signal-table {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.rl-signal-table div {
    display: flex;
    justify-content: space-between;
    border: 1px solid #1e293b;
    background: #020617;
    border-radius: 14px;
    padding: 13px;
}

.rl-signal-table span {
    color: #94a3b8;
}

.rl-signal-table strong {
    color: #fff;
}

.rl-pricing-grid strong {
    color: #fff;
    font-size: 36px;
    display: block;
    margin: 12px 0;
}

.rl-final {
    max-width: 1180px;
    margin: 50px auto 90px;
    border-radius: 30px;
    padding: 42px;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 34px;
}

.rl-final form {
    display: grid;
    gap: 12px;
}

.rl-final input,
.rl-final textarea {
    width: 100%;
    background: #020617;
    border: 1px solid #334155;
    color: #e5e7eb;
    border-radius: 14px;
    padding: 14px;
}

.rl-final button {
    background: #2563eb;
    color: white;
    border: 0;
    border-radius: 14px;
    padding: 15px;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 900px) {
    .rl-nav,
    .rl-nav nav,
    .rl-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .rl-nav nav {
        gap: 12px;
    }

    .rl-hero,
    .rl-problem,
    .rl-signal-section,
    .rl-final {
        grid-template-columns: 1fr;
    }

    .rl-feature-grid,
    .rl-flow,
    .rl-pricing-grid,
    .rl-metrics {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Rivalync Landing V4
   ========================================================= */

.rlx4 {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 8% 0%, rgba(37, 99, 235, .25), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(124, 58, 237, .17), transparent 30%),
        #06101d;
    color: #e8eef8;
    font-family: Inter, Arial, sans-serif;
}

.rlx4 * {
    box-sizing: border-box;
}

.rlx4 a {
    color: inherit;
    text-decoration: none;
}

.rlx4-nav {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rlx4-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rlx4-logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #38bdf8, #2563eb 55%, #7c3aed);
    box-shadow: 0 14px 35px rgba(37, 99, 235, .35);
    color: white;
    font-size: 22px;
    font-weight: 950;
}

.rlx4-brand strong {
    display: block;
    color: #fff;
    font-size: 20px;
}

.rlx4-brand small {
    display: block;
    color: #8493a8;
    font-size: 11px;
    margin-top: 2px;
}

.rlx4-nav nav {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #b4c0d1;
    font-size: 14px;
    font-weight: 750;
}

.rlx4-nav nav a:hover {
    color: white;
}

.rlx4-login {
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px 15px;
    background: rgba(15, 23, 42, .7);
}

.rlx4-hero {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    min-height: 650px;
    padding: 78px 0 90px;
    display: grid;
    grid-template-columns: 1.03fr .97fr;
    align-items: center;
    gap: 65px;
}

.rlx4-eyebrow {
    color: #4cc9ff;
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    font-weight: 950;
}

.rlx4-hero h1 {
    margin: 20px 0;
    color: #f8fbff;
    font-size: clamp(52px, 6.3vw, 86px);
    line-height: .94;
    letter-spacing: -.065em;
}

.rlx4-hero h1 span {
    display: block;
    background: linear-gradient(90deg, #38bdf8, #3b82f6 43%, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rlx4-hero-copy > p {
    max-width: 680px;
    color: #aab7c8;
    font-size: 18px;
    line-height: 1.72;
}

.rlx4-actions {
    display: flex;
    gap: 14px;
    margin-top: 31px;
}

.rlx4-primary,
.rlx4-secondary {
    padding: 15px 20px;
    border-radius: 14px;
    font-weight: 900;
}

.rlx4-primary {
    background: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 18px 40px rgba(37, 99, 235, .30);
}

.rlx4-secondary {
    border: 1px solid #3a475d;
    background: rgba(15, 23, 42, .55);
    color: #d5deeb;
}

.rlx4-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.rlx4-capabilities span {
    padding: 8px 11px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 999px;
    background: rgba(148, 163, 184, .06);
    color: #93a2b5;
    font-size: 12px;
}

.rlx4-hero-orbit {
    position: relative;
    min-height: 480px;
    display: grid;
    place-items: center;
}

.rlx4-orbit-glow {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, .22);
    box-shadow:
        0 0 0 65px rgba(59, 130, 246, .035),
        0 0 0 130px rgba(124, 58, 237, .025),
        inset 0 0 90px rgba(37, 99, 235, .18);
}

.rlx4-orbit-glow::before,
.rlx4-orbit-glow::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(96, 165, 250, .22);
}

.rlx4-orbit-glow::before {
    inset: -54px;
}

.rlx4-orbit-glow::after {
    inset: 55px;
}

.rlx4-orbit-core {
    position: relative;
    z-index: 2;
    width: 210px;
    height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(59, 130, 246, .38), transparent 35%),
        linear-gradient(145deg, #111c31, #07101d);
    border: 1px solid #30415e;
    box-shadow:
        0 0 65px rgba(37, 99, 235, .28),
        inset 0 0 45px rgba(59, 130, 246, .08);
}

.rlx4-orbit-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 19px;
    background: linear-gradient(135deg, #38bdf8, #2563eb, #7c3aed);
    color: white;
    font-size: 30px;
    font-weight: 950;
    margin-bottom: 15px;
}

.rlx4-orbit-core strong {
    color: white;
    font-size: 18px;
}

.rlx4-orbit-core small {
    color: #8190a5;
    margin-top: 6px;
}

.rlx4-floating-card {
    position: absolute;
    z-index: 3;
    width: 205px;
    padding: 16px;
    border-radius: 17px;
    border: 1px solid #2b3b55;
    background: rgba(9, 17, 31, .93);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.rlx4-floating-card span {
    display: block;
    color: #6f8097;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.rlx4-floating-card strong {
    display: block;
    color: white;
    margin-top: 6px;
}

.rlx4-floating-one {
    left: 0;
    top: 85px;
}

.rlx4-floating-two {
    right: 0;
    top: 185px;
}

.rlx4-floating-three {
    left: 55px;
    bottom: 48px;
}

.rlx4-product-stage {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 88px;
}

.rlx4-stage-label {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 0 18px 22px;
}

.rlx4-stage-label span {
    color: #4cc9ff;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 900;
}

.rlx4-stage-label strong {
    color: #f8fafc;
    font-size: 22px;
}

.rlx4-app-shell {
    min-height: 650px;
    display: grid;
    grid-template-columns: 220px 1fr;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid #283953;
    background: #0a1424;
    box-shadow:
        0 60px 130px rgba(0, 0, 0, .38),
        0 0 90px rgba(37, 99, 235, .08);
}

.rlx4-app-sidebar {
    padding: 28px 20px;
    background: #050c17;
    border-right: 1px solid #1e2b40;
}

.rlx4-mini-brand {
    color: white;
    font-size: 20px;
    font-weight: 950;
    margin-bottom: 34px;
}

.rlx4-app-nav {
    display: grid;
    gap: 8px;
}

.rlx4-app-nav span {
    padding: 13px 14px;
    border-radius: 11px;
    color: #8290a5;
    font-size: 13px;
    font-weight: 700;
}

.rlx4-app-nav .active {
    color: white;
    background: linear-gradient(90deg, rgba(37, 99, 235, .38), rgba(37, 99, 235, .13));
    border: 1px solid rgba(59, 130, 246, .24);
}

.rlx4-app-main {
    padding: 31px;
    background:
        radial-gradient(circle at 85% 0%, rgba(37, 99, 235, .09), transparent 30%),
        #0b1526;
}

.rlx4-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rlx4-app-header span {
    color: #6e7d91;
    font-size: 12px;
}

.rlx4-app-header h2 {
    color: white;
    font-size: 30px;
    margin: 6px 0 0;
}

.rlx4-app-header button {
    border: 1px solid #2e3c53;
    border-radius: 10px;
    padding: 10px 13px;
    background: #08101d;
    color: #9ba9bb;
}

.rlx4-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    margin-top: 26px;
}

.rlx4-kpis div {
    min-height: 125px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid #20304a;
    background: linear-gradient(180deg, #101c30, #0b1423);
}

.rlx4-kpis span,
.rlx4-kpis small {
    display: block;
    color: #75859b;
    font-size: 11px;
}

.rlx4-kpis strong {
    display: block;
    color: white;
    font-size: 34px;
    margin: 12px 0 7px;
}

.rlx4-dashboard-grid {
    display: grid;
    grid-template-columns: 1.45fr .8fr;
    gap: 15px;
    margin-top: 15px;
}

.rlx4-chart-panel,
.rlx4-priority-panel {
    min-height: 345px;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #20304a;
    background: #091322;
}

.rlx4-panel-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rlx4-panel-top strong {
    color: white;
}

.rlx4-panel-top span {
    color: #6c7b90;
    font-size: 11px;
}

.rlx4-chart {
    height: 235px;
    margin-top: 20px;
    border-radius: 16px;
    background:
        linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .04) 1px, transparent 1px);
    background-size: 100% 46px, 90px 100%;
    overflow: hidden;
}

.rlx4-chart svg {
    width: 100%;
    height: 100%;
}

.rlx4-area {
    fill: url(#lineFill1);
}

.rlx4-line-primary,
.rlx4-line-secondary,
.rlx4-line-third {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rlx4-line-primary { stroke: #38bdf8; }
.rlx4-line-secondary { stroke: #8b5cf6; }
.rlx4-line-third { stroke: #22c55e; }

.rlx4-chart-legend {
    display: flex;
    gap: 18px;
    margin-top: 13px;
    color: #73839a;
    font-size: 11px;
}

.rlx4-chart-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 99px;
    margin-right: 5px;
}

.rlx4-chart-legend .blue { background: #38bdf8; }
.rlx4-chart-legend .purple { background: #8b5cf6; }
.rlx4-chart-legend .green { background: #22c55e; }

.rlx4-priority-item {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    gap: 11px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #1b2a40;
}

.rlx4-priority-item:last-child {
    border-bottom: 0;
}

.rlx4-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    font-weight: 950;
}

.rlx4-icon.red { background: rgba(239, 68, 68, .14); color: #fca5a5; }
.rlx4-icon.orange { background: rgba(245, 158, 11, .13); color: #fcd34d; }
.rlx4-icon.blue { background: rgba(59, 130, 246, .14); color: #93c5fd; }

.rlx4-priority-item strong {
    display: block;
    color: white;
    font-size: 13px;
}

.rlx4-priority-item small {
    display: block;
    color: #6e7f95;
    font-size: 10px;
    margin-top: 4px;
}

.rlx4-priority-item em {
    color: #93a1b4;
    font-size: 10px;
    font-style: normal;
}

.rlx4-outcomes {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid #23324a;
    border-radius: 24px;
    background: rgba(13, 24, 42, .76);
}

.rlx4-outcomes div {
    padding: 6px 25px;
    border-right: 1px solid #26354d;
}

.rlx4-outcomes div:last-child {
    border-right: 0;
}

.rlx4-outcomes span {
    display: block;
    color: #4cc9ff;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.rlx4-outcomes strong {
    display: block;
    color: #f8fafc;
    font-size: 18px;
    line-height: 1.45;
    margin-top: 9px;
}

.rlx4-section {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto;
    padding: 100px 0;
}

.rlx4-section-heading {
    max-width: 760px;
}

.rlx4-section-heading.centered {
    text-align: center;
    margin: 0 auto;
}

.rlx4-section-heading h2,
.rlx4-intel-copy h2,
.rlx4-final h2 {
    color: #f8fbff;
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -.055em;
    line-height: 1;
    margin: 14px 0;
}

.rlx4-section-heading p,
.rlx4-intel-copy > p,
.rlx4-final p {
    color: #93a2b6;
    font-size: 17px;
    line-height: 1.7;
}

.rlx4-feature-layout {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.rlx4-feature-card {
    grid-column: span 2;
    min-height: 300px;
    padding: 24px;
    border: 1px solid #223149;
    border-radius: 23px;
    background:
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, .12), transparent 33%),
        linear-gradient(180deg, #0e192a, #09121f);
}

.rlx4-feature-card.large {
    grid-column: span 3;
}

.rlx4-feature-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #7dd3fc;
    background: rgba(37, 99, 235, .13);
    border: 1px solid rgba(59, 130, 246, .22);
    font-weight: 950;
}

.rlx4-feature-card h3 {
    color: white;
    font-size: 21px;
    margin: 20px 0 10px;
}

.rlx4-feature-card p {
    color: #8595aa;
    line-height: 1.65;
}

.rlx4-mini-chart {
    height: 85px;
    margin-top: 28px;
    display: flex;
    align-items: end;
    gap: 9px;
}

.rlx4-mini-chart .bar {
    flex: 1;
    min-width: 15px;
    border-radius: 7px 7px 2px 2px;
    background: linear-gradient(180deg, #38bdf8, rgba(37, 99, 235, .22));
}

.rlx4-mini-chart .one { height: 32%; }
.rlx4-mini-chart .two { height: 48%; }
.rlx4-mini-chart .three { height: 43%; }
.rlx4-mini-chart .four { height: 69%; }
.rlx4-mini-chart .five { height: 56%; }
.rlx4-mini-chart .six { height: 83%; }
.rlx4-mini-chart .seven { height: 72%; }

.rlx4-status-row {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    padding: 14px;
    border-radius: 14px;
    background: #07101c;
    border: 1px solid #1d2c43;
}

.rlx4-status-row span {
    color: #74839a;
    font-size: 12px;
}

.rlx4-status-row strong {
    color: #fcd34d;
    font-size: 12px;
}

.rlx4-stock-meter {
    height: 10px;
    overflow: hidden;
    margin-top: 39px;
    border-radius: 99px;
    background: #07101c;
}

.rlx4-stock-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #f59e0b);
}

.rlx4-product-lines {
    margin-top: 28px;
    display: grid;
    gap: 9px;
}

.rlx4-product-lines span {
    display: block;
    height: 13px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(59, 130, 246, .45), rgba(59, 130, 246, .05));
}

.rlx4-product-lines span:nth-child(2) { width: 78%; }
.rlx4-product-lines span:nth-child(3) { width: 55%; }

.rlx4-alert-preview {
    margin-top: 26px;
    display: grid;
    gap: 10px;
}

.rlx4-alert-preview div {
    display: flex;
    justify-content: space-between;
    padding: 13px 14px;
    border-radius: 13px;
    background: #07101c;
    border: 1px solid #1c2c43;
}

.rlx4-alert-preview strong {
    color: #e8eef8;
    font-size: 12px;
}

.rlx4-alert-preview span {
    color: #75859b;
    font-size: 11px;
}

.rlx4-workflow {
    width: 100%;
    max-width: none;
    padding: 105px max(22px, calc((100vw - 1180px) / 2));
    background:
        linear-gradient(180deg, rgba(8, 17, 30, .25), rgba(15, 23, 42, .68), rgba(8, 17, 30, .25));
}

.rlx4-flow-line {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}

.rlx4-flow-node {
    min-height: 270px;
    padding: 24px;
    border-radius: 24px;
    background: #0d1829;
    border: 1px solid #24344d;
}

.rlx4-flow-node > span {
    color: #50627b;
    font-size: 11px;
    letter-spacing: .12em;
}

.rlx4-flow-icon {
    width: 53px;
    height: 53px;
    display: grid;
    place-items: center;
    margin: 27px 0 22px;
    border-radius: 17px;
    color: #93c5fd;
    background: rgba(37, 99, 235, .12);
    border: 1px solid rgba(59, 130, 246, .21);
    font-weight: 900;
}

.rlx4-flow-node h3 {
    color: white;
    margin: 0 0 10px;
}

.rlx4-flow-node p {
    color: #8090a6;
    line-height: 1.6;
    font-size: 14px;
}

.rlx4-flow-arrow {
    color: #415570;
    font-size: 27px;
}

.rlx4-intelligence {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 58px;
    align-items: center;
}

.rlx4-intel-points {
    display: grid;
    gap: 17px;
    margin-top: 30px;
}

.rlx4-intel-points div {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
}

.rlx4-intel-points span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, .35);
}

.rlx4-intel-points p {
    margin: 0;
    color: #8393a9;
    line-height: 1.6;
}

.rlx4-intel-points strong {
    display: block;
    color: white;
}

.rlx4-intel-card {
    padding: 32px;
    border-radius: 29px;
    border: 1px solid #2a3d5a;
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 58, 237, .15), transparent 38%),
        linear-gradient(180deg, #101b2f, #09121f);
    box-shadow: 0 35px 95px rgba(0, 0, 0, .30);
}

.rlx4-intel-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rlx4-intel-card-top span {
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 10px;
}

.rlx4-intel-card-top strong {
    padding: 7px 10px;
    border-radius: 999px;
    color: #86efac;
    background: rgba(34, 197, 94, .12);
    font-size: 10px;
}

.rlx4-intel-card h3 {
    color: white;
    font-size: 31px;
    margin: 25px 0 12px;
}

.rlx4-intel-card > p {
    color: #9dadc1;
    line-height: 1.72;
}

.rlx4-intel-meta {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.rlx4-intel-meta div {
    display: flex;
    justify-content: space-between;
    padding: 14px;
    border-radius: 14px;
    background: #07101c;
    border: 1px solid #1d2d45;
}

.rlx4-intel-meta span {
    color: #74849a;
}

.rlx4-intel-meta strong {
    color: white;
}

.rlx4-audience {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto 95px;
    text-align: center;
}

.rlx4-audience > div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.rlx4-audience strong {
    padding: 13px 17px;
    border-radius: 999px;
    border: 1px solid #2c3c55;
    color: #c1ccda;
    background: rgba(15, 23, 42, .65);
}

.rlx4-final {
    width: min(1180px, calc(100% - 44px));
    margin: 0 auto 90px;
    padding: 48px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 46px;
    align-items: center;
    border-radius: 32px;
    border: 1px solid #324766;
    background:
        radial-gradient(circle at 100% 100%, rgba(124, 58, 237, .22), transparent 38%),
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, .20), transparent 35%),
        #0e192b;
}

.rlx4-final form {
    display: grid;
    gap: 12px;
}

.rlx4-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.rlx4-final input,
.rlx4-final textarea {
    width: 100%;
    padding: 15px;
    border-radius: 14px;
    border: 1px solid #34445c;
    background: rgba(3, 9, 18, .82);
    color: white;
    outline: none;
}

.rlx4-final input:focus,
.rlx4-final textarea:focus {
    border-color: #3b82f6;
}

.rlx4-final button {
    border: 0;
    border-radius: 14px;
    padding: 16px;
    color: white;
    background: linear-gradient(90deg, #2563eb, #4f46e5, #7c3aed);
    font-weight: 950;
    cursor: pointer;
}

.rlx4-footer {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    padding: 40px 0 55px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #1e2b3f;
}

.rlx4-footer > div:last-child {
    display: flex;
    gap: 22px;
    color: #738197;
    font-size: 13px;
}

@media (max-width: 980px) {
    .rlx4-nav {
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .rlx4-nav nav {
        flex-wrap: wrap;
        gap: 13px;
    }

    .rlx4-hero {
        grid-template-columns: 1fr;
        padding-top: 45px;
    }

    .rlx4-hero-orbit {
        min-height: 500px;
    }

    .rlx4-app-shell {
        grid-template-columns: 1fr;
    }

    .rlx4-app-sidebar {
        display: none;
    }

    .rlx4-kpis,
    .rlx4-dashboard-grid,
    .rlx4-outcomes,
    .rlx4-intelligence,
    .rlx4-final {
        grid-template-columns: 1fr;
    }

    .rlx4-outcomes div {
        border-right: 0;
        border-bottom: 1px solid #26354d;
        padding: 20px;
    }

    .rlx4-outcomes div:last-child {
        border-bottom: 0;
    }

    .rlx4-feature-card,
    .rlx4-feature-card.large {
        grid-column: span 6;
    }

    .rlx4-flow-line {
        grid-template-columns: 1fr;
    }

    .rlx4-flow-arrow {
        transform: rotate(90deg);
        text-align: center;
    }
}

@media (max-width: 620px) {
    .rlx4-hero,
    .rlx4-section,
    .rlx4-outcomes,
    .rlx4-final,
    .rlx4-audience {
        width: min(100% - 26px, 1180px);
    }

    .rlx4-hero h1 {
        font-size: 48px;
    }

    .rlx4-actions,
    .rlx4-capabilities,
    .rlx4-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .rlx4-primary,
    .rlx4-secondary {
        text-align: center;
    }

    .rlx4-hero-orbit {
        min-height: 420px;
        transform: scale(.85);
    }

    .rlx4-floating-one {
        left: -15px;
    }

    .rlx4-floating-two {
        right: -15px;
    }

    .rlx4-floating-three {
        left: 0;
    }

    .rlx4-stage-label {
        display: block;
    }

    .rlx4-stage-label strong {
        display: block;
        margin-top: 8px;
    }

    .rlx4-app-main {
        padding: 18px;
    }

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

    .rlx4-app-header h2 {
        font-size: 23px;
    }

    .rlx4-chart-legend {
        flex-direction: column;
    }

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

    .rlx4-final {
        padding: 27px;
    }

    .rlx4-footer > div:last-child {
        margin-top: 24px;
    }
}
