:root{color-scheme:dark;font:15px/1.6 system-ui,sans-serif;color:#eef4fc;background:#0b1119}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top right,#49301455,transparent 50%);min-height:100vh}header{display:flex;align-items:center;gap:28px;padding:18px 28px;border-bottom:1px solid #785824;background:#18212c;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:10px;font-size:24px;font-weight:800;text-decoration:none;color:inherit}.brand small{font-size:10px;letter-spacing:2px;color:#aabbd1}.mark{display:grid;place-items:center;width:36px;height:36px;background:#ffb13d;color:#101721;border-radius:11px}nav{display:flex;gap:7px;flex:1;flex-wrap:wrap}button,input{font:inherit}button{cursor:pointer;border:1px solid #425062;border-radius:9px;padding:10px 17px;background:#222e3c;color:inherit}button:hover{background:#34445a}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #ffd18a;outline-offset:3px}button.primary,nav button[aria-current=page]{background:#ffb13d;color:#111922;border-color:#ffb13d;font-weight:700}main{max-width:1240px;margin:48px auto;padding:0 24px;min-height:65vh}h1{font-size:34px;line-height:1.2;margin:10px 0 16px}h2{font-size:20px;margin-top:0}.eyebrow{font-size:11px;letter-spacing:2px;color:#ffb13d;font-weight:800}.muted,small{color:#aebed1}.login{max-width:460px;margin:70px auto}.card{background:linear-gradient(140deg,#202b39,#141e2b);border:1px solid #384658;border-radius:16px;padding:28px;margin:20px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:22px}.grid .card{margin:0}label{display:block;margin:20px 0 6px}input{display:block;width:100%;padding:13px;border:1px solid #526075;background:#0e1722;border-radius:8px;color:inherit}.login button{width:100%;margin-top:25px}.badge{display:inline-block;padding:4px 10px;background:#293747;border-radius:20px;font-size:12px;color:#ffca79}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th{color:#aebed1;font-size:12px;text-transform:uppercase;letter-spacing:1px}td,th{padding:16px 12px;border-bottom:1px solid #344153}td:first-child,th:first-child{padding-left:0}.notice{border-left:3px solid #ffb13d;padding:12px 18px;background:#33291866;border-radius:0 8px 8px 0}.actions{display:flex;gap:10px;margin-top:20px}.number{font-size:32px;font-weight:700}#message{max-width:1192px;margin:20px auto;color:#ffd08c;padding:0 24px}footer{text-align:center;color:#879aaf;font-size:12px;padding:30px}[hidden]{display:none!important}@media(max-width:650px){header{padding:16px;gap:16px}.brand small{font-size:9px}main{margin:28px auto;padding:0 16px}.card{padding:21px}nav{order:3;flex-basis:100%}h1{font-size:28px}}

select,textarea{display:block;width:100%;padding:13px;border:1px solid #526075;background:#0e1722;border-radius:8px;color:inherit;font:inherit}textarea{resize:vertical}select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #ffd18a;outline-offset:3px}form>button{margin-top:16px}button:disabled{opacity:.5;cursor:not-allowed}details{margin-top:18px}summary{cursor:pointer;color:#ffca79}#preview{border:1px solid #526075;border-radius:10px;padding:24px;margin-top:24px}

input[type=checkbox]{display:inline-block;width:auto;margin-right:8px}fieldset{border:1px solid #526075;border-radius:8px;max-height:320px;overflow:auto}fieldset label{margin:8px 0}code,p,a{overflow-wrap:anywhere}.actions{flex-wrap:wrap}

/* Saved sign-in remains an explicit choice on trusted devices. */
label.remember-device{display:flex;align-items:flex-start;gap:12px;cursor:pointer;margin:18px 0;font-weight:400;line-height:1.5;text-align:left}
body label.remember-device input[type=checkbox]{appearance:auto;-webkit-appearance:checkbox;flex:0 0 20px;width:20px!important;height:20px!important;min-width:20px;max-width:20px;min-height:20px;margin:2px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;accent-color:#ffae48}
body label.remember-device input[type=checkbox]::before,body label.remember-device input[type=checkbox]::after{content:none!important;display:none!important}
label.remember-device span{display:block;min-width:0}
label.remember-device small{display:block;font-size:.85em;font-weight:400;opacity:.8;margin-top:3px}

label.gateway-toggle{display:flex;align-items:center;gap:12px;min-height:48px;cursor:pointer;margin:8px 0}
label.gateway-toggle input[type=checkbox]{appearance:none;-webkit-appearance:none;display:block;flex:0 0 44px;width:44px;height:26px;padding:0;margin:0;border:1px solid #738297;border-radius:20px;background:#374354;position:relative;cursor:pointer}
label.gateway-toggle input[type=checkbox]::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff;transition:transform .15s}
label.gateway-toggle input[type=checkbox]:checked{background:#ffb13d;border-color:#ffb13d}
label.gateway-toggle input[type=checkbox]:checked::after{transform:translateX(18px);background:#16202d}
[data-gateways] .card{scroll-margin-top:20px;overflow-wrap:anywhere}

/* Keep the header's blurred stacking context above customer/page content. */
body>header{position:relative;z-index:100}
#nav{flex:0 1 auto;margin-left:auto;position:relative}
.account-menu{position:relative;min-width:180px}
.account-menu summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:46px;padding:10px 15px;border:1px solid #526075;border-radius:10px;background:#222e3c;font-weight:600}
.account-menu summary::-webkit-details-marker{display:none}
.account-menu summary::after{content:"▾";margin-left:auto}
.account-menu[open] summary::after{content:"▴"}
.account-menu summary:focus-visible{outline:3px solid #ffd18a;outline-offset:3px}
.current-section{font-size:13px;color:#ffca79;font-weight:400}
.account-menu-items{position:absolute;right:0;top:calc(100% + 8px);z-index:1000;display:grid;gap:6px;width:280px;max-width:calc(100vw - 32px);max-height:65vh;overflow:auto;padding:10px;background:#18212c;border:1px solid #526075;border-radius:12px;box-shadow:0 12px 30px #0008}
.account-menu-items button{width:100%;text-align:left;min-height:44px}
@media(max-width:650px){#nav{order:3;flex:1 0 100%;margin:0}.account-menu{width:100%}.account-menu-items{width:100%}.current-section{margin-left:auto}header{gap:12px}header .brand{font-size:22px}header .brand small{font-size:8px}#logout{margin-left:auto}}

.customer-account-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.customer-summary-grid,.customer-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.customer-summary-grid dd{margin:4px 0;font-weight:600;overflow-wrap:anywhere}.customer-summary-grid dt{color:#aebed1}
.customer-contact-grid label{margin:0}.customer-account-header p{overflow-wrap:anywhere}
[data-detail] input[type=checkbox],fieldset input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-block;vertical-align:middle;width:44px;height:26px;padding:0;margin:9px 10px 9px 0;border:1px solid #738297;border-radius:20px;background:#374354;position:relative;cursor:pointer}
[data-detail] input[type=checkbox]::after,fieldset input[type=checkbox]::after{content:"";position:absolute;width:18px;height:18px;left:3px;top:3px;border-radius:50%;background:#fff}
[data-detail] input[type=checkbox]:checked,fieldset input[type=checkbox]:checked{background:#ffb13d}
[data-detail] input[type=checkbox]:checked::after,fieldset input[type=checkbox]:checked::after{transform:translateX(18px);background:#16202d}
[data-detail] textarea,[data-detail] select{width:100%;padding:12px;background:#0e1722;color:inherit;border:1px solid #526075;border-radius:8px;font:inherit}
@media(max-width:650px){.customer-contact-grid,.customer-summary-grid{grid-template-columns:1fr}.customer-account-tabs button{flex:1 1 45%;padding:10px 8px}.actions{flex-wrap:wrap}}

.reseller-account-dialog{width:min(1050px,calc(100vw - 24px));max-height:90dvh;padding:20px;border:1px solid #526075;border-radius:16px;background:#0e1722;color:#eef4fc;overflow:auto}
.reseller-account-dialog::backdrop{background:#000a}.dialog-actions{display:flex;justify-content:flex-end;position:sticky;top:0;z-index:2}.reseller-account-dialog .card{padding:20px}

@media(min-width:901px){
 header{gap:16px 28px;padding:16px 28px 0}
 #nav{order:3;flex:1 0 100%;margin:0}
 .account-menu{width:100%}
 .account-menu>summary{display:none}
 .account-menu-items{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;width:100%;max-width:none;max-height:none;overflow:visible;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
 .account-menu-items button{width:auto;min-height:48px;padding:12px 15px;border:0;border-bottom:3px solid transparent;border-radius:6px 6px 0 0;background:transparent;color:#c0ccda;font-size:14px;font-weight:600;white-space:nowrap}
 .account-menu-items button:hover{background:#ffffff0a;color:#fff}
 nav .account-menu-items button[aria-current=page]{color:#ffca79;background:#ffb13d12;border-bottom-color:#ffb13d}
 #logout{margin-left:auto}
}
@media(min-width:651px) and (max-width:900px){#nav{order:3;flex:1 0 100%;margin:0}.account-menu{width:100%}.account-menu-items{width:100%}.current-section{margin-left:auto}}

/* Compact reseller directory controls, without changing account filtering. */
#app:has(.reseller-customer-directory){margin-top:24px}
#app .reseller-customer-directory [data-directory-search]{display:flex;align-items:flex-end;gap:10px;margin:12px 0}
#app .reseller-customer-directory [data-directory-search]>label{flex:1;min-width:180px;margin:0;font-size:13px}
#app .reseller-customer-directory [data-directory-search]>button{flex:0 0 auto;margin:0;white-space:nowrap}
#app .reseller-customer-directory .customer-list-toolbar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(140px,1fr));align-items:end;gap:10px;margin:10px 0}
#app .reseller-customer-directory .customer-list-toolbar>label{margin:0;font-size:13px;min-width:0}
#app .reseller-customer-directory .customer-list-toolbar [data-count]{grid-column:1/-1;font-size:12px;color:#aebed1}
#app .reseller-customer-directory input:not([type=checkbox]),#app .reseller-customer-directory select{width:100%;min-height:40px;height:40px;padding:7px 10px;margin:3px 0 0;font:inherit;font-size:14px;background:#0e1722;color:inherit;border:1px solid #526075;border-radius:8px}
#app .reseller-customer-directory button{min-height:40px;padding:8px 12px;font-size:13px}
#app .reseller-customer-directory .customer-bulk-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}
#app .reseller-customer-directory .customer-bulk-bar label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}
#app .reseller-customer-directory .customer-bulk-bar small{font-size:11px}
@media(max-width:700px){
 #app .reseller-customer-directory [data-directory-search]{flex-wrap:wrap;gap:8px}
 #app .reseller-customer-directory [data-directory-search]>label{flex:1 1 calc(100% - 90px)}
 #app .reseller-customer-directory [data-import]{margin-left:auto}
 #app .reseller-customer-directory .customer-list-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #app .reseller-customer-directory .customer-list-toolbar>.channel-search{grid-column:1/-1}
 #app .reseller-customer-directory button,#app .reseller-customer-directory input:not([type=checkbox]),#app .reseller-customer-directory select{min-height:44px}
}
#app .reseller-customer-directory .customer-list-scroll{max-width:100%;overflow-x:auto} #app .reseller-customer-directory{min-width:0}

.settings-submenu{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid #384658}
.settings-submenu button{min-height:44px;padding:9px 14px}.settings-mobile-menu{display:none}
@media(max-width:700px){.settings-submenu{display:none}.settings-mobile-menu{display:block;margin:0 0 16px;font-size:13px}.settings-mobile-menu select{display:block;width:100%;min-height:46px;padding:10px 12px;margin-top:5px;background:#18212c;color:#eef4fc;border:1px solid #526075;border-radius:9px;font:inherit;font-size:16px}}

.setup-shortcut{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;text-align:left;border:1px solid #425062;background:#222e3c;border-radius:8px}.setup-shortcut:hover{border-color:#ffb13d}.setup-arrow{color:#ffb13d}

.compact-service-heading{display:flex;justify-content:space-between;align-items:start;gap:12px}.compact-service-heading h2{margin:0}.service-price-edit{text-align:right;color:#ffbd68;font-size:20px;max-width:100%}
.compact-reseller-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-reseller-controls>h3{grid-column:1/-1;margin:12px 0 0}.compact-reseller-controls>.card{border:0;background:transparent;margin:0;padding:0;min-width:0}.compact-reseller-controls select,.compact-reseller-controls input:not([type=checkbox]){width:100%;min-width:0;box-sizing:border-box}
.compact-reseller-controls [data-service-edit]{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-reseller-controls [data-service-edit]>details{grid-column:1/-1}.compact-reseller-controls fieldset label{display:inline-flex;align-items:center;gap:8px;margin-right:12px;min-height:44px}.compact-reseller-addons h4{margin:0}.compact-reseller-addons>label{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-right:12px}
@media(max-width:600px){.compact-reseller-controls{grid-template-columns:1fr}.compact-service-heading>div{max-width:55%}.service-price-edit{font-size:18px}.compact-reseller-controls [data-service-edit]>button{grid-column:1/-1}}

.compact-reseller-service .customer-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compact-reseller-service .customer-summary-grid dd{overflow-wrap:anywhere}.compact-reseller-package-addons{grid-column:1/-1}.compact-reseller-package-addons form{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.compact-reseller-package-addons h4{width:100%;margin:0}.compact-reseller-package-addons label{display:inline-flex;align-items:center;gap:8px;min-height:44px}.compact-reseller-service form p{margin:6px 0;font-size:12px}.compact-reseller-service form button{margin-top:8px}.compact-reseller-service .card label{margin-bottom:6px}

/* Consistent compact forms across staff and customer panels. */
:is(.panel,.billing-card,.account-card,.card,.customer-modal,.customer-dialog,.account-dialog,.reseller-account-dialog) form{align-content:start;row-gap:10px}
:is(.panel,.billing-card,.account-card,.card,.customer-modal,.customer-dialog,.account-dialog,.reseller-account-dialog) form>label{margin:0;min-width:0;gap:5px}
:is(.panel,.billing-card,.account-card,.card,.customer-modal,.customer-dialog,.account-dialog,.reseller-account-dialog) form>p{margin:4px 0;line-height:1.45}
:is(.panel,.billing-card,.account-card,.card,.customer-modal,.customer-dialog,.account-dialog,.reseller-account-dialog) form>fieldset{margin:4px 0;padding:10px 12px;min-width:0}
:is(.panel,.billing-card,.account-card,.card,.customer-modal,.customer-dialog,.account-dialog,.reseller-account-dialog) form>button{margin-top:0;min-height:44px}
:is(.panel,.billing-card,.account-card,.card) form>[role=status]:empty{display:none}
:is(.panel,.billing-card,.account-card,.card):has(>form){padding:18px;align-self:start}
:is(.panel,.billing-card,.account-card,.card)>:is(h2,h3,h4){margin-top:0;margin-bottom:10px}
:is(.panel,.billing-card,.account-card,.card)>p{margin:8px 0}
:is(.panel,.billing-card,.account-card,.card) form :is(input:not([type=checkbox]):not([type=radio]),select){margin-top:0;min-height:44px;box-sizing:border-box;max-width:100%}
:is(.panel,.billing-card,.account-card,.card) form textarea{margin-top:0;box-sizing:border-box;max-width:100%}
.service-settings{margin-top:12px;padding-top:8px}.service-settings>div,.service-settings>details{margin-top:8px}.service-settings form{gap:10px}.service-settings form label{margin:0}.service-settings form>h4{margin:8px 0}.service-settings form>p:empty{display:none}
.service-summary-grid{margin:12px 0;padding:12px 0;gap:12px}.service-summary-grid dt{margin-bottom:4px}
.included-access-compact{margin:8px 0;padding:0!important;border:0!important;background:transparent!important}.included-access-compact>summary{min-height:44px;display:list-item;align-content:center;cursor:pointer;font-weight:600}.included-access-compact form{margin-top:8px}.included-access-compact .billing-addons{display:flex;flex-wrap:wrap;gap:8px 20px}.included-access-compact .addon-choice{margin:0;min-height:44px;flex:1 1 240px}.included-access-compact .addon-choice span span{display:block;font-size:12px}
.service-card-credentials .toolbar{margin:8px 0}.compact-xui-editor .service-editor-section>h4{margin:12px 0 8px}.compact-xui-editor form>details{margin-top:0}.compact-xui-editor form>details>summary{min-height:44px;padding:8px 0}
.compact-reseller-service .customer-summary-grid,.reseller-customer-app .service-grid{gap:12px;margin:14px 0}.compact-reseller-controls .card{padding:0}.compact-reseller-controls form>label{margin:0}.compact-reseller-controls>h3{margin-top:8px}
@media(max-width:600px){:is(.panel,.billing-card,.account-card,.card):has(>form){padding:14px}.included-access-compact .addon-choice{flex-basis:100%}.service-settings form{max-width:100%}}

.inline-customer-price{width:240px;max-width:48%;margin-left:auto;min-width:0;text-align:right}.inline-customer-price form{display:grid;gap:6px!important;max-width:100%}.inline-customer-price label{font-size:12px;margin:0!important;display:grid;gap:4px}.inline-customer-price input{width:100%;min-width:0;text-align:right;font-size:23px!important;color:#ffbd68!important;padding:7px 10px!important;min-height:44px}.inline-customer-price small{display:block;font-size:11px;line-height:1.4;overflow-wrap:anywhere}.inline-customer-price button{font-size:12px;width:auto;justify-self:end;margin:0!important;min-height:44px}.inline-customer-price [role=status]:empty{display:none}
.compact-service-heading>.inline-customer-price{max-width:48%}

/* Shared toggle rendering: one track and one thumb, no generated overlay. */
html body input[type=checkbox][type=checkbox][type=checkbox][type=checkbox]:not([hidden]){appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box!important;display:inline-block!important;position:relative!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:20px!important;min-height:20px!important;max-height:20px!important;padding:0!important;margin:0 8px 0 0!important;border:1px solid #8192a5!important;border-radius:20px!important;vertical-align:middle!important;background:radial-gradient(circle at 8px 9px,#fff 0 6px,transparent 6.5px),#455665!important;box-shadow:none!important;transform:none!important;cursor:pointer;opacity:1}
html body input[type=checkbox][type=checkbox][type=checkbox][type=checkbox]:not([hidden]):checked{background:radial-gradient(circle at 24px 9px,#fff 0 6px,transparent 6.5px),#a96813!important}
html body input[type=checkbox][type=checkbox][type=checkbox][type=checkbox]:not([hidden]):indeterminate{background:linear-gradient(#fff,#fff) center/12px 3px no-repeat,#72603e!important}
html body input[type=checkbox][type=checkbox][type=checkbox][type=checkbox]:not([hidden])::before,html body input[type=checkbox][type=checkbox][type=checkbox][type=checkbox]:not([hidden])::after{content:none!important;display:none!important}
html body input[type=checkbox][type=checkbox][type=checkbox][type=checkbox]:not([hidden]):focus-visible{outline:2px solid #ffce85!important;outline-offset:3px!important}
html body input[type=checkbox][type=checkbox][type=checkbox][type=checkbox]:not([hidden]):disabled{opacity:.5!important;cursor:not-allowed!important}
html body label:has(input[type=checkbox]){min-height:44px;align-content:center;cursor:pointer}
@media(forced-colors:active){html body input[type=checkbox][type=checkbox][type=checkbox][type=checkbox]:not([hidden]){appearance:auto!important;-webkit-appearance:auto!important;background:none!important;forced-color-adjust:auto}}
.customer-section-picker,.customer-action-picker{display:grid;gap:6px;margin:10px 0;min-width:0}
.customer-section-picker select,.customer-action-picker select{box-sizing:border-box;width:100%;min-height:44px;max-width:100%;font-size:16px}
.customer-account-tabs[hidden],.actions[hidden]{display:none!important}
[data-service-edit] label{min-width:0}
[data-service-edit] input[type=date]{box-sizing:border-box;width:100%;max-width:100%;min-width:0}

/* Manage Customers: a single search box (searches all customers); hide the shared list's page-only filter. */
.reseller-customer-directory [data-directory-list] .channel-search{display:none!important}
#customer-panel-services .svc-status{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:var(--lt-card-hi,#ffffff26);font-weight:600;line-height:1.5;overflow-wrap:anywhere}
