.v4-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px;margin:20px 0}.v4-tile{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #d8e6e1;border-radius:20px;padding:24px;color:#173d32;text-decoration:none;transition:background .15s,box-shadow .15s,transform .15s;min-width:0}.v4-tile h2{font-size:1.15rem;overflow-wrap:anywhere}.v4-tile p{margin:4px 0;font-size:.9rem}.v4-amount{display:block;font-size:1.8rem}.v4-tile:focus-visible{outline:3px solid #147d63;outline-offset:3px}@media(hover:hover){.v4-tile:hover{background:#e9f6ef;box-shadow:0 6px 16px #173d3215;transform:translateY(-2px)}}.preview-banner{position:sticky;top:0;z-index:8;background:#fff3c7;border:2px solid #b98413;padding:16px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.preview-banner form{margin:0}.v4-grid .panel{margin:0;min-width:0}.v4-grid input{max-width:100%}body.preview-mode form[data-preview-disabled]{opacity:.7}.wallet-links{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.wallet-links a{background:#edf7f1;padding:12px 18px;border-radius:12px;color:#20523d}

.v4-tile>.pill{align-self:flex-start}@media(max-width:760px){.bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr))}}

.v4-tile.wallet-tile,.v4-tile.wallet-tile:hover{background:var(--wallet-bg,#fff)}

/* Fixed balance scale, available without JavaScript or inline styles. */
.wallet-tone-1{--wallet-bg:hsl(150 43% 96.438%)}
.wallet-tone-2{--wallet-bg:hsl(150 43% 95.875%)}
.wallet-tone-3{--wallet-bg:hsl(150 43% 95.312%)}
.wallet-tone-4{--wallet-bg:hsl(150 43% 94.750%)}
.wallet-tone-5{--wallet-bg:hsl(150 43% 94.188%)}
.wallet-tone-6{--wallet-bg:hsl(150 43% 93.625%)}
.wallet-tone-7{--wallet-bg:hsl(150 43% 93.062%)}
.wallet-tone-8{--wallet-bg:hsl(150 43% 92.500%)}
.wallet-tone-9{--wallet-bg:hsl(150 43% 91.938%)}
.wallet-tone-10{--wallet-bg:hsl(150 43% 91.375%)}
.wallet-tone-11{--wallet-bg:hsl(150 43% 90.812%)}
.wallet-tone-12{--wallet-bg:hsl(150 43% 90.250%)}
.wallet-tone-13{--wallet-bg:hsl(150 43% 89.688%)}
.wallet-tone-14{--wallet-bg:hsl(150 43% 89.125%)}
.wallet-tone-15{--wallet-bg:hsl(150 43% 88.562%)}
.wallet-tone-16{--wallet-bg:hsl(150 43% 88.000%)}
.wallet-tone-17{--wallet-bg:hsl(150 43% 87.438%)}
.wallet-tone-18{--wallet-bg:hsl(150 43% 86.875%)}
.wallet-tone-19{--wallet-bg:hsl(150 43% 86.312%)}
.wallet-tone-20{--wallet-bg:hsl(150 43% 85.750%)}
.wallet-tone-21{--wallet-bg:hsl(150 43% 85.188%)}
.wallet-tone-22{--wallet-bg:hsl(150 43% 84.625%)}
.wallet-tone-23{--wallet-bg:hsl(150 43% 84.062%)}
.wallet-tone-24{--wallet-bg:hsl(150 43% 83.500%)}
.wallet-tone-25{--wallet-bg:hsl(150 43% 82.938%)}
.wallet-tone-26{--wallet-bg:hsl(150 43% 82.375%)}
.wallet-tone-27{--wallet-bg:hsl(150 43% 81.812%)}
.wallet-tone-28{--wallet-bg:hsl(150 43% 81.250%)}
.wallet-tone-29{--wallet-bg:hsl(150 43% 80.688%)}
.wallet-tone-30{--wallet-bg:hsl(150 43% 80.125%)}
.wallet-tone-31{--wallet-bg:hsl(150 43% 79.562%)}
.wallet-tone-32{--wallet-bg:hsl(150 43% 79.000%)}

.v4-tile.payment-outstanding{background:#fff3e7;border-color:#dfab76}
.v4-tile.payment-outstanding:hover{background:#ffe9d2}
.payment-remaining{color:#824216}

.collection-total-note{font-size:.9rem;color:var(--muted);margin:0 0 22px}
.pupil-money{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}
.pupil-money>div{border:1px solid var(--border);border-radius:14px;padding:16px;background:#f2f7f3;min-width:0}
.pupil-money span{display:block;font-size:.9rem}.pupil-money strong{display:block;font-size:1.85rem;overflow-wrap:anywhere}
.payment-history{list-style:none;padding:0}.payment-history li{padding:14px 0;border-bottom:1px solid var(--border)}.payment-history small{display:block;color:var(--muted)}
@media(max-width:380px){.pupil-money{gap:8px}.pupil-money>div{padding:12px}.pupil-money strong{font-size:1.4rem}}

.pupil-note{border-top:1px solid #bfd0c8;padding-top:12px;overflow-wrap:anywhere;font-size:.9rem}.pupil-note p{white-space:pre-wrap}.v4-tile.payment-individual,.v4-tile.payment-individual:hover{background:#edf2fa;border-color:#bbcde4}.payment-individual .payment-remaining{color:#365d83}.pupil-note-form{margin:24px 0;border-top:1px solid var(--border);padding-top:20px}

.collection-progress{position:relative;isolation:isolate;overflow:hidden;border:1px solid #bad5c5;border-radius:22px;margin:0 0 24px;background:#f9e8ed;color:#173f32}
.collection-progress-fill{position:absolute;inset:0;width:100%;height:100%;appearance:none;border:0;border-radius:inherit;background:#f9e8ed;z-index:-1;display:block}
.collection-progress-fill::-webkit-progress-bar{background:#f9e8ed;border-radius:inherit}
.collection-progress-fill::-webkit-progress-value{background:#b3d9c2}
.collection-progress-fill::-moz-progress-bar{background:#b3d9c2}
.collection-progress-content{padding:26px 30px}
.collection-progress-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.collection-progress-figures>div{min-width:0}
.collection-progress-figures span,.collection-progress-figures strong,.collection-progress-figures small{display:block}
.collection-progress-figures strong{font-size:clamp(1.5rem,3.5vw,2.8rem);line-height:1.25;margin:8px 0;overflow-wrap:anywhere}
.collection-progress-figures small{font-size:.87rem}
.collection-progress-remaining{text-align:right}
.collection-progress-caption{font-size:.85rem;margin:20px 0 0;font-weight:600}
.collection-progress-note{font-size:.8rem;line-height:1.5;margin:8px 0 0}
@media(max-width:480px){.collection-progress-content{padding:20px 16px}.collection-progress-figures{gap:12px}.collection-progress-figures strong{font-size:1.45rem}.collection-progress-figures small{font-size:.78rem}}
