:root { color-scheme: light; font-family: system-ui, sans-serif; color: #17233a; background: #f5f7fb; }
body { margin: 0; }
main { max-width: 860px; padding: 3rem 1.25rem; margin: auto; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; margin-top: .15rem; }
h2 { margin-bottom: .25rem; }
.eyebrow { color: #375aab; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.warning { border-left: .4rem solid #b54708; background: #fff4e5; padding: 1rem; }
.how, #results, form, .advanced { background: white; border-radius: .7rem; padding: 1.25rem; margin: 1.5rem 0; box-shadow: 0 1px 4px #17233a19; }
fieldset { border: 1px solid #d5deee; border-radius: .45rem; margin: 1rem 0; padding: 1rem; }
legend { color: #1d397e; font-weight: 800; padding: 0 .35rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 700; }
label span, .advanced p { color: #4c5870; font-size: .85rem; font-weight: 400; }
.check { display: flex; align-items: center; gap: .55rem; }
input { border: 1px solid #8ea0c0; border-radius: .35rem; box-sizing: border-box; font: inherit; padding: .65rem; width: 100%; }
input[type="checkbox"] { height: 1.15rem; width: 1.15rem; }
.muted { opacity: .48; }
textarea { box-sizing: border-box; min-height: 16rem; width: 100%; margin: .5rem 0 1rem; font: .82rem ui-monospace, monospace; padding: 1rem; border: 1px solid #8ea0c0; border-radius: .35rem; }
button { background: #253f89; border: 0; border-radius: .35rem; color: white; cursor: pointer; font: inherit; font-weight: 700; margin: .25rem .5rem .25rem 0; padding: .8rem 1.1rem; }
button:hover { background: #172f70; }
.secondary { background: #e7ebf5; color: #22355e; }
.secondary:hover { background: #d7deef; }
.records { grid-column: 1 / -1; margin-top: 1rem; }
.records > p { color: #4c5870; max-width: 60rem; }
.records h3 { font-size: 1rem; margin: 1.25rem 0 .4rem; }
.record-list { display: grid; gap: .65rem; }
.record-row { align-items: end; background: #f6f8fc; border-radius: .4rem; display: grid; gap: .65rem; grid-template-columns: repeat(5, minmax(125px, 1fr)) auto; padding: .75rem; }
.record-row button { margin: 0; }
@media (max-width: 700px) { .record-row { grid-template-columns: 1fr; } }
#error { color: #a11212; font-weight: 700; }
#cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { border: 1px solid #dce3f1; border-radius: .45rem; padding: 1rem; }
.amount { font-size: 1.5rem; font-weight: 800; }
.status { text-transform: capitalize; font-weight: 700; }
pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.hint { color: #4c5870; }
footer { color: #4c5870; font-size: .9rem; margin: 2rem 0; }
