/* Shared tokens, buttons, pills and result cards. Inlined into public report pages. */
:root {
	--navy: #121c2d;
	--navy-2: #1f304c;
	--navy-3: #2b3e5c;
	--blue: #0263e0;
	--blue-dark: #0150b8;
	--blue-soft: #ebf4ff;
	--red: #d61f1f;
	--red-soft: #feecec;
	--green: #0e7c3a;
	--green-soft: #e6f6ec;
	--amber: #a35c00;
	--amber-soft: #fff4e0;
	--purple: #6d2ed1;
	--purple-soft: #f2ebfe;
	--brand: #f22f46;
	--bg: #f4f4f6;
	--surface: #ffffff;
	--border: #e1e3ea;
	--border-strong: #cacdd8;
	--text: #121c2d;
	--muted: #606b85;
	--radius: 8px;
	--shadow: 0 1px 2px rgba(18, 28, 45, 0.06), 0 1px 1px rgba(18, 28, 45, 0.04);
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--blue);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	margin: 0;
	line-height: 1.25;
}

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

.eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 4px;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--brand);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 36px;
	padding: 0 16px;
	border-radius: 6px;
	border: 1px solid transparent;
	font: 600 14px/1 var(--font);
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
	background: var(--blue);
	color: #fff;
}

.btn-primary:hover {
	background: var(--blue-dark);
}

.btn-secondary {
	background: var(--surface);
	border-color: var(--border-strong);
	color: var(--text);
}

.btn-secondary:hover {
	border-color: var(--blue);
	color: var(--blue);
}

.btn-ghost {
	background: transparent;
	color: var(--blue);
}

.btn-ghost:hover {
	background: var(--blue-soft);
}

.btn-sm {
	height: 28px;
	padding: 0 10px;
	font-size: 13px;
}

.btn-block {
	width: 100%;
}

.btn:disabled {
	opacity: 0.6;
	cursor: progress;
}

/* Pills */
.pill {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 8px;
	border-radius: 11px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	background: var(--bg);
	color: var(--muted);
}

.pill-green { background: var(--green-soft); color: var(--green); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-purple { background: var(--purple-soft); color: var(--purple); }
.pill-muted { background: var(--bg); color: var(--muted); }

/* Share bar */
.share-bar {
	background: var(--surface);
	border: 1px solid var(--border);
	border-left: 4px solid var(--blue);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 14px 16px;
	margin-bottom: 20px;
}

.share-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 8px;
}

.share-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.share-input {
	flex: 1 1 320px;
	min-width: 0;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--border-strong);
	border-radius: 6px;
	background: var(--bg);
	font: 13px var(--mono);
	color: var(--text);
}

/* Summary */
.result-summary {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.result-summary h1,
.result-summary h2 {
	font-size: 22px;
	font-weight: 700;
}

.result-summary p {
	margin: 4px 0 0;
}

/* Results */
.results {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.source-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 10px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--border);
}

.source-head h2 {
	font-size: 16px;
	font-weight: 700;
}

.source-message {
	margin: 0;
	padding: 14px 16px;
	background: var(--surface);
	border: 1px dashed var(--border-strong);
	border-radius: var(--radius);
	color: var(--muted);
}

.person {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: 14px;
	overflow: hidden;
}

.person-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}

.person-title {
	flex: 1 1 auto;
	min-width: 0;
}

.person-title h3 {
	font-size: 16px;
	font-weight: 700;
}

.person-title p {
	margin: 2px 0 0;
	color: var(--muted);
}

.avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--blue-soft);
	color: var(--blue);
	font-weight: 700;
	flex-shrink: 0;
}

.fields {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 14px 24px;
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
}

.fields:last-child {
	border-bottom: 0;
}

.field-item dt {
	font-size: 12px;
	color: var(--muted);
	margin-bottom: 2px;
}

.field-item dd {
	margin: 0;
	font-weight: 500;
	word-break: break-word;
}

.lists {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.list {
	padding: 16px 20px;
	border-right: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	margin-right: -1px;
	margin-bottom: -1px;
}

.list h4 {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--muted);
	margin-bottom: 8px;
}

.count {
	display: inline-block;
	min-width: 18px;
	padding: 0 6px;
	margin-left: 4px;
	border-radius: 9px;
	background: var(--bg);
	color: var(--muted);
	font-size: 11px;
	text-align: center;
}

.list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
}

.list li {
	display: flex;
	flex-direction: column;
	padding: 6px 0;
	border-top: 1px solid var(--bg);
}

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

.list li small {
	color: var(--muted);
	font-size: 12px;
}

.empty {
	padding: 32px;
	text-align: center;
	color: var(--muted);
}

/* Public report page */
.report-body {
	min-height: 100vh;
}

.report-top {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 56px;
	padding: 0 24px;
	background: var(--navy);
	color: #fff;
}

.report-brand {
	font-weight: 700;
	font-size: 15px;
}

.report-main {
	max-width: 1100px;
	margin: 0 auto;
	padding: 24px;
}

@media (max-width: 640px) {
	.report-main {
		padding: 16px;
	}

	.person-head,
	.fields,
	.list {
		padding-left: 16px;
		padding-right: 16px;
	}
}
