:root {
	--bg: #f4f6f9;
	--surface: #ffffff;
	--text: #1b2430;
	--muted: #6b7684;
	--border: #d9dee6;
	--primary: #1f5fbf;
	--primary-text: #ffffff;
	--danger: #c0392b;
	--ok: #1e8449;
	--radius: 8px;
	--gap: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 12px; }
[x-cloak] { display: none !important; }

.navbar {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	min-height: 52px;
}
.nav-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 var(--gap);
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 52px;
}
.nav-brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-links { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; flex: 1; }
.nav-user { color: var(--muted); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px var(--gap); }
.container.wide { max-width: 1500px; }
.narrow { max-width: 440px; margin: 48px auto; padding: 0 var(--gap); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.row { display: flex; gap: var(--gap); flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.stack > * + * { margin-top: var(--gap); }

.avatar {
	width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: none;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--primary); color: var(--primary-text); font-size: 0.75rem; font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
