/* FindSignal UI. Hand-written, no build step (ADR-016, ADR-022). Tokens and usage: docs/brand.md. */

@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: var(--font-body);
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --ink: #193343; --mint: #56E6B6;
    /* The accent as r, g, b so glows and tints can set their own alpha; /branding.css overrides these (ADR-043). */
    --accent-rgb: 86, 230, 182; --accent-hover-rgb: 124, 239, 200;
    --bg: #08141C; --surface: #0F202A; --surface-2: #15303D; --text: #E6EEF0; --muted: #93A6B0; --line: #1F3A48; --line-strong: #2F5466;
    --link: #56E6B6; --focus: #56E6B6;
    --button-bg: #56E6B6; --button-text: #08141C; --button-hover: #7CEFC8;
    --signal: #56E6B6; --hero-bg: transparent; --hero-text: #F6F8F7; --hero-muted: #A9BCC5;
    /* The site name's colour, in the logo and in running text (11:1 on --bg); /branding.css may override it (ADR-043). */
    --gold: #F2C14E;

    --error-text: #FFB3AD; --error-bg: #3B1715;
    --warning-text: #FFD58A; --warning-bg: #3A2A0C;
    --review-text: #C9BBFF; --review-bg: #251C4A;
    --opportunity-text: #7CEFC8; --opportunity-bg: #0E3529;
    --neutral-text: #B4C2C9; --neutral-bg: #1F2E37;
    --pass-text: #A6DDAA; --pass-bg: #18301B;
    /* Chart fills, validated for colour-blind separation against --surface; text never wears them. */
    --chart-error: #E8607A; --chart-warning: #B38F00; --chart-opportunity: #199E70; --chart-review: #9085E9;
    --sev-critical: #FF8F87; --sev-high: #FFB37A; --sev-medium: #FFD58A; --sev-low: #9CCBFF; --sev-info: #B4C2C9;

    /* Glow: mint light on the dark surfaces. Kept to edges and interactive states so text stays crisp. */
    --glow-soft: 0 0 0 1px rgba(var(--accent-rgb), .06), 0 10px 40px -18px rgba(var(--accent-rgb), .28);
    --glow: 0 0 0 1px rgba(var(--accent-rgb), .35), 0 0 18px rgba(var(--accent-rgb), .35), 0 0 42px rgba(var(--accent-rgb), .15);
    --glow-strong: 0 0 0 1px rgba(var(--accent-hover-rgb), .6), 0 0 22px rgba(var(--accent-rgb), .55), 0 0 60px rgba(var(--accent-rgb), .25);
    --text-glow: 0 0 18px rgba(var(--accent-rgb), .55), 0 0 42px rgba(var(--accent-rgb), .25);

    --radius: 12px; --radius-sm: 8px;
    --shadow: var(--glow-soft);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; font: 16px/1.55 var(--font-body); color: var(--text); word-spacing: .12em;
    background-color: var(--bg);
    background-image:
        radial-gradient(900px 520px at 85% -10%, rgba(var(--accent-rgb), .13), transparent 60%),
        radial-gradient(700px 480px at -10% 30%, rgba(14, 159, 116, .10), transparent 65%),
        radial-gradient(800px 600px at 50% 110%, rgba(var(--accent-rgb), .06), transparent 60%);
}
code, pre, kbd, samp { word-spacing: normal; }
h1, h2, h3, .display { font-family: var(--font-head); letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.1rem); margin: .2em 0 .4em; font-weight: 600; }
h2 { font-size: 1.25rem; margin: 0 0 .6em; font-weight: 600; }
h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; font-weight: 600; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, pre, .mono { font-family: var(--font-mono); font-size: .88em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; box-shadow: var(--text-glow); }
.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; }
.skip-link { position: absolute; left: -999px; z-index: 10; }
.skip-link:focus { left: 16px; top: 8px; background: var(--surface); color: var(--text); padding: 6px 10px; border-radius: var(--radius-sm); }

/* Bootstrap bridge. Bootstrap 5 and Bootstrap Icons load before this file (layouts/app.blade.php): point its
   variables at the FindSignal tokens and undo the few component rules that share our class names. */
:root[data-bs-theme="dark"] {
    --bs-body-bg: var(--bg); --bs-body-color: var(--text); --bs-body-font-family: var(--font-body);
    --bs-body-font-size: 1rem; --bs-body-line-height: 1.55; --bs-heading-color: inherit;
    --bs-emphasis-color: var(--text); --bs-secondary-color: var(--muted); --bs-border-color: var(--line);
    --bs-link-color: var(--link); --bs-link-color-rgb: var(--accent-rgb); --bs-link-hover-color: var(--button-hover); --bs-link-hover-color-rgb: var(--accent-hover-rgb);
    --bs-primary: var(--mint); --bs-primary-rgb: var(--accent-rgb); --bs-border-radius: var(--radius-sm);
    --bs-font-monospace: var(--font-mono); --bs-focus-ring-color: rgba(var(--accent-rgb), .35);
}
:root[data-bs-theme="dark"] { --bs-code-color: inherit; }
p, ul, ol { margin: 1em 0; }
ul, ol { padding-left: 40px; }
pre code { font-size: .88em; }
pre { margin: 1em 0; }
img, svg { vertical-align: baseline; }
.card { display: block; color: inherit; min-width: 0; }
.breadcrumb { display: block; padding: 0; }
.bi { line-height: 1; vertical-align: -.125em; }

/* Header and footer */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px; background: rgba(8, 20, 28, .72); flex-wrap: wrap; position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; box-shadow: 0 0 12px rgba(var(--accent-rgb), .6); pointer-events: none; }
.site-header .button { margin-top: 0; }
/* Brand left, current page centred, account right; the page title takes its own row on phones. */
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; }
.site-header .brand { justify-self: start; }
.site-header .account-nav { grid-column: 3; justify-self: end; }
.site-nav { grid-column: 2; }
.site-nav-toggle { display: none; }
.site-nav #site-nav-links { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; font: 700 1rem/1.2 var(--font-head); letter-spacing: .02em; white-space: nowrap; }
.site-nav li { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text); }
.site-nav li + li::before { content: ""; width: 1px; height: 18px; margin: 0 14px; background: var(--line-strong); }
.site-nav a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current] { color: var(--text); }
.site-nav a .bi { color: var(--mint); }
.site-nav [aria-current] .bi { color: #F5C542; font-size: 1.1rem; filter: drop-shadow(0 0 6px rgba(245, 197, 66, .45)); }
@media (max-width: 1100px) {
    .site-nav li + li::before { margin: 0 9px; }
    .site-nav #site-nav-links { font-size: .9rem; }
}
/* Phones and small tablets: menu button floats right on the logo row, links open as a floating list. */
@media (max-width: 900px) {
    .site-header { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 8px; }
    .site-header .brand { justify-self: stretch; display: flex; min-width: 0; }
    .site-header .brand-logo { min-width: 0; }
    .site-nav { grid-column: 2; position: static; }
    .site-header .account-nav { grid-column: 3; }
    .site-nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; min-height: 0; margin: 0; padding: 0; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 50%; box-shadow: none; font-size: 1.3rem; }
    .site-nav-toggle:hover, .site-nav-toggle[aria-expanded="true"] { background: var(--surface-2); border-color: rgba(var(--accent-rgb), .55); box-shadow: var(--glow-soft); }
    .site-nav #site-nav-links { position: absolute; top: calc(100% + 6px); right: 16px; z-index: 10; display: grid; min-width: 220px; padding: 6px; font-size: 1rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), var(--glow-soft); }
    .site-nav #site-nav-links:not(.show):not(.collapsing) { display: none; }
    .site-nav #site-nav-links.collapsing { transition: none; }
    .site-nav li + li::before { display: none; }
    .site-nav li { padding: 10px 12px; border-radius: var(--radius-sm); }
    .site-nav li:has(a) { padding: 0; }
    .site-nav li a { width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); }
    .site-nav li a:hover { background: var(--surface-2); }
}
@media (max-width: 400px) {
    .site-header .brand-logo { gap: 8px; font-size: 1.1rem; }
    .site-header .brand-icon { height: 24px; }
    .site-header { column-gap: 6px; padding-left: 12px; padding-right: 12px; }
    .site-header .account-toggle { gap: 6px; }
    /* Narrow phones: the plan badge keeps its icon; the plan name stays for screen readers. */
    .site-header .account-divider { display: none; }
    .account-toggle .plan-badge { padding: 4px 6px; }
    .account-toggle .plan-badge .plan-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* The narrowest phones: the visitors' account button keeps its icon so the site name has room; the label stays for screen readers. */
@media (max-width: 360px) {
    .site-header .account-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.site-header nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.app-name { color: var(--gold); }
/* The logo: an icon beside the site name as text; a long name ends in an ellipsis rather than pushing the menu off. */
.brand-logo { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; font: 700 1.35rem/1 var(--font-head); letter-spacing: -.015em; }
.brand-icon { display: block; flex: none; height: 30px; width: auto; filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), .35)); }
.brand-name { min-width: 0; padding: .1em 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 24px; color: var(--muted); font-size: .9rem; }
.site-footer .container { padding: 0 16px; }
.site-footer .footer-note { margin: 0 0 20px; max-width: 46em; }
/* As many equal cards per row as fit; the row always spans the full width. */
/* Nine links in three columns of three, filled column by column (so the tab order runs down each column). */
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 12px; margin: 0 0 24px; }
.footer-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: linear-gradient(180deg, rgba(21, 48, 61, .45), rgba(15, 32, 42, .75)); color: var(--text); text-decoration: none; font-weight: 600; transition: border-color .15s, box-shadow .15s; }
.footer-card .bi { color: var(--mint); font-size: 1.05rem; }
.footer-card:hover, .footer-card:focus-visible { border-color: var(--line-strong); box-shadow: var(--glow-soft); color: var(--text); }
@media (max-width: 560px) {
    .footer-links { gap: 8px; }
    .footer-card { gap: 6px; padding: 10px 8px; font-size: .82rem; line-height: 1.25; }
    .footer-card .bi { font-size: .95rem; }
}
.footer-brand { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.footer-brand a { text-decoration: none; min-width: 0; max-width: 100%; }
.footer-brand .brand-logo { gap: 8px; font-size: 1.2rem; }
.footer-brand .brand-icon { height: 26px; }
.footer-brand p { margin: 0; }
.container { max-width: 1080px; margin: 0 auto; padding: 24px 16px; }
.narrow { max-width: 420px; margin: 0 auto; }

/* Surfaces */
.card { background: linear-gradient(180deg, rgba(21, 48, 61, .55), rgba(15, 32, 42, .85)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; box-shadow: var(--shadow); position: relative; }
.card::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .55), transparent); pointer-events: none; }
.card:hover { border-color: var(--line-strong); }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.notice { background: var(--opportunity-bg); color: var(--opportunity-text); padding: 10px 14px; border-radius: var(--radius-sm); }
.errors { background: var(--error-bg); color: var(--error-text); padding: 10px 14px; border-radius: var(--radius-sm); }
.errors ul { margin: 0; padding-left: 20px; }
.disclaimer { border-left: 3px solid var(--line-strong); padding: 6px 12px; color: var(--muted); font-size: .92rem; margin: 12px 0; }
.page-head { margin-bottom: 18px; }
.page-head p { margin: .2em 0; }
.breadcrumb { font-size: .92rem; margin: 0 0 6px; }
.breadcrumb a { color: var(--muted); }

/* Forms and buttons */
label { display: block; margin: 12px 0 4px; font-weight: 600; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], select, textarea {
    width: 100%; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: rgba(8, 20, 28, .6); color: var(--text); font: inherit; min-height: 44px; transition: border-color .15s, box-shadow .15s;
}
textarea { display: block; resize: vertical; min-height: 160px; line-height: 1.5; }
/* Selects: own arrow with room reserved for it, long labels end in an ellipsis instead of running under it,
   and the native option list stays dark. */
select {
    display: block; max-width: 100%; appearance: none; -webkit-appearance: none; color-scheme: dark;
    padding-right: 40px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2356E6B6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
select option { background: var(--surface); color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint), 0 0 16px rgba(var(--accent-rgb), .3); outline: none; }
button, .button { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 9px 16px; min-height: 44px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--button-bg); color: var(--button-text); font: 600 1rem/1.2 var(--font-body); cursor: pointer; text-decoration: none; box-shadow: var(--glow); transition: background .15s, box-shadow .15s, transform .15s; }
button:hover, .button:hover { background: var(--button-hover); box-shadow: var(--glow-strong); }
@media (prefers-reduced-motion: no-preference) { button:hover, .button:hover { transform: translateY(-1px); } }
button.secondary, .button.secondary { background: transparent; color: var(--mint); border-color: rgba(var(--accent-rgb), .45); box-shadow: 0 0 14px rgba(var(--accent-rgb), .12), inset 0 0 12px rgba(var(--accent-rgb), .06); }
button.secondary:hover, .button.secondary:hover { background: rgba(var(--accent-rgb), .08); border-color: var(--mint); box-shadow: var(--glow); }
.button.block { display: flex; justify-content: center; width: 100%; }
button.small, .button.small { min-height: 36px; padding: 5px 12px; font-size: .92rem; margin-top: 0; }
.link-button { background: none; color: var(--link); padding: 0; margin: 0; min-height: 0; text-decoration: underline; font-weight: 400; border: 0; box-shadow: none; }
.link-button:hover { background: none; box-shadow: none; transform: none; }
form.inline { display: inline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
@media (min-width: 640px) {
    .row-form { display: grid; grid-template-columns: max-content 1fr; gap: 0 12px; align-items: center; }
    .row-form label { margin: 8px 0; }
    .row-form button { grid-column: 2; justify-self: start; }
}
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; align-items: end; }
.filters label { font-size: .9rem; }
.filters .actions { grid-column: 1 / -1; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: .95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ownership { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ownership .bi { color: var(--mint); }
.website-list time { white-space: nowrap; }
.list-toggle { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 8px; min-height: 0; padding: 6px 12px; background: transparent; color: var(--link); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: none; font-weight: 600; font-size: .9rem; }
.list-toggle:hover { background: var(--surface-2); box-shadow: var(--glow-soft); }
.list-toggle .bi { transition: transform .2s ease; }
.list-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
.list-toggle[aria-expanded="true"] .when-collapsed, .list-toggle[aria-expanded="false"] .when-expanded { display: none; }
/* FAQ accordion (native <details>): question rows with a chevron that turns when open. */
.faq-accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\F282"; font-family: "bootstrap-icons"; margin-left: auto; color: var(--muted); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(180deg); color: var(--signal); }
.faq-item summary:hover h2, .faq-item[open] summary h2 { color: var(--signal); }
.faq-item summary h2 { margin: 0; font-size: 1.05rem; }
.faq-item summary:focus-visible { outline-offset: -3px; }
.faq-answer { padding: 0 18px 14px; }
.faq-answer > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }
.pricing th[scope="row"] { font-weight: 600; color: var(--muted); }
.pricing thead .bi { color: #F5C542; }
.pricing th, .pricing td { overflow-wrap: normal; word-break: normal; }
@media (max-width: 560px) { .pricing th, .pricing td { padding-left: 6px; padding-right: 6px; font-size: .9rem; } }
.website-more { position: relative; }
.website-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line-strong); --bs-dropdown-border-radius: var(--radius); width: 100%; max-height: 50vh; overflow-y: auto; overscroll-behavior: contain; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), var(--glow-soft); }
.website-menu ul { margin: 0; padding: 0; list-style: none; }
.website-menu li { display: grid; gap: 2px; margin: 0; padding: 9px 10px; border-radius: var(--radius-sm); }
.website-menu li + li { border-top: 1px solid var(--line); }
.website-menu li:hover { background: var(--surface-2); }
.website-menu .url { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.website-menu .bi { color: var(--mint); margin-right: 4px; }
@media (max-width: 560px) {
    .website-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .website-list tr { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .website-list td { display: block; padding: 0; border: 0; }
    .website-list td.url { font-size: .95rem; }
    .website-list td:not(.url)::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) { .list-toggle .bi { transition: none; } }
.url { font-family: var(--font-mono); font-size: .85rem; overflow-wrap: anywhere; }

/* Facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }

/* Badges: outcome kinds carry a shape glyph as well as colour, and their text is always visible. */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; line-height: 1.6; }
.badge::before { font-family: var(--font-mono); font-weight: 700; }
.kind-error { background: var(--error-bg); color: var(--error-text); }
.kind-error::before { content: "\00D7" / ""; }
.kind-warning { background: var(--warning-bg); color: var(--warning-text); }
.kind-warning::before { content: "!" / ""; }
.kind-opportunity { background: var(--opportunity-bg); color: var(--opportunity-text); border-style: dashed; border-color: currentColor; }
.kind-opportunity::before { content: "\2197" / ""; }
.kind-review { background: var(--review-bg); color: var(--review-text); border-style: dashed; border-color: currentColor; }
.kind-review::before { content: "?" / ""; }
.kind-passed { background: var(--pass-bg); color: var(--pass-text); }
.kind-passed::before { content: "\2713" / ""; }
.kind-not_tested { background: var(--neutral-bg); color: var(--neutral-text); }
.kind-not_tested::before { content: "\2013" / ""; }
.tag { display: inline-block; padding: 0 7px; border-radius: 4px; font: 600 .74rem/1.7 var(--font-mono); letter-spacing: .04em; border: 1px solid var(--line-strong); color: var(--muted); }
.sev { display: inline-flex; align-items: center; gap: 5px; padding: 0 8px; border-radius: 4px; font: 600 .74rem/1.7 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--sev-c, var(--muted)); border: 1px solid color-mix(in srgb, var(--sev-c, var(--muted)) 55%, transparent); background: color-mix(in srgb, var(--sev-c, var(--muted)) 10%, transparent); }
.sev::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev-critical { --sev-c: var(--sev-critical); }
.sev-high { --sev-c: var(--sev-high); }
.sev-medium { --sev-c: var(--sev-medium); }
.sev-low { --sev-c: var(--sev-low); }
.sev-info { --sev-c: var(--sev-info); }
.rule-id { display: inline-block; margin-bottom: 6px; color: var(--mint); }
.state { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--neutral-bg); color: var(--neutral-text); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-completed { background: var(--pass-bg); color: var(--pass-text); }
.state-partial { background: var(--warning-bg); color: var(--warning-text); }
.state-failed { background: var(--error-bg); color: var(--error-text); }
.state-running, .state-queued { background: var(--opportunity-bg); color: var(--opportunity-text); }
.state-running::before, .state-queued::before, .state-completed::before { box-shadow: 0 0 8px currentColor; }
/* Running: a spinning rainbow ring and shimmering rainbow text, so an active crawl is obvious at a glance. */
.state.state-running { color: transparent; background: linear-gradient(90deg, #FF8F87, #FFD58A, #7CEFC8, #6FB7FF, #C9BBFF, #FF8FD8, #FF8F87) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; box-shadow: inset 0 0 0 1px var(--line-strong); }
.state.state-running::before { width: 11px; height: 11px; box-shadow: none; background: conic-gradient(#FF6B6B, #FFD58A, #7CEFC8, #6FB7FF, #C9BBFF, #FF8FD8, #FF6B6B); -webkit-mask: radial-gradient(circle, transparent 2.5px, #000 3px); mask: radial-gradient(circle, transparent 2.5px, #000 3px); }
@media (prefers-reduced-motion: no-preference) {
    .state-running::before { animation: spin 1s linear infinite; }
    .state-running { animation: rainbow 2.4s linear infinite; }
}
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes rainbow { to { background-position: -200% 0; } }
.status-live { margin: 8px 0 0; font-size: .95rem; color: var(--muted); letter-spacing: .005em; }
.status-live:empty { display: none; }
@keyframes pulse { 50% { opacity: .3; } }

/* Audit overview */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 500; }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--signal); text-shadow: 0 0 12px rgba(var(--accent-rgb), .45); box-shadow: 0 8px 12px -10px var(--signal); }
.tabs a:hover { color: var(--text); }
.status-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 10px 0 4px; }
progress::-webkit-progress-bar { background: var(--surface-2); }
progress::-webkit-progress-value { background: var(--signal); border-radius: 999px; box-shadow: 0 0 12px var(--signal); }
progress::-moz-progress-bar { background: var(--signal); border-radius: 999px; box-shadow: 0 0 12px var(--signal); }
.grid-2 { display: grid; gap: 20px; }
@media (min-width: 860px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.split { display: grid; gap: 16px; }
@media (min-width: 640px) { .split { grid-template-columns: 1fr 1fr; } }
.split > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: rgba(8, 20, 28, .35); }
.split h3 { margin-top: 0; }
.count-list { list-style: none; margin: 0; padding: 0; }
.count-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.count-list li:last-child { border-bottom: 0; }
.count-list .n { font: 600 1.05rem var(--font-head); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px rgba(var(--accent-rgb), .35); }
.finding-list { list-style: none; margin: 0; padding: 0; }
.finding-list > li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.finding-list > li:last-child { border-bottom: 0; }
.finding-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.finding-title { font-weight: 600; }

/* Evidence: quoted page content is visibly marked as untrusted. */
.evidence { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; }
.evidence .facts { font-size: .92rem; }
blockquote.untrusted { margin: 8px 0 0; padding: 10px 12px; background: var(--surface-2); border-left: 3px dashed var(--warning-text); font-family: var(--font-mono); font-size: .85rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.untrusted-label { display: block; font: 600 .78rem var(--font-body); color: var(--warning-text); text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }
ol.steps { padding-left: 1.3em; }
ol.steps li { margin: 4px 0; }

.audit-usage { margin: 4px 0; font-size: 1.02rem; }
.audit-usage strong { color: var(--text); }
.audit-list td.started { max-width: 0; width: 42%; }
.audit-list td.started .url { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-list td.runs { white-space: nowrap; }
.runs-toggle { margin: 0; padding: 3px 10px; font-size: .85rem; }
.runs-menu { width: min(22rem, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
.runs-menu-head { margin: 4px 10px 6px; white-space: normal; overflow-wrap: anywhere; }
.audit-list .state, .audit-list td.num { white-space: nowrap; }
@media (max-width: 560px) {
    .audit-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .audit-list tr { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .audit-list td { display: block; padding: 0; border: 0; text-align: left; }
    .audit-list td.started { grid-column: 1 / -1; max-width: none; width: auto; min-width: 0; }
    .audit-list td[data-label="Queued (UTC)"] { grid-column: 1 / -1; grid-row: 3; }
    .audit-list td:not(.started)::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
}
.runs-menu li a { font-weight: 600; }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 4px; }
.events { font-size: .9rem; }
.events th, .events td:nth-child(-n+3) { white-space: nowrap; }
.events td:first-child { color: var(--muted); }
.empty { padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
.sample-label { display: inline-block; background: var(--warning-bg); color: var(--warning-text); font: 700 .75rem var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; }

/* Landing */
.hero { background: var(--hero-bg); color: var(--hero-text); position: relative; overflow: hidden; }
.hero .container { padding: 64px 16px 72px; position: relative; }
.hero .container > :not(.hero-rings) { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.6rem); max-width: 14em; margin: 0 0 .3em; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; color: var(--mint); text-shadow: var(--text-glow); }
.hero p { color: var(--hero-muted); max-width: 38em; font-size: 1.1rem; }
.hero .eyebrow { font: 600 .82rem var(--font-mono); color: var(--mint); letter-spacing: .08em; text-transform: uppercase; }
.hero a:not(.button) { color: var(--mint); }
/* Inside the container, behind the text: the intro copy runs over the rings. */
.radar-rings { pointer-events: none; filter: drop-shadow(0 0 6px rgba(var(--accent-rgb), .7)) drop-shadow(0 0 24px rgba(var(--accent-rgb), .35)); }
.hero-rings { position: absolute; right: 16px; top: 50%; width: min(480px, 60%); height: auto; aspect-ratio: 1; transform: translateY(-50%); opacity: .7; }
@media (prefers-reduced-motion: no-preference) { .radar-rings .ping { transform-origin: 156.6px 43.4px; animation: ping 2.8s ease-out infinite; } }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
@media (max-width: 720px) { .hero-rings { width: 320px; right: -40px; opacity: .25; } }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.features h2 { font-size: 1.05rem; }

/* Auth */
.auth-card { margin-top: 24px; }
.form-card { max-width: 640px; margin: 24px auto 0; }
.form-card form > input, .form-card form > select, .form-card form > textarea { width: 100%; }
.form-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-row > div { min-width: 0; }
.field-hint { margin: 6px 0 0; }
.auth-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.auth-alt p { margin: 0 0 4px; color: var(--muted); }

/* Brand board */
.swatches { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.swatch span { display: block; height: 64px; }
.swatch p { margin: 0; padding: 8px 10px; font-size: .85rem; }
.sw-ink { background: #193343; } .sw-mint { background: #56E6B6; } .sw-paper { background: #F6F8F7; } .sw-slate { background: #52626C; }
.sw-mist { background: #E6EEF0; } .sw-night { background: #0C1A23; } .sw-teal { background: #0A7356; } .sw-signal { background: #0E9F74; }
.on-dark { background: #0C1A23; color: #E6EEF0; border-radius: var(--radius); padding: 24px; }
.on-light { background: #F6F8F7; color: #193343; border-radius: var(--radius); padding: 24px; border: 1px solid #D5DEDF; }
.logo-row { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.logo-row img { display: block; }
.type-specimen .h { font: 600 2rem/1.1 var(--font-head); letter-spacing: -.02em; }
.type-specimen .b { font: 400 1rem var(--font-body); }
.type-specimen .m { font: 400 .95rem var(--font-mono); }
.icon-l { width: 96px; height: 96px; } .icon-m { width: 48px; height: 48px; } .icon-s { width: 32px; height: 32px; } .icon-xs { width: 16px; height: 16px; }
.logo-l { height: 44px; width: auto; } .logo-m { height: 30px; width: auto; }

/* Remediation export (ADR-035) */
.export-bar { margin: 12px 0 16px; }
.export-text { width: 100%; min-height: 24rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.45; white-space: pre; overflow: auto; resize: vertical; margin-top: 12px; }

/* Phase 11: policy pages, footer links, security settings, deletion */
.legal-review { border: 1px solid var(--line-strong); border-left: 4px solid #E0B341; border-radius: var(--radius-sm); padding: 10px 14px; margin: 0 0 20px; font-size: .92rem; }
.danger-zone { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: var(--muted); }
.danger-zone .confirm-check { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 10px; font-weight: 500; }
.danger-zone .confirm-check input { margin-top: 3px; flex: none; }
.danger-zone .confirm-check .url { overflow-wrap: anywhere; }
.qr-code { background: #fff; display: inline-block; padding: 12px; border-radius: var(--radius-sm); margin: 8px 0 16px; }
.qr-code svg { display: block; width: 192px; height: 192px; }
.recovery-codes { columns: 2; font-family: var(--font-mono); list-style: none; padding: 0; }
.form-card label .bi, .form-card h1 .bi { color: var(--mint); margin-right: 4px; }
/* Signed-out pages (layouts/auth.blade.php, ADR-038): brand side and form side, one column on phones. */
.auth-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: 100vh; min-height: 100dvh; }
.auth-brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 40px 56px; border-right: 1px solid var(--line);
    background:
        radial-gradient(520px 380px at 20% 10%, rgba(var(--accent-rgb), .16), transparent 65%),
        radial-gradient(420px 360px at 90% 95%, rgba(14, 159, 116, .14), transparent 65%),
        linear-gradient(160deg, var(--ink) 0%, var(--surface) 55%, var(--bg) 100%);
}
.auth-brand > :not(.auth-rings) { position: relative; z-index: 1; }
/* Rings centred just outside the bottom-left corner, the signal path pointing up into the copy. Pushed out so the
   found node stays below the text; on short screens they shrink, then fade right back. */
.auth-rings { position: absolute; left: -190px; bottom: -200px; width: 420px; height: 420px; opacity: .55; }
@media (max-height: 760px) { .auth-rings { width: 340px; height: 340px; left: -160px; bottom: -170px; opacity: .35; } }
@media (max-height: 640px) { .auth-rings { opacity: .15; } }
.auth-logo { display: inline-block; align-self: flex-start; }
.auth-logo { text-decoration: none; max-width: 100%; }
.auth-brand-inner { margin: auto 0; max-width: 28rem; padding: 40px 0; }
.auth-brand .eyebrow { margin: 0 0 14px; font: 600 .82rem var(--font-mono); color: var(--mint); letter-spacing: .08em; text-transform: uppercase; }
.auth-brand-title { margin: 0 0 16px; font: 600 clamp(1.9rem, 1.3rem + 1.6vw, 2.6rem)/1.15 var(--font-head); letter-spacing: -.02em; color: var(--hero-text); }
.auth-brand-title em { font-style: normal; color: var(--mint); text-shadow: var(--text-glow); }
.auth-brand-copy { margin: 0 0 28px; font-size: 1.05rem; color: var(--hero-muted); }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: baseline; color: var(--text); }
.auth-points .bi { color: var(--mint); font-size: 1.05rem; }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-panel-card { width: 100%; max-width: 26rem; margin: 0; padding: 32px 28px 28px; }
.auth-panel-card h1 { margin-top: 0; }
.auth-subtitle { margin: -4px 0 16px; color: var(--muted); }
.auth-panel-card .notice, .auth-panel-card .errors { margin: 0 0 14px; }
.auth-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin: 10px 0 4px; font-size: .92rem; }
.auth-row label.check { margin: 0; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 8px; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-hint { margin: 10px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.auth-passkey .button .bi, .passkey-add .button .bi { font-size: 1.1rem; }
.auth-links { display: flex; gap: 18px; margin: 20px 0 0; font-size: .88rem; }
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--mint); }

/* Field-level errors, and the six-digit code boxes built by one-time-code.js (ADR-038). */
.field-error { margin: 6px 0 0; color: var(--error-text); font-size: .88rem; }
input[aria-invalid="true"] { border-color: var(--error-text); }
.otp-grid { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: clamp(4px, 1.8vw, 8px); width: 100%; max-width: 360px; margin: 6px auto 14px; }
.otp-digit { flex: 1 1 0; min-width: 0; max-width: 52px; aspect-ratio: 7 / 8; height: auto; margin: 0; padding: 0; text-align: center; font: 600 clamp(1.1rem, 5vw, 1.5rem)/1 var(--font-mono); caret-color: transparent; }
.otp-digit:focus { border-color: var(--mint); }
.otp-digit.filled { border-color: rgba(87, 230, 180, .55); }
.otp-sep { flex: 0 0 auto; color: var(--muted); font-size: 1.2rem; }
.otp-sending .otp-digit { opacity: .6; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field .reveal {
    position: absolute; top: 50%; right: 4px; transform: translateY(-50%); margin: 0; padding: 0; width: 40px; min-height: 36px; justify-content: center;
    background: transparent; color: var(--muted); border: 0; box-shadow: none;
}
.password-field .reveal:hover, .password-field .reveal[aria-pressed="true"] { background: transparent; color: var(--mint); box-shadow: none; transform: translateY(-50%); }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { padding: 20px 16px 64px; border-right: 0; border-bottom: 1px solid var(--line); }
    .auth-brand-inner { padding: 20px 0 0; }
    .auth-brand-title { font-size: 1.5rem; margin-bottom: 8px; }
    .auth-brand-copy { margin: 0; font-size: .95rem; }
    .auth-points { display: none; }
    .auth-rings { display: none; } /* the brand strip is too short on phones; the rings would sit on the heading */
    .auth-panel { justify-content: flex-start; padding: 0 16px 32px; margin-top: -44px; }
}
@media (max-width: 420px) {
    .auth-brand-copy { display: none; }
    .auth-panel-card { padding: 24px 18px 20px; }
}

/* Security page: passkeys (ADR-038). */
.passkey-list { list-style: none; margin: 0; padding: 0; }
.passkey-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.passkey-list li:first-child { border-top: 0; }
.passkey-list .bi-key { color: var(--mint); margin-right: 6px; }
.passkey-list form { margin: 0; }
.passkey-add form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.passkey-add .passkey-name { flex: 1 1 220px; min-width: 0; }
.passkey-add .passkey-name label { margin-top: 0; }
.passkey-add .button { margin-top: 0; }

/* Change password (Security) */
.password-change { max-width: 420px; }
.password-change .button { margin-top: 6px; }

/* Account menu (header dropdown, Bootstrap JS) */
.account-nav .dropdown { position: relative; }
.account-toggle { margin: 0; min-height: 40px; padding: 4px 10px 4px 4px; gap: 10px; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; box-shadow: none; font-weight: 500; font-size: .95rem; }
.account-toggle:hover, .account-toggle[aria-expanded="true"] { background: var(--surface-2); border-color: rgba(var(--accent-rgb), .55); box-shadow: var(--glow-soft); }
.account-toggle::after { margin-left: 2px; color: var(--muted); }
.account-toggle .avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--mint), #2BB58A); color: var(--button-text); font: 700 .8rem/1 var(--font-head); letter-spacing: .02em; }
.account-toggle .account-name { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Plan badge: inside the account button, right of the name behind a thin divider. */
.plan-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font: 700 .7rem/1.2 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: #2A1C00; background: linear-gradient(135deg, #FFE9A3, #F5C542 45%, #C9932A); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 12px rgba(245, 197, 66, .4); }
.account-divider { width: 1px; height: 20px; background: var(--line-strong); }
.plan-badge .bi { font-size: .78rem; }
.plan-badge.plan-free { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.plan-badge.plan-free .bi { color: var(--mint); }
.account-menu { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line-strong); --bs-dropdown-border-radius: var(--radius); --bs-dropdown-link-color: var(--text); --bs-dropdown-link-hover-color: var(--text); --bs-dropdown-link-hover-bg: var(--surface-2); --bs-dropdown-link-active-color: var(--button-text); --bs-dropdown-link-active-bg: var(--mint); --bs-dropdown-divider-bg: var(--line); --bs-dropdown-item-padding-y: .55rem; min-width: 15rem; padding: 6px; margin: 0; list-style: none; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .7), var(--glow-soft); }
.account-menu li { margin: 0; }
.account-menu .account-menu-head { display: grid; gap: 2px; padding: 8px 12px 6px; }
.account-menu .account-menu-head span { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.account-menu .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: var(--radius-sm); font: 500 .95rem/1.3 var(--font-body); }
.account-menu .dropdown-item .bi { color: var(--mint); width: 1.1em; }
.account-menu .dropdown-item:active .bi { color: inherit; }
.account-menu .dropdown-item.active { background: var(--surface-2); color: var(--text); }
.account-menu .dropdown-item.active .bi { color: #F5C542; }
.account-menu button.dropdown-item { width: 100%; margin: 0; min-height: 0; border: 0; background: transparent; color: var(--text); box-shadow: none; text-align: left; }
.account-menu button.dropdown-item:hover { background: var(--surface-2); box-shadow: none; }
.account-menu .dropdown-divider { margin: 6px 4px; }
@media (max-width: 520px) {
    .account-toggle .account-name { display: none; }
    .account-toggle { padding-right: 8px; }
}

/* Lockdown dock (admins only): fixed bottom left, collapsible */
.lockdown-dock { position: fixed; left: 16px; bottom: 16px; z-index: 1030; max-width: min(380px, calc(100vw - 32px)); background: var(--warning-bg); color: var(--warning-text); border: 1px solid rgba(255, 213, 138, .35); border-radius: var(--radius); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .75), 0 0 18px rgba(255, 213, 138, .12); font-size: .9rem; }
.lockdown-dock-toggle { margin: 0; min-height: 40px; width: 100%; padding: 8px 14px; gap: 8px; background: transparent; color: var(--warning-text); border: 0; box-shadow: none; font: 700 .82rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.lockdown-dock-toggle:hover { background: rgba(255, 213, 138, .08); box-shadow: none; }
.lockdown-dock-toggle .chevron { margin-left: auto; transition: transform .2s; }
.lockdown-dock-toggle.collapsed .chevron { transform: rotate(180deg); }
.lockdown-dock p { margin: 0; padding: 0 14px 12px; line-height: 1.45; }
.lockdown-dock code { color: var(--warning-text); background: rgba(0, 0, 0, .25); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }

/* Audit overview stat tiles: counts only, coloured by outcome, each opening its filtered list. */
/* Audit overview card headings match the report's section headings (report.css .rpt-section h2). */
.audit-page .card h2 { margin: 0 0 14px; padding: 8px 14px; color: var(--link); border-left: 4px solid rgb(var(--accent-rgb)); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: linear-gradient(90deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), 0) 85%); }
.audit-page .card-head { align-items: center; margin-bottom: 14px; }
.audit-page .card-head h2 { flex: 1 1 16rem; margin: 0; }
.overview .card-head { align-items: flex-start; }
.overview-eyebrow { margin: 0; font: 600 .78rem var(--font-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.overview-host { margin: 2px 0 0; font: 600 1.35rem/1.2 var(--font-head); overflow-wrap: anywhere; }
.overview-stats { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.overview-stats li { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.overview-stats a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; color: inherit; text-decoration: none; border-radius: inherit; }
.overview-stats a:hover, .overview-stats a:focus-visible { box-shadow: var(--glow-soft); }
.overview-n { font: 600 2rem/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.overview-label { font-size: .88rem; color: var(--muted); }
.overview-severe .overview-n { color: var(--error-text); }
.overview-sub { margin: 0 0 8px; font-size: .95rem; }
.coverage-bar { display: block; }
.coverage-bar rect { stroke: var(--surface); stroke-width: 2px; }
.cov-analysed { fill: var(--chart-opportunity); background: var(--chart-opportunity); }
.cov-skipped { fill: var(--chart-warning); background: var(--chart-warning); }
.cov-failed { fill: var(--chart-error); background: var(--chart-error); }
.coverage-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 8px 0; font-size: .9rem; font-variant-numeric: tabular-nums; }
.key-swatch { display: inline-block; width: 10px; height: 10px; margin: 0 6px 0 2px; border-radius: 3px; vertical-align: baseline; }
.by-category th[scope="row"] { white-space: nowrap; }
.by-category .label-short { display: none; }
.by-category tfoot th, .by-category tfoot td { font-weight: 700; border-bottom: 0; border-top: 1px solid var(--line-strong); }
.chart-legend { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--muted); }
.bar-error { fill: var(--chart-error); background: var(--chart-error); }
.bar-warning { fill: var(--chart-warning); background: var(--chart-warning); }
.bar-opportunity { fill: var(--chart-opportunity); background: var(--chart-opportunity); }
.bar-review { fill: var(--chart-review); background: var(--chart-review); }
.bar-zero { fill: var(--line); }
.issue-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; }
.issue-group { margin: 0; }
.issue-group figcaption { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.issue-group dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 10px; align-items: center; margin: 0; }
.issue-group dt { font-size: .85rem; color: var(--muted); font-weight: 400; }
.issue-group dd { display: flex; align-items: center; gap: 8px; margin: 0; }
.issue-group svg { display: block; flex: 1; min-width: 0; }
.bar-n { min-width: 2ch; text-align: right; font-size: .9rem; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
    .by-category .label-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .by-category .label-short { display: inline; }
    .by-category th, .by-category td { padding: 9px 4px; overflow-wrap: normal; white-space: nowrap; }
    .by-category thead th { font-size: .74rem; letter-spacing: 0; text-transform: none; }
}
@media (max-width: 560px) { .overview-stats { gap: 8px; } .overview-stats a { padding: 10px; } .overview-n { font-size: 1.5rem; } .overview-label { font-size: .8rem; } }

/* Declared website platform (add-website form, website list, tasks page) */
.platform-other[hidden] { display: none; }
.platform-help { margin: 4px 0 0; }
@media (min-width: 640px) {
    .row-form .platform-other { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
    .row-form .platform-help { grid-column: 2; }
}
.platform-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.platform-name .bi { color: var(--mint); }
.platform-change { margin-top: 4px; }
.platform-change summary { cursor: pointer; color: var(--link); font-size: .9rem; }
.platform-change[open] form { margin-top: 6px; }
.website-platform { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.website-platform .platform-change { flex-basis: 100%; }
th.icon-col { width: 1%; text-align: center; font-size: 1rem; }
@media (max-width: 560px) {
    /* Tasks stack like cards on phones: checkbox and priority on one line, then task, findings and status. */
    .task-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .task-list tr { display: grid; grid-template-columns: max-content 1fr; align-items: center; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .task-list td { display: block; padding: 0; border: 0; }
    .task-list td[data-label] { grid-column: 1 / -1; }
    .task-list td[data-label]:not(.task-main)::before { content: attr(data-label); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
}
.task-priority .tag { white-space: nowrap; }

/* Policy pages and their admin editor (ADR-041) */
.legal-updated { margin-top: -.4em; font-size: .92rem; }
.legal-editor textarea { font-family: var(--font-mono); font-size: .92rem; min-height: 420px; }
.legal-editor .field-hint p { margin: 6px 0; }
.legal-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px 12px; margin-top: 20px; }
.faq-order { white-space: nowrap; }
.faq-order form + form { margin-left: 4px; }

/* Admin branding page (ADR-043). */
.branding-image { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 16px 14px; margin: 18px 0; }
.branding-image legend { font-weight: 600; padding: 0 6px; }
.color-input { width: 72px; height: 40px; padding: 2px; }

/* Blog (ADR-044). */
.blog-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.blog-list h2 { margin: 0; }
.blog-list p { margin: 6px 0 0; }
.blog-pages { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.blog-pages a[rel="next"] { margin-left: auto; }

.connector-url { display: inline-block; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-2); overflow-wrap: anywhere; user-select: all; }

/* Admin assistant connections (ADR-045). */
.assistant-domains code { overflow-wrap: anywhere; }
.assistant-domains .row-actions { white-space: nowrap; }
.assistant-domains .danger-zone { margin-top: 8px; padding-top: 0; border-top: 0; white-space: normal; }
.legal-editor .confirm-check { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 10px; font-weight: 500; }
.legal-editor .confirm-check input { margin-top: 3px; flex: none; }

/* Review status (ADR-049): four groups of review items, and the saved verdict on a finding. */
.overview-stats-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .overview-stats-4 { grid-template-columns: repeat(2, 1fr); } }
.review-items { list-style: none; margin: 0 0 12px; padding: 0; }
.review-items li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.review-items .url { overflow-wrap: anywhere; }
.review-status { font-size: .85rem; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
