@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700;800&display=swap');
/* Coach workspace: the trainee experience is deliberately scoped separately. */
body.coach-mode{--bg:#edf6f8;--surface:#fff;--surface-2:#f7f8fc;--surface-3:#f0f2fa;--line:#e7e7f1;--text:#242937;--muted:#858895;--muted-2:#a0a4b0;--orange:#7055bc;--orange-2:#32a8b1;--danger:#dc4f65;--ok:#289a72;--warning:#dda537;--shadow:0 10px 28px #414a6b0c;--sidebar:210px;background:linear-gradient(125deg,#eef6f9,#eaf6f7 60%,#f3f1fa);font:15px Assistant,Arial,sans-serif;color:var(--text)}
body.coach-mode button,body.coach-mode input,body.coach-mode select,body.coach-mode textarea{font-family:inherit}
body.coach-mode .app{display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);gap:16px;padding:145px 30px 32px;align-items:start}
body.coach-mode .sidebar{top:132px;height:calc(100vh - 158px);border:0;border-radius:24px;background:linear-gradient(166deg,#7250b9 0%,#5b77bd 47%,#29adb2 100%);padding:22px 14px;box-shadow:0 16px 36px #4b599f1c;gap:16px;overflow:auto;scrollbar-width:thin;scrollbar-color:#ffffff30 transparent;backdrop-filter:none}
body.coach-mode .sidebar .brand{border:0;padding:0 8px;color:white;display:flex;align-items:center;gap:9px;min-height:38px}
body.coach-mode .sidebar .brand img{display:none}body.coach-mode .role-pill{color:white;border:0;background:transparent;font-size:14px;margin:0;padding:0}
body.coach-mode .nav{gap:4px}.coach-nav-label{font-size:11px;font-weight:800;color:#ffffffd9;margin:19px 12px 8px}
body.coach-mode .nav button{color:#ffffffe0;font-size:14px;padding:10px 12px;font-weight:500;border-radius:24px;min-height:40px;gap:10px;box-shadow:none}
body.coach-mode .nav button.active{background:#ffffff29;box-shadow:inset 0 0 0 1px #ffffff1c;color:#fff;font-weight:800}body.coach-mode .nav button:hover{background:#ffffff19;color:#fff}
body.coach-mode .nav button svg{width:17px;height:17px;flex:none}body.coach-mode .side-bottom{border-color:#ffffff20;color:#fff}body.coach-mode .userbox{display:none}body.coach-mode .logout{color:#fff;background:#ffffff10;border-color:#ffffff30;border-radius:24px}
body.coach-mode .main{padding:0;min-width:0}body.coach-mode .main>.topbar,body.coach-mode .main>.mobile-head{display:none}
.coach-header{display:none}body.coach-mode .coach-header{position:fixed;z-index:30;inset:0 0 auto;height:112px;display:flex;align-items:center;gap:25px;padding:20px 42px;background:#fffffff7;border-bottom:1px solid #ecedf3;backdrop-filter:blur(16px)}
.coach-header .header-logo{width:136px;height:54px;object-fit:contain;background:#111;border-radius:14px;padding:5px 10px}.coach-header .header-logo-link{display:flex;background:none;border:0;padding:0}.coach-header .header-search{width:290px;position:relative;margin-right:auto}.coach-header .header-search input{width:100%;padding:15px 18px 15px 42px;border:0;border-radius:32px;background:#f7f8fb;color:#424757}.coach-header .header-search svg{position:absolute;left:17px;top:14px;width:20px;color:#a6a9b7}.coach-header .header-user{display:flex;align-items:center;gap:15px;min-width:145px}.coach-header .header-user img{width:43px;height:43px;border-radius:50%;background:#111;object-fit:contain}.coach-header .header-user small{display:block;color:#9294a0;font-size:12px}.coach-header .header-user b{font-size:15px}.coach-icon-btn{display:grid;place-items:center;width:43px;height:43px;background:#fff;border:1px solid #eeeef3;border-radius:50%;color:#747687;box-shadow:0 2px 4px #00000004}.coach-icon-btn svg{width:20px}.coach-header .header-brand-pill{padding:13px 23px;background:linear-gradient(120deg,#7455bd,#30a9b1);color:white;border:0;border-radius:30px;box-shadow:0 7px 18px #7156b92e;font-weight:700}.coach-menu-toggle{border:0;background:none;width:40px;height:40px;color:#242937;display:grid;place-items:center}
body.coach-mode .section{border:1px solid #ffffffb0;border-radius:24px;background:#fff;padding:26px;margin-top:22px;box-shadow:var(--shadow)}body.coach-mode #content>.section:first-child{margin-top:0}body.coach-mode .section h2{font-size:20px;font-weight:800}body.coach-mode .section-head{margin-bottom:24px}body.coach-mode .section-head p{color:var(--muted);margin:5px 0 0;font-size:13px}
body.coach-mode .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff;border:1px solid #e4e0ef;border-radius:26px;color:#5c5875;padding:11px 21px;font-size:14px;font-weight:600;box-shadow:none;text-decoration:none}body.coach-mode .btn svg{width:17px;height:17px}body.coach-mode .btn:hover{background:#f5f3fc;border-color:#cec3e6}body.coach-mode .btn.primary{background:linear-gradient(115deg,#7353ba,#2ca9b1);border-color:transparent;color:#fff;box-shadow:0 8px 20px #7055bc26}body.coach-mode .btn.small{padding:7px 14px;font-size:12px}body.coach-mode .btn.danger{background:#fff3f4;border-color:#ffe8ec;color:#dd4962}body.coach-mode button:disabled{opacity:.48;cursor:not-allowed;transform:none}
body.coach-mode .grid{gap:23px}body.coach-mode .stat{border:0;min-height:138px;border-radius:25px;padding:24px;background:white;box-shadow:var(--shadow)}body.coach-mode .stat:after{inset:-42px auto auto -40px;width:160px;height:160px;background:var(--tint,#eef7fb)}body.coach-mode .stat .n{font-size:44px;line-height:1;margin-top:24px;font-weight:800;letter-spacing:-1px}body.coach-mode .stat .label{position:relative;z-index:1;font-size:14px;font-weight:500}body.coach-mode .stat.orange{background:linear-gradient(120deg,#8163c1,#32aab2);color:#fff}body.coach-mode .stat.orange .label{color:#fff}body.coach-mode .stat.orange:after{background:#ffffff12}.stat-icon{position:absolute;left:25px;top:25px;width:42px;height:42px;color:var(--accent,#39a9b1);z-index:1}.stat.orange .stat-icon{color:#fff}
body.coach-mode .table-wrap{background:#fff;border:0;border-radius:16px}body.coach-mode table{min-width:580px}body.coach-mode th,body.coach-mode td{padding:19px 17px;border-bottom:1px solid #edf0f5;font-size:14px}body.coach-mode th{color:#8a8b9a;background:#f7f8fc;font-weight:600}body.coach-mode tbody tr:hover{background:#fafaff}body.coach-mode .badge{font-size:12px;border:0;background:#efedf9;color:#7560ad;padding:5px 13px}body.coach-mode .badge.active{background:#e8f6ef;color:#2b9975}body.coach-mode .badge.pending{background:#fff4df;color:#cf932d}
body.coach-mode .cards,body.coach-mode .client-grid{gap:20px}body.coach-mode .plan,body.coach-mode .client-card,body.coach-mode .exercise-card{background:#fff;border:1px solid #eeedf5;border-radius:22px;padding:23px;box-shadow:var(--shadow)}body.coach-mode .plan .meta,body.coach-mode .client-card .email{color:#9899a5;font-size:12px;line-height:1.65;overflow-wrap:anywhere}body.coach-mode .client-card h3{font-size:20px}body.coach-mode .client-card:hover{border-color:#cec4e4;box-shadow:0 12px 30px #68579614}body.coach-mode .avatar{border:2px solid #8873c0;border-radius:50%;width:60px;height:60px;color:#7055b8;background:#f4f1fb;flex:none}body.coach-mode .client-top{gap:14px;align-items:center}.client-card .client-status{margin-right:auto}.client-card .client-metrics{grid-template-columns:1fr 1fr;margin:20px 0 16px;gap:10px}body.coach-mode .client-metrics div{border:0;background:#f9f9fd;padding:15px;border-radius:16px;text-align:center}body.coach-mode .client-metrics b{font-size:16px;color:#685985}body.coach-mode .client-metrics span{font-size:12px;display:block;margin-bottom:7px}.client-card .client-links{display:flex;gap:8px;justify-content:space-between;flex-wrap:wrap}.client-card .client-links .btn{background:#f1ecfd;border:0;color:#8369bd;font-size:12px;padding:10px 16px}.client-card .client-open-title{border:0;background:none;text-align:right;padding:0;color:inherit;cursor:pointer}
body.coach-mode .client-toolbar{gap:14px;margin:38px 0 22px}.coach-segment{display:flex;padding:5px;background:#f6f6fb;border-radius:35px;gap:3px;width:max-content;max-width:100%}.coach-segment button{border:0;border-radius:26px;padding:13px 28px;color:#55536c;background:none;font-size:14px;white-space:nowrap}.coach-segment button.active{background:linear-gradient(115deg,#7856c0,#31a8b1);color:white;box-shadow:0 5px 12px #7254b529}.coach-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 22px}.coach-tabs button{background:#fff;border:1px solid #e3dfee;border-radius:28px;padding:14px 23px;color:#55546e;font-size:14px;font-weight:600}.coach-tabs button.active{background:linear-gradient(110deg,#7252bb,#2eaab2);color:white;border-color:transparent;box-shadow:0 8px 20px #7155b628}.coach-breadcrumb{display:flex;align-items:center;gap:14px;margin:4px 0 16px;font-size:19px;font-weight:700}.coach-breadcrumb button{border:0;background:none;font:inherit;color:inherit;padding:0}.coach-breadcrumb strong{color:#6286b4}
body.coach-mode .searchbox input{background:#fff;color:#424653;border:1px solid #e3deed;border-radius:27px;padding:14px 42px 14px 18px}body.coach-mode select,body.coach-mode .field input,body.coach-mode .field textarea,body.coach-mode .field select{background:#f7f8fc;color:#454958;border:1px solid #ececf3;border-radius:16px;padding:13px 15px;min-height:48px}body.coach-mode .field label{font-size:15px;color:#555763;margin-bottom:8px}.coach-form{display:grid;grid-template-columns:250px 1fr 300px;gap:25px}.coach-form .form{gap:22px}.coach-form .profile-photo{height:275px;background:#f5f5fb;border:2px dashed #dbd5e9;border-radius:24px;display:grid;place-items:center}.coach-form .profile-photo .avatar{width:100px;height:100px;font-size:32px}.coach-form .form-card{border:1px solid #eeedf5;background:#fcfcfe;border-radius:22px;padding:20px;margin-bottom:18px}.coach-profile-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:34px;flex-wrap:wrap}.coach-profile-info{font-size:13px;line-height:1.9;border:1px solid #ececf3;border-right:3px solid #7d65bc;padding:10px 18px;border-radius:15px}.coach-form-actions{display:flex;gap:14px;justify-content:flex-start;margin-top:25px;padding-top:22px;border-top:1px solid #f1eff7}
.coach-two-col{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}.coach-two-col .section{margin-top:22px}.coach-status-row{border-bottom:1px solid #f0eff6;padding:17px 0}.coach-status-row:last-child{border:0}.coach-status-row .actions{margin-top:9px}.coach-status-row strong{font-size:15px}.coach-status-row .badge{font-size:11px}.coach-status-row>button{border:0;background:none;color:inherit;font:inherit;font-weight:700;cursor:pointer}.coach-insight{display:flex;gap:15px;align-items:center}.coach-insight>.coach-symbol{flex:none;background:linear-gradient(130deg,#7855bd,#38a6b4);color:white}.coach-symbol{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:#f1eff9;color:#785abc}.coach-symbol svg{width:22px}.coach-insight p{margin:8px 0 0;color:#848896;font-size:14px}.coach-section-title{display:flex;align-items:center;gap:10px}
.coach-podium{display:flex;justify-content:center;align-items:flex-end;gap:16px;padding:20px 0 0;direction:ltr}.coach-podium-slot{text-align:center;width:145px;direction:rtl}.coach-podium-slot .avatar{margin:0 auto 8px;width:47px;height:47px;font-size:16px}.coach-podium-slot p{font-size:12px;color:#9699a4;margin:6px 0 10px}.coach-podium-step{height:45px;border-radius:16px 16px 0 0;background:linear-gradient(#edf0f5,#fafbfc);color:#71829c;font-size:28px;font-weight:800;padding:4px}.coach-podium-slot.first .coach-podium-step{height:73px;background:linear-gradient(#fff0b3,#fff9e6);color:#d49b1d}.coach-podium-slot.third .coach-podium-step{height:35px;background:#fff0e4;color:#cc955b}
.coach-process{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}.coach-client-picker{padding:20px!important;position:sticky;top:134px;max-height:calc(100vh - 160px);overflow:auto}.coach-client-picker .searchbox{min-width:0;margin:16px 0}.coach-client-picker button[data-client]{border:0;display:flex;align-items:center;gap:10px;background:white;width:100%;padding:15px 8px;border-radius:15px;text-align:right;margin-top:5px}.coach-client-picker button[data-client].active{background:linear-gradient(110deg,#f2edfb,#eff9f9);box-shadow:inset 0 0 0 1px #d5c9e9}.coach-client-picker .avatar{width:38px;height:38px;font-size:13px;border-width:1px}.coach-client-picker strong{flex:1;font-size:16px}.coach-client-picker .badge{font-size:10px;padding:4px 8px}.coach-profile-summary{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.coach-profile-summary h2{margin:5px 0!important;font-size:26px!important}.coach-profile-summary .summary-values{display:flex;gap:28px;flex:1;justify-content:center}.summary-values small{display:block;color:#9293a0}.summary-values b{display:block;font-size:25px;margin-top:7px}.coach-profile-summary .avatar{width:83px;height:83px;font-size:26px}.coach-chart{height:248px;position:relative;padding:12px 0}.coach-chart svg{width:100%;height:100%;overflow:visible}.coach-chart .chart-empty{position:absolute;inset:0;display:grid;place-items:center;color:#a2a4b0;font-size:14px}.coach-chart-caption{display:flex;justify-content:space-between;color:#989aaa;font-size:11px}.coach-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-top:23px}.coach-calendar .day-name{text-align:center;padding:12px 0;color:#737483;font-size:13px}.coach-calendar button{border:0;background:#f1f3fc;border-radius:10px;min-height:92px;padding:13px;text-align:right;color:#888b9b;font:inherit;display:flex;flex-direction:column;justify-content:space-between}.coach-calendar button.outside{opacity:.36}.coach-calendar button.today{box-shadow:inset 0 0 0 2px #8464c2;background:#f6f2ff}.coach-calendar button strong{color:#7298ba;align-self:center;font-size:17px;font-weight:600}.coach-calendar button .day-num{font-size:12px}.coach-calendar-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 0;gap:14px}.coach-calendar-head h3{font-size:24px;font-weight:600;margin:0}.coach-calendar-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.coach-calendar-toolbar .metric-highlight{background:#219baa;color:#fff;border-radius:12px;padding:12px 24px;text-align:center}.coach-empty{padding:70px 20px;text-align:center}.coach-empty .coach-symbol{margin:0 auto 20px;width:80px;height:80px;border-radius:50%;background:linear-gradient(130deg,#f0edf9,#eaf6f6)}.coach-empty .coach-symbol svg{width:34px;height:34px}.coach-empty h3{font-size:23px;margin:0 0 9px}.coach-empty p{color:#999ba6;font-size:15px;margin:0;line-height:1.7}.coach-plan-day{background:#f8f9fc;border:1px solid #eeedf6;border-radius:17px;overflow:hidden}.coach-plan-day header{padding:16px 18px;border-bottom:1px solid #e9e8f2;display:flex;justify-content:space-between;align-items:center;gap:10px}.coach-plan-day details{padding:16px}.coach-plan-day summary{cursor:pointer;font-size:13px;color:#7c72a3}.coach-plan-day .exercise-preview{padding:12px 0;border-bottom:1px solid #e9e8f2;font-size:14px}.coach-plan-add{background:#f8f9fc;border:1px dashed #e5e1ed;border-radius:20px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:230px;gap:16px;color:#555166;font:inherit;font-weight:700;font-size:20px}.coach-plan-add span{font-size:38px;font-weight:400;line-height:50px;width:50px;height:50px;border-radius:50%;color:white;background:linear-gradient(110deg,#7957bf,#2ba9af)}
body.coach-mode .profile-hero,body.coach-mode .activity-item,body.coach-mode .note-card,body.coach-mode .attention,body.coach-mode .builder-day,body.coach-mode .builder-ex,body.coach-mode .session-ex,body.coach-mode .exercise-history-card,body.coach-mode .measurement-card,body.coach-mode .progress-kpi{background:#fff;border-color:#e7e5f0;color:#424757;box-shadow:none}body.coach-mode .macro div,body.coach-mode .summary-box,body.coach-mode .history-hero div,body.coach-mode .eh-stats div{background:#f5f5fb;border-color:#edebf5;color:#4b4e62}body.coach-mode .tag,body.coach-mode .phase-label{background:#f0eafa;border:0;color:#7b62b6}body.coach-mode .metric-tabs button,body.coach-mode .profile-tabs button{color:#7b6c9c}body.coach-mode .metric-tabs button.active,body.coach-mode .profile-tabs button.active{color:#7052b6;background:#efe9fc}body.coach-mode .progress-chart{background:#fff;border:0}body.coach-mode .progress-chart polyline{stroke:#2ca277}body.coach-mode .progress-chart circle{fill:#2ca277}body.coach-mode .exercise-history-card h4{color:#393a51}body.coach-mode .modal-backdrop{background:#31374d66;backdrop-filter:blur(4px)}body.coach-mode .modal{background:#fff;border:1px solid #e7e3f0;border-radius:25px;color:#3c4050;box-shadow:0 25px 70px #35395033}body.coach-mode .modal-x{background:#f6f4fa;color:#777186;border-color:#e5e0ef}body.coach-mode .modal-actions{border-color:#efecf4}body.coach-mode .toast{background:#fff;color:#4e4866;border-color:#dcd3ee;box-shadow:0 8px 30px #55527420}body.coach-mode .empty{color:#999aa8}body.coach-mode .client-grid.list-view{grid-template-columns:1fr}.client-grid.list-view .client-card{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;align-items:center}.client-grid.list-view .client-metrics{margin:0}.coach-dark{filter:none}
body.coach-mode .coach-chat{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:540px;gap:0;padding:0;overflow:hidden}.coach-chat .chat-clients{padding:23px;border-left:1px solid #eeedf5}.coach-chat .chat-body{display:flex;flex-direction:column;min-height:540px;padding:25px}.coach-chat .chat-messages{flex:1}.coach-bubble{border-radius:18px;background:#f1edfa;padding:15px 19px;margin:15px 0;max-width:85%}.coach-bubble small{display:block;margin-top:8px;color:#95919e}.coach-feature-banner{background:linear-gradient(120deg,#7555bc,#29a5af);color:white;border-radius:24px;padding:35px}.coach-feature-banner h2{font-size:30px;margin:0 0 10px}.coach-feature-banner p{line-height:1.8;margin:0;max-width:650px}
@media(max-width:1180px){body.coach-mode .app{--sidebar:195px;padding:136px 20px 25px;gap:14px}.coach-header{gap:15px!important;padding:20px 25px!important}.coach-header .header-search{width:220px}.coach-form{grid-template-columns:1fr 1.3fr}.coach-form>div:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:20px}.coach-tabs button{padding:12px 19px}.coach-process{grid-template-columns:230px minmax(0,1fr)}.coach-profile-summary .summary-values{gap:17px}.coach-profile-summary .avatar{width:64px;height:64px}.coach-profile-summary h2{font-size:21px!important}}
@media(max-width:900px){body.coach-mode .app{padding:105px 18px 30px;grid-template-columns:1fr}.coach-header{height:82px!important;padding:12px 20px!important}.coach-header .header-logo{width:110px;height:45px}.coach-header .header-brand-pill{display:none}.coach-header .header-search{max-width:220px}.coach-header .header-user{min-width:0}.coach-header .header-user small{display:none}.coach-header .header-user img{display:none}body.coach-mode .sidebar{position:fixed;right:15px;top:95px;width:220px;height:calc(100dvh - 112px);transform:translateX(260px);transition:transform .2s;z-index:40}body.coach-mode.menu-open .sidebar{transform:none}body.coach-mode .main{margin:0}body.coach-mode .grid{gap:12px}body.coach-mode .stat{padding:18px}.coach-two-col{grid-template-columns:1fr 1fr}.coach-process{grid-template-columns:210px minmax(0,1fr)}.coach-client-picker{top:95px}.coach-form{grid-template-columns:1fr 1.3fr}.coach-tabs{gap:7px}.coach-tabs button{font-size:13px;padding:11px 16px}}
@media(max-width:620px){body.coach-mode .app{padding:96px 12px 24px}body.coach-mode .coach-header{gap:8px!important;padding:12px!important}.coach-header .header-search{display:none}.coach-header .header-user{margin-right:auto;font-size:13px}.coach-header .header-user b{max-width:110px;display:block;font-size:13px}.coach-header .header-logo{width:95px}.coach-icon-btn{width:36px;height:36px}body.coach-mode .grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.coach-mode .stat{min-height:120px;border-radius:20px;padding:18px}body.coach-mode .stat .n{font-size:34px;margin-top:20px}body.coach-mode .stat .label{font-size:12px}.stat-icon{width:29px;height:29px;left:17px;top:24px}body.coach-mode .section{padding:19px;border-radius:21px;margin-top:16px}body.coach-mode .section-head{flex-wrap:wrap;gap:14px;margin-bottom:18px}body.coach-mode .section h2{font-size:18px}.coach-two-col{grid-template-columns:1fr;gap:0}.coach-process{grid-template-columns:1fr}.coach-client-picker{position:static;max-height:240px}.coach-process-content{min-width:0}.coach-form{grid-template-columns:1fr}.coach-form>div:last-child{display:block;grid-column:auto}.coach-form .profile-photo{height:160px}.coach-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:8px}.coach-tabs button{flex:none}.coach-calendar{gap:4px}.coach-calendar button{min-height:72px;padding:9px 5px}.coach-calendar .day-name{font-size:11px}.coach-calendar button strong{font-size:13px}.coach-calendar-head h3{font-size:20px}.coach-calendar-toolbar{gap:8px}.coach-calendar-toolbar select{max-width:110px;font-size:12px;padding:10px}.coach-profile-summary .summary-values{width:100%;order:2;gap:25px}.coach-profile-summary .actions{width:100%;order:3}.coach-profile-summary .summary-values b{font-size:22px}.coach-breadcrumb{font-size:16px}.coach-segment{width:100%}.coach-segment button{padding:11px 15px;flex:1;font-size:13px}.client-grid.list-view .client-card{display:block}.client-grid.list-view .client-metrics{margin:16px 0}.coach-podium{gap:9px}.coach-podium-slot{width:100px}.coach-podium-slot b{font-size:13px}body.coach-mode .client-toolbar{margin-top:22px}body.coach-mode .searchbox{min-width:100%}body.coach-mode .client-card{padding:20px}.coach-chat{grid-template-columns:1fr!important}.coach-chat .chat-clients{max-height:240px;overflow:auto;border-bottom:1px solid #eeedf5}.coach-chat .chat-body{min-height:430px}.coach-chart{height:200px}}
/* Way2Fit brand direction: charcoal surfaces, orange accents, warm light typography. */
body.coach-mode{--bg:#0c0d10;--surface:#17181e;--surface-2:#1d1f26;--surface-3:#23252f;--line:#2b2d37;--text:#f2f3f6;--muted:#a0a3b0;--muted-2:#777c8c;--orange:#ff8426;--orange-2:#ffaf55;--ok:#63d6aa;--warning:#eebc65;--shadow:0 12px 32px #0000001c;background:radial-gradient(ellipse at 83% -15%,#63301524,transparent 55%),#0c0d10;color:var(--text)}
body.coach-mode .coach-header{background:#101115f2;border-color:#282a32}.coach-header .header-search input{background:#1b1d24;border:1px solid #292c35;color:#e6e7eb}.coach-header .header-search svg{color:#9397a4}.coach-header .header-user small{color:#979ca9}.coach-menu-toggle{color:#eceef3}.coach-icon-btn{background:#1a1c23;border-color:#2b2d37;color:#b3b6c1}.coach-header .header-brand-pill{background:linear-gradient(115deg,#ff7b19,#ffae50);color:#16110c;box-shadow:0 7px 22px #ff812221}.coach-header .header-logo{background:#090a0d}
body.coach-mode .sidebar{background:linear-gradient(166deg,#252326,#18191f 40%,#121418);border:1px solid #373035;box-shadow:0 16px 45px #0003}body.coach-mode .nav button{color:#a8abb8;font-weight:600}body.coach-mode .nav button:hover{background:#ffffff08;color:#f3f4f6}body.coach-mode .nav button.active{background:linear-gradient(90deg,#ff832611,#ff832624);color:#ffae67;box-shadow:inset -3px 0 #ff872d,inset 0 0 0 1px #ff832620}.coach-nav-label{color:#666d7c;letter-spacing:.03em}body.coach-mode .role-pill{color:#faf6f2;font-weight:800}body.coach-mode .logout{background:#ffffff05;border-color:#33313a;color:#a6a8b4}
body.coach-mode .section{background:linear-gradient(150deg,#1a1c23,#16181e);border:1px solid #292c35;box-shadow:var(--shadow)}body.coach-mode .section h2{color:#f2f3f6}.coach-insight p{color:#9da2af}.coach-insight>.coach-symbol{background:linear-gradient(135deg,#ff8426,#ffc073);color:#221308}.coach-symbol{background:#30241e;color:#ff9a4a}.coach-header .badge{background:#20222a;color:#acafbc}
body.coach-mode .btn{background:#20222a;border-color:#343541;color:#d2d2df}body.coach-mode .btn:hover{background:#292a33;border-color:#65503f}body.coach-mode .btn.primary{background:linear-gradient(115deg,#ff7d1c,#ffae52);color:#211205;box-shadow:0 8px 22px #ff7a001a;border-color:#ffae5533;font-weight:800}body.coach-mode .btn.danger{background:#352128;border-color:#6b323b;color:#fc8997}
body.coach-mode .stat{background:linear-gradient(150deg,#20232c,#181a20);border:1px solid #2b2e39}.stat-icon{color:#ffa656!important;opacity:.85}.stat-icon svg{width:100%;height:100%}body.coach-mode .stat:after{background:#ffffff04!important}body.coach-mode .stat.orange{background:linear-gradient(118deg,#a84816,#f7882e);border-color:#ffab4633;color:#fff4e8}body.coach-mode .stat .label{color:#a1a6b5}body.coach-mode .stat.orange .label{color:#ffe5d1}.stat.orange .stat-icon{color:#ffe7d1!important}
body.coach-mode .table-wrap{background:#17191f;border:1px solid #292c36}body.coach-mode th{background:#20232b;color:#949bab}body.coach-mode th,body.coach-mode td{border-color:#2b2e37}body.coach-mode td{color:#d2d5df}body.coach-mode tbody tr:hover{background:#20222a}body.coach-mode .badge{background:#302720;color:#e9ae7b;border:1px solid #483529}body.coach-mode .badge.active{background:#19352d;border-color:#234d3e;color:#75d5ad}body.coach-mode .badge.pending{background:#342b1c;border-color:#514025;color:#e7bb75}
body.coach-mode .plan,body.coach-mode .client-card,body.coach-mode .exercise-card{background:linear-gradient(145deg,#1c1f27,#16181f);border-color:#2c303a}.coach-mode .plan:hover,.coach-mode .client-card:hover{border-color:#80522e!important}body.coach-mode .client-card h3{color:#f0f2f6}body.coach-mode .plan .meta,body.coach-mode .client-card .email{color:#828999}body.coach-mode .avatar{border-color:#b66832;background:linear-gradient(135deg,#3e2c23,#292220);color:#ffc48e}body.coach-mode .client-metrics div{background:#23252e;border:1px solid #2b2e39}body.coach-mode .client-metrics b{color:#eacdb6}body.coach-mode .client-metrics span{color:#858c9c}.client-card .client-links .btn{background:#35291f;border:1px solid #4a3424;color:#ecb184}
.coach-segment{background:#1c1f27;border:1px solid #2d303c}.coach-segment button{color:#9b9fae}.coach-segment button.active{background:linear-gradient(115deg,#cf6325,#ff9e42);color:#21140d;box-shadow:0 5px 12px #ff872519;font-weight:800}.coach-tabs button{background:#1b1e25;border-color:#303440;color:#a5aab8}.coach-tabs button.active{background:linear-gradient(115deg,#e4772b,#ffaa4b);color:#21150c;border-color:#fda65655;box-shadow:0 8px 20px #ff7b0015}.coach-breadcrumb strong{color:#ffab65}.coach-breadcrumb{color:#a4a9b7}
body.coach-mode .searchbox input{background:#1a1d24;border-color:#333643;color:#dce0e9}body.coach-mode input::placeholder,body.coach-mode textarea::placeholder{color:#757d8d}body.coach-mode select,body.coach-mode .field input,body.coach-mode .field textarea,body.coach-mode .field select{background:#20232c;border-color:#343742;color:#dce1eb;color-scheme:dark}body.coach-mode .field label{color:#aeb3c0}.coach-form .profile-photo{background:radial-gradient(ellipse at 50% 40%,#3b2a2166,transparent 80%),#191b23;border-color:#4c3d34}.coach-form .form-card{background:#191c23;border-color:#2d313d}.coach-profile-info{border-color:#35323a;border-right-color:#ee8839;color:#9b9fad}.coach-form-actions{border-color:#2b2f39}.coach-status-row{border-color:#2d3039}.coach-status-row strong{color:#e2e4ed}
.coach-podium-step{background:linear-gradient(#313643,#242834);color:#bac3d7}.coach-podium-slot.first .coach-podium-step{background:linear-gradient(#775323,#40321e);color:#ffd379}.coach-podium-slot.third .coach-podium-step{background:linear-gradient(#5a3824,#382a20);color:#e4ac83}.coach-podium-slot p{color:#9298a8}.coach-client-picker button[data-client]{background:transparent;color:#dfe3ec}.coach-client-picker button[data-client].active{background:linear-gradient(110deg,#423022,#29241e);box-shadow:inset 0 0 0 1px #715037}.summary-values small{color:#9298a8}.coach-chart line{stroke:#303643}.coach-chart text{fill:#788193}.coach-chart .chart-empty,.coach-chart-caption{color:#7c8597}
.coach-calendar .day-name{color:#8c94a5}.coach-calendar button{background:#202430;border:1px solid #2b303e;color:#7f889b}.coach-calendar button:hover{background:#2a2e3b;border-color:#735036}.coach-calendar button.today{background:#38291e;box-shadow:inset 0 0 0 1px #c3783b;border-color:#a86933}.coach-calendar button strong{color:#edb383}.coach-calendar-toolbar .metric-highlight{background:#3d2d20;border:1px solid #664528;color:#ffc48f}.coach-empty .coach-symbol{background:linear-gradient(135deg,#2f2b2a,#242831);color:#d69b6c}.coach-empty h3{color:#dde2ed}.coach-empty p{color:#858fa0}.coach-plan-day{background:#20232c;border-color:#30343f}.coach-plan-day header,.coach-plan-day .exercise-preview{border-color:#323642}.coach-plan-day summary{color:#bd956f}.coach-plan-add{background:#1e2129;border-color:#5b4130;color:#c2b7b1}.coach-plan-add span{background:linear-gradient(110deg,#da712a,#ffab55);color:#26170c}
body.coach-mode .profile-hero,body.coach-mode .activity-item,body.coach-mode .note-card,body.coach-mode .attention,body.coach-mode .builder-day,body.coach-mode .builder-ex,body.coach-mode .session-ex,body.coach-mode .exercise-history-card,body.coach-mode .measurement-card,body.coach-mode .progress-kpi{background:#1b1e26;border-color:#303440;color:#d4d9e4}body.coach-mode .macro div,body.coach-mode .summary-box,body.coach-mode .history-hero div,body.coach-mode .eh-stats div{background:#242733;border-color:#323745;color:#e3cbb8}body.coach-mode .tag,body.coach-mode .phase-label{background:#352b24;color:#dba476}body.coach-mode .metric-tabs button,body.coach-mode .profile-tabs button{color:#b2a094}body.coach-mode .metric-tabs button.active,body.coach-mode .profile-tabs button.active{color:#ffbc86;background:#493020}body.coach-mode .progress-chart{background:#1a1d25}body.coach-mode .progress-chart polyline{stroke:#ff9b4e}body.coach-mode .progress-chart circle{fill:#ff9b4e}body.coach-mode .exercise-history-card h4{color:#e5e7ed}body.coach-mode .modal-backdrop{background:#05070dbb}body.coach-mode .modal{background:#191c24;border-color:#343b49;color:#e0e5ed}body.coach-mode .modal-x{background:#272b37;color:#dce1ea;border-color:#414858}body.coach-mode .modal-actions{border-color:#323846}body.coach-mode .toast{background:#242a34;color:#e7eaf0;border-color:#765136}body.coach-mode .empty{color:#8c95a5}.coach-chat .chat-clients{border-color:#303643}.coach-bubble{background:#332b25;border:1px solid #52402d;color:#e6d7c9}.coach-bubble small{color:#a19080}.coach-feature-banner{background:linear-gradient(120deg,#532f1d,#2c2420);border:1px solid #684127;color:#ffdfc5}.coach-feature-banner p{color:#c1a990}
body.coach-mode :focus-visible{outline:2px solid #ff9b4a;outline-offset:4px}body.coach-mode [hidden]{display:none!important}.coach-mode .coach-calendar button.outside{opacity:.28}
.workout-history-sets{display:grid;gap:6px}.workout-history-set{display:grid;grid-template-columns:58px repeat(4,minmax(72px,1fr));gap:8px;align-items:center;padding:8px 10px;border:1px solid #30333d;border-radius:10px;background:#15171d;font-size:11px}.workout-history-set.done{border-right:3px solid #ff8a2a}.workout-history-set.not-done{opacity:.58}.workout-history-set span{color:#b6bac4}@media(max-width:620px){.workout-history-set{grid-template-columns:48px 1fr 1fr}.workout-history-set span:nth-last-child(-n+2){font-size:9px}}

/* Charts use chronological left-to-right axes even in the Hebrew interface. */
.coach-chart-caption{direction:ltr}
/* Keep the coach drawer independent of the trainee bottom navigation. */
body.coach-mode{scrollbar-color:#434956 #121418}
body.coach-mode .sidebar{display:flex;flex-direction:column}
body.coach-mode .nav{display:grid;grid-template-columns:minmax(0,1fr);overflow:visible}
body.coach-mode .nav button{display:flex;flex:none;width:100%;justify-content:flex-start;text-align:right;min-width:0}
body.coach-mode .nav button svg{margin:0}
body.coach-mode .role-pill,body.coach-mode .side-bottom{display:block}
body.coach-mode .coach-nav-label{color:#969dac}
.coach-tabs{scrollbar-width:thin;scrollbar-color:#434956 transparent}
@media(min-width:901px){body.coach-mode .coach-menu-toggle{display:none}}
@media(max-width:900px){body.coach-mode .sidebar{visibility:hidden;pointer-events:none;transition:transform .2s,visibility .2s}body.coach-mode.menu-open .sidebar{visibility:visible;pointer-events:auto}}
.coach-drawer-backdrop{display:none;border:0;padding:0;background:#02030799;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
@media(max-width:900px){body.coach-mode.menu-open .coach-drawer-backdrop{display:block;position:fixed;z-index:35;inset:calc(82px + env(safe-area-inset-top)) 0 0 0}}
.coach-chat .chat-composer{display:grid;gap:10px;border-top:1px solid #393c45;padding-top:20px;margin-top:20px}.coach-chat .chat-composer label{font-weight:700;color:#ecd5c0}.coach-chat .chat-composer input,.coach-chat .chat-composer textarea{width:100%;box-sizing:border-box;background:#20232b;border:1px solid #41444e;border-radius:12px;color:#f5e9de;padding:12px 14px;font:inherit;resize:vertical}.coach-chat .chat-composer button{justify-self:start}.coach-chat .chat-clients button.primary{background:#e87524;color:#151312}.coach-chat .chat-messages{overflow:auto;max-height:490px}.coach-chat .coach-bubble p{white-space:pre-wrap;overflow-wrap:anywhere}

/* Mobile notch / Dynamic Island safety: keep header actions fully visible and tappable. */
.coach-menu-toggle{width:44px;height:44px;min-width:44px;min-height:44px;touch-action:manipulation}
@media(max-width:900px){
 body.coach-mode .app{padding-top:calc(105px + env(safe-area-inset-top))}
 body.coach-mode .coach-header{height:calc(82px + env(safe-area-inset-top))!important;padding-top:calc(12px + env(safe-area-inset-top))!important;padding-bottom:12px!important}
 body.coach-mode .sidebar{top:calc(95px + env(safe-area-inset-top));height:calc(100dvh - 112px - env(safe-area-inset-top))}
 .coach-client-picker{top:calc(95px + env(safe-area-inset-top))}
}
