/* Shared polish: no remote assets, no interaction blocking overlays. */
:root{--ui-accent:var(--accent,#b8e986);--ui-glow:color-mix(in srgb,var(--ui-accent) 18%,transparent);--ui-soft:color-mix(in srgb,var(--ui-accent) 7%,transparent);--ui-ink:var(--accent-ink,#17211b);scroll-padding-top:24px}
body{background-image:radial-gradient(ellipse at 95% 0%,var(--ui-soft),transparent 55%);background-attachment:fixed;-webkit-font-smoothing:antialiased}
main,section,article,.graphs,.stats,.metrics,.detail-grid,.form-grid,.row>*,header>div{min-width:0}
h1,h2,h3{line-height:1.25;text-wrap:balance}p{overflow-wrap:anywhere}button,a,input,select,textarea{touch-action:manipulation}
button,.primary,.message-link,nav a{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
button:not(:disabled):hover,.primary:hover,.message-link:hover{border-color:var(--ui-accent);box-shadow:0 0 0 1px var(--ui-soft),0 5px 20px var(--ui-glow)}
button:not(:disabled):active,.primary:active{transform:translateY(1px);box-shadow:0 1px 6px var(--ui-glow)}
button:disabled{cursor:not-allowed;transform:none!important;box-shadow:none!important}
button.primary,.primary,body.ui-login #signin{color:var(--ui-ink)}
input:not([type=checkbox]):not([type=radio]),select,textarea{min-height:44px;max-width:100%;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}
input:focus,select:focus,textarea:focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-glow)}
:focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}
input::placeholder,textarea::placeholder{opacity:1;color:var(--muted,#aebfb6)}
input[type=checkbox],input[type=radio]{accent-color:var(--ui-accent);flex-shrink:0}
input:-webkit-autofill{-webkit-text-fill-color:var(--text,#e7eeeb);box-shadow:0 0 0 1000px var(--panel,#192623) inset;caret-color:var(--text,#e7eeeb)}
section:not(.metrics):not(.stats),.panel,.chart-card,.metrics article,.stat{transition:border-color .2s ease,box-shadow .2s ease;box-shadow:0 5px 22px #0000000c}
section:not(.metrics):not(.stats):focus-within,.panel:focus-within,.chart-card:hover,.metrics article:hover,.stat:hover{border-color:color-mix(in srgb,var(--ui-accent) 45%,var(--line,#34483e));box-shadow:0 5px 24px var(--ui-soft)}
.stat strong,.metrics strong{font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.stat strong{color:var(--accent-readable,var(--ui-accent))}
.table-wrap,.scroll{border-radius:10px;scrollbar-width:thin;scrollbar-color:var(--line,#34483e) transparent}
th{white-space:nowrap;line-height:1.5}td{line-height:1.5}tbody tr{transition:background-color .16s ease}tbody tr:hover{background:var(--ui-soft)}
td strong,td small{overflow-wrap:anywhere}table button{min-height:36px}
.section-head,.heading{flex-wrap:wrap}header{gap:20px}.pagination{gap:14px;flex-wrap:wrap}.pagination>div{display:flex;gap:8px}.pagination button{margin-left:0}
aside{overflow-y:auto;scrollbar-width:thin}nav a,nav button{min-height:44px}nav a:hover,nav button:hover{background:var(--ui-soft)}
nav a[aria-current=page],nav a[aria-current=location],nav button.active{border-color:var(--ui-accent);box-shadow:inset 3px 0 var(--ui-accent),0 0 18px var(--ui-soft)}
.brand span,.brand b span{text-shadow:0 0 24px var(--ui-glow)}
.queue-row,.contact{align-items:flex-start}.queue-row>div,.contact>div{min-width:0}.queue-row strong,.contact strong{overflow-wrap:anywhere}.queue-row button{flex-shrink:0}
.badge,.pill{line-height:1.5}.canvas{position:relative;min-height:220px}.graphs{align-items:stretch}
dialog{max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 20px 90px #0008,0 0 32px var(--ui-glow)}dialog::backdrop{background:#07110db3;backdrop-filter:blur(4px)}
#detail{z-index:50;max-height:calc(100dvh - 30px)}#toast{z-index:100;max-width:min(450px,calc(100vw - 32px));box-shadow:0 8px 30px #0004}
body.ui-login{padding:clamp(24px,5vh,54px) 20px}body.ui-login main{width:100%;max-width:460px}body.ui-login section{padding:28px;margin:26px 0}body.ui-login label{font-size:13px}body.ui-login input{margin-top:8px}body.ui-login #signin{width:100%;font-weight:700}body.ui-login h1{margin-top:28px}body.ui-login main>label{max-width:190px}
body.ui-team main{max-width:1200px}body.ui-team h2:not(:first-child){margin-top:28px}body.ui-team .row{gap:16px}body.ui-team #teamTotals>div{min-width:150px}body.ui-team #users td{white-space:normal}body.ui-team #me{background:var(--ui-soft)}
:root[data-theme=light]{--ui-ink:var(--accent-ink,#17211b)}
:root[data-theme=light] input:-webkit-autofill{-webkit-text-fill-color:#183326;box-shadow:0 0 0 1000px #fff inset}
:root[data-theme=light] .stat strong{color:var(--accent-readable,#24533b)}
:root[data-theme=light] .badge{color:#315027;background:#edf5e9}
:root[data-theme=light] #notice:not(:empty){background:#e4f1e6;color:#214d31;border:1px solid #a5c7ab}
:root[data-theme=light] dialog{background:#fff;color:#183326}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover,.primary:hover{transform:translateY(-1px)}}
@keyframes ui-arrive{from{opacity:.3;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes ui-toast{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){
 :root:not([data-motion=reduced]) main>header,:root:not([data-motion=reduced]) main>section:not([hidden]),:root:not([data-motion=reduced]) .graphs>.panel,:root:not([data-motion=reduced]) dialog[open]{animation:ui-arrive .3s ease-out both}
 :root:not([data-motion=reduced]) .metrics article,:root:not([data-motion=reduced]) .stat{animation:ui-arrive .35s ease-out both}
 :root:not([data-motion=reduced]) .metrics article:nth-child(2),:root:not([data-motion=reduced]) .stat:nth-child(2){animation-delay:.04s}
 :root:not([data-motion=reduced]) .metrics article:nth-child(3),:root:not([data-motion=reduced]) .stat:nth-child(3){animation-delay:.08s}
 :root:not([data-motion=reduced]) .metrics article:nth-child(4),:root:not([data-motion=reduced]) .stat:nth-child(4){animation-delay:.12s}
 :root:not([data-motion=reduced]) #toast:not([hidden]){animation:ui-toast .22s ease-out both}
}
@media(max-width:750px){
 main{overflow-wrap:anywhere}.section-head>button,.heading>button{max-width:100%}.filters{gap:14px}
 .graphs{grid-template-columns:minmax(0,1fr)}.canvas{height:240px}
 .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat strong{font-size:28px}
 .ui-manager aside{position:static;width:auto;overflow:visible}.ui-manager nav{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.ui-manager nav a{font-size:13px;padding:9px 12px}.ui-manager main{margin-left:0}.ui-manager header>div:last-child{flex-wrap:wrap}
 .queue-row,.contact{flex-wrap:wrap}.queue-row button{width:100%}
 body.ui-team{padding:20px 12px}body.ui-team section{padding:20px 16px}body.ui-team .row label{flex-basis:100%}
 body.ui-login section{padding:24px 20px}.pagination>div{flex-wrap:wrap}#toast{bottom:16px;right:16px}
}
@media(max-width:390px){.stats,.metrics{grid-template-columns:minmax(0,1fr)}.toolbar label{flex-wrap:wrap}header>div:last-child{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:root[data-motion=reduced] *,:root[data-motion=reduced] *::before,:root[data-motion=reduced] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* Rounded filled controls with a left-to-right hover sweep. */
button,.primary,.message-link,aside nav a{border-radius:11px;background-image:linear-gradient(90deg,var(--ui-glow),var(--ui-glow));background-repeat:no-repeat;background-position:left center;background-size:0% 100%;transition:background-size .32s cubic-bezier(.2,.7,.3,1),border-color .18s ease,box-shadow .2s ease,transform .18s ease}
aside nav button,aside nav a{background-color:#283c30;border:1px solid transparent;padding:12px 14px;color:var(--text,#e7eeeb);font-weight:500}
button:not(:disabled):hover,button:not(:disabled):focus-visible,.primary:hover,.primary:focus-visible,.message-link:hover,aside nav a:hover,aside nav a:focus-visible{background-size:100% 100%}
button:not(:disabled):hover,button:not(:disabled):focus-visible,.primary:hover,.primary:focus-visible,.message-link:hover,aside nav a:hover,aside nav a:focus-visible{background-image:var(--ui-sweep,linear-gradient(90deg,var(--ui-glow),var(--ui-glow)));background-repeat:no-repeat;background-position:left center}
button.primary,.primary,body.ui-login #signin{background-image:linear-gradient(90deg,#ffffff26,#ffffff26)}
button.primary,.primary,body.ui-login #signin{--ui-sweep:linear-gradient(90deg,#ffffff26,#ffffff26)}
:root[data-theme=light] aside nav button,:root[data-theme=light] aside nav a{background-color:#e1ecdf;color:#183326}
@media(prefers-reduced-motion:reduce){button,.primary,.message-link,aside nav a{transition:none!important}}
:root[data-motion=reduced] button,:root[data-motion=reduced] .primary,:root[data-motion=reduced] .message-link,:root[data-motion=reduced] aside nav a{transition:none!important}

#managerEmployeesLink{display:flex;align-items:center;gap:13px;width:100%;margin:6px 0;text-decoration:none;font:inherit}
@media(max-width:750px){#managerEmployeesLink{width:auto;flex:0 0 auto;margin:0;padding:10px 12px;white-space:nowrap;font-size:13px}}

/* Stable page geometry: decorative effects never move the content shell. */
html{scrollbar-gutter:stable;scroll-behavior:auto}
/* scrollbar-gutter alone is not honoured here (custom scrollbars), so short pages lost the
   scrollbar and the whole layout jumped 15px sideways on tab switches. Always reserve it. */
html:not(.nav-open){overflow-y:scroll}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
@keyframes ui-arrive{from{opacity:.65}to{opacity:1}}
main>header,main>section,.graphs>.panel,.metrics article,.stat{animation:none!important}
button:not(:disabled):hover,.primary:hover,button:not(:disabled):active,.primary:active{transform:none!important}
body.manager-workspace{font:15px/1.6 system-ui,sans-serif}
body.manager-workspace aside{width:220px;padding:28px 22px;background:var(--bg);border-color:var(--line)}
body.manager-workspace main{margin-left:220px;padding:42px;max-width:1700px}
body.manager-workspace aside>.workspace,body.manager-workspace .nav-caption{display:none}
body.manager-workspace .brand b{font-size:38px;letter-spacing:-3px}
body.manager-workspace aside>nav{margin-top:30px}
body.manager-workspace nav button,body.manager-workspace #managerEmployeesLink{margin:0 0 12px;padding:12px 14px;min-height:48px;gap:10px;font-size:15px;border-radius:11px}
body.manager-workspace nav button img{width:16px;height:16px}
body.manager-workspace #workspaceSwitch{min-height:152px}
.ui-manager aside{height:100dvh}
.ui-manager nav{flex-shrink:0}
.ui-manager .brand{flex-shrink:0}
.ui-manager .stat{min-height:136px}
.ui-manager .canvas{height:270px}
@media(max-width:1100px){body.manager-workspace main{padding:28px}}
@media(max-width:750px){
 body.manager-workspace aside{position:relative;width:100%;height:auto;padding:10px 12px}
 body.manager-workspace main{margin-left:0;padding:20px 14px}
 body.manager-workspace aside>nav{margin-top:0}
 body.manager-workspace nav button,body.manager-workspace #managerEmployeesLink{margin:0;padding:10px 12px;font-size:13px;min-height:44px}
 .ui-manager aside{height:auto}
}

/* The sidebar occupies the same rectangle before and after scripts initialize. */
.manager-workspace nav [data-view=queue],.manager-workspace nav [data-view=reports],.manager-workspace nav [data-view=connections],.manager-workspace nav [data-view=notifications],.manager-workspace #teamLink{display:none!important}
@media(min-width:751px){
 .ui-manager aside nav,body.manager-workspace aside nav{position:absolute;top:176px;left:22px;right:22px;bottom:250px;display:flex;flex-direction:column;gap:12px;margin:0;padding:0 0 8px;overflow-y:auto;overflow-x:hidden;min-height:0}
 .ui-manager aside nav a,body.manager-workspace aside nav button,body.manager-workspace #managerEmployeesLink{display:flex;align-items:center;width:100%;height:48px;min-height:48px;margin:0;padding:12px 14px;font:500 15px/24px system-ui,sans-serif;gap:10px;flex:0 0 auto;white-space:nowrap}
 .ui-manager main,body.manager-workspace main{margin-left:220px;padding:42px;max-width:1700px}
}
@media(min-width:751px) and (max-height:760px){.ui-manager aside nav,body.manager-workspace aside nav{top:128px;bottom:140px}}
@media(max-width:750px){
 .ui-manager aside{padding:10px 12px;border-bottom:1px solid var(--line)}
 .ui-manager aside>.brand,.ui-manager aside>small,.ui-manager aside>label,.ui-manager #identity{display:none}
 .ui-manager aside nav,body.manager-workspace aside nav{display:flex;flex-direction:row;flex-wrap:nowrap;gap:6px;margin:0;padding:0 0 6px;overflow-x:auto}
 .ui-manager aside nav a{flex:0 0 auto;width:auto;margin:0;padding:10px 12px;min-height:44px;font-size:13px;white-space:nowrap}
 .ui-manager aside #logout{align-self:flex-end;margin-top:8px;padding:8px 16px;min-height:44px}
 .ui-manager main{padding:20px 14px}
}
/* Never animate page geometry, including legacy styles on other pages. */
main,aside,nav,header,main>section{transition-property:color,background-color,border-color,box-shadow!important;overflow-anchor:none}

.legacy-manager-sidebar{display:none!important}
.manager-sidebar{position:fixed;inset:0 auto 0 0;width:220px;height:100dvh;padding:28px 22px;display:flex;flex-direction:column;gap:20px;border-right:1px solid var(--line);background:var(--bg);font:15px/1.6 system-ui,sans-serif;z-index:10}
.manager-sidebar .brand{font-size:38px;font-weight:800;line-height:1.6;letter-spacing:-3px}
.manager-sidebar>small{font-size:10px;letter-spacing:2px;line-height:16px}
.manager-sidebar nav a{display:flex;align-items:center;gap:10px;font-size:15px;text-decoration:none;line-height:24px;border-radius:11px}
.manager-sidebar>label{margin-top:auto;display:grid;gap:8px;font-size:15px;color:var(--text,#e7eeeb)}
.manager-sidebar select{margin:0;width:100%;font-size:15px;padding:10px 14px;min-height:46px}
.manager-sidebar #identity{margin:6px 0 18px;color:var(--muted);font-size:15px;line-height:24px}
.manager-sidebar #logout{min-height:46px;font-size:15px;line-height:24px;padding:10px 14px}
/* Same-origin document transitions keep the shared navigation stationary. */
@view-transition{navigation:auto}
.manager-sidebar{view-transition-name:manager-sidebar}
::view-transition-old(root),::view-transition-new(root){animation-duration:.12s;animation-timing-function:ease-out}
::view-transition-group(manager-sidebar){animation:none}
::view-transition-old(manager-sidebar){animation:none;opacity:0}
::view-transition-new(manager-sidebar){animation:none;opacity:1}
#createAccess,#editAccess{display:flex;flex-wrap:wrap;gap:12px}
button.platform-choice{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-width:160px;min-height:54px;padding:13px 18px;border:1px solid var(--line);border-radius:12px;background-color:var(--panel);color:inherit;text-align:left;box-shadow:none}
button.platform-choice:hover{border-color:var(--ui-accent);box-shadow:0 0 16px var(--ui-glow)}
button.platform-choice[aria-pressed=true]{border-color:var(--ui-accent);background-color:var(--ui-soft);color:var(--accent-readable,var(--ui-accent));box-shadow:inset 0 0 0 1px var(--ui-accent),0 0 20px var(--ui-glow)}
.choice-state{font-size:19px;line-height:1;font-weight:700;color:var(--ui-accent)}
@media(max-width:750px){.manager-sidebar{position:relative;width:100%;height:auto;padding:10px 12px;gap:0}.manager-sidebar>.brand,.manager-sidebar>small,.manager-sidebar>label,.manager-sidebar #identity{display:none}.manager-sidebar nav{display:flex;flex-direction:row;flex-wrap:nowrap;gap:6px;overflow-x:auto;margin:0;padding:0 0 6px}.manager-sidebar nav a{white-space:nowrap;font-size:13px;padding:10px 12px;flex:0 0 auto}.manager-sidebar #logout{align-self:flex-end;margin-top:8px;font-size:13px;min-height:44px}button.platform-choice{flex:1 1 140px}}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none!important}}
:root[data-motion=reduced]::view-transition-old(root),:root[data-motion=reduced]::view-transition-new(root){animation:none!important}

/* Accessible checkbox semantics with the same selectable-button appearance. */
@supports selector(label:has(input:checked)){
 label:has(>input[type=checkbox]){position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;max-width:100%;padding:13px 48px 13px 16px!important;border:1px solid var(--line,#34483e);border-radius:12px;background-color:var(--panel,#192623);background-image:linear-gradient(90deg,var(--ui-glow),var(--ui-glow));background-repeat:no-repeat;background-position:left center;background-size:0% 100%;font-size:14px;line-height:1.5;color:var(--text,#e7eeeb);cursor:pointer;transition:background-size .3s ease,border-color .18s ease,box-shadow .18s ease}
 label:has(>input[type=checkbox])>input[type=checkbox]{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0!important}
 label:has(>input[type=checkbox])::after{content:'+';position:absolute;right:17px;top:50%;transform:translateY(-50%);font-size:20px;line-height:1;color:var(--ui-accent);font-weight:700;pointer-events:none}
 label:has(>input[type=checkbox]):hover{background-size:100% 100%;border-color:var(--ui-accent);box-shadow:0 0 16px var(--ui-glow)}
 label:has(>input[type=checkbox]:checked){background-color:var(--ui-soft);border-color:var(--ui-accent);color:var(--accent-readable,var(--ui-accent));box-shadow:inset 0 0 0 1px var(--ui-accent),0 0 20px var(--ui-glow)}
 label:has(>input[type=checkbox]:checked)::after{content:'✓'}
 label:has(>input[type=checkbox]:focus-visible){outline:2px solid var(--ui-accent);outline-offset:4px}
 label:has(>input[type=checkbox]:disabled){opacity:.5;cursor:not-allowed;box-shadow:none}
 :root[data-theme=light] label:has(>input[type=checkbox]){color:#183326}
 @media(prefers-reduced-motion:reduce){label:has(>input[type=checkbox]){transition:none!important}}
 :root[data-motion=reduced] label:has(>input[type=checkbox]){transition:none!important}
}

.manager-sidebar nav a{height:48px;min-height:48px;box-sizing:border-box;flex:0 0 auto}
:root[data-theme=dark] body.manager-workspace{--bg:#101a18;--panel:#192623;--line:#34483e;--muted:#aebfb6;background-color:var(--bg)}

@font-face{font-family:'Biso Nunito';src:url('/ui/bb55a5ca5c2042335b3991af27c4d0705d0ef41cac6164ac737fd8f2a1e85207/nunito.ttf') format('truetype');font-weight:200 1000;font-style:normal;font-display:optional}
:root{--ui-font:'Biso Nunito','Segoe UI','Microsoft YaHei',system-ui,sans-serif}
body,body.manager-workspace,body.ui-team,body.ui-login{font-family:var(--ui-font)!important;line-height:1.6}
button,input,select,textarea,.primary,.manager-sidebar,.manager-sidebar nav a,body.manager-workspace aside nav button,body.manager-workspace #managerEmployeesLink,.ui-manager aside nav a{font-family:var(--ui-font)!important}
h1,h2,h3{font-weight:750;letter-spacing:-.025em}
button,.primary{font-weight:650}
th{font-weight:700;letter-spacing:.045em}
.manager-sidebar nav a{font-size:15px;line-height:24px}
@media(max-width:750px){.manager-sidebar nav a{font-size:13px}}

/* Shared dropdowns: native keyboard/form behavior, progressive menu styling. */
select{
 appearance:none;-webkit-appearance:none;
 min-height:46px;padding:11px 44px 11px 15px!important;
 border:1px solid var(--line,#34483e);border-radius:12px;
 background-color:var(--panel,#192623);color:var(--text,#e7eeeb);
 background-image:linear-gradient(45deg,transparent 50%,var(--muted,#aebfb6) 50%),linear-gradient(135deg,var(--muted,#aebfb6) 50%,transparent 50%);
 background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;
 background-size:5px 5px,5px 5px;background-repeat:no-repeat;
 font-family:var(--ui-font,system-ui)!important;font-weight:600;line-height:1.5;cursor:pointer;
 box-shadow:inset 0 1px 0 #ffffff06;
 transition:border-color .18s ease,box-shadow .2s ease,background-color .18s ease;
}
select:hover:not(:disabled){border-color:color-mix(in srgb,var(--ui-accent) 60%,var(--line,#34483e));box-shadow:0 3px 16px var(--ui-soft)}
select:focus-visible{outline:none!important;border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-glow),0 5px 20px var(--ui-soft)}
select:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
select option{font-family:var(--ui-font,system-ui);background:var(--panel,#192623);color:var(--text,#e7eeeb);padding:12px 14px}
:root[data-theme=light] select,:root[data-theme=light] select option{background-color:#fff;color:#183326}
select[multiple]{background-image:none;padding-right:15px!important;min-height:120px}
@supports(appearance:base-select){
 select:not([multiple]),select:not([multiple])::picker(select){appearance:base-select}
 select:not([multiple]){background-image:none;display:flex;align-items:center;gap:12px;padding-right:15px!important}
 select::picker-icon{color:var(--muted,#aebfb6);font-size:12px;transition:rotate .2s ease;color:var(--accent-readable,var(--ui-accent))}
 select:open::picker-icon{rotate:180deg}
 select::picker(select){
  margin-top:8px;padding:7px;border:1px solid var(--line,#34483e);border-radius:14px;
  background:var(--panel,#192623);color:var(--text,#e7eeeb);
  box-shadow:0 16px 42px #0005,0 0 20px var(--ui-soft);
  max-height:min(340px,60dvh);overflow-y:auto;scrollbar-width:thin;
 }
 select option{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 13px;border-radius:8px;cursor:pointer;white-space:normal;overflow-wrap:anywhere;transition:background-color .15s ease}
 select option:hover,select option:focus{background:var(--ui-soft);outline:none}
 select option:checked{background:var(--ui-glow);color:var(--accent-readable,var(--ui-accent));font-weight:750}
 select option::checkmark{color:var(--accent-readable,var(--ui-accent));font-weight:800}
 :root[data-theme=light] select::picker(select){background:#fff;color:#183326;box-shadow:0 12px 36px #243c2926}
 :root[data-theme=light] select option:checked{background:var(--ui-soft);color:#24533b}
}
@media(prefers-reduced-motion:reduce){select,select::picker-icon,select option{transition:none!important}}
:root[data-motion=reduced] select,:root[data-motion=reduced] select::picker-icon,:root[data-motion=reduced] select option{transition:none!important}
/* Compact platform switcher. */
#workspaceSwitch.api-selection,body.manager-workspace #workspaceSwitch{min-height:0;padding:12px 16px;margin:12px 0 20px}
#workspaceSwitch.api-selection label{max-width:280px;gap:5px;font-size:12px}
#workspaceSwitch #apiSwitcher{width:100%;min-height:38px;padding:7px 36px 7px 12px!important;border-radius:9px;font-size:13px}
#workspaceSwitch.api-selection p{margin:7px 0 0;font-size:11px;line-height:1.5}
@media(max-width:750px){#workspaceSwitch.api-selection label{max-width:100%}}

/* Loading lives inside the affected section; background refresh remains in the corner. */
.section-is-loading{position:relative;min-height:150px;isolation:isolate}
.section-is-loading>:not(.section-loading-indicator){filter:blur(2px);opacity:.4;pointer-events:none;user-select:none}
.section-loading-indicator{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;gap:12px;min-height:110px;padding:24px;background:color-mix(in srgb,var(--panel,#192623) 55%,transparent);border-radius:12px;color:var(--text,#e7eeeb);font:650 14px/1.5 var(--ui-font,system-ui);text-align:center;pointer-events:auto;backdrop-filter:blur(2px)}
.section-spinner{width:24px;height:24px;flex:0 0 24px;border:3px solid var(--ui-glow);border-top-color:var(--ui-accent);border-radius:50%;animation:section-spin .8s linear infinite}
@keyframes section-spin{to{transform:rotate(360deg)}}
:root[data-theme=light] .section-loading-indicator{color:#183326}
@media(prefers-reduced-motion:reduce){.section-spinner{animation:none!important;border-color:var(--ui-accent);border-style:dotted}}
:root[data-motion=reduced] .section-spinner{animation:none!important;border-color:var(--ui-accent);border-style:dotted}
/* Center dropdown labels without moving their arrow or checkmark. */
select{text-align:center;text-align-last:center}
select option{text-align:center}
@supports(appearance:base-select){
 select:not([multiple]){position:relative;justify-content:center;padding-inline:38px!important}
 select::picker-icon{position:absolute;right:15px}
 select option{position:relative;justify-content:center;padding-inline:36px}
 select option::checkmark{position:absolute;left:13px}
}
/* Center the password visibility action within the field. */
body.ui-login .password-field{display:flex;align-items:center}
body.ui-login .password-field input{margin:0;min-height:48px}
body.ui-login .password-field #showPassword{top:50%;right:7px;transform:translateY(-50%)!important;display:inline-flex;align-items:center;justify-content:center;width:62px;height:34px;min-height:34px;padding:0;text-align:center;line-height:1;box-sizing:border-box}

/* The menu uses the same components on every browser. */
select.custom-select-native{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;clip-path:inset(50%);pointer-events:none}
.custom-select{position:relative;display:block;width:100%;min-width:0;margin-top:7px}
button.custom-select-trigger{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:46px;padding:11px 38px;border:1px solid var(--line,#34483e);border-radius:12px;background-color:var(--panel,#192623);color:var(--text,#e7eeeb);font:650 14px/1.5 var(--ui-font,system-ui);text-align:center;cursor:pointer;box-shadow:inset 0 1px 0 #ffffff06}
.custom-select-trigger>span:first-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
.custom-select-arrow{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:18px;line-height:1;color:var(--accent-readable,var(--ui-accent));transition:rotate .18s ease}
.custom-select-trigger.is-open .custom-select-arrow{rotate:180deg}
button.custom-select-trigger.is-open{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-glow)}
.custom-select-menu{position:fixed;z-index:100000;padding:7px;border:1px solid var(--line,#34483e);border-radius:14px;background:var(--panel,#192623);color:var(--text,#e7eeeb);box-shadow:0 16px 42px #0006,0 0 18px var(--ui-soft);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;font-family:var(--ui-font,system-ui)}
button.custom-select-option{position:relative;display:block;width:100%;min-height:44px;padding:10px 32px;border:1px solid transparent;border-radius:9px;background-color:transparent;color:inherit;text-align:center;font:600 14px/1.5 var(--ui-font,system-ui);white-space:normal;overflow-wrap:anywhere;box-shadow:none}
button.custom-select-option:hover,button.custom-select-option:focus-visible{background-color:var(--ui-soft);border-color:var(--ui-glow);outline:none;box-shadow:none}
button.custom-select-option[aria-selected=true]{background-color:var(--ui-glow);color:var(--accent-readable,var(--ui-accent));font-weight:800}
.custom-select-option[aria-selected=true]::before{content:'✓';position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--accent-readable,var(--ui-accent))}
#workspaceSwitch .custom-select{max-width:280px}#workspaceSwitch .custom-select-trigger{min-height:38px;padding:7px 34px;font-size:13px;border-radius:9px}
.manager-sidebar .custom-select,.login-top .custom-select{margin-top:0}.login-top .custom-select{width:150px}
:root[data-theme=light] .custom-select-trigger,:root[data-theme=light] .custom-select-menu{background-color:#fff;color:#183326}
@media(max-width:750px){#workspaceSwitch .custom-select{max-width:100%}}

/* Complete light palette shared by every role and page. */
:root[data-theme=light]{color-scheme:light;--bg:#f3f6f5;--panel:#fff;--line:#cbd8d0;--text:#20372b;--muted:#526a5c;--ui-ink:var(--accent-ink,#17211b)}
:root[data-theme=light] body{background-color:var(--bg);color:var(--text)}
:root[data-theme=light] aside,:root[data-theme=light] .manager-sidebar{background-color:#eaf1ed;border-color:var(--line);color:var(--text)}
:root[data-theme=light] section:not(.metrics):not(.stats),:root[data-theme=light] .panel,:root[data-theme=light] .chart-card,:root[data-theme=light] .stat,:root[data-theme=light] .metrics article,:root[data-theme=light] .login-card{background:#fff;border-color:var(--line);color:var(--text);box-shadow:0 4px 18px #243d2c08}
:root[data-theme=light] p,:root[data-theme=light] small,:root[data-theme=light] label,:root[data-theme=light] footer{color:var(--muted)}
:root[data-theme=light] h1,:root[data-theme=light] h2,:root[data-theme=light] h3,:root[data-theme=light] strong,:root[data-theme=light] .profile strong{color:var(--text)}
:root[data-theme=light] .stat strong,:root[data-theme=light] .metrics article:first-child strong{color:var(--accent-readable,#24533b)}
:root[data-theme=light] input,:root[data-theme=light] select,:root[data-theme=light] textarea{background-color:#f7faf8;color:var(--text);border-color:var(--line);caret-color:var(--text)}
:root[data-theme=light] input::placeholder,:root[data-theme=light] textarea::placeholder{color:#60776a;opacity:1}
:root[data-theme=light] button{background-color:#edf3ef;color:var(--text);border-color:#b6c8bd}
:root[data-theme=light] button:hover:not(:disabled){background-color:#e3eee7}
:root[data-theme=light] button.primary,:root[data-theme=light] a.primary,:root[data-theme=light] .message-link,:root[data-theme=light] #signin,:root[data-theme=light] .ui-team form button:not([type=button]){background-color:var(--accent);border-color:var(--accent);color:var(--accent-ink,#17211b)}
:root[data-theme=light] .password-field #showPassword{background:transparent;color:#3e5e4b;border-color:transparent}
:root[data-theme=light] .workspace,:root[data-theme=light] .api-selection,:root[data-theme=light] .filters,:root[data-theme=light] .case,:root[data-theme=light] .profile,:root[data-theme=light] .connections article,:root[data-theme=light] .appearance-preview{background:#f5f9f6;border-color:var(--line);color:var(--text)}
:root[data-theme=light] .profile span,:root[data-theme=light] .metrics span,:root[data-theme=light] .nav-caption,:root[data-theme=light] .eyebrow{color:#526a5c}
:root[data-theme=light] .queue-row,:root[data-theme=light] .contact,:root[data-theme=light] .attention-row{background:#fff;border-color:var(--line);color:var(--text)}
:root[data-theme=light] th{background:#eaf2ed;color:#3e5b49;border-color:var(--line)}
:root[data-theme=light] td{border-color:var(--line);color:var(--text)}
:root[data-theme=light] tbody tr:hover{background:#edf5ef}
:root[data-theme=light] .custom-select-trigger,:root[data-theme=light] .custom-select-menu{background-color:#fff;color:var(--text);border-color:#b6c8bd}
:root[data-theme=light] button.custom-select-option{background-color:transparent;color:var(--text);border-color:transparent}
:root[data-theme=light] button.custom-select-option:hover,:root[data-theme=light] button.custom-select-option:focus-visible{background-color:var(--ui-soft);border-color:var(--ui-glow)}
:root[data-theme=light] button.custom-select-option[aria-selected=true]{background-color:var(--ui-glow);color:var(--accent-readable,#24533b)}
:root[data-theme=light] .custom-select-option[aria-selected=true]::before,:root[data-theme=light] .custom-select-arrow{color:var(--accent-readable,#24533b)}
:root[data-theme=light] button.platform-choice{background-color:#fff;color:var(--text);border-color:#b6c8bd}
:root[data-theme=light] button.platform-choice[aria-pressed=true],:root[data-theme=light] label:has(>input[type=checkbox]:checked){background-color:var(--ui-soft);border-color:var(--accent-readable,#24533b);color:var(--accent-readable,#24533b)}
:root[data-theme=light] dialog{background:#fff;border-color:var(--line);color:var(--text)}
:root[data-theme=light] #teamTotals>div{background:#f0f6f2!important;border:1px solid var(--line)}
:root[data-theme=light] #addresses,:root[data-theme=light] #notificationStatus{background:#edf5ef;color:#35563f;border-color:var(--line)}
:root[data-theme=light] #error:not(:empty),:root[data-theme=light] #detailError:not(:empty),:root[data-theme=light] #accessError:not(:empty),:root[data-theme=light] #resetError:not(:empty){background:#fff0f0;color:#923338;border:1px solid #ddb1b4}
:root[data-theme=light] #notice:not(:empty){background:#e8f4e9;color:#285b37;border-color:#a8c9b1}
:root[data-theme=light] #toast{background:#e6f2de;color:#27422c;border:1px solid #b8cfaa}
:root[data-theme=light] .section-loading-indicator{background:color-mix(in srgb,#fff 75%,transparent);color:var(--text)}
:root[data-theme=light] .pill,:root[data-theme=light] .badge,:root[data-theme=light] .priority{background:#e7f0e3;color:#365c3e;border-color:#b6cdb2}
:root[data-theme=light] .priority.urgent{background:#fff1db;color:#805114}
:root[data-theme=light] nav a[aria-current],:root[data-theme=light] nav button.active{color:#254c33;background-color:var(--ui-soft);border-color:var(--accent-readable,#24533b)}
/* Richer light mode, using each account’s chosen accent. */
:root[data-theme=light]{--ui-soft:color-mix(in srgb,var(--ui-accent) 15%,#fff);--ui-glow:color-mix(in srgb,var(--ui-accent) 32%,transparent)}
:root[data-theme=light] body{background-image:radial-gradient(ellipse at 95% 0%,color-mix(in srgb,var(--ui-accent) 20%,transparent),transparent 60%)}
:root[data-theme=light] .manager-sidebar,:root[data-theme=light] aside{background-color:color-mix(in srgb,var(--ui-accent) 13%,#f2f6f3)}
:root[data-theme=light] .stat,:root[data-theme=light] .metrics article{background:linear-gradient(135deg,color-mix(in srgb,var(--ui-accent) 23%,#fff),#fff 85%);border-color:color-mix(in srgb,var(--ui-accent) 55%,#b7c9bb);border-top:3px solid var(--ui-accent);box-shadow:0 5px 20px var(--ui-glow)}
:root[data-theme=light] .stat:nth-child(2),:root[data-theme=light] .metrics article:nth-child(2){background:linear-gradient(135deg,#e1f0ff,#fff 85%);border-top-color:#6cace1}
:root[data-theme=light] .stat:nth-child(3),:root[data-theme=light] .metrics article:nth-child(3){background:linear-gradient(135deg,#eee5fb,#fff 85%);border-top-color:#ab83d4}
:root[data-theme=light] .stat:nth-child(4),:root[data-theme=light] .metrics article:nth-child(4){background:linear-gradient(135deg,#fff0d9,#fff 85%);border-top-color:#e4ac55}
:root[data-theme=light] .panel,:root[data-theme=light] .chart-card,:root[data-theme=light] .login-card{border-color:color-mix(in srgb,var(--ui-accent) 35%,#cbd8d0);box-shadow:0 5px 22px color-mix(in srgb,var(--ui-accent) 14%,transparent)}
:root[data-theme=light] .api-selection,:root[data-theme=light] .appearance-preview{background:linear-gradient(110deg,var(--ui-soft),#fff)}
:root[data-theme=light] nav a,:root[data-theme=light] nav button{background-color:color-mix(in srgb,var(--ui-accent) 17%,#fff)}
:root[data-theme=light] nav a[aria-current],:root[data-theme=light] nav button.active{background-color:color-mix(in srgb,var(--ui-accent) 38%,#fff);box-shadow:inset 3px 0 var(--accent-readable,#24533b),0 4px 16px var(--ui-glow);border-color:var(--accent-readable,#24533b)}
:root[data-theme=light] .custom-select-trigger.is-open,:root[data-theme=light] button.platform-choice[aria-pressed=true]{background-color:color-mix(in srgb,var(--ui-accent) 22%,#fff);box-shadow:0 0 0 2px var(--ui-glow),0 4px 18px var(--ui-glow)}
:root[data-theme=light] button.custom-select-option[aria-selected=true],:root[data-theme=light] label:has(>input[type=checkbox]:checked){background-color:color-mix(in srgb,var(--ui-accent) 32%,#fff);color:var(--accent-readable,#24533b)}
:root[data-theme=light] tbody tr:hover{background:color-mix(in srgb,var(--ui-accent) 16%,#fff)}
:root[data-theme=light] .pill,:root[data-theme=light] .badge{background:color-mix(in srgb,var(--ui-accent) 25%,#fff);color:var(--accent-readable,#24533b)}
/* Color accents for dark mode, without brightening the reading surfaces. */
:root[data-theme=dark]{--ui-soft:color-mix(in srgb,var(--ui-accent) 12%,transparent);--ui-glow:color-mix(in srgb,var(--ui-accent) 25%,transparent)}
:root[data-theme=dark] body{background-image:radial-gradient(ellipse at 95% 0%,color-mix(in srgb,var(--ui-accent) 15%,transparent),transparent 60%)}
:root[data-theme=dark] aside,:root[data-theme=dark] .manager-sidebar{background-color:color-mix(in srgb,var(--ui-accent) 5%,#101a18)}
:root[data-theme=dark] .stat,:root[data-theme=dark] .metrics article{background:linear-gradient(135deg,color-mix(in srgb,var(--ui-accent) 17%,#192623),#192623 85%);border-color:color-mix(in srgb,var(--ui-accent) 32%,#34483e);border-top:3px solid var(--ui-accent);box-shadow:0 5px 24px color-mix(in srgb,var(--ui-accent) 9%,transparent)}
:root[data-theme=dark] .stat:nth-child(2),:root[data-theme=dark] .metrics article:nth-child(2){background:linear-gradient(135deg,#20364a,#192623 85%);border-top-color:#79b8ef}
:root[data-theme=dark] .stat:nth-child(3),:root[data-theme=dark] .metrics article:nth-child(3){background:linear-gradient(135deg,#342a47,#192623 85%);border-top-color:#ba95eb}
:root[data-theme=dark] .stat:nth-child(4),:root[data-theme=dark] .metrics article:nth-child(4){background:linear-gradient(135deg,#403323,#192623 85%);border-top-color:#f0bb70}
:root[data-theme=dark] .panel,:root[data-theme=dark] .chart-card,:root[data-theme=dark] .login-card{border-color:color-mix(in srgb,var(--ui-accent) 20%,#34483e);box-shadow:0 5px 24px color-mix(in srgb,var(--ui-accent) 6%,transparent)}
:root[data-theme=dark] .api-selection,:root[data-theme=dark] .appearance-preview{background:linear-gradient(110deg,color-mix(in srgb,var(--ui-accent) 12%,#192623),#192623)}
:root[data-theme=dark] nav a,:root[data-theme=dark] nav button{background-color:color-mix(in srgb,var(--ui-accent) 10%,#192623)}
:root[data-theme=dark] nav a[aria-current],:root[data-theme=dark] nav button.active{background-color:color-mix(in srgb,var(--ui-accent) 22%,#192623);border-color:var(--ui-accent);box-shadow:inset 3px 0 var(--ui-accent),0 4px 18px var(--ui-glow);color:var(--accent-readable,var(--ui-accent))}
:root[data-theme=dark] .custom-select-trigger.is-open,:root[data-theme=dark] button.platform-choice[aria-pressed=true]{background-color:color-mix(in srgb,var(--ui-accent) 15%,#192623);box-shadow:0 0 0 2px var(--ui-glow),0 4px 18px var(--ui-glow)}
:root[data-theme=dark] button.custom-select-option[aria-selected=true],:root[data-theme=dark] label:has(>input[type=checkbox]:checked){background-color:color-mix(in srgb,var(--ui-accent) 23%,#192623);color:var(--accent-readable,var(--ui-accent))}
:root[data-theme=dark] tbody tr:hover{background:color-mix(in srgb,var(--ui-accent) 10%,#192623)}
:root[data-theme=dark] .pill,:root[data-theme=dark] .badge{background:color-mix(in srgb,var(--ui-accent) 18%,#192623);border-color:color-mix(in srgb,var(--ui-accent) 40%,#34483e);color:var(--accent-readable,var(--ui-accent))}

/* Developer administration shares the dashboard shell and themed cards. */
body.ui-team.developer-workspace{padding:0;background-color:var(--bg,#101a18);color:var(--text,#e7eeeb)}
body.ui-team.developer-workspace main{max-width:1700px;margin:0 0 0 220px;padding:42px}
.developer-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}
.developer-heading>div{min-width:0}.developer-heading small{letter-spacing:1.8px;font-size:10px;font-weight:750;color:var(--accent-readable,var(--ui-accent))}
.developer-heading h1{margin:10px 0}.developer-heading p{margin:0;color:var(--muted,#aebfb6)}
.developer-workspace #me{margin:0;white-space:nowrap;padding:8px 15px;font-size:13px}
.developer-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 28px;border:0;padding:0;background:transparent}
.developer-metrics article{padding:22px;border:1px solid var(--line,#34483e);border-radius:14px;min-height:126px}
.developer-metrics span{font-size:13px;color:var(--muted,#aebfb6)}.developer-metrics strong{display:block;margin-top:10px;font-size:32px;color:var(--accent-readable,var(--ui-accent))}
.developer-workspace main>section:not(.metrics){border-radius:16px;padding:28px;margin:24px 0;background:var(--panel,#192623);border-color:var(--line,#34483e)}
.developer-workspace section h2{font-size:20px}.developer-workspace .scroll{border:1px solid var(--line,#34483e)}
.developer-sidebar nav a{white-space:normal!important;height:auto!important;min-height:48px}
.developer-sidebar>button{margin-top:0}.developer-workspace fieldset{border-color:var(--line,#34483e)}
@media(max-width:1100px){body.ui-team.developer-workspace main{padding:28px}.developer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){body.ui-team.developer-workspace main{margin-left:0;padding:20px 14px}.developer-heading{flex-wrap:wrap;gap:14px}.developer-workspace main>section:not(.metrics){padding:20px 16px}.developer-sidebar nav a{white-space:nowrap!important}.developer-sidebar>label,.developer-sidebar>small,.developer-sidebar>.brand{display:none}.developer-sidebar #logout{margin-top:8px}}

/* Developer controls must not inherit a dark primary-button text color. */
body.ui-team.developer-workspace button{background-color:var(--panel,#192623);border-color:var(--line,#34483e);color:var(--text,#e7eeeb)}
body.ui-team.developer-workspace form button:not([type]),body.ui-team.developer-workspace form button[type=submit]{background-color:var(--accent);border-color:var(--accent);color:var(--accent-ink,#17211b)}
body.ui-team.developer-workspace button.custom-select-trigger,body.ui-team.developer-workspace button.custom-select-option{color:var(--text,#e7eeeb)!important;background-color:var(--panel,#192623)}
body.ui-team.developer-workspace button.custom-select-option[aria-selected=true]{background-color:var(--ui-glow);color:var(--accent-readable,var(--ui-accent))!important}
.developer-sidebar nav{display:flex;flex-direction:column;gap:10px;margin:0;padding:0 0 8px;flex:1;min-height:0;overflow-y:auto;overflow-x:hidden}
.developer-sidebar nav a{margin:0;min-height:48px;padding:12px 14px;line-height:1.5;flex-shrink:0}
.developer-sidebar>label{margin-top:8px}.developer-sidebar>.brand,.developer-sidebar>small,.developer-sidebar>label,.developer-sidebar>#logout{flex-shrink:0}
#teamLink.message-link{color:var(--text,#e7eeeb)!important;border-color:var(--line,#34483e);font-weight:650;text-align:center}
#teamLink.message-link:hover,#teamLink.message-link:focus-visible{color:var(--accent-readable,var(--ui-accent))!important;border-color:var(--ui-accent)}
:root[data-theme=light] #teamLink.message-link{color:#20372b!important}
.developer-workspace #teamTotals>div{background:var(--panel,#192623)!important;border:1px solid var(--line,#34483e)}
.developer-workspace #teamEmpty{margin:12px 0 0;padding:14px 16px;border:1px dashed var(--line,#34483e);border-radius:10px;color:var(--muted,#aebfb6);background:var(--ui-soft)}
@media(max-width:750px){.developer-sidebar nav{flex-direction:row;gap:6px;overflow-x:auto;padding:0 0 6px}.developer-sidebar nav a{min-height:44px;padding:10px 12px}}
/* Recharge totals: red hover highlight. */
#dailySummary{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease}
#dailySummary{display:flex;flex-wrap:wrap;gap:16px 28px;background:var(--panel);border-color:var(--line);color:var(--text);line-height:1.5;padding:14px 18px}
.daily-summary-item{min-width:0;flex:1 1 130px;display:flex;flex-direction:column;gap:4px}
.daily-summary-item>span{font-size:12px;color:var(--muted)}.daily-summary-item>strong{font-size:16px;overflow-wrap:anywhere;color:var(--text)}
#todayView .daily-empty-cell{padding:0;white-space:normal;min-width:0}
#todayView .daily-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:180px;padding:24px 16px;text-align:center}
#todayView .daily-empty p{max-width:480px;margin:0;white-space:normal;overflow-wrap:anywhere}
.daily-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}.daily-empty-actions button{margin:0;white-space:normal}
#todayView td:last-child{text-align:right}#todayView .daily-empty-cell{text-align:center}

.recharge-pagination-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.page-size-control{display:flex;flex-direction:row;align-items:center;gap:10px;white-space:nowrap;font-size:12px}
.page-size-control .custom-select{width:90px;margin:0}.page-size-control .custom-select-trigger{min-height:38px;padding:7px 28px;font-size:13px}.page-size-control select{width:90px;min-height:38px;margin:0}
/* Precisely center pagination values independently of the arrow. */
.page-size-control{align-items:center;min-height:38px;line-height:1.2}
.page-size-control .custom-select{display:block;width:90px;height:38px;margin:0}
.page-size-control button.custom-select-trigger{height:38px;min-height:38px;padding:0!important;position:relative}
.page-size-control .custom-select-trigger>span:first-child{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:46px;line-height:1.2;margin:0}
.page-size-control .custom-select-arrow{position:absolute;right:12px;top:50%;transform:translateY(-50%);line-height:1;margin:0}
/* Draw the arrow geometrically instead of relying on a font glyph baseline. */
.custom-select-arrow,.page-size-control .custom-select-arrow{position:absolute;right:15px;top:50%;display:block;width:8px;height:8px;margin:0;font-size:0!important;line-height:0;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-70%) rotate(45deg)!important;rotate:none!important;transform-origin:center}
.custom-select-trigger.is-open .custom-select-arrow{transform:translateY(-30%) rotate(225deg)!important;rotate:none!important}
.page-size-control .custom-select-arrow{right:13px}
/* Compact highlight-color swatch. */
input[type=color],#secondaryColor{display:block;width:64px!important;height:40px!important;min-height:40px!important;max-width:64px;padding:4px!important;border-radius:9px;cursor:pointer;flex:none}
input[type=color]::-webkit-color-swatch-wrapper{padding:0}
input[type=color]::-webkit-color-swatch{border:0;border-radius:5px}
input[type=color]::-moz-color-swatch{border:0;border-radius:5px}
/* Uniform customer filter fields and action button. */
#searchForm{align-items:end;gap:12px}
#searchForm>label{display:flex;flex-direction:column;gap:8px;min-width:0;margin:0;line-height:1.4}
#searchForm input,#searchForm select,#searchForm button.custom-select-trigger,#searchCustomersButton{width:100%;height:46px!important;min-height:46px!important;max-height:46px;box-sizing:border-box;font-size:13px;line-height:1.4;border-radius:11px;margin:0!important}
#searchForm input{padding:11px 12px!important}
#searchForm .custom-select{width:100%;height:46px;margin:0!important}
#searchCustomersButton{display:flex;align-items:center;justify-content:center;white-space:nowrap;padding:10px 12px!important}
#searchForm .custom-select-trigger{padding:10px 30px!important}
@media(min-width:1450px){#searchForm{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(min-width:1001px) and (max-width:1449px){#searchForm{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:751px) and (max-width:1000px){#searchForm{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){#searchForm{grid-template-columns:minmax(0,1fr)}}

#tagSetupDialog{max-width:500px;width:calc(100% - 32px);padding:28px;background:var(--panel,#192623);color:var(--text,#e7eeeb);border:1px solid var(--line,#34483e);border-radius:16px}
#tagSetupForm{display:grid;gap:16px}#tagSetupForm p{margin:0}#tagSetupForm .row{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
#tagSetupError:not(:empty){padding:12px;border-radius:10px;background:#43282d;color:#ffd6da}
#detail .case #saveCase{align-self:end;margin-top:36px}
@media(max-width:700px){#detail .case #saveCase{margin-top:0}}
/* Align contact actions with the field, not its label. */
#detail .case>label:has(#channel){margin:0;display:flex;flex-direction:column;gap:9px;align-self:end}
#detail .case>label:has(#channel) .custom-select{margin:0;height:46px}
#detail .case>label:has(#channel) .custom-select-trigger{height:46px;min-height:46px}
#detail .case>#openMessage{align-self:end;height:46px;min-height:46px;margin:0;display:flex;align-items:center;justify-content:center;padding:10px 15px;box-sizing:border-box}
#detail .case>#confirmSent{height:46px;min-height:46px;margin:8px 0 0;align-self:start}
#detail .case>small{margin:4px 0 8px;line-height:1.6}
@media(max-width:700px){#detail .case>#openMessage{width:100%}#detail .case>#confirmSent{width:100%}}

/* Shared row plus zero control margins prevents the old .case button rule shifting the dropdown. */
#detail .case>.contact-action-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:24px}
#detail .contact-action-row>label{display:flex;flex-direction:column;gap:9px;margin:0!important;min-width:0;line-height:1.4}
#detail .contact-action-row .custom-select{height:46px;margin:0!important;padding:0}
#detail .contact-action-row button.custom-select-trigger,#detail .contact-action-row #openMessage{display:flex;align-items:center;justify-content:center;width:100%;height:46px!important;min-height:46px!important;max-height:46px;box-sizing:border-box;margin:0!important;align-self:end}
#detail .contact-action-row select{height:46px;min-height:46px;margin:0!important}
@media(max-width:700px){#detail .case>.contact-action-row{grid-template-columns:minmax(0,1fr);gap:14px}}
#messageTagsDialog{width:min(540px,calc(100% - 32px));padding:28px;background:var(--panel,#192623);color:var(--text,#e7eeeb);border:1px solid var(--line,#34483e);border-radius:18px}
#messageTagsForm{display:grid;gap:18px}#messageTagsForm h2,#messageTagsForm p{margin:0}#messageTagsForm label{display:grid;gap:7px;font-size:13px}#messageTagsForm input{width:100%;min-height:44px;margin:0;padding:11px 13px;background:var(--bg,#101a18);color:var(--text,#e7eeeb);border:1px solid var(--line,#34483e);border-radius:10px}
.message-tag-fields{display:grid;gap:14px}.message-tag-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}
#messageTagsError:not(:empty){background:#43282d;color:#ffd6da;padding:12px;border-radius:10px}.message-tags-entry{flex-shrink:0;min-height:44px;width:100%;font-size:13px;color:var(--text,#e7eeeb);background:var(--panel,#192623);border:1px solid var(--line,#34483e);border-radius:10px;margin:8px 0}
:root[data-theme=light] #messageTagsDialog,:root[data-theme=light] #messageTagsForm input{background:#fff;color:#20372b}
@media(max-width:750px){.message-tags-entry{width:auto;align-self:flex-end;padding:8px 14px;margin:8px 0}}
@media(min-width:751px){.manager-sidebar:has(>.message-tags-entry) nav{bottom:310px}}
@media(min-width:751px) and (max-height:760px){.manager-sidebar:has(>.message-tags-entry) nav{bottom:200px}}

/* Personal platform tag search */
#messageTagsDialog{max-height:88vh;overflow-y:auto;width:min(680px,92vw)}
.tag-search-results{display:grid;gap:6px;max-height:180px;overflow-y:auto;margin-top:6px;font-size:.85rem}
.tag-search-results button{width:100%;min-height:38px;text-align:left;white-space:normal}
.personal-extra-tags{border-top:1px solid var(--border,#40504b);margin-top:20px;padding-top:12px;display:grid;gap:10px}
#personalTagList{max-height:160px;overflow:auto;font-size:.85rem}
.contact-action-row:has(#messageTagChoice){grid-template-columns:1fr 1fr 1fr;align-items:end}
@media(max-width:760px){.contact-action-row:has(#messageTagChoice){grid-template-columns:1fr}}

.custom-select-menu .custom-select-search{position:sticky;top:0;z-index:1;width:100%;min-height:42px;margin:0 0 8px;box-sizing:border-box;background:var(--panel,#192620);color:inherit;border:1px solid var(--accent,#b8e986);border-radius:10px;padding:10px 12px;font:inherit}
.custom-select-menu .custom-select-option[hidden],.custom-select-empty[hidden]{display:none!important}
.custom-select-empty{padding:10px;margin:0;font-size:.9rem;opacity:.8}

.success-tick-toast{display:none;position:fixed;inset:auto 24px 28px auto;margin:0;z-index:100000;border:1px solid #36ca7b;border-radius:16px;padding:16px 22px;background:#102c20;color:#eafff2;box-shadow:0 8px 32px #0004,0 0 24px #34d27933;align-items:center;gap:14px;max-width:calc(100vw - 32px);pointer-events:none;font-weight:700}
.success-tick-toast.is-visible{display:flex;animation:success-arrive .28s ease-out both}
.success-tick-toast svg{width:44px;height:44px;flex-shrink:0;fill:none;stroke:#48e391;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.success-tick-toast.is-visible circle{stroke-dasharray:145;stroke-dashoffset:145;animation:success-draw .4s ease-out forwards}
.success-tick-toast.is-visible path{stroke-dasharray:40;stroke-dashoffset:40;animation:success-draw .28s .25s ease-out forwards}
@keyframes success-draw{to{stroke-dashoffset:0}}
@keyframes success-arrive{from{opacity:0;transform:translateY(10px) scale(.95)}to{opacity:1;transform:none}}
[data-theme=light] .success-tick-toast{background:#edfff4;color:#145d35}
[data-motion=reduced] .success-tick-toast,[data-motion=reduced] .success-tick-toast *{animation:none!important;stroke-dashoffset:0!important}
@media(prefers-reduced-motion:reduce){.success-tick-toast,.success-tick-toast *{animation:none!important;stroke-dashoffset:0!important}}
@media(max-width:600px){.success-tick-toast{right:16px;bottom:16px;padding:12px 16px}}

/* Keep dropdowns above transformed panels and inside the visible viewport. */
.custom-select-menu{box-sizing:border-box;margin:0;max-width:calc(100vw - 24px);min-width:0;isolation:isolate}
.custom-select-menu[popover]{inset:auto;margin:0;position:fixed;overflow:auto}
.custom-select-menu .custom-select-option{box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:anywhere;flex-shrink:0}

/* Consistent sortable headings and responsive workspace surfaces. */
#customersView thead th{vertical-align:middle;height:64px}
#customersView thead th button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin:0;vertical-align:middle;line-height:1.2;white-space:nowrap}
#customersView .column-subtitle{display:inline;vertical-align:middle;font-size:inherit;white-space:nowrap;color:var(--muted,#aebfb6)}
html{scrollbar-gutter:stable}body{min-width:320px}
main{min-width:0;max-width:100%}img,svg,canvas{max-width:100%}
.table-wrap,.scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.table-wrap:focus-visible,.scroll:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
.table-scroll-hint{display:none;color:var(--muted,#aebfb6);font-size:12px;margin:8px 0 0}
.table-scroll-hint.is-needed{display:block}
.skip-content{position:fixed;top:8px;left:12px;transform:translateY(-180%);z-index:100001;padding:10px 18px;border-radius:10px;background:var(--panel,#192623);color:var(--text,#e7eeeb);border:2px solid var(--ui-accent)}
.skip-content:focus{transform:none}
dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box}
textarea{resize:vertical}form label,.custom-select{min-width:0}
.pagination,.recharge-pagination-controls{row-gap:12px;align-items:center}
@media(max-width:1200px){
 .graphs{grid-template-columns:minmax(0,1fr)}
 .detail-grid{grid-template-columns:minmax(0,1fr)}
 .connections{grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr))}
 .metrics,.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:750px){
 body.ui-workspace>aside:not(.legacy-manager-sidebar){position:relative;inset:auto;width:100%;height:auto;padding:14px;overflow:visible;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
 body.ui-workspace>aside:not(.legacy-manager-sidebar) .brand{flex:1 0 70%;margin:0}
 body.ui-workspace>aside:not(.legacy-manager-sidebar) .brand small{display:none}
 body.ui-workspace>aside:not(.legacy-manager-sidebar)>nav{display:flex;position:static!important;width:100%;order:2;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:8px;margin:0;padding:4px 0 8px;overscroll-behavior-x:contain}
 body.ui-workspace>aside:not(.legacy-manager-sidebar)>nav .nav-caption{display:none}
 body.ui-workspace>aside:not(.legacy-manager-sidebar)>nav button,body.ui-workspace>aside:not(.legacy-manager-sidebar)>nav a{flex:0 0 auto;width:auto;margin:0;min-height:44px;padding:10px 14px;white-space:nowrap}
 body.ui-workspace>aside:not(.legacy-manager-sidebar)>nav span{display:inline}
 body.ui-workspace>aside:not(.legacy-manager-sidebar) .aside-bottom,body.ui-workspace>aside:not(.legacy-manager-sidebar) .workspace{display:none}
 body.ui-workspace>aside:not(.legacy-manager-sidebar)>#signOut{position:static;width:auto;margin:0}
 body.ui-workspace main,body.ui-manager main,body.manager-workspace main{margin-left:0!important;width:100%;padding:20px 14px!important}
 body.ui-workspace .manager-sidebar,body.ui-manager .manager-sidebar{height:auto!important}
 .manager-sidebar nav{position:static!important;max-height:none!important}
 header,.heading,.section-head,.developer-heading{gap:14px;align-items:flex-start}
 h1{font-size:clamp(24px,6vw,32px)}h2{font-size:20px}
 section:not(.metrics):not(.stats),.panel{padding:18px 14px}
 .graphs,.form-grid,.detail-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px}
 .chart-card{min-width:0}.canvas{height:240px;min-height:180px}
 .metrics,.stats,.developer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 .metrics article,.stat{padding:16px 12px;overflow-wrap:anywhere}
 .metrics strong,.stat strong{font-size:26px}
 .table-wrap table,.scroll table{min-width:640px}#customersView table{min-width:760px}
 .pagination{align-items:stretch;flex-direction:column}
 .pagination>div,.recharge-pagination-controls{display:flex;flex-wrap:wrap;justify-content:flex-end;width:100%}
 .page-size-control{margin-right:auto}
 .contact,.queue-row{flex-wrap:wrap;gap:12px}.contact>div,.queue-row>div{max-width:100%}
 .contact>div:last-child{display:flex;gap:8px;flex-wrap:wrap}
 #detail{inset:8px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 16px)!important;padding:18px 14px!important}
 .profile{gap:14px}.profile span{flex:1 1 125px;min-width:0}
 .row{gap:12px}.row label{flex-basis:100%}.row>button{min-height:44px}
 .message-tags-entry{max-width:100%;white-space:normal}
 input,textarea,.custom-select-search{font-size:16px}
 .custom-select-option{min-height:44px}
 body.ui-login main{max-width:460px}body.ui-login section{padding:22px 18px}
}
@media(max-width:400px){.metrics,.stats,.developer-metrics{grid-template-columns:minmax(0,1fr)!important}.pagination button{flex:1}.page-size-control{width:100%;justify-content:space-between}}

/* Quiet inline sorting controls, aligned with the other table headings. */
#customersView thead th .column-sort{display:inline-flex;gap:7px;align-items:center;padding:8px 0;min-height:40px;background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important;color:inherit;font:inherit;letter-spacing:inherit;transform:none!important}
#customersView thead th .column-sort::after{content:'↕';font-size:13px;opacity:.4;line-height:1}
#customersView thead th .column-sort[data-direction=descending]::after{content:'↓';opacity:1}
#customersView thead th .column-sort[data-direction=ascending]::after{content:'↑';opacity:1}
#customersView thead th .column-sort:hover,#customersView thead th .column-sort[data-direction=descending],#customersView thead th .column-sort[data-direction=ascending]{color:var(--accent-readable,var(--ui-accent))}
#customersView thead th .column-sort:focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px;border-radius:4px}
#customersView .column-subtitle{opacity:.7;margin-left:4px}
/* Manager navigation uses normal flow, avoiding collisions at short heights. */
@media(min-width:751px){
 .ui-manager aside.manager-sidebar,body.manager-workspace aside.manager-sidebar{display:flex;flex-direction:column;gap:12px;padding:24px 18px;height:100dvh;overflow:hidden;box-sizing:border-box}
 .ui-manager aside.manager-sidebar>nav,body.manager-workspace aside.manager-sidebar>nav{position:static!important;inset:auto!important;display:flex;flex-direction:column;flex:1 1 auto;min-height:70px;overflow-y:auto;overflow-x:hidden;gap:8px;margin:12px 0 0!important;padding:2px 4px 6px!important;width:100%;box-sizing:border-box}
 .manager-sidebar>.brand,.manager-sidebar>small,.manager-sidebar>label,.manager-sidebar>#identity,.manager-sidebar>#logout,.manager-sidebar>.message-tags-entry{position:static!important;flex:0 0 auto;max-width:100%;box-sizing:border-box}
 .manager-sidebar>label{margin:0!important;gap:6px}
 .manager-sidebar>#identity{margin:0!important;font-size:13px;overflow-wrap:anywhere}
 .manager-sidebar>#logout,.manager-sidebar>.message-tags-entry{width:100%;margin:0!important;min-height:44px;padding:10px 12px;line-height:1.4;white-space:normal}
 .manager-sidebar nav a,.manager-sidebar nav button{margin:0!important;width:100%;min-height:46px;height:auto!important;white-space:normal!important;line-height:1.4!important;padding:10px 12px!important;box-sizing:border-box}
}
@media(min-width:751px) and (max-height:680px){.ui-manager aside.manager-sidebar,body.manager-workspace aside.manager-sidebar{padding:12px 16px;gap:8px}.manager-sidebar>.brand{font-size:30px;line-height:1.2}.manager-sidebar>small{font-size:9px}.manager-sidebar>#identity{display:none}}
@media(max-width:750px){.manager-sidebar{gap:10px!important}.manager-sidebar nav{gap:8px!important}.manager-sidebar>.message-tags-entry,.manager-sidebar>#logout{position:static!important;min-height:44px;margin:0!important;flex-shrink:0}.manager-sidebar nav a,.manager-sidebar nav button{margin:0!important;flex-shrink:0}}

.personal-tag-picker{margin:18px 0;display:grid;gap:10px}.personal-tag-picker>span{font-size:13px;color:var(--muted)}
#messageTagChoice{display:flex;flex-wrap:wrap;gap:8px}#messageTagChoice button{width:auto!important;margin:0!important;min-height:42px;padding:10px 14px;border-radius:12px}
#messageTagChoice button[aria-pressed=true]{border-color:var(--ui-accent);background:var(--ui-glow);color:var(--accent-readable,var(--ui-accent));box-shadow:0 0 12px var(--ui-glow)}
.personal-tag-picker>button{justify-self:start;width:auto!important}

.user-management-filters{margin:22px 0 10px;align-items:end}.user-management-filters label:first-child{flex:2 1 260px}.user-management-filters label{flex:1 1 150px}
#users td:last-child{min-width:230px}#users td:last-child button{margin:4px;white-space:nowrap}#userCount{font-size:13px;color:var(--muted)}
@media(max-width:750px){.user-management-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}}

#users button.delete-user{color:#ff8189;border-color:#a84450}#users button.delete-user:hover{background:#b6374926;box-shadow:0 0 12px #c3374926}

.manager-sidebar>.dashboard-update-button,aside>.dashboard-update-button{position:static!important;flex:0 0 auto;margin:0!important;width:100%;min-height:44px;border:1px solid #44c987;background:#163d2a;color:#bdf7d5;border-radius:12px;padding:10px 12px;font-weight:700;white-space:normal}
body>.dashboard-update-button{position:fixed;bottom:20px;left:20px;z-index:1000;padding:12px 18px;background:#163d2a;color:#bdf7d5;border:1px solid #44c987;border-radius:12px}
@media(max-width:750px){aside>.dashboard-update-button{width:auto!important;max-width:100%;align-self:center}}

.authenticator-qr{display:flex;justify-content:center;background:white;border-radius:12px;padding:12px;margin:14px 0}.authenticator-qr svg{width:220px;height:auto;max-width:100%}
#factorSetup{display:grid;gap:12px}#factorCode{letter-spacing:.15em;font-size:20px}body.ui-login pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}
/* Theme-aligned authenticator card with a high-contrast scan surface. */
#factorSetup .authenticator-qr{justify-self:center;width:min(100%,280px);box-sizing:border-box;position:relative;background:#def4dc;border:1px solid color-mix(in srgb,var(--ui-accent,#b8e986) 65%,#496650);border-radius:18px;padding:20px;box-shadow:0 0 0 6px var(--ui-soft),0 10px 28px #0002;margin:16px auto}
#factorSetup .authenticator-qr svg{display:block;width:232px;height:auto;max-width:100%;background:#def4dc;fill:#10251a}
#factorSetup .authenticator-qr svg path{fill:#10251a}
#factorSetup{border:1px solid var(--line,#34483e);border-radius:16px;background:var(--ui-soft);padding:20px!important}
#factorSetup h2{font-size:22px;margin:0}#factorSetup p{font-size:14px;line-height:1.65;margin:4px 0}
#factorSetup p:has(+label){font-family:ui-monospace,monospace;background:var(--panel,#192623);border:1px solid var(--line,#34483e);border-radius:10px;padding:12px;font-size:12px;line-height:1.8}
@media(max-width:400px){#factorSetup{padding:14px!important}#factorSetup .authenticator-qr{padding:14px}}

/* Authenticator stays beside the sign-in controls on desktop. */
@media(min-width:760px){
 body.ui-login.factor-login{padding:20px;align-content:center}
 body.ui-login.factor-login main{max-width:860px}
 .factor-login .login-top{margin-bottom:16px}
 .factor-login .login-heading{display:none}
 .factor-login .login-card{padding:24px;margin:0}
 .factor-login #form{grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);grid-template-rows:min-content min-content 1fr;column-gap:28px;row-gap:18px;align-items:start}
 .factor-login #form>label:first-child{grid-column:1;grid-row:1}
 .factor-login #signin{grid-column:1;grid-row:2;margin-top:0}
 .factor-login #factorSetup{grid-column:2;grid-row:1/4;margin:0!important;padding:18px!important;gap:8px}
 .factor-login #factorSetup .authenticator-qr{width:208px;margin:8px auto;padding:12px;border-radius:14px}
 .factor-login #factorSetup .authenticator-qr svg{width:184px}
 .factor-login #factorSetup p{font-size:13px;line-height:1.45}
 .factor-login #factorSetup h2{font-size:20px}
 .factor-login .login-help{margin-top:14px;max-width:100%}
 .factor-login .login-footer{margin-top:12px}
}
@media(max-width:759px){body.ui-login.factor-login{padding:18px 14px}.factor-login .login-heading{display:none}.factor-login .login-top{margin-bottom:16px}.factor-login #factorSetup{margin:0!important}.factor-login .login-card{padding:18px}.factor-login #factorSetup .authenticator-qr{width:210px;padding:12px}}

/* Browser-review fixes: readable filters and touch-sized account controls. */
@media(min-width:1001px) and (max-width:2099px){#searchForm{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:2100px){#searchForm{grid-template-columns:repeat(8,minmax(0,1fr))}}
#users td:last-child button{min-height:40px;padding:8px 12px;line-height:1.35}
#users td:last-child{max-width:850px;white-space:normal}
.developer-sidebar nav a[aria-current]{font-weight:750}

/* Prevent sidebar collisions under browser zoom for every workspace role. */
@media(min-width:751px){
 body.ui-workspace:not(.manager-workspace)>aside:not(.legacy-manager-sidebar){display:flex;flex-direction:column;height:100dvh;gap:12px;overflow:hidden;padding:24px 18px}
 body.ui-workspace:not(.manager-workspace)>aside:not(.legacy-manager-sidebar)>nav{position:static!important;inset:auto!important;flex:1 1 auto;min-height:70px;overflow-y:auto;overflow-x:hidden;margin:0!important;padding:0 3px 6px!important}
 body.ui-workspace:not(.manager-workspace)>aside:not(.legacy-manager-sidebar)>:not(nav){position:static!important;flex:0 0 auto;margin:0!important}
 body.ui-workspace:not(.manager-workspace)>aside:not(.legacy-manager-sidebar) .nav-caption{margin:12px 0}
 body.ui-workspace:not(.manager-workspace)>aside:not(.legacy-manager-sidebar) .message-tags-entry,body.ui-workspace:not(.manager-workspace)>aside:not(.legacy-manager-sidebar) #signOut{width:100%;min-height:44px}
}
#messageTagsDialog{position:fixed;padding:24px}
#messageTagsDialog #messageTagsForm{gap:14px}
#messageTagsDialog .message-tag-fields{display:grid;gap:12px}
#messageTagsDialog .message-tag-fields label{margin:0;gap:6px}
#messageTagsDialog .message-tag-actions{position:sticky;bottom:-24px;z-index:2;padding:14px 0 8px;background:var(--panel,#192623);border-top:1px solid var(--line,#34483e);display:flex;flex-wrap:wrap;gap:10px}
#messageTagsDialog .tag-dialog-close{position:absolute;right:14px;top:12px;width:38px;height:38px;min-height:38px;padding:0;display:grid;place-items:center;font-size:24px;line-height:1;background:transparent;color:var(--text,#e7eeeb);border:0}
#messageTagsTitle{padding-right:36px}
@media(min-width:650px){#messageTagsDialog .message-tag-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}

.workspace-tools-entry{position:static!important;flex:0 0 auto;width:100%;margin:0!important;min-height:44px;padding:10px 12px;white-space:normal}
#workspaceToolsDialog{width:min(900px,calc(100vw - 24px));max-height:88dvh;padding:24px;background:var(--panel,#192623);color:var(--text,#e7eeeb);border:1px solid var(--line,#34483e);border-radius:18px}
#workspaceToolsDialog>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}#workspaceToolsDialog h2{margin:0}#closeWorkspaceTools{font-size:25px;min-width:44px;min-height:44px}
.tools-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}.tools-tabs button[aria-pressed=true]{background:var(--ui-glow);border-color:var(--ui-accent);color:var(--accent-readable,var(--ui-accent))}
#toolsContent{display:grid;gap:12px}#toolsContent label{display:grid;gap:6px}#toolsContent input:not([type=checkbox]){width:100%;min-height:44px;padding:10px}
.tool-card{padding:16px;border:1px solid var(--line,#34483e);border-radius:12px;background:var(--ui-soft);min-width:0}.tool-card p{font-size:13px;margin:8px 0;overflow-wrap:anywhere}.tool-card button{margin:4px 8px 0 0}
.tools-row{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.tools-row label{flex:1;min-width:180px}#toolsStatus{white-space:pre-wrap;color:var(--accent-readable,var(--ui-accent))}
#sharedTimelineButton{margin:12px 0;min-height:44px}
@media(max-width:750px){#workspaceToolsDialog{padding:16px}.tools-tabs{flex-wrap:nowrap;overflow:auto}.tools-tabs button{flex-shrink:0}.tools-row{display:grid;grid-template-columns:minmax(0,1fr)}aside>.workspace-tools-entry{width:auto;max-width:100%}}

#workspaceToolsDialog{z-index:1000}#toolsContent input[type=checkbox]{width:20px;min-height:20px}#toolsContent input[type=password]{font-family:var(--ui-font,system-ui)}
/* Keep tool tabs independent of the sidebar navigation rules. */
#workspaceToolsDialog nav.tools-tabs{display:flex;flex-flow:row wrap;gap:8px;position:static;margin:0 0 16px;padding:0;width:100%;overflow:visible}
#workspaceToolsDialog nav.tools-tabs button{display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;width:auto;min-height:44px;margin:0;padding:10px 14px;line-height:1.3;border-radius:10px;font-size:13px}
#workspaceToolsDialog #closeWorkspaceTools{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;line-height:1}
#workspaceToolsDialog #toolsStatus:empty{display:none}
@media(max-width:650px){#workspaceToolsDialog nav.tools-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}}

.manager-platform-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:14px;margin:18px 0}.ui-manager .toolbar{display:flex;flex-wrap:wrap;gap:18px;align-items:end}#managerPlatformScope+.custom-select{min-width:200px}

.combined-platform-notice{padding:12px 16px;border:1px solid var(--line,#34483e);border-radius:10px;background:var(--ui-soft);font-size:13px;line-height:1.6}
.combined-platform-notice.has-errors{border-color:#c9974e;color:var(--text,#e7eeeb)}
.source-platform{display:block!important;color:var(--accent-readable,var(--ui-accent));font-weight:650;margin-top:5px}

/* Native disclosures preserve keyboard navigation and keep long sidebars compact. */
aside nav[data-grouped=true]>.nav-caption{display:none!important}
aside nav[data-grouped=true]{row-gap:0!important;column-gap:12px!important}
aside nav[data-grouped=true] .sidebar-group{flex:0 0 auto;min-width:0;width:100%;margin:0 0 14px!important;border:1px solid var(--line,#354942);border-radius:13px;background:var(--ui-soft,transparent);overflow:visible}
aside nav[data-grouped=true] .sidebar-group[hidden]{display:none!important}
aside nav[data-grouped=true] .sidebar-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 12px;min-height:48px;color:inherit;font-weight:750;line-height:1.4;user-select:none;border-radius:12px;transition:background .18s ease,box-shadow .18s ease}
aside nav[data-grouped=true] .sidebar-group>summary::-webkit-details-marker{display:none}
aside nav[data-grouped=true] .sidebar-group>summary::after{content:'⌄';display:inline-block;flex:0 0 16px;text-align:center;color:var(--accent-readable,var(--accent));transition:transform .18s ease}
aside nav[data-grouped=true] .sidebar-group[open]>summary::after{transform:rotate(180deg)}
aside nav[data-grouped=true] .sidebar-group>summary:hover{background:var(--ui-glow,#ffffff0c);box-shadow:inset 0 0 0 1px var(--accent)}
aside nav[data-grouped=true] .sidebar-group>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
aside nav[data-grouped=true] .sidebar-group.has-current>summary{color:var(--accent-readable,var(--accent));box-shadow:inset 3px 0 var(--accent)}
aside nav[data-grouped=true] .sidebar-group-items{display:grid;gap:10px;padding:5px 8px 12px}
aside nav[data-grouped=true] .sidebar-group-items>a,aside nav[data-grouped=true] .sidebar-group-items>button{width:100%!important;margin:0!important;min-height:44px!important;padding:10px!important;white-space:normal!important;text-align:left;box-sizing:border-box}
aside nav[data-grouped=true] .sidebar-group[open]>.sidebar-group-items{animation:sidebar-reveal .16s ease-out}
@keyframes sidebar-reveal{from{opacity:.35;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:750px){body.ui-workspace>aside:not(.legacy-manager-sidebar)>nav[data-grouped=true]{flex-wrap:wrap!important;overflow:visible!important}aside nav[data-grouped=true] .sidebar-group{flex:1 1 180px;width:auto}aside nav[data-grouped=true] .sidebar-group-items{min-width:0}}
@media(prefers-reduced-motion:reduce){aside nav[data-grouped=true] .sidebar-group *{animation:none!important;transition:none!important}}
:root[data-motion=reduced] aside nav[data-grouped=true] .sidebar-group *{animation:none!important;transition:none!important}


/* A shared width keeps content aligned when switching between role dashboards. */
@media(min-width:751px){
 body:has(>aside nav[data-grouped=true])>aside:not(.legacy-manager-sidebar){width:280px!important;padding-left:18px!important;padding-right:18px!important}
 body:has(>aside nav[data-grouped=true])>main{margin-left:280px!important}
}
aside .navigation-icon{width:20px;height:20px;flex:0 0 20px;display:block!important;overflow:visible;color:currentColor;opacity:.95}
aside .has-navigation-icon{display:flex!important;align-items:center!important;gap:11px!important;font-family:var(--ui-font,inherit)!important;font-size:15px!important;font-weight:650;line-height:1.45!important;letter-spacing:0!important;text-align:left!important}
aside .has-navigation-icon>img,aside .has-navigation-icon>span[aria-hidden=true]{display:none!important}
aside nav[data-grouped=true] .sidebar-group>summary{justify-content:flex-start;font-size:14px!important;font-weight:800;min-height:52px;padding:14px 12px}
aside nav[data-grouped=true] .sidebar-group>summary>span{flex:1;min-width:0}
aside nav[data-grouped=true] .sidebar-group>summary::after{margin-left:auto;font-size:17px}
aside nav[data-grouped=true] .sidebar-group-items>button,aside nav[data-grouped=true] .sidebar-group-items>a{min-height:48px!important;padding:12px!important;color:var(--text,#e7eeeb)}
aside nav[data-grouped=true] .sidebar-group-items .has-navigation-icon>span:not([aria-hidden]){min-width:0;overflow-wrap:normal;word-break:normal}
aside nav[data-grouped=true] .sidebar-group-items>button.active,aside nav[data-grouped=true] .sidebar-group-items>a[aria-current]{color:var(--accent-readable,var(--accent));font-weight:750}
:root[data-theme=light] aside nav[data-grouped=true] .sidebar-group-items>button,:root[data-theme=light] aside nav[data-grouped=true] .sidebar-group-items>a{color:#203b30}
:root[data-theme=light] aside nav[data-grouped=true] .sidebar-group-items>button.active,:root[data-theme=light] aside nav[data-grouped=true] .sidebar-group-items>a[aria-current]{color:var(--accent-readable,#24533b)}
@media(max-width:750px){aside .has-navigation-icon{font-size:14px!important}aside nav[data-grouped=true] .sidebar-group{flex-basis:230px}}


/* Shared baselines: labels sit above fields, actions align with the controls. */
body.ui-team main .row,main .operations-controls,main .developer-switch-controls,#workspaceToolsDialog .tools-row{align-items:flex-end;gap:16px}
body.ui-team main .row>label,.filters>label,.form-grid>label,.operations-controls>label,.developer-switch-controls>label,#workspaceToolsDialog .tools-row>label{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:8px;margin:0;min-width:0;line-height:1.4}
body.ui-team main .row>label:not(:has(input[type=checkbox]))>input:not([type=color]):not([type=hidden]),body.ui-team main .row>label>select,.form-grid>label>input:not([type=checkbox]):not([type=color]),.operations-controls>label>input,.developer-switch-controls>label>input{height:46px;min-height:46px;margin:0;box-sizing:border-box;width:100%}
body.ui-team main .row>label>.custom-select,.form-grid>label>.custom-select,.operations-controls>label>.custom-select,.developer-switch-controls>label>.custom-select{width:100%;margin:0;min-height:46px}
body.ui-team main .row>label>.custom-select>.custom-select-trigger,.operations-controls .custom-select-trigger,.developer-switch-controls .custom-select-trigger{min-height:46px;height:46px;margin:0!important}
body.ui-team main .row>button,.operations-controls>button,.developer-switch-controls>button{min-height:46px;margin:0;align-self:flex-end;display:inline-flex;align-items:center;justify-content:center}
.ui-manager .toolbar{align-items:flex-end;gap:18px}
.ui-manager .toolbar>label{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;min-width:180px}
.ui-manager .toolbar>label>.custom-select{width:100%;margin:0}
.ui-manager .toolbar>small{align-self:flex-end;line-height:1.5;padding-bottom:10px}
main .section-head,main .heading{align-items:center;gap:16px}
main .section-head>h2,main .heading h2{margin-top:0}
main .stats>article,main .metrics>article{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between}
main table th,main table td{vertical-align:middle}
main table td>button,main table td>a.button{vertical-align:middle}
.pagination,.recharge-pagination-controls{align-items:center;gap:12px}
.pagination>div,.recharge-pagination-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.pagination button,.recharge-pagination-controls>button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;margin:0;box-sizing:border-box}
.page-size-control{display:inline-flex;align-items:center;gap:10px;min-height:44px;margin-top:0;margin-bottom:0}
.page-size-control .custom-select,.page-size-control button.custom-select-trigger{height:44px!important;min-height:44px!important;margin:0!important}
/* Identical icon columns prevent labels shifting between menu items. */
aside nav[data-grouped=true] .sidebar-group-items>.has-navigation-icon{display:grid!important;grid-template-columns:20px minmax(0,1fr);column-gap:11px!important;align-items:center!important;justify-content:stretch!important;min-height:50px!important;line-height:1.45!important}
aside nav[data-grouped=true] .sidebar-group>summary.has-navigation-icon{display:grid!important;grid-template-columns:20px minmax(0,1fr) 16px;gap:10px!important;align-items:center!important}
aside nav[data-grouped=true] .sidebar-group>summary.has-navigation-icon::after{margin:0;justify-self:center}
aside nav[data-grouped=true] .sidebar-group-items>.has-navigation-icon>.navigation-icon,aside nav[data-grouped=true] summary>.navigation-icon{margin:0;justify-self:center;align-self:center}
aside #signOut.has-navigation-icon,aside #logout.has-navigation-icon{justify-content:center!important;text-align:center!important}
@media(max-width:750px){
 main .section-head,main .heading{align-items:flex-start}
 .pagination{align-items:stretch}
 .pagination>div,.recharge-pagination-controls{justify-content:flex-end}
 .ui-manager .toolbar>label{flex:1 1 180px;min-width:0}
 .ui-manager .toolbar>small{padding-bottom:0}
 body.ui-team main .row>button{width:100%}
}

/* Separate dropdown choices and keep account names readable. */
/* Role-hidden navigation must remain hidden despite shared icon/grid layouts. */
aside .has-navigation-icon[hidden],aside nav[data-grouped=true] .sidebar-group-items>.has-navigation-icon[hidden],aside nav[data-grouped=true] .sidebar-group-items>button[hidden],aside nav[data-grouped=true] .sidebar-group-items>a[hidden]{display:none!important}
.custom-select-menu{padding:10px!important;scroll-padding:10px;overflow-x:hidden}
.custom-select-menu>button.custom-select-option{display:block!important;margin:0 0 8px!important;min-height:46px;padding:11px 30px!important;line-height:1.45!important;border-radius:10px;box-sizing:border-box;flex-shrink:0}
.custom-select-menu>button.custom-select-option:last-of-type{margin-bottom:0!important}
.custom-select-menu.user-account-menu>button.custom-select-option{min-height:48px;word-break:normal;overflow-wrap:break-word}
.custom-select-menu.user-account-menu .custom-select-search{margin:0 0 10px!important;min-height:44px}

#profile .profile-copy-line{display:flex;align-items:center;gap:10px;min-height:32px;margin-top:5px}
#profile .profile-copy-line>b{font:inherit;min-width:0;overflow-wrap:anywhere}
#profile button.profile-copy-button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;padding:6px;margin:0;border:1px solid var(--line,#34483e);border-radius:8px;background:var(--ui-soft);color:var(--accent-readable,var(--accent));line-height:1;font-size:18px}
#profile button.profile-copy-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#profile button.profile-copy-button:hover{border-color:var(--accent);background:var(--ui-glow)}
#profileCopyStatus:empty{display:none}#profileCopyStatus{font-size:13px;color:var(--accent-readable,var(--accent));margin:8px 0}
@media(pointer:coarse){#profile button.profile-copy-button{width:44px;height:44px;min-height:44px;flex-basis:44px}}

/* Consistent breathing room for action groups and wrapped controls. */
:root{--action-gap:12px}
.employee-tour-actions,.support-details-actions,.message-tag-actions,.operations-controls,.developer-switch-controls,.recharge-pagination-controls,.color-presets,.tools-tabs{gap:var(--action-gap)!important}
.employee-tour-dialog>.employee-tour-actions{margin-top:18px}
.employee-tour-dialog>.employee-tour-actions+button{margin-top:14px!important}
.employee-tour-actions>button,.support-details-actions>button,.message-tag-actions>button,.recharge-pagination-controls>button,.color-presets>button{margin:0!important}
#createAccess,#editAccess,#messageTagChoice{display:flex;flex-wrap:wrap;gap:12px}
#createAccess>.platform-choice,#editAccess>.platform-choice,#messageTagChoice>button{margin:0!important}
aside nav[data-grouped=true] .sidebar-group-items{gap:12px;padding-top:8px;padding-bottom:14px}
.custom-select-menu>button.custom-select-option{margin-bottom:10px!important}
.custom-select-menu>button.custom-select-option:last-of-type{margin-bottom:0!important}
body.ui-team td>button{margin:4px 8px 4px 0}
.tools-row>button,.operations-controls>button{margin:0!important}



.pointer-glow,.pointer-click-ring{position:fixed;pointer-events:none!important;user-select:none;z-index:2147480000;border-radius:50%;box-sizing:border-box}
.pointer-glow{left:0;top:0;width:60px;height:60px;background:radial-gradient(circle,color-mix(in srgb,var(--accent,#b8e986) 16%,transparent) 0%,transparent 70%);contain:strict;will-change:transform}
.pointer-glow[hidden]{display:none!important}
.pointer-click-ring{width:26px;height:26px;border:1.5px solid var(--accent-readable,var(--accent,#b8e986));background:transparent}
@media(prefers-reduced-motion:reduce),(hover:none),(pointer:coarse){.pointer-glow,.pointer-click-ring{display:none!important}}
:root[data-motion=reduced] .pointer-glow,:root[data-motion=reduced] .pointer-click-ring{display:none!important}


#detail>.section-head:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:20px}
#detail>.section-head:first-child>div:first-child{flex:1 1 220px}
.customer-balance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;flex:2 1 460px;max-width:720px}
.customer-balance-summary article{padding:12px 16px;border:1px solid var(--line,#34483e);border-radius:12px;background:var(--ui-soft);min-width:0}
.customer-balance-summary small{display:block;font-size:12px;line-height:1.4;margin-bottom:6px}
.customer-balance-summary strong{font-size:20px;font-variant-numeric:tabular-nums;color:var(--accent-readable,var(--accent));overflow-wrap:anywhere}
#profile .profile-agent{flex-basis:100%;min-width:0}#profile .profile-agent strong{font-size:12px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
@media(max-width:650px){.customer-balance-summary{order:3;flex-basis:100%;max-width:none;gap:8px}.customer-balance-summary article{padding:10px}.customer-balance-summary strong{font-size:17px}}


#profile>.profile-device-drawer{flex:1 1 100%;grid-column:1/-1;order:10;min-width:0;margin-top:8px;border-top:1px solid var(--line,#34483e);padding-top:10px}
#profile>.profile-device-drawer>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:42px;padding:8px 0;color:var(--accent-readable,var(--accent));font-size:13px;font-weight:650}
#profile>.profile-device-drawer>summary::-webkit-details-marker{display:none}
#profile>.profile-device-drawer>summary>svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#profile>.profile-device-drawer>summary>span{flex:0 1 auto;margin:0;font:inherit;display:block}
#profile>.profile-device-drawer>summary::after{content:'⌄';font-size:17px;transition:transform .18s ease}
#profile>.profile-device-drawer[open]>summary::after{transform:rotate(180deg)}
#profile .profile-device-fields{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,2fr);gap:16px;padding:12px 0 4px}
#profile .profile-device-fields>div{min-width:0}#profile .profile-device-fields small{display:block;font-size:11px;color:var(--muted,#aebfb6)}
#profile .profile-device-fields p{margin:6px 0 0;font-size:13px;font-weight:400;line-height:1.6;overflow-wrap:anywhere;white-space:normal;color:var(--text,#e7eeeb)}
#profile>.profile-device-drawer[open]>.profile-device-fields{animation:sidebar-reveal .18s ease-out}
@media(max-width:650px){#profile .profile-device-fields{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){#profile>.profile-device-drawer *{animation:none!important;transition:none!important}}
:root[data-motion=reduced] #profile>.profile-device-drawer *{animation:none!important;transition:none!important}

/* Stacked balance cards with stable meanings independent of accent color. */
#customerBalanceSummary.customer-balance-summary{grid-template-columns:minmax(0,1fr);gap:9px;flex:0 1 240px;max-width:280px}
#customerBalanceSummary article{padding:11px 15px;border-color:color-mix(in srgb,var(--line,#34483e) 80%,transparent)}
#customerBalanceSummary small{margin-bottom:4px}
#profileBalance{color:#f3f6fa!important}
#profileAvailableBalance{color:#91dfad!important}
#profileBlockedBalance{color:#ff9ba5!important}
#customerBalanceSummary article:has(#profileAvailableBalance){background:color-mix(in srgb,#65c58c 9%,var(--panel,#192623))}
#customerBalanceSummary article:has(#profileBlockedBalance){background:color-mix(in srgb,#f2828e 9%,var(--panel,#192623))}
:root[data-theme=light] #customerBalanceSummary article:has(#profileBalance){background:#263845;color:#fff}
:root[data-theme=light] #customerBalanceSummary article:has(#profileBalance) small{color:#dbe4ec}
:root[data-theme=light] #profileAvailableBalance{color:#216b41!important}
:root[data-theme=light] #profileBlockedBalance{color:#ad3047!important}
@media(max-width:650px){#customerBalanceSummary.customer-balance-summary{flex-basis:100%;max-width:none;grid-template-columns:minmax(0,1fr)}}


/* Compact base-information grid, independent of content length. */
#profile.profile{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));align-items:start;gap:20px!important;padding:20px!important}
#profile.profile>span{min-width:0;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:12px;line-height:1.5}
#profile.profile>span>strong{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere;max-width:100%}
#profile.profile .profile-copy-line{display:flex;flex-direction:row;align-items:center;gap:10px;width:100%;min-width:0}
#profile.profile .profile-copy-line>b{flex:1;min-width:0;font-weight:650}
#profile.profile>.profile-device-drawer{width:100%;margin-top:0;grid-column:1/-1}
#profile.profile>.profile-device-drawer>summary{display:flex;align-items:center;justify-content:flex-start;min-height:40px}
#profile.profile>.profile-device-drawer>summary>svg{width:18px!important;height:18px!important;max-width:18px;max-height:18px;fill:none!important;stroke:currentColor!important}
#profile.profile .profile-device-fields{padding:10px 0 0;gap:16px}
@media(max-width:650px){#profile.profile{grid-template-columns:minmax(0,1fr);padding:16px!important;gap:16px!important}}

/* Three compact balance tiles beside each other; label above value. */
#customerBalanceSummary.customer-balance-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;flex:0 1 420px;max-width:440px;gap:8px}
#customerBalanceSummary article{padding:9px 11px;border-radius:9px;min-height:58px;display:flex;flex-direction:column;justify-content:center;gap:3px}
#customerBalanceSummary article small{font-size:10.5px;line-height:1.3;margin:0}
#customerBalanceSummary article strong{font-size:17px;line-height:1.3;margin:0}
@media(max-width:650px){#customerBalanceSummary.customer-balance-summary{flex-basis:100%;max-width:none;gap:7px}#customerBalanceSummary article{padding:8px;min-height:56px}#customerBalanceSummary article strong{font-size:16px}}
#customerProfileBackdrop{display:none;position:fixed;inset:0;z-index:19;background:#06100ecc;touch-action:none}
body.profile-open>#customerProfileBackdrop{display:block!important}
body.profile-open{overflow:hidden}
body.profile-open #detail{box-shadow:0 18px 60px #0006!important}

/* Small balance badges in the customer heading. */
#customerBalanceSummary.customer-balance-summary{flex:0 1 315px;max-width:315px;gap:6px}
#customerBalanceSummary article{min-height:43px;padding:6px 9px;gap:2px;border-radius:7px}
#customerBalanceSummary article small{font-size:9px;line-height:1.25;white-space:nowrap}
#customerBalanceSummary article strong{font-size:14px;line-height:1.25}
@media(max-width:650px){#customerBalanceSummary.customer-balance-summary{flex-basis:100%;max-width:315px}#customerBalanceSummary article{min-height:42px;padding:6px 8px}#customerBalanceSummary article strong{font-size:14px}}
/* Options wrap at spaces, rather than breaking readable words into fragments. */
.custom-select-menu>button.custom-select-option{padding:11px 14px 11px 30px!important;text-align:left!important;word-break:normal!important;overflow-wrap:break-word!important;white-space:normal!important;font-size:14px;line-height:1.5!important}
.custom-select-menu>button.custom-select-option[aria-selected=true]::before{left:10px}

/* Workspace tools: field labels inside cards get their own row and spacing */
#workspaceToolsDialog .tool-card .tool-field{display:flex;flex-direction:column;gap:8px;margin:14px 0 8px;font-size:13px}
#workspaceToolsDialog .tool-card .tool-field select{width:100%}
.chart-box .chart-empty{display:grid;place-items:center;height:100%;margin:0;text-align:center;padding:16px}
.chart-box .chart-empty[hidden]{display:none}
/* Team page: keep short columns readable instead of breaking words mid-way */
body.ui-team #users td:not(:last-child),body.ui-team #users th{white-space:nowrap;overflow-wrap:normal;word-break:normal}
body.ui-team #users td:first-child{min-width:110px}
body.ui-team td.nowrap,body.ui-team #events td:first-child{white-space:nowrap}
body.ui-team #membershipForm .custom-select,body.ui-team #membershipForm select{min-width:200px}
/* Record pagers: room for the rows-per-page value (was cut to "2.") */
.record-pagination .custom-select{min-width:96px}
.record-pagination .custom-select-trigger{padding-left:16px;padding-right:34px;min-width:96px}
.record-bet-total{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:12px 16px;margin:12px 0;border:1px solid color-mix(in srgb,#b79aef 35%,var(--line));border-radius:10px;background:color-mix(in srgb,#b79aef 9%,var(--panel));color:var(--text)}
.record-bet-total>span{font-size:13px;font-weight:650}.record-bet-total>strong{font-size:20px;font-variant-numeric:tabular-nums;color:var(--text)}.record-bet-total>small{margin-left:auto;font-size:12px;color:var(--muted)}
.record-bet-total>input[type=date]{width:156px;min-height:36px;padding:6px 10px;margin:0;font-size:13px}
/* Team page: the team-action select needs room for its longest choice */
body.ui-team label:has(#membershipMode){flex:1.6 1 260px}
/* Developer "viewing as" bar: keep it readable in light theme and keep the sidebar and dialogs below it */
.developer-view-bar,.developer-view-bar p,.developer-view-bar strong,.developer-view-bar span{color:#f2faff!important}
.developer-view-bar button{color:#102532!important}
@media(min-width:751px){body:has(> .developer-view-bar) aside{top:var(--dev-bar-h,66px)!important;height:calc(100dvh - var(--dev-bar-h,66px))!important}
body:has(> .developer-view-bar) #detail{top:calc(var(--dev-bar-h,66px) + 8px)!important;max-height:calc(100dvh - var(--dev-bar-h,66px) - 16px)!important}}
/* Light theme: neutral buttons follow the chosen highlight colour instead of a fixed green tint */
:root[data-theme="light"] aside nav button,:root[data-theme="light"] aside nav a{background-color:color-mix(in srgb,var(--accent,#5f9c7a) 9%,#fff);color:#1f2a2e}
:root[data-theme="light"] button{background-color:color-mix(in srgb,var(--accent,#5f9c7a) 6%,#f7f8f8);border-color:color-mix(in srgb,var(--accent,#5f9c7a) 26%,#c9cfd2)}

/* Myanmar glyphs need a local script font and room for stacked vowel marks. */
:root[lang="my"] body,:root[lang="my"] button,:root[lang="my"] input,:root[lang="my"] select,:root[lang="my"] textarea{font-family:"Myanmar Text","Noto Sans Myanmar","Segoe UI",sans-serif!important;line-height:1.7;letter-spacing:normal}
:root[lang="my"] h1,:root[lang="my"] h2,:root[lang="my"] h3,:root[lang="my"] label,:root[lang="my"] .custom-select-option{line-height:1.65;letter-spacing:normal}
:root[lang="my"] .employee-tour-dialog h2{line-height:1.65}
.employee-tour-dialog[lang="my"],.employee-tour-dialog[lang="my"] button{font-family:"Myanmar Text","Noto Sans Myanmar","Segoe UI",sans-serif;line-height:1.7}

/* Pointer-follow effects are disabled across dashboard themes. */
.pointer-glow,.glass-bg .gb-follow{display:none!important}

/* Shared content skeletons: retain the loading region and accessible status. */
:root{--skeleton-base:color-mix(in srgb,var(--text,#dce7e3) 10%,var(--panel,#192623));--skeleton-shine:color-mix(in srgb,var(--text,#dce7e3) 19%,var(--panel,#192623))}
.section-loading-indicator,.report-loader,.md-loading{display:block!important;overflow:hidden;min-height:140px;background:var(--panel,#192623)!important;backdrop-filter:none!important;text-align:left}
.section-loading-indicator>*,.report-loader>*,.md-loading>:not(.skeleton-shape){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.section-loading-indicator::after,.report-loader::after,.md-loading::after,
[aria-busy="true"]:not(button):not(input):not(select):not(textarea):not(.section-is-loading):not(.section-is-refreshing)::after{content:"";display:block;position:absolute;inset:18px;z-index:6;pointer-events:none;
 /* Text-like lines of varied length; the sheen moves across the lines only, never the gaps. */
 background:linear-gradient(100deg,var(--skeleton-base) 35%,var(--skeleton-shine) 50%,var(--skeleton-base) 65%) -200% 0/200% 100%;
 -webkit-mask:linear-gradient(#000 0 12px,transparent 12px) 0 0/100% 102px repeat-y,linear-gradient(#000 0 12px,transparent 12px) 0 34px/84% 102px repeat-y,linear-gradient(#000 0 12px,transparent 12px) 0 68px/62% 102px repeat-y;
 mask:linear-gradient(#000 0 12px,transparent 12px) 0 0/100% 102px repeat-y,linear-gradient(#000 0 12px,transparent 12px) 0 34px/84% 102px repeat-y,linear-gradient(#000 0 12px,transparent 12px) 0 68px/62% 102px repeat-y;
 /* Wait briefly before showing, so quick loads never flash a skeleton. */
 animation:biso-skeleton-in .18s ease .15s backwards,biso-skeleton 1.6s ease-in-out .15s infinite}
.section-loading-indicator,.report-loader,.md-loading{animation:biso-skeleton-in .18s ease .15s backwards}
[aria-busy="true"]:not(button):not(input):not(select):not(textarea):not(.section-is-loading){position:relative;min-height:150px;isolation:isolate}
[aria-busy="true"]:not(button):not(input):not(select):not(textarea):not(.section-is-loading)>:not(.skeleton-shape),
.section-is-loading>:not(.section-loading-indicator):not(.skeleton-shape){filter:none!important;visibility:hidden;opacity:0;animation:biso-content-out .18s ease .15s backwards}
/* Content-shaped skeleton (built by polish.js): a bar where each piece of text, control or image sits. */
.has-skeleton-shape::after,.has-skeleton-shape>.section-loading-indicator::after{display:none!important}
.has-skeleton-shape>.section-loading-indicator{background:transparent!important}
/* User report: the table area draws the pattern; its loader stays only as the spoken status. */
.report-loader:has(+ [aria-busy="true"]){position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)}
.skeleton-shape{position:absolute;inset:0;z-index:7;pointer-events:none;overflow:hidden;animation:biso-skeleton-in .18s ease .15s backwards}
.skeleton-bar{position:absolute;border-radius:6px;background:linear-gradient(100deg,var(--skeleton-base) 40%,var(--skeleton-shine) 50%,var(--skeleton-base) 60%) fixed 0 0/200vw 100%;animation:biso-skeleton-sweep 1.6s ease-in-out infinite}
.skeleton-bar.is-block{border-radius:8px}
@keyframes biso-skeleton-sweep{from{background-position:100vw 0}to{background-position:-100vw 0}}
/* Set by polish.js when a load that showed a skeleton finishes: the content eases back in. */
.skeleton-done>*{animation:biso-content-in .18s ease both}
@keyframes biso-skeleton-in{from{opacity:0}}
@keyframes biso-content-out{from{visibility:visible;opacity:1}}
@keyframes biso-content-in{from{opacity:0}}
@media(prefers-reduced-motion:reduce){.section-loading-indicator,.report-loader,.md-loading,.skeleton-done>*,[aria-busy="true"]>*,.section-is-loading>*,.skeleton-shape,.skeleton-bar{animation:none!important}}
:root[data-motion="reduced"] :is(.section-loading-indicator,.report-loader,.md-loading,.skeleton-done>*,[aria-busy="true"]>*,.section-is-loading>*,.skeleton-shape,.skeleton-bar){animation:none!important}
.md-loading{position:relative;min-height:220px}
#telegramInbox .tg-attachment-loading{display:block;position:relative;width:170px;height:96px;border-radius:9px;overflow:hidden;color:transparent!important;background:linear-gradient(100deg,var(--skeleton-base) 20%,var(--skeleton-shine) 45%,var(--skeleton-base) 70%) -200% 0/200% 100%;animation:biso-skeleton 1.6s ease-in-out infinite}
#telegramInbox .tg-attachment:has(.tg-attachment-loading:not([hidden])){background:transparent;min-height:96px}
#tgMessages[aria-busy="true"]::after{inset:18px 22% 18px 18px!important}
@keyframes biso-skeleton{to{background-position:200% 0,0 0}}
@media(prefers-reduced-motion:reduce){.section-loading-indicator::after,.report-loader::after,.md-loading::after,[aria-busy="true"]::after,#telegramInbox .tg-attachment-loading{animation:none!important}}
:root[data-motion="reduced"] .section-loading-indicator::after,:root[data-motion="reduced"] .report-loader::after,:root[data-motion="reduced"] .md-loading::after,:root[data-motion="reduced"] [aria-busy="true"]::after,:root[data-motion="reduced"] #telegramInbox .tg-attachment-loading{animation:none!important}
.report-loader[hidden],.section-loading-indicator[hidden],.md-loading[hidden]{display:none!important}

/* Stacked spring toasts (window.BisoToast in polish.js) */
html body #toast.toast-stack{position:fixed!important;inset:auto 20px 80px auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;animation:none!important;width:min(380px,calc(100vw - 32px))!important;max-width:none!important;max-height:none!important;overflow:visible!important;display:flex!important;flex-direction:column;gap:10px;z-index:100000;pointer-events:none;color:inherit}
html body #toast.toast-stack[hidden]{display:none!important}
html body #toast .toast-card{pointer-events:auto;position:relative;overflow:hidden;display:flex;align-items:center;gap:12px;padding:13px 16px 15px;border-radius:18px;border:.5px solid var(--ios-sep,rgb(84 84 88 / .55));background:var(--ios-bar,rgb(30 30 30 / .62));-webkit-backdrop-filter:blur(22px) saturate(180%);backdrop-filter:blur(22px) saturate(180%);color:var(--ios-label,#fff);box-shadow:0 14px 34px rgb(0 0 0 / .28),inset 0 .5px 0 rgb(255 255 255 / .12);font-family:var(--ios-font,inherit);cursor:pointer;opacity:0;transform:translateY(16px) scale(.94);transition:transform .5s cubic-bezier(.34,1.56,.64,1),opacity .25s ease}
html body #toast .toast-card.in{opacity:1;transform:none}
html body #toast .toast-card.leaving{opacity:0;transform:translateX(26px) scale(.96);transition:transform .28s ease-in,opacity .28s ease-in}
html body #toast .toast-card p{margin:0;color:inherit;font-size:13px;font-weight:500;line-height:1.45}
html body #toast .toast-icon{flex:none;width:9px;height:9px;margin:0 2px;border-radius:50%;background:var(--ios-tint,var(--accent,#0a84ff));box-shadow:0 0 0 4px color-mix(in srgb,var(--ios-tint,var(--accent,#0a84ff)) 24%,transparent)}
html body #toast .toast-card.warn .toast-icon{background:var(--ios-orange,#ff9f0a);box-shadow:0 0 0 4px color-mix(in srgb,var(--ios-orange,#ff9f0a) 24%,transparent)}
html body #toast .toast-card.success .toast-icon{width:24px;height:24px;margin:0;display:grid;place-items:center;background:var(--ios-green,#30d158);box-shadow:0 0 14px color-mix(in srgb,var(--ios-green,#30d158) 45%,transparent)}
html body #toast .toast-icon svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:20;stroke-dashoffset:20}
html body #toast .toast-card.in .toast-icon svg{animation:toast-tick .35s .18s ease-out forwards}
html body #toast .toast-bar{position:absolute;left:0;bottom:0;width:100%;height:2px;background:var(--ios-tint,var(--accent,#0a84ff));opacity:.75;transform-origin:left;animation:toast-life linear forwards}
html body #toast .toast-card.warn .toast-bar{background:var(--ios-orange,#ff9f0a)}
html body #toast .toast-card.success .toast-bar{background:var(--ios-green,#30d158)}
@keyframes toast-life{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes toast-tick{to{stroke-dashoffset:0}}
:root[data-theme=light] body #toast .toast-card{box-shadow:0 14px 32px rgb(0 0 0 / .12)}
[data-motion=reduced] body #toast .toast-card,[data-motion=reduced] body #toast .toast-card.leaving{transform:none;transition:opacity .15s}[data-motion=reduced] body #toast .toast-icon svg{animation:none;stroke-dashoffset:0}
@media(prefers-reduced-motion:reduce){html body #toast .toast-card,html body #toast .toast-card.leaving{transform:none;transition:opacity .15s}html body #toast .toast-icon svg{animation:none;stroke-dashoffset:0}}
@media(max-width:600px){html body #toast.toast-stack{inset:auto 16px 80px 16px!important;width:auto!important}}

/* Team page: keep each connection's "Open workspace" link on one line */
#connectionList a.connection-open,#connectionList span{white-space:nowrap}
/* Team activity log scrolls sideways on phones, so its cells stay on one line */
#events td{white-space:nowrap}

/* Background refresh of a section that already shows data: the data stays fully visible and
   usable, a small status pill sits in the top-right corner. No blanking, no layout change. */
.section-is-refreshing{position:relative}
html body .section-is-refreshing>.section-loading-indicator.section-loading-indicator{display:inline-flex!important;align-items:center;gap:8px;position:absolute!important;inset:10px 10px auto auto!important;min-height:0!important;height:28px;padding:0 12px!important;overflow:visible;border-radius:999px!important;
 background:var(--c-solid,var(--panel,#192623))!important;box-shadow:inset 0 0 0 1px var(--c-ring,rgba(255,255,255,.12)),0 8px 24px rgba(0,0,0,.25);color:var(--c-strong,var(--text,#e7eeeb))!important;font:600 12px/1 var(--ui-font,system-ui)!important;white-space:nowrap;pointer-events:none!important;z-index:7}
html body .section-is-refreshing>.section-loading-indicator.section-loading-indicator::after{content:none!important;display:none!important}
html body .section-is-refreshing>.section-loading-indicator.section-loading-indicator>*{position:static!important;width:auto!important;height:auto!important;margin:0!important;overflow:visible!important;clip-path:none!important}
html body .section-is-refreshing>.section-loading-indicator.section-loading-indicator>.section-spinner{width:12px!important;height:12px!important;flex:0 0 12px;border-width:2px;border-color:var(--c-line,rgba(255,255,255,.18));border-top-color:var(--c-accent,var(--ui-accent))}
