/* Staff navigation follows the academy’s Mat Culture surface and appearance preference. */
body.staff-shell-active {
  --staff-rail:232px;
  --staff-bottom:calc(64px + env(safe-area-inset-bottom,0px));
  --staff-gutter:clamp(16px,3.25vw,48px);
  display:block;
  min-width:0;
  max-width:none;
  margin:0;
  padding-inline-start:var(--staff-rail);
}
body.staff-shell-active *, body.staff-shell-active *::before, body.staff-shell-active *::after {box-sizing:border-box}
body.portal [data-route-inactive] {display:none!important}
body.staff-shell-active > header:not(.staff-shell-header),
body.staff-shell-active .manage-main > .manage-nav,
body.staff-shell-active #teaching-bar,
body.staff-shell-active .workspace-switcher {display:none!important}
body.staff-shell-active #workspace:not([hidden]) {display:block}
body.staff-shell-active main {min-width:0;max-width:100%}
body.staff-shell-active .app-main > #feedback:not(:empty) {margin-left:0}
body.staff-shell-active .workspace-pages, body.staff-shell-active .manage-main {min-width:0;padding-inline:var(--staff-gutter)}
body.staff-shell-active .workspace-pages {padding-top:clamp(16px,2.5vw,36px)}
body.staff-shell-active .manage-main > .manage-heading:first-of-type {margin-top:0}
body.staff-shell-active .staff-shell-header {
  position:sticky;top:0;z-index:21;
  display:flex;align-items:center;justify-content:flex-start;gap:.75rem;
  width:100%;max-width:none;min-height:64px;
  margin:0;padding:.6rem max(16px,env(safe-area-inset-right,0px)) .6rem max(16px,env(safe-area-inset-left,0px));
  border:0;border-bottom:1px solid var(--mc-line);
  background:var(--mc-page);color:var(--mc-text);
  font:500 1rem/1.35 var(--mc-type);
}
.staff-shell-header .staff-shell-academy {display:block;min-width:0;font:650 1rem/1.3 var(--mc-type);letter-spacing:-.02em;overflow-wrap:anywhere}
.staff-shell-header .staff-shell-location {
  display:flex;align-items:center;position:relative;min-width:0;max-width:18rem;
  margin:0;font:500 .875rem/1 var(--mc-type);
}
.staff-shell-header .staff-shell-location svg {position:absolute;left:.7rem;pointer-events:none}
body.staff-shell-active .staff-shell-location select {
  min-height:44px;min-width:0;width:auto;max-width:100%;margin:0;
  padding:.35rem .55rem .35rem 1.95rem;border:1px solid var(--mc-line);border-radius:24px;
  background-color:var(--mc-panel);color:var(--mc-text);text-overflow:ellipsis;font:inherit;
}
body.staff-shell-active .staff-shell-header #quickJump {
  display:inline-flex;align-items:center;justify-content:flex-start;gap:.55rem;
  width:auto;min-width:0;min-height:44px;margin:0 0 0 auto;padding:.4rem .75rem;
  color:var(--mc-muted);background:var(--mc-panel);border:1px solid var(--mc-line);
  border-radius:8px;font:500 .875rem/1.2 var(--mc-type);
}
.staff-shell-header svg, .staff-shell-rail svg {width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.staff-shell-header .staff-shell-location svg {width:14px;height:14px}
.staff-shell-header #quickJump kbd {margin:0 0 0 .4rem;padding:2px 5px;border:1px solid var(--mc-line);border-radius:4px;color:var(--mc-muted);font-size:.72rem}
.staff-shell-account,.staff-shell-related {position:relative;width:auto;max-width:100%;margin:0;border:0;padding:0;background:transparent}
body.staff-shell-active .staff-shell-account > summary,body.staff-shell-active .staff-shell-related > summary {
  display:flex;align-items:center;gap:.5rem;min-height:44px;padding:0 .2rem;
  margin:0;border:0;background:transparent;color:var(--mc-text);cursor:pointer;list-style:none;font:550 .875rem/1.2 var(--mc-type)
}
.staff-shell-account summary::-webkit-details-marker,.staff-shell-related summary::-webkit-details-marker {display:none}
.staff-shell-account-label {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:12rem}
.staff-shell-avatar {width:32px;height:32px;display:grid;place-items:center;flex:none;background:var(--mc-nav-selected);color:var(--mc-nav-text);border-radius:50%;font-size:.8rem}
body.staff-shell-active .staff-shell-menu {
  position:absolute;top:calc(100% + 4px);z-index:25;display:grid;align-content:start;gap:.1rem;
  margin:0;min-width:210px;max-width:min(340px,calc(100vw - 24px));
  max-height:calc(100dvh - 130px);overflow:auto;overscroll-behavior:contain;
  padding:.35rem;border:1px solid var(--mc-line);border-radius:10px;
  background:var(--mc-panel);color:var(--mc-text);box-shadow:0 10px 26px rgb(0 0 0 / .12);
}
.staff-shell-account .staff-shell-menu {right:0}
body.staff-shell-active .staff-shell-menu :is(a,button) {
  display:flex;align-items:center;justify-content:flex-start;gap:.4rem;width:100%;min-height:44px;
  margin:0;padding:.55rem .65rem;border:0;border-radius:6px;background:transparent;color:var(--mc-text);
  text-align:left;word-break:normal;text-decoration:none;font:500 .875rem/1.3 var(--mc-type);
}
body.staff-shell-active .staff-shell-menu :is(a,button):hover,
body.staff-shell-active .staff-shell-menu a[aria-current] {background:var(--mc-soft)}
.staff-shell-identity {display:block;padding:.55rem .65rem;border-bottom:1px solid var(--mc-line);overflow-wrap:anywhere;font-size:.875rem}
.staff-shell-legal {display:flex;flex-wrap:wrap;border-block:1px solid var(--mc-line)}
body.staff-shell-active .staff-shell-legal a {width:auto;font-size:.78rem}
.staff-shell-status:empty {display:none}
.staff-shell-status {padding:.5rem;color:var(--mc-error);font-size:.85rem}
body.staff-shell-active .staff-shell-phone-settings {display:none}
body.staff-shell-active #tabs.staff-shell-rail {
  position:fixed;z-index:22;inset:0 auto 0 0;
  width:var(--staff-rail);height:100dvh;max-height:none;min-width:0;
  display:flex;flex-direction:column;gap:4px;align-items:stretch;
  padding:max(16px, env(safe-area-inset-top,0px)) 12px 16px;
  margin:0;border:0;border-right:1px solid var(--mc-line);
  overflow-y:auto;background:var(--mc-nav);color:var(--mc-nav-text);font-family:var(--mc-type);
}
body.staff-shell-active #tabs .staff-shell-brand, body.staff-shell-active #tabs .staff-shell-dest {
  position:relative;display:flex;align-items:center;justify-content:flex-start;gap:.7rem;
  flex:none;width:100%;min-height:44px;margin:0;padding:.6rem .7rem;border:0;border-radius:8px;
  background:transparent;color:var(--mc-nav-text);text-align:left;text-decoration:none;font:500 .95rem/1.2 var(--mc-type);
}
body.staff-shell-active #tabs .staff-shell-brand {font-size:1.15rem;font-weight:700;letter-spacing:-.035em;margin-bottom:10px;padding:.25rem .5rem .65rem}
body.staff-shell-active #tabs .staff-shell-brand svg {width:26px;height:18px;fill:var(--mc-action);stroke:none}
body.staff-shell-active #tabs .staff-shell-dest svg {width:20px;height:20px}
body.staff-shell-active #tabs .staff-shell-dest:hover,
body.staff-shell-active #tabs .staff-shell-dest[aria-current=page] {background:var(--mc-nav-selected)}
body.staff-shell-active #tabs .staff-shell-dest[aria-current=page] {box-shadow:inset 3px 0 0 var(--mc-action)}
body.staff-shell-active #tabs .staff-shell-dest::before {content:none}
body.staff-shell-active #tabs .staff-shell-dest[data-destination=setup] {margin-top:auto}
.staff-shell-badge {margin-left:auto;color:var(--mc-on-action);background:var(--mc-action);border-radius:20px;padding:2px 6px;font:650 .72rem/1.25 var(--mc-type)}
.staff-shell-section {position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:0 .7rem;min-width:0;max-width:100%;margin:0 0 1.35rem}
body.staff-shell-active .staff-shell-title {width:100%;margin:0 0 .6rem;color:var(--mc-text);font:650 clamp(1.45rem,2.15vw,2rem)/1.12 var(--mc-type);letter-spacing:-.045em}
body.staff-shell-active .staff-shell-subnav {
  display:flex;align-items:stretch;flex:0 1 auto;gap:4px;position:static;min-width:0;max-width:100%;
  margin:0;padding:2px;border:0;border-bottom:1px solid var(--mc-line);border-radius:0;
  overflow-x:auto;overscroll-behavior-x:contain;background:transparent;
}
body.staff-shell-active .staff-shell-subnav a {
  display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:.45rem .65rem;border:0;
  border-radius:0;color:var(--mc-muted);background:transparent;text-decoration:none;white-space:nowrap;font:550 .88rem/1.25 var(--mc-type);
}
body.staff-shell-active .staff-shell-subnav a[aria-current] {color:var(--mc-text);box-shadow:inset 0 -2px 0 var(--mc-action)}
body.staff-shell-active .staff-shell-subnav a:hover {background:var(--mc-soft)}
body.staff-shell-active .staff-shell-related > summary {color:var(--mc-muted);text-decoration:underline;text-underline-offset:3px;font-weight:500}
.staff-shell-related .staff-shell-menu {inset-inline-start:0}
.staff-shell-local-links {order:2;display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;max-width:100%}
.staff-shell-local-links:empty,.staff-shell-local-links a:is([href="/"],[href^="/?academy="]:not([href*="#"])) {display:none}
body.staff-shell-active .staff-shell-local-links a {min-height:44px;margin:0;font:500 .83rem/1.3 var(--mc-type)}
body.staff-shell-active .staff-settings-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));align-items:start;gap:.9rem}
body.staff-shell-active .staff-settings-card {
  min-width:0;height:100%;margin:0;padding:1rem 1.15rem;border:1px solid var(--mc-line);border-radius:10px;background:var(--mc-panel)
}
body.staff-shell-active .staff-settings-card h3 {margin:0 0 .4rem;color:var(--mc-text);font:650 1rem/1.3 var(--mc-type)}
.staff-settings-card ul {margin:0;padding:0;list-style:none}
.staff-settings-card li {margin:0;padding:0;border:0}
.staff-settings-card a,.staff-setup-banner {display:inline-flex;align-items:center;min-height:44px;color:var(--mc-text);font:500 .88rem/1.3 var(--mc-type);text-decoration:underline;text-underline-offset:3px}
.staff-setup-banner {display:flex;margin-bottom:1rem;padding:.65rem 1rem;border-radius:7px;background:var(--mc-plot-soft);color:var(--mc-text);font-weight:600}
body.staff-shell-active [hidden] {display:none!important}
body.staff-shell-active.reviewing-workspace .staff-shell-rail,
body.staff-shell-active:has(#workspace[hidden]) > .staff-shell-header {visibility:hidden}
@media (min-width:701px) and (max-width:1024px) {
  body.staff-shell-active {--staff-rail:76px}
  body.staff-shell-active #tabs.staff-shell-rail {padding:12px 5px;gap:5px}
  body.staff-shell-active #tabs .staff-shell-brand {justify-content:center}
  body.staff-shell-active #tabs .staff-shell-brand span {display:none}
  body.staff-shell-active #tabs .staff-shell-dest {flex-direction:column;justify-content:center;gap:3px;width:100%;min-height:54px;padding:7px 2px;font-size:.7rem;text-align:center}
  .staff-shell-badge {position:absolute;top:2px;left:50%;margin:0 0 0 8px}
}
@media (max-width:700px) {
  body.staff-shell-active {--staff-rail:0px;--staff-gutter:16px;padding-bottom:var(--staff-bottom)}
  body.staff-shell-active .staff-shell-header {gap:.25rem .65rem;flex-wrap:wrap;padding:.4rem max(14px,env(safe-area-inset-right,0px)) .4rem max(14px,env(safe-area-inset-left,0px))}
  .staff-shell-header .staff-shell-academy {flex:1 0 100%;font-size:.94rem}
  .staff-shell-header .staff-shell-location {max-width:48%;flex:0 1 auto}
  body.staff-shell-active .staff-shell-header #quickJump {min-width:44px;flex:1 1 70px;padding:.3rem .5rem}
  .staff-shell-header #quickJump span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .staff-shell-header #quickJump kbd,.staff-shell-account-label,.staff-shell-location > svg {display:none}
  body.staff-shell-active .staff-shell-location select {padding-inline:.5rem;font-size:.8rem}
  body.staff-shell-active .staff-shell-account > summary {min-width:44px;justify-content:center}
  body.staff-shell-active .staff-shell-phone-settings {display:flex}
  body.staff-shell-active #tabs.staff-shell-rail {
    inset:auto 0 0;display:flex;flex-direction:row;justify-content:space-around;align-items:center;gap:2px;
    overflow:visible;width:100%;max-width:none;height:var(--staff-bottom);max-height:none;
    padding:4px max(8px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
    border:0;border-top:1px solid var(--mc-line);
  }
  body.staff-shell-active #tabs .staff-shell-brand,
  body.staff-shell-active #tabs .staff-shell-dest[data-destination=setup] {display:none}
  body.staff-shell-active #tabs .staff-shell-dest {display:flex;align-items:center;justify-content:center;flex:1 1 0;flex-direction:column;gap:3px;min-width:0;min-height:48px;padding:5px 0;font-size:.7rem;text-align:center}
  .staff-shell-badge {position:absolute;top:2px;left:50%;margin-left:7px}
  body.staff-shell-active #tabs .staff-shell-dest[aria-current=page] {box-shadow:inset 0 3px 0 var(--mc-action)}
  .staff-shell-section {margin-bottom:.85rem}
  body.staff-shell-active .staff-shell-subnav {width:100%;scrollbar-width:thin}
  .staff-shell-active :is(.toast,.status-toast,.sheet:not(dialog),.action-sheet:not(dialog)) {bottom:calc(var(--staff-bottom) + 8px)}
  body.staff-shell-active .staff-shell-menu {max-height:calc(100dvh - var(--staff-bottom) - 105px)}
}
@media (prefers-reduced-motion:reduce) {
  .staff-shell-active .staff-shell-subnav {scroll-behavior:auto}
}

body.staff-shell-index :is(#peopleHeading,#scheduleTitle) {display:none}
:root[data-mat-surface="work"] body.staff-shell-active main h1[data-staff-page-title] {
  margin-block:0 .55rem;
  color:var(--mc-text);
  font:650 clamp(1.45rem,2.15vw,2rem)/1.12 var(--mc-type);
  letter-spacing:-.045em;
}
.staff-coach-profile {margin:0;padding:0;border:0}
.staff-coach-profile summary {display:flex;align-items:center;min-height:44px;padding:.55rem .65rem;cursor:pointer;font:500 .875rem/1.3 var(--mc-type)}
.staff-coach-profile p {margin:0;padding:.2rem .65rem .65rem;color:var(--mc-muted);font-size:.84rem}

.staff-shell-header .staff-search-short {display:none}
body.staff-shell-index:has(.staff-shell-location) :is(#overviewSiteControl,#scheduleSite) {display:none!important}
@media (max-width:700px) {
  .staff-shell-header #quickJump .staff-search-full {display:none}
  .staff-shell-header #quickJump .staff-search-short {display:inline}
  .staff-shell-header .staff-shell-location {max-width:52%}
}

/* Export descriptions and Settings tabs share the available content column. */
.records-export #page-content {
  display:block;width:min(100% - 2rem,68rem);min-width:0;margin-inline:auto;padding-block:1.5rem;
}
.records-export #page-content .staff-shell-section,.records-export .setup-steps,.records-export .setup-steps li {
  min-width:0;max-width:100%;
}
.records-export #page-content .intro {max-width:55ch}
.records-export .setup-steps {margin-top:1.5rem}
.records-export .setup-steps a {grid-template-columns:minmax(0,1fr) auto;overflow-wrap:anywhere}
