/* APCS staff-screen branding. Kept separate from invoice and PDF styles. */
@media screen {
 body.apcs-app{--apcs-navy:#225276;--apcs-aqua:#5dc4dc;--apcs-pale:#aee1ed;color:#263e50;background:#f5f7f9;min-height:100vh}
 .apcs-app>header{background:var(--apcs-navy) url("apcs-waves.png") no-repeat right 47%;background-size:650px auto;border-bottom:3px solid var(--apcs-aqua);padding:.65rem 2rem;min-height:70px;box-sizing:border-box;box-shadow:0 3px 12px #173b5514}
 .apcs-app .brand-home{display:inline-flex;align-items:center;flex:0 0 auto;border-radius:.3rem}
 .apcs-app .apcs-logo{display:block;width:112px;height:auto;max-width:100%}
 .apcs-app>main>h1{color:var(--apcs-navy);font-weight:650;letter-spacing:-.025em}
 .apcs-app a{color:#225276;text-underline-offset:.18em}
 .apcs-app button,.apcs-app .button-link{background:var(--apcs-navy);border:1px solid var(--apcs-navy);color:#fff;border-radius:.4rem}
 .apcs-app button:hover,.apcs-app .button-link:hover{background:#193f5b;border-color:#193f5b}
 .apcs-app button:disabled{opacity:.55;cursor:not-allowed}
 .apcs-app :is(input,select,textarea){border-color:#b6c9d5;border-radius:.4rem;background-color:#fff;color:#263e50}
 .apcs-app :is(input[type=checkbox],input[type=radio],progress){accent-color:var(--apcs-navy)}
 .apcs-app :is(a,button,input,select,textarea):focus-visible{outline:3px solid #5dc4dc;outline-offset:3px}
 .apcs-app .card{border-color:#dce6ed;border-radius:.65rem;box-shadow:0 2px 8px #22527608}
 .apcs-app .card h2,.apcs-app .card h3{color:var(--apcs-navy)}
 .apcs-app .table-wrap{border:1px solid #dce6ed;border-radius:.5rem;background:#fff}
 .apcs-app table th{background:#e8f3f7;color:#225276;border-bottom-color:#bfdbe5}
 .apcs-app td{border-bottom-color:#e4ebf0}
 .apcs-app .header-logout button,.apcs-app :is(.header-plans,.header-balances,.header-config,.header-radius){background:#ffffff0d;border-color:#aee1ed;color:#fff}
 .apcs-app .header-logout button:hover,.apcs-app :is(.header-plans,.header-balances,.header-config,.header-radius):hover{background:#ffffff20}
 .apcs-app .header-customer-search input{border-color:#aee1ed;box-shadow:none}
 .apcs-app .header-customer-results a:hover,.apcs-app .header-customer-results a:focus{background:#e8f6fa}
 .apcs-app .icon-button{background:#fff;border-color:#bfd4df;color:#225276}
 .apcs-app .icon-button:hover{background:#e8f6fa}
 .apcs-app .config-nav a[aria-current=page]{border-bottom-color:var(--apcs-aqua)}
 .apcs-app .starlink-bar,.apcs-app .starlink-mini-chart rect{fill:#225276}
 .apcs-app .starlink-progress,.apcs-app .starlink-mini progress{accent-color:#225276}
 .apcs-app .starlink-progress.quota-warning{accent-color:#c38117}
 .apcs-app .starlink-progress.quota-high{accent-color:#c33232}
 @media(max-width:700px){.apcs-app>header{padding:.65rem 1rem;background-size:480px auto}.apcs-app .apcs-logo{width:96px}}
}

/* Visual refinement inspired by members.apcs.com.pg; existing controls retained. */
@media screen {
 body.apcs-app{color:#193b50;background:#f6f8fa;line-height:1.5}
 .apcs-app>header{box-shadow:none}
 .apcs-app .card{border-color:#e1e9ef;border-radius:.75rem;box-shadow:0 2px 6px #18364d03}
 .apcs-app :is(input,select,textarea){border-color:#dce5eb;border-radius:7px;box-shadow:0 2px 2px #18364d02}
 .apcs-app button,.apcs-app .button-link{border-radius:7px;font-weight:500}
 .apcs-app table th{background:#edf5f9;font-size:.85rem;font-weight:600;letter-spacing:.01em}
 .apcs-app td{font-size:.9rem}
 .apcs-app .table-wrap{border-color:#e1e9ef;border-radius:.65rem}
 body.apcs-login{display:grid;grid-template-columns:1fr 1fr;background:#fff;min-height:100vh}
 .apcs-login>header{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;min-height:100vh;border:0;padding:34px 56px 28px;background:#225276;overflow:hidden}
 .apcs-login>header .header-brand{position:relative;z-index:1}
 .apcs-login>header .apcs-logo{width:136px}
 .portal-login-illustration{position:relative;display:grid;place-items:center;width:360px;height:340px;max-width:100%;margin:10px auto 24px;color:#aee1ed;flex-shrink:0}
 .portal-orbit{position:absolute;border:1px solid #aee1ed22;border-radius:50%;width:300px;height:300px}
 .portal-orbit-outer{width:380px;height:380px;border-color:#aee1ed0b}
 .portal-orbit-inner{width:220px;height:220px;border-style:dashed;border-color:#aee1ed44}
 .portal-globe{display:grid;place-items:center;width:126px;height:126px;background:#2b607f;border:1px solid #82c9df77;border-radius:50%}
 .portal-node{position:absolute;display:grid;place-items:center;width:53px;height:53px;border:1px solid #74bbd255;background:#2d6482;border-radius:12px}
 .portal-node-wifi{right:27px;top:60px;transform:rotate(10deg)}
 .portal-node-network{left:25px;bottom:55px;transform:rotate(-10deg)}
 .portal-dot{position:absolute;width:8px;height:8px;background:#5dc4dc;border-radius:50%;box-shadow:0 0 0 6px #5dc4dc12}
 .portal-dot-one{left:45px;top:80px}.portal-dot-two{right:53px;bottom:70px}
 .portal-connection-label{position:absolute;bottom:12px;background:#2b5c79;border:1px solid #8dc6d62a;border-radius:20px;padding:7px 14px;font-size:8px;letter-spacing:.13em;text-transform:uppercase}
 .portal-connection-label::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#5dc9a2;margin-right:8px}
 .portal-login-copy{position:relative;z-index:1;max-width:420px;margin:auto 0;padding:12px 0 50px}
 .apcs-login .portal-eyebrow{font-size:9px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#89d3e5}
 .portal-login-copy h2{font-size:clamp(36px,3.7vw,64px);font-weight:600;letter-spacing:-.055em;line-height:1.12;margin:22px 0 24px;color:#fff}
 .portal-login-copy h2 span{color:#5dc4dc}
 .portal-login-copy p{font-size:14px;line-height:1.8;color:#b7cfdd;max-width:320px}
 .portal-login-copy small{display:block;margin-top:35px;font-size:11px;color:#a4c2d3}
 .portal-login-brand-footer{position:relative;display:flex;justify-content:space-between;gap:10px;padding-top:22px;border-top:1px solid #ffffff1c;color:#91aebf;font-size:8px}
 .apcs-login>main{position:relative;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;width:100%;max-width:none;margin:0;padding:100px max(35px,calc((100% - 365px)/2));min-width:0}
 .portal-login-meta{position:absolute;top:36px;left:45px;color:#55768d;font-size:11px;font-weight:600}
 .portal-login-lock{display:grid;place-items:center;width:53px;height:53px;border:1px solid #e4eef4;border-radius:13px;background:#edf5f9;color:#225276;margin-bottom:27px}
 .apcs-login .portal-login-form-intro .portal-eyebrow{color:#8197a6;font-size:8px;margin:0 0 9px}
 .apcs-login .portal-login-form-intro h1{color:#193b50;font-size:29px;line-height:1.25;font-weight:600;letter-spacing:-.045em;margin:0}
 .portal-login-description{font-size:12px;line-height:1.6;color:#8197a6;margin:16px 0 30px}
 .apcs-login>main>form{display:flex;flex-direction:column;align-items:stretch;gap:20px;width:100%;margin:0}
 .apcs-login>main>form label{font-size:11px;font-weight:600;gap:9px}
 .apcs-login>main>form input{height:46px;box-sizing:border-box;font-size:13px;padding:0 14px;width:100%;min-width:0;font-weight:400}
 .apcs-login>main>form button{height:45px;margin-top:24px;text-align:left;padding:0 17px;font-size:12px;display:flex;justify-content:space-between;align-items:center}
 .apcs-login>main>form button::after{content:"→";font-size:20px;font-weight:400}
 .portal-login-footer{position:absolute;bottom:28px;left:45px;color:#8197a6;font-size:10px}
 .apcs-login>main>[role=alert]{font-size:13px;margin:0 0 20px}
 @media(min-width:1500px){.apcs-login>header{padding-left:90px;padding-right:90px}.portal-login-illustration{margin-top:30px}}
 @media(max-width:1100px){.apcs-login>header{padding-left:35px;padding-right:35px}.portal-login-illustration{width:280px;height:300px}.portal-orbit{width:260px;height:260px}.portal-orbit-outer{width:320px;height:320px}.portal-orbit-inner{width:190px;height:190px}.portal-node-wifi{right:0}.portal-node-network{left:0}.portal-login-brand-footer span{display:none}}
 @media(max-width:760px){body.apcs-login{display:block}.apcs-login>header{min-height:0;padding:24px 28px 28px}.apcs-login>header .apcs-logo{width:115px}.portal-login-illustration,.portal-login-brand-footer,.portal-login-copy small{display:none}.portal-login-copy{padding:25px 0 0;margin:0;max-width:none}.portal-login-copy h2{font-size:34px;margin:12px 0}.portal-login-copy h2 br{display:none}.portal-login-copy h2 br::after{content:" "}.portal-login-copy p{font-size:12px;margin:10px 0 0}.portal-login-copy p br{display:none}.apcs-login>main{padding:90px 28px;max-width:486px;margin:auto;min-height:610px}.portal-login-meta{top:24px;left:28px}.portal-login-lock{display:none}.portal-login-footer{left:28px;bottom:24px}.apcs-login .portal-login-form-intro h1{font-size:28px}}
}
