/* Home proportions follow the supplied client dashboard reference. */
#view-home #internetPaymentContact{font-size:12px;line-height:1.4;color:var(--muted);margin-top:4px}
#view-home #internetPaymentReview{font-size:20px;font-weight:700;line-height:1.25;color:#a35b08;margin-top:4px;overflow-wrap:break-word}
#view-home #internetPaymentReview:not([hidden]) ~ #internetStatus{font-size:12px;font-weight:500;line-height:1.4;margin-top:6px;color:var(--muted)}
#view-home #internetPaymentReview:not([hidden]) ~ #internetStatusNote{font-size:11px;margin-top:2px;color:var(--muted)}
body.dark #view-home #internetPaymentReview{color:#f5bd62}
/* Compact billing screen only; other portal cards and the printed SOA stay unchanged. */
#view-billing .billing-heading{margin-bottom:10px}
#view-billing .billing-heading h2{font-size:19px}
#view-billing>.card{padding:16px 18px;margin-bottom:12px;border-radius:20px}
#view-billing .card>h2{font-size:17px;margin-bottom:10px}
#view-billing .billing-card-toolbar{margin-bottom:4px}
#view-billing .billing-card-toolbar label{gap:4px;font-size:12px}
#view-billing .billing-card-toolbar>label{width:110px}
#view-billing #year{padding:4px 9px;min-height:32px;height:32px;line-height:22px;border-radius:9px}
#view-billing th,#view-billing td{padding:8px 7px;font-size:12px;line-height:1.35}
#view-billing td:nth-child(4){white-space:nowrap}
#view-billing .payment-status{padding:3px 6px}
#view-billing .card>.muted{margin:8px 0 0;font-size:11px}
@media(max-width:480px){#view-billing>.card{padding:12px}#view-billing th,#view-billing td{padding:7px 5px}}
.billing-card-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:6px}.billing-card-toolbar>label{width:140px;max-width:50%;min-width:0}#openSoa{flex:none;position:relative;min-height:32px;padding:6px 12px;margin-bottom:0;font-size:13px;line-height:18px;border-radius:9px;white-space:nowrap}#openSoa::after{content:"";position:absolute;inset:-6px 0}
/* Compact payment sheet; longer account lists/help scroll inside it. */
#paymentDialog{width:min(430px,calc(100% - 32px));max-height:min(620px,calc(var(--payment-viewport-height,100dvh) - 32px));padding:8px;border-radius:22px}
#paymentDialog .payment-scroll{max-height:min(590px,calc(var(--payment-viewport-height,100dvh) - 62px));padding:10px}
#paymentDialog .payment-head h2{font-size:19px;margin:0 0 2px}
#paymentDialog .payment-head p{margin:0}
#paymentDialog .payment-note{font-size:12px;line-height:1.4;margin:8px 0}
#paymentDialog #paymentAccounts>p{font-size:12px;line-height:1.4;margin:8px 0}
#paymentDialog .payment-destinations{margin:8px 0 0}
#paymentDialog .payment-destinations>h3{font-size:14px;margin:0 0 7px}
#paymentDialog .payment-account-options{display:flex;flex-wrap:wrap;gap:9px}
#paymentDialog .payment-account-choice{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:48px;padding:7px 9px;border-radius:12px;text-align:left;font-size:12px;line-height:1.2;background:var(--surface)}
#paymentDialog .payment-account-choice{width:52px;height:52px;min-height:52px;padding:8px;justify-content:center}
#paymentDialog .payment-account-choice>span:last-child{display:none}
#paymentDialog .payment-account-choice.selected{border-color:var(--account-color,#2862ef);box-shadow:0 0 0 1px var(--account-color,#2862ef);background:var(--soft)}
#paymentDialog .payment-account-icon{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:9px;background:var(--account-color,#2862ef);color:#fff;font-size:10px;font-weight:700;letter-spacing:.2px}
#paymentDialog .payment-account-hint{margin:6px 0;font-size:11px;line-height:1.35}
#paymentDialog .payment-account-selected{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;align-items:start;margin:8px 0 0;padding:11px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}
#paymentDialog .payment-account-selected[hidden]{display:none}
#paymentDialog .payment-account-selected h4{grid-column:1/-1;margin:0;font-size:14px}
#paymentDialog .payment-account-selected dl{grid-column:1;grid-template-columns:82px minmax(0,1fr);gap:5px 8px;margin:0;font-size:12px}
#paymentDialog .payment-account-selected dd{font-weight:600}
#paymentDialog .payment-account-selected{grid-template-columns:minmax(0,1fr) 82px;gap:4px 10px;padding:10px}
#paymentDialog .payment-account-selected h4{grid-column:1;font-size:13px}
#paymentDialog .payment-account-selected dl{grid-template-columns:minmax(0,1fr);gap:0;font-size:12px}
#paymentDialog .payment-account-selected dt{font-size:10px;line-height:1.3}
#paymentDialog .payment-account-selected dd{display:flex;align-items:center;gap:3px;justify-content:flex-start;min-width:0}
#paymentDialog .payment-account-selected dd>span{min-width:0;overflow-wrap:anywhere;user-select:text}
#paymentDialog .payment-copy{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:7px;border:0;border-radius:7px;background:transparent;color:#8b98ac}
#paymentDialog .payment-copy svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.45}
#paymentDialog .payment-copy:hover svg,#paymentDialog .payment-copy:focus-visible svg{opacity:1}
#paymentDialog .payment-copy:hover,#paymentDialog .payment-copy:focus-visible{color:#526780;background:var(--surface)}
#paymentDialog .payment-qr-zoom{grid-column:2;grid-row:1/3;padding:0;border:0;background:transparent;justify-self:end;align-self:center;margin:0}
#paymentDialog .payment-qr-zoom img{width:100px;height:100px;max-width:100%;margin:0;object-fit:contain}
#paymentQrZoom{box-sizing:border-box;max-width:calc(100% - 24px);padding:18px;border-radius:22px;max-height:calc(100dvh - 32px)}
#paymentQrZoom h2{font-size:18px}
#paymentQrZoom>img{display:block;width:100%;height:auto;max-height:calc(100dvh - 120px);object-fit:contain;margin:12px auto 0;background:white}
#paymentDialog .payment-account-selected img{display:block;width:82px;height:82px;object-fit:contain;margin:0;border-radius:8px;background:#fff}
#paymentDialog .payment-request-form{margin-top:10px;padding-top:10px}
#paymentDialog .payment-request-form label{margin:7px 0}
#paymentDialog .payment-request-history{margin-top:5px}
/* Shorter payment form, with readable mobile inputs and usable tap targets. */
#paymentDialog .payment-head h2{font-size:17px;line-height:1.25}
#paymentDialog .payment-head p{font-size:11px;line-height:1.3}
#paymentDialog .payment-note{font-size:11px;margin:6px 0;line-height:1.3}
#paymentDialog .payment-destinations{margin-top:6px}
#paymentDialog .payment-destinations>h3{font-size:12px;margin-bottom:5px}
#paymentDialog .payment-account-choice{width:44px;height:44px;min-height:44px;padding:6px;border-radius:11px}
#paymentDialog .payment-account-hint{font-size:10px;margin:4px 0;line-height:1.3}
#paymentDialog .payment-request-form{margin-top:7px;padding-top:7px}
#paymentDialog .payment-request-form h3{font-size:14px;line-height:1.3;margin-bottom:5px}
#paymentDialog .payment-request-form>p{font-size:12px;margin-bottom:4px}
#paymentDialog .payment-request-form label{font-size:11px;margin:5px 0;gap:3px;line-height:1.3}
#paymentDialog .payment-request-form input{padding:6px 9px;min-height:40px;border-radius:10px}
#paymentDialog .payment-request-form summary{font-size:11px;padding:3px 0;line-height:1.3}
#paymentDialog .payment-request-form .payment-approval-note{font-size:10px;margin:5px 0 2px}
#paymentDialog .payment-help{margin-bottom:5px}
#paymentDialog .payment-request-history>summary{font-size:11px;padding:4px 0}
@media(min-width:700px){
 #paymentDialog{width:min(640px,calc(100vw - 64px));max-height:calc(var(--payment-viewport-height,100dvh) - 48px);padding:12px}
 #paymentDialog .payment-scroll{max-height:calc(var(--payment-viewport-height,100dvh) - 76px);padding:16px}
 #paymentDialog .payment-head h2{font-size:22px}
 #paymentDialog .payment-head p,#paymentDialog .payment-note{font-size:13px}
 #paymentDialog .payment-destinations>h3,#paymentDialog .payment-request-form h3{font-size:16px}
 #paymentDialog .payment-request-form>p{font-size:14px}
 #paymentDialog .payment-request-form label{font-size:13px;margin:8px 0;gap:5px}
 #paymentDialog .payment-request-form input{min-height:44px;padding:9px 11px}
 #paymentDialog .payment-request-form summary,#paymentDialog .payment-request-history>summary{font-size:13px}
 #paymentDialog .payment-account-hint,#paymentDialog .payment-request-form .payment-approval-note{font-size:12px}
 #paymentDialog .payment-account-choice{width:50px;height:50px}
 #paymentDialog .payment-account-selected{grid-template-columns:minmax(0,1fr) 100px;padding:12px;gap:5px 16px}
 #paymentDialog .payment-account-selected img{width:100px;height:100px}
 #paymentDialog .payment-account-selected h4{font-size:15px}
 #paymentDialog .payment-account-selected dl{font-size:14px}
 #paymentDialog .payment-account-selected dt{font-size:12px}
}
@media(min-width:1200px){#paymentDialog{width:min(720px,calc(100vw - 96px))}}
.payment-request-form{border-top:1px solid var(--line);margin-top:14px;padding-top:14px}.payment-request-form label{margin:10px 0;gap:4px}.payment-request-form .primary{width:100%}.payment-request-history{margin-top:14px}.payment-request-form details p{font-size:12px;margin:8px 0}
.payment-request-form h3{font-size:17px;margin:0 0 8px}.payment-request-form>p{margin:0 0 8px}.payment-field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.payment-field-row>label{min-width:0}.payment-request-form .payment-approval-note{margin:8px 0 4px}.payment-help{margin:0 0 10px}.payment-help summary{font-size:12px;color:var(--muted);cursor:pointer;padding:6px 0}.payment-request-form input,.payment-request-form select{padding:9px 10px;min-height:44px}.payment-request-form .primary{min-height:44px;padding:10px 12px}.payment-request-history>summary{font-size:13px;padding:6px 0;cursor:pointer}@media(max-width:359px){.payment-field-row{grid-template-columns:1fr;gap:0}}
@media(max-width:380px){#paymentDialog{width:calc(100% - 24px)}#paymentDialog .payment-account-selected{grid-template-columns:minmax(0,1fr) 72px;gap:4px 7px}#paymentDialog .payment-account-selected img{width:72px;height:72px}}
.payment-status{display:inline-block;padding:4px 8px;border-radius:7px;font-size:11px;font-weight:600;line-height:1.4}.payment-status.paid{color:#16733c;background:#eaf8ef}.payment-status.partial{color:#8b5700;background:#fff4db}.payment-status.advance{color:#6540a7;background:#f1eaff}.payment-status.unpaid{color:#a13838;background:#fff0f0}.dark .payment-status{background:var(--soft);color:var(--text)}@media print{.payment-status{color:#182033!important;background:transparent!important;padding:0}}
.session-loading{min-height:60vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:var(--muted)}.session-spinner{width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:session-spin .8s linear infinite}@keyframes session-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.session-spinner{animation:none}}
.account-menu{position:relative}.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:160px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px #0002;z-index:30}.account-dropdown button{display:block;width:100%;border:0;text-align:left}.account-dropdown button:hover{background:var(--soft)}.profile-shortcut[aria-expanded=true] svg{transform:rotate(180deg)}
.brand .brand-mark{display:flex;align-items:center;justify-content:center;background:transparent;border-radius:0;overflow:hidden;padding:3px;flex-shrink:0}.brand-mark #companyLogo{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:center;padding:0;flex:0 1 auto}
.bottom-nav.bottom-nav{height:82px;padding:8px 22px;border:1px solid #e5ebf4;border-radius:24px;gap:6px;background:var(--surface);box-shadow:0 10px 32px rgba(35,60,105,.14)}
body.dark .bottom-nav.bottom-nav{border:0;box-shadow:0 10px 32px rgba(0,0,0,.2)}
.bottom-nav.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:17px;padding:5px;font-size:11px;font-weight:700;color:var(--text);background:transparent;line-height:1.2}
.bottom-nav.bottom-nav button[aria-current=page]{color:#2862ef;background:#f1f5ff}.dark .bottom-nav.bottom-nav button[aria-current=page]{background:var(--soft)}
.bottom-nav.bottom-nav svg.icon{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
@media(max-width:680px){.bottom-nav.bottom-nav{height:76px;padding:7px 14px;border-radius:22px;bottom:max(10px,env(safe-area-inset-bottom))}.bottom-nav.bottom-nav button{font-size:10px}.bottom-nav.bottom-nav svg.icon{width:25px;height:25px}}
@media(min-width:900px){.bottom-nav.bottom-nav{height:88px;padding:9px 34px;border-radius:25px}.bottom-nav.bottom-nav button{font-size:12px}.bottom-nav.bottom-nav svg.icon{width:29px;height:29px}}
#internetStatus[data-status=active]{color:#149447}#internetStatus[data-status=disabled]{color:#d74747}#internetStatus[data-status=adjustment]{color:#b87516}#view-home #internetStatusNote{font-size:11px;margin-top:4px}#internetStatusNote:empty{display:none}
.login .login-emblem{width:88px;height:88px;background:#fff;border-radius:24px;overflow:hidden}.login-emblem img{width:100%;height:100%;object-fit:contain;display:block;padding:4px}
body:has(#portal:not([hidden])) main{max-width:1040px;padding-top:34px}
.topbar{min-height:74px}.brand-name{font-weight:700}.avatar{font-size:16px}
.profile-shortcut{border:0;background:transparent;padding:8px;color:var(--text);line-height:1}
#view-home .welcome{margin:0 0 26px}#view-home .welcome h1{font-size:29px;letter-spacing:-.6px;margin-bottom:6px}#view-home .welcome p{font-size:18px}
#view-home .hero{border:0;border-radius:29px;padding:28px 26px;margin-bottom:22px;box-shadow:0 16px 36px #233f7807}
#view-home .hero-label{font-size:18px}#view-home .hero strong{font-size:44px;font-weight:750;letter-spacing:-2px;margin:8px 0 12px;max-width:calc(100% - 45px);overflow-wrap:anywhere}
#view-home .hero .bill-watermark{width:56px;height:56px;right:27px;top:49px;stroke:#e7eeff}
#view-home .hero .primary{min-height:56px;border-radius:18px;margin-top:15px;font-size:17px;font-weight:700;background:#2860ed}
#view-home .hero .muted{font-size:11px;max-width:88%;line-height:1.5}
#view-home .hero{display:block}
#view-home .balance-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}
#view-home .balance-top .balance-copy{flex:1}
#view-home .hero .balance-copy{min-width:0}#view-home .hero .balance-copy strong{max-width:100%;margin-bottom:0;font-size:clamp(32px,5vw,58px)}
#view-home .hero svg.bill-watermark{position:static;display:block;flex:none;fill:none;stroke:#e7eeff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#view-home .hero #payNow{grid-column:1/-1;display:block;width:100%;margin-top:0}
#view-home .balance-caption{font-size:11px;color:var(--muted);line-height:1.6;margin:-10px 12px 22px}
#view-home .summaries{grid-template-columns:1fr;gap:12px}
#view-home .summary{border:0;border-radius:26px;margin:0;padding:18px 20px;min-height:89px;gap:17px;box-shadow:0 14px 35px #233f7806}
#view-home .summary .tile-icon{width:56px;height:56px;border-radius:19px}#view-home .tile-icon svg{width:28px;height:28px}
#view-home .summary strong{font-size:20px;line-height:1.3;margin-top:3px;font-weight:650}#view-home .summary span{font-size:14px}
#view-home .summary:first-child .tile-icon{background:#edf9f2;color:#24885c}
#homeDue{color:var(--blue)}
.bottom-nav{border-radius:27px;padding:8px 13px;bottom:8px;box-shadow:0 9px 30px #233f7808}.bottom-nav button{padding:10px 5px;border-radius:22px;font-size:12px;gap:5px}.bottom-nav svg.icon{width:27px;height:27px}
@media(min-width:700px){body:has(#portal:not([hidden])) main{padding:48px 28px 135px}.topbar{min-height:94px}.brand-name{font-size:22px}.brand-mark,.avatar{width:54px;height:54px}.avatar{font-size:20px}#view-home .welcome h1{font-size:38px}#view-home .welcome p{font-size:23px}#view-home .welcome{margin-bottom:35px}#view-home .hero{padding:35px 38px;border-radius:34px}#view-home .hero strong{font-size:58px}#view-home .hero-label{font-size:23px}#view-home .hero .primary{min-height:66px;font-size:21px}#view-home .hero .bill-watermark{width:78px;height:78px;right:45px;top:55px}#view-home .summary{padding:24px 28px;min-height:112px}#view-home .summary .tile-icon{width:66px;height:66px}#view-home .summary strong{font-size:24px}#view-home .summary span{font-size:17px}.bottom-nav{max-width:980px}}
@media(max-width:360px){#view-home .welcome h1{font-size:25px}#view-home .hero{padding:23px}#view-home .hero strong{font-size:35px}.brand-name{font-size:13px}.top-actions{gap:1px}#view-home .summary strong{font-size:18px}}
#paymentQrZoom>img{display:block;width:100%;max-height:52dvh;object-fit:contain;margin:12px auto;background:#fff}
#paymentQrZoom .payment-qr-details{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:2px 8px;margin:8px 0;padding:8px 10px;background:var(--soft);border-radius:10px}
#paymentQrZoom dt{font-size:12px;color:var(--muted)}
#paymentQrZoom dd{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:600;overflow-wrap:anywhere}
#paymentQrZoom dd>span{min-width:0;user-select:text}
#paymentQrZoom .payment-copy{display:grid;place-items:center;flex:none;width:32px;height:32px;padding:7px;border:0;border-radius:8px;background:transparent;color:var(--blue)}
#paymentQrZoom .payment-copy svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#paymentQrZoom .payment-qr-download{display:block;min-height:0;margin:0;text-align:center;text-decoration:none;padding:9px 12px;font-size:14px;line-height:20px;border-radius:10px}
