/* Colour roles. Status colours mark state only and always sit beside a shape and a word. */
:root {
	color-scheme: light;
	--page: #f9f9f7;
	--surface: #fcfcfb;
	--ink: #0b0b0b;
	--ink-2: #52514e;
	/* Text: ink, ink-2, muted, link and critical-ink are at least 4.5:1 on page and surface (WCAG AA). */
	--muted: #706f6a;
	--hairline: #e1e0d9;
	--border: rgba(11, 11, 11, 0.16);
	/* The edge of a box to type in or choose from: at least 3:1, so the field can be seen (WCAG 1.4.11). */
	--field-border: #8b8b87;
	--accent: #256abf;
	--accent-hover: #1c5cab;
	/* Text on an accent-coloured button. */
	--on-accent: #fff;
	--link: #1c5cab;
	/* Fills (banners, tints) use the status colours; marks (severity and status icons) use the -mark
	   tones, at least 3:1 on page and surface. cli/test/contrast.test.ts checks every theme and look. */
	--good: #0ca30c;
	--warning: #fab219;
	--warning-mark: #b78212;
	--serious: #ec835a;
	--serious-mark: #cd724e;
	--critical: #d03b3b;
	--critical-ink: #b42f2f;
	--on-warning: #0b0b0b;
	--shadow: 0 8px 28px rgba(11, 11, 11, 0.16);
	/* Type: six sizes. Labels and table heads, secondary text, body, section headings, page titles, big numbers. */
	--text-xs: 12px;
	--text-sm: 13px;
	--text-md: 14px;
	--text-lg: 16px;
	--text-xl: 22px;
	--text-2xl: 28px;
	/* Corners: small marks, controls and inner boxes, cards and panels, pills. */
	--radius-sm: 4px;
	--radius-md: 6px;
	--radius-lg: 12px;
	--radius-pill: 999px;
	/* Spacing is not tokenised, but every padding, margin and gap is on one scale:
	   2, 4, 6, 8, 12, 16, 20, 24, 32, 48, 64 (and 1px for a hairline). cli/test/contrast.test.ts checks it. */
	--sans: system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark;
		--page: #0d0d0d;
		--surface: #1a1a19;
		--ink: #f0efec;
		--ink-2: #c3c2b7;
		--muted: #898781;
		--hairline: #2c2c2a;
		--border: rgba(255, 255, 255, 0.18);
		--field-border: #696968;
		--accent: #256abf;
		--accent-hover: #3987e5;
		--link: #6da7ec;
		--warning-mark: #fab219;
		--serious-mark: #ec835a;
		--critical-ink: #e66767;
		--shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
	}
}

* {
	box-sizing: border-box;
}

/* An element marked hidden stays hidden, whatever display its class gives it (a .button is flex). */
[hidden] {
	display: none !important;
}

body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font: var(--text-md)/1.45 var(--sans);
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
	margin: 0;
}

h1 {
	font-size: var(--text-xl);
	font-weight: 600;
	line-height: 1.2;
}

h2 {
	font-size: var(--text-lg);
	font-weight: 600;
}

h3 {
	font-size: var(--text-md);
	font-weight: 600;
	margin: 24px 0 8px;
}

a {
	color: var(--link);
}

code,
.mono {
	font-family: var(--mono);
	font-size: var(--text-sm);
}

code {
	background: var(--page);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-sm);
	padding: 1px 4px;
	overflow-wrap: anywhere;
}

pre {
	margin: 12px 0;
	padding: 12px 16px;
	background: var(--page);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	overflow-x: auto;
}

pre code {
	border: 0;
	padding: 0;
	background: none;
}

:focus-visible {
	outline: 2px solid var(--accent-hover);
	outline-offset: 2px;
}

main:focus {
	outline: none;
}

.icon {
	width: 14px;
	height: 14px;
	flex: none;
}

.wrap {
	overflow-wrap: anywhere;
}

.nowrap {
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 8px;
	top: -48px;
	z-index: 20;
	padding: 8px 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

.skip-link:focus {
	top: 8px;
}

/* Shell: navigation at the side, the page beside it. */

.shell {
	display: grid;
	grid-template-columns: 224px minmax(0, 1fr);
	min-height: 100vh;
}

.sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100vh;
	padding: 16px 12px;
	background: var(--surface);
	border-right: 1px solid var(--hairline);
}

.brand {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 8px;
	color: var(--ink);
	font-weight: 600;
	font-size: var(--text-lg);
	text-decoration: none;
}

.nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 12px;
	border-radius: var(--radius-md);
	color: var(--ink-2);
	font-weight: 500;
	text-decoration: none;
}

.nav a:hover {
	background: var(--page);
	color: var(--ink);
}

.nav a[aria-current="page"] {
	background: var(--page);
	color: var(--ink);
	box-shadow: inset 3px 0 0 var(--accent-hover);
}

.nav .icon {
	width: 16px;
	height: 16px;
}

.scan-status {
	display: grid;
	gap: 4px;
	margin-top: auto;
	padding: 12px;
	border-top: 1px solid var(--hairline);
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.scan-status:empty {
	display: none;
}

.scan-status strong {
	color: var(--ink);
}

/* Page frame */

.page {
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 32px 64px;
}

.narrow-page {
	max-width: 560px;
	padding-top: 64px;
}

.page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px 32px;
	margin-bottom: 20px;
}

.page-head > :first-child {
	flex: 1 1 320px;
	min-width: 0;
}

.sub {
	margin-top: 4px;
	color: var(--ink-2);
	font-size: var(--text-sm);
	overflow-wrap: anywhere;
}

.scan-line {
	margin: 0 0 16px;
}

.hint {
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.hint.block {
	display: block;
	margin-top: 4px;
}

.loading {
	padding: 32px 24px;
	color: var(--ink-2);
	text-align: center;
}

.stale {
	opacity: 0.55;
}

/* Between pages the last one stays, dimmed only if the next takes a moment, so a quick page does not flicker. */
#view.is-loading > * {
	opacity: 0.55;
	transition: opacity 0.15s ease 0.2s;
}

/* A refusal or a problem said above a form, outside a dialog. */
.form-error {
	margin: 8px 0 12px;
	color: var(--critical-ink);
	font-weight: 600;
}

.noscript {
	padding: 24px;
}

/* Forms and buttons */

.inline-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.field > span {
	color: var(--ink-2);
	font-size: var(--text-xs);
}

.grow {
	flex: 1 1 220px;
}

input,
select {
	height: 34px;
	padding: 0 12px;
	border: 1px solid var(--field-border);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
}

input:not([type="radio"], [type="checkbox"]) {
	width: 100%;
}

input[type="radio"],
input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin: 2px 0 0;
	padding: 0;
	accent-color: var(--accent-hover);
}

input.narrow {
	width: 68px;
}

select {
	max-width: 240px;
	padding-right: 6px;
}

input::placeholder {
	color: var(--muted);
}

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 34px;
	padding: 0 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.button:hover {
	background: var(--page);
}

.button:disabled,
.button[aria-disabled="true"] {
	opacity: 0.55;
	cursor: default;
}

.button.primary {
	border-color: transparent;
	background: var(--accent);
	color: var(--on-accent);
}

.button.primary:hover:not(:disabled) {
	background: var(--accent-hover);
}

.button.danger {
	color: var(--critical-ink);
}

.button.danger.solid {
	border-color: transparent;
	background: var(--critical);
	color: #fff;
}

.button.quiet {
	border-color: transparent;
	background: transparent;
	color: var(--link);
}

.button.quiet:hover {
	background: var(--hairline);
}

.button.icon-only {
	width: 28px;
	height: 28px;
	padding: 0;
	color: var(--ink-2);
}

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

/* Scan progress */

.progress {
	margin-top: 16px;
}

.progress-text {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	margin-bottom: 8px;
}

.progress-text .path {
	color: var(--ink-2);
	font-family: var(--mono);
	font-size: var(--text-sm);
	overflow-wrap: anywhere;
}

progress {
	display: block;
	width: 100%;
	height: 8px;
	accent-color: var(--accent-hover);
}

/* Banners */

.banner {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	padding: 12px 16px;
	border: 1px solid;
	border-radius: var(--radius-lg);
}

.card .banner {
	margin: 16px 0 0;
}

.banner > .icon {
	width: 18px;
	height: 18px;
	margin-top: 1px;
}

.banner ul {
	margin-top: 4px;
	padding-left: 20px;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.banner details {
	margin-top: 4px;
	color: var(--ink-2);
}

.banner summary {
	cursor: pointer;
}

.banner-warning {
	background: color-mix(in srgb, var(--warning) 12%, var(--surface));
	border-color: color-mix(in srgb, var(--warning) 55%, var(--surface));
}

.banner-warning > .icon {
	color: var(--warning-mark);
}

.banner-error {
	background: color-mix(in srgb, var(--critical) 10%, var(--surface));
	border-color: color-mix(in srgb, var(--critical) 50%, var(--surface));
}

.banner-error > .icon {
	color: var(--critical);
	--on-warning: #fff;
}

/* The Overview's "credentials look live": the most urgent thing on the page, so it comes first. */
.banner.urgent {
	display: block;
	margin-bottom: 20px;
	padding: 16px 16px;
	border-left-width: 4px;
}

.banner-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 4px;
	font-size: var(--text-lg);
}

.banner-title > .icon {
	width: 18px;
	height: 18px;
	color: var(--critical);
	--on-warning: #fff;
}

.urgent-list {
	margin: 8px 0 0;
	padding-left: 20px;
}

.urgent .card-foot {
	margin-top: 12px;
}

/* Stat tiles */

/*
 * A row lays its tiles out by its own width (a container) and how many it holds, so none is left
 * alone on a line: a tile needs about 140px. Six go 6, 3 by 2, or 2 by 3; five go 5, 3 and 2, or the
 * first (the total) across the top and 2 by 2 under it; four go 4 or 2 by 2; three go 3, or the first
 * across the top.
 */
.tiles-wrap {
	container-type: inline-size;
	margin-bottom: 20px;
}

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

.tiles[data-count="6"] {
	--tile-columns: 6;
}

.tiles[data-count="5"] {
	--tile-columns: 5;
}

.tiles[data-count="4"] {
	--tile-columns: 4;
}

.tiles[data-count="2"] {
	--tile-columns: 2;
}

.tiles[data-count="1"] {
	--tile-columns: 1;
}

@container (max-width: 900px) {
	.tiles[data-count="6"] {
		--tile-columns: 3;
	}
}

@container (max-width: 748px) {
	.tiles[data-count="5"] {
		--tile-columns: 3;
	}
}

@container (max-width: 596px) {
	.tiles[data-count="4"] {
		--tile-columns: 2;
	}
}

@container (max-width: 444px) {
	.tiles[data-count="6"],
	.tiles[data-count="5"],
	.tiles[data-count="3"] {
		--tile-columns: 2;
	}

	.tiles[data-count="5"] > :first-child,
	.tiles[data-count="3"] > :first-child {
		grid-column: 1 / -1;
	}
}

.tile {
	padding: 16px 16px;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
}

/* A tile that opens what it counts. */
a.tile-link {
	color: inherit;
	text-decoration: none;
}

a.tile-link:hover {
	border-color: var(--border);
	background: var(--page);
}

a.tile-link:hover .tile-label {
	color: var(--ink);
	text-decoration: underline;
}

.tile-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.tile-value {
	margin-top: 2px;
	font-size: var(--text-2xl);
	font-weight: 600;
	line-height: 1.2;
}

/* Severity and status marks: the shape and the word carry the meaning; colour reinforces it. */

.severity {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.severity-critical > .icon,
.icon.severity-critical {
	color: var(--critical);
}

.severity-high > .icon,
.icon.severity-high {
	color: var(--serious-mark);
}

.severity-medium > .icon,
.icon.severity-medium {
	color: var(--warning-mark);
}

.severity-low > .icon,
.icon.severity-low {
	color: var(--muted);
}

.status-good > .icon {
	color: var(--good);
}

.status-warning > .icon {
	color: var(--warning-mark);
}

.status-pending > .icon {
	color: var(--muted);
}

/* Filters */

.filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.filters .field.grow {
	flex-basis: 200px;
}

.chip-group {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chip {
	height: 34px;
	padding: 0 12px 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	cursor: pointer;
}

.chip[aria-pressed="false"] {
	border-style: dashed;
	background: transparent;
	color: var(--muted);
}

.chip[aria-pressed="false"] .icon {
	color: var(--muted);
}

.segmented {
	display: inline-flex;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.segmented a {
	display: flex;
	align-items: center;
	height: 32px;
	padding: 0 16px;
	background: var(--surface);
	color: var(--ink-2);
	font-weight: 500;
	text-decoration: none;
}

.segmented a + a {
	border-left: 1px solid var(--border);
}

.segmented a[aria-current="page"] {
	background: var(--ink);
	color: var(--surface);
}

/* Tables */

.table-wrap {
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	overflow-x: auto;
}

table.data {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--text-sm);
}

.data th,
.data td {
	padding: 8px 12px;
	border-bottom: 1px solid var(--hairline);
	text-align: left;
	vertical-align: top;
}

.data thead th {
	color: var(--ink-2);
	font-size: var(--text-xs);
	font-weight: 500;
	white-space: nowrap;
}

.data tbody tr:last-child > * {
	border-bottom: 0;
}

.data tbody th {
	font-weight: 500;
}

.data .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.data .zero {
	color: var(--muted);
}

/*
 * Floors that keep a column from collapsing to a few characters before it wraps. They shrink with
 * the table's box (a container), so at medium widths the columns fit instead of scrolling the last
 * one out of sight; on a phone the table still scrolls inside its box.
 */
.table-wrap {
	container-type: inline-size;
}

.col-where {
	min-width: min(200px, 24cqi);
}

.col-what {
	min-width: min(260px, 30cqi);
}

.sort {
	display: inline-flex;
	gap: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.sort:hover,
th[aria-sort]:not([aria-sort="none"]) .sort {
	color: var(--ink);
}

tr.clickable {
	cursor: pointer;
}

tr.clickable:hover,
tr.open {
	background: var(--page);
}

.disclosure {
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	font-weight: 500;
	text-align: left;
	cursor: pointer;
	overflow-wrap: anywhere;
}

.disclosure.static {
	padding-left: 20px;
	cursor: default;
}

.disclosure .icon {
	margin-top: 4px;
	color: var(--ink-2);
	transition: transform 0.12s;
}

.disclosure[aria-expanded="true"] .icon {
	transform: rotate(90deg);
}

.fix {
	margin: 4px 0 0 20px;
	color: var(--ink-2);
	font-size: var(--text-sm);
	overflow-wrap: anywhere;
}

.fix-label {
	display: inline-block;
	margin-right: 6px;
	padding: 0 4px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: var(--text-xs);
	font-weight: 600;
}

td > .hint {
	margin: 4px 0 0 20px;
	overflow-wrap: anywhere;
}

.detail-row > td {
	padding: 6px 16px 20px 32px;
	background: var(--page);
}

.detail-panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	gap: 12px 32px;
	padding: 16px 16px;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
}

.facts {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 16px;
	align-content: start;
}

.facts dt {
	color: var(--ink-2);
}

.facts ol,
.how ol,
.fix-details ol {
	margin: 0;
	padding-left: 20px;
}

.how h3 {
	margin: 0 0 6px;
}

.how li + li,
.facts li + li,
.fix-details li + li {
	margin-top: 4px;
}

.fix-details summary {
	cursor: pointer;
}

.fix-details ol {
	margin-top: 6px;
	color: var(--ink-2);
}

.findings {
	display: grid;
	gap: 12px;
	justify-items: start;
}

.findings .banner {
	margin: 0;
	justify-self: stretch;
}

table.nested {
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	border-collapse: separate;
	border-spacing: 0;
	font-size: var(--text-sm);
}

.nested .detail-row > td {
	padding-left: 16px;
}

.pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.pager-buttons {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

/* Empty states and cards */

.empty {
	padding: 48px 16px;
	color: var(--ink-2);
	text-align: center;
}

.empty h2 {
	margin-bottom: 4px;
	color: var(--ink);
}

.empty p {
	max-width: 520px;
	margin: 0 auto;
}

.empty .button {
	margin-top: 16px;
}

.card {
	max-width: 760px;
	margin-bottom: 20px;
	padding: 20px 20px;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
}

.card.full,
.columns .card {
	max-width: none;
}

.card h2,
.card h3 {
	margin: 0 0 6px;
}

.card p + p,
.card p + .inline-form,
.card .actions {
	margin-top: 12px;
}

.card-foot {
	margin-top: 16px;
}

.columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
	gap: 20px;
	align-items: start;
}

.columns .card {
	margin-bottom: 0;
}

.columns + .card {
	margin-top: 20px;
}

.link-list {
	margin-top: 12px;
	padding: 0;
	list-style: none;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
}

.link-list li + li {
	border-top: 1px solid var(--hairline);
}

.link-list a {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 8px 12px;
	color: inherit;
	text-decoration: none;
}

.link-list a:hover {
	background: var(--page);
}

.link-title {
	font-weight: 500;
}

.link-meta {
	display: inline-flex;
	gap: 8px;
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.phase-list {
	counter-reset: phase;
}

.phase-list .link-title::before {
	counter-increment: phase;
	content: counter(phase) ". ";
}

.callout {
	margin-top: 16px;
	padding: 12px 12px;
	border: 1px solid color-mix(in srgb, var(--critical) 45%, var(--surface));
	border-left-width: 4px;
	border-radius: var(--radius-md);
}

.callout ul {
	margin-top: 6px;
	padding-left: 20px;
	color: var(--ink-2);
}

/* Roadmap */

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

.phase-tab {
	display: grid;
	gap: 2px;
	padding: 12px 16px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.phase-tab:hover:not(:disabled) {
	border-color: var(--border);
}

.phase-tab[aria-selected="true"] {
	border-color: var(--accent-hover);
	box-shadow: inset 0 -3px 0 var(--accent-hover);
}

.phase-tab:disabled {
	color: var(--muted);
	cursor: default;
}

.phase-name {
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--ink-2);
}

.phase-count {
	font-size: var(--text-2xl);
	font-weight: 600;
	line-height: 1.2;
}

.phase-summary {
	margin: 0 0 20px;
}

.action-group h2 {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 24px 0 8px;
	overflow-wrap: anywhere;
}

.action-group .count {
	color: var(--ink-2);
	font-size: var(--text-sm);
	font-weight: 400;
}

.action-list {
	display: grid;
	gap: 12px;
	padding: 0;
	list-style: none;
}

.action-card {
	padding: 16px 16px;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
}

.action-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 12px;
	margin-bottom: 12px;
}

.action-head h3 {
	margin: 0;
	font-size: var(--text-md);
	overflow-wrap: anywhere;
}

/* Domains */

.split {
	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

.domain-list {
	padding: 0;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.domain-list:empty {
	display: none;
}

.domain-list li + li {
	border-top: 1px solid var(--hairline);
}

.domain-list a {
	display: grid;
	gap: 4px;
	padding: 12px 16px;
	color: inherit;
	text-decoration: none;
}

.domain-list a:hover {
	background: var(--page);
}

.domain-list a[aria-current="page"] {
	background: var(--page);
	box-shadow: inset 3px 0 0 var(--accent-hover);
}

.domain-name {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.domain-list .severity,
.domain-meta {
	color: var(--ink-2);
	font-size: var(--text-sm);
}

/* "Add a website" sits at the right of the page head, its box and button on one line, a problem under them. */
.add-domain {
	flex: 0 1 420px;
	align-self: flex-start;
	min-width: min(100%, 280px);
}

.add-domain .inline-form {
	flex-wrap: nowrap;
}

.add-domain .form-error {
	margin: 6px 0 0;
	font-weight: 400;
}

/* What the last DNS check or scan said, beside the domain it was about. */
.outcome {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 0 16px;
}

.outcome .icon {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 2px;
}

.outcome-good .icon {
	color: var(--good);
}

.detail-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.detail-head h2 {
	margin-bottom: 4px;
	font-size: var(--text-lg);
	overflow-wrap: anywhere;
}

.report > .sub {
	margin: 0 0 16px;
}

.record {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 8px 16px;
	margin: 16px 0 4px;
}

.record dt {
	color: var(--ink-2);
}

.record dd {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.changes {
	padding: 0;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
}

.changes li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 12px;
}

.changes li + li {
	border-top: 1px solid var(--hairline);
}

.changes .icon {
	margin-top: 4px;
	color: var(--ink-2);
}

/* Text a local model wrote: marked as generated, shown as plain text, kept apart from the findings. */

.assist {
	display: grid;
	gap: 12px;
	justify-items: start;
	margin-bottom: 16px;
}

.assist[hidden] {
	display: none;
}

.assist .banner,
.assist .generated {
	justify-self: stretch;
	margin: 0;
}

.assist-block {
	grid-column: 1 / -1;
	display: grid;
	gap: 12px;
	justify-items: start;
}

.assist-block .assist,
.card .assist {
	justify-self: stretch;
	margin: 0;
}

.card .assist {
	margin-top: 12px;
}

.assist-wait {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ink-2);
}

.assist-wait .icon {
	animation: assist-wait 1.4s ease-in-out infinite;
}

@keyframes assist-wait {
	50% {
		opacity: 0.3;
	}
}

.generated {
	padding: 12px 16px;
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius-md);
}

.detail-panel .generated,
.card .generated {
	background: var(--page);
}

.generated-label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.generated > .hint {
	margin-top: 2px;
}

.generated-text {
	margin-top: 12px;
	max-width: 80ch;
}

.generated-text p {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.generated-text p + p {
	margin-top: 12px;
}

.ask-form {
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.ask-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ask-form .form-error {
	color: var(--critical-ink);
}

/* A discussion: the owner's questions and the model's answers, in order, with a box for the next question. */

.follow-up,
.turns {
	display: grid;
	gap: 12px;
	justify-self: stretch;
}

.follow-up {
	margin-top: 12px;
}

.turns:empty {
	display: none;
}

.turn-question {
	justify-self: end;
	max-width: min(80ch, 90%);
	padding: 8px 12px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}

.turn-who {
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.turn-text {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.follow-up-form {
	margin-top: 0;
}

.follow-up-status:empty {
	display: none;
}

.follow-up-status {
	display: grid;
	gap: 12px;
}

.discussion-thread {
	display: grid;
	gap: 12px;
}

.discussion-list {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.discussion-row {
	display: grid;
	gap: 2px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
}

.discussion-title {
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* The answers panel: a model's answer and its follow-ups beside the page, or in a drawer under it.
   It sits outside the page, so it stays open while the owner moves between pages, and the page makes
   room for it rather than going under it. On a narrow screen it covers the page until closed. */

:root {
	--answers-width: 420px;
	/* Where the drawer starts: beside the sidebar. */
	--answers-left: 224px;
}

:root[data-look="compact"] {
	--answers-left: 180px;
}

:root[data-look="tabs"] {
	--answers-left: 0px;
}

body.answers-wide {
	--answers-width: min(680px, 55vw);
}

.answers-panel {
	position: fixed;
	z-index: 8;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow);
}

.answers-panel[hidden] {
	display: none;
}

body[data-answers="right"] .answers-panel {
	top: 0;
	right: 0;
	bottom: 0;
	width: var(--answers-width);
	border-left: 1px solid var(--hairline);
}

body.answers-open[data-answers="right"] .shell {
	margin-right: var(--answers-width);
}

body[data-answers="bottom"] .answers-panel {
	right: 0;
	bottom: 0;
	left: var(--answers-left);
	max-height: 45vh;
	border-top: 1px solid var(--hairline);
}

body.answers-open[data-answers="bottom"] main {
	padding-bottom: 45vh;
}

.answers-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--hairline);
}

.answers-title {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	font-size: var(--text-lg);
	overflow-wrap: anywhere;
}

.answers-title .icon {
	flex: none;
	margin-top: 4px;
	color: var(--ink-2);
}

.answers-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.answers-tools .button {
	padding: 4px 12px;
	font-size: var(--text-sm);
}

.answers-body {
	flex: 1;
	display: grid;
	align-content: start;
	gap: 12px;
	padding: 16px 16px 24px;
	overflow-y: auto;
}

.answers-body .assist-content,
.answers-body .send-result {
	display: grid;
	gap: 12px;
}

.answers-body .generated {
	background: var(--page);
}

.assist-content {
	display: grid;
	gap: 12px;
}

.assist-elsewhere {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--ink-2);
}

.link-button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--accent);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

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

@media (max-width: 900px) {
	body[data-answers] .answers-panel {
		inset: 0;
		z-index: 30;
		width: auto;
		max-height: none;
		border: 0;
	}

	body.answers-open[data-answers="right"] .shell {
		margin-right: 0;
	}

	body.answers-open[data-answers="bottom"] main {
		padding-bottom: 0;
	}

	/* The panel already fills the screen. */
	.answers-widen {
		display: none;
	}
}

textarea {
	width: 100%;
	min-height: 72px;
	padding: 8px 12px;
	border: 1px solid var(--field-border);
	border-radius: var(--radius-md);
	background: var(--surface);
	color: var(--ink);
	font: inherit;
	resize: vertical;
}

textarea::placeholder {
	color: var(--muted);
}

/* Dialog and toasts */

.dialog {
	width: min(440px, calc(100vw - 32px));
	padding: 20px 24px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow);
}

.dialog.wide {
	width: min(560px, calc(100vw - 32px));
}

.dialog::backdrop {
	background: rgba(0, 0, 0, 0.45);
}

.dialog h2 {
	font-size: var(--text-lg);
}

.dialog p {
	margin: 8px 0 20px;
	color: var(--ink-2);
}

.dialog .actions {
	justify-content: flex-end;
	margin-top: 20px;
}

fieldset {
	margin: 16px 0 0;
	padding: 0;
	border: 0;
}

legend {
	margin-bottom: 6px;
	padding: 0;
	color: var(--ink-2);
	font-size: var(--text-xs);
	font-weight: 500;
}

.choice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 8px 12px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	cursor: pointer;
}

.choice + .choice {
	margin-top: 6px;
}

.choice:has(input:checked) {
	border-color: var(--accent-hover);
	background: var(--page);
}

.choice > span {
	display: grid;
	gap: 1px;
}

.choice strong {
	font-weight: 500;
}

.dialog .form-error {
	margin: 16px 0 0;
	color: var(--critical-ink);
}

.toasts {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 10;
	display: grid;
	gap: 8px;
	justify-items: end;
}

.toast {
	max-width: min(440px, calc(100vw - 40px));
	padding: 12px 16px;
	border-radius: var(--radius-md);
	background: var(--ink);
	color: var(--surface);
	box-shadow: var(--shadow);
	overflow-wrap: anywhere;
}

.toast-error {
	background: var(--critical);
	color: #fff;
}

/* First steps: what a scan would cover, and numbered setup steps. */

.scan-form {
	display: grid;
	gap: 12px;
	margin-top: 12px;
}

.scan-form .actions {
	align-items: center;
	margin-top: 0;
}

.options {
	color: var(--ink-2);
}

.options summary {
	cursor: pointer;
	padding: 6px 4px;
	font-size: var(--text-sm);
}

.options .field {
	margin-top: 6px;
}

.preview:empty {
	display: none;
}

.found,
.guide {
	display: grid;
	gap: 8px;
	padding: 12px 16px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	background: var(--page);
}

.preview .severity {
	align-items: flex-start;
	overflow-wrap: anywhere;
	white-space: normal;
}

.guide p {
	max-width: 70ch;
	color: var(--ink-2);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 0;
	list-style: none;
}

.chips li {
	max-width: 100%;
	padding: 2px 8px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-pill);
	background: var(--surface);
	color: var(--ink-2);
	font-size: var(--text-sm);
	overflow-wrap: anywhere;
}

.chips .more {
	border-color: transparent;
	background: none;
}

.steps {
	display: grid;
	/* Never wider than the card: a long command scrolls inside its own box. */
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	max-width: 70ch;
	margin-top: 4px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	position: relative;
	min-height: 24px;
	padding-left: 32px;
}

.steps li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: 0;
	top: -1px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border: 1px solid var(--border);
	border-radius: 50%;
	color: var(--ink);
	font-size: var(--text-sm);
	font-weight: 600;
}

.card .steps {
	margin: 16px 0;
}

/* Setup steps that carry commands: each command on its own line, with a button to copy it. */
.setup-steps {
	max-width: 86ch;
}

.setup-steps li > p {
	margin: 0;
}

.command-line {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
}

.command-line pre {
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 6px 12px;
	overflow-x: auto;
	font-size: var(--text-xs);
	background: var(--page);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
}

.model-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	border-top: 1px solid var(--hairline);
	overflow-wrap: anywhere;
}

.model-list li:first-child {
	border-top: 0;
}

.model-search {
	display: grid;
	gap: 12px;
	max-width: 820px;
}

.model-download h3 {
	margin-top: 20px;
}

.monitor-form {
	display: grid;
	gap: 12px;
	max-width: 560px;
	margin-top: 12px;
}

/* Activity: a log read by the clock, newest last. */
.activity {
	max-height: 60vh;
	overflow-y: auto;
}

.cf-batch .activity {
	max-height: 320px;
	margin-top: 12px;
	padding: 8px 12px;
	background: var(--page);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
}

.activity-list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: var(--text-sm);
}

.activity-line {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: baseline;
	gap: 8px;
	overflow-wrap: anywhere;
}

.activity-line time {
	color: var(--ink-2);
	font-family: var(--mono, ui-monospace, monospace);
	font-size: var(--text-xs);
}

.activity-line > .icon {
	align-self: center;
	color: var(--ink-2);
}

.activity-good > .icon {
	color: var(--good, currentColor);
}

.activity-warning > .icon {
	color: var(--warning-mark);
}

.cf-batch-list {
	display: grid;
	gap: 8px;
	max-height: 50vh;
	margin: 12px 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
}

.cf-care {
	color: var(--ink);
}

.cf-care > .icon {
	color: var(--warning-mark);
	vertical-align: -2px;
}

.cf-batch-list code {
	overflow-wrap: anywhere;
}

.cf-zone-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: auto;
}

.steps.left {
	margin: 20px auto 0;
	text-align: left;
}

.journey .status-done {
	color: var(--good);
}

.steps pre {
	margin-top: 8px;
}

.github {
	display: grid;
	gap: 12px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--hairline);
}

.github h3 {
	margin: 0;
}

.github .inline-form {
	max-width: 520px;
}

.pick {
	display: grid;
	gap: 8px;
}

.pick .actions,
.fetched .actions {
	align-items: center;
	margin-top: 0;
}

.repo-pick {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
}

.repo-pick.scroll {
	max-height: 320px;
	overflow-y: auto;
}

.repo-pick li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 12px;
}

.repo-pick li + li {
	border-top: 1px solid var(--hairline);
}

.repo-pick label {
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	min-height: 28px;
	cursor: pointer;
}

.fetched .repo-pick {
	margin-top: 12px;
}

.verdict {
	margin-top: 4px;
	font-size: var(--text-sm);
}

.judgement {
	display: grid;
	gap: 8px;
}

.judgement ol {
	margin-top: 4px;
	padding-left: 20px;
}

.uses {
	display: grid;
	gap: 6px;
	margin-top: 8px;
	padding: 0;
	list-style: none;
}

.uses li {
	display: grid;
	gap: 2px;
}

.field.inline {
	flex-direction: row;
	align-items: center;
	gap: 8px;
}

.check {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.nav-group {
	margin: 12px 0 2px;
	padding: 0 12px;
	color: var(--muted);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nav .count {
	margin-left: auto;
	color: var(--ink-2);
	font-size: var(--text-xs);
	font-variant-numeric: tabular-nums;
}

.journey {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	counter-reset: step;
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.journey li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.journey li[aria-current="step"] {
	color: var(--ink);
	font-weight: 600;
}

/* Narrow windows: navigation moves to the top and everything stacks. */

@media (max-width: 900px) {
	.shell {
		grid-template-columns: minmax(0, 1fr);
	}

	/*
	 * On a narrow screen the sidebar becomes a header: the name and the project on one line, the
	 * sections on a line of their own below. When they do not all fit, that line scrolls sideways
	 * and a shadow at each edge shows there is more (the shadows move with the scroll position).
	 */
	.sidebar {
		position: sticky;
		z-index: 5;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 4px 8px;
		height: auto;
		padding: 8px 12px 0;
		border-right: 0;
		border-bottom: 1px solid var(--hairline);
	}

	.nav {
		flex: 1 0 100%;
		order: 3;
		flex-direction: row;
		margin: 0 -12px;
		padding: 0 12px;
		overflow-x: auto;
		scrollbar-width: none;
		background:
			linear-gradient(to right, var(--surface) 40%, transparent) left / 28px 100% no-repeat local,
			linear-gradient(to left, var(--surface) 40%, transparent) right / 28px 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.22), transparent) left / 12px 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.22), transparent) right / 12px 100% no-repeat scroll;
	}

	.nav::-webkit-scrollbar {
		display: none;
	}

	.nav a {
		padding: 8px 12px;
		white-space: nowrap;
	}

	.nav a[aria-current="page"] {
		box-shadow: inset 0 -2px 0 var(--accent-hover);
	}

	.nav .icon,
	.nav .count,
	.nav-group,
	.scan-status {
		display: none;
	}

	.page {
		padding: 16px 16px 48px;
	}

	.split,
	.detail-panel {
		grid-template-columns: minmax(0, 1fr);
	}

	select {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.disclosure .icon {
		transition: none;
	}

	.assist-wait .icon {
		animation: none;
	}
}

/* Settings */

.plain-list {
	display: grid;
	gap: 6px;
	margin: 12px 0;
	padding: 0;
	list-style: none;
}

fieldset.looks {
	min-width: 0;
}

fieldset.looks legend {
	padding: 0;
	float: left;
	width: 100%;
}

.look-grid {
	clear: both;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.look-option {
	display: grid;
	gap: 6px;
	padding: 12px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
	cursor: pointer;
}

.look-option:has(input:checked) {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

.look-option:has(input:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.look-name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.look-text {
	color: var(--ink-2);
	font-size: var(--text-sm);
}

/* A drawn miniature of each look. Colours are the look's own, in either theme. */
.look-preview {
	--pv-page: #1a1a19;
	--pv-side: #0d0d0d;
	--pv-ink: #c3c2b7;
	--pv-accent: #256abf;
	display: flex;
	height: 92px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--pv-page);
}

.pv-side {
	display: grid;
	align-content: start;
	gap: 4px;
	width: 30%;
	padding: 8px 6px;
	background: var(--pv-side);
}

.pv-side i,
.pv-main i {
	display: block;
	height: 5px;
	border-radius: var(--radius-sm);
	background: var(--pv-ink);
	opacity: 0.55;
}

.pv-side i:first-child {
	background: var(--pv-accent);
	opacity: 1;
}

.pv-main {
	display: grid;
	align-content: start;
	gap: 6px;
	flex: 1;
	padding: 8px;
}

.pv-main b {
	display: block;
	width: 55%;
	height: 7px;
	border-radius: var(--radius-sm);
	background: var(--pv-ink);
}

.pv-main em {
	display: block;
	width: 40%;
	height: 12px;
	margin-top: 4px;
	border-radius: var(--radius-sm);
	background: var(--pv-accent);
}

[data-preview="light"],
[data-preview="roadmap"],
[data-preview="native"] {
	--pv-page: #ffffff;
	--pv-side: #f1efe8;
	--pv-ink: #444441;
	--pv-accent: #185fa5;
}

[data-preview="roadmap"] {
	--pv-accent: #1d9e75;
}

[data-preview="native"] {
	--pv-side: #dcdad3;
	--pv-accent: #0a84ff;
}

[data-preview="dashboard"] {
	--pv-accent: #e24b4a;
}

[data-preview="tabs"] {
	flex-direction: column;
}

[data-preview="tabs"] .pv-side {
	display: flex;
	width: auto;
	height: 18px;
	padding: 6px;
}

[data-preview="tabs"] .pv-side i {
	width: 22px;
}

[data-preview="split"] .pv-main {
	border-left: 30px solid var(--pv-side);
}

[data-preview="terminal"] {
	--pv-page: #000;
	--pv-side: #000;
	--pv-ink: #97c459;
	--pv-accent: #639922;
}

[data-preview="cards"] .pv-main {
	grid-template-columns: 1fr 1fr;
}

[data-preview="model"] {
	--pv-accent: #7f77dd;
}

[data-preview="contrast"] {
	--pv-page: #000;
	--pv-side: #000;
	--pv-ink: #fff;
	--pv-accent: #fac775;
	border: 2px solid #000;
}

[data-preview="contrast"] .pv-side {
	border-right: 2px solid #fff;
}

[data-preview="compact"] .pv-main,
[data-preview="compact"] .pv-side {
	gap: 4px;
}

/* Severity counts in the sidebar: shown by the "Severity dashboard" look only. */
.severity-strip {
	display: none;
}

[data-look="dashboard"] .severity-strip:not(:empty) {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	margin-top: auto;
}

[data-look="dashboard"] .severity-strip + .scan-status {
	margin-top: 0;
}

.severity-count {
	display: grid;
	gap: 2px;
	padding: 8px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	color: var(--ink-2);
	font-size: var(--text-xs);
	text-decoration: none;
}

.severity-count strong {
	color: var(--ink);
	font-size: var(--text-lg);
}

.severity-count:hover {
	border-color: var(--border);
}

/* Looks. Each one only overrides; the base above is "Standard". */

:root[data-look="light"],
:root[data-look="roadmap"],
:root[data-look="native"] {
	color-scheme: light;
	--page: #f9f9f7;
	--surface: #fcfcfb;
	--ink: #0b0b0b;
	--ink-2: #52514e;
	--muted: #706f6a;
	--hairline: #e1e0d9;
	--border: rgba(11, 11, 11, 0.16);
	--field-border: #8b8b87;
	--accent: #256abf;
	--accent-hover: #1c5cab;
	--link: #1c5cab;
	--warning-mark: #b78212;
	--serious-mark: #cd724e;
	--critical-ink: #b42f2f;
	--shadow: 0 8px 28px rgba(11, 11, 11, 0.16);
}

:root[data-look="light"] {
	--page: #ffffff;
	--surface: #ffffff;
}

/* Roadmap first: Roadmap leads the sidebar and is where Porchlight opens. */
:root[data-look="roadmap"] {
	--accent: #0f6e56;
	--accent-hover: #0f6e56;
	--link: #0f6e56;
}

[data-look="roadmap"] .nav a[data-nav="roadmap"] {
	order: -1;
}

/* Top tabs */
[data-look="tabs"] .shell {
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr;
}

[data-look="tabs"] .sidebar {
	z-index: 2;
	flex-direction: row;
	align-items: center;
	gap: 16px;
	height: auto;
	padding: 8px 16px;
	border-right: 0;
	border-bottom: 1px solid var(--hairline);
}

[data-look="tabs"] .nav {
	flex-direction: row;
	flex-wrap: wrap;
}

[data-look="tabs"] .nav-group {
	display: none;
}

[data-look="tabs"] .nav a {
	padding: 6px 12px;
}

[data-look="tabs"] .nav a[aria-current="page"] {
	box-shadow: inset 0 -2px 0 var(--accent-hover);
}

[data-look="tabs"] .scan-status {
	margin: 0 0 0 auto;
	padding: 0;
	border-top: 0;
	text-align: right;
}

[data-look="tabs"] .page {
	max-width: 1480px;
}

/* Split view */
.split-view {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
	gap: 20px;
	align-items: start;
}

.split-detail {
	position: sticky;
	top: 16px;
	display: grid;
	gap: 12px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 16px;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
}

.split-detail .detail-panel {
	grid-template-columns: minmax(0, 1fr);
	padding: 0;
	border: 0;
}

[data-look="split"] tr.finding-row.open > td {
	background: color-mix(in srgb, var(--accent) 16%, transparent);
}

@media (max-width: 900px) {
	.split-view {
		grid-template-columns: minmax(0, 1fr);
	}

	.split-detail {
		position: static;
		max-height: none;
	}
}

/* Terminal */
:root[data-look="terminal"] {
	color-scheme: dark;
	--page: #000;
	--surface: #050805;
	--ink: #b5e48c;
	--ink-2: #8cc152;
	--muted: #5c8a2e;
	--hairline: #1e3311;
	--border: rgba(151, 196, 89, 0.4);
	--field-border: #6b8f45;
	--warning-mark: #fab219;
	--serious-mark: #ec835a;
	--critical-ink: #ff8a8a;
	--accent: #3b6d11;
	--accent-hover: #639922;
	--link: #c0dd97;
	--sans: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--shadow: none;
}

[data-look="terminal"] .card,
[data-look="terminal"] .tile,
[data-look="terminal"] .button,
[data-look="terminal"] .nav a,
[data-look="terminal"] .detail-panel {
	border-radius: 0;
}

[data-look="terminal"] h1::before {
	content: "> ";
	color: var(--muted);
}

/* Native Mac */
:root[data-look="native"] {
	--page: #ffffff;
	--surface: #f6f5f2;
	--accent: #0973de;
	--accent-hover: #0068cf;
	--link: #006cda;
	--sans: -apple-system, system-ui, sans-serif;
}

[data-look="native"] body {
	font-size: var(--text-sm);
}

[data-look="native"] .sidebar {
	background: #e8e6e1;
	border-right-color: #d3d1c7;
}

[data-look="native"] .nav a {
	padding: 4px 8px;
	border-radius: var(--radius-md);
}

[data-look="native"] .nav a[aria-current="page"] {
	background: #cfe3fc;
	box-shadow: none;
}

[data-look="native"] .card,
[data-look="native"] .tile {
	border-radius: var(--radius-md);
}

[data-look="native"] .button {
	padding-block: 4px;
	border-radius: var(--radius-md);
}

/* Repository cards: By repository lays each project out as a card. */
[data-look="cards"] table.data:has(> tbody > tr.repo-row) > thead {
	display: none;
}

[data-look="cards"] table.data:has(> tbody > tr.repo-row) > tbody {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 12px;
	padding: 2px;
}

[data-look="cards"] tr.repo-row {
	display: grid;
	gap: 4px;
	padding: 12px;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
}

[data-look="cards"] tr.repo-row.open {
	border-color: var(--accent);
}

[data-look="cards"] tr.repo-row {
	grid-template-columns: 1fr 1fr;
	column-gap: 16px;
}

[data-look="cards"] tr.repo-row > * {
	padding: 0;
	border: 0;
	text-align: left;
}

[data-look="cards"] tr.repo-row > th,
[data-look="cards"] tr.repo-row > td:nth-child(2) {
	grid-column: 1 / -1;
}

[data-look="cards"] tr.repo-row > td.num {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	font-size: var(--text-sm);
}

[data-look="cards"] tr.repo-row > td.num::before {
	content: attr(data-label);
	color: var(--ink-2);
}

[data-look="cards"] tr.repo-row > :first-child {
	font-size: var(--text-lg);
}

[data-look="cards"] table.data:has(> tbody > tr.repo-row) > tbody > tr.detail-row {
	display: block;
	grid-column: 1 / -1;
}

[data-look="cards"] table.data:has(> tbody > tr.repo-row) > tbody > tr.detail-row > td {
	display: block;
}

[data-look="cards"] .table-wrap:has(tr.repo-row) {
	border: 0;
	background: none;
	overflow: visible;
}

/* Model plan view: the model's analysis gets its own column beside the facts and the fix. */
[data-look="model"] .detail-panel {
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(260px, 1fr);
}

[data-look="model"] .detail-panel > .judgement,
[data-look="model"] .detail-panel > .assist-block {
	grid-column: 3;
	grid-row: 1 / span 3;
	align-self: start;
	padding: 12px;
	background: color-mix(in srgb, #7f77dd 12%, var(--surface));
	border: 1px solid color-mix(in srgb, #7f77dd 45%, transparent);
	border-radius: var(--radius-md);
}

[data-look="model"] .detail-panel > .assist-block {
	grid-row: auto;
}

[data-look="model"] .generated-label {
	color: #9a93e6;
}

@media (max-width: 1100px) {
	[data-look="model"] .detail-panel {
		grid-template-columns: minmax(0, 1fr);
	}

	[data-look="model"] .detail-panel > .judgement,
	[data-look="model"] .detail-panel > .assist-block {
		grid-column: auto;
		grid-row: auto;
	}
}

/* High contrast */
:root[data-look="contrast"] {
	color-scheme: dark;
	--page: #000;
	--surface: #000;
	--ink: #fff;
	--ink-2: #fff;
	--muted: #d3d1c7;
	--hairline: #fff;
	--border: #fff;
	--accent: #fac775;
	--accent-hover: #fac775;
	--on-accent: #000;
	--link: #fac775;
	--field-border: #fff;
	--warning-mark: #fab219;
	--serious-mark: #ec835a;
	--critical: #ff7b7b;
	--critical-ink: #ff9b9b;
	--on-warning: #000;
	--shadow: none;
}

[data-look="contrast"] a {
	text-decoration: underline;
}

[data-look="contrast"] .card,
[data-look="contrast"] .tile,
[data-look="contrast"] .table-wrap,
[data-look="contrast"] .detail-panel,
[data-look="contrast"] .button,
[data-look="contrast"] input,
[data-look="contrast"] select,
[data-look="contrast"] .look-option {
	border-width: 2px;
}

[data-look="contrast"] .sidebar {
	border-right: 2px solid #fff;
}

[data-look="contrast"] .nav a[aria-current="page"] {
	background: #fac775;
	color: #000;
	box-shadow: none;
}

[data-look="contrast"] .button.primary {
	background: #fff;
	border-color: #fff;
	color: #000;
}

/* Compact and dense */
[data-look="compact"] body {
	font-size: var(--text-sm);
}

[data-look="compact"] .shell {
	grid-template-columns: 180px minmax(0, 1fr);
}

[data-look="compact"] .sidebar {
	gap: 12px;
	padding: 12px 8px;
}

[data-look="compact"] .nav a {
	padding: 4px 8px;
}

[data-look="compact"] .page {
	max-width: 1600px;
	padding: 16px 16px 48px;
}

[data-look="compact"] .data th,
[data-look="compact"] .data td {
	padding: 4px 8px;
}

[data-look="compact"] table.data {
	font-size: var(--text-xs);
}

[data-look="compact"] .card {
	padding: 12px 16px;
	margin-bottom: 12px;
}

[data-look="compact"] .tile {
	padding: 8px 12px;
}

[data-look="compact"] .tile-value {
	font-size: var(--text-xl);
}

[data-look="compact"] h1 {
	font-size: var(--text-lg);
}

/* Settings → Model */

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.model-settings > * + * {
	margin-top: 12px;
}

.model-now {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.model-choices {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.model-group h3 {
	margin: 16px 0 6px;
}

.choice-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 8px;
}

.choice-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	cursor: pointer;
}

.choice-option:has(input:checked) {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--accent);
}

.choice-option:has(input:focus-visible) {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.chip-note {
	color: var(--ink-2);
	font-size: var(--text-xs);
}

.model-help {
	color: var(--ink-2);
}

.model-fields {
	display: grid;
	gap: 12px;
	max-width: 640px;
}

.model-fields .field {
	display: grid;
	gap: 4px;
}

.model-fields .inline-form input {
	flex: 1;
	min-width: 0;
}

.check-line {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: var(--text-sm);
}

.model-result {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.model-result.error {
	color: var(--critical-ink);
}

/* Settings → Access from other devices */

.access-settings > * + *,
.access-controls > * + * {
	margin-top: 12px;
}

.access-controls .field {
	display: grid;
	gap: 4px;
	max-width: 760px;
}

.access-controls .inline-form input {
	flex: 1;
	min-width: 0;
}

/* Send to a model */

.dialog.send {
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
}

.dialog .actions .push-left {
	margin-right: auto;
}

.dialog .send-result {
	margin-top: 16px;
	max-height: 50vh;
	overflow: auto;
}

.dialog .send-result .actions {
	margin-top: 12px;
}

/* The owner's tracking: new since the last scan, status and note */

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 4px;
}

.tag {
	display: inline-flex;
	align-items: center;
	padding: 1px 8px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-pill);
	color: var(--ink-2);
	font-size: var(--text-xs);
	font-weight: 500;
}

.tag-new {
	border-color: var(--accent-hover);
	color: var(--ink);
}

.tag-status.status-fixed,
.tag-status.status-rotated,
.tag-status.status-false-positive,
.tag-status.status-accepted {
	border-style: dashed;
}

/* An accepted risk whose end date has passed: it wants looking at again. */
.tag-status.status-ended {
	border-color: var(--critical-ink);
	color: var(--critical-ink);
}

.note-editor {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--hairline);
}

.note-editor h3 {
	margin-bottom: 8px;
}

.note-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 8px;
}

.note-row .field {
	display: grid;
	gap: 2px;
}

.note-editor textarea {
	width: 100%;
	box-sizing: border-box;
}

.history-table td,
.history-table th {
	padding: 6px 8px;
	text-align: left;
}

.history-table td.num,
.history-table th.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

/* This Mac: the check of the computer Porchlight runs on */

.host-progress {
	display: grid;
	gap: 6px;
	margin-top: 12px;
}

.host-list {
	display: grid;
}

.host-check {
	padding: 12px 0;
	border-top: 1px solid var(--hairline);
}

.host-list > .host-check:first-child {
	border-top: 0;
}

.host-check-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.host-detail {
	margin: 4px 0 0;
	color: var(--ink-2);
	overflow-wrap: anywhere;
}

.host-fix {
	margin: 6px 0 0;
	padding-left: 20px;
	color: var(--ink-2);
	font-size: var(--text-sm);
	overflow-wrap: anywhere;
}

.host-fix li + li {
	margin-top: 4px;
}

.host-check .fix-details ul {
	margin: 4px 0 0;
	padding-left: 20px;
	font-size: var(--text-sm);
	overflow-wrap: anywhere;
}

.host-passed {
	margin-top: 12px;
}

.host-passed summary {
	cursor: pointer;
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.host-not-covered {
	margin: 6px 0 0;
	padding-left: 20px;
	color: var(--ink-2);
}

.host-commands-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.host-commands {
	margin: 12px 0 0;
	padding: 12px 16px;
	overflow-x: auto;
	background: var(--page);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	font-family: var(--mono);
	font-size: var(--text-sm);
	line-height: 1.6;
	white-space: pre;
}


/* Click paths as breadcrumbs (cli/ui/paths.js): each step with a place of its own is a link. */
.crumbs .crumb {
	font-weight: 600;
}

.crumbs a.crumb {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.crumbs a.crumb:hover {
	text-decoration-thickness: 2px;
}

.crumbs .crumb-sep {
	color: var(--muted);
}

/* A Settings section an address jumped to takes focus without a ring around the whole card. */
#settings-model:focus,
#settings-access:focus,
#settings-appearance:focus {
	outline: none;
}

/* Investigate with a model: the run, what waits for approval, the steps and their evidence. */
.investigate-run-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.investigate-domain + .investigate-domain {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--hairline);
}

.investigate-domain h3 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

/* Stays in view while the steps below it are read, so a request that waits is never missed. */
.investigate-approval {
	position: sticky;
	top: 12px;
	z-index: 3;
	margin: 12px 0;
	box-shadow: 0 6px 18px rgb(0 0 0 / 18%);
}

.investigate-rest {
	margin-top: 8px;
}

.investigate-may-send {
	margin-top: 16px;
}

.investigate-limits {
	display: grid;
	gap: 4px;
	margin: 6px 0 0;
	padding-left: 20px;
	color: var(--ink-2);
}

.investigate-pre {
	max-height: 320px;
	margin: 6px 0;
	padding: 8px 12px;
	overflow: auto;
	font-size: var(--text-xs);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	background: var(--page);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
}

.investigate-steps,
.investigate-findings {
	display: grid;
	gap: 12px;
	margin: 8px 0;
	padding-left: 0;
	list-style: none;
}

.investigate-step,
.investigate-finding {
	padding: 8px 12px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	min-width: 0;
}

.investigate-step code {
	margin-left: 6px;
	overflow-wrap: anywhere;
}

.investigate-step.outcome-refused,
.investigate-step.outcome-denied,
.investigate-step.outcome-stopped {
	border-style: dashed;
}

.investigate-run h3 {
	margin-top: 20px;
}

/* Projects: the switcher above the sections, Settings → Projects, and where a file was kept. */

.project-switcher {
	display: grid;
	gap: 4px;
	padding: 0 8px;
}

.project-switcher label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.project-switcher .icon {
	width: 13px;
	height: 13px;
}

.project-switcher select {
	width: 100%;
	max-width: none;
	height: 30px;
	font-size: var(--text-sm);
}

[data-look="tabs"] .project-switcher {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
}

[data-look="tabs"] .project-switcher label span {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

[data-look="tabs"] .project-switcher select {
	width: auto;
	max-width: 180px;
}

.toast {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.toast-message {
	flex: 1 1 auto;
}

.toast-close {
	margin: -4px -6px -4px 0;
	padding: 2px 8px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--text-lg);
	line-height: 1;
	cursor: pointer;
}

.toast-close:hover,
.toast-action:hover {
	background: rgba(255, 255, 255, 0.16);
}

.toast-action {
	padding: 2px 8px;
	border: 1px solid currentColor;
	border-radius: var(--radius-sm);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: var(--text-sm);
	cursor: pointer;
}

.project-list {
	display: grid;
	gap: 8px;
	margin: 12px 0;
	padding: 0;
	list-style: none;
}

.project-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 12px 12px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
}

.project-row.current {
	border-color: var(--accent-hover);
}

.project-what {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.project-what code {
	color: var(--ink-2);
	font-size: var(--text-sm);
	overflow-wrap: anywhere;
}

.project-row .actions {
	margin: 0;
}

.project-in-use {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ink);
	font-weight: 600;
}

.project-in-use .icon {
	color: var(--good);
}

.project-form {
	display: grid;
	gap: 12px;
	max-width: 760px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--hairline);
}

.project-form h3 {
	margin: 0;
	font-size: var(--text-md);
}

.project-folder-row {
	display: flex;
	gap: 8px;
}

.project-folder-row .button {
	flex: none;
}

.project-preview:empty {
	display: none;
}

.project-preview p {
	margin: 0;
}

.project-paths code {
	overflow-wrap: anywhere;
}

.project-form .form-error,
.project-preview .form-error {
	margin: 0;
	color: var(--critical-ink);
}

.kept-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
}

.kept-in:empty {
	display: none;
}

.kept-in p {
	margin: 0;
}

.kept-in p > .icon {
	width: 14px;
	height: 14px;
	vertical-align: -2px;
}

.kept-in p > .button {
	margin-left: 4px;
	vertical-align: middle;
}

@media (max-width: 900px) {
	.project-switcher {
		display: flex;
		align-items: center;
		padding: 0;
	}

	.project-switcher label span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.project-switcher select {
		width: auto;
		max-width: 150px;
	}
}

/* Cloudflare: the audit of the owner's Cloudflare account */

.cf-zone-head,
.cf-severities {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 8px;
}

.cf-severities {
	margin: 12px 0;
}

.cf-severity-count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.cf-plan {
	padding: 1px 8px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-pill);
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.cf-approval {
	margin-top: 12px;
	padding: 12px 12px;
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
}

.cf-request {
	margin: 8px 0;
	padding: 12px 12px;
	overflow-x: auto;
	background: var(--page);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	font-family: var(--mono);
	font-size: var(--text-sm);
	line-height: 1.5;
	white-space: pre;
}

.cloudflare-permissions li + li {
	margin-top: 4px;
}

/* A long request or value scrolls inside its own box instead of widening the card. */
.host-list > .host-check {
	min-width: 0;
}

.host-check code {
	overflow-wrap: anywhere;
}

/* Stopping work in progress: a scan, or a model's answer. */
.progress > .button,
.assist-content > .assist-wait + .button {
	margin-top: 12px;
}

/* "Scan this repository again", above a repository's findings. */
.repo-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0;
}

/* Stop sits under the waiting line at its own width, not stretched across the panel. */
.assist-content > .assist-wait + .button {
	display: flex;
	width: fit-content;
}

/* Domains: open findings in the list, and the history of kept scans under a domain's report. */
.domain-open {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
	color: var(--ink-2);
	font-size: var(--text-sm);
}

.domain-history {
	margin-top: 24px;
}

.timeline {
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-lg);
}

.timeline > li + li {
	border-top: 1px solid var(--hairline);
}

.timeline summary,
.timeline-line {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	padding: 8px 12px;
}

.timeline summary {
	cursor: pointer;
}

.timeline-when {
	flex: 0 0 176px;
	color: var(--ink-2);
	font-size: var(--text-sm);
	font-variant-numeric: tabular-nums;
}

.timeline-what {
	flex: 1 1 200px;
	font-weight: 500;
}

.timeline-quiet .timeline-what {
	color: var(--ink-2);
	font-weight: 400;
}

.timeline details > :not(summary) {
	margin: 0 12px 12px;
}

.timeline-findings {
	display: grid;
	gap: 4px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	overflow-wrap: anywhere;
}

.timeline-findings li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
}
