:root {
	/* A light, flat look: white surfaces on a very light grey page, near-black ink, thin grey
	   lines, a blue for what can be pressed and a purple for what is Heatprint's own. */
	color-scheme: light;
	--page: #f9fafb;
	--surface: #ffffff;
	--border: #dde1e6;
	--line: #eaecf0;
	--text: #0c111d;
	--text-2: #344054;
	--text-3: #667085;
	--accent: #0086c9;
	--accent-dark: #026aa2;
	--accent-soft: #e2f5ff;
	--accent-text: #ffffff;
	--brand: #a03c92;
	--brand-dark: #752e6c;
	--brand-soft: #f9eef7;
	--pin: #f26b3a;
	--good: #17b26a;
	--middling: #f79009;
	--bad: #f04438;
	--warn: #b54708;
	--focus: #2e90fa;
	--bar: #0086c9;
	--map-empty: #eef1f5;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
}

* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: var(--page);
	color: var(--text);
}
.dim {
	color: var(--text-3);
}

.top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 12px 16px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
}
.brand {
	display: flex;
	align-items: baseline;
	gap: 10px;
	min-width: 0;
}
.mark {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	align-self: center;
	box-shadow: 9px -5px 0 -3px var(--accent), 16px 3px 0 -4px var(--accent);
	margin-right: 14px;
}
.wordmark {
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.2px;
}
.game {
	color: var(--text-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
}
.filters[hidden] {
	display: none;
}
.filters label {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-2);
	font-size: 13px;
}
select,
button {
	font: inherit;
	color: var(--text);
}
select {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 5px 8px;
	font-size: 14px;
	max-width: 100%;
}

.message {
	max-width: 560px;
	margin: 64px auto;
	padding: 0 16px;
	color: var(--text-2);
	line-height: 1.5;
}
.message h1 {
	color: var(--text);
	font-size: 20px;
	margin: 0 0 8px;
}

.dashboard {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
	grid-template-areas: "tiles tiles" "map table" "foot foot";
	gap: 12px;
	padding: 12px 16px 24px;
	max-width: 1500px;
	margin: 0 auto;
}
.dashboard[hidden] {
	display: none;
}
@media (max-width: 900px) {
	.dashboard {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "tiles" "map" "table" "foot";
	}
}

.tiles {
	grid-area: tiles;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}
.tile {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 12px 14px;
}
.tile .value {
	font-size: 26px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	line-height: 1.15;
}
.tile .label {
	color: var(--text-2);
	font-size: 13px;
	margin-top: 2px;
}
.tile .note {
	color: var(--text-3);
	font-size: 12px;
	margin-top: 2px;
}

.mapcard,
.tablecard {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	min-width: 0;
}
.mapcard {
	grid-area: map;
	display: flex;
	flex-direction: column;
}
.maptools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
}
.layers {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	flex: 1 1 auto;
}
.layers label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	white-space: nowrap;
}
.height {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--text-2);
}
.height[hidden] {
	display: none;
}
.height input {
	width: 84px;
}
button.quiet {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 5px 10px;
	font-size: 13px;
	cursor: pointer;
}
.mapwrap {
	position: relative;
	height: min(68vh, 720px);
	min-height: 320px;
	background: var(--map-empty);
	overflow: hidden;
	touch-action: none;
	cursor: grab;
}
.mapwrap.dragging {
	cursor: grabbing;
}
#map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}
.tooltip {
	position: absolute;
	pointer-events: none;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 7px 9px;
	font-size: 13px;
	line-height: 1.35;
	max-width: 260px;
	box-shadow: 0 4px 14px rgb(0 0 0 / 0.18);
	z-index: 2;
}
.tooltip b {
	font-weight: 650;
}
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	padding: 10px 12px;
	border-top: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-2);
}
.legend .ramp {
	display: flex;
	align-items: center;
	gap: 8px;
}
.legend .bar {
	width: 110px;
	height: 8px;
	border-radius: 4px;
}
.legend .kinds {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
}
.swatch {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--border);
	vertical-align: baseline;
	margin-right: 5px;
}

.tablecard {
	grid-area: table;
	display: flex;
	flex-direction: column;
	max-height: calc(min(68vh, 720px) + 110px);
}
.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 2px;
	padding: 8px 8px 0;
	border-bottom: 1px solid var(--border);
}
.tabs button {
	white-space: nowrap;
	flex: none;
}
.tabs button {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 7px 10px;
	font-size: 14px;
	color: var(--text-2);
	cursor: pointer;
}
.tabs button[aria-selected="true"] {
	color: var(--text);
	border-bottom-color: var(--accent);
	font-weight: 600;
}
.tabbody {
	padding: 8px 12px 12px;
	overflow: auto;
}
table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
th,
td {
	text-align: left;
	padding: 6px 6px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}
th {
	color: var(--text-2);
	font-weight: 500;
	font-size: 12.5px;
	position: sticky;
	top: 0;
	background: var(--surface);
}
td.num,
th.num {
	text-align: right;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
td.sub {
	color: var(--text-2);
	padding-left: 22px;
}
.empty {
	color: var(--text-3);
	padding: 16px 4px;
	line-height: 1.45;
}
.bars {
	display: grid;
	grid-template-columns: max-content 1fr max-content;
	gap: 6px 10px;
	align-items: center;
	font-size: 14px;
	margin-top: 8px;
}
.bars .track {
	height: 12px;
}
.bars .fill {
	height: 100%;
	min-width: 2px;
	border-radius: 0 4px 4px 0;
	background: var(--bar);
}
.bars .n {
	font-variant-numeric: tabular-nums;
	color: var(--text-2);
}
h2 {
	font-size: 14px;
	margin: 14px 0 2px;
}
.foot {
	grid-area: foot;
	color: var(--text-3);
	font-size: 12.5px;
	line-height: 1.5;
}

.advicebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 4px 0 10px;
	font-size: 13px;
}
button.primary {
	background: var(--accent);
	color: var(--accent-text);
	border: none;
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 14px;
	cursor: pointer;
}
.warn {
	color: var(--warn);
}
.finding {
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 10px 12px;
	margin-bottom: 10px;
}
.fhead {
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.ftype {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: var(--text-2);
}
.fzone {
	font-weight: 650;
}
.ftext {
	margin: 6px 0;
	line-height: 1.45;
}
.ftry {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-2);
	margin-top: 8px;
}
.fsuggest {
	margin: 2px 0 6px;
	padding-left: 20px;
	line-height: 1.45;
}
.fsource {
	font-size: 12px;
	margin: 4px 0;
}
.ffoot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 10px;
	margin: 8px 0 6px;
}
.conf {
	font-size: 12.5px;
	color: var(--text-2);
}
.conf::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
	border: 1.5px solid var(--text-2);
}
.conf-medium::before {
	background: linear-gradient(90deg, var(--text-2) 50%, transparent 50%);
}
.conf-high::before {
	background: var(--text-2);
}
details summary {
	cursor: pointer;
	font-size: 13px;
	color: var(--text-2);
}
table.numbers {
	margin-top: 6px;
	font-size: 13px;
}
table.numbers td {
	padding: 3px 6px;
}
.comparepick {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 8px;
	font-size: 14px;
}
table.compare tr.group td {
	font-weight: 650;
	padding-top: 12px;
	border-bottom: 1px solid var(--border);
}
table.compare tr.clear td {
	font-weight: 600;
}
table.compare td.verdict {
	color: var(--text-2);
	font-size: 12.5px;
	white-space: nowrap;
}
table.compare tr.clear td.verdict {
	color: var(--text);
}

/* What newer tracking scripts add: purchases, steps, frame rate, days, zone editing. */
.tablecard {
	position: relative;
}
.mapwrap.drawing {
	cursor: crosshair;
}
.minitiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
	margin: 4px 0 6px;
}
.minitile {
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 8px 10px;
}
.minitile .value {
	font-size: 20px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}
.minitile .label {
	color: var(--text-2);
	font-size: 12.5px;
}
.bars.steps {
	grid-template-columns: max-content 1fr max-content max-content;
}
.bars.steps .onward {
	color: var(--text-2);
	font-size: 13px;
}
.flag {
	color: var(--warn);
	font-weight: 600;
	white-space: nowrap;
}
.flag::before {
	content: "▼ ";
}
.empty pre {
	background: var(--page);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 8px 10px;
	margin: 8px 0;
	overflow-x: auto;
	color: var(--text);
	font-size: 13px;
}
.finding.update {
	border-left: 3px solid var(--accent);
}
.trends {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 6px 14px;
}
.trend {
	margin: 0;
}
.trend figcaption {
	font-size: 13px;
	font-weight: 600;
	margin: 8px 0 0;
}
.trend figcaption .dim {
	font-weight: 400;
}
.trend svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}
.trend .grid {
	stroke: var(--border);
	stroke-width: 1;
}
.trend .mark {
	stroke: var(--text-3);
	stroke-width: 1;
}
.trend .line {
	fill: none;
	stroke: var(--bar);
	stroke-width: 2;
	stroke-linejoin: round;
	stroke-linecap: round;
}
.trend .dot {
	fill: var(--bar);
	stroke: var(--surface);
	stroke-width: 2;
}
.trend .cross {
	stroke: var(--text-2);
	stroke-width: 1;
}
.trend .tick {
	fill: var(--text-3);
	font-size: 10.5px;
}
.trend .end {
	fill: var(--text);
	font-size: 11.5px;
	font-weight: 600;
}
.charttip {
	pointer-events: none;
}
.zonebar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 6px 0;
}
.zonerow {
	display: grid;
	grid-template-columns: minmax(120px, 1fr) max-content max-content max-content;
	gap: 8px;
	align-items: center;
	margin: 4px 0;
	font-size: 13px;
}
.zonerow input {
	font: inherit;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 5px 8px;
	min-width: 0;
}
.legend .band {
	display: inline-flex;
	align-items: center;
	margin-right: 10px;
}
.legend .band .swatch {
	border-radius: 2px;
}

.mapwrap.placing {
	cursor: move;
}
.filepick,
.sizepick {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	font-size: 13px;
	color: var(--text-2);
}
.sizepick input {
	flex: 1;
	min-width: 140px;
}
.zoneedit p {
	line-height: 1.45;
}
button:disabled {
	opacity: 0.6;
	cursor: default;
}

/* Threads, marks, and the difference between two maps. */
.step {
	display: inline-block;
	border: 1px solid var(--border);
	border-radius: 5px;
	padding: 1px 6px;
	margin: 1px 0;
	white-space: nowrap;
}
.arrow {
	color: var(--text-3);
	margin: 0 4px;
}
.marks {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
button.quiet.on {
	border-color: var(--accent);
	color: var(--text);
	font-weight: 600;
}
button.quiet.on::before {
	content: "✓ ";
}
details.intended {
	margin-top: 10px;
}
details.intended p {
	margin: 8px 0;
	line-height: 1.4;
}
.finding.notes {
	border-left: 3px solid var(--accent);
}
ol.groups {
	margin: 4px 0 8px;
	padding-left: 22px;
}
ol.groups > li {
	margin: 10px 0;
	line-height: 1.45;
}
ol.groups .ftext {
	margin: 2px 0 4px;
}
ol.groups .about {
	margin: 4px 0 0;
	font-size: 12.5px;
	color: var(--text-2);
	line-height: 1.9;
}
ol.groups .about .step {
	white-space: normal;
}
details.aboutgame {
	margin-top: 8px;
	font-size: 13px;
}
details.aboutgame summary {
	cursor: pointer;
	color: var(--text-2);
}
details.aboutgame label {
	display: block;
	margin: 8px 0 0;
	color: var(--text-2);
}
details.aboutgame textarea,
details.aboutgame input {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 3px;
	font: inherit;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 6px 8px;
	resize: vertical;
}
/* The "Ask the AI" bubble: a button in the corner and a panel of its own over the page. */
.askbubble {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	background: var(--accent);
	color: var(--accent-text);
	border: none;
	border-radius: 999px;
	padding: 12px 18px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgb(0 0 0 / 0.35);
}
.askbubble.new::after {
	content: "";
	position: absolute;
	top: 2px;
	right: 2px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #eb2d2d;
	border: 2px solid var(--page);
}
.askpanel {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 41;
	width: min(440px, calc(100vw - 24px));
	height: min(680px, calc(100vh - 40px));
	display: flex;
	flex-direction: column;
	background: var(--page);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 8px 32px rgb(0 0 0 / 0.45);
	overflow: hidden;
}
.askpanel[hidden],
.askbubble[hidden] {
	display: none;
}
.askpanel > header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--border);
}
.askpanel > header .dim {
	flex: 1;
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
#askBody {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}
#askBody > .empty {
	padding: 16px 12px;
}
.askscroll {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 10px 12px 4px;
}
.askfoot {
	border-top: 1px solid var(--border);
	padding: 8px 12px 10px;
}
.askfoot details.askdata[open] {
	max-height: 42vh;
	overflow-y: auto;
	margin-bottom: 8px;
}
.askfoot .warn {
	font-size: 13px;
	margin-bottom: 6px;
}
.askbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 6px;
	font-size: 12px;
}
@media (max-width: 600px) {
	.askpanel {
		right: 0;
		bottom: 0;
		width: 100vw;
		height: 100vh;
		border-radius: 0;
	}
}
.asklog {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 6px 0 10px;
}
.say {
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 8px 12px;
	max-width: 92%;
}
.say.you {
	align-self: flex-end;
	background: var(--surface);
}
.say.ai {
	align-self: flex-start;
	border-left: 3px solid var(--accent);
}
.say .who {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-2);
	margin-bottom: 2px;
}
.say .text {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	line-height: 1.5;
}
.say .note {
	font-size: 12px;
	margin-top: 6px;
}
mark.unchecked {
	background: none;
	color: inherit;
	border-bottom: 2px dotted var(--text-3);
	cursor: help;
}
.starters {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: 8px 0 12px;
}
.starters button {
	text-align: left;
}
.askbox {
	display: flex;
	gap: 8px;
	align-items: flex-end;
}
.askbox textarea,
.askdata textarea {
	flex: 1;
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 7px 9px;
	resize: vertical;
}
details.askdata {
	font-size: 13px;
}
details.askdata summary {
	cursor: pointer;
	color: var(--text-2);
}
.askdata .parts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 4px 14px;
	margin: 8px 0;
}
.askdata .extra {
	display: block;
	margin-top: 10px;
	color: var(--text-2);
}
.askdata .extra textarea {
	display: block;
	margin-top: 3px;
}
pre.sheet {
	max-height: 320px;
	overflow: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	background: var(--page);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 12px;
	line-height: 1.45;
}
.diffpick {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--text-2);
	font-size: 13px;
}
.diffpick[hidden] {
	display: none;
}

/* ---- The look: light and flat, after the clean catalogue style of enterprise data tools. ---- */
body {
	font-weight: 400;
	letter-spacing: -0.006em;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
* {
	scrollbar-width: thin;
	scrollbar-color: #d0d5dd transparent;
}
b,
strong {
	font-weight: 600;
}
:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 1px;
}
input[type="checkbox"],
input[type="range"] {
	accent-color: var(--accent);
}

/* The bar across the top. */
.top {
	position: sticky;
	top: 0;
	z-index: 30;
	gap: 8px 24px;
	padding: 8px 24px;
	min-height: 60px;
	border-top: 3px solid var(--brand);
}
.brand {
	align-items: center;
	gap: 10px;
}
.mark {
	width: 12px;
	height: 12px;
	background: var(--pin);
	box-shadow: 9px -5px 0 -3px var(--pin), 16px 3px 0 -4px var(--pin);
	margin-right: 12px;
}
.wordmark {
	color: var(--brand);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.crumb {
	color: #d0d5dd;
	font-size: 18px;
	font-weight: 300;
}
.game {
	color: var(--text-2);
	font-weight: 500;
}
.filters {
	gap: 6px 14px;
}
.filters label {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-3);
}
select {
	height: 32px;
	padding: 0 8px;
	border-color: #d0d5dd;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}
select:hover {
	border-color: #98a2b3;
}

/* The page. */
.dashboard {
	grid-template-areas: "head head" "tiles tiles" "map table" "foot foot";
	gap: 16px;
	padding: 20px 24px 40px;
	max-width: 1600px;
}
@media (max-width: 900px) {
	.dashboard {
		grid-template-areas: "head" "tiles" "map" "table" "foot";
		padding: 16px 12px 32px;
	}
	.top {
		padding: 8px 12px;
	}
}
.pagehead {
	grid-area: head;
}
.overline {
	color: var(--brand);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.pagehead h1 {
	margin: 2px 0 2px;
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.pagehead p {
	margin: 0;
	font-size: 13.5px;
}

/* Headline numbers. */
.tiles {
	gap: 16px;
}
.tile {
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	padding: 14px 16px;
}
.tile .label {
	order: -1;
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-3);
}
.tile .value {
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.02em;
}
.tile .note {
	margin-top: 4px;
}

/* Cards, tools and buttons. */
.mapcard,
.tablecard {
	border-radius: 8px;
	overflow: hidden;
}
.maptools {
	padding: 12px 16px;
}
.layers label {
	font-size: 13px;
	color: var(--text-2);
	cursor: pointer;
}
.legend {
	padding: 10px 16px;
	font-size: 12.5px;
	color: var(--text-3);
}
button {
	font-weight: 500;
}
button.quiet {
	min-height: 30px;
	padding: 0 12px;
	border-color: #d0d5dd;
	border-radius: 6px;
	color: var(--text-2);
	transition: background 0.12s, border-color 0.12s;
}
button.quiet:hover:not(:disabled) {
	background: var(--page);
	border-color: #98a2b3;
}
button.quiet.on {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent-dark);
}
button.primary {
	min-height: 34px;
	padding: 0 16px;
	border: 1px solid var(--accent);
	border-radius: 6px;
	font-size: 13.5px;
	transition: background 0.12s;
}
button.primary:hover:not(:disabled) {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
}
textarea,
input[type="text"] {
	border-color: #d0d5dd !important;
}
textarea:focus,
input[type="text"]:focus,
select:focus {
	outline: 2px solid var(--focus);
	outline-offset: 0;
	border-color: var(--focus) !important;
}
.tooltip {
	border-radius: 8px;
	box-shadow: 0 8px 24px rgb(12 17 29 / 0.12);
}

/* Tabs and tables. */
.tabs {
	gap: 0 2px;
	padding: 4px 12px 0;
	background: var(--surface);
}
.tabs button {
	padding: 10px 10px 9px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--text-3);
	transition: color 0.12s;
}
.tabs button:hover {
	color: var(--text);
}
.tabs button[aria-selected="true"] {
	color: var(--accent-dark);
	border-bottom-color: var(--accent);
	font-weight: 600;
}
.tabbody {
	padding: 14px 16px 16px;
}
table {
	font-size: 13.5px;
}
th,
td {
	padding: 9px 10px;
	border-bottom-color: var(--line);
}
th {
	background: var(--page);
	border-bottom-color: var(--border);
	color: var(--text-3);
	font-size: 12px;
	font-weight: 500;
}
tbody tr:hover td {
	background: var(--page);
}
table.numbers tbody tr:hover td {
	background: none;
}
h2 {
	font-size: 14px;
	font-weight: 600;
	margin: 18px 0 6px;
}
.empty {
	margin: 4px 0;
	padding: 16px;
	background: var(--page);
	border: 1px dashed var(--border);
	border-radius: 8px;
}
.bars .track {
	background: #f2f4f7;
	border-radius: 4px;
	overflow: hidden;
}
.bars .fill {
	border-radius: 4px;
}
.foot {
	font-size: 12px;
}
.message {
	max-width: 540px;
	margin: 72px auto;
	padding: 28px 32px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 3px solid var(--brand);
	border-radius: 8px;
}
.message h1 {
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Findings. */
.finding {
	background: var(--surface);
	padding: 14px 16px;
	margin-bottom: 12px;
}
.fhead {
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 10px;
}
.ftype {
	padding: 2px 8px;
	border-radius: 4px;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-size: 11.5px;
	letter-spacing: 0.01em;
	text-transform: none;
	white-space: nowrap;
}
.fzone {
	font-size: 14.5px;
	font-weight: 600;
}
.ftext {
	line-height: 1.5;
}
.ftry {
	font-size: 11px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-3);
}
.finding.update,
.finding.notes {
	border-left: 3px solid var(--brand);
}
.finding.update .ftype,
.finding.notes .ftype {
	background: var(--brand-soft);
	color: var(--brand-dark);
}
.conf {
	color: var(--text-3);
}
.conf::before {
	border: none;
	background: #98a2b3;
}
.conf-medium::before {
	background: var(--middling);
}
.conf-high::before {
	background: var(--good);
}
.step {
	background: var(--page);
	border-color: var(--line);
	border-radius: 4px;
	font-size: 12.5px;
}
.flag {
	padding: 1px 6px;
	border-radius: 4px;
	background: #fef3f2;
	color: #b42318;
	font-size: 12px;
}
.minitile {
	background: var(--surface);
	padding: 10px 12px;
}
.minitile .value {
	font-weight: 600;
	letter-spacing: -0.01em;
}
.minitile .label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text-3);
}
details summary:hover {
	color: var(--text);
}
table.compare tr.group td {
	background: var(--page);
	font-weight: 600;
}

/* The "Ask the AI" bubble and its panel. */
.askbubble {
	background: var(--brand);
	padding: 12px 20px;
	font-size: 14.5px;
	box-shadow: 0 6px 20px rgb(160 60 146 / 0.35);
	transition: background 0.12s;
}
.askbubble:hover {
	background: var(--brand-dark);
}
.askbubble.new::after {
	background: var(--pin);
	border-color: var(--surface);
}
.askpanel {
	background: var(--surface);
	box-shadow: 0 16px 48px rgb(12 17 29 / 0.18);
}
.askpanel > header {
	background: var(--brand);
	border-bottom: 1px solid var(--brand-dark);
	color: #ffffff;
}
.askpanel > header .dim {
	color: rgb(255 255 255 / 0.8);
}
.askpanel > header button.quiet {
	background: transparent;
	border-color: rgb(255 255 255 / 0.55);
	color: #ffffff;
}
.askpanel > header button.quiet:hover {
	background: rgb(255 255 255 / 0.14);
	border-color: #ffffff;
}
.askscroll {
	background: var(--page);
}
.say {
	background: var(--surface);
}
.say.you {
	background: var(--accent-soft);
	border-color: #b9e6fe;
}
.say.ai {
	border-left-color: var(--brand);
}
.say .who {
	font-size: 10.5px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--text-3);
}
mark.unchecked {
	border-bottom-color: var(--middling);
}
pre.sheet,
.empty pre {
	background: var(--page);
	font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

/* The pages beside the dashboard (Profile, Settings) and the way between them. */
.views {
	display: flex;
	gap: 2px;
	margin-right: auto;
}
.views[hidden] {
	display: none;
}
.views button {
	background: none;
	border: none;
	border-radius: 6px;
	padding: 7px 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-3);
	cursor: pointer;
}
.views button:hover {
	color: var(--text);
	background: var(--page);
}
.views button[aria-current="page"] {
	color: var(--accent-dark);
	background: var(--accent-soft);
}
.page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 24px 48px;
}
.page[hidden] {
	display: none;
}
.pagegrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	gap: 16px;
	margin-top: 16px;
	align-items: start;
}
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 18px 20px;
	line-height: 1.5;
}
.card h2 {
	margin: 0 0 10px;
	font-size: 16px;
	letter-spacing: -0.01em;
}
.card p {
	margin: 8px 0;
}
.card label {
	display: block;
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-2);
}
.card input[type="text"],
.card input[type="password"],
.card textarea,
.pastelink input {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 8px 10px;
	font: inherit;
	font-weight: 400;
	color: var(--text);
	background: var(--surface);
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	resize: vertical;
}
.card input[type="password"]:focus,
.pastelink input:focus {
	outline: 2px solid var(--focus);
	outline-offset: 0;
	border-color: var(--focus);
}
.card label.check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-weight: 400;
	color: var(--text);
	cursor: pointer;
}
.hint {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--text-3);
}
.formbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 14px;
	font-size: 13px;
}
.card .state {
	margin: 0 0 4px;
	padding: 10px 12px;
	background: var(--page);
	border: 1px solid var(--line);
	border-radius: 6px;
	font-size: 13.5px;
}
.card .state.good {
	background: #ecfdf3;
	border-color: #abefc6;
}
.facts {
	display: grid;
	grid-template-columns: minmax(120px, max-content) 1fr;
	gap: 8px 16px;
	margin: 0;
	font-size: 13.5px;
}
.facts dt {
	color: var(--text-3);
}
.facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}
code {
	padding: 1px 5px;
	background: var(--page);
	border: 1px solid var(--line);
	border-radius: 4px;
	font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
	font-size: 12.5px;
}
.pastelink {
	display: flex;
	gap: 8px;
	margin-top: 16px;
}
.pastelink input {
	margin-top: 0;
}
@media (max-width: 900px) {
	.page {
		padding: 16px 12px 40px;
	}
}

/* Hotzones. */
.ftype.hot {
	background: var(--brand-soft);
	color: var(--brand-dark);
}
.hotzones {
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.hotzones h2 {
	margin-top: 2px;
}
.hotzones h2 .dim {
	font-weight: 400;
	font-size: 13px;
}
.hotzones td .dim {
	font-size: 12.5px;
	margin-top: 2px;
}
.hotzones .zonebar {
	align-items: center;
}

/* Actions by classification. */
table.actions tr.classrow td {
	background: var(--page);
	font-weight: 600;
	border-top: 1px solid var(--border);
}
table.actions tr.classrow .dim {
	font-weight: 400;
	font-size: 12.5px;
}
table.actions tr.classrow label {
	cursor: pointer;
}
table.actions tbody tr.classrow:hover td {
	background: var(--page);
}
select.classify {
	height: 28px;
	max-width: 190px;
	font-size: 12.5px;
}
.newclass {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
}
.newclass label {
	display: block;
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-2);
}
.newclass input {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 7px 10px;
	font: inherit;
	font-weight: 400;
	color: var(--text);
	background: var(--surface);
	border: 1px solid #d0d5dd;
	border-radius: 6px;
}

/* The board: the map on the left, staying in view, and on the right two windows of their own,
   one under the other: Findings (what stands out), then Data (the tabs of numbers). */
.dashboard {
	grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
	grid-template-areas: "head head" "tiles tiles" "map side" "foot foot";
	align-items: start;
}
.side {
	grid-area: side;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}
.mapcard {
	position: sticky;
	top: 76px;
}
/* A little lower than it was, so that the whole card fits on the screen while it stays put. */
.mapwrap {
	height: min(62vh, 720px);
}
.findings {
	min-width: 0;
	/* As tall as the map beside it, and scrolling inside itself past that, so that the Data
	   window is never far below. */
	max-height: var(--map-card, calc(min(62vh, 720px) + 110px));
	overflow-y: auto;
	scroll-behavior: smooth;
	padding: 14px 16px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-top: 3px solid var(--brand);
	border-radius: 8px;
}
.tablecard {
	max-height: calc(100vh - 100px);
	min-height: 320px;
}
.cardhead {
	padding: 12px 16px 0;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.01em;
}
.cardhead .dim {
	margin-left: 6px;
	font-size: 12.5px;
	font-weight: 400;
	letter-spacing: 0;
}
.findhead {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
	margin: 0 0 12px;
}
.findhead h2 {
	margin: 0;
	font-size: 18px;
	letter-spacing: -0.015em;
}
.findtop,
.findgrid {
	display: grid;
	gap: 10px;
	align-items: start;
}
.findtop {
	grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
	margin-bottom: 10px;
}
.findgrid {
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.findtop .finding,
.findgrid .finding {
	margin-bottom: 0;
}
.findings .advicebar {
	margin: 0 0 10px;
}
.findings .finding .advicebar {
	margin: 4px 0 0;
}
.findings .empty {
	margin: 0;
}
.finding[data-card] {
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.finding[data-card]:hover {
	border-color: #98a2b3;
}
.finding[data-card].picked {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
.tabbody {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
	.tabbody.swap > *,
	.findings.swap > *,
	.page.swap > * {
		animation: rise 0.24s ease both;
	}
	@keyframes rise {
		from {
			opacity: 0;
			transform: translateY(6px);
		}
		to {
			opacity: 1;
			transform: none;
		}
	}
}
@media (max-width: 900px) {
	/* On a narrow screen everything is one column: findings, the map, then the data. */
	.dashboard {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "tiles" "find" "map" "table" "foot";
	}
	.side {
		display: contents;
	}
	.findings {
		grid-area: find;
		max-height: none;
		padding: 14px 12px;
	}
	.tablecard {
		grid-area: table;
		max-height: none;
	}
	.mapcard {
		position: static;
	}
	/* The bar with its filters is tall here: it scrolls away with the page. */
	.top {
		position: static;
	}
}
