        /* TestURL Sovereign design tokens */
        :root {
            /* Brand */
            --primary: #4f46e5;
            --primary-dark: #3525cd;
            --primary-light: #eef2ff;
            --secondary: #312e81;
            --success: #10b981;
            --success-light: #d1fae5;
            --success-dark: #047857;
            --warning: #f59e0b;
            --danger: #ba1a1a;
            --info: #0ea5e9;
            /* Neutrals — ultra-dark blue text instead of pure grey/black */
            --dark: #1e1b4b;
            --muted: #464555;
            --border: #c7c4d8;
            --border-soft: #e3dfff;
            --bg: #f8fafc;
            --card: #ffffff;
            /* Radii: 8px buttons/inputs, 16px large containers */
            --radius: 16px;
            --radius-sm: 8px;
            --radius-md: 12px;
            /* Tonal-layer shadows: low-opacity indigo tints (Sovereign system) */
            --shadow:    0 1px 2px rgba(49,46,129,.06), 0 4px 12px rgba(49,46,129,.08);
            --shadow-lg: 0 10px 24px rgba(49,46,129,.10), 0 20px 48px rgba(49,46,129,.12);
            /* Typography */
            --font-display: 'Manrope', 'Inter', system-ui, -apple-system, sans-serif;
            --font-body:    'Inter', system-ui, -apple-system, sans-serif;
            --font-mono:    SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
        }

        /* Label-caps utility — metadata, table headers, "label-caps" tier */
        .label-caps {
            font-family: var(--font-body);
            font-size: 12px;
            font-weight: 600;
            line-height: 16px;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: var(--muted);
        }
        /* Mono-code utility — IPs, server strings */
        .mono-code {
            font-family: var(--font-mono);
            font-size: 14px;
            line-height: 20px;
        }

        * { box-sizing: border-box; }

        body {
            font-family: var(--font-body);
            background: var(--bg);
            color: var(--dark);
            margin: 0;
            -webkit-font-smoothing: antialiased;
        }
        h1, h2, h3, h4, .display-lg, .headline-md, .headline-sm {
            font-family: var(--font-display);
        }

        /* ── Hero ── */
        .hero {
            background: linear-gradient(135deg, #1e1b4b 0%, var(--secondary) 55%, #4338ca 100%);
            padding: 80px 0;
            color: white;
        }
        .hero h1 {
            font-family: var(--font-display);
            font-size: clamp(2.4rem, 5vw, 3.8rem);
            font-weight: 800;
            line-height: 1.08;
            letter-spacing: -0.02em;
            margin: 0 0 16px;
        }
        .hero .hero-sub {
            font-family: var(--font-body);
            font-size: 1.125rem;
            opacity: .82;
            max-width: 560px;
            line-height: 1.65;
            margin: 0;
        }

        /* ── Form/features grid ── */
        .form-section { margin-top: -48px; padding-bottom: 60px; }
        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 28px;
            align-items: start;
        }
        @media (max-width: 860px) {
            .form-grid { grid-template-columns: 1fr; }
        }

        /* ── Cards (Container-on-Container, "layered security" feel) ── */
        .card-box {
            background: var(--card);
            border: 1px solid var(--border-soft);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            padding: 36px;
        }
        .card-box h2 {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.01em;
            margin: 0 0 24px;
            color: var(--dark);
        }
        .results-card {
            background: var(--card);
            border: 1px solid var(--border-soft);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 32px;
            margin-bottom: 24px;
        }

        /* ── Vertical progress sidebar ─────────────────────────────────── */
        #progress-sidebar {
            position: fixed;
            right: 22px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 200;
            background: #fff;
            border: 1px solid var(--border-soft);
            border-radius: var(--radius);
            padding: 18px 14px 18px 12px;
            box-shadow: var(--shadow-lg);
            display: none;
            min-width: 130px;
        }
        #progress-sidebar .ps-title {
            font-family: var(--font-body);
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--muted);
            margin-bottom: 14px;
            text-align: center;
        }
        .ps-track { display: flex; flex-direction: column; }
        .ps-step  { display: flex; align-items: center; gap: 9px; position: relative; }
        .ps-dot {
            width: 13px; height: 13px; border-radius: 50%;
            border: 2px solid #e2e8f0; background: #f8fafc;
            flex-shrink: 0; transition: background .35s, border-color .35s, box-shadow .35s;
        }
        .ps-step.ps-done .ps-dot   { background: #10b981; border-color: #10b981; }
        .ps-step.ps-active .ps-dot {
            background: #fff; border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79,70,229,.18);
            animation: ps-pulse 1.6s ease-in-out infinite;
        }
        .ps-step.ps-error  .ps-dot { background: #ef4444; border-color: #ef4444; }
        @keyframes ps-pulse {
            0%,100% { box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
            50%      { box-shadow: 0 0 0 5px rgba(79,70,229,.08); }
        }
        .ps-label {
            font-size: .72rem; font-weight: 600;
            color: #cbd5e1; white-space: nowrap;
            transition: color .35s;
        }
        .ps-step.ps-done   .ps-label { color: #10b981; }
        .ps-step.ps-active .ps-label { color: #4f46e5; }
        .ps-step.ps-error  .ps-label { color: #ef4444; }
        .ps-connector {
            width: 2px; height: 22px; background: #e2e8f0;
            margin: 3px 0 3px 5.5px; border-radius: 2px;
            transition: background .35s;
        }
        .ps-connector.ps-done { background: #10b981; }
        @media (max-width: 1180px) { #progress-sidebar { display: none !important; } }

        /* ── PDF ready banner ──────────────────────────────────────────── */
        #pdf-download-btn {
            background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
            border: 1px solid #c7d2fe;
            border-radius: var(--radius);
            padding: 20px 28px;
            display: none;
            align-items: center;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 24px;
            flex-wrap: wrap;
            box-shadow: var(--shadow);
        }
        #pdf-download-btn .pdf-text-block { flex: 1; min-width: 0; }
        #pdf-download-btn .pdf-text-block strong {
            display: block;
            font-family: var(--font-display);
            font-size: 1.05rem;
            font-weight: 700;
            letter-spacing: -0.005em;
            color: var(--secondary);
            margin-bottom: 3px;
        }
        #pdf-download-btn .pdf-text-block span {
            font-size: .85rem;
            color: var(--primary);
        }
        .results-card h3 {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 600;
            line-height: 1.3;
            letter-spacing: -0.005em;
            margin: 0 0 20px;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .section-icon {
            width: 34px; height: 34px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        /* ── Report layout (sidebar nav + content panels) ─────────────── */
        body.report-mode .hero,
        body.report-mode .form-section,
        body.report-mode #progress-sidebar { display: none !important; }

        .report-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 24px 0 16px;
            flex-wrap: wrap;
        }
        .report-toolbar h1 {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.01em;
            color: var(--dark);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .report-toolbar h1 .domain {
            color: var(--primary);
            font-family: var(--font-mono);
            font-size: .95rem;
            font-weight: 500;
            background: var(--primary-light);
            padding: 4px 10px;
            border-radius: var(--radius-sm);
        }
        .report-back-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 14px;
            background: #ffffff;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--dark);
            font-family: var(--font-body);
            font-size: .85rem;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            transition: border-color .15s, color .15s, background .15s;
        }
        .report-back-btn:hover { border-color: var(--primary); color: var(--primary); }

        .report-layout {
            display: grid;
            grid-template-columns: 240px 1fr;
            gap: 24px;
            align-items: start;
            margin-top: 16px;
        }
        .report-nav {
            position: sticky;
            top: 16px;
            background: var(--card);
            border: 1px solid var(--border-soft);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            padding: 8px 0;
            overflow: hidden;
        }
        .report-nav-header {
            font-family: var(--font-body);
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--muted);
            padding: 12px 18px 10px;
            border-bottom: 1px solid var(--border-soft);
            margin-bottom: 6px;
        }
        .report-nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px 10px 13px;
            color: var(--dark);
            font-size: .88rem;
            font-weight: 600;
            cursor: pointer;
            border-left: 3px solid transparent;
            background: none;
            border-top: 0; border-right: 0; border-bottom: 0;
            width: 100%;
            text-align: left;
            font-family: inherit;
            transition: background .15s, border-color .15s, color .15s;
        }
        .report-nav-item:hover {
            background: var(--bg);
            color: var(--primary);
        }
        .report-nav-item.active {
            background: var(--primary-light);
            border-left-color: var(--primary);
            color: var(--primary);
        }
        .report-nav-item .nav-icon {
            width: 26px; height: 26px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            border-radius: 6px;
            background: rgba(0,0,0,.04);
            flex-shrink: 0;
        }
        .report-nav-item.active .nav-icon { background: rgba(79,70,229,.18); }
        .report-nav-item .nav-label { flex: 1; min-width: 0; }
        .report-nav-item .nav-status {
            width: 8px; height: 8px;
            border-radius: 50%;
            background: #cbd5e1;
            flex-shrink: 0;
            transition: background .25s;
        }
        .report-nav-item .nav-status.running {
            background: var(--primary);
            animation: ps-pulse 1.6s ease-in-out infinite;
        }
        .report-nav-item .nav-status.done    { background: #10b981; }
        .report-nav-item .nav-status.error   { background: var(--danger); }
        .report-nav-sub {
            padding-left: 30px;
            font-size: .82rem;
            font-weight: 500;
            color: #64748b;
        }
        .report-nav-sub .nav-icon {
            width: 20px; height: 20px;
            font-size: 11px;
        }
        .report-nav-sub.active { color: var(--primary); }

        .report-content {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 0;
        }
        body.report-mode #pdf-download-btn { order: -1; margin-bottom: 18px; }
        .report-panel { display: none; }
        .report-panel.active { display: block; }
        .report-panel > .results-card { margin-bottom: 0; }

        .report-overview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 14px;
        }
        .report-overview-card {
            background: var(--card);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-soft);
            padding: 18px;
            cursor: pointer;
            transition: border-color .15s, transform .1s, box-shadow .15s;
            display: flex;
            flex-direction: column;
            gap: 10px;
            text-align: left;
            font-family: inherit;
        }
        .report-overview-card:hover {
            border-color: var(--primary);
            box-shadow: 0 6px 18px rgba(49,46,129,.12);
            transform: translateY(-2px);
        }
        .report-overview-card .ov-head {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .report-overview-card .ov-icon {
            width: 36px; height: 36px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            flex-shrink: 0;
        }
        .report-overview-card .ov-title {
            font-family: var(--font-display);
            font-size: .95rem;
            font-weight: 700;
            letter-spacing: -0.005em;
            color: var(--dark);
        }
        .report-overview-card .ov-status {
            font-family: var(--font-body);
            font-size: .8rem;
            color: var(--muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .report-overview-card .ov-status::before {
            content: '';
            width: 8px; height: 8px;
            border-radius: 50%;
            background: #cbd5e1;
        }
        .report-overview-card[data-status="running"] .ov-status { color: var(--primary); font-weight: 600; }
        .report-overview-card[data-status="running"] .ov-status::before { background: var(--primary); animation: ps-pulse 1.6s ease-in-out infinite; }
        .report-overview-card[data-status="done"] .ov-status    { color: #047857; font-weight: 600; }
        .report-overview-card[data-status="done"] .ov-status::before { background: #10b981; }
        .report-overview-card[data-status="error"] .ov-status   { color: var(--danger); font-weight: 600; }
        .report-overview-card[data-status="error"] .ov-status::before { background: var(--danger); }

        @media (max-width: 900px) {
            .report-layout {
                grid-template-columns: 1fr;
            }
            .report-nav {
                position: static;
                display: flex;
                flex-wrap: wrap;
                padding: 6px;
                gap: 4px;
            }
            .report-nav-header { display: none; }
            .report-nav-item {
                flex: 1 1 auto;
                border-left: 0;
                border-bottom: 3px solid transparent;
                padding: 8px 12px;
                width: auto;
            }
            .report-nav-item.active {
                border-left: 0;
                border-bottom-color: var(--primary);
            }
        }

        /* ── Form elements ── */
        .field { margin-bottom: 20px; }
        .field label {
            display: block;
            font-family: var(--font-body);
            font-size: 13px;
            font-weight: 600;
            line-height: 18px;
            margin-bottom: 6px;
            color: var(--dark);
        }
        .field input[type="text"] {
            width: 100%;
            padding: 11px 14px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: .95rem;
            font-family: inherit;
            color: var(--dark);
            background: #fafbff;
            transition: border-color .2s, box-shadow .2s;
            outline: none;
        }
        .field input[type="text"]:focus {
            border-color: var(--primary);
            border-width: 2px;
            padding: 10px 13px;
            box-shadow: 0 0 0 3px rgba(79,70,229,.12);
        }
        .field .field-error {
            color: var(--danger);
            font-size: .8rem;
            font-weight: 500;
            margin-top: 5px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .field .field-error::before {
            content: '⚠';
            font-size: .85rem;
            line-height: 1;
        }

        /* ── Buttons (Sovereign primary/secondary) ── */
        .btn-primary-custom {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            background: var(--primary);
            color: #ffffff;
            border: none;
            border-radius: var(--radius-sm);
            padding: 13px 28px;
            font-family: var(--font-body);
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.005em;
            cursor: pointer;
            width: 100%;
            transition: background .2s, transform .1s, box-shadow .2s;
            box-shadow: 0 2px 8px rgba(49,46,129,.30);
        }
        .btn-primary-custom:hover {
            background: var(--primary-dark);
            box-shadow: 0 6px 18px rgba(49,46,129,.40);
        }
        .btn-primary-custom:active { transform: translateY(1px); }
        .btn-primary-custom:disabled {
            background: #6366f1;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
            opacity: .85;
        }
        @keyframes btn-spin {
            to { transform: rotate(360deg); }
        }
        .btn-spinner {
            width: 18px; height: 18px;
            border: 2.5px solid rgba(255,255,255,.35);
            border-top-color: white;
            border-radius: 50%;
            animation: btn-spin .7s linear infinite;
            flex-shrink: 0;
        }
        .btn-secondary {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #ffffff;
            color: var(--primary);
            border: 1px solid var(--primary);
            border-radius: var(--radius-sm);
            padding: 10px 22px;
            font-family: var(--font-body);
            font-size: .9rem;
            font-weight: 600;
            cursor: pointer;
            transition: background .2s, color .2s, box-shadow .2s;
        }
        .btn-secondary:hover { background: var(--primary-light); }

        /* ── Deep comparison toggle ── */
        .deep-toggle-card {
            position: relative;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            overflow: hidden;
            margin-top: 4px;
        }
        .deep-toggle-header {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            cursor: pointer;
            user-select: none;
            background: #fafbff;
        }
        .deep-toggle-header:hover { background: #f0f0ff; }
        .toggle-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
        .toggle-switch input { opacity: 0; width: 0; height: 0; }
        .toggle-slider {
            position: absolute; inset: 0;
            background: #cbd5e1;
            border-radius: 24px;
            cursor: pointer;
            transition: background .2s;
        }
        .toggle-slider:before {
            content: '';
            position: absolute;
            width: 18px; height: 18px;
            left: 3px; bottom: 3px;
            background: white;
            border-radius: 50%;
            transition: transform .2s;
            box-shadow: 0 1px 4px rgba(0,0,0,.2);
        }
        .toggle-switch input:checked + .toggle-slider { background: var(--primary); }
        .toggle-switch input:checked + .toggle-slider:before { transform: translateX(18px); }
        .toggle-title { font-weight: 600; font-size: .95rem; }
        .toggle-subtitle { font-size: .78rem; color: var(--muted); margin-top: 1px; }
        .deep-features-panel {
            display: none;
            padding: 20px 16px;
            border-top: 1.5px solid var(--border);
            background: white;
        }
        .deep-features-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }
        @media (max-width: 500px) { .deep-features-grid { grid-template-columns: 1fr; } }
        .deep-feature-item {
            display: flex;
            gap: 12px;
            align-items: flex-start;
        }
        .deep-feature-icon {
            width: 36px; height: 36px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .icon-visual    { background: #ede9fe; }
        .icon-functional { background: #dcfce7; }
        .icon-seo       { background: #fef9c3; }
        .icon-security  { background: #fee2e2; }
        .icon-perf      { background: #e0f2fe; }
        .icon-scripts   { background: #fce7f3; }
        .deep-feature-name { font-size: .85rem; font-weight: 600; margin-bottom: 3px; }
        .deep-feature-desc { font-size: .78rem; color: var(--muted); line-height: 1.5; }
        .deep-note {
            margin-top: 16px;
            font-size: .78rem;
            color: var(--muted);
            text-align: center;
            padding-top: 12px;
            border-top: 1px solid var(--border);
        }

        /* ── Features panel (right column) ── */
        .features-panel {
            background: var(--card);
            border: 1px solid var(--border-soft);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            padding: 36px 32px;
        }
        .features-panel h2 {
            font-family: var(--font-display);
            font-size: 1.5rem;
            font-weight: 700;
            line-height: 1.25;
            letter-spacing: -0.01em;
            color: var(--dark);
            margin: 0 0 8px;
        }
        .features-panel .tagline {
            font-family: var(--font-body);
            color: var(--muted);
            font-size: .9375rem;
            line-height: 1.55;
            margin-bottom: 28px;
        }
        .feature-row {
            display: flex;
            gap: 14px;
            margin-bottom: 20px;
            align-items: flex-start;
        }
        .feature-row-icon {
            width: 40px; height: 40px;
            border-radius: 10px;
            background: var(--primary-light);
            color: var(--primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .feature-row-title { font-size: .92rem; font-weight: 700; margin-bottom: 3px; }
        .feature-row-desc  { font-size: .82rem; color: var(--muted); line-height: 1.5; }

        /* ── Preview URL banner ("Verified" pill pattern) ── */
        .preview-banner {
            background: linear-gradient(90deg, #ecfdf5, var(--success-light));
            border: 1px solid #6ee7b7;
            border-radius: var(--radius);
            padding: 20px 28px;
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 24px;
        }
        .preview-banner .label {
            font-family: var(--font-body);
            font-size: 12px;
            font-weight: 600;
            line-height: 16px;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            color: var(--success-dark);
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .preview-banner .label::before {
            content: '';
            width: 14px; height: 14px;
            border-radius: 50%;
            background: var(--success) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 8l3.5 3.5L13 5'/></svg>") center/10px no-repeat;
            flex-shrink: 0;
        }
        .preview-banner .url-link {
            font-family: var(--font-mono);
            font-size: .95rem;
            font-weight: 600;
            color: #065f46;
            text-decoration: none;
            word-break: break-all;
        }
        .preview-banner .url-link:hover { text-decoration: underline; }
        .preview-banner .copy-btn {
            margin-left: auto;
            background: white;
            border: 1.5px solid #6ee7b7;
            color: #047857;
            border-radius: 6px;
            padding: 6px 14px;
            font-size: .8rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
        }
        .preview-banner .copy-btn:hover { background: #d1fae5; }

        /* ── Map ── */
        #map { height: 360px; border-radius: 10px; }

        /* ── Spinner / loading ── */
        .loading-block {
            text-align: center;
            padding: 48px 24px;
        }
        .spinner {
            width: 40px; height: 40px;
            border: 3px solid #e2e8f0;
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 16px;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        .loading-text { color: var(--muted); font-size: .875rem; }

        /* ── Lighthouse section ── */
        .lh-trigger-area { text-align: center; padding: 20px 0 8px; }
        .lh-trigger-area p { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }

        .score-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 16px;
            margin: 20px 0;
        }
        .score-card {
            background: var(--bg);
            border: 1px solid var(--border-soft);
            border-radius: var(--radius-md);
            padding: 20px 12px;
            text-align: center;
        }
        .score-gauge {
            position: relative;
            width: 80px;
            height: 80px;
            margin: 0 auto 10px;
        }
        .score-gauge svg { transform: rotate(-90deg); }
        .score-gauge .gauge-bg   { fill: none; stroke: #e2e8f0; stroke-width: 6; }
        .score-gauge .gauge-fill { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
        .score-gauge .gauge-text {
            position: absolute; top: 50%; left: 50%;
            transform: translate(-50%,-50%);
            font-family: var(--font-display);
            font-size: 20px; font-weight: 800; letter-spacing: -0.01em;
        }
        .score-label { font-family: var(--font-body); font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }

        .metrics-list { display: flex; flex-direction: column; gap: 10px; }
        .metric-row-lh {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: var(--bg);
            border-radius: 8px;
            border-left: 3px solid var(--border);
        }
        .metric-row-lh .mname { font-size: .875rem; font-weight: 600; }
        .metric-row-lh .mdesc { font-size: .75rem; color: var(--muted); }
        .metric-row-lh .mval  { font-size: 1rem; font-weight: 700; }
        .lh-report-link-wrap { text-align: center; margin-top: 20px; }
        .lh-report-link-wrap a {
            color: var(--primary); font-size: .875rem; font-weight: 600;
            text-decoration: none; border: 1.5px solid var(--primary);
            border-radius: 6px; padding: 8px 20px; display: inline-block;
        }
        .lh-report-link-wrap a:hover { background: var(--primary-light); }

        /* ── Visual comparison tabs ── */
        .visual-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
        .vtab {
            padding: 7px 16px;
            border: 1.5px solid var(--border);
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-size: .82rem;
            font-weight: 600;
            color: var(--muted);
            transition: all .15s;
        }
        .vtab.active { background: var(--primary); color: white; border-color: var(--primary); }
        .vtab:hover:not(.active) { background: var(--bg); }

        /* ── Deep comparison progress ── */
        .deep-progress-wrap { margin: 12px 0 24px; }
        .progress-steps { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
        .pstep {
            flex: 1;
            min-width: 100px;
            padding: 8px 10px;
            border-radius: 7px;
            font-size: .75rem;
            font-weight: 600;
            text-align: center;
            border: 1.5px solid var(--border);
            color: var(--muted);
            background: var(--bg);
            transition: all .3s;
        }
        .pstep.active {
            border-color: var(--primary);
            background: var(--primary-light);
            color: var(--primary);
        }
        .pstep.done {
            border-color: var(--success);
            background: #ecfdf5;
            color: #065f46;
        }
        .pstep.done::before { content: '✓ '; }
        .pstep.active::before { content: '▶ '; }
        .progress-bar-track {
            height: 8px;
            background: var(--border);
            border-radius: 4px;
            overflow: hidden;
            margin-bottom: 8px;
        }
        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), #818cf8);
            border-radius: 4px;
            width: 0%;
            transition: width .5s ease;
        }
        .progress-meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }

        /* ── Deep results ── */
        .summary-metrics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 14px;
            margin-bottom: 28px;
        }
        .summary-metric-card {
            background: var(--bg);
            border: 1.5px solid var(--border);
            border-radius: 12px;
            padding: 18px;
            text-align: center;
        }
        .summary-metric-val  { font-size: 2rem; font-weight: 800; }
        .summary-metric-lbl  { font-size: .75rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }

        .recs-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
        .rec-item {
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            user-select: none;
        }
        .rec-item.critical { background: #fef2f2; border-left: 4px solid var(--danger); }
        .rec-item.warning  { background: #fffbeb; border-left: 4px solid var(--warning); }
        .rec-item.info     { background: #f0f9ff; border-left: 4px solid var(--info); }
        .rec-header {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 18px;
        }
        .rec-header-text { flex: 1; min-width: 0; }
        .rec-toggle { font-size: .75rem; color: var(--muted); flex-shrink: 0; transition: transform .2s; }
        .rec-item.open .rec-toggle { transform: rotate(180deg); }
        .rec-badge {
            font-size: .7rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 4px;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .rec-badge.critical { background: #fee2e2; color: #991b1b; }
        .rec-badge.warning  { background: #fef3c7; color: #92400e; }
        .rec-badge.info     { background: #e0f2fe; color: #075985; }
        .rec-category { font-size: .75rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
        .rec-issue    { font-size: .875rem; font-weight: 600; }
        .rec-fix {
            display: none;
            font-size: .825rem;
            color: #374151;
            line-height: 1.6;
            padding: 0 18px 14px 18px;
            border-top: 1px solid rgba(0,0,0,.06);
            margin-top: 2px;
            padding-top: 12px;
        }
        .rec-item.open .rec-fix { display: block; }

        .section-divider {
            font-size: .8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .7px;
            color: var(--muted);
            margin: 28px 0 14px;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--border);
        }

        .alert-box {
            border-radius: var(--radius-md);
            padding: 14px 18px;
            font-size: .875rem;
            line-height: 1.5;
        }
        .alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
        .alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
        .alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
        .alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }

        .badge-status {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: .78rem;
            font-weight: 700;
        }
        .badge-passed  { background: #dcfce7; color: #166534; }
        .badge-warning { background: #fef9c3; color: #713f12; }
        .badge-failed  { background: #fee2e2; color: #991b1b; }

        .scripts-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
        .script-chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: .78rem;
            font-weight: 600;
            background: var(--bg);
            border: 1.5px solid var(--border);
            color: var(--dark);
        }
        .script-chip .cat { font-weight: 400; color: var(--muted); font-size: .72rem; }
        .script-chip .load-time { font-weight: 500; color: var(--muted); font-size: .7rem; background: var(--border); border-radius: 10px; padding: 1px 6px; }

        .data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
        .data-table th { background: var(--bg); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 10px 12px; text-align: left; border-bottom: 1.5px solid var(--border); }
        .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
        .data-table tr:last-child td { border-bottom: none; }
        .match-ok   { color: var(--success); font-weight: 600; }
        .match-diff { color: var(--warning);  font-weight: 600; }
        .match-bad  { color: var(--danger);   font-weight: 600; }
