/* The sidebar categories share one canvas, one heading and one main action. */
#tab-content .category-page, .fin.category-page {
  box-sizing: border-box; width:100%; min-width:0; max-width:1440px;
  margin:0 auto; padding:28px clamp(20px,3vw,40px) 56px;
  color:var(--c-black,var(--f-text,#0a0a0a));
  --category-radius:16px;
}
.category-page .category-head {
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:0; margin:0 0 28px; border:0; min-width:0;
}
.category-page .category-head__text {min-width:0;}
.category-page .category-head h1 {
  margin:0; padding:0; font:650 27px/1.25 Inter,FinanceInter,sans-serif;
  letter-spacing:-.75px; color:inherit;
}
.category-page .category-head p {margin:7px 0 0; font-size:13px; line-height:1.55; color:var(--c-muted,var(--f-muted,#737373));}
.category-head__actions {display:flex; align-items:center; gap:10px; flex-shrink:0;}
.category-page .category-head__actions>.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  box-sizing:border-box; min-height:40px; padding:10px 16px; margin:0;
  border:1px solid transparent; border-radius:12px;
  background:#0664f9; color:#fff; font:550 13px/1.4 Inter,FinanceInter,sans-serif;
  text-decoration:none; cursor:pointer; white-space:nowrap;
}
.category-head__actions>.btn:disabled {opacity:.45;cursor:not-allowed;}
.category-page .category-menu {position:relative;flex-shrink:0;margin:0;padding:0;border:0;z-index:30;}
.category-page .category-menu>summary {
  display:grid;place-items:center;box-sizing:border-box;width:40px;height:40px;
  padding:9px;border:1px solid var(--c-line,var(--f-line,#292929));border-radius:12px;
  background:transparent;color:var(--c-muted,var(--f-muted,#737373));cursor:pointer;list-style:none;
}
.category-menu>summary::-webkit-details-marker {display:none;}
.category-page .category-menu>summary:hover,.category-page .category-menu[open]>summary {background:var(--c-hover,var(--f-soft,#111));color:var(--c-black,var(--f-text,#fff));}
.category-page .category-menu__panel {
  position:absolute;right:0;top:calc(100% + 8px);z-index:50;display:flex;flex-direction:column;
  box-sizing:border-box;width:max-content;min-width:240px;max-width:min(340px,calc(100vw - 40px));
  max-height:min(680px,75vh);overflow:auto;padding:6px;
  border:1px solid var(--c-line-strong,var(--f-line,#292929));border-radius:14px;
  background:var(--c-white,var(--f-bg,#fff));color:var(--c-black,var(--f-text,#0a0a0a));
  box-shadow:0 12px 36px #0003;
}
.category-page .category-menu__panel :is(button,a):not([hidden]) {
  display:flex;align-items:center;gap:9px;min-height:40px;box-sizing:border-box;width:100%;
  margin:0;padding:10px 12px;border:0;border-radius:9px;background:transparent;
  color:inherit;font:450 12px/1.45 Inter,FinanceInter,sans-serif;text-align:left;text-decoration:none;cursor:pointer;
}
.category-page .category-menu__panel :is(button,a):hover {background:var(--c-hover,var(--f-soft,#111));}
.category-page .category-menu__panel button:disabled {opacity:.4;cursor:not-allowed;}
.category-menu__label {font-size:10px;font-weight:600;color:var(--c-faint,var(--f-muted));padding:12px 12px 5px;}
.category-menu__field {display:grid;gap:8px;padding:10px 12px;font-size:12px;}
.category-menu__field select {width:100%;min-height:36px;border:1px solid var(--c-line);border-radius:8px;background:var(--c-white);color:inherit;font:inherit;}
.category-tools {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 22px;}
.category-tabs {display:flex;gap:24px;margin:0 0 24px;border-bottom:1px solid var(--c-line);padding:0 0 10px;background:none;}
.category-page .category-tabs a {padding:6px 0;border:0;border-radius:0;background:none;color:var(--c-muted);font-size:13px;}
.category-page .category-tabs a.is-active {color:var(--c-fill);}
.category-notice {padding:14px 16px;margin:0 0 20px;border:1px solid var(--c-line);border-radius:12px;color:var(--c-muted);font-size:12px;line-height:1.7;}
/* Quiet, rounded containers with neutral surfaces. Tables retain their useful density. */
.category-page :is(.nx__box,.doc__list,.home__tile,.vdb-card,.vdb-detail,.id-overview-card,.ne-empty,.pba-card,.mbx__body) {border-radius:var(--category-radius);}
.category-page :is(.btn,.ccal-button,.ccal-select,.aws-mode,.members-filter input,.members-filter select,.vdb-search,.tm-market-filters>input,.tm-market-filters>select) {border-radius:10px;}
.category-page :is(.lineup__hint,.te-empty) {border:1px solid var(--c-line);border-radius:14px;padding:22px;color:var(--c-muted);}
.category-page .home__tile:has(.home__empty-add) ~ .home__tile:has(.home__empty-add) {display:none;}
.category-page .home__grid {grid-template-columns:repeat(2,minmax(0,1fr));}
.category-page .lv__vtoggle {margin:0;border-radius:10px;overflow:hidden;}
.category-page .lv__vt {font-size:11px;text-transform:none;letter-spacing:0;}
.category-page .lv__vt.is-active {background:var(--c-fill-soft);color:var(--c-fill);}
.category-page .lv__kbar {margin-bottom:0;}
.category-page .lv__kbar:has(.lv__selbar[hidden]) {display:none;}
.category-page .trn2-tabs {display:flex;gap:24px;padding:0;background:none;border:0;border-bottom:1px solid var(--c-line);border-radius:0;margin-bottom:22px;}
.category-page .trn2-tab {background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 0;color:var(--c-muted);font-size:13px;}
.category-page .trn2-tab.is-on {color:var(--c-fill);border-bottom-color:var(--c-fill);box-shadow:none;}
.category-page .trn2-tab.is-on::after {display:none;}
.category-page .id-tool-nav {gap:6px;margin-bottom:26px;}
.category-page .id-tool {border-radius:9px;padding:8px 11px;}
.category-page .id-tool.is-on {color:var(--c-fill);border-color:transparent;background:var(--c-fill-soft);}
.category-page .mbx__body {border:1px solid var(--c-line);overflow:hidden;min-height:380px;}
.category-page.mbx {height:auto;min-height:100%;}
.category-page .club-mbx__setup {padding:32px;border:1px solid var(--c-line);border-radius:16px;background:var(--c-white);}
.category-page .club-mbx__setup h2 {font-size:19px;margin:0 0 10px;}
.category-page .club-mbx__setup p {font-size:13px;color:var(--c-muted);}
/* Settings stay independently saved; opening a section never changes any value. */
.category-page .category-section {
  display:block;min-width:0;padding:0;margin:0 0 10px;border:1px solid var(--c-line,var(--f-line,#292929));
  border-radius:14px;background:var(--c-white,var(--f-bg,#fff));scroll-margin-top:18px;
}
.category-section>summary,.category-page .club-connection-entry {
  display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;
  cursor:pointer;list-style:none;font-size:13px;font-weight:550;color:inherit;
}
.category-page .club-connection-entry {text-decoration:none;}
.club-connection-chevron {flex:none;font-size:18px;font-weight:400;color:var(--c-muted);}
.category-page .club-connection-entry:hover {background:var(--c-hover);}
.category-page .club-connection-entry:focus-visible {outline:2px solid #0664f9;outline-offset:3px;}
.category-section>summary::-webkit-details-marker {display:none;}
.category-section>summary::after {content:'+';font-size:18px;font-weight:400;color:var(--c-muted);}
.category-section[open]>summary::after {content:'−';}
.category-section__body {padding:0 20px 22px;font-size:13px;}
.category-section__body>.nx__hint:first-child {margin-top:0;}
.category-page.account-settings {max-width:1100px;}
.category-page .account-card {border-radius:16px;}
.category-page.settings {display:block;max-width:1100px;}
.category-page .category-search {display:flex;align-items:center;gap:10px;margin-bottom:24px;padding:10px 14px;min-height:42px;border:1px solid var(--c-line);border-radius:12px;color:var(--c-muted);box-sizing:border-box;}
.category-search input {width:100%;border:0;outline:0;background:transparent;color:var(--c-black);font:inherit;font-size:13px;}
.category-search-empty {color:var(--c-muted);font-size:13px;}
.category-page.pba>.inner {padding:0;max-width:none;}
.category-page.pba .weekbar {padding-top:0;}
.category-page.pba .category-head #pageTitle {font-size:27px;margin:0;}
/* The public website remains its own design; Studio chrome belongs to SquadOS. */
#tab-content .category-page.wstudio {display:block;height:auto;min-height:0;border:0;border-radius:0;overflow:visible;background:transparent;}
.category-page.wstudio .category-head h1 {margin:0;font-size:27px;}
.category-page.wstudio .wstudio-toolbar {padding:0 0 18px;gap:12px;border:0;}
.category-page.wstudio .wstudio-devices {margin:0 0 0 auto;}
.category-page.wstudio .wstudio-status {font-size:11px;width:100%;margin:0;color:var(--c-muted);}
.category-page.wstudio .wstudio-body {height:clamp(480px,68vh,880px);min-width:0;border:1px solid var(--c-line);border-radius:16px;overflow:hidden;}
.category-page.wstudio .wstudio-canvas-wrap {min-width:0;padding:18px;background:var(--c-hover);}
.category-page.wstudio .ws-stage {border-radius:8px;box-shadow:0 4px 24px #0002;}
.category-page.wstudio:not(.is-edit) .ws-stage {overflow:hidden;}
.category-page.wstudio:not(.is-edit) .wstudio-palette {display:none;}
.category-page.wstudio:not(.is-edit) [data-ws-save],.category-page.wstudio.is-edit [data-ws-entry] {display:none;}
.category-page.wstudio .category-menu__panel :is(.ws-draft-bar,.ws-live-bar,.ws-page-tools,.wstudio-focus) {display:flex;flex-direction:column;align-items:stretch;gap:3px;padding:5px;border:0;margin:0;background:transparent;}
.category-page.wstudio .category-menu__panel label {display:grid;gap:7px;font-size:11px;padding:8px;}
.category-page.wstudio .category-menu__panel select {width:100%;min-width:0;max-width:100%;}
.category-page.wstudio .category-menu__panel .wstudio-draft {align-self:start;margin:4px 12px;border:0;background:var(--c-hover);color:var(--c-muted);}
.category-page.wstudio .category-menu__panel :is([data-ws-live-status],[data-ws-draft-count]) {padding:6px 12px;font-size:11px;}
.category-page.wstudio .category-menu__panel .ws-primary {background:transparent;color:inherit;}
.category-page.wstudio .category-menu__panel .ws-multi-controls {display:flex;flex-direction:column;}
/* Embedded finance uses the same category shell and keeps its access gate. */
.fin.category-page {--c-black:var(--f-text);--c-white:var(--f-bg);--c-line:var(--f-line);--c-line-strong:var(--f-line);--c-muted:var(--f-muted);--c-hover:var(--f-soft);}
.fin.category-page .fin-gate {margin:0;padding:28px;border:1px solid var(--f-line);border-radius:16px;background:var(--f-soft);max-width:620px;}
.category-page [hidden] {display:none!important;}
.category-page :is(button,a,summary,input,select):focus-visible {outline:2px solid #0664f9;outline-offset:4px;}
@media(max-width:760px) {
  #tab-content .category-page,.fin.category-page {padding:22px 18px 44px;}
  .category-page .category-head {gap:18px;align-items:flex-start;flex-wrap:wrap;margin-bottom:24px;}
  .category-page .category-head h1,.category-page.wstudio .category-head h1,.category-page.pba .category-head #pageTitle {font-size:25px;}
  .category-head__actions {width:100%;justify-content:space-between;}
  .category-page .category-head__actions>.btn {flex:1;white-space:normal;}
  .category-head__actions:has(>.category-menu:only-child) {width:auto;margin-left:auto;}
  .category-page .category-head:has(.category-head__actions>.category-menu:only-child) {flex-wrap:nowrap;}
  .category-page .home__grid {grid-template-columns:1fr;}
  .category-page.wstudio .wstudio-toolbar {flex-wrap:wrap;}
  .category-page.wstudio .wstudio-devices {margin-left:0;}
  .category-page.wstudio .wstudio-body {height:65vh;min-height:400px;}
  .category-page.wstudio .wstudio-palette {width:210px;min-width:170px;}
  .category-page .category-menu__panel {max-height:65vh;}
  .category-section>summary,.category-page .club-connection-entry {padding:17px 16px;}
  .category-section__body {padding:0 16px 20px;}
}

/* Common navigation and screen-reader text also apply before training assets load. */
.category-page .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.category-page .category-tabs {display:flex;gap:24px;margin:0 0 24px;padding:0 0 10px;border:0;border-bottom:1px solid var(--c-line);border-radius:0;background:none;}
.category-page .category-tabs a {font-size:13px;line-height:1.5;}
.category-head__primary {display:contents;}
.category-page .category-head__primary>.btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:40px;padding:10px 16px;border:1px solid transparent;border-radius:12px;background:#0664f9;color:#fff;font:550 13px/1.4 Inter,sans-serif;white-space:nowrap;}
.category-page .at-header {margin-top:6px;}
@media(max-width:760px){.category-page.wstudio.is-edit .wstudio-body{height:auto;display:flex;flex-direction:column}.category-page.wstudio.is-edit .wstudio-canvas-wrap{height:65vh;flex:none}.category-page.wstudio.is-edit .wstudio-palette{width:auto;min-width:0;max-height:360px}.category-page .category-head__primary>.btn{white-space:normal}.category-head__primary{flex:1;display:flex}.category-head__primary>.btn{width:100%}}

.category-menu__group {padding:0;border:0;margin:0;}
.category-menu__group>summary {display:flex;align-items:center;gap:8px;justify-content:space-between;padding:12px;font-size:12px;cursor:pointer;border-radius:9px;}
.category-menu__group>summary:hover {background:var(--c-hover);}
.category-menu__group>summary::after {content:'+';color:var(--c-muted);}
.category-menu__group[open]>summary::after {content:'−';}
.category-page .category-tabs a.is-active {background:transparent;border-bottom:2px solid var(--c-fill);}
.category-page .category-tabs a {padding:6px 2px 12px;margin-bottom:-11px;}
:root[data-theme=dark] #tab-content .category-page {--c-bg:#000;--c-white:#0f0f0f;--c-surface-2:#171717;--c-hover:#171717;--c-line:#242424;--c-line-strong:#343434;--c-muted:#a3a3a3;--c-faint:#909090;--c-black:#f3f3f3;}
@media(max-width:640px){
  #tab-content .category-page.lv--v2 .lv__hrow {display:none!important;}
  #tab-content .category-page.lv--v2 .lv__prow {min-width:0!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px;padding:14px 30px 14px 14px;}
  #tab-content .category-page.lv--v2 .lv__prow :is(.lv__c--stamm,.lv__c--role,.lv__c--pos2) {display:none;}
  #tab-content .category-page.lv--v2 .lv__list {min-width:0;}
}
@media(max-width:760px){
  .category-page.wstudio.is-edit .wstudio-palette {position:static;inset:auto;box-shadow:none;border-left:0;border-top:1px solid var(--c-line);}
}

/* Preserve the maps mailbox panes while sharing the category action language. */
.mailapp{--mail-accent:#0664f9}
.mailapp .mailapp-brand h1{font-size:27px;font-weight:650;letter-spacing:-.75px}
.mailapp .mailapp-head{padding:24px clamp(20px,3vw,40px);gap:18px}
.mailapp .mail-btn--primary{background:#0664f9;border-color:#0664f9;color:#fff;border-radius:12px;min-height:40px}
.mailapp .mail-btn--primary:hover{background:#0664f9;border-color:#0664f9;opacity:1}
.mailapp :is(.mail-message,.mail-compose){border-radius:16px}
.mailapp .mailapp-actions>.mail-menu>summary,.mailapp .mailapp-actions>form .mail-icon-btn{width:40px;height:40px;border-radius:12px}
@media(max-width:760px){.mailapp .mailapp-head{padding:18px 16px}.mailapp .mailapp-brand h1{font-size:23px}.mailapp .mailapp-symbol{display:none}.mailapp .mailapp-actions{gap:6px}.mailapp .mailapp-actions>.mail-menu>summary,.mailapp .mailapp-actions>form .mail-icon-btn{width:34px;min-width:34px;height:36px}.mailapp .mail-btn--primary{min-height:36px}}

.day-location-value{display:flex;align-items:center;gap:8px;min-width:0}
.day-location-value .day-fact-value{flex:1;min-width:0;overflow-wrap:anywhere}
.day-location-value .el-location-action{position:static;flex:none;width:28px;height:28px;min-height:28px;padding:5px;border:1px solid var(--c-line);border-radius:8px;background:transparent;color:var(--c-muted)}
.training-day__facts .el-field-wrap{min-width:0;width:100%}
