:root {
	--page-bg: #f6f1e7;
	--panel-bg: #fbf8f1;
	--panel-border: #d8d0c1;
	--text-main: #1f1f1f;
	--text-soft: #5f5a52;
	--link: #5a2f8a;
	--sans: "Segoe UI", Tahoma, Arial, sans-serif;
	--serif: Georgia, "Times New Roman", serif;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

body {
	margin: 0;
	background: var(--page-bg);
	color: var(--text-main);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.45;
}

.content-body-heading {
	font-size: 1.1em;
	font-weight: 700;
	line-height: 1.35;
	margin: 1.25rem 0 0.25rem 0;
}

.content-body-subheading {
	font-size: 1.02em;
	font-weight: 700;
	line-height: 1.35;
	margin: 0.9rem 0 0.05rem 0;
}

	.content-body-heading + p,
	.content-body-subheading + p {
		margin-top: 0;
	}

/* Content.sqlite listing lines for About and Roadmap.
   The current renderer emits each dash item as a separate bare UL.
   Keep the source dash as text. Do not generate bullets. */

.content-body ul,
.content-body ol {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--sans);
	font-size: inherit;
	line-height: inherit;
	color: var(--text-main);
}

.content-body p + ul,
.content-body p + ol {
	margin-top: -0.7rem;
}

.content-body ul + ul,
.content-body ol + ol,
.content-body ul + ol,
.content-body ol + ul {
	margin-top: 0;
}

.content-body ul::before,
.content-body ol::before {
	content: none;
}

.content-body ul + p,
.content-body ol + p {
	margin-top: 0.7rem;
}

/* Reviewer content listing lines.
   About and Roadmap currently render dash lines as direct bare UL elements
   under the readable content panel, not inside a content-body wrapper.
   Restore simple generated bullets for those bare UL lines. */

.panel.reading-width > ul:not(.results-list):not(.roadmap-list) {
	position: relative;
	margin: 0;
	padding: 0 0 0 0.85rem;
	list-style: none;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: var(--text-main);
}

.panel.reading-width > p + ul:not(.results-list):not(.roadmap-list) {
	margin-top: -0.7rem;
}

.panel.reading-width > ul:not(.results-list):not(.roadmap-list) + ul:not(.results-list):not(.roadmap-list) {
	margin-top: 0;
}

.panel.reading-width > ul:not(.results-list):not(.roadmap-list)::before {
	content: "\2022";
	position: absolute;
	left: 0;
	top: 0;
}

.panel.reading-width > ul:not(.results-list):not(.roadmap-list) + p {
	margin-top: 0.7rem;
}

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

main {
	margin: 0;
	padding: 0;
}

.app-shell {
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.25rem 1rem 2rem 1rem;
}

.reading-width {
	max-width: 70ch;
	margin-left: auto;
	margin-right: auto;
}

.panel {
	margin: 0;
	padding: 0.1rem 0;
}

.site-header {
	margin: 0;
	padding: 0.75rem 1rem 0.75rem 1rem;
	border-bottom: 1px solid var(--panel-border);
	background: var(--panel-bg);
}

.site-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.site-header-image {
	display: block;
	width: auto;
	height: 96px;
	max-width: 200px;
	object-fit: contain;
	object-position: center center;
	border: 1px solid var(--panel-border);
	background: #fffdf9;
}

.site-header-copy {
	min-width: 0;
	padding-top: 0;
}

.site-title {
	margin: 0 0 0.2rem 0;
	font-family: var(--serif);
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.2;
}

.site-subline {
	margin: 0 0 0.15rem 0;
	font-size: 1rem;
	line-height: 1.35;
	font-weight: 400;
	color: var(--text-main);
}

	.site-subline:last-child {
		margin-bottom: 0;
	}

.site-tagline {
	max-width: none;
}

.site-utility-nav {
	margin-top: 0.45rem;
	display: flex;
	gap: 0.35rem;
	align-items: center;
	justify-content: flex-end;
	font-size: 0.9rem;
	line-height: 1.3;
}

	.site-utility-nav a {
		text-decoration: none;
	}

		.site-utility-nav a:hover {
			text-decoration: underline;
		}

	.site-utility-nav .button-standard {
		padding: 0.25rem 0.5rem;
		font-size: 0.9rem;
	}

.site-action-strip {
	max-width: 1100px;
	margin: 0.65rem auto 0 auto;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--panel-border);
	background: #fffdf9;
	font-size: 0.95rem;
	line-height: 1.4;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	align-items: center;
}

.site-action-spacer {
	display: none;
}

.site-action-text {
	margin: 0;
	min-width: 0;
	white-space: normal;
	text-align: left;
	grid-column: 1;
}

.site-action-nav {
	display: flex;
	gap: 0.35rem;
	align-items: center;
	justify-content: flex-end;
	white-space: nowrap;
	grid-column: 2;
}

	.site-action-nav a {
		text-decoration: none;
	}

		.site-action-nav a:hover {
			text-decoration: underline;
		}

.site-action-strip .button-standard {
	padding: 0.25rem 0.5rem;
	font-size: 0.9rem;
}

.site-footer {
	max-width: 1100px;
	margin: 1.5rem auto 0 auto;
	padding: 1rem;
	color: var(--text-soft);
	font-size: 0.9rem;
	border-top: 1px solid var(--panel-border);
}

.form-row {
	margin: 0 0 0.85rem 0;
}

	.form-row input {
		display: block;
		width: 100%;
		max-width: 24rem;
		height: 2rem;
		padding: 0.25rem 0.45rem;
		font-family: var(--sans);
		font-size: 1rem;
		line-height: 1.2;
	}

.form-actions {
	margin-top: 1rem;
}

.page-heading {
	margin: 0 0 0.35rem 0;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--text-soft);
	text-transform: none;
	letter-spacing: 0;
}

.field-label {
	display: block;
	margin: 0 0 0.2rem 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-soft);
}

.button-standard,
.button-standard:link,
.button-standard:visited {
	display: inline-block;
	padding: 0.32rem 0.58rem;
	border: 1px solid #bfb7a8;
	background: #efebe2;
	color: var(--link);
	text-decoration: none;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
}

	.button-standard:hover {
		text-decoration: underline;
	}

	.button-standard:disabled {
		opacity: 0.65;
		cursor: not-allowed;
	}

.browse-controls {
	margin: 0 0 1rem 0;
	padding: 0.9rem 1rem;
	border: 1px solid var(--panel-border);
	border-radius: 4px;
	background: var(--panel-bg);
}

.browse-topbar {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin: 0 0 0.6rem 0;
}

.browse-grid {
	display: grid;
	grid-template-columns: minmax(260px, 1.6fr) minmax(180px, 1fr) minmax(180px, 1fr) minmax(150px, 0.8fr);
	gap: 0.75rem 1rem;
	align-items: start;
}

.browse-field {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.browse-field-person {
	position: relative;
	min-width: 0;
}

.browse-field select,
.browse-field input[type="text"] {
	display: block;
	width: 100%;
	margin: 0;
	box-sizing: border-box;
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.2;
	height: 2rem;
}

.browse-field input[type="text"] {
	padding: 0.25rem 0.45rem;
}

.browse-field select:disabled,
.browse-field input:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.browse-actions {
	margin-top: 0.85rem;
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.browse-disabled-note {
	margin: 0.55rem 0 0 0;
	font-size: 0.95rem;
	color: var(--text-soft);
}

/* Alpha writeahead controls */

.alpha-browse-controls,
.alpha-browse-fields,
.alpha-browse-field {
	overflow: visible;
}

.alpha-browse-field {
	position: relative;
	z-index: 1;
}

	.alpha-browse-field:focus-within {
		z-index: 5000;
	}

	.alpha-browse-field input[type="text"] {
		display: block;
		box-sizing: border-box;
		width: 100%;
		height: 2rem;
		margin: 0;
		padding: 0.25rem 0.45rem;
		position: relative;
		z-index: 2;
		font-family: var(--sans);
		font-size: 1rem;
		line-height: 1.2;
	}

		.alpha-browse-field input[type="text"]::placeholder {
			color: var(--text-main);
			opacity: 1;
		}

.browse-tags {
	position: absolute;
	top: 1.55rem;
	left: calc(100% + 0.75rem);
	width: 24rem;
	max-width: min(24rem, calc(100vw - 3rem));
	z-index: 5200;
	margin: 0;
	padding: 0.45rem 0.55rem;
	border: 1px solid var(--panel-border);
	border-radius: 4px;
	background: #fffdf9;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	font-family: var(--sans);
	font-size: 0.82rem;
	line-height: 1.3;
	color: var(--text-soft);
	white-space: normal;
}

#person-tags-text {
	font-weight: 400;
}

.suggestions-list {
	position: absolute;
	top: calc(100% + 0.2rem);
	left: 0;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	z-index: 5100;
	max-height: 14rem;
	overflow-y: auto;
	margin-top: 0;
	border: 1px solid var(--panel-border);
	background: #fffdf9;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.suggestion-item {
	padding: 0.35rem 0.5rem;
	font-family: var(--sans);
	font-size: 0.95rem;
	line-height: 1.35;
	cursor: pointer;
	white-space: nowrap;
}

	.suggestion-item:hover,
	.suggestion-item-active {
		background: #efebe2;
	}

@media (max-width: 560px) {
	.browse-tags {
		top: calc(100% + 0.35rem);
		left: 0;
		width: min(24rem, calc(100vw - 3rem));
	}
}

.cards-list {
	margin: 0;
	padding: 0;
}

.card-item {
	margin: 0 0 0.9rem 0;
	padding: 0 0 0.75rem 0;
	border-bottom: 1px solid #e3dccf;
}

.card-header-row {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	cursor: pointer;
}

.card-thumbnail-wrap {
	width: 72px;
	height: 72px;
}

.card-thumbnail {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	object-position: center top;
	border: 1px solid var(--panel-border);
	background: #fffdf9;
}

.card-summary {
	min-width: 0;
}

.card-heading {
	margin: 0 0 0.2rem 0;
	font-family: var(--serif);
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
}

.card-subtitle {
	margin: 0 0 0.15rem 0;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--text-main);
}

.card-meta {
	margin: 0 0 0.35rem 0;
	font-family: var(--sans);
	font-size: 0.92rem;
	line-height: 1.35;
	color: var(--text-soft);
}

.card-preview {
	margin: 0;
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.45;
	color: var(--text-main);
}

	.card-preview::after {
		content: " ...";
		color: var(--link);
		font-weight: 700;
		letter-spacing: 0.08em;
	}

.card-item.card-expanded .card-preview {
	display: none;
}

.card-expanded-body {
	display: none;
	margin: 0.55rem 0 0 0;
}

.card-item.card-expanded .card-expanded-body {
	display: block;
}

.card-text {
	margin: 0 0 0.45rem 0;
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.45;
}

.card-sources {
	margin: 0.55rem 0 0 0;
}

.card-sources-line {
	margin: 0 0 0.2rem 0;
	font-family: var(--sans);
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--text-soft);
}

.card-action {
	margin: 0.7rem 0 0 0;
}

.card-collapse {
	margin: 0.5rem 0 0 0;
}

.card-collapse-button {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--link);
	font-family: var(--sans);
	font-size: 0.95rem;
	line-height: 1.35;
	cursor: pointer;
	text-decoration: underline;
}

	.card-collapse-button:hover {
		text-decoration-thickness: 2px;
	}

.card-header-row-no-image {
	grid-template-columns: minmax(0, 1fr);
}

.results-meta {
	margin: 0 0 0.7rem 0;
	font-size: 1rem;
	color: var(--text-soft);
}

.results-list {
	margin: 0;
	padding-left: 1.2rem;
	font-size: 1rem;
	line-height: 1.5;
}

	.results-list li {
		margin: 0 0 0.45rem 0;
	}

.meta-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.9rem 1rem;
	margin: 0 0 0.85rem 0;
	padding: 0;
	border: 0;
	background: transparent;
	align-items: end;
}

.meta-item {
	min-width: 0;
}

.meta-item-action {
	display: flex;
	align-items: end;
}

.meta-label {
	margin-bottom: 0.15rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-soft);
}

.meta-value {
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.4;
	word-break: break-word;
	color: var(--text-main);
}

.source-button-wrap a {
	display: inline-block;
	padding: 0.35rem 0.6rem;
	border: 1px solid #bfb7a8;
	background: #efebe2;
	color: var(--link);
	text-decoration: none;
	font-family: var(--sans);
	font-size: 0.95rem;
	line-height: 1.2;
}

	.source-button-wrap a:hover {
		text-decoration: underline;
	}

.transcript-actions {
	margin-top: 0.65rem;
}

.transcript-box {
	margin: 0;
	padding: 1rem;
	white-space: pre-wrap;
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text-main);
	background: var(--panel-bg);
	border: 1px solid var(--panel-border);
}

.loading-text {
	font-size: 0.95rem;
	color: var(--text-soft);
}

.error-text {
	margin: 0.75rem 0;
	padding: 0.75rem 0.9rem;
	border: 1px solid #c88;
	background: #fff2f2;
	color: #7a1f1f;
	font-size: 0.95rem;
}

/* Alpha Home/Results/Transcript dashboard layout */

.alpha-dashboard-panel {
	--alpha-dashboard-content-height: 17rem;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 0.85rem 0;
	padding: 0.9rem 1rem 0.55rem 1rem;
	border: 1px solid var(--panel-border);
	border-radius: 4px;
	background: var(--panel-bg);
	overflow: visible;
}

.alpha-dashboard-grid {
	display: grid;
	grid-template-columns: 16rem minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
	width: 100%;
	overflow: visible;
}

.alpha-dashboard-search {
	min-width: 0;
	display: grid;
	grid-template-rows: auto auto;
	overflow: visible;
}

.alpha-dashboard-gpt {
	min-width: 0;
	display: block;
	padding-top: 1.85rem;
	overflow: visible;
}

.alpha-dashboard-search .panel-title {
	margin: 0 0 0.7rem 0;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-main);
}

.alpha-home-cards-panel {
	margin-top: 0.85rem;
}

/* Alpha stacked browse controls */

.alpha-browse-controls {
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	display: grid;
	grid-template-rows: var(--alpha-dashboard-content-height) auto;
	row-gap: 1rem;
	overflow: visible;
}

.alpha-browse-fields {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	width: 100%;
	overflow: visible;
}

.alpha-browse-field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	width: 100%;
}

	.alpha-browse-field input,
	.alpha-browse-field select {
		box-sizing: border-box;
		width: 100%;
	}

.alpha-browse-field-person {
	position: relative;
	overflow: visible;
	z-index: 30;
}

.alpha-browse-actions {
	display: flex;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
}

	.alpha-browse-actions .button-standard {
		width: auto;
		font-weight: 400;
	}

/* Alpha GPT playground */

.gpt-playground {
	display: grid;
	grid-template-rows: var(--alpha-dashboard-content-height) auto;
	row-gap: 1rem;
	width: 100%;
	overflow: visible;
}

.gpt-playground-fields {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	width: 100%;
	height: var(--alpha-dashboard-content-height);
	overflow: visible;
}

.gpt-playground-label {
	display: block;
	margin: 0 0 0.2rem 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text-soft);
}

.gpt-playground-editor {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
}

.gpt-playground-empty {
	position: absolute;
	top: 0.7rem;
	left: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	font-size: 0.9rem;
	line-height: 1.35;
	color: var(--text-soft);
	pointer-events: none;
}

.gpt-playground-input {
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	min-height: 0;
	resize: none;
	overflow-y: scroll;
	white-space: pre-wrap;
	background: #ffffff;
}

.gpt-playground.is-disabled .gpt-playground-label,
.gpt-playground.is-disabled .gpt-playground-empty {
	color: var(--text-soft);
	opacity: 0.75;
}

.gpt-playground.is-disabled .gpt-playground-input {
	background: #efebe2;
	color: var(--text-soft);
	border-color: #cfc6b7;
}

.gpt-playground.is-active .gpt-playground-input {
	background: #ffffff;
	color: var(--text-main);
}

.gpt-playground-input:disabled,
.gpt-playground-submit:disabled {
	cursor: not-allowed;
}

.gpt-playground-actions {
	display: flex;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
}

.gpt-playground-submit {
	width: auto;
	font-weight: 400;
}

.gpt-playground-output {
	display: none;
	min-height: 0;
	margin: 0;
}

	.gpt-playground-output:not(:empty) {
		display: block;
		min-height: 2.5rem;
		margin-top: 0.5rem;
	}

.gpt-playground-action {
	display: flex;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
}

	.gpt-playground-action[hidden] {
		display: none;
	}

.gpt-playground-action-button {
	width: auto;
	font-weight: 400;
}

/* Interim reviewer build: mute disabled GPT playground heading */

.gpt-playground h2,
.gpt-playground-panel h2,
#gpt-playground-title {
	color: #777;
	opacity: 0.65;
}

/* Responsive layout */

@media (max-width: 1100px) {
	.browse-grid {
		grid-template-columns: repeat(2, minmax(180px, 1fr));
	}

	.meta-row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.app-shell {
		padding: 1rem 0.8rem 1.5rem 0.8rem;
	}

	.site-header {
		padding: 0.85rem 0.8rem 0.7rem 0.8rem;
	}

	.site-header-inner {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 0.75rem;
	}

	.site-header-image {
		width: 56px;
		height: 56px;
	}

	.site-title {
		font-size: 1.15rem;
	}

	.site-utility-nav {
		margin-top: 0.5rem;
	}

	.site-action-strip {
		display: block;
		padding: 0.65rem 0.8rem;
	}

	.site-action-spacer {
		display: none;
	}

	.site-action-nav {
		margin-top: 0.55rem;
		justify-content: flex-start;
		white-space: normal;
	}

	.browse-grid,
	.meta-row {
		grid-template-columns: 1fr;
	}

	.page-heading {
		font-size: 1.05rem;
	}
}

@media (max-width: 560px) {
	.alpha-dashboard-grid {
		grid-template-columns: 1fr;
	}

	.alpha-dashboard-search,
	.alpha-dashboard-gpt {
		width: 100%;
		min-width: 0;
		padding-top: 0;
	}

	.alpha-browse-controls,
	.gpt-playground {
		grid-template-rows: auto auto;
	}

	.gpt-playground-fields {
		height: auto;
	}

	.gpt-playground-editor,
	.gpt-playground-input {
		min-height: 10rem;
		height: 10rem;
	}

	.card-header-row {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 0.75rem;
	}

	.card-thumbnail-wrap,
	.card-thumbnail {
		width: 56px;
		height: 56px;
	}

	.card-heading {
		font-size: 1.15rem;
	}

	@media (max-width: 760px) {
		.site-header-inner {
			grid-template-columns: auto minmax(0, 1fr);
			gap: 0.75rem;
		}

		.site-header-image {
			width: auto;
			height: 96px;
			max-width: 200px;
		}
	}
}
