/* Shared modern surfaces. Branded Pro identity and contrast variables remain authoritative. */
:root{--muted:#435147}
.card{border-radius:18px;border-color:#dce2d6;box-shadow:0 2px 6px #14201904}
input,textarea,select{font-size:16px;min-width:0}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:36px}
.modern-select{position:relative;min-width:0;width:100%;text-align:left;color:var(--ink);font-size:16px}
.modern-select-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0!important;pointer-events:none!important;padding:0!important;border:0!important;clip-path:inset(50%)}
.modern-select-trigger.secondary{display:flex;justify-content:space-between;width:100%;max-width:100%;padding:11px 14px;min-height:46px;background:var(--paper,#fff);border:1px solid #bbc7b4;border-radius:12px;color:var(--ink);font-size:16px;font-weight:500;text-align:left;overflow-wrap:anywhere}
.modern-select-trigger[aria-expanded=true]{border-color:var(--gold);box-shadow:0 0 0 3px #c9aa6020}
.modern-select-panel{position:absolute;z-index:90;left:0;right:0;top:calc(100% + 6px);background:var(--paper,#fff);color:var(--ink);border:1px solid #d4ddcc;border-radius:13px;padding:7px;box-shadow:0 12px 28px #17231c22;max-height:320px;overflow:auto;min-width:100%;isolation:isolate}
.modern-select-panel[hidden],.modern-select-option[hidden]{display:none!important}
.modern-select-panel input{background:var(--paper,#fff);color:var(--ink);width:100%;margin-bottom:6px}
.modern-select-option{display:flex;width:100%;justify-content:flex-start;padding:11px 12px;min-height:44px;border:0;border-radius:8px;background:var(--paper,#fff);color:var(--ink);font-size:16px;font-weight:500;text-align:left;white-space:normal;overflow-wrap:anywhere}
.modern-select-option:hover{background:#eef1e9;filter:none}.modern-select-option[aria-pressed=true]{background:#eee6d0;color:#17231c}.modern-select-option:disabled{cursor:default;opacity:.55}
.account .modern-select{width:auto;min-width:170px;max-width:280px}
.nav .nav-section{border:0;margin:4px 0 12px}.nav .nav-section summary{font-size:11px;letter-spacing:1px;text-transform:uppercase;min-height:32px;padding:8px 12px;cursor:pointer;color:inherit}.nav .nav-section a{font-size:14px;margin:3px 0}.nav .nav-section summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.portal-section-jump{position:relative;margin:0 0 20px;width:min(100%,420px);color:var(--ink)}.portal-section-jump>summary{padding:12px 15px;border:1px solid #bdc9b6;border-radius:12px;background:var(--paper,#fff);min-height:46px;cursor:pointer;font-size:16px;font-weight:500;list-style:none}.portal-section-jump>summary::-webkit-details-marker{display:none}.portal-section-jump>summary:after{content:'⌄';float:right}.portal-section-panel{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:80;background:var(--paper,#fff);border:1px solid #cbd6c2;border-radius:14px;box-shadow:0 12px 28px #17231c20;padding:8px;max-height:360px;overflow:auto}.portal-section-panel input{margin-bottom:7px;width:100%}.portal-section-panel a{display:block;padding:11px 12px;border-radius:8px;min-height:44px;text-decoration:none;color:var(--ink);background:var(--paper,#fff)}.portal-section-panel a[aria-current=page]{background:#eee6d0;color:#17231c}.portal-section-panel a:hover{background:#eef1e9}.portal-section-panel a[hidden]{display:none}.training-tools{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
@media(min-width:1001px){body:not(.custom-branding) .sidebar{background:#fff;color:#17231c;border-right:1px solid #dce2d6}body:not(.custom-branding) .sidebar .brand{color:#17231c}body:not(.custom-branding) .sidebar .nav a{color:#263c2d}body:not(.custom-branding) .sidebar .nav a.active{background:#eee6d0;color:#17231c}body:not(.custom-branding) .sidebar .nav a:hover{background:#edf1e8}body:not(.custom-branding) .sidebar .eyebrow{color:#405947}body:not(.custom-branding) .sidebarfooter{color:#405947}body:not(.custom-branding) .sidebarfooter button{background:#edf1e8;color:#17231c}}
@media(max-width:700px){.account .modern-select{width:100%;max-width:100%;min-width:0}.portal-section-jump{width:100%}.modern-select-panel{max-height:260px}.modern-select-trigger.secondary{font-size:16px}.training-tools .button{flex:1;min-width:135px}}

.profile-photo-large{display:inline-flex;width:96px;height:96px;border-radius:50%;overflow:hidden;align-items:center;justify-content:center;background:var(--paper,#f3f3ed);color:#17251c;font-size:32px}.profile-photo-editor input[type=file]{max-width:100%}.client-initial[data-profile-photo],.avatar[data-profile-photo]{overflow:hidden;flex-shrink:0}

.superset-context{margin:16px 0 20px;padding:14px;background:#f7f7f1;color:#17251c;border:1px solid #d9ddd3;border-radius:14px}.superset-context-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-bottom:10px;color:#17251c}.superset-context ol{list-style:none;padding:0;margin:0;display:grid;gap:8px}.superset-context li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;border-radius:10px;background:#fff;color:#17251c;border:1px solid #d9ddd3}.superset-context li.is-current{background:#eee4c8;border-color:#a48a42}.superset-context-label{font-weight:800;color:#17251c}.superset-context-name{font-weight:600;overflow-wrap:anywhere;color:#17251c}.superset-context-status{font-size:12px;font-weight:700;color:#354336;white-space:nowrap}@media(max-width:480px){.superset-context li{grid-template-columns:auto minmax(0,1fr)}.superset-context-status{grid-column:2}}

/* Live replacement controls inherit workspace colours and readable modal styling. */
.replacement-results{display:grid;gap:8px;margin:12px 0;max-height:280px;overflow:auto}.replacement-results button{text-align:left;white-space:normal;overflow-wrap:anywhere}.replacement-history{margin-top:16px}.replacement-history strong{overflow-wrap:anywhere}.replacement-history [role="status"]{display:block;margin-top:8px}

.post-session-feedback{background:var(--green,#e6eee4);color:var(--ink,#202823);border-radius:14px;padding:18px;margin:16px 0 24px}.post-session-feedback textarea,.post-session-feedback select{color:var(--ink,#202823);background:var(--paper,#fff);font-size:16px}.post-session-feedback form{margin:16px 0}.post-session-feedback .review-entry{background:var(--paper,#fff);color:var(--ink,#202823);padding:14px;border-radius:10px;margin:10px 0}.post-session-feedback .feedback-text{white-space:pre-wrap;overflow-wrap:anywhere}

#assessmentTemplates fieldset{border:1px solid var(--line);border-radius:12px;padding:16px;margin:16px 0}#assessmentTemplates input,#assessmentTemplates textarea,#assessmentTemplates select,#nutritionPersonal input{font-size:16px;color:var(--ink);background:var(--paper)}#assessmentTemplates .row{flex-wrap:wrap}#assessmentTemplates .row strong{overflow-wrap:anywhere}
