:root {
  --ink: #1c1915;
  --muted: #6b645c;
  --paper: #f6f3ee;
  --card: #fffdf9;
  --line: #e4ddd3;
  --accent: #0f6e6b;
  --accent-ink: #083f3d;
  --warn: #9a3412;
  --ok: #166534;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Candara, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--accent-ink); }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px; background: var(--ink); color: #f6f3ee;
}
.topbar a, .topbar button { color: #f6f3ee; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.brand { font-weight: 700; letter-spacing: 0.04em; }
.nav { display: flex; gap: 16px; align-items: center; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { font-size: 28px; font-weight: 700; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; margin-bottom: 12px;
}
button, .btn {
  display: inline-block; background: var(--accent); color: white; border: 0; border-radius: 8px; padding: 10px 14px; text-decoration: none; cursor: pointer; font: inherit;
}
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.flash { background: #ecfdf3; color: var(--ok); padding: 10px 12px; border-radius: 8px; }
.error { color: var(--warn); }
.sheet { width: 210mm; min-height: 297mm; margin: 0 auto; background: white; padding: 16mm; }
@media print {
  .topbar, .no-print { display: none; }
  body { background: white; }
  .sheet { width: auto; padding: 0; }
}
.hero { padding: 72px 28px; max-width: 760px; }
.hero h1 { font-size: 48px; line-height: 1.05; margin-bottom: 12px; }
