:root {
  color-scheme: light;
  --ink: #163329;
  --muted: #4a5f55;
  --paper: #f5f4ee;
  --gold: #ecc48d;
  --line: #d8ded4;
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(100% - 32px, 970px); margin-inline: auto; }
.shell.narrow { width: min(100% - 32px, 590px); }
header { background: #0f2a21; color: #fffaf0; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 67px; padding-block: 10px; }
.brand { font-weight: 750; font-size: 1.35rem; letter-spacing: -.04em; }
.identity { display: flex; gap: 12px; align-items: center; }
main { padding-block: clamp(24px, 5vw, 52px) 16px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(1.85rem, 5vw, 2.8rem); line-height: 1.12; margin-bottom: 20px; letter-spacing: -.05em; }
h2 { font-size: 1.23rem; margin-bottom: 8px; }
p { margin-bottom: 13px; }
a { color: #174a37; text-underline-offset: 3px; overflow-wrap: anywhere; }
button { font: inherit; font-weight: 700; cursor: pointer; background: var(--gold); color: var(--ink); padding: 10px 15px; border: 1px solid transparent; border-radius: 5px; }
button:hover { background: #f1d5aa; }
button:disabled { opacity: .65; cursor: wait; }
button.subtle { border-color: #9fae9f; background: #f4f7ef; }
button.subtle:hover { background: #e7eee3; }
:focus-visible { outline: 2px solid #85703c; outline-offset: 3px; }
.card { background: #fffdfa; border: 1px solid var(--line); border-radius: 6px; padding: clamp(17px, 3vw, 30px); margin-bottom: 18px; overflow-wrap: anywhere; }
main > a + .card { margin-top: 12px; }
form input:not([type=checkbox]) { display: block; width: 100%; margin-top: 5px; padding: 9px; border: 1px solid #a8b4a9; border-radius: 4px; background: #fff; font: inherit; }
label { font-weight: 650; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 17px; }
fieldset { margin: 18px 0; border: 1px solid var(--line); border-radius: 4px; }
legend { font-weight: 700; }
fieldset p { color: var(--muted); margin-bottom: 7px; }
.check { display: flex; align-items: flex-start; gap: 8px; margin: 7px 0; font-weight: 400; }
.check input { margin-top: 5px; }
#client-code { max-width: 12ch; margin-bottom: 16px; font-family: ui-monospace, monospace; letter-spacing: .12em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 10px; }
.records { list-style: none; padding: 0; margin: 0 0 12px; }
.records li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.records li span { color: var(--muted); font-size: .92rem; }
dl { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 6px; margin-bottom: 20px; }
dt { font-weight: 700; }
dd { margin: 0; }
.highlight { border-color: #b9a67e; }
.digits { font: 700 1.8rem ui-monospace, monospace; letter-spacing: .16em; }
#notice { padding: 10px 12px; background: #e4eee4; border-radius: 4px; margin-bottom: 12px; }
#notice.error { background: #f7e8e4; color: #6f2119; }
footer { padding: 0 0 28px; color: var(--muted); font-size: .85rem; }
@media (max-width: 570px) {
  .fields, .records li { grid-template-columns: 1fr; }
  .records li { gap: 1px; }
  dl { grid-template-columns: 1fr; gap: 2px; }
  dd { margin-bottom: 9px; }
}
