:root{--ink:#262124;--muted:#70696c;--line:#e7e3e5;--bg:#f5f2ef;--red:#de3146;--teal:#367c6b;--surface:#fff}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:16px/1.8 Arial,Tahoma,sans-serif}header,main,footer{max-width:1150px;margin:auto;padding:24px}header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50;background:var(--bg)}.brand b{font-size:25px;letter-spacing:-1px}.brand b span{color:var(--red);padding-inline-start:5px}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:2px}.phase,.hint,.eyebrow,footer{color:var(--muted);font-size:13px}.eyebrow{letter-spacing:2px;direction:ltr;text-align:start;font-size:10px}h1{font-size:30px;line-height:1.5;margin:0 0 10px}h2{font-size:20px;line-height:1.6}h3{font-size:16px;margin-top:25px}p{margin:8px 0 16px}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{min-height:44px;border:1px solid transparent;border-radius:8px;padding:9px 17px;background:var(--ink);color:white;font-weight:600;cursor:pointer;max-width:100%;white-space:normal}button:hover{filter:brightness(1.15)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:white;color:var(--ink);border-color:var(--line)}button.danger{background:#fff1f2;color:#b71f32;border-color:#f0c4ca;margin-top:22px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--teal);outline-offset:3px}.panel,.card,dialog{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:24px}.panel{max-width:760px;margin:30px auto}.login{max-width:480px}.login form{margin-top:20px}.titlebar,.actions,.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.titlebar{margin:16px 0 25px}.actions{justify-content:flex-start}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:25px 0 32px}.stats>div{background:white;border-radius:12px;border:1px solid var(--line);padding:20px}.stats strong{display:block;font-size:34px;line-height:1.3}.stats span{font-size:13px;color:var(--muted)}.toolbar{align-items:flex-end}.toolbar label:first-child{flex:1;min-width:180px}.toolbar label{margin:0}.clients{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:25px}.card{min-width:0;overflow-wrap:anywhere}.card .titlebar{margin:0 0 20px}.card .hint{margin:18px 0 6px}.card button{margin-top:12px}.tag{display:inline-block;font-size:11px;font-weight:600;padding:3px 8px;border-radius:5px;background:var(--bg);color:var(--teal)}.warning{color:#b71f32}.error{color:#b71f32!important}label{display:grid;gap:6px;font-size:14px;margin:14px 0}input,select,textarea{border:1px solid #cfc8cb;background:white;border-radius:7px;padding:10px 12px;min-height:44px;width:100%;color:var(--ink);min-width:0}textarea{resize:vertical;line-height:1.9}input[type=checkbox]{width:20px;min-height:20px;flex:none}.checkbox{display:flex;align-items:center;gap:10px}dialog{width:calc(100% - 28px);max-width:680px;max-height:90dvh;overflow:auto;color:var(--ink)}dialog::backdrop{background:#1a171ab0}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.dialog-head h2{margin:0}.dialog-head button{font-size:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.confirm{border:1px solid var(--teal);background:var(--bg);padding:18px;margin:16px 0;border-radius:8px}.confirm button{margin:8px 0 0 8px}#notice:not(:empty){border-inline-start:3px solid var(--teal);padding:12px 18px;background:white;border-radius:5px}#retry-panel h2{margin-top:0}pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}footer{border-top:1px solid var(--line);margin-top:50px;font-size:11px}[hidden]{display:none!important}a{color:var(--teal)}@media(max-width:760px){.clients{grid-template-columns:1fr 1fr}.stats{gap:8px}.stats>div{padding:15px}.stats span{font-size:11px}header,main,footer{padding:18px}h1{font-size:25px}.phase{font-size:11px}}@media(max-width:480px){.clients{grid-template-columns:1fr}.stats strong{font-size:28px}.stats>div{padding:12px 8px}.stats span{line-height:1.5;display:block}.toolbar{align-items:stretch}.toolbar label{width:100%}.toolbar button{width:100%}.form-grid{grid-template-columns:1fr}.panel,.card,dialog{padding:18px}.actions{gap:8px}.actions button{font-size:12px;padding:8px 12px}.titlebar{gap:8px}}

.inbox{margin-top:50px;border-top:1px solid var(--line);padding-top:22px}.check-card{background:white;border:1px solid var(--line);border-radius:12px;padding:20px;margin:18px 0;overflow-wrap:anywhere}.check-card .titlebar{margin:0}.check-card h3{margin:0}.check-card .reply{border-inline-start:3px solid var(--teal);padding:14px;background:var(--bg);border-radius:6px}.check-card button{margin-top:10px}#weekly-section{margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}#review-editor{max-width:760px}#review-facts .check-card{margin-top:18px}#client-view>button{margin:18px 0}#check-summary{white-space:pre-wrap;overflow-wrap:anywhere}

.brand{max-width:100%;min-width:0}.brand b{display:block;font-size:22px;letter-spacing:-.5px;line-height:1.35}.brand b span{padding-inline-start:0}.brand small{margin-top:6px}
/* Brand-led visual system. Local assets, no external requests. */
@font-face{font-family:CoachArabic;src:url('/arabic.ttf') format('truetype');font-display:swap;font-weight:400}
:root{--red:#d9000b;--ink:#181a20;--muted:#656875;--bg:#f3f4f7;--line:#e4e6ed;--teal:#247462}
html{scroll-behavior:smooth;scroll-padding-top:110px}body{font-family:CoachArabic,Arial,sans-serif;font-size:15px;line-height:1.85;background:radial-gradient(ellipse at 5% 0%,#fee9e9 0,transparent 35%),var(--bg)}header{max-width:1200px;padding:12px 30px;border:0;gap:14px}.brand-mark{width:clamp(38px,13vw,54px);height:auto;object-fit:contain;flex:none}.brand b span{color:var(--red)}.phase{font-size:11px;background:#fff9;border:1px solid white;border-radius:99px;padding:5px 12px}.phase i{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--red);margin-inline-end:5px}main{padding-top:10px;max-width:1200px}.coach-hero,.client-intro{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#33141b,#181a20 65%);color:white;border-radius:22px;padding:30px 32px;border:1px solid #342b32}.coach-hero::before,.client-intro::before{content:'';position:absolute;inset:-30px auto -30px -30px;width:220px;background:url('/brand-mark.png') center/contain no-repeat;opacity:.13;transform:rotate(-10deg);z-index:-1}.coach-hero::after,.client-intro::after{content:'';position:absolute;width:100px;height:350px;background:linear-gradient(90deg,#e6001222,transparent);transform:rotate(35deg);inset:-70px auto auto 90px;z-index:-1}.coach-hero .titlebar{margin:0;align-items:flex-start}.coach-hero .eyebrow,.client-intro .eyebrow{color:#f09196;letter-spacing:2px}.hero-copy{color:#d5cbd0;margin:4px 0 0;font-size:13px}.coach-hero h1{font-size:28px}.coach-hero .actions button{background:#ffffff0d;border-color:#ffffff35;color:white;font-size:12px}.workspace-nav{display:flex;gap:4px;padding:6px;background:white;border:1px solid var(--line);border-radius:12px;margin:18px 0 24px;box-shadow:0 4px 20px #1c233305}.workspace-nav a{flex:1;text-align:center;text-decoration:none;padding:8px 6px;border-radius:7px;min-height:44px;font-size:13px;color:var(--muted);font-weight:bold}.workspace-nav a:hover,.workspace-nav a:focus-visible{background:#fff0f1;color:var(--red)}.stats{margin:20px 0 32px;gap:12px}.stats>div{border:1px solid white;box-shadow:0 6px 24px #1c233305;border-radius:16px;padding:22px;position:relative;overflow:hidden}.stats>div:first-child{background:var(--red);color:white;border-color:var(--red);box-shadow:0 8px 22px #d9000b1a}.stats>div:first-child span{color:#ffe9eb}.stats strong{font-family:Arial,sans-serif;font-size:36px;letter-spacing:-1px;margin-bottom:5px}.stats span{font-size:12px}.stats>div::after{content:'';position:absolute;width:54px;height:54px;border:10px solid currentColor;border-radius:50%;opacity:.035;inset:auto auto -15px -15px}.section-heading{margin-bottom:18px}.section-heading .eyebrow{color:var(--red);margin:0 0 4px}.section-heading h2{margin:0;font-size:21px}.eyebrow{font-family:Arial,sans-serif;font-weight:700;letter-spacing:2px}.toolbar{padding:20px;background:#fff;border:1px solid var(--line);border-radius:16px;gap:12px}.toolbar label:first-child{min-width:160px}.toolbar label{font-size:12px}.toolbar+p.hint{margin:12px 4px 22px;font-size:11px}input,select,textarea{border-color:#dfe1e8;background:#fafbfc;border-radius:9px;font-size:14px;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:var(--red);box-shadow:0 0 0 3px #d9000b0b;outline:0}button{border-radius:10px;padding:10px 18px;background:#b83a46;font-size:13px;box-shadow:0 4px 10px #d9000b0b;transition:background .15s,transform .15s;min-height:46px}button:hover{filter:none;background:#a02f3a}button:active{transform:translateY(1px)}button.secondary{box-shadow:none;color:#383b45;border-color:#dfe1e8;background:white}button.secondary:hover{background:#f6f7fa}.clients{gap:18px}.card{border-color:#e6e8ee;border-radius:18px;padding:22px;box-shadow:0 5px 18px #1c233304;position:relative}.card h2{font-size:18px;margin:12px 0 8px}.client-avatar{display:grid;place-items:center;width:42px;height:42px;background:#fff0f1;color:var(--red);border:1px solid #f8dfe1;border-radius:13px;font-size:19px;font-weight:bold}.card .titlebar{margin-bottom:14px}.card button{width:100%;margin-top:16px}.tag{border-radius:6px;padding:4px 9px;font-size:10px;background:#eaf5ef;color:#1b6d51}.titlebar>.tag:first-child{background:#f1f2f7;color:#4e556e;letter-spacing:.5px;font-family:Arial,sans-serif}.tag.warning{background:#fff0f1;color:#b40012}.warning{color:#b40012}.card .hint{font-size:11px}.inbox{border:0;margin-top:36px;padding-top:0}.inbox .titlebar{align-items:center}.inbox h2{margin:4px 0}.inbox .eyebrow{color:var(--red);margin:0}.check-card{border-color:#e5e7ee;border-radius:15px;padding:22px;box-shadow:0 4px 12px #1c233303}.check-card h3{font-size:15px}.check-card .reply{background:#f6f7fa;border-inline-start:3px solid var(--red);font-size:14px}.panel{border-color:#e5e7ee;box-shadow:0 8px 32px #1c233304;border-radius:20px}.client-intro{margin:-24px -24px 0;border-radius:20px 20px 0 0;padding:32px}.client-intro h1{font-size:27px}.client-intro>p:last-child{font-size:13px;color:#e1d5dc;max-width:420px;margin-bottom:0}#client-view{margin-top:0}#client-programs .card{background:#f9fafc;box-shadow:none;border-color:#e5e7ee}#client-programs pre{padding-top:18px;border-top:1px solid var(--line);font-size:14px}#weekly-section{border-top:1px solid var(--line);margin-top:24px}#weekly-section .eyebrow{color:var(--red)}#weekly-section h2{margin:3px 0 12px}#weekly-status{background:#fff4f4;border:1px solid #f7dedf;border-radius:10px;padding:14px;font-size:13px}.checkbox{align-items:flex-start;font-size:13px;line-height:1.8}.checkbox input{accent-color:var(--red);margin-top:3px}#notification-panel .eyebrow{color:var(--red)}#empty{padding:36px;text-align:center;border:1px dashed #d5d8e2;border-radius:16px;background:white;color:var(--muted)}#notification-list>.hint,#checkin-inbox>.hint,#my-checkins>.hint{padding:24px;background:#f8f9fb;text-align:center;border-radius:12px;border:1px dashed #d9dce5}dialog{border:0;box-shadow:0 24px 90px #13141c55;border-radius:20px}.dialog-head{padding-bottom:15px;border-bottom:1px solid var(--line);margin-bottom:14px}.dialog-head h2{font-size:19px}.dialog-head button{min-width:44px}.confirm{border-color:#f4c4c9;background:#fff7f7}#notice:not(:empty){border-inline-start-color:var(--red);font-size:13px;border:1px solid var(--line);border-inline-start:3px solid var(--red);border-radius:10px}footer{font-size:10px;color:#777c8c;line-height:2;text-align:center;border-top-color:#dfe1e8}button:focus-visible,a:focus-visible{outline-color:var(--red)}.header-side{display:flex;align-items:center;gap:10px;position:relative}.icon-btn{position:relative;display:inline-grid;place-items:center;width:42px;height:42px;min-height:42px;padding:0;border-radius:12px;background:#fff;color:var(--red);border:1px solid var(--line);box-shadow:none}.icon-btn:hover{background:#fff0f1}.icon-btn svg{width:20px;height:20px}#notif-badge{position:absolute;top:-6px;left:-6px;background:var(--red);color:#fff;font:700 10px/1 Arial,sans-serif;min-width:17px;padding:3px 4px;border-radius:99px;box-shadow:0 2px 6px #d9000b55;text-align:center}#notification-list .check-card.openable{cursor:pointer}#notification-list .check-card.openable:hover{border-color:var(--red)}.open-hint{color:var(--red);font-size:11px;font-weight:700}.check-card.flash{outline:2px solid var(--red);box-shadow:0 0 0 6px #d9000b22}.notif-dropdown{position:absolute;top:calc(100% + 10px);inset-inline-start:0;width:min(320px,86vw);max-height:min(430px,62vh);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 16px 48px #13141c26;z-index:70;padding:8px}@media(max-width:640px){.notif-dropdown{position:fixed;inset-inline-end:auto;left:12px;right:12px;top:80px;width:auto;max-height:min(430px,62dvh)}}.notif-item{display:block;width:100%;text-align:start;background:none;border:0;box-shadow:none;padding:10px 12px;border-radius:10px;font-size:13px;line-height:1.7;min-height:0;cursor:pointer;color:var(--ink)}.notif-item:hover{background:#f6f7fa;filter:none;transform:none}.notif-item.unread{background:#fff5f6}.notif-item .notif-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);margin-inline-end:7px;vertical-align:middle}.notif-item small{display:block;color:var(--muted);font-size:11px}.notif-all{display:block;width:100%;margin-top:4px;padding:9px;background:none;border:0;border-top:1px solid var(--line);border-radius:0 0 8px 8px;box-shadow:none;color:var(--red);font-size:12px;font-weight:700;min-height:0;cursor:pointer}.notif-all:hover{background:#fff0f1;filter:none}.notif-empty{padding:18px;text-align:center;color:var(--muted);font-size:12px}@media(max-width:760px){header{padding:10px 18px}.coach-hero{padding:24px}.coach-hero h1{font-size:24px}.stats>div{padding:18px 14px}.stats strong{font-size:30px}}@media(max-width:480px){main{padding:0 16px 20px}header{padding:10px 16px;align-items:center}.brand b span{display:block}.phase{font-size:9px;padding:4px 8px}.phase i{width:5px;height:5px}.coach-hero{padding:24px 20px;border-radius:18px}.coach-hero h1{font-size:22px;line-height:1.65}.coach-hero .actions{margin-top:12px;width:100%}.coach-hero .actions button{padding:8px 12px;flex:1;font-size:11px}.hero-copy{font-size:12px}.stats{gap:8px}.stats>div{padding:16px 9px;border-radius:13px}.stats strong{font-size:29px}.stats span{font-size:10px;line-height:1.7}.toolbar{padding:16px;gap:12px}.toolbar label{font-size:12px}.section-heading h2{font-size:19px}.card{padding:20px}.panel{padding:18px}.client-intro{margin:-18px -18px 0;padding:26px 20px}.client-intro h1{font-size:23px;max-width:250px;line-height:1.7}.client-intro>p:last-child{font-size:12px}.check-card{padding:18px}.inbox>.titlebar{align-items:flex-start}.inbox label{font-size:11px}.inbox select{font-size:12px;padding:9px}.inbox h2{font-size:19px}h1{font-size:25px}.workspace-nav{margin:14px 0 22px}.workspace-nav a{font-size:12px}#client-view>button{width:100%}.panel.login{margin:20px 0}.login h1{font-size:27px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.progress-photo{display:block;max-width:100%;max-height:520px;object-fit:contain;margin-top:20px;border-radius:12px}#photo-list button{margin-inline-end:8px}#photo-status:not(:empty){padding:14px;background:#fff4f4;border-radius:10px;font-size:13px}
#access-section,#program-pdf-section{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}#access-section .eyebrow,#program-pdf-section .eyebrow{color:var(--red)}#access-state{font-size:13px;border:1px solid var(--line);padding:12px;border-radius:9px;overflow-wrap:anywhere}#access-section button,#program-pdf-section button{margin:5px 0 5px 8px}.program-file{padding:16px;background:#f7f8fb;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}.program-file strong{font-family:Arial,sans-serif}.program-file button{margin-top:8px}#enrollment-panel{border-top:3px solid var(--red)}#enrollment-status{overflow-wrap:anywhere}

.coach-security{padding:20px;margin:20px 0;background:#fff;border:1px solid #e1e3eb;border-radius:18px}.coach-security summary{cursor:pointer;font-weight:700}.coach-security form{max-width:580px}.coach-security input{width:100%;box-sizing:border-box}

#file-viewer{width:min(1100px,96vw);max-width:96vw;max-height:94dvh;box-sizing:border-box;padding:20px}#file-viewer::backdrop{background:#111827c9}.viewer-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:14px 0}.viewer-tabs button[aria-pressed=true]{border:2px solid #d9000b;color:#b0000a}.viewer-tabs{max-height:150px;overflow:auto}#viewer-content{position:relative;overflow:hidden;height:64dvh;min-height:300px;direction:ltr;background:#eef0f5;border:1px solid #dce0ea;border-radius:8px;overscroll-behavior:contain;touch-action:none}.zoom-layer{position:absolute;top:0;left:0;transform-origin:0 0;width:max-content;min-width:100%;padding:4px 0;will-change:transform}.pdf-page{position:relative;margin:8px auto;background:#fff;box-shadow:0 2px 12px #13141c22}.pdf-page canvas{display:block}.pdf-link{position:absolute;z-index:2;border-radius:4px}.pdf-link:focus-visible{outline:3px solid var(--teal);outline-offset:1px}#viewer-zoom-reset{position:fixed;bottom:16px;left:16px;z-index:60;min-height:40px;font-size:12px;box-shadow:0 4px 14px #13141c33}.cell-edit{cursor:text;caret-color:#d9000b;min-width:70px}.cell-edit:focus{outline:2px solid #d9000b;outline-offset:-2px;background:#fff}.cell-edit.cell-saving{opacity:.55}.cell-edit.cell-saved{outline:2px solid #1b6d51;outline-offset:-2px}.preview-grid{border-collapse:collapse;min-width:100%;background:#fff;font-size:14px}.preview-grid caption{text-align:start;padding:10px;font-weight:700}.preview-grid td,.preview-grid th{border:1px solid #d8dce6;padding:8px 10px;min-width:70px;max-width:340px;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}.preview-grid th{background:#f5f6fa;position:sticky;top:0;z-index:1}#viewer-links a{display:block;overflow-wrap:anywhere;margin:10px 0;color:#b0000a}#viewer-status{font-size:14px}#file-viewer .dialog-head{position:sticky;top:-20px;background:#fff;z-index:3;padding-bottom:10px}@media(max-width:500px){#file-viewer{padding:14px}#file-viewer h2{font-size:18px}}

#viewer-page{max-width:90px}#file-viewer .viewer-controls{margin:8px 0}#file-viewer .viewer-controls label{display:flex;gap:8px;align-items:center}#file-viewer .hint{margin:10px 0}

.password-field{min-width:0;direction:ltr}.password-field input{margin:0}.password-field:focus-within{border-radius:12px}

.line-icon{width:22px;height:22px;display:inline-block;vertical-align:middle;flex:none}.stats>div>.line-icon{position:absolute;inset:20px auto auto 18px;opacity:.6;width:28px;height:28px}.card button .line-icon{width:18px;height:18px;margin-inline-end:8px}.card{border-top:3px solid #e7e9ee}.package-vip{border-top-color:#d9000b}.package-standard{border-top-color:#383b45}.package-premium{border-top-color:#a6adbb}.archived-card{background:#f6f7fa;border-style:dashed;box-shadow:none}.archive-badge{background:#e6e8ee!important;color:#525968!important}.renewal-strip{padding:20px;background:linear-gradient(130deg,#fff,#fff7f7);border:1px solid #f0dfe2;border-radius:18px;margin:-12px 0 30px;position:relative;overflow:hidden}.renewal-strip:after{content:'';position:absolute;left:-25px;top:-45px;width:130px;height:130px;border:20px solid #d9000b04;transform:rotate(30deg);pointer-events:none}.renewal-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.renewal-heading .line-icon{color:#d9000b}.renewal-heading .hint{margin-inline-start:auto;font-size:10px}.renewal-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.renewal-values>div{border-radius:10px;padding:10px 14px;display:flex;gap:10px;align-items:center;background:#fff;border:1px solid #eceef2}.renewal-values b{font:700 24px Arial}.renewal-values span{font-size:11px;color:#626776}.renewal-values .expired{border-inline-start:3px solid #d9000b}.renewal-values .due{border-inline-start:3px solid #9a6634}.renewal-values .steady{border-inline-start:3px solid #54816b}#restore-editor{max-width:640px}#restore-audit{max-height:180px;overflow:auto}#restore-details pre{padding:14px;background:#f6f7fa;border-radius:10px}@media(max-width:480px){.renewal-strip{padding:16px}.renewal-values{gap:6px}.renewal-values>div{padding:9px 6px;display:block;text-align:center}.renewal-values span{display:block;font-size:10px}.renewal-heading .hint{margin:0;flex-basis:100%}.stats>div>.line-icon{width:18px;height:18px;inset:10px auto auto 8px;opacity:.45}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}}

.client-code-line{font:600 12px/1.8 monospace;letter-spacing:1px;overflow-wrap:anywhere;user-select:all;color:#5c6271;border:1px dashed #dfe1e8;border-radius:8px;padding:7px 10px;background:#fafbfc}
.whatsapp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#fff;color:#3d9e6d;font-weight:600;font-size:13px;padding:10px 18px;height:46px;border-radius:10px;text-decoration:none;margin-top:12px;border:1px solid #9ed8b6;box-shadow:none;transition:background .15s,border-color .15s}
.whatsapp-btn:hover{background:#f3faf5;border-color:#7ccba0}
.whatsapp-btn svg{width:15px;height:15px;fill:currentColor;flex:none}

/* التراكر */
#tracker-section{margin-top:30px}
.tracker-example{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin:10px 0;font-size:13px}
.tracker-example p{margin:6px 0 0}
.tracker-weeks{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.tracker-week[aria-pressed="true"]{border:1px solid var(--red)}
.tracker-day{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px;margin:14px 0}
.tracker-day h3{margin:0 0 10px;font-size:16px}
.tracker-entry{border-top:1px dashed var(--line);padding:12px 0}
.tracker-entry:first-of-type{border-top:0}
.tracker-entry .sets{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tracker-entry input{margin:0;width:100%;box-sizing:border-box}
.tracker-entry .row-actions{display:flex;gap:8px;align-items:center;margin-top:8px;flex-wrap:wrap}
.tracker-status{font-size:14px;font-weight:700;color:var(--teal);margin-inline-end:auto}
.tracker-status.error{color:var(--red)}
.tracker-add{margin:10px auto;display:block}
.tracker-week-head{margin:18px 0 6px;color:var(--red)}
.tracker-day-head{margin:12px 0 6px;color:var(--muted)}
.tracker-read-entry,.tracker-compare-row{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:8px 0}
.tracker-sets-read{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.tracker-sets-read span{background:var(--bg);border-radius:5px;padding:2px 8px;font-size:13px}
.tracker-compare label{display:grid;gap:6px;margin:10px 0}

.tracker-entry .sets label{display:grid;gap:3px;font-size:11px;color:var(--muted)}
.tracker-cmp{width:100%;border-collapse:collapse;font-size:12px;margin:6px 0;background:#fff;border-radius:8px;overflow:hidden}
.tracker-cmp th{color:var(--muted);font-weight:600;padding:4px;border-bottom:1px solid var(--line);font-size:11px}
.tracker-cmp td{padding:5px 4px;border-bottom:1px dashed var(--line);vertical-align:top;text-align:center}
.tracker-cmp td:first-child{text-align:right;min-width:86px}
.tracker-cmp td:first-child strong{font-size:12px}
.tracker-cmp .cmp-notes{color:var(--muted);font-size:11px;text-align:right;border-bottom:1px dashed var(--line)}
.tracker-days{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}
.tracker-day-chip[aria-pressed="true"]{border:1px solid var(--red)}

.tracker-prev{flex:none;padding:8px 10px;line-height:1}
.tracker-prev:disabled{opacity:.35}

.header-side{justify-self:start;min-width:0}
.brand-center{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0;justify-self:center}
.brand-center .phase{margin-top:2px}
.brand-side{justify-self:end;min-width:0}
.brand-side.brand b{font-family:Arial,sans-serif;font-size:clamp(11px,3vw,14px);letter-spacing:-.25px;font-weight:800;line-height:1.55;display:block;text-align:left;white-space:nowrap}
.brand-side.brand b span{display:block}
.brand-tag{font-family:Arial,sans-serif;font-size:clamp(8px,2.3vw,9px);letter-spacing:4px;color:#767984;display:block}
@media(max-width:480px){.brand-tag{letter-spacing:3px}}

.dlg-top-btn{position:sticky;bottom:14px;z-index:5;width:46px;height:46px;min-height:46px;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-inline-start:auto;background:#b83a46;color:#fff;border:1px solid #c94a56;box-shadow:0 6px 20px #b83a4659;opacity:0;pointer-events:none;transform:translateY(12px);transition:opacity .3s,transform .3s}
.dlg-top-btn.show{opacity:1;pointer-events:auto;transform:none}
.dlg-top-btn svg{width:20px;height:20px}
/* Login polish batch: guest header, role tabs, form rhythm, inside eye */
.role-tabs{display:flex;gap:8px;margin:16px 0}
.role-tabs button{flex:1;min-width:0;text-align:center;background:#fff;color:var(--ink);border:1px solid var(--line);box-shadow:none}
.role-tabs button:hover{background:#f6f7fa;filter:none}
.role-tabs button[aria-pressed="true"]{background:#fff0f1;color:var(--red);border-color:var(--red)}
.login form{display:flex;flex-direction:column;gap:14px;margin-top:0}
.login form label{margin:0}
.login form .hint{margin:0}
.login form button{width:100%}
.login-help summary{cursor:pointer;color:var(--muted);font-size:12px}
.login-help p{font-size:12px;color:var(--muted);margin:8px 0 0}
.install-help{margin-top:16px}
.password-field.inside{position:relative;display:block}
.password-field.inside input{width:100%;padding-right:46px}
.password-field.inside .password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-width:0;width:34px;height:34px;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;color:#8a8d99;display:flex;align-items:center;justify-content:center;border-radius:8px}
.password-field.inside .password-toggle svg{width:20px;height:20px;display:block}
.password-field.inside .password-toggle:hover{background:rgba(0,0,0,.04);color:var(--red)}
.password-field.inside .password-toggle[aria-pressed="true"]{color:var(--red)}
body.guest header{display:flex;flex-direction:column;align-items:center;gap:4px;padding-top:16px;padding-bottom:14px}
body.guest header{position:relative}
body.guest .header-side{position:absolute;top:12px;inset-inline-end:12px}
body.guest #notif-bell{display:none}
body.guest .brand-center{display:contents}
body.guest .brand-mark{order:1}
body.guest .brand-side{order:2;justify-self:auto}
body.guest .brand-side.brand b{text-align:center;font-size:clamp(14px,4vw,17px)}
body.guest .brand-tag{order:3}
body.guest .brand-center .phase{display:none}

/* مجموعات المتابعات لكل عميل */
.inbox-group{border:1px solid var(--line,#e5e0da);border-radius:14px;background:var(--card,#fff);margin:0 0 12px;overflow:hidden}
.inbox-group-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;cursor:pointer;padding:14px 16px;list-style:none;user-select:none}
.inbox-group-head::-webkit-details-marker{display:none}
.inbox-group-head h3{margin:0;font-size:17px;flex:1;min-width:120px}
.inbox-group-head::after{content:'▾';margin-inline-start:auto;color:var(--muted,#8a8a8a);transition:transform .15s}
.inbox-group[open]>.inbox-group-head::after{transform:rotate(180deg)}
.inbox-group>.check-card{margin:0 12px 12px}
#client-list.clients{display:flex;gap:10px;overflow-x:auto;padding:6px 2px 12px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
#client-list.clients{-webkit-mask-image:linear-gradient(90deg,transparent,#000 30px calc(100% - 30px),transparent);mask-image:linear-gradient(90deg,transparent,#000 30px calc(100% - 30px),transparent);padding-bottom:20px}
@supports not selector(::-webkit-scrollbar){#client-list.clients{scrollbar-width:thin;scrollbar-color:var(--red) transparent}}
#client-list.clients::-webkit-scrollbar{height:22px}
#client-list.clients::-webkit-scrollbar-track{background:#1c23330a;border-radius:99px;margin:0 56px}
#client-list.clients::-webkit-scrollbar-thumb{background:url('/brand-mark.png') center/auto 15px no-repeat,linear-gradient(180deg,#ffffff,#ffecef);border:1.5px solid var(--red);border-radius:99px;box-shadow:0 3px 12px #d9000b3d,inset 0 1px 0 #fff}
#client-list.clients::-webkit-scrollbar-thumb:hover{background:url('/brand-mark.png') center/auto 17px no-repeat,linear-gradient(180deg,#ffffff,#ffdfe3);border-color:#b8000a;box-shadow:0 4px 16px #d9000b5c,inset 0 1px 0 #fff}
.client-chip{scroll-snap-align:start;flex:0 0 auto;min-width:160px;max-width:180px;display:flex;flex-direction:column;align-items:center;gap:9px;padding:16px 12px;border:1px solid var(--border,#e5e5e5);border-radius:16px;background:var(--card,#fff);color:var(--ink);text-align:center;cursor:pointer;transition:border-color .2s,box-shadow .2s}
.client-chip:active{transform:scale(.98)}
.client-chip .chip-tags{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;min-height:20px}
.client-chip .chip-name{font-size:16px;line-height:1.35;word-break:break-word}
.client-chip .chip-expiry{font-size:12px}
.client-chip .client-avatar{margin:0}
.client-chip:hover{background:#fff;border-color:var(--red);filter:none}
.client-chip:disabled{opacity:.5;cursor:wait}
.intake{max-width:680px;margin:30px auto}
.intake-head h1{font-size:24px;margin-bottom:6px}
.intake-progress{margin:16px 0 22px}
.intake-progress-bar{height:5px;background:var(--red);border-radius:3px;transition:width .3s;margin-bottom:8px}
.intake-progress{box-shadow:inset 0 0 0 200px #0000;background:#efe9ea;border-radius:4px;padding:0}
.intake-progress .hint{padding:6px 2px}
.intake-q{display:grid;gap:8px;margin:18px 0}
.intake-q-text{font-weight:600;font-size:14px;line-height:1.8}
.intake-opts{display:flex;flex-wrap:wrap;gap:8px}
.intake-opt{display:flex;align-items:center;gap:7px;background:#fafbfc;border:1px solid #dfe1e8;border-radius:9px;padding:8px 12px;font-size:13px;margin:0}
.intake-opt input{accent-color:var(--red)}
.intake-nav{margin-top:26px;display:flex;justify-content:space-between}
.intake-submit{min-width:180px}
.intake-ans-group{border-top:1px solid var(--line);padding:14px 0}
.intake-ans-group h3{font-size:14px;color:var(--red);margin:0 0 8px}
.intake-ans{display:grid;gap:2px;margin:10px 0;font-size:13px}
.intake-ans strong{font-size:12.5px;color:var(--muted)}
.intake-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px;margin-top:8px}
.intake-photo{display:grid;gap:6px}
.intake-photo img{width:100%;border-radius:10px;border:1px solid var(--line);cursor:zoom-in;aspect-ratio:3/4;object-fit:cover;background:#f3f1f2}
.intake-photo-overlay{position:fixed;inset:0;background:#000d;display:grid;place-items:center;z-index:200;cursor:zoom-out}
.intake-photo-overlay img{max-width:94vw;max-height:92vh;border-radius:12px}

body.booting #login{display:none}
.boot-status-panel{display:none;text-align:center;padding:64px 16px;color:var(--muted)}
body.booting .boot-status-panel{display:grid;justify-items:center;gap:22px}
.boot-logo{width:84px;height:auto;animation:bootPulse 1.6s ease-in-out infinite}
.boot-dots{display:flex;gap:9px}
.boot-dots i{width:9px;height:9px;border-radius:50%;background:var(--red);opacity:.25;animation:bootDot 1.2s ease-in-out infinite}
.boot-dots i:nth-child(2){animation-delay:.2s}
.boot-dots i:nth-child(3){animation-delay:.4s}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.boot-status-panel p:not(.sr-only){margin:0;font-weight:600}
.boot-status-panel a{display:inline-block;color:var(--red);font-weight:700}
@keyframes bootPulse{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.07);opacity:1}}
@keyframes bootDot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){.boot-logo,.boot-dots i{animation:none}.boot-dots i{opacity:.7}}
.workspace-nav a{flex:1 1 auto;white-space:nowrap;padding:8px 4px;display:flex;align-items:center;justify-content:center}

.chip-code{font:600 11px/1.8 monospace;letter-spacing:.5px;overflow-wrap:anywhere;user-select:all;color:#5c6271;border:1px dashed #dfe1e8;border-radius:8px;padding:4px 6px;background:#fafbfc;max-width:100%;margin:0 -4px}

.inbox-collapse{display:flex;align-items:center;justify-content:center;margin:4px auto 0;padding:8px 18px;background:none;border:1px solid var(--line);border-radius:999px;color:var(--muted);cursor:pointer;min-height:40px}
.inbox-collapse:hover,.inbox-collapse:focus-visible{color:var(--red);border-color:var(--red)}
#logout-confirm{max-width:330px;padding:14px 16px}
#logout-confirm .dialog-head{padding-bottom:0;margin-bottom:4px;border-bottom:0}
#logout-confirm .dialog-head h2{font-size:15px}
#logout-confirm .dialog-head button{min-width:32px;width:32px;height:32px;min-height:32px;padding:0;font-size:15px;border-radius:9px}
#logout-confirm p{margin:2px 0 12px;font-size:14px;text-align:center}
#logout-confirm .actions{justify-content:center;gap:8px}
#logout-confirm .actions button{min-height:38px;padding:7px 14px;font-size:13px}
.coach-hero .actions button:hover{background:#f6f7fa;color:#383b45;border-color:#ffffff35}


@media(max-width:480px){#client-view h2,#workspace h2{font-size:17px}#client-view h3,#workspace h3{font-size:15px}#whatsapp-cta h2{font-size:15px;line-height:1.6;white-space:nowrap}}
@media(max-width:360px){#whatsapp-cta h2{font-size:13.5px}}
#client-view button:not(.password-toggle):not(.notif-item):not(.notif-all){height:46px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
#client-view button svg{flex:none}
.tracker-weeks .tracker-prev,.tracker-days .tracker-prev{flex:none;width:46px}
.tracker-week-new,.tracker-day-new{flex:1 1 100%}
.tracker-add{width:100%}
#client-view .tracker-week-head{font-size:15px;margin:14px 0 6px}
#client-view .tracker-day-head{font-size:14px;margin:10px 0 4px}
#client-view .tracker-entry{font-size:14px}
#workspace button:not(.notif-item):not(.notif-all):not(.client-chip):not(.password-toggle){height:46px;display:inline-flex;align-items:center;justify-content:center;gap:6px}
#client-view button:not(.password-toggle):not(.notif-item):not(.notif-all){height:46px}
.card,.panel,.check-card,.tracker-day,.toolbar,.stats>div{border-radius:16px}
.check-card,.tracker-day{padding:20px}

/* === الوضع الليلي (فحمي) === */
html.dark{--bg:#14151a;--surface:#1d1f27;--ink:#eceaec;--muted:#a2a0a8;--line:#33363f;--teal:#5aa08e}
html.dark body{background:radial-gradient(ellipse at 5% 0%,rgba(230,0,18,.07) 0,transparent 35%),var(--bg)}
html.dark .phase{background:#ffffff12;border-color:#ffffff24}
html.dark .workspace-nav{background:var(--surface);border-color:var(--line)}
html.dark .workspace-nav a{color:var(--muted)}
html.dark .workspace-nav a:hover,html.dark .workspace-nav a:focus-visible{background:rgba(222,49,70,.16);color:#ff8a95}
html.dark .toolbar{background:var(--surface);border-color:var(--line)}
html.dark input,html.dark select,html.dark textarea{border-color:#3a3d47;background:#22242d;color:var(--ink)}
html.dark button.secondary{background:#22242d;color:#e6e4e8;border-color:#3a3d47}
html.dark button.secondary:hover{background:#2a2d37}
html.dark .card{border-color:var(--line)}
html.dark .stats>div{background:var(--surface);border-color:var(--line)}
html.dark .stats>div:first-child{background:var(--red);color:#fff;border-color:var(--red)}
html.dark #empty{background:#1a1c22;border-color:#3a3d47}
html.dark .client-avatar{background:rgba(222,49,70,.16);border-color:rgba(222,49,70,.35)}
html.dark .tag{background:rgba(90,160,142,.16);color:#8fd4bd}
html.dark .titlebar>.tag:first-child{background:#262933;color:#9aa0b4}
html.dark .tag.warning{background:rgba(222,49,70,.16);color:#ff8a95}
html.dark .warning{color:#ff8a95}
html.dark .check-card{background:var(--surface);border-color:var(--line)}
html.dark #notice:not(:empty){background:var(--surface);color:var(--ink)}
html.dark .check-card .reply{background:#24262f}
html.dark .panel{border-color:var(--line)}
html.dark #client-programs .card{background:#1a1c22;border-color:var(--line)}
html.dark #client-programs pre{border-top-color:var(--line)}
html.dark #weekly-status{background:rgba(222,49,70,.10);border-color:rgba(222,49,70,.3)}
html.dark #notification-list>.hint,html.dark #checkin-inbox>.hint,html.dark #my-checkins>.hint{background:#1a1c22;border-color:#3a3d47}
html.dark .confirm{background:rgba(222,49,70,.08);border-color:rgba(222,49,70,.3)}
html.dark footer{border-top-color:var(--line);color:var(--muted)}
html.dark .icon-btn{background:#22242d;border-color:var(--line)}
html.dark .icon-btn:hover{background:rgba(222,49,70,.16)}
html.dark .notif-dropdown{background:var(--surface);border-color:var(--line)}
html.dark .notif-item:hover{background:#24262f}
html.dark .notif-item.unread{background:rgba(222,49,70,.12)}
html.dark .notif-all{border-top-color:var(--line)}
html.dark .notif-all:hover{background:rgba(222,49,70,.16)}
html.dark #photo-status:not(:empty){background:rgba(222,49,70,.10)}
html.dark .program-file{background:#24262f;border-color:var(--line)}
html.dark .coach-security{background:var(--surface);border-color:var(--line)}
html.dark .renewal-strip{background:linear-gradient(130deg,var(--surface),#241b1e);border-color:rgba(222,49,70,.25)}
html.dark .renewal-values>div{background:#24262f;border-color:#3a3d47}
html.dark #restore-details pre{background:#24262f}
html.dark .client-code-line{background:#22242d;border-color:#3a3d47;color:#9aa0b4}
html.dark .whatsapp-btn{background:#22242d;color:#55c188;border-color:#2f6b4d}
html.dark .whatsapp-btn:hover{background:rgba(61,158,109,.14);border-color:#3d9e6d}
html.dark .tracker-cmp{background:var(--surface)}
html.dark .role-tabs button{background:#22242d;color:var(--ink);border-color:var(--line)}
html.dark .role-tabs button:hover{background:#2a2d37}
html.dark .role-tabs button[aria-pressed="true"]{background:rgba(222,49,70,.16);color:var(--red);border-color:var(--red)}
html.dark .inbox-group{background:var(--surface)}
html.dark .client-chip{background:var(--surface)}
html.dark .client-chip:hover{background:#24262f;border-color:var(--red)}
html.dark .chip-code{background:#22242d;border-color:#3a3d47;color:#9aa0b4}
html.dark #client-list.clients::-webkit-scrollbar-thumb{background:#3a3d47}
html.dark #client-list.clients::-webkit-scrollbar-thumb:hover{background:#4a4e5c}
html.dark .archived-card{background:#24262f}
html.dark .archive-badge{background:#3a3d47!important;color:#9aa0b4!important}
html.dark .package-standard{border-top-color:#3a3d47}

@media(max-width:640px){.header-side .icon-btn{width:36px;height:36px;min-height:36px;border-radius:10px}}
html.dark .intake-progress{background:#2a2d37}
html.dark .intake-opt{background:#22242d;border-color:#3a3d47}
html.dark .intake-photo img{background:#24262f}


.intake-opt input[type=radio],.intake-opt input[type=checkbox]{width:14px;height:14px;min-height:0;padding:0;flex:none}

.icon-sun{display:none}
html.dark .icon-sun{display:block}
html.dark .icon-moon{display:none}

html.dark .tracker-week[aria-pressed="true"],html.dark .tracker-day-chip[aria-pressed="true"]{border-color:var(--red)}
html.dark .renewal-values span{color:var(--muted)}
html.dark button.danger{background:rgba(222,49,70,.14);color:#ff8a95;border-color:rgba(222,49,70,.4)}
html.dark #file-viewer .dialog-head{background:var(--surface)}
html.dark #viewer-content{background:#101116;border-color:var(--line)}
html.dark .viewer-tabs button[aria-pressed=true]{color:#ff8a95}
html.dark #viewer-links a{color:#ff8a95}
html.dark .preview-grid{background:var(--surface);color:var(--ink)}
html.dark .preview-grid td,html.dark .preview-grid th{border-color:var(--line)}
html.dark .preview-grid th{background:#24262f}
html.dark .cell-edit:focus{background:#24262f}
/* v15 typography: Alexandria 700 headings, IBM Plex Sans Arabic 400 body and 600 buttons (OFL fonts, same origin) */
@font-face{font-family:CoachHead;src:url('/fonts/alexandria-var.ttf') format('truetype');font-display:swap;font-weight:100 900;size-adjust:82%}
@font-face{font-family:CoachText;src:url('/fonts/plex-ar-400.ttf') format('truetype');font-display:swap;font-weight:400}
@font-face{font-family:CoachText;src:url('/fonts/plex-ar-600.ttf') format('truetype');font-display:swap;font-weight:600}
@font-face{font-family:CoachText;src:url('/fonts/plex-ar-700.ttf') format('truetype');font-display:swap;font-weight:700}
body{font-family:CoachText,CoachArabic,Arial,sans-serif}
h1,h2,h3,h4{font-family:CoachHead,CoachText,CoachArabic,Arial,sans-serif;font-weight:700}
button,summary,.workspace-nav a{font-weight:600}
/* v15 spacing: trainee-login help line balanced above and below */
.login-help{margin:2px 0 0}

.tag.intake-tag{background:#eef2fb;color:#2d4a8a}
.tag.intake-new{background:#d9000b;color:#fff}
.dark .dark .tag.intake-tag{background:#1c2540;color:#a9bff0}
.dark .tag.intake-new{background:#d9000b;color:#fff}

/* trainee dashboard: each section is its own card with its own accent and line-art */
#client-view.panel{background:transparent;border:0;box-shadow:none;padding:0}
#client-view .client-intro{margin:0;border-radius:20px}
#client-view>#client-programs>.card,#client-view>#tracker-section,#client-view>#weekly-section,#client-view>section:not([id]),#client-view>#checkins-section,#client-view>#whatsapp-cta,#client-view>#offline-section{--acc:#de3146;--tint:#fff;background-color:var(--tint);background-repeat:no-repeat;background-position:left 14px top 34px;background-size:100px auto;border:1px solid #e3e6ee;border-top:5px solid var(--acc);border-radius:20px;padding:22px 18px 20px;margin:20px 0 0;box-shadow:0 12px 32px #1c233312}
#client-view>#client-programs>.card{--tint:#fff8f8;background-image:url(/art/profile-l.svg);margin-top:20px}
#client-view>#tracker-section{--acc:#3566d6;--tint:#f2f6fe;background-image:url(/art/tracker-l.svg)}
#client-view>#weekly-section{--acc:#7a4fd0;--tint:#f7f3fe;background-image:url(/art/weekly-l.svg)}
#client-view>section:not([id]),#client-view>#checkins-section{--acc:#c4861a;--tint:#fffaf0;background-image:url(/art/history-l.svg)}
#client-view>#whatsapp-cta{--acc:#1fa855;--tint:#f1fbf5;background-image:url(/art/contact-l.svg)}
#client-view>#whatsapp-cta{background-size:80px auto}
#client-view>#offline-section{--acc:#0f8f8f;--tint:#f0fafa;background-image:none}
html.dark #client-view>#offline-section{--acc:#3cc6c6;--tint:#0f1f20}
#client-view>#offline-section[hidden]{display:none}
#client-view .eyebrow{color:var(--acc,#de3146)}
#client-view>#client-refresh{margin:20px 0 0}
#client-view>details.panel{margin:20px 0 0;border-top:5px solid #6b7488;background:#f4f5f8}
#client-view>#client-logout{margin:20px 0 0}
html.dark #client-view>#client-programs>.card,html.dark #client-view>#tracker-section,html.dark #client-view>#weekly-section,html.dark #client-view>section:not([id]),html.dark #client-view>#checkins-section,html.dark #client-view>#whatsapp-cta,html.dark #client-view>#offline-section{border-color:#2a3042;border-top-color:var(--acc);box-shadow:0 12px 32px #0006}
html.dark #client-view>#client-programs>.card{--acc:#ff5468;--tint:#1d1517;background-image:url(/art/profile-d.svg)}
html.dark #client-view>#tracker-section{--acc:#6f97ff;--tint:#141b2b;background-image:url(/art/tracker-d.svg)}
html.dark #client-view>#weekly-section{--acc:#a98aff;--tint:#18142a;background-image:url(/art/weekly-d.svg)}
html.dark #client-view>section:not([id]),html.dark #client-view>#checkins-section{--acc:#e0a63b;--tint:#211b10;background-image:url(/art/history-d.svg)}
html.dark #client-view>#whatsapp-cta{--acc:#38cf75;--tint:#101f17;background-image:url(/art/contact-d.svg)}
html.dark #client-view>details.panel{background:#181b24;border-top-color:#8790a5}

/* coach dashboard: roster and check-in inbox as their own cards */
#workspace>#roster-section,#workspace>#coach-checkins{--acc:#de3146;--tint:#fff8f8;background-color:var(--tint);background-repeat:no-repeat;background-position:left 14px top 34px;background-size:100px auto;border:1px solid #e3e6ee;border-top:5px solid var(--acc);border-radius:20px;padding:22px 16px 20px;margin:28px 0 0;box-shadow:0 12px 32px #1c233312;background-image:url(/art/roster-l.svg)}
#workspace>#coach-checkins{--acc:#3566d6;--tint:#f2f6fe;background-image:none}
#workspace>#roster-section .toolbar{background:#fff}
#workspace>details.coach-security{border-top:5px solid #6b7488;background:#f4f5f8}
html.dark #workspace>#roster-section,html.dark #workspace>#coach-checkins{border-color:#2a3042;border-top-color:var(--acc);box-shadow:0 12px 32px #0006}
html.dark #workspace>#roster-section{--acc:#ff5468;--tint:#1d1517;background-image:url(/art/roster-d.svg)}
html.dark #workspace>#coach-checkins{--acc:#6f97ff;--tint:#141b2b;background-image:none}
html.dark #workspace>#roster-section .toolbar{background:#222632}
html.dark #workspace>details.coach-security{background:#181b24;border-top-color:#8790a5}
#workspace>#roster-section{background-size:62px auto}

#client-list.clients{scrollbar-width:none;padding-bottom:6px}
#client-list.clients::-webkit-scrollbar{display:none}
#roster-bar{position:relative;height:22px;margin:4px 56px 0;border-radius:99px;background:#1c23330a;touch-action:none}
#roster-thumb{position:absolute;top:0;height:22px;min-width:56px;border:1.5px solid var(--red);border-radius:99px;background:url('/brand-mark.png') center/auto 15px no-repeat,linear-gradient(180deg,#ffffff,#ffecef);box-shadow:0 3px 12px #d9000b3d,inset 0 1px 0 #fff;touch-action:none;cursor:grab;box-sizing:border-box}
#roster-thumb.drag{cursor:grabbing;border-color:#b8000a}
html.dark #roster-bar{background:#ffffff12}
html.dark #roster-thumb{background:url('/brand-mark.png') center/auto 15px no-repeat,#3a3d47;border-color:#ff5468;box-shadow:0 3px 12px #0006}

.intake-warn:not(:empty){display:flex;align-items:center;gap:8px;color:#b3000a;font-weight:600}
.intake-warn:not(:empty)::before{content:"";flex:none;width:18px;height:18px;background:url(/art/warn-l.svg) center/contain no-repeat}
html.dark .intake-warn:not(:empty){color:#ff7a88}
html.dark .intake-warn:not(:empty)::before{background-image:url(/art/warn-d.svg)}

.wa-renew{margin:4px 0 14px}
.wa-btn{display:block;text-align:center;padding:13px 16px;border-radius:14px;background:#1f9d55;color:#fff;font-weight:700;text-decoration:none}
.wa-btn:focus-visible{outline:3px solid #0b5d31;outline-offset:2px}
html.dark .wa-btn{background:#2bb673;color:#04170c}
.wa-renew .wa-btn+.hint{margin:6px 4px 10px}
.wa-btn+.wa-btn{margin-top:10px}
.wa-plain{background:transparent;color:#1f7a47;border:1.5px solid #1f9d55}
html.dark .wa-plain{background:transparent;color:#8ef0b8;border-color:#4fd18a}
.wa-off{opacity:.45;pointer-events:none}
.wa-confirm{display:flex;gap:10px;align-items:flex-start;margin:6px 4px 12px;font-size:13px}
.wa-confirm input{width:20px;height:20px;flex:none;margin-top:2px}
.wa-btn{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:46px;min-height:46px;padding:0 16px;line-height:1.2}
#notif-dropdown-all{min-height:46px;height:46px}
dialog .dialog-head>button{height:46px;min-height:46px;align-self:center}
dialog .dialog-head>button:not(#viewer-close):not(#close-logout-confirm):not(#close-tracker){width:46px;min-width:46px;padding:0}
.wa-num{display:block;direction:ltr;unicode-bidi:isolate;text-align:start;white-space:nowrap;overflow-x:auto;font-weight:700;letter-spacing:.2px}
.wa-confirm-text{display:flex;flex-direction:column;gap:2px}
.wa-confirm-lbl{font-size:12px;opacity:.85;margin-top:2px}
.wa-renew .hint .wa-num{margin-top:2px;font-size:13px}
.expired-banner{margin:0 0 14px;padding:12px 14px;border-radius:12px;border:1px solid #f1b0b5;background:#fff1f2;color:#8a1c25;font-weight:700;line-height:1.6}
html.dark .expired-banner{background:#3a1a1e;border-color:#7a2f38;color:#ffb3ba}
.icon-btn,.header-side .icon-btn{width:46px;height:46px;min-height:46px;border-radius:12px}
@media(max-width:640px){.header-side .icon-btn{width:46px;height:46px;min-height:46px;border-radius:12px}}
.password-toggle{width:46px;height:46px;right:0}
#viewer-zoom-reset{min-height:46px;height:46px}
#logout-confirm .dialog-head button{min-width:46px;width:46px;height:46px;min-height:46px;font-size:18px;border-radius:12px}
#logout-confirm .actions button{min-height:46px;height:46px;padding:0 16px}
body.trainee-archived #checkin-form{display:none!important}
.inbox-collapse{min-height:46px}
.password-field.inside .password-toggle{width:46px;height:46px;right:0}
details>summary{min-height:46px;display:flex;align-items:center}

.expired-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:0 0 18px;padding:16px;border-radius:16px;border:1px solid #f1d3d6;background:#fff8f8}
.expired-card.is-archived{border-color:var(--line,#e3e6ee);background:#f6f7fa}
.expired-card .expired-banner{margin:0;padding:0;border:0;background:none;border-radius:0;font-weight:600;font-size:14.5px;line-height:1.7;color:#7a1f28}
.expired-card.is-archived .expired-banner{color:#3a4152}
.expired-card .wa-btn{display:inline-flex;width:auto;max-width:100%;padding:0 22px;font-size:14.5px}
html.dark .expired-card{border-color:#5a2a31;background:#2a1a1d}
html.dark .expired-card.is-archived{border-color:#3a4052;background:#1f2330}
html.dark .expired-card .expired-banner{background:none;border:0;color:#ffc2c8}
html.dark .expired-card.is-archived .expired-banner{color:#d5d9e6}

.expired-card .expired-head{display:block;font-size:14px;font-weight:700;white-space:nowrap}
.expired-card .expired-sub{display:block;font-size:13px;font-weight:500;line-height:1.6;opacity:.9;margin-top:2px}

.expired-card{margin:16px 0}
.client-intro+.expired-card+.workspace-nav{margin-top:0}

.expired-card .wa-btn{align-self:center}
.expired-card:not(.is-archived) .expired-banner{width:100%;text-align:center;white-space:nowrap;font-size:13px;font-weight:600}

.expired-card .wa-btn{font-size:13px;padding:0 20px}

.expired-card:not(.is-archived) .expired-banner{font-size:14px}
.expired-card .wa-btn{font-size:12.5px;padding:0 16px}
.expired-card:not(.is-archived) .expired-banner{color:#e10613;font-weight:700}
html.dark .expired-card:not(.is-archived) .expired-banner{color:#ff4b57}
@media(max-width:340px){.expired-card:not(.is-archived) .expired-banner{font-size:12.5px}}

#history-section{margin-top:18px}
#history-summary{font-weight:700;margin:6px 0 12px}
.history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom:10px;border:1px solid var(--line,#e3e6ee);border-radius:14px;background:#fff}
.history-main{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:14px}
.history-row .history-void{height:46px;padding:0 14px;font-size:13px;white-space:nowrap}
.history-row.is-voided{opacity:.55}
.history-row.is-voided strong{text-decoration:line-through}
.history-tag{font-size:12px;font-weight:600;color:#9a1b27}
#payment-add .check-row{display:flex;align-items:center;gap:8px}
#payment-add .check-row input{width:auto}
#add-payment{height:46px}
html.dark .history-row{background:#1f2330;border-color:#3a4052}
html.dark .history-tag{color:#ff8e97}
.history-main bdi{display:block;text-align:right}
.history-main span bdi{display:inline}
.history-row.is-voided strong .history-tag{display:inline-block;text-decoration:none}
.history-row{flex-direction:column;align-items:stretch;gap:10px}
.history-row .history-void{align-self:flex-start}
#history-section{padding-bottom:64px}

/* shared password disclosures: coach setup + trainee change (same design) */
#client-view>details.panel,#workspace>details.coach-security{margin:20px 0 0;padding:20px;border:1px solid #e1e3eb;border-top:5px solid #6b7488;border-radius:18px;background:#f4f5f8}
html.dark #client-view>details.panel,html.dark #workspace>details.coach-security{border-color:#2a3042;border-top-color:#8790a5;background:#181b24}
:is(#client-view>details.panel,#workspace>details.coach-security)>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:46px;margin:-8px -8px;padding:0 8px;border-radius:12px;font-weight:700;transition:background-color .15s;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
:is(#client-view>details.panel,#workspace>details.coach-security)>summary::-webkit-details-marker{display:none}
:is(#client-view>details.panel,#workspace>details.coach-security)>summary::after{content:"";flex:none;width:9px;height:9px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(45deg);margin-top:-4px;transition:transform .2s}
:is(#client-view>details.panel,#workspace>details.coach-security)[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
:is(#client-view>details.panel,#workspace>details.coach-security)>summary:hover{background:rgba(107,116,136,.14)}
:is(#client-view>details.panel,#workspace>details.coach-security)>summary:focus-visible{outline:2px solid #d9000b;outline-offset:2px}
html.dark :is(#client-view>details.panel,#workspace>details.coach-security)>summary:hover{background:rgba(255,255,255,.08)}
:is(#client-view>details.panel,#workspace>details.coach-security)[open]>summary{margin-bottom:8px}
:is(#client-view>details.panel,#workspace>details.coach-security) :is(p,label,button){-webkit-user-select:none;user-select:none}
:is(#client-view>details.panel,#workspace>details.coach-security) input{-webkit-user-select:text;user-select:text}

/* check-in cards in a horizontal strip like the client strip */
#checkin-inbox{display:flex;gap:10px;overflow-x:auto;padding:6px 2px 6px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 30px calc(100% - 30px),transparent);mask-image:linear-gradient(90deg,transparent,#000 30px calc(100% - 30px),transparent)}
#checkin-inbox::-webkit-scrollbar{display:none}
#checkin-inbox>.hint{margin:0}
.checkin-chip .chip-name{max-width:100%}
.roster-bar:not(#roster-bar){position:relative;height:22px;margin:4px 56px 0;border-radius:99px;background:#1c23330a;touch-action:none}
.roster-thumb:not(#roster-thumb){position:absolute;top:0;height:22px;min-width:56px;border:1.5px solid var(--red);border-radius:99px;background:url('/brand-mark.png') center/auto 15px no-repeat,linear-gradient(180deg,#ffffff,#ffecef);box-shadow:0 3px 12px #d9000b3d,inset 0 1px 0 #fff;touch-action:none;cursor:grab;box-sizing:border-box}
.roster-thumb.drag{cursor:grabbing;border-color:#b8000a}
html.dark .roster-bar:not(#roster-bar){background:#ffffff12}
html.dark .roster-thumb:not(#roster-thumb){background:url('/brand-mark.png') center/auto 15px no-repeat,#3a3d47;border-color:#ff5468;box-shadow:0 3px 12px #0006}
#review-editor{max-width:min(760px,96vw)}
.audit-box{margin-top:22px;border:1px solid var(--line);border-radius:14px;background:var(--card,#fff);overflow:hidden}
.audit-box>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:14px 16px;list-style:none;font-weight:700;min-height:46px;user-select:none}
.audit-box>summary::-webkit-details-marker{display:none}
.audit-box>summary::after{content:'';margin-inline-start:auto;width:9px;height:9px;border-inline-end:2.5px solid var(--muted);border-bottom:2.5px solid var(--muted);transform:rotate(45deg);transition:transform .15s;margin-top:-4px}
.audit-box[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
.audit-box>#audit{padding:0 16px 14px}
html.dark .audit-box{background:var(--surface)}

#offline-banner{position:static;display:flex;gap:10px;align-items:center;justify-content:space-between;background:#fff3d6;color:#4a3300;border:1px solid #e0b64d;border-radius:12px;padding:10px 14px;margin-bottom:12px}
#offline-banner[hidden]{display:none}
html.dark #offline-banner{background:#3a2d0e;color:#ffe9b0;border-color:#8a6a1c}
body.offline #checkin-form,body.offline #check-confirm,body.offline #client-refresh,body.offline details:has(#client-set-password-form){display:none!important}
#offline-section{margin-top:16px}

.boot-status-panel.boot-offline{max-width:420px;margin:48px auto;padding:30px 24px 26px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 36px rgba(24,26,32,.08);gap:12px}
.boot-status-panel.boot-offline .boot-dots{display:none}
.boot-status-panel.boot-offline .boot-logo{width:76px;height:auto;max-height:76px;object-fit:contain}
.boot-status-panel.boot-offline #boot-status{display:grid;gap:8px;color:var(--muted);font-weight:500}
.boot-status-panel.boot-offline #boot-status strong{color:var(--ink);font-size:22px;line-height:1.35}
.boot-status-panel.boot-offline #boot-retry{width:100%;min-height:50px;line-height:50px;margin-top:8px;padding:0;border-radius:12px;background:#b83a46;color:#fff;text-decoration:none;font-size:16px;font-weight:700}
#offline-banner{max-width:760px;margin-inline:auto}

#viewer-close.viewer-x,dialog .dialog-head>#viewer-close.viewer-x{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--surface);color:var(--ink);border:1px solid var(--line);box-shadow:0 2px 8px #0000001f;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background .15s,color .15s,transform .1s}#viewer-close.viewer-x:hover{background:var(--red);color:#fff;border-color:var(--red)}#viewer-close.viewer-x:active{transform:scale(.92)}html.dark #viewer-close.viewer-x{background:#2a2327;color:#fff;border-color:#ffffff2e}

.tracker-pending{color:#b45309;background:#fef3c7;border:1px solid #f59e0b55;border-radius:12px;padding:10px 12px}html.dark .tracker-pending{background:#3a2a10;color:#fcd34d}

.collapse-h{margin:0}.collapse-btn{all:unset;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font:inherit;font-size:inherit;font-weight:inherit;color:inherit;padding:6px 0;min-height:44px;-webkit-tap-highlight-color:transparent}.collapse-btn:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:8px}.collapse-btn .chev{flex:none;width:34px;height:34px;padding:6px;border-radius:50%;border:1px solid var(--line);background:var(--surface);transition:transform .2s}.collapse-btn.collapsed .chev{transform:rotate(-90deg)}html.dark .collapse-btn .chev{background:#2a2327;border-color:#ffffff2e}#tracker-body[hidden]{display:none}

.tracker-day{padding:12px 14px}.tracker-day h3{margin:0 0 8px;font-size:15px}
.tracker-done-list{display:grid;gap:6px;margin-bottom:10px}.tracker-done-title{margin:0;font-size:12px}
.tracker-done{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:0 6px 0 10px;min-height:44px}
.tracker-done-open{all:unset;box-sizing:border-box;flex:1;min-width:0;display:flex;align-items:center;gap:8px;cursor:pointer;min-height:44px;font:inherit;color:inherit;-webkit-tap-highlight-color:transparent}
.tracker-done-open strong{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tracker-done-sets{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:13px}
.tracker-done-edit{flex:none;font-size:12px;color:var(--red);border:1px solid var(--line);border-radius:999px;padding:2px 10px}
.tracker-done .tracker-status{flex:none;font-size:12px;max-width:34%}
.tracker-done-open:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:10px}
html.dark .tracker-done{background:#2a2327;border-color:#ffffff1f}
.field-error{color:#b3202f;font-size:.86rem;line-height:1.6;margin:6px 2px 4px;font-weight:700}html.dark .field-error{color:#ff9aa5}[aria-invalid=true]:not([type=checkbox]){border-color:var(--red)!important}input[type=checkbox][aria-invalid=true]{outline:2px solid var(--red);outline-offset:2px}

.tracker-done-list{min-width:0;max-width:100%}.tracker-done{min-width:0;max-width:100%;overflow:hidden}.tracker-done-open strong{flex:1 1 auto;min-width:0;max-width:none}.tracker-done .tracker-status{max-width:none;white-space:nowrap}
.tracker-entry .row-actions .tracker-del,.tracker-entry .row-actions .tracker-fin{flex:none;min-height:46px;min-width:84px;padding:0 20px}.tracker-entry .row-actions .tracker-status{flex:1 1 auto;min-width:0}

.tracker-done-tick{flex:none;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1f9d6b;color:#fff;font-size:16px;font-weight:700;line-height:1}.tracker-done .tracker-status[hidden]{display:none}.tracker-done .tracker-status:not([hidden]){flex:none}
.tracker-pending{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tracker-pending span{flex:1 1 180px}.tracker-pending button{flex:none;min-height:38px;padding:0 14px;font-size:13px}

.tracker-orphan{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#8a3b00;background:#fff1e6;border:1px solid #e0813a66;border-radius:12px;padding:10px 14px;margin-bottom:10px}.tracker-orphan span{flex:1 1 200px;overflow-wrap:anywhere}.tracker-orphan button{flex:none;min-height:38px;padding:0 14px;font-size:13px}html.dark .tracker-orphan{background:#3a2412;color:#ffd2ad}

.tracker-entry{position:relative}
.tracker-entry .row-actions{display:block}
.tracker-entry .row-actions .tracker-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}
.tracker-entry .row-actions .tracker-btns button{width:100%;min-width:0;min-height:48px;padding:0 10px;margin:0}
.tracker-entry .row-actions .tracker-status{display:block;margin:0 0 8px}.tracker-entry .row-actions .tracker-status[hidden]{display:none}
.tracker-entry .row-actions .danger{width:100%;margin-top:10px}
.save-pop{position:absolute;inset-inline-start:50%;bottom:76px;width:0;height:0;pointer-events:none;z-index:20}
.save-pop-txt{position:absolute;left:0;top:0;transform:translate(-50%,0);white-space:nowrap;font-size:12px;font-weight:700;color:#fff;background:#1f9d6b;padding:3px 10px;border-radius:999px;box-shadow:0 2px 10px #0004;animation:savePop 1.2s ease-out forwards}
.save-spark{position:absolute;left:0;top:0;width:6px;height:6px;border-radius:50%;opacity:0;animation:saveSpark .9s ease-out forwards}
@keyframes savePop{0%{opacity:0;transform:translate(-50%,10px) scale(.6)}18%{opacity:1;transform:translate(-50%,-6px) scale(1.08)}35%{transform:translate(-50%,-4px) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-14px) scale(.98)}}
@keyframes saveSpark{0%{opacity:1;transform:translate(0,0) scale(1)}70%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.3)}}
@media (prefers-reduced-motion:reduce){.save-spark{display:none}.save-pop-txt{animation:savePopRM 1.2s forwards}@keyframes savePopRM{0%,80%{opacity:1}100%{opacity:0}}}

.tracker-done{background:#e8f6ee;border-color:#8fcfae}html.dark .tracker-done{background:#16301f;border-color:#2f7a52}
.tracker-pending-note{flex-basis:100%;font-size:13px}

.tracker-done{background:#e8f6ee;border-color:#8fcfae}
html.dark .tracker-done{background:#16301f;border-color:#2f7a52}
.tracker-pending-note{display:block;margin-top:6px}

.save-pop.fixed{position:fixed;inset-inline-start:auto;left:50%;bottom:120px;z-index:9999}

/* v35.16: neutralize global button:hover/active red on all:unset buttons (sticky hover on touch) */
button.collapse-btn,button.collapse-btn:hover,button.collapse-btn:active,button.collapse-btn:focus,button.tracker-done-open,button.tracker-done-open:hover,button.tracker-done-open:active,button.tracker-done-open:focus{background:transparent!important;filter:none!important;transform:none!important;box-shadow:none!important;color:inherit!important}
button.collapse-btn{justify-content:flex-start;gap:8px}
.collapse-btn .chev,html.dark .collapse-btn .chev{width:22px;height:22px;padding:3px;border:0;background:transparent;border-radius:0;color:var(--muted)}
.collapse-btn.collapsed .chev{transform:rotate(90deg)}
.tracker-example{margin:0 0 12px}
.tracker-ex-sum{list-style:none;cursor:pointer;display:flex;align-items:center;gap:6px;min-height:40px;font-weight:700;font-size:14px;color:var(--muted);-webkit-tap-highlight-color:transparent}
.tracker-ex-sum::-webkit-details-marker{display:none}
.tracker-ex-sum::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-3px;transition:transform .2s}
.tracker-example[open]>.tracker-ex-sum::after{transform:rotate(-135deg);margin-top:3px}
.tracker-example[open]{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:0 14px 6px}
.tracker-example:not([open]){border:0;background:none;padding:0;margin:0}
/* v35.18: swap arrow sizes, smaller clearer example heading */
.collapse-btn .chev,html.dark .collapse-btn .chev{width:30px;height:30px;padding:2px;color:var(--ink,var(--text,inherit))}
.tracker-ex-sum{font-size:12px;min-height:34px;color:#2f6fed}
html.dark .tracker-ex-sum{color:#8fb4ff}
.tracker-ex-sum::after{width:6px;height:6px;border-width:1.6px;margin-top:-2px}
.tracker-example[open]>.tracker-ex-sum::after{margin-top:2px}
.tracker-example:not([open]){margin:-6px 0 16px}.tracker-example[open]{margin:0 0 16px}
/* v35.21 collapsible sections */
section.sec-collapsed>:not(.eyebrow):not(.collapse-h){display:none!important}
section.sec-collapsed{padding-bottom:14px}
section[id] .collapse-h .collapse-btn{font:inherit}
/* v35.22 */
article.card.sec-collapsed>:not(h2):not(.eyebrow){display:none!important}
.collapse-btn>span{flex:0 1 auto;min-width:0;max-width:calc(100% - 40px);overflow-wrap:anywhere}
.collapse-btn .chev{flex:none}
#whatsapp-cta h2{white-space:normal!important}

/* v35.23: one heading rhythm for every section card: eyebrow, then a fixed 46px heading row, no extra margins */
#client-view>section>h2,#client-view>#client-programs>article.card>h2{margin:0!important;min-height:46px;display:flex;align-items:center}
#client-view>#whatsapp-cta>h2,#client-view>#offline-section>h2{margin-bottom:10px!important}
#client-view>section>.eyebrow,#client-view>#client-programs>article.card>.eyebrow{margin:0 0 16px!important;line-height:19px}
.collapse-btn,button.collapse-btn{margin:0!important}
/* v35.23: loading screen only: no theme toggle, logo and dots centred in the viewport, name pinned to the bottom */
body.booting #menu-btn{display:none!important}
body.booting .boot-status-panel:not(.boot-offline){position:fixed;inset:0;z-index:1;align-content:center;padding:0;margin:0;pointer-events:none}
body.booting footer{position:fixed;left:0;right:0;bottom:0;margin:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));z-index:2}
/* v35.24: one text size for Contact, Offline and Change password (Contact is the reference: 15px title, 13px body) */
#client-view>#offline-section :is(p,li,span,small,div):not(.eyebrow),#client-view>details :is(p,label,li,span,small):not(.eyebrow){font-size:13px;line-height:24px}
#client-view>details>summary{font-size:15px;line-height:24px}
@media(max-width:480px){#client-view>#offline-section h2{font-size:15px;line-height:24px}}
@media(max-width:360px){#client-view>#offline-section h2,#client-view>details>summary{font-size:13.5px}}
div.program-file+div.program-file{margin-top:14px}

.header-side .icon-btn{width:40px;height:40px;min-height:40px;border-radius:11px}.header-side .icon-btn svg{width:18px;height:18px}.header-side{gap:8px}.brand-side.brand b{font-size:clamp(13px,3.7vw,16px)}
@media(max-width:640px){body:not(.guest) .header-side{gap:6px}body:not(.guest) .header-side .icon-btn{width:34px;height:34px;min-height:34px;border-radius:10px}body:not(.guest) .header-side .icon-btn svg{width:17px;height:17px}}
@media(hover:none){.icon-btn:hover{background:#fff}html.dark .icon-btn:hover{background:#22242d}.icon-btn:focus{outline:none}}
@media(max-width:340px){body:not(.guest) .header-side .icon-btn{width:30px;height:30px;min-height:30px}body:not(.guest) .header-side{gap:4px}.brand-tag{letter-spacing:1.5px}}
html.dark .coach-hero .actions button:hover,html.dark .coach-hero .actions button:focus-visible{background:#ffffff26;color:#fff;border-color:#ffffff66}
html.dark .coach-hero .actions button{background:#ffffff0d;color:#fff;border-color:#ffffff35}
@media(max-width:640px){body:not(.guest) .brand-side.brand b{font-size:13px}}
:is(.login-help,.install-help)>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;list-style:none;cursor:pointer}
:is(.login-help,.install-help)>summary::-webkit-details-marker{display:none}
:is(.login-help,.install-help)>summary::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-3px;transition:transform .15s}
:is(.login-help,.install-help)[open]>summary::after{transform:rotate(-135deg);margin-top:3px}
:is(.login-help,.install-help)>summary{font-size:13px;font-weight:600;line-height:1.4;color:var(--muted)}
body.guest header{position:sticky;top:0;z-index:50;max-width:none;width:100%;box-sizing:border-box;margin:0;background:var(--bg)}
.toolbar label:nth-child(2){flex:1;min-width:180px}
@media(min-width:641px){.toolbar #add-client{order:3}}
body:not(.guest) header{max-width:none;width:100%;box-sizing:border-box;margin:0}
@media(min-width:761px){body:not(.guest) header{padding-inline:max(30px,calc((100% - 1200px)/2 + 30px))}}
/*NAV-BEGIN*/
.workspace-nav[aria-label="حساب المتدرب"] a{--c:#de3146;--t:#de31461f;background:var(--surface,transparent);border:1px solid var(--line,#8884);border-radius:12px;position:relative;color:var(--ink);font-weight:600;min-height:44px}
.workspace-nav[aria-label="حساب المتدرب"]{padding:0;gap:8px;background:transparent;border:0;box-shadow:none}
.workspace-nav[aria-label="حساب المتدرب"] a:nth-child(2){--c:#3566d6;--t:#3566d61f}
.workspace-nav[aria-label="حساب المتدرب"] a:nth-child(3){--c:#7a4fd0;--t:#7a4fd01f}
.workspace-nav[aria-label="حساب المتدرب"] a:nth-child(4){--c:#c4861a;--t:#c4861a1f}
html.dark .workspace-nav[aria-label="حساب المتدرب"] a{--c:#ff5468;--t:#ff546826}
html.dark .workspace-nav[aria-label="حساب المتدرب"] a:nth-child(2){--c:#6f97ff;--t:#6f97ff26}
html.dark .workspace-nav[aria-label="حساب المتدرب"] a:nth-child(3){--c:#a98aff;--t:#a98aff26}
html.dark .workspace-nav[aria-label="حساب المتدرب"] a:nth-child(4){--c:#e0a63b;--t:#e0a63b26}
.workspace-nav[aria-label="حساب المتدرب"] a:hover,.workspace-nav[aria-label="حساب المتدرب"] a:focus-visible{background:var(--t)}
.workspace-nav[aria-label="حساب المتدرب"] a[aria-current="true"]{background:var(--t);border-color:var(--c);font-weight:800}
/*NAV-END*/

/*NOTIF-BTN*/#notification-panel button{min-height:46px;height:46px;min-width:140px;padding:0 20px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;font-weight:600}#notification-panel .titlebar>button{min-width:96px}#notification-panel #notification-refresh{margin:4px 0 8px}#notification-panel #push-row .check-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;margin:16px 0}#notification-panel #push-row .check-card p{margin:0}#notification-list .notif-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}#notification-list .notif-actions button{flex:1 1 140px}#notification-list .notif-actions .tag{align-self:center}
@media(max-width:600px){#notification-panel #notification-refresh,#notification-panel #push-row .check-card button{width:100%;flex:1 1 100%}}

/*FORM-ACTIONS*/.form-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px;align-items:stretch}.form-actions button{flex:1 1 140px;min-height:46px;height:46px;margin:0;padding:0 18px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.form-actions button[hidden]{display:none}@media(max-width:700px){.form-actions #save-client{flex:1 1 100%}}@media(min-width:701px){.form-actions #save-client{flex:0 1 200px}}
@media(min-width:701px){.form-actions button{flex:1 1 120px;padding:0 12px}.form-actions #save-client{flex:0 1 160px}}

/*THREAD*/#review-facts .thread-item{display:flex;flex-direction:column;gap:8px;margin:0 0 18px;padding:10px;border:1px solid transparent;border-radius:16px}#review-facts .thread-item.active{border-color:var(--red);background:rgba(222,49,70,.06)}.thread-msg,.thread-reply{max-width:92%;padding:12px 14px;border-radius:16px;border:1px solid var(--line);background:var(--surface)}.thread-msg{align-self:flex-start;border-top-right-radius:4px}.thread-reply{align-self:flex-end;border-top-left-radius:4px;background:rgba(222,49,70,.10);border-color:rgba(222,49,70,.35)}.thread-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.thread-msg pre,.thread-reply pre{margin:6px 0 0;white-space:pre-wrap;font:inherit}.thread-weight{margin:6px 0 0;font-weight:700}#review-facts .thread-item>button{align-self:flex-start;min-height:40px;padding:0 16px;border-radius:12px}#review-target{margin:4px 0 10px;font-weight:600}

.checkin-chip{min-width:200px;max-width:230px}.checkin-chip .chip-expiry{white-space:normal;max-width:100%;overflow-wrap:anywhere;text-align:center}

/*CHAT*/#review-editor.chat[open]{display:flex;flex-direction:column;height:min(94dvh,900px);max-height:94dvh;padding:0;overflow:hidden}
#review-editor.chat .dialog-head{padding:12px 14px;margin:0;flex:none;border-bottom:1px solid var(--line)}
#review-editor.chat #review-status{flex:none;margin:0;padding:0 14px}#review-editor.chat #review-status:empty{display:none}
#review-editor.chat #review-facts{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 12px;background:rgba(127,127,127,.06)}
#review-editor.chat #review-top{display:none}
#review-editor.chat .thread-item{margin:0 0 14px;padding:0;border:0;background:none}
#review-editor.chat .thread-item.active .thread-msg{border-color:var(--red);box-shadow:0 0 0 2px rgba(222,49,70,.25)}
#review-editor.chat .thread-pick{align-self:flex-start;margin-top:8px;min-height:36px;padding:0 12px;border-radius:12px;border:1px solid var(--line);background:transparent;color:inherit;font:inherit;font-size:.85em}
#review-editor.chat #review-target{flex:none;margin:0;padding:8px 14px;border-top:1px solid var(--line);border-inline-start:4px solid var(--red);display:flex;flex-direction:column;gap:2px;font-weight:400;background:var(--surface);font-size:.85em}
#review-editor.chat #review-target b{color:var(--red)}#review-editor.chat #review-target span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#review-editor.chat #review-form{flex:none;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end;padding:10px 12px calc(10px + env(safe-area-inset-bottom));margin:0;border-top:1px solid var(--line);background:var(--surface)}
#review-editor.chat #review-form>label:first-child{grid-column:1;font-size:0;margin:0}
#review-editor.chat #coach-reply{font-size:16px;rows:1;min-height:46px;max-height:120px;height:46px;resize:none;border-radius:22px;padding:11px 16px}
#review-editor.chat #review-form .send-btn{grid-column:2;grid-row:1;width:auto;min-width:76px;height:46px;border-radius:23px;padding:0 16px;font-size:0}
#review-editor.chat #review-form .send-btn::after{content:'إرسال';font-size:16px}
#review-editor.chat #review-form label.checkbox{grid-column:1/-1;grid-row:2;margin:0;font-size:.85em}
#review-editor.chat .composer-hint{display:none}
#review-editor.chat #coach-reply{scrollbar-width:none;overflow-y:auto}#review-editor.chat #review-facts .thread-item,#review-editor.chat{scrollbar-gutter:auto}

/*MSG*/#review-target:empty{display:none!important}#review-editor.chat #review-target{position:relative;padding-inline-end:44px}#review-target .target-x{position:absolute;inset-inline-end:8px;top:6px;min-height:32px;min-width:32px;width:32px;padding:0;border-radius:16px;border:1px solid var(--line);background:transparent;color:inherit;font-size:18px;line-height:1}.msg-actions{display:flex;gap:8px;margin-top:6px}.msg-actions .thread-pick{margin-top:0!important}.tomb{font-style:italic;opacity:.75}.thread-reply.deleted{background:transparent;border-style:dashed}.msg-quote{font-size:.8em}.danger-link{color:#b3202f}html.dark .danger-link{color:#ff9aa5}.coach-note .reply{margin:0}
.new-chat-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:6px 0 16px}.new-chat-row label{flex:1 1 180px;margin:0}.new-chat-row select{width:100%}.new-chat-row button{min-height:46px}.empty-chat{text-align:center;padding:24px 8px}
.from-client{background:var(--surface)!important;border-color:var(--line)!important;align-self:flex-start!important;border-top-left-radius:16px!important;border-top-right-radius:4px!important}.quote-box{border-inline-start:3px solid var(--red);padding:2px 8px;margin:4px 0;font-size:.82em;opacity:.85;background:rgba(127,127,127,.12);border-radius:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#review-editor.chat .msg-item.active{box-shadow:0 0 0 2px rgba(222,49,70,.25)}.chat-open{width:100%;margin:10px 0}#review-target .target-row{display:flex;flex-direction:column;gap:2px;margin-bottom:4px}

/* mixed-script client names */
.chip-name,.card h2,.check-card h3,.client-intro h1,#review-title,.thread-head .hint{unicode-bidi:isolate}

.auto-tag{font-size:10px;padding:2px 8px;margin-inline-start:6px}

.client-intro .client-welcome{margin:14px 0 2px;font-size:19px;font-weight:700;line-height:1.7;color:#fff;overflow-wrap:anywhere}.client-intro .client-welcome bdi{unicode-bidi:isolate}
#client-programs>article.card>h2 .collapse-btn,#client-programs>article.card>h2 button{width:100%}

#weekly-section .fu-status{margin:6px 0 14px;padding:12px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--line);font-weight:600;line-height:1.8}#weekly-section .chat-open{display:block;width:100%;min-height:52px;margin:0 0 18px;font-size:14px;font-weight:700}

#client-view>#client-programs>.card,#client-view>#tracker-section,#client-view>#weekly-section,#client-view>section:not([id]),#client-view>#checkins-section,#client-view>#whatsapp-cta,#client-view>#offline-section{background-size:54px auto!important;background-position:left 16px top 22px!important}
#client-view>#client-programs>.card>.eyebrow,#client-view>#client-programs>.card>h2,#client-view>#tracker-section>.eyebrow,#client-view>#tracker-section>h2,#client-view>#weekly-section>.eyebrow,#client-view>#weekly-section>h2,#client-view>#whatsapp-cta>.eyebrow,#client-view>#whatsapp-cta>h2,#client-view>#offline-section>.eyebrow,#client-view>#offline-section>h2{padding-left:72px}
#client-view>#client-programs>.card>h2{margin-top:4px}

/*NAV-PILL*/
html .workspace-nav{display:flex!important;flex-direction:row;gap:0!important;max-width:620px;width:100%;margin:14px auto 22px!important;padding:5px!important;border:1px solid transparent!important;border-radius:999px!important;background:linear-gradient(180deg,#1d1e23,#0b0b0d) padding-box,linear-gradient(120deg,#d7dae2,#e0283a 45%,#8f939d 70%,#e0283a) border-box!important;box-shadow:0 8px 26px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.07)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
html .workspace-nav a{flex:1 1 0!important;min-width:0;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:60px!important;padding:8px 2px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#e9eaee!important;font-size:12.5px!important;font-weight:600!important;line-height:1.2;white-space:nowrap;position:relative;text-decoration:none;box-shadow:none!important;transition:background .2s,box-shadow .2s}
html .workspace-nav a .nv-i{width:24px;height:24px;flex:none}
html .workspace-nav a .nv-t{max-width:100%;overflow:hidden;text-overflow:ellipsis}
html .workspace-nav a:not(:first-child)::before{content:"";position:absolute;inset-inline-start:0;top:24%;bottom:24%;width:1px;background:linear-gradient(transparent,rgba(190,194,204,.55),transparent)}
html .workspace-nav a[aria-current="true"]::before,html .workspace-nav a[aria-current="true"]+a::before{display:none}
html .workspace-nav a:hover,html .workspace-nav a:focus-visible{background:rgba(255,255,255,.07)!important;color:#fff!important}
html .workspace-nav a:focus-visible{outline:2px solid #ff5468;outline-offset:-2px}
html .workspace-nav a[aria-current="true"]{background:linear-gradient(180deg,#ff3347,#c3001b)!important;color:#fff!important;font-weight:800!important;box-shadow:0 0 18px rgba(255,45,65,.45),inset 0 1px 0 rgba(255,255,255,.35)!important}
@media(max-width:380px){html .workspace-nav a{font-size:11.5px!important;min-height:56px!important}html .workspace-nav a .nv-i{width:22px;height:22px}}

html .workspace-nav{padding:3px!important}
html .workspace-nav a{min-height:50px!important;padding:5px 2px!important;gap:3px!important}
html .workspace-nav a .nv-i{width:21px;height:21px}
@media(max-width:380px){html .workspace-nav a{min-height:48px!important}html .workspace-nav a .nv-i{width:20px;height:20px}}

/*NAV-COMPACT-2*/
html .workspace-nav{padding:3px!important;max-width:540px}
html .workspace-nav a{min-height:44px!important;padding:4px 2px!important;gap:2px!important;font-size:11px!important}
html .workspace-nav a .nv-i{width:18px;height:18px}
html .workspace-nav a:not(:first-child)::before{top:26%;bottom:26%}
@media(max-width:380px){html .workspace-nav a{min-height:42px!important;font-size:10.5px!important}html .workspace-nav a .nv-i{width:17px;height:17px}}

/*BUBBLES-COMPACT*/
#review-editor.chat #review-facts{display:flex;flex-direction:column;gap:6px;padding:10px 10px}
#review-editor.chat .thread-item{margin:0;gap:4px}
#review-editor.chat .thread-msg,#review-editor.chat .thread-reply{width:fit-content;min-width:64px;max-width:82%;padding:6px 10px 4px;border-radius:14px;line-height:1.5}
#review-editor.chat .thread-reply{background:rgba(222,49,70,.07);border-color:rgba(222,49,70,.22);border-top-left-radius:4px}
#review-editor.chat .thread-reply.from-client,#review-editor.chat .thread-msg{border-top-left-radius:14px!important;border-top-right-radius:4px!important}
#review-editor.chat .thread-reply.deleted{padding:4px 10px}
#review-editor.chat .thread-head{gap:6px;flex-wrap:wrap;justify-content:flex-start;margin:0}
#review-editor.chat .thread-head .hint{font-size:.7em;opacity:.7}
#review-editor.chat .thread-head .tag{font-size:.62em;padding:1px 6px}
#review-editor.chat .thread-msg pre,#review-editor.chat .thread-reply pre{margin:1px 0 0;line-height:1.5;font-size:.95em}
#review-editor.chat .thread-weight{margin:2px 0 0}
#review-editor.chat .quote-box{margin:2px 0;padding:1px 6px;font-size:.74em}
#review-editor.chat .msg-actions{display:flex;gap:2px;margin:0;justify-content:flex-start}
#review-editor.chat .msg-actions .thread-pick{min-height:20px!important;height:20px;padding:0 6px!important;margin:0!important;border:0!important;background:transparent!important;font-size:.68em!important;opacity:.6;border-radius:6px!important}
#review-editor.chat .msg-actions .thread-pick:hover,#review-editor.chat .msg-actions .thread-pick:active{opacity:1;background:rgba(127,127,127,.15)!important}
#review-editor.chat .msg-actions .thread-pick{position:relative}
#review-editor.chat .msg-actions .thread-pick::after{content:'';position:absolute;inset:-5px -1px -3px -1px}

/*PETROL BUBBLES (approved 04:05:57): coach petrol, client grey; red kept for buttons/alerts*/
#review-editor.chat .thread-reply.from-coach{background:#e3f1f3;border-color:#a9d3d8;color:#0f2b30}
#review-editor.chat .thread-reply.from-client,#review-editor.chat .thread-msg{background:#eef0f3!important;border-color:#d5d9e0!important}
html.dark #review-editor.chat .thread-reply.from-coach{background:#12383f;border-color:#1f5a64;color:#e6f4f6}
html.dark #review-editor.chat .thread-reply.from-client,html.dark #review-editor.chat .thread-msg{background:#2a2d36!important;border-color:#3d414d!important}
#review-editor.chat .thread-reply.from-coach .hint{color:inherit}
#review-editor.chat .thread-reply.deleted{background:transparent!important;border-style:dashed}
/*PROGRAMME heading: one line, chevron pushed to the far side*/
#client-programs>article.card>h2 .collapse-btn{justify-content:space-between;white-space:nowrap}
#client-programs>article.card>h2{font-size:clamp(14px,4.7vw,20px)}
#client-programs>article.card>h2 .collapse-btn .chev{margin-inline-start:auto}

/*NAV single active: no sticky grey hover/focus on touch*/
@media (hover:none){html .workspace-nav a:not([aria-current="true"]):hover,html .workspace-nav a:not([aria-current="true"]):focus{background:transparent!important;box-shadow:none!important}}
/*ACCORDION alignment: titles on one right edge, chevrons in one left column*/
button.collapse-btn,#client-view button.collapse-btn{justify-content:space-between!important;gap:8px;text-align:start;white-space:nowrap}
button.collapse-btn .chev{margin-inline-start:auto;flex:none}
.collapse-h{font-size:clamp(14px,4.7vw,20px)}
/*NAV active = neutral highlight, no red (user 04:23:28)*/
html .workspace-nav a[aria-current="true"]{background:#ffffff1f!important;color:#fff!important;box-shadow:inset 0 0 0 1px #ffffff26!important;font-weight:800!important}
html .workspace-nav a[aria-current="true"] *{color:#fff!important}
/*compact notification cards (user 12:17)*/
#notification-list{display:grid;gap:8px}
#notification-list>.check-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t t" "m a";align-items:center;column-gap:10px;row-gap:2px;padding:9px 12px;margin:0;border-radius:12px;box-shadow:none}
#notification-list>.check-card>p:nth-child(1){grid-area:t;margin:0;font-size:13px;line-height:1.6;font-weight:700}
#notification-list>.check-card>p.hint{grid-area:m;margin:0;font-size:10.5px;line-height:1.5}
#notification-list>.check-card>.notif-actions{grid-area:a;display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;flex-wrap:nowrap}
#notification-panel #notification-list .notif-actions button{height:28px;min-height:28px;min-width:0;padding:0 10px;font-size:11px;font-weight:600;border-radius:8px;white-space:nowrap;margin:0;width:auto;box-shadow:none;line-height:1}
#notification-list>.check-card .notif-actions .tag{font-size:10px;padding:2px 7px;white-space:nowrap}

/*bell dropdown: sticky footer (user 12:21)*/
.notif-dropdown{display:flex;flex-direction:column;overflow:hidden;padding:0}
.notif-dropdown #notif-dropdown-list{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px}
.notif-foot{flex:none;display:flex;gap:8px;padding:8px;border-top:1px solid var(--line);background:#fff;border-radius:0 0 14px 14px}
html.dark .notif-foot{background:var(--surface)}
.notif-foot .notif-foot-btn{flex:1 1 0;display:block;width:auto;margin:0;height:38px;min-height:38px;padding:0 8px;border-radius:10px;border:1px solid var(--line);background:#f6f7fa;color:var(--ink);font-size:12px;font-weight:700;box-shadow:none;line-height:1;cursor:pointer;border-top-color:var(--line)}
.notif-foot .notif-foot-btn:hover{background:#eceef4;filter:none}
html.dark .notif-foot .notif-foot-btn{background:#2a2327;color:#fff;border-color:#ffffff2e}
html.dark .notif-foot .notif-foot-btn:hover{background:#34292e}
.notif-foot .notif-foot-btn[hidden]{display:none}
.notif-dropdown .notif-foot .notif-foot-btn{height:38px!important;min-height:38px!important;display:flex!important;align-items:center;justify-content:center;margin:0!important;padding:0 8px!important;border:1px solid var(--line)!important;border-radius:10px!important;color:var(--ink)!important;background:#f6f7fa;width:auto;gap:0}
html.dark .notif-dropdown .notif-foot .notif-foot-btn{background:#2a2327;color:#fff!important;border-color:#ffffff2e!important}
.notif-dropdown .notif-foot .notif-foot-btn[hidden]{display:none!important}
/*hero font sizes swapped (user 12:27): greeting takes the old tagline size, tagline takes the old greeting size*/
.client-intro .client-welcome{font-size:27px}.client-intro h1{font-size:19px}
@media(max-width:480px){.client-intro .client-welcome{font-size:23px}.client-intro h1{font-size:19px;max-width:none}}
/*hero smaller + tagline in brand red (user 12:34)*/
.client-intro .client-welcome{font-size:23px}.client-intro h1{font-size:17px;color:#ff5a64}
@media(max-width:480px){.client-intro .client-welcome{font-size:20px}.client-intro h1{font-size:16px;color:#ff5a64}}
/*hero vertical rhythm (user 12:39)*/
.client-intro .eyebrow{margin-bottom:10px}
.client-intro .client-welcome{margin:0 0 2px;line-height:1.45}
.client-intro h1{margin:0 0 8px;line-height:1.45;max-width:none}
.client-intro>p:last-child{margin-top:0;line-height:1.75}
/*hero v3 (user 12:54): greeting up, big gap under it, tagline+description close*/
.client-intro .eyebrow{margin-bottom:2px}
.client-intro .client-welcome{margin:0 0 20px}
.client-intro h1{margin:0 0 0}
.client-intro>p:last-child{margin-top:0}

/* notification filters (user 13:33) */
.nf-bar{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.nf-chip{width:auto;min-height:40px;padding:8px 14px;border-radius:999px;background:transparent;color:inherit;border:1px solid #c9ced9;font-size:14px;font-weight:600;box-shadow:none}.nf-chip.on{background:#1c23331f;border-color:#1c233366}html.dark .nf-chip{border-color:#3a4258}html.dark .nf-chip.on{background:#ffffff1f;border-color:#ffffff55}
/* filters compact row (user 13:38) */
.nf-bar{flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:10px 0;padding:2px 2px 4px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.nf-bar::-webkit-scrollbar{display:none}.nf-chip{flex:0 0 auto;min-height:32px;padding:4px 12px;font-size:13px;line-height:1.2;white-space:nowrap}
#notif-filters.nf-bar{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:6px!important}#notif-filters .nf-chip{width:auto!important;flex:0 0 auto!important;min-height:32px!important;padding:4px 12px!important;font-size:13px!important;margin:0!important}
#notif-filters .nf-chip{min-width:0!important;min-height:0!important;height:32px!important;padding:0 13px!important;border-radius:999px!important;font-weight:600!important}
.wa-renew .wa-chat{display:block;width:100%;margin-top:10px;padding:12px 16px;border-radius:14px;font-weight:700}
.wa-renew .wa-chat{border:2px solid #d9000b}html.dark .wa-renew .wa-chat{border-color:#e5202c}

/* client file action block (user 13:49) */
.wa-renew{display:flex;flex-direction:column;gap:10px;margin:6px 0 18px;padding:14px;border:1px solid #e3e6ee;border-radius:18px;background:#f7f8fb}html.dark .wa-renew{border-color:#2a3042;background:#ffffff08}
.wa-renew .wa-title{margin:0 2px 2px;font-size:13px;font-weight:700;opacity:.7}
.wa-renew .wa-btn,.wa-renew .wa-chat{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;min-height:48px;margin:0!important;padding:0 16px;border-radius:14px;font-size:15px;font-weight:700;line-height:1.2;text-align:center;text-decoration:none}
.wa-renew .wa-chat{background:transparent;color:inherit;border:1.5px solid #d9000b;box-shadow:none}html.dark .wa-renew .wa-chat{border-color:#e5202c}
.wa-renew .wa-plain{background:transparent;color:inherit;border:1.5px solid #c9ced9}html.dark .wa-renew .wa-plain{border-color:#3a4258;color:inherit}
.wa-renew>.hint{margin:0 4px;text-align:center;font-size:13px}.wa-renew .hint .wa-num{display:inline-block;margin:0 4px;font-size:13px;overflow:visible}

#editor:focus{outline:none}
.wa-renew .wa-open{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:48px;min-height:48px;margin:0!important;padding:0 16px;border-radius:14px;font-size:15px;font-weight:700;line-height:1.2;background:transparent;color:inherit;border:1.5px solid #c9ced9;box-shadow:none}html.dark .wa-renew .wa-open{border-color:#3a4258}

#review-editor.chat .msg-time{margin-inline-start:auto;padding-inline-start:10px;font-size:.66em;opacity:.65;white-space:nowrap;align-self:center;line-height:1}
#review-editor.chat .thread-reply.deleted .msg-time,#review-editor.chat .thread-msg>.msg-time{margin-inline-start:8px}
#review-editor.chat .day-sep{align-self:center;margin:8px 0 4px;flex:none}
#review-editor.chat .day-sep span{display:block;padding:3px 12px;border-radius:999px;background:rgba(127,127,127,.2);font-size:.72em;font-weight:600;opacity:.9}
#review-editor.chat .day-float{position:sticky;top:2px;z-index:5;height:0;margin:0 0 -6px;display:flex;justify-content:center;overflow:visible;pointer-events:none;opacity:0;transition:opacity .3s;align-self:stretch}
#review-editor.chat .day-float.on{opacity:1}
#review-editor.chat .day-float span{display:block;height:fit-content;padding:4px 14px;border-radius:999px;background:#d7dae1;color:#222;font-size:.74em;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.25)}
html.dark #review-editor.chat .day-float span{background:#3a3f4c;color:#eee}

#workspace:not(.ws-inbox) #coach-checkins{display:none}
#workspace.ws-inbox #stats,#workspace.ws-inbox #renewal-strip,#workspace.ws-inbox #roster-section,#workspace.ws-inbox #coach-security{display:none}

#workspace.ws-alerts #stats,#workspace.ws-alerts #renewal-strip,#workspace.ws-alerts #roster-section,#workspace.ws-alerts #coach-security,#workspace.ws-alerts #coach-checkins{display:none}
#notification-panel.embedded #notif-back{display:none}
#notification-panel{--acc:#3566d6;--tint:#f2f6fe;background:var(--tint);border:1px solid #e3e6ee;border-top:5px solid var(--acc);border-radius:20px;padding:22px 16px 20px;margin:28px 0 0;box-shadow:0 12px 32px #1c233312}
html.dark #notification-panel{--acc:#6f97ff;--tint:#141b2b;border-color:#2a3042;border-top-color:var(--acc);box-shadow:0 12px 32px #0006}
html #workspace .workspace-nav a[aria-current="true"]{background:linear-gradient(180deg,#ff3347,#c3001b)!important;color:#fff!important;font-weight:800!important;box-shadow:0 0 18px rgba(255,45,65,.45),inset 0 1px 0 rgba(255,255,255,.35)!important}
html #client-view .workspace-nav a[aria-current="true"]{background:linear-gradient(180deg,#ff3347,#c3001b)!important;color:#fff!important;border-color:transparent!important;font-weight:800!important;box-shadow:0 0 18px rgba(255,45,65,.45),inset 0 1px 0 rgba(255,255,255,.35)!important}
html #client-view .workspace-nav a[aria-current="true"] *{color:#fff!important}

#client-view.cv-programs>#tracker-section,#client-view.cv-programs>#weekly-section{display:none!important}
#client-view.cv-tracker>:not(.client-intro):not(.workspace-nav):not(#tracker-section),#client-view.cv-weekly>:not(.client-intro):not(.workspace-nav):not(#weekly-section),#client-view.cv-alerts>:not(.client-intro):not(.workspace-nav){display:none!important}

/* drawer menu */
#menu-backdrop{position:fixed;inset:0;background:#0009;opacity:0;pointer-events:none;transition:opacity .22s;z-index:900}
#menu-backdrop.open{opacity:1;pointer-events:auto}
#menu-drawer{position:fixed;top:0;bottom:0;right:0;width:min(300px,84vw);background:var(--surface);color:var(--ink);z-index:901;display:flex;flex-direction:column;transform:translateX(105%);visibility:hidden;transition:transform .24s ease,visibility 0s .24s;box-shadow:-8px 0 30px #0004;border-left:1px solid var(--line);overscroll-behavior:contain}
#menu-drawer.open{transform:none;visibility:visible;transition:transform .24s ease}
#menu-drawer .md-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line);border-top:4px solid #d9000b}
#menu-drawer .md-head b{font-size:16px}
#menu-drawer #menu-close{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;font-size:20px;line-height:1;border-radius:10px!important;background:transparent!important;color:var(--ink)!important;border:1px solid var(--line)!important;box-shadow:none!important}
#menu-drawer .md-list{padding:8px;display:flex;flex-direction:column;gap:4px;overflow:auto}
#menu-drawer .md-item{display:flex!important;align-items:center;gap:12px;width:100%!important;min-width:0!important;height:52px!important;min-height:52px!important;padding:0 14px!important;margin:0!important;border:0!important;border-radius:12px!important;background:transparent!important;color:var(--ink)!important;box-shadow:none!important;font-size:15px!important;font-weight:600;text-align:start;justify-content:flex-start!important;cursor:pointer}
#menu-drawer .md-item:hover,#menu-drawer .md-item:active{background:rgba(217,0,11,.09)!important}
#menu-drawer .md-item svg{width:22px;height:22px;flex:none;color:#d9000b}
#menu-drawer .md-item[hidden]{display:none!important}
#menu-drawer .md-item.md-danger{color:#b83a46!important;margin-top:8px!important;border-top:1px solid var(--line)!important;border-radius:0 0 12px 12px!important}
#menu-drawer .md-item.md-danger svg{color:#b83a46}
#menu-drawer #theme-toggle .icon-sun{display:none}html.dark #menu-drawer #theme-toggle .icon-sun{display:block}html.dark #menu-drawer #theme-toggle .icon-moon{display:none}
body.menu-open{overflow:hidden}
#offline-dialog,#password-dialog{width:min(420px,92vw);max-height:88dvh;padding:14px 16px}
#offline-dialog .dialog-head,#password-dialog .dialog-head{display:flex;justify-content:flex-end;padding:0;margin:0 0 4px;border:0}
#offline-dialog .dlg-x,#password-dialog .dlg-x{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;font-size:15px;border-radius:9px}
#offline-dialog #offline-section,#password-dialog #client-security{margin:0;padding:0;border:0;background:none;box-shadow:none}
#offline-dialog #offline-section button,#password-dialog button:not(.dlg-x):not(.password-toggle){width:100%;margin-top:8px}
#password-dialog [hidden]{display:none!important}
#password-dialog #coach-security{margin:0;padding:0;border:0;background:none;border-radius:0}
#password-dialog #coach-security>summary{display:none}
#offline-dialog h2,#password-dialog h2{font-size:17px}

/* client file library: compact side-scroll cards */
:is(#client-view,#editor) .file-row{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none;overscroll-behavior-x:contain}
:is(#client-view,#editor) .file-row::-webkit-scrollbar{display:none}
:is(#client-view,#editor) .file-row .program-file{flex:0 0 190px;scroll-snap-align:start;display:flex;flex-direction:column;gap:6px;padding:12px;margin:0!important;border-radius:14px;border-top:3px solid #d9000b}
:is(#client-view,#editor) .file-row .program-file strong{font-size:14px;line-height:22px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px}
:is(#client-view,#editor) .file-row .program-file p.hint{margin:0;font-size:11.5px;line-height:18px}
:is(#client-view,#editor) .file-row .program-file button{width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0 8px!important;font-size:12.5px!important;gap:6px;border-radius:10px!important;white-space:nowrap}
:is(#client-view,#editor) .file-row .program-file button svg{width:16px;height:16px;flex:none}

#guest-theme{display:none}
body.guest #guest-theme{display:inline-flex;align-items:center;justify-content:center;padding:0}
body.guest #menu-btn{display:none!important}
body.booting #guest-theme{display:none!important}
#guest-theme .icon-sun{display:none}html.dark #guest-theme .icon-sun{display:block}html.dark #guest-theme .icon-moon{display:none}

/* finance page (coach only) */
#workspace.ws-finance #stats,#workspace.ws-finance #renewal-strip,#workspace.ws-finance #roster-section,#workspace.ws-finance #coach-security,#workspace.ws-finance #coach-checkins{display:none}
#finance-panel{--acc:#2e9d63;--tint:#f1faf5;background:var(--tint);border:1px solid #e3e6ee;border-top:5px solid var(--acc);border-radius:20px;padding:22px 14px 20px;margin:28px 0 0;box-shadow:0 12px 32px #1c233312}
html.dark #finance-panel{--acc:#4cc58a;--tint:#111d17;border-color:#2a3042;border-top-color:var(--acc);box-shadow:0 12px 32px #0006}
#finance-panel .titlebar{display:block}
#finance-panel .fin-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
#finance-panel .fin-card{background:var(--surface,#fff);border:1px solid var(--line,#8884);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:2px;min-width:0}
#finance-panel .fin-wide{grid-column:1/-1}
#finance-panel .fin-label{font-size:.82em;color:var(--muted,#666)}
#finance-panel .fin-value{font-size:1.25em;line-height:1.5;color:var(--ink)}
#finance-panel .fin-sub{font-size:.78em;color:var(--muted,#666);line-height:1.6}
#finance-panel .fin-warn{color:#a05d00}
html.dark #finance-panel .fin-warn{color:#e0a63b}
#finance-panel .fin-alert{display:flex;flex-direction:column;gap:3px;background:rgba(224,166,59,.14);border:1px solid rgba(224,166,59,.55);border-radius:14px;padding:12px;margin:12px 0;font-size:.9em}
#finance-panel .fin-names{font-size:.8em;color:var(--muted,#666);overflow-wrap:anywhere}
#finance-panel .fin-sec{background:var(--surface,#fff);border:1px solid var(--line,#8884);border-radius:14px;padding:12px;margin:12px 0}
#finance-panel .fin-sec h3{margin:0 0 2px;font-size:1em}
#finance-panel .fin-sec .hint{margin:0 0 8px;font-size:.8em}
#finance-panel .fin-bars{display:flex;flex-direction:row;gap:6px;align-items:stretch;height:170px;margin-top:8px}
#finance-panel .fin-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px}
#finance-panel .fin-barwrap{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;min-height:0}
#finance-panel .fin-bar{width:min(70%,30px);border-radius:6px 6px 2px 2px;min-height:0;transition:height .3s}
#finance-panel .fin-bv{font-size:10.5px;line-height:1.3;color:var(--ink);font-weight:700;white-space:nowrap}
#finance-panel .fin-bl{font-size:10.5px;line-height:1.3;color:var(--muted,#666);white-space:nowrap}
#finance-panel .fin-trio{flex:1;width:100%;display:flex;gap:2px;align-items:stretch;min-height:0}
#finance-panel .fin-one{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px}
#finance-panel .fin-trio .fin-bar{width:100%;border-radius:4px 4px 1px 1px}
#finance-panel .fin-trio .fin-bv{font-size:10px}
#finance-panel .fin-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:.78em;color:var(--muted,#666);margin-top:4px}
#finance-panel .fin-lg{display:inline-flex;align-items:center;gap:5px}
#finance-panel .fin-lg i{width:10px;height:10px;border-radius:3px;display:inline-block}
#finance-panel .fin-hbars{display:flex;flex-direction:column;gap:8px;margin-top:6px}
#finance-panel .fin-hrow{display:grid;grid-template-columns:1fr auto;gap:2px 8px;align-items:center}
#finance-panel .fin-hl{font-size:.82em;grid-column:1/2;overflow-wrap:anywhere}
#finance-panel .fin-hv{font-size:.8em;font-weight:700;grid-column:2/3;grid-row:1}
#finance-panel .fin-htrack{grid-column:1/-1;height:10px;border-radius:6px;background:rgba(136,136,136,.2);overflow:hidden}
#finance-panel .fin-hfill{height:100%;background:#b83a46;border-radius:6px}
#finance-panel #finance-refresh{margin-top:6px}

/* professional file picker */
label.file-pick{display:block}
label.file-pick .file-zone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;text-align:center;margin-top:8px;padding:18px 14px;min-height:112px;border:2px dashed var(--line,#8886);border-radius:16px;background:var(--surface,#fff);color:var(--muted,#666);cursor:pointer;transition:border-color .15s,background .15s}
label.file-pick .file-zone:hover,label.file-pick .file-zone:focus-within{border-color:#b83a46;background:rgba(184,58,70,.06)}
label.file-pick .file-zone .fz-i{color:#b83a46}
label.file-pick .file-zone .fz-t{font-size:.95em;color:var(--ink);max-width:100%;overflow-wrap:anywhere;line-height:1.6}
label.file-pick .file-zone .fz-s{font-size:.78em;color:var(--muted,#666);line-height:1.5}
label.file-pick .file-zone.has-file{border-style:solid;border-color:#2e9d63;background:rgba(46,157,99,.08)}
label.file-pick .file-zone.has-file .fz-i{color:#2e9d63}
label.file-pick .file-zone input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;cursor:pointer;background:transparent!important}
#prepare-program-pdf{width:100%!important;max-width:none!important;margin-top:10px}

#payment-box>#payment-add{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;padding:14px 16px 16px;background:transparent}
#payment-box .pay-note{margin:0 0 10px}
#payment-box{margin-top:14px}

/* alternatives (exercise + food) */
#client-view.cv-programs>#alts-section{display:none!important}
#client-view.cv-alts>:not(.client-intro):not(.workspace-nav):not(#alts-section){display:none!important}
#client-view.cv-alts>#alts-section{display:block}
#workspace.ws-altspg #stats,#workspace.ws-altspg #renewal-strip,#workspace.ws-altspg #roster-section,#workspace.ws-altspg #coach-security,#workspace.ws-altspg #coach-checkins{display:none}
.alt-tabs{display:flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:12px;background:var(--surface,transparent);margin:6px 0 12px}
.alt-tab{flex:1;min-height:44px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.alt-tab[aria-pressed=true]{background:var(--red);color:#fff}
.alt-bar{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.alt-bar input{flex:1;min-width:0;min-height:44px}
.alt-add{min-height:44px;white-space:nowrap}
.alt-chips{display:flex;gap:6px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
.alt-chips::-webkit-scrollbar{display:none}
.alt-chip{flex:0 0 auto;min-height:36px;padding:0 14px;border:1px solid var(--line);border-radius:999px;background:var(--surface,transparent);color:var(--ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.alt-chip[aria-pressed=true]{background:var(--red);border-color:var(--red);color:#fff}
.alt-group{margin:16px 0 6px;font-size:15px;color:var(--red)}
.alt-card{border:1px solid var(--line);border-radius:12px;background:var(--surface,transparent);margin:0 0 8px;overflow:hidden}
.alt-card>summary{list-style:none;cursor:pointer;padding:12px 14px;display:flex;flex-direction:column;gap:3px;min-height:44px;justify-content:center}
.alt-card>summary::-webkit-details-marker{display:none}
.alt-title{font-weight:700;font-size:15px;line-height:1.5}
.alt-note{color:var(--muted);font-size:12.5px}
.alt-card[open]>summary{border-bottom:1px solid var(--line)}
.alt-items{list-style:none;margin:0;padding:6px 14px 8px}
.alt-items li{padding:9px 0;border-bottom:1px dashed var(--line);display:flex;flex-direction:column;gap:2px;font-size:14px}
.alt-items li:last-child{border-bottom:0}
.alt-items li span{color:var(--muted);font-size:12.5px}
.alt-actions{display:flex;gap:8px;padding:0 14px 12px;flex-wrap:wrap}
.alt-form{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0 0 12px;background:var(--surface,transparent)}
.alt-form h3{margin:0 0 8px}
.alt-form .alt-actions{padding:0}
.alt-actions .danger{color:#fff;background:#b83a46;border-color:#b83a46}
.alt-card>summary,.alt-items li{text-align:start}
.alt-card>summary>*{text-align:start;align-self:stretch}

.alt-rows-wrap{display:block;margin:10px 0}
.alt-rows-label{display:block;font-weight:700;font-size:14px;margin-bottom:8px}
.alt-rows{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.alt-row{border:1px solid var(--line);border-radius:10px;padding:8px;display:flex;flex-direction:column;gap:6px}
.alt-row input{width:100%;min-height:44px;box-sizing:border-box}
.alt-row-top{display:flex;gap:6px;align-items:center}
.alt-row-top input{flex:1;min-width:0}
.alt-row-del{min-height:44px;white-space:nowrap;flex:0 0 auto}
.alt-row-add{width:100%;min-height:44px}
.alt-row textarea{width:100%;box-sizing:border-box;min-height:44px;resize:none;overflow:hidden;line-height:1.5;padding-top:10px;padding-bottom:10px}
.alt-row-top{align-items:flex-start}
.alt-row-top textarea{flex:1;min-width:0}
.alt-en{display:block;color:var(--muted);font-size:12.5px;font-style:normal;text-align:right;direction:ltr}
.alt-items li em.alt-en{font-size:13px}
.alt-en-input{direction:ltr;text-align:left}
.alt-pics{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 4px}
.alt-pics img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:8px;background:#fff}
.alt-slot{padding:0}
.alt-card>.alt-slot{padding:8px 14px 0}
.alt-items li .alt-slot{margin-top:6px}
.alt-copy{min-height:40px;font-size:13px;padding:0 14px}

#notification-panel{margin-inline:auto}
#finance-panel,#alts-panel{max-width:none;margin-inline:0}
#alts-panel{--acc:#8b6bd9;--tint:#f6f2fe;background:var(--tint);border:1px solid #e3e6ee;border-top:5px solid var(--acc);border-radius:20px;padding:22px 16px 20px;margin:28px 0 0;box-shadow:0 12px 32px #1c233312}
html.dark #alts-panel{--acc:#a58cf0;--tint:#181426;border-color:#2a3042;border-top-color:var(--acc);box-shadow:0 12px 32px #0006}
#alts-panel .eyebrow{color:var(--red)}
#alts-panel .titlebar{display:block}
@media(min-width:900px){#finance-body{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:stretch}#finance-body>.fin-grid,#finance-body>.fin-alert,#finance-body>.fin-warn{grid-column:1/-1;margin:0}#finance-body>.fin-grid{grid-template-columns:repeat(3,1fr)}#finance-body>.fin-grid .fin-wide{grid-column:auto}#finance-body>.fin-sec{margin:0}}

/*NAV-PILL-FIT*/
@media(max-width:700px){html .workspace-nav a{font-size:10px!important;letter-spacing:0!important;padding-inline:1px!important}html .workspace-nav a[aria-current="true"]{font-weight:700!important}html .workspace-nav a .nv-t{overflow:visible;text-overflow:clip;max-width:none}}
@media(max-width:380px){html .workspace-nav a{font-size:9.5px!important}}

/*TRAINEE-DESKTOP*/
@media(min-width:1000px){
#client-view{max-width:1100px}
body:has(#client-view:not([hidden])) #notification-panel.embedded{max-width:1100px}
#client-view .workspace-nav{max-width:620px}
#client-view .client-intro{max-width:none}
#client-programs .file-row{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;overflow:visible;scroll-snap-type:none}
#client-programs .file-row .program-file{flex:none;width:auto}
#alts-section #alt-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
#alts-section #alt-list>.alt-group,#alts-section #alt-list>.hint{grid-column:1/-1;margin-bottom:0}
#alts-section #alt-list>.alt-card{margin:0}
body:has(#client-view:not([hidden])) #notification-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
body:has(#client-view:not([hidden])) #notification-list>.check-card{margin:0}
body:has(#client-view:not([hidden])) #notification-list>.hint{grid-column:1/-1}
}

/*ALT-DND*/
.alt-card{position:relative}
.alt-card.has-grip>summary{padding-left:46px}
.alt-grip{position:absolute;left:8px;top:8px;width:34px;height:34px;min-height:34px;padding:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:18px;line-height:1;letter-spacing:-2px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;background:transparent;border:1px solid var(--line);color:var(--muted);z-index:2}
.alt-grip:active{cursor:grabbing}
.alt-group{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.alt-group-act{display:inline-flex;gap:8px;align-items:center}
.alt-group-act button{min-height:34px;height:34px;padding:0 12px;font-size:13px;border-radius:10px;min-width:0}
.alt-ghost{position:fixed;z-index:3000;pointer-events:none;transform:translate(-50%,-120%);padding:10px 16px;border-radius:12px;background:var(--red);color:#fff;font-weight:700;font-size:14px;box-shadow:0 10px 30px #0006;max-width:70vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alt-dragging{opacity:.35}
body.alt-dnd{user-select:none;-webkit-user-select:none;cursor:grabbing}
.alt-drop{outline:2px dashed var(--red);outline-offset:2px;border-radius:12px}
.alt-over-top{box-shadow:0 -4px 0 0 var(--red)}
.alt-over-bottom{box-shadow:0 4px 0 0 var(--red)}

/*ALT-DESKTOP-V2*/
@media(min-width:1000px){
.alt-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(270px,1fr))!important;grid-auto-flow:row dense;gap:12px!important;align-items:stretch!important}
.alt-list>.alt-group,.alt-list>.hint{grid-column:1/-1}
.alt-list>.alt-card{margin:0!important;min-width:0}
.alt-list>.alt-card:not([open]){display:flex;flex-direction:column}
.alt-list>.alt-card:not([open])>summary{flex:1;min-height:96px;justify-content:center}
.alt-list>.alt-card:not([open]) .alt-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.alt-list>.alt-card[open]{grid-column:1/-1;display:flex;flex-direction:column}
.alt-list>.alt-card[open]>summary{order:0;min-height:60px}
.alt-list>.alt-card[open]>.alt-slot{order:2;padding:12px 14px 4px}
.alt-list>.alt-card[open]>.alt-items{order:3;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));column-gap:24px;row-gap:4px;padding:8px 14px 10px}
.alt-list>.alt-card[open]>.alt-items li:last-child{border-bottom:1px dashed var(--line)}
.alt-list>.alt-card[open]>.alt-actions{order:1;padding-top:10px}
.alt-list>.alt-card[open] .alt-pics{display:grid;grid-template-columns:repeat(2,130px);gap:8px;margin:6px 0 2px;justify-content:start}
.alt-list>.alt-card[open] .alt-pics img{width:130px;height:130px;aspect-ratio:auto;border-radius:10px}
.alt-list>.alt-card[open]>.alt-slot .alt-pics{grid-template-columns:repeat(2,170px)}
.alt-list>.alt-card[open]>.alt-slot .alt-pics img{width:170px;height:170px}
}

/*COACH-NOTIF-DESKTOP*/
@media(min-width:1000px){
body:has(#workspace:not([hidden])) #notification-panel{max-width:none!important;width:100%}
body:has(#workspace:not([hidden])) #notification-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}
body:has(#workspace:not([hidden])) #notification-list>.check-card{margin:0}
body:has(#workspace:not([hidden])) #notification-list>.hint{grid-column:1/-1}
}

/*ALT-ITEM-DND*/
.alt-items li.alt-li-edit{position:relative;padding-left:46px}
.alt-igrip{top:8px;left:0;width:30px;height:30px;min-height:30px;font-size:16px;border-radius:8px}
.alt-iact{display:inline-flex;gap:6px;align-self:flex-start;margin-top:6px}
.alt-iact button{min-height:28px!important;height:28px!important;min-width:0!important;padding:0 10px!important;font-size:12px!important;border-radius:8px!important}
.alt-li-edit.alt-dragging{opacity:.35}
.alt-items li.alt-over-top{box-shadow:0 -3px 0 0 var(--red)}
.alt-items li.alt-over-bottom{box-shadow:0 3px 0 0 var(--red)}
@media(min-width:1000px){.alt-items li.alt-li-edit{padding-left:44px}}

/*ALT-TOUCH*/
.alt-dropbar{position:fixed;left:0;right:0;bottom:0;z-index:2900;background:var(--surface,#fff);border-top:2px solid var(--red);padding:8px 10px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px #0005}
.alt-dropbar-hint{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.alt-dropbar-row{display:flex;gap:8px;flex-wrap:wrap}
.alt-dropchip{min-height:42px!important;padding:0 16px!important;font-size:14px!important}
.alt-sheet{position:fixed;left:0;right:0;bottom:0;z-index:2950;background:var(--surface,#fff);color:var(--ink);border-top:2px solid var(--red);border-radius:16px 16px 0 0;padding:14px 14px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -14px 40px #0006;max-height:70vh;overflow:auto}
.alt-sheet-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:4px}
.alt-sheet .hint{margin:10px 0 6px}
.alt-sheet-row{display:flex;gap:8px}
.alt-sheet-row.wrap{flex-wrap:wrap}
.alt-sheet-row button,.alt-sheet-top button{min-height:44px;padding:0 16px;flex:1 1 auto}
.alt-sheet-top button{flex:0 0 auto}

/*ALT-STAGE*/
.alt-stage{position:sticky;bottom:10px;z-index:60;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 0;padding:10px 12px;border:2px solid var(--red);border-radius:14px;background:var(--surface,#fff);color:var(--ink);box-shadow:0 10px 30px #0004}
.alt-stage-msg{font-weight:700;font-size:14px}
.alt-stage-btns{display:inline-flex;gap:8px;flex-wrap:wrap}
.alt-stage-btns button{min-height:44px;padding:0 16px}
.alt-stage-ok{background:var(--red)!important;border-color:var(--red)!important;color:#fff!important;font-weight:800}
.alt-stage button:disabled{opacity:.5}

/*ALT-RENAME*/
.alt-rename{display:flex;gap:8px;align-items:center;flex-wrap:wrap;width:100%;padding:8px 0}
.alt-rename input{flex:1 1 180px;min-width:0;min-height:40px}
.alt-rename button{min-height:40px;padding:0 14px;min-width:0;border-radius:10px;font-size:14px}
.alt-group .alt-rename{flex:1}
.alt-group-act{flex-wrap:wrap}
/*NAV-NOCOPY*/
.workspace-nav,.workspace-nav *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
.workspace-nav a{-webkit-user-drag:none}

.alt-guide{margin:0 0 12px;padding:11px 14px;border:1px solid var(--line);border-inline-start:4px solid var(--red);border-radius:12px;background:var(--surface,transparent);color:var(--ink);font-size:13.5px;line-height:1.75}
.alt-guide p{margin:0}.alt-guide p+p{margin-top:8px}
.alt-guide p{white-space:pre-line}
.alt-guide{list-style:none;margin:0 0 12px;padding:8px 14px}
.alt-guide li{position:relative;padding:7px 0;padding-inline-start:18px;line-height:1.75}
.alt-guide li+li{border-top:1px dashed var(--line)}
.alt-guide li::before{content:'';position:absolute;inset-inline-start:0;top:16px;width:7px;height:7px;border-radius:50%;background:var(--red)}
#review-editor.chat .thread-reply .msg-edited{display:block;padding:0 6px;font-size:.68em;font-weight:inherit;color:inherit;opacity:.6;line-height:1.5}
#notification-list.notif-scroll{padding:2px 2px 6px 30px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
#notification-list.notif-scroll::-webkit-scrollbar{display:none}
#notification-panel{position:relative}
.notif-bar{position:absolute;width:22px;border-radius:99px;background:#1c23330a;touch-action:none;z-index:2}
.notif-bar[hidden]{display:none}
.notif-thumb{position:absolute;left:0;width:22px;min-height:56px;border:1.5px solid var(--red);border-radius:99px;background:url('/brand-mark.png') center/auto 15px no-repeat,linear-gradient(90deg,#ffffff,#ffecef);box-shadow:0 3px 12px #d9000b3d,inset 0 1px 0 #fff;touch-action:none;cursor:grab;box-sizing:border-box}
.notif-thumb.drag{cursor:grabbing;border-color:#b8000a}
html.dark .notif-bar{background:#ffffff12}
html.dark .notif-thumb{background:url('/brand-mark.png') center/auto 15px no-repeat,#3a3d47;border-color:#ff5468;box-shadow:0 3px 12px #0006}
html.dark .notif-thumb.drag{border-color:#ff5468}
.notif-item small.notif-prev{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11.5px;opacity:.85;line-height:1.6}
p.notif-prev{margin:0;color:var(--muted);font-size:12.5px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#notification-list>.check-card.has-prev{grid-template-areas:"t t" "p p" "m a"}
#notification-list>.check-card>p.notif-prev{grid-area:p;font-size:11.5px;line-height:1.6;color:var(--muted)}
.tag.pkg-vip{background:#fff3d6;color:#8a5a00;border-color:#f0cf86;font-weight:700}
.tag.pkg-weekly{background:#eef0f5;color:#5b6272}
html.dark .tag.pkg-vip{background:#3a3020;color:#f3c96b;border-color:#6a5420}
html.dark .tag.pkg-weekly{background:#262932;color:#aeb4c2}
.reply-note{margin:6px 0 0;padding:8px 12px;border-radius:10px;background:#f3f4f7;color:var(--muted);font-size:12.5px;line-height:1.6}
.reply-note[hidden]{display:none}
html.dark .reply-note{background:#1a1c22}
.new-chat-row label.nc-q{flex:2 1 220px}.new-chat-row label.nc-p{flex:0 1 150px}
.new-chat-row input[type=search]{width:100%}
.nc-results{display:flex;flex-direction:column;gap:6px;margin:-8px 0 16px;padding:8px;border:1px solid var(--line,#e3e6ee);border-radius:14px;background:var(--card,#fff);max-height:260px;overflow:auto}
.nc-results[hidden]{display:none}
#workspace .nc-item{display:flex;align-items:center;gap:10px;width:100%;text-align:start;background:none;border:0;box-shadow:none;padding:8px 10px;border-radius:10px;height:auto;min-height:0;color:var(--ink);font-size:14px;cursor:pointer}
#workspace .nc-item:hover{background:#f6f7fa;transform:none;filter:none}
.nc-item .nc-name{flex:1;font-weight:700}.nc-item .nc-code{color:var(--muted);font-size:12px}
html.dark .nc-results{background:#1a1c22;border-color:#3a3d47}html.dark .nc-item:hover{background:#24262f}
.inbox-filters{display:flex;gap:10px;width:100%;align-items:flex-end}
.inbox-filters label{flex:1 1 0;min-width:0;margin:0}
.inbox-filters select{width:100%}
.new-chat-row{flex-wrap:nowrap}.new-chat-row label.nc-q{flex:1 1 0;min-width:0}.new-chat-row #new-chat-go{flex:0 0 auto;white-space:nowrap;padding-inline:14px}
#checkin-inbox>.hint:only-child{flex:1 0 100%;width:100%;text-align:center;box-sizing:border-box}
.alt-actions .alt-cf{align-self:center;height:44px;min-height:44px;padding:0 18px;font-size:14px;line-height:1;border-radius:10px;min-width:0;box-sizing:border-box}
.alt-iact{align-items:center}.alt-iact button,.alt-group-act button{margin-top:0!important}.alt-iact .danger,.alt-group-act .danger{color:#fff;background:#b83a46;border-color:#b83a46}.alt-iact button{height:30px!important;min-height:30px!important;padding:0 12px!important;font-size:13px!important;border-radius:9px!important;line-height:1!important}
.alt-actions .alt-cf{margin:0!important}

/*menu open: the page scrollbar goes away with the scroll lock, so reserve its exact width (on the side it was) to keep everything in place; the drawer grows over that strip*/
html.menu-nobar{padding-right:var(--sbr,0px);padding-left:var(--sbl,0px)}html.menu-nobar #menu-drawer{width:calc(min(300px,84vw) + var(--sbr,0px))}html.menu-nobar #menu-drawer .md-head{padding-right:calc(16px + var(--sbr,0px))}html.menu-nobar #menu-drawer .md-list{padding-right:calc(8px + var(--sbr,0px))}

#weekly-status.fu-lines{display:flex;flex-direction:column;gap:9px;padding:14px 16px}
#weekly-status .fu-line{position:relative;padding-inline-start:20px;line-height:1.7}
#weekly-status .fu-line::before{content:"";position:absolute;inset-inline-start:0;top:.72em;width:7px;height:7px;border-radius:50%;background:var(--red,#d9000b)}
#weekly-status .fu-line:first-child{font-weight:800}

/* in-app toast */
#toast-root{position:fixed;z-index:2147483000;top:var(--ty,calc(env(safe-area-inset-top,0px) + 12px));left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;padding:0 12px}
.app-toast{pointer-events:auto;position:relative;overflow:hidden;width:min(100%,272px);display:flex;align-items:center;gap:10px;padding:6px 16px 9px 14px;border-radius:999px;background:var(--surface,#fff);color:var(--ink,#181a20);border:1px solid var(--line,#e4e6ed);box-shadow:0 14px 38px rgba(20,10,14,.20),0 2px 8px rgba(20,10,14,.10);cursor:pointer;opacity:0;transform:translateY(-22px) scale(.97);transition:opacity .32s ease,transform .38s cubic-bezier(.2,.9,.25,1.05)}
.app-toast.in{opacity:1;transform:none}.app-toast.out{opacity:0;transform:translateY(-16px) scale(.98);transition-duration:.28s}
html.dark .app-toast{box-shadow:0 16px 42px rgba(0,0,0,.55),0 0 0 1px rgba(217,0,11,.2)}
.at-ico{flex:none;width:28px;height:28px;display:grid;place-items:center;color:#d9000b;background:none;box-shadow:none}
.k-update .at-ico{color:#4c6fff;background:none;box-shadow:none}
.k-reply .at-ico{color:#2fa58a;background:none;box-shadow:none}
.at-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.at-t{font-size:13px;font-weight:800;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.at-b{font-size:11.5px;line-height:1.3;color:var(--muted,#656875);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.at-logo{flex:none;width:26px;height:auto;object-fit:contain;opacity:.95;pointer-events:none;user-select:none}
.at-bar{position:absolute;inset-inline:34px;bottom:4px;height:2px;border-radius:2px;background:linear-gradient(90deg,#d9000b,#ff4b57);opacity:.85;transform-origin:right center;animation:at-bar linear forwards}
.app-toast.hold .at-bar{animation-play-state:paused}
@keyframes at-bar{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@media (prefers-reduced-motion:reduce){.app-toast,.app-toast.out{transition:opacity .2s;transform:none}.at-bar{animation:none;display:none}}
html.dark .at-ico{color:#ff4b57}html.dark .k-update .at-ico{color:#8aa0ff}html.dark .k-reply .at-ico{color:#4fd1b0}
.app-toast{height:52px;box-sizing:border-box}
@media (min-width:900px){#toast-root{top:var(--ty,50%);left:var(--tx,50%);right:auto;bottom:auto;transform:none;align-items:flex-start;padding:0;width:272px}}

/* v2 compact single-line toast */
.app-toast{height:38px;padding:0 12px 0 12px;gap:8px}
.at-ico{width:22px;height:22px}
.at-txt{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:38px}
.at-t{display:inline;font-size:13px;font-weight:800;line-height:inherit;margin-inline-end:5px;overflow:visible;text-overflow:clip}
.at-b{display:inline;font-size:13px;line-height:inherit;color:var(--muted,#656875);white-space:nowrap}
.at-logo{width:19px}
.at-bar{inset-inline:22px;bottom:3px;height:2px}

/* app confirm dialog */
#app-confirm{max-width:340px;width:calc(100% - 32px);padding:16px 16px 14px;border-radius:22px}
#app-confirm .dialog-head{padding-bottom:0;margin-bottom:6px;border-bottom:0}
#app-confirm .dialog-head h2{font-size:16px}
#app-confirm .dialog-head button{min-width:36px;width:36px;height:36px;min-height:36px;padding:0;font-size:17px;border-radius:11px}
#app-confirm .ac-lead{margin:2px 0 10px;font-size:13.5px;text-align:start;color:var(--muted,#656875)}
#app-confirm .ac-msg{white-space:pre-wrap;overflow-wrap:anywhere;max-height:38vh;overflow:auto;padding:12px 14px;margin:0 0 14px;border-radius:16px;border:1px solid var(--line,#e4e6ed);background:var(--surface-2,rgba(127,127,127,.08));font-size:14px;line-height:1.7;text-align:start}
#app-confirm .actions{display:flex;gap:8px;justify-content:stretch}
#app-confirm .actions button{flex:1;min-height:44px;height:44px;padding:0 14px;font-size:14px;border-radius:999px}
#app-confirm .actions .ac-ok{order:1}#app-confirm .actions .ac-no{order:2}
#app-confirm,#app-confirm:focus{outline:none}
#app-confirm .ac-ok.danger{background:#c8101c;border-color:#c8101c;color:#fff}
/* inverted translucent toast: light toast on dark app, dark toast on light app */
.app-toast{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:rgba(22,24,30,.90);color:#fff;border:1px solid rgba(255,255,255,.16);box-shadow:0 10px 30px rgba(0,0,0,.28)}
.app-toast .at-b{color:rgba(255,255,255,.78)}
.app-toast .at-ico{color:#ff5a64}.app-toast.k-update .at-ico{color:#8aa0ff}.app-toast.k-reply .at-ico{color:#4fd1b0}
html.dark .app-toast{background:rgba(255,255,255,.70);color:#14161c;border:1px solid rgba(255,255,255,.7);box-shadow:0 10px 30px rgba(0,0,0,.4)}
html.dark .app-toast .at-b{color:rgba(20,22,28,.78)}
html.dark .app-toast .at-ico{color:#d9000b}html.dark .app-toast.k-update .at-ico{color:#3b57e0}html.dark .app-toast.k-reply .at-ico{color:#1f8a70}

/* chat head: client file button */
#review-editor .chat-head-actions{display:flex;align-items:center;gap:8px;flex:none}
#chat-client-file{display:inline-flex;align-items:center;gap:6px;height:46px;min-height:46px;padding:0 14px;border-radius:12px;font-size:13.5px;font-weight:700;white-space:nowrap;width:auto;min-width:0}
#chat-client-file[hidden]{display:none}
#review-editor.chat .dialog-head h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#review-editor .chat-head-actions #close-review{height:46px;min-height:46px;width:46px;min-width:46px;padding:0;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center}
.app-toast .at-b{font-weight:600}
/* coach hero: all text centered as one block, brand mark on the left */
.coach-hero{display:flex;flex-direction:column;justify-content:center;padding-block:40px}
.coach-hero .titlebar>div{width:fit-content;max-width:calc(100% - 20px);margin-inline-start:22px;padding-inline:0;text-align:right;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.coach-hero .titlebar h1,.coach-hero .titlebar .hero-copy,.coach-hero .eyebrow{text-align:right;margin:0}
.coach-hero .eyebrow{position:static}
@media(max-width:480px){.coach-hero .titlebar>div{max-width:calc(100% - 20px);margin-inline-start:18px}.coach-hero h1{font-size:20px;text-wrap:balance}.coach-hero{padding-block:34px}}
.coach-hero .eyebrow{position:relative;top:-5px}.coach-hero .titlebar h1,.coach-hero .titlebar .hero-copy{position:relative;top:5px}
/* plan-amount label note */
#plan-amount-label small{font-size:11px;font-weight:400;color:var(--muted)}
@media(max-width:480px){.coach-hero{padding-block:27px}.coach-hero .titlebar>div{gap:6.5px}}

/* hero infographic chips */
.coach-hero .hero-copy{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;line-height:1}
.hero-copy .hc{display:inline-flex;align-items:center;gap:5px;padding:0;background:none;border:0;color:#ffffffd9;font-size:13px;font-weight:600;white-space:nowrap}
.hero-copy .hc svg{width:22px;height:22px;flex:none;color:#ff6b7d;stroke-width:1.6}
.hero-copy .hc-sep{width:18px;height:12px;flex:none;color:#ffffff55;stroke-width:1.4;stroke-dasharray:2 2.5}
.hero-copy .hc-go{color:#fff}
.hero-copy .hc-go svg{color:#ff3b52;stroke-width:2}
@media(min-width:481px){.hero-copy .hc{font-size:15px;gap:7px}.hero-copy .hc svg{width:26px;height:26px}.hero-copy .hc-sep{width:26px}}
.coach-hero .titlebar>div{margin-inline-start:14px}@media(max-width:480px){.coach-hero .titlebar>div{margin-inline-start:10px}}
/* archive panel spacing */
#archive-reason-wrap:not([hidden]){display:flex;flex-direction:column;gap:12px;margin:14px 0 16px}
#archive-reason-wrap label{margin:0}
#archive-reason-wrap select,#archive-reason-wrap input{margin:0;width:100%}
#archive-reason-wrap select,#archive-reason-wrap input{height:48px;border-radius:12px}

.bk-wa-row{display:flex;gap:8px;align-items:center;margin:8px 0;font-size:.92em}.bk-wa-row input{width:auto}

.msg-wa{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;width:fit-content;margin:8px auto 0;padding:3px 11px 3px 8px;min-height:30px;border-radius:10px;background:linear-gradient(180deg,#34d87a 0%,#1fb35a 55%,#16994b 100%);color:#fff;font-weight:800;font-size:.8em;text-decoration:none;text-shadow:0 1px 1px rgba(0,60,25,.35);box-shadow:0 2px 0 #0e6b36,0 6px 12px rgba(22,153,75,.3),inset 0 1px 0 rgba(255,255,255,.4);transition:transform .12s ease,box-shadow .12s ease;-webkit-tap-highlight-color:transparent;outline:0;animation:waglow 2.8s ease-in-out infinite}
.msg-wa .wa-ic{flex:none;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.2)}
.msg-wa .wa-ic svg{width:13px;height:13px}
.msg-wa .wa-tx{white-space:nowrap}
.msg-wa .wa-chev{flex:none;width:12px;height:12px;opacity:.95}
.msg-wa:hover{filter:brightness(1.05)}
.msg-wa:active{transform:translateY(2px);box-shadow:0 1px 0 #0e6b36,0 3px 8px rgba(22,153,75,.3),inset 0 1px 0 rgba(255,255,255,.3);animation:none}
.msg-wa:focus,.msg-wa:focus-visible{outline:0!important}
@keyframes waglow{0%,100%{box-shadow:0 2px 0 #0e6b36,0 6px 12px rgba(22,153,75,.3),0 0 0 0 rgba(52,216,122,.4),inset 0 1px 0 rgba(255,255,255,.4)}50%{box-shadow:0 2px 0 #0e6b36,0 6px 12px rgba(22,153,75,.3),0 0 0 6px rgba(52,216,122,0),inset 0 1px 0 rgba(255,255,255,.4)}}
@media(prefers-reduced-motion:reduce){.msg-wa{animation:none}}
html.dark .msg-wa{box-shadow:0 2px 0 #0a4f28,0 6px 14px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.3)}

.alt-lock{position:relative;border-radius:16px}
.alt-lock-body{opacity:.6;filter:blur(.7px) saturate(.55);pointer-events:none;user-select:none}
.alt-lock::after{content:"";position:absolute;inset:0;border-radius:16px;background:rgba(8,9,12,.76);pointer-events:auto}
html.dark .alt-lock::after{background:rgba(8,9,12,.76)}
.alt-lock-pin{position:sticky;top:calc(50vh - 70px);height:0;z-index:3}
.alt-lock-card{position:absolute;z-index:2;top:10px;left:50%;transform:translateX(-50%);width:calc(100% - 20px);display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:12px;row-gap:6px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.93);border:1px solid rgba(0,0,0,.08);box-shadow:0 10px 26px rgba(0,0,0,.18);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
html.dark .alt-lock-card{background:rgba(32,34,43,.94);border-color:rgba(255,255,255,.1);box-shadow:0 10px 26px rgba(0,0,0,.5)}
.alt-lock-tx strong{display:block;font-size:1em}
.alt-lock-tx p{margin:0;font-size:.85em;line-height:1.65;color:var(--muted)}
.alt-lock-ic{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:rgba(222,49,70,.12);color:var(--red)}
.alt-lock-ic svg{width:22px;height:22px}
.alt-lock-card .msg-wa{grid-column:3;margin:0;align-self:center}
/* workout log: 4 weight/reps sets + coach plan */
.tracker-entry .sets{grid-template-columns:1fr;gap:8px}
.set-card{border:1px solid var(--line);border-radius:12px;padding:8px 10px;background:var(--surface);display:grid;gap:6px}
.set-card .set-n{font-size:12px;font-weight:800;color:var(--red)}
.set-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.set-f{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.set-f span{white-space:nowrap;font-weight:700}
.set-f input{min-width:0;text-align:center}
.set-card.legacy{grid-template-columns:auto 1fr;align-items:center}
.plan-card{margin:10px 0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);box-shadow:0 6px 18px rgba(0,0,0,.06)}
.plan-head{display:flex;justify-content:space-between;align-items:center;padding:11px 14px;background:linear-gradient(135deg,rgba(222,49,70,.14),rgba(222,49,70,.04));border-bottom:1px solid var(--line)}
.plan-head strong{font-size:14px}
.plan-count{font-size:11px;font-weight:800;color:var(--red);background:rgba(222,49,70,.12);border-radius:999px;padding:3px 9px}
.plan-row{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:11px 14px;border:0;border-top:1px solid var(--line);background:transparent;color:inherit;text-align:start;cursor:pointer;border-radius:0}
.plan-row:first-of-type{border-top:0}
.plan-n{flex:0 0 auto;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800;background:rgba(222,49,70,.12);color:var(--red)}
.plan-name{flex:1;font-weight:700;min-width:0;overflow-wrap:anywhere}
.plan-go{flex:0 0 auto;font-size:12px;font-weight:800;color:#fff;background:var(--red);border-radius:999px;padding:5px 12px}
.plan-editor{margin:0 0 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface);padding:14px;box-shadow:0 6px 18px rgba(0,0,0,.05)}
.pe-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.pe-title{font-size:16px}
.pe-sub{margin:4px 0 12px}
.plan-status{font-size:12px;color:var(--muted);white-space:nowrap}
.plan-status.error{color:var(--red)}
.pe-day{border:1px solid var(--line);border-radius:14px;margin:8px 0;overflow:hidden}
.pe-day.open{border-color:var(--red)}
.pe-day-top{display:flex;align-items:center;gap:10px;width:100%;margin:0;padding:11px 12px;border:0;background:transparent;color:inherit;cursor:pointer;text-align:start;border-radius:0}
.pe-num{flex:0 0 auto;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px;background:var(--red);color:#fff}
.pe-dname{flex:1;font-weight:800;min-width:0;overflow-wrap:anywhere}
.pe-count{font-size:12px;color:var(--muted)}
.pe-chev{color:var(--muted)}
.pe-body{padding:4px 12px 12px;display:grid;gap:10px}
.pe-name{font-weight:700}
.pe-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.pe-ex{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;background:rgba(127,127,127,.08)}
.pe-exn{flex:0 0 auto;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:800;background:rgba(222,49,70,.14);color:var(--red)}
.pe-exname{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}
.pe-rm{flex:0 0 auto;margin:0;width:28px;height:28px;padding:0;border-radius:50%;line-height:1;background:transparent;border:1px solid var(--line);color:var(--muted);cursor:pointer}
.pe-add{display:flex;gap:8px}
.pe-add input{flex:1;min-width:0;margin:0}
.pe-addbtn{margin:0;flex:0 0 auto}
.pe-tip{margin:0}
.pe-actions{display:flex;gap:8px;flex-wrap:wrap}
.pe-fin{margin:0;background:var(--red);color:#fff;border:0;border-radius:12px;padding:10px 16px;font-weight:800;cursor:pointer}
.pe-del{margin:0}
.pe-newday{width:100%;margin:6px 0 0}
.set-add{width:100%;margin:2px 0 0;border-style:dashed;font-weight:800;color:var(--red)}
.pe-step{flex:0 0 auto;display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:999px;padding:2px}
.pe-stb{margin:0;width:26px;height:26px;padding:0;border-radius:50%;border:0;background:rgba(222,49,70,.12);color:var(--red);font-weight:800;font-size:16px;line-height:1;cursor:pointer}
.pe-stb:disabled{opacity:.35;cursor:default}
.pe-sv{min-width:38px;text-align:center;font-size:12px;font-weight:800}
.plan-sets{flex:0 0 auto;font-size:11px;color:var(--muted)}
.pe-sel{flex:0 0 auto;margin:0;width:auto;min-width:96px;padding:6px 10px;border-radius:10px;font-weight:700;font-size:13px}
.pe-ex{gap:6px;padding:8px}
.pe-sel{min-width:0;padding:6px 4px 6px 2px;font-size:12px;max-width:104px}
.pe-exname{flex:1 1 0}
/* bulk archived message button */
#bulk-arch{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;box-sizing:border-box;margin:14px 0 16px;padding:13px 16px;border-radius:14px;border:1.5px solid rgba(222,49,70,.35);background:linear-gradient(135deg,rgba(222,49,70,.12),rgba(222,49,70,.04));color:var(--red);font-weight:800;font-size:14px;line-height:1.3;text-align:center;box-shadow:0 4px 14px rgba(222,49,70,.08)}
#bulk-arch::before{content:"✉";font-size:16px}
#bulk-arch:disabled{border-color:rgba(46,160,90,.35);background:rgba(46,160,90,.10);color:#1f7a45;box-shadow:none;opacity:1}
#bulk-arch:disabled::before{content:none}
html.dark #bulk-arch:disabled{color:#6fd49a;background:rgba(46,160,90,.14)}
.pe-warn{margin:0;color:var(--red);font-weight:700;font-size:13px;background:rgba(222,49,70,.10);border:1px solid rgba(222,49,70,.35);border-radius:10px;padding:8px 10px}
.pe-add input[aria-invalid="true"]{border-color:var(--red)}

/* القراءة فقط للتمرين المسجل + إصلاح تداخل أسماء الخطة */
.tracker-done{display:block;padding:0 6px 0 10px;overflow:hidden}
.tracker-done-head{display:flex;align-items:center;gap:8px;min-height:44px}
.tracker-done-chev{flex:none;font-size:14px;color:var(--red);transition:transform .15s}
.tracker-done.open .tracker-done-chev{transform:rotate(180deg)}
.tracker-done-detail{padding:4px 2px 12px;display:grid;gap:6px;border-top:1px dashed var(--line);margin-top:2px}
.tracker-done-detail[hidden]{display:none}
.tdd-set{display:flex;gap:10px;align-items:baseline;font-size:14px;line-height:1.6}
.tdd-n{flex:none;font-weight:800;font-size:12px;color:var(--muted);min-width:64px}
.tdd-v{min-width:0;overflow-wrap:anywhere}
.tdd-notes{margin:2px 0 0;font-size:13px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}
.tdd-edit{justify-self:start;min-height:40px;padding:0 22px}
html.dark .tracker-done-detail{border-top-color:#ffffff1f}
.plan-row{height:auto;min-height:58px;padding:12px 14px;line-height:1.5;align-items:center}
.plan-name{line-height:1.55;padding:2px 0;overflow-wrap:anywhere}
.plan-sets,.plan-go{white-space:nowrap;line-height:1.4}
.plan-go{padding:7px 14px;min-height:32px;display:inline-flex;align-items:center}
.plan-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.plan-main .plan-name{flex:none}.plan-main .plan-sets{font-size:12px}


.tracker-week-label{margin:6px 0 8px;font-weight:800;font-size:15px}
.tracker-plan-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.tracker-plan-tabs .tracker-day-chip{flex:1 1 auto;min-width:76px;min-height:44px}
.tracker-noplan{padding:18px 4px;line-height:1.8}

.wk-sec{margin:14px 0}.wk-h{margin:0 0 6px;font-size:15px}
.wk-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.wk-table{width:100%;border-collapse:collapse;direction:rtl;font-size:13.5px;line-height:1.55}
.wk-table th{position:sticky;top:0;background:var(--bg);font-size:12px;font-weight:800;color:var(--muted);text-align:start;padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap}
.wk-table td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:top;text-align:start}
.wk-table tr:last-child td{border-bottom:0}
.wk-sets{color:var(--ink);margin-top:2px;font-size:13px;line-height:1.7}.wk-note{color:var(--muted);font-size:12px;margin-top:2px}
.wk-c td:first-child{min-width:120px}.wk-c td+td,.wk-c th+th{border-inline-start:1px solid var(--line);text-align:center}.wk-line{white-space:nowrap}
html.dark .wk-wrap{border-color:#ffffff1f}html.dark .wk-table th{background:#ffffff0d;color:#c9c2c5;border-bottom-color:#ffffff1f}html.dark .wk-table td{border-bottom-color:#ffffff14}
html.dark .wk-a td:first-child,html.dark .wk-a th:first-child{background:#241f22}

.wk-table th.wk-grp{text-align:center;border-inline-start:1px solid var(--line)}
.wk-num{text-align:center!important;white-space:nowrap;font-variant-numeric:tabular-nums;min-width:48px}
.wk-legacy{text-align:start!important;white-space:normal}
.wk-exn{font-weight:800;min-width:120px;vertical-align:top}
.wk-c th.wk-exname{font-size:14px;color:var(--ink);background:var(--surface);min-width:110px;vertical-align:middle}
.wk-c td{text-align:center}.wk-c td.wk-ex-sp{display:none}
.wk-c td:nth-child(n+3):nth-child(odd){border-inline-start:1px solid var(--line)}
.wk-c .wk-ex-sp{display:none}
.wk-wrap+.wk-wrap{margin-top:10px}
.wk-cap{caption-side:top;text-align:start;font-weight:800;font-size:14px;padding:8px 10px;background:var(--surface);border-bottom:1px solid var(--line)}html.dark .wk-cap{background:#241f22}
.wk-exn{min-width:92px!important;max-width:120px}.wk-num{min-width:40px!important}
.wk-table th,.wk-table td{padding-inline:6px!important}

.wk-note{margin:4px 2px 10px;font-size:12.5px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.wk-note b{color:var(--ink)}

.tracker-week-nav{display:flex;align-items:center;gap:10px;margin:6px 0 8px}
.tracker-week-nav .tracker-week-label{flex:1;margin:0;text-align:center}
.tracker-week-nav button{flex:none;min-width:44px;min-height:44px;padding:0}
.tracker-week-nav button:disabled{opacity:.35}
.tracker-week-new-main{display:block;width:100%;min-height:48px;margin:12px 0 0;font-weight:800}

.wk-c th{text-align:center!important;vertical-align:middle}
.wk-c td:first-child,.wk-c th:first-child{min-width:0!important;width:72px;text-align:center!important;font-weight:800}
.wk-c td.wk-num bdi{font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-variant-numeric:lining-nums tabular-nums}
.wk-c th.wk-grp{border-inline-start:1px solid var(--line)}
.wk-c th{border-inline-start:1px solid var(--line)}

.wk-wrap{direction:ltr}.wk-table.wk-c{direction:ltr;width:auto;min-width:100%}
.wk-c th,.wk-c td{text-align:center!important;border-inline-start:0;border-left:1px solid var(--line)}
.wk-c th:first-child,.wk-c td:first-child{border-left:0}
.wk-c td.wk-num bdi{direction:ltr;unicode-bidi:isolate}
.wk-c caption,.wk-c .wk-cap{text-align:left!important;direction:ltr}
.wk-table.wk-c{width:max-content;min-width:0}.wk-c td.wk-num,.wk-c th:not(:first-child):not(.wk-grp){min-width:84px!important}
/*NOTIF-THIN*/#notification-list.notif-scroll{padding:2px 2px 6px 16px}
.notif-bar{width:6px;background:transparent}
.notif-thumb{width:6px;min-height:48px;border:0;background:#9aa0ac99;box-shadow:none}
html.dark .notif-bar{background:transparent}
html.dark .notif-thumb{background:#ffffff40;border:0;box-shadow:none}
.notif-thumb.drag,html.dark .notif-thumb.drag{border:0;background:#7b8190}
#notification-list>.check-card.notif-unread{background:#ffeef0;border-color:#f3c2c8}
html.dark #notification-list>.check-card.notif-unread{background:rgba(222,49,70,.16);border-color:#5a2a31}
/*NOTIF-THIN2*/.notif-bar{width:5px;background:#1c233312}
.notif-thumb{width:5px;min-height:44px;background:linear-gradient(180deg,#e0485a,#c8102e);opacity:.8;border:0;box-shadow:none}
.notif-thumb.drag,html.dark .notif-thumb.drag{background:#c8102e;opacity:1;border:0}
html.dark .notif-bar{background:#ffffff14}
html.dark .notif-thumb{background:linear-gradient(180deg,#ff6a7c,#e0485a);opacity:.85;border:0;box-shadow:none}
#notification-list>.check-card.notif-unread{background:#fff0f2;border-color:#f6ccd1}
/*NOTIF-COMPACT*/#notification-list>.check-card{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"t a" "m a";column-gap:8px;row-gap:0;padding:6px 10px;align-items:center}
#notification-list>.check-card.has-prev{grid-template-areas:"t a" "p a" "m a"}
#notification-list>.check-card>p:nth-child(1){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:1.5}
#notification-list>.check-card>p.notif-prev{font-size:11px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#notification-list>.check-card>p.hint{font-size:10px;line-height:1.4}
#notification-panel #notification-list .notif-actions button{height:26px;min-height:26px;padding:0 9px;font-size:11px}
/*NOTIF-COMPACT2*/#notification-list>.check-card{grid-template-areas:"t a" "t m";row-gap:1px;column-gap:10px;padding:6px 10px;align-items:center}
#notification-list>.check-card.has-prev{grid-template-areas:"t a" "p m"}
#notification-list>.check-card>.notif-actions{align-self:end}
#notification-list>.check-card>p.hint{text-align:center;align-self:start;white-space:nowrap}
#notification-list>.check-card>p:nth-child(1){align-self:center}
#notification-list>.check-card>p.notif-prev{align-self:center}
#notification-list>.check-card.has-prev>p:nth-child(1){align-self:end}
#notification-list>.check-card.has-prev>p.notif-prev{align-self:start}
#notification-list>.check-card>p.hint{font-size:9px;line-height:1.3;margin-top:3px!important}
#notification-list>.check-card.no-date{grid-template-areas:"t a"}
#notification-list>.check-card.no-date.has-prev{grid-template-areas:"t a" "p a"}
#notification-list>.check-card.no-date>.notif-actions{align-self:center}
#notification-list>.check-card.no-date>p:nth-child(1){align-self:center}
#notification-list>.check-card.no-date.has-prev>p:nth-child(1){align-self:end}
#notification-list>.check-card.no-date.has-prev>p.notif-prev{align-self:start}
/*NOTIF-DD-COMPACT*/.notif-dropdown{max-height:min(320px,48dvh)!important}
.notif-dropdown #notif-dropdown-list{padding:6px}
.notif-item{padding:6px 10px!important;font-size:12.5px!important;line-height:1.5!important}
.notif-item small{font-size:10px!important;line-height:1.4}
.notif-item small.notif-prev{font-size:11px!important;line-height:1.45}
.notif-item .notif-dot{width:6px;height:6px;margin-inline-end:6px}
.notif-dropdown .notif-foot{padding:6px}
.notif-dropdown .notif-foot .notif-foot-btn{height:34px!important;min-height:34px!important}
/*NOTIF-DD-NARROW*/@media(max-width:640px){.notif-dropdown{left:auto!important;right:12px!important;width:min(268px,calc(100vw - 24px))!important}}
/*INSIGHTS*/.ins-tabs{display:flex;gap:8px;margin:4px 0 12px}
.ins-tabs .ins-tab{flex:1;min-height:42px;height:42px;font-weight:700;border-radius:12px}
.ins-tabs .ins-tab.on{background:var(--red);color:#fff;border-color:var(--red)}
.ins-wrap{display:grid;gap:12px;direction:rtl}
.ins-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px}
.ins-card{border:1px solid var(--line);border-radius:12px;padding:9px 12px;background:var(--surface);border-inline-start:4px solid #9aa0ac}
.ins-card b{display:block;font-size:12px;color:var(--muted);font-weight:800}
.ins-card p{margin:2px 0 0;font-size:13.5px;line-height:1.6}
.ins-card.ins-up{border-inline-start-color:#1f9d61}.ins-card.ins-down{border-inline-start-color:#d9534f}.ins-card.ins-warn{border-inline-start-color:#e0a21a}
.ins-chart-card{border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:var(--surface)}
.ins-chart-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.ins-chart-head b{font-size:13px}
.ins-sel{max-width:100%;min-height:36px;height:36px;padding:0 10px;font-size:13px;border-radius:10px;width:auto}
.ins-chart{direction:ltr}
.ins-svg{width:100%;height:auto;display:block;overflow:visible}
.ins-grid{stroke:var(--line);stroke-width:1}
.ins-tick{fill:var(--muted);font-size:10px;font-family:inherit}
.ins-val{fill:var(--ink);font-size:11px;font-weight:700;font-family:inherit}
.ins-line{fill:none;stroke:var(--red);stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round}
.ins-area{fill:var(--red);opacity:.08}
.ins-dot{fill:var(--surface);stroke:var(--red);stroke-width:2}.ins-dot.last{fill:var(--red)}
.ins-bar{fill:#e0485a;opacity:.55}.ins-bar.last{opacity:1}
.ins-pace{margin:6px 0 0;font-size:12.5px;color:var(--muted);line-height:1.6}
.my-insights{margin:14px 0}
.my-insights .ins-wrap{padding:0}
html.dark .ins-card.ins-up{border-inline-start-color:#37c486}

.tracker-note{border:1px solid var(--line);border-inline-start:4px solid var(--red);border-radius:12px;padding:9px 12px;margin:10px 0;background:#fff5f6}
.tracker-note b{display:block;font-size:12px;color:var(--red);font-weight:800}
.tracker-note p{margin:2px 0 0;font-size:13.5px;line-height:1.7}
html.dark .tracker-note{background:rgba(222,49,70,.12);border-color:#5a2a31;border-inline-start-color:#ff5468}
html.dark .tracker-note b{color:#ff7a8a}

.tracker-note ol{margin:6px 0 0;padding:0;padding-inline-start:22px;display:grid;gap:6px}
.tracker-note li{font-size:13.5px;line-height:1.7;padding-inline-start:2px}
.tracker-note li::marker{color:var(--red);font-weight:800}

/*NOTE-CARD*/.wk-notes{display:grid;gap:8px;margin:8px 0 12px}
.wk-note-card{display:grid;gap:4px}
.wk-note-h{font-size:11px;font-weight:800;color:var(--muted)}
.wk-note-box{border:1px solid var(--line);border-inline-start:3px solid var(--red);border-radius:10px;background:#fff5f6;padding:8px 11px;font-size:13.5px;line-height:1.7;color:var(--ink);overflow-wrap:anywhere;white-space:pre-wrap}
html.dark .wk-note-box{background:rgba(222,49,70,.12);border-color:#ffffff1f;border-inline-start-color:#ff5468}
.tdd-note-card{margin:6px 0 2px}

/*NOTE-ONE*/.wk-notes{display:grid;gap:4px;margin:8px 0 12px}
.wk-note-box{display:grid;gap:8px;white-space:normal}
.wk-note-row{display:grid;gap:2px}
.wk-note-row+.wk-note-row{border-top:1px dashed var(--line);padding-top:8px}
.wk-note-wk{font-size:11px;font-weight:800;color:var(--red)}
.wk-note-tx{white-space:pre-wrap;overflow-wrap:anywhere}

/*INS-PROG*/.ins-prog{height:8px;border-radius:99px;background:#e9ebf0;overflow:hidden;margin-top:8px}
.ins-prog-f{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#c9162c,var(--red));transition:width .5s ease}
html.dark .ins-prog{background:#ffffff1c}

/*BW*/.bw-form{display:grid;gap:8px;border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--surface);margin:10px 0}
.bw-form.bw-lock{border-color:var(--red);background:#fff5f6}
html.dark .bw-form.bw-lock{background:rgba(222,49,70,.12)}
.bw-form b{font-size:15px}.bw-form p{margin:0}
.bw-row{display:flex;gap:8px;align-items:stretch}
.bw-in{flex:1;min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:16px;background:var(--surface);color:var(--ink);text-align:center}
.bw-save{border:0;border-radius:10px;padding:0 16px;font-weight:800;background:var(--red);color:#fff;cursor:pointer}
.bw-save:disabled{opacity:.6}
.bw-st{font-size:12.5px;color:var(--muted);min-height:1em}
.bw-done{margin:6px 0;font-size:13px;font-weight:800;color:#1f9d61}
.bw-sec{margin-bottom:6px}
.bw-sub{margin:4px 0 0!important;font-size:12.5px!important;color:var(--muted)}
.bw-up .ins-line{stroke:#1f9d61}.bw-up .ins-dot{stroke:#1f9d61}.bw-up .ins-area{fill:rgba(31,157,97,.12)}
.bw-down .ins-line{stroke:#d9534f}.bw-down .ins-dot{stroke:#d9534f}.bw-down .ins-area{fill:rgba(217,83,79,.12)}
.ins-card.ins-flat{border-inline-start-color:#9aa0ac}
.bw-up .ins-dot.last{fill:#1f9d61}.bw-down .ins-dot.last{fill:#d9534f}

/*GOAL*/.goal-sum{margin:8px 0;padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface);font-size:13.5px;font-weight:700}
.goal-sum.goal-cut,.goal-sum.goal-bulk{border-inline-start:4px solid #1f9d61}
.goal-sum.goal-conflict{border-inline-start:4px solid #d9534f;color:#b3261e}
.goal-sum.goal-none{color:var(--muted)}
.goal-opts{display:grid;gap:6px}.goal-opt{display:flex;gap:8px;align-items:center;padding:8px 10px;border:1px solid var(--line);border-radius:10px;font-size:14px}

/*LF*/.tracker-fin.is-off{opacity:.45;filter:grayscale(.3)}
.name-locked{background:var(--soft,#f1f2f5);color:var(--muted);cursor:default}
html.dark .name-locked{background:#ffffff0f}
.fin-msg{margin:6px 0 0}

.tracker-entry .name-locked{font-weight:800;font-size:16px;color:var(--ink)}
html.dark .tracker-entry .name-locked{color:var(--ink)}
/*SETS-COMPACT*/.tracker-entry .sets{gap:6px}
.set-card{display:flex;align-items:center;gap:8px;padding:5px 10px;border-radius:10px}
.set-card .set-n{flex:0 0 auto;min-width:54px;font-size:12px}
.set-card .set-row{flex:1;min-width:0;gap:6px}
.set-card .set-f{display:grid;gap:1px;font-size:10.5px}
.set-card .set-f span{line-height:1.2}
.set-card input{min-height:36px!important;height:36px;padding:2px 8px!important;font-size:15px!important;border-radius:8px}
.set-card.legacy{display:flex}

/*BW-FIX*/.bw-form,.bw-form *{box-sizing:border-box}
.bw-form{min-width:0;max-width:100%;overflow:hidden}
.bw-form>*{min-width:0;max-width:100%}
.bw-form p,.bw-form b{overflow-wrap:anywhere}
.bw-row{flex-wrap:wrap}
.bw-in{flex:1 1 120px;width:auto;min-width:0}
.bw-save{flex:0 0 auto;min-height:44px}

/*CANCEL*/.tracker-cancel.ask{border-color:#d9534f;color:#d9534f;font-weight:800}

/*FOLD*/.tracker-head{position:relative;display:block}.tracker-head input{width:100%;box-sizing:border-box;padding-right:34px!important}.tracker-fold{position:absolute;right:10px;left:auto;top:50%;width:20px;height:20px;margin:-10px 0 0;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;min-height:0;cursor:pointer}.tracker-fold::before{content:"";position:absolute;left:50%;top:50%;width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:translate(-50%,-70%) rotate(45deg);opacity:.6;transition:transform .15s}.tracker-fold.is-closed::before{transform:translate(-70%,-50%) rotate(-45deg)}
/*FOLD2*/.tracker-head{margin-bottom:8px}.tracker-head input{margin:0!important}.tracker-fold::before{opacity:.75}
/*FOLD3*/.tracker-head input{display:block}.note-red{color:var(--red,#de3146);font-weight:800}
/*FOLD4*/.tracker-head .tracker-fold{height:20px!important;min-height:0!important;width:20px!important;min-width:0!important;padding:0!important;margin:-10px 0 0!important;top:50%!important;line-height:0}
/*NOTE-STYLE*/.tracker-note{background:var(--surface,#fff)!important;border:1px solid var(--line)!important;border-inline-start:4px solid var(--red)!important;padding:10px 14px!important}
.tracker-note b{color:var(--ink)!important;font-size:14px!important;margin-bottom:2px}
.tracker-note ol{list-style:none;margin:4px 0 0;padding:0!important;display:block}
.tracker-note li{position:relative;padding:7px 0 7px 0;padding-inline-start:18px!important;line-height:1.75}
.tracker-note li+li{border-top:1px dashed var(--line)}
.tracker-note li::before{content:'';position:absolute;inset-inline-start:0;top:16px;width:7px;height:7px;border-radius:50%;background:var(--red)}
/*FOLD5*/.tracker-fold{color:var(--ink,#222)!important}.tracker-fold::before{opacity:.8}
/*ARCH*/body.trainee-archived #my-insights{position:relative;min-height:200px}
body.trainee-archived #my-insights>*:not(.ins-lock){filter:blur(6px);opacity:.45;pointer-events:none;user-select:none}
/*INSLOCK*/.ins-lock .alt-lock-tx strong{white-space:nowrap}.ins-lock .alt-lock-tx p{font-size:.8em}
/*ARCH2*/body.trainee-archived #my-insights>*:not(.ins-lock){filter:blur(3px);opacity:.7}
/*HEROFIT*/.coach-hero .hero-copy{gap:2px}.hero-copy .hc{gap:4px}.hero-copy .hc-sep{width:10px}.hero-copy .hc svg{width:20px;height:20px}
@media(min-width:481px){.coach-hero .hero-copy{gap:6px}.hero-copy .hc{gap:7px}.hero-copy .hc-sep{width:26px}.hero-copy .hc svg{width:26px;height:26px}}
@media(max-width:380px){.hero-copy .hc{font-size:12px}.hero-copy .hc svg{width:18px;height:18px}.hero-copy .hc-sep{width:8px}}
/*INSLOCK2*/.ins-lock .alt-lock-card{width:100%;grid-template-columns:auto 1fr auto;column-gap:10px;row-gap:0;padding:14px}
.ins-lock .alt-lock-card .msg-wa{grid-column:3;justify-self:center;margin:0;padding:3px 10px 3px 8px}
.ins-lock .alt-lock-ic{width:30px;height:30px}.ins-lock .alt-lock-ic svg{width:17px;height:17px}
.ins-lock .alt-lock-tx{min-width:0}
.ins-lock .alt-lock-tx p{text-wrap:balance}
/*INSLOCK3*/body.trainee-archived #my-insights>*:not(.ins-lock){filter:blur(1px);opacity:.92}
.expired-card.is-archived{gap:0}
.expired-card.is-archived .msg-wa{margin:16px auto 0;min-height:40px;padding:5px 16px 5px 12px;gap:8px;font-size:14px;border-radius:12px}
.expired-card.is-archived .msg-wa .wa-ic{width:24px;height:24px}
.expired-card.is-archived .msg-wa .wa-ic svg{width:15px;height:15px}
/*VEIL-BLACK*/body.trainee-archived #my-insights>*:not(.ins-lock){filter:blur(5px);opacity:.92}
/*NOTIF-BTN30*/#notification-panel #notification-list .notif-actions button,#notif-dropdown .notif-actions button{height:30px;min-height:30px;padding:0 12px}
/*ALTBLUR*/.alt-lock-body{filter:blur(2px) saturate(.55)}
/*NOSEL-ALL*/button,[role=button],[role=tab],summary,select,a,.tag,.chip,.workspace-nav,.workspace-nav *,#notif-filters,#notif-filters *,.msg-actions,.msg-actions *,.notif-actions,.notif-actions *,.thread-pick{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
input,textarea,[contenteditable=true],pre,.client-code-line,.chip-code{-webkit-user-select:text;user-select:text}
/*ALTVEIL-LIGHT*/html:not(.dark) .alt-lock::after{background:rgba(255,255,255,.72)}

/* receipt-style cards */
#plan-offer.confirm{position:relative;margin:14px 0;padding:16px 16px 14px;border:1px solid rgba(222,49,70,.22);border-inline-start:4px solid var(--red);border-radius:16px;background:linear-gradient(180deg,rgba(222,49,70,.07),rgba(222,49,70,.02));box-shadow:0 8px 22px rgba(0,0,0,.06);display:flex;flex-direction:column;gap:10px}
#plan-offer>p{margin:0}
#plan-offer #plan-price{font-size:17px;font-weight:800;line-height:1.7;padding-bottom:10px;border-bottom:1px dashed rgba(222,49,70,.35);direction:rtl}
#plan-offer #plan-current{font-size:13px;color:var(--muted);background:rgba(0,0,0,.04);border-radius:10px;padding:7px 12px}
#plan-offer #apply-plan{width:100%;margin:2px 0;min-height:46px;border-radius:12px;font-weight:800;background:var(--surface);border:1.5px solid var(--red);color:var(--red)}
#plan-offer #plan-applied{font-size:14px;line-height:1.7}
#plan-offer>.hint:last-child{font-size:12px;line-height:1.8;color:var(--muted);padding-top:10px;border-top:1px dashed var(--line)}
html.dark #plan-offer.confirm{background:linear-gradient(180deg,rgba(222,49,70,.14),rgba(222,49,70,.04));border-color:rgba(222,49,70,.35)}
html.dark #plan-offer #plan-current{background:rgba(255,255,255,.06)}
html.dark #plan-offer #apply-plan{background:transparent;color:#ff8a98;border-color:#ff8a98}

/* goal card (top of client file) */
#goal-sum.goal-sum{display:flex;flex-direction:column;gap:10px;margin:0 0 16px;padding:14px 16px;border:1px solid var(--line);border-inline-start:4px solid var(--muted);border-radius:16px;background:var(--surface);box-shadow:0 6px 18px rgba(0,0,0,.05);font-size:14px;line-height:1.8;white-space:normal}
#goal-sum.goal-cut{border-inline-start-color:var(--teal)}
#goal-sum.goal-bulk{border-inline-start-color:#c88a1e}
#goal-sum.goal-conflict{border-inline-start-color:var(--red)}
#goal-sum[hidden]{display:none}
#goal-sum .goal-h{font-size:13px;font-weight:800;color:var(--muted)}
#goal-sum .goal-chips{display:flex;flex-wrap:wrap;gap:8px}
#goal-sum .goal-chip{display:inline-block;padding:5px 12px;border-radius:999px;background:rgba(222,49,70,.1);color:var(--ink);font-weight:700;font-size:13.5px;line-height:1.6}
#goal-sum .goal-detail{padding-top:10px;border-top:1px dashed var(--line)}
#goal-sum .goal-k{display:block;font-size:12px;font-weight:800;color:var(--muted)}
#goal-sum .goal-v{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
#goal-sum .goal-empty{margin:0;color:var(--muted);font-size:13px}
html.dark #goal-sum .goal-chip{background:rgba(222,49,70,.22);color:#fff}

/* refund + archive buttons: tidy stacked layout */
#refund-client,#archive-client{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin:10px 0 0;padding:12px 16px;border-radius:14px;font-size:15px;font-weight:800;text-align:center}
#refund-client{background:var(--red);border:1.5px solid var(--red);color:#fff;box-shadow:0 6px 16px rgba(222,49,70,.28)}
#archive-client{background:transparent;border:1.5px solid rgba(222,49,70,.45);color:var(--red)}
#refund-confirm,#archive-confirm{margin-top:10px}
html.dark #archive-client{color:#ff8a98;border-color:rgba(255,138,152,.5)}

/* "already sent today" bar is an info bar, not a busy button */
#bulk-arch:disabled{cursor:default;opacity:1}

/* collapsible subscription/payment log */
#history-box{margin-top:0}
#history-box>summary{align-items:center;padding:12px 16px}
#history-box .hs-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#history-box .hs-t strong{font-size:16px;line-height:1.5}
#history-box #history-summary{display:block;margin:0;font-size:12px;font-weight:600;line-height:1.5;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#history-box .hs-body{padding:0 14px 14px}
#history-box .hs-body #payment-box{margin-top:14px}

/* collapsible client-access section */
#access-box{margin-top:8px}
#access-box>summary{align-items:center;padding:12px 16px}
#access-box .hs-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
#access-box .hs-t strong{font-size:16px;line-height:1.5}
#access-box #access-sum{display:block;font-size:12px;font-weight:600;line-height:1.5;color:var(--muted)}
#access-box .hs-body{padding:0 14px 14px}
#access-box .hs-body>h3{font-size:15px;margin:6px 0 10px}
#access-section .password-field.inside .password-toggle{margin:0;top:50%;bottom:auto;transform:translateY(-50%);height:100%;max-height:none}
/* history + audit: matching bottom collapsibles */
#history-section{margin:0;padding:0;border:0}
#history-box,#audit-box{margin:14px 0 0}
#history-box>summary,#audit-box>summary{min-height:68px;padding:12px 16px;font-size:16px;line-height:1.5}
#audit-box>summary{font-weight:700}
#access-box{margin:14px 0 0}
#access-box>summary{min-height:68px;padding:12px 16px;font-size:16px;line-height:1.5}
#history-box #history-summary,#access-box #access-sum{display:block;margin:0 0 10px;padding-top:2px;font-size:13px;font-weight:700;line-height:1.7;color:var(--muted);white-space:normal;overflow:visible;text-overflow:clip}
#history-box>summary,#access-box>summary,#audit-box>summary{align-items:center}
#history-box .hs-t,#access-box .hs-t{justify-content:center}
#history-box .hs-t strong,#access-box .hs-t strong{line-height:1.5;margin:0}
#paid-label{grid-column:auto;justify-self:stretch;width:auto}
#plan-amount-label:not([hidden]){grid-column:1/-1}
#paid-label{grid-column:1/-1;justify-self:stretch;width:auto;margin:14px 0}
#paid-label .paid-cap{display:block;font-size:14px;margin-bottom:6px}
#paid-seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#paid-seg .paid-opt{height:46px;min-height:46px;margin:0;padding:0 10px;background:#fafbfc;color:var(--ink);border:1px solid #dfe1e8;box-shadow:none;font-size:14px;font-weight:700}
#paid-seg .paid-opt:hover{background:#f1f2f6}
#paid-seg .paid-opt.on.paid-true{background:#1b6d51;border-color:#1b6d51;color:#fff}
#paid-seg .paid-opt.on.paid-false{background:#b83a46;border-color:#b83a46;color:#fff}
html.dark #paid-seg .paid-opt:not(.on){background:var(--surface);color:var(--ink)}
#access-box>summary,#history-box>summary,#audit-box>summary,#access-box .hs-t strong,#history-box .hs-t strong{font-size:14px;line-height:1.5}
#archive-client,#refund-client{font-size:13px}
#danger-row{display:flex;gap:10px;margin-top:22px}
#danger-row button{flex:1 1 0;margin:0!important;height:40px;min-height:40px;padding:0 10px;font-size:13px}
#danger-row #archive-client{background:#fff;color:#b71f32;border:1px solid #f0c4ca}
/* ===== client file: exactly 3 type sizes =====
 title 18/800, section heading 15/700, body 13/600 (labels, fields, buttons, chips, hints, cards) */
#editor :not(svg):not(path):not(circle){font-size:13px!important}
#editor :is(label,p,small,span,input,select,textarea,button,a,div,li,strong,summary,option,pre){font-weight:600;line-height:1.8}
#editor .dialog-head button,#editor .dialog-head button *{font-size:20px!important}
#editor #editor-title{font-size:18px!important;font-weight:800;line-height:1.5}
#editor#editor :is(h2,h3),#editor#editor .hs-t strong,#editor#editor #plan-offer #plan-price,#editor#editor .program-file strong,#editor#editor #audit-box>summary{font-size:15px!important;font-weight:700;line-height:1.6}
#editor #audit-box>summary,#editor #access-box>summary,#editor #history-box>summary{min-height:68px}
#editor h3{margin:22px 0 8px}
#editor label,#editor .paid-cap{margin:12px 0}
#editor .form-grid label{margin:10px 0}
#editor input:not([type=checkbox]),#editor select{min-height:44px}
#editor button:not(.dialog-head button):not(.dlg-top-btn):not(.password-toggle){min-height:42px;padding-top:0;padding-bottom:0}
#editor .wa-renew .wa-btn,#editor .wa-renew .wa-chat,#editor .wa-renew .wa-open,#editor #paid-seg .paid-opt,#editor #danger-row button{height:42px;min-height:42px}
#editor .wa-renew{padding:12px;gap:8px}
#editor .hint,#editor small{color:var(--muted);font-weight:500}
#editor textarea{min-height:120px}
#editor #access-box .hs-body,#editor #history-box .hs-body{padding:0 16px 16px}
#editor#editor #editor-title{font-size:18px!important;font-weight:800}
#editor#editor button.secondary,#editor#editor .program-file button{font-size:13px!important}

/*PACKAGES*/
#packages-dialog{width:min(520px,94vw);max-height:90dvh;overflow:auto;padding:14px 16px}
#packages-dialog .dialog-head{display:flex;justify-content:flex-end;padding:0;margin:0 0 4px;border:0}
#packages-dialog .dlg-x{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;font-size:15px;border-radius:9px}
#packages-dialog h2{font-size:17px}
#packages-dialog button:not(.dlg-x){width:100%;margin-top:8px}
#packages-dialog [hidden]{display:none!important}
#pk-list{display:grid;gap:8px;margin:10px 0}
.pk-card{border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--surface)}
.pk-card p{margin:4px 0}
.pk-top{display:flex;align-items:center;gap:8px;justify-content:space-between}
.pk-off{opacity:.65}
.pk-act{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:6px}
.pk-act button{margin:0!important;min-height:38px}
#pk-form{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
