:root {
  --ink: #1c2024;
  --muted: #5c6770;
  --navy: #163448;
  --teal: #0e6e68;
  --line: #e4ddd2;
  --bg: #f6f4f0;
  --card: #fff;
  --alert: #fff6ee;
  --alert-ink: #8a4e0c;
  --bad: #8c2e28;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.45 "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
header {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
header a { color: #fff; }
main { max-width: 920px; margin: 0 auto; padding: 18px 14px 48px; }
h1 { font-size: 1.45rem; margin: 0 0 6px; }
h2 { font-size: 1.15rem; margin: 22px 0 8px; }
p { margin: 0 0 10px; }
a { color: var(--teal); }
.card, form.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 12px 0;
}
label { display: block; font-size: 0.86rem; color: var(--muted); margin: 8px 0 4px; }
input, select, textarea, button {
  font: inherit;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfc6ba;
  border-radius: 8px;
  background: #fff;
}
textarea { min-height: 70px; }
button, .btn {
  background: var(--teal);
  color: #fff;
  border: 0;
  text-decoration: none;
  display: inline-block;
  width: auto;
  cursor: pointer;
}
button.ghost, .btn.ghost { background: #efeae3; color: var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 8px 6px; vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; }
tr.alert td { background: var(--alert); }
.money { text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.error { background: #fdeceb; color: var(--bad); padding: 10px 12px; border-radius: 8px; }
.ok { background: #e8f5f1; padding: 10px 12px; border-radius: 8px; }
.alert-box { background: var(--alert); border-left: 4px solid #c56a12; padding: 10px 12px; margin: 8px 0; }
.summary { white-space: pre-wrap; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.check input { width: auto; }
@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; }
  table { font-size: 0.82rem; }
}
