:root {
	--ink: #222428;
	--ink-soft: #42454a;
	--muted: #74777c;
	--muted-light: #9b9da0;
	--accent: #cf6d2e;
	--accent-dark: #984819;
	--line: #d7d7d3;
	--line-strong: #b8b9b6;
	--paper: #f9f9f6;
	--canvas: #e9e9e5;
	--panel: #f2f2ef;
	--success: #4e735c;
	font-family: "Avenir Next", Avenir, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", sans-serif;
	font-synthesis: none;
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-width: 320px;
	min-height: 100%;
	margin: 0;
}

body {
	background: var(--canvas);
	color: var(--ink);
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	-webkit-font-smoothing: antialiased;
}

button,
select {
	font: inherit;
}

button,
a,
select {
	-webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
select:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.app-header {
	position: relative;
	z-index: 5;
	display: flex;
	height: 68px;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	border-bottom: 1px solid var(--line-strong);
	background: rgba(249, 249, 246, 0.94);
	backdrop-filter: blur(14px);
}

.app-header::after {
	position: absolute;
	right: 0;
	bottom: -1px;
	width: 128px;
	height: 3px;
	background: var(--accent);
	content: "";
}

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

.brand-mark {
	display: grid;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 3px;
	background: var(--ink);
	color: #fff;
	font-size: 17px;
	font-weight: 800;
}

.brand-copy {
	display: grid;
	gap: 2px;
}

.brand-copy strong {
	font-size: 14px;
	letter-spacing: 0.01em;
}

.brand-copy small,
.eyebrow,
.group-heading span,
.rail-footer,
.field-label {
	color: var(--muted);
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.header-meta {
	display: flex;
	align-items: center;
	gap: 24px;
}

.header-meta a {
	color: var(--muted);
	font-family: "SFMono-Regular", Consolas, monospace;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.header-meta a:hover {
	color: var(--accent-dark);
}

.system-state {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 650;
}

.system-state i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(207, 109, 46, 0.11);
}

body[data-app-state="ready"] .system-state i {
	background: var(--success);
	box-shadow: 0 0 0 4px rgba(78, 115, 92, 0.12);
}

