/*
 * BE Personal Training — canonical colour system (logo-matched).
 * Primary: ink/near-black; Secondary: warm ivory; Accent: BE gold.
 * Neutral semantic colours are retained for errors, confirmed bookings and attendance.
 * Loaded LAST to prevent later workspace styles from silently reverting to green.
 */
:root{
 --be-ink:#1b211e;--be-ink-soft:#35403a;--be-night:#111a16;
 --be-gold:#c9a363;--be-gold-dark:#806034;--be-gold-soft:#f7eedb;
 --be-paper:#f8f6f1;--be-surface:#fffefa;--be-line:#e7e1d5;
 --be-muted:#6e736e;--be-muted-light:#8a8e88;
 --be-dark:var(--be-night);--be-green:var(--be-ink);
 --be-forest:var(--be-night);--be-teal:var(--be-gold-soft);
 --be-amber:var(--be-gold);--be-warm:var(--be-paper);
 --be-grey:var(--be-muted);--be-rule:var(--be-line);
 --ink:var(--be-ink);--ink2:var(--be-night);
 --paper:var(--be-paper);--cream:#f1eee6;
 --gold:var(--be-gold);--text:var(--be-ink);
 --muted:var(--be-muted);--line:var(--be-line);
 --life-green:var(--be-ink);--life-cream:var(--be-paper);
 --tr-ink:var(--be-ink);
 color-scheme:light;
}
html{background:var(--be-paper)}
body,.be-shell,.app-shell,.be-workspace,.be-main{background:var(--be-paper);color:var(--be-ink)}
.be-shell{background:var(--be-paper)}
/* Navigation stays very dark to match the approved visual, but not emerald green. */
.be-sidebar,.sidebar{background:var(--be-night);color:#f3f0e9}
.be-sidebar .be-nav-item,.sidebar .nav-link{color:#e0e0d8}
.be-sidebar .be-nav-item:hover,.sidebar .nav-link:hover{background:#2a302b;color:#fff}
.be-sidebar .be-nav-item.active,.sidebar .nav-link.active{
 background:#343c35;color:#fff;box-shadow:inset 3px 0 var(--be-gold)
}
.be-nav-sep,.be-side-foot{border-color:#333a33}
.be-side-foot{background:transparent}
.be-sidebar .be-side-person,.be-side-person b,.be-sidebar .be-brand-name{color:#fffdf8}
.be-side-logo .be-brand-sub,.be-brand-sub,.brand-text small,.be-sidebar .be-section-label,
.be-nav-group-title,.menu-group{color:var(--be-gold)}
.be-side-person small,.be-signout{color:#d0c9b9}
.be-topbar,.be-top-search,.topbar,.be-toolbar{background:var(--be-surface);border-color:var(--be-line)}
.be-top-search input,.be-top-person,.be-top-person b{color:var(--be-ink)}
/* Type is charcoal, never green body copy. */
.be-intro h1,.be-flow-header h1,.be-flow-content h2,.be-panel-top h2,
.be-client-card .be-agenda-main strong,.be-con-workspace .be-life-head h1,
.be-life-head h1,.tr-head h1,.tr-card h2,.be-rp-header h1,.be-rp-card h2,
.be-main h1,.be-main h2,.be-main h3,.be-main h4,
.be-main strong:not(.be-con-email-brand strong){color:var(--be-ink)}
.be-intro p,.be-flow-header p,.be-quiet-note,.be-agenda-main small,
.be-date,.be-flow .step-sub,.be-client-action small,.be-activity-row small,
.be-main small,.be-main .tr-muted,.be-main .be-life-muted{color:var(--be-muted)}
.be-topbar a,.be-panel-top .link,.be-rp-card a:not(.be-rp-export a),
.be-life a,.tr-workspace a{color:var(--be-gold-dark)}
/* Common cards, panels and the coaching workspace are neutral, warm and uncluttered. */
.be-panel,.be-dashboard .stat,.stat,.be-flow-content,.be-flow-side,
.be-client-card,.be-life-card,.be-life-metric,.tr-card,.tr-metric,
.be-rp-card,.be-rp-tile,.be-cal-primary,.be-cal-kpis,
.be-con-client-bar,.be-con-email-sheet,.be-rp-big{
 background:var(--be-surface);border-color:var(--be-line);color:var(--be-ink);
}
.be-flow-side,.be-rp-big{background:#f3f0e9}
.be-dashboard .stat .stat-icon,.be-agenda-icon,.be-client-action .action-icon,
.tr-program-mark,.tr-exercise-icon,.be-life-check .be-life-dot,
.be-avatar,.be-day.has-session:not(.today){background:#f3eade;color:var(--be-gold-dark);border-color:#ecdeca}
.be-dashboard .stat strong,.be-dashboard .stat .stat-header,
.be-metric strong,.be-life-metric strong,.tr-metric strong,.be-rp-tile strong,
.be-rp-big strong,.be-day,.be-mini-calendar-head,.be-cal-kpis strong{
 color:var(--be-ink)
}
.be-dashboard .stat small,.be-agenda-time,.be-agenda-main small{color:var(--be-muted)}
.be-agenda-track,.be-client-action .arrow{background:var(--be-gold);color:var(--be-gold-dark)}
.be-day.today{background:var(--be-ink);color:#fff}
.be-day.has-session:not(.today){text-decoration-color:var(--be-gold)}
/* Primary/secondary controls: consistent meaning on every owner and client page. */
.be-primary-button,.be-flow .btn.primary,.btn.primary,
.tr-side-panel button[type="submit"],.be-life-drawer button[type="submit"],
.be-rp-export a,.be-rp-period button.selected,
.be-class-view-toggle button.active,.be-cal-view button.active{
 color:#fffdf7;background:var(--be-ink);border-color:var(--be-ink);
}
.be-primary-button:hover:not(:disabled),.be-flow .btn.primary:hover:not(:disabled),
.btn.primary:hover:not(:disabled),.be-rp-export a:hover{
 background:#34302a;border-color:var(--be-gold)
}
.be-neutral-button,.btn:not(.primary):not(.danger):not(.gold),
.be-cal-week-nav button,.be-cal-view button,.be-class-week button,
.be-calendar-btn,.be-rp-task,.be-client-booking-actions button{
 background:var(--be-surface);border-color:#ddd4c4;color:var(--be-ink)
}
.be-neutral-button:hover:not(:disabled),.btn:not(.primary):not(.danger):not(.gold):hover,
.be-cal-week-nav button:hover,.be-class-week button:hover{
 background:var(--be-gold-soft);border-color:var(--be-gold)
}
.btn.gold{color:#1e211b;background:var(--be-gold);border-color:var(--be-gold)}
button:focus-visible,a:focus-visible,input:focus-visible,
textarea:focus-visible,select:focus-visible{
 outline:2px solid var(--be-gold);outline-offset:2px
}
/* Disabled and negative controls must remain visibly distinct. */
button:disabled{cursor:not-allowed}
.btn.danger,.be-cal-danger-button,.be-booking-actions button{color:#9c493c}
.be-cal-danger-button:hover,.btn.danger:hover{background:#fff2ed}
.be-unread-dot{background:#a44a37}
/* Client quick actions: ivory and champagne instead of arbitrary mint. */
.be-client-action,.be-client-action:first-child,
.be-member-home .be-client-action:first-child{
 background:#f7eedf;border-color:#e8d9bf;color:var(--be-ink)
}
.be-client-action:nth-child(2){background:#f3f0e9;border-color:var(--be-line)}
.be-client-action .action-icon{background:#e9d9bc;color:#5e4729}
.be-client-action:hover{border-color:var(--be-gold);background:#f4e5c8}
.be-member-banner,.be-member-banner:not(.be-client-hero){background:#f4eee4;border-color:#e5d8c3;color:var(--be-ink)}
/* Dark branded calls to action remain on-brand, even against the new people-free hero. */
.be-client-hero{background-color:var(--be-night)}
.be-marketing,.be-brand-card,.be-quote-panel,.be-hero-card,
.be-client-hero .be-hero-word{color:#fffdf7}
.be-hero-card,.be-dark-card{background:var(--be-night)}
/* Forms, selections, flow reviews and toggles. */
input,textarea,select,.be-top-search input,.tr-field input,.tr-field select,.tr-field textarea,
.be-life-drawer input,.be-life-drawer textarea,.be-life-drawer select,
.be-con-field textarea,.be-flow .field input,.be-flow .field select,.be-flow .field textarea{
 background:#fffefa;color:var(--be-ink);border-color:#ded6c9;
}
input:focus,textarea:focus,select:focus,.be-flow .field input:focus,
.be-flow .field select:focus,.tr-field input:focus,.tr-field textarea:focus{
 border-color:var(--be-gold);outline-color:var(--be-gold)
}
input[type="checkbox"],input[type="radio"]{accent-color:var(--be-ink)}
.be-choice{background:var(--be-surface);border-color:var(--be-line);color:var(--be-ink)}
.be-choice:has(input:checked){background:#fcf4e4;border-color:var(--be-gold)}
.be-flow-numbers .active{color:var(--be-ink)}
.be-flow-numbers .active .num,.be-flow-numbers .done .num{background:var(--be-ink);border-color:var(--be-gold);color:#fff}
.be-flow [data-be-review]{background:#fbf7ef;border-color:var(--be-line)}
.be-flow .step-check,.be-life-hint,.tr-hint,.be-con-hint,.be-rp-guide{
 background:#f8f0e1;border-left-color:var(--be-gold);color:#594b37;
}
.be-life-pipeline .be-life-column,.be-day-builder,.tr-day-builder{
 background:#f4f0e8;border-color:#e7dece
}
.be-life-lead,.be-rp-client,.be-rp-session{background:var(--be-surface);border-color:var(--be-line)}
.be-life-count,.be-life-dot{background:#efe4d2;color:#664e2b}
/* Navigation tabs across CRM, training and business reporting. */
.be-life-tabs button.active,.tr-tabs button.active,.be-rp-tabs button.active{
 border-color:var(--be-gold);color:var(--be-ink)
}
.be-life-tabs,.tr-tabs,.be-rp-tabs{border-color:var(--be-line)}
.be-life-stage,.tr-pill.active,.tr-pill,.be-rp-reasons span,
.be-rp-client .be-rp-reasons span{background:#f6ecda;color:#70532c}
.tr-pill.completed,.be-life-check.done .be-life-dot{background:#e2eee4;color:#266747}
/* Calendar stays semantically legible, while switching to brand accents. */
.be-cal-view button.active,.be-cal-day-title strong{color:var(--be-ink)}
.be-cal-view button.active{color:#fff}
.be-cal-day-title,.be-cal-kpis,.be-cal-week-nav,.be-cal-day-col{border-color:var(--be-line)}
.be-cal-day-title{background:#f6f2ea;color:var(--be-muted)}
.be-cal-day-body{background:repeating-linear-gradient(to bottom,#fffefa 0,#fffefa calc(var(--cal-hour)/2 - 1px),#eee9e0 calc(var(--cal-hour)/2 - 1px),#eee9e0 calc(var(--cal-hour)/2))}
.be-cal-day-body:hover{background:repeating-linear-gradient(to bottom,#fffcf5 0,#fffcf5 calc(var(--cal-hour)/2 - 1px),#ebdfca calc(var(--cal-hour)/2 - 1px),#ebdfca calc(var(--cal-hour)/2))}
.be-cal-event:not(.muted){background:#f5ebda;border-color:#dccaa9;border-left-color:var(--be-gold-dark);color:var(--be-ink)}
.be-cal-event.group{background:#f9eccc;border-color:#e5d09e;border-left-color:#af8143}
.be-cal-event.muted{color:#687067}
/* Class timetable: brand palette with meaningful booking visibility. */
.be-class-view-toggle button.active,.be-timetable-event button{
 background:var(--be-ink);color:#fff;border-color:var(--be-ink)
}
.be-timetable-day,.be-timetable-day header{background:#f8f5ee;border-color:var(--be-line)}
.be-timetable-event{background:#f7f0e2;border-color:#eadbc5;color:var(--be-ink)}
.be-timetable-event:nth-child(3n){background:#f9eccd;border-color:#e8d4a5}
.be-timetable-event:nth-child(4n){background:#f5e8de;border-color:#e7d5c7}
.be-timetable-event button:hover:not(:disabled){background:#423b32}
.be-timetable-event button:disabled{background:#9e9a90}
/* Reporting colours use BE gold for analytics and neutral labels. */
.be-rp-tile strong,.be-rp-session-main strong,.tr-program-main strong{color:var(--be-ink)}
.be-rp-period button.selected{background:var(--be-ink);color:#fff}
.be-rp-bar,.tr-bar{background:var(--be-gold);background-image:none}
.be-rp-track span{background:var(--be-gold)}
.be-rp-big{background:#f8f0e2}
.be-rp-client-actions .be-rp-task{background:var(--be-gold-soft);border-color:#e4d4b6;color:var(--be-ink)}
.be-rp-unverified{background:#faf1dd;border-color:#ecddbf;border-left-color:var(--be-gold);color:#70562f}
/* Consultation disclosure retains clear contrast between private and shareable. */
.be-con-journey span.active,.be-con-journey span.done{border-color:var(--be-gold);color:var(--be-ink)}
.be-con-client-bar,.be-con-email-sheet{background:var(--be-surface);border-color:var(--be-line)}
.be-con-email-brand{background:var(--be-night)}
.be-con-email-content h3,.be-con-email-content h4{color:var(--be-ink)}
.be-con-email-footer{background:#f3eee4}
.be-con-public,.be-con-section-title .be-con-public{background:#f5e7cf;color:#70532b}
.be-con-confirm{background:#f9f4e9;border-color:#eadbbf;color:var(--be-ink)}
.be-con-hint{border-left-color:var(--be-gold)}
/* Login/activation pages also use the same brand palette. */
.signin-left,.hero{background:var(--be-night)}
.signin-left:before,.signin-left:after{border-color:var(--be-gold)}
.notice.info{background:#f6efe2;color:#6e522e;border-color:#e6d7b9}
.loading span{color:var(--be-gold-dark)}
/* Mobile navigation must not revert to mint-green. */
@media(max-width:860px){
 .be-mobile-nav,.sidebar nav{background:var(--be-night)}
 .be-mobile-nav button.active,.menu-open .mobile-more,.nav-link.active{
  background:#343c35;color:#fff;box-shadow:inset 0 3px var(--be-gold)
 }
 .mobile-more{color:#e2ded5}
 .mobile-drawer{background:var(--be-surface);border-color:var(--be-line);color:var(--be-ink)}
 .drawer-link{color:var(--be-ink)}
 .drawer-link:hover,.drawer-link.active{background:#f5e8d3;color:var(--be-ink)}
}
@media(prefers-reduced-motion:reduce){
 .be-sidebar .be-nav-item,.be-primary-button,.be-client-action{transition:none}
}
@media(max-width:680px){
 .be-flow,.be-flow-shell,.be-flow-content,.be-flow-side,.be-main{min-width:0;max-width:100%}
 .be-flow-actions,.be-toolbar-actions{display:flex;flex-wrap:wrap;min-width:0}
 .be-flow-header h1,.be-intro h1{overflow-wrap:anywhere}
 .be-flow-content input,.be-flow-content select,.be-flow-content textarea{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
}

/* Purposeful BE screens: no generic marketing sidebars or empty second columns. */
.be-flow-shell.be-flow-compact{grid-template-columns:minmax(0,1fr)}
.be-flow-compact .be-flow-content{min-width:0;max-width:1100px}
.be-trainer-layout.be-trainer-simple{grid-template-columns:minmax(0,1fr);max-width:740px}
.be-notification-status{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:11px;padding:15px 0 0;margin-top:15px;border-top:1px solid #e1d6c9;color:#69695c}
.be-notification-status span{color:#8d7859}
/* Guided forms contain the fields and step indicators only; no generic assistance sidebar. */
.be-flow:has(.be-flow-shell.be-flow-compact){max-width:850px}

/* Stable SPA navigation: retain sidebar/topbar while route data loads. */
.be-workspace{position:relative}
.be-route-loading .be-topbar{position:relative}
.be-route-loading .be-topbar::after{content:"";position:absolute;bottom:0;left:0;width:34%;height:2px;background:var(--be-gold,#ba9964);animation:be-route-progress .85s ease-in-out infinite alternate;z-index:2;pointer-events:none}
@keyframes be-route-progress{from{left:0;opacity:.4}to{left:66%;opacity:.9}}
.be-main.be-content-enter{animation:be-content-enter .17s ease-out both}
@keyframes be-content-enter{from{opacity:.78;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
.be-route-initial{min-height:45vh;display:grid;place-items:center;color:var(--be-muted,#777);font-size:12px}
@media(prefers-reduced-motion:reduce){.be-main.be-content-enter,.be-route-loading .be-topbar::after{animation:none!important}}

/* Feedback messages never obscure or intercept page actions. */
.flash{pointer-events:none!important;top:auto!important;bottom:22px;right:22px}
@media(max-width:800px){.flash{bottom:83px;right:12px;left:12px;max-width:none;text-align:center}}

/* Small calendar download actions without extra navigation or marketing copy. */
.be-ics-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 11px;border:1px solid #d9c9ad;border-radius:5px;background:#f9f4ea;color:#6a542f;font-size:11px;font-weight:700;line-height:1.35;white-space:nowrap;text-decoration:none}
.be-ics-link:hover{border-color:#b58c4d;color:#453519;background:#f4ebd9}
.be-ics-link:focus-visible{outline:2px solid #967343;outline-offset:2px}
.be-ics-header{padding:10px 13px}
@media(max-width:560px){.be-booking-actions .be-ics-link{white-space:normal}}

/* Website-exact logo sizing; keep established portal layout and palette. */
.be-side-logo img{width:95px;height:40px;object-fit:contain}
.be-mobile-top img{width:50px;height:26px;object-fit:contain}
.signin-logo img{width:98px;max-height:45px;height:auto;object-fit:contain}
.brand img{width:95px;height:40px;object-fit:contain}
