:root { font-family: system-ui, sans-serif; color: #172c4b; background: #f1f5fa; }
* { box-sizing: border-box; }
body { margin: 0; padding: 24px 16px; }
main { max-width: 480px; margin: 5vh auto; padding: 28px; border-radius: 16px; background: white; }
h1 { font-size: 1.6rem; }
label { display: block; margin-bottom: 6px; font-weight: 600; }
input, button { width: 100%; min-height: 46px; padding: 10px; font: inherit; border-radius: 8px; }
input { border: 1px solid #7c8da5; }
button { color: white; background: #174b91; border: 0; cursor: pointer; }
input:focus-visible, button:focus-visible { outline: 3px solid #e69020; outline-offset: 3px; }
.errorlist, [role=alert] { color: #a01b24; }
.helptext, p { overflow-wrap: anywhere; }

.cabinet { max-width: 860px; }
.cabinet-header, .history-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cabinet-header { justify-content: space-between; }
.cabinet button { width: auto; padding-inline: 16px; }
.cabinet button:disabled { opacity: .6; cursor: wait; }
.cabinet-card { margin: 18px 0; padding: 18px; border: 1px solid #d8e1ee; border-radius: 12px; }
.cabinet-card h2 { margin-top: 0; }
.cabinet-card [role=status] { color: #3d526c; min-height: 1.5em; }
.balance-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.balance-list dd { margin: 4px 0 0; font-size: 1.45rem; font-weight: 700; overflow-wrap: anywhere; }
.history-nav [aria-pressed=false] { background: #e4edf8; color: #172c4b; }
.history-list { list-style: none; padding: 0; }
.history-list li { padding: 10px 0; border-bottom: 1px solid #d8e1ee; overflow-wrap: anywhere; }
.history-list summary { cursor: pointer; }
.history-list details p { margin: 6px 0 6px 18px; }
