/* Radar: RCG design system tokens (Rottman Creative Design System, colors_and_type.css). */
:root {
	--serif: "Freight Big Pro", "Freight Big Pro Local", Georgia, "Times New Roman", serif;
	--sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, monospace;

	--brand-red: #BE2E2B;
	--brand-red-hover: #9a2422;
	--rich-black: #1A1919;
	--white: #FFFFFE;
	--dark-green: #315A49;
	--dark-blue: #29254E;
	--dark-gray: #5B5C5B;

	--paper: #F7F5F2;
	--paper-elevated: #FEFDFB;
	--paper-muted: #EFE9E4;
	--paper-stage: #E7E3DF;

	--fg-1: var(--rich-black);
	--fg-2: #525252;
	--fg-3: #8a8a89;
	--fg-on-dark: #FFFFFE;
	--fg-on-dark-2: rgba(255, 255, 254, 0.62);

	--bg: var(--paper);
	--surface: var(--paper-elevated);
	--surface-2: var(--paper-muted);
	--sidebar: var(--rich-black);

	--border: rgba(26, 25, 25, 0.08);
	--border-strong: rgba(26, 25, 25, 0.16);
	--shadow: 0 12px 36px rgba(26, 25, 25, 0.07);
	--shadow-hover: 0 20px 48px rgba(26, 25, 25, 0.11);
	--radius: 10px;
	--radius-sm: 6px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	--ok: var(--dark-green);
	--ok-bg: rgba(49, 90, 73, 0.10);
	--info: var(--dark-blue);
	--info-bg: rgba(41, 37, 78, 0.09);
	--bad: var(--brand-red);
	--bad-bg: rgba(190, 46, 43, 0.09);
	--warn: #8a5a12;
	--warn-bg: rgba(178, 120, 30, 0.12);
	--muted-bg: rgba(26, 25, 25, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg-1);
	font: 15px/1.55 var(--sans);
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--brand-red); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
h1 { font-size: 34px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 0.8em; }
code, pre, .mono { font-family: var(--mono); font-size: 13px; }
small, .small { font-size: 13px; }
.muted { color: var(--fg-3); }
.soft { color: var(--fg-2); }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
	background: var(--sidebar); color: var(--fg-on-dark);
	display: flex; flex-direction: column; padding: 22px 14px; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 4px 10px 22px; }
.brand:hover { color: inherit; }
.brand-mark {
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	background: var(--brand-red); color: var(--white); font: 600 17px/1 var(--serif);
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.brand-name { font: 400 22px/1 var(--serif); color: var(--white); }
.brand-name small { display: block; font: 400 10.5px/1.6 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-on-dark-2); margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
	display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px;
	color: var(--fg-on-dark-2); text-decoration: none; font-size: 14px;
	transition: background 120ms var(--ease), color 120ms var(--ease);
}
.nav-item svg { width: 18px; height: 18px; flex: none; stroke: currentColor; }
.nav-item:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.nav-item.active { background: rgba(255, 255, 255, 0.09); color: var(--white); box-shadow: inset 3px 0 0 var(--brand-red); }
.nav-item.soon { opacity: 0.38; pointer-events: none; }
.nav-item .tag { margin-left: auto; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13px; color: var(--fg-on-dark-2); }
.sidebar-foot strong { color: var(--white); font-weight: 500; display: block; }
.sidebar-foot button { background: none; border: 0; color: var(--fg-on-dark-2); padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }

.main { padding: 34px 44px 80px; max-width: 1240px; width: 100%; }

/* ---------- page header ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.eyebrow { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-red); margin-bottom: 8px; font-weight: 500; }
.page-head p.lede { color: var(--fg-2); max-width: 680px; margin: 10px 0 0; font-size: 16px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: 13px; color: var(--fg-3); margin-bottom: 10px; }
.crumbs a { color: var(--fg-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand-red); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.stack > * + * { margin-top: 18px; }

.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat .label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); }
.stat .value { font: 400 30px/1.1 var(--serif); margin-top: 6px; }
.stat .sub { font-size: 13px; color: var(--fg-2); margin-top: 4px; }
.meter { height: 6px; background: var(--muted-bg); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.meter > span { display: block; height: 100%; background: var(--rich-black); border-radius: 99px; }
.meter.hot > span { background: var(--brand-red); }

/* ---------- buttons & forms ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 18px;
	font: 500 14px/1.2 var(--sans); cursor: pointer; text-decoration: none; border: 1px solid transparent;
	background: var(--rich-black); color: var(--white); transition: background 120ms var(--ease), transform 120ms var(--ease);
	white-space: nowrap;
}
.btn:hover { background: #333; color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn.red { background: var(--brand-red); }
.btn.red:hover { background: var(--brand-red-hover); }
.btn.ghost { background: transparent; color: var(--fg-1); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-2); color: var(--fg-1); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.link { background: none; border: 0; color: var(--fg-2); padding: 0; text-decoration: underline; }
.btn.link:hover { color: var(--brand-red); background: none; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
form.inline { display: inline; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label-text { font-size: 13px; font-weight: 500; color: var(--fg-1); }
.field .hint { font-size: 12.5px; color: var(--fg-3); }
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
	width: 100%; font: 15px/1.4 var(--sans); color: var(--fg-1); background: var(--white);
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 10px 12px;
	transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rich-black); box-shadow: 0 0 0 3px rgba(26, 25, 25, 0.08); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.checks label { font-weight: 400; display: flex; gap: 6px; align-items: center; font-size: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-3); padding: 0 12px 10px; border-bottom: 1px solid var(--border-strong); }
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tr.rowlink { cursor: pointer; }
.table tr.rowlink:hover td { background: rgba(26, 25, 25, 0.025); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.title { text-decoration: none; font-weight: 500; }
.table-wrap { overflow-x: auto; }

/* ---------- pills, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 500; background: var(--muted-bg); color: var(--fg-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.info { background: var(--info-bg); color: var(--info); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.live::before { animation: pulse 1.4s ease-in-out infinite; }
.pill.plain::before { display: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); font-size: 12px; color: var(--fg-2); }

/* ---------- notices ---------- */
.flash { background: var(--rich-black); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-size: 14px; }
.notice { border-radius: var(--radius-sm); padding: 14px 18px; font-size: 14px; background: var(--surface-2); border-left: 3px solid var(--rich-black); margin-bottom: 18px; }
.notice.red { border-left-color: var(--brand-red); background: var(--bad-bg); }
.notice.green { border-left-color: var(--dark-green); background: var(--ok-bg); }
.secret-box { font-family: var(--mono); background: var(--rich-black); color: #fff; padding: 12px 14px; border-radius: var(--radius-sm); word-break: break-all; margin: 10px 0; }

.empty { text-align: center; padding: 46px 20px; color: var(--fg-2); }
.empty h3 { margin-bottom: 8px; color: var(--fg-1); }
.empty p { max-width: 460px; margin: 0 auto 16px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-strong); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--fg-2); font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--fg-1); border-bottom-color: var(--brand-red); }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 11px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: baseline; justify-content: space-between; }
.list li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--fg-3); }
.kv dd { margin: 0; }

/* ---------- prose (rendered research) ---------- */
.prose { font-size: 16px; line-height: 1.7; color: var(--fg-1); }
.prose h1 { font-size: 30px; margin: 0.4em 0 0.6em; }
.prose h2 { font-size: 23px; margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 18.5px; margin: 1.3em 0 0.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1em 0; padding: 4px 18px; border-left: 3px solid var(--brand-red); color: var(--fg-2); }
.prose table { border-collapse: collapse; margin: 1em 0; font-size: 14px; width: 100%; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.prose a { color: var(--dark-blue); }
.prose sup.cite a { text-decoration: none; font-size: 11px; color: var(--brand-red); padding: 0 1px; }
.prose code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--rich-black); color: var(--white); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1 { font-size: 46px; max-width: 460px; }
.login-art p { color: var(--fg-on-dark-2); max-width: 420px; font-size: 17px; }
.login-art .rings { position: absolute; right: -140px; bottom: -140px; width: 520px; height: 520px; border-radius: 50%;
	background: radial-gradient(circle, transparent 0 22%, rgba(190,46,43,0.85) 22.4% 23.4%, transparent 23.8% 40%, rgba(255,255,255,0.10) 40.3% 40.9%, transparent 41.2% 58%, rgba(255,255,255,0.07) 58.3% 58.8%, transparent 59%); }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form .card { width: 100%; max-width: 400px; }

/* ---------- misc ---------- */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mt1 { margin-top: 8px; } .mt2 { margin-top: 16px; } .mt3 { margin-top: 28px; }
.mb0 { margin-bottom: 0; } .mb1 { margin-bottom: 8px; } .mb2 { margin-bottom: 16px; }
details summary { cursor: pointer; }
pre.block { background: var(--surface-2); padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
.dot-sep::before { content: "·"; margin: 0 6px; color: var(--fg-3); }

@media (max-width: 980px) {
	.split { grid-template-columns: 1fr; }
	.grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
	.shell { grid-template-columns: 1fr; }
	.sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 8px; }
	.brand { padding: 0 8px 0 0; }
	.brand-name small { display: none; }
	.nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; }
	.nav-item { padding: 7px 10px; }
	.nav-item span.label { white-space: nowrap; }
	.sidebar-foot { display: none; }
	.main { padding: 22px 16px 60px; }
	.grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
	.login-wrap { grid-template-columns: 1fr; }
	.login-art { display: none; }
	h1 { font-size: 28px; }
	.kv { grid-template-columns: 1fr; }
}

/* ---------- research library ---------- */
.library-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lib-tile { display: block; text-decoration: none; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease); }
.lib-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: inherit; }
.lib-tile strong { font-weight: 500; font-size: 15px; }
.lib-tile.empty-tile { background: transparent; border-style: dashed; pointer-events: none; }
.verified { color: var(--dark-green); font-weight: 500; }
.verified.low { color: var(--warn); }
@media (max-width: 800px) { .library-grid { grid-template-columns: 1fr; } }

/* ---------- report view ---------- */
.report-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--fg-2); margin-top: 12px; }
.verify-card .big { font: 400 40px/1 var(--serif); }
.verify-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--muted-bg); margin: 12px 0 8px; }
.verify-bar span { display: block; height: 100%; }
.verify-bar .s { background: var(--dark-green); }
.verify-bar .p { background: #c08a2c; }
.verify-bar .u { background: var(--brand-red); }
.verify-bar .x { background: var(--neutral-300, #b4b5b4); }
.claim { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.claim:last-child { border-bottom: 0; }
.claim .note { color: var(--fg-3); font-size: 12.5px; margin-top: 3px; }
.claim.removed .ctext { text-decoration: line-through; color: var(--fg-3); }
.sources-list { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.sources-list li { padding: 7px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 30px 1fr; gap: 6px; }
.sources-list li:target { background: rgba(190, 46, 43, 0.06); }
.sources-list .n { color: var(--brand-red); font-weight: 500; }
.sources-list a { text-decoration: none; word-break: break-word; }
.bottom-line { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--fg-1); border-left: 3px solid var(--brand-red); padding-left: 18px; margin: 0 0 22px; }
.keypoints { margin: 0; padding-left: 18px; }
.keypoints li { margin-bottom: 6px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.filter-chips button { border: 1px solid var(--border-strong); background: transparent; border-radius: 99px; padding: 3px 10px; font: 12px var(--sans); cursor: pointer; }
.filter-chips button.on { background: var(--rich-black); color: #fff; border-color: var(--rich-black); }
.grid > .card + .card, .grid > .card, .split > .card + .card { margin-top: 0; }
.stat .value, .verify-card .big, h1, h2 { font-variant-numeric: lining-nums; }
.prose > blockquote:first-child { font-family: var(--serif); font-size: 19px; line-height: 1.5; color: var(--fg-1); margin: 0 0 22px; padding: 0 0 0 18px; }
.prose > blockquote:first-child p { margin: 0; }

/* ---------- monitoring ---------- */
.sig { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 600 13px/1 var(--sans); background: var(--muted-bg); color: var(--fg-2); flex: none; }
.sig-3 { background: var(--info-bg); color: var(--info); }
.sig-4 { background: var(--warn-bg); color: var(--warn); }
.sig-5 { background: var(--brand-red); color: #fff; }
.headline { padding: 16px 0; border-bottom: 1px solid var(--border); }
.headline:last-child { border-bottom: 0; }
.headline-title { font: 400 19px/1.3 var(--serif); text-decoration: none; }

/* ---------- chat ---------- */
.bubble { border-radius: 14px; padding: 14px 18px; max-width: 100%; }
.bubble.user { background: var(--rich-black); color: #fff; align-self: flex-end; margin-left: 15%; white-space: pre-wrap; }
.bubble.assistant { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.bubble .prose { font-size: 15.5px; }
.stream-text { white-space: pre-wrap; font-size: 15.5px; line-height: 1.65; }
#thread { display: flex; flex-direction: column; }
.refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.refs a { text-decoration: none; background: var(--surface-2); border-radius: 6px; padding: 3px 8px; color: var(--fg-2); }
.refs .n { color: var(--brand-red); font-weight: 600; }

/* ---------- notes ---------- */
.note-btn { position: absolute; z-index: 50; background: var(--rich-black); color: #fff; border: 0; border-radius: 99px; padding: 7px 14px; font: 500 13px var(--sans); cursor: pointer; box-shadow: var(--shadow-hover); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--rich-black); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; z-index: 60; box-shadow: var(--shadow-hover); }

/* ---------- planner ---------- */
.plan-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; align-items: start; }
.plan-nav { position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 10px; }
.plan-group { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); padding: 10px 10px 4px; }
.plan-step { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 7px; text-decoration: none; font-size: 14px; color: var(--fg-2); }
.plan-step:hover { background: var(--surface-2); color: var(--fg-1); }
.plan-step.current { background: var(--rich-black); color: #fff; }
.plan-step .dot { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-size: 11px; }
.plan-step.ready .dot { background: var(--dark-green); border-color: var(--dark-green); color: #fff; }
.plan-step.running .dot { border-color: var(--dark-blue); animation: pulse 1.4s ease-in-out infinite; }
.plan-step.awaiting_pick .dot { background: var(--warn-bg); border-color: var(--warn); color: var(--warn); }
.plan-step.failed .dot { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.plan-step.stale .dot { border-color: var(--warn); color: var(--warn); }
.plan-step.current .dot { border-color: rgba(255,255,255,.5); }
.help-bubble { border-left: 3px solid var(--brand-red); padding: 4px 0 4px 14px; color: var(--fg-2); margin-bottom: 18px; }
.option-grid { display: grid; gap: 10px; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; background: var(--white); }
.option:hover { border-color: var(--rich-black); }
.option.chosen { border-color: var(--dark-green); box-shadow: inset 3px 0 0 var(--dark-green); }
.option.static { cursor: default; margin-bottom: 8px; }
.option input { margin-top: 4px; }
.option strong { font-weight: 500; }
.tag.rec { background: var(--ok-bg); color: var(--ok); }
.researching .bar { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--muted-bg) 0%, var(--brand-red) 50%, var(--muted-bg) 100%); background-size: 200% 100%; animation: sweep 1.6s linear infinite; margin: 8px 0 12px; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.prose.streaming { opacity: .92; }
.final-section + .final-section { border-top: 1px solid var(--border); margin-top: 26px; padding-top: 6px; }
@media (max-width: 900px) { .plan-layout { grid-template-columns: 1fr; } .plan-nav { position: static; } }
.bars { display: flex; flex-direction: column; gap: 4px; }
.bar-row { display: grid; grid-template-columns: 46px 1fr 64px; gap: 8px; align-items: center; }
.bar-row .bar { height: 10px; background: var(--muted-bg); border-radius: 99px; overflow: hidden; }
.bar-row .bar span { display: block; height: 100%; background: var(--rich-black); border-radius: 99px; }
.center { text-align: center; }

/* ---- Fact checks: marks in the report, the claim panel, the review queue ---- */
.cm { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; cursor: pointer; border-radius: 3px; transition: background .15s; }
.cm-supported, .cm-corrected { text-decoration-color: rgba(49, 90, 73, 0.45); }
.cm-confirmed { text-decoration-color: rgba(41, 37, 78, 0.6); }
.cm-unchecked { text-decoration-color: #c08a2c; text-decoration-style: dotted; background: rgba(192, 138, 44, 0.08); }
.cm-flagged { text-decoration-color: var(--brand-red); text-decoration-style: wavy; background: rgba(190, 46, 43, 0.07); }
.cm:hover, .cm.active { background: rgba(255, 214, 0, 0.32); }
.ck { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; font: 700 10px/1 var(--sans); border: 0; padding: 0; margin: 0 1px 0 3px; vertical-align: 2px; cursor: pointer; color: #fff; flex: none; }
.ck-supported, .ck-corrected { background: var(--dark-green); }
.ck-confirmed { background: var(--dark-blue); }
.ck-unchecked { background: #c08a2c; }
.ck-flagged { background: var(--brand-red); }
.ck-removed { background: var(--fg-3); }
.ck.active { box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.6); }
.checks-off .prose .cm { text-decoration: none; background: none; cursor: auto; }
.checks-off .prose .ck { display: none; }
.checks-toggle { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.checks-toggle label { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; cursor: pointer; }
.checks-toggle .ck { cursor: default; vertical-align: 1px; }

.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100vw); background: var(--surface); box-shadow: -14px 0 40px rgba(26, 25, 25, 0.14); transform: translateX(105%); transition: transform .28s var(--ease); z-index: 60; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 1px solid var(--border); }
.drawer-body { overflow-y: auto; padding: 18px 22px 48px; flex: 1; }

.claim-detail .cd-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.cd-claim { font: 400 19px/1.45 var(--serif); margin: 12px 0 6px; padding: 0; border: 0; }
.cd-h { font: 600 11.5px var(--sans); letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-3); margin: 20px 0 6px; }
.cd-verdict { margin: 0 0 6px; }
.mark-pill { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.mp-supported, .mp-corrected { background: var(--ok-bg); color: var(--ok); }
.mp-confirmed { background: rgba(41, 37, 78, 0.10); color: var(--dark-blue); }
.mp-unchecked { background: var(--warn-bg); color: var(--warn); }
.mp-flagged { background: var(--bad-bg); color: var(--bad); }
.ev { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin: 10px 0; background: var(--bg); }
.ev-head { display: grid; grid-template-columns: 26px 1fr; gap: 6px; font-size: 14px; line-height: 1.4; }
.ev-head .n { font: 600 12px var(--sans); color: var(--brand-red); padding-top: 2px; }
.ev-quote { margin: 10px 0 4px; padding: 8px 12px; background: rgba(255, 214, 0, 0.22); border-left: 3px solid #e0a800; border-radius: 0 4px 4px 0; font-size: 14px; line-height: 1.5; }
.ev-meta { margin-bottom: 8px; }
.proof { margin: 14px 0 0; }
.proof img { width: 100%; display: block; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); }
.proof figcaption { margin-top: 6px; }
.cd-raw { margin-top: 12px; }
.cd-raw summary { cursor: pointer; color: var(--fg-2); }
.cd-raw pre { white-space: pre-wrap; font: 12px/1.5 var(--mono); max-height: 280px; overflow: auto; background: var(--surface-2); padding: 10px 12px; border-radius: var(--radius-sm); }
.cd-form textarea, .cd-fix textarea { width: 100%; box-sizing: border-box; font: 14px/1.45 var(--sans); padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); resize: vertical; }
.cd-actions { gap: 8px; margin: 8px 0 4px; }
.cd-fix { margin-top: 8px; }
.cd-fix summary { cursor: pointer; color: var(--fg-2); margin-bottom: 6px; }
.cd-fix .row { gap: 8px; margin: 6px 0; }
.btn.ok-btn { background: var(--dark-green); }
.btn.ok-btn:hover { background: #24453a; }
.cd-recheck { display: flex; gap: 6px 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.cd-reviewed { background: var(--surface-2); padding: 8px 10px; border-radius: var(--radius-sm); }
.cd-nav { margin-top: 20px; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }

.claim-row { display: flex; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 9px 0; font: 13.5px/1.45 var(--sans); color: var(--fg-1); cursor: pointer; }
.claim-row:last-child { border-bottom: 0; }
.claim-row:hover .ctext, .claim-row.active .ctext { color: var(--brand-red); }
.claim-row .ck { margin-top: 2px; }
.struck { text-decoration: line-through; color: var(--fg-3); }

.verify-bar .c { background: var(--dark-blue); }
.verify-bar .x { background: #c08a2c; }
.verify-legend { list-style: none; padding: 0; margin: 4px 0 8px; }
.verify-legend li { display: flex; gap: 8px; align-items: center; padding: 2px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.s { background: var(--dark-green); } .dot.c { background: var(--dark-blue); } .dot.x { background: #c08a2c; } .dot.u { background: var(--brand-red); }
.stack-sm { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.stack-sm form { margin: 0; }
.review-card { max-width: 780px; }
.review-progress { margin-bottom: 16px; max-width: 780px; box-sizing: border-box; }
kbd { font: 11px var(--mono); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--surface); }
@media (max-width: 720px) { .drawer { width: 100vw; } }

/* ---- Report tabs: short version / full report ---- */
.report-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 99px; margin-bottom: 18px; }
.report-tabs button { border: 0; background: transparent; border-radius: 99px; padding: 7px 16px; font: 500 13.5px var(--sans); color: var(--fg-2); cursor: pointer; }
.report-tabs button.on { background: var(--surface); color: var(--fg-1); box-shadow: 0 1px 3px rgba(26, 25, 25, 0.12); }
.short-meta { margin-bottom: 14px; }
.short-prose { font-size: 17px; line-height: 1.65; max-width: 640px; }
.short-prose h2 { font-size: 20px; margin-top: 22px; }
.short-prose ul { padding-left: 20px; }
.short-prose li { margin-bottom: 8px; }
.cm-client { text-decoration-color: rgba(106, 76, 147, 0.6); text-decoration-style: dashed; }
.ck-client { background: #6a4c93; }
.mp-client { background: rgba(106, 76, 147, 0.10); color: #6a4c93; }
.verify-bar .k { background: #6a4c93; }
.dot.k { background: #6a4c93; }

/* ---- Your information ---- */
.add-input { border-top: 1px solid var(--border); padding-top: 14px; margin: 10px 0 14px; }
.add-input textarea { width: 100%; box-sizing: border-box; }
.weight-field input[type=range] { width: 100%; accent-color: var(--brand-red); }
.weight-field output { font-weight: 600; margin-left: 6px; }
.trust-chip { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 99px; background: rgba(106, 76, 147, 0.10); color: #6a4c93; white-space: nowrap; }
.inputs-list li { align-items: flex-start; }
table.points { width: 100%; border-collapse: collapse; font-size: 14px; }
table.points th { text-align: left; font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); padding: 6px 8px; border-bottom: 1px solid var(--border-strong); }
table.points td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.points tr.unused td { opacity: 0.55; }
.relbar { width: 70px; height: 6px; background: var(--muted-bg); border-radius: 99px; overflow: hidden; margin: 6px 0 3px; }
.relbar span { display: block; height: 100%; background: #6a4c93; }
.res { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.res-agrees { background: var(--ok-bg); color: var(--ok); }
.res-conflicts { background: var(--bad-bg); color: var(--bad); }
.res-not_covered { background: var(--muted-bg); color: var(--fg-2); }
pre.input-text { white-space: pre-wrap; font: 13px/1.55 var(--sans); max-height: 480px; overflow: auto; }

/* =============================================================================================
   RCG 2026 identity (~/RCG 2026 Design Identity Guide): white field, rich-black ink, hairlines,
   sharp cards, pill buttons and badges, no shadows or gradients, red used sparingly, Freight Big Pro
   uppercase for display, Helvetica Neue for everything else. Data-viz colours use the brand tints.
   ============================================================================================= */
@font-face { font-family: "Freight Big Pro"; src: url("/static/brand/fonts/FreightBigPro-Book.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Freight Big Pro"; src: url("/static/brand/fonts/FreightBigPro-BookItalic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Helvetica Neue"; src: local("Helvetica Neue Light"), local("HelveticaNeue-Light"), url("/static/brand/fonts/HelveticaNeue-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Helvetica Neue"; src: local("Helvetica Neue"), local("HelveticaNeue"), url("/static/brand/fonts/HelveticaNeue-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Helvetica Neue"; src: local("Helvetica Neue Medium"), local("HelveticaNeue-Medium"), url("/static/brand/fonts/HelveticaNeue-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Helvetica Neue"; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), url("/static/brand/fonts/HelveticaNeue-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
	--serif: "Freight Big Pro", Georgia, "Times New Roman", serif;
	--sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--paper: #FFFFFE;
	--paper-elevated: #FFFFFE;
	--paper-muted: #F7F5F2;
	--bg: #FFFFFE;
	--surface: #FFFFFE;
	--surface-2: #F7F5F2;
	--fg-2: #5B5C5B;
	--fg-3: #9F9F9E;
	--border: #E4E4E3;          /* soft dividers inside cards */
	--border-strong: #CBCCCB;
	--rule: #1A1919;            /* the hairline */
	--shadow: none;
	--shadow-hover: none;
	--radius: 0;
	--radius-sm: 0;
	--ease: cubic-bezier(0.2, 0, 0, 1);
	--ok: #315A49; --ok-bg: transparent;
	--info: #29254E; --info-bg: transparent;
	--bad: #BE2E2B; --bad-bg: transparent;
	--warn: #CE6A52; --warn-bg: transparent;
	--muted-bg: #F7F5F2;
	--need: #DA8E73;            /* red-200: needs a person */
	--client: #767495;          /* blue-200: from the client's information */
}
body { background: var(--bg); font-feature-settings: "lnum" 1; letter-spacing: -0.005em; }
a:hover { color: inherit; text-decoration: underline; }

/* display: Freight Big Pro, uppercase, tight */
.page-head h1, .login-title { font: 400 46px/0.92 var(--serif); text-transform: uppercase; letter-spacing: -0.035em; }
h2, h3 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
.eyebrow { font: 700 10.5px/1.4 var(--sans); letter-spacing: 0.06em; color: var(--fg-2); }
.prose h2 { font: 500 21px/1.3 var(--sans); margin-top: 1.6em; }
.prose h3 { font: 700 15px/1.4 var(--sans); }
.big, .stat .value { font-family: var(--sans); }

/* sidebar: rich-black field, the white lockup, one red rule for the active item */
.sidebar { padding: 26px 16px 22px; }
.brand { flex-direction: column; align-items: flex-start; gap: 12px; padding: 2px 10px 26px; }
.brand-logo { width: 176px; height: auto; display: block; }
.brand-product { font: 700 10.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-on-dark); padding-left: 1px; }
.brand-product span { color: var(--fg-on-dark-2); font-weight: 400; letter-spacing: 0.08em; }
.nav-item { border-radius: 0; font-weight: 500; }
.nav-item:hover { background: transparent; color: var(--white); text-decoration: none; }
.nav-item.active { background: transparent; color: var(--white); box-shadow: inset 2px 0 0 var(--brand-red); }
.sidebar-foot { border-top: 1px solid rgba(255, 255, 254, 0.18); }

/* surfaces: sharp, hairline, no shadow */
.card, .stat { border: 1px solid var(--rule); border-radius: 0; box-shadow: none; }
.card { padding: 28px 32px; }
.card + .card { margin-top: 24px; }
.split { gap: 24px; }
.stack > * + * { margin-top: 24px; }
.meter, .meter > span, .verify-bar, .relbar { border-radius: 0; }

/* buttons: pills; black field by default, invert on hover; no red system controls */
.btn { border-radius: 999px; min-height: 36px; padding: 0 18px; font: 500 14px/1 var(--sans); background: var(--rich-black); color: var(--white);
	border: 1.1px solid var(--rich-black); transition: background 120ms var(--ease), color 120ms var(--ease); }
.btn:hover { background: var(--white); color: var(--rich-black); text-decoration: none; }
.btn:active { transform: none; opacity: 0.92; }
.btn.red, .btn.ok-btn { background: var(--rich-black); border-color: var(--rich-black); }
.btn.red:hover, .btn.ok-btn:hover { background: var(--white); color: var(--rich-black); }
.btn.ghost { background: var(--white); color: var(--rich-black); border-color: var(--rich-black); }
.btn.ghost:hover { background: var(--rich-black); color: var(--white); }
.btn.small { min-height: 30px; padding: 0 14px; font-size: 13px; }
.btn.link { min-height: 0; border: 0; padding: 0; background: none; color: var(--fg-2); }
.btn.link:hover { background: none; color: var(--rich-black); }

/* fields: sharp, hairline, a quiet inset on focus */
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea { border-radius: 0; border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--rich-black); box-shadow: inset 0 0 0 1px var(--rich-black); }

/* tables */
.table th, table.points th { font: 700 10.5px/1.4 var(--sans); letter-spacing: 0.06em; color: var(--fg-2); border-bottom: 1px solid var(--rule); }

/* badges: pills, bold uppercase, a hairline in the status colour, no tinted fill */
.pill, .mark-pill, .res, .trust-chip { border-radius: 999px; min-height: 21px; padding: 0 10px; font: 700 10px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.03em;
	background: var(--white); color: var(--rich-black); border: 1.1px solid currentColor; display: inline-flex; align-items: center; }
.pill.ok, .mp-supported, .mp-corrected, .res-agrees { color: var(--ok); background: var(--white); }
.pill.info, .mp-confirmed { color: var(--info); background: var(--white); }
.pill.bad, .mp-flagged, .res-conflicts { color: var(--bad); background: var(--white); }
.pill.warn, .mp-unchecked { color: #B0563F; background: var(--white); }
.mp-client, .trust-chip { color: var(--client); background: var(--white); }
.res-not_covered { color: var(--fg-2); background: var(--white); }
.tag { border-radius: 999px; background: var(--white); border: 1px solid var(--border-strong); font: 500 11px/1.6 var(--sans); padding: 0 8px; }

/* notices and flashes: flat fields */
.flash { border-radius: 0; }
.notice { border-radius: 0; background: var(--surface-2); border-left: 2px solid var(--rich-black); }
.notice.red { background: var(--surface-2); border-left-color: var(--brand-red); }
.notice.green { background: var(--surface-2); border-left-color: var(--dark-green); }
.secret-box { border-radius: 0; }

/* fact-check colours on the brand palette */
.ck-supported, .ck-corrected, .dot.s, .verify-bar .s { background: var(--dark-green); }
.ck-confirmed, .dot.c, .verify-bar .c { background: var(--dark-blue); }
.ck-unchecked, .dot.x, .verify-bar .x { background: var(--need); }
.ck-flagged, .dot.u, .verify-bar .u { background: var(--brand-red); }
.ck-client, .dot.k, .verify-bar .k, .relbar span { background: var(--client); }
.cm-unchecked { text-decoration-color: var(--need); background: rgba(218, 142, 115, 0.10); }
.cm-client { text-decoration-color: var(--client); }
.cm-confirmed { text-decoration-color: rgba(41, 37, 78, 0.6); }
.ev { border-radius: 0; background: var(--white); border-color: var(--border-strong); }
.ev-quote { border-radius: 0; background: #F7F5F2; border-left: 2px solid var(--rich-black); }
.drawer { box-shadow: none; border-left: 1px solid var(--rule); transition: transform 200ms var(--ease); }
.drawer-bar { border-bottom: 1px solid var(--rule); }
.proof img { border-radius: 0; border-color: var(--rule); }
.report-tabs { border-radius: 999px; background: var(--white); border: 1.1px solid var(--rich-black); padding: 3px; }
.report-tabs button { border-radius: 999px; }
.report-tabs button.on { background: var(--rich-black); color: var(--white); box-shadow: none; }
.report-tabs button.on .muted { color: rgba(255, 255, 254, 0.62); }
.bottom-line { border-left: 2px solid var(--brand-red); }
.cd-reviewed, .cd-raw pre { border-radius: 0; }

/* sign-in: a red cover panel (46%) beside a white field (54%) */
.signin { display: grid; grid-template-columns: 46fr 54fr; min-height: 100vh; }
.signin-cover { background: var(--brand-red); color: var(--white); padding: 56px 56px 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.signin-logo { width: 260px; max-width: 100%; height: auto; display: block; }
.signin-title { font: 400 clamp(72px, 11vw, 148px)/0.82 var(--serif); text-transform: uppercase; letter-spacing: -0.05em; margin: 0; color: var(--white); }
.signin-rule { border: 0; border-top: 1px solid var(--white); width: 90%; margin: 18px 0 16px; }
.signin-line { font: 300 italic 18px/1.45 var(--sans); max-width: 420px; margin: 0; }
.signin-form { display: grid; place-items: center; padding: 48px 24px; background: var(--white); }
.signin-box { width: 100%; max-width: 380px; }
@media (max-width: 820px) { .signin { grid-template-columns: 1fr; } .signin-cover { padding: 36px 24px; } }

/* =============================================================================================
   Phones and small tablets: a compact top bar with the logo and a Menu button, everything in one
   column, 44px tap targets, nothing wider than the screen.
   ============================================================================================= */
.menu-btn { display: none; }
.shell > *, .split > *, .grid > * { min-width: 0; }
.stat .value { font: 300 34px/1.1 var(--sans); letter-spacing: -0.02em; }
.verify-card .big { font: 300 44px/1 var(--sans); letter-spacing: -0.03em; }
img, svg, video { max-width: 100%; }
.prose { overflow-wrap: anywhere; }
.prose table, .card table { display: block; max-width: 100%; overflow-x: auto; }

@media (max-width: 860px) {
	.shell { grid-template-columns: 1fr; }
	.sidebar { position: sticky; top: 0; z-index: 50; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
		padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); gap: 0; }
	.brand { flex-direction: row; align-items: center; gap: 10px; padding: 0; }
	.brand-logo { width: 132px; }
	.brand-product { display: none; }
	.menu-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 1.1px solid var(--white);
		background: transparent; color: var(--white); font: 500 14px/1 var(--sans); cursor: pointer; }
	.menu-btn[aria-expanded="true"] { background: var(--white); color: var(--rich-black); }
	.nav, .sidebar-foot { display: none; width: 100%; }
	.sidebar.open .nav { display: flex; flex-direction: column; overflow: visible; order: 3; margin-top: 14px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 254, 0.18); }
	.sidebar.open .sidebar-foot { display: block; order: 4; margin-top: 10px; }
	.nav-item { padding: 12px 6px; font-size: 16px; min-height: 44px; }
	.nav-item.active { box-shadow: inset 2px 0 0 var(--brand-red); padding-left: 14px; }
	.main { padding: 20px 16px 72px; padding-bottom: max(72px, env(safe-area-inset-bottom)); }
	.page-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
	.page-head h1 { font-size: 34px; overflow-wrap: anywhere; }
	.actions { width: 100%; }
	.split, .grid.two, .grid.three, .grid.four, .library-grid, .plan-layout { grid-template-columns: 1fr; }
	.card { padding: 20px 18px; }
	.card + .card, .stack > * + * { margin-top: 16px; }
	.card-head { flex-wrap: wrap; }
	.btn { min-height: 44px; }
	.btn.small { min-height: 38px; }
	.btn.link { min-height: 0; }
	input, select, textarea { font-size: 16px; } /* stops iOS zooming into fields */
	.list li { flex-wrap: wrap; gap: 6px 12px; }
	.report-tabs { display: flex; width: 100%; }
	.report-tabs button { flex: 1; padding: 9px 8px; }
	.checks-toggle .muted { display: none; }
	.prose { font-size: 16px; }
	.ck { width: 20px; height: 20px; font-size: 11px; }
	.drawer { width: 100vw; border-left: 0; }
	.drawer-body { padding: 16px 16px 48px; padding-bottom: max(48px, env(safe-area-inset-bottom)); }
	.cd-actions .btn { flex: 1; justify-content: center; }
	.review-card, .review-progress { max-width: none; }
	.table th, .table td { padding: 10px 8px; }
	table.points thead { display: none; }
	table.points, table.points tbody, table.points tr, table.points td { display: block; width: 100%; }
	table.points tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
	table.points td { border: 0; padding: 4px 0; }
	.signin-cover { gap: 28px; }
	.signin-title { font-size: 72px; }
	kbd { display: none; }
}

/* tables keep whole columns (and scroll sideways on small screens); quotes use lining figures */
.prose table, .card table { display: block; width: max-content; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { overflow-wrap: normal; word-break: normal; white-space: nowrap; }
.bottom-line, .cd-claim { font-family: var(--sans); font-weight: 300; letter-spacing: -0.01em; }
.bottom-line { font-size: 19px; line-height: 1.5; }
.cd-claim { font-size: 18px; }
@media (max-width: 860px) { .report-tabs .muted { display: none; } .bottom-line { font-size: 17px; } }
.prose blockquote { font-family: var(--sans); font-weight: 300; font-size: 19px; line-height: 1.5; letter-spacing: -0.01em; }
@media (max-width: 860px) { .prose blockquote { font-size: 17px; } }
.prose > blockquote:first-child, .headline-title { font-family: var(--sans); font-weight: 300; letter-spacing: -0.01em; }
.headline-title { font-weight: 500; font-size: 17px; }
.sources-mini { list-style: none; margin: 0; padding: 0; }
.sources-mini > li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sources-mini > li:first-child { padding-top: 0; }
.sources-mini > li:last-child { border-bottom: 0; padding-bottom: 0; }
.plain-list { list-style: none; padding: 0; margin: 8px 0 0; }
.plain-list li { padding: 3px 0; }

/* ---- Add information: drag-and-drop zone ---- */
.dropzone { position: relative; border: 1.1px dashed var(--rich-black); padding: 18px; margin-bottom: 16px; background: var(--white); transition: background 120ms var(--ease); }
.dropzone.over { background: var(--surface-2); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone label { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; pointer-events: none; }
.dropzone .linkish { text-decoration: underline; }
.dz-list { list-style: none; margin: 10px 0 0; padding: 0; }
.dz-list li { padding: 3px 0; border-top: 1px solid var(--border); }
.discovery { border-top: 1px solid var(--rule); margin-top: 18px; padding-top: 18px; }
.discovery h3 { margin-bottom: 6px; }
.more-details summary { cursor: pointer; color: var(--fg-2); }
details.advanced > summary { cursor: pointer; list-style: none; }
details.advanced > summary::-webkit-details-marker { display: none; }
.install-steps li { padding: 4px 0; }

/* Printing a page (Cmd+P): just the content, on white. For a designed document, use the PDF buttons. */
@media print {
	.sidebar, .menu-btn, .actions, .btn, form, .crumbs, .notice, [data-menu], .tabs { display: none !important; }
	.shell { display: block !important; }
	.main { margin: 0 !important; padding: 0 !important; max-width: none !important; }
	body, .card { background: #fff !important; box-shadow: none !important; }
	.card { border: 0 !important; padding: 0 !important; break-inside: avoid; }
	a { color: inherit !important; text-decoration: none !important; }
	h1, h2, h3 { break-after: avoid; }
	li, tr, blockquote { break-inside: avoid; }
}

/* =============================================================================================
   Fit and wrap (Nov 2026 review): nothing is cut off, and a phone never scrolls the whole page sideways
   ============================================================================================= */
/* Tables the models write: cells wrap inside the page. On a phone a wide one scrolls inside its own box. */
.prose table { display: table; width: 100%; max-width: 100%; table-layout: auto; border-collapse: collapse; }
.prose th, .prose td { white-space: normal; overflow-wrap: break-word; word-break: normal; min-width: 6.5em; vertical-align: top; padding: 8px 10px 8px 0; text-align: left; }
.prose th { border-bottom: 1px solid var(--border-strong); font-weight: 500; }
.prose td { border-bottom: 1px solid var(--border); }
/* List tables fill their card */
.card table.table, .card table.points { display: table; width: 100%; }
/* Long file names, addresses and titles break instead of sticking out of their card */
.card, .list li, .page-head, .flash, .notice { overflow-wrap: anywhere; }
input[type=checkbox], input[type=radio] { width: auto; flex: none; margin: 0 8px 0 0; }
label.row { align-items: flex-start; flex-wrap: nowrap; }
@media (max-width: 700px) {
	.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.prose th, .prose td { min-width: 9em; }
	.btn { white-space: normal; text-align: center; height: auto; min-height: 40px; }
	/* List tables become stacked rows: the title, then each detail on its own line, buttons last */
	.card table.table:not(.keep) { display: block; }
	.table:not(.keep) thead { display: none; }
	.table:not(.keep) tbody, .table:not(.keep) tr, .table:not(.keep) td { display: block; width: 100%; }
	.table:not(.keep) tr { padding: 12px 0; border-bottom: 1px solid var(--border); }
	.table:not(.keep) tr:last-child { border-bottom: 0; }
	.table:not(.keep) td { border: 0; padding: 2px 0; text-align: left !important; }
	.table:not(.keep) td.right, .table:not(.keep) td.num { text-align: left !important; }
	.table.keep { font-size: 13px; }
}
/* Plan pages: a wide table inside a section must not stretch the whole page on a phone */
.plan-layout > * { min-width: 0; }
@media (max-width: 900px) { .plan-layout { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================================================
   Editing a document by hand (radar/web/ui_edit.py, the last part of radar.js). Quiet until the Edit
   switch is on: then each paragraph, heading and bullet shows Edit / Remove / Add below when you point
   at it or tab to it, and all the time on a touch screen.
   ============================================================================================= */
.de-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 12px; min-height: 24px; }
.de-switch { display: inline-flex; align-items: center; font-weight: 500; cursor: pointer; white-space: nowrap; }
.de-switch input { accent-color: var(--rich-black); }
.de-help { display: none; flex: 1 1 260px; }
.de-bar.on .de-help { display: inline; }
.de-help-touch { display: none; }
.de-msg { color: var(--fg-1); }
.de-msg:empty { display: none; }
.de-msg.de-bad, .de-err { color: var(--brand-red); }
.de-msg .btn, .de-err .btn { margin-left: 8px; color: var(--rich-black); }
.de-changes { margin-left: auto; position: relative; }
.de-changes summary { color: var(--fg-2); white-space: nowrap; }
.de-changes[open] { flex-basis: 100%; }
.de-changes ol { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.de-changes li { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--border); }
.de-changes li.undone > span:first-child { text-decoration: line-through; color: var(--fg-3); }
.de-changes strong { font-weight: 500; }
.de-snip { color: var(--fg-2); }
.de-page-bar { padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.de-bar-quiet { margin: 0; min-height: 0; }  /* a section under a page-wide switch: no bar of its own unless it has something to say */
.de-bar-quiet > * { margin-bottom: 10px; }
.de-undo { display: none; align-items: center; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 8px 12px; margin: 0 0 14px; background: var(--surface-2); border-left: 2px solid var(--rich-black); }
.doc-edit.on > .de-undo { display: flex; }
/* right after a change, Undo stays in reach at the foot of the window, wherever in the document the person is */
.de-undo.de-fresh { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 55; width: max-content; max-width: calc(100vw - 32px);
	margin: 0; padding: 10px 12px 10px 18px; flex-wrap: nowrap; background: var(--rich-black); color: var(--white); border: 0; }
.de-undo.de-fresh .btn { background: var(--rich-black); color: var(--white); border-color: var(--white); flex: none; }
.de-undo.de-fresh .btn:hover { background: var(--white); color: var(--rich-black); }
body.de-editing .de-undo.de-fresh { display: none; }  /* never over the Save button of an open edit box */
.de-top { display: none; margin: 0 0 10px; }
.doc-edit.on > .de-top { display: block; }
.de-note { margin: 14px 0 0; }
.doc-edit.de-busy { cursor: progress; }
.doc-edit.de-busy .de-btn, .doc-edit.de-busy .btn { pointer-events: none; opacity: 0.5; }

/* the three small controls on a passage */
.de-btn { font: 500 12px/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--rich-black); background: var(--white); border: 1px solid var(--border-strong);
	padding: 5px 9px; min-height: 24px; cursor: pointer; white-space: nowrap; border-radius: 0; }
.de-btn:hover, .de-btn:focus-visible { background: var(--rich-black); color: var(--white); border-color: var(--rich-black); outline: none; }
.de-b { position: relative; outline: 1px solid transparent; outline-offset: 5px; }
.de-b.de-hidden { display: none; }
li.de-b { outline-offset: 3px; }
.de-wrap { margin: 1em 0; }
.de-wrap > table, .de-wrap > pre, .de-wrap > hr { margin-top: 0; margin-bottom: 0; }
.de-wrap > hr { margin: 12px 0; }
.de-tools { position: absolute; right: -22px; bottom: 100%; margin-bottom: 4px; z-index: 5; display: flex; gap: 0; visibility: hidden; user-select: none; -webkit-user-select: none; }
.de-tools .de-btn + .de-btn { border-left: 0; }
.de-b:hover, .de-b:focus-visible, .de-b:focus-within { outline-color: var(--border-strong); }
.de-b:focus-visible { outline: 1px solid var(--rich-black); }
.de-b:focus { outline-offset: 5px; }
/* a short wait before they show, so sweeping the pointer down a page does not flash them */
.de-b:hover > .de-tools { visibility: visible; transition: visibility 0s linear 0.12s; }
.de-b:focus-visible > .de-tools, .de-b > .de-tools:focus-within { visibility: visible; }

/* the edit box */
.de-editor { margin: 0 0 1em; list-style: none; }
li.de-editor { margin: 6px 0 10px; }
.de-text { display: block; width: 100%; min-height: 76px; font: 15px/1.55 var(--sans); padding: 10px 12px; border: 1px solid var(--rich-black); border-radius: 0; background: var(--white); color: var(--fg-1); resize: vertical; }
.de-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 8px; }
.de-hint { flex: 1 1 220px; }
.de-as { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.de-as label { display: inline-flex; align-items: center; cursor: pointer; }
.de-err { margin-top: 6px; }
.de-err:empty { display: none; }
.de-kept { margin: 0 0 16px; padding: 12px 14px; background: var(--surface-2); border-left: 2px solid var(--brand-red); }
.de-kept .btn { margin-top: 8px; }

/* touch screens and narrow windows: the controls sit under each passage, always there */
@media (hover: none), (pointer: coarse), (max-width: 860px) {
	.de-help-point { display: none; }
	.de-help-touch { display: inline; }
	.de-bar.on .de-help { flex-basis: 100%; }
	.de-editor .btn:not(.ghost):hover { background: var(--rich-black); color: var(--white); }  /* a tap must not leave Save looking like Cancel */
	.de-tools { position: static; visibility: visible; margin: 6px 0 2px; }
	.de-btn { min-height: 34px; padding: 8px 12px; font-size: 13px; }
	.de-b { outline: none; }
	.doc-edit.on .de-b { padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
	.doc-edit.on li.de-b { margin-bottom: 10px; }
	.de-keys { display: none; }
	.de-row .btn { flex: 0 0 auto; }
	.de-changes { margin-left: 0; }
}
@media print {
	.de-bar, .de-undo, .de-top, .de-tools, .de-editor, .de-kept { display: none !important; }
	.de-b.de-hidden { display: revert !important; }
}
