:root {
    --bg: #0b1220;
    --surface: #111a2b;
    --surface-2: #152038;
    --border: rgba(255, 255, 255, 0.08);
    --text: #e8edf7;
    --muted: #94a3b8;
    --accent: #2dd4bf;
    --accent-2: #38bdf8;
    --warn: #fbbf24;
    --danger: #f87171;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    --radius: 14px;
    --font: "DM Sans", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-theme="light"] {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #eef2ff;
    --border: rgba(15, 23, 42, 0.08);
    --text: #0f172a;
    --muted: #475569;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(1200px 600px at 10% -10%, rgba(45, 212, 191, 0.12), transparent), var(--bg); color: var(--text); font-family: var(--font); }

a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
}
.nav-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(45, 212, 191, 0.35);
}
[data-theme="light"] .nav-menu-toggle {
    background: #fff;
}
[data-theme="light"] .nav-menu-toggle:hover {
    background: #f1f5f9;
}
.nav-menu-toggle .fa-solid {
    font-size: 1.375rem;
    line-height: 1;
    vertical-align: middle;
}
/* Font Awesome sets display on `.fa-solid`; need !important so only one icon shows */
.nav-menu-toggle .nav-menu-toggle__icon-close {
    display: none !important;
}
.nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon-open {
    display: none !important;
}
.nav-menu-toggle[aria-expanded="true"] .nav-menu-toggle__icon-close {
    display: inline-block !important;
}
.brand {
    display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none;
}
/* Global link hover color; keep brand link visually neutral */
.brand:hover,
.brand:focus-visible {
    color: inherit;
    text-decoration: none;
}
.brand-mark-img {
    width: 36px; height: 36px; border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(45, 212, 191, 0.28);
    box-sizing: border-box;
}
.hero-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}
.hero-brand-mark {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(45, 212, 191, 0.35);
}
.hero-brand-text { display: flex; flex-direction: column; gap: 4px; }
.hero-brand-name {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #f0fdfa, #2dd4bf 40%, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="light"] .hero-brand-name {
    background: linear-gradient(135deg, #0f172a, #0d9488 45%, #0284c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-brand-tag { font-size: 14px; color: var(--muted); font-weight: 500; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav-links {
    display: flex;
    gap: 18px;
    font-size: 14px;
    align-items: center;
    flex: 1;
    justify-content: center;
    min-width: 0;
}
.nav-links a {
    color: var(--muted);
    white-space: nowrap;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover {
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
}
.nav-links a:focus-visible {
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    outline-offset: 2px;
}
[data-theme="light"] .nav-links a:hover {
    background: rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .nav-links a:focus-visible {
    background: rgba(15, 23, 42, 0.06);
    outline-color: rgba(13, 148, 136, 0.55);
}

@media (max-width: 1100px) {
    .top-nav {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 12px 16px;
    }
    .brand {
        flex: 1;
        min-width: 0;
    }
    .nav-menu-toggle {
        display: inline-flex;
        order: 2;
    }
    .nav-actions {
        display: none !important;
    }
    .nav-links {
        order: 4;
        display: none;
        width: 100%;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px 0 0;
        border-top: 1px solid transparent;
    }
    .nav-links.is-open {
        display: flex;
        border-top-color: var(--border);
    }
    .nav-links a {
        padding: 12px 10px;
        border-radius: 8px;
        white-space: normal;
    }
    .nav-links a:hover {
        text-decoration: none;
        background: rgba(255, 255, 255, 0.06);
    }
    [data-theme="light"] .nav-links a:hover {
        background: rgba(15, 23, 42, 0.06);
    }
    .nav-links .nav-theme-toggle {
        align-self: stretch;
        justify-content: flex-start;
        margin-top: 8px;
        padding: 12px 10px;
        border-radius: 8px;
        border-top: 1px solid var(--border);
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .nav-links .nav-theme-toggle:hover {
        text-decoration: none;
        background: rgba(255, 255, 255, 0.06);
    }
    [data-theme="light"] .nav-links .nav-theme-toggle:hover {
        background: rgba(15, 23, 42, 0.06);
    }
}

@media (min-width: 1101px) {
    .nav-menu-toggle {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
    }
    .nav-theme-toggle {
        display: none !important;
    }
}

@media print {
    .nav-menu-toggle {
        display: none !important;
    }
}

.main-content { flex: 1; padding: 32px 28px 48px; max-width: 1200px; margin: 0 auto; width: 100%; }

/* ——— Home landing ——— */
.home-page { position: relative; }
.home-hero-bg {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1500px, 100vw);
    height: 560px;
    background:
        radial-gradient(ellipse 85% 55% at 50% -15%, rgba(45, 212, 191, 0.24), transparent 58%),
        radial-gradient(ellipse 45% 38% at 95% 15%, rgba(56, 189, 248, 0.14), transparent 52%),
        radial-gradient(ellipse 42% 36% at 5% 55%, rgba(20, 184, 166, 0.1), transparent 48%);
    pointer-events: none;
    z-index: 0;
}
[data-theme="light"] .home-hero-bg {
    background:
        radial-gradient(ellipse 85% 55% at 50% -15%, rgba(13, 148, 136, 0.18), transparent 58%),
        radial-gradient(ellipse 45% 38% at 95% 15%, rgba(14, 165, 233, 0.1), transparent 52%),
        radial-gradient(ellipse 42% 36% at 5% 55%, rgba(20, 184, 166, 0.08), transparent 48%);
}

.home-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}
@media (max-width: 960px) {
    .home-hero { grid-template-columns: 1fr; gap: 28px; }
}

.home-hero-copy .home-hero-brand { margin-bottom: 18px; }
.home-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.home-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}
.home-pill--accent {
    border-color: rgba(45, 212, 191, 0.38);
    color: var(--accent);
    background: rgba(45, 212, 191, 0.1);
}
.home-pill-ic { flex-shrink: 0; font-size: 12px; opacity: 0.95; }

.home-eyebrow { margin-top: 0; }
.home-hero-copy h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.85rem);
    margin: 0 0 12px;
    line-height: 1.12;
    letter-spacing: -0.035em;
}
.home-lede { margin-top: 4px; font-size: 18px; max-width: 38rem; }

.home-hero-points {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.home-hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--muted);
    line-height: 1.55;
}
.home-hero-point-ic {
    flex-shrink: 0;
    width: 1.35rem;
    text-align: center;
    color: var(--accent);
    opacity: 0.95;
    margin-top: 2px;
}
.home-hero-point-ic i { font-size: 0.95rem; }
.home-hero-points strong { color: var(--text); font-weight: 700; }

.home-scan-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(45, 212, 191, 0.22);
    box-shadow: var(--shadow), 0 0 48px -16px rgba(45, 212, 191, 0.22);
}
.home-scan-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9, #38bdf8);
}
.home-scan-card-head { margin-bottom: 4px; }
.home-scan-card-title {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.home-scan-card-title-ic { color: var(--accent); font-size: 0.95rem; opacity: 0.95; }
.home-scan-card-sub { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45; }

.field-hint { margin: -8px 0 12px; font-size: 12px; color: var(--muted); line-height: 1.45; }

.btn-scan-cta {
    padding: 14px 18px;
    font-size: 15px;
    justify-content: center;
    gap: 10px;
}
.btn-chevron { opacity: 0.88; transition: transform 0.2s ease; }
.btn-scan-cta:hover:not(:disabled) .btn-chevron { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
    .btn-scan-cta:hover:not(:disabled) .btn-chevron { transform: none; }
}

.home-scan-footnote {
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}
.home-scan-footnote a { color: var(--accent-2); font-weight: 600; }

.home-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 56px;
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.035);
}
@media (max-width: 700px) {
    .home-metrics { grid-template-columns: 1fr; text-align: center; }
}
.home-metric { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.home-metric-ic {
    color: var(--accent);
    opacity: 0.88;
    font-size: 1.05rem;
    margin-bottom: 2px;
}
.home-metric-value {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #f0fdfa, var(--accent) 38%, var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="light"] .home-metric-value {
    background: linear-gradient(135deg, #0f172a, #0d9488 42%, #0284c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.home-metric-label { font-size: 13px; color: var(--muted); font-weight: 500; }

.home-section { margin-bottom: 56px; }
.home-section-head { max-width: 680px; margin-bottom: 28px; }
.home-section-title {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2.6vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.home-section-title--sm { font-size: 1.22rem; }
.home-section-title--icon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.home-section-title-ic {
    font-size: 0.92em;
    color: var(--accent);
    opacity: 0.92;
}
.home-section-intro { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.65; }

.home-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 900px) {
    .home-check-grid { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .home-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.home-check-card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.home-check-card:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
    .home-check-card { transition: border-color 0.2s ease, box-shadow 0.2s ease; }
    .home-check-card:hover { transform: none; }
}
/* Large faded icon: anchored top-right; ~⅓ extends past edges (cropped by overflow) */
.home-check-watermark {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    --wm: clamp(4.25rem, 14vw, 7.25rem);
    width: var(--wm);
    height: var(--wm);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(33.33%, -33.33%);
    font-size: calc(var(--wm) * 0.72);
    line-height: 1;
    color: var(--accent);
    opacity: 0.14;
    pointer-events: none;
}
.home-check-watermark i {
    display: block;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.2));
}
[data-theme="light"] .home-check-watermark {
    opacity: 0.11;
    color: #0d9488;
}
.home-check-card-text {
    position: relative;
    z-index: 1;
}
.home-check-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.home-check-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

.home-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
}
@media (max-width: 860px) {
    .home-split-section { grid-template-columns: 1fr; }
}

.home-split-card {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.home-split-card--accent {
    background: linear-gradient(160deg, rgba(20, 184, 166, 0.14), rgba(15, 23, 42, 0.45));
    border-color: rgba(45, 212, 191, 0.24);
}
[data-theme="light"] .home-split-card--accent {
    background: linear-gradient(160deg, rgba(204, 251, 241, 0.9), #fff);
}

.home-deliver-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}
.home-deliver-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
}
.home-deliver-ic {
    flex-shrink: 0;
    width: 1.2rem;
    text-align: center;
    color: var(--accent);
    opacity: 0.88;
    font-size: 0.95rem;
}
.home-deliver-list li:last-child { border-bottom: none; }
.home-deliver-tag {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(45, 212, 191, 0.15);
    color: var(--accent);
}

.home-steps {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}
.home-steps li {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.home-steps li:last-child { border-bottom: none; }
.home-step-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #0d9488 0%, #0ea5e9 100%);
    color: #f8fafc;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
}
.home-step-icon i {
    font-size: 15px;
    line-height: 1;
}
.home-steps li div { display: flex; flex-direction: column; gap: 4px; }
.home-steps strong { font-size: 14px; color: var(--text); }
/* Description line only (not the step icon wrapper) */
.home-steps li > div > span { font-size: 13px; color: var(--muted); }

.home-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-2);
}
.home-inline-link-ic { font-size: 0.9rem; opacity: 0.9; }
.home-inline-link-arrow { opacity: 0.85; }

.home-safe-panel { padding: 0; }
.home-safe-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    border-radius: 16px;
    border: 1px dashed rgba(148, 163, 184, 0.38);
    background: rgba(15, 23, 42, 0.4);
}
[data-theme="light"] .home-safe-inner {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(148, 163, 184, 0.45);
}
.home-safe-copy { flex: 1; min-width: 240px; max-width: 560px; }
.home-safe-copy p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.65; }

.home-safe-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.home-safe-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    padding-left: 0;
}
.home-safe-li-ic {
    flex-shrink: 0;
    width: 1.1rem;
    text-align: center;
    color: var(--accent);
    font-size: 0.88rem;
    opacity: 0.95;
}

.home-cta {
    margin: 8px 0 0;
    padding: 40px 28px 48px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.18), rgba(56, 189, 248, 0.1) 55%, rgba(15, 23, 42, 0.55));
    border: 1px solid rgba(45, 212, 191, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="light"] .home-cta {
    background: linear-gradient(145deg, #ecfdf5, #f0f9ff 55%, #fff);
    border-color: rgba(13, 148, 136, 0.28);
}
.home-cta-inner { max-width: 480px; margin: 0 auto; }
.home-cta h2 {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 2.5vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.home-cta-title-ic { color: var(--accent); font-size: 0.88em; opacity: 0.95; }
.home-cta p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.home-cta-btn {
    padding: 12px 28px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.home-cta-btn-ic { font-size: 0.88rem; opacity: 0.92; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.site-footer {
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
    padding: 28px 20px 32px;
    font-size: 13px;
    color: var(--muted);
}
.site-footer__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 20px;
    row-gap: 10px;
}
.site-footer__nav a {
    color: var(--text);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}
.site-footer__nav a:hover {
    color: var(--accent);
    background: rgba(45, 212, 191, 0.08);
}
[data-theme="light"] .site-footer__nav a:hover {
    color: #0d9488;
    background: rgba(13, 148, 136, 0.1);
}
.site-footer__note {
    margin: 0;
    max-width: 52ch;
    line-height: 1.55;
    font-size: 12px;
    color: var(--muted);
}
.site-footer__legal {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.site-footer__legal a.site-footer__domain {
    color: inherit;
    text-decoration: none;
}
.site-footer__legal a.site-footer__domain:hover {
    color: var(--accent);
}

html.cookie-notice-dismissed .cookie-notice {
    display: none !important;
}
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 94%, var(--surface-2));
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.12);
}
html[data-theme="dark"] .cookie-notice {
    box-shadow: 0 -8px 36px rgba(0, 0, 0, 0.45);
}
.cookie-notice__inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    justify-content: space-between;
}
.cookie-notice__text {
    margin: 0;
    flex: 1 1 16rem;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}
.cookie-notice__text a {
    font-weight: 600;
}
.cookie-notice__btn {
    flex-shrink: 0;
}
@media (max-width: 520px) {
    .cookie-notice__inner {
        flex-direction: column;
        align-items: stretch;
    }
}
html:not(.cookie-notice-dismissed) .app-shell {
    padding-bottom: 5rem;
}

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; margin-bottom: 40px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }

.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; color: var(--accent); font-weight: 600; margin: 0 0 8px; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; line-height: 1.15; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; }

.hero-card {
    background: linear-gradient(180deg, var(--surface), var(--surface-2));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
    box-shadow: var(--shadow);
}

.scan-form .field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.scan-form input[type="text"],
.scan-form input[type="url"] {
    padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2); color: var(--text); font-size: 15px; outline: none;
}
[data-theme="light"] .scan-form input[type="text"],
[data-theme="light"] .scan-form input[type="url"] {
    background: #fff;
    border-color: color-mix(in srgb, var(--border) 90%, #94a3b8);
}
.scan-form input:focus { border-color: rgba(45, 212, 191, 0.5); box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15); }

.mode-field { border: 1px dashed var(--border); padding: 12px; border-radius: 12px; margin: 0 0 16px; }
.radio-pill { display: inline-flex; gap: 8px; align-items: center; margin-right: 12px; font-size: 14px; color: var(--text); }

.partial-options { margin-bottom: 16px; }
.partial-options .hint { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-tile {
    border: 1px solid var(--border); border-radius: 10px; padding: 10px; display: flex; gap: 8px; align-items: center;
    font-size: 13px; cursor: pointer; background: rgba(255, 255, 255, 0.02);
}
.check-tile input { accent-color: var(--accent); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px;
    border: 1px solid transparent; cursor: pointer; text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
/* Keep links styled as buttons without hover underline */
.btn:hover,
.btn:focus-visible {
    text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, #14b8a6, #0ea5e9); color: #041018; border: none; }
.btn-primary:hover:not(:disabled) {
    filter: brightness(1.07);
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.28);
}
.btn-primary:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
    color: var(--text);
}
.btn-ghost:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent-2) 55%, transparent);
    outline-offset: 2px;
}
[data-theme="light"] .btn-ghost:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.btn-sm { padding: 6px 10px; font-size: 12px; }
.btn-block { width: 100%; }

/* Home — full-screen scan progress modal */
.scan-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}
.scan-modal-overlay.hidden {
    display: none !important;
}
.scan-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 24, 0.72);
    backdrop-filter: blur(10px);
}
[data-theme="light"] .scan-modal-backdrop {
    background: rgba(15, 23, 42, 0.45);
}
.scan-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 28px 28px 24px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(165deg, var(--surface), var(--surface-2));
    box-shadow: var(--shadow), 0 0 0 1px rgba(45, 212, 191, 0.08);
    animation: scan-modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
    .scan-modal-panel {
        animation: none;
    }
}
@keyframes scan-modal-in {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.scan-modal-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}
.scan-modal-title {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 3.5vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.scan-modal-domain {
    margin: 0 0 12px;
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-2);
    word-break: break-all;
}
.scan-modal-desc {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}
.scan-modal-pct-row {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.scan-modal-pct {
    font-size: clamp(2.5rem, 8vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #f0fdfa, var(--accent) 35%, var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
[data-theme="light"] .scan-modal-pct {
    background: linear-gradient(135deg, #0f172a, #0d9488 40%, #0284c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.scan-modal-bar {
    position: relative;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .scan-modal-bar {
    background: rgba(15, 23, 42, 0.08);
}
.scan-modal-bar-fill {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 5%;
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9, #38bdf8);
    background-size: 200% 100%;
    /* Width driven by JS for smooth interpolation; no CSS transition (avoids fighting RAF). */
    will-change: width;
}
.scan-modal-bar-glow {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5%;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.45), rgba(56, 189, 248, 0.35));
    filter: blur(10px);
    opacity: 0.65;
    transform: scaleY(1.4);
    transform-origin: center;
}
@media (prefers-reduced-motion: reduce) {
    .scan-modal-bar-glow {
        display: none;
    }
}
.scan-modal-detail {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}
.scan-modal-log-wrap {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.18);
    max-height: 140px;
    overflow-y: auto;
}
[data-theme="light"] .scan-modal-log-wrap {
    background: rgba(15, 23, 42, 0.04);
}
.scan-modal-log-title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.scan-modal-log {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text);
}
.scan-modal-log li {
    margin-bottom: 4px;
    color: var(--muted);
}
.scan-modal-log li:last-child {
    margin-bottom: 0;
    color: var(--accent);
    font-weight: 600;
}
.scan-modal-stage-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    min-height: 1.5em;
}
.scan-modal-stage {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
}
.scan-modal-id {
    flex-shrink: 0;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.12);
    color: var(--accent);
    border: 1px solid rgba(45, 212, 191, 0.25);
}
.scan-modal-note {
    margin: 18px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    text-align: center;
}

.alert-error {
    background: rgba(248, 113, 113, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
}
[data-theme="light"] .alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #f87171;
}
.alert-success { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); color: #6ee7b7; padding: 10px 12px; border-radius: 10px; font-size: 13px; }
[data-theme="light"] .alert-success { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }

/* Home scan card: space between CTA and inline error (hidden uses display:none so no gap when empty) */
#scan-error:not(.hidden) {
    margin-top: 16px;
}

.libraries-page { max-width: 1100px; margin: 0 auto; }
.libraries-page h1 { margin-top: 8px; }
.libraries-sync-note { margin: 16px 0 8px; font-size: 13px; color: var(--muted); }
.libraries-table-wrap { margin-top: 8px; }
.libraries-table code { font-size: 12px; }
.libraries-note { font-size: 13px; color: var(--muted); max-width: 280px; }
.libraries-help { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.libraries-help h2 { font-size: 16px; color: var(--text); margin: 0 0 10px; }
.libraries-help ul { margin: 0; padding-left: 20px; line-height: 1.6; }
.libraries-help code { font-size: 12px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 18px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.hidden { display: none !important; }

/* Report — flex row so main column cannot slide under the sticky aside (avoids grid+sticky overlap bugs) */
.report-layout {
    --report-toc-offset: 88px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
}
/* “On this page” TOC: wide viewports only — sticky sidebar overlaps or crowds content on tablets/phones */
@media (max-width: 1179px) {
    .report-nav {
        display: none !important;
    }
}
.report-nav {
    flex: 0 0 200px;
    width: 200px;
    max-width: 220px;
    position: sticky;
    /* Below main header + small gap so the panel does not touch the nav bar */
    top: var(--report-toc-offset);
    /* Keep below report body so accidental overlap never hides headings */
    z-index: 1;
    align-self: flex-start;
    min-width: 0;
    max-height: calc(100vh - var(--report-toc-offset) - 20px);
    max-height: calc(100dvh - var(--report-toc-offset) - 20px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    /* Opaque panel so page content does not show through while scrolling */
    background: var(--surface);
    box-shadow: 0 1px 0 var(--border);
}
.report-nav .nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 4px; }
.report-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    padding: 0.35rem 0.5rem 0.35rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 8px;
    border-left: 2px solid transparent;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.report-nav a .section-icon {
    width: 1.25rem;
    flex-shrink: 0;
    justify-content: center;
    opacity: 0.92;
}
.report-nav__label {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}
.report-nav a:not(.is-active):hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, 0.04); }
[data-theme="light"] .report-nav a:not(.is-active):hover { background: rgba(15, 23, 42, 0.05); }
.report-nav a.is-active {
    color: var(--accent);
    font-weight: 600;
    background: rgba(45, 212, 191, 0.1);
    border-left-color: var(--accent);
}
[data-theme="light"] .report-nav a.is-active {
    background: rgba(13, 148, 136, 0.1);
    color: #0d9488;
    border-left-color: #0d9488;
}
.report-nav a.is-active:hover {
    color: var(--accent);
    background: rgba(45, 212, 191, 0.14);
    text-decoration: none;
}
[data-theme="light"] .report-nav a.is-active:hover {
    color: #0d9488;
    background: rgba(13, 148, 136, 0.14);
}

.report-doc {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    z-index: 2;
}
.report-header__lead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px 24px;
}
.report-header__titleblock {
    flex: 1 1 220px;
    min-width: 0;
}
.report-header .report-header__title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 4px;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.report-header__preview {
    flex: 0 0 auto;
    max-width: min(260px, 100%);
}
.report-header__preview-monitor {
    display: block;
    line-height: 0;
    flex-shrink: 0;
    opacity: 0.92;
}
.report-header__preview-svg {
    width: 200px;
    max-width: min(200px, 88vw);
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(15, 23, 42, 0.2));
}
/* Softer monitor frame + stand (link text color unchanged) */
.report-header__preview-bezel {
    opacity: 0.48;
}
[data-theme="light"] .report-header__preview-bezel {
    opacity: 0.42;
}
html[data-theme="dark"] .report-header__preview-svg {
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.45));
}
.report-header__preview-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-decoration: none;
    color: var(--muted);
    border-radius: 12px;
    padding: 6px 8px;
    margin: -6px -8px;
    transition: background 0.15s ease, color 0.15s ease;
}
.report-header__preview-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}
[data-theme="light"] .report-header__preview-link:hover {
    background: rgba(15, 23, 42, 0.06);
}
/* Wider report column: scale whole monitor + embedded shot (~2× then ~3× base width) */
@media (min-width: 1100px) {
    .report-header__preview {
        max-width: min(480px, 48%);
    }
    .report-header__preview-link {
        padding: 8px 10px;
        margin: -8px -10px;
    }
    .report-header__preview-svg {
        width: min(400px, 88vw);
        max-width: min(400px, 88vw);
    }
}
@media (min-width: 1500px) {
    .report-header__preview {
        max-width: min(680px, 52%);
    }
    .report-header__preview-link {
        padding: 10px 14px;
        margin: -10px -14px;
    }
    .report-header__preview-svg {
        width: min(600px, 88vw);
        max-width: min(600px, 88vw);
        filter: drop-shadow(0 8px 28px rgba(15, 23, 42, 0.18));
    }
    html[data-theme="dark"] .report-header__preview-svg {
        filter: drop-shadow(0 10px 36px rgba(0, 0, 0, 0.5));
    }
}
@media (max-width: 640px) {
    .report-header__lead { flex-direction: column; align-items: stretch; }
    .report-header__preview { max-width: none; }
    .report-header__preview-link { justify-content: flex-start; }
}
.report-header__favicon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    background: color-mix(in srgb, var(--surface-2) 80%, var(--surface));
    border: 1px solid var(--border);
    flex-shrink: 0;
    box-sizing: border-box;
}
[data-theme="light"] .report-header__favicon {
    background: #f1f5f9;
}
.report-sub { margin: 0; color: var(--muted); font-size: 14px; }
.report-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.badge-soft { background: rgba(56, 189, 248, 0.12); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.25); }
.badge-warn { background: rgba(251, 191, 36, 0.12); color: #fcd34d; border: 1px solid rgba(251, 191, 36, 0.25); }

.exec-summary-narrative {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
    width: 100%;
    box-sizing: border-box;
}
.exec-summary-narrative__title { margin-bottom: 12px !important; }
.exec-summary-narrative__p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text);
    max-width: none;
    width: 100%;
    text-align: left;
}
.exec-summary-narrative__p:last-child { margin-bottom: 0; }
[data-theme="light"] .exec-summary-narrative {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.08);
}

.risk-banner {
    margin-top: 20px; padding: 20px; border-radius: var(--radius);
    border: 1px solid var(--border);
    background: radial-gradient(800px 200px at 0% 0%, rgba(45, 212, 191, 0.12), transparent), var(--surface);
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px;
}
@media (max-width: 800px) { .risk-banner { grid-template-columns: 1fr; } }

.score-ring-wrap { display: flex; gap: 20px; align-items: center; }
.score-ring {
    width: 120px; height: 120px; border-radius: 50%;
    display: grid; place-items: center; position: relative;
    background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
    box-shadow: inset 0 0 0 10px var(--surface);
}
.score-ring span { font-size: 28px; font-weight: 700; }

.risk-list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.quick-wins { border-left: 2px solid rgba(45, 212, 191, 0.35); padding-left: 14px; }
.quick-wins h3 { margin: 0 0 8px; font-size: 14px; color: var(--accent); }
.quick-wins ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

.report-section { margin-top: 28px; }
.report-section h2 { font-size: 18px; margin: 0 0 12px; }

/* —— Score breakdown: metric boxes first (tight under title), chart below —— */
.report-doc section[id] {
    scroll-margin-top: var(--report-toc-offset);
}
.report-section.scores-section > .scores-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Balanced grid: 4 + 3 on desktop */
.score-cards--metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
}
@media (max-width: 1100px) {
    .score-cards--metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .score-cards--metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.score-metric-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 14px 12px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 118px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 12px rgba(15, 23, 42, 0.04);
    border-left: 3px solid #14b8a6;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
[data-theme="light"] .score-metric-box {
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.06),
        0 4px 14px rgba(15, 23, 42, 0.05);
}
.score-metric-box:hover {
    border-color: rgba(20, 184, 166, 0.45);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 8px 20px rgba(15, 23, 42, 0.07);
}
/* Report score breakdown: green ≥75 (Strong/Good), amber 55–74 (Fair), red <55 (Weak/Critical) */
#scores .score-metric-box--tier-high {
    border-left-color: #16a34a;
}
#scores .score-metric-box--tier-high:hover {
    border-color: rgba(22, 163, 74, 0.4);
    border-left-color: #16a34a;
}
#scores .score-metric-box--tier-mid {
    border-left-color: #d97706;
}
#scores .score-metric-box--tier-mid:hover {
    border-color: rgba(217, 119, 6, 0.4);
    border-left-color: #d97706;
}
#scores .score-metric-box--tier-low {
    border-left-color: #dc2626;
}
#scores .score-metric-box--tier-low:hover {
    border-color: rgba(220, 38, 38, 0.4);
    border-left-color: #dc2626;
}
#scores .score-metric-box--tier-high .score-metric-box__num {
    color: #15803d;
}
#scores .score-metric-box--tier-mid .score-metric-box__num {
    color: #b45309;
}
#scores .score-metric-box--tier-low .score-metric-box__num {
    color: #b91c1c;
}
[data-theme="dark"] #scores .score-metric-box--tier-high .score-metric-box__num {
    color: #4ade80;
}
[data-theme="dark"] #scores .score-metric-box--tier-mid .score-metric-box__num {
    color: #fbbf24;
}
[data-theme="dark"] #scores .score-metric-box--tier-low .score-metric-box__num {
    color: #fca5a5;
}
#scores .score-metric-box--tier-high .score-metric-box__qual {
    color: #166534;
}
#scores .score-metric-box--tier-mid .score-metric-box__qual {
    color: #92400e;
}
#scores .score-metric-box--tier-low .score-metric-box__qual {
    color: #991b1b;
}
[data-theme="dark"] #scores .score-metric-box--tier-high .score-metric-box__qual {
    color: #86efac;
}
[data-theme="dark"] #scores .score-metric-box--tier-mid .score-metric-box__qual {
    color: #fcd34d;
}
[data-theme="dark"] #scores .score-metric-box--tier-low .score-metric-box__qual {
    color: #fecaca;
}

.score-metric-box__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--muted);
    line-height: 1.2;
    text-align: center;
}
.score-metric-box__label .section-icon {
    opacity: 0.88;
    font-size: 1.05em;
}
.score-metric-box__label-text {
    letter-spacing: 0.1em;
}

.score-metric-box__score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    flex-wrap: wrap;
    font-variant-numeric: tabular-nums;
}

.score-metric-box__num {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--text);
}

.score-metric-box__max {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    align-self: center;
}

.score-metric-box__qual {
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.score-card-meter {
    height: 5px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    overflow: hidden;
}
[data-theme="light"] .score-card-meter {
    background: #e2e8f0;
}
.score-card-meter span {
    display: block;
    height: 100%;
    width: calc(var(--score-pct, 0) * 1%);
    border-radius: inherit;
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
}
#scores .score-metric-box--tier-high .score-card-meter span {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}
#scores .score-metric-box--tier-mid .score-card-meter span {
    background: linear-gradient(90deg, #fbbf24, #d97706);
}
#scores .score-metric-box--tier-low .score-card-meter span {
    background: linear-gradient(90deg, #f87171, #dc2626);
}

/* Radar chart sits under metric boxes */
.chart-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px 10px;
    box-shadow: var(--shadow);
}
.chart-panel--below {
    margin-top: 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.chart-caption {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.chart-canvas-wrap {
    position: relative;
    height: min(320px, 42vw);
    min-height: 240px;
    width: 100%;
}
@media (max-width: 640px) {
    .chart-canvas-wrap {
        height: 240px;
        min-height: 200px;
    }
}
.chart-fallback {
    margin: 0;
    padding: 16px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.chart-canvas-wrap canvas {
    max-height: min(320px, 42vw);
}
@media (max-width: 640px) {
    .chart-canvas-wrap canvas {
        max-height: 240px;
    }
}

.scores-section + #findings {
    margin-top: 36px;
    padding-top: 4px;
}

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 0; }
.export-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#findings .section-head {
    margin-bottom: 18px;
}

/* —— Findings table —— */
.table-wrap {
    overflow: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .table-wrap {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.findings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}
.findings-table thead th {
    text-align: left;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-2) 88%, var(--surface));
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.findings-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.findings-table tbody tr:last-child td {
    border-bottom: none;
}
.findings-table tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--surface-2) 35%, var(--surface));
}
[data-theme="light"] .findings-table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.findings-table tbody tr:hover {
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
#findings-table tbody tr.finding-row {
    cursor: pointer;
}
#findings-table tbody tr.finding-row:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: -2px;
}
/* Fixed columns keep thead aligned when a row expands with long detail text */
#findings-table {
    table-layout: fixed;
}
#findings-table th:nth-child(1),
#findings-table td:nth-child(1) {
    width: 7rem;
}
#findings-table th:nth-child(3),
#findings-table td:nth-child(3) {
    width: 15rem;
    min-width: 12rem;
}
#findings-table th:nth-child(4),
#findings-table td:nth-child(4) {
    width: 4.75rem;
    max-width: 5.25rem;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
    white-space: nowrap;
}
#findings-table th:nth-child(2),
#findings-table td:nth-child(2) {
    min-width: 0;
    word-break: break-word;
}
.report-findings-mini tr.finding-row {
    cursor: pointer;
}
.report-findings-mini tr.finding-row:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: -2px;
}

/* Narrow viewports: let tables extend past the viewport and scroll inside .table-wrap */
@media (max-width: 768px) {
    .table-wrap {
        overflow-x: auto;
    }
    .table-wrap .findings-table {
        width: max-content;
        min-width: 100%;
    }
    #findings-table {
        table-layout: auto;
    }
    #findings-table th:nth-child(2),
    #findings-table td:nth-child(2) {
        min-width: 16rem;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .report-findings-mini {
        table-layout: auto;
    }
    .report-findings-mini th:nth-child(2),
    .report-findings-mini td:nth-child(2) {
        min-width: 14rem;
        word-break: normal;
        overflow-wrap: anywhere;
    }
    .server-check-table-wrap .server-check-table {
        width: max-content;
        min-width: 100%;
    }
}

/* Severity pills: WCAG-friendly in light + dark */
.sev {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    line-height: 1.2;
}
.sev-critical { background: rgba(220, 38, 38, 0.18); color: #fecaca; border-color: rgba(248, 113, 113, 0.35); }
.sev-high { background: rgba(234, 88, 12, 0.2); color: #ffedd5; border-color: rgba(251, 146, 60, 0.35); }
.sev-medium { background: rgba(202, 138, 4, 0.22); color: #fef9c3; border-color: rgba(234, 179, 8, 0.4); }
.sev-low { background: rgba(100, 116, 139, 0.25); color: #e2e8f0; border-color: rgba(148, 163, 184, 0.35); }
.sev-informational { background: rgba(14, 165, 233, 0.18); color: #bae6fd; border-color: rgba(56, 189, 248, 0.35); }

[data-theme="light"] .sev-critical { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
[data-theme="light"] .sev-high { background: #ffedd5; color: #9a3412; border-color: #fed7aa; }
[data-theme="light"] .sev-medium { background: #fef9c3; color: #854d0e; border-color: #fde047; }
[data-theme="light"] .sev-low { background: #e2e8f0; color: #1e293b; border-color: #cbd5e1; }
[data-theme="light"] .sev-informational { background: #e0f2fe; color: #075985; border-color: #7dd3fc; }

.stat.stat-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}
.stat-pass { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); }
.stat-warn { background: rgba(245, 158, 11, 0.2); color: #fde68a; border-color: rgba(251, 191, 36, 0.4); }
.stat-fail { background: rgba(239, 68, 68, 0.2); color: #fecaca; border-color: rgba(248, 113, 113, 0.4); }
.stat-info { background: rgba(59, 130, 246, 0.18); color: #93c5fd; border-color: rgba(96, 165, 250, 0.35); }

[data-theme="light"] .stat-pass { background: #d1fae5; color: #065f46; border-color: #a7f3d0; }
[data-theme="light"] .stat-warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
[data-theme="light"] .stat-fail { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
[data-theme="light"] .stat-info { background: #e0f2fe; color: #075985; border-color: #7dd3fc; }

.finding-title-text {
    font: inherit;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: block;
    text-decoration: none;
}
/* Report section icons (Font Awesome in templates/report/_section_icon.html.twig) */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-2);
    line-height: 1;
}
.section-icon .fa-solid {
    font-size: 1.08em;
}
.report-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.report-section-heading .section-icon {
    flex-shrink: 0;
}

.finding-detail { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.finding-detail p { margin: 6px 0; }
.finding-detail strong { color: var(--text); font-weight: 600; }

.report-section-muted { padding: 16px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); }

.report-tech-card {
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.report-tech-card__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.report-tech-card__title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    flex: 1 1 200px;
}
.report-tech-card__title-row .section-icon {
    margin-top: 3px;
    flex-shrink: 0;
}
.report-tech-card__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}
.report-tech-card__score {
    font-variant-numeric: tabular-nums;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}
.report-tech-card__max {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--muted);
}
.report-tech-card__intel {
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    border-radius: 10px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.report-tech-card__intel-label {
    display: inline-block;
    margin-right: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.report-tech-card__intel--muted {
    opacity: 0.92;
    background: rgba(148, 163, 184, 0.08);
    border-style: dashed;
}

.report-tracking {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .report-tracking {
    background: rgba(15, 23, 42, 0.03);
}
.report-tracking__note {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.45;
}
.report-tracking__list {
    margin: 0;
    padding-left: 1.15em;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
}
.report-tracking__list li { margin: 8px 0; }
.report-tracking__name {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
}
.report-tracking__detail {
    display: block;
    font-size: 11px;
    font-family: var(--mono);
    color: var(--muted);
    word-break: break-all;
    line-height: 1.4;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .report-tracking__detail {
    background: rgba(15, 23, 42, 0.06);
}

.report-subcard-title {
    font-size: 13px;
    font-weight: 700;
    margin: 14px 0 8px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.report-registration-facts { margin-top: 4px; }
.report-registration-dl {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 170px) 1fr;
    gap: 8px 16px;
    font-size: 13px;
    line-height: 1.45;
}
.report-registration-dl dt {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}
.report-registration-dl dd {
    margin: 0;
    color: var(--text);
}
.report-registration-suggestions-wrap { margin-top: 4px; }
.report-registration-suggestions {
    margin: 0;
    padding-left: 1.2em;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text);
}
.report-registration-suggestions li { margin: 6px 0; }
.report-registration-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}

.report-findings-details {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface-2) 35%, transparent);
    overflow: hidden;
}
.report-findings-details > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    user-select: none;
    border-left: 3px solid transparent;
}
.report-findings-details > summary::-webkit-details-marker { display: none; }
.report-findings-details > summary::before {
    content: '';
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    margin-top: -2px;
    opacity: 0.75;
    flex-shrink: 0;
}
.report-findings-details[open] > summary::before {
    transform: rotate(45deg);
    margin-top: 2px;
}
.report-findings-details > summary:hover {
    color: var(--text);
    background: rgba(45, 212, 191, 0.06);
}
.report-findings-details--good > summary {
    border-left-color: rgba(45, 212, 191, 0.55);
}
.report-findings-details--bad > summary {
    border-left-color: rgba(248, 113, 113, 0.45);
}
.report-findings-details__label {
    font-weight: 700;
    color: var(--text);
}
.report-findings-details__count {
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text);
}
.report-findings-details__meta {
    font-weight: 500;
    font-size: 12px;
    opacity: 0.9;
    color: var(--muted);
}
.report-findings-details__body {
    padding: 0 0 12px;
    border-top: 1px solid var(--border);
}
.report-findings-empty {
    margin: 0;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.report-findings-mini-wrap {
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.report-findings-mini {
    font-size: 13px;
}
@media (min-width: 769px) {
    .report-findings-mini {
        table-layout: fixed;
    }
    .report-findings-mini th:nth-child(1),
    .report-findings-mini td:nth-child(1) {
        width: 7rem;
    }
    .report-findings-mini th:nth-child(3),
    .report-findings-mini td:nth-child(3) {
        width: 6.5rem;
    }
    .report-findings-mini th:nth-child(2),
    .report-findings-mini td:nth-child(2) {
        min-width: 0;
        word-break: break-word;
    }
}
.report-findings-mini thead th {
    padding: 8px 12px;
    font-size: 10px;
}
.report-findings-mini tbody td {
    padding: 8px 12px;
    vertical-align: middle;
}
.report-findings-mini tbody tr.report-findings-mini-row td {
    vertical-align: top;
}
.report-strength-evidence {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.45;
}

.report-json-details {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface-2) 40%, transparent);
    overflow: hidden;
}
.report-json-details > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    user-select: none;
}
.report-json-details > summary::-webkit-details-marker { display: none; }
.report-json-details > summary::before {
    content: '';
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    margin-top: -2px;
    opacity: 0.75;
}
.report-json-details[open] > summary::before {
    transform: rotate(45deg);
    margin-top: 2px;
}
.report-json-details > summary:hover {
    color: var(--text);
    background: rgba(45, 212, 191, 0.06);
}
.report-json-details__hint {
    font-weight: 500;
    font-size: 12px;
    opacity: 0.85;
}
.report-json-details .json-block {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    max-height: min(52vh, 420px);
}

.json-block {
    font-family: var(--mono); font-size: 11px; line-height: 1.45; overflow: auto; max-height: 360px;
    margin: 0; padding: 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border);
}

.panel { max-width: 900px; margin: 0 auto; }
.panel h1 { margin-top: 0; }

@media print {
    .top-nav, .site-footer, .report-nav, .no-print, .theme-toggle-btn { display: none !important; }
    .report-layout { flex-direction: column; }
    body { background: #fff; color: #000; }
    .chart-panel--below { max-width: 100%; }
    .chart-canvas-wrap { height: 180px; }
    .score-cards--metrics { grid-template-columns: repeat(4, 1fr); }
    .findings-table tbody tr { background: transparent !important; }
    .findings-table tbody tr:nth-child(even) { background: #f8fafc !important; }
}

/* Internal server-check page */
.server-check-page { max-width: 900px; margin: 0 auto; }
.server-check-header { margin-bottom: 24px; }
.server-check-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 8px 0 12px;
}
.server-check-lede {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px;
    max-width: 52rem;
}
.server-check-meta {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}
.server-check-banner {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}
.server-check-banner--ok {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
}
[data-theme="light"] .server-check-banner--ok {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}
.server-check-banner--warn {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fcd34d;
}
[data-theme="light"] .server-check-banner--warn {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}
.server-check-table-wrap { margin-bottom: 24px; }
.server-check-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.server-check-table th,
.server-check-table td {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid var(--border);
    vertical-align: top;
}
.server-check-table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}
.server-check-table code { font-size: 12px; }
.server-check-detail {
    word-break: break-word;
    color: var(--muted);
}
.server-check-pass {
    font-weight: 700;
    color: #34d399;
}
.server-check-fail {
    font-weight: 700;
    color: #f87171;
}
.server-check-row--fail td:first-child { border-left: 3px solid rgba(248, 113, 113, 0.6); }
.server-check-foot { font-size: 14px; margin: 0; }

/* About page */
.about-page { max-width: 44rem; margin: 0 auto; }
.about-page h1 { margin-top: 8px; }
.about-block { margin-top: 28px; }
.about-block-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.about-block-ic { opacity: 0.85; flex-shrink: 0; }
.about-list { margin: 0 0 12px; padding-left: 1.25rem; line-height: 1.55; }
.about-list li { margin-bottom: 8px; }
.about-list--plain { list-style: none; padding-left: 0; }
.about-list--plain li { margin-bottom: 12px; }
.about-steps { margin: 0 0 12px; padding-left: 1.25rem; line-height: 1.55; }
.about-steps li { margin-bottom: 10px; }
.about-muted { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 8px; }
.about-page > .lede + .about-muted {
    margin-top: 1.25rem;
}
.terms-subheading {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.35rem 0 0.5rem;
    color: var(--text);
    letter-spacing: -0.02em;
}
.terms-cookie-table-wrap {
    margin: 12px 0 20px;
}
.terms-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.45;
}
.terms-cookie-table th,
.terms-cookie-table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.terms-cookie-table th {
    background: color-mix(in srgb, var(--surface-2) 88%, var(--surface));
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.terms-cookie-table code {
    font-size: 12px;
    word-break: break-word;
}
@media (max-width: 640px) {
    .terms-cookie-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .terms-cookie-table {
        min-width: 36rem;
    }
}
.about-block--privacy {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 18px 20px;
    background: rgba(45, 212, 191, 0.06);
}
[data-theme="light"] .about-block--privacy {
    background: rgba(13, 148, 136, 0.08);
}
.about-back { margin-top: 36px; font-size: 15px; }
.about-back a { font-weight: 600; }

.error-404-page .error-404-code {
    font-size: clamp(3.5rem, 14vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
    margin: 0 0 4px;
    color: color-mix(in srgb, var(--muted) 38%, transparent);
    user-select: none;
}
.error-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

/* FAQ / glossary — summary text stays left-aligned; chevron is a separate flex item */
.faq-intro { margin-bottom: 8px; }
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0 28px;
}
.faq-section-heading {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 28px 0 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--text);
}
.faq-list > .faq-section-heading:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
}
.faq-summary {
    cursor: pointer;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.45;
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
}
.faq-summary__label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
.faq-item .faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
    content: "";
    flex: 0 0 auto;
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}
.faq-item[open] > .faq-summary::after {
    transform: rotate(-135deg);
}
.faq-item[open] > .faq-summary {
    border-bottom: 1px solid var(--border);
    color: var(--accent-2);
}
.faq-body {
    padding: 14px 16px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}
.faq-body p { margin: 0 0 12px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body code {
    font-family: var(--mono);
    font-size: 0.88em;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
}
.faq-body strong { color: var(--text); }
.faq-more { margin-top: 10px !important; font-size: 13px; }
.faq-block { margin-top: 8px; }
#finding-categories-intro {
    margin-bottom: 16px;
}

/* Home: comparison table */
.home-comparison-wrap {
    margin-top: 8px;
}
.home-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}
.home-comparison-table th,
.home-comparison-table td {
    border: 1px solid var(--border);
    padding: 12px 14px;
    vertical-align: top;
    text-align: left;
}
.home-comparison-table thead th {
    background: var(--surface-2);
    font-weight: 700;
    color: var(--text);
}
.home-comparison-table tbody th[scope="row"] {
    width: 22%;
    min-width: 140px;
    font-weight: 600;
    color: var(--text);
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}
@media (max-width: 900px) {
    .home-comparison-table {
        font-size: 13px;
    }
    .home-comparison-table th,
    .home-comparison-table td {
        padding: 10px 10px;
    }
}

/* Report: share card + finding category links */
.report-share-card {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-2) 88%, var(--surface));
    max-width: 42rem;
}
.report-share-card__label {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.report-share-card__hint {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--muted);
}
.report-share-card__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.report-share-card__copied {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-2);
}
.findings-table .th-hint {
    font-weight: 500;
    color: var(--muted);
    font-size: 0.88em;
}
.findings-table .finding-category-cell {
    white-space: nowrap;
}
.findings-table .finding-category-link {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 500;
}
.findings-table .finding-category-link:hover {
    color: var(--accent);
}

/* Open Graph preview tool, SEO snapshot, + report modal */
.og-preview-page .og-preview-form,
.seo-page .og-preview-form {
    margin: 20px 0;
}
.og-preview-page .og-preview-form .og-preview-form__row,
.seo-page .og-preview-form .og-preview-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.og-preview-page .og-preview-form .og-preview-form__row .field,
.seo-page .og-preview-form .og-preview-form__row .field {
    flex: 1 1 min(100%, 420px);
    margin-bottom: 0;
    min-width: 0;
}
.og-preview-page .og-preview-form .og-preview-form__row .og-preview-form__submit,
.seo-page .og-preview-form .og-preview-form__row .og-preview-form__submit {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-bottom: 2px;
}
.og-preview-page .og-preview-form .field-hint,
.seo-page .og-preview-form .field-hint {
    margin-top: 4px;
}
.og-preview-results {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.og-preview-results__title {
    font-size: 1.25rem;
    margin: 0 0 8px;
}
.og-preview-results__url {
    font-size: 13px;
    margin: 0 0 16px;
    word-break: break-all;
}
.og-share-bar {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    max-width: 52rem;
}
.og-share-bar__label {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text);
}
.og-share-bar__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}
.og-share-bar__input {
    flex: 1 1 12rem;
    min-width: 0;
    font-family: var(--mono);
    font-size: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
}
.og-share-bar__btn {
    flex: 0 0 auto;
    white-space: nowrap;
}
.og-share-bar__hint {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.4;
}
.og-share-bar__done {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text);
}
.og-preview-help {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.og-preview-help__title {
    font-size: 1.1rem;
    margin: 0 0 10px;
}
.og-preview-code {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 12px;
    line-height: 1.45;
    overflow-x: auto;
}
.og-preview-code code {
    font-family: var(--mono);
    color: var(--text);
}
.og-preview-note {
    margin-top: 16px;
    max-width: 52rem;
}

.og-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}
.og-platform__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.og-mock {
    position: relative;
    z-index: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: visible;
    background: var(--surface);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    max-width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
html[data-theme="dark"] .og-mock {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .og-mock:hover {
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}
.og-mock:hover {
    z-index: 1;
    border-color: rgba(45, 212, 191, 0.28);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
    .og-mock {
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    .og-mock:hover,
    html[data-theme="dark"] .og-mock:hover {
        transform: none;
    }
}
/* Clip media inside cards; overflow visible on .og-mock keeps hover shadow visible */
.og-mock > .og-mock__img-wrap:first-child {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
.og-mock > .og-mock__body:last-child {
    border-radius: 0 0 12px 12px;
}
.og-mock__img-wrap {
    aspect-ratio: 1.91 / 1;
    background: var(--surface-2);
    position: relative;
}
.og-mock__img-wrap--tall {
    aspect-ratio: 1.2 / 1;
}
.og-mock__img-wrap--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--muted);
}
.og-mock__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.og-mock__body {
    padding: 10px 12px 12px;
}
.og-mock__domain {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 4px;
}
.og-mock__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-mock__desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-mock__body--li .og-mock__title {
    font-size: 14px;
}
.og-mock__domain-li {
    font-size: 12px;
    color: var(--muted);
    margin: 8px 0 0;
}

.og-mock--x .og-mock__x-inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    border-radius: 12px;
    overflow: hidden;
}
.og-mock__x-img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}
.og-mock__x-text {
    padding: 10px 12px;
    flex: 1 1 200px;
}
.og-mock--slack {
    display: flex;
    gap: 0;
    align-items: stretch;
}
.og-mock--slack > .og-mock__slack-thumb:first-child {
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}
.og-mock--slack > .og-mock__slack-main:last-child {
    border-radius: 0 12px 12px 0;
}
.og-mock__slack-thumb {
    width: 88px;
    min-height: 88px;
    flex-shrink: 0;
    background: var(--surface-2);
}
.og-mock__slack-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.og-mock__slack-main {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
}
.og-mock__slack-host {
    font-size: 11px;
    color: var(--muted);
    margin: 6px 0 0;
}

.og-mock--teams {
    border-radius: 8px;
    overflow: visible;
}
.og-mock__teams-bar {
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(90deg, #5b5fc7, #7f85f5);
}
.og-mock__teams-inner {
    display: flex;
    gap: 12px;
    padding: 12px;
    align-items: flex-start;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}
.og-mock__teams-thumb {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface-2);
}
.og-mock__teams-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.og-preview-disclaimer {
    margin: 0 0 16px;
    max-width: 52rem;
    font-size: 13px;
    line-height: 1.45;
}

/* Apple Messages–style link card (approximate; not pixel-perfect) */
.og-mock--imessage {
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: none;
}
.og-mock__imessage-inner {
    overflow: hidden;
    border-radius: 15px;
}
.og-mock__imessage-media {
    aspect-ratio: 1.85 / 1;
    background: #1c1c1e;
    overflow: hidden;
}
html[data-theme="dark"] .og-mock__imessage-media {
    background: #0a0a0a;
}
.og-mock__imessage-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.og-mock__imessage-media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--muted);
    min-height: 100px;
}
.og-mock__imessage-text {
    padding: 10px 12px 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.og-mock__imessage-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-mock__imessage-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-mock__imessage-host {
    font-size: 11px;
    color: var(--muted);
    margin: 0;
    letter-spacing: 0.02em;
}

/* WhatsApp link preview (approximate) */
.og-mock--whatsapp {
    border-radius: 8px;
    overflow: visible;
}
.og-mock--whatsapp > .og-mock__wa-img:first-child {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.og-mock--whatsapp > .og-mock__wa-body:last-child {
    border-radius: 0 0 8px 8px;
}
.og-mock__wa-img {
    aspect-ratio: 1.91 / 1;
    background: #e5ddd5;
    overflow: hidden;
}
html[data-theme="dark"] .og-mock__wa-img {
    background: var(--surface-2);
}
.og-mock__wa-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.og-mock__wa-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--muted);
    min-height: 80px;
}
.og-mock__wa-body {
    padding: 8px 10px 10px;
    background: #f0f2f5;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] .og-mock__wa-body {
    background: var(--surface-2);
    border-top-color: var(--border);
}
.og-mock__wa-title {
    font-size: 14px;
    font-weight: 600;
    color: #303030;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html[data-theme="dark"] .og-mock__wa-title {
    color: var(--text);
}
.og-mock__wa-desc {
    font-size: 12px;
    color: #667781;
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html[data-theme="dark"] .og-mock__wa-desc {
    color: var(--muted);
}
.og-mock__wa-domain {
    font-size: 11px;
    color: #8696a0;
    margin: 0;
}
html[data-theme="dark"] .og-mock__wa-domain {
    color: var(--muted);
}

/* Discord embed–style (approximate) */
.og-mock--discord {
    background: #313338;
    border-color: #1e1f22;
    color: #f2f3f5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] .og-mock--discord {
    background: #313338;
    border-color: #1e1f22;
}
.og-mock__discord-inner {
    display: flex;
    align-items: stretch;
    min-height: 88px;
    border-radius: 12px;
    overflow: hidden;
}
.og-mock__discord-accent {
    width: 4px;
    flex-shrink: 0;
    background: #5865f2;
}
.og-mock__discord-main {
    display: flex;
    gap: 12px;
    padding: 10px 12px 12px 10px;
    flex: 1;
    min-width: 0;
    align-items: flex-start;
}
.og-mock__discord-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #1e1f22;
}
.og-mock__discord-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.og-mock__discord-site {
    font-size: 11px;
    color: #b5bac1;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.og-mock__discord-title {
    font-size: 15px;
    font-weight: 600;
    color: #f2f3f5;
    margin: 0 0 6px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-mock__discord-desc {
    font-size: 13px;
    color: #b5bac1;
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Telegram link preview (approximate) */
.og-mock--telegram {
    border-radius: 10px;
    overflow: visible;
    background: var(--surface);
}
.og-mock--telegram > .og-mock__tg-img:first-child {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}
.og-mock--telegram > .og-mock__tg-body:last-child {
    border-radius: 0 0 10px 10px;
}
.og-mock__tg-img {
    aspect-ratio: 1.91 / 1;
    background: #e5ebef;
    overflow: hidden;
}
html[data-theme="dark"] .og-mock__tg-img {
    background: var(--surface-2);
}
.og-mock__tg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.og-mock__tg-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--muted);
    min-height: 80px;
}
.og-mock__tg-body {
    padding: 10px 12px 12px;
}
.og-mock__tg-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-mock__tg-host {
    font-size: 12px;
    color: var(--muted);
    margin: 0;
}

/* Bluesky (approximate) */
.og-mock--bluesky {
    border-radius: 12px;
    overflow: visible;
    border-top: 3px solid #0085ff;
}
.og-mock--bluesky > .og-mock__bsky-img:first-child {
    border-radius: 9px 9px 0 0;
    overflow: hidden;
}
.og-mock--bluesky > .og-mock__bsky-body:last-child {
    border-radius: 0 0 12px 12px;
}
.og-mock__bsky-img {
    aspect-ratio: 1.91 / 1;
    background: var(--surface-2);
    overflow: hidden;
}
.og-mock__bsky-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.og-mock__bsky-body {
    padding: 10px 12px 12px;
}
.og-mock__bsky-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-mock__bsky-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.og-mock__bsky-domain {
    font-size: 12px;
    color: #536471;
    margin: 0;
}
html[data-theme="dark"] .og-mock__bsky-domain {
    color: var(--muted);
}

/* Collapsible parsed-meta inspector */
.og-meta-inspector {
    margin-top: 24px;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 0;
}
.og-meta-inspector__summary {
    cursor: pointer;
    list-style: none;
    padding: 8px 14px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.25;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: 1px solid transparent;
}
.og-meta-inspector[open] > .og-meta-inspector__summary {
    border-bottom-color: var(--border);
}
.og-meta-inspector__summary::-webkit-details-marker {
    display: none;
}
.og-meta-inspector__summary::before {
    content: "▸";
    flex-shrink: 0;
    display: block;
    font-size: 1.625rem;
    line-height: 1;
    margin-right: 0;
    color: var(--muted);
    transition: transform 0.15s ease, color 0.15s ease;
}
.og-meta-inspector__summary:hover::before {
    color: var(--accent-2);
}
.og-meta-inspector[open] .og-meta-inspector__summary::before {
    transform: rotate(90deg);
}
.og-meta-inspector__hint {
    margin: 14px 16px 12px;
    font-size: 12px;
    line-height: 1.45;
}
/* Self-contained card (do not combine with .table-wrap — avoids cascade differences in modals vs full page) */
.og-meta-inspector__wrap {
    margin: 12px 16px 16px;
    padding: 12px 16px 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    max-width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .og-meta-inspector__wrap {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.og-meta-inspector__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.4;
}
.og-meta-inspector__table th,
.og-meta-inspector__table td {
    border: 1px solid var(--border);
    padding: 8px 10px;
    vertical-align: top;
    text-align: left;
}
.og-meta-inspector__group-row th {
    background: var(--surface);
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.og-meta-inspector__key {
    width: 38%;
    min-width: 9rem;
    font-family: var(--mono);
    color: var(--text);
}
.og-meta-inspector__key code {
    font-size: 11px;
    word-break: break-word;
}
.og-meta-inspector__val {
    word-break: break-word;
    color: var(--text);
}

.seo-preview-results .seo-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    align-items: start;
    margin-top: 8px;
}
.seo-snapshot-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    padding: 16px 18px;
}
.seo-snapshot-card__title {
    font-size: 1rem;
    margin: 0 0 12px;
    color: var(--text);
}
.seo-snapshot-dl {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}
.seo-snapshot-dl dt {
    font-weight: 600;
    color: var(--muted);
    margin-top: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.seo-snapshot-dl dt:first-child {
    margin-top: 0;
}
.seo-snapshot-dl dd {
    margin: 4px 0 0;
    color: var(--text);
    word-break: break-word;
}
.seo-snapshot-code {
    font-size: 12px;
    word-break: break-all;
}
.seo-snapshot-meta {
    font-size: 12px;
    margin: 0 0 12px;
    word-break: break-all;
}
.seo-snapshot-verdict {
    font-size: 13px;
    margin: 0 0 8px;
    line-height: 1.4;
}
.seo-snapshot-hint-ok {
    color: var(--accent);
}
.seo-snapshot-hint-warn {
    color: var(--warn);
}
.seo-robots-raw {
    margin-top: 12px;
}
.seo-robots-raw summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.seo-robots-pre {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.4;
    max-height: 280px;
    overflow: auto;
}
.seo-snapshot-disclaimer {
    margin-top: 20px;
    font-size: 12px;
    max-width: 52rem;
}

.report-og-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.report-og-modal.hidden {
    display: none;
}
.report-og-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
}
.report-og-modal__panel {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}
.report-og-modal__head {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    padding: 16px 44px 12px 18px;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 95%, transparent);
    backdrop-filter: blur(8px);
}
.report-og-modal__title {
    margin: 0;
    font-size: 1.15rem;
}
.report-og-modal__sub {
    margin: 6px 0 0;
    font-size: 13px;
}
.report-og-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}
.report-og-modal__close:hover {
    background: var(--surface-2);
    color: var(--text);
}
.report-og-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Extra space so .og-mock hover shadows aren’t clipped by the scroll edge */
    padding: 24px 24px 52px;
}
.report-og-modal__body .og-platform-grid {
    gap: 28px;
}
