:root{--red:#d6103c;--red-dark:#b50e32;--bg:#f2f2f8;--ink:#252528;--muted:#85858b;--line:#e5e5eb;--white:#fff;--radius:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5;background:var(--bg)}button,input,select,textarea{font:inherit}button,a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;border:0;border-radius:999px;background:var(--red);color:white;padding:10px 18px;font-size:12px;font-weight:650;cursor:pointer;text-decoration:none;transition:background .15s,box-shadow .15s}button:hover,a.button:hover{background:var(--red-dark)}button:disabled{opacity:.45;cursor:not-allowed}button.secondary{background:#e8e8ed;color:var(--ink)}button.secondary:hover{background:#dcdce4}button.white,a.button.white{background:#fff;color:var(--red)}button.outline-white{border:1px solid #ffffffd0;background:transparent;color:white}button.outline-white:hover{background:#ffffff15}a{color:var(--red);text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #5077ff;outline-offset:3px}header{display:flex;align-items:center;justify-content:space-between;padding:20px 32px;border-bottom:1px solid var(--line);gap:20px}header .brand-mark{display:flex;gap:12px;align-items:center}header .brand-mark img{width:48px;height:48px;border-radius:14px}header .brand-mark b{font-size:20px}header .brand-mark small{font-size:13px}#account{display:flex;align-items:center;gap:18px}main{max-width:1500px;margin:0 auto;padding:40px 32px 64px}.admin-page>header{display:contents}.admin-page>header>.brand-mark{display:none}.admin-page main{margin-left:208px;max-width:none;padding:34px 30px 60px}.sidebar{position:fixed;inset:0 auto 0 0;width:208px;border-right:1px solid var(--line);background:#fbfbfe;display:flex;flex-direction:column;padding:22px 13px;z-index:20}.workspace-brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--ink);margin:0 6px 30px}.workspace-brand img{width:42px;height:42px;border-radius:12px}.workspace-brand b{font-size:16px}.workspace-brand small{font-size:11px;color:var(--muted)}.sidebar nav{display:grid;gap:9px}.sidebar .nav-item{width:100%;justify-content:flex-start;border-radius:12px;background:transparent;color:var(--ink);font-size:13px;font-weight:450;min-height:46px;padding:9px;gap:12px;text-align:left}.sidebar .nav-item:hover{background:#eeeef5}.nav-icon{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:var(--nav-color,#d6103c);color:white;flex:none}.nav-icon svg{width:19px;height:19px}.nav-overview{--nav-color:#d6103c;--nav-bg:#f9e8ed}.nav-applications{--nav-color:#3867fa;--nav-bg:#eaf0ff}.nav-statements{--nav-color:#66a76b;--nav-bg:#eaf5eb}.nav-ambassadors{--nav-color:#f2a323;--nav-bg:#fff3df}.nav-codes{--nav-color:#8b58f6;--nav-bg:#f0eafd}.nav-audit{--nav-color:#96969b;--nav-bg:#ececef}.sidebar .nav-item.active{background:var(--nav-bg);color:var(--nav-color);font-weight:650}.sidebar-footer{display:flex;align-items:center;gap:10px;margin-top:auto;padding:24px 0 0}.sidebar-footer .avatar{width:30px;height:30px;font-size:13px}.sidebar-footer button{min-height:32px;padding:7px 17px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px;flex-wrap:wrap}.eyebrow{font-size:10px;font-weight:600;color:var(--muted);margin:0 0 6px;letter-spacing:.025em}h1{font-size:clamp(25px,2.45vw,36px);line-height:1.15;letter-spacing:-1px;margin:0;font-weight:700}h2{font-size:16px;line-height:1.3;margin:0 0 16px;font-weight:650;letter-spacing:-.25px}p{margin-top:0}.muted,small{color:var(--muted)}small{display:block;font-size:11px;font-weight:400;line-height:1.5}.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.filter-group{display:flex;align-items:center;padding:3px;background:#e5e5eb;border-radius:11px;max-width:100%}.filter-group select{border:0;background:transparent;border-radius:8px;width:auto;font-weight:600;font-size:10px;padding:10px 22px 10px 10px;max-width:140px}.filter-group select:first-child{background:white}.filters>button{font-size:10px;min-height:36px;padding:9px 15px}input,select,textarea{color:var(--ink);width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 13px;background:#f5f5f8;min-height:42px}label{display:block;color:#74747c;font-size:12px;margin:12px 0}textarea{min-height:90px;resize:vertical}input[type=checkbox]{width:16px;min-height:16px;height:16px;accent-color:var(--red)}.hero{background:var(--red);color:white;border-radius:26px;padding:28px 32px;display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:20px;min-height:170px}.hero>div:first-child{min-width:0}.hero p{font-size:13px;margin-bottom:5px;color:#ffffffd5}.hero-number{font-size:clamp(44px,5.2vw,70px);line-height:1.17;letter-spacing:-2px;font-weight:500}.hero .hero-note{font-size:12px;color:#ffffffaf;max-width:650px;margin:12px 0 0}.hero-actions{display:grid;gap:8px;min-width:190px;flex-shrink:0}.hero-actions button,.hero-actions .button{font-size:12px;min-height:40px}.card{background:white;border:0;border-radius:var(--radius);padding:22px;margin-bottom:20px;min-width:0}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stats-grid .card{margin:0}.stat-card{display:flex;flex-direction:column;min-height:132px;gap:12px;padding:21px}.stat-card p{font-size:11px;line-height:1.3;margin:0}.stat-card strong{font-size:clamp(22px,2.3vw,34px);font-weight:650;letter-spacing:-.8px;line-height:1.25;overflow-wrap:anywhere}.stat-card small{font-size:10px;margin-top:auto}.payout-stat{display:flex;align-items:center;gap:14px}.payout-stat strong{display:block;font-size:19px;letter-spacing:-.5px}.payout-stat small{font-size:10px;margin-bottom:4px}.progress-ring{background:conic-gradient(var(--red) var(--progress),#f1e2e7 0);width:64px;height:64px;border-radius:50%;display:grid;place-items:center;flex:none;position:relative}.progress-ring:before{content:'';position:absolute;inset:7px;border-radius:50%;background:white}.progress-ring b{position:relative;font-size:14px}.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.overview-grid>.card{margin-bottom:0}.overview-grid{margin-bottom:20px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:15px;flex-wrap:wrap}.section-heading h2{margin:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.section-heading>a{font-size:11px;font-weight:600;text-decoration:none}.section-heading>button{font-size:10px;min-height:30px;padding:7px 12px}.avatar{display:inline-grid;place-items:center;flex:none;width:34px;height:34px;background:var(--red);border-radius:50%;font-size:14px;color:white;font-weight:500}.tone-1{background:#3867fa}.tone-2{background:#ac681c}.tone-3{background:#96969b}.list-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f0f0f4}.list-row:last-of-type{border-bottom:0}.grow{flex:1;min-width:0}.grow b{font-size:12px}.grow small{font-size:10px}.badge{display:inline-block;white-space:nowrap;border-radius:30px;padding:3px 9px;background:#f9e8ed;color:#b92041;font-size:10px;line-height:1.4;font-weight:600}.badge.green{background:#e8f5ee;color:#568d70}.badge.amber{background:#fff3d8;color:#a47835}.badge.neutral{background:#eeeef2;color:#85858b}.badge.red{background:#fde6eb;color:#b51b3c}.statement-preview{display:block;text-align:left;border-radius:16px;width:100%;background:#f6f6f9;color:var(--ink);padding:16px;margin-bottom:12px}.statement-preview:hover{background:#eeeeF4}.statement-preview .section-heading{margin-bottom:2px}.statement-preview small{font-size:10px}.mini-stats{display:flex;gap:20px;font-size:12px;margin-top:12px}.mini-stats span{display:block}.inline-actions{display:flex;gap:8px;flex-wrap:wrap}.inline-actions button{font-size:10px;min-height:30px;padding:8px 14px}.code-count{display:flex;align-items:baseline;gap:16px;margin:20px 0 12px}.code-count strong{font-size:48px;line-height:1.2;color:var(--red);letter-spacing:-2px}.code-count span{font-size:11px}.code-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:32px}.code-chips span{font-size:9px;background:#f0f0f3;color:#818189;border-radius:20px;padding:3px 9px}.text-button{background:transparent;color:var(--red);padding:6px 0;min-height:26px;font-size:11px}.text-button:hover{background:transparent;text-decoration:underline}.tabs{display:flex;gap:7px;flex-wrap:wrap}.tabs button{border:1px solid var(--line);background:white;color:var(--ink);font-weight:450;font-size:12px;min-height:32px;padding:7px 15px}.tabs button.selected{background:var(--ink);color:white;border-color:var(--ink)}.code-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.code-card{padding:17px 16px;border:1px solid var(--line);border-radius:18px;margin:0;display:flex;flex-direction:column}.code-card .section-heading{margin-bottom:14px;align-items:flex-start}.code-card h2{font-size:14px;overflow-wrap:anywhere;margin-bottom:2px}.code-card>small{font-size:10px}.code-card .section-heading>small{max-width:60%;text-align:right}.detail-list{margin:14px 0 18px}.detail-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:12px}.detail-list>div:last-child{border-bottom:0}.detail-list dt{color:#686870;min-width:0}.detail-list dd{margin:0;text-align:right;font-weight:600;overflow-wrap:anywhere}.code-card .detail-list>div{font-size:11px;padding:8px 0}.code-card .muted{font-size:10px;line-height:1.45;flex:1;min-height:30px;margin:0 0 10px}.code-card>button{width:100%;font-size:11px;min-height:34px;margin-top:6px}.show-more{text-align:center;margin:22px 0}.show-more button{font-size:12px}.fine-print{font-size:11px;color:var(--muted);line-height:1.6;margin:18px 0 0}.people-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.person-card{margin:0}.person-card .avatar{width:40px;height:40px;font-size:17px}.person-card .inline-actions button{flex:1}.person-card h2{margin:12px 0 4px}.person-inline{display:flex;align-items:center;gap:10px}.person-inline .avatar{width:29px;height:29px;font-size:12px}.directory-toolbar{display:flex;justify-content:space-between;margin-bottom:16px}.search-field{width:320px;max-width:100%;margin:0}.search-field input{background:white;border:1px solid var(--line);border-radius:30px}.scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}th{color:var(--muted);font-weight:500;font-size:10px;padding:13px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:15px 12px;border-bottom:1px solid #f0f0f4;vertical-align:middle;white-space:nowrap}td small{font-size:10px}td button{font-size:10px;min-height:30px;padding:7px 13px}.empty-state{min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;text-align:center;padding:24px;color:var(--ink)}.empty-state p{color:var(--muted);font-size:12px;margin:0 0 8px}.empty-state b{font-size:16px}.empty-icon{display:grid;place-items:center;border-radius:50%;width:52px;height:52px;font-size:25px;background:#fae9ed;color:var(--red);margin-bottom:8px}.audit-entry{padding:20px 0;border-bottom:1px solid var(--line)}.audit-entry p{color:var(--muted);font-size:12px}.audit-entry pre{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;background:#f5f5f8;padding:15px;border-radius:10px}.audit-entry summary{cursor:pointer;color:var(--red);font-size:11px}.currency-notice{font-size:11px;background:#fff8e8;padding:12px 18px;border-radius:12px;margin:-6px 0 18px}.ambassador-page main{max-width:1400px;padding:40px 48px}.ambassador-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.ambassador-stats strong{font-size:21px}.ambassador-page .hero{min-height:180px}.ambassador-page .hero-number{font-size:64px}.ambassador-page .hero-actions{align-self:flex-end}#notice:empty{display:none}#notice{color:#b51b3c;background:#fbe7ec;padding:12px 16px;border-radius:12px;margin-bottom:20px;white-space:pre-wrap;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.honeypot{display:none!important}dialog{border:0;border-radius:20px;padding:28px;width:min(560px,94vw);max-height:90vh;overflow:auto;color:var(--ink);background:white;box-shadow:0 24px 100px #0002}dialog::backdrop{background:#24242a80;backdrop-filter:blur(2px)}dialog h2{font-size:20px;margin-bottom:20px}dialog p{font-size:12px;color:#797981}dialog button{margin:4px 5px 4px 0}dialog #formerror,dialog [role=alert]{color:var(--red)}dialog label{font-size:12px}dialog input,dialog select,dialog textarea{border:0;border-radius:8px;background:#f0f0f5}dialog #preview{background:#f9e7ed;color:var(--red);border-radius:8px;padding:12px;font-weight:600}dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}.tag{display:inline-block;background:#f9e8ed;border-radius:20px;padding:4px 10px;color:var(--red);font-size:11px}.apply-link{display:inline-flex;padding:10px 18px;border-radius:999px;background:var(--red);color:white;text-decoration:none}input[readonly]{opacity:.75}#formerror:empty{display:none}body:not(.app-page):not(.auth-page) main{max-width:800px}.toolbar{display:flex;gap:10px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:16px}.metric{font-size:30px;font-weight:650}.brand{font-size:26px;color:var(--red);font-weight:800}.sub{font-size:11px;color:var(--muted)}
@media(min-width:1600px){.admin-page main{padding:45px 42px 70px}.sidebar{width:230px;padding:28px 16px}.admin-page main{margin-left:230px}.hero{min-height:205px}.card{padding:26px}.stats-grid,.overview-grid{gap:20px}.code-card{padding:22px}.stat-card{min-height:150px}.sidebar .nav-item{font-size:14px;min-height:50px}}
@media(max-width:1180px){.code-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-actions{min-width:160px}.filters{gap:7px}.stats-grid{gap:12px}.payout-stat{gap:8px;flex-wrap:wrap}.payout-stat strong{font-size:16px}.ambassador-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.sidebar{width:174px;padding:18px 10px}.admin-page main{margin-left:174px;padding:24px 20px 40px}.workspace-brand{gap:8px}.workspace-brand img{width:34px;height:34px;border-radius:10px}.workspace-brand b{font-size:13px}.workspace-brand small{font-size:10px}.sidebar .nav-item{font-size:11px;gap:9px;padding:8px}.nav-icon{width:24px;height:24px}.hero{padding:25px;align-items:flex-start}.hero-number{font-size:48px}.hero-actions{min-width:140px;align-self:center}.hero-actions button{font-size:10px;padding:9px 13px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid{grid-template-columns:1fr}.code-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.people-grid{grid-template-columns:1fr}.ambassador-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.ambassador-page main{padding:28px 24px}.ambassador-page header{padding:18px 24px}.hero .hero-note{font-size:11px}.stat-card strong{font-size:28px}}
@media(max-width:600px){.admin-page>header{display:block}.sidebar{position:static;width:100%;height:auto;padding:15px 16px 10px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:12px;background:#fbfbfe}.workspace-brand{margin:0}.workspace-brand b{font-size:16px}.workspace-brand small{font-size:11px}.workspace-brand img{width:38px;height:38px}.sidebar nav{grid-column:1/-1;grid-row:2;display:flex;gap:6px;overflow:auto;padding:2px 0 7px;max-width:calc(100vw - 32px)}.sidebar .nav-item{width:auto;flex-shrink:0;min-height:34px;padding:6px 9px;border-radius:10px;font-size:11px;gap:7px}.nav-icon{width:20px;height:20px;border-radius:6px}.nav-icon svg{width:14px;height:14px}.sidebar-footer{margin:0;padding:0;justify-content:flex-end;gap:5px}.sidebar-footer .avatar{display:none}.sidebar-footer button{padding:7px 12px;font-size:10px}.admin-page main{margin:0;padding:24px 16px 40px}.page-heading{gap:15px;align-items:flex-start;margin-bottom:20px}.page-heading h1{font-size:28px;letter-spacing:-1px}.eyebrow{font-size:9px}.filters{width:100%;gap:8px}.filter-group{flex:1;min-width:0}.filter-group select{font-size:9px;padding:9px 15px 9px 8px;max-width:33.333%;min-width:0}.filters>button{min-height:32px;padding:8px 12px;font-size:9px}.hero{border-radius:22px;display:block;padding:24px;min-height:0;margin-bottom:16px}.hero-number{font-size:54px;line-height:1.25}.hero .hero-note{font-size:11px;margin-top:8px}.hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;min-width:0}.hero-actions>button,.hero-actions>.button{font-size:10px;flex:1;white-space:nowrap;min-height:36px;padding:9px 12px}.card{padding:20px;border-radius:20px;margin-bottom:16px}.stats-grid{gap:10px;margin-bottom:16px}.stat-card{padding:16px;gap:10px;min-height:125px}.stat-card p{font-size:10px}.stat-card strong{font-size:25px;letter-spacing:-.6px}.stat-card small{font-size:9px}.payout-stat{padding:16px;gap:8px;flex-wrap:nowrap;flex-direction:column;align-items:flex-start}.payout-stat .progress-ring{height:42px;width:42px}.progress-ring:before{inset:5px}.progress-ring b{font-size:10px}.payout-stat strong{font-size:17px}.payout-stat .badge{font-size:8px;padding:2px 6px}.overview-grid{gap:14px}.section-heading{gap:8px}.section-heading h2{font-size:15px}.section-heading>button{font-size:9px}.code-grid{gap:10px}.code-card{padding:14px 12px;border-radius:16px}.code-card h2{font-size:12px}.code-card .detail-list>div{font-size:9px;gap:6px}.code-card .section-heading{gap:5px}.code-card .section-heading>small{font-size:8px}.code-card .badge{font-size:8px;padding:3px 7px}.code-card>small,.code-card .muted{font-size:9px}.code-card>button{font-size:9px;padding:8px;min-height:30px}.tabs button{min-height:29px;font-size:10px;padding:6px 13px}.mini-stats{gap:16px;font-size:11px}.ambassador-page header{padding:15px 16px;gap:10px;flex-wrap:wrap}.ambassador-page header .brand-mark b{font-size:16px}.ambassador-page header .brand-mark img{width:38px;height:38px}.ambassador-page header .brand-mark small{font-size:11px}.ambassador-page #account{gap:8px;font-size:11px}.ambassador-page #account button{font-size:10px;min-height:30px;padding:7px 12px}.ambassador-page main{padding:24px 16px}.ambassador-stats strong{font-size:20px}.detail-list>div{font-size:11px}.detail-list dd{max-width:55%}.person-card .inline-actions button{font-size:10px}.fine-print{font-size:10px}.empty-state{padding:20px;min-height:160px}.empty-state b{font-size:14px}.badge{font-size:9px}.hero-actions .white{font-size:10px}dialog{padding:22px 20px}dialog h2{font-size:19px}.currency-notice{font-size:10px}}

/* Append after existing site CSS. Auth rules cannot affect the dashboard. */
.auth-page{margin:0;background:#f3f3f8;color:#242426;font-family:Arial,Helvetica,sans-serif}
.auth-page>header{display:none}
.auth-page>main{max-width:none;margin:0;padding:0}
.auth-page #account{display:none}
.auth-page #app{margin:0;padding:0}
.auth-page #notice:empty{display:none}
.auth-page #notice:not(:empty){position:fixed;right:24px;bottom:20px;z-index:20;max-width:min(520px,calc(100vw - 48px));margin:0;padding:16px 22px;border:1px solid #efc6ce;border-radius:16px;background:#fff;box-shadow:0 8px 30px #0002;color:#ad1232}
.auth-page .auth-layout{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;min-height:100svh}
.auth-page .auth-brand-panel{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0;padding:clamp(32px,3.9vw,94px);background:#cf0030;color:white}
.auth-page .auth-brand{position:absolute;top:clamp(30px,3.55vw,85px);left:clamp(32px,3.9vw,94px);display:flex;align-items:center;gap:18px;color:white;text-decoration:none;font-size:clamp(18px,1.2vw,29px);font-weight:700;line-height:1.15}
.auth-page .auth-brand img{width:clamp(42px,2.9vw,70px);height:auto;border-radius:28%;flex-shrink:0}
.auth-page .auth-brand-message{margin:40px 0 0}
.auth-page .auth-brand-message h1{font-size:clamp(44px,5.05vw,122px);line-height:1.08;letter-spacing:-.035em;margin:0;font-weight:700;color:white}
.auth-page .auth-layout--application .auth-brand-panel{background:#d8123c}
.auth-page .auth-layout--application .auth-brand-message h1{font-size:clamp(40px,4.1vw,98px);font-weight:500;line-height:1.04;letter-spacing:-.025em}
.auth-page .auth-eyebrow{margin:0 0 28px;font-size:clamp(15px,1vw,24px);font-weight:400}
.auth-page .auth-description{font-size:clamp(17px,1.12vw,27px);line-height:1.5;max-width:680px;margin:30px 0 0;color:#ffe6eb}
.auth-page .auth-form-panel{position:relative;display:flex;align-items:center;justify-content:center;padding:100px clamp(32px,6vw,145px);min-width:0;background:#f3f3f8}
.auth-page .auth-form-content{width:100%;max-width:770px}
.auth-page .auth-title{font-size:clamp(24px,2vw,48px);line-height:1.2;letter-spacing:-.015em;margin:0 0 32px;font-weight:700}
.auth-page .auth-form label{display:block;margin:0 0 24px;color:#28282c;font-size:clamp(15px,1.02vw,24px);line-height:1.4}
.auth-page .auth-form input:not([type=checkbox]){display:block;width:100%;height:clamp(50px,3.75vw,90px);margin-top:8px;padding:12px 20px;border:1px solid transparent;border-radius:clamp(14px,1.15vw,28px);background:#e5e5eb;color:#242426;font:inherit;box-shadow:none}
.auth-page .auth-form input::placeholder{color:#85858b;opacity:1}
.auth-page .auth-form input:focus-visible{outline:3px solid #d6183c;outline-offset:3px}
.auth-page .auth-actions{display:flex;gap:12px;margin-top:4px}
.auth-page .auth-primary,.auth-page .auth-secondary,.auth-page .auth-apply-link{display:inline-flex;align-items:center;justify-content:center;min-height:clamp(50px,3.75vw,90px);margin:0;padding:14px 22px;border:0;border-radius:100px;text-decoration:none;font-size:clamp(16px,1.2vw,28px);font-weight:700;line-height:1.2;text-align:center;cursor:pointer}
.auth-page .auth-primary{background:#cf0030;color:white}
.auth-page .auth-secondary{background:#e5e5eb;color:#242426;font-weight:400;white-space:nowrap}
.auth-page .auth-actions .auth-primary{flex:1.4}
.auth-page .auth-actions .auth-secondary{flex:1}
.auth-page .auth-primary:hover{background:#b8002b}
.auth-page .auth-apply{border-top:2px solid #e2e2e9;margin-top:28px;padding-top:20px}
.auth-page .auth-apply>p:first-child{font-size:clamp(16px,1.18vw,28px);font-weight:700;line-height:1.4;margin:0 0 18px}
.auth-page .auth-apply-link{width:100%;background:#fae9ed;color:#c90032}
.auth-page .auth-note{font-size:clamp(13px,.87vw,21px);line-height:1.5;color:#7b7b83;margin:22px 0 0}
.auth-page .auth-back{position:absolute;right:clamp(28px,3.3vw,80px);top:clamp(30px,3.6vw,86px);color:#ca1237;text-decoration:none;font-weight:700;font-size:clamp(16px,1.15vw,27px)}
.auth-page .auth-form .auth-consent{display:flex;align-items:flex-start;gap:14px;background:white;border-radius:18px;padding:18px;margin:0 0 22px;font-weight:400;font-size:clamp(14px,.95vw,23px);line-height:1.5}
.auth-page .auth-consent input[type=checkbox]{flex:none;width:22px;height:22px;margin:2px 0 0;accent-color:#cf0030}
.auth-page .auth-submit{width:100%;background:#d8123c}
.auth-page .auth-return{display:block;text-align:center;margin-top:22px;font-weight:700;color:#ca1237;font-size:clamp(16px,1.1vw,26px);text-decoration:none}
.auth-page .auth-form .honeypot{display:none!important}
.auth-page .auth-error{color:#b01130;line-height:1.5}
.auth-page .auth-error:empty{display:none}
.auth-page .auth-success{font-size:18px;line-height:1.65}
.auth-page .auth-success-tag{display:inline-block;background:#fae9ed;color:#b51131;padding:6px 14px;border-radius:30px;font-size:14px}
.auth-page .auth-primary:disabled{opacity:.45;cursor:not-allowed}
.auth-page a:focus-visible,.auth-page button:focus-visible{outline:3px solid #a90028;outline-offset:4px}
/* Shared dialogs: every selector is confined to dialog and its descendants. */
dialog{box-sizing:border-box;border:0;border-radius:30px;width:min(760px,calc(100vw - 40px));max-height:90vh;padding:34px;background:#fff;color:#242426;box-shadow:0 24px 70px #0002;font-family:Arial,Helvetica,sans-serif}
dialog::backdrop{background:rgba(41,40,48,.34)}
dialog h2{font-size:30px;line-height:1.2;margin:4px 0 26px;font-weight:700;letter-spacing:-.02em}
dialog h3{font-size:20px;margin:24px 0 14px}
dialog form{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px;align-items:start}
dialog form>label,dialog form>p,dialog form>div,dialog form>textarea{grid-column:1/-1}
dialog form>label{display:block;margin:0;font-size:16px;line-height:1.4;color:#272729}
dialog input,dialog select,dialog textarea{display:block;box-sizing:border-box;width:100%;min-width:0;margin-top:7px;padding:15px 19px;border:1px solid transparent;border-radius:16px;background:#efeff1;color:#242426;font:inherit;min-height:54px}
dialog textarea{min-height:105px;resize:vertical}
dialog input:read-only{color:#85858d}
dialog input[type=checkbox]{display:inline-block;width:20px;min-height:20px;margin:0 8px 0 0;accent-color:#cf0030;vertical-align:middle}
dialog input:focus-visible,dialog select:focus-visible,dialog textarea:focus-visible{outline:2px solid #d6183c;outline-offset:2px}
dialog button{font:inherit;font-weight:700;border:0;border-radius:40px;padding:14px 24px;margin:4px 6px 4px 0;background:#d8123c;color:white;min-height:50px;cursor:pointer}
dialog button.secondary{background:#e9e9ed;color:#242426}
dialog button:disabled{opacity:.45;cursor:not-allowed}
dialog form>button:not([type]),dialog form>button[type=submit]{grid-column:2;grid-row:auto;justify-self:end;margin:0}
dialog form>#cancel{grid-column:1;justify-self:end;margin:0;background:#e9e9ed;color:#242426;grid-row:auto}
/* Reorder the existing Save/Cancel pair visually without altering callbacks or DOM. */
dialog form:has(>#cancel)>button:not([type]),dialog form:has(>#cancel)>button[type=submit]{order:90}
dialog form>#cancel{order:89}
dialog form>#formerror{order:100;margin:0;color:#b01130}
dialog p{font-size:15px;line-height:1.55}
dialog .muted,dialog #statement-code-help{color:#85858d;background:#f6f6f8;padding:16px 18px;border-radius:16px;margin:0}
dialog form>label:has(>input[name=starts]),dialog form>label:has(>input[name=ends]),dialog form>label:has(>select[name=currency]),dialog form>label:has(>input[name=sales]),dialog form>label:has(>input[name=rate]),dialog form>label:has(>input[name=adjustment]),dialog form>label:has(>input[name=next_payout_date]),dialog form>label:has(>select[name=active]){grid-column:auto}
dialog #preview{border-radius:16px;background:#fae9ed;color:#a71131;padding:14px 18px;margin:0}
@media(max-width:900px){.auth-page .auth-brand-panel{padding:32px}.auth-page .auth-brand{left:32px}.auth-page .auth-form-panel{padding:100px 32px 50px}.auth-page .auth-brand-message h1{font-size:clamp(38px,5.3vw,62px)}.auth-page .auth-layout--application .auth-brand-message h1{font-size:40px}.auth-page .auth-actions{flex-direction:column}.auth-page .auth-description{font-size:17px}}
@media(max-width:640px){.auth-page .auth-layout{grid-template-columns:1fr;min-height:100svh}.auth-page .auth-brand-panel{padding:28px 24px 34px;min-height:245px;justify-content:flex-end}.auth-page .auth-brand{position:static;font-size:18px;gap:12px;margin-bottom:36px}.auth-page .auth-brand img{width:42px}.auth-page .auth-brand-message{margin:0}.auth-page .auth-brand-message h1{font-size:44px;line-height:1.05}.auth-page .auth-layout--application .auth-brand-message h1{font-size:38px}.auth-page .auth-eyebrow{font-size:14px;margin-bottom:12px}.auth-page .auth-description{font-size:15px;margin-top:18px;max-width:430px}.auth-page .auth-form-panel{padding:36px 24px 44px}.auth-page .auth-layout--application .auth-form-panel{padding-top:72px}.auth-page .auth-back{top:24px;right:24px;font-size:15px}.auth-page .auth-title{font-size:25px;margin-bottom:24px}.auth-page .auth-actions{flex-direction:row;gap:8px}.auth-page .auth-primary,.auth-page .auth-secondary{padding:14px 15px;font-size:15px}.auth-page .auth-apply-link{font-size:15px}.auth-page .auth-form label{font-size:15px;margin-bottom:20px}.auth-page .auth-form .auth-consent{padding:16px;font-size:14px}.auth-page .auth-note{font-size:12px}.auth-page .auth-return{font-size:15px}dialog{width:calc(100vw - 24px);padding:24px 20px;border-radius:24px;max-height:92vh}dialog h2{font-size:25px}dialog form{grid-template-columns:1fr;gap:16px}dialog form>label{grid-column:1!important}dialog form>button:not([type]),dialog form>button[type=submit],dialog form>#cancel{grid-column:1;justify-self:stretch}dialog form>#cancel{order:91}dialog button{font-size:15px}}
.dialog-title{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.dialog-title h2{margin:0}.dialog-title .icon-close{min-height:30px;width:30px;height:30px;padding:0;font-size:22px;line-height:1}.detail-hero{background:var(--red);color:white;padding:24px;border-radius:20px;margin-bottom:20px;display:flex;flex-direction:column;gap:8px}.detail-hero small{color:#fffc;font-size:13px}.detail-hero strong{font-size:40px;letter-spacing:-1px}.detail-hero span{font-size:12px;color:#fffc}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.payment-record{background:#f5f5f8;padding:15px;border-radius:12px;margin:10px 0}.payment-record p{margin:5px 0 0}dialog .detail-list dd{max-width:65%}dialog .detail-list>div{font-size:14px}dialog .detail-list{margin-top:15px}
@media(max-width:600px){.admin-page>header{padding:0;border:0}.admin-page #account{display:block}.admin-page .sidebar{width:100%}.filters .filter-group{flex-basis:100%;width:100%;justify-content:space-between}.filter-group select{font-size:10px;flex:1;padding-right:18px;max-width:33.333%}.auth-page .auth-brand-message h1{overflow-wrap:normal}}

dialog form>small{grid-column:1/-1}dialog form #statement-code-help{display:block;font-size:12px;line-height:1.6}

/* Compact, adjacent form actions across desktop and mobile. */
dialog form>.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-items:center;gap:12px;order:90;flex-wrap:wrap}
dialog form>.form-actions>button{margin:0;flex:0 0 auto}
/* White ANS wordmark stacked above the portal label. */
.auth-page .auth-brand{flex-direction:column;align-items:flex-start;gap:0;font-size:12px;line-height:1.15}
.auth-page .auth-brand img{width:36px;height:auto;border-radius:0;display:block}
.auth-page .auth-brand span{display:block;font-size:12px;font-weight:700;line-height:1.15}

/* Consistent dropdown chevrons and separators in the filter bar only. */
.filters .filter-group{justify-content:flex-start;gap:0;width:min(440px,100%)}
.filters .filter-group select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3 6 5 5 5-5' stroke='%23252528' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:14px 14px;padding:10px 36px 10px 12px;min-width:0;max-width:none;flex:1 1 0;width:auto}
.filters .filter-group select+select{border-left:1px solid #c5c5cf;border-top-left-radius:0;border-bottom-left-radius:0}
@media(max-width:600px){.filters .filter-group select{padding:9px 27px 9px 9px;background-position:right 8px center;background-size:12px 12px;font-size:10px}}
