:root {
  --navy: #0d2340;
  --ink: #1a2332;
  --muted: #5a6573;
  --line: #d5dbe3;
  --paper: #f4f1ea;
  --white: #fff;
  --accent: #8b6914;
  --warn: #7a3b11;
  --draft: rgba(139, 26, 26, 0.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Source Serif 4", "Georgia", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}
.sans { font-family: "Source Sans 3", "Segoe UI", sans-serif; }
header.app {
  background: var(--navy);
  color: var(--white);
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
header.app h1 { font-size: 1.15rem; margin: 0; letter-spacing: 0.04em; font-weight: 600; }
header.app span { font-size: 0.78rem; opacity: 0.75; }
main.wrap { max-width: 920px; margin: 1.5rem auto 3rem; padding: 0 1rem; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.1rem;
}
h2 { font-size: 1.05rem; margin: 0 0 0.8rem; color: var(--navy); }
label { display: block; font-size: 0.82rem; color: var(--muted); margin: 0.55rem 0 0.2rem; font-family: "Source Sans 3", "Segoe UI", sans-serif; }
input, select, textarea {
  width: 100%; padding: 0.45rem 0.55rem;
  border: 1px solid var(--line); font: inherit; background: #fafbfc;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.1rem; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.5rem; }
button, .btn {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: var(--navy); color: #fff; border: 0;
  padding: 0.65rem 1.2rem; cursor: pointer; font-size: 0.95rem;
}
.note { font-size: 0.85rem; color: var(--muted); }
.gap { border-left: 4px solid var(--warn); padding: 0.9rem 1rem; background: #fbf6f0; }
.gap ul { margin: 0.3rem 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { border-bottom: 1px solid var(--line); padding: 0.35rem 0.4rem; text-align: left; }
th { font-family: "Source Sans 3", sans-serif; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.watermark {
  position: fixed; inset: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 7rem; font-weight: 700; color: rgba(139,26,26,0.07);
  transform: rotate(-28deg); letter-spacing: 0.2em;
}
.report { background: #fff; padding: 2.2rem 2.4rem; max-width: 210mm; margin: 0 auto 2rem; border: 1px solid var(--line); position: relative; }
.report h1 { font-size: 1.35rem; color: var(--navy); margin: 0 0 0.3rem; }
.report .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.2rem; }
.footer-legal { font-size: 0.72rem; color: var(--muted); margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 0.7rem; }
.actions { display: flex; gap: 0.6rem; margin: 1rem auto; max-width: 210mm; }
@media print {
  header.app, .actions, .no-print { display: none !important; }
  body { background: #fff; }
  .report { border: 0; margin: 0; max-width: none; }
  .watermark { color: rgba(139,26,26,0.12); }
}
