:root {
	--bg: #f0ece3;
	--panel: rgba(255, 252, 246, 0.94);
	--line: rgba(41, 55, 46, 0.12);
	--ink: #1f3127;
	--muted: #607167;
	--accent: #bf5e35;
	--accent-soft: rgba(191, 94, 53, 0.14);
	--forest: #235145;
	--forest-soft: rgba(35, 81, 69, 0.14);
	--shadow: none;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	min-height: 100%;
	background:
		radial-gradient(circle at top left, rgba(191, 94, 53, 0.08), transparent 32%),
		radial-gradient(circle at top right, rgba(35, 81, 69, 0.1), transparent 28%),
		var(--bg);
	color: var(--ink);
	font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
}

body {
	padding: 24px;
}

a {
	color: inherit;
}

.page-shell {
	max-width: 1480px;
	margin: 0 auto;
}

.hero,
.panel,
.summary-card {
	border: 1px solid var(--line);
	border-radius: 24px;
	background: var(--panel);
	box-shadow: var(--shadow);
}

.hero {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 30px;
}

.hero-main {
	min-width: 0;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 10px;
	max-width: 420px;
}

.hero-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.8);
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
}

.hero-link:hover,
.hero-link:focus {
	background: rgba(31, 49, 39, 0.08);
	color: #24352c;
}

.language-menu {
	display: inline-flex;
	gap: 6px;
	margin-bottom: 14px;
	padding: 4px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
}

.language-button {
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--muted);
	padding: 6px 10px;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.language-button.is-active {
	background: var(--forest);
	color: #fff;
}

.eyebrow {
	margin: 0 0 8px;
	font-size: 0.78rem;
	font-family: Verdana, Geneva, sans-serif;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(31, 49, 39, 0.62);
	font-weight: 600;
}

.hero h1 {
	margin: 0;
	font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
	font-size: clamp(2.2rem, 4vw, 4rem);
	line-height: 0.96;
	letter-spacing: -0.04em;
	max-width: 18ch;
}

.intro,
.panel-note,
.summary-meta,
.trust-pill p,
.empty-copy,
.directory-card-meta,
.directory-card-subtitle,
.bar-meta,
.feed-meta,
.control-note {
	color: var(--muted);
}

.intro {
	max-width: 64ch;
	line-height: 1.55;
	margin: 14px 0 0;
}

.panel {
	padding: 18px;
	margin-top: 18px;
}

.panel-wide {
	width: 100%;
}

.panel-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 18px;
	margin-bottom: 18px;
}

.panel-header h2 {
	margin: 0;
	font-size: 2rem;
	line-height: 1.08;
	letter-spacing: -0.03em;
}

.panel-note {
	max-width: 42ch;
	line-height: 1.5;
	margin: 0;
	text-align: right;
}

.control-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.control-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 18px;
	border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.82);
	font-size: 0.9rem;
	font-weight: 600;
}

.control-chip-wide {
	flex: 1 1 280px;
}

.control-chip span {
	color: var(--muted);
	white-space: nowrap;
}

.control-chip select,
.control-chip input {
	width: 100%;
	border: 0;
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-weight: 700;
}

.ghost-button {
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	color: var(--ink);
	padding: 10px 14px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ghost-button:hover,
.ghost-button:focus {
	background: rgba(31, 49, 39, 0.08);
	color: #24352c;
}

.trust-strip {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.trust-pill {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.78);
	box-shadow: var(--shadow);
}

.trust-pill h3 {
	margin: 0 0 8px;
	font-size: 1rem;
}

.trust-pill p {
	margin: 0;
	line-height: 1.5;
}

.directory-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
}

.directory-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border-radius: 18px;
	border: 1px solid rgba(31, 49, 39, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 243, 235, 0.94));
	text-decoration: none;
}

.directory-card:hover,
.directory-card:focus {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(24, 35, 28, 0.1);
}

.directory-card-title {
	margin: 0;
	font-size: 1.18rem;
	line-height: 1.2;
}

.directory-card-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.directory-card-value {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--forest);
}

.directory-card-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.directory-card-metric {
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(33, 78, 68, 0.06);
}

.directory-card-label {
	display: block;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.directory-card-stat {
	display: block;
	margin-top: 4px;
	font-size: 1rem;
	font-weight: 800;
}

.summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.summary-card {
	padding: 18px 20px;
}

.summary-label {
	margin: 0;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 700;
}

.summary-value {
	margin: 12px 0 8px;
	font-size: clamp(1.9rem, 4vw, 3rem);
	line-height: 0.94;
	letter-spacing: -0.05em;
	font-weight: 800;
}

.summary-meta {
	margin: 0;
	line-height: 1.45;
}

.monthly-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 0.92rem;
}

.monthly-legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.swatch {
	width: 12px;
	height: 12px;
	border-radius: 999px;
	display: inline-block;
}

.swatch.starts {
	background: var(--forest);
}

.swatch.matched {
	background: var(--accent);
}

.monthly-flow {
	overflow-x: auto;
	padding-bottom: 8px;
}

.flow-shell {
	min-width: max-content;
}

.flow-axis-note {
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 0.92rem;
	line-height: 1.5;
}

.flow-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 96px;
	gap: 12px;
	align-items: end;
}

.flow-month {
	padding: 14px 10px 12px;
	border-radius: 18px;
	border: 1px solid rgba(31, 49, 39, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 235, 0.92));
}

.flow-month-label {
	font-weight: 800;
	margin-bottom: 8px;
}

.flow-count-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 8px;
}

.flow-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 0;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.flow-count.starts {
	background: rgba(35, 81, 69, 0.12);
	color: var(--forest);
}

.flow-count.matched {
	background: rgba(191, 94, 53, 0.12);
	color: var(--accent);
}

.flow-month-bars {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	align-items: end;
	height: 152px;
}

.flow-bar-col {
	display: grid;
	grid-template-rows: 1fr auto;
	gap: 6px;
	align-items: end;
}

.flow-bar-track {
	position: relative;
	height: 124px;
	border-radius: 16px;
	background:
		linear-gradient(180deg, rgba(31, 49, 39, 0.04), rgba(31, 49, 39, 0.02)),
		repeating-linear-gradient(
			to top,
			rgba(31, 49, 39, 0.08) 0,
			rgba(31, 49, 39, 0.08) 1px,
			transparent 1px,
			transparent 25%
		);
	display: flex;
	align-items: end;
	padding: 4px;
}

.flow-bar {
	width: 100%;
	min-height: 2px;
	border-radius: 14px 14px 10px 10px;
}

.flow-bar.starts {
	background: linear-gradient(180deg, rgba(35, 81, 69, 0.68), var(--forest));
}

.flow-bar.matched {
	background: linear-gradient(180deg, rgba(191, 94, 53, 0.64), var(--accent));
}

.flow-bar-key {
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	text-align: center;
}

.panel-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

.bar-list {
	display: grid;
	gap: 12px;
}

.bar-row {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(140px, 1fr) auto;
	align-items: center;
	gap: 14px;
}

.bar-label {
	font-weight: 700;
}

.bar-meta {
	font-size: 0.92rem;
	margin-top: 4px;
}

.bar-track {
	height: 10px;
	border-radius: 999px;
	background: rgba(31, 49, 39, 0.08);
	overflow: hidden;
}

.bar-fill {
	height: 100%;
	border-radius: inherit;
	background: #486257;
}

.bar-value {
	font-weight: 800;
	white-space: nowrap;
}

.recent-grid,
.comparison-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.pulse-card {
	padding: 14px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 243, 235, 0.92));
	border: 1px solid rgba(31, 49, 39, 0.08);
}

.pulse-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 8px;
}

.pulse-rows {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.pulse-row {
	display: grid;
	grid-template-columns: minmax(110px, auto) minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	font-size: 0.92rem;
}

.pulse-track {
	height: 10px;
	border-radius: 999px;
	background: rgba(31, 49, 39, 0.08);
	overflow: hidden;
}

.pulse-fill {
	height: 100%;
	border-radius: inherit;
}

.pulse-fill.starts {
	background: #486257;
}

.pulse-fill.matched {
	background: #7b6956;
}

.mini-stat {
	padding: 14px;
	border-radius: 18px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 243, 235, 0.92));
	border: 1px solid rgba(31, 49, 39, 0.08);
}

.mini-stat-label {
	margin: 0;
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.mini-stat-value {
	margin: 10px 0 6px;
	font-size: 1.8rem;
	line-height: 0.95;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.mini-stat-meta {
	margin: 0;
	line-height: 1.45;
	color: var(--muted);
}

.feed-list {
	display: grid;
	gap: 12px;
}

.feed-card {
	padding: 14px 16px;
	border-radius: 18px;
	border: 1px solid rgba(31, 49, 39, 0.08);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 243, 235, 0.92));
}

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

.feed-card-title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.feed-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 800;
	white-space: nowrap;
}

.feed-chip.is-permit {
	background: var(--forest-soft);
	color: var(--forest);
}

.feed-chip.is-completion {
	background: rgba(177, 109, 73, 0.16);
	color: #9a5634;
}

.feed-meta {
	margin: 10px 0 0;
	line-height: 1.55;
}

.feed-link {
	display: inline-flex;
	margin-top: 12px;
	text-decoration: none;
	font-weight: 700;
	color: var(--forest);
}

.empty-copy {
	margin: 0;
	line-height: 1.5;
}

@media (max-width: 1200px) {
	.hero,
	.panel-header {
		flex-direction: column;
	}

	.panel-note {
		text-align: left;
		max-width: none;
	}

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

@media (max-width: 860px) {
	body {
		padding: 14px;
	}

	.trust-strip,
	.summary-grid,
	.panel-grid,
	.recent-grid,
	.comparison-grid {
		grid-template-columns: 1fr;
	}

	.monthly-flow {
		padding-bottom: 10px;
	}

	.flow-shell {
		min-width: max-content;
	}

	.bar-row {
		grid-template-columns: 1fr;
	}

	.feed-card-head {
		flex-direction: column;
	}
}
