:root {
	--ink: #241c15;
	--ink-2: #5d5046;
	--ink-3: #8f8277;
	--paper: #faf7f2;
	--card: #ffffff;
	--line: #e6ddd2;
	--accent: #b5523b;
	--accent-ink: #ffffff;
	--gold: #f3c969;
	--ok: #2f7a4f;
	--warn: #a86a12;
	--bad: #b23b3b;
	--radius: 10px;
	--shadow: 0 1px 2px rgb(36 28 21 / 0.06), 0 4px 14px rgb(36 28 21 / 0.06);
	font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--ink);
	background: var(--paper);
	-webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.45; }
h1, h2, h3 { font-family: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 0.8em; }
small, .muted { color: var(--ink-3); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 1rem; }
.narrow { max-width: 520px; margin: 3rem auto; padding: 1rem; }
.row { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 0.75rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.btn, button {
	font: inherit; display: inline-flex; align-items: center; gap: 0.4em; justify-content: center;
	border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 0.5em 0.95em;
	border-radius: 8px; cursor: pointer; text-decoration: none; min-height: 40px; white-space: nowrap;
}
.btn:hover, button:hover { border-color: var(--ink-3); text-decoration: none; }
.btn.primary, button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.dark, button.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.danger, button.danger { color: var(--bad); }
.btn.small, button.small { min-height: 32px; padding: 0.25em 0.7em; font-size: 0.9rem; }
.btn.big, button.big { min-height: 56px; font-size: 1.1rem; padding: 0.6em 1.4em; }
button:disabled { opacity: 0.5; cursor: default; }
label { display: block; font-size: 0.85rem; color: var(--ink-2); font-weight: 600; }
label > input, label > select, label > textarea { margin-top: 0.25rem; }
input, select, textarea {
	font: inherit; width: 100%; padding: 0.5em 0.65em; border: 1px solid var(--line); border-radius: 8px;
	background: #fff; color: var(--ink); min-height: 40px;
}
input[type='checkbox'], input[type='radio'] { width: auto; min-height: 0; }
textarea { min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--ink-3); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.pill { display: inline-block; font-size: 0.75rem; padding: 0.1em 0.6em; border-radius: 99px; background: #efe8de; color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: #e2f1e7; color: var(--ok); }
.pill.warn { background: #fbefd9; color: var(--warn); }
.pill.bad { background: #f7e1e1; color: var(--bad); }
.pill.accent { background: #f5e1dc; color: var(--accent); }
.flash { padding: 0.7rem 1rem; border-radius: 8px; background: #e2f1e7; color: var(--ok); margin-bottom: 1rem; }
.flash.error { background: #f7e1e1; color: var(--bad); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; display: block; }
.tile:hover { text-decoration: none; border-color: var(--ink-3); }
.tile .img { aspect-ratio: 3 / 4; background: #eee6db center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--ink-3); font-size: 0.8rem; }
.tile .meta { padding: 0.45rem 0.55rem; font-size: 0.85rem; }
.tile .meta b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--ink-3); border: 2px dashed var(--line); border-radius: var(--radius); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; color: inherit; }
.kpi b { display: block; font-size: 1.6rem; font-family: Georgia, serif; }
.kpi span { color: var(--ink-3); font-size: 0.85rem; }
.huge { font-size: clamp(2rem, 8vw, 4rem); font-family: Georgia, serif; font-weight: 700; line-height: 1; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media print { nav, .no-print { display: none !important; } body { background: #fff; } }
