/* Unified controls (patch 277): one size and shape for buttons, link-buttons, on/off sliders, disabled state and the Ctrl K list.
   Loaded after skin.css on every page. Uses the colour-mode variables, so all four modes keep working. */
/* ---- Ctrl K list: clearer group headings ---- */
html body .cmdk .pn{width:min(680px,94vw)}
html body .cmdk .gh{padding:18px 20px 7px;font-size:15px;letter-spacing:.09em;font-weight:800;color:var(--cy);border-top:1px solid var(--line);margin-top:6px}
html body .cmdk .ls>.gh:first-child{border-top:0;margin-top:0}
html body .cmdk .sh{padding:8px 20px 3px 24px;font-size:13.5px;font-weight:700;color:var(--tx);opacity:.78}
html body .cmdk a{padding:11px 20px;font-size:15px}
html body .cmdk a i{font-size:13px}
html body .cmdk input{font-size:18px}
/* ---- buttons: one size, one shape ---- */
html body .w :is(button,a.btn,.btn,input[type=submit],input[type=button]):where(:not([data-f]):not(.rm):not(.kbd):not(.bell):not(.sw):not(.th *):not(.sk *):not(.swc *)){min-height:38px;padding:8px 16px;border-radius:10px;font:600 14px/1.2 inherit;font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;margin:4px 6px 4px 0;cursor:pointer;text-decoration:none;box-sizing:border-box;vertical-align:middle;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s}
html body .w :is(button,.btn,input[type=submit],input[type=button]):where(:not(.kbd):not(.sw):not(.th *):not(.sk *)):hover{text-decoration:none}
/* secondary: outline (Update, Cancel, Back, Edit, Open ...) */
html body .w :is(button,a.btn,.btn).ghost:not(.sw),html body .w :is(button,a.btn,.btn).sec:not(.sw),html body .w :is(button,a.btn,.btn).alt:not(.sw){background:transparent;color:var(--cy);border:1px solid var(--cy);box-shadow:none}
html body .w :is(button,a.btn,.btn).ghost:not(.sw):hover,html body .w :is(button,a.btn,.btn).sec:not(.sw):hover,html body .w :is(button,a.btn,.btn).alt:not(.sw):hover{background:var(--pill);filter:none;transform:none}
/* danger: Delete, Remove ... */
html body .w :is(button,a.btn,.btn).dng:not(.sw){background:transparent;color:var(--er,#e5484d);border:1px solid var(--er,#e5484d);box-shadow:none}
html body .w :is(button,a.btn,.btn).dng:not(.sw):hover{background:color-mix(in srgb,var(--er,#e5484d) 14%,transparent);filter:none;transform:none}
/* small */
html body .w :is(button,a.btn,.btn).sm{min-height:30px;padding:4px 11px;font-size:13px;border-radius:8px}
/* disabled */
html body .w :is(button,a.btn,.btn,input[type=submit],input[type=button]):is(:disabled,[disabled],.dis,[aria-disabled=true]){background:var(--in);color:var(--mu);border:1px dashed var(--line);box-shadow:none;cursor:not-allowed;opacity:.65;transform:none;filter:none;pointer-events:none}
html body .w :is(button,a.btn,.btn):focus-visible{outline:2px solid var(--cy);outline-offset:2px}
/* ---- link-buttons: rows of links that act like buttons ---- */
html body .w a.lb,html body .w .acts a:not(.btn){display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;margin:3px 6px 3px 0;border:1px solid var(--line);border-radius:99px;color:var(--tx);background:transparent;font-weight:600;font-size:14px;text-decoration:none;transition:background .15s,border-color .15s}
html body .w a.lb:hover,html body .w .acts a:not(.btn):hover{border-color:var(--cy);background:var(--pill);text-decoration:none}
html body .w .hero2 .acts a:not(.btn){color:#fff;border-color:rgba(255,255,255,.4);background:rgba(255,255,255,.1)}
html body .w .hero2 .acts a:not(.btn):hover{background:rgba(255,255,255,.2);border-color:#fff}
html body .w a.lb.cur,html body .w .scnav a.cur{background:var(--btn);color:var(--btnt);border-color:transparent}
/* page sub-menu (Scan pages and similar) */
html body .w .scnav{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0 14px}
html body .w .scnav b{font-size:18px;margin-right:10px}
html body .w .scnav a{display:inline-flex;align-items:center;min-height:36px;padding:6px 14px;margin:0;border:1px solid var(--line);border-radius:99px;color:var(--tx);font-weight:600;font-size:14px;text-decoration:none}
html body .w .scnav a:hover{border-color:var(--cy);background:var(--pill);text-decoration:none}
/* ---- on/off slider ---- */
html body .w button.sw.sw{position:relative;width:48px;min-width:48px;height:28px;min-height:0;padding:0;margin:4px 8px 4px 0;border:0;border-radius:99px;background:rgba(128,138,155,.55);font-size:0;color:transparent;line-height:0;box-shadow:none;cursor:pointer;vertical-align:middle;display:inline-block;transition:background .2s}
html body .w button.sw.sw:after{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .2s}
html body .w button.sw.sw[aria-checked=true]{background:var(--cy)}
html body .w button.sw.sw[aria-checked=true]:after{transform:translateX(20px)}
html body .w button.sw.sw:hover{transform:none;filter:brightness(1.08);box-shadow:none}
html body .w button.sw.sw:focus-visible{outline:2px solid var(--cy);outline-offset:3px}
html body .w .swl{display:inline-block;min-width:30px;font-size:12px;font-weight:700;letter-spacing:.06em;color:var(--mu);vertical-align:middle}
html body .w button.sw.sw[aria-checked=true]+.swl{color:var(--cy)}
/* checkbox settings shown as a slider */
html body .w label.swc{display:inline-flex;align-items:center;gap:9px;cursor:pointer}
html body .w label.swc>input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:44px;height:26px;padding:0;margin:0;border:0;border-radius:99px;background:rgba(128,138,155,.55);cursor:pointer;transition:background .2s}
html body .w label.swc>input[type=checkbox]:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35);transition:transform .2s}
html body .w label.swc>input[type=checkbox]:checked{background:var(--cy)}
html body .w label.swc>input[type=checkbox]:checked:after{transform:translateX(18px)}
html body .w label.swc>input[type=checkbox]:focus-visible{outline:2px solid var(--cy);outline-offset:2px}
html body .w label.swc>input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}
html body .w button.mxpt-btn{background:transparent;color:var(--cy);border:1px solid var(--cy);min-height:30px;padding:4px 11px;font-size:13px;border-radius:8px;box-shadow:none;filter:none}
html body .w button.mxpt-btn:hover{background:var(--pill);transform:none;filter:none}
html body .w .mxpt-bar{align-self:start;height:auto}
html body .w [data-f]{color:#fff}
html body .w .swl{padding:3px 11px;border:1px solid var(--line);border-radius:99px;min-width:46px;text-align:center;background:transparent}
html body .w button.sw.sw[aria-checked=true]+.swl{background:color-mix(in srgb,var(--cy) 18%,transparent);border-color:var(--cy)}

/* ---- pill shape for every button (patch 283) ---- */
html body .w :is(button,a.btn,.btn,input[type=submit],input[type=button]):not(.sw):not([data-f]):not(.rm):not(.th *):not(.sk *):not(.swc *){border-radius:999px!important}
html body .w :is(button,a.btn,.btn,input[type=submit],input[type=button]):not(.sw):not([data-f]):not(.rm):not(.th *):not(.sk *):not(.swc *):where(:not(.sm)){padding-left:18px;padding-right:18px}
html body .kbd,html body .sk button,html body .sk{border-radius:999px}
/* slider colours always win over page button classes (g, ghost, btn) */
html body .w button.sw.sw{background:rgba(128,138,155,.55)!important;border:0!important;box-shadow:none!important;padding:0!important}
html body .w button.sw.sw[aria-checked=true]{background:var(--cy)!important}
/* readability fixes found by the contrast scan */
html body .bell b,html body .kbd b{background:#d92d20!important;color:#fff!important}
html body .w th{color:var(--tx);opacity:.78}
html[data-theme=bright] body .w .m,html[data-theme=bright] body .w .mu{color:#4d5c75}
html[data-theme=bright] .sk button.on{color:#fff}
html body .w :is(button,a.btn,.btn).g:not(.sw){background:transparent;color:var(--cy);border:1px solid var(--cy);box-shadow:none}
html body .w :is(button,a.btn,.btn).g:not(.sw):hover{background:var(--pill);transform:none;filter:none}
html body .w :is(button,a.btn,.btn).g.dng{color:var(--er,#e5484d);border-color:var(--er,#e5484d)}
html[data-theme=bright] .sk button.on,html[data-theme=bright] body .sk button.on{color:#fff!important}
html[data-theme=bright] body .w .pill.un{color:#b45309}
html[data-theme=bright] body .w .pill.ag{color:#15803d}
html[data-theme=bright] body .w .pill.dl{color:#b42318}
html body .w button.sw.sw{border-radius:999px!important}
html body .sk button,html body .sk button.on,html body .sk>*{border-radius:999px!important}
/* ---- patch 416: reference button look. Pill shape, soft depth and a little shadow. Colours stay as they are in each colour mode. ---- */
html body .w :is(button,a.btn,.btn,input[type=submit],input[type=button]):where(:not([data-f]):not(.rm):not(.kbd):not(.bell):not(.sw):not(.th *):not(.sk *):not(.swc *)){border-radius:999px;padding-left:20px;padding-right:20px;box-shadow:inset 0 2px 3px rgba(255,255,255,.34),inset 0 -3px 6px rgba(0,0,0,.2),0 6px 14px var(--sh,rgba(0,0,0,.3));letter-spacing:.01em}
html body .w :is(button,a.btn,.btn,input[type=submit],input[type=button]):where(:not([data-f]):not(.rm):not(.kbd):not(.bell):not(.sw):not(.th *):not(.sk *):not(.swc *)):hover{transform:translateY(-1px);box-shadow:inset 0 2px 3px rgba(255,255,255,.4),inset 0 -3px 6px rgba(0,0,0,.2),0 9px 20px var(--sh,rgba(0,0,0,.35));filter:brightness(1.05)}
html body .w :is(button,a.btn,.btn,input[type=submit],input[type=button]):where(:not([data-f]):not(.rm):not(.kbd):not(.bell):not(.sw):not(.th *):not(.sk *):not(.swc *)):active{transform:translateY(1px);box-shadow:inset 0 3px 7px rgba(0,0,0,.28),0 2px 5px var(--sh,rgba(0,0,0,.25));filter:none}
/* outline buttons keep their outline, with the same pill and a lighter depth */
html body .w :is(button,a.btn,.btn).ghost:not(.sw),html body .w :is(button,a.btn,.btn).sec:not(.sw),html body .w :is(button,a.btn,.btn).alt:not(.sw),html body .w :is(button,a.btn,.btn).g:not(.sw),html body .w :is(button,a.btn,.btn).dng:not(.sw){border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 3px 9px var(--sh,rgba(0,0,0,.25))}
html body .w :is(button,a.btn,.btn).ghost:not(.sw):hover,html body .w :is(button,a.btn,.btn).sec:not(.sw):hover,html body .w :is(button,a.btn,.btn).alt:not(.sw):hover,html body .w :is(button,a.btn,.btn).g:not(.sw):hover,html body .w :is(button,a.btn,.btn).dng:not(.sw):hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 6px 14px var(--sh,rgba(0,0,0,.3))}
html body .w :is(button,a.btn,.btn,input[type=submit],input[type=button]):is(:disabled,[disabled],.dis,[aria-disabled=true]){box-shadow:none;transform:none;filter:none}
/* links that act as buttons (the little action links in the top bar of a page and in boxes) */
html body .w a.lb,html body .w .acts a:not(.btn){border-radius:999px;padding-left:18px;padding-right:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 3px 9px var(--sh,rgba(0,0,0,.25))}
html body .w a.lb:hover,html body .w .acts a:not(.btn):hover{transform:translateY(-1px);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 6px 14px var(--sh,rgba(0,0,0,.3))}
html body .w .hero2 .acts a:not(.btn){background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.08))}
/* ---- patch 416: phone layer. Fields never run past their box, bigger tap targets, calmer spacing. Desktop is untouched. ---- */
@media(max-width:700px){
html body .w input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),html body .w select,html body .w textarea{max-width:100%;box-sizing:border-box;font-size:16px}
html body .w input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([style*=width]):not([size]),html body .w select:not([style*=width]),html body .w textarea:not([style*=width]){width:100%}
html body .w .box{padding:16px 14px;margin-left:0;margin-right:0}
html body .w form{max-width:100%}
html body .w :is(button,a.btn,.btn,input[type=submit],input[type=button]):where(:not([data-f]):not(.rm):not(.kbd):not(.bell):not(.sw):not(.th *):not(.sk *):not(.swc *):not(.sm)){min-height:44px}
html body .w :is(button,a.btn,.btn).sm:where(:not(.sw)){min-height:36px}
html body .w .acts{gap:10px}
html body .w p>button+button,html body .w p>button+a.btn{margin-top:8px}
html body .w .box{overflow-x:auto}
html body .w .hero2.stl .stats>div{flex:1 1 calc(50% - 12px);min-width:0}
html body .w .hero2.stl .stats>div b{font-size:26px;padding:12px 8px}
html body .w .dg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html body .w input[type=file]{max-width:100%;width:100%;box-sizing:border-box}
html body .w h2{margin-top:6px}
}
/* ---- patch 417: phone menu and Team Room. Same pills, balanced rows, room above the browser bar. ---- */
.pm.pmo .nav{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px));row-gap:10px}
.pm.pmo .nav>.kbd{min-height:46px;border-radius:999px;font-size:15px;font-weight:700;box-shadow:inset 0 2px 3px rgba(255,255,255,.34),inset 0 -3px 6px rgba(0,0,0,.2),0 6px 14px var(--sh,rgba(0,0,0,.3));margin-top:6px}
.pm.pmo .nav>.kbd.bell{grid-column:1/3!important}
.pm.pmo .nav>.kbd:not(.bell){grid-column:3/4!important;display:flex;align-items:center;justify-content:center}
.rm-side>button.g{display:inline-flex!important;width:auto!important;float:none!important;vertical-align:top;align-items:center;margin:0 8px 10px 0!important;min-height:40px;padding:8px 16px;font-size:14px;border-radius:999px;box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 3px 9px var(--sh,rgba(0,0,0,.25))}
.rm-head button.g,.rm-act button{border-radius:999px;padding:8px 16px}
@media(max-width:700px){.rm-side>button.g{min-height:42px;padding:8px 12px;font-size:13px;margin-right:6px!important}}
.rm-side>button.g{align-self:flex-start}
@media(max-width:700px){.rm-side{display:flex;flex-direction:row!important;flex-wrap:wrap;align-items:flex-start}.rm-side>:not(button){flex:0 0 100%;min-width:0}}
/* ---- patch 418: phone header in Classic style and in every colour mode ---- */
html body.pm:not(.pmo) .nav .sk,html body.pm:not(.pmo) .nav>.sk{display:none!important}
html body.pm.pmo .nav .sk,html body.pm.pmo .nav>.sk{display:flex!important;grid-column:1/-1!important;width:100%!important;margin:6px 0!important;box-sizing:border-box}
html body.pm.pmo .nav .sk button{flex:1}
.pm .nav>b{min-width:0;white-space:nowrap;position:relative;z-index:1}
.pm.pmo .nav>b,.pm.pmo .nav #mxm{color:var(--tx)}
.pm.pmo .nav #mxm{background:var(--pill);border-color:var(--line);box-shadow:inset 0 2px 3px rgba(255,255,255,.2),0 6px 14px var(--sh,rgba(0,0,0,.3))}
.pm .nav #mxm{white-space:nowrap;flex:none}
html[data-theme=bright] body.pm.pmo .nav{background:rgba(244,247,251,.98)}
html[data-theme=bright] body.pm.pmo .nav a{background:#fff;border-color:#d5deea;color:#10213a;box-shadow:0 2px 6px rgba(16,33,58,.08)}
html[data-theme=bright] body.pm.pmo .nav a.cur{background:linear-gradient(160deg,#dcecff,#f2f8ff);border-color:var(--cy);color:#0a1628}
html[data-theme=bright] body.pm.pmo .nav>b{color:#0a1628}
html[data-theme=bright] body.pm.pmo .nav .sk{background:#e6edf5;border-color:#d5deea}
/* ---- patch 419: wide tables become cards on phone; form fields line up ---- */
@media(max-width:700px){
html body .w table.cardt{display:block;width:100%;border:0}
html body .w table.cardt thead{display:none}
html body .w table.cardt tbody{display:block}
html body .w table.cardt tr{display:block;border:1px solid var(--line);border-radius:14px;padding:8px 12px;margin:0 0 10px;background:rgba(255,255,255,.03)}
html body .w table.cardt td{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;width:auto!important;border:0!important;padding:5px 0!important;text-align:right;word-break:break-word}
html body .w table.cardt td::before{content:attr(data-l);flex:0 0 36%;text-align:left;color:var(--mu);font-size:11.5px;text-transform:uppercase;letter-spacing:.4px;padding-top:2px}
html body .w table.cardt td:not([data-l])::before{display:none}
html body .w table.cardt td:empty{display:none}
html body .w form input:is([type=text],[type=email],[type=tel],[type=search],[type=password],[type=url],:not([type])):not([size]):not([type=checkbox]){width:100%!important;max-width:100%}
}
@media(max-width:700px){html body .w table.cardt tr:has(>th){display:none}}
.sp:has(>a){height:auto}
