:root{--portal-primary:#2b3fff;--portal-soft:#eef0ff}
.auth-screen{background:linear-gradient(135deg,#242fa4,#111a66,#080d32)!important;overflow-y:auto;min-height:100dvh}
.auth-logo-img{width:180px!important;height:100px!important;object-fit:contain!important;border-radius:0!important;box-shadow:none!important}
.auth-tabs{border-color:var(--portal-primary)!important}
.auth-tab.active,.auth-btn:not(.auth-btn-neutral){background:var(--portal-primary)!important}
.auth-label i{color:var(--portal-primary)!important}
.affiliate-shell-heading{display:none!important}
.affiliate-header{flex-wrap:wrap!important}
.affiliate-brand img{width:110px!important;height:44px!important;background:#111a66;border-radius:8px;padding:5px;object-fit:contain}
.affiliate-brand,.affiliate-shell{color:#172033!important}
.affiliate-logout,.affiliate-denied button,.afil-btn,.afil-btn-small{background:var(--portal-primary)!important}
.date-form button{background:var(--portal-primary)!important;border-color:var(--portal-primary)!important}
.portal-nav{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-left:auto}
.portal-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 12px;color:#475569;text-decoration:none;font-size:13px;font-weight:700;border-radius:8px;border:1px solid transparent}
.portal-nav a[aria-current=page]{color:var(--portal-primary);background:var(--portal-soft);border-color:#d9ddff}
.portal-nav a:hover{background:var(--portal-soft)}
.affiliate-main{width:min(1280px,100%)!important}
.afil-link-box,.afil-ref,.afil-empty{background:#fff!important;border-color:#e1e4e8!important}
.afil-code,.afil-ref-name,.afil-ref-val{color:#172033!important}
.afil-label,.afil-ref-label,.afil-ref-date,.afil-qr-hint{color:#64748b!important}
.afil-url-input{background:#f8fafc!important;color:#172033!important;border-color:#d6d9de!important}
.afil-ref-badge{background:var(--portal-soft)!important;border-color:#d9ddff!important;color:var(--portal-primary)!important}
.afil-empty p{color:#475569!important}
.afil-qr-box{border-color:#e1e4e8!important}
@media(max-width:640px){.affiliate-header{padding:10px 12px!important;gap:8px!important}.affiliate-brand{font-size:13px!important}.affiliate-brand img{width:64px!important;height:36px!important}.portal-nav{order:3;width:100%;margin:0;flex-wrap:nowrap;overflow-x:auto}.portal-nav a{flex:1;padding:8px;font-size:12px;white-space:nowrap}.affiliate-logout{margin-left:auto}.auth-screen{padding:16px!important}.auth-form{padding:20px!important}.auth-logo{margin-bottom:20px!important}.afil-url-row{flex-wrap:wrap}.afil-url-input{flex-basis:100%!important}.afil-btn{min-height:42px}}
@media(max-height:700px){.auth-screen{align-items:flex-start!important}.auth-logo{margin-bottom:14px!important}}
