:root {
    color-scheme: light;
    font: 16px/1.5 system-ui, sans-serif;
    color: #1b2926;
    background: #edf1ee;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1060px; margin: auto; padding: 56px 24px; }
header { margin-bottom: 30px; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.055em; line-height: 1.1; margin: 0; }
h2 { font-size: 1.2rem; margin: 0 0 16px; }
p { color: #4b5c55; }
.forms { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; }
section { background: #fff; border: 1px solid #d5dfd8; border-radius: 14px; padding: 24px; min-width: 0; }
.history { margin-top: 18px; }
form, label { display: grid; gap: 8px; }
form { gap: 14px; }
label { font-size: .9rem; font-weight: 600; min-width: 0; }
input, select, button { font: inherit; }
input, select { width: 100%; padding: 9px 12px; border: 1px solid #aabbb3; border-radius: 7px; background: #fff; color: inherit; }
button { justify-self: start; border: 0; border-radius: 7px; padding: 10px 18px; background: #185848; color: #fff; cursor: pointer; }
button:hover { background: #104638; }
:focus-visible { outline: 3px solid #438775; outline-offset: 2px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.feedback { padding: 12px 16px; border-radius: 8px; background: #d9eee4; color: #164c3b; }
.error { background: #f8e4e2; color: #862a24; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #dee6e0; vertical-align: top; }
small { display: block; color: #4b5c55; overflow-wrap: anywhere; }
.amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
    main { padding: 32px 16px; }
    .forms { grid-template-columns: 1fr; }
    section { padding: 18px; }
}
