:root {
    color: #1a2e4a;
    background: #f4f7fb;
    font: 16px/1.5 system-ui, sans-serif;
    --blue: #185fa5;
    --navy: #0c447c;
    --surface: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #7bb5eb; outline-offset: 3px; }
h1, h2, p { margin: 0; }
.shell { max-width: 560px; min-height: 100vh; margin: auto; background: var(--surface); }
.hero {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 56px 24px 32px;
    border-radius: 0 0 36px 36px;
    background: var(--blue);
    color: white;
    text-align: center;
}
.hero img { width: 72px; height: 72px; margin-bottom: 8px; border-radius: 18px; object-fit: contain; background: white; }
.hero h1 { font-size: 23px; }
.hero p { color: #e4effa; }
.card { margin: 16px; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: 0 5px 22px #143e6a17; }
.card h2 { margin-bottom: 16px; color: var(--navy); font-size: 18px; }
.field { display: grid; gap: 4px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.field input {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #dce6f1;
    border-radius: 12px;
    background: #f4f7fb;
    color: inherit;
    font: inherit;
    font-weight: 400;
}
.field input:focus { border-color: var(--blue); background: white; }
.password-field { display: flex; align-items: stretch; gap: 6px; }
.password-field button { flex: 0 0 auto; border: 0; border-radius: 10px; background: #eef4fa; color: var(--navy); padding: 0 12px; cursor: pointer; }
.primary {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border: 0;
    border-radius: 14px;
    background: var(--blue);
    color: white;
    text-align: center;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.primary:disabled { opacity: .65; cursor: wait; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin-top: 14px; font-size: 14px; }
.form-message { margin-bottom: 10px; color: var(--navy); font-size: 14px; }
.form-message:empty { display: none; }
.home-shell { background: #f4f7fb; padding-bottom: 82px; }
.home-hero { justify-items: stretch; text-align: left; padding: 24px 20px; }
.home-heading, .balance-grid { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.home-heading a { color: white; }
.home-heading h1 { overflow-wrap: anywhere; }
.balance-grid { margin: 12px 0 0; padding: 12px; border-radius: 14px; background: #0c447c; }
.balance-grid > div { flex: 1; }
.balance-grid dt { color: #deebf8; font-size: 14px; }
.balance-grid dd { margin: 0; font-weight: 700; font-size: 20px; overflow-wrap: anywhere; }
.banner-list { display: flex; overflow: auto; gap: 8px; margin: 16px; scroll-snap-type: x mandatory; }
.banner-list img { display: block; width: 100%; flex: 0 0 100%; border-radius: 16px; object-fit: cover; scroll-snap-align: start; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shortcut-grid a, .shortcut-grid summary { display: block; padding: 10px 12px; border-radius: 10px; color: var(--navy); background: #eef4fa; cursor: pointer; }
.shortcut-grid details[open] { grid-column: 1 / -1; }
.shortcut-grid details p { padding: 10px 12px; overflow-wrap: anywhere; }
.home-cta { margin-top: 14px; }
.home-nav { position: fixed; inset: auto 0 0; max-width: 560px; margin: auto; display: flex; background: white; box-shadow: 0 -3px 16px #143e6a14; }
.home-nav a { flex: 1; padding: 16px 3px; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.home-nav [aria-current="page"] { color: var(--navy); font-weight: 700; }
@media (max-width: 370px) {
    .card { margin: 12px; padding: 16px; }
    .hero { padding-inline: 16px; }
}

