:root {
    --topbar-height: 82px;
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #0f1a33;
    --muted: #5b6a90;
    --line: #dce3ee;
    --accent: #1457d9;
    --accent-2: #0f3f9f;
    --accent-soft: #eaf1ff;
    --surface-soft: #fbfcff;
    --success: #00cc66;
    --warning: #ffaa32;
    --signal-good: #00cc66;
    --signal-good-soft: #dff6e9;
    --signal-warning: #ffaa32;
    --signal-warning-soft: #fff2db;
    --signal-danger: #ff3233;
    --signal-danger-soft: #fcedee;
    --danger: #ff3233;
    --radius: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 26, 51, .06);
    --shadow-md: 0 12px 28px rgba(15, 26, 51, .08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #10162a;
        --surface: #171f36;
        --text: #ecf1ff;
        --muted: #a5b4de;
        --line: #2d3a61;
        --accent: #4c87ff;
        --accent-2: #2f6eea;
        --accent-soft: #172850;
        --surface-soft: #121a2f;
        --success: #00cc66;
        --warning: #ffaa32;
        --signal-good: #00cc66;
        --signal-good-soft: #123922;
        --signal-warning: #ffaa32;
        --signal-warning-soft: #302819;
        --signal-danger: #ff3233;
        --signal-danger-soft: #401c24;
        --danger: #ff3233;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .24);
        --shadow-md: 0 16px 36px rgba(0, 0, 0, .28);
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent 26%),
        radial-gradient(circle at bottom right, color-mix(in srgb, rgba(0, 204, 102, .09) 88%, transparent), transparent 28%),
        var(--bg);
    line-height: 1.45;
    text-rendering: optimizeLegibility;
}

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

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.topbar {
    background: var(--surface);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.topbar-authenticated {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface) 90%, transparent));
    box-shadow: 0 10px 28px -24px rgba(15, 26, 51, .42);
}

.topbar-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 22px;
    padding: 12px 0;
}

.page-authenticated .topbar-inner {
    min-height: 76px;
    padding: 10px 0;
}

.topbar-brand,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.topbar-brand {
    flex: 1 1 520px;
    flex-wrap: wrap;
}

.topbar-actions {
    flex: 1 1 360px;
    justify-content: flex-end;
}

.logo {
    font-weight: 800;
    letter-spacing: 0;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--accent);
    box-shadow: inset 0 -8px 0 rgba(255, 255, 255, .16);
}

.logo-image::before { display: none; }

.logo-image picture { display: block; line-height: 0; }

.logo-image img {
    display: block;
    width: min(214px, 50vw);
    height: auto;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 8px 13px;
    color: color-mix(in srgb, var(--text) 84%, var(--muted));
    font-weight: 700;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.nav-link:hover {
    background: color-mix(in srgb, var(--accent-soft) 58%, var(--surface));
    color: var(--accent);
    text-decoration: none;
}

.nav-link-active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 17%, var(--surface)), color-mix(in srgb, var(--accent-soft) 82%, var(--surface)));
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, var(--line)),
        0 8px 18px -16px color-mix(in srgb, var(--accent) 55%, #0f1a33);
    color: var(--accent-2);
}

.nav-link-logout {
    color: color-mix(in srgb, var(--muted) 86%, var(--text));
    font-weight: 750;
}

.nav-link-logout:hover {
    color: var(--accent);
}

.app-shell {
    width: min(1440px, 94vw);
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.app-content {
    min-width: 0;
    overflow-x: clip;
}

.page-app-shell .app-content > .container,
.page-app-shell .app-content > main.container,
.page-app-shell .app-content .area-nav-shell {
    width: 100%;
    margin-inline: 0;
}

.page-app-shell main.container {
    padding-top: 18px;
}

.page-app-shell .app-content > main.container.scan-result-page {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
}

.page-report .scan-report-main {
    width: min(1440px, 96vw);
    max-width: none;
}

.page-report .internal-report-page {
    width: 100%;
}

.app-sidebar {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 14px;
    max-height: calc(100vh - 112px);
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--line) 78%, var(--accent-soft));
    border-radius: 18px;
    padding: 14px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 94%, var(--accent-soft)), var(--surface) 78%);
    box-shadow: 0 22px 48px -38px rgba(15, 26, 51, .48), var(--shadow-sm);
}

.app-sidebar-brand {
    display: grid;
    gap: 3px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, var(--surface));
    padding: 3px 4px 13px;
}

.app-sidebar-brand span {
    color: var(--accent-2);
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.app-sidebar-brand strong {
    color: var(--text);
    font-size: .98rem;
    line-height: 1.2;
}

.app-sidebar-nav {
    display: grid;
    gap: 12px;
}

.app-sidebar-group {
    display: grid;
    gap: 6px;
}

.app-sidebar-group-title {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    padding: 0 5px;
}

.app-sidebar-group-links {
    display: grid;
    gap: 5px;
}

.app-sidebar-link {
    display: flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 8px 11px;
    color: color-mix(in srgb, var(--text) 86%, var(--muted));
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.app-sidebar-link:hover,
.app-sidebar-link:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
    background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface));
    text-decoration: none;
}

.app-sidebar-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    border-color: color-mix(in srgb, var(--accent) 75%, var(--accent-2));
    box-shadow: 0 14px 24px -20px color-mix(in srgb, var(--accent) 72%, #0f1a33);
}

.app-sidebar-logout {
    border-top: 1px solid color-mix(in srgb, var(--line) 78%, var(--surface));
    margin: 2px 0 0;
    padding-top: 12px;
}

.app-sidebar-link-logout {
    width: 100%;
    color: color-mix(in srgb, var(--muted) 88%, var(--text));
    text-align: left;
    cursor: pointer;
}

.service-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
    border-radius: 999px;
    padding: 3px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--accent-soft)), var(--surface));
    box-shadow: 0 10px 22px -20px rgba(15, 26, 51, .5), var(--shadow-sm);
}

.service-switcher-link {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    border-radius: 999px;
    padding: 5px 11px;
    color: color-mix(in srgb, var(--text) 78%, var(--muted));
    font-size: .84rem;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.service-switcher-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 8px 16px -14px color-mix(in srgb, var(--accent) 70%, #0f1a33);
}

.service-switcher-link-muted {
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-soft) 92%, var(--surface));
}

a.service-switcher-link:hover {
    text-decoration: none;
    color: var(--accent);
}

a.service-switcher-link.active:hover {
    color: #fff;
}

.area-nav-wrap {
    position: sticky;
    top: var(--topbar-height);
    z-index: 49;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, transparent), color-mix(in srgb, var(--surface) 90%, transparent));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -22px rgba(15, 26, 51, .5);
    backdrop-filter: blur(10px);
}

.page-authenticated .area-nav-wrap {
    top: 76px;
}

.area-nav-shell {
    padding: 7px 0;
}

.area-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.area-nav-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent-soft));
    border-radius: 999px;
    padding: 5px 7px 5px 11px;
    background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
    box-shadow: 0 8px 18px -18px rgba(15, 26, 51, .46);
}

.area-nav-title {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
    white-space: nowrap;
    padding-right: 2px;
}

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

.area-nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text);
    padding: 5px 10px;
    text-decoration: none;
    background: transparent;
    white-space: nowrap;
    font-size: .83rem;
    font-weight: 750;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.area-nav-link:hover,
.area-nav-link:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    background: color-mix(in srgb, var(--accent-soft) 42%, var(--surface));
    text-decoration: none;
}

.area-nav-link.active {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #fff;
    box-shadow: 0 8px 16px -14px color-mix(in srgb, var(--accent-2) 70%, #0f1a33);
}

.inline-form { margin: 0; }
.nav-inline-form { display: inline-flex; }
.link-btn {
    border: 0;
    background: transparent;
    color: var(--accent);
    padding: 0;
    font: inherit;
    cursor: pointer;
}

main.container { padding: 22px 0 40px; }

.page-auth main.container {
    padding-top: 34px;
    padding-bottom: 52px;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.hero {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(24px, 4vw, 44px);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero-saas {
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}

h1 { margin: 0 0 12px; font-size: clamp(1.6rem, 2.1vw + 1rem, 2.65rem); line-height: 1.08; letter-spacing: 0; }
h2 { margin: 0 0 10px; font-size: 1.22rem; line-height: 1.2; letter-spacing: 0; }
h3 { margin: 0 0 8px; font-size: 1rem; letter-spacing: 0; }
p, li, td, th, label, summary { letter-spacing: 0; }

.hero p,
.page-lead {
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 780px;
}

.eyebrow {
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.analyze-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin: 14px 0;
    align-items: start;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--text);
    border-radius: 6px;
    padding: 11px 12px;
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
    background: var(--surface);
}

textarea { resize: vertical; min-height: 88px; }
label { display: grid; gap: 6px; margin-bottom: 10px; }

.btn {
    border: 0;
    border-radius: 6px;
    padding: 10px 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.btn:not(.btn-ghost):hover { background: var(--accent-2); text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 7px 11px; font-size: .9rem; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--accent); }
.btn-ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-decoration: none;
}
.btn-danger { background: var(--danger); }

.hero-links,
.button-row,
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.checkbox-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    grid-column: 1 / -1;
    margin: 0;
}

.trust-strip,
.metric-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
}

.feature-card {
    min-height: 100%;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.feature-card:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-home .container {
    width: min(1560px, calc(100vw - 72px));
}

.page-home main.container {
    font-size: 1.075rem;
    padding-top: 20px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(560px, .98fr);
    gap: clamp(28px, 3.2vw, 50px);
    align-items: start;
    width: 100%;
    max-width: none;
    background:
        radial-gradient(circle at 88% 14%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
        linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent-soft) 42%, var(--surface)) 100%);
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    border-radius: 30px;
    box-shadow: 0 36px 90px rgba(15, 26, 51, .13);
    margin-bottom: 26px;
    overflow: hidden;
    min-height: 0;
    padding: clamp(32px, 3.8vw, 54px) clamp(36px, 4.6vw, 72px);
    position: relative;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 310px;
    height: 310px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.home-hero > * {
    position: relative;
    min-width: 0;
}

.home-hero-brand {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

.home-hero-brand picture { display: block; line-height: 0; }

.home-hero-brand img {
    display: block;
    width: clamp(220px, 15vw, 280px);
    height: auto;
}

.home-hero-brand span {
    border-left: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
    color: var(--muted);
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .08em;
    padding-left: 12px;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 980px;
    font-size: clamp(2.85rem, 2.9vw + .55rem, 4.35rem);
    letter-spacing: -.048em;
    line-height: 1.03;
    text-wrap: balance;
}

.home-hero .page-lead {
    font-size: clamp(1.06rem, .34vw + 1rem, 1.2rem);
    max-width: 820px;
    line-height: 1.5;
}

.home-analyze-form {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
}

.home-analyze-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.home-analyze-main input {
    min-height: 60px;
    border-radius: 16px;
    background: #fff;
    font-size: 1.09rem;
    padding-inline: 18px;
}

.home-analyze-main .btn {
    border-radius: 16px;
    min-height: 60px;
    padding-inline: 28px;
    font-size: 1.02rem;
}

.keyword-fields {
    border: 1px solid color-mix(in srgb, var(--accent) 13%, var(--line));
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
    padding: 12px 14px;
}

.keyword-fields summary {
    cursor: pointer;
    font-weight: 850;
}

.keyword-fields p,
.keyword-fields small {
    color: var(--muted);
}

.keyword-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.keyword-grid label {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 750;
    margin: 0;
}

.home-trust-strip .chip {
    background: color-mix(in srgb, var(--accent-soft) 72%, #fff);
    color: color-mix(in srgb, var(--accent) 72%, var(--text));
    font-size: .88rem;
    padding: 6px 11px;
}

.report-preview {
    display: grid;
    gap: 12px;
    align-self: start;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 30px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 30px 80px rgba(15, 26, 51, .17);
    padding: clamp(12px, 1.25vw, 18px);
}

.report-preview-image {
    margin-top: clamp(2px, .4vw, 8px);
    transform: rotate(.35deg);
}

.preview-window {
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
    border-radius: 22px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.preview-window img {
    display: block;
    width: 100%;
    height: clamp(480px, 36vw, 590px);
    object-fit: cover;
    object-position: top center;
}

.report-preview-image p {
    color: var(--muted);
    font-weight: 750;
    margin: 0 4px 2px;
}

.preview-kicker {
    color: var(--accent);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.preview-score-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

.preview-score-ring {
    display: grid;
    place-items: center;
    width: 142px;
    height: 142px;
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--surface) 0 58%, transparent 59%),
        conic-gradient(#00cc66 0 66%, #ffaa32 66% 84%, #ff3233 84% 100%);
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .62);
}

.preview-score-ring strong {
    font-size: 3rem;
    line-height: .9;
}

.preview-score-ring span {
    color: var(--muted);
    font-weight: 800;
}

.preview-score-card h2,
.preview-score-card p {
    margin: 0;
}

.preview-score-card p {
    color: var(--muted);
}

.preview-bars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 220px;
    border-bottom: 2px solid var(--line);
    padding-top: 18px;
}

.preview-bars div {
    display: grid;
    align-content: end;
    gap: 6px;
    min-height: 202px;
}

.preview-bars span {
    display: block;
    border-radius: 8px 8px 0 0;
    background: var(--accent);
}

.preview-bars div:nth-child(1) span { background: #00cc66; }
.preview-bars div:nth-child(2) span { background: #ffaa32; }
.preview-bars div:nth-child(3) span { background: #ff3233; }

.preview-bars strong {
    font-size: .8rem;
    text-transform: uppercase;
}

.preview-bars small {
    color: var(--muted);
}

.preview-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.preview-module-grid span,
.check-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    padding: 12px 14px;
    font-weight: 800;
}

.home-section {
    margin-top: 48px;
}

.section-heading {
    max-width: 820px;
    margin-bottom: 16px;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.62;
}

.home-stats-panel,
.ai-landing-panel,
.home-final-cta {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: clamp(20px, 3vw, 30px);
}

.home-stats-panel {
    display: grid;
    grid-template-columns: minmax(340px, .7fr) minmax(0, 1.3fr);
    gap: clamp(18px, 3vw, 36px);
    align-items: stretch;
    background:
        radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34%),
        var(--surface);
}

.home-stats-intro p {
    color: var(--muted);
    margin: 0;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-stat-card {
    border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent-soft) 26%, var(--surface));
    box-shadow: 0 18px 40px rgba(15, 26, 51, .08);
    padding: clamp(24px, 3vw, 38px);
    min-height: 200px;
}

.home-stat-card strong,
.home-stat-card span,
.home-stat-card small {
    display: block;
}

.home-stat-card strong {
    color: var(--accent);
    font-size: clamp(4.4rem, 4.8vw + 1rem, 7rem);
    letter-spacing: -.05em;
    line-height: .95;
}

.home-stat-card span {
    color: var(--text);
    font-weight: 900;
    font-size: 1.35rem;
    margin-top: 16px;
}

.home-stat-card small {
    color: var(--muted);
    font-size: 1.02rem;
    margin-top: 4px;
}

.benefit-grid,
.check-grid,
.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.benefit-card,
.audience-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 26px;
}

.benefit-card h3,
.audience-card h3 {
    font-size: 1.18rem;
}

.benefit-card h3,
.benefit-card p,
.audience-card h3,
.audience-card p {
    margin: 0;
}

.benefit-card p,
.audience-card p {
    color: var(--muted);
    margin-top: 8px;
}

.ai-landing-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
    gap: 22px;
    align-items: center;
    background:
        radial-gradient(circle at 12% 20%, rgba(20, 87, 217, .12), transparent 30%),
        linear-gradient(135deg, var(--surface) 0%, color-mix(in srgb, var(--accent-soft) 62%, var(--surface)) 100%);
}

.ai-landing-panel p {
    color: var(--muted);
}

.ai-note-card {
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    padding: 18px;
}

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

.check-card {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-card span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
    flex: 0 0 auto;
}

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

.process-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: process;
}

.process-list li {
    counter-increment: process;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    padding: 18px;
}

.process-list li::before {
    content: counter(process);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    margin-bottom: 12px;
}

.process-list strong,
.process-list span {
    display: block;
}

.process-list span {
    color: var(--muted);
    margin-top: 6px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.faq-grid details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    padding: 14px 16px;
}

.faq-grid summary {
    cursor: pointer;
    font-weight: 850;
}

.faq-grid p {
    color: var(--muted);
}

.home-final-cta {
    margin-top: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 38%),
        var(--surface);
}

.home-final-cta .hero-links {
    justify-content: center;
}

@media (max-width: 1120px) {
    .page-home .container {
        width: min(94vw, 1000px);
    }

    .home-hero,
    .home-stats-panel,
    .ai-landing-panel {
        grid-template-columns: 1fr;
    }

    .report-preview-image {
        margin-top: 8px;
        transform: none;
    }

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

@media (max-width: 560px) {
    .home-hero-brand {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 8px 12px;
        max-width: 100%;
    }

    .home-hero-brand picture {
        max-width: 100%;
    }

    .home-hero-brand img {
        width: min(220px, 100%);
        max-width: 100%;
    }

    .home-hero-brand span {
        flex: 1 1 100%;
        border-left: 0;
        border-top: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
        padding-left: 0;
        padding-top: 8px;
        font-size: .76rem;
        letter-spacing: .06em;
        line-height: 1.25;
    }
}

@media (prefers-color-scheme: dark) {
    .home-hero,
    .report-preview,
    .home-stats-panel,
    .ai-landing-panel,
    .home-final-cta,
    .home-stat-card,
    .benefit-card,
    .audience-card,
    .faq-grid details,
    .process-list li {
        background-color: var(--surface);
    }

    .home-analyze-main input,
    .ai-note-card,
    .preview-window {
        background: color-mix(in srgb, var(--surface) 92%, #ffffff);
    }

    .preview-module-grid span,
    .check-card,
    .keyword-fields {
        background: color-mix(in srgb, var(--surface-soft) 88%, var(--accent-soft));
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

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

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

.score-overview {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 18px;
}

.score-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.score-main { border: 2px solid var(--accent); }
.score-label { color: var(--muted); font-size: .9rem; text-transform: uppercase; }
.score-value { font-size: 1.65rem; font-weight: 800; margin-top: 4px; line-height: 1.15; }

.ui-meter {
    --meter-start: var(--signal-good);
    --meter-end: #7bcf8a;
    display: grid;
    gap: 7px;
}

.ui-meter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ui-meter-head strong,
.ui-meter-head small {
    display: block;
}

.ui-meter-head small {
    color: var(--muted);
    font-weight: 800;
}

.ui-meter-track {
    display: block;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: color-mix(in srgb, var(--line) 72%, var(--surface));
    box-shadow: inset 0 0 0 1px rgba(15, 26, 51, .05);
}

.ui-meter-track i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--meter-start), var(--meter-end));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 8px 18px rgba(15, 26, 51, .08);
}

.ui-meter-good {
    --meter-start: var(--signal-good);
    --meter-end: #8bca7f;
}

.ui-meter-needs_improvement,
.ui-meter-medium {
    --meter-start: #ff9f1a;
    --meter-end: #ffbb4d;
}

.ui-meter-poor {
    --meter-start: var(--signal-danger);
    --meter-end: #ee7d83;
}

.ui-meter-neutral,
.ui-meter-unavailable {
    --meter-start: #8f9bb8;
    --meter-end: #c8cfdd;
}

.ui-meter-compact {
    gap: 5px;
}

.ui-meter-compact .ui-meter-track {
    height: 8px;
}

.ui-meter-lg .ui-meter-track {
    height: 12px;
}

.status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: .75rem;
    font-weight: 700;
}
.status-good { background: rgba(0,204,102,.15); color: var(--success); }
.status-needs_improvement { background: rgba(255,170,50,.2); color: #ffaa32; }
.status-poor, .status-down { background: rgba(255,50,51,.14); color: var(--danger); }
.status-critical, .status-error { background: rgba(255,50,51,.14); color: var(--danger); }
.status-warning { background: rgba(255,170,50,.2); color: #ffaa32; }
.status-info, .status-neutral { background: rgba(91,106,144,.16); color: var(--muted); }
.status-up { background: rgba(0,204,102,.15); color: var(--success); }
.status-pending { background: rgba(255,170,50,.2); color: #ffaa32; }
.status-paid { background: rgba(0,204,102,.15); color: var(--success); }
.status-failed { background: rgba(255,50,51,.14); color: var(--danger); }
.status-refunded { background: rgba(91,106,144,.2); color: var(--muted); }

.finding-list { display: grid; gap: 10px; }
.finding {
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    background: var(--surface-soft);
}
.finding-warning { border-left-color: var(--warning); }
.finding-error, .finding-critical { border-left-color: var(--danger); }
.finding-info { border-left-color: var(--accent); }
.finding-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}
.table th, .table td {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 10px 8px;
    vertical-align: top;
}
.table th {
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    background: var(--surface-soft);
}
.table tbody tr:hover {
    background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

.table-compact {
    min-width: 960px;
}

.table-admin-users {
    min-width: 1180px;
}

.table td.actions-cell {
    min-width: 300px;
}

.dashboard-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(520px, 1fr);
    gap: 20px 22px;
    align-items: start;
}

.dashboard-overview-primary {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(220px, .86fr);
    gap: 18px;
    min-width: 0;
}

.dashboard-latest-main {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 20%, #fff) 0%, #fff 100%);
    box-shadow: var(--shadow-sm);
}

.dashboard-latest-trend {
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    background: color-mix(in srgb, var(--surface) 95%, var(--surface-soft));
}

.dashboard-latest-main h2,
.dashboard-latest-trend h2 {
    margin: 0;
}

.dashboard-latest-main > p,
.dashboard-latest-trend > p {
    margin: 0;
}

.dashboard-latest-trend p {
    margin: 0;
}

.dashboard-trend-lead {
    font-size: .87rem;
}

.dashboard-trend-empty {
    border: 1px dashed color-mix(in srgb, var(--accent) 28%, var(--line));
    border-radius: 12px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--accent-soft) 34%, var(--surface));
    color: var(--muted);
}

.dashboard-trend-list {
    display: grid;
    gap: 9px;
}

.dashboard-trend-item {
    display: grid;
    grid-template-columns: minmax(96px, auto) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.dashboard-trend-label {
    color: var(--muted);
    min-width: 0;
    font-size: .78rem;
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
    white-space: nowrap;
    overflow: hidden;
}

.dashboard-trend-label strong {
    color: var(--text);
    font-size: .94rem;
    white-space: nowrap;
}

.dashboard-trend-line {
    display: block;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
    background: color-mix(in srgb, var(--line) 72%, var(--surface));
    box-shadow: inset 0 0 0 1px rgba(15, 26, 51, .05);
}

.dashboard-trend-fill {
    --trend-width: 0%;
    --trend-color: var(--signal-good);
    display: block;
    width: var(--trend-width);
    min-width: 8%;
    max-width: 100%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--trend-color) 70%, #fff), var(--trend-color));
    transition: width .35s ease;
}

.dashboard-trend-fill-poor,
.dashboard-trend-fill-critical {
    --trend-color: var(--signal-danger);
}

.dashboard-trend-fill-weak,
.dashboard-trend-fill-needs_improvement {
    --trend-color: #ff9f1a;
}

.dashboard-trend-fill-solid,
.dashboard-trend-fill-good,
.dashboard-trend-fill {
    --trend-color: var(--signal-good);
}

.dashboard-latest-facts {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 8px;
    margin: 4px 0;
    min-width: 0;
}

.dashboard-fact-card {
    border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
    border-radius: 14px;
    padding: 11px 12px;
    background: color-mix(in srgb, var(--accent-soft) 20%, var(--surface));
    min-width: 0;
    overflow: hidden;
}

.dashboard-fact-card span,
.dashboard-fact-card strong {
    display: block;
}

.dashboard-fact-card span {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.dashboard-fact-card strong {
    margin-top: 4px;
    font-size: 1.2rem;
    line-height: 1;
}

.dashboard-latest-main h2,
.dashboard-url-cell {
    overflow-wrap: anywhere;
}

.dashboard-latest-main .status-good {
    border: 1px solid rgba(0, 148, 74, .18);
    background: #dff6e9;
    color: #08713d;
    font-weight: 850;
}

.dashboard-latest-main > h2,
.dashboard-latest-trend > .dashboard-trend-lead,
.dashboard-latest-trend > .dashboard-trend-empty {
    max-width: 100%;
}

.dashboard-action-row,
.dashboard-section-head {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-section-head {
    justify-content: space-between;
    margin-bottom: 12px;
}

.dashboard-latest-score {
    --dashboard-score-color: #718096;
    --dashboard-score-text: #34405c;
    --dashboard-score-soft: #f4f7fb;
    --dashboard-score-border: #d8e0ee;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

.dashboard-score-stack {
    display: grid;
    grid-template-columns: minmax(210px, .9fr) minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    align-content: start;
}

.dashboard-score-panel {
    border-color: color-mix(in srgb, var(--dashboard-score-color) 24%, var(--line));
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--dashboard-score-soft) 44%, transparent), transparent 58%),
        linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--dashboard-score-soft) 28%, #ffffff) 100%);
    box-shadow: 0 22px 44px -34px rgba(15, 26, 51, .42), var(--shadow-sm);
    padding: 20px 18px 18px;
    min-height: 100%;
}

.dashboard-score-critical {
    --dashboard-score-color: #ff3233;
    --dashboard-score-text: #8d1f2a;
    --dashboard-score-soft: var(--signal-danger-soft);
    --dashboard-score-border: #f1c6ca;
    --dashboard-ring-track: #eef2f7;
    --dashboard-ring-anchor: #ff3233;
}

.dashboard-score-solid {
    --dashboard-score-color: #ff9f1a;
    --dashboard-score-text: #7b4300;
    --dashboard-score-soft: #fff1de;
    --dashboard-score-border: #ffc97a;
    --dashboard-ring-track: #eef2f7;
    --dashboard-ring-anchor: #ff9f1a;
}

.dashboard-score-excellent {
    --dashboard-score-color: #00cc66;
    --dashboard-score-text: #08713d;
    --dashboard-score-soft: var(--signal-good-soft);
    --dashboard-score-border: #b9e6cc;
    --dashboard-ring-track: #e7eef0;
    --dashboard-ring-anchor: #00cc66;
}

.dashboard-score-circle {
    width: min(210px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    background:
        conic-gradient(from -90deg, var(--dashboard-score-color) 0 var(--dashboard-score, 0%), #dfe6f0 var(--dashboard-score, 0%) 100%);
    box-shadow:
        0 24px 48px -34px color-mix(in srgb, var(--dashboard-score-color) 58%, #0f1a33),
        inset 0 1px 0 rgba(255, 255, 255, .88);
}

.dashboard-score-circle::before {
    content: "";
    position: absolute;
    inset: 15px;
    border-radius: inherit;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--dashboard-score-soft) 62%, #ffffff) 100%);
    border: 1px solid color-mix(in srgb, var(--dashboard-score-color) 22%, #ffffff);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.dashboard-score-core {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 2px;
}

.dashboard-score-core strong {
    color: #172033;
    font-size: 3.4rem;
    font-weight: 900;
    line-height: .95;
    letter-spacing: 0;
}

.dashboard-score-core span {
    color: var(--muted);
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: 0;
}

.dashboard-score-badge {
    border: 1px solid var(--dashboard-score-border);
    background: color-mix(in srgb, var(--dashboard-score-soft) 76%, #ffffff);
    color: var(--dashboard-score-text);
    font-weight: 850;
}

.dashboard-score-zones {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    padding: 10px 12px 0;
}

.dashboard-score-scale-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.dashboard-score-scale-head strong {
    color: var(--text);
    font-size: .88rem;
    font-weight: 900;
}

.dashboard-score-scale-head span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 850;
}

.dashboard-score-zone-track {
    display: grid;
    grid-template-columns: 49% 40% 11%;
    position: relative;
    border-radius: 999px;
    height: 14px;
    margin-top: 2px;
    box-shadow: inset 0 0 0 1px rgba(15, 26, 51, .06);
}

.dashboard-score-zone {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.dashboard-score-zone:first-child {
    border-radius: 999px 0 0 999px;
}

.dashboard-score-zone:nth-child(3) {
    border-radius: 0 999px 999px 0;
}

.dashboard-score-zone.band-critical {
    background: var(--signal-danger);
}

.dashboard-score-zone.band-warning {
    background: #ff9f1a;
}

.dashboard-score-zone.band-good {
    background: var(--signal-good);
}

.dashboard-score-marker {
    position: absolute;
    left: clamp(0%, var(--score-position, 0%), 100%);
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 4px solid #172033;
    box-shadow: 0 8px 18px -12px rgba(15, 26, 51, .72);
    transform: translate(-50%, -50%);
}

.dashboard-score-marker span {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    border-radius: 999px;
    padding: 3px 7px;
    background: #172033;
    color: #ffffff;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.dashboard-score-zone-legend {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.dashboard-score-zone-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashboard-score-zone-legend span::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.dashboard-score-zone-legend span:nth-child(1)::before {
    background: var(--signal-danger);
}

.dashboard-score-zone-legend span:nth-child(2)::before {
    background: #ff9f1a;
}

.dashboard-subscore-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
}

.dashboard-subscore-card {
    --dashboard-score-color: #718096;
    --dashboard-score-text: #34405c;
    --dashboard-score-soft: #f4f7fb;
    --dashboard-score-border: #d8e0ee;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 13px;
    border: 1px solid color-mix(in srgb, var(--dashboard-score-color) 20%, var(--line));
    border-radius: 14px;
    padding: 12px 13px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--dashboard-score-soft) 16%, #fff) 0%, #fff 84%);
    box-shadow: 0 16px 28px -28px color-mix(in srgb, var(--dashboard-score-color) 58%, #0f1a33);
    min-width: 0;
    min-height: 106px;
    text-align: left;
}

.dashboard-subscore-ring {
    width: 82px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    flex: 0 0 auto;
    border: 4px solid var(--dashboard-ring-anchor, color-mix(in srgb, var(--dashboard-score-color) 62%, #fff));
    background: conic-gradient(from -90deg, var(--dashboard-score-color) 0 var(--dashboard-score, 0%), var(--dashboard-ring-track, #dfe5ee) var(--dashboard-score, 0%) 100%);
    box-shadow:
        0 14px 26px -18px color-mix(in srgb, var(--dashboard-score-color) 78%, #0f1a33),
        inset 0 0 0 3px rgba(255, 255, 255, .72);
}

.dashboard-subscore-ring::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--dashboard-score-soft) 20%, #ffffff) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.dashboard-subscore-card.dashboard-score-critical .dashboard-subscore-ring {
    background: conic-gradient(from -90deg, #ff3233 0 var(--dashboard-score, 0%), var(--dashboard-ring-track) var(--dashboard-score, 0%) 100%);
    box-shadow:
        0 0 0 2px rgba(255, 50, 51, .18),
        0 14px 26px -18px color-mix(in srgb, var(--dashboard-score-color) 84%, #0f1a33),
        inset 0 0 0 3px rgba(255, 255, 255, .72);
}

.dashboard-subscore-card.dashboard-score-solid .dashboard-subscore-ring {
    background: conic-gradient(from -90deg, #ff9f1a 0 var(--dashboard-score, 0%), var(--dashboard-ring-track) var(--dashboard-score, 0%) 100%);
    box-shadow:
        0 0 0 2px rgba(255, 159, 26, .18),
        0 14px 26px -18px rgba(255, 159, 26, .62),
        inset 0 0 0 3px rgba(255, 255, 255, .72);
}

.dashboard-subscore-card.dashboard-score-excellent .dashboard-subscore-ring {
    background: conic-gradient(from -90deg, #00cc66 0 var(--dashboard-score, 0%), var(--dashboard-ring-track) var(--dashboard-score, 0%) 100%);
    box-shadow:
        0 0 0 2px rgba(0, 204, 102, .18),
        0 14px 26px -18px rgba(0, 204, 102, .48),
        inset 0 0 0 3px rgba(255, 255, 255, .72);
}

.dashboard-subscore-ring::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--dashboard-score-color);
    border: 2px solid #ffffff;
    box-shadow: 0 6px 12px -10px color-mix(in srgb, var(--dashboard-score-color) 72%, #0f1a33);
    transform: translateX(-50%);
}

.dashboard-subscore-ring strong {
    position: relative;
    z-index: 1;
    color: #172033;
    font-size: 1.58rem;
    font-weight: 900;
    line-height: 1;
}

.dashboard-subscore-ring span {
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 850;
    margin-top: -8px;
}

.dashboard-subscore-copy {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    justify-items: start;
    order: 2;
}

.dashboard-subscore-ring {
    order: 1;
}

.dashboard-subscore-card h3 {
    margin: 0;
    color: var(--text);
    font-size: .95rem;
    line-height: 1.22;
}

.dashboard-subscore-card p {
    margin: 3px 0 7px;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.32;
    max-width: 22ch;
}

.dashboard-subscore-status {
    border: 1px solid var(--dashboard-score-border);
    background: color-mix(in srgb, var(--dashboard-score-soft) 62%, #fff);
    color: var(--dashboard-score-text);
    font-size: .68rem;
    font-weight: 850;
    justify-self: start;
}

.dashboard-subscore-empty {
    border: 1px dashed color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 14px;
    padding: 12px;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface-soft) 88%, var(--surface));
    font-weight: 750;
}

.dashboard-score-zone-legend span:nth-child(3)::before {
    background: var(--signal-good);
}

.dashboard-latest-score .score-value,
.dashboard-score-value {
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--text);
}

.dashboard-score-caption {
    margin: 0;
    color: var(--muted);
    max-width: 26ch;
    font-size: .82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.history-compare-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.history-compare-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
    border-radius: 6px;
    padding: 12px;
    background: color-mix(in srgb, var(--accent-soft) 30%, var(--surface));
    margin-bottom: 12px;
}

.history-compare-toolbar strong,
.history-compare-toolbar span {
    display: block;
}

.history-compare-actions {
    margin-top: 0;
}

.history-compare-table {
    min-width: 980px;
}

.history-compare-table th,
.history-compare-table td,
.dashboard-scan-table th,
.dashboard-scan-table td {
    padding-block: 8px;
}

.history-url-cell,
.dashboard-url-cell {
    max-width: 360px;
    overflow-wrap: anywhere;
}

.history-date-cell {
    white-space: nowrap;
}

.history-score-meter {
    min-width: 118px;
    max-width: 160px;
}

.history-action-cell,
.dashboard-actions-cell {
    min-width: 180px;
}

.history-action-cell .btn {
    margin: 2px 4px 2px 0;
}

.dashboard-scan-table {
    min-width: 980px;
}

.dashboard-scan-table .history-score-meter {
    max-width: 145px;
}

.history-compare-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.history-compare-radio span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
}

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

.promo-card {
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    border-radius: 8px;
    padding: 16px;
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 26%, var(--surface)) 0%, var(--surface) 78%);
    box-shadow: var(--shadow-sm);
}

.promo-card-primary {
    border-color: color-mix(in srgb, var(--success) 26%, var(--line));
    background: linear-gradient(160deg, color-mix(in srgb, rgba(0, 204, 102, .12) 54%, var(--surface)) 0%, var(--surface) 78%);
}

.promo-card span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.promo-card strong {
    display: block;
    margin-top: 5px;
    font-size: 1.02rem;
}

.promo-card p {
    margin: 7px 0 10px;
    color: var(--muted);
}

.promo-card a {
    font-weight: 800;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 18px;
    align-items: stretch;
}

.auth-intro-card,
.auth-panel {
    margin-bottom: 0;
}

.auth-intro-card {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--accent) 18%, var(--line));
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--accent-soft) 72%, transparent), transparent 34%),
        linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 18%, var(--surface)) 0%, var(--surface) 76%);
}

.auth-intro-card > * {
    position: relative;
}

.auth-benefit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.auth-benefit-list span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .72);
    color: color-mix(in srgb, var(--accent-2) 76%, var(--text));
    font-size: .88rem;
    font-weight: 800;
}

.auth-note-card {
    margin-top: 22px;
    border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .75);
}

.auth-note-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.form-panel {
    border-color: color-mix(in srgb, var(--accent) 14%, var(--line));
    box-shadow: var(--shadow-md);
}

.auth-panel {
    display: grid;
    align-content: center;
}

.auth-panel-head {
    margin-bottom: 10px;
}

.auth-panel-head h2,
.auth-panel-head p {
    margin: 0;
}

.auth-panel-head p {
    margin-top: 6px;
}

.auth-form {
    display: grid;
    gap: 4px;
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 14px;
    color: var(--muted);
}

.dashboard-status-grid .panel {
    margin-bottom: 0;
}

.analyze-start-hero {
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 32%, var(--surface)) 0%, var(--surface) 72%);
}

.analyze-start-hero .status {
    margin-bottom: 14px;
}

.analyze-start-hero .analyze-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.analyze-input-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    border-radius: 16px;
    padding: 8px;
    background: color-mix(in srgb, var(--surface) 86%, #fff);
    box-shadow: var(--shadow-sm);
}

.analyze-input-shell input {
    min-height: 52px;
    border: 0;
    background: transparent;
    padding-inline: 12px;
}

.analyze-input-shell input:focus {
    box-shadow: none;
}

.analyze-input-shell .btn {
    min-height: 52px;
    border-radius: 12px;
    padding-inline: 22px;
}

.analyze-note-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.analyze-note-grid p {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: color-mix(in srgb, var(--surface-soft) 84%, var(--surface));
}

.dashboard-status-grid {
    margin-bottom: 18px;
}

.dashboard-domain-card {
    display: grid;
    gap: 8px;
    align-content: start;
}

.dashboard-actions-cell {
    min-width: 180px;
}

.admin-action-stack {
    display: grid;
    gap: 8px;
}

.admin-action-note {
    color: var(--muted);
    font-size: .86rem;
}

.admin-action-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto;
    gap: 6px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
}

.admin-action-form-credit {
    grid-template-columns: 88px minmax(150px, 1fr) auto;
}

.admin-action-form-danger {
    grid-template-columns: 1fr;
}

.admin-action-form input,
.admin-action-form select {
    min-height: 36px;
    padding: 7px 9px;
}

.admin-action-form .btn {
    min-height: 36px;
}
.url-cell {
    overflow-wrap: anywhere;
    min-width: 240px;
}

.resource-table {
    display: table;
    font-size: .9rem;
}

.resource-filter-row,
.source-grid,
.audit-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 14px;
}

.resource-filter-row a,
.source-chip,
.audit-mini {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    background: var(--surface-soft);
}

.source-chip,
.audit-mini {
    display: grid;
    gap: 3px;
    min-width: 165px;
}

.source-chip small {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.35;
}

.source-enabled { border-color: rgba(0,204,102,.45); }
.source-disabled { opacity: .82; }

.report-method-box {
    display: grid;
    gap: 12px;
    margin: 12px 0 16px;
    padding: 16px;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
    border-left: 5px solid var(--accent);
    border-radius: 14px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 48%, #ffffff), #ffffff);
}

.report-method-box span {
    display: block;
    margin-bottom: 3px;
    color: color-mix(in srgb, var(--accent) 74%, var(--text));
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.report-method-box h3 {
    margin: 0;
    font-size: 1rem;
}

.report-method-box ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: color-mix(in srgb, var(--text) 80%, var(--muted));
}

.report-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.report-hero,
.status-hero {
    background: var(--surface);
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
}

.report-score-ring {
    width: 122px;
    height: 122px;
    border-radius: 999px;
    border: 10px solid var(--accent);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: var(--surface-soft);
    box-shadow: var(--shadow-sm);
}

.report-score-ring span {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.report-score-ring small {
    margin-top: -28px;
    color: var(--muted);
}

.internal-report-hero {
    --internal-score-color: #5b6a90;
    --internal-score-color-deep: #324266;
    --internal-score-soft: #edf1fa;
    --internal-score-soft-2: #dde6f7;
    --internal-score-border: #c8d3ea;
    --internal-score-glow: rgba(91, 106, 144, .2);
    border-color: color-mix(in srgb, var(--internal-score-color) 26%, var(--line));
    background: linear-gradient(135deg, color-mix(in srgb, var(--internal-score-soft) 60%, var(--surface)) 0%, var(--surface) 65%);
}

.internal-report-hero.internal-score-critical,
.score-main.internal-score-critical {
    --internal-score-color: #ff3233;
    --internal-score-color-deep: #ff3233;
    --internal-score-soft: #fcedee;
    --internal-score-soft-2: #f8dfe2;
    --internal-score-border: #efbcc1;
    --internal-score-glow: rgba(198, 61, 69, .24);
}

.internal-report-hero.internal-score-weak,
.score-main.internal-score-weak {
    --internal-score-color: #ffaa32;
    --internal-score-color-deep: #ffaa32;
    --internal-score-soft: #fff4e4;
    --internal-score-soft-2: #ffe3bf;
    --internal-score-border: rgba(255, 170, 50, .38);
    --internal-score-glow: rgba(255, 170, 50, .2);
}

.internal-report-hero.internal-score-solid,
.score-main.internal-score-solid {
    --internal-score-color: #ffaa32;
    --internal-score-color-deep: #ffaa32;
    --internal-score-soft: #fff4e4;
    --internal-score-soft-2: #ffe3bf;
    --internal-score-border: rgba(255, 170, 50, .36);
    --internal-score-glow: rgba(255, 170, 50, .18);
}

.internal-report-hero.internal-score-good,
.score-main.internal-score-good {
    --internal-score-color: #00cc66;
    --internal-score-color-deep: #00cc66;
    --internal-score-soft: #f8fafc;
    --internal-score-soft-2: #eef2ff;
    --internal-score-border: rgba(0, 204, 102, .32);
    --internal-score-glow: rgba(15, 23, 42, .14);
}

.internal-report-hero.internal-score-excellent,
.score-main.internal-score-excellent {
    --internal-score-color: #00cc66;
    --internal-score-color-deep: #00cc66;
    --internal-score-soft: #f8fafc;
    --internal-score-soft-2: #eef2ff;
    --internal-score-border: rgba(0, 204, 102, .32);
    --internal-score-glow: rgba(15, 23, 42, .14);
}

.internal-score-wrap {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.internal-report-hero .report-score-ring {
    width: 150px;
    height: 150px;
    position: relative;
    border: 0;
    background: radial-gradient(circle at 28% 24%, #fff 0%, var(--internal-score-soft) 54%, var(--internal-score-soft-2) 100%);
    box-shadow: 0 14px 30px -18px var(--internal-score-glow), var(--shadow-sm);
    isolation: isolate;
}

.internal-report-hero .report-score-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 12px solid var(--internal-score-color);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--internal-score-color) 44%, #fff);
}

.internal-report-hero .report-score-ring span {
    color: var(--internal-score-color-deep);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
}

.internal-report-hero .report-score-ring small {
    color: color-mix(in srgb, var(--internal-score-color-deep) 72%, var(--muted));
}

.internal-score-badge {
    border: 1px solid var(--internal-score-border);
    background: color-mix(in srgb, var(--internal-score-soft) 74%, #fff);
    color: var(--internal-score-color-deep);
}

.score-main[class*="internal-score-"] {
    border-color: var(--internal-score-border);
    background: linear-gradient(160deg, color-mix(in srgb, var(--internal-score-soft) 52%, #fff) 0%, var(--surface) 72%);
}

.score-main[class*="internal-score-"] .score-value {
    color: var(--internal-score-color-deep);
}

.internal-report-page .panel {
    margin-bottom: 16px;
}

.audit-kicker {
    color: var(--accent);
    font-size: .78rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.audit-hero-main {
    flex: 1 1 620px;
    min-width: min(620px, 100%);
}

.audit-hero-main h1 {
    overflow-wrap: anywhere;
}

.audit-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.internal-report-page .chip {
    background: color-mix(in srgb, var(--surface) 72%, var(--internal-score-soft));
    border-color: color-mix(in srgb, var(--line) 72%, var(--internal-score-color));
    color: color-mix(in srgb, var(--text) 82%, var(--internal-score-color-deep));
}

.audit-interpretation {
    font-size: 1.08rem;
    line-height: 1.45;
    margin: 8px 0 10px;
    color: color-mix(in srgb, var(--text) 84%, var(--internal-score-color-deep));
    max-width: 820px;
}

.executive-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.executive-kpi-card {
    display: grid;
    gap: 8px;
    align-content: start;
    min-height: 136px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.executive-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.status-tone-good {
    border-color: color-mix(in srgb, var(--success) 38%, var(--line));
    background: linear-gradient(165deg, color-mix(in srgb, rgba(0, 204, 102, .11) 65%, var(--surface)) 0%, var(--surface) 72%);
}

.status-tone-needs_improvement {
    border-color: color-mix(in srgb, var(--warning) 34%, var(--line));
    background: linear-gradient(165deg, color-mix(in srgb, rgba(255, 170, 50, .11) 66%, var(--surface)) 0%, var(--surface) 72%);
}

.status-tone-poor {
    border-color: color-mix(in srgb, var(--danger) 36%, var(--line));
    background: linear-gradient(165deg, color-mix(in srgb, rgba(255, 50, 51, .11) 64%, var(--surface)) 0%, var(--surface) 72%);
}

.status-tone-neutral {
    border-color: color-mix(in srgb, var(--line) 78%, var(--accent));
    background: linear-gradient(165deg, color-mix(in srgb, var(--accent-soft) 26%, var(--surface)) 0%, var(--surface) 72%);
}

.executive-insight-grid {
    align-items: stretch;
}

.insight-card {
    margin-bottom: 0;
    min-height: 100%;
}

.insight-positive {
    border-color: color-mix(in srgb, var(--success) 32%, var(--line));
    background: linear-gradient(165deg, color-mix(in srgb, rgba(0, 204, 102, .09) 52%, var(--surface)) 0%, var(--surface) 72%);
}

.insight-attention {
    border-color: color-mix(in srgb, var(--danger) 32%, var(--line));
    background: linear-gradient(165deg, color-mix(in srgb, rgba(255, 50, 51, .08) 52%, var(--surface)) 0%, var(--surface) 72%);
}

.insight-actions {
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    background: linear-gradient(165deg, color-mix(in srgb, var(--accent-soft) 36%, var(--surface)) 0%, var(--surface) 72%);
}

.insight-list {
    margin: 0;
    padding-left: 18px;
}

.insight-list li {
    margin-bottom: 8px;
}

.priority-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 12px;
}

.priority-list li strong {
    display: inline-block;
    margin-right: 6px;
}

.priority-list li p {
    margin: 6px 0 0;
}

.pagespeed-hub {
    border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 38%, var(--surface)) 0%, var(--surface) 72%);
}

.pagespeed-hub-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 10px 0 14px;
}

.pagespeed-hub-score-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    background: color-mix(in srgb, var(--surface) 86%, #fff);
}

.pagespeed-hub-score-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.pagespeed-hub-score-head h3 {
    font-size: 1.18rem;
    margin: 0;
}

.pagespeed-hub-score-value {
    margin-top: 8px;
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}

.pagespeed-hub-score-card,
.vitals-metric-card,
.executive-kpi-card {
    min-width: 0;
}

.vitals-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 8px 0 14px;
}

.vitals-metric-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: var(--surface);
    min-height: 128px;
}

.vitals-metric-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.vitals-metric-head h3 {
    margin: 0;
}

.vitals-metric-value {
    margin: 0 0 6px;
    font-size: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
}

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

.performance-lever-item {
    margin: 0;
}

.tech-detail-collapsible {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--surface-soft);
}

.tech-detail-collapsible summary {
    cursor: pointer;
    font-weight: 700;
    margin-bottom: 8px;
}

.pagespeed-snapshot {
    border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent-soft) 32%, var(--surface));
    padding: 12px;
    margin: 10px 0 14px;
}

.pagespeed-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.pagespeed-score-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 10px;
    min-width: 0;
}

.pagespeed-score-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.pagespeed-score-value {
    margin-top: 6px;
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
}

.pagespeed-score-meta {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: .9rem;
}

.pagespeed-score-meta li {
    overflow-wrap: anywhere;
}

/* Internal report visual pass (phase 2) */
.internal-report-page {
    position: relative;
}

.internal-report-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 7% -12%, rgba(20, 87, 217, .08) 0%, transparent 42%),
        radial-gradient(circle at 95% 5%, rgba(33, 143, 70, .06) 0%, transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(246, 250, 255, .38) 100%);
    z-index: -1;
}

.internal-report-page .report-action-bar {
    position: sticky;
    top: 10px;
    z-index: 36;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, var(--accent-soft));
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 18px 34px -30px rgba(15, 26, 51, .38);
    backdrop-filter: blur(12px);
}

.internal-report-page .report-back-button {
    flex: 0 1 auto;
    white-space: normal;
}

.internal-report-page .report-menu {
    position: relative;
    flex: 0 0 auto;
}

.internal-report-page .report-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
    border-radius: 999px;
    color: var(--accent-2);
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    font-size: .88rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
}

.internal-report-page .report-menu summary::-webkit-details-marker {
    display: none;
}

.internal-report-page .report-menu summary:hover,
.internal-report-page .report-menu summary:focus-visible {
    border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
    outline: none;
}

.internal-report-page .report-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 6px;
    width: min(310px, calc(100vw - 32px));
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--line) 76%, var(--accent-soft));
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 24px 54px -30px rgba(15, 26, 51, .46);
}

.internal-report-page .report-menu-panel a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 850;
    text-decoration: none;
}

.internal-report-page .report-menu-panel a:hover,
.internal-report-page .report-menu-panel a:focus-visible {
    color: var(--accent-2);
    background: color-mix(in srgb, var(--accent-soft) 58%, #ffffff);
    outline: none;
}

.internal-report-page .panel {
    border-radius: 16px;
    border-color: #d7deeb;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow: 0 16px 40px -34px rgba(15, 26, 51, .42), 0 3px 10px -8px rgba(15, 26, 51, .18);
    padding: 22px;
}

.internal-report-page h2 {
    font-size: clamp(1.35rem, 1.1vw + 1rem, 1.85rem);
    margin-bottom: 10px;
}

.internal-report-page .muted {
    color: color-mix(in srgb, var(--muted) 88%, #324266);
}

.internal-report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(20px, 3vw, 32px);
    align-items: center;
    border-width: 1px;
    border-radius: 22px;
    padding: clamp(24px, 2.8vw, 38px);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 26px 52px -36px var(--internal-score-glow),
        0 8px 22px -16px rgba(15, 26, 51, .48),
        inset 0 1px 0 rgba(255, 255, 255, .84);
}

.internal-report-hero::before {
    content: "";
    position: absolute;
    width: min(46vw, 580px);
    height: min(46vw, 580px);
    border-radius: 50%;
    right: -28%;
    top: -58%;
    background: radial-gradient(circle, color-mix(in srgb, var(--internal-score-color) 20%, transparent) 0%, transparent 72%);
    pointer-events: none;
}

.internal-report-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, .56) 0%, transparent 42%),
        repeating-linear-gradient(120deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 10px);
    opacity: .45;
    pointer-events: none;
}

.internal-report-hero > * {
    position: relative;
    z-index: 1;
}

.internal-report-hero > p.muted {
    grid-column: 1 / -1;
    margin-top: -4px;
}

.audit-kicker {
    font-size: .76rem;
    letter-spacing: .12em;
    color: color-mix(in srgb, var(--internal-score-color-deep) 62%, var(--accent));
}

.audit-hero-main h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 3.5vw, 3.55rem);
    line-height: 1.05;
    text-wrap: balance;
}

.audit-meta-row {
    gap: 10px;
    margin-bottom: 14px;
}

.internal-report-page .chip {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .95rem;
    font-weight: 700;
    background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 82%, #fff), color-mix(in srgb, var(--surface) 54%, var(--internal-score-soft)));
    border-color: color-mix(in srgb, var(--line) 64%, var(--internal-score-border));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.audit-interpretation {
    font-size: clamp(1.2rem, 1vw + .8rem, 1.65rem);
    font-weight: 600;
    margin: 12px 0;
    max-width: 860px;
}

.internal-score-wrap {
    justify-items: center;
    align-content: center;
    gap: 12px;
}

.internal-report-hero .report-score-ring {
    --score-angle: calc(var(--score, 0) * 3.6deg);
    width: 190px;
    height: 190px;
    position: relative;
    border: 0;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 30% 24%, #ffffff 0%, color-mix(in srgb, var(--internal-score-soft) 58%, #fff) 42%, color-mix(in srgb, var(--internal-score-soft-2) 94%, #fff) 100%);
    box-shadow:
        0 28px 48px -32px var(--internal-score-glow),
        0 12px 24px -20px rgba(15, 26, 51, .56),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    isolation: isolate;
}

.internal-report-hero .report-score-ring::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: conic-gradient(
        from -90deg,
        color-mix(in srgb, var(--internal-score-color-deep) 86%, #000) 0deg,
        color-mix(in srgb, var(--internal-score-color) 92%, #fff) var(--score-angle),
        rgba(156, 170, 194, .22) var(--score-angle),
        rgba(156, 170, 194, .14) 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 20px), #000 calc(100% - 19px));
    z-index: 1;
}

.internal-report-hero .report-score-ring::after {
    content: "";
    position: absolute;
    inset: 21px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 20%, rgba(255, 255, 255, .98) 0%, color-mix(in srgb, var(--internal-score-soft) 45%, #fff) 58%, color-mix(in srgb, var(--internal-score-soft-2) 90%, #fff) 100%);
    border: 1px solid color-mix(in srgb, var(--internal-score-color) 26%, #fff);
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, .86);
    z-index: 2;
}

.internal-report-hero .report-score-ring span,
.internal-report-hero .report-score-ring small {
    position: relative;
    z-index: 3;
}

.internal-report-hero .report-score-ring span {
    font-size: clamp(2.7rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: color-mix(in srgb, var(--internal-score-color-deep) 88%, #13223f);
    text-shadow: 0 1px 0 rgba(255, 255, 255, .68);
}

.internal-report-hero .report-score-ring small {
    margin-top: -42px;
    font-size: .96rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.internal-score-badge {
    border-radius: 999px;
    padding: 7px 16px;
    font-size: .95rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 6px 14px -12px var(--internal-score-glow);
}

.executive-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(186px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.executive-kpi-card {
    --tone-color: #8ca0bf;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border-width: 1px;
    min-height: 164px;
    padding: 16px 16px 14px 18px;
    gap: 10px;
    box-shadow: 0 14px 24px -24px rgba(15, 26, 51, .58);
}

.executive-kpi-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tone-color) 86%, #fff), color-mix(in srgb, var(--tone-color) 66%, #000));
}

.executive-kpi-card::after {
    content: "";
    position: absolute;
    right: -30%;
    top: -46%;
    width: 70%;
    height: 110%;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--tone-color) 12%, transparent) 0%, transparent 72%);
    pointer-events: none;
}

.executive-kpi-card .score-label {
    font-size: .78rem;
    letter-spacing: .07em;
    font-weight: 800;
}

.executive-kpi-card .score-value {
    font-size: clamp(2rem, 2vw + 1.2rem, 2.9rem);
    line-height: 1;
    letter-spacing: -.02em;
}

.executive-kpi-card .status {
    margin-top: auto;
    width: max-content;
    font-size: .85rem;
    padding: 5px 12px;
}

.status-tone-good {
    --tone-color: #2a9f59;
}

.status-tone-needs_improvement {
    --tone-color: #ba8211;
}

.status-tone-poor {
    --tone-color: #cb4346;
}

.status-tone-neutral {
    --tone-color: #6d83ad;
}

.executive-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.executive-insight-grid .insight-actions {
    grid-column: 1 / -1;
}

.insight-card {
    border-radius: 14px;
    padding: 18px;
    min-height: 0;
}

.insight-card h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.insight-list,
.priority-list {
    margin: 0;
    padding: 0;
}

.insight-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.insight-list li {
    margin: 0;
    padding-left: 16px;
    position: relative;
}

.insight-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .56em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.insight-positive li::before {
    background: color-mix(in srgb, var(--success) 86%, #fff);
    box-shadow: 0 0 0 4px rgba(0, 204, 102, .12);
}

.insight-attention li::before {
    background: color-mix(in srgb, var(--danger) 84%, #fff);
    box-shadow: 0 0 0 4px rgba(255, 50, 51, .12);
}

.priority-list {
    list-style: none;
    counter-reset: priority-item;
    display: grid;
    gap: 10px;
}

.priority-list li {
    counter-increment: priority-item;
    position: relative;
    padding: 10px 12px 10px 44px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, var(--accent));
    border-radius: 11px;
    background: color-mix(in srgb, var(--surface) 74%, var(--accent-soft));
}

.priority-list li::before {
    content: counter(priority-item);
    position: absolute;
    left: 12px;
    top: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 800;
    color: #fff;
    background: color-mix(in srgb, var(--accent) 74%, #1b3f8e);
}

.pagespeed-hub {
    border-radius: 18px;
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 52%, #fff) 0%, #ffffff 45%, #ffffff 100%);
    box-shadow: 0 28px 52px -38px rgba(20, 87, 217, .28), 0 10px 24px -22px rgba(15, 26, 51, .46);
}

.pagespeed-hub > h2 {
    margin-bottom: 8px;
}

.pagespeed-hub > .muted:first-of-type {
    font-size: 1.02rem;
    margin-bottom: 14px;
}

.pagespeed-hub-score-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    margin: 12px 0 16px;
}

.pagespeed-hub-score-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    border-color: color-mix(in srgb, var(--line) 78%, var(--accent));
    padding: 18px;
    background: linear-gradient(158deg, rgba(255, 255, 255, .98) 0%, color-mix(in srgb, var(--surface-soft) 78%, #fff) 100%);
    box-shadow: 0 14px 28px -24px rgba(15, 26, 51, .5);
}

.pagespeed-hub-score-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tone-color) 84%, #fff), color-mix(in srgb, var(--tone-color) 64%, #000));
}

.pagespeed-hub-score-head h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.pagespeed-hub-score-value {
    font-size: clamp(2.6rem, 3.2vw, 3.5rem);
    letter-spacing: -.03em;
    margin: 10px 0 4px;
}

.pagespeed-score-meta {
    list-style: none;
    padding-left: 0;
    margin-top: 12px;
    display: grid;
    gap: 7px;
}

.pagespeed-score-meta li {
    padding-left: 16px;
    position: relative;
}

.pagespeed-score-meta li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--tone-color) 78%, #fff);
    position: absolute;
    left: 0;
    top: .58em;
}

.vitals-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
    gap: 12px;
    margin: 10px 0 16px;
}

.vitals-metric-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border-color: color-mix(in srgb, var(--line) 80%, var(--accent));
    min-height: 152px;
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.vitals-metric-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--tone-color) 78%, #fff), color-mix(in srgb, var(--tone-color) 60%, #000));
}

.vitals-metric-head h3 {
    font-size: 1.18rem;
    font-weight: 700;
}

.vitals-metric-value {
    font-size: clamp(1.8rem, 1.4vw + 1rem, 2.3rem);
    margin-top: 2px;
    letter-spacing: -.02em;
}

.pagespeed-hub .performance-lever-list {
    gap: 12px;
}

.pagespeed-hub .performance-lever-item {
    border-radius: 12px;
    border-width: 1px;
    background: linear-gradient(178deg, rgba(255, 255, 255, .98) 0%, color-mix(in srgb, var(--surface-soft) 74%, #fff) 100%);
    box-shadow: 0 10px 22px -20px rgba(15, 26, 51, .56);
}

.pagespeed-hub .performance-lever-item.finding-warning {
    --finding-accent: #ffaa32;
    border-color: color-mix(in srgb, #ffaa32 22%, #d8e1ef);
}

.pagespeed-hub .performance-lever-item.finding-warning::before {
    background: #ffaa32;
}

.pagespeed-hub .performance-lever-item.finding-critical,
.pagespeed-hub .performance-lever-item.finding-error {
    --finding-accent: #ff3233;
}

.pagespeed-hub .performance-lever-item.finding-critical::before,
.pagespeed-hub .performance-lever-item.finding-error::before {
    background: #ff3233;
}

.pagespeed-hub .performance-lever-item.finding-good::before {
    background: #00cc66;
}

.pagespeed-hub .performance-lever-item p {
    margin: 8px 0 0;
}

.pagespeed-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 0 10px;
}

.pagespeed-section-head h3 {
    margin: 0 0 3px;
    font-size: 1.05rem;
}

.pagespeed-compact-summary {
    margin: 16px 0 18px;
}

.pagespeed-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 10px;
}

.pagespeed-summary-card {
    position: relative;
    min-height: 106px;
    padding: 13px 14px;
    border: 1px solid color-mix(in srgb, var(--line) 80%, var(--accent));
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, #f8fbff 100%);
    box-shadow: 0 10px 22px -22px rgba(15, 26, 51, .45);
}

.pagespeed-summary-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 4px;
    border-radius: 0 999px 999px 0;
    background: color-mix(in srgb, var(--tone-color, var(--accent)) 72%, #fff);
}

.pagespeed-summary-card span,
.pagespeed-summary-card small {
    display: block;
}

.pagespeed-summary-card span {
    color: var(--muted);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pagespeed-summary-card strong {
    display: block;
    margin-top: 7px;
    color: var(--text);
    font-size: clamp(1.35rem, 1.2vw + .95rem, 1.95rem);
    line-height: 1;
}

.pagespeed-summary-card small {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.35;
}

.pagespeed-summary-card-warning {
    --tone-color: var(--warning);
}

.pagespeed-summary-card-neutral {
    --tone-color: var(--accent);
}

.lighthouse-audit-card .finding-head {
    gap: 12px;
}

.lighthouse-audit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.lighthouse-audit-meta > span,
.lighthouse-metric-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, var(--accent));
    color: color-mix(in srgb, var(--muted) 80%, var(--text));
    background: color-mix(in srgb, var(--surface-soft) 78%, #fff);
    font-size: .78rem;
    font-weight: 850;
}

.lighthouse-metric-tag {
    color: #255ad4;
    background: color-mix(in srgb, var(--accent-soft) 72%, #fff);
}

.audit-resource-details {
    margin-top: 10px;
}

.audit-resource-details summary {
    cursor: pointer;
    color: #255ad4;
    font-weight: 850;
}

.audit-resource-list {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding-left: 16px;
}

.audit-resource-url {
    overflow-wrap: anywhere;
    word-break: break-word;
    color: color-mix(in srgb, var(--text) 86%, var(--accent));
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .84rem;
}

.pagespeed-diagnostics {
    margin-top: 18px;
}

.pagespeed-diagnostic-list {
    margin-bottom: 10px;
}

.pagespeed-audit-details {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent));
    border-radius: 13px;
    background: color-mix(in srgb, var(--surface-soft) 76%, #fff);
}

.pagespeed-audit-details > summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
}

.pagespeed-audit-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pagespeed-audit-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid color-mix(in srgb, var(--success) 24%, var(--line));
    border-radius: 999px;
    color: color-mix(in srgb, var(--success) 76%, var(--text));
    background: color-mix(in srgb, var(--success) 10%, #fff);
    font-size: .82rem;
    font-weight: 850;
}

.pagespeed-audit-chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

.internal-report-page .resources-panel .resource-filter-row a {
    border-radius: 999px;
    padding: 8px 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.internal-report-page .resources-panel .resource-filter-row a.is-active,
.internal-report-page .resources-panel .resource-filter-row a[aria-pressed="true"] {
    color: color-mix(in srgb, var(--accent) 78%, #0f172a);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    background: color-mix(in srgb, var(--accent) 12%, #fff);
}

.internal-report-page .resources-panel .resource-filter-row a:hover {
    background: var(--accent-soft);
}

.internal-report-page .table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d7e0ef;
    border-radius: 12px;
    overflow: hidden;
}

.internal-report-page .table th {
    background: #f4f7ff;
    border-bottom-color: #d4ddec;
}

.internal-report-page .table td {
    border-bottom-color: #dbe3f0;
}

.internal-report-page .table tbody tr:nth-child(2n) {
    background: color-mix(in srgb, var(--surface) 82%, #f7faff);
}

.internal-report-page .table tbody tr:hover {
    background: color-mix(in srgb, var(--accent-soft) 44%, #f4f8ff);
}

.internal-report-page .recommendations-panel > h2,
.internal-report-page .findings-panel > h2 {
    margin-bottom: 12px;
}

.internal-report-page .finding {
    --finding-accent: #9eb0cd;
    border: 1px solid #d8e1ef;
    border-left: 0;
    border-radius: 12px;
    padding: 16px 18px 14px;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98) 0%, rgba(248, 250, 255, .96) 100%);
    box-shadow: 0 12px 22px -22px rgba(15, 26, 51, .45);
}

.internal-report-page .finding::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--finding-accent) 84%, #fff), color-mix(in srgb, var(--finding-accent) 64%, #000));
}

.internal-report-page .finding-info {
    --finding-accent: #3b73d5;
}

.internal-report-page .finding-warning {
    --finding-accent: #ffaa32;
}

.internal-report-page .finding-error,
.internal-report-page .finding-critical {
    --finding-accent: #ff3233;
}

.internal-report-page .finding-head h3 {
    margin: 0;
    font-size: 1.22rem;
}

.internal-report-page .finding p {
    margin: 9px 0 0;
}

.internal-report-page .finding details {
    margin-top: 10px;
}

.internal-report-page .recommendation-check-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 14px;
}

.internal-report-page .recommendation-check-stat {
    --recommendation-tone: #3b73d5;
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--recommendation-tone) 32%, #d8e1ef);
    border-left: 5px solid var(--recommendation-tone);
    border-radius: 14px;
    background: color-mix(in srgb, var(--recommendation-tone) 8%, #ffffff);
}

.internal-report-page .recommendation-check-stat span,
.internal-report-page .recommendation-next-steps h3,
.internal-report-page .recommendation-help-grid section > span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.internal-report-page .recommendation-check-stat strong {
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
}

.internal-report-page .recommendation-check-stat small {
    color: color-mix(in srgb, var(--text) 74%, var(--muted));
    font-weight: 800;
}

.internal-report-page .recommendation-check-stat-urgent {
    --recommendation-tone: #ff3233;
}

.internal-report-page .recommendation-check-stat-review {
    --recommendation-tone: #ffaa32;
}

.internal-report-page .recommendation-check-stat-optional {
    --recommendation-tone: #3b73d5;
}

.internal-report-page .recommendation-next-steps {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid #d8e1ef;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 255, .94));
}

.internal-report-page .recommendation-next-steps h3 {
    margin: 0 0 10px;
}

.internal-report-page .recommendation-next-steps ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.internal-report-page .recommendation-next-step {
    --recommendation-tone: #3b73d5;
}

.internal-report-page .recommendation-next-step-urgent {
    --recommendation-tone: #ff3233;
}

.internal-report-page .recommendation-next-step-review {
    --recommendation-tone: #ffaa32;
}

.internal-report-page .recommendation-next-step-good {
    --recommendation-tone: #00cc66;
}

.internal-report-page .recommendation-next-step a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--recommendation-tone) 24%, #d8e1ef);
    border-radius: 12px;
    background: color-mix(in srgb, var(--recommendation-tone) 7%, #ffffff);
    color: var(--text);
    text-decoration: none;
}

.internal-report-page .recommendation-next-step a:hover,
.internal-report-page .recommendation-next-step a:focus-visible {
    border-color: color-mix(in srgb, var(--recommendation-tone) 56%, #d8e1ef);
    transform: translateY(-1px);
}

.internal-report-page .recommendation-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--recommendation-tone);
    color: #fff;
    font-weight: 900;
    font-size: .78rem;
}

.internal-report-page .recommendation-step-copy {
    display: grid;
    gap: 3px;
}

.internal-report-page .recommendation-step-copy strong {
    color: var(--text);
}

.internal-report-page .recommendation-step-copy small,
.internal-report-page .recommendation-step-copy span {
    color: color-mix(in srgb, var(--text) 76%, var(--muted));
    font-weight: 700;
}

.internal-report-page .recommendation-accordion-list {
    display: grid;
    gap: 8px;
}

.internal-report-page .recommendation-check {
    --recommendation-tone: #3b73d5;
    --recommendation-soft: color-mix(in srgb, var(--recommendation-tone) 7%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--recommendation-tone) 24%, #d8e1ef);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .99), rgba(248, 250, 255, .96));
    box-shadow: 0 12px 22px -24px rgba(15, 26, 51, .45);
    overflow: clip;
}

.internal-report-page .recommendation-check-urgent {
    --recommendation-tone: #ff3233;
}

.internal-report-page .recommendation-check-review {
    --recommendation-tone: #ffaa32;
}

.internal-report-page .recommendation-check-optional {
    --recommendation-tone: #3b73d5;
}

.internal-report-page .recommendation-check-good {
    --recommendation-tone: #00cc66;
}

.internal-report-page .recommendation-check-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 13px 14px;
    cursor: pointer;
    list-style: none;
}

.internal-report-page .recommendation-check-row::-webkit-details-marker {
    display: none;
}

.internal-report-page .recommendation-check-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--recommendation-tone) 78%, #ffffff);
    background: color-mix(in srgb, var(--recommendation-tone) 18%, #ffffff);
    box-shadow: inset 0 0 0 4px #fff;
}

.internal-report-page .recommendation-check-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.internal-report-page .recommendation-check-title {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

.internal-report-page .recommendation-check-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: color-mix(in srgb, var(--text) 68%, var(--muted));
    font-size: .78rem;
    font-weight: 800;
}

.internal-report-page .recommendation-check-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(91, 106, 144, .09);
}

.internal-report-page .recommendation-check-status {
    padding: 5px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--recommendation-tone) 16%, #ffffff);
    color: color-mix(in srgb, var(--recommendation-tone) 84%, #0f172a);
    font-size: .75rem;
    font-weight: 900;
    white-space: nowrap;
}

.internal-report-page .recommendation-check-caret {
    width: 10px;
    height: 10px;
    border-right: 2px solid color-mix(in srgb, var(--text) 58%, var(--muted));
    border-bottom: 2px solid color-mix(in srgb, var(--text) 58%, var(--muted));
    transform: rotate(45deg);
    transition: transform .16s ease;
}

.internal-report-page .recommendation-check[open] .recommendation-check-caret {
    transform: rotate(225deg);
}

.internal-report-page .recommendation-check[open] .recommendation-check-row {
    border-bottom: 1px solid color-mix(in srgb, var(--recommendation-tone) 20%, #d8e1ef);
    background: var(--recommendation-soft);
}

.internal-report-page .recommendation-check-help {
    margin: 0 14px 14px 48px;
    padding: 14px 16px;
    border-left: 5px solid var(--recommendation-tone);
    border-radius: 0 14px 14px 0;
    background: color-mix(in srgb, var(--recommendation-tone) 6%, #f8fbff);
}

.internal-report-page .recommendation-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.internal-report-page .recommendation-help-grid section {
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--recommendation-tone) 16%, #d8e1ef);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
}

.internal-report-page .recommendation-help-grid p {
    margin: 0;
    color: color-mix(in srgb, var(--text) 82%, #2a3e64);
}

.internal-report-page .recommendation-help-work {
    grid-column: 1 / -1;
}

.internal-report-page .recommendation-work-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.internal-report-page .recommendation-work-chips span {
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--recommendation-tone) 12%, #ffffff);
    color: color-mix(in srgb, var(--recommendation-tone) 78%, #17213a);
    font-size: .78rem;
    font-weight: 900;
}

.internal-report-page .recommendation-affected-url {
    margin: 12px 0 0;
    color: color-mix(in srgb, var(--text) 76%, var(--muted));
    overflow-wrap: anywhere;
}

.internal-report-page .recommendation-evidence {
    margin-top: 12px;
}

.internal-report-page .privacy-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 14px;
}

.internal-report-page .privacy-summary-card {
    --privacy-tone: #3b73d5;
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 128px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--privacy-tone) 28%, #d8e1ef);
    border-left: 5px solid var(--privacy-tone);
    border-radius: 15px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--privacy-tone) 8%, #ffffff), #ffffff);
    box-shadow: 0 14px 28px -28px rgba(15, 26, 51, .42);
}

.internal-report-page .privacy-summary-card-good,
.internal-report-page .privacy-state-good {
    --privacy-tone: #00cc66;
}

.internal-report-page .privacy-summary-card-review,
.internal-report-page .privacy-state-review {
    --privacy-tone: #ffaa32;
}

.internal-report-page .privacy-summary-card-urgent,
.internal-report-page .privacy-state-urgent {
    --privacy-tone: #ff3233;
}

.internal-report-page .privacy-summary-card-optional {
    --privacy-tone: #3b73d5;
}

.internal-report-page .privacy-state-optional {
    --privacy-tone: #94a3b8;
}

.internal-report-page .security-trust-panel {
    --security-tone-good: #00cc66;
    --security-tone-review: #ffaa32;
    --security-tone-urgent: #ff3233;
    --security-tone-info: #64748b;
    --security-tone-blue: #3b82f6;
}

.internal-report-page .security-trust-panel .privacy-summary-card-good,
.internal-report-page .security-trust-panel .privacy-state-good,
.internal-report-page .security-trust-panel .recommendation-check-good {
    --privacy-tone: var(--security-tone-good);
    --recommendation-tone: var(--security-tone-good);
}

.internal-report-page .security-trust-panel .privacy-summary-card-review,
.internal-report-page .security-trust-panel .privacy-state-review,
.internal-report-page .security-trust-panel .recommendation-check-review {
    --privacy-tone: var(--security-tone-review);
    --recommendation-tone: var(--security-tone-review);
}

.internal-report-page .security-trust-panel .privacy-summary-card-urgent,
.internal-report-page .security-trust-panel .privacy-state-urgent,
.internal-report-page .security-trust-panel .recommendation-check-urgent {
    --privacy-tone: var(--security-tone-urgent);
    --recommendation-tone: var(--security-tone-urgent);
}

.internal-report-page .security-trust-panel .privacy-summary-card-optional,
.internal-report-page .security-trust-panel .privacy-state-optional,
.internal-report-page .security-trust-panel .recommendation-check-optional {
    --privacy-tone: var(--security-tone-info);
    --recommendation-tone: var(--security-tone-blue);
}

.internal-report-page .security-trust-panel .area-recommendation-teaser.finding-warning {
    --finding-accent: var(--security-tone-review);
}

.internal-report-page .security-trust-panel .area-recommendation-teaser.finding-error,
.internal-report-page .security-trust-panel .area-recommendation-teaser.finding-critical {
    --finding-accent: var(--security-tone-urgent);
}

.internal-report-page .security-trust-panel .area-recommendation-teaser.finding-info {
    --finding-accent: var(--security-tone-blue);
}

.internal-report-page .security-trust-panel .status-warning,
.internal-report-page .security-trust-panel .status-needs_improvement {
    color: #ffaa32;
    background: rgba(255, 170, 50, .14);
}

.internal-report-page .security-trust-panel .status-critical,
.internal-report-page .security-trust-panel .status-error,
.internal-report-page .security-trust-panel .status-poor {
    color: #ff3233;
    background: rgba(255, 50, 51, .14);
}

.internal-report-page .security-trust-panel .status-good {
    color: #00cc66;
    background: rgba(0, 204, 102, .14);
}

.internal-report-page .security-trust-panel .status-info,
.internal-report-page .security-trust-panel .status-neutral {
    color: #475569;
    background: rgba(100, 116, 139, .14);
}

@media (prefers-color-scheme: dark) {
    .internal-report-page .security-trust-panel .status-warning,
    .internal-report-page .security-trust-panel .status-needs_improvement {
        color: #ffaa32;
        background: rgba(255, 170, 50, .22);
    }

    .internal-report-page .security-trust-panel .status-critical,
    .internal-report-page .security-trust-panel .status-error,
    .internal-report-page .security-trust-panel .status-poor {
        color: #ff3233;
        background: rgba(255, 50, 51, .22);
    }

    .internal-report-page .security-trust-panel .status-good {
        color: #00cc66;
        background: rgba(0, 204, 102, .20);
    }

    .internal-report-page .security-trust-panel .status-info,
    .internal-report-page .security-trust-panel .status-neutral {
        color: #d5e0f3;
        background: rgba(100, 116, 139, .20);
    }
}

.internal-report-page .pagespeed-hub {
    --performance-tone-good: #00cc66;
    --performance-tone-review: #ffaa32;
    --performance-tone-urgent: #ff3233;
    --performance-tone-info: #64748b;
    --performance-tone-blue: #3b82f6;
}

.internal-report-page .pagespeed-hub .privacy-summary-card-good,
.internal-report-page .pagespeed-hub .privacy-state-good,
.internal-report-page .pagespeed-hub .recommendation-check-good {
    --privacy-tone: var(--performance-tone-good);
    --recommendation-tone: var(--performance-tone-good);
}

.internal-report-page .pagespeed-hub .privacy-summary-card-review,
.internal-report-page .pagespeed-hub .privacy-state-review,
.internal-report-page .pagespeed-hub .recommendation-check-review {
    --privacy-tone: var(--performance-tone-review);
    --recommendation-tone: var(--performance-tone-review);
}

.internal-report-page .pagespeed-hub .privacy-summary-card-urgent,
.internal-report-page .pagespeed-hub .privacy-state-urgent,
.internal-report-page .pagespeed-hub .recommendation-check-urgent {
    --privacy-tone: var(--performance-tone-urgent);
    --recommendation-tone: var(--performance-tone-urgent);
}

.internal-report-page .pagespeed-hub .privacy-summary-card-optional,
.internal-report-page .pagespeed-hub .privacy-state-optional,
.internal-report-page .pagespeed-hub .recommendation-check-optional {
    --privacy-tone: var(--performance-tone-info);
    --recommendation-tone: var(--performance-tone-blue);
}

.internal-report-page .pagespeed-hub .status-tone-good,
.internal-report-page .pagespeed-hub .pagespeed-summary-card-good {
    --tone-color: var(--performance-tone-good);
}

.internal-report-page .pagespeed-hub .status-tone-needs_improvement,
.internal-report-page .pagespeed-hub .status-tone-warning,
.internal-report-page .pagespeed-hub .pagespeed-summary-card-warning {
    --tone-color: var(--performance-tone-review);
}

.internal-report-page .pagespeed-hub .status-tone-poor,
.internal-report-page .pagespeed-hub .status-tone-error,
.internal-report-page .pagespeed-hub .pagespeed-summary-card-critical {
    --tone-color: var(--performance-tone-urgent);
}

.internal-report-page .pagespeed-hub .status-tone-neutral,
.internal-report-page .pagespeed-hub .pagespeed-summary-card-neutral {
    --tone-color: var(--performance-tone-blue);
}

.internal-report-page .pagespeed-hub .status-warning,
.internal-report-page .pagespeed-hub .status-needs_improvement {
    color: #ffaa32;
    background: rgba(255, 170, 50, .16);
}

.internal-report-page .pagespeed-hub .status-critical,
.internal-report-page .pagespeed-hub .status-error,
.internal-report-page .pagespeed-hub .status-poor {
    color: #ff3233;
    background: rgba(255, 50, 51, .14);
}

.internal-report-page .pagespeed-hub .status-good {
    color: #00cc66;
    background: rgba(0, 204, 102, .14);
}

.internal-report-page .pagespeed-hub .status-info,
.internal-report-page .pagespeed-hub .status-neutral {
    color: #475569;
    background: rgba(100, 116, 139, .14);
}

.internal-report-page .performance-check-list {
    margin: 18px 0 20px;
}

.internal-report-page .performance-technical-signals {
    --privacy-tone: var(--performance-tone-blue);
}

.internal-report-page .technical-seo-panel {
    --tech-tone-good: #00cc66;
    --tech-tone-review: #ffaa32;
    --tech-tone-urgent: #ff3233;
    --tech-tone-info: #64748b;
    --tech-tone-blue: #3b82f6;
}

.internal-report-page .technical-seo-panel .recommendation-check {
    --recommendation-soft: color-mix(in srgb, var(--recommendation-tone) 2%, #ffffff);
}

.internal-report-page .technical-seo-panel .privacy-summary-card-good,
.internal-report-page .technical-seo-panel .recommendation-check-good {
    --privacy-tone: var(--tech-tone-good);
    --recommendation-tone: var(--tech-tone-good);
}

.internal-report-page .technical-seo-panel .privacy-summary-card-review,
.internal-report-page .technical-seo-panel .recommendation-check-review {
    --privacy-tone: var(--tech-tone-review);
    --recommendation-tone: var(--tech-tone-review);
}

.internal-report-page .technical-seo-panel .privacy-summary-card-urgent,
.internal-report-page .technical-seo-panel .recommendation-check-urgent {
    --privacy-tone: var(--tech-tone-urgent);
    --recommendation-tone: var(--tech-tone-urgent);
}

.internal-report-page .technical-seo-panel .privacy-summary-card-optional,
.internal-report-page .technical-seo-panel .recommendation-check-optional {
    --privacy-tone: var(--tech-tone-info);
    --recommendation-tone: var(--tech-tone-blue);
}

.internal-report-page .technical-summary-grid,
.internal-report-page .technical-test-overview,
.internal-report-page .technical-focus-panel,
.internal-report-page .technical-check-list {
    margin-top: 16px;
}

.internal-report-page .technical-focus-panel h3 {
    margin: 0 0 6px;
}

.internal-report-page .technical-focus-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.internal-report-page .technical-focus-item {
    --tech-item-tone: var(--tech-tone-info);
    border: 1px solid color-mix(in srgb, var(--tech-item-tone) 14%, #d8e1ef);
    border-left: 4px solid var(--tech-item-tone);
    border-radius: 16px;
    padding: 15px 16px;
    background: linear-gradient(180deg, #ffffff 0%, color-mix(in srgb, var(--tech-item-tone) 1.5%, #fbfdff) 100%);
    box-shadow: 0 10px 24px rgba(31, 44, 71, .06);
    display: grid;
    gap: 12px;
}

.internal-report-page .technical-focus-item-good {
    --tech-item-tone: var(--tech-tone-good);
}

.internal-report-page .technical-focus-item-review {
    --tech-item-tone: var(--tech-tone-review);
}

.internal-report-page .technical-focus-item-urgent {
    --tech-item-tone: var(--tech-tone-urgent);
}

.internal-report-page .technical-focus-item-optional {
    --tech-item-tone: var(--tech-tone-info);
}

.internal-report-page .technical-focus-head,
.internal-report-page .technical-focus-head h4,
.internal-report-page .technical-focus-meta,
.internal-report-page .technical-focus-meta p,
.internal-report-page .technical-focus-action,
.internal-report-page .technical-focus-note {
    margin: 0;
    line-height: 1.38;
}

.internal-report-page .technical-focus-head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.internal-report-page .technical-focus-head .report-test-status {
    flex-shrink: 0;
}

.internal-report-page .technical-focus-head h4 {
    color: var(--text);
    font-size: .95rem;
    font-weight: 900;
}

.internal-report-page .technical-focus-label,
.internal-report-page .technical-focus-meta span {
    color: var(--muted);
    display: block;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .09em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.internal-report-page .technical-focus-meta {
    background: rgba(255, 255, 255, .8);
    border: 1px solid color-mix(in srgb, var(--tech-item-tone) 11%, #dbe3f1);
    border-radius: 12px;
    padding: 9px 11px;
}

.internal-report-page .technical-focus-meta-grid {
    display: grid;
    gap: 8px;
}

.internal-report-page .technical-focus-meta p,
.internal-report-page .technical-focus-note {
    color: var(--muted);
    font-size: .84rem;
    overflow-wrap: anywhere;
}

.internal-report-page .technical-focus-action {
    color: color-mix(in srgb, var(--text) 88%, var(--muted));
    font-size: .86rem;
    font-weight: 850;
    background: rgba(91, 106, 144, .055);
    border-radius: 11px;
    padding: 9px 11px;
}

.internal-report-page .technical-focus-action strong {
    color: var(--text);
}

.internal-report-page .technical-recommendation-note {
    margin: 16px 0 8px;
}

.internal-report-page .technical-seo-panel .area-recommendation-teaser.finding-warning {
    --finding-accent: var(--tech-tone-review);
    border-color: #e2e8f0;
    background: rgba(255, 255, 255, .94);
}

.internal-report-page .technical-seo-panel .area-recommendation-teaser.finding-warning .status-warning,
.internal-report-page .technical-seo-panel .status-warning {
    color: #ffaa32;
    background: rgba(255, 122, 26, .08);
}

.internal-report-page .technical-check-summary {
    border-color: color-mix(in srgb, var(--recommendation-tone) 12%, #dbe3f1);
    background: color-mix(in srgb, var(--recommendation-tone) 1.5%, #ffffff);
}

.internal-report-page .technical-seo-panel .recommendation-check-review .recommendation-check-icon {
    border-color: color-mix(in srgb, var(--tech-tone-review) 62%, #ffffff);
    background: rgba(255, 122, 26, .08);
}

.internal-report-page .technical-seo-panel .recommendation-check-review .recommendation-check-status {
    background: rgba(255, 122, 26, .08);
    color: #ffaa32;
}

.internal-report-page .technical-seo-panel .recommendation-check-review[open] .recommendation-check-row {
    background: linear-gradient(90deg, rgba(255, 122, 26, .045), #f8fbff 46%);
}

.internal-report-page .technical-seo-panel .recommendation-check-review .recommendation-check-help {
    background: #fbfdff;
}

.internal-report-page .technical-raw-details {
    margin-top: 18px;
}

.internal-report-page .technical-raw-note {
    margin: 0;
}

.internal-report-page .technical-raw-details ul {
    columns: 2 260px;
    column-gap: 24px;
    font-size: .82rem;
}

.internal-report-page .technical-raw-details li {
    break-inside: avoid;
}

@media (max-width: 1120px) {
    .internal-report-page .technical-focus-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .internal-report-page .technical-focus-list {
        grid-template-columns: 1fr;
    }

    .internal-report-page .technical-focus-head {
        display: grid;
    }
}

.internal-report-page .structure-panel {
    --structure-tone-good: #00cc66;
    --structure-tone-review: #ffaa32;
    --structure-tone-urgent: #ff3233;
    --structure-tone-info: #64748b;
    --structure-tone-blue: #3b82f6;
}

.internal-report-page .structure-panel .privacy-summary-card-good,
.internal-report-page .structure-panel .privacy-state-good,
.internal-report-page .structure-panel .recommendation-check-good {
    --privacy-tone: var(--structure-tone-good);
    --recommendation-tone: var(--structure-tone-good);
}

.internal-report-page .structure-panel .privacy-summary-card-review,
.internal-report-page .structure-panel .privacy-state-review,
.internal-report-page .structure-panel .recommendation-check-review {
    --privacy-tone: var(--structure-tone-review);
    --recommendation-tone: var(--structure-tone-review);
}

.internal-report-page .structure-panel .privacy-summary-card-urgent,
.internal-report-page .structure-panel .privacy-state-urgent,
.internal-report-page .structure-panel .recommendation-check-urgent {
    --privacy-tone: var(--structure-tone-urgent);
    --recommendation-tone: var(--structure-tone-urgent);
}

.internal-report-page .structure-panel .privacy-summary-card-optional,
.internal-report-page .structure-panel .privacy-state-optional,
.internal-report-page .structure-panel .recommendation-check-optional {
    --privacy-tone: var(--structure-tone-info);
    --recommendation-tone: var(--structure-tone-blue);
}

.internal-report-page .structure-check-list {
    margin: 18px 0 20px;
}

.internal-report-page .structure-technical-signals {
    --privacy-tone: var(--structure-tone-blue);
}

.internal-report-page .structure-crawl-pages {
    --privacy-tone: var(--structure-tone-blue);
    margin-top: 18px;
}

.internal-report-page .structure-quick-diagnosis,
.internal-report-page .structure-focus-signals {
    --privacy-tone: var(--structure-tone-blue);
    margin-top: 16px;
}

.internal-report-page .structure-quick-diagnosis .privacy-signal-card small {
    color: var(--muted);
    display: block;
    margin-top: 6px;
    font-size: .76rem;
    font-weight: 700;
}

.internal-report-page .structure-focus-list {
    display: grid;
    gap: 12px;
}

.internal-report-page .structure-focus-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    background: color-mix(in srgb, var(--surface-soft) 92%, transparent);
}

.internal-report-page .structure-focus-item-urgent {
    border-color: color-mix(in srgb, var(--structure-tone-urgent) 30%, var(--border));
    background: color-mix(in srgb, var(--structure-tone-urgent) 8%, transparent);
}

.internal-report-page .structure-focus-item-review {
    border-color: color-mix(in srgb, var(--structure-tone-review) 34%, var(--border));
    background: color-mix(in srgb, var(--structure-tone-review) 8%, transparent);
}

.internal-report-page .structure-focus-title {
    margin: 0 0 6px;
    font-size: .92rem;
    font-weight: 900;
}

.internal-report-page .structure-focus-samples,
.internal-report-page .structure-focus-action,
.internal-report-page .structure-focus-note {
    margin: 0;
    font-size: .84rem;
}

.internal-report-page .structure-focus-samples {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.internal-report-page .structure-focus-action {
    margin-top: 6px;
    font-weight: 800;
}

.internal-report-page .structure-focus-note {
    margin-top: 6px;
    color: var(--muted);
}

.internal-report-page .resources-panel {
    --resource-tone-good: #00cc66;
    --resource-tone-review: #ffaa32;
    --resource-tone-urgent: #ff3233;
    --resource-tone-info: #64748b;
    --resource-tone-blue: #3b82f6;
}

.internal-report-page .resources-panel .privacy-summary-card-good,
.internal-report-page .resources-panel .recommendation-check-good {
    --privacy-tone: var(--resource-tone-good);
    --recommendation-tone: var(--resource-tone-good);
}

.internal-report-page .resources-panel .privacy-summary-card-review,
.internal-report-page .resources-panel .recommendation-check-review {
    --privacy-tone: var(--resource-tone-review);
    --recommendation-tone: var(--resource-tone-review);
}

.internal-report-page .resources-panel .privacy-summary-card-urgent,
.internal-report-page .resources-panel .recommendation-check-urgent {
    --privacy-tone: var(--resource-tone-urgent);
    --recommendation-tone: var(--resource-tone-urgent);
}

.internal-report-page .resources-panel .privacy-summary-card-optional,
.internal-report-page .resources-panel .recommendation-check-optional {
    --privacy-tone: var(--resource-tone-info);
    --recommendation-tone: var(--resource-tone-blue);
}

.internal-report-page .resources-panel .resource-summary-grid {
    margin-top: 14px;
}

.internal-report-page .resources-panel .resource-status-overview {
    display: grid;
    grid-template-columns: minmax(280px, .95fr) minmax(280px, 1.05fr);
    gap: 12px;
    margin: 16px 0 14px;
}

.internal-report-page .resources-panel .resource-status-hero,
.internal-report-page .resources-panel .resource-status-distribution {
    border: 1px solid #d8e1ef;
    border-radius: 15px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 255, .9));
}

.internal-report-page .resources-panel .resource-status-hero {
    --resource-status-tone: var(--resource-tone-info);
    border-left: 5px solid var(--resource-status-tone);
    display: grid;
    gap: 8px;
}

.internal-report-page .resources-panel .resource-status-hero-good {
    --resource-status-tone: var(--resource-tone-good);
}

.internal-report-page .resources-panel .resource-status-hero-review {
    --resource-status-tone: var(--resource-tone-review);
}

.internal-report-page .resources-panel .resource-status-hero-urgent {
    --resource-status-tone: var(--resource-tone-urgent);
}

.internal-report-page .resources-panel .resource-status-hero-optional {
    --resource-status-tone: var(--resource-tone-info);
}

.internal-report-page .resources-panel .resource-status-hero h3,
.internal-report-page .resources-panel .resource-status-distribution h3 {
    margin: 0;
    color: var(--text);
}

.internal-report-page .resources-panel .resource-status-hero p,
.internal-report-page .resources-panel .resource-status-hero small,
.internal-report-page .resources-panel .resource-status-distribution p {
    margin: 0;
    color: var(--muted);
}

.internal-report-page .resources-panel .resource-status-counts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.internal-report-page .resources-panel .resource-status-count {
    padding: 8px 9px;
    border: 1px solid #d8e1ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, .88);
}

.internal-report-page .resources-panel .resource-status-count strong {
    display: block;
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1;
}

.internal-report-page .resources-panel .resource-status-count span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.internal-report-page .resources-panel .resource-status-count-good strong {
    color: #00cc66;
}

.internal-report-page .resources-panel .resource-status-segment-good {
    background: #00cc66;
}

.internal-report-page .resources-panel .resource-status-count-review strong {
    color: #ffaa32;
}

.internal-report-page .resources-panel .resource-status-segment-review {
    background: #ffaa32;
}

.internal-report-page .resources-panel .resource-status-count-urgent strong {
    color: #ff3233;
}

.internal-report-page .resources-panel .resource-status-segment-urgent {
    background: #ff3233;
}

.internal-report-page .resources-panel .resource-status-count-optional strong {
    color: #51627f;
}

.internal-report-page .resources-panel .resource-status-segment-optional {
    background: #94a3b8;
}

.internal-report-page .resources-panel .resource-status-bar {
    display: flex;
    width: 100%;
    height: 12px;
    border: 1px solid #ccd6e8;
    border-radius: 999px;
    overflow: hidden;
    background: #eef3fc;
}

.internal-report-page .resources-panel .resource-status-segment {
    display: block;
    height: 100%;
}

.internal-report-page .resources-panel .resource-focus-panel {
    margin: 18px 0 14px;
}

.internal-report-page .resources-panel .resource-focus-panel h3 {
    margin: 0 0 6px;
}

.internal-report-page .resources-panel .resource-focus-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.internal-report-page .resources-panel .resource-focus-item {
    --resource-item-tone: var(--resource-tone-info);
    border: 1px solid color-mix(in srgb, var(--resource-item-tone) 26%, #d8e1ef);
    border-left: 5px solid var(--resource-item-tone);
    border-radius: 14px;
    padding: 11px 12px;
    background: color-mix(in srgb, var(--resource-item-tone) 6%, #ffffff);
}

.internal-report-page .resources-panel .resource-focus-item-urgent {
    --resource-item-tone: var(--resource-tone-urgent);
}

.internal-report-page .resources-panel .resource-focus-item-review {
    --resource-item-tone: var(--resource-tone-review);
}

.internal-report-page .resources-panel .resource-focus-item-optional {
    --resource-item-tone: var(--resource-tone-info);
}

.internal-report-page .resources-panel .resource-focus-item-good {
    --resource-item-tone: var(--resource-tone-good);
}

.internal-report-page .resources-panel .resource-focus-title,
.internal-report-page .resources-panel .resource-focus-rating,
.internal-report-page .resources-panel .resource-focus-samples,
.internal-report-page .resources-panel .resource-focus-action,
.internal-report-page .resources-panel .resource-focus-note {
    margin: 0;
    font-size: .86rem;
    line-height: 1.38;
}

.internal-report-page .resources-panel .resource-focus-title {
    color: var(--text);
    font-weight: 900;
}

.internal-report-page .resources-panel .resource-focus-rating,
.internal-report-page .resources-panel .resource-focus-samples,
.internal-report-page .resources-panel .resource-focus-note {
    color: var(--muted);
    margin-top: 5px;
}

.internal-report-page .resources-panel .resource-focus-action {
    color: color-mix(in srgb, var(--resource-item-tone) 78%, var(--text));
    font-weight: 850;
    margin-top: 5px;
}

.internal-report-page .resources-panel .resource-check-list {
    margin-top: 12px;
}

@media (max-width: 860px) {
    .internal-report-page .resources-panel .resource-status-overview {
        grid-template-columns: 1fr;
    }

    .internal-report-page .resources-panel .resource-status-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-color-scheme: dark) {
    .internal-report-page .technical-focus-item {
        border-color: color-mix(in srgb, var(--tech-item-tone) 42%, #334667);
        background: color-mix(in srgb, var(--tech-item-tone) 12%, rgba(16, 26, 46, .92));
    }

    .internal-report-page .technical-focus-meta {
        background: rgba(17, 28, 49, .72);
        border-color: color-mix(in srgb, var(--tech-item-tone) 28%, #334667);
    }

    .internal-report-page .technical-focus-meta p,
    .internal-report-page .technical-focus-note {
        color: #c5d3f2;
    }

    .internal-report-page .resources-panel .resource-status-hero,
    .internal-report-page .resources-panel .resource-status-distribution,
    .internal-report-page .resources-panel .resource-status-count {
        border-color: #34476f;
        background: rgba(19, 30, 52, .9);
    }

    .internal-report-page .resources-panel .resource-status-bar {
        border-color: #3f547d;
        background: rgba(30, 43, 69, .88);
    }

    .internal-report-page .resources-panel .resource-focus-item {
        border-color: color-mix(in srgb, var(--resource-item-tone) 42%, #334667);
        background: color-mix(in srgb, var(--resource-item-tone) 12%, rgba(16, 26, 46, .92));
    }

    .internal-report-page .resources-panel .resource-focus-rating,
    .internal-report-page .resources-panel .resource-focus-samples,
    .internal-report-page .resources-panel .resource-focus-note,
    .internal-report-page .resources-panel .resource-status-hero p,
    .internal-report-page .resources-panel .resource-status-hero small,
    .internal-report-page .resources-panel .resource-status-distribution p,
    .internal-report-page .resources-panel .resource-status-count span {
        color: #c5d3f2;
    }

    .internal-report-page .resources-panel .resource-status-count-good strong {
        color: #00cc66;
    }

    .internal-report-page .resources-panel .resource-status-count-review strong {
        color: #fdba74;
    }

    .internal-report-page .resources-panel .resource-status-count-urgent strong {
        color: #ff3233;
    }

    .internal-report-page .resources-panel .resource-status-count-optional strong {
        color: #cbd5e1;
    }
}

.internal-report-page .structure-page-table th,
.internal-report-page .structure-page-table td {
    vertical-align: top;
}

.internal-report-page .structure-page-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .74rem;
    font-weight: 850;
    letter-spacing: .02em;
    white-space: nowrap;
}

.internal-report-page .structure-page-status-good {
    color: #00cc66;
    background: rgba(0, 204, 102, .14);
}

.internal-report-page .structure-page-status-review {
    color: #ffaa32;
    background: rgba(255, 170, 50, .14);
}

.internal-report-page .structure-page-status-critical {
    color: #ff3233;
    background: rgba(255, 50, 51, .14);
}

.internal-report-page .structure-raw-details {
    margin-top: 16px;
}

.internal-report-page .structure-detail-table td:first-child {
    max-width: 520px;
    word-break: break-word;
}

.internal-report-page .structure-broken-preview {
    display: grid;
    gap: 6px;
    margin-top: 4px;
}

.internal-report-page .structure-broken-preview-item {
    display: grid;
    gap: 2px;
    padding: 7px 9px;
    border: 1px solid color-mix(in srgb, var(--structure-tone-urgent) 22%, var(--border));
    border-radius: 12px;
    background: color-mix(in srgb, var(--structure-tone-urgent) 7%, transparent);
    color: var(--text);
}

.internal-report-page .structure-broken-preview-item span {
    overflow-wrap: anywhere;
    font-size: .82rem;
    font-weight: 850;
}

.internal-report-page .structure-broken-preview-item small,
.internal-report-page .structure-broken-preview-more {
    color: color-mix(in srgb, var(--structure-tone-urgent) 76%, var(--muted));
    font-size: .74rem;
    font-weight: 850;
}

@media (prefers-color-scheme: dark) {
    .internal-report-page .pagespeed-hub .status-warning,
    .internal-report-page .pagespeed-hub .status-needs_improvement {
        color: #ffaa32;
        background: rgba(255, 170, 50, .22);
    }

    .internal-report-page .pagespeed-hub .status-critical,
    .internal-report-page .pagespeed-hub .status-error,
    .internal-report-page .pagespeed-hub .status-poor {
        color: #ff3233;
        background: rgba(255, 50, 51, .22);
    }

    .internal-report-page .pagespeed-hub .status-good {
        color: #00cc66;
        background: rgba(0, 204, 102, .20);
    }

    .internal-report-page .pagespeed-hub .status-info,
    .internal-report-page .pagespeed-hub .status-neutral {
        color: #d5e0f3;
        background: rgba(100, 116, 139, .20);
    }

    .internal-report-page .structure-page-status-good {
        color: #00cc66;
        background: rgba(0, 204, 102, .20);
    }

    .internal-report-page .structure-page-status-review {
        color: #ffaa32;
        background: rgba(255, 170, 50, .22);
    }

    .internal-report-page .structure-page-status-critical {
        color: #ff3233;
        background: rgba(255, 50, 51, .22);
    }
}

.internal-report-page .privacy-summary-card span,
.internal-report-page .privacy-state-copy span,
.internal-report-page .privacy-technical-signals h3 + p,
.internal-report-page .privacy-signal-card span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.internal-report-page .privacy-summary-card strong {
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.15;
}

.internal-report-page .privacy-summary-card small {
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
    font-weight: 800;
}

.internal-report-page .privacy-summary-meter {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(91, 106, 144, .15);
}

.internal-report-page .privacy-summary-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--privacy-tone), color-mix(in srgb, var(--privacy-tone) 68%, #ffffff));
}

.internal-report-page .privacy-risk-meter {
    background: color-mix(in srgb, var(--privacy-tone) 10%, rgba(91, 106, 144, .14));
}

.internal-report-page .privacy-state {
    --privacy-tone: #3b73d5;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
    gap: 16px;
    align-items: center;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--privacy-tone) 30%, #d8e1ef);
    border-left: 6px solid var(--privacy-tone);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--privacy-tone) 14%, transparent), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--privacy-tone) 7%, #ffffff), #ffffff);
    box-shadow: 0 18px 34px -32px rgba(15, 26, 51, .45);
}

.internal-report-page .privacy-state-copy {
    display: grid;
    gap: 8px;
}

.internal-report-page .privacy-state-copy h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.35rem;
}

.internal-report-page .privacy-state-copy p {
    margin: 0;
    color: color-mix(in srgb, var(--text) 78%, var(--muted));
}

.internal-report-page .privacy-state-copy .privacy-state-disclaimer {
    color: color-mix(in srgb, var(--text) 68%, var(--muted));
    font-weight: 800;
}

.internal-report-page .privacy-state-meter {
    overflow: hidden;
    height: 13px;
    border-radius: 999px;
    background: rgba(91, 106, 144, .16);
}

.internal-report-page .privacy-state-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--privacy-tone), color-mix(in srgb, var(--privacy-tone) 65%, #ffffff));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--privacy-tone) 30%, transparent);
}

.internal-report-page .privacy-state-actions {
    grid-column: 1 / -1;
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--privacy-tone) 9%, #ffffff);
}

.internal-report-page .privacy-state-actions strong {
    color: color-mix(in srgb, var(--privacy-tone) 78%, var(--text));
}

.internal-report-page .privacy-state-actions ul {
    display: grid;
    gap: 5px;
    margin: 8px 0 0;
    padding-left: 18px;
}

.internal-report-page .privacy-browser-check {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
    margin: -2px 0 18px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, #ffaa32 28%, #d8e1ef);
    border-left: 5px solid #ffaa32;
    border-radius: 15px;
    background: linear-gradient(180deg, color-mix(in srgb, #ffaa32 7%, #ffffff), #ffffff);
}

.internal-report-page .privacy-browser-check-available {
    border-color: color-mix(in srgb, #00cc66 28%, #d8e1ef);
    border-left-color: #00cc66;
    background: linear-gradient(180deg, color-mix(in srgb, #00cc66 7%, #ffffff), #ffffff);
}

.internal-report-page .privacy-browser-check span {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.internal-report-page .privacy-browser-check strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 1.05rem;
}

.internal-report-page .privacy-browser-check p {
    max-width: 760px;
    margin: 6px 0 0;
    color: color-mix(in srgb, var(--text) 76%, var(--muted));
    font-weight: 800;
}

.internal-report-page .privacy-browser-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    max-width: 440px;
}

.internal-report-page .privacy-browser-facts span {
    padding: 6px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, #00cc66 10%, #ffffff);
    color: color-mix(in srgb, #0f8a4a 78%, var(--text));
    letter-spacing: 0;
    text-transform: none;
}

.internal-report-page .privacy-check-list {
    margin-top: 12px;
}

.internal-report-page .privacy-technical-signals {
    display: grid;
    gap: 14px;
    margin: 20px 0 14px;
    padding: 16px;
    border: 1px solid #d8e1ef;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 255, .92));
}

.internal-report-page .privacy-technical-signals h3 {
    margin: 0 0 6px;
    color: var(--text);
}

.internal-report-page .privacy-technical-signals h3 + p {
    margin: 0;
    letter-spacing: 0;
    text-transform: none;
}

.internal-report-page .privacy-signal-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.internal-report-page .privacy-signal-card {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 10px 11px;
    border: 1px solid #d8e1ef;
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
}

.internal-report-page .privacy-signal-card strong {
    color: var(--text);
    font-size: .95rem;
    line-height: 1.2;
}

.internal-report-page .privacy-provider-details {
    padding: 11px 12px;
    border: 1px solid #d8e1ef;
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
}

.internal-report-page .privacy-provider-details summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
}

.internal-report-page .privacy-provider-details p {
    margin: 9px 0 0;
    color: color-mix(in srgb, var(--text) 76%, var(--muted));
    overflow-wrap: anywhere;
}

.internal-report-page .privacy-service-detail-section {
    grid-column: 1 / -1;
}

.internal-report-page .privacy-service-list {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.internal-report-page .privacy-service-list li {
    display: grid;
    gap: 3px;
    padding: 10px 11px;
    border: 1px solid color-mix(in srgb, var(--recommendation-tone, #3b73d5) 20%, #d8e1ef);
    border-left: 4px solid color-mix(in srgb, var(--recommendation-tone, #3b73d5) 76%, #ffffff);
    border-radius: 11px;
    background: color-mix(in srgb, var(--recommendation-tone, #3b73d5) 6%, #ffffff);
}

.internal-report-page .privacy-service-list strong {
    color: var(--text);
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.internal-report-page .privacy-service-list span,
.internal-report-page .privacy-service-list em,
.internal-report-page .privacy-service-list small,
.internal-report-page .privacy-service-more {
    color: color-mix(in srgb, var(--text) 70%, var(--muted));
    font-size: .78rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.internal-report-page .privacy-service-list em {
    color: color-mix(in srgb, var(--recommendation-tone, #3b73d5) 78%, var(--text));
    font-style: normal;
}

.internal-report-page .privacy-service-list-compact {
    margin-top: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.internal-report-page .privacy-service-more {
    margin: 8px 0 0;
}

.internal-report-page .privacy-disclaimer {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid color-mix(in srgb, #3b73d5 24%, #d8e1ef);
    border-left: 5px solid #3b73d5;
    border-radius: 14px;
    background: color-mix(in srgb, #3b73d5 6%, #ffffff);
    color: color-mix(in srgb, var(--text) 78%, var(--muted));
    font-weight: 800;
}

.internal-report-page .area-recommendations {
    margin: 18px 0 22px;
    padding: 16px;
    border: 1px solid #d8e1ef;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 255, .94));
    box-shadow: 0 12px 22px -24px rgba(15, 26, 51, .45);
}

.internal-report-page .area-recommendations-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.internal-report-page .area-recommendations-kicker {
    display: block;
    margin-bottom: 3px;
    color: #2f63c7;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.internal-report-page .area-recommendations h3 {
    margin: 0;
    font-size: 1rem;
}

.internal-report-page .area-recommendations-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #35507a;
    background: #eef4ff;
    font-size: .78rem;
    font-weight: 900;
}

.internal-report-page .area-recommendation-list {
    display: grid;
    gap: 10px;
}

.internal-report-page .area-recommendation-teaser {
    --finding-accent: #3b73d5;
    position: relative;
    display: grid;
    gap: 8px;
    padding: 12px 14px 12px 16px;
    border: 1px solid color-mix(in srgb, var(--finding-accent) 18%, #d8e1ef);
    border-left: 4px solid var(--finding-accent);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .94), color-mix(in srgb, var(--finding-accent) 5%, #ffffff));
}

.internal-report-page .area-recommendation-teaser.finding-info {
    --finding-accent: #3b73d5;
}

.internal-report-page .area-recommendation-teaser.finding-warning {
    --finding-accent: #ffaa32;
}

.internal-report-page .pagespeed-hub .area-recommendation-teaser.finding-warning {
    border-color: color-mix(in srgb, #ffaa32 22%, #d8e1ef);
    border-left-color: #ffaa32;
}

.internal-report-page .pagespeed-hub .area-recommendation-teaser.finding-warning .status-warning {
    color: #ffaa32;
    background: rgba(255, 170, 50, .16);
}

.internal-report-page #panel-structure .area-recommendation-teaser.finding-warning {
    --finding-accent: #ffaa32;
}

.internal-report-page .area-recommendation-teaser.finding-error,
.internal-report-page .area-recommendation-teaser.finding-critical {
    --finding-accent: #ff3233;
}

.internal-report-page .area-recommendation-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.internal-report-page .area-recommendation-title strong {
    color: var(--text);
    line-height: 1.25;
}

.internal-report-page #panel-structure .area-recommendation-teaser.finding-warning .status-warning {
    color: color-mix(in srgb, #ffaa32 64%, #0f172a);
    background: rgba(255, 170, 50, .12);
}

.internal-report-page .area-recommendation-teaser p {
    margin: 0;
}

.internal-report-page .area-recommendation-meta {
    color: var(--muted);
    font-size: .84rem;
}

.internal-report-page .area-recommendation-link {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    color: #255ad4;
    font-weight: 900;
    text-decoration: none;
}

.internal-report-page .area-recommendation-link:hover,
.internal-report-page .area-recommendation-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.internal-report-page .area-recommendations-empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    color: #166534;
    background: rgba(0, 204, 102, .08);
    font-weight: 800;
}

.internal-report-page .ai-visibility-panel {
    display: grid;
    gap: 18px;
}

.internal-report-page .ai-visibility-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 280px);
    gap: 18px;
    align-items: stretch;
}

.internal-report-page .ai-visibility-head p,
.internal-report-page .ai-visibility-summary-list p,
.internal-report-page .ai-visibility-status p,
.internal-report-page .ai-crawler-panel p,
.internal-report-page .ai-optimization-panel p,
.internal-report-page .ai-readiness-shortcheck p,
.internal-report-page .ai-check-card p,
.internal-report-page .ai-recommendation-card p,
.internal-report-page .ai-visibility-limits p {
    color: var(--muted);
}

.internal-report-page .ai-evidence-card,
.internal-report-page .ai-visibility-summary-list article,
.internal-report-page .ai-visibility-status article,
.internal-report-page .ai-check-card,
.internal-report-page .ai-crawler-panel,
.internal-report-page .ai-optimization-panel,
.internal-report-page .ai-readiness-shortcheck,
.internal-report-page .ai-recommendation-card,
.internal-report-page .ai-visibility-limits {
    border: 1px solid #d8e1ef;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 255, .94));
    box-shadow: 0 12px 24px -26px rgba(15, 23, 42, .44);
}

.internal-report-page .ai-evidence-card {
    --ai-check-color: #94a3b8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border-left: 5px solid var(--ai-check-color);
    border-radius: 18px;
}

.internal-report-page .ai-evidence-card span,
.internal-report-page .ai-visibility-summary-list span,
.internal-report-page .ai-visibility-status span,
.internal-report-page .ai-check-group,
.internal-report-page .ai-optimization-panel span,
.internal-report-page .ai-readiness-shortcheck-head span,
.internal-report-page .ai-visibility-section-head span {
    color: #5d6f91;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.internal-report-page .ai-evidence-card strong {
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
}

.internal-report-page .ai-evidence-card p {
    margin: 0;
    font-weight: 800;
}

.internal-report-page .ai-level-note {
    display: block;
    color: #475569;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.35;
}

.internal-report-page .ai-plain-summary {
    max-width: 780px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 204, 102, .18);
    border-radius: 14px;
    background: rgba(0, 204, 102, .07);
}

.internal-report-page .ai-plain-summary strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-weight: 950;
}

.internal-report-page .ai-plain-summary p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.42;
}

.internal-report-page .ai-readiness-meter {
    overflow: hidden;
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .18);
}

.internal-report-page .ai-readiness-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ai-check-color);
}

.internal-report-page .ai-visibility-summary-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.internal-report-page .ai-visibility-summary-list article {
    padding: 14px 15px;
    border-radius: 16px;
}

.internal-report-page .ai-visibility-summary-list p {
    margin: 7px 0 0;
    color: var(--text);
    font-weight: 800;
    line-height: 1.4;
}

.internal-report-page .ai-visibility-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.internal-report-page .ai-visibility-status article {
    padding: 16px;
    border-radius: 16px;
}

.internal-report-page .ai-visibility-status strong {
    display: block;
    margin: 7px 0 6px;
    color: var(--text);
    font-size: 1.12rem;
}

.internal-report-page .ai-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.internal-report-page .ai-check-card {
    --ai-check-color: #94a3b8;
    --ai-check-badge-color: #475569;
    --ai-check-badge-bg: rgba(148, 163, 184, .14);
    --ai-check-badge-border: rgba(148, 163, 184, .22);
    display: grid;
    align-content: start;
    min-height: 178px;
    padding: 16px;
    border-left: 4px solid var(--ai-check-color);
    border-radius: 16px;
}

.internal-report-page .ai-check-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.internal-report-page .ai-check-state {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 8px;
    border: 1px solid var(--ai-check-badge-border);
    border-radius: 999px;
    color: var(--ai-check-badge-color);
    background: var(--ai-check-badge-bg);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .01em;
}

.internal-report-page .ai-check-card h3 {
    margin: 9px 0 7px;
    color: var(--text);
    font-size: 1rem;
}

.internal-report-page .ai-check-card p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.42;
}

.internal-report-page .ai-check-card small {
    display: block;
    margin-top: 11px;
    padding: 8px 10px;
    border-radius: 12px;
    color: #475569;
    background: rgba(148, 163, 184, .14);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.35;
}

.internal-report-page .ai-optimization-panel {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(260px, 1.1fr);
    gap: 18px;
    align-items: start;
    padding: 18px;
    border-left: 5px solid #ffaa32;
    border-radius: 18px;
}

.internal-report-page .ai-optimization-panel h3 {
    margin: 7px 0 8px;
    color: var(--text);
    font-size: 1.12rem;
}

.internal-report-page .ai-optimization-panel p {
    margin: 0;
    line-height: 1.45;
}

.internal-report-page .ai-quick-help {
    margin-top: 16px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 170, 50, .22);
    border-radius: 14px;
    background: rgba(255, 170, 50, .07);
}

.internal-report-page .ai-quick-help strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 900;
}

.internal-report-page .ai-quick-help ol {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 19px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.38;
}

.internal-report-page .ai-quick-help li::marker {
    color: #c47a00;
    font-weight: 900;
}

.internal-report-page .ai-optimization-panel ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.internal-report-page .ai-optimization-panel li,
.internal-report-page .ai-optimization-empty {
    position: relative;
    margin: 0;
    padding: 13px 14px 13px 32px;
    border: 1px solid rgba(255, 170, 50, .24);
    border-radius: 13px;
    color: var(--text);
    background: rgba(255, 170, 50, .08);
    line-height: 1.35;
}

.internal-report-page .ai-optimization-panel li::before,
.internal-report-page .ai-optimization-empty::before {
    content: "";
    position: absolute;
    top: 1.05em;
    left: 11px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #ffaa32;
}

.internal-report-page .ai-optimization-panel li strong {
    display: block;
    margin: 5px 0 7px;
    color: var(--text);
    font-weight: 900;
}

.internal-report-page .ai-optimization-panel li p {
    margin: 0 0 6px;
    font-size: .86rem;
}

.internal-report-page .ai-optimization-panel li p:last-child {
    margin-bottom: 0;
}

.internal-report-page .ai-optimization-panel li p b {
    color: var(--text);
    font-weight: 900;
}

.internal-report-page .ai-optimization-example {
    padding: 8px 9px;
    border-radius: 10px;
    color: #5b6576;
    background: rgba(255, 255, 255, .54);
    font-size: .82rem;
    font-weight: 800;
}

.internal-report-page .ai-optimization-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 7px;
    border-radius: 999px;
    color: #9a5a00;
    background: rgba(255, 170, 50, .18);
    font-size: .66rem;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.internal-report-page .ai-readiness-shortcheck {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
}

.internal-report-page .ai-readiness-shortcheck-head h3 {
    margin: 7px 0 0;
    color: var(--text);
    font-size: 1.12rem;
}

.internal-report-page .ai-readiness-shortcheck-head p {
    margin: 5px 0 0;
    color: var(--muted);
}

.internal-report-page .ai-readiness-shortcheck-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.internal-report-page .ai-shortcheck-card {
    --shortcheck-color: #94a3b8;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--shortcheck-color) 22%, #d8e1ef);
    border-radius: 15px;
    background: color-mix(in srgb, var(--shortcheck-color) 7%, transparent);
}

.internal-report-page .ai-shortcheck-good {
    --shortcheck-color: #00cc66;
}

.internal-report-page .ai-shortcheck-warning,
.internal-report-page .ai-shortcheck-optional {
    --shortcheck-color: #ffaa32;
}

.internal-report-page .ai-shortcheck-critical {
    --shortcheck-color: #ff3233;
}

.internal-report-page .ai-shortcheck-neutral {
    --shortcheck-color: #94a3b8;
}

.internal-report-page .ai-shortcheck-card strong {
    display: block;
    color: var(--text);
    font-weight: 950;
}

.internal-report-page .ai-shortcheck-card ul {
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.internal-report-page .ai-shortcheck-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.internal-report-page .ai-shortcheck-item span {
    --shortcheck-item-color: #94a3b8;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border-radius: 999px;
    color: var(--shortcheck-item-color);
    background: color-mix(in srgb, var(--shortcheck-item-color) 14%, transparent);
    font-size: .72rem;
    font-weight: 950;
}

.internal-report-page .ai-shortcheck-item-good span {
    --shortcheck-item-color: #00cc66;
}

.internal-report-page .ai-shortcheck-item-warning span,
.internal-report-page .ai-shortcheck-item-optional span {
    --shortcheck-item-color: #ffaa32;
}

.internal-report-page .ai-shortcheck-item-critical span {
    --shortcheck-item-color: #ff3233;
}

.internal-report-page .ai-shortcheck-item-neutral span {
    --shortcheck-item-color: #94a3b8;
}

.internal-report-page .ai-shortcheck-item span::before {
    content: "?";
}

.internal-report-page .ai-shortcheck-item-good span::before {
    content: "✓";
}

.internal-report-page .ai-shortcheck-item-warning span::before,
.internal-report-page .ai-shortcheck-item-optional span::before {
    content: "!";
}

.internal-report-page .ai-shortcheck-item-critical span::before {
    content: "×";
}

.internal-report-page .ai-shortcheck-item p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.35;
}

.internal-report-page .ai-check-good {
    --ai-check-color: #00cc66;
    --ai-check-badge-color: #00cc66;
    --ai-check-badge-bg: rgba(0, 204, 102, .12);
    --ai-check-badge-border: rgba(0, 204, 102, .22);
}

.internal-report-page .ai-check-needs_improvement,
.internal-report-page .ai-check-warning,
.internal-report-page .ai-check-optional {
    --ai-check-color: #ffaa32;
    --ai-check-badge-color: #9a5a00;
    --ai-check-badge-bg: rgba(255, 170, 50, .15);
    --ai-check-badge-border: rgba(255, 170, 50, .28);
}

.internal-report-page .ai-check-critical {
    --ai-check-color: #ff3233;
    --ai-check-badge-color: #ff3233;
    --ai-check-badge-bg: rgba(255, 50, 51, .12);
    --ai-check-badge-border: rgba(255, 50, 51, .24);
}

.internal-report-page .ai-check-neutral {
    --ai-check-color: #94a3b8;
    --ai-check-badge-color: #475569;
    --ai-check-badge-bg: rgba(148, 163, 184, .14);
    --ai-check-badge-border: rgba(148, 163, 184, .22);
}

.internal-report-page .ai-crawler-panel {
    padding: 16px;
    border-radius: 18px;
}

.internal-report-page .ai-crawler-panel h3,
.internal-report-page .ai-visibility-section-head h3 {
    margin: 0 0 6px;
    color: var(--text);
}

.internal-report-page .ai-crawler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.internal-report-page .ai-crawler-chip {
    --ai-crawler-color: #94a3b8;
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-left: 4px solid var(--ai-crawler-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
}

.internal-report-page .ai-crawler-chip strong {
    color: var(--text);
}

.internal-report-page .ai-crawler-chip span {
    color: var(--ai-crawler-color);
    font-weight: 900;
}

.internal-report-page .ai-crawler-chip small {
    color: var(--muted);
}

.internal-report-page .ai-crawler-allowed {
    --ai-crawler-color: #00a85a;
}

.internal-report-page .ai-crawler-blocked {
    --ai-crawler-color: #ff3233;
}

.internal-report-page .ai-crawler-unknown {
    --ai-crawler-color: #64748b;
}

.internal-report-page .ai-visibility-recommendations {
    display: grid;
    gap: 12px;
}

.internal-report-page .ai-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.internal-report-page .ai-recommendation-card {
    --finding-accent: #ffaa32;
    padding: 14px 15px;
    border-left: 4px solid var(--finding-accent);
    border-radius: 15px;
}

.internal-report-page .ai-recommendation-card.finding-info {
    --finding-accent: #3b73d5;
}

.internal-report-page .ai-recommendation-card.finding-warning {
    --finding-accent: #ffaa32;
}

.internal-report-page .ai-recommendation-card.finding-critical {
    --finding-accent: #ff3233;
}

.internal-report-page .ai-recommendation-card strong {
    display: block;
    color: var(--text);
    margin-bottom: 7px;
}

.internal-report-page .ai-recommendation-card p,
.internal-report-page .ai-recommendation-empty {
    margin: 0;
}

.internal-report-page .ai-recommendation-empty {
    padding: 13px 14px;
    border-radius: 14px;
    color: #166534;
    background: rgba(0, 204, 102, .08);
    font-weight: 800;
}

.internal-report-page .ai-visibility-limits {
    padding: 12px 15px;
    border-radius: 16px;
}

.internal-report-page .ai-visibility-limits summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
}

.internal-report-page #findings > details {
    border: 1px solid #d9e1ef;
    border-radius: 16px;
    padding: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 250, 255, .94));
    margin-bottom: 14px;
    box-shadow: 0 12px 22px -24px rgba(15, 26, 51, .45);
    overflow: clip;
}

.internal-report-page #findings > details > summary {
    cursor: pointer;
    font-weight: 800;
    padding: 14px 16px;
    list-style: none;
}

.internal-report-page #findings > details > summary::-webkit-details-marker {
    display: none;
}

.internal-report-page #findings > details.recommendation-finding-category {
    --recommendation-tone: #3b73d5;
    border-color: color-mix(in srgb, var(--recommendation-tone) 24%, #d9e1ef);
    border-left: 5px solid var(--recommendation-tone);
}

.internal-report-page #findings > details.recommendation-finding-category-urgent {
    --recommendation-tone: #ff3233;
}

.internal-report-page #findings > details.recommendation-finding-category-review {
    --recommendation-tone: #ffaa32;
}

.internal-report-page #findings > details.recommendation-finding-category-good {
    --recommendation-tone: #00cc66;
}

.internal-report-page #findings > details.recommendation-finding-category > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: color-mix(in srgb, var(--recommendation-tone) 7%, #ffffff);
}

.internal-report-page .recommendation-category-list {
    display: grid;
    gap: 14px;
}

.internal-report-page .recommendation-category-head {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.internal-report-page .recommendation-category-head strong {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 950;
}

.internal-report-page .recommendation-category-head small {
    color: color-mix(in srgb, var(--text) 70%, var(--muted));
    font-size: .84rem;
    font-weight: 700;
}

.internal-report-page .recommendation-category-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    flex: 0 0 auto;
}

.internal-report-page .recommendation-category-meta span {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: color-mix(in srgb, var(--recommendation-tone) 78%, #17213a);
    background: color-mix(in srgb, var(--recommendation-tone) 12%, #ffffff);
    font-size: .76rem;
    font-weight: 900;
}

.internal-report-page #findings > details.recommendation-finding-category > summary .recommendation-category-meta span {
    color: color-mix(in srgb, var(--recommendation-tone) 76%, var(--muted));
    font-size: .78rem;
    font-weight: 900;
}

.internal-report-page .recommendation-finding-list {
    padding: 14px;
}

.internal-report-page .recommendation-finding-check {
    box-shadow: none;
}

.internal-report-page .recommendation-finding-help {
    padding-top: 12px;
    padding-bottom: 12px;
}

.internal-report-page .tech-detail-collapsible {
    border-radius: 12px;
    border-color: #d9e1ee;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfcff 0%, #f6f9ff 100%);
}

.internal-report-page .tech-detail-collapsible summary {
    margin: 0;
    padding: 12px 14px;
}

.internal-report-page .tech-detail-collapsible[open] summary {
    border-bottom: 1px solid #dbe3f1;
}

.internal-report-page .tech-detail-collapsible > :not(summary) {
    padding: 12px 14px;
}

.internal-report-page .result-nav a {
    border-radius: 999px;
    padding: 8px 13px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.internal-report-page .result-nav a:hover {
    border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
}

.internal-report-page.public-share-report .public-report-context {
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
    background:
        radial-gradient(circle at 8% 0%, color-mix(in srgb, var(--accent-soft) 72%, transparent) 0%, transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 84%, var(--surface)) 0%, var(--surface) 100%);
}

.internal-report-page.public-share-report .public-report-context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.internal-report-page.public-share-report .public-report-context article {
    border: 1px solid color-mix(in srgb, var(--line) 76%, #fff);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    padding: 14px;
}

.internal-report-page.public-share-report .public-report-context span {
    display: block;
    margin-bottom: 6px;
    color: var(--accent);
    font-size: .74rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.internal-report-page.public-share-report .public-report-context p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

@media (prefers-color-scheme: dark) {
    .internal-report-page::before {
        background:
            radial-gradient(circle at 7% -12%, rgba(76, 135, 255, .13) 0%, transparent 42%),
            radial-gradient(circle at 95% 5%, rgba(51, 193, 111, .1) 0%, transparent 34%),
            linear-gradient(180deg, rgba(16, 22, 42, .68) 0%, rgba(16, 22, 42, .32) 100%);
    }

    .internal-report-page .panel {
        background: linear-gradient(180deg, #19233d 0%, #18223a 100%);
        border-color: #334269;
        box-shadow: 0 20px 36px -28px rgba(0, 0, 0, .64);
    }

    .internal-report-page .report-action-bar {
        border-color: #334269;
        background: rgba(25, 35, 61, .94);
        box-shadow: 0 18px 34px -28px rgba(0, 0, 0, .68);
    }

    .internal-report-page .report-menu summary {
        color: #dbe6ff;
        border-color: #445d91;
        background: linear-gradient(180deg, #26395d 0%, #1d2d4c 100%);
    }

    .internal-report-page .report-menu-panel {
        border-color: #34466e;
        background: #18233d;
        box-shadow: 0 24px 54px -28px rgba(0, 0, 0, .8);
    }

    .internal-report-page .report-menu-panel a {
        color: #eef3ff;
    }

    .internal-report-page .report-menu-panel a:hover,
    .internal-report-page .report-menu-panel a:focus-visible {
        color: #ffffff;
        background: rgba(76, 135, 255, .16);
    }

    .internal-report-page .table {
        border-color: #33476f;
    }

    .internal-report-page .table th {
        background: #182640;
        border-bottom-color: #33476f;
    }

    .internal-report-page .table td {
        border-bottom-color: #2f4067;
    }

    .internal-report-page.public-share-report .public-report-context {
        background:
            radial-gradient(circle at 8% 0%, rgba(76, 135, 255, .16) 0%, transparent 34%),
            linear-gradient(180deg, #19233d 0%, #18223a 100%);
        border-color: #3a4d75;
    }

    .internal-report-page.public-share-report .public-report-context article {
        background: rgba(17, 24, 39, .42);
        border-color: #34466e;
    }

    .internal-report-page.public-share-report .public-report-context span {
        color: #8fb4ff;
    }

    .internal-report-page.public-share-report .public-report-context p {
        color: #cbd5e1;
    }
}

.alert {
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
}
.alert-success { background: rgba(0,204,102,.1); border-color: rgba(0,204,102,.4); }
.alert-error { background: rgba(255,50,51,.1); border-color: rgba(255,50,51,.4); }

.muted { color: var(--muted); font-size: .95rem; }
.empty-state {
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 18px;
    background: var(--surface-soft);
    color: var(--muted);
}
.domain-row, .session-row { display: grid; gap: 8px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.ad-wrap, .ad-panel { margin-bottom: 18px; }
.result-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.result-nav a {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 6px 10px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface-soft);
    font-weight: 700;
}
.result-nav a:hover {
    background: rgba(13, 91, 255, .12);
    text-decoration: none;
}
.crawl-tree-wrap {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-soft);
    padding: 10px 12px;
    max-height: 380px;
    overflow: auto;
}
.crawl-tree {
    list-style: none;
    margin: 6px 0 0;
    padding-left: 14px;
    border-left: 1px dashed var(--line);
}
.crawl-tree > li {
    margin: 6px 0;
}
.crawl-tree-node {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.crawl-tree-depth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    min-width: 34px;
    padding: 2px 8px;
    font-size: .72rem;
    color: var(--muted);
    background: var(--surface);
}
.crawl-tree-node a {
    word-break: break-word;
}
.focus-panel {
    border: 2px solid var(--accent);
}
pre {
    overflow: auto;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
}

.footer {
    margin-top: 54px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    background:
        linear-gradient(180deg, #10182a 0%, #0c1220 100%);
    color: #d8e2f4;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(240px, 1.55fr) repeat(4, minmax(135px, 1fr));
    gap: 34px;
    padding: 40px 0 34px;
    align-items: start;
}

.footer-brand {
    display: grid;
    gap: 12px;
    max-width: 430px;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.footer-brand p {
    margin: 0;
    color: #b8c5da;
    line-height: 1.6;
}

.footer-column {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-column h2 {
    margin: 0 0 3px;
    color: #ffffff;
    font-size: .92rem;
    letter-spacing: 0;
}

.footer a {
    color: #c7d2e6;
    font-weight: 700;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(216, 226, 244, .14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 22px;
    color: #aebbd0;
    font-weight: 700;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #aebbd0;
    font-size: .95rem;
}

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

.footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer {
        margin-top: 38px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 0 26px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 24px;
    }

    .footer-bottom-links {
        gap: 12px;
    }
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 32px rgba(0, 0, 0, .16);
    padding: 16px;
}
.cookie-banner.hidden { display: none; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cookie-content p { margin: 8px 0; }
.cookie-meta {
    color: var(--muted);
    font-size: .95rem;
}
.cookie-note {
    color: var(--muted);
    font-size: .9rem;
}
.cookie-modal {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    width: min(560px, 92vw);
}
.cookie-modal form { padding: 18px; }
.cookie-modal .cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}
.cookie-modal .cookie-option input { margin-top: 2px; }
.cookie-modal .cookie-option span { display: grid; gap: 2px; }
.cookie-modal .cookie-option small {
    color: var(--muted);
    line-height: 1.35;
}

@media (prefers-color-scheme: dark) {
    .cookie-banner {
        background: #1a2643;
        border-color: #3f5687;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .46);
    }

    .cookie-banner .cookie-meta,
    .cookie-banner .cookie-note {
        color: #c1d1f6;
    }

    .cookie-banner a,
    .cookie-modal a {
        color: #8eb5ff;
    }

    .cookie-modal {
        background: #18233d;
        border-color: #415a8e;
        box-shadow: 0 26px 54px rgba(0, 0, 0, .5);
    }

    #cookie-modal::backdrop {
        background: rgba(6, 10, 20, .64);
    }

    .cookie-modal .cookie-option {
        background: #111b31;
        border-color: #3d5280;
    }

    .cookie-modal .cookie-option small {
        color: #bac8ea;
    }

    .cookie-modal .btn-ghost {
        border-color: #4c6398;
        color: #d8e4ff;
        background: rgba(76, 99, 152, .2);
    }
}

.cta-band {
    background: var(--accent-soft);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.status-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.status-step {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: var(--surface-soft);
}

.status-step strong {
    display: block;
    margin-bottom: 4px;
}

.status-wait-header h1,
.status-detail strong,
.compare-scan-card strong {
    overflow-wrap: anywhere;
}

.status-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin: 16px 0 6px;
}

.status-detail,
.compare-scan-card,
.compare-delta-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: var(--surface);
    position: relative;
}

.status-detail span,
.compare-scan-card span,
.compare-delta-card span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-detail strong,
.compare-scan-card strong,
.compare-delta-card strong {
    display: block;
    margin-top: 4px;
}

.scan-activity {
    position: relative;
    min-height: 58px;
    margin: 16px 0 4px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 42%, var(--surface)) 0%, var(--surface) 78%);
}

.scan-activity::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    height: 12px;
    border-radius: 999px;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 46%, #ffffff), transparent);
    animation: scanActivitySweep 2.8s ease-in-out infinite;
}

.scan-activity span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 18%, var(--line));
    opacity: .4;
}

.scan-activity span + span {
    display: none;
}

.status-progress {
    margin-top: 18px;
}

.status-steps {
    align-items: stretch;
}

.status-step {
    position: relative;
    display: grid;
    gap: 6px;
    overflow: hidden;
}

.status-step.is-done {
    border-color: color-mix(in srgb, var(--success) 38%, var(--line));
    background: color-mix(in srgb, rgba(0, 204, 102, .1) 62%, var(--surface));
}

.status-step.is-active {
    border-color: color-mix(in srgb, #ffaa32 42%, var(--line));
    background: color-mix(in srgb, rgba(255, 170, 50, .16) 62%, var(--surface));
}

.status-step.is-failed {
    border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
    background: color-mix(in srgb, rgba(255, 50, 51, .1) 62%, var(--surface));
}

.status-step-state {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    color: color-mix(in srgb, var(--text) 76%, var(--muted));
    background: rgba(100, 116, 139, .1);
    font-size: .72rem;
    font-weight: 900;
}

.status-step.is-done .status-step-state {
    color: #007a41;
    background: rgba(0, 204, 102, .12);
}

.status-step.is-active .status-step-state {
    color: color-mix(in srgb, #ffaa32 58%, #0f172a);
    background: rgba(255, 170, 50, .18);
}

.status-step.is-failed .status-step-state {
    color: color-mix(in srgb, #ff3233 74%, #0f172a);
    background: rgba(255, 50, 51, .12);
}

.status-phase-note {
    margin: -4px 0 16px;
    color: var(--muted);
    font-size: .9rem;
}

.status-queue-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
    border-radius: 6px;
    padding: 14px;
    background: color-mix(in srgb, var(--accent-soft) 38%, var(--surface));
    margin-bottom: 14px;
}

.status-queue-box h2 {
    margin-bottom: 4px;
}

.status-queue-box p,
.status-note p {
    margin: 0;
}

.status-queue-box p + p,
.status-note p + p {
    margin-top: 5px;
}

.status-note {
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 12px 14px;
    background: color-mix(in srgb, var(--accent-soft) 32%, var(--surface));
    margin-bottom: 14px;
}

.status-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.status-checklist span {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    background: var(--surface-soft);
    font-weight: 700;
    animation: statusCheckPulse 2.6s ease-in-out infinite;
    animation-delay: var(--check-delay, 0s);
    min-width: 0;
    overflow-wrap: anywhere;
}

.status-checklist i {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid var(--success);
    position: relative;
    flex: 0 0 16px;
}

.status-checklist i::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid var(--success);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.progress-line {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--line);
    margin: 14px 0;
}

.progress-line span {
    display: block;
    height: 100%;
    width: 50%;
    border-radius: inherit;
    background: var(--accent);
}

.progress-line.is-running span {
    width: 74%;
}

.progress-line.is-failed span {
    width: 100%;
    background: var(--danger);
}

.compare-hero {
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
    background: var(--surface);
}

.compare-hero.compare-winner-a,
.compare-hero.compare-winner-b,
.compare-hero.compare-winner-neutral {
    background: var(--surface);
}

.compare-winner-badge {
    gap: 6px;
    font-weight: 900;
    white-space: nowrap;
}

.compare-winner-badge-a,
.compare-winner-badge-b {
    border-color: color-mix(in srgb, var(--success) 34%, var(--line));
    background: color-mix(in srgb, rgba(0, 204, 102, .13) 72%, var(--surface));
}

.compare-scan-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(210px, .72fr);
    gap: 12px;
    margin-top: 14px;
    align-items: stretch;
}

.compare-scan-card small,
.compare-delta-card small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
}

.compare-scan-card b,
.compare-delta-card strong {
    display: block;
    font-size: 1.8rem;
    line-height: 1.1;
    margin-top: 8px;
}

.compare-scan-card-a {
    border-left: 5px solid var(--accent);
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 18%, var(--surface)) 0%, var(--surface) 100%);
}

.compare-scan-card-b {
    border-left: 5px solid #6c7a96;
    background: linear-gradient(160deg, color-mix(in srgb, var(--surface-soft) 78%, var(--surface)) 0%, var(--surface) 100%);
}

.compare-scan-card-winner {
    border-color: color-mix(in srgb, var(--success) 42%, var(--line));
    border-left-color: var(--success);
    background: linear-gradient(160deg, color-mix(in srgb, rgba(0, 204, 102, .11) 70%, var(--surface)) 0%, var(--surface) 100%);
    box-shadow: 0 16px 30px -24px rgba(0, 204, 102, .62), inset 0 1px 0 rgba(255, 255, 255, .72);
}

.compare-scan-card-winner::after {
    content: "";
    display: none;
}

.compare-trophy {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, #f8fafc 80%, transparent);
    border: 1px solid color-mix(in srgb, #f59e0b 35%, var(--line));
    color: #b45309;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .01em;
    box-shadow: 0 10px 18px -16px rgba(0, 0, 0, .24);
    z-index: 1;
}

.compare-delta-good strong {
    color: var(--success);
}

.compare-delta-poor strong {
    color: var(--danger);
}

.compare-delta-neutral strong {
    color: var(--muted);
}

.compare-vs-divider {
    align-self: center;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.compare-col-head {
    position: relative;
}

.compare-col-head-a,
.compare-col-a {
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 22%, transparent), transparent);
}

.compare-col-head-b,
.compare-col-b {
    background: linear-gradient(180deg, color-mix(in srgb, rgba(0, 204, 102, .12) 80%, transparent), transparent);
}

.compare-col-a {
    box-shadow: inset -1px 0 0 color-mix(in srgb, var(--accent) 16%, var(--line));
}

.compare-col-b {
    box-shadow: inset 1px 0 0 color-mix(in srgb, var(--success) 18%, var(--line));
}

.compare-reading {
    display: grid;
    gap: 5px;
    min-width: 150px;
}

.compare-reading-value {
    font-weight: 800;
}

.compare-reading-tone-good .compare-reading-value {
    color: var(--success);
}

.compare-reading-tone-medium .compare-reading-value,
.compare-reading-tone-needs_improvement .compare-reading-value {
    color: color-mix(in srgb, #ff9f1a 82%, var(--text));
}

.compare-reading-tone-poor .compare-reading-value {
    color: var(--danger);
}

.compare-reading-tone-unavailable .compare-reading-value {
    color: var(--muted);
}

.compare-reading-side-a,
.compare-reading-side-b {
    border-radius: 10px;
    padding: 7px 9px;
}

.compare-reading-side-a {
    background: color-mix(in srgb, var(--accent-soft) 24%, var(--surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, var(--line));
}

.compare-reading-side-b {
    background: color-mix(in srgb, rgba(0, 204, 102, .12) 80%, var(--surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 18%, var(--line));
}

.compare-next-step {
    max-width: 280px;
    color: color-mix(in srgb, var(--text) 76%, var(--muted));
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.compare-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.compare-summary-card {
    margin-bottom: 0;
}

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

.compare-summary-head h2 {
    margin: 0;
}

.compare-mini-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.compare-score-table {
    min-width: 780px;
}

.compare-detail-table {
    min-width: 1040px;
    table-layout: fixed;
}

.compare-detail-table th,
.compare-detail-table td {
    padding: 7px 8px;
}

.compare-detail-table th:nth-child(1),
.compare-detail-table td:nth-child(1) {
    width: 135px;
}

.compare-detail-table th:nth-child(2),
.compare-detail-table td:nth-child(2) {
    width: 210px;
    overflow-wrap: anywhere;
}

.compare-detail-table th:nth-child(3),
.compare-detail-table td:nth-child(3),
.compare-detail-table th:nth-child(4),
.compare-detail-table td:nth-child(4) {
    width: 170px;
}

.compare-detail-table th:nth-child(5),
.compare-detail-table td:nth-child(5) {
    width: 110px;
}

.compare-detail-table th:nth-child(6),
.compare-detail-table td:nth-child(6) {
    width: 120px;
}

.compare-detail-table .status {
    white-space: nowrap;
}

.compare-group-row td {
    padding: 10px 8px 6px;
    background: var(--surface-soft);
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.compare-row-good {
    border-color: color-mix(in srgb, var(--success) 32%, var(--line));
    background: color-mix(in srgb, rgba(0, 204, 102, .1) 72%, var(--surface));
}

.compare-row-neutral {
    border-color: color-mix(in srgb, var(--warning) 30%, var(--line));
    background: color-mix(in srgb, rgba(255, 170, 50, .1) 72%, var(--surface));
}

.compare-row-poor {
    border-color: color-mix(in srgb, var(--danger) 32%, var(--line));
    background: color-mix(in srgb, rgba(255, 50, 51, .1) 72%, var(--surface));
}

.compare-row-unavailable {
    border-color: var(--line);
    background: color-mix(in srgb, var(--surface-soft) 82%, var(--surface));
}

.table tbody tr.compare-row-good,
.table tbody tr.compare-row-neutral,
.table tbody tr.compare-row-poor,
.table tbody tr.compare-row-unavailable {
    background: transparent;
}

.table tbody tr.compare-row-good td:first-child {
    box-shadow: inset 3px 0 0 var(--success);
}

.table tbody tr.compare-row-neutral td:first-child {
    box-shadow: inset 3px 0 0 var(--warning);
}

.table tbody tr.compare-row-poor td:first-child {
    box-shadow: inset 3px 0 0 var(--danger);
}

.table tbody tr.compare-row-unavailable td:first-child {
    box-shadow: inset 3px 0 0 var(--line);
}

.billing-feature-list {
    list-style: none;
    margin: 14px 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.billing-feature-list li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--success) 18%, var(--line));
    border-radius: 6px;
    padding: 8px 10px;
    background: color-mix(in srgb, rgba(0, 204, 102, .08) 76%, var(--surface));
    font-weight: 700;
}

.billing-feature-mark {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--success) 16%, var(--surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--success) 35%, var(--line));
}

.billing-feature-mark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid var(--success);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.billing-check-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.billing-check-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    background: var(--surface-soft);
}

.billing-check-row input {
    margin: 3px 0 0;
}

@keyframes scanActivitySweep {
    0% { transform: translateX(-105%); }
    55%, 100% { transform: translateX(105%); }
}

@keyframes statusCheckPulse {
    0%, 100% {
        border-color: var(--line);
        transform: translateY(0);
    }
    45% {
        border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scan-activity::after,
    .status-checklist span {
        animation: none;
    }
}

@media (max-width: 920px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .dashboard-overview { grid-template-columns: 1fr; }
    .dashboard-overview-primary { grid-template-columns: 1fr; }
    .dashboard-score-stack { grid-template-columns: 1fr; }
    .dashboard-subscore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analyze-form { grid-template-columns: 1fr; }
    .home-hero,
    .home-stats-panel,
    .ai-landing-panel {
        grid-template-columns: 1fr;
    }
    .home-analyze-main,
    .keyword-grid,
    .home-stats-grid,
    .benefit-grid,
    .check-grid,
    .audience-grid,
    .process-list,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .report-preview {
        padding: 16px;
    }
    .page-app-shell .topbar {
        position: relative;
    }
    .app-shell {
        width: min(1120px, 92vw);
        display: block;
        margin-top: 12px;
    }
    .app-sidebar {
        position: sticky;
        top: 0;
        z-index: 48;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        max-height: none;
        overflow: visible;
        border-radius: 14px;
        padding: 10px;
    }
    .app-sidebar-brand {
        border: 0;
        padding: 0;
        min-width: 116px;
    }
    .app-sidebar-brand strong {
        font-size: .86rem;
    }
    .app-sidebar-nav {
        display: flex;
        gap: 6px;
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 1px;
    }
    .app-sidebar-group {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
    }
    .app-sidebar-group-title {
        padding: 0 2px;
        white-space: nowrap;
    }
    .app-sidebar-group-links {
        display: flex;
        gap: 6px;
    }
    .app-sidebar-link {
        min-height: 36px;
        border-radius: 999px;
        padding: 7px 10px;
        white-space: nowrap;
        font-size: .84rem;
    }
    .app-sidebar-logout {
        border: 0;
        margin: 0;
        padding: 0;
    }
    .page-app-shell .area-nav-wrap {
        position: static;
    }
    .area-nav-shell {
        padding: 6px 0;
    }
    .area-nav {
        gap: 8px;
        align-items: center;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        flex-wrap: nowrap;
        padding-bottom: 2px;
    }
    .area-nav-group {
        min-width: min(280px, 78vw);
        scroll-snap-align: start;
        border-left: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent-soft));
        padding: 6px 8px 6px 10px;
    }
    .area-nav-links {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .topbar-inner {
        align-items: flex-start;
        padding: 12px 0;
    }
    .topbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .nav {
        gap: 8px;
    }
    .nav-link {
        min-height: 36px;
        padding: 7px 10px;
    }
    .service-switcher {
        max-width: 100%;
        overflow-x: auto;
    }
    .service-switcher-link {
        font-size: .8rem;
    }
    .dashboard-latest-facts,
    .analyze-note-grid,
    .auth-shell {
        grid-template-columns: 1fr;
    }
    .analyze-input-shell {
        grid-template-columns: 1fr;
    }
    .history-compare-toolbar {
        display: grid;
    }
    .history-compare-actions {
        width: 100%;
    }
    .nav {
        justify-content: flex-start;
    }
    .status-steps {
        grid-template-columns: 1fr;
    }
    .status-queue-box {
        display: grid;
    }
    .compare-scan-grid {
        grid-template-columns: 1fr;
    }
    .compare-vs-divider {
        justify-self: center;
    }
    .hero,
    .panel {
        padding: 16px;
    }
    .admin-action-form,
    .admin-action-form-credit {
        grid-template-columns: 1fr;
    }
    .table td.actions-cell {
        min-width: 240px;
    }
    .internal-score-wrap {
        justify-items: start;
    }
    .audit-meta-row {
        gap: 6px;
    }
    .executive-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pagespeed-hub-score-grid,
    .vitals-metric-grid {
        grid-template-columns: 1fr;
    }
    .internal-report-page.public-share-report .public-report-context-grid {
        grid-template-columns: 1fr;
    }
    .priority-list {
        padding-left: 18px;
    }
    .internal-report-page .recommendation-check-overview,
    .internal-report-page .privacy-summary-grid,
    .internal-report-page .privacy-signal-grid,
    .internal-report-page .privacy-service-list-compact,
    .internal-report-page .recommendation-help-grid {
        grid-template-columns: 1fr;
    }
    .internal-report-page .privacy-state {
        grid-template-columns: 1fr;
    }
    .internal-report-page .privacy-browser-check {
        display: grid;
    }
    .internal-report-page .privacy-browser-facts {
        justify-content: flex-start;
        max-width: none;
    }
    .internal-report-page .recommendation-check-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }
    .internal-report-page .recommendation-check-caret {
        grid-column: 1 / -1;
        justify-self: end;
    }
    .internal-report-page .recommendation-category-summary {
        align-items: flex-start;
        flex-direction: column;
    }
    .internal-report-page .recommendation-category-meta {
        justify-content: flex-start;
    }
    .internal-report-hero {
        align-items: flex-start;
    }
    .internal-report-hero .report-score-ring {
        width: 130px;
        height: 130px;
    }
    .internal-report-hero .report-score-ring::before {
        border-width: 10px;
    }
}

@media (max-width: 640px) {
    .dashboard-subscore-card {
        grid-template-columns: auto minmax(0, 1fr);
        text-align: left;
    }
    .dashboard-subscore-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .app-sidebar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .app-sidebar-brand {
        min-width: 0;
    }
    .app-sidebar-nav {
        width: 100%;
    }
    .app-sidebar-group,
    .app-sidebar-group-links {
        min-width: 0;
    }
    .app-sidebar-logout {
        justify-self: start;
    }
    .executive-kpi-grid {
        grid-template-columns: 1fr;
    }
    .report-score-ring small {
        margin-top: -22px;
    }
    .internal-report-page .recommendation-check-row {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .internal-report-page .recommendation-check-status,
    .internal-report-page .recommendation-check-caret {
        grid-column: 2;
        justify-self: start;
    }
    .internal-report-page .recommendation-check-help {
        margin-left: 14px;
    }
    .internal-report-page .recommendation-finding-list {
        padding: 10px;
    }
}

@media (max-width: 920px) {
    .internal-report-hero {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 18px;
    }

    .internal-score-wrap {
        justify-items: start;
    }

    .internal-report-hero .report-score-ring {
        width: 156px;
        height: 156px;
    }

    .internal-report-hero .report-score-ring::after {
        inset: 17px;
    }

    .executive-insight-grid {
        grid-template-columns: 1fr;
    }

    .executive-insight-grid .insight-actions {
        grid-column: auto;
    }

    .priority-list {
        padding-left: 0;
    }
}

@media (max-width: 560px) {
    .internal-report-page .panel {
        padding: 16px;
        border-radius: 14px;
    }

    .internal-report-hero .report-score-ring {
        width: 138px;
        height: 138px;
    }

    .internal-report-hero .report-score-ring::before {
        -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
        mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px));
    }

    .internal-report-hero .report-score-ring::after {
        inset: 15px;
    }

    .internal-report-hero .report-score-ring span {
        font-size: 2.45rem;
    }

    .internal-report-hero .report-score-ring small {
        margin-top: -34px;
        font-size: .84rem;
    }

    .executive-kpi-card {
        min-height: 148px;
    }

    .pagespeed-hub-score-grid,
    .vitals-metric-grid {
        grid-template-columns: 1fr;
    }
}

/* Internal report phase 1: wide canvas + tabbed dashboard */
.scan-result-page {
    width: min(1320px, 96vw);
    max-width: 1320px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.scan-result-page > .panel,
.scan-result-page > .grid-2,
.scan-result-page > .grid-3,
.scan-result-page > .score-overview {
    margin-bottom: 16px;
}

.scan-result-page .report-tab-nav-panel {
    border-radius: 18px;
    border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
    background: linear-gradient(160deg, color-mix(in srgb, var(--accent-soft) 44%, #fff) 0%, #fff 100%);
}

.scan-result-page .report-tab-nav-panel h2 {
    margin-bottom: 10px;
}

.scan-result-page .report-tab-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.scan-result-page .report-tab-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 82%, var(--accent));
    padding: 9px 16px;
    font-weight: 700;
    color: color-mix(in srgb, var(--text) 85%, var(--accent-2));
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    text-decoration: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}

.scan-result-page .report-tab-trigger:hover {
    text-decoration: none;
    border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -14px rgba(20, 87, 217, .45);
}

.scan-result-page .report-tab-trigger.is-active,
.scan-result-page .report-tab-trigger[aria-selected="true"] {
    color: #fff;
    border-color: color-mix(in srgb, var(--accent) 72%, var(--accent-2));
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 94%, #4e8dff) 0%, color-mix(in srgb, var(--accent-2) 88%, #0f3f9f) 100%);
    box-shadow: 0 14px 24px -16px rgba(20, 87, 217, .62), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.scan-result-page .report-tab-panel[hidden] {
    display: none !important;
}

.scan-result-page .score-composition-panel {
    border-radius: 16px;
    border-color: color-mix(in srgb, var(--accent) 16%, var(--line));
}

.scan-result-page .score-composition-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.scan-result-page .score-composition-item {
    --tone-color: #8da1bf;
    --score-meter-color: #94a3b8;
    --score-meter-track: rgba(148, 163, 184, .18);
    color: inherit;
    border: 1px solid color-mix(in srgb, var(--line) 84%, var(--tone-color));
    border-radius: 12px;
    padding: 12px 13px 11px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    box-shadow: 0 10px 20px -18px rgba(15, 26, 51, .45);
    text-decoration: none;
}

.scan-result-page .score-composition-link {
    display: block;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.scan-result-page .score-composition-link:hover,
.scan-result-page .score-composition-link:focus-visible {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
    box-shadow: 0 16px 28px -22px rgba(37, 99, 235, .45);
    outline: none;
}

.scan-result-page .score-composition-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
    outline-offset: 3px;
}

.scan-result-page .score-composition-item.score-meter-critical {
    --score-meter-color: #ff3233;
}

.scan-result-page .score-composition-item.score-meter-warning {
    --score-meter-color: #ffaa32;
}

.scan-result-page .score-composition-item.score-meter-good {
    --score-meter-color: #00cc66;
}

.scan-result-page .score-composition-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.scan-result-page .score-composition-head h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.scan-result-page .score-composition-head strong {
    font-size: 1.05rem;
    letter-spacing: -.01em;
}

.scan-result-page .score-composition-meter {
    height: 8px;
    border-radius: 999px;
    background: var(--score-meter-track);
    overflow: hidden;
    margin-top: 9px;
}

.scan-result-page .score-composition-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--score-meter-color);
}

.scan-result-page .report-test-meter {
    --report-test-meter-color: #94a3b8;
    --report-test-meter-track: rgba(148, 163, 184, .18);
    display: grid;
    gap: 5px;
    width: min(100%, 280px);
    margin-top: 8px;
    min-width: 0;
}

.scan-result-page .performance-lever-item .report-test-meter,
.internal-report-page .area-recommendation-teaser .report-test-meter,
.internal-report-page .recommendation-check-main .report-test-meter {
    width: min(100%, 240px);
    margin-top: 2px;
}

.internal-report-page .recommendation-check-main .report-test-meter {
    margin-top: 4px;
}

.scan-result-page .report-test-meter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: color-mix(in srgb, var(--text) 74%, var(--muted));
    font-size: .74rem;
    font-weight: 850;
}

.scan-result-page .report-test-meter__head strong {
    color: var(--report-test-meter-color);
    font-size: .78rem;
    font-weight: 950;
    white-space: nowrap;
}

.scan-result-page .report-test-meter__track {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: var(--report-test-meter-track);
    overflow: hidden;
}

.scan-result-page .report-test-meter__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--report-test-meter-color);
}

.scan-result-page .report-test-meter--good {
    --report-test-meter-color: #00cc66;
    --report-test-meter-track: rgba(0, 204, 102, .16);
}

.scan-result-page .report-test-meter--review {
    --report-test-meter-color: #ffaa32;
    --report-test-meter-track: rgba(255, 170, 50, .2);
}

.scan-result-page .report-test-meter--urgent {
    --report-test-meter-color: #ff3233;
    --report-test-meter-track: rgba(255, 50, 51, .16);
}

.scan-result-page .report-test-meter--neutral {
    --report-test-meter-color: #75839b;
    --report-test-meter-track: rgba(117, 131, 155, .16);
}

.scan-result-page .report-test-meter--unavailable {
    --report-test-meter-color: #9aa6b8;
    --report-test-meter-track: rgba(154, 166, 184, .16);
}

.scan-result-page .score-composition-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.scan-result-page .score-composition-jump {
    color: var(--accent);
    font-weight: 800;
    white-space: nowrap;
}

.scan-result-page .score-composition-item-helper {
    --tone-color: #64748b;
    --score-meter-color: #64748b;
    min-height: 104px;
    background: linear-gradient(180deg, color-mix(in srgb, #ffffff 92%, var(--accent) 8%) 0%, #f8fbff 100%);
}

.scan-result-page .score-composition-item-helper .score-composition-head {
    align-items: flex-start;
}

.scan-result-page .score-composition-item-helper .score-composition-head strong {
    font-size: 1.55rem;
}

.scan-result-page .score-composition-info-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(37, 99, 235, .18);
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.scan-result-page .score-composition-helper-value {
    color: #1e293b;
}

.scan-result-page .score-composition-item-helper .score-composition-meta {
    padding-top: 10px;
    border-top: 1px dashed color-mix(in srgb, var(--line) 72%, var(--tone-color));
}

.scan-result-page .internal-report-hero.internal-score-critical {
    --internal-score-color: #ff3233;
    --internal-score-color-deep: #ff3233;
}

.scan-result-page .internal-report-hero.internal-score-weak {
    --internal-score-color: #ffaa32;
    --internal-score-color-deep: #ffaa32;
    --internal-score-soft: #fff4e4;
    --internal-score-soft-2: #ffe3bf;
    --internal-score-border: rgba(255, 170, 50, .3);
    --internal-score-glow: rgba(15, 23, 42, .14);
}

.scan-result-page .internal-report-hero.internal-score-solid {
    --internal-score-color: #ffaa32;
    --internal-score-color-deep: #ffaa32;
    --internal-score-soft: #fff4e4;
    --internal-score-soft-2: #ffe3bf;
    --internal-score-border: rgba(255, 170, 50, .3);
    --internal-score-glow: rgba(15, 23, 42, .14);
}

.scan-result-page .internal-report-hero.internal-score-good {
    --internal-score-color: #00cc66;
    --internal-score-color-deep: #00cc66;
    --internal-score-soft: #f8fafc;
    --internal-score-soft-2: #eef2ff;
    --internal-score-border: rgba(0, 204, 102, .3);
    --internal-score-glow: rgba(15, 23, 42, .14);
}

.scan-result-page .internal-report-hero.internal-score-excellent {
    --internal-score-color: #00cc66;
    --internal-score-color-deep: #00cc66;
    --internal-score-soft: #f8fafc;
    --internal-score-soft-2: #eef2ff;
    --internal-score-border: rgba(0, 204, 102, .3);
    --internal-score-glow: rgba(15, 23, 42, .14);
}

.scan-result-page .internal-report-hero .report-score-ring {
    --score-angle: calc(var(--score, 0) * 3.6deg);
    width: 228px;
    height: 228px;
    border-radius: 50%;
    position: relative;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 32% 22%, #ffffff 0%, #f8fbff 52%, #edf5ff 100%);
    box-shadow:
        0 30px 56px -38px rgba(15, 23, 42, .28),
        0 12px 26px -22px rgba(15, 26, 51, .42),
        inset 0 1px 0 rgba(255, 255, 255, .95);
    overflow: hidden;
}

.scan-result-page .internal-report-hero .report-score-ring::before,
.scan-result-page .internal-report-hero .report-score-ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px));
}

.scan-result-page .internal-report-hero .report-score-ring::before {
    background: conic-gradient(from -90deg, #edf2f7 0deg, #e5e7eb 360deg);
    opacity: 1;
}

.scan-result-page .internal-report-hero .report-score-ring::after {
    background: conic-gradient(
        from -90deg,
        color-mix(in srgb, var(--internal-score-color-deep) 90%, #071022) 0deg,
        color-mix(in srgb, var(--internal-score-color) 95%, #fff) var(--score-angle),
        rgba(161, 174, 197, .2) var(--score-angle),
        rgba(161, 174, 197, .1) 360deg
    );
    filter: drop-shadow(0 8px 12px rgba(15, 26, 51, .15));
}

.scan-result-page .internal-report-hero .report-score-core {
    position: absolute;
    inset: 25px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--internal-score-color) 30%, #fff);
    background: radial-gradient(circle at 35% 20%, rgba(255, 255, 255, .98) 0%, color-mix(in srgb, var(--internal-score-soft) 52%, #fff) 60%, color-mix(in srgb, var(--internal-score-soft-2) 94%, #fff) 100%);
    box-shadow: inset 0 2px 14px rgba(255, 255, 255, .8);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    z-index: 2;
}

.scan-result-page .internal-report-hero .report-score-core span {
    font-size: clamp(3rem, 4vw, 3.9rem);
    font-weight: 800;
    letter-spacing: -.04em;
    color: color-mix(in srgb, var(--internal-score-color-deep) 88%, #11213d);
    line-height: .95;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}

.scan-result-page .internal-report-hero .report-score-core small {
    margin-top: 0;
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: color-mix(in srgb, var(--internal-score-color-deep) 68%, #55617e);
}

.scan-result-page .internal-score-caption {
    margin: 0;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-size: .78rem;
}

.scan-result-page .internal-score-method {
    margin: 0;
    text-align: center;
    font-size: .82rem;
}

.scan-result-page .report-score-gauge-stack {
    --score-segment-gap: rgba(255, 255, 255, .96);
    --score-segment-track: rgba(148, 163, 184, .26);
    position: relative;
    width: 276px;
    height: 276px;
    display: grid;
    place-items: center;
    margin: 0 auto;
}

.scan-result-page .report-score-segment-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--score-segments);
    opacity: .68;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}

.scan-result-page .internal-score-wrap {
    position: relative;
    width: min(390px, 100%);
    min-height: 0;
    padding: 24px 22px 0;
    justify-items: center;
}

.scan-result-page .gauge-score-breakdown {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    justify-content: center;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
    margin: 18px auto 14px;
    pointer-events: auto;
}

.scan-result-page .gauge-score-chip {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 5px 10px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, #cbd5e1);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, #ffffff);
    color: color-mix(in srgb, var(--text) 92%, #334155);
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.05;
    white-space: nowrap;
    transform: none;
    box-shadow: 0 10px 20px -18px rgba(15, 23, 42, .35);
}

.scan-result-page .gauge-score-chip.gauge-chip-perf {
    order: 8;
}

.scan-result-page .gauge-score-chip.gauge-chip-tech {
    order: 1;
}

.scan-result-page .gauge-score-chip.gauge-chip-content {
    order: 2;
}

.scan-result-page .gauge-score-chip.gauge-chip-links {
    order: 3;
}

.scan-result-page .gauge-score-chip.gauge-chip-a11y {
    order: 4;
}

.scan-result-page .gauge-score-chip.gauge-chip-sec {
    order: 5;
}

.scan-result-page .gauge-score-chip.gauge-chip-data {
    order: 6;
}

.scan-result-page .gauge-score-chip.gauge-chip-trust {
    order: 7;
}

.scan-result-page .gauge-score-chip strong {
    font-size: .72rem;
    font-weight: 900;
    color: color-mix(in srgb, var(--text) 78%, #64748b);
}

.scan-result-page .gauge-score-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #94a3b8;
    border: 1px solid color-mix(in srgb, var(--surface) 70%, #ffffff);
}

.scan-result-page .gauge-score-chip.gauge-point-critical .gauge-score-dot {
    background: #ff3233;
    border-color: #ff3233;
}

.scan-result-page .gauge-score-chip.gauge-point-warning .gauge-score-dot {
    background: #ffaa32;
    border-color: #ffaa32;
}

.scan-result-page .gauge-score-chip.gauge-point-good .gauge-score-dot {
    background: #00cc66;
    border-color: #00cc66;
}

.scan-result-page .gauge-score-chip.gauge-point-neutral .gauge-score-dot {
    background: #94a3b8;
    border-color: #94a3b8;
}

.scan-result-page .gauge-score-chip.gauge-chip-tech .gauge-score-dot {
    background: #ff3233;
    border-color: #ff3233;
}

.scan-result-page .gauge-score-chip.gauge-chip-content .gauge-score-dot {
    background: #ff5a33;
    border-color: #ff5a33;
}

.scan-result-page .gauge-score-chip.gauge-chip-links .gauge-score-dot {
    background: #ff7f33;
    border-color: #ff7f33;
}

.scan-result-page .gauge-score-chip.gauge-chip-a11y .gauge-score-dot {
    background: #ffaa32;
    border-color: #ffaa32;
}

.scan-result-page .gauge-score-chip.gauge-chip-sec .gauge-score-dot {
    background: #ffaa32;
    border-color: #ffaa32;
}

.scan-result-page .gauge-score-chip.gauge-chip-data .gauge-score-dot {
    background: #00cc66;
    border-color: #00cc66;
}

.scan-result-page .gauge-score-chip.gauge-chip-trust .gauge-score-dot {
    background: #00cc66;
    border-color: #00cc66;
}

.scan-result-page .gauge-score-chip.gauge-chip-perf .gauge-score-dot {
    background: #00cc66;
    border-color: #00cc66;
}

.scan-result-page .gauge-score-chip.gauge-chip-missing .gauge-score-dot {
    background: #94a3b8;
    border-color: #94a3b8;
}

.scan-result-page .gauge-segment-note {
    margin: 0 0 14px;
    text-align: center;
    font-size: .72rem;
    letter-spacing: .01em;
}

.scan-result-page .score-zone-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.scan-result-page .score-zone-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid color-mix(in srgb, var(--line) 70%, #fff);
}

.scan-result-page .score-zone-legend span::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    background: currentColor;
}

.scan-result-page .score-zone-legend .zone-critical {
    color: #ff3233;
    background: #fef2f2;
    border-color: rgba(255, 50, 51, .42);
}

.scan-result-page .score-zone-legend .zone-critical::before {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 9px solid #ff3233;
}

.scan-result-page .score-zone-legend .zone-warning {
    color: #ffaa32;
    background: #fff4e4;
    border-color: rgba(255, 170, 50, .55);
}

.scan-result-page .score-zone-legend .zone-warning::before {
    background: #ffaa32;
    border-radius: 2px;
}

.scan-result-page .score-zone-legend .zone-good {
    color: #007a3d;
    background: #f0fdf4;
    border-color: rgba(0, 204, 102, .46);
}

.scan-result-page .score-zone-legend .zone-good::before {
    background: #00cc66;
    border-radius: 999px;
}

.scan-result-page .executive-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
}

.scan-result-page .executive-kpi-card {
    min-height: 176px;
    padding: 18px 18px 16px 20px;
    border-radius: 14px;
}

.scan-result-page .executive-kpi-card .score-value {
    font-size: clamp(2.2rem, 2.2vw + 1.1rem, 3rem);
}

.scan-result-page .pagespeed-hub {
    border-radius: 20px;
    padding: clamp(20px, 2vw, 28px);
}

.scan-result-page .pagespeed-hub-score-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
}

.scan-result-page .pagespeed-hub-score-card {
    min-height: 220px;
}

.scan-result-page .vitals-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.scan-result-page .vitals-metric-card {
    min-height: 176px;
}

.scan-result-page .vitals-metric-head .status,
.scan-result-page .pagespeed-hub-score-head .status {
    font-weight: 800;
}

.scan-result-page .table {
    width: 100%;
}

@media (max-width: 1360px) {
    .scan-result-page {
        width: min(1240px, 96vw);
        max-width: 1240px;
    }
}

@media (max-width: 980px) {
    .scan-result-page {
        width: 100%;
        max-width: none;
        margin-left: 0;
        transform: none;
    }

    .scan-result-page .report-tab-nav {
        gap: 8px;
    }

    .scan-result-page .report-tab-trigger {
        padding: 8px 14px;
        font-size: .94rem;
    }

    .scan-result-page .internal-report-hero .report-score-ring {
        width: 182px;
        height: 182px;
    }

    .scan-result-page .internal-report-hero .report-score-ring::before,
    .scan-result-page .internal-report-hero .report-score-ring::after {
        -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 19px), #000 calc(100% - 18px));
        mask: radial-gradient(farthest-side, transparent calc(100% - 19px), #000 calc(100% - 18px));
    }

    .scan-result-page .internal-report-hero .report-score-core {
        inset: 20px;
    }

    .scan-result-page .pagespeed-hub-score-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .scan-result-page .internal-score-wrap {
        width: 100%;
        min-height: 0;
        padding: 0;
    }

    .scan-result-page .gauge-score-breakdown {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 7px 8px;
        width: 100%;
        margin: 14px auto 10px;
        pointer-events: auto;
    }

    .scan-result-page .gauge-score-chip {
        position: static;
        transform: none !important;
    }

    .scan-result-page .score-composition-list {
        grid-template-columns: 1fr;
    }

    .scan-result-page .internal-report-hero .report-score-ring {
        width: 158px;
        height: 158px;
    }

    .scan-result-page .internal-report-hero .report-score-core {
        inset: 16px;
    }

    .scan-result-page .internal-report-hero .report-score-core span {
        font-size: 2.7rem;
    }

    .scan-result-page .internal-score-method {
        text-align: left;
    }

    .scan-result-page .score-zone-legend {
        justify-content: flex-start;
    }
}

/* Phase 1B: visual polish, contrast hardening, and 3-zone score gauge */
.scan-result-page .report-tab-nav-panel {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 44%, #ffffff) 0%, color-mix(in srgb, #ffffff 96%, var(--accent-soft)) 100%);
    box-shadow: 0 16px 30px -24px rgba(12, 35, 90, .38);
}

.scan-result-page .report-tab-trigger {
    color: color-mix(in srgb, var(--text) 90%, #2d529f);
    border-color: color-mix(in srgb, var(--line) 70%, #3f66bf);
    background: linear-gradient(180deg, #ffffff 0%, #edf3ff 100%);
}

.scan-result-page .report-tab-trigger:hover {
    color: color-mix(in srgb, var(--text) 94%, #163e90);
    border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
    box-shadow: 0 10px 20px -16px rgba(20, 87, 217, .52);
}

.scan-result-page .report-tab-trigger.is-active,
.scan-result-page .report-tab-trigger[aria-selected="true"] {
    box-shadow: 0 16px 26px -20px rgba(17, 70, 180, .75), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.scan-result-page .internal-report-hero.internal-score-solid {
    --internal-score-color: #ffaa32;
    --internal-score-color-deep: #ffaa32;
    --internal-score-soft: #fff4e4;
    --internal-score-soft-2: #ffe3bf;
    --internal-score-border: rgba(255, 170, 50, .3);
    --internal-score-glow: rgba(15, 23, 42, .14);
}

.scan-result-page .internal-report-hero.internal-score-zone-critical {
    --internal-score-color: #ff3233;
    --internal-score-color-deep: #ff3233;
    --internal-score-soft: #fcedee;
    --internal-score-soft-2: #f8dfe2;
    --internal-score-border: rgba(255, 50, 51, .34);
    --internal-score-glow: rgba(198, 61, 69, .22);
}

.scan-result-page .internal-report-hero.internal-score-zone-warning {
    --internal-score-color: #ffaa32;
    --internal-score-color-deep: #ffaa32;
    --internal-score-soft: #fff4e4;
    --internal-score-soft-2: #ffe3bf;
    --internal-score-border: rgba(255, 170, 50, .34);
    --internal-score-glow: rgba(255, 170, 50, .18);
}

.scan-result-page .internal-report-hero.internal-score-zone-good {
    --internal-score-color: #00cc66;
    --internal-score-color-deep: #00cc66;
    --internal-score-soft: #f8fafc;
    --internal-score-soft-2: #eef2ff;
    --internal-score-border: rgba(0, 204, 102, .32);
    --internal-score-glow: rgba(15, 23, 42, .14);
}

.scan-result-page .internal-report-hero .report-score-ring {
    width: 234px;
    height: 234px;
    box-shadow:
        0 34px 58px -38px rgba(15, 23, 42, .28),
        0 14px 28px -24px rgba(15, 26, 51, .5),
        inset 0 1px 0 rgba(255, 255, 255, .94);
}

.scan-result-page .internal-report-hero .report-score-ring::before {
    background: conic-gradient(from -90deg, #edf2f7 0deg, #e5e7eb 360deg);
    opacity: 1;
}

.scan-result-page .internal-report-hero .report-score-ring.zone-critical {
    --gauge-zone-color: #ff3233;
    --gauge-zone-color-deep: #ff3233;
}

.scan-result-page .internal-report-hero .report-score-ring.zone-warning {
    --gauge-zone-color: #ffaa32;
    --gauge-zone-color-deep: #ffaa32;
}

.scan-result-page .internal-report-hero .report-score-ring.zone-good {
    --gauge-zone-color: #00cc66;
    --gauge-zone-color-deep: #00cc66;
}

.scan-result-page .internal-report-hero .report-score-ring::after {
    background: conic-gradient(
        from -90deg,
        var(--gauge-zone-color, var(--internal-score-color)) 0deg,
        var(--gauge-zone-color, var(--internal-score-color)) var(--score-angle),
        transparent var(--score-angle),
        transparent 360deg
    );
    filter: none;
}

.scan-result-page .internal-report-hero .report-score-core {
    inset: 24px;
    border-color: color-mix(in srgb, var(--gauge-zone-color, var(--internal-score-color)) 22%, #ffffff);
    background: radial-gradient(circle at 35% 20%, #ffffff 0%, #f8fafc 58%, #eef2ff 100%);
}

.scan-result-page .internal-report-hero .report-score-core span {
    font-size: clamp(3.05rem, 4.2vw, 4rem);
    color: #1e293b;
}

.scan-result-page .internal-report-hero .report-score-core small {
    margin-top: -2px;
    color: #64748b;
}

.scan-result-page .internal-score-badge {
    font-size: .98rem;
    padding: 7px 17px;
}

.scan-result-page .score-zone-legend span {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68);
}

.scan-result-page .score-composition-item {
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.scan-result-page .score-composition-head h3,
.scan-result-page .score-composition-head strong {
    color: color-mix(in srgb, var(--text) 94%, #1e315d);
}

.scan-result-page .score-composition-meter {
    height: 9px;
}

.scan-result-page .score-composition-meta .muted {
    font-weight: 700;
    font-size: .85rem;
}

.scan-result-page .pagespeed-hub-score-card {
    background: linear-gradient(162deg, rgba(255, 255, 255, .99) 0%, #f5f9ff 100%);
    border-color: color-mix(in srgb, var(--line) 76%, var(--tone-color));
}

.scan-result-page .pagespeed-hub-score-value {
    font-size: clamp(2.8rem, 3.4vw, 3.8rem);
}

.scan-result-page .pagespeed-score-meta {
    font-size: .98rem;
    color: color-mix(in srgb, var(--muted) 86%, #2b3f69);
}

.scan-result-page .vitals-metric-card {
    min-height: 184px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: color-mix(in srgb, var(--line) 78%, var(--tone-color));
}

.scan-result-page .vitals-metric-value {
    color: color-mix(in srgb, var(--text) 92%, #1d3460);
}

.scan-result-page .finding {
    background: linear-gradient(180deg, rgba(255, 255, 255, .99) 0%, rgba(246, 250, 255, .98) 100%);
}

.scan-result-page .finding p,
.scan-result-page .priority-list li p,
.scan-result-page .pagespeed-hub p,
.scan-result-page .tech-detail-collapsible li,
.scan-result-page #findings > details li {
    color: color-mix(in srgb, var(--text) 90%, #253b69);
}

.scan-result-page .tech-detail-collapsible,
.scan-result-page #findings > details {
    border-color: color-mix(in srgb, var(--line) 82%, #6c86b8);
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.scan-result-page .tech-detail-collapsible summary,
.scan-result-page #findings > details > summary {
    color: color-mix(in srgb, var(--text) 92%, #1e3764);
}

@media (prefers-color-scheme: dark) {
    .scan-result-page .report-tab-nav-panel {
        border-color: #30456e;
        background: linear-gradient(180deg, #1a2743 0%, #19253f 100%);
        box-shadow: 0 18px 34px -26px rgba(0, 0, 0, .72);
    }

    .scan-result-page .report-tab-nav-panel .muted {
        color: #9fb3de;
    }

    .scan-result-page .report-tab-trigger {
        color: #d6e1ff;
        border-color: #4a6296;
        background: linear-gradient(180deg, #243657 0%, #1c2b49 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    }

    .scan-result-page .report-tab-trigger:hover {
        color: #edf3ff;
        border-color: #6c8fd9;
        background: linear-gradient(180deg, #2b4270 0%, #223863 100%);
    }

    .scan-result-page .report-tab-trigger.is-active,
    .scan-result-page .report-tab-trigger[aria-selected="true"] {
        color: #ffffff;
        border-color: #6f94ff;
        background: linear-gradient(180deg, #4d83ff 0%, #2f66e2 100%);
    }

    .scan-result-page .internal-report-hero .report-score-ring {
        background: radial-gradient(circle at 32% 22%, #f8fbff 0%, #ecf3ff 52%, #dce8ff 100%);
    }

    .scan-result-page .report-score-gauge-stack {
        --score-segment-gap: rgba(15, 23, 42, .95);
        --score-segment-track: rgba(148, 163, 184, .3);
    }

    .scan-result-page .internal-report-hero .report-score-core span {
        color: #1e293b;
        text-shadow: none;
    }

    .scan-result-page .internal-report-hero .report-score-core small {
        color: #64748b;
    }

    .scan-result-page .score-composition-info-badge {
        color: #bfdbfe;
        background: rgba(96, 165, 250, .16);
        border-color: rgba(147, 197, 253, .3);
    }

    .scan-result-page .score-composition-item-helper .score-composition-meta {
        border-top-color: rgba(148, 163, 184, .28);
    }

    .scan-result-page .gauge-score-chip {
        color: #f3f7ff;
        border-color: #536a98;
        background: linear-gradient(180deg, #243554 0%, #1b2a48 100%);
        box-shadow: 0 10px 20px -18px rgba(0, 0, 0, .72);
    }

    .scan-result-page .gauge-score-chip strong {
        color: #dbe7ff;
    }

    .scan-result-page .gauge-score-dot {
        border-color: #101827;
    }

    .scan-result-page .score-zone-legend .zone-critical {
        background: rgba(214, 70, 69, .2);
        color: #ffb6b5;
        border-color: rgba(214, 70, 69, .48);
    }

    .scan-result-page .score-zone-legend .zone-warning {
        background: rgba(223, 145, 37, .24);
        color: #ffd897;
        border-color: rgba(223, 145, 37, .5);
    }

    .scan-result-page .score-zone-legend .zone-good {
        background: rgba(36, 191, 98, .24);
        color: #aef2cb;
        border-color: rgba(36, 191, 98, .5);
    }

    .scan-result-page .score-composition-item,
    .scan-result-page .pagespeed-hub-score-card,
    .scan-result-page .vitals-metric-card,
    .scan-result-page .finding,
    .scan-result-page #findings > details,
    .scan-result-page .tech-detail-collapsible,
    .scan-result-page .priority-list li {
        background: linear-gradient(180deg, #22304f 0%, #1b2742 100%);
        border-color: #38507b;
        box-shadow: 0 14px 26px -24px rgba(0, 0, 0, .76);
    }

    .scan-result-page .score-composition-head h3,
    .scan-result-page .score-composition-head strong,
    .scan-result-page .pagespeed-hub-score-head h3,
    .scan-result-page .pagespeed-hub-score-value,
    .scan-result-page .vitals-metric-head h3,
    .scan-result-page .vitals-metric-value,
    .scan-result-page .finding-head h3,
    .scan-result-page .finding strong,
    .scan-result-page .tech-detail-collapsible summary,
    .scan-result-page #findings > details > summary {
        color: #eef3ff;
    }

    .scan-result-page .pagespeed-score-meta,
    .scan-result-page .pagespeed-hub .muted,
    .scan-result-page .vitals-metric-card .muted,
    .scan-result-page .finding p,
    .scan-result-page .priority-list li p,
    .scan-result-page .tech-detail-collapsible li,
    .scan-result-page #findings > details li {
        color: #c5d3f2;
    }

    .scan-result-page .score-composition-meter {
        background: rgba(148, 163, 184, .28);
    }

    .scan-result-page .score-composition-meta .muted {
        color: #b5c6ea;
    }

    .scan-result-page .pagespeed-summary-card,
    .scan-result-page .pagespeed-audit-details {
        border-color: #38507b;
        background: linear-gradient(180deg, #22304f 0%, #1b2742 100%);
        box-shadow: 0 14px 26px -24px rgba(0, 0, 0, .76);
    }

    .scan-result-page .pagespeed-summary-card span,
    .scan-result-page .pagespeed-summary-card small {
        color: #b5c6ea;
    }

    .scan-result-page .pagespeed-summary-card strong,
    .scan-result-page .pagespeed-audit-details > summary {
        color: #eef3ff;
    }

    .scan-result-page .lighthouse-audit-meta > span,
    .scan-result-page .lighthouse-metric-tag {
        color: #dbe7ff;
        border-color: #405987;
        background: rgba(15, 23, 42, .32);
    }

    .scan-result-page .lighthouse-metric-tag,
    .scan-result-page .audit-resource-details summary {
        color: #93b4ff;
    }

    .scan-result-page .audit-resource-url {
        color: #d6e1ff;
    }

    .scan-result-page .pagespeed-audit-chip {
        color: #00cc66;
        border-color: rgba(0, 204, 102, .28);
        background: rgba(0, 204, 102, .11);
    }

    .internal-report-page .recommendation-check-stat,
    .internal-report-page .recommendation-next-steps,
    .internal-report-page .recommendation-check {
        background: linear-gradient(180deg, #22304f 0%, #1b2742 100%);
        border-color: color-mix(in srgb, var(--recommendation-tone) 34%, #38507b);
        box-shadow: 0 14px 26px -24px rgba(0, 0, 0, .78);
    }

    .internal-report-page .recommendation-check-stat strong,
    .internal-report-page .recommendation-step-copy strong,
    .internal-report-page .recommendation-check-title {
        color: #eef3ff;
    }

    .internal-report-page .recommendation-check-stat span,
    .internal-report-page .recommendation-next-steps h3,
    .internal-report-page .recommendation-help-grid section > span {
        color: #a9bce4;
    }

    .internal-report-page .recommendation-check-stat small,
    .internal-report-page .recommendation-step-copy small,
    .internal-report-page .recommendation-step-copy span,
    .internal-report-page .recommendation-check-meta,
    .internal-report-page .recommendation-help-grid p,
    .internal-report-page .recommendation-affected-url {
        color: #c5d3f2;
    }

    .internal-report-page .recommendation-next-step a,
    .internal-report-page .recommendation-check[open] .recommendation-check-row,
    .internal-report-page .recommendation-check-help,
    .internal-report-page .recommendation-help-grid section {
        background: color-mix(in srgb, var(--recommendation-tone) 10%, #15213a);
        border-color: color-mix(in srgb, var(--recommendation-tone) 32%, #38507b);
    }

    .internal-report-page .recommendation-check-meta span {
        color: #dbe7ff;
        background: rgba(15, 23, 42, .28);
    }

    .internal-report-page .recommendation-check-status {
        color: color-mix(in srgb, var(--recommendation-tone) 42%, #ffffff);
        background: color-mix(in srgb, var(--recommendation-tone) 22%, #111827);
    }

    .internal-report-page .recommendation-check-icon {
        border-color: color-mix(in srgb, var(--recommendation-tone) 84%, #ffffff);
        background: color-mix(in srgb, var(--recommendation-tone) 34%, #111827);
        box-shadow: inset 0 0 0 4px #17233d;
    }

    .internal-report-page .recommendation-work-chips span {
        color: color-mix(in srgb, var(--recommendation-tone) 34%, #ffffff);
        background: color-mix(in srgb, var(--recommendation-tone) 18%, #111827);
    }

    .internal-report-page .privacy-summary-card,
    .internal-report-page .privacy-state,
    .internal-report-page .privacy-browser-check,
    .internal-report-page .privacy-technical-signals,
    .internal-report-page .privacy-signal-card,
    .internal-report-page .privacy-provider-details,
    .internal-report-page .privacy-disclaimer {
        background: linear-gradient(180deg, #22304f 0%, #1b2742 100%);
        border-color: color-mix(in srgb, var(--privacy-tone, #3b73d5) 34%, #38507b);
        box-shadow: 0 14px 26px -24px rgba(0, 0, 0, .78);
    }

    .internal-report-page .privacy-summary-card strong,
    .internal-report-page .privacy-state-copy h3,
    .internal-report-page .privacy-browser-check strong,
    .internal-report-page .privacy-technical-signals h3,
    .internal-report-page .privacy-signal-card strong,
    .internal-report-page .privacy-provider-details summary {
        color: #eef3ff;
    }

    .internal-report-page .privacy-summary-card span,
    .internal-report-page .privacy-state-copy span,
    .internal-report-page .privacy-browser-check span,
    .internal-report-page .privacy-signal-card span {
        color: #a9bce4;
    }

    .internal-report-page .privacy-summary-card small,
    .internal-report-page .privacy-state-copy p,
    .internal-report-page .privacy-state-copy .privacy-state-disclaimer,
    .internal-report-page .privacy-browser-check p,
    .internal-report-page .privacy-technical-signals h3 + p,
    .internal-report-page .privacy-provider-details p,
    .internal-report-page .privacy-disclaimer {
        color: #c5d3f2;
    }

    .internal-report-page .privacy-state-actions,
    .internal-report-page .privacy-provider-details {
        background: color-mix(in srgb, var(--privacy-tone, #3b73d5) 10%, #15213a);
        border-color: color-mix(in srgb, var(--privacy-tone, #3b73d5) 32%, #38507b);
    }

    .internal-report-page .privacy-browser-check {
        border-color: color-mix(in srgb, #ffaa32 40%, #38507b);
        border-left-color: #ffaa32;
    }

    .internal-report-page .privacy-browser-check-available {
        border-color: color-mix(in srgb, #00cc66 40%, #38507b);
        border-left-color: #00cc66;
    }

    .internal-report-page .privacy-browser-facts span {
        color: #c8f6dc;
        background: color-mix(in srgb, #00cc66 16%, #15213a);
    }

    .internal-report-page .privacy-service-list li {
        background: color-mix(in srgb, var(--recommendation-tone, #3b73d5) 10%, #15213a);
        border-color: color-mix(in srgb, var(--recommendation-tone, #3b73d5) 30%, #38507b);
    }

    .internal-report-page .privacy-service-list strong {
        color: #eef3ff;
    }

    .internal-report-page .privacy-service-list span,
    .internal-report-page .privacy-service-list em,
    .internal-report-page .privacy-service-list small,
    .internal-report-page .privacy-service-more {
        color: #c5d3f2;
    }

    .internal-report-page .privacy-service-list em {
        color: color-mix(in srgb, var(--recommendation-tone, #3b73d5) 62%, #eef3ff);
    }

    .internal-report-page .privacy-summary-meter,
    .internal-report-page .privacy-state-meter {
        background: rgba(10, 16, 30, .48);
    }

    .internal-report-page #findings > details.recommendation-finding-category {
        border-color: color-mix(in srgb, var(--recommendation-tone) 34%, #38507b);
        background: linear-gradient(180deg, #22304f 0%, #1b2742 100%);
    }

    .internal-report-page #findings > details.recommendation-finding-category > summary {
        background: color-mix(in srgb, var(--recommendation-tone) 10%, #15213a);
    }

    .internal-report-page .recommendation-category-head strong {
        color: #eef3ff;
    }

    .internal-report-page .recommendation-category-head small {
        color: #c5d3f2;
    }

    .internal-report-page .recommendation-category-meta span {
        color: color-mix(in srgb, var(--recommendation-tone) 34%, #ffffff);
        background: color-mix(in srgb, var(--recommendation-tone) 18%, #111827);
    }
}

@media (max-width: 980px) {
    .scan-result-page .internal-report-hero .report-score-ring {
        width: 194px;
        height: 194px;
    }

    .scan-result-page .report-score-gauge-stack {
        width: 222px;
        height: 222px;
    }
}

@media (max-width: 640px) {
    .scan-result-page .internal-report-hero .report-score-ring {
        width: 162px;
        height: 162px;
    }

    .scan-result-page .report-score-gauge-stack {
        width: 188px;
        height: 188px;
    }
}

.scan-result-page .report-test-overview {
    display: grid;
    grid-template-columns: minmax(240px, .82fr) minmax(320px, 1.18fr);
    align-items: stretch;
    gap: 16px;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid color-mix(in srgb, var(--line) 78%, var(--accent) 22%);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(248, 251, 255, .94)),
        linear-gradient(120deg, rgba(37, 99, 235, .06), rgba(14, 165, 233, .03));
}

.scan-result-page .report-test-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.scan-result-page .report-test-status-passed {
    color: #00cc66;
    background: rgba(0, 204, 102, .16);
}

.scan-result-page .report-test-status-review {
    color: #ffaa32;
    background: rgba(255, 170, 50, .20);
}

.scan-result-page .report-test-status-critical {
    color: #ff3233;
    background: rgba(255, 50, 51, .16);
}

.scan-result-page .report-test-status-unavailable {
    color: #475569;
    background: rgba(100, 116, 139, .12);
}

.scan-result-page .report-test-status-table td {
    vertical-align: top;
}

@media (prefers-color-scheme: dark) {
    .scan-result-page .report-test-overview {
        border-color: #344b76;
        background:
            linear-gradient(180deg, rgba(31, 47, 78, .96), rgba(23, 36, 61, .96)),
            linear-gradient(120deg, rgba(96, 165, 250, .08), rgba(34, 211, 238, .03));
    }

    .scan-result-page .report-test-status-passed {
        color: #00cc66;
        background: rgba(0, 204, 102, .16);
    }

    .scan-result-page .report-test-status-review {
        color: #ffaa32;
        background: rgba(255, 170, 50, .18);
    }

    .scan-result-page .report-test-status-critical {
        color: #ff3233;
        background: rgba(255, 50, 51, .18);
    }

    .scan-result-page .report-test-status-unavailable {
        color: #cbd5e1;
        background: rgba(148, 163, 184, .16);
    }
}

.scan-result-page .report-test-hero,
.scan-result-page .report-test-distribution {
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--line) 76%, var(--accent) 24%);
    border-radius: 16px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 34px -32px rgba(15, 42, 94, .38);
}

.scan-result-page .report-test-hero {
    --test-tone: #64748b;
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
    border-left: 6px solid var(--test-tone);
    background:
        radial-gradient(circle at 16% 10%, color-mix(in srgb, var(--test-tone) 11%, transparent), transparent 46%),
        rgba(255, 255, 255, .92);
}

.scan-result-page .report-test-hero.report-test-card-passed {
    --test-tone: #00cc66;
}

.scan-result-page .report-test-hero.report-test-card-review {
    --test-tone: #ffaa32;
}

.scan-result-page .report-test-hero.report-test-card-critical {
    --test-tone: #ff3233;
}

.scan-result-page .report-test-hero.report-test-card-unavailable {
    --test-tone: #64748b;
}

.scan-result-page .report-test-kicker {
    color: color-mix(in srgb, var(--test-tone, #64748b) 78%, var(--text));
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.scan-result-page .report-test-hero-score {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: color-mix(in srgb, var(--test-tone) 92%, var(--text));
}

.scan-result-page .report-test-hero-score strong {
    font-size: clamp(3.4rem, 7vw, 5.8rem);
    line-height: .9;
    letter-spacing: -.08em;
}

.scan-result-page .report-test-hero-score small {
    color: color-mix(in srgb, var(--test-tone) 80%, var(--muted));
    font-size: 1.55rem;
    font-weight: 900;
}

.scan-result-page .report-test-hero h3,
.scan-result-page .report-test-distribution h3 {
    margin: 0;
}

.scan-result-page .report-test-hero p,
.scan-result-page .report-test-hero > small,
.scan-result-page .report-test-distribution p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.scan-result-page .report-test-hero .report-test-status {
    justify-self: start;
    margin-top: 2px;
}

.scan-result-page .report-test-distribution {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.scan-result-page .report-test-distribution-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.scan-result-page .report-test-chart {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.scan-result-page .report-test-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 170px;
    padding-top: 1px;
    color: color-mix(in srgb, var(--muted) 78%, var(--text));
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    text-align: right;
}

.scan-result-page .report-test-bars {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    min-height: 0;
    padding: 0 4px;
}

.scan-result-page .report-test-bars::before {
    content: "";
    position: absolute;
    top: 0;
    right: 4px;
    left: 4px;
    height: 170px;
    box-sizing: border-box;
    background: repeating-linear-gradient(
        to bottom,
        color-mix(in srgb, var(--line) 70%, transparent) 0 1px,
        transparent 1px calc(170px / 4)
    );
    pointer-events: none;
}

.scan-result-page .report-test-bars::after {
    content: "";
    position: absolute;
    top: 170px;
    right: 4px;
    left: 4px;
    z-index: 3;
    height: 2px;
    background: color-mix(in srgb, var(--line) 72%, var(--text) 18%);
    pointer-events: none;
}

.scan-result-page .report-test-bar-item {
    --test-tone: #64748b;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: 170px auto;
    align-items: stretch;
    gap: 18px;
    min-width: 0;
    height: auto;
}

.scan-result-page .report-test-bar-item-passed {
    --test-tone: #00cc66;
}

.scan-result-page .report-test-bar-item-review {
    --test-tone: #ffaa32;
}

.scan-result-page .report-test-bar-item-critical {
    --test-tone: #ff3233;
}

.scan-result-page .report-test-bar-item-unavailable {
    --test-tone: #94a3b8;
}

.scan-result-page .report-test-bar-plot {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.scan-result-page .report-test-bar-rail {
    display: flex;
    align-items: end;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background: transparent;
}

.scan-result-page .report-test-bar-rail span {
    display: block;
    width: 100%;
    min-height: 6px;
    border-radius: 4px 4px 0 0;
    background: var(--test-tone);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 -1px 0 color-mix(in srgb, var(--test-tone) 74%, #000000 26%);
}

.scan-result-page .report-test-bar-label {
    display: grid;
    gap: 6px;
}

.scan-result-page .report-test-bar-item strong {
    display: grid;
    gap: 2px;
    color: var(--text);
    line-height: 1.05;
}

.scan-result-page .report-test-column-value {
    display: block;
    color: var(--text);
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    letter-spacing: -.05em;
}

.scan-result-page .report-test-bar-item strong span:not(.report-test-column-value) {
    display: block;
    margin-top: 2px;
    color: color-mix(in srgb, var(--test-tone) 84%, var(--text));
    font-size: .77rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.scan-result-page .report-test-bar-item small {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.25;
}

@media (max-width: 860px) {
    .scan-result-page .report-test-overview {
        grid-template-columns: 1fr;
    }

    .scan-result-page .report-test-distribution-head {
        display: grid;
    }
}

@media (max-width: 560px) {
    .scan-result-page .report-test-chart {
        grid-template-columns: 36px minmax(420px, 1fr);
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .scan-result-page .report-test-axis {
        font-size: .62rem;
    }

    .scan-result-page .report-test-bars {
        grid-template-columns: repeat(4, minmax(84px, 1fr));
        min-height: 0;
    }
}

@media (prefers-color-scheme: dark) {
    .scan-result-page .report-test-hero,
    .scan-result-page .report-test-distribution {
        border-color: #344b76;
        background: rgba(23, 36, 61, .92);
        box-shadow: 0 18px 34px -28px rgba(0, 0, 0, .7);
    }

    .scan-result-page .report-test-hero {
        background:
            radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--test-tone) 14%, transparent), transparent 44%),
            rgba(23, 36, 61, .94);
    }

    .scan-result-page .report-test-kicker {
        color: color-mix(in srgb, var(--test-tone, #94a3b8) 64%, #eef3ff);
    }

    .scan-result-page .report-test-axis {
        color: #cbd5e1;
    }

    .scan-result-page .report-test-bars::before {
        background: repeating-linear-gradient(
            to bottom,
            rgba(148, 163, 184, .13) 0 1px,
            transparent 1px calc(170px / 4)
        );
    }

    .scan-result-page .report-test-bars::after {
        background: rgba(203, 213, 225, .34);
    }

    .scan-result-page .report-test-bar-rail {
        background: transparent;
    }
}

/* Point 5.5: report tabs as a connected dashboard tabbar */
.scan-result-page .report-tab-nav-panel.report-tabs-shell {
    margin-bottom: -1px;
    padding: 22px 20px 0;
    border-radius: 22px 22px 0 0;
    border-color: color-mix(in srgb, var(--line) 76%, var(--accent) 24%);
    border-bottom-color: color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .82) 0%, rgba(241, 247, 255, .96) 100%),
        linear-gradient(110deg, rgba(37, 99, 235, .08), rgba(14, 165, 233, .04));
    box-shadow: 0 20px 38px -32px rgba(15, 42, 94, .38);
}

.scan-result-page .report-tab-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 16px;
}

.scan-result-page .report-tab-heading h2 {
    margin: 0;
}

.scan-result-page .report-tab-kicker {
    margin: 0 0 4px;
    color: color-mix(in srgb, var(--accent) 78%, var(--text));
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.scan-result-page .report-tab-heading .muted {
    max-width: 460px;
    margin: 0;
    font-size: .86rem;
    line-height: 1.45;
    text-align: right;
}

.scan-result-page .report-tab-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    align-items: stretch;
    gap: 8px;
    margin: 0;
    overflow: visible;
    padding: 0 0 1px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
}

.scan-result-page .report-tab-trigger {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: flex-start;
    justify-content: stretch;
    min-width: 0;
    min-height: 82px;
    border-radius: 19px 19px 0 0;
    border-bottom-color: transparent;
    padding: 15px 12px 16px;
    font-size: .88rem;
    color: color-mix(in srgb, var(--text) 88%, var(--accent) 12%);
    background: linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(239, 246, 255, .8) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82), 0 8px 18px -18px rgba(15, 42, 94, .34);
    transform: none;
}

.scan-result-page .report-tab-trigger:hover {
    transform: none;
    color: color-mix(in srgb, var(--text) 95%, var(--accent));
    background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 10px 20px -18px rgba(37, 99, 235, .5);
}

.scan-result-page .report-tab-trigger.is-active,
.scan-result-page .report-tab-trigger[aria-selected="true"] {
    z-index: 2;
    margin-bottom: -1px;
    color: var(--text);
    border-color: color-mix(in srgb, var(--line) 64%, var(--accent) 36%);
    border-bottom-color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 66%, #f8fbff 100%);
    box-shadow: 0 -12px 28px -24px rgba(18, 62, 145, .45), 0 12px 24px -24px rgba(15, 42, 94, .5);
}

.scan-result-page .report-tab-trigger.is-active::after,
.scan-result-page .report-tab-trigger[aria-selected="true"]::after {
    content: '';
    position: absolute;
    right: -1px;
    bottom: -2px;
    left: -1px;
    height: 3px;
    background: #ffffff;
}

.scan-result-page .report-tab-label {
    display: grid;
    gap: 6px;
    min-width: 0;
    line-height: 1.1;
}

.scan-result-page .report-tab-label-main {
    overflow-wrap: anywhere;
    white-space: normal;
}

.scan-result-page .report-tab-sublabel {
    max-width: none;
    overflow: visible;
    color: var(--muted);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.16;
    text-overflow: clip;
    text-transform: uppercase;
    white-space: normal;
}

.scan-result-page .report-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    min-width: 24px;
    min-height: 21px;
    border-radius: 999px;
    padding: 2px 7px;
    border: 1px solid transparent;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.01em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62);
}

.scan-result-page .report-tab-helper {
    margin: 8px 0 0;
    padding: 8px 2px 9px;
    font-size: .74rem;
    line-height: 1.35;
    color: color-mix(in srgb, var(--muted) 92%, var(--accent));
    border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.scan-result-page .report-tab-badge.tab-badge-tone-good {
    color: #00cc66;
    border-color: rgba(0, 204, 102, .28);
    background: rgba(0, 204, 102, .13);
}

.scan-result-page .report-tab-badge.tab-badge-tone-needs_improvement {
    color: #ffaa32;
    border-color: rgba(255, 170, 50, .32);
    background: rgba(255, 170, 50, .14);
}

.scan-result-page .report-tab-badge.tab-badge-tone-poor {
    color: #ff3233;
    border-color: rgba(255, 50, 51, .28);
    background: rgba(255, 50, 51, .12);
}

.scan-result-page .report-tab-badge.tab-badge-tone-neutral {
    color: #475569;
    border-color: rgba(100, 116, 139, .24);
    background: rgba(100, 116, 139, .1);
}

.scan-result-page.has-report-tabs .report-tab-nav-panel.report-tabs-shell ~ .report-tab-panel.is-active {
    margin-top: 0;
}

.scan-result-page.has-report-tabs .report-tab-nav-panel.report-tabs-shell + .score-overview.report-tab-panel.is-active {
    padding: 20px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, var(--accent) 30%);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 22px 38px -34px rgba(15, 42, 94, .36);
}

.scan-result-page.has-report-tabs .report-tab-nav-panel.report-tabs-shell ~ .panel.report-tab-panel.is-active,
.scan-result-page.has-report-tabs .report-tab-nav-panel.report-tabs-shell ~ .grid-2.report-tab-panel.is-active,
.scan-result-page.has-report-tabs .report-tab-nav-panel.report-tabs-shell ~ .grid-3.report-tab-panel.is-active {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

@media (prefers-color-scheme: dark) {
    .scan-result-page .report-tab-nav-panel.report-tabs-shell {
        border-color: #344b76;
        border-bottom-color: #526b9c;
        background:
            linear-gradient(180deg, rgba(31, 47, 78, .98) 0%, rgba(23, 36, 61, .98) 100%),
            linear-gradient(110deg, rgba(96, 165, 250, .1), rgba(34, 211, 238, .04));
        box-shadow: 0 18px 34px -28px rgba(0, 0, 0, .74);
    }

    .scan-result-page .report-tab-kicker {
        color: #8fb0ff;
    }

    .scan-result-page .report-tab-heading .muted {
        color: #b5c4e3;
    }

    .scan-result-page .report-tab-helper {
        color: #9fb3de;
        border-top-color: rgba(148, 163, 184, .18);
    }

    .scan-result-page .report-tab-nav {
        border-bottom-color: #526b9c;
    }

    .scan-result-page .report-tab-trigger {
        color: #dbe6ff;
        border-color: #445d91;
        border-bottom-color: transparent;
        background: linear-gradient(180deg, #26395d 0%, #1d2d4c 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 20px -18px rgba(0, 0, 0, .8);
    }

    .scan-result-page .report-tab-trigger:hover {
        color: #ffffff;
        border-color: #6386cc;
        background: linear-gradient(180deg, #2b4169 0%, #22385f 100%);
    }

    .scan-result-page .report-tab-trigger.is-active,
    .scan-result-page .report-tab-trigger[aria-selected="true"] {
        color: #f8fbff;
        border-color: #526b9c;
        border-bottom-color: #1d2b48;
        background: linear-gradient(180deg, #314a77 0%, #22395f 62%, #1d2b48 100%);
        box-shadow: 0 -12px 28px -24px rgba(127, 164, 255, .55), 0 14px 24px -24px rgba(0, 0, 0, .8);
    }

    .scan-result-page .report-tab-trigger.is-active::after,
    .scan-result-page .report-tab-trigger[aria-selected="true"]::after {
        background: #1d2b48;
    }

    .scan-result-page .report-tab-sublabel {
        color: #9fb3de;
    }

    .scan-result-page.has-report-tabs .report-tab-nav-panel.report-tabs-shell + .score-overview.report-tab-panel.is-active {
        border-color: #344b76;
        border-top: 0;
        background: linear-gradient(180deg, #1d2b48 0%, #16233c 100%);
        box-shadow: 0 22px 38px -32px rgba(0, 0, 0, .8);
    }

    .scan-result-page .report-tab-badge.tab-badge-tone-good {
        color: #00cc66;
        border-color: rgba(0, 204, 102, .36);
        background: rgba(0, 204, 102, .16);
    }

    .scan-result-page .report-tab-badge.tab-badge-tone-needs_improvement {
        color: #ffaa32;
        border-color: rgba(255, 170, 50, .4);
        background: rgba(255, 170, 50, .16);
    }

    .scan-result-page .report-tab-badge.tab-badge-tone-poor {
        color: #ff3233;
        border-color: rgba(255, 50, 51, .38);
        background: rgba(255, 50, 51, .16);
    }

    .scan-result-page .report-tab-badge.tab-badge-tone-neutral {
        color: #cbd5e1;
        border-color: rgba(148, 163, 184, .34);
        background: rgba(148, 163, 184, .14);
    }
}

@media (prefers-color-scheme: dark) {
    .scan-result-page .internal-report-hero .audit-kicker {
        color: #c7d2fe;
        opacity: 1;
        text-shadow: none;
    }

    .scan-result-page .internal-report-hero .audit-meta-row .chip {
        color: #edf3ff;
        border-color: rgba(148, 163, 184, .38);
        background: linear-gradient(180deg, rgba(30, 41, 59, .74) 0%, rgba(15, 23, 42, .58) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    }

    .scan-result-page .internal-report-hero.internal-score-good .audit-meta-row .chip:last-child,
    .scan-result-page .internal-report-hero.internal-score-excellent .audit-meta-row .chip:last-child {
        color: #00cc66;
        border-color: rgba(0, 204, 102, .38);
        background: rgba(0, 204, 102, .13);
    }

    .scan-result-page .internal-report-hero.internal-score-solid .audit-meta-row .chip:last-child,
    .scan-result-page .internal-report-hero.internal-score-weak .audit-meta-row .chip:last-child {
        color: #ffe6b8;
        border-color: rgba(255, 170, 50, .42);
        background: rgba(255, 170, 50, .14);
    }

    .scan-result-page .internal-report-hero.internal-score-critical .audit-meta-row .chip:last-child {
        color: #ff3233;
        border-color: rgba(255, 50, 51, .42);
        background: rgba(255, 50, 51, .13);
    }

    .scan-result-page .resources-panel .resource-filter-row a {
        color: #dbe7ff;
        border-color: #405987;
        background: linear-gradient(180deg, #233555 0%, #1b2a48 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    }

    .scan-result-page .resources-panel .resource-filter-row a.is-active,
    .scan-result-page .resources-panel .resource-filter-row a[aria-pressed="true"] {
        color: #f8fbff;
        border-color: rgba(147, 197, 253, .48);
        background: linear-gradient(180deg, rgba(59, 130, 246, .28), rgba(37, 99, 235, .18));
    }

    .scan-result-page .resources-panel .resource-filter-row a:hover,
    .scan-result-page .resources-panel .resource-filter-row a:focus-visible {
        color: #ffffff;
        border-color: #6f94d8;
        background: linear-gradient(180deg, #2b4270 0%, #22375f 100%);
    }

    .scan-result-page .table,
    .scan-result-page .resource-table {
        border-color: #34476f;
        background: #101a31;
    }

    .scan-result-page .table th,
    .scan-result-page .resource-table th {
        color: #cbd8f5;
        border-color: #34476f;
        background: #1b2a46;
    }

    .scan-result-page .table td,
    .scan-result-page .resource-table td {
        color: #edf3ff;
        border-color: rgba(148, 163, 184, .18);
    }

    .scan-result-page .table tbody tr,
    .scan-result-page .resource-table tbody tr {
        background: rgba(15, 23, 42, .34);
    }

    .scan-result-page .table tbody tr:nth-child(even),
    .scan-result-page .resource-table tbody tr:nth-child(even) {
        background: rgba(148, 163, 184, .13);
    }

    .scan-result-page .table tbody tr:hover,
    .scan-result-page .resource-table tbody tr:hover {
        background: rgba(96, 165, 250, .18);
    }

    .scan-result-page .table tbody tr:hover td,
    .scan-result-page .resource-table tbody tr:hover td {
        color: #f8fbff;
    }

    .scan-result-page .table tbody tr:hover .status,
    .scan-result-page .resource-table tbody tr:hover .status {
        filter: none;
    }

    .internal-report-page .area-recommendations {
        border-color: #34476f;
        background: linear-gradient(180deg, rgba(29, 43, 72, .94), rgba(20, 31, 54, .96));
        box-shadow: 0 16px 28px -24px rgba(0, 0, 0, .72);
    }

    .internal-report-page .area-recommendations-kicker {
        color: #93b4ff;
    }

    .internal-report-page .area-recommendations h3,
    .internal-report-page .area-recommendation-title strong {
        color: #eef3ff;
    }

    .internal-report-page .area-recommendations-count {
        color: #dbe7ff;
        background: rgba(96, 165, 250, .16);
    }

    .internal-report-page .area-recommendation-teaser {
        border-color: #34476f;
        background: rgba(18, 29, 52, .78);
    }

    .internal-report-page #panel-structure .area-recommendation-teaser.finding-warning .status-warning {
        color: #ffaa32;
        background: rgba(255, 170, 50, .20);
    }

    .internal-report-page .area-recommendation-meta,
    .internal-report-page .area-recommendation-teaser p {
        color: #c5d3f2;
    }

    .internal-report-page .area-recommendation-link {
        color: #93b4ff;
    }

    .internal-report-page .area-recommendations-empty {
        color: #00cc66;
        background: rgba(0, 204, 102, .12);
    }

    .internal-report-page .ai-visibility-head p,
    .internal-report-page .ai-visibility-summary-list p,
    .internal-report-page .ai-visibility-status p,
    .internal-report-page .ai-crawler-panel p,
    .internal-report-page .ai-optimization-panel p,
    .internal-report-page .ai-readiness-shortcheck p,
    .internal-report-page .ai-check-card p,
    .internal-report-page .ai-recommendation-card p,
    .internal-report-page .ai-visibility-limits p {
        color: #c5d3f2;
    }

    .internal-report-page .ai-evidence-card,
    .internal-report-page .ai-visibility-summary-list article,
    .internal-report-page .ai-visibility-status article,
    .internal-report-page .ai-check-card,
    .internal-report-page .ai-crawler-panel,
    .internal-report-page .ai-optimization-panel,
    .internal-report-page .ai-readiness-shortcheck,
    .internal-report-page .ai-recommendation-card,
    .internal-report-page .ai-visibility-limits {
        border-color: #34476f;
        background: linear-gradient(180deg, rgba(29, 43, 72, .94), rgba(20, 31, 54, .96));
        box-shadow: 0 16px 28px -26px rgba(0, 0, 0, .78);
    }

    .internal-report-page .ai-evidence-card span,
    .internal-report-page .ai-visibility-summary-list span,
    .internal-report-page .ai-visibility-status span,
    .internal-report-page .ai-check-group,
    .internal-report-page .ai-optimization-panel span,
    .internal-report-page .ai-readiness-shortcheck-head span,
    .internal-report-page .ai-visibility-section-head span {
        color: #9bb8f4;
    }

    .internal-report-page .ai-evidence-card strong,
    .internal-report-page .ai-visibility-summary-list p,
    .internal-report-page .ai-visibility-status strong,
    .internal-report-page .ai-check-card h3,
    .internal-report-page .ai-crawler-panel h3,
    .internal-report-page .ai-optimization-panel h3,
    .internal-report-page .ai-readiness-shortcheck-head h3,
    .internal-report-page .ai-visibility-section-head h3,
    .internal-report-page .ai-crawler-chip strong,
    .internal-report-page .ai-recommendation-card strong,
    .internal-report-page .ai-visibility-limits summary {
        color: #f1f5ff;
    }

    .internal-report-page .ai-check-card small {
        color: #dbe7ff;
        background: rgba(148, 163, 184, .18);
    }

    .internal-report-page .ai-level-note {
        color: #cbd5e1;
    }

    .internal-report-page .ai-plain-summary {
        border-color: rgba(0, 204, 102, .22);
        background: rgba(0, 204, 102, .1);
    }

    .internal-report-page .ai-plain-summary strong {
        color: #f8fbff;
    }

    .internal-report-page .ai-optimization-panel li,
    .internal-report-page .ai-optimization-empty {
        border-color: rgba(255, 170, 50, .28);
        color: #eef3ff;
        background: rgba(255, 170, 50, .12);
    }

    .internal-report-page .ai-optimization-panel li strong {
        color: #f8fbff;
    }

    .internal-report-page .ai-quick-help {
        border-color: rgba(255, 170, 50, .28);
        background: rgba(255, 170, 50, .11);
    }

    .internal-report-page .ai-quick-help strong {
        color: #f8fbff;
    }

    .internal-report-page .ai-quick-help ol {
        color: #d9e4fb;
    }

    .internal-report-page .ai-quick-help li::marker {
        color: #ffd28a;
    }

    .internal-report-page .ai-optimization-panel li p b {
        color: #f8fbff;
    }

    .internal-report-page .ai-optimization-example {
        color: #d9e4fb;
        background: rgba(15, 23, 42, .32);
    }

    .internal-report-page .ai-optimization-tag {
        color: #ffe6b5;
        background: rgba(255, 170, 50, .18);
    }

    .internal-report-page .ai-shortcheck-card {
        border-color: color-mix(in srgb, var(--shortcheck-color) 24%, #34476f);
        background: color-mix(in srgb, var(--shortcheck-color) 10%, rgba(18, 29, 52, .8));
    }

    .internal-report-page .ai-shortcheck-card strong {
        color: #f8fbff;
    }

    .internal-report-page .ai-shortcheck-item span {
        background: color-mix(in srgb, var(--shortcheck-item-color) 20%, rgba(15, 23, 42, .76));
    }

    .internal-report-page .ai-readiness-meter {
        background: rgba(148, 163, 184, .24);
    }

    .internal-report-page .ai-check-good {
        --ai-check-badge-color: #00cc66;
        --ai-check-badge-bg: rgba(0, 204, 102, .18);
        --ai-check-badge-border: rgba(0, 204, 102, .34);
    }

    .internal-report-page .ai-check-needs_improvement,
    .internal-report-page .ai-check-warning,
    .internal-report-page .ai-check-optional {
        --ai-check-badge-color: #ffe6b5;
        --ai-check-badge-bg: rgba(255, 170, 50, .20);
        --ai-check-badge-border: rgba(255, 170, 50, .38);
    }

    .internal-report-page .ai-check-critical {
        --ai-check-badge-color: #ff3233;
        --ai-check-badge-bg: rgba(255, 50, 51, .18);
        --ai-check-badge-border: rgba(255, 50, 51, .38);
    }

    .internal-report-page .ai-check-neutral {
        --ai-check-badge-color: #d5e0f3;
        --ai-check-badge-bg: rgba(148, 163, 184, .16);
        --ai-check-badge-border: rgba(148, 163, 184, .30);
    }

    .internal-report-page .ai-crawler-chip {
        border-color: rgba(148, 163, 184, .24);
        background: rgba(18, 29, 52, .7);
    }

    .internal-report-page .ai-crawler-chip small {
        color: #c5d3f2;
    }

    .internal-report-page .ai-recommendation-empty {
        color: #00cc66;
        background: rgba(0, 204, 102, .12);
    }
}

@media (max-width: 760px) {
    .scan-result-page .report-tab-nav-panel.report-tabs-shell {
        padding: 18px 16px 0;
    }

    .page-report .scan-report-main {
        width: min(100%, 94vw);
    }

    .internal-report-page .report-action-bar {
        position: relative;
        top: auto;
        align-items: stretch;
        flex-direction: column;
    }

    .internal-report-page .report-back-button,
    .internal-report-page .report-menu,
    .internal-report-page .report-menu summary {
        width: 100%;
    }

    .internal-report-page .report-menu-panel {
        right: auto;
        left: 0;
        width: 100%;
    }

    .scan-result-page .report-tab-heading {
        display: block;
        margin-bottom: 14px;
    }

    .scan-result-page .report-tab-heading .muted {
        max-width: none;
        margin-top: 8px;
        text-align: left;
    }

    .scan-result-page .report-tab-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        margin: 0;
        padding: 0 2px 8px;
        scroll-padding-inline: 2px;
        scrollbar-width: thin;
    }

    .scan-result-page .report-tab-trigger {
        flex: 0 0 auto;
        width: min(42vw, 168px);
        min-height: 72px;
        padding: 13px 12px 14px;
        font-size: .86rem;
    }

    .scan-result-page .report-tab-badge {
        min-width: 21px;
        min-height: 18px;
        padding-inline: 6px;
        font-size: .68rem;
    }

    .internal-report-page .area-recommendations {
        padding: 14px;
    }

    .internal-report-page .area-recommendations-head,
    .internal-report-page .area-recommendation-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .internal-report-page .area-recommendations-count {
        margin-top: 8px;
    }

    .internal-report-page .ai-visibility-head,
    .internal-report-page .ai-visibility-summary-list,
    .internal-report-page .ai-optimization-panel,
    .internal-report-page .ai-readiness-shortcheck-grid,
    .internal-report-page .ai-visibility-status {
        grid-template-columns: 1fr;
    }

    .internal-report-page .ai-check-grid,
    .internal-report-page .ai-crawler-grid,
    .internal-report-page .ai-recommendation-grid {
        grid-template-columns: 1fr;
    }
}
