:root {
    --bg: #eef1f5;
    --bg-elevated: #f7f9fc;
    --ink: #0d121a;
    --muted: #3d4a5c;
    --line: rgba(13, 18, 26, 0.12);
    --accent: #0b5fff;
    --accent-ink: #0746c2;
    --accent-soft: rgba(11, 95, 255, 0.1);
    --pass: #0a7a4a;
    --warn: #9a6700;
    --critical: #b42318;
    --info: #3d4a5c;
    --shadow: 0 20px 50px rgba(13, 18, 26, 0.08);
    --radius: 14px;
    --font-display: "Sora", "Segoe UI", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
    --content: 1180px;
    --wide: 1280px;
    --header-height: 4.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    background:
        radial-gradient(900px 480px at 8% -8%, rgba(11, 95, 255, 0.12), transparent 55%),
        radial-gradient(700px 420px at 100% 0%, rgba(13, 18, 26, 0.05), transparent 50%),
        linear-gradient(180deg, #f5f7fa 0%, var(--bg) 45%, #e8edf4 100%);
    min-height: 100vh;
}
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }

.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 20;
    background: #fff;
    padding: 0.5rem 0.75rem;
}

.container {
    width: min(var(--content), calc(100% - 2rem));
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
}
.container-wide {
    width: min(var(--wide), calc(100% - 2rem));
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(245, 247, 250, 0.86);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 62px;
    padding: 0.7rem 0;
}
.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}
.logo-img {
    display: block;
    height: 42px;
    width: auto;
    max-width: min(240px, 48vw);
    object-fit: contain;
    object-position: left center;
    background: transparent;
}
.hero-line {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--ink);
    max-width: 34rem;
}
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
    margin-left: auto;
}
.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--ink); }
.header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    background: var(--ink);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}
.header-cta:hover { background: #1a2433; }

.eyebrow {
    margin: 0 0 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-ink);
}
h1, h2, h3 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
h3 { font-size: 1.15rem; }

.hero { padding: 2.2rem 0 1.4rem; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2rem;
    align-items: start;
}
.lede {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 36rem;
}
.lede-secondary {
    margin: 0.75rem 0 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 36rem;
}
.hero-note {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
}

.hero-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.hero-copy,
.hero-panel {
    opacity: 1;
}

/* —— Landing page —— */
.page-home .home-hero {
    min-height: calc(88vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 0 2.75rem;
}
.page-home .home-hero-inner {
    width: min(56.25rem, 100%);
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.page-home .home-hero .eyebrow {
    margin: 0 0 1.15rem;
    font-size: 0.875rem;
}
.page-home .home-hero h1 {
    margin: 0 0 1.15rem;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.6vw, 3.65rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--ink);
    max-width: 900px;
    width: 100%;
}
.page-home .home-hero .hero-claim-line {
    display: block;
    white-space: nowrap;
}
.page-home .home-hero-lede {
    margin: 0 auto 2rem;
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: var(--muted);
    max-width: 38rem;
}
.page-home .form-trust-line {
    margin: 1.1rem 0 0;
    font-size: 1.02rem;
    color: var(--muted);
}
.page-home .scan-form-landing {
    width: min(46rem, 100%);
}
#scan {
    scroll-margin-top: calc(var(--header-height) + 2rem);
}
.page-home .scan-combo {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 3.75rem;
    background: #fff;
    border: 1px solid rgba(13, 18, 26, 0.14);
    border-radius: 15px;
    box-shadow: 0 18px 48px rgba(13, 18, 26, 0.08);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.page-home .scan-combo:focus-within {
    border-color: var(--accent);
    box-shadow:
        0 0 0 3px var(--accent-soft),
        0 18px 48px rgba(13, 18, 26, 0.08);
}
.page-home .scan-combo.is-attention,
.scan-form.is-attention .url-input {
    animation: scan-attention 1.6s ease;
}
@keyframes scan-attention {
    0% {
        border-color: var(--accent);
        box-shadow:
            0 0 0 0 var(--accent-soft),
            0 18px 48px rgba(13, 18, 26, 0.08);
        transform: scale(1);
    }
    35% {
        border-color: var(--accent);
        box-shadow:
            0 0 0 10px var(--accent-soft),
            0 18px 48px rgba(13, 18, 26, 0.1);
        transform: scale(1.015);
    }
    100% {
        border-color: rgba(13, 18, 26, 0.14);
        box-shadow: 0 18px 48px rgba(13, 18, 26, 0.08);
        transform: scale(1);
    }
}
.page-home .scan-form-landing .url-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 3.75rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    font-size: 1.05rem;
    padding: 0.95rem 1.2rem;
    color: var(--ink);
}
.page-home .scan-form-landing .url-input:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
    background: #fff;
}
.page-home .scan-form-landing .url-input:-webkit-autofill,
.page-home .scan-form-landing .url-input:-webkit-autofill:hover,
.page-home .scan-form-landing .url-input:-webkit-autofill:focus,
.page-home .scan-form-landing .url-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--ink);
    caret-color: var(--ink);
    border: 0;
    /* Kill browser autofill yellow/blue fill so the combo stays one white surface */
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    transition: background-color 99999s ease-out;
}
.page-home .scan-combo-submit {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    align-self: center;
    min-width: 11.5rem;
    min-height: calc(3.75rem - 0.7rem);
    margin: 0.35rem;
    border-radius: 11px;
    box-shadow: none;
    padding-inline: 1.25rem;
    white-space: nowrap;
}
.page-home .scan-combo-submit:hover {
    transform: none;
}
.page-home .scan-form-landing .form-status {
    margin-top: 0.85rem;
}
.page-home .form-sample-link {
    margin: 0.85rem 0 0;
    font-weight: 650;
}
.page-home .form-sample-link a { text-decoration: none; }
.page-home .form-sample-link a:hover { text-decoration: underline; }

.page-home .home-section-kicker {
    margin: 0 0 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-ink);
}
.page-home .home-demo {
    padding: 4.5rem 0 5.5rem;
    background: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(13, 18, 26, 0.06);
}
.page-home .home-demo h2 {
    max-width: 22rem;
    margin: 0 0 0.85rem;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    line-height: 1.18;
}
.page-home .home-demo-intro {
    margin: 0 0 2rem;
    max-width: 36rem;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--muted);
}
.page-home .home-demo-board {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: auto auto;
    gap: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(13, 18, 26, 0.08);
}
.page-home .home-demo-col {
    padding: 1.35rem 1.35rem 1.5rem;
    min-height: 0;
}
.page-home .home-demo-human {
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
}
.page-home .home-demo-machine {
    background: #121820;
    color: #e8eef7;
}
.page-home .home-demo-label {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.page-home .home-demo-machine .home-demo-label { color: #9aa8bc; }

.page-home .home-page-shot {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(13, 18, 26, 0.1);
}
.page-home .home-page-mock-chrome {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.65rem 0.85rem;
    background: #e8edf4;
    border-bottom: 1px solid rgba(13, 18, 26, 0.08);
}
.page-home .home-page-mock-chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c5ceda;
}
.page-home .home-page-mock-chrome em {
    margin-left: 0.55rem;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}
.page-home .home-page-shot-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    background: #fff;
}

.page-home .home-machine-out {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.55;
}
.page-home .home-machine-h {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}
.page-home .home-machine-out > p {
    margin: 0 0 1.35rem;
    color: #c5d0de;
}
.page-home .home-machine-missing {
    padding: 1rem 1.05rem;
    border-radius: 12px;
    background: rgba(240, 195, 109, 0.12);
    border: 1px solid rgba(240, 195, 109, 0.28);
}
.page-home .home-machine-missing-title {
    margin: 0 0 0.35rem;
    color: #f0c36d;
    font-weight: 700;
    font-family: var(--font-body);
}
.page-home .home-machine-missing-items {
    margin: 0;
    color: #f7d9a0;
    font-size: 0.9rem;
}

.page-home .home-demo-result {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1.15rem 1.5rem;
    background: #f7f9fc;
    border-top: 1px solid rgba(13, 18, 26, 0.08);
}
.page-home .home-demo-result-kicker {
    margin: 0 0 0.2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.page-home .home-demo-result-text {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4;
}
.page-home .home-demo-result-text strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
}
.page-home .home-demo-result-score {
    margin: 0;
    font-weight: 700;
    color: var(--warn);
    white-space: nowrap;
}
.page-home .home-demo-result-score span {
    font-family: var(--font-display);
    font-size: 1.55rem;
    margin-right: 0.25rem;
}

.page-home .home-layer-trail {
    margin: 1.25rem 0 1.5rem;
    overflow-x: auto;
}
.page-home .home-layer-trail-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: max-content;
    padding: 0.75rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 650;
}
.page-home .home-layer-trail-unit {
    margin-right: 0.35rem;
    color: var(--muted);
}
.page-home .home-layer-trail-arrow { color: #9aa8bc; }
.page-home .home-layer-trail .is-ok { color: var(--pass); }
.page-home .home-layer-trail .is-loss { color: var(--warn); }
.page-home .home-demo-cta { margin: 0; }

.page-home .home-feature {
    padding: 6.5rem 0;
}
.page-home .home-feature-tasks {
    background: rgba(255, 255, 255, 0.38);
    border-block: 1px solid rgba(13, 18, 26, 0.06);
}
.page-home .home-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}
.page-home .home-feature-grid-reverse .home-feature-copy { order: 2; }
.page-home .home-feature-grid-reverse .home-task-demo { order: 1; }
.page-home .home-feature-copy h2 {
    max-width: 16ch;
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
}
.page-home .home-feature-copy p {
    margin: 0 0 1rem;
    max-width: 32rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted);
}
.page-home .home-feature-copy p:last-child { margin-bottom: 0; }

.page-home .home-layer-matrix {
    padding: 1.35rem 1.25rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}
.page-home .home-layer-matrix-head,
.page-home .home-layer-matrix-row {
    display: grid;
    grid-template-columns: 7.5rem repeat(4, 1fr);
    gap: 0.35rem;
    align-items: center;
    text-align: center;
}
.page-home .home-layer-matrix-head {
    margin-bottom: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.page-home .home-layer-matrix-label {
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
}
.page-home .home-layer-matrix-row {
    padding: 0.7rem 0;
    border-top: 1px solid rgba(13, 18, 26, 0.08);
    font-family: var(--font-mono);
    font-weight: 700;
}
.page-home .home-layer-matrix .is-ok { color: var(--pass); }
.page-home .home-layer-matrix .is-loss { color: var(--warn); }
.page-home .home-layer-callout {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(201, 162, 39, 0.14);
    font-weight: 700;
    font-size: 0.95rem;
}

.page-home .home-task-demo {
    padding: 2rem 1.75rem;
    border-radius: 18px;
    background: #121820;
    color: #e8eef7;
}
.page-home .home-task-demo .home-demo-label { color: #9aa8bc; }
.page-home .home-task-name {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
}
.page-home .home-task-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}
.page-home .home-task-steps li {
    display: flex;
    gap: 0.65rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    line-height: 1.45;
}
.page-home .home-task-steps li span { font-weight: 800; width: 1.1rem; }
.page-home .home-task-steps li.is-ok span { color: #6dcea0; }
.page-home .home-task-steps li.is-fail span { color: #f0c36d; }
.page-home .home-task-fail {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(240, 195, 109, 0.12);
    border: 1px solid rgba(240, 195, 109, 0.28);
    color: #f0c36d;
    font-weight: 650;
    line-height: 1.45;
}

.page-home .home-evidence {
    padding: 6rem 0;
}
.page-home .home-evidence-inner { max-width: 52rem; }
.page-home .home-evidence h2 {
    margin-bottom: 1.75rem;
    font-size: clamp(1.7rem, 2.8vw, 2.25rem);
}
.page-home .home-evidence-card {
    display: grid;
    gap: 1.5rem;
    padding: 2.1rem 0 0;
    border-top: 1px solid rgba(13, 18, 26, 0.12);
}
.page-home .home-evidence-label {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.page-home .home-evidence-card p:last-child {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 40rem;
}
.page-home .home-evidence-card code {
    font-family: var(--font-mono);
    font-size: 0.92em;
}

.page-home .home-definition {
    padding: 4.5rem 0;
}
.page-home .home-definition-inner {
    max-width: 42rem;
}
.page-home .home-definition-inner p {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--ink);
}
.page-home .home-definition-inner p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.page-home .home-guides {
    padding: 5rem 0;
}
.page-home .home-guides h2 {
    margin: 0 0 0.5rem;
    max-width: 18ch;
    font-size: clamp(1.7rem, 2.8vw, 2.25rem);
}
.page-home .home-guides-lede {
    margin: 0 0 1.75rem;
    max-width: 36rem;
    color: var(--muted);
    line-height: 1.65;
}
.page-home .home-guides-list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}
.page-home .home-guides-list a {
    display: grid;
    gap: 0.35rem;
    padding: 1.15rem 0;
    border-top: 1px solid rgba(13, 18, 26, 0.1);
    text-decoration: none;
    color: inherit;
}
.page-home .home-guides-list li:last-child a {
    border-bottom: 1px solid rgba(13, 18, 26, 0.1);
}
.page-home .home-guides-list strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.page-home .home-guides-list span {
    color: var(--muted);
    line-height: 1.55;
    max-width: 40rem;
}
.page-home .home-guides-list a:hover strong {
    color: var(--accent-ink);
}
.page-home .home-guides-more { margin: 0; }

.page-home .home-also {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.35);
    border-block: 1px solid rgba(13, 18, 26, 0.06);
}
.page-home .home-also h2 {
    margin-bottom: 0.5rem;
    font-size: 1.45rem;
}
.page-home .home-also-lede {
    margin: 0 0 1.5rem;
    color: var(--muted);
    max-width: 32rem;
    line-height: 1.65;
}
.page-home .home-also-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1.25rem;
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}
.page-home .home-also-list li {
    font-weight: 650;
    font-size: 1.02rem;
}
.page-home .home-also-list a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
.page-home .home-also-list a:hover {
    color: var(--accent-ink);
}
.page-home .home-also-more { margin: 0; }

.page-home .home-final-cta {
    padding: 6.5rem 0 7.5rem;
}
.page-home .home-final-inner {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}
.page-home .home-final-cta h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}
.page-home .home-final-cta .btn-primary {
    display: inline-flex;
    min-width: 14rem;
    justify-content: center;
}

@media (max-width: 900px) {
    .page-home .home-hero {
        min-height: calc(86vh - var(--header-height));
        padding: 2.75rem 0 2.25rem;
    }
    .page-home .home-hero h1 {
        max-width: none;
        font-size: clamp(2.2rem, 9vw, 3.1rem);
    }
    .page-home .home-hero .hero-claim-line {
        white-space: normal;
    }
    .page-home .scan-combo {
        flex-direction: column;
        min-height: 0;
        padding: 0.45rem;
        gap: 0.35rem;
    }
    .page-home .scan-form-landing .url-input {
        min-height: 3.4rem;
        padding: 0.85rem 1rem;
    }
    .page-home .scan-combo-submit {
        width: 100%;
        min-height: 3.25rem;
        margin: 0;
        justify-content: center;
    }
    .page-home .home-feature-grid {
        grid-template-columns: 1fr;
    }
    .page-home .home-demo-board {
        grid-template-columns: 1fr;
    }
    .page-home .home-feature-grid-reverse .home-feature-copy,
    .page-home .home-feature-grid-reverse .home-task-demo { order: 0; }
    .page-home .home-layer-matrix-head,
    .page-home .home-layer-matrix-row {
        grid-template-columns: 5.5rem repeat(4, 1fr);
        font-size: 0.78rem;
    }
    .page-home .home-demo-result {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-home .home-feature,
    .page-home .home-demo,
    .page-home .home-evidence,
    .page-home .home-final-cta { padding: 4rem 0; }
}

.scan-form .url-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.45rem;
    font-size: 15px;
}
.url-input {
    width: 100%;
    min-height: 50px;
    font-size: 16px;
    font-family: var(--font-mono);
    padding: 0.9rem 1.1rem;
    border: 1.5px solid rgba(13, 18, 26, 0.18);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}
.url-input:focus {
    outline: 3px solid var(--accent-soft);
    border-color: var(--accent);
}
.option-set {
    border: 0;
    margin: 1.35rem 0 0;
    padding: 0;
}
.option-set-policy {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--line);
}
.option-set legend {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 15px;
}
.radio {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0.5rem 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 15px;
}
.radio input { margin-top: 0.3rem; accent-color: var(--accent); }
.radio-label { display: block; color: var(--ink); }
.policy-help,
.help-inline {
    display: block;
    margin-top: 0.2rem;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--muted);
}
.help-inline { display: inline; font-style: normal; }
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.1rem;
}
.scan-form-simple .form-actions {
    margin-top: 1rem;
}
.trust-list-inline {
    margin-top: 0.9rem;
}
.advanced-options {
    margin-top: 1rem;
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
}
.advanced-options summary {
    cursor: pointer;
    font-weight: 650;
    font-size: 14px;
    color: var(--accent-ink);
    list-style: none;
}
.advanced-options summary::-webkit-details-marker { display: none; }
.advanced-options summary::after {
    content: " ▾";
    font-size: 0.85em;
    opacity: 0.75;
}
.advanced-options[open] summary::after { content: " ▴"; }
.advanced-options .option-set-scope {
    margin-top: 0.85rem;
}
.sample-badge {
    display: inline-block;
    margin: 0 0 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-ink);
}
.sample-badge-on-stat {
    margin-bottom: 0.35rem;
}
.page-band { padding: 2.2rem 0 3rem; }
.tools-group { margin-top: 2.25rem; }
.page-type-banner {
    margin: 1rem 0 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}
.page-type-banner p { margin: 0.2rem 0; }
.page-type-confirm { padding: 0.5rem 0 0; }
.page-type-confirm-card {
    padding: 1.35rem 1.5rem 1.5rem;
    border: 1px solid #c9a227;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 244, 214, 0.95), rgba(255, 250, 235, 0.92));
    box-shadow: 0 10px 28px rgba(40, 30, 0, 0.06);
}
.page-type-confirm-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    color: #8a6a00;
}
.page-type-confirm-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.35rem;
    line-height: 1.25;
}
.page-type-options {
    margin: 1rem 0 0.75rem;
    padding: 0;
    border: 0;
}
.page-type-options legend {
    font-weight: 650;
    margin-bottom: 0.55rem;
}
.page-type-option {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.45rem 0;
    cursor: pointer;
}
.page-type-option input { margin-top: 0.2rem; }
.page-type-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.75rem;
}
.waiting-panel {
    margin: 0.5rem 0 0;
    padding: 1.1rem 1.2rem;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,0.55);
}
.waiting-panel p { margin: 0.25rem 0; }
.pill-warn {
    background: rgba(201, 162, 39, 0.18) !important;
    color: #6d5500 !important;
}
.chip-note {
    margin: 0.55rem 0 0;
    font-size: 13px;
    color: var(--muted);
    max-width: 36rem;
    line-height: 1.45;
}
.cat-detail {
    margin: -0.35rem 0 0.75rem;
    font-size: 13px;
    color: var(--muted);
}
.observations-block {
    margin: 1.25rem 0 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
}
.observations-block summary {
    cursor: pointer;
    font-weight: 650;
    font-size: 14px;
}
.observations-block ul {
    margin: 0.65rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.integrity-badge {
    display: inline-block;
    margin: 0.65rem 0 0;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}
.layer-scores {
    margin: 1.25rem 0 1.75rem;
}
.layer-scores-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}
.integrity-badge.is-basic {
    border-color: #b08900;
    background: rgba(176, 137, 0, 0.08);
}
.integrity-badge.is-verified {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}
.integrity-badge.is-issue {
    background: rgba(220, 38, 38, 0.1);
    color: #b91c1c;
}
.survival-pipeline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.35rem;
    list-style: none;
    margin: 0.85rem 0 1.1rem;
    padding: 0;
    font-size: 13px;
    font-weight: 650;
    color: var(--muted);
}
.survival-pipeline li {
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}
.survival-pipeline li:not(:last-child)::after {
    content: "→";
    margin-left: 0.55rem;
    color: var(--accent-ink);
}
.evidence-shot {
    display: block;
    width: min(960px, 100%);
    height: auto;
    margin: 0.75rem 0 1.25rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #0d121a;
}
.chip-info {
    background: var(--accent-soft);
    color: var(--accent-ink);
}
.cat-row.is-na strong { color: var(--muted); font-weight: 650; }
.cat-row.is-na .bar i { background: rgba(13, 18, 26, 0.12); }
.finding-compact.informational {
    border-color: rgba(11, 95, 255, 0.22);
}
tr.is-na td { color: var(--muted); }
.policy-chooser {
    margin: 1.25rem 0 1.5rem;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}
.policy-chooser h3 {
    margin-bottom: 0.35rem;
}
.policy-chooser-intro {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}
.policy-chooser-status {
    margin: 0.85rem 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-ink);
}
.policy-chooser-status.is-error { color: var(--critical); }
.measured-access {
    margin: 0 0 1.25rem;
}
.measured-access h3 {
    margin-bottom: 0.5rem;
}
.btn-primary,
.btn-ghost {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    font-size: 15px;
    border-radius: 11px;
    padding: 0.9rem 1.35rem;
}
.btn-primary {
    min-width: 12.5rem;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 95, 255, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(11, 95, 255, 0.34); }
.btn-primary:disabled { opacity: 0.65; cursor: wait; transform: none; }
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(13, 18, 26, 0.28); background: rgba(255, 255, 255, 0.7); }
.form-status { margin: 0.85rem 0 0; font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.form-status.is-error { color: var(--critical); }

/* Scan loader overlay */
body.is-scanning { overflow: hidden; }
.scan-loader {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    place-items: center;
    padding: 1.25rem;
}
.scan-loader.is-open { display: grid; }
.scan-loader-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 420px at 50% 30%, rgba(11, 95, 255, 0.16), transparent 60%),
        rgba(13, 18, 26, 0.52);
    backdrop-filter: blur(10px);
}
.scan-loader-card {
    position: relative;
    width: min(26rem, 100%);
    padding: 2.1rem 1.75rem 1.85rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 30px 80px rgba(13, 18, 26, 0.28);
    text-align: center;
}
.scan-loader-visual {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
}
.scan-loader-ring,
.scan-loader-ring-2 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent);
    border-right-color: rgba(11, 95, 255, 0.25);
    animation: scan-spin 1.1s linear infinite;
}
.scan-loader-ring-2 {
    inset: 0.45rem;
    border-top-color: #1a2433;
    border-right-color: rgba(26, 36, 51, 0.2);
    animation-duration: 1.7s;
    animation-direction: reverse;
}
.scan-loader-core {
    position: absolute;
    inset: 1.15rem;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--accent), #1a2433);
    box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.12);
    animation: scan-pulse 1.6s ease-in-out infinite;
}
.scan-loader-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.scan-loader-host {
    margin: 0.35rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--muted);
    word-break: break-all;
}
.scan-loader-step {
    margin: 1rem 0 0;
    font-size: 0.98rem;
    font-weight: 650;
    color: var(--ink);
    min-height: 1.4em;
}
.scan-loader-dots {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin: 1.15rem 0 0;
    padding: 0;
}
.scan-loader-dots li {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0.35;
    animation: scan-dot 1.2s ease-in-out infinite;
}
.scan-loader-dots li:nth-child(2) { animation-delay: 0.15s; }
.scan-loader-dots li:nth-child(3) { animation-delay: 0.3s; }

@keyframes scan-spin {
    to { transform: rotate(360deg); }
}
@keyframes scan-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.85; }
    50% { transform: scale(1); opacity: 1; }
}
@keyframes scan-dot {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .scan-loader-ring,
    .scan-loader-ring-2,
    .scan-loader-core,
    .scan-loader-dots li { animation: none; }
}

.trust-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 1.15rem 0 0;
    padding: 0;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}
.trust-list li::before {
    content: "✓ ";
    color: var(--pass);
    font-weight: 700;
}

.compare-demo { padding: 1.75rem 0 2rem; }
.compare-head { margin-bottom: 1.15rem; }
.section-intro {
    color: var(--muted);
    max-width: 42rem;
    margin: 0.35rem 0 0;
    font-size: 16px;
    line-height: 1.55;
}
.compare-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 0.85fr;
    gap: 1rem;
}
.compare-pane,
.compare-stat {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
}
.compare-pane-machine { background: #121820; color: #e8eef7; border-color: #243041; }
.compare-pane-machine h3 { color: #fff; }
.human-mock, .machine-mock { margin: 0.45rem 0 0; font-size: 15px; line-height: 1.55; }
.mock-kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.35rem;
}
.mock-kicker-on-dark { color: rgba(232, 238, 247, 0.65); }
.mock-title { font-weight: 700; }
.machine-mock {
    font-family: var(--font-mono);
    font-size: 14px;
    white-space: pre-wrap;
    line-height: 1.55;
    margin: 0;
}
.stat-number {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--accent);
    margin: 0;
    line-height: 1;
}
.stat-copy { color: var(--muted); margin: 0.65rem 0 1rem; font-size: 15px; line-height: 1.5; }
.text-link { font-weight: 700; font-size: 15px; }

.how-band {
    padding: 0.5rem 0 1.25rem;
}
.how-steps {
    list-style: none;
    margin: 0;
    padding: 1.15rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.how-steps li {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}
.how-num {
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}
.how-steps strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    margin-bottom: 0.2rem;
}
.how-steps p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.features-band { padding: 1.25rem 0 2.5rem; }
.tools-band { padding: 2.4rem 0 2rem; }
.tools-band-all { padding-top: 0.5rem; padding-bottom: 3rem; }
.feature-grid, .tool-grid {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
}
.feature-grid li {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.25rem;
}
.feature-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}
.feature-grid h3 { font-size: 1.12rem; }

.tool-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 100%;
    background: rgba(255, 255, 255, 0.78);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.25rem;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tool-card:hover {
    border-color: rgba(11, 95, 255, 0.5);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(13, 18, 26, 0.08);
}
.tool-card:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 2px;
    border-color: var(--accent);
}
.tool-card-main { min-width: 0; }
.tool-card strong {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-display);
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}
.tool-card-desc {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}
.tool-card-arrow {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: var(--accent);
    font-size: 1.25rem;
    font-weight: 700;
    transition: transform 0.15s ease;
}
.tool-card:hover .tool-card-arrow { transform: translateX(3px); }
.tools-more {
    margin: 1.25rem 0 0;
}

.site-footer {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.45);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem 0;
    flex-wrap: wrap;
}
.footer-brand {
    margin: 0;
    line-height: 0;
}
.footer-brand img {
    display: block;
    height: 30px;
    width: auto;
    object-fit: contain;
    background: transparent;
}
.footer-tag {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    max-width: 28rem;
}
.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.site-footer a {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
}
.site-footer a:hover { color: var(--ink); }

.prose, .prose-lite { padding: 2rem 0 3rem; max-width: 46rem; }
.prose .lede { font-size: 1.2rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose blockquote {
    margin: 1.25rem 0;
    padding: 0.85rem 1.1rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    color: var(--ink);
}
.prose blockquote p { margin: 0; }
.prose pre {
    overflow-x: auto;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #121820;
    color: #e8eef7;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.55;
}
.prose code {
    font-family: var(--font-mono);
    font-size: 0.92em;
}
.prose :not(pre) > code {
    padding: 0.1em 0.35em;
    border-radius: 6px;
    background: rgba(13, 18, 26, 0.06);
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.75rem;
    font-size: 0.95rem;
}
.prose th, .prose td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
}
.prose th { background: rgba(255,255,255,0.7); }
.prose .blog-cta { margin-top: 2rem; }
.page-blog .container.prose,
.page-guides .container.prose { margin-inline: auto; }
.inline-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
}
.post-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: grid;
    gap: 0.8rem;
}
.post-list a {
    display: grid;
    gap: 0.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: inherit;
}
.post-list span, .post-list time { color: var(--muted); }

/* Results / scrollable report */
.page-results main { padding-bottom: 4rem; }
.results-hero { padding: 1.8rem 0 1.25rem; scroll-margin-top: 7rem; }
.results-top {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 1.4rem;
    align-items: start;
}
.readiness-block {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
}
.readiness-label {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0.2rem 0 0.5rem;
}
.score-line { margin: 0; font-size: 1.1rem; }
.score-line-secondary { margin-top: 0.85rem; font-size: 0.98rem; color: var(--muted); }
.score-disclaimer { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.95rem; }
.meta-line.warn-line {
    color: #9a3412;
    background: #fff7ed;
    border-left: 3px solid #f97316;
    padding: 0.65rem 0.85rem;
    margin: 0.5rem 0 0;
}
.meta-line { color: var(--muted); margin: 0.35rem 0 0; font-size: 15px; }
.hero-differentiator {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}
.hero-diff-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.hero-diff-value {
    margin: 0.2rem 0 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.35;
}
.score-formula {
    margin-top: 0.65rem;
    font-size: 0.92rem;
}
.score-formula summary {
    cursor: pointer;
    color: var(--accent-ink);
    font-weight: 650;
}

.issue-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0 0;
    padding: 0;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
}
.chip strong { font-family: var(--font-display); font-size: 14px; }
.chip-critical { color: var(--critical); border-color: rgba(180, 35, 24, 0.25); background: rgba(180, 35, 24, 0.06); }
.chip-warn { color: var(--warn); border-color: rgba(154, 103, 0, 0.25); background: rgba(154, 103, 0, 0.08); }
.chip-pass { color: var(--pass); border-color: rgba(10, 122, 74, 0.25); background: rgba(10, 122, 74, 0.07); }

.category-bars {
    margin-top: 1.3rem;
    display: grid;
    gap: 0.55rem;
}
.cat-row {
    display: grid;
    grid-template-columns: 14rem 1fr 3rem;
    gap: 0.75rem;
    align-items: center;
}
.bar {
    height: 0.55rem;
    background: rgba(13, 18, 26, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #3d7cff);
    border-radius: inherit;
}

.priorities {
    margin-top: 1.4rem;
    padding: 1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
}
.priorities ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }

.result-tabs {
    position: sticky;
    top: 64px;
    z-index: 20;
    background: rgba(245, 247, 250, 0.97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(13, 18, 26, 0.06);
    backdrop-filter: blur(10px);
}
.result-tabs-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem;
    padding: 0.65rem 0;
    overflow-x: auto;
    scrollbar-width: thin;
}
.result-tabs .tab,
.view-tabs button {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font: inherit;
    font-weight: 650;
    font-size: 13px;
    cursor: pointer;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
}
.result-tabs .tab:hover { color: var(--ink); border-color: rgba(13, 18, 26, 0.25); }
.result-tabs .tab.is-active,
.view-tabs button.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.result-tabs .tab:focus-visible,
.view-tabs button:focus-visible {
    outline: 3px solid var(--accent-soft);
    outline-offset: 2px;
}
.view-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }

.report-body { padding-top: 0.5rem; }
.report-section {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 7.5rem;
}
.report-section:last-child { border-bottom: 0; }
.report-section-wide .machines-compare {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
}
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}
.section-head h2 { margin: 0; }
.section-count {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
    white-space: nowrap;
}

.finding-compact-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.9rem 0;
}
.finding-compact {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}
.finding-compact.critical { box-shadow: inset 3px 0 0 var(--critical); }
.finding-compact.attention,
.finding-compact.warning { box-shadow: inset 3px 0 0 var(--warn); }
.finding-compact.passed { box-shadow: inset 3px 0 0 var(--pass); }
.finding-compact.informational { box-shadow: inset 3px 0 0 var(--accent); }
.finding-compact > summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
}
.finding-compact > summary::-webkit-details-marker { display: none; }
.finding-compact-title { min-width: 0; }
.finding-actions {
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.finding-compact-body {
    padding: 0 1rem 1rem 2.4rem;
    border-top: 1px solid var(--line);
    font-size: 15px;
}
.finding-row {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}
.evidence-block {
    margin: 0.9rem 0;
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 0.35rem 0.85rem 0.85rem;
    background: rgba(255, 255, 255, 0.55);
}
.evidence-block > summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    padding: 0.55rem 0;
    color: var(--accent-ink);
}
.btn-sm {
    padding: 0.45rem 0.8rem;
    font-size: 13px;
}

.split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.kv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}
.kv-list li {
    display: grid;
    grid-template-columns: 11rem 1fr;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
}
.kv-list span { color: var(--muted); }
.kv-list strong { font-weight: 650; word-break: break-word; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.6rem 0 1.2rem;
    background: rgba(255, 255, 255, 0.7);
}
.data-table th,
.data-table td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.75rem;
    text-align: left;
    vertical-align: top;
}
.data-table th {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    background: rgba(238, 241, 245, 0.9);
}
.cell-note {
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.status-pass { color: var(--pass); }
.status-warn, .status-attention { color: var(--warn); }
.status-critical { color: var(--critical); }
.status-info { color: var(--info); }

.status-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem;
    display: grid;
    gap: 0.45rem;
}
.status-list li {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.65);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0.8rem 0 1rem;
}
.stat-strip > div {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem;
}
.stat-strip span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}
.stat-strip strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
}
.coverage-line { font-size: 1.15rem; }

.code-block {
    margin: 0.7rem 0;
    padding: 1rem;
    overflow: auto;
    background: #121820;
    color: #e7eef8;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.5;
}

.finding {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
}
.finding.critical { border-color: rgba(180, 35, 24, 0.35); box-shadow: inset 3px 0 0 var(--critical); }
.finding.attention { box-shadow: inset 3px 0 0 var(--warn); }
.finding.informational { box-shadow: inset 3px 0 0 var(--accent); }
.finding-sev {
    margin: 0 0 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.info-callout {
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--ink);
}

@media (max-width: 960px) {
    .hero-grid,
    .compare-grid,
    .results-top,
    .split-2,
    .stat-strip,
    .feature-grid,
    .tool-grid,
    .how-steps {
        grid-template-columns: 1fr;
    }
    .site-nav { display: none; }
    .cat-row { grid-template-columns: 1fr; gap: 0.25rem; }
    .kv-list li { grid-template-columns: 1fr; }
    .header-cta { margin-left: auto; }
}

/* ===== Report v2 — progressive disclosure layout ===== */
.page-results main { padding-bottom: 5rem; }
.container-report {
    width: min(1260px, calc(100% - 2rem));
    margin-inline: auto;
}
.report-v2 { padding-bottom: 3rem; }

.report-header {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0 1.1rem;
    border-bottom: 1px solid var(--line);
}
.report-kicker {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.report-domain {
    margin: 0.25rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 700;
    line-height: 1.15;
}
.report-submeta, .report-status-pills {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 13px;
}
.report-status-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.report-status-pills span {
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
}
.report-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}
.download-menu { position: relative; }
.download-menu summary { list-style: none; cursor: pointer; }
.download-menu summary::-webkit-details-marker { display: none; }
.download-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    min-width: 12rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    gap: 0.25rem;
    z-index: 30;
}
.download-menu-panel a {
    text-decoration: none;
    color: var(--ink);
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    font-size: 14px;
}
.download-menu-panel a:hover { background: var(--accent-soft); }

.outcome-summary { padding: 1.75rem 0 0.5rem; }
.outcome-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 1.25rem;
    align-items: stretch;
}
.outcome-card, .metric-tile, .action-finding, .report-panel, .task-card, .unit-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.outcome-card-main { padding: 1.5rem 1.6rem; }
.outcome-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.outcome-headline {
    margin: 0.55rem 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    font-weight: 700;
    line-height: 1.2;
}
.outcome-lede {
    margin: 0.75rem 0 1.1rem;
    color: var(--muted);
    font-size: 15px;
    max-width: 38rem;
}
.outcome-metrics {
    display: grid;
    gap: 0.7rem;
    align-content: start;
}
.metric-tile {
    padding: 0.9rem 1rem;
}
.metric-tile span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.metric-tile strong {
    display: block;
    margin-top: 0.25rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
}
.metric-tile em {
    display: block;
    margin-top: 0.15rem;
    font-style: normal;
    color: var(--muted);
    font-size: 13px;
}
.outcome-score-line {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 13px;
}

.action-plan { padding: 1.75rem 0 0.5rem; }
.action-plan-head, .panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.9rem;
}
.action-plan-head h2, .panel-head h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
}
.action-empty, .action-finding {
    padding: 1.15rem 1.25rem;
}
.action-finding {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0.85rem;
}
.action-finding.sev-warning { box-shadow: inset 3px 0 0 var(--warn); }
.action-finding.sev-critical { box-shadow: inset 3px 0 0 var(--critical); }
.action-finding-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.5rem; }
.state-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    border: 1px solid var(--line);
}
.state-warning, .state-attention { color: var(--warn); background: rgba(154, 103, 0, 0.08); border-color: rgba(154, 103, 0, 0.25); }
.state-critical { color: var(--critical); background: rgba(180, 35, 24, 0.06); border-color: rgba(180, 35, 24, 0.25); }
.state-passed, .state-pass { color: var(--pass); background: rgba(10, 122, 74, 0.07); border-color: rgba(10, 122, 74, 0.25); }
.state-info, .state-cat, .state-not-evaluated { color: var(--muted); background: rgba(13, 18, 26, 0.04); }
.action-finding h3 { margin: 0 0 0.45rem; font-size: 1.15rem; }
.action-finding-meta {
    list-style: none;
    margin: 0.85rem 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}
.action-finding-meta li {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 0.5rem;
    font-size: 14px;
}
.action-finding-meta span { color: var(--muted); }
.action-finding-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.action-finding-fix h4 { margin: 0 0 0.4rem; font-size: 14px; }
.verify-cta { margin-top: 1rem; }

.report-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 2.5rem;
    align-items: start;
}
.report-sidenav {
    position: sticky;
    top: 5.5rem;
    align-self: start;
}
.sidenav-mobile { display: none; }
.sidenav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.2rem;
}
.sidenav-list a {
    display: grid;
    grid-template-columns: 1.1rem 1fr auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}
.sidenav-list a.is-active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    box-shadow: inset 3px 0 0 var(--accent);
}
.sidenav-list a em {
    font-style: normal;
    font-size: 12px;
    color: var(--warn);
}
.nav-state.pass { color: var(--pass); }
.nav-state.issue { color: var(--warn); }
.nav-state.muted { color: #9aa3b2; }
.sidenav-divider {
    height: 1px;
    background: var(--line);
    margin: 0.45rem 0;
}

.report-main { display: grid; gap: 4rem; min-width: 0; }
.report-panel { padding: 1.4rem 1.5rem 1.6rem; scroll-margin-top: 6.5rem; }
.panel-head p { margin: 0.4rem 0 0; color: var(--muted); max-width: 42rem; }

.layer-pipeline {
    list-style: none;
    margin: 1rem 0 1.4rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}
.layer-pipeline li {
    padding: 0.75rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(247, 249, 252, 0.9);
}
.layer-pipeline li.is-weak {
    border-color: rgba(154, 103, 0, 0.35);
    background: rgba(154, 103, 0, 0.06);
}
.layer-pipeline span { display: block; color: var(--muted); font-size: 12px; }
.layer-pipeline strong { font-family: var(--font-display); font-size: 1.15rem; }

.survival-review h3 {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1rem;
    margin: 1.1rem 0 0.55rem;
}
.survival-review h3 em { font-style: normal; color: var(--muted); font-weight: 650; }
.unit-card, .task-card { margin-bottom: 0.55rem; overflow: hidden; }
.unit-card > summary, .task-card > summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    padding: 0.85rem 1rem;
    cursor: pointer;
    list-style: none;
}
.unit-card > summary::-webkit-details-marker,
.task-card > summary::-webkit-details-marker { display: none; }
.unit-layer-marks { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-left: auto; font-size: 12px; }
.unit-layer-marks .ok { color: var(--pass); }
.unit-layer-marks .bad { color: var(--critical); }
.unit-card-body, .task-card > :not(summary) { padding: 0 1rem 1rem; }
.passed-units { margin-top: 1rem; }
.passed-units summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--accent-ink);
}
.passed-units summary span { color: var(--muted); font-weight: 650; margin-left: 0.5rem; }
.data-table.compact { font-size: 13px; }

.subtabs {
    display: flex;
    gap: 0.4rem;
    margin: 0.5rem 0 1rem;
}
.subtabs button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}
.subtabs button.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.check-list {
    list-style: none;
    margin: 0.4rem 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.35rem;
}
.check-list li { font-size: 14px; }
.check-group-title { font-size: 14px; margin: 1rem 0 0.35rem; }
.step-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.kv-list.tight { margin: 0 0 1rem; }

.crawler-summary-tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin-bottom: 1rem;
}
.policy-block { margin: 1rem 0; }
.mismatch-list { display: grid; gap: 0.5rem; margin: 0.8rem 0; }
.mismatch-card {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(180, 35, 24, 0.2);
    border-radius: 12px;
    background: rgba(180, 35, 24, 0.04);
}
.mismatch-card p { margin: 0.2rem 0 0; color: var(--muted); font-size: 14px; }

.tech-group {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    margin: 0.55rem 0;
    padding: 0.2rem 0.85rem 0.85rem;
}
.tech-group > summary {
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 0.75rem 0.15rem;
    font-weight: 700;
    list-style: none;
}
.tech-group > summary::-webkit-details-marker { display: none; }
.tech-group > summary em {
    margin-left: auto;
    font-style: normal;
    color: var(--muted);
    font-weight: 650;
    font-size: 13px;
}

.policy-modal {
    border: 0;
    border-radius: 16px;
    padding: 0;
    max-width: 32rem;
    width: calc(100% - 2rem);
    box-shadow: var(--shadow);
}
.policy-modal::backdrop { background: rgba(13, 18, 26, 0.45); }
.policy-modal-inner { padding: 1.25rem 1.35rem 1.35rem; }
.policy-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.evidence-drawer[hidden] { display: none !important; }
.evidence-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
}
.evidence-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 18, 26, 0.4);
}
.evidence-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 100%);
    height: 100%;
    background: #fff;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(13, 18, 26, 0.12);
}
.evidence-drawer-panel header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line);
}
.evidence-drawer-panel header h3 { margin: 0; font-size: 1.05rem; }
.evidence-drawer-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
}
.evidence-drawer-tabs button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
}
.evidence-drawer-tabs button.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.evidence-drawer-body {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.1rem;
}
.evidence-drawer-footer {
    display: flex;
    gap: 0.45rem;
    padding: 0.85rem 1.1rem;
    border-top: 1px solid var(--line);
}
.mt-lg { margin-top: 1.25rem; }
.btn-sm { font-size: 13px; padding: 0.45rem 0.8rem; }

@media (max-width: 980px) {
    .outcome-grid,
    .action-finding,
    .report-shell,
    .layer-pipeline,
    .crawler-summary-tiles {
        grid-template-columns: 1fr;
    }
    .report-header { flex-direction: column; }
    .report-sidenav {
        position: sticky;
        top: 3.8rem;
        z-index: 15;
        background: rgba(245, 247, 250, 0.96);
        backdrop-filter: blur(10px);
        padding: 0.55rem 0;
        border-bottom: 1px solid var(--line);
        margin: 0 -1rem;
        padding-inline: 1rem;
    }
    .sidenav-list { display: none; }
    .sidenav-mobile {
        display: grid;
        gap: 0.25rem;
        font-size: 13px;
        font-weight: 700;
        color: var(--muted);
    }
    .sidenav-mobile select {
        font: inherit;
        font-weight: 700;
        color: var(--ink);
        padding: 0.55rem 0.7rem;
        border-radius: 10px;
        border: 1px solid var(--line);
        background: #fff;
    }
    .report-main { gap: 2.5rem; }
    .evidence-drawer-panel { width: 100%; }
}

/* —— Machine-View Debugger —— */
.debugger { padding-bottom: 3.5rem; }
.dbg-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem 0 0.75rem;
}
.dbg-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.dbg-domain {
    margin: 0.2rem 0 0.35rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
}
.dbg-submeta { margin: 0; color: var(--muted); font-size: 0.95rem; }
.dbg-topbar-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.dbg-workspaces {
    display: flex;
    gap: 0.35rem;
    padding: 0.75rem 0 1rem;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(248,245,238,0.96), rgba(248,245,238,0.88));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.dbg-ws-btn {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.7);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    cursor: pointer;
}
.dbg-ws-btn.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.dbg-ws-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dbg-workspace { padding: 1.25rem 0 2rem; }
.dbg-workspace[hidden] { display: none !important; }

.dbg-decision {
    padding: 1.4rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.72);
    margin-bottom: 1.1rem;
}
.dbg-decision.sev-attention,
.dbg-decision.sev-provisional {
    border-color: #c9a227;
    background: linear-gradient(180deg, rgba(255,244,214,0.95), rgba(255,250,235,0.9));
}
.dbg-decision.sev-passed {
    border-color: #7aa88a;
    background: linear-gradient(180deg, rgba(230,245,234,0.95), rgba(245,252,247,0.9));
}
.dbg-decision.sev-critical {
    border-color: #c46b6b;
    background: linear-gradient(180deg, rgba(255,236,236,0.95), rgba(255,248,248,0.9));
}
.dbg-decision-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}
.dbg-decision-line {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 650;
    line-height: 1.35;
    max-width: 40rem;
}
.dbg-decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dbg-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.dbg-stat {
    text-align: left;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.7);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.dbg-stat span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.dbg-stat strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.15rem;
}
.dbg-stat em {
    display: block;
    margin-top: 0.2rem;
    font-style: normal;
    color: var(--muted);
    font-size: 0.88rem;
}

.dbg-preview-strip {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.dbg-preview-pane {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem;
    background: rgba(255,255,255,0.65);
}
.dbg-preview-label {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}
.dbg-preview-shot {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #111;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}
.dbg-preview-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    object-position: top;
    opacity: 0.92;
}
.dbg-marker {
    position: absolute;
    left: 0.7rem;
    top: calc(0.7rem + (var(--n) - 1) * 2rem);
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    background: #c9a227;
    color: #1a1400;
    font-weight: 800;
    font-size: 0.8rem;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.dbg-marker-inline {
    display: inline-grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: #c9a227;
    color: #1a1400;
    font-size: 0.72rem;
    font-weight: 800;
    margin-right: 0.35rem;
}
.dbg-preview-units { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.dbg-preview-units li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.dbg-preview-units li.st-lost strong,
.dbg-preview-units li.st-not_detected strong { color: #a35b00; }
.dbg-preview-units li.st-survived strong { color: #2f6b45; }

.dbg-fix-queue {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.7);
    padding: 1.15rem 1.25rem 1.25rem;
}
.dbg-fix-queue header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
}
.dbg-fix-queue h2 { margin: 0; font-size: 1.15rem; }
.dbg-fix-queue header p { margin: 0; color: var(--muted); }
.dbg-fix-list { list-style: none; margin: 0; padding: 0; }
.dbg-fix-list > li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}
.dbg-fix-list h3 { margin: 0 0 0.25rem; font-size: 1.02rem; }
.dbg-fix-index {
    margin: 0 0 0.15rem;
    font-weight: 750;
    color: var(--muted);
    font-size: 0.85rem;
}
.dbg-fix-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.dbg-empty { margin: 0; }

.dbg-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.dbg-panel-head h2 { margin: 0 0 0.25rem; }
.dbg-panel-head p { margin: 0; color: var(--muted); }

.dbg-layer-switch { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.dbg-layer-btn {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--muted);
}
.dbg-layer-btn.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.mirror-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
    align-items: start;
}
.mirror-left, .mirror-right {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    overflow: hidden;
}
.mirror-stage { min-height: 280px; }
.mirror-shot-wrap { position: relative; background: #111; }
.mirror-shot {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    object-position: top;
}
.mirror-markers {
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-width: min(70%, 18rem);
}
.mirror-marker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 0;
    border-radius: 999px;
    background: rgba(201,162,39,0.95);
    color: #1a1400;
    font: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.7rem 0.35rem 0.45rem;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.mirror-marker.is-active { outline: 2px solid #fff; }
.mirror-marker span {
    font-weight: 650;
    font-size: 0.78rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mirror-code {
    margin: 0;
    padding: 1rem;
    max-height: 480px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    background: #171717;
    color: #e8e4d9;
}
.mirror-unit-rail {
    list-style: none;
    margin: 0;
    padding: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    border-top: 1px solid var(--line);
}
.mirror-unit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}
.mirror-unit-btn.is-active {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}
.mirror-unit-btn em {
    font-style: normal;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    background: #c9a227;
    color: #1a1400;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 800;
}
.mirror-unit-btn strong { font-weight: 700; opacity: 0.75; }

.mirror-right { padding: 1.15rem 1.25rem 1.35rem; position: sticky; top: 4.5rem; }
.mirror-detail-kicker {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.mirror-detail h3 { margin: 0 0 0.65rem; font-size: 1.25rem; }
.mirror-quote {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-left: 3px solid #c9a227;
    background: rgba(201,162,39,0.1);
    font-size: 0.98rem;
}
.mirror-layer-status { list-style: none; margin: 0 0 1rem; padding: 0; }
.mirror-layer-status li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.mirror-layer-status li.ok strong { color: #2f6b45; }
.mirror-layer-status li.bad strong { color: #a35b00; }
.mirror-layer-status li.na strong { color: var(--muted); }
.mirror-loss-callout {
    margin: 0 0 1rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: rgba(201,162,39,0.14);
    border: 1px solid rgba(201,162,39,0.35);
}
.mirror-loss-callout.is-ok {
    background: rgba(47,107,69,0.1);
    border-color: rgba(47,107,69,0.25);
}
.mirror-loss-callout p {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}
.mirror-loss-callout strong { font-size: 1.02rem; }
.mirror-fix h4 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.mirror-fix p { margin: 0 0 0.65rem; }

.task-replay-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 1rem;
    align-items: start;
}
.task-replay-list,
.task-replay-detail {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    padding: 0.9rem;
}
.task-replay-item {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 10px;
    padding: 0.65rem 0.7rem;
    font: inherit;
    cursor: pointer;
    margin-bottom: 0.25rem;
}
.task-replay-item.is-active {
    background: rgba(0,0,0,0.05);
    border-color: var(--line);
}
.task-icon { font-weight: 800; width: 1.1rem; }
.task-replay-item.st-pass .task-icon { color: #2f6b45; }
.task-replay-item.st-fail .task-icon,
.task-replay-item.st-partial .task-icon { color: #a35b00; }
.task-pending { margin-top: 0.85rem; }
.task-pending summary { cursor: pointer; font-weight: 650; color: var(--muted); }
.task-pending ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.task-replay-panel h3 { margin: 0.5rem 0 0.65rem; }
.task-steps { list-style: none; margin: 0 0 1rem; padding: 0; }
.task-steps li {
    display: flex;
    gap: 0.55rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
}
.task-steps strong { display: block; }
.task-shot {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.task-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    object-position: top;
}
.task-shot figcaption {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.tech-stack { display: flex; flex-direction: column; gap: 0.55rem; }
.tech-group.nested {
    margin-top: 0.75rem;
    background: rgba(0,0,0,0.02);
}
.policy-inline { margin: 0.75rem 0; }

@media (max-width: 980px) {
    .dbg-stat-row,
    .dbg-preview-strip,
    .mirror-grid,
    .task-replay-layout {
        grid-template-columns: 1fr;
    }
    .mirror-right { position: static; }
    .dbg-workspaces { overflow-x: auto; }
}
