/*
 * Fynch Instant SEO & AEO Grader Stylesheet (seo-aeo-grader.css)
 * Extracted verbatim from public/seo-aeo-grader.html (Phase 1 modularization)
 */

:root {
    --color-bg-dark: #171716;
    --color-bg-card: #242424;
    --color-bg-card-hover: #2c2c2b;
    --color-primary: #f8ca3c;
    --color-primary-hover: #f8d76c;
    --color-text-white: #f5f5f7;
    --color-text-muted: #a3a3a3;
    --color-text-dim: #737373;
    --color-border: #383838;
    --color-border-glow: rgba(248, 202, 60, 0.35);
    --color-emerald: #10b981;
    --color-emerald-bg: rgba(16, 185, 129, 0.12);
    --color-amber: #f59e0b;
    --color-amber-bg: rgba(245, 158, 11, 0.12);
    --color-rose: #ef4444;
    --color-rose-bg: rgba(239, 68, 68, 0.12);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-padding-top: 72px;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(248, 202, 60, 0.04) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Bar Navigation */
nav.fynch-nav {
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(23, 23, 22, 0.92);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--color-text-white);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 30px;
    height: 30px;
    filter: invert(1);
    transition: transform 0.2s ease;
}

.logo-link:hover .logo-icon {
    transform: scale(1.05);
}

.brand-badge {
    background: rgba(248, 202, 60, 0.12);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 9999px;
    border: 1px solid rgba(248, 202, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-cta-btn {
    background: var(--color-primary);
    color: #171716;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(248, 202, 60, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-cta-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(248, 202, 60, 0.35);
}

/* Suppress duplicate top-nav primary CTA while #reportWorkspaceBar is visible in Report Mode */
body.report-mode-active:not(.workspace-bar-scrolled) #btnNavCta {
    display: none;
}

/* Hero / Audit Header */
header.hero-grader {
    position: relative;
    padding: 44px 0 20px 0;
    text-align: center;
    overflow-x: clip;
}

.ambient-glow {
    position: absolute;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(248, 202, 60, 0.06) 0%, rgba(248, 202, 60, 0) 70%);
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

/* Executive Audit Summary Bar (Report Mode) */
.exec-audit-bar {
    background: #1e1e1d;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: fadeIn 0.3s ease-out;
    scroll-margin-top: 80px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

/* ====================================================
   Executive Audio Briefing: Embedded Header Player
   ==================================================== */

/* 1. Header Layout with Audio Widget */
.exec-bottomline-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.exec-bottomline-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 280px;
}

/* 2. Embedded Executive Card Audio Widget (Light Dossier Theme) */
.exec-card-audio-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    padding: 4px 10px 4px 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    max-width: 100%;
    flex-wrap: wrap;
}

.exec-card-audio-widget:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.card-audio-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-card-audio-play {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
    white-space: nowrap;
}

.btn-card-audio-play:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.3);
}

.btn-card-audio-play:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.card-audio-generating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 500;
    padding: 0 6px;
}

.card-audio-timeline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 2px;
}

.card-audio-time {
    font-size: 0.72rem;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-variant-numeric: tabular-nums;
    min-width: 28px;
}

.card-audio-scrubber {
    width: 110px;
    height: 4px;
    accent-color: #2563eb;
    cursor: pointer;
}

.btn-card-audio-speed {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-card-audio-speed:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.audio-pulse-dot {
    width: 7px;
    height: 7px;
    background: #2563eb;
    border-radius: 50%;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 5px rgba(37, 99, 235, 0); }
    100% { transform: scale(0.9); opacity: 0.5; }
}

@media (max-width: 768px) {
    .exec-bottomline-header-row {
        flex-direction: column;
        align-items: stretch;
    }
    .exec-bottomline-titles {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
    .exec-card-audio-widget {
        width: 100%;
        justify-content: space-between;
        box-sizing: border-box;
        border-radius: 12px;
        padding: 6px 10px;
    }
    .card-audio-timeline {
        flex: 1 1 160px;
        min-width: 0;
    }
    .card-audio-scrubber {
        flex: 1 1 60px;
        width: auto;
        min-width: 48px;
    }
}

/* Refined Audio Illumination Beacon */
.card-audio-active {
    box-shadow: 
        0 0 0 2px #2563eb,
        0 10px 28px -4px rgba(37, 99, 235, 0.22),
        0 0 16px rgba(37, 99, 235, 0.12) !important;
    border-color: #2563eb !important;
    transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease !important;
}

.exec-pillar-pill.card-audio-active {
    box-shadow: 0 0 0 2px #2563eb, 0 4px 14px rgba(37, 99, 235, 0.25) !important;
    border-color: #2563eb !important;
    background: rgba(37, 99, 235, 0.06) !important;
}

.exec-priorities-wrap {
    border-radius: var(--radius-lg);
    padding: 8px 8px 4px 8px;
    margin: -8px -8px 12px -8px;
    transition: all 0.35s ease;
}

.exec-priorities-wrap.card-audio-active {
    box-shadow: 
        0 0 0 2px #2563eb,
        0 12px 32px -4px rgba(37, 99, 235, 0.2),
        0 0 16px rgba(37, 99, 235, 0.1) !important;
    background: rgba(37, 99, 235, 0.02);
}

.exec-priorities-wrap.card-audio-active .exec-priority-card {
    border-color: #93c5fd !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.14) !important;
}

/* Watchdog Marketing Conversion Card Beacon Illumination */
.watchdog-card.card-audio-active {
    border-color: rgba(245, 158, 11, 0.75) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25), 0 16px 36px -4px rgba(245, 158, 11, 0.2) !important;
    transform: translateY(-2px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.exec-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    flex: 1 1 240px;
    min-width: 0;
}

.exec-url-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
}

.exec-url {
    color: #f5f5f7;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

.exec-url:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.exec-badge-keyword {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #d1d5db;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    white-space: nowrap;
}

.exec-meta-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.exec-dot {
    color: var(--color-text-dim);
}

.exec-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.35);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.exec-grade-header-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
}

.exec-composite-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.exec-score-val {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.65rem;
    line-height: 1;
    color: var(--color-text-white);
}

.exec-score-denom {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.exec-grade-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(248, 202, 60, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(248, 202, 60, 0.35);
}

.exec-grade-pill.grade-A {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
}

.exec-grade-pill.grade-B {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.35);
}

.exec-grade-pill.grade-C {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.35);
}

.exec-grade-pill.grade-D, .exec-grade-pill.grade-F {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.35);
}

.exec-formula-bridge {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-weight: 500;
    white-space: nowrap;
}

.exec-potential {
    font-size: 0.75rem;
    color: var(--color-emerald);
    font-weight: 600;
    background: var(--color-emerald-bg);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.25);
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.exec-potential .lift-arrow {
    opacity: 0.7;
}

.exec-potential .lift-pts-tag {
    background: rgba(16, 185, 129, 0.2);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 2px;
}

.exec-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
}

.btn-exec-action {
    background: #292928;
    border: 1px solid var(--color-border);
    color: var(--color-text-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 7px 11px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex: 0 0 auto;
}

.btn-exec-action:hover {
    background: #333332;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-exec-share {
    border-color: rgba(248, 202, 60, 0.4);
    color: var(--color-primary);
    background: rgba(248, 202, 60, 0.08);
}

.btn-exec-share:hover {
    background: rgba(248, 202, 60, 0.18);
}

.btn-exec-deploy {
    background: linear-gradient(135deg, #f8ca3c 0%, #eab308 100%) !important;
    border: 1px solid #f8ca3c !important;
    color: #121211 !important;
    font-weight: 700 !important;
}

.btn-exec-deploy:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%) !important;
    border-color: #fcd34d !important;
    color: #000 !important;
    transform: translateY(-1px);
}

/* Hero Intro (Shown in Initial / Audit Mode) */
.hero-intro {
    max-width: 820px;
    margin: 0 auto;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(248, 202, 60, 0.1);
    border: 1px solid rgba(248, 202, 60, 0.25);
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1.hero-title {
    font-size: clamp(2.1rem, 1.45rem + 2.7vw, 3.2rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    text-wrap: balance;
}

h1.hero-title span:not(.serif-accent) {
    font-family: inherit;
    font-weight: inherit;
    font-style: normal;
    color: inherit;
}

h1.hero-title .serif-accent {
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: clamp(0.96rem, 0.88rem + 0.45vw, 1.08rem);
    color: var(--color-text-muted);
    max-width: 54ch;
    margin: 0 auto 24px;
    line-height: 1.55;
    text-wrap: pretty;
}

/* Audit Input Form */
.audit-form-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 20px;
    max-width: 840px;
    margin: 0 auto 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 10;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.audit-form-card.is-scanning {
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(248, 202, 60, 0.3);
}

.audit-form-card.is-scanning #auditForm {
    display: none;
}

.audit-form-card.is-scanning .loading-container {
    display: flex;
}

.input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.input-field-wrap {
    display: flex;
    align-items: center;
    background: #1a1a19;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 16px;
    flex: 1 1 320px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field-wrap:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(248, 202, 60, 0.2);
}

.input-field-wrap:has(input:is(:user-invalid, [aria-invalid="true"])) {
    border-color: rgba(248, 113, 113, 0.75);
    box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.16);
}

.input-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--color-text-muted);
}

.ui-icon {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

.status-svg {
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

.input-field-wrap input {
    background: transparent;
    border: none;
    color: var(--color-text-white);
    font-size: 1rem;
    padding: 13px 0;
    width: 100%;
    outline: none;
    font-family: var(--font-sans);
}

.btn-run-audit {
    background: var(--color-primary);
    color: #171716;
    border: none;
    border-radius: var(--radius-md);
    padding: 0 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    min-height: 48px;
    flex: 0 0 auto;
}

.btn-run-audit:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(248, 202, 60, 0.35);
}

.btn-run-audit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button Spinner */
.btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(23, 23, 22, 0.25);
    border-top-color: #171716;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

/* Turnstile Container */
.turnstile-wrapper {
    margin-top: 0;
    display: flex;
    justify-content: center;
}

/* Hero Trust Microcopy */
.demo-pills-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.demo-pill-label {
    font-size: 0.78rem;
    color: var(--color-text-dim);
    font-weight: 600;
}

/* Degraded Banner */
.degraded-banner {
    display: none;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin: 0 auto 20px;
    max-width: 840px;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.55;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.25s ease-out;
}

.degraded-recovery-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-top: 12px;
}

.btn-degraded-recovery {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-block-size: 38px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: #171716;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-degraded-recovery:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(248, 202, 60, 0.3);
}

.btn-degraded-recovery:active {
    transform: translateY(0);
}

.degraded-recovery-note {
    font-size: 0.78rem;
    color: #fecaca;
    opacity: 0.9;
}

@media (pointer: coarse) {
    .btn-degraded-recovery {
        min-block-size: 44px;
        padding: 10px 18px;
    }
}

/* Loading Container (In-place inside #auditFormCard to prevent hero CLS) */
.loading-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 6px 8px;
}

.fynch-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(248, 202, 60, 0.15);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 10px;
}

.loading-progress-bar {
    width: 100%;
    max-width: 360px;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    margin: 12px auto 2px;
    overflow: hidden;
    position: relative;
}

.loading-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #10b981);
    border-radius: 999px;
    width: 15%;
    transition: width 2.2s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Container */
.results-container {
    display: none;
    margin-top: 10px;
    animation: fadeIn 0.35s ease-out;
}

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

/* Quick Wins High-Impact Banner */
.quick-wins-card {
    background: linear-gradient(90deg, rgba(248, 202, 60, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid rgba(248, 202, 60, 0.3);
    border-radius: var(--radius-lg);
    padding: 16px 22px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-wins-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.quick-wins-tag {
    background: var(--color-primary);
    color: #171716;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quick-wins-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #f5f5f7;
}

.quick-wins-link {
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
}

.quick-wins-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Dual Score Hero Grid */
.score-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.score-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    text-align: left;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

.score-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.score-ring-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}

.score-ring-svg {
    width: 90px;
    height: 90px;
    transform: rotate(-90deg);
}

.score-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.score-ring-bar {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 238; /* 2 * PI * 38 */
    stroke-dashoffset: 238;
    transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-number {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
}

.score-grade {
    font-size: 0.72rem;
    font-weight: 700;
    margin-top: 2px;
}

.score-card-title-wrap {
    flex: 1;
}

.pillar-weight-badge {
    display: inline-block;
    background: rgba(248, 202, 60, 0.12);
    border: 1px solid rgba(248, 202, 60, 0.3);
    color: var(--color-primary);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.pillar-weight-badge.aeo-pillar-badge {
    background: var(--color-emerald-bg);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--color-emerald);
}

.score-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.score-card-subtitle {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Verdict Banner for AEO */
.verdict-banner {
    background: #1c1c1b;
    border-left: 3px solid var(--color-primary);
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #d1d5db;
}

.verdict-banner-tag {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    display: inline-block;
    margin-right: 6px;
    padding: 1px 6px;
    border-radius: 3px;
}

.verdict-tag-citable {
    background: var(--color-emerald-bg);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.verdict-tag-risk {
    background: var(--color-amber-bg);
    color: var(--color-amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Detected Schemas Chip Bar */
.schema-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.schema-chip {
    background: #1c1c1b;
    border: 1px solid var(--color-border);
    color: #e5e5e5;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.schema-chip.detected {
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
    background: rgba(16, 185, 129, 0.08);
}

/* Detailed Metrics Checklist */
.score-metrics-list {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
}

.metric-label {
    color: var(--color-text-muted);
}

.metric-value {
    font-weight: 600;
    color: var(--color-text-white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.metric-status-pass {
    color: var(--color-emerald);
}

.metric-status-warn {
    color: var(--color-amber);
}

.metric-status-fail {
    color: var(--color-rose);
}

/* Itemized Deductions & Benefits */
.deductions-box {
    margin-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.deduction-item {
    font-size: 0.78rem;
    color: #fca5a5;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.benefit-item {
    font-size: 0.78rem;
    color: #86efac;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.benefits-box {
    border-top: 1px dashed rgba(16, 185, 129, 0.25);
    padding-top: 12px;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Sub-Audits Telemetry Strip */
.subaudits-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.subaudit-card {
    background: #1f1f1e;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.subaudit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.subaudit-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
}

.subaudit-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    line-height: 1.2;
}

.subaudit-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* SERP & AI Overview Simulation Previews */
.simulation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.sim-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sim-header {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.sim-toggle-wrap {
    display: inline-flex;
    gap: 3px;
    background: #141413;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}

.sim-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-text-dim);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sim-toggle-btn:hover:not(.active) {
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.06);
}

.sim-toggle-btn.active {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    font-weight: 700;
}

.google-serp-box {
    background: #1a1a19;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 14px 16px;
}

.serp-url {
    color: #8ab4f8;
    font-size: 0.75rem;
    margin-bottom: 4px;
    word-break: break-all;
}

.serp-title {
    color: #8ab4f8;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 5px;
    display: inline-block;
}

.serp-snippet {
    color: #bdc1c6;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ai-overview-box {
    background: #1a1a19;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #d1d5db;
}

.ai-citation-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 10px;
}

/* Ready-to-Paste Code Remediations */
.remediation-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 26px 28px;
    margin-bottom: 36px;
}

.remediation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.tab-nav {
    display: flex;
    gap: 6px;
    background: #1a1a19;
    padding: 3px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.tab-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.tab-btn.active {
    background: var(--color-primary);
    color: #171716;
    font-weight: 700;
}

.code-container {
    position: relative;
    background: #141413;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    overflow-x: auto;
    min-height: 310px;
    display: flex;
    flex-direction: column;
}

.code-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 12;
    flex-shrink: 0;
}

.code-file-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-locked-overlay {
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 18, 17, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 10;
    box-sizing: border-box;
}

.code-locked-card {
    background: rgba(28, 28, 27, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(248, 202, 60, 0.05);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.code-locked-card .locked-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-locked-card h4 {
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.code-locked-card p {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    max-width: 420px;
    margin-bottom: 16px;
    line-height: 1.45;
}

.code-locked-card .btn-deploy-agent-gold {
    padding: 11px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 2px;
    box-shadow: 0 4px 16px rgba(248, 202, 60, 0.3);
}

.code-container pre {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.55;
    color: #f8f8f2;
    min-height: 220px;
    margin: 0;
    flex: 1;
}

.code-container pre code {
    display: block;
    min-height: 220px;
    font-family: inherit;
}

.code-meta-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

/* Live AI Citation & Competitor Probe Card */
.citation-probe-card {
    background: linear-gradient(180deg, rgba(26, 26, 25, 0.95) 0%, rgba(20, 20, 19, 0.98) 100%);
    border: 1px solid rgba(248, 202, 60, 0.25);
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    margin: 36px 0;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.citation-probe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.citation-probe-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.citation-probe-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 640px;
    line-height: 1.5;
}

.btn-unlock-probe {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #171716;
    font-weight: 700;
    font-size: 0.84rem;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(248, 202, 60, 0.2);
}

.btn-unlock-probe:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(248, 202, 60, 0.35);
}

.btn-unlock-probe:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(248, 202, 60, 0.25);
}

.probe-query-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.probe-query-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 12, 11, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    gap: 14px;
}

.probe-query-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.probe-engine-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.probe-query-text {
    font-size: 0.88rem;
    color: #d1d5db;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.probe-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.probe-status-competitor {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.probe-status-atrisk {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.probe-status-omitted {
    background: rgba(156, 163, 175, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.probe-status-pass {
    background: var(--color-emerald-bg);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.probe-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
    gap: 12px;
}

.probe-footer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.btn-probe-inline-cta {
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.15s ease;
}

.btn-probe-inline-cta:hover {
    color: #fff;
    text-underline-offset: 4px;
}

.btn-copy-code {
    background: #242424;
    border: 1px solid var(--color-border);
    color: var(--color-text-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-copy-code:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-copy-code:active {
    transform: translateY(1px);
}

/* 24/7 Watchdog Continuous Monitoring Card */
.watchdog-card {
    background: linear-gradient(135deg, rgba(248, 202, 60, 0.05) 0%, rgba(36, 36, 36, 0.95) 100%);
    border: 1px solid rgba(248, 202, 60, 0.3);
    border-radius: var(--radius-xl);
    padding: 38px 28px;
    text-align: center;
    margin-bottom: 48px;
}

.watchdog-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(248, 202, 60, 0.15);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.watchdog-title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.watchdog-sub {
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 auto 22px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-deploy-agent-gold {
    background: var(--color-primary);
    color: #171716;
    border: none;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(248, 202, 60, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-deploy-agent-gold:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(248, 202, 60, 0.4);
}

.btn-deploy-agent-gold:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(248, 202, 60, 0.25);
}

.btn-deploy-agent-gold:disabled,
.btn-deploy-agent-gold[aria-busy="true"] {
    opacity: 0.72;
    cursor: wait;
    transform: none !important;
    box-shadow: none;
}

.watchdog-guarantee {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

/* TECHNICAL DOCUMENTATION SECTION (Replacing Marketing Spin) */
.technical-guide-section {
    padding: 56px 0;
    border-top: 1px solid var(--color-border);
}

.section-header-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 36px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.tech-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 0;
}

.tech-pillar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 22px;
    text-align: left;
}

.tech-pillar-tag {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tech-pillar-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tech-pillar-desc {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* Dedicated FAQ Section */
.faq-section {
    padding: 64px 0 72px;
    border-top: 1px solid var(--color-border);
}

.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(248, 202, 60, 0.25);
    background: rgba(255, 255, 255, 0.035);
}

.faq-item[open] {
    border-color: rgba(248, 202, 60, 0.35);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-item summary {
    padding: 18px 22px;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--color-text-white);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

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

.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 400;
    line-height: 1;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 14px 22px 20px;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.65;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Footer */
footer.fynch-footer {
    border-top: 1px solid var(--color-border);
    padding: 36px 0;
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: var(--color-primary);
}

/* Watchdog Signup Modal */
.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    overscroll-behavior: contain;
    animation: backdropFadeIn 0.18s ease-out;
}

@keyframes backdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

#modalStepForm,
#modalStepOtp,
#modalStepLoading {
    animation: stepFadeIn 0.18s ease-out;
}

.btn-otp-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s ease, opacity 0.15s ease, transform 0.1s ease;
}

.btn-otp-link:hover:not(:disabled) {
    color: var(--color-primary-hover);
}

.btn-otp-link:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-otp-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    text-decoration: none;
}

.btn-otp-secondary {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s ease, transform 0.1s ease;
}

.btn-otp-secondary:hover {
    color: #ffffff;
}

.btn-otp-secondary:active {
    transform: translateY(1px);
}

.modal-dialog {
    background: #242424;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px;
    position: relative;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.96); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #d1d5db;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 20;
    padding: 0;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: scale(1.06);
}

@media (pointer: coarse) {
    .modal-close-btn::after {
        content: '';
        position: absolute;
        inset: -6px;
    }
}

.modal-dialog h3,
.modal-dialog h4 {
    text-wrap: balance;
}

#modalSubtext,
#otpModalSubtext,
#reportLoadingSubtext {
    text-wrap: pretty;
}

.modal-input {
    width: 100%;
    background: #1a1a19;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 11px 13px;
    color: #fff;
    font-size: 16px;
    outline: none;
    font-family: var(--font-sans);
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.modal-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(248, 202, 60, 0.2);
}

.modal-input:is(:user-invalid, .user-invalid-fallback) {
    border-color: var(--color-danger);
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18);
}

.modal-field-error {
    display: none;
    font-size: 0.74rem;
    color: #f87171;
    margin: -4px 0 10px;
    line-height: 1.4;
}

.modal-input:is(:user-invalid, .user-invalid-fallback) ~ .modal-field-error {
    display: block;
}

.modal-proof-preview {
    font-size: 0.78rem;
    color: #d6d3d1;
    background: rgba(248, 202, 60, 0.07);
    border: 1px solid rgba(248, 202, 60, 0.22);
    border-radius: 8px;
    padding: 8px 11px;
    margin-bottom: 14px;
    line-height: 1.42;
}

.otp-spam-hint {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    margin: -10px 0 14px;
    line-height: 1.45;
}

.otp-spam-hint strong {
    color: #d1d5db;
    font-weight: 600;
}

.otp-google-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 12px 0 10px;
    font-size: 0.72rem;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.otp-google-divider::before,
.otp-google-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.btn-otp-google-fallback {
    padding: 10px 14px;
    font-size: 0.84rem;
}

.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0;
    width: 100%;
}

.otp-box {
    flex: 1 1 0;
    max-width: 44px;
    min-width: 0;
    height: 50px;
    background: #1a1a19;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    outline: none;
    font-family: var(--font-mono);
    box-sizing: border-box;
}

.otp-box:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(248, 202, 60, 0.3);
}

/* Google SSO & Auth Divider Styles */
.btn-google-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #222221;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-google-sso:hover {
    background: #2b2b2a;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.btn-google-sso:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-google-sso[aria-busy="true"] {
    cursor: progress;
    opacity: 0.85;
    transform: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-google-sso .google-sso-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex: 0 0 16px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-google-sso .google-sso-spinner { animation-duration: 2s; }
}

.google-icon-svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 12px 0 14px 0;
    color: #6b7280;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-divider span {
    padding: 0 12px;
    white-space: nowrap;
}

.oauth-micro-hint {
    font-size: 0.72rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 4px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1f1f1e;
    color: var(--color-text-white);
    border: 1px solid var(--color-primary);
    padding: 11px 18px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 2000;
    animation: toastUp 0.2s ease-out;
}

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

@media (max-width: 1080px) and (min-width: 769px) {
    .exec-audit-bar { flex-wrap: wrap; gap: 16px; }
    .exec-left { flex: 1 1 100%; order: 1; }
    .exec-center { flex: 1 1 auto; order: 2; }
    .exec-right { flex: 0 0 auto; order: 3; justify-content: flex-end; }
}

@media (max-width: 768px) {
    header.hero-grader {
        padding: 16px 0 10px 0;
    }
    .eyebrow-badge {
        font-size: 0.66rem;
        padding: 3px 8px;
        margin-bottom: 8px;
        letter-spacing: 0.04em;
    }
    h1.hero-title {
        font-size: clamp(1.48rem, 5.2vw, 1.95rem);
        line-height: 1.18;
        margin-bottom: 6px;
    }
    .hero-subtitle {
        font-size: 0.82rem;
        line-height: 1.4;
        margin: 0 auto 12px;
        padding: 0 4px;
    }
    .audit-form-card {
        padding: 14px 12px;
        border-radius: var(--radius-lg);
        margin-bottom: 12px;
    }
    .input-row {
        flex-direction: column;
        gap: 10px;
    }
    .input-field-wrap {
        flex: 0 0 auto;
        width: 100%;
        min-height: 52px;
        padding: 0 14px;
        box-sizing: border-box;
    }
    .input-field-wrap input {
        font-size: 1rem;
        padding: 14px 0;
        width: 100%;
    }
    .btn-run-audit {
        width: 100%;
        min-height: 50px;
        font-size: 0.95rem;
        border-radius: var(--radius-md);
    }
    .turnstile-wrapper {
        margin-top: 0;
        display: flex;
        justify-content: center;
        max-width: 100%;
        overflow: hidden;
    }
    .turnstile-wrapper .cf-turnstile {
        transform: scale(0.92);
        transform-origin: center;
    }
    .demo-pills-bar {
        margin-bottom: 14px;
        padding: 0 8px;
    }
    .demo-pill-label {
        text-align: center;
        font-size: 0.74rem;
        line-height: 1.4;
        color: var(--color-text-dim);
    }
    #btnPrint {
        display: none !important;
    }
    .exec-audit-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px;
        border-radius: var(--radius-md);
    }
    .exec-left {
        flex: none;
        width: 100%;
    }
    .exec-center {
        width: 100%;
        align-items: flex-start;
        padding: 8px 12px;
    }
    .exec-formula-bridge {
        white-space: normal;
    }
    .exec-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .exec-right .btn-exec-deploy {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.88rem;
        order: 1;
    }
    .exec-right .btn-exec-action:not(.btn-exec-deploy) {
        flex: 1 1 calc(33.333% - 6px);
        min-width: 0;
        justify-content: center;
        font-size: 0.72rem;
        padding: 6px 8px;
        white-space: nowrap;
        order: 2;
    }
    .score-hero-grid,
    .simulation-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    .subaudits-strip {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    .score-card {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }
    .quick-wins-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 16px;
        margin-bottom: 20px;
    }
    .quick-wins-link {
        align-self: flex-start;
    }
    .remediation-section {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }
    .tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }
    .tab-nav::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 6px 11px;
        font-size: 0.74rem;
    }
    .sim-toggle-wrap {
        margin-left: 0;
        margin-top: 6px;
    }
    .sim-header {
        flex-wrap: wrap;
    }
    .code-container {
        min-height: 350px;
        padding: 12px 14px;
    }
    .code-locked-overlay {
        padding: 14px 10px;
    }
    .code-locked-card {
        padding: 18px 14px;
        width: 100%;
        max-width: 100%;
    }
    .code-locked-card h4 {
        font-size: 0.98rem;
    }
    .code-locked-card p {
        font-size: 0.78rem;
        margin-bottom: 12px;
    }
    .code-locked-card .btn-deploy-agent-gold {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
    }
    .citation-probe-card {
        padding: 20px 16px;
        margin: 24px 0;
        border-radius: var(--radius-lg);
    }
    .citation-probe-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .citation-probe-title {
        font-size: 1.1rem;
    }
    .btn-unlock-probe {
        width: 100%;
        justify-content: center;
        padding: 11px 16px;
        font-size: 0.88rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
    nav.fynch-nav {
        padding: 8px 0;
    }
    .brand-badge {
        display: none;
    }
    .logo-link {
        font-size: 1.15rem;
        gap: 8px;
    }
    .logo-icon {
        width: 26px;
        height: 26px;
    }
    .nav-cta-btn {
        min-block-size: 44px;
        min-inline-size: 44px;
        padding: 10px 12px;
        justify-content: center;
        font-size: 0.78rem;
        white-space: nowrap;
        background: transparent;
        border: 1px solid rgba(248, 202, 60, 0.4);
        color: var(--color-primary);
        box-shadow: none;
    }
    .modal-backdrop {
        padding: 12px 8px;
    }
    .modal-dialog {
        padding: 22px 16px;
        border-radius: var(--radius-lg);
        max-width: 100%;
    }
    .modal-input {
        font-size: 16px;
        padding: 11px 12px;
    }
    .otp-inputs {
        gap: 6px;
        margin: 16px 0;
    }
    .otp-box {
        height: 48px;
        font-size: 1.25rem;
    }
    .btn-google-sso {
        padding: 11px 12px;
        font-size: 0.86rem;
    }
    .probe-query-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .probe-query-left {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .probe-query-text {
        white-space: normal;
    }
    .probe-query-right {
        width: 100%;
        min-width: 0;
    }
    .probe-status-pill {
        align-self: flex-start;
        white-space: normal;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Mobile Sticky Report Conversion Bar */
.grader-mobile-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(23, 23, 22, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(248, 202, 60, 0.3);
    padding: 8px 14px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}
.grader-mobile-sticky-bar.keyboard-active {
    display: none !important;
}
.grader-sticky-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.grader-sticky-icon {
    font-size: 1rem;
    flex-shrink: 0;
}
.grader-sticky-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.grader-sticky-text strong {
    font-size: 0.78rem;
    color: var(--color-text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.grader-sticky-text span {
    font-size: 0.66rem;
    color: var(--color-text-muted);
}
.btn-grader-sticky-claim {
    background: linear-gradient(135deg, #f8ca3c 0%, #eab308 100%);
    border: 1px solid #f8ca3c;
    color: #121211;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 44px;
    min-inline-size: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.18s ease;
    box-shadow: 0 2px 8px rgba(248, 202, 60, 0.25);
}
.btn-grader-sticky-claim:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 202, 60, 0.35);
}
.btn-grader-sticky-claim:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 768px) {
    html {
        scroll-padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }
    .grader-mobile-sticky-bar.active {
        display: flex;
    }
    body.report-mode-active {
        padding-bottom: 76px;
    }
}

@media (pointer: coarse) {
    .nav-cta-btn,
    .btn-workspace-primary,
    .btn-workspace-action,
    .btn-grader-sticky-claim {
        min-block-size: 44px;
        min-inline-size: 44px;
    }
}

/* Audience Lens Mode Selector */
.audit-mode-selector-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-out;
}
.audit-mode-selector {
    display: inline-flex;
    background: #1e1e1d;
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    padding: 4px;
    gap: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.mode-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mode-pill:hover {
    color: var(--color-text-white);
}
.mode-pill.active {
    background: var(--color-bg-card);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border-color: rgba(248, 202, 60, 0.35);
}
.mode-help-text {
    font-size: 0.78rem;
    color: var(--color-text-dim);
    text-align: center;
}

/* Webmaster Briefing Banner */
.webmaster-briefing-banner {
    background: linear-gradient(135deg, rgba(36, 36, 36, 0.95) 0%, rgba(24, 24, 24, 0.95) 100%);
    border: 1px solid rgba(248, 202, 60, 0.25);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.webmaster-banner-left {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.webmaster-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.webmaster-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.webmaster-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0;
}
.webmaster-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-briefing-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}
.btn-briefing-email {
    background: var(--color-primary);
    color: #171716;
    box-shadow: 0 2px 8px rgba(248, 202, 60, 0.25);
}
.btn-briefing-email:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
}
.btn-briefing-email:active,
.btn-briefing-copy:active {
    transform: translateY(0);
}
.btn-briefing-copy {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-white);
    border-color: rgba(255, 255, 255, 0.12);
}
.btn-briefing-copy:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-deduction-fix {
    background: rgba(248, 202, 60, 0.12);
    border: 1px solid rgba(248, 202, 60, 0.35);
    color: var(--color-primary);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}
.btn-deduction-fix:hover {
    background: rgba(248, 202, 60, 0.25);
    border-color: var(--color-primary);
}
.btn-deduction-fix:active {
    transform: translateY(1px);
}

.score-card-cta-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}
.btn-score-card-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: rgba(248, 202, 60, 0.12);
    border: 1px solid rgba(248, 202, 60, 0.4);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-score-card-cta:hover {
    background: rgba(248, 202, 60, 0.22);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}
.btn-score-card-cta:active {
    transform: translateY(0);
}

/* Executive 3-Step Action Plan */
.executive-action-plan {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.exec-plan-header {
    margin-bottom: 18px;
}
.exec-plan-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-white);
    margin: 4px 0 6px 0;
    letter-spacing: -0.01em;
}
.exec-plan-sub {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}
.exec-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 860px) {
    .exec-plan-grid {
        grid-template-columns: 1fr;
    }
}
/* Executive Summary View & Macro-Layout Styling */
.exec-summary-view {
    margin-bottom: 28px;
    animation: fadeIn 0.3s ease-out;
}
.exec-bottomline-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    border: 1px solid rgba(248, 202, 60, 0.25);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}
.exec-bottomline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), #10b981, var(--color-primary));
}
.exec-bottomline-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.exec-bottomline-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin: 0;
    line-height: 1.3;
}
.exec-bottomline-narrative {
    font-size: 0.96rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin: 0 0 20px 0;
}
.exec-pillar-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.exec-pillar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.84rem;
    color: var(--color-text-muted);
    cursor: default;
}
.exec-pillar-pill strong {
    color: var(--color-text-white);
}
.exec-pillar-pill.pill-good {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}
.exec-pillar-pill.pill-good .pillar-dot {
    color: var(--color-emerald);
}
.exec-pillar-pill.pill-warn {
    border-color: rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.08);
}
.exec-pillar-pill.pill-warn .pillar-dot {
    color: var(--color-amber);
}
.exec-pillar-pill.pill-risk {
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
}
.exec-pillar-pill.pill-risk .pillar-dot {
    color: #f87171;
}

.exec-top-action-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.exec-top-action-strip[hidden] {
    display: none;
}
.btn-exec-top-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: #171716;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(248, 202, 60, 0.22);
}
.btn-exec-top-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(248, 202, 60, 0.34);
}
.btn-exec-top-link {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 2px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}
.btn-exec-top-link:hover {
    color: #ffffff;
}
.exec-top-meta {
    font-size: 0.74rem;
    color: var(--color-text-dim);
    font-weight: 500;
    margin-left: auto;
}
@media (pointer: coarse) {
    .btn-exec-top-primary,
    .btn-exec-top-link {
        min-block-size: 44px;
    }
}

/* Executive Priorities Section */
.exec-priorities-header {
    margin-bottom: 16px;
}
.exec-priorities-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin: 0 0 4px 0;
}
.exec-priorities-sub {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    margin: 0;
}
.exec-priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.priority-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.priority-card:hover {
    transform: translateY(-2px);
    border-color: rgba(248, 202, 60, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.priority-card-top {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.priority-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.priority-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
}
.priority-impact-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}
.priority-impact-badge.impact-critical {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.priority-impact-badge.impact-high {
    background: rgba(248, 202, 60, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(248, 202, 60, 0.35);
}
.priority-impact-badge.impact-medium {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.priority-impact-badge.status-verified {
    background: var(--color-emerald-bg);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.priority-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin: 0;
    line-height: 1.35;
}
.priority-card-problem {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0;
}
.priority-card-bottom {
    margin-top: 14px;
}
.priority-card-fix {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-left: 3px solid rgba(255, 255, 255, 0.25);
    border-radius: 0 8px 8px 0;
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.45;
}
.priority-card-fix strong {
    color: var(--color-primary);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.priority-card-benefit {
    font-size: 0.76rem;
    color: var(--color-emerald);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    font-weight: 500;
}
.btn-priority-action {
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(248, 202, 60, 0.12);
    border: 1px solid rgba(248, 202, 60, 0.35);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.18s ease;
}
.btn-priority-action:hover {
    background: rgba(248, 202, 60, 0.22);
    border-color: var(--color-primary);
    transform: translateY(-1px);
}
.btn-priority-action:active {
    transform: translateY(0);
}
.btn-engine-fix-link {
    margin-top: 10px;
    padding: 5px 11px;
    border-radius: 6px;
    background: rgba(248, 202, 60, 0.1);
    border: 1px solid rgba(248, 202, 60, 0.3);
    color: var(--color-primary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.btn-engine-fix-link:hover {
    background: rgba(248, 202, 60, 0.2);
    border-color: var(--color-primary);
}
.btn-engine-fix-link:active {
    transform: translateY(1px);
}
.btn-lift-unlock {
    margin-left: 6px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #047857;
    border: 1px solid #047857;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 1px 2px rgba(4, 120, 87, 0.22);
    transition: all 0.15s ease;
}
.btn-lift-unlock:hover {
    background: #065f46;
    border-color: #065f46;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(4, 120, 87, 0.28);
}
.btn-lift-unlock:active {
    transform: translateY(0);
}

/* Progressive Disclosure Bridge */
.exec-tech-bridge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
}
.btn-tech-bridge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 6px 14px;
    color: var(--color-text-main);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-tech-bridge:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(248, 202, 60, 0.05);
}



/* AI Engine Retrieval Readiness Matrix */
.engine-readiness-wrap {
    margin-bottom: 24px;
}
.engine-readiness-header {
    margin-bottom: 12px;
}
.engine-readiness-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin: 0 0 4px 0;
}
.engine-readiness-sub {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}
.engine-readiness-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.engine-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.engine-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}
.engine-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.engine-brand-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.engine-logo-badge {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-text-main);
    flex-shrink: 0;
}
.engine-logo-badge svg {
    width: 15px;
    height: 15px;
    display: block;
}
.engine-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-text-white);
}
.engine-status-pill {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.engine-status-pill.status-pass {
    background: var(--color-emerald-bg);
    color: var(--color-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.engine-status-pill.status-warn {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.engine-status-pill.status-risk {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}
.engine-card-desc {
    font-size: 0.77rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    margin: 0;
}

/* AEO Editorial Blueprint */
.exec-editorial-blueprint {
    margin-top: 24px;
    margin-bottom: 24px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.editorial-blueprint-header {
    margin-bottom: 18px;
}
.editorial-blueprint-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin: 0 0 6px 0;
}
.editorial-blueprint-sub {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.45;
}
.editorial-blueprint-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.editorial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
}
.editorial-card:hover {
    border-color: rgba(248, 202, 60, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}
.editorial-format-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    align-self: flex-start;
}
.editorial-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin: 0;
    line-height: 1.35;
}
.editorial-card-desc {
    font-size: 0.79rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    margin: 0;
}
.btn-draft-editorial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(248, 202, 60, 0.1);
    border: 1px solid rgba(248, 202, 60, 0.35);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100%;
}
.btn-draft-editorial:hover {
    background: var(--color-primary);
    color: #0b0f17;
}

@media (max-width: 900px) {
    .exec-priorities-grid {
        grid-template-columns: 1fr;
    }
    .engine-readiness-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .editorial-blueprint-grid {
        grid-template-columns: 1fr;
    }
    .exec-tech-bridge {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .engine-readiness-grid {
        grid-template-columns: 1fr;
    }
    .audit-mode-selector {
        width: 100%;
        display: flex;
        flex-direction: column;
        border-radius: var(--radius-md);
    }
    .mode-pill {
        justify-content: center;
        width: 100%;
        border-radius: var(--radius-md);
    }
    .exec-bottomline-card {
        padding: 18px 16px;
    }
    .exec-pillar-pills {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   APPROACH A: FRAMED EXECUTIVE PAPER DOSSIER (.report-dossier-sheet)
   Warm editorial stone paper canvas with high contrast, zero brand drift,
   and inset dark developer terminal.
   ========================================================================== */

body.report-mode-active header.hero-grader {
    padding: 8px 0 0 0;
    min-height: 0;
}

.report-dossier-sheet {
    --color-emerald: #047857;
    --color-emerald-bg: #ecfdf5;
    --color-amber: #b45309;
    --color-amber-bg: #fffbeb;
    --color-rose: #b91c1c;
    --color-rose-bg: #fef2f2;
    --color-text-dim: #57534e;
    --color-text-muted: #57534e;
    background: #ffffff;
    color: #1c1917; /* Stone-900 */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 40px 48px 48px;
    margin: 16px auto 60px;
    max-width: 1080px;
    box-sizing: border-box;
    position: relative;
    overflow-x: clip;
    animation: fadeIn 0.4s ease-out;
}

/* 0. Desk Workspace Action Bar (Context & Tooling above Dossier) */
.report-workspace-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1080px;
    margin: 0 auto 16px auto;
    padding: 8px 14px;
    background: rgba(26, 26, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    width: 100%;
    animation: fadeIn 0.3s ease-out;
}
.workspace-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.workspace-bar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
}
.workspace-domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    font-size: 0.8rem;
    color: #a8a29e;
}
.workspace-domain-chip strong {
    color: #e7e5e4;
    font-weight: 600;
}
.workspace-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.btn-workspace-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #a8a29e;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-workspace-action:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.16);
    color: #f5f5f7;
}
.btn-workspace-action:active:not(:disabled) {
    transform: translateY(1px);
}
.btn-workspace-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-workspace-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--color-primary);
    border: 1px solid transparent;
    border-radius: 8px;
    color: #171716;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 8px rgba(248, 202, 60, 0.2);
    white-space: nowrap;
}
.btn-workspace-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 202, 60, 0.3);
}
.btn-workspace-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(248, 202, 60, 0.2);
}

/* 1. Formal Dossier Header Stamp */
.dossier-formal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e7e5e4;
    flex-wrap: wrap;
    gap: 12px;
}
.dossier-stamp-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dossier-stamp-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #78716c;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    padding: 4px 9px;
    border-radius: 4px;
}
.dossier-report-id {
    font-size: 0.78rem;
    color: #78716c;
    font-family: var(--font-mono);
}
.dossier-report-id strong {
    color: #1c1917;
}
.dossier-stamp-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dossier-date-stamp {
    font-size: 0.78rem;
    color: #78716c;
    font-weight: 500;
}

/* 2. Executive Scorecard inside Dossier */
.report-dossier-sheet .exec-audit-bar {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    color: #1c1917;
    margin-bottom: 24px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    flex-wrap: nowrap;
}
.report-dossier-sheet .exec-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.report-dossier-sheet .exec-url {
    color: #1c1917;
    font-size: 1.15rem;
    font-weight: 700;
}
.report-dossier-sheet .exec-url:hover {
    color: #b45309;
}
.report-dossier-sheet .exec-timestamp,
.report-dossier-sheet .exec-dot,
.report-dossier-sheet .exec-archetype {
    color: #78716c;
}
.report-dossier-sheet .exec-grade-header-label {
    color: #78716c;
}
.report-dossier-sheet .exec-score-val {
    color: #1c1917;
}
.report-dossier-sheet .exec-score-denom {
    color: #a8a29e;
}
.report-dossier-sheet .exec-formula-bridge {
    color: #78716c;
}
.report-dossier-sheet .exec-center {
    background: #ffffff !important;
    border: 1px solid #e7e5e4 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px;
    padding: 14px 20px;
    flex: 0 0 auto;
    min-width: 320px;
}
.report-dossier-sheet .exec-grade-pill {
    background: rgba(180, 83, 9, 0.08);
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.25);
}
.report-dossier-sheet .exec-grade-pill.grade-A {
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
    border-color: rgba(5, 150, 105, 0.25);
}
.report-dossier-sheet .exec-grade-pill.grade-B {
    background: rgba(29, 78, 216, 0.08);
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.25);
}
.report-dossier-sheet .exec-grade-pill.grade-C {
    background: rgba(180, 83, 9, 0.08);
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.25);
}
.report-dossier-sheet .exec-grade-pill.grade-D,
.report-dossier-sheet .exec-grade-pill.grade-F {
    background: rgba(185, 28, 28, 0.08);
    color: #b91c1c;
    border-color: rgba(185, 28, 28, 0.25);
}
.report-dossier-sheet .exec-potential {
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.2);
}
.report-dossier-sheet .exec-potential .lift-pts-tag {
    background: rgba(5, 150, 105, 0.15);
    color: #065f46;
}

/* 2.5. Multi-Page Coverage Gap Strip (#scorecardMultipageStrip) */
.report-dossier-sheet .scorecard-multipage-strip { display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; background: #fafaf9; border: 1px solid #e7e5e4; border-left: 3px solid #d97706; border-radius: 12px; padding: 12px 18px; margin: 0 0 28px; font-size: 0.8rem; color: #57534e; }
.report-dossier-sheet .multipage-strip-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.report-dossier-sheet .multipage-coverage-badge { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.report-dossier-sheet .multipage-chips-list { display: flex; flex-wrap: wrap; gap: 6px; }
.report-dossier-sheet .multipage-chip-btn { background: #ffffff; border: 1px solid #d6d3d1; border-radius: 6px; padding: 3px 9px; font-size: 0.74rem; font-family: var(--font-mono); color: #1c1917; cursor: pointer; transition: all 0.15s ease; }
.report-dossier-sheet .multipage-chip-btn:hover { background: #1c1917; border-color: #1c1917; color: #ffffff; }

/* 3. Dual-Mode Switcher */
.report-dossier-sheet .audit-mode-selector-wrap {
    margin-bottom: 28px;
}
.report-dossier-sheet .audit-mode-selector {
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.report-dossier-sheet .mode-pill {
    color: #78716c;
}
.report-dossier-sheet .mode-pill:hover {
    color: #1c1917;
}
.report-dossier-sheet .mode-pill.active {
    background: #ffffff;
    color: #1c1917;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.report-dossier-sheet .mode-help-text {
    color: #78716c;
}

/* Mode Separation Rules (Scoped to Report Container so Pre-Audit Methodology Remains Visible) */
body.view-mode-executive #resultsContainer .tech-only {
    display: none !important;
}
body.view-mode-technical .exec-only,
body.view-mode-technical .exec-tech-bridge {
    display: none !important;
}

/* 4. Quick Wins Priority Card */
.report-dossier-sheet .quick-wins-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    color: #78350f;
}
.report-dossier-sheet .quick-wins-tag {
    background: #f59e0b;
    color: #ffffff;
    font-weight: 700;
}
.report-dossier-sheet .quick-wins-text {
    color: #78350f;
}
.report-dossier-sheet .quick-wins-link {
    color: #92400e;
    font-weight: 700;
}
.report-dossier-sheet .quick-wins-link:hover {
    color: #78350f;
}

/* 5. Executive Bottom-Line Assessment */
.report-dossier-sheet .exec-bottomline-card {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: 14px;
}
.report-dossier-sheet .exec-bottomline-title {
    color: #1c1917;
}
.report-dossier-sheet .exec-bottomline-narrative {
    color: #44403c;
    line-height: 1.65;
}
.report-dossier-sheet .exec-pillar-pill {
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    border-radius: 6px;
    color: #1c1917;
    cursor: default;
}
.report-dossier-sheet .exec-pillar-pill .pillar-label {
    color: #78716c;
}
.report-dossier-sheet .exec-pillar-pill strong {
    color: #1c1917;
    font-weight: 700;
}
.report-dossier-sheet .exec-pillar-pill.pill-good strong {
    color: #047857;
    font-weight: 700;
}
.report-dossier-sheet .exec-pillar-pill.pill-good .pillar-dot {
    color: #059669;
}
.report-dossier-sheet .exec-pillar-pill.pill-warn strong {
    color: #b45309;
    font-weight: 700;
}
.report-dossier-sheet .exec-pillar-pill.pill-warn .pillar-dot {
    color: #d97706;
}
.report-dossier-sheet .exec-pillar-pill.pill-risk strong {
    color: #b91c1c;
    font-weight: 700;
}
.report-dossier-sheet .exec-pillar-pill.pill-risk .pillar-dot {
    color: #dc2626;
}
.report-dossier-sheet .exec-top-action-strip {
    border-top-color: #e7e5e4;
}
.report-dossier-sheet .btn-exec-top-primary {
    background: #1c1917;
    color: #fafaf9;
    box-shadow: 0 1px 3px rgba(28, 25, 23, 0.18);
}
.report-dossier-sheet .btn-exec-top-primary:hover {
    background: #292524;
    box-shadow: 0 4px 12px rgba(28, 25, 23, 0.22);
}
.report-dossier-sheet .btn-exec-top-link {
    color: #57534e;
}
.report-dossier-sheet .btn-exec-top-link:hover {
    color: #1c1917;
}
.report-dossier-sheet .exec-top-meta {
    color: #78716c;
}

/* 6. 4-Engine Retrieval Readiness Matrix */
.report-dossier-sheet .engine-readiness-title {
    color: #1c1917;
}
.report-dossier-sheet .engine-readiness-sub {
    color: #57534e;
}
.report-dossier-sheet .engine-readiness-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.report-dossier-sheet .engine-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 16px 18px;
    box-sizing: border-box;
    min-width: 0;
}
.report-dossier-sheet .engine-card:hover {
    border-color: #d6d3d1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.report-dossier-sheet .engine-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.report-dossier-sheet .engine-brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 auto;
}
.report-dossier-sheet .engine-logo-badge {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    color: #1c1917;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.report-dossier-sheet .engine-logo-badge svg {
    width: 15px;
    height: 15px;
    display: block;
}
.report-dossier-sheet .engine-name {
    color: #1c1917;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}
.report-dossier-sheet .engine-sub {
    color: #78716c;
    font-size: 0.7rem;
    white-space: nowrap;
}
.report-dossier-sheet .engine-status-pill {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.report-dossier-sheet .engine-card-desc {
    color: #57534e;
    font-size: 0.8rem;
    line-height: 1.45;
}
.report-dossier-sheet .engine-status-pill.status-risk {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}
.report-dossier-sheet .engine-status-pill.status-warn {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.report-dossier-sheet .engine-status-pill.status-pass {
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.2);
}
.report-dossier-sheet .btn-engine-fix-link {
    background: #f5f5f4;
    border: 1px solid #d6d3d1;
    color: #1c1917;
}
.report-dossier-sheet .btn-engine-fix-link:hover {
    background: #1c1917;
    border-color: #1c1917;
    color: #ffffff;
}

/* 7. Executive Priorities Grid */
.report-dossier-sheet .exec-priorities-title {
    color: #1c1917;
}
.report-dossier-sheet .exec-priorities-sub {
    color: #57534e;
}
.report-dossier-sheet .priority-card,
.report-dossier-sheet .exec-priority-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}
.report-dossier-sheet .priority-card:hover,
.report-dossier-sheet .exec-priority-card:hover {
    border-color: #d6d3d1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.report-dossier-sheet .priority-step-num,
.report-dossier-sheet .exec-priority-num {
    background: #f5f5f4;
    color: #57534e;
    border: 1px solid #e7e5e4;
}
.report-dossier-sheet .priority-impact-badge,
.report-dossier-sheet .exec-priority-impact {
    background: #fffbeb;
    color: #92400e;
    border: none;
    border-radius: 4px;
}
.report-dossier-sheet .priority-impact-badge.impact-critical {
    background: #fef2f2;
    color: #b91c1c;
    border: none;
}
.report-dossier-sheet .priority-impact-badge.impact-high {
    background: #fffbeb;
    color: #92400e;
    border: none;
}
.report-dossier-sheet .priority-impact-badge.impact-medium {
    background: #eff6ff;
    color: #1d4ed8;
    border: none;
}
.report-dossier-sheet .priority-impact-badge.status-verified {
    background: #ecfdf5;
    color: #047857;
    border: none;
}
.report-dossier-sheet .priority-card-title,
.report-dossier-sheet .exec-priority-title {
    color: #1c1917;
}
.report-dossier-sheet .priority-card-problem,
.report-dossier-sheet .exec-priority-issue {
    color: #57534e;
}
.report-dossier-sheet .priority-card-fix,
.report-dossier-sheet .exec-priority-action-box {
    background: #fafaf9;
    border: none;
    border-left: 3px solid #d6d3d1;
    border-radius: 0 8px 8px 0;
    color: #44403c;
}
.report-dossier-sheet .priority-card-fix strong,
.report-dossier-sheet .exec-priority-action-box strong {
    color: #57534e;
}
.report-dossier-sheet .priority-card-benefit,
.report-dossier-sheet .exec-priority-expected {
    color: #047857;
}
.report-dossier-sheet .btn-priority-action {
    background: #1c1917;
    border: 1px solid #1c1917;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: 600;
    text-wrap: balance;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.report-dossier-sheet .btn-priority-action:hover {
    background: #292524;
    border-color: #292524;
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
.report-dossier-sheet .btn-priority-action:active {
    transform: translateY(0);
}

/* 8. Progressive Disclosure Bridge & SMB Mid-Banner */
.report-dossier-sheet .exec-tech-bridge {
    background: #fafaf9;
    border: 1px dashed #d6d3d1;
    color: #57534e;
    border-radius: 10px;
}
.report-dossier-sheet .btn-tech-bridge {
    background: #ffffff;
    border: 1px solid #d6d3d1;
    color: #1c1917;
}
.report-dossier-sheet .btn-tech-bridge:hover {
    background: #f5f5f4;
    border-color: #a8a29e;
}


/* 9. SERP vs AI Citability Simulation Card */
.report-dossier-sheet .sim-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: 14px;
}
.report-dossier-sheet .sim-panel-title {
    color: #1c1917;
}
.report-dossier-sheet .sim-panel-subtitle {
    color: #78716c;
}
.report-dossier-sheet .sim-tab-btn {
    background: #f5f5f4;
    color: #57534e;
    border: 1px solid #e7e5e4;
}
.report-dossier-sheet .sim-tab-btn.active {
    background: #ffffff;
    color: #1c1917;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.report-dossier-sheet .sim-header {
    color: #1c1917 !important;
}
.report-dossier-sheet .sim-header span:first-child {
    color: #1c1917 !important;
    font-weight: 700;
}
.report-dossier-sheet .sim-header svg {
    color: #b45309 !important;
}
.report-dossier-sheet .sim-header span:last-child {
    color: #57534e !important;
    font-weight: 600;
}
.report-dossier-sheet .serp-preview-box,
.report-dossier-sheet .google-serp-box,
.report-dossier-sheet .serp-snippet-box {
    background: #ffffff !important;
    border: 1px solid #e7e5e4 !important;
    border-radius: 8px;
    padding: 14px 16px;
}
.report-dossier-sheet .serp-url-row,
.report-dossier-sheet .serp-url-text,
.report-dossier-sheet .serp-url {
    color: #202124 !important;
    font-size: 0.8rem;
    font-weight: 500;
    word-break: break-all;
    overflow-wrap: anywhere;
    min-width: 0;
}
.report-dossier-sheet .serp-title {
    color: #1a0dab !important;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.15s ease;
    display: inline-block;
    margin-bottom: 5px;
}
.report-dossier-sheet .serp-title:hover {
    text-decoration-color: #1a0dab;
}
.report-dossier-sheet .serp-snippet {
    color: #374151 !important;
    font-size: 0.84rem;
    line-height: 1.5;
}
.report-dossier-sheet .sim-toggle-wrap {
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
}
.report-dossier-sheet .sim-toggle-btn {
    color: #57534e;
}
.report-dossier-sheet .sim-toggle-btn:hover:not(.active) {
    color: #1c1917;
    background: #e7e5e4;
}
.report-dossier-sheet .sim-toggle-btn.active {
    background: #ffffff;
    color: #047857;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.report-dossier-sheet .ai-overview-box {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    color: #1c1917;
    font-size: 0.84rem;
    line-height: 1.55;
}
.report-dossier-sheet .ai-overview-text {
    color: #1c1917;
}
.report-dossier-sheet .ai-citation-pill {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #047857 !important;
}
.report-dossier-sheet .ai-citation-pill svg {
    stroke: #047857 !important;
}

/* 10. Citation Probes Card */
.report-dossier-sheet .citation-probe-card,
.report-dossier-sheet .probe-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: 14px;
}
.report-dossier-sheet .citation-probe-title,
.report-dossier-sheet .probe-title {
    color: #1c1917;
}
.report-dossier-sheet .citation-probe-subtitle,
.report-dossier-sheet .probe-sub {
    color: #57534e;
}
.report-dossier-sheet .probe-query-row {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 8px;
}
.report-dossier-sheet .probe-engine-tag {
    background: #f5f5f4;
    color: #57534e;
    border: 1px solid #e7e5e4;
}
.report-dossier-sheet .probe-query-text {
    color: #1c1917;
}
.report-dossier-sheet .probe-status-pill.probe-status-atrisk {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.report-dossier-sheet .probe-status-pill.probe-status-omitted {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}
.report-dossier-sheet .probe-status-pill.probe-status-competitor {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}
.report-dossier-sheet .probe-status-pill.probe-status-pass {
    background: rgba(5, 150, 105, 0.08);
    color: #047857;
    border: 1px solid rgba(5, 150, 105, 0.2);
}
.report-dossier-sheet .probe-footer-meta,
.report-dossier-sheet .probe-footer-callout {
    color: #78716c;
}
.report-dossier-sheet .probe-footer-link {
    color: #b45309;
    font-weight: 700;
}
.report-dossier-sheet .probe-footer-link:hover {
    color: #92400e;
}
.report-dossier-sheet .btn-unlock-probe,
.report-dossier-sheet .btn-unlock-probes {
    background: var(--color-primary);
    color: #171716;
    font-weight: 700;
}
.report-dossier-sheet .btn-unlock-probe:hover,
.report-dossier-sheet .btn-unlock-probes:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(248, 202, 60, 0.35);
}
.report-dossier-sheet .btn-unlock-probe:active,
.report-dossier-sheet .btn-unlock-probes:active {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(248, 202, 60, 0.25);
}
.report-dossier-sheet .btn-probe-inline-cta {
    background: transparent !important;
    color: #b45309 !important;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 0;
}
.report-dossier-sheet .btn-probe-inline-cta:hover {
    color: #92400e !important;
}

/* 11. 1-Click Webmaster Briefing Banner */
.report-dossier-sheet .webmaster-briefing-banner {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
}

/* 11b. Grade A Promoted Stage 2: Light Editorial Split Card */
.grade-a-spotlight-card[hidden] {
    display: none !important;
}
.grade-a-spotlight-card {
    container: grade-a-spotlight / inline-size;
    display: block;
    margin-block: 0 22px;
    padding: 20px;
    background: #fafaf9;
    border: 1px solid #d6d3d1;
    border-inline-start: 4px solid #1c1917;
    border-radius: 14px;
    box-shadow: 0 4px 16px -4px rgba(28, 25, 23, 0.08);
    color: #1c1917;
    text-align: left;
}
.grade-a-spotlight-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px 24px;
}
.grade-a-stage-bar {
    padding-block-end: 12px;
    border-block-end: 1px solid #e7e5e4;
}
.grade-a-stage-track {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}
.grade-a-stage-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
}
.grade-a-stage-item.stage-done {
    color: #047857;
}
.grade-a-stage-item.stage-next {
    color: #1c1917;
    font-weight: 700;
}
.grade-a-stage-item.stage-next::before {
    content: "\2192";
    content: "\2192" / "";
    color: #a8a29e;
    font-weight: 600;
    margin-inline-end: 4px;
}
.grade-a-stage-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 18px;
    block-size: 18px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    flex-shrink: 0;
}
.stage-done .grade-a-stage-badge {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}
.stage-next .grade-a-stage-badge {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}
.grade-a-stage-status {
    color: #92400e;
    font-weight: 600;
}
.grade-a-spotlight-main,
.grade-a-preview-box {
    min-inline-size: 0;
}
.grade-a-spotlight-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.grade-a-spotlight-title {
    margin: 0;
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.26rem);
    font-weight: 800;
    line-height: 1.26;
    letter-spacing: -0.02em;
    color: #1c1917;
    text-wrap: balance;
}
.grade-a-spotlight-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #44403c;
    text-wrap: pretty;
}
.grade-a-spotlight-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-block-start: 6px;
}
.btn-grade-a-spotlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-block-size: 46px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 1px solid #eab308;
    background: linear-gradient(135deg, #f8ca3c 0%, #eab308 100%);
    color: #171716;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-align: center;
    text-wrap: balance;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-grade-a-spotlight:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(234, 179, 8, 0.38);
}
.btn-grade-a-spotlight:active {
    transform: translateY(0);
}
.btn-grade-a-spotlight:focus-visible {
    outline: 2px solid #1c1917;
    outline-offset: 3px;
}
.grade-a-spotlight-meta {
    font-size: 0.75rem;
    color: #57534e;
    line-height: 1.4;
}
.grade-a-preview-box {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.grade-a-preview-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #57534e;
}
.grade-a-preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.grade-a-preview-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #44403c;
}
.grade-a-preview-item strong {
    color: #1c1917;
    font-weight: 700;
}
.grade-a-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 18px;
    block-size: 18px;
    margin-block-start: 1px;
    border-radius: 5px;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    color: #1c1917;
    flex-shrink: 0;
}
.grade-a-preview-icon svg {
    display: block;
}
@container grade-a-spotlight (inline-size >= 680px) {
    .grade-a-spotlight-inner {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        align-items: start;
    }
    .grade-a-stage-bar {
        grid-column: 1 / -1;
    }
}
@container grade-a-spotlight (inline-size < 460px) {
    .grade-a-stage-track {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .grade-a-stage-item.stage-next::before {
        content: none;
    }
    .grade-a-spotlight-actions {
        align-items: stretch;
    }
    .btn-grade-a-spotlight {
        inline-size: 100%;
    }
    .grade-a-spotlight-meta {
        text-align: center;
    }
}
@media (prefers-reduced-motion: reduce) {
    .btn-grade-a-spotlight { transition: none; }
    .btn-grade-a-spotlight:hover { transform: none; }
}
@media (forced-colors: active) {
    .grade-a-spotlight-card,
    .grade-a-preview-box {
        background: Canvas;
        color: CanvasText;
        border: 2px solid CanvasText;
        box-shadow: none;
    }
    .grade-a-stage-badge {
        border: 1px solid CanvasText;
        color: CanvasText;
    }
    .btn-grade-a-spotlight {
        border: 2px solid ButtonText;
        background: ButtonFace;
        color: ButtonText;
    }
    .btn-grade-a-spotlight:focus-visible {
        outline: 2px solid Highlight;
    }
}
.report-dossier-sheet .webmaster-tag {
    color: #b45309;
}
.report-dossier-sheet .webmaster-title,
.report-dossier-sheet .briefing-banner-title {
    color: #1c1917;
}
.report-dossier-sheet .webmaster-desc,
.report-dossier-sheet .briefing-banner-sub {
    color: #57534e;
}
.report-dossier-sheet .btn-briefing-copy,
.report-dossier-sheet .btn-copy-briefing {
    background: #ffffff;
    border: 1px solid #d6d3d1;
    color: #44403c;
}
.report-dossier-sheet .btn-briefing-copy:hover,
.report-dossier-sheet .btn-copy-briefing:hover {
    background: #f5f5f4;
    color: #1c1917;
}
.report-dossier-sheet .btn-briefing-email,
.report-dossier-sheet .btn-email-webmaster {
    background: var(--color-primary);
    color: #171716;
    font-weight: 700;
}
.report-dossier-sheet .btn-briefing-email:hover,
.report-dossier-sheet .btn-email-webmaster:hover {
    background: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(248, 202, 60, 0.35);
}
.report-dossier-sheet .btn-briefing-email:active,
.report-dossier-sheet .btn-email-webmaster:active,
.report-dossier-sheet .btn-briefing-copy:active,
.report-dossier-sheet .btn-copy-briefing:active {
    transform: translateY(0);
}

/* 12. AEO Editorial Blueprint */
.report-dossier-sheet .exec-editorial-blueprint {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: 14px;
}
.report-dossier-sheet .editorial-blueprint-title {
    color: #1c1917;
}
.report-dossier-sheet .editorial-blueprint-sub {
    color: #57534e;
}
.report-dossier-sheet .editorial-card {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
}
.report-dossier-sheet .editorial-card:hover {
    border-color: #d6d3d1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
.report-dossier-sheet .editorial-format-badge {
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
}
.report-dossier-sheet .editorial-card-title {
    color: #1c1917;
}
.report-dossier-sheet .editorial-card-desc {
    color: #57534e;
}
.report-dossier-sheet .btn-draft-editorial {
    background: #1c1917;
    border: 1px solid #1c1917;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.report-dossier-sheet .btn-draft-editorial:hover {
    border-color: #292524;
    background: #292524;
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
.report-dossier-sheet .btn-draft-editorial:active {
    transform: translateY(0);
}

/* 13. Technical Mode Metric Cards */
.report-dossier-sheet .score-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: 14px;
    color: #1c1917;
}
.report-dossier-sheet .pillar-weight-badge {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
}
.report-dossier-sheet .pillar-weight-badge.aeo-pillar-badge {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}
.report-dossier-sheet .score-ring-bg {
    stroke: #e7e5e4;
}
.report-dossier-sheet .score-number {
    color: #1c1917;
}
.report-dossier-sheet .score-card-title {
    color: #1c1917;
}
.report-dossier-sheet .score-card-subtitle {
    color: #57534e;
}
.report-dossier-sheet .verdict-banner {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-left: 3px solid #d97706;
    color: #44403c;
}
.report-dossier-sheet .verdict-tag-citable {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.report-dossier-sheet .verdict-tag-risk {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.report-dossier-sheet .score-metrics-list {
    border-top: 1px solid #e7e5e4;
}
.report-dossier-sheet .metric-label {
    color: #57534e;
}
.report-dossier-sheet .metric-value {
    color: #1c1917;
}
.report-dossier-sheet .metric-status-pass {
    color: #047857 !important;
    font-weight: 600;
}
.report-dossier-sheet .metric-status-pass .status-svg polyline {
    stroke: #047857 !important;
}
.report-dossier-sheet .metric-status-pass .status-svg circle {
    stroke: rgba(4, 120, 87, 0.35) !important;
    fill: rgba(4, 120, 87, 0.08) !important;
}
.report-dossier-sheet .metric-status-warn {
    color: #b45309 !important;
    font-weight: 600;
}
.report-dossier-sheet .metric-status-warn .status-svg path {
    stroke: rgba(180, 83, 9, 0.5) !important;
    fill: rgba(180, 83, 9, 0.1) !important;
}
.report-dossier-sheet .metric-status-warn .status-svg line {
    stroke: #b45309 !important;
}
.report-dossier-sheet .metric-status-fail {
    color: #b91c1c !important;
    font-weight: 600;
}
.report-dossier-sheet .metric-status-fail .status-svg circle {
    stroke: rgba(185, 28, 28, 0.4) !important;
    fill: rgba(185, 28, 28, 0.1) !important;
}
.report-dossier-sheet .metric-status-fail .status-svg line {
    stroke: #b91c1c !important;
}
.report-dossier-sheet .score-grade {
    color: #047857 !important;
}
.report-dossier-sheet .deductions-box {
    border-top: 1px dashed #e7e5e4;
}
.report-dossier-sheet .deduction-item {
    color: #b91c1c;
    font-weight: 500;
}
.report-dossier-sheet .btn-deduction-fix {
    background: #f5f5f4;
    border: 1px solid #d6d3d1;
    color: #1c1917;
}
.report-dossier-sheet .btn-deduction-fix:hover {
    background: #1c1917;
    border-color: #1c1917;
    color: #ffffff;
}
.report-dossier-sheet .btn-deduction-fix:active {
    transform: translateY(1px);
}
.report-dossier-sheet .score-card-cta-footer {
    border-top: 1px solid #e7e5e4;
}
.report-dossier-sheet .btn-score-card-cta {
    background: #1c1917;
    border: 1px solid #1c1917;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.report-dossier-sheet .btn-score-card-cta:hover {
    background: #292524;
    border-color: #292524;
    color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}
.report-dossier-sheet .btn-score-card-cta:active {
    transform: translateY(0);
}
.report-dossier-sheet .benefits-box {
    border-top: 1px dashed #d1fae5;
}
.report-dossier-sheet .benefit-item {
    color: #065f46 !important;
    font-weight: 500;
}
.report-dossier-sheet .benefit-item .status-svg polyline {
    stroke: #047857 !important;
}
.report-dossier-sheet .benefit-item .status-svg circle {
    stroke: rgba(4, 120, 87, 0.35) !important;
    fill: rgba(4, 120, 87, 0.08) !important;
}
.report-dossier-sheet .schema-chip {
    background: #fafaf9;
    border-color: #e7e5e4;
    color: #44403c;
}
.report-dossier-sheet .schema-chip.detected {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
    font-weight: 600;
}
.report-dossier-sheet .schema-chip.detected .status-svg polyline {
    stroke: #047857 !important;
}
.report-dossier-sheet .schema-chip.detected .status-svg circle {
    stroke: rgba(4, 120, 87, 0.35) !important;
    fill: rgba(4, 120, 87, 0.08) !important;
}
.report-dossier-sheet .aeo-context-note {
    background: #fafaf9 !important;
    border: 1px solid #e7e5e4 !important;
    color: #57534e !important;
}
.report-dossier-sheet .aeo-context-note strong {
    color: #1c1917 !important;
}
.report-dossier-sheet .subaudit-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    border-radius: 12px;
}
.report-dossier-sheet .subaudit-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    min-height: 38px;
}
.report-dossier-sheet .subaudit-title {
    color: #1c1917;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}
.report-dossier-sheet .subaudit-badge {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    line-height: 1.2 !important;
    background: #f5f5f4;
    color: #57534e;
    border: 1px solid #e7e5e4;
}
.report-dossier-sheet .subaudit-badge.badge-pass {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
}
.report-dossier-sheet .subaudit-badge.badge-warn {
    background: #fffbeb !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}
.report-dossier-sheet .subaudit-badge.badge-fail {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}
.report-dossier-sheet .subaudit-desc {
    color: #57534e;
}

/* 14. INSET DARK TERMINAL FOR CODE WORKBENCH (#remediations) */
.report-dossier-sheet .remediation-section {
    background: #171716 !important;
    border: 1px solid #292928 !important;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color: #f5f5f7;
}
.report-dossier-sheet .remediation-header h3 {
    color: #f5f5f7 !important;
}
.report-dossier-sheet .remediation-header p {
    color: #a3a3a3 !important;
}
.report-dossier-sheet .tab-btn {
    background: transparent;
    color: #a3a3a3;
    border-bottom: 2px solid transparent;
}
.report-dossier-sheet .tab-btn.active {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
}
.report-dossier-sheet .code-container {
    background: #141413 !important;
    border: 1px solid #292928 !important;
}
.report-dossier-sheet .code-container pre code {
    color: #f5f5f7 !important;
}

/* 14b. Why Fynch vs. Monitoring-Only Trackers Responsive Table */
.report-dossier-sheet .tracker-contrast-section {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    padding: 22px 24px;
    margin-top: 30px;
    text-align: left;
    color: #1c1917;
}
.report-dossier-sheet .tracker-contrast-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b45309;
}
.report-dossier-sheet .tracker-contrast-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1c1917;
    margin: 4px 0 14px 0;
}
.report-dossier-sheet .tracker-contrast-wrap {
    overflow-x: auto;
    max-inline-size: 100%;
    container-type: inline-size;
    border-radius: 10px;
}
.report-dossier-sheet .tracker-contrast-wrap:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}
.report-dossier-sheet .tracker-contrast-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
    --label-2: "Monitoring-Only AI Trackers";
    --label-3: "Fynch Execution Workspace";
}
.report-dossier-sheet .tracker-contrast-table thead th {
    text-align: left;
    padding: 10px 12px;
    background: #f5f5f4;
    color: #57534e;
    font-weight: 700;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e7e5e4;
}
.report-dossier-sheet .tracker-contrast-table thead th:last-child {
    background: #fef3c7;
    color: #92400e;
}
.report-dossier-sheet .tracker-contrast-table tbody th,
.report-dossier-sheet .tracker-contrast-table tbody td {
    text-align: left;
    padding: 11px 12px;
    border-bottom: 1px solid #f0eeeb;
    vertical-align: top;
    line-height: 1.45;
}
@container (width >= 600px) {
    .report-dossier-sheet .tracker-contrast-table tbody tr:last-child th,
    .report-dossier-sheet .tracker-contrast-table tbody tr:last-child td {
        border-bottom: none;
    }
}
.report-dossier-sheet .tracker-contrast-table tbody th {
    font-weight: 700;
    color: #1c1917;
    width: 22%;
}
.report-dossier-sheet .tracker-contrast-table tbody td {
    color: #57534e;
    width: 39%;
}
.report-dossier-sheet .tracker-contrast-table tbody td.fynch-cell {
    color: #1c1917;
    font-weight: 600;
    background: #fffbeb;
}
.visually-hidden-caption {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@container (width < 600px) {
    .report-dossier-sheet .tracker-contrast-table,
    .report-dossier-sheet .tracker-contrast-table tbody,
    .report-dossier-sheet .tracker-contrast-table tbody tr,
    .report-dossier-sheet .tracker-contrast-table tbody th,
    .report-dossier-sheet .tracker-contrast-table tbody td {
        display: block;
        width: 100%;
    }
    .report-dossier-sheet .tracker-contrast-table thead {
        display: none;
    }
    .report-dossier-sheet .tracker-contrast-table tbody tr {
        margin-block-end: 12px;
        border: 1px solid #e7e5e4;
        border-radius: 10px;
        overflow: hidden;
    }
    .report-dossier-sheet .tracker-contrast-table tbody tr:last-child {
        margin-block-end: 0;
    }
    .report-dossier-sheet .tracker-contrast-table tbody th {
        background: #f5f5f4;
        border-bottom: 1px solid #e7e5e4;
        padding: 9px 12px;
    }
    .report-dossier-sheet .tracker-contrast-table tbody td:last-child {
        border-bottom: none;
    }
    .report-dossier-sheet .tracker-contrast-table tbody td:nth-child(2)::before {
        content: var(--label-2) ": ";
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #78716c;
        margin-bottom: 2px;
    }
    .report-dossier-sheet .tracker-contrast-table tbody td:nth-child(3)::before {
        content: var(--label-3) ": ";
        display: block;
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #b45309;
        margin-bottom: 2px;
    }
}

/* 15. Continuous Monitoring Card */
.report-dossier-sheet .watchdog-card {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    color: #1c1917;
    margin-top: 36px;
}
.report-dossier-sheet .watchdog-badge {
    color: #92400e;
    background: rgba(248, 202, 60, 0.18);
    border: 1px solid rgba(180, 83, 9, 0.2);
}
.report-dossier-sheet .watchdog-title {
    color: #1c1917;
}
.report-dossier-sheet .watchdog-sub {
    color: #57534e;
}
.report-dossier-sheet .btn-deploy-agent-gold {
    background: var(--color-primary);
    color: #171716;
    font-weight: 700;
}
.report-dossier-sheet .btn-deploy-agent-gold:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(248, 202, 60, 0.4);
}
.report-dossier-sheet .btn-deploy-agent-gold:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(248, 202, 60, 0.25);
}
.watchdog-secondary-wrap {
    margin-top: 12px;
}
.btn-watchdog-secondary-link {
    background: transparent;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.15s ease;
}
.btn-watchdog-secondary-link:hover {
    color: #ffffff;
}
.btn-watchdog-secondary-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.report-dossier-sheet .btn-watchdog-secondary-link {
    color: #57534e;
}
.report-dossier-sheet .btn-watchdog-secondary-link:hover {
    color: #1c1917;
}
.report-dossier-sheet .btn-watchdog-secondary-link:focus-visible {
    outline: 2px solid #d97706;
    outline-offset: 2px;
}
.btn-sim-unlock-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}
.btn-sim-unlock-cta:hover {
    background: rgba(56, 189, 248, 0.24);
    border-color: #38bdf8;
    transform: translateY(-1px);
}
.btn-sim-unlock-cta:active {
    transform: translateY(0);
}
.report-dossier-sheet .btn-sim-unlock-cta {
    color: #0369a1;
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.35);
}
.report-dossier-sheet .btn-sim-unlock-cta:hover {
    color: #075985;
    background: rgba(2, 132, 199, 0.18);
    border-color: #0369a1;
}
.content-swap-fade {
    animation: backdropFadeIn 0.16s ease-out;
}
@media (prefers-reduced-motion: reduce) {
    .btn-spinner { animation-duration: 2s; }
    .modal-backdrop,
    #modalStepForm,
    #modalStepOtp,
    #modalStepLoading,
    .content-swap-fade {
        animation: none !important;
    }
}
.report-dossier-sheet .watchdog-guarantee {
    color: #78716c;
}

/* 16. Keyboard Focus Visibility (WCAG 2.2 AA 2.4.7 & 1.4.11) */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.report-dossier-sheet button:focus-visible,
.report-dossier-sheet a:focus-visible {
    outline: 2px solid #1c1917;
    outline-offset: 2px;
}
.report-dossier-sheet .remediation-section button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Responsive Mobile Dossier */
@media (max-width: 768px) {
    /* On mobile in Report Mode, #graderMobileStickyBar owns the persistent CTA — avoid double sticky bars */
    body.report-mode-active #btnNavCta {
        display: none;
    }
    .report-workspace-bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding: 8px 10px;
        margin-bottom: 12px;
    }
    .workspace-bar-left,
    .workspace-bar-right {
        display: contents;
    }
    .workspace-bar-divider,
    .workspace-domain-chip,
    .btn-workspace-print,
    .btn-workspace-primary {
        display: none;
    }
    .btn-workspace-action {
        flex: 1 1 auto;
        justify-content: center;
        min-block-size: 44px;
        min-inline-size: 44px;
        padding: 8px 8px;
        font-size: 0.74rem;
        gap: 4px;
    }
    .report-dossier-sheet {
        padding: 24px 18px 32px;
        margin: 8px auto 40px;
        border-radius: 14px;
    }
    .dossier-formal-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .dossier-stamp-right {
        width: 100%;
    }
    .report-dossier-sheet .exec-audit-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 14px 16px;
    }
    .report-dossier-sheet .exec-left {
        flex: none;
        width: 100%;
    }
    .report-dossier-sheet .exec-center {
        width: 100%;
        min-width: 0;
        align-items: flex-start;
        padding: 12px 14px;
    }
    .report-dossier-sheet .exec-meta-line {
        white-space: normal;
        flex-wrap: wrap;
    }
    .report-dossier-sheet .remediation-section {
        padding: 18px 14px;
    }
    .report-dossier-sheet .score-card,
    .report-dossier-sheet .sim-card,
    .report-dossier-sheet .subaudit-card,
    .report-dossier-sheet .priority-card,
    .report-dossier-sheet .exec-priority-card {
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .report-dossier-sheet .engine-readiness-grid {
        grid-template-columns: 1fr;
    }
    .report-dossier-sheet .engine-card-top {
        flex-wrap: wrap;
        gap: 8px;
    }
    .report-dossier-sheet .engine-sub {
        white-space: normal;
    }
    .report-dossier-sheet .webmaster-briefing-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    .report-dossier-sheet .webmaster-banner-left {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
    .report-dossier-sheet .webmaster-banner-actions {
        width: 100%;
    }
    .report-dossier-sheet .webmaster-banner-actions .btn-briefing-action {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    .report-dossier-sheet .tracker-contrast-section {
        padding: 16px 14px;
    }
}

/* Provisioning stepper (presentational only; state is driven by waitForGraderActivation) */
.prov-progress { width: 100%; max-width: 320px; height: 4px; margin: 18px auto 0; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.prov-progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--color-primary), #fde68a); border-radius: inherit; box-shadow: 0 0 10px rgba(248, 202, 60, 0.45); transition: width 0.45s ease-out; }
.prov-steps { list-style: none; margin: 18px auto 0; padding: 0; max-width: 320px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.prov-step { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--color-text-dim); transition: color 0.25s ease; }
.prov-step-icon { flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.18); display: inline-flex; align-items: center; justify-content: center; font-size: 0.65rem; line-height: 1; transition: background 0.25s ease, border-color 0.25s ease; }
.prov-step[data-state="active"] { color: #fff; }
.prov-step[data-state="active"] .prov-step-icon { border-color: var(--color-primary); animation: provPulse 1.4s ease-out infinite; }
.prov-step[data-state="active"] .prov-step-icon::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }
.prov-step[data-state="done"] { color: #d1d5db; }
.prov-step[data-state="done"] .prov-step-icon { background: var(--color-primary); border-color: var(--color-primary); color: #111; }
.prov-step[data-state="done"] .prov-step-icon::after { content: '\2713'; font-weight: 800; }
.prov-step[data-state="deferred"] { color: var(--color-text-muted); }
.prov-step[data-state="deferred"] .prov-step-icon { border-style: dashed; border-color: var(--color-text-muted); }
.prov-step[data-state="deferred"] .prov-step-icon::after { content: '\2026'; }
@keyframes provPulse {
    0% { box-shadow: 0 0 0 0 rgba(248, 202, 60, 0.5); }
    70% { box-shadow: 0 0 0 7px rgba(248, 202, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(248, 202, 60, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .prov-progress-fill, .prov-step, .prov-step-icon { transition: none; }
    .prov-step[data-state="active"] .prov-step-icon { animation: none; }
}

/* Pre-Scan Benchmark Stats + Campaign LP Mode */
html.campaign-lp-mode body:not(.report-mode-active) #faqSection,
html.campaign-lp-mode body:not(.report-mode-active) .footer-tool-link,
body.report-mode-active .pre-scan-proof-section { display: none; }
.pre-scan-proof-section { padding: 48px 0 40px; border-top: 1px solid var(--color-border); }
.proof-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof-stat-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.proof-stat-num { font-size: 1.85rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-primary); margin-bottom: 6px; }
.proof-stat-num.alert { color: #f87171; }
.proof-stat-title { font-size: 0.95rem; font-weight: 700; color: var(--color-text-white); margin-bottom: 6px; }
.proof-stat-desc { font-size: 0.82rem; line-height: 1.55; color: var(--color-text-muted); }
.proof-stat-source { margin-top: 12px; font-size: 0.72rem; font-weight: 600; color: var(--color-primary); letter-spacing: 0.02em; }
@media (max-width: 900px) { .proof-stats-grid { grid-template-columns: 1fr; } }

@media print {
    body { background: #fff !important; color: #000 !important; }
    .report-workspace-bar, nav.fynch-nav, .ambient-glow, .demo-pills-bar, .audit-form-card, .turnstile-wrapper, .btn-exec-action, .btn-run-audit, .quick-wins-link, .tab-nav, .btn-copy-code, .watchdog-card, .pre-scan-proof-section, .technical-guide-section, .faq-section, .modal-backdrop, #toast, .fynch-footer, .code-locked-overlay, .audit-mode-selector-wrap, .exec-tech-bridge, .webmaster-briefing-banner, .grade-a-spotlight-card, .exec-top-action-strip, .btn-draft-editorial, .dossier-quick-actions, .grader-mobile-sticky-bar, .scorecard-multipage-strip, .score-card-cta-footer, .btn-deduction-fix, .btn-priority-action, .btn-engine-fix-link, .btn-lift-unlock { display: none !important; }
    .container { max-width: 100% !important; padding: 0 !important; }
    .report-dossier-sheet { max-width: 100% !important; box-shadow: none !important; border: none !important; padding: 0 !important; margin: 0 !important; }
    .exec-audit-bar { background: #f8f9fa !important; border: 1px solid #ddd !important; color: #000 !important; box-shadow: none !important; }
    .score-card, .sim-card, .remediation-section, .subaudit-card, .exec-summary-view, .exec-bottomline-card, .exec-priority-card, .engine-card, .editorial-card, .exec-editorial-blueprint, .probe-card { background: #fff !important; border: 1px solid #ccc !important; color: #000 !important; box-shadow: none !important; break-inside: avoid; }
    .score-number, .exec-score-val, h1, h2, h3, h4, strong { color: #000 !important; }
    .exec-bottomline-narrative, .exec-priority-issue, .exec-priority-expected, .engine-card-desc, .editorial-card-desc { color: #222 !important; }
    .exec-pillar-pill, .engine-status-pill, .editorial-format-badge { background: #f8f9fa !important; color: #000 !important; border: 1px solid #ddd !important; }
    pre, code { background: #f5f5f5 !important; color: #222 !important; border: 1px solid #ddd !important; }
}
