.core-brand,.core-head,.core-foot,.work-main{width:min(calc(100% - 2rem),86rem);margin-inline:auto}
.core-head{display:block;margin-block:0 1.5rem;font:inherit;border-bottom:1px solid #d5dce5}
.core-brand{width:100%;display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.core-brand a,.core-head nav a{margin:0;background:none;text-decoration:none}
.core-brand a:first-child{display:flex;align-items:center;gap:.6rem;font-size:1.55rem;font-weight:750;color:inherit}
.core-brand img{width:1.9rem;height:2.9rem}
.core-head nav{display:flex;gap:2px;align-items:center;flex-wrap:wrap;margin:.25rem 0 1rem;font-size:.94rem}
.core-head nav :is(a,span,summary){display:block;padding:.65rem .72rem;border-radius:.55rem;font-weight:650}
.core-head nav a,.core-head summary{color:inherit;cursor:pointer}
.core-head nav [aria-disabled]{background:transparent;color:#667383;font-weight:400}
.core-head nav [aria-current]{background:#e4edf8;color:#174f8c;box-shadow:inset 0 -3px #c35422}
.core-head .settings{position:relative}
.core-head summary::after{content:' ▾'}
.core-head .settings div{position:absolute;z-index:12;right:0;background:white;color:#24364d;padding:.4rem;width:max-content;border:1px solid #d5dce5;border-radius:.7rem;box-shadow:0 .4rem 1.4rem #16243d19}
.core-foot{border-top:1px solid #d5dce5;color:#5c6a7d;padding:1.25rem 0;margin-block:2rem 0;font-size:.85rem}
.nav-toggle{display:none}
main.work-main,main.work-main:has(.modules),main.work-main:has(.chat-archive){width:min(calc(100% - 2rem),86rem);margin:1.75rem auto}
.work-main>section{max-width:66rem}.work-main h1{margin-bottom:1rem}
.staff-row{border-top:1px solid #d5dce5;padding:.75rem 0}.staff-row summary{cursor:pointer;font-weight:650}
.staff-row form{max-width:34rem;margin:.8rem 0}.staff-row label{display:flex;align-items:center;gap:.65rem}
.staff-row input[type=checkbox]{width:1.2rem;height:1.2rem;min-height:0}
.core-head :focus-visible{outline:3px solid #2673b8;outline-offset:2px}
[data-theme=dark] .core-head [aria-current]{background:#2c4561;color:white}
[data-theme=dark] .core-head .settings div{background:#243346;color:white}
[data-theme=dark] :is(.core-foot,.core-head nav [aria-disabled]){color:#adbac9}
@media(max-width:62rem){.nav-toggle{display:block;background:transparent;border:1px solid #8896a5;color:inherit;font:inherit;padding:.5rem .8rem;border-radius:.5rem;margin:0 0 .7rem;min-height:44px;cursor:pointer}.nav-toggle[aria-expanded=false]+nav{display:none}.core-head nav{align-items:stretch;display:grid;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}.core-head .settings div{position:static;width:100%}.core-head{margin-bottom:1rem}}
.overview-grid,.guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.guide{grid-template-columns:minmax(10rem,1fr) 3fr}.guide nav,.guide article,.overview-grid article,.staff-row,.staff-add{background:var(--panel,Canvas);color:inherit;border:1px solid #b9c7d7;border-radius:.8rem;padding:1rem 1.2rem;margin:0 0 .8rem}.guide nav{align-self:start}
.overview-grid a,.guide nav a{display:block;padding:.7rem .1rem}.guide li+li{margin-top:.65rem}
.profile-grid{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:.75rem 1.5rem}.profile-grid dd{margin:0;font-weight:600}
select.theme-picker{display:block;padding:.65rem 2rem .65rem .8rem;min-height:44px;max-width:100%;width:17rem;font:inherit;color:inherit;background:Canvas;border:1px solid #91a1b5;border-radius:.55rem}
.staff-rights{display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.55rem}
.work-main :focus-visible{outline:3px solid #2471ae;outline-offset:2px}
@media(max-width:42rem){.guide,.overview-grid{grid-template-columns:minmax(0,1fr)}.profile-grid{grid-template-columns:minmax(0,1fr);gap:.3rem}.profile-grid dd{margin-bottom:.75rem}}
.overview-grid .metric{font-size:2.1rem;line-height:1.2;padding:0;font-weight:700}.overview-grid h2{margin-top:0}
/* Handbook follows the test workspace reading layout. */
.work-main>section:has(.guide){max-width:none;background:transparent;box-shadow:none;border:0;padding:0}
.guide-intro,.guide-lead{color:#58687c;line-height:1.55}.guide-note{padding:.9rem 1rem;border-inline-start:4px solid #e2a47d;background:var(--guide-paper,white);border-radius:.5rem;margin:1rem 0 1.25rem}
.guide-note a,.guide a{margin:0}.guide{grid-template-columns:minmax(12rem,15rem) minmax(0,1fr);align-items:start;gap:1.35rem}.guide nav{position:sticky;top:1rem;margin:0;max-height:calc(100dvh - 2rem);overflow:auto;padding:.75rem}.guide nav a{background:transparent;color:#165492;font-weight:550;text-decoration:none;padding:.65rem}.guide nav a:hover{background:#ecf3fa}.guide article{padding:clamp(1rem,3vw,2rem);margin-bottom:1rem;scroll-margin-block:1rem}.guide h2{margin:0}.guide ol{padding-left:1.5rem;list-style:decimal}.guide li{padding:0;border:0;line-height:1.6;max-width:78ch}.guide-state{color:#70522e}
.core-head summary[aria-current]{background:#e4edf8;color:#174f8c;box-shadow:inset 0 -3px #c35422;border-radius:.5rem}
.health-work{display:grid;gap:1.15rem;align-content:start}.health-work>h1,.health-work>p,.health-work .ac-card h2,.health-work .ac-card h3{margin:0}.health-work #health-notice:empty{display:none}
.health-work .ac-card{padding:clamp(16px,2.4vw,30px);display:grid;gap:1rem;align-content:start;min-width:0}.health-work [hidden]{display:none!important}
.health-work .ac-card form{margin:0;gap:12px 16px}.health-work .ac-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11.5rem),1fr));align-items:end}.health-work label:not(:has(input[type=checkbox])){display:grid;align-content:end;gap:.4rem}.health-work label:has(input[type=checkbox]){display:flex;align-items:center;gap:.5rem;min-height:44px}
.health-work :is(input:not([type=checkbox]),select,button){font:inherit;min-height:44px}.health-work .ac-form-grid :is(input:not([type=checkbox]),select){min-width:0;width:100%}
.health-work :is(#constraints,#operator){padding:1rem;border:1px solid var(--ac-line,#cbd5df);border-radius:.75rem}.health-work #constraints{display:grid;gap:1rem;justify-items:start}.health-work #constraints .ac-form-grid{width:100%}.health-work #weekdays{display:flex;gap:.5rem;flex-wrap:wrap}.health-work #weekdays label{padding:0 .6rem;border:1px solid var(--ac-line,#cbd5df);border-radius:.45rem}
.health-work .ac-card>button,.health-work .health-link{justify-self:start}.health-link{color:var(--ac-blue,#165492);font-weight:600;padding:.65rem 0}.health-work .ac-table-wrap{max-width:100%}.health-work .ac-actions:empty{display:none}
.staff-row .membership{border-top:1px solid #cbd5df;padding-top:1rem}.staff-row .membership label:not(:has(input[type=checkbox])){display:grid;gap:.4rem}
[data-theme=dark]{--guide-paper:#202b39}[data-theme=dark] .guide :is(a,.guide-lead),[data-theme=dark] .guide-intro{color:#bdcee0}[data-theme=dark] .guide-state{color:#f3d2a0}
@media(max-width:700px){.guide{grid-template-columns:1fr}.guide nav{position:static;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr))}.health-work{gap:.85rem}.health-work .ac-form-grid{grid-template-columns:1fr}.health-work .ac-form-grid>button{width:100%}.health-work .ac-card{padding:1rem}.guide article{scroll-margin-top:.5rem}}
.health-work .ac-card+.ac-card,.health-work .ac-actions{margin-block:0}
main.health-work>section{max-width:none}
.health-work #weekdays label{flex:0 0 auto}
.health-work .ac-card #closed-ranges{margin:0}.health-work #closed-ranges:empty{display:none}
.health-work .ac-card #constraints{align-content:start}
@media(min-width:701px){.health-work label.health-section-picker:not([hidden]){display:none}}

.staff-search{display:grid;grid-template-columns:minmax(10rem,1fr) minmax(12rem,16rem) auto auto;align-items:end;gap:.75rem;margin-block:1rem}
.staff-search label{display:grid;min-width:0;gap:.25rem}.staff-search :is(select,input){width:100%;min-width:0}
.staff-search :is(button,a){margin:0}.staff-search a{padding:.65rem .25rem}
@media(max-width:700px){.staff-search{grid-template-columns:minmax(0,1fr) auto}.staff-search label{grid-column:1/-1}.staff-search button{justify-self:start}}
main.work-main>section:has(.cash-window){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;row-gap:1rem;max-width:none;padding:0;border:0;background:transparent;box-shadow:none}
.work-main>section:has(.cash-window)>h1{margin:0}
.cash-window{display:contents}.cash-window>a{grid-row:1;grid-column:2;min-height:44px;display:inline-flex;align-items:center;color:var(--accent,#165492);font-size:.9rem}
.cash-window iframe{grid-column:1/-1;display:block;width:100%;border:0;background:transparent}
.cash-window iframe:not([height]){height:72vh}


.staff-add label:has(input[type=checkbox]){display:flex;flex-direction:row;align-items:center;gap:.6rem}.staff-add input[type=checkbox]{width:1.25rem;height:1.25rem;min-height:0;flex:0 0 auto;margin:0}

.work-main>section:has(.cash-link){max-width:36rem}
.cash-link{display:grid;gap:1rem}
.cash-link h2,.cash-link p,.cash-link dl,.cash-link form{margin:0}
.cash-link dl{display:grid;grid-template-columns:minmax(7rem,auto) minmax(0,1fr);gap:.5rem 1rem}
.cash-link dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.cash-link a,.cash-link button{justify-self:start}
.cash-link a{margin:0;padding:.5rem 0}

/* Keep the identity and both steps of SMS sign-in on the same column. */
.core-brand.login-head {
  width: min(calc(100% - 2rem), 28rem);
  margin: clamp(1.25rem, 5vh, 3.5rem) auto 0;
  padding: 0;
}
.login-head + .login-main {
  margin: clamp(1rem, 2.5vh, 1.75rem) auto 2rem;
}

/* Shared page edges, text rhythm and controls across staff modules. */
:root {
  --team-width:86rem;
  --team-gutter:clamp(1rem,2.5vw,2rem);
  --team-column:min(calc(100% - 2 * var(--team-gutter)),var(--team-width));
  --team-inset:clamp(1rem,2vw,1.75rem);
  --team-gap:1rem;
  --team-font:system-ui,-apple-system,"Segoe UI",sans-serif;
}
body:has(.core-head) {font:1rem/1.5 var(--team-font);color:var(--team-text);background:var(--team-page)}
body .core-head,body .core-foot,body main.work-main,body.acs-app main {
  box-sizing:border-box;width:var(--team-column);max-width:var(--team-width);margin-inline:auto;
}
body.acs-app main {padding-inline:0}
.core-brand, .work-main *, .core-head * {box-sizing:border-box}
main.work-main>section {max-width:none;min-width:0;padding:var(--team-inset);border-color:var(--team-edge)}
main.work-main>section:has(.profile-grid),main.work-main>section:has(.cash-link) {max-width:44rem}
.work-main h1 {font:700 clamp(1.55rem,3vw,2rem)/1.2 var(--team-font);letter-spacing:-.025em}
.work-main h2 {font:650 1.15rem/1.4 var(--team-font)}
.work-main h3 {font:650 1rem/1.4 var(--team-font)}
.work-main :is(button,input:not([type=checkbox],[type=radio],[type=hidden]),select,textarea) {font-family:var(--team-font)}
.work-main :is(form,nav) button {margin-block-start:0}
.work-main :is(.ac-table-wrap,.cash-scroll,.acg-table-scroll) {min-width:0;max-width:100%;overflow:auto}
.work-main :is(.ac-table-wrap,.cash-reports,.cert-work) table {width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
@media(min-width:701px){
  .work-main :is(.ac-table-wrap,.cash-reports,.cert-work) :is(td,th) {
    padding:.75rem 1rem;vertical-align:middle;text-align:start;border-bottom:1px solid var(--team-edge)
  }
  .work-main :is(.ac-table-wrap,.cash-reports,.cert-work) th {color:var(--team-muted);font-weight:650}
}
.work-main :is(.staff-add,.staff-row,.overview-grid article,.guide article,.guide nav){border-color:var(--team-edge)}
.work-main .overview-grid {gap:var(--team-gap);margin-block:var(--team-gap)}
.work-main .overview-grid article {margin:0}
.work-main :focus-visible,.core-head :focus-visible {outline-color:var(--team-focus)}
[data-theme=dark] .core-head nav summary[aria-current] {color:var(--team-link);background:var(--team-tint)}
[data-theme=dark] .guide nav a:hover {background:var(--team-tint)}
/* Health Day uses Team's layout directly; the roster keeps its mobile action disclosure. */
main.health-work {grid-template-columns:minmax(0,1fr);gap:var(--team-gap)}
main.health-work>section {margin:0;border-radius:1rem;background:var(--team-paper);color:var(--team-text)}
.health-work p,.health-work #health-sections {margin:0}
.health-work :is(.settings-row,.health-link) {margin:0;color:var(--team-link);font-weight:600}
.health-work :is(.ac-subnav,.ac-actions) {display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}
.health-work :is(button,input,select) {font:inherit;border-radius:.55rem;min-height:44px}
.health-work input[type=checkbox] {width:1.2rem;height:1.2rem;min-height:0;margin:0;accent-color:var(--team-action)}
.health-work :is(input:not([type=checkbox]),select) {background:var(--team-paper);color:var(--team-text);border:1px solid var(--team-muted);padding:.55rem .75rem}
.health-work button {margin:0;padding:.55rem .9rem;background:var(--team-action);color:var(--team-on-action);font-weight:600;border:1px solid transparent}
.health-work button[type=button] {background:var(--team-paper);color:var(--team-link);border-color:var(--team-edge)}
.health-work button[aria-pressed=true] {background:var(--team-tint);color:var(--team-link);border-color:var(--team-link)}
.health-work button:disabled {opacity:.65;cursor:default}
.health-work .ac-card form {margin:0}
.health-work #constraints {display:grid}
.health-work .ac-table-wrap {border:1px solid var(--team-edge);border-radius:.65rem}
.health-work .ac-table-wrap th {background:var(--team-tint)}
.health-work .ac-table-wrap tr:last-child td {border-bottom:0}
.health-work .health-row-choices {gap:.5rem}
.health-work :is(#roster-count,#stats-summary) {color:var(--team-muted)}
.health-work #health-notice:not(:empty) {padding:.75rem 1rem;border-inline-start:3px solid var(--team-link);background:var(--team-tint)}
.health-work form button {align-self:end}
.health-work p:empty {display:none}
@media(max-width:700px){
  .health-work .ac-table-wrap :is(td,th) {padding:.55rem;text-align:start}
  main.health-work #health-sections {display:none}
  main.health-work #roster {border:0}
  .health-work .health-section-picker select {width:100%}
  .health-work #constraints {justify-items:stretch}
  .health-work .ac-form-grid>* {min-width:0}
}
.work-main :is(.cert-tabs,.cash-report-nav,#health-sections) {gap:.5rem}
.work-main :is(.cert-tabs,.cash-report-nav) a {display:inline-flex;align-items:center;min-height:44px;margin:0;padding:.55rem .8rem;font-weight:600}
.work-main :is(.cert-tabs,.cash-report-nav) a[aria-current=page] {background:var(--team-tint);color:var(--team-link)}
.work-main .usage-cohort :is(th,td):not(:first-child) {text-align:end}
.health-work #roster-count {margin:0}

body .core-head :is(.settings div,.settings div a) {color:var(--team-text);background:var(--team-paper)}
.core-head .settings div a:hover {background:var(--team-hover)}
.work-main :is(.staff-search,.cert-filters,.cash-reports form,.order-search) {align-items:end;gap:.75rem 1rem}
.work-main :is(.staff-search,.cert-filters,.cash-reports form,.order-search,.staff-add) label:not(:has(input[type=checkbox])) {display:grid;min-width:0;gap:.375rem}
.work-main .staff-add form {margin-block:1rem .25rem;gap:.75rem}
.work-main :is(.staff-row,.staff-add)>summary {min-height:44px;align-content:center;cursor:pointer}
.work-main :is(.cert-pages,.cert-actions,.ac-pagination,.cash-report-nav),
body.acs-app .panel-nav {align-items:center;gap:.5rem}
body.acs-app .panel-nav button,.work-main :is(.cert-actions,.cert-pages) a {min-height:44px;align-content:center;margin:0}
body .work-main .cert-details,body .work-main .profile-grid {line-height:1.5;row-gap:.65rem}
body.acs-app .table-scroll {overflow:auto;max-width:100%}
body.acs-app .table-scroll table {width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
body.acs-app .table-scroll :is(th,td) {padding:.75rem 1rem;text-align:start;vertical-align:middle}
@media(max-width:700px){
  body .work-main .cert-work .acg-layout {grid-template-columns:minmax(0,1fr)}
  .work-main .cert-filters,.work-main .cash-reports form {gap:.75rem}
  .work-main .cert-details dd {min-width:0}
}
body.acs-app :is(#channels-area,#statistics-area,.channel-card,.channel-grid,.channel-history,.channel-mail,.panel) {min-width:0}
body.acs-app #channels-area {grid-template-columns:minmax(0,1fr)}
body.acs-app .table-scroll {min-width:0}
body.acs-app .panel-nav {flex-wrap:wrap}
