:root {
	color-scheme: light;
	font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	background: #f6f7f9;
	color: #17202a;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: #f6f7f9;
}

a {
	color: inherit;
}

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

.top-bar {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #d9dee5;
	background: #ffffff;
	padding: 0 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	background: #245c7c;
	color: #ffffff;
	font-weight: 700;
}

.brand-title,
.brand-subtitle,
.label {
	display: block;
}

.brand-title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
}

.brand-subtitle {
	color: #5f6b7a;
	font-size: 0.85rem;
	line-height: 1.2;
}

.side-nav {
	border-right: 1px solid #d9dee5;
	background: #ffffff;
	padding: 16px 12px;
}

.nav-section + .nav-section {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #edf1f5;
}

.nav-section-title {
	margin: 0 10px 8px;
	color: #687585;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nav-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	border-radius: 6px;
	padding: 8px 10px;
	color: #263240;
	font-weight: 600;
	text-decoration: none;
}

.nav-link:hover,
.nav-link:focus-visible {
	background: #edf3f6;
	outline: none;
}

.nav-link.disabled {
	color: #7f8a97;
	cursor: default;
	pointer-events: none;
}

.nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: #e5eef3;
	color: #245c7c;
	font-size: 0.72rem;
	font-weight: 700;
}

.content {
	padding: 32px;
}

.page-header {
	max-width: 760px;
}

.eyebrow {
	margin: 0 0 8px;
	color: #245c7c;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

h1 {
	margin: 0;
	font-size: 2.25rem;
	line-height: 1.1;
}

h2 {
	margin: 0 0 10px;
	font-size: 1rem;
	line-height: 1.25;
}

.lead {
	margin: 12px 0 0;
	color: #4e5a67;
	font-size: 1.05rem;
	line-height: 1.55;
}

.status-band {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px;
	max-width: 760px;
}

.status-band > div,
.work-card {
	border: 1px solid #d9dee5;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgb(22 31 44 / 6%);
}

.status-band > div {
	padding: 16px;
}

.label {
	margin-bottom: 4px;
	color: #687585;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.work-area {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.work-area.compact {
	margin-top: 0;
}

.control-center-sections {
	display: grid;
	gap: 24px;
	margin-top: 24px;
	max-width: 1120px;
}

.control-section {
	display: grid;
	gap: 16px;
}

.control-section-header {
	max-width: 760px;
}

.control-section-header h2,
.work-card h3 {
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
}

.control-section-header p {
	margin: 10px 0 0;
	color: #5f6b7a;
	line-height: 1.5;
}

.work-card {
	min-height: 132px;
	padding: 20px;
}

.work-card p,
.muted {
	margin: 0;
	color: #5f6b7a;
	line-height: 1.5;
}

.work-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.work-link:hover,
.work-link:focus-visible {
	border-color: #9bb6c5;
	box-shadow: 0 4px 14px rgb(22 31 44 / 10%);
	outline: none;
}

.capture-header {
	max-width: 900px;
}

.capture-toolbar {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 24px;
	max-width: 1120px;
}

.take-control {
	display: grid;
	gap: 6px;
}

.take-control label {
	color: #687585;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.take-control select,
.secondary-button,
.filter-button {
	border: 1px solid #c8d2dc;
	border-radius: 6px;
	background: #ffffff;
	color: #263240;
	font: inherit;
}

.take-control select {
	min-width: 140px;
	height: 40px;
	padding: 0 10px;
}

.secondary-button {
	height: 40px;
	padding: 0 14px;
	font-weight: 700;
	cursor: pointer;
}

.secondary-button:hover:not(:disabled),
.secondary-button:focus-visible,
.filter-button:hover,
.filter-button:focus-visible {
	border-color: #245c7c;
	outline: none;
}

.secondary-button:disabled {
	cursor: default;
	opacity: 0.65;
}

.filter-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(112px, 1fr));
	gap: 10px;
	margin-top: 18px;
	max-width: 1120px;
}

.filter-button {
	display: grid;
	gap: 6px;
	min-height: 72px;
	padding: 10px;
	text-align: left;
	cursor: pointer;
}

.filter-button span {
	color: #4e5a67;
	font-size: 0.82rem;
	font-weight: 700;
}

.filter-button strong {
	font-size: 1.35rem;
	line-height: 1;
}

.filter-button.selected {
	border-color: #245c7c;
	background: #e9f2f6;
}

.state-panel {
	display: grid;
	gap: 6px;
	margin-top: 24px;
	max-width: 1120px;
	border: 1px solid #d9dee5;
	border-radius: 8px;
	background: #ffffff;
	padding: 18px;
	color: #4e5a67;
}

.state-panel.error {
	border-color: #d6907c;
	background: #fff6f2;
	color: #6d2c1c;
}

.capture-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
	max-width: 1120px;
}

.story-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
	max-width: 1120px;
}

.feed-status-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
	max-width: 1120px;
}

.capture-row,
.story-row,
.feed-status-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 18px;
	border: 1px solid #d9dee5;
	border-radius: 8px;
	background: #ffffff;
	padding: 18px;
	box-shadow: 0 1px 2px rgb(22 31 44 / 6%);
}

.capture-main,
.story-main {
	display: grid;
	gap: 8px;
}

.capture-main h2,
.story-main h2 {
	margin: 0;
	font-size: 1.05rem;
}

.capture-main p,
.story-main p {
	margin: 0;
	color: #5f6b7a;
	line-height: 1.45;
}

.capture-main a,
.back-link,
.secondary-link,
.article-row a,
.story-main a {
	width: fit-content;
	color: #245c7c;
	font-weight: 700;
}

.capture-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.capture-kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	color: #687585;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.capture-facts,
.story-metrics {
	display: flex;
	align-content: start;
	align-items: start;
	flex-wrap: wrap;
	gap: 8px;
}

.outcome-pill {
	border-radius: 999px;
	background: #e5eef3;
	padding: 5px 9px;
	color: #245c7c;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: capitalize;
}

.outcome-pill.attention {
	background: #fff1c7;
	color: #765a00;
}

.outcome-pill.material {
	background: #e6f4ea;
	color: #24613c;
}

.story-id {
	flex-basis: 100%;
	min-width: 0;
	color: #687585;
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.78rem;
	overflow-wrap: anywhere;
}

.back-link {
	display: inline-flex;
	margin-bottom: 18px;
	text-decoration: none;
}

.evidence-summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-top: 24px;
	max-width: 1120px;
}

.status-summary {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.evidence-summary > div,
.evidence-panel {
	border: 1px solid #d9dee5;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgb(22 31 44 / 6%);
}

.evidence-summary > div {
	min-width: 0;
	padding: 14px;
}

.evidence-summary strong {
	display: block;
	overflow-wrap: anywhere;
}

.summary-link {
	display: inline-flex;
	margin-top: 8px;
	color: #245c7c;
	font-size: 0.85rem;
	font-weight: 700;
}

.evidence-grid,
.story-evidence {
	display: grid;
	gap: 16px;
	margin-top: 18px;
	max-width: 1120px;
}

.evidence-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-evidence {
	grid-template-columns: 1fr;
}

.evidence-panel {
	display: grid;
	gap: 12px;
	align-content: start;
	padding: 18px;
}

.evidence-panel.wide {
	max-width: 1120px;
}

.evidence-panel h3 {
	margin: 0;
	font-size: 0.9rem;
}

.evidence-panel p {
	margin: 0;
	color: #4e5a67;
	line-height: 1.5;
}

.excerpt {
	border-left: 3px solid #c8d2dc;
	padding-left: 12px;
}

.fact-list {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 8px 12px;
	margin: 0;
}

.fact-list dt {
	color: #687585;
	font-weight: 700;
}

.fact-list dd {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

.mini-section {
	display: grid;
	gap: 8px;
	border-top: 1px solid #d9dee5;
	padding-top: 12px;
}

.metric-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.metric-strip span {
	border-radius: 999px;
	background: #edf3f6;
	padding: 6px 10px;
	color: #245c7c;
	font-size: 0.8rem;
	font-weight: 700;
}

.metric-strip a {
	border-radius: 999px;
	background: #e5eef3;
	padding: 6px 10px;
	color: #245c7c;
	font-size: 0.8rem;
	font-weight: 700;
}

.article-list,
.fact-card-list,
.candidate-list,
.delivery-source-list {
	display: grid;
	gap: 10px;
}

.delivery-source-list {
	margin-top: 8px;
}

.article-row,
.fact-card,
.candidate-card {
	display: grid;
	gap: 6px;
	border: 1px solid #e1e6ec;
	border-radius: 6px;
	padding: 12px;
}

.candidate-card.selected {
	border-color: #c7a54b;
	background: #fffaf0;
}

.candidate-card-header {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 12px;
}

.article-row span,
.fact-card span {
	color: #687585;
	font-size: 0.82rem;
	font-weight: 700;
}

.review-editor {
	margin-top: 18px;
}

.saved-note,
.save-message,
.status-error {
	border-radius: 6px;
	background: #e6f4ea;
	padding: 10px;
	color: #24613c;
}

.save-message.error,
.status-error {
	background: #fff6f2;
	color: #6d2c1c;
}

.review-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.review-form label {
	display: grid;
	gap: 6px;
}

.review-form label > span,
.checkbox-label span {
	color: #687585;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.review-form input,
.review-form select,
.review-form textarea {
	width: 100%;
	border: 1px solid #c8d2dc;
	border-radius: 6px;
	padding: 9px 10px;
	color: #263240;
	font: inherit;
}

.review-form textarea {
	resize: vertical;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
	border-color: #245c7c;
	outline: none;
}

.review-form .span-2 {
	grid-column: 1 / -1;
}

.checkbox-label {
	display: flex !important;
	align-items: center;
	gap: 8px;
	padding-top: 24px;
}

.checkbox-label input {
	width: 18px;
	height: 18px;
}

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

	.top-bar {
		padding: 14px 16px;
	}

	.side-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		border-right: 0;
		border-bottom: 1px solid #d9dee5;
	}

	.content {
		padding: 24px 16px;
	}

	.status-band,
	.work-area,
	.filter-grid,
	.capture-row,
	.feed-status-row,
	.evidence-summary,
	.evidence-grid,
	.review-form {
		grid-template-columns: 1fr;
	}

	.capture-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	h1 {
		font-size: 1.85rem;
	}
}