:root {
    --paper: #f3f5f7;
    --paper-2: #e8edf1;
    --ink: #1d2d3b;
    --ink-soft: #50606d;
    --muted: #788692;
    --rule: #dce2e7;
    --panel: #ffffff;
    --copper: #356d8a;
    --copper-deep: #244d61;
    --forest: #1e4b50;
    --forest-soft: #2e6570;
    --find: #a45543;
    --ok: #2f8064;
    --shadow: 0 16px 34px rgba(27, 36, 48, 0.06);
    --display: "Instrument Sans", "Segoe UI", sans-serif;
    --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: clamp(100%, calc(100% + 0.1vw), 108%);
}

body.site {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
}

@media (min-width: 861px) {
    body.site { zoom: 1.1; }
}

a { color: var(--forest); }
a:hover { color: var(--copper-deep); }

.skip {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: var(--paper);
    padding: 0.5rem 1rem;
    z-index: 20;
}
.skip:focus { left: 0.75rem; top: 0.75rem; }

.wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid #dfe4e9;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}

.wordmark {
    text-decoration: none;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    line-height: 1.15;
}
.wordmark-mark {
    width: 2.1rem;
    height: 2.1rem;
    display: grid;
    place-items: center;
    border-radius: 7px;
    color: #fff;
    background: var(--forest);
    font-weight: 700;
}
.wordmark-text { display: flex; flex-direction: column; }
.wordmark strong {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 560;
}
.wordmark-text > span {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #82909b;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 1rem;
}

.nav a {
    text-decoration: none;
    color: #64727e;
    font-size: 0.92rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}
.nav a[aria-current="page"],
.nav a:hover { color: var(--copper-deep); background: #edf3f5; }

.nav-cta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.7rem 1.15rem;
    font: 560 0.92rem/1 var(--sans);
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--forest);
    color: #f4f7f6;
}
.btn-primary:hover { background: var(--forest-soft); color: #fff; }
.btn-ghost {
    background: transparent;
    border-color: var(--rule);
    color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-wide { width: 100%; border-radius: 12px; }

.eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--copper);
    font-weight: 600;
    margin: 0 0 0.75rem;
}

h1, h2, h3, .display { font-family: var(--display); font-weight: 520; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); line-height: 1.08; margin: 0 0 1rem; }
h2 { font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.15; margin: 0 0 0.8rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }

.lead, .deck {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 42rem;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 5.2rem 0 4.2rem;
    border-bottom: 1px solid var(--rule);
    background:
        linear-gradient(rgba(255,255,255,0.58), rgba(255,255,255,0.58)),
        linear-gradient(90deg, rgba(53,109,138,0.06) 1px, transparent 1px),
        linear-gradient(rgba(53,109,138,0.06) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 3rem;
    align-items: start;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.8rem; }

.finding {
    background: var(--panel);
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 1.35rem 1.4rem 1.45rem;
}
.finding dl { margin: 0; }
.finding div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--rule);
    font-size: 0.92rem;
}
.finding div:first-child { border-top: 0; }
.finding dt { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.finding dd { margin: 0; }
.severity { color: var(--find); font-weight: 600; }

.section { padding: 4.4rem 0; border-bottom: 1px solid var(--rule); }
.section-head { max-width: 42rem; margin-bottom: 2rem; }

.intent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.intent article,
.card, .risk, .audience, .flavor, .price {
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1.45rem 1.5rem 1.55rem;
}
.intent h3 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.grid-3, .grid-2 { display: grid; gap: 1.15rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }

.risk-index {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 0.6rem;
}
.risk a, .card a, .flavor a { font-weight: 600; text-decoration: none; }

.compare {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    font-size: 0.95rem;
}
.compare th, .compare td {
    border: 1px solid var(--rule);
    padding: 0.9rem 1rem;
    vertical-align: top;
    text-align: left;
}
.compare th { background: #e9eff2; font-weight: 600; }
.compare td:nth-child(2) { color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 1rem; }
.steps li {
    list-style: none;
    padding-left: 3.2rem;
    position: relative;
}
.steps li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0.1rem;
    font-family: var(--display);
    color: var(--copper);
}

.site-footer {
    padding: 3rem 0 3.2rem;
    color: #bcc9d2;
    background: #1b2430;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}
.footer-grid .eyebrow { color: #8fb8c5; }
.footer-grid a { text-decoration: none; color: #d8e3e9; display: block; margin: 0.3rem 0; }
.footer-grid a:hover { color: #fff; }
.fineprint { margin-top: 2rem; border-top: 1px solid #394653; padding-top: 1rem; color: #9eafb9; }

.page-hero {
    padding: 4rem 0 2.4rem;
    border-bottom: 1px solid var(--rule);
}
.prose { max-width: 44rem; }
.prose p { color: var(--ink-soft); }
.stack { display: grid; gap: 1rem; }

.auth-shell {
    min-height: calc(100vh - 8rem);
    display: grid;
    place-items: center;
    padding: 2.5rem 0 4rem;
}
.auth-card {
    width: min(28rem, 100%);
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 14px;
    padding: 2rem 1.7rem;
    box-shadow: var(--shadow);
}
label { display: block; font-size: 0.9rem; font-weight: 560; margin-bottom: 0.85rem; }
input, textarea, button.field {
    width: 100%;
    margin-top: 0.35rem;
    border: 1px solid var(--rule);
    background: #fff;
    color: var(--ink);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font: 400 1rem/1.4 var(--sans);
}
input:focus, textarea:focus {
    outline: 3px solid rgba(53, 109, 138, 0.14);
    border-color: #6f9eb3;
}
textarea { resize: vertical; min-height: 7rem; }
.notice {
    border: 1px solid var(--rule);
    padding: 0.75rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}
.notice-bad { border-color: #d7b3ab; background: #f8ece9; color: var(--find); }
.notice-ok { border-color: #b9cdb8; background: #eef5ee; color: var(--ok); }
.notice-info { background: #eef3f1; }

body.os {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 4.25rem 1fr;
    background: #f3f5f7;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.02rem;
    line-height: 1.55;
}
.os-rail {
    background: #1b2430;
    color: #d5dde6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.9rem 0 1.2rem;
    min-height: 100vh;
    position: sticky;
    top: 0;
}
.os-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 8px;
    background: #c45c32;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 1.1rem;
}
.os-rail-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    align-items: center;
}
.os-rail-nav a {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 9px;
    display: grid;
    place-items: center;
    color: #9aa7b5;
    text-decoration: none;
}
.os-rail-nav a:hover,
.os-rail-nav a[aria-current="page"] {
    background: #2a3544;
    color: #fff;
}
.os-rail svg {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
}
.os-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.os-top {
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 22rem) auto;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1.8rem;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #dfe4e9;
    position: sticky;
    top: 0;
    z-index: 8;
}
.os-case-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.os-case strong { font-weight: 600; }
.os-search input {
    width: 100%;
    margin: 0;
    border-radius: 999px;
    background: #fff;
}
.os-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-self: end;
}
.os-user button { width: auto; margin: 0; }
.os-canvas {
    width: min(1220px, calc(100% - 3.6rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
body.os .card,
body.os .finding,
body.os .empty-panel,
body.os .archive-panel {
    border-color: #dce2e7;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(27, 36, 48, 0.035);
}
body.os .os-canvas > h1 { margin-bottom: 0.55rem; }
body.os .os-canvas > .lead { color: #61717e; }
.os-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 1.7rem;
}
.dashboard-breadcrumb {
    color: #81909d;
    font-size: 0.73rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin: 0 0 0.65rem;
}
.dashboard-breadcrumb span { color: #b5bec6; padding: 0 0.35rem; }
.dashboard-header h1 {
    margin: 0 0 0.35rem;
    font-family: var(--display);
    font-size: clamp(2rem, 3vw, 2.55rem);
    letter-spacing: -0.035em;
}
.dashboard-subtitle { margin: 0; color: #6d7985; font-size: 0.95rem; }
.dashboard-actions { display: flex; align-items: center; gap: 1rem; }
.workspace-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #71808d;
    font-size: 0.75rem;
    white-space: nowrap;
}
.workspace-status span,
.data-status span {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #3c9c73;
    box-shadow: 0 0 0 3px rgba(60, 156, 115, 0.12);
}
.dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}
.dash-metric {
    min-height: 7.15rem;
    padding: 1.05rem 1.15rem 1rem;
    border: 1px solid #dce2e7;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(27, 36, 48, 0.025);
}
.metric-label {
    margin: 0;
    color: #7a8792;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}
.metric-value {
    margin: 0.35rem 0 0.1rem;
    color: #1d2d3b;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: -0.035em;
}
.metric-value-date { font-size: 1.7rem; }
.metric-caption { margin: 0; color: #9aa4ad; font-size: 0.78rem; }
.dash-card {
    background: #fff;
    border: 1px solid #dce2e7;
    border-radius: 12px;
    padding: 1.55rem 1.6rem 1.7rem;
    box-shadow: 0 10px 28px rgba(27, 36, 48, 0.035);
    margin-bottom: 1.2rem;
}
.dash-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.4rem;
}
.dash-section-heading .eyebrow { margin-bottom: 0.25rem; }
.dash-section-heading h2 { margin: 0; font-size: 1.35rem; }
.dash-label {
    margin: 0 0 0.7rem;
    color: #74818d;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}
.data-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    color: #337b5d;
    background: #edf8f2;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
}
.data-status span { width: 0.4rem; height: 0.4rem; box-shadow: none; }
.dash-empty h2 { margin: 0.35rem 0 0.6rem; font-family: var(--display); }
.dash-split {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 1.8rem;
    align-items: start;
}
.dash-kicker { margin: 0; color: var(--muted); font-size: 0.82rem; }
.dash-kpi {
    margin: 0.15rem 0 0.2rem;
    font-family: var(--display);
    font-size: 2.6rem;
    font-weight: 650;
    letter-spacing: -0.03em;
    color: #1d2d3b;
}
.donut-wrap {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}
.donut {
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 50%;
    position: relative;
}
.donut::after {
    content: "";
    position: absolute;
    inset: 1.7rem;
    border-radius: 50%;
    background: #fff;
}
.donut-legend { list-style: none; margin: 0; padding: 0; }
.donut-legend li {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.86rem;
    margin: 0.28rem 0;
}
.swatch {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 2px;
    flex: 0 0 auto;
}
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.dash-table th {
    text-align: left;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid #d7dde4;
    padding: 0.4rem 0.5rem 0.55rem 0;
}
.dash-table td {
    border-bottom: 1px solid #e6ebf0;
    padding: 0.7rem 0.5rem 0.7rem 0;
    vertical-align: middle;
}
.llm-chip {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #eef3f7;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}
.dash-instruments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}
.dash-mini {
    background: #fff;
    border: 1px solid #dce2e7;
    border-radius: 9px;
    padding: 1.05rem 1.05rem 1.1rem;
}
.dash-mini h3 { margin: 0.2rem 0 0.45rem; font-size: 1.05rem; }
.dash-mini-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.dash-mini .risk-index { margin: 0; }
.coverage-dot {
    width: 0.55rem;
    height: 0.55rem;
    margin-top: 0.2rem;
    border-radius: 50%;
    background: #c4ccd3;
}
.coverage-dot.is-measured { background: #3c9c73; }
.coverage-track {
    height: 0.3rem;
    margin: 0.8rem 0 0.55rem;
    border-radius: 999px;
    background: #edf0f2;
    overflow: hidden;
}
.coverage-track span { display: block; width: 0; height: 100%; border-radius: inherit; }
.coverage-track span.is-measured { width: 100%; background: #3c9c73; }
.dash-mini .small { margin: 0; color: #8a959e; font-size: 0.8rem; }
.dash-mini > p:last-child { margin-top: 0.85rem; }
.dash-mini a, .text-link { color: #356d8a; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.dash-mini a:hover, .text-link:hover { color: #244d61; }
.dash-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.75fr);
    gap: 1.15rem;
    align-items: stretch;
    margin-bottom: 1.2rem;
}
.dash-lower-grid .dash-card { margin-bottom: 0; }
.dash-coverage { min-width: 0; }
.dash-next {
    position: relative;
    overflow: hidden;
    padding: 1.55rem 1.6rem 1.7rem;
    border-radius: 12px;
    color: #edf5f6;
    background: #1e4b50;
    box-shadow: 0 10px 28px rgba(30, 75, 80, 0.12);
}
.dash-next::after {
    content: "";
    position: absolute;
    width: 11rem;
    height: 11rem;
    right: -4.5rem;
    bottom: -5rem;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
}
.dash-next .eyebrow { color: #a9d0c8; }
.dash-next h2 { max-width: 13rem; margin: 0.2rem 0 0.65rem; font-size: 1.45rem; }
.dash-next .small { position: relative; z-index: 1; color: #c3d9d8; }
.next-icon {
    color: #a9d0c8;
    font-size: 1.8rem;
    line-height: 1;
    margin: 0.5rem 0 0.8rem;
}
.btn-dark {
    position: relative;
    z-index: 1;
    margin-top: 0.6rem;
    color: #193c40;
    background: #d8eeea;
}
.btn-dark:hover { color: #193c40; background: #fff; }
.dash-empty { display: flex; align-items: center; gap: 1.6rem; }
.empty-visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.35rem;
    width: 7rem;
    height: 6rem;
    padding: 0.9rem;
    border: 1px solid #dce8e8;
    border-radius: 10px;
    background: #f3f9f8;
    flex: 0 0 auto;
}
.empty-visual span { width: 0.8rem; border-radius: 3px 3px 0 0; background: #b9d8d2; }
.empty-visual span:nth-child(1) { height: 35%; }
.empty-visual span:nth-child(2) { height: 55%; }
.empty-visual span:nth-child(3) { height: 78%; background: #8ebeb5; }
.empty-visual span:nth-child(4) { height: 45%; }
.dash-activity { padding-bottom: 0.65rem; }
.activity-table-wrap { overflow-x: auto; }
.activity-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.activity-table th, .activity-table td { text-align: left; padding: 0.7rem 0.8rem 0.7rem 0; border-bottom: 1px solid #e6ebef; white-space: nowrap; }
.activity-table th { color: #8a959e; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.activity-table td { color: #54616d; }
.activity-table td a { color: #356d8a; font-weight: 600; text-decoration: none; }
.activity-table .activity-result { color: #1f8060; font-weight: 600; }

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

.section-tight { padding: 2.2rem 0; border-bottom: 1px solid var(--rule); }
.section-tight:last-child { border-bottom: 0; }
.check-status {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 0.7rem;
}
.check-status.is-open { color: var(--find); }
.check-status.is-measured { color: var(--ok); }

.reading-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ink-soft);
}
.reading-list li { margin: 0.55rem 0; }

.empty-panel, .archive-panel {
    background: var(--panel);
    border: 1px solid var(--rule);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow);
}

.audit-stage {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.4rem;
    align-items: start;
    margin-top: 1.6rem;
}

.result-panel { margin-top: 1.4rem; display: grid; gap: 1rem; }
.result-legend { margin: 0.2rem 0 0; }
.result-title { font-size: 1.45rem; }
.result-recommendations { margin-top: 1rem; }
.bar-stack { display: grid; gap: 0.7rem; }
.bar-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 0.25rem;
}
.bar-track {
    height: 0.55rem;
    background: var(--paper-2);
    border-radius: 999px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: var(--forest);
    border-radius: 999px;
}
.result-details {
    border: 1px solid var(--rule);
    background: var(--panel);
    padding: 0.85rem 1rem;
}
.result-details summary {
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.result-prose {
    white-space: pre-wrap;
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.55;
}
.metric-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.1rem;
}
.metric {
    font-family: var(--display);
    font-size: 1.6rem;
    margin: 0.2rem 0 0.35rem;
}
.model-block h3 { margin-top: 0.4rem; }

.archive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.archive-table th, .archive-table td {
    text-align: left;
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}
.archive-table th {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.archive-panel { padding: 0.4rem 1.1rem 0.6rem; }
.archive-panel .empty-panel { box-shadow: none; border: 0; }

.posture {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid var(--rule);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: middle;
}
.posture-investigate { color: var(--find); border-color: #d7b3ab; }
.posture-watch { color: var(--copper-deep); }
.posture-documented { color: var(--ok); border-color: #b9cdb8; }
.posture-unscored { color: var(--muted); }
.case-ref {
    float: right;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}
.evidence-lock { margin: 0.6rem 0 0; }
.evidence-lock div {
    display: grid;
    grid-template-columns: 8.5rem 1fr;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--rule);
    font-size: 0.92rem;
}
.evidence-lock dt { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.evidence-lock dd { margin: 0; white-space: pre-wrap; }
.model-list { margin: 0.6rem 0 0; padding-left: 1.1rem; font-size: 0.92rem; color: var(--ink-soft); }

@media print {
    .no-print, .site-header, .htmx-indicator, .os-rail, .os-top { display: none !important; }
    body.os { background: #fff; display: block; }
    .os-canvas { width: 100%; padding: 0; }
}

@media (max-width: 860px) {
    html { font-size: 100%; }
    body.site { zoom: 1; }
    body.os {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    .os-rail {
        order: 3;
        min-height: 0;
        position: sticky;
        bottom: 0;
        top: auto;
        flex-direction: row;
        justify-content: space-around;
        padding: 0.35rem 0.4rem;
    }
    .os-mark { display: none; }
    .os-rail-nav { flex-direction: row; justify-content: space-around; }
    .os-top { grid-template-columns: 1fr; }
    .os-user { justify-self: start; }
    .hero-grid, .intent, .grid-3, .grid-2, .footer-grid,
    .audit-stage, .metric-strip,
    .dash-split, .donut-wrap, .dash-instruments, .dash-lower-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .finding div { grid-template-columns: 1fr; gap: 0.15rem; }
    .dashboard-header, .dashboard-actions { flex-direction: column; align-items: flex-start; }
    .dash-metrics { grid-template-columns: repeat(2, 1fr); }
    .dash-empty { align-items: flex-start; }
}

@media (max-width: 520px) {
    .os-canvas { width: calc(100% - 1.5rem); max-width: 1220px; padding-top: 1.35rem; }
    .os-top { padding-left: 1rem; padding-right: 1rem; }
    .dash-metrics { grid-template-columns: 1fr; }
    .dash-card, .dash-next { padding-left: 1.1rem; padding-right: 1.1rem; }
    .dash-empty { flex-direction: column; gap: 1rem; }
    .dash-section-heading { flex-direction: column; }
    .workspace-status { white-space: normal; }
}
