: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}@media (hover:hover) and (pointer:fine){button:hover{filter:brightness(1.15)}}button:disabled{opacity:.5;cursor:not-allowed}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}@media (hover:hover) and (pointer:fine){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:70;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(--surface,#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}
/*LIGHT-CHIP-BORDER*/html:not(.dark) .client-chip:not(:hover){border-color:#000}
/*LIGHT-CHECK-BORDER*/html:not(.dark) .check-card{border-color:#000}
.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(--surface,#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:not-allowed}
.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(--surface,#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:8px;align-items:center;justify-content:space-between;background:#fff3d6;color:#4a3300;border:1px solid #e0b64d;border-radius:10px;padding:5px 10px;margin-bottom:10px;font-size:11.5px;line-height:1.6}
#offline-banner-text{min-width:0}
#offline-banner button{min-height:30px;padding:3px 10px;font-size:11px;border-radius:8px;white-space:nowrap;flex:none;width:auto;margin:0}
#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;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(--surface,#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}

#questionnaires-dialog{width:min(560px,94vw);max-height:90dvh;overflow:auto;padding:14px 16px}
#questionnaires-dialog .dialog-head{display:flex;justify-content:flex-end;padding:0;margin:0 0 4px;border:0}
#questionnaires-dialog .dlg-x{width:32px;min-width:32px;height:32px;min-height:32px;padding:0;font-size:15px;border-radius:9px}
#questionnaires-dialog h2{font-size:17px}
#questionnaires-dialog button:not(.dlg-x){width:100%;margin-top:8px}
#questionnaires-dialog [hidden]{display:none!important}
#qs-list{display:grid;gap:8px;margin:10px 0}
.qs-act{grid-template-columns:repeat(4,1fr)!important}
#qs-form{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
.qb-sec{border:1px solid var(--line);border-radius:12px;padding:10px;margin:10px 0;display:grid;gap:8px}
.qb-q{border:1px solid var(--line);border-radius:10px;padding:10px;display:grid;gap:8px}
.qb-q-top{display:flex;align-items:center;justify-content:space-between}
.qb-q-bar{display:flex;gap:6px}
#questionnaires-dialog .qb-q-bar button{width:36px!important;min-width:36px;margin:0!important;min-height:36px;padding:0}
#questionnaires-dialog .qb-sec>button,#questionnaires-dialog .qb-q button{margin-top:0}

.pkg-box{border:1px solid var(--line);border-radius:12px;padding:12px;margin:8px 0}
.pkg-box strong{display:block;margin-bottom:4px}
.pkg-box p{margin:4px 0}
.pkg-feats{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px}
.pkg-feats li{position:relative;padding-inline-start:22px}
.pkg-feats li::before{content:"";position:absolute;inset-inline-start:2px;top:.55em;width:8px;height:8px;border-radius:50%;background:var(--accent,#b83a47)}
.pkg-detail[hidden]{display:none}
.pk-feats-edit{display:grid;gap:8px}
#packages-dialog .pk-feats-edit>button{margin-top:0}
#pk-feat-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.pk-feat-row{display:grid;grid-template-columns:1fr 40px;gap:6px}
#packages-dialog .pk-feat-row button{margin:0;width:40px;min-height:42px;padding:0}

#access-h2.pw-bad{color:var(--red);font-weight:700}

.intake-reset{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);display:grid;gap:10px}.intake-reset button{min-height:42px}

.intake-ph{gap:10px}.ph-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.ph-badge{flex:none;font-size:12px;font-weight:700;padding:2px 10px;border-radius:999px;line-height:1.7;margin-top:2px}.ph-badge.must{background:#de31461f;color:var(--red)}.ph-badge.opt{background:var(--line);color:var(--muted)}
.ph-why{margin:0}.ph-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ph-drop{display:grid;justify-items:center;gap:4px;text-align:center;padding:20px 14px;border:2px dashed var(--line);border-radius:16px;background:#fff;color:var(--ink);cursor:pointer;transition:border-color .15s,background .15s}.ph-drop svg{color:var(--red)}.ph-drop strong{font-size:15px}.ph-sub{font-size:13px;color:var(--muted)}.ph-drop:active,.ph-drop.over{border-color:var(--red);background:#de31460d}.ph-drop.full{opacity:.55;cursor:not-allowed}
.ph-input:focus-visible+.ph-count{outline:0}.ph-count{margin:0}.ph-err{margin:0}
.ph-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}.ph-item{position:relative;display:grid;gap:4px}.ph-item img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px;border:1px solid var(--line);background:#f3f1f2}.ph-name{font-size:11px;color:var(--muted);line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;text-align:start}
.ph-rm{position:absolute;top:6px;inset-inline-start:6px;width:30px;height:30px;min-height:30px;padding:0;border-radius:50%;background:#000a;color:#fff;border:0;font-size:20px;line-height:1;display:grid;place-items:center}
html.dark .ph-drop{background:#1c1e26;border-color:#3a3d4a}html.dark .ph-item img{background:#24262f}html.dark .ph-badge.opt{background:#2a2d38}
.ph-err[hidden]{display:none!important}

/*MINE-THEIRS*/#review-editor.chat .thread-reply.mine:not(.deleted),#review-editor.chat .thread-item:not(.active) .thread-msg.mine{background:#e3f1f3!important;border-color:#a9d3d8!important;color:#0f2b30}
#review-editor.chat .thread-item.active .thread-msg.mine{background:#e3f1f3!important;color:#0f2b30}
#review-editor.chat .thread-reply.theirs:not(.deleted),#review-editor.chat .thread-msg.theirs{background:#eef0f3!important;border-color:#d5d9e0!important;color:inherit}
#review-editor.chat .thread-item.active .thread-msg.theirs{border-color:var(--red)!important}
#review-editor.chat .thread-reply.mine,#review-editor.chat .thread-msg.mine{align-self:flex-start!important;border-top-right-radius:4px!important;border-top-left-radius:14px!important}
#review-editor.chat .thread-reply.theirs,#review-editor.chat .thread-msg.theirs{align-self:flex-end!important;border-top-left-radius:4px!important;border-top-right-radius:14px!important}
#review-editor.chat .thread-reply.mine .hint,#review-editor.chat .thread-msg.mine .hint{color:inherit}
html.dark #review-editor.chat .thread-reply.mine:not(.deleted),html.dark #review-editor.chat .thread-item:not(.active) .thread-msg.mine,html.dark #review-editor.chat .thread-item.active .thread-msg.mine{background:#12383f!important;border-color:#1f5a64!important;color:#e6f4f6}
html.dark #review-editor.chat .thread-reply.theirs:not(.deleted),html.dark #review-editor.chat .thread-msg.theirs{background:#2a2d36!important;border-color:#3d414d!important}
html.dark #review-editor.chat .thread-item.active .thread-msg.theirs{border-color:var(--red)!important}

#program-pdf-status.pdf-err{color:#ff6b6b;font-weight:700;font-size:16px;background:rgba(255,80,80,.12);border:1px solid #ff6b6b;border-radius:10px;padding:10px 12px;margin-top:8px}
#program-pdf-label.field-err{border-color:#ff6b6b!important;box-shadow:0 0 0 3px rgba(255,107,107,.35)}

.pdf-err{color:#ff6b6b;font-weight:700;font-size:16px;background:rgba(255,80,80,.12);border:1px solid #ff6b6b;border-radius:10px;padding:10px 12px;margin-top:8px}
label.checkbox.field-err{outline:2px solid #ff6b6b;border-radius:10px;padding:6px}

.nf-actionbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 2px 10px}
.nf-actionbar[hidden]{display:none}
.nf-count{font-size:13px;color:var(--muted);font-weight:600}
.nf-markall{width:auto!important;min-height:34px!important;display:inline-flex;align-items:center;gap:6px;padding:6px 14px!important;border-radius:999px!important;background:color-mix(in srgb,var(--teal) 12%,transparent)!important;color:var(--teal)!important;border:1px solid color-mix(in srgb,var(--teal) 35%,transparent)!important;font-size:13px!important;font-weight:700;box-shadow:none!important;margin:0!important}
.nf-markall:active{transform:scale(.97);background:color-mix(in srgb,var(--teal) 22%,transparent)!important}
.nf-actionbar{margin:10px 2px 0}

.nf-actionbar{display:flex;flex-direction:row;align-items:stretch;gap:10px;margin:0 0 4px}
.nf-actionbar>#notification-refresh{flex:1 1 0;width:auto!important;margin:0!important;min-height:44px}
.nf-actionbar>.nf-markall{flex:1 1 0;justify-content:center;min-height:44px!important;font-size:14px!important;border-radius:12px!important}
.nf-markall:disabled{opacity:.45;cursor:default;transform:none}

.nf-actionbar>.nf-markall{white-space:nowrap!important;padding:6px 10px!important;font-size:13px!important;background:var(--teal)!important;color:#fff!important;border-color:var(--teal)!important}
.nf-actionbar>#notification-refresh{white-space:nowrap;padding:6px 10px;font-size:13px}
.nf-actionbar>.nf-markall:disabled{opacity:.4}

.client-avatar{position:relative;overflow:visible}
.cbadge{position:absolute;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:999px;background:#e60012;color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center;border:2px solid var(--surface,#fff)}
.cbadge[hidden]{display:none}

.cbadge{display:flex;align-items:center;justify-content:center;line-height:1!important;padding:0 4px!important;min-width:22px;height:22px;top:-9px;right:-9px;border:3px solid rgba(255,255,255,.55)!important;background-clip:padding-box;font-variant-numeric:tabular-nums;direction:ltr}
.cbadge[hidden]{display:none!important}
html.dark .cbadge{border-color:rgba(255,255,255,.28)!important}
.cbadge{border:4px solid var(--surface)!important;background-clip:border-box!important}
.cbadge{top:-10px!important;right:-10px!important}
html.dark .cbadge{border-color:var(--surface)!important}
html.dark .client-chip:hover .cbadge{border-color:#24262f!important}
/* app scrollbars */
:root{--sb-track:#e9e4e1;--sb-thumb:linear-gradient(180deg,#e8453c,#de3146);--sb-thumb-h:linear-gradient(180deg,#ff6a3d,#e8384f)}
html.dark{--sb-track:#1a1b22}
@supports not selector(::-webkit-scrollbar){*{scrollbar-width:thin;scrollbar-color:#de3146 var(--sb-track)}}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-track{background:var(--sb-track);border-radius:99px}
::-webkit-scrollbar-thumb{background:var(--sb-thumb);border-radius:99px;border:2px solid var(--sb-track);background-clip:padding-box;min-height:36px;min-width:36px}
::-webkit-scrollbar-thumb:hover{background:var(--sb-thumb-h);background-clip:padding-box}
::-webkit-scrollbar-corner{background:transparent}
#push-row .check-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;margin:16px 0 0}
#push-row .check-card p{margin:0;font-size:14px;line-height:1.6}
#push-row .check-card button{width:auto;min-height:34px;height:34px;padding:0 16px;margin:0!important;font-size:13px;border-radius:9px;flex:none}
#notification-panel #push-row .check-card{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;margin:10px 0 4px;border-radius:12px;min-height:0}
#notification-panel #push-row .check-card p{margin:0;font-size:13px;line-height:1.4}
#notification-panel #push-row .check-card button{width:auto!important;flex:none!important;min-height:28px!important;height:28px!important;padding:0 14px!important;margin:0!important;font-size:12px!important;border-radius:8px!important}
#notification-panel .nf-actionbar>#notification-refresh,#notification-panel .nf-actionbar>.nf-markall{min-height:34px!important;height:34px!important;padding:0 12px!important;font-size:13px!important;border-radius:10px!important;align-self:center!important;line-height:1!important}
#notification-panel #push-row .check-card button{min-width:64px!important}
#notification-panel .nf-actionbar>#notification-refresh,#notification-panel .nf-actionbar>.nf-markall{min-width:0!important}
#notification-panel .nf-actionbar>#notification-refresh,#notification-panel .nf-actionbar>.nf-markall{flex:1 1 0!important;width:auto!important}
@media(min-width:700px){
#notification-panel .nf-actionbar{justify-content:flex-start!important;gap:10px!important}
#notification-panel .nf-actionbar>#notification-refresh,#notification-panel .nf-actionbar>.nf-markall{flex:0 0 auto!important;width:auto!important;padding:0 20px!important;min-width:150px!important}
#notification-panel #push-row .check-card{width:fit-content;min-width:300px;max-width:100%;gap:18px}
}
.bc-row{margin:12px 0 0}.bc-btn{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;background:rgba(222,49,70,.10);color:var(--red);border:1px solid rgba(222,49,70,.45);border-radius:14px;padding:13px 16px;font-weight:700;margin-top:0}.bc-btn:active{background:rgba(222,49,70,.2)}
#bc-dialog .bc-list{max-height:200px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:6px 12px;margin:8px 0}
#bc-dialog .bc-list p{margin:3px 0;font-size:14px}
.msg-bc{display:block;margin-top:2px;font-size:11px;color:var(--muted);opacity:.85;line-height:1.3}
@media(min-width:700px){#notification-panel .nf-actionbar{justify-content:center!important}}
#nf-wrap{display:contents}
@media(min-width:700px){
#notification-panel #nf-wrap{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:6px 0 10px}
#notification-panel #nf-wrap>#notif-filters{order:0;margin:0!important;flex:1 1 auto}
#notification-panel #nf-wrap>.nf-actionbar{order:1;margin:0!important;justify-content:flex-end!important;flex:0 0 auto}
}
.nc-wrap{position:relative}
.nc-wrap .nc-results{position:absolute;top:calc(100% - 14px);inset-inline:0;z-index:60;margin:0;padding:6px;gap:2px;max-height:min(320px,50vh);overflow-y:auto;background:var(--surface,#fff);border:1px solid var(--line);border-radius:14px;box-shadow:0 14px 34px rgba(0,0,0,.28)}
html.dark .nc-wrap .nc-results{background:#1a1c22;border-color:#3a3d47;box-shadow:0 14px 34px rgba(0,0,0,.6)}
.nc-wrap .nc-results[hidden]{display:none}
#workspace .nc-wrap .nc-item{justify-content:flex-start;gap:10px;padding:9px 12px}
.nc-wrap .nc-item .nc-name{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nc-wrap .nc-item .nc-code{flex:none}
.nc-wrap .nc-item .tag{flex:none;margin:0}
.nc-wrap .nc-results>.hint{margin:6px 8px}
.nc-wrap .nc-results{top:calc(100% + 2px)}
#workspace .nc-wrap .nc-results .nc-item,.nc-wrap .nc-results .nc-item{justify-content:flex-start!important;text-align:start!important}
.weekly-renew{margin:12px 0 4px;text-align:center}.weekly-renew p{margin:0 0 4px;font-size:.92em;opacity:.85}.weekly-renew .msg-wa{font-size:.95em;min-height:40px;padding:6px 16px 6px 12px}
.plan-warn{margin:0 0 8px;padding:8px 10px;border-radius:10px;border:1px solid #ff5a5a;background:rgba(255,70,70,.12);color:#ff7a7a;font-weight:700}
.bc-bar{position:fixed;z-index:2147482000;left:50%;bottom:16px;transform:translateX(-50%);max-width:calc(100% - 24px);display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:#17181d;color:#fff;border:1px solid #3a3d48;box-shadow:0 8px 24px rgba(0,0,0,.35);font-weight:700;font-size:14px;direction:rtl}
.bc-bar.bc-err{border-color:#ff5a5a}
.bc-bar button{min-width:0!important;height:34px!important;width:auto!important;padding:0 12px;border-radius:10px;font-size:13px}
.bc-bar{position:fixed;z-index:2147482000;left:50%;bottom:16px;transform:translateX(-50%);max-width:calc(100% - 24px);display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:14px;background:#17181d;color:#fff;border:1px solid #3a3d48;box-shadow:0 8px 24px rgba(0,0,0,.35);font-weight:700;font-size:14px;direction:rtl}
.bc-bar.bc-err{border-color:#ff5a5a}
.bc-bar button{min-width:0!important;height:34px!important;width:auto!important;padding:0 12px;border-radius:10px;font-size:13px}

.qb-guide{border:1px solid var(--line);border-radius:12px;background:var(--surface);margin:12px 0;padding:0 12px}
.qb-guide>summary{cursor:pointer;font-weight:700;padding:12px 0;min-height:44px;list-style:none;color:var(--teal)}
.qb-guide>summary::-webkit-details-marker{display:none}
.qb-guide>summary::before{content:'▸ ';display:inline-block}
.qb-guide[open]>summary::before{content:'▾ '}
.qb-gk{border-top:1px solid var(--line);padding:10px 0}
.qb-gp{margin:4px 0;font-size:13px;line-height:1.8}
.qb-do{list-style:none;margin:6px 0 0;padding:0;font-size:13px}
.qb-do li{color:var(--teal)}.qb-do li.no{color:#b71f32}
.qb-statbox{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:12px 0;display:grid;gap:4px}
.qb-st{display:flex;gap:6px;align-items:baseline;font-size:13px}
.qb-st.ok b{color:var(--teal)}.qb-st.miss b{color:#c4861a}.qb-st.opt b{color:var(--muted)}
.qb-st small{color:var(--muted)}.qb-st.miss small{color:#a36a00}
.qb-badges{display:flex;flex-wrap:wrap;gap:6px}
.qb-badge,.qb-warnb{font-size:12px;font-weight:600;border-radius:999px;padding:2px 10px;line-height:1.7}
.qb-badge{background:#e6f3ef;color:#1f6354}.qb-warnb{background:#fff4dc;color:#8a5a00;border-radius:10px}
html.dark .qb-badge{background:#16302a;color:#7fd0bb}html.dark .qb-warnb{background:#33290f;color:#e8bd63}html.dark .qb-do li.no{color:#ff8a98}

.qb-st-h{margin:0 0 4px}.qb-st span{line-height:1.7}

.pkg-feats li::before{content:"✓";width:auto;height:auto;top:0;background:none;border-radius:0;color:var(--teal);font-weight:700;font-size:14px;inset-inline-start:2px}

.history-pay{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:10px;background:var(--bg,#f4f5f8);border:1px solid var(--line,#e3e6ee)}
.history-pay.is-voided{opacity:.6}.history-pay.is-voided strong{text-decoration:line-through}
.history-pay .history-void{align-self:flex-start}
html.dark .history-pay{background:#171a24;border-color:#3a4052}

.history-row .history-void[data-void-both]{border-color:#f0c4ca;color:#b71f32}

.history-act{display:grid;gap:4px;justify-items:start}.history-act .hint{margin:0;font-size:12px;line-height:1.6}

@media(min-width:761px){html .workspace-nav,html .workspace-nav[aria-label],html #client-view .workspace-nav{max-width:900px;width:100%}}
@media(min-width:761px){html .workspace-nav a,html #client-view .workspace-nav a{flex-direction:row!important;gap:8px!important;min-height:52px!important;font-size:15px!important}html .workspace-nav a .nv-t{overflow:visible;text-overflow:clip;max-width:none}}
@media(min-width:761px){html .workspace-nav a,html #client-view .workspace-nav a{align-items:center!important;justify-content:center!important;line-height:1!important}html .workspace-nav a .nv-i{display:block;margin:0}html .workspace-nav a .nv-t{display:block;line-height:1;padding:0;margin:0}html .workspace-nav,html #client-view .workspace-nav{margin-top:22px!important;margin-bottom:22px!important}}
html .workspace-nav,html #client-view .workspace-nav{margin-top:22px!important;margin-bottom:22px!important}
/*ALTS-CLIENT-CARD*/
#client-view>#alts-section{--acc:#8b6bd9;--tint:#f6f2fe;background-color:var(--tint);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}
html.dark #client-view>#alts-section{--acc:#a58cf0;--tint:#181426;border-color:#2a3042;border-top-color:var(--acc);box-shadow:0 12px 32px #0006}
/*OVERVIEW-PANEL*/
#coach-overview{--acc:#de3146;--tint:#fff8f8;background:var(--tint);border:1px solid #e3e6ee;border-top:5px solid var(--acc);border-radius:20px;padding:22px 16px 20px;margin:20px 0 0;box-shadow:0 12px 32px #1c233312}
html.dark #coach-overview{--acc:#ff5468;--tint:#1d1517;border-color:#2a3042;border-top-color:var(--acc);box-shadow:0 12px 32px #0006}
#coach-overview>.stats{margin:0 0 14px}
#coach-overview>.renewal-strip{margin:0}
#workspace.ws-inbox #coach-overview,#workspace.ws-alerts #coach-overview,#workspace.ws-finance #coach-overview,#workspace.ws-altspg #coach-overview{display:none}
/*HEADER-SHADOW*/
html header,html body.guest header,html body:not(.guest) header{box-shadow:0 6px 18px -8px rgba(28,35,51,.22)}
html.dark header,html.dark body.guest header,html.dark body:not(.guest) header{box-shadow:0 8px 22px -8px rgba(0,0,0,.65)}
/*BANNER-SHADOW*/
html .coach-hero,html .client-intro{box-shadow:0 10px 24px -10px rgba(28,35,51,.35)}
html.dark .coach-hero,html.dark .client-intro{box-shadow:0 12px 26px -10px rgba(0,0,0,.7)}
/*NAV-SHADOW*/
html .workspace-nav,html #client-view .workspace-nav{box-shadow:0 10px 24px -10px rgba(28,35,51,.4),inset 0 1px 0 rgba(255,255,255,.07)!important}
html.dark .workspace-nav,html.dark #client-view .workspace-nav{box-shadow:0 12px 26px -10px rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.07)!important}
.notif-limit{margin:10px 2px 8px;font-size:12px}
.titlebar .notif-limit{margin:0 0 4px}
/*HEADER-GAPS*/
html body header{padding-top:22px!important}html body main{padding-top:12px!important}
/*NOTIF-GAPS*/
#notification-panel .titlebar h2{margin-bottom:0}
#notification-panel .titlebar .notif-limit{margin:2px 0 4px}
#notification-panel #push-row .check-card{margin:10px 0 10px}
#notification-panel #nf-wrap{row-gap:10px;margin:0 0 10px}
@media(max-width:699px){#notification-panel .nf-actionbar{margin:0 0 10px!important}#notification-panel #notif-filters{margin:0 0 10px!important}}
#notification-panel #notif-filters.nf-bar{padding-bottom:0!important}
#coach-overview{margin-top:28px}
html #client-view .workspace-nav{margin-bottom:28px!important}
html #client-view.cv-alerts{margin-bottom:0}
/*MOBILE-NAV-GAP-25*/
@media(max-width:760px){html #coach-overview,html #notification-panel,html #finance-panel,html #alts-panel,html #workspace.ws-inbox>#coach-checkins{margin-top:25px!important}html #client-view .workspace-nav{margin-bottom:25px!important}}

#delete-archived{margin-top:12px;width:100%}
#danger-row #delete-client{background:#b71f32;color:#fff;border:1px solid #b71f32}

#danger-row{flex-wrap:wrap}


.history-quiet{font-size:13px;color:#7a8090;padding:6px 4px;border-bottom:1px dashed var(--line,#e3e6ee)}
.history-cancelled{margin:6px 0 10px}
.history-cancelled>summary{font-size:13px;color:#7a8090;cursor:pointer;padding:6px 2px}
html.dark .history-quiet,html.dark .history-cancelled>summary{color:#9aa1b3}

/* desktop: contact box buttons side by side (user 02:29) */
@media (min-width:720px){.wa-renew{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wa-renew>.wa-title,.wa-renew>.hint,.wa-renew>.wa-confirm{grid-column:1/-1}}

/* mobile: cleaner contact box (user 02:33) */
@media (max-width:719px){
.wa-renew{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;border-radius:16px}
.wa-renew>.wa-title,.wa-renew>.hint,.wa-renew>.wa-confirm,.wa-renew>.wa-btn:not(.wa-plain),.wa-renew>.wa-chat{grid-column:1/-1}
.wa-renew .wa-btn,.wa-renew .wa-chat,.wa-renew .wa-open{height:auto;min-height:46px;padding:8px 4px;font-size:13px;border-radius:12px}
.wa-renew .wa-plain,.wa-renew .wa-open{font-weight:600}
.wa-renew>.hint{margin:2px 2px 0;font-size:12px;opacity:.75}
}
#plan-offer #plan-applied{font-size:12px;line-height:1.7;color:var(--muted);border-top:0;padding-top:0}

#editor #program{min-height:0;resize:none;overflow-y:auto}

#save-client:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.6)}

/* file card: clean date line and button icons (user 02:40) */
.program-file .file-date{white-space:nowrap;font-size:12.5px;line-height:1.6;color:var(--muted);direction:rtl;text-align:right}
.program-file button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px}
.program-file button svg{width:18px!important;height:18px!important;flex:none;stroke-width:1.8}

/* contact box: number line at the start (right), equal top/bottom space (user 02:44) */
.wa-renew>.hint{text-align:start!important;margin:2px 4px 0!important;line-height:1.2!important;padding:0!important}
.wa-renew{padding-block:14px!important}
@media (max-width:719px){.wa-renew{padding-block:12px!important}}

/* file card buttons: equal size, aligned, same on desktop and mobile (user 02:45) */
.program-file{display:grid!important;grid-template-columns:1fr;gap:8px!important;align-items:stretch}
.program-file>strong,.program-file>p,.program-file>.hint{grid-column:1/-1}
.program-file>button{width:100%!important;min-width:0!important;height:42px!important;min-height:42px!important;margin:0!important;padding:0 10px!important;font-size:13px!important;white-space:nowrap}
.program-file>button:nth-of-type(3),.program-file>button:nth-of-type(4){grid-column:1/-1}

.program-file{position:relative}
.program-file>strong{padding-left:44px}
.program-file .file-badge{position:absolute;top:10px;left:10px;width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(222,49,70,.1);color:var(--red)}
.program-file .file-badge svg{width:19px;height:19px;stroke-width:1.7}
html.dark .program-file .file-badge{background:rgba(222,49,70,.2);color:#ff8a98}

:is(#client-view,#editor) .file-row{scrollbar-width:thin!important;scrollbar-color:#d9000b #e6e8ee;scroll-snap-type:x mandatory!important;scroll-behavior:smooth;cursor:grab;padding:4px 2px 14px!important;touch-action:pan-x pan-y}
:is(#client-view,#editor) .file-row::-webkit-scrollbar{display:block!important;height:6px}
:is(#client-view,#editor) .file-row::-webkit-scrollbar-thumb{background:#d9000b;border-radius:6px}
:is(#client-view,#editor) .file-row::-webkit-scrollbar-track{background:#e6e8ee;border-radius:6px}
:is(#client-view,#editor) .file-row.dragging{cursor:grabbing;scroll-snap-type:none!important;scroll-behavior:auto;user-select:none}
:is(#client-view,#editor) .file-row .program-file{flex:0 0 200px!important;min-width:200px;scroll-snap-align:center!important}
#client-programs .file-row{display:flex!important;overflow-x:auto!important}
#client-programs .file-row .program-file{width:200px!important}

.program-file>button[hidden]{display:none!important}

.program-file>button{position:relative!important;justify-content:center!important;text-align:center}
.program-file>button svg{position:absolute!important;right:14px;left:auto;top:50%;transform:translateY(-50%)}

.program-file>.del-pair{display:grid!important;grid-template-columns:1fr 1fr;gap:8px}
.program-file>.del-pair[hidden]{display:none!important}
.program-file>.del-pair button{height:42px!important;min-height:42px!important;margin:0!important;width:100%!important;font-size:13px!important;display:inline-flex!important;justify-content:center;align-items:center}

#renew-client:disabled{background:#c9ccd3!important;color:#f5f6f8!important;border-color:#c9ccd3!important;opacity:1!important;cursor:not-allowed!important;filter:none!important}

#client-list .client-chip{flex:0 0 170px!important;width:170px!important;min-width:170px!important;max-width:170px!important;align-self:stretch}
#client-list .client-chip .chip-name{display:block;width:100%;max-width:100%;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;word-break:normal!important}
#client-list .client-chip .chip-name{unicode-bidi:plaintext!important;text-align:center}
#client-list .client-chip{box-shadow:0 4px 14px rgba(28,35,51,.10)}
html.dark #client-list .client-chip{box-shadow:0 4px 14px rgba(0,0,0,.35)}
#client-list.clients{padding:8px 6px 20px!important}
#client-list .client-chip{box-shadow:0 6px 20px rgba(28,35,51,.20),0 2px 6px rgba(28,35,51,.10)}
html.dark #client-list .client-chip{box-shadow:0 6px 20px rgba(0,0,0,.5)}
#client-list.clients{padding:10px 10px 26px!important}
#workspace .nc-wrap .nc-item .tag{margin-inline-start:auto!important}

.save-pop.copy-pop{margin:0!important;border:0!important;padding:0!important;background:transparent!important;overflow:visible!important;inset:auto;left:50%;width:0;height:0;color:inherit}
.save-pop.copy-pop::backdrop{background:none}

.alt-card>.alt-actions button,.alt-card>.alt-actions .alt-cf{height:30px!important;min-height:30px!important;min-width:0!important;padding:0 12px!important;font-size:13px!important;border-radius:9px!important;line-height:1!important;margin:0!important}
.alt-card>.alt-actions{align-items:center}

.alt-group-act:not(.alt-group-cf){width:100%;flex-wrap:nowrap;justify-content:flex-start;gap:6px}
.alt-group-act:not(.alt-group-cf) button{flex:0 0 auto;white-space:nowrap;display:inline-flex;align-items:center;gap:5px;padding:0 10px!important}
.alt-plus{display:block;flex:none}

.alt-up{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:4px}
.alt-up-th{display:flex;flex-wrap:wrap;gap:6px}
.alt-up-t{position:relative;width:64px;height:64px;border-radius:8px;overflow:hidden;background:#eee}
.alt-up-t img{width:64px;height:64px;object-fit:cover;display:block}
.alt-up-x{position:absolute;top:2px;left:2px;width:22px!important;height:22px!important;min-height:0!important;min-width:0!important;padding:0!important;border-radius:11px!important;background:rgba(0,0,0,.65)!important;color:#fff!important;border:0!important;font-size:15px!important;line-height:1!important}
.alt-up-add{display:inline-flex;align-items:center;gap:5px;height:30px!important;min-height:30px!important;min-width:0!important;padding:0 12px!important;font-size:13px!important;border-radius:9px!important;line-height:1!important}
.alt-up-st{font-size:12px;color:#6b7280}
.alt-meter{font-size:12px;color:#6b7280;margin:8px 0 0}
.alt-meter-warn{color:#b83a46;font-weight:700}

.alt-sumrow{display:flex;align-items:center;gap:8px;min-width:0}
.alt-sumrow>.alt-actions{padding:0!important;flex:0 0 auto}
.alt-sumrow>.alt-en{flex:1;min-width:0;text-align:left}
.alt-sumrow>.alt-actions button,.alt-sumrow>.alt-actions .alt-cf{height:30px!important;min-height:30px!important;min-width:0!important;padding:0 12px!important;font-size:13px!important;border-radius:9px!important;line-height:1!important;margin:0!important}
.alt-sumrow>.alt-actions{align-items:center;gap:6px}

.alt-sumrow{align-items:flex-start!important}
.alt-sumrow>.alt-title{flex:1 1 0;min-width:0}
.alt-sumrow>.alt-actions{margin-inline-start:auto;flex:0 0 auto}
.alt-sumrow>.alt-en{flex:none;text-align:right}

.alt-sumrow{align-items:center!important}
.alt-sumrow>.alt-note{flex:1 1 0;min-width:0}
.alt-sumrow>.alt-actions{margin-inline-start:auto}

.alt-up-restore{height:26px!important;min-height:26px!important;min-width:0!important;padding:0 10px!important;font-size:12px!important;border-radius:8px!important;line-height:1!important;align-self:center}

.alt-irow{display:flex;align-items:flex-start;gap:8px;min-width:0}
.alt-irow>b{flex:1 1 0;min-width:0;overflow-wrap:anywhere}
.alt-irow>.alt-iact{margin-top:0!important;margin-inline-start:auto;flex:0 0 auto;align-self:flex-start}

.alt-items li>.alt-iact{align-self:flex-end;margin-top:4px!important;margin-inline-start:0}

.alt-chip[data-group]{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.alt-chip-lift{transform:scale(1.1);box-shadow:0 4px 14px rgba(0,0,0,.25);position:relative;z-index:2}
.alt-group-act.alt-group-cf{width:100%;flex-wrap:nowrap;justify-content:flex-start;gap:6px}
.alt-group-act.alt-group-cf button{flex:0 0 auto;white-space:nowrap;padding:0 12px!important}
.alt-up-add{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;max-width:64px;flex-direction:column;justify-content:center;gap:4px!important;padding:0!important;border-radius:8px!important;font-size:12px!important;box-sizing:border-box;white-space:nowrap}
.alt-chip-add{border-style:dashed!important;white-space:nowrap}
.alt-pick{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 12px}.alt-pick .alt-chip{min-height:34px;padding:0 12px;font-size:13px}
.alt-row-add{display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:6px}.alt-row-add .alt-plus{flex:0 0 auto}
.alt-row-top{align-items:center}
.alt-row-del,.alt-row-add{height:auto!important;min-height:0!important;box-sizing:border-box;margin:0!important;padding-block:0!important;line-height:1.2!important}.alt-row-top{align-items:center}

.pkg-head{all:unset;box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pkg-head strong{margin:0!important}
.pkg-head:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:8px}
.pkg-chev{flex:none;color:var(--muted);transition:transform .2s}
.pkg-box.pkg-closed .pkg-chev{transform:rotate(-90deg)}
.pkg-body{margin-top:6px}
.pkg-head,.pkg-head:hover,.pkg-head:active,.pkg-head:focus{background:transparent!important;color:var(--ink)!important;box-shadow:none!important;filter:none!important;border:0!important;transform:none!important}
#client-view>#alts-section{background-image:url(/art/alts-l.svg);background-repeat:no-repeat;background-position:left 14px top 34px;background-size:100px auto}
html.dark #client-view>#alts-section{background-image:url(/art/alts-d.svg)}
#client-view>#alts-section{background-size:54px auto;background-position:left 16px top 22px}#client-view>#alts-section>.eyebrow,#client-view>#alts-section>h2{padding-left:72px}

#notification-panel.embedded{background-image:url(/art/alerts-l.svg);background-repeat:no-repeat;background-position:left 16px top 22px;background-size:54px auto;background-color:var(--tint)}
html.dark #notification-panel.embedded{background-image:url(/art/alerts-d.svg)}
#notification-panel.embedded .titlebar .eyebrow,#notification-panel.embedded .titlebar h2{padding-left:72px}
#notification-panel.embedded .titlebar>div{flex:1 1 auto;min-width:0}
#notification-panel.embedded .titlebar .eyebrow{display:block;text-align:left;direction:ltr;color:var(--acc)!important;margin:0 0 16px!important;line-height:19px;padding-right:0}
#notification-panel.embedded .titlebar h2{margin:0!important;min-height:46px;display:flex;align-items:center}

/* coach sections: same label + drawing layout as the trainee sections */
#alts-panel,#finance-panel,#notification-panel:not(.embedded),#workspace>#coach-checkins{background-repeat:no-repeat!important;background-position:left 16px top 22px!important;background-size:54px auto!important;background-color:var(--tint)!important}
#alts-panel{background-image:url(/art/alts-l.svg)!important}html.dark #alts-panel{background-image:url(/art/alts-d.svg)!important}
#finance-panel{background-image:url(/art/finance-l.svg)!important}html.dark #finance-panel{background-image:url(/art/finance-d.svg)!important}
#notification-panel:not(.embedded){background-image:url(/art/alerts-l.svg)!important}html.dark #notification-panel:not(.embedded){background-image:url(/art/alerts-d.svg)!important}
#workspace>#coach-checkins{background-image:url(/art/checkins-l.svg)!important}html.dark #workspace>#coach-checkins{background-image:url(/art/checkins-d.svg)!important}
#alts-panel .titlebar,#finance-panel .titlebar,#notification-panel:not(.embedded) .titlebar,#workspace>#coach-checkins .titlebar{display:block}
#alts-panel .titlebar .eyebrow,#finance-panel .titlebar .eyebrow,#notification-panel:not(.embedded) .titlebar .eyebrow,#workspace>#coach-checkins .titlebar .eyebrow{display:block;text-align:left;direction:ltr;color:var(--acc)!important;margin:0 0 16px!important;line-height:19px;padding-left:72px}
#alts-panel .titlebar h2,#finance-panel .titlebar h2,#notification-panel:not(.embedded) .titlebar h2,#workspace>#coach-checkins .titlebar h2{margin:0!important;min-height:46px;display:flex;align-items:center}
#notification-panel:not(.embedded) #notif-back,#workspace>#coach-checkins .inbox-filters{margin-top:10px}
#notification-panel.embedded{padding-left:18px!important;padding-right:18px!important}#notification-panel.embedded .titlebar{margin-top:0!important}

#notification-list.notif-scroll::before{content:"";display:block;position:sticky;top:0;height:16px;margin:-2px 0 -14px;z-index:5;pointer-events:none;background:linear-gradient(rgba(28,35,51,.22),rgba(28,35,51,.08) 45%,transparent);border-radius:12px 12px 0 0;opacity:0;transition:opacity .15s}
#notification-list.notif-scroll.notif-top-shadow::before{opacity:1}
html.dark #notification-list.notif-scroll::before{background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.2) 45%,transparent)}
/*CSEL*/
.cs-menu{position:fixed;inset:auto;margin:0;padding:6px;border:1px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 14px 36px rgba(24,26,32,.2),0 2px 6px rgba(24,26,32,.08);overflow-y:auto;overscroll-behavior:contain;font-family:inherit;direction:rtl;text-align:right;outline:0;scrollbar-width:thin;scrollbar-color:var(--red) transparent}
.cs-menu:not(:popover-open){display:none}
.cs-opt{all:unset;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:8px 14px;border-radius:12px;font-family:inherit;font-size:15px;font-weight:600;line-height:1.5;color:var(--ink);cursor:pointer;-webkit-tap-highlight-color:transparent}
.cs-opt:hover,.cs-opt:focus-visible{background:#f3f4f7}
.cs-opt:active{background:#fff0f1}
.cs-opt.on{background:#fff0f1;color:var(--red)}
.cs-opt[aria-disabled=true]{opacity:.4;cursor:default}
.cs-ck{font-style:normal;font-weight:800;color:var(--red);visibility:hidden}
.cs-opt.on .cs-ck{visibility:visible}
.cs-grp{padding:8px 14px 4px;font-size:12px;font-weight:700;color:var(--muted)}
select[aria-expanded=true]{border-color:var(--red)!important;box-shadow:0 0 0 3px rgba(222,49,70,.15)}
html.dark .cs-menu{background:#22242d;border-color:#3a3d47;box-shadow:0 14px 36px rgba(0,0,0,.55)}
html.dark .cs-opt:hover,html.dark .cs-opt:focus-visible{background:#2d3039}
html.dark .cs-opt.on,html.dark .cs-opt:active{background:#3a2227;color:#ff6b7d}
html.dark .cs-ck{color:#ff6b7d}
.cs-menu .cs-opt:focus,.cs-menu .cs-opt:focus-visible{outline:0!important;box-shadow:none!important}.cs-menu .cs-opt:focus-visible{background:#f3f4f7}.cs-menu .cs-opt.on:focus-visible{background:#ffe3e6}html.dark .cs-menu .cs-opt.on:focus-visible{background:#4a2a30}

/*FILEBAR*/
:is(#client-view,#editor) .file-row{scrollbar-width:none!important}
:is(#client-view,#editor) .file-row::-webkit-scrollbar{display:none!important}
/*NOTIF-ALIGN*/html #notification-panel.embedded{padding-left:16px!important;padding-right:16px!important}html #notification-panel.embedded .titlebar{margin-top:16px!important}

.cs-menu{box-sizing:border-box;overflow-x:hidden}.cs-opt{white-space:normal;overflow-wrap:anywhere;word-break:break-word;align-items:center}.cs-opt>span{min-width:0;flex:1 1 auto;text-align:right}

#packages-dialog button.dlg-top-btn{width:46px!important;min-width:46px;margin-top:0!important;margin-inline-start:auto}

/*ASK*/
#ask-confirm{max-width:330px;padding:14px 16px}
#ask-confirm .dialog-head{padding-bottom:0;margin-bottom:4px;border-bottom:0}
#ask-confirm .dialog-head h2{font-size:15px}
#ask-confirm .dialog-head button{min-width:32px;width:32px;height:32px;min-height:32px;padding:0;font-size:15px;border-radius:9px}
#ask-confirm p{margin:2px 0 12px;font-size:14px;text-align:center}
#ask-confirm .actions{justify-content:center;gap:8px}
#ask-confirm .actions button{min-height:38px;padding:7px 14px;font-size:13px}
#ask-confirm .dialog-head button{min-width:46px;width:46px;height:46px;min-height:46px;font-size:18px;border-radius:12px}
#ask-confirm .actions button{min-height:46px;height:46px;padding:0 16px}
#ask-confirm p{white-space:pre-line}

/*SELARROW*/
html select:not([multiple]):not([size]){-webkit-appearance:none!important;appearance:none!important;background-image:url(/art/chev-l.svg)!important;background-repeat:no-repeat!important;background-size:18px 18px!important;background-position:left 11px center!important;padding-inline-end:12px;padding-left:38px}
html[dir=rtl] select:not([multiple]):not([size]){padding-right:12px}
html.dark select:not([multiple]):not([size]){background-image:url(/art/chev-d.svg)!important}
html select:not([multiple]):not([size])[aria-expanded=true]{background-image:url(/art/chev-up-l.svg)!important}
html.dark select:not([multiple]):not([size])[aria-expanded=true]{background-image:url(/art/chev-up-d.svg)!important}
/*CHECKSVG*/
.cs-ck{display:inline-flex;width:18px;height:18px;flex:0 0 18px;color:var(--red)}.cs-ck svg{display:block}
html.dark .cs-ck{color:#ff6b7d}
.pkg-feats li::before{content:""!important;display:block;width:14px!important;height:14px!important;top:6px!important;background:var(--teal)!important;-webkit-mask:url(/art/check.svg) center/contain no-repeat;mask:url(/art/check.svg) center/contain no-repeat;font-size:0!important}

/*CSUNIFY*/
html .cs-menu{padding:6px!important;border-radius:16px!important;box-sizing:border-box!important}
html .cs-menu .cs-opt{box-sizing:border-box!important;min-height:44px!important;height:auto!important;padding:8px 14px!important;margin:0!important;border-radius:12px!important;font-size:15px!important;font-weight:600!important;line-height:1.5!important;width:100%!important}
html .cs-menu .cs-opt>span{font-size:inherit!important;font-weight:inherit!important;line-height:inherit!important}
html :is(#editor,#packages-dialog,#tracker-dialog,#review-editor,#intake-answers,#history-editor,#restore-editor,#questionnaires-dialog,#password-dialog,#file-viewer,#offline-dialog,body) .cs-menu.cs-menu .cs-opt.cs-opt,html :is(#editor,#packages-dialog,#tracker-dialog,#review-editor,#intake-answers,#history-editor,#restore-editor,#questionnaires-dialog,#password-dialog,#file-viewer,#offline-dialog,body) .cs-menu.cs-menu .cs-opt.cs-opt>span{font-size:15px!important;font-weight:600!important;line-height:1.5!important}

/* CSMOBILE: compact dropdown lists on phones */
@media (max-width:600px){
html:not(#zz):not(#zy) :is(#editor,#packages-dialog,#tracker-dialog,#review-editor,#intake-answers,#history-editor,#restore-editor,#questionnaires-dialog,#password-dialog,#file-viewer,#offline-dialog,body) .cs-menu.cs-menu.cs-menu{padding:4px!important;border-radius:14px!important;scrollbar-width:thin!important;scrollbar-color:#c9ccd4 transparent!important}
html:not(#zz):not(#zy) :is(#editor,#packages-dialog,#tracker-dialog,#review-editor,#intake-answers,#history-editor,#restore-editor,#questionnaires-dialog,#password-dialog,#file-viewer,#offline-dialog,body) .cs-menu.cs-menu.cs-menu::-webkit-scrollbar{width:4px!important}
html:not(#zz):not(#zy) :is(#editor,#packages-dialog,#tracker-dialog,#review-editor,#intake-answers,#history-editor,#restore-editor,#questionnaires-dialog,#password-dialog,#file-viewer,#offline-dialog,body) .cs-menu.cs-menu.cs-menu::-webkit-scrollbar-track{background:transparent!important;border:0!important}
html:not(#zz):not(#zy) :is(#editor,#packages-dialog,#tracker-dialog,#review-editor,#intake-answers,#history-editor,#restore-editor,#questionnaires-dialog,#password-dialog,#file-viewer,#offline-dialog,body) .cs-menu.cs-menu.cs-menu::-webkit-scrollbar-thumb{background:#c9ccd4!important;border:0!important;border-radius:4px!important;min-height:24px!important}
html:not(#zz):not(#zy) :is(#editor,#packages-dialog,#tracker-dialog,#review-editor,#intake-answers,#history-editor,#restore-editor,#questionnaires-dialog,#password-dialog,#file-viewer,#offline-dialog,body) .cs-menu.cs-menu.cs-menu .cs-opt.cs-opt.cs-opt{min-height:34px!important;padding:5px 9px!important;gap:7px!important;border-radius:9px!important;font-size:12px!important;line-height:1.35!important}
html:not(#zz):not(#zy) :is(#editor,#packages-dialog,#tracker-dialog,#review-editor,#intake-answers,#history-editor,#restore-editor,#questionnaires-dialog,#password-dialog,#file-viewer,#offline-dialog,body) .cs-menu.cs-menu.cs-menu .cs-opt.cs-opt.cs-opt>span{font-size:12px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;text-overflow:ellipsis!important}
html:not(#zz):not(#zy) :is(#editor,#packages-dialog,#tracker-dialog,#review-editor,#intake-answers,#history-editor,#restore-editor,#questionnaires-dialog,#password-dialog,#file-viewer,#offline-dialog,body) .cs-menu.cs-menu.cs-menu .cs-ck{flex:0 0 auto}
}

/* TAPAREA: bigger invisible hit area for small dialog close buttons */
.dlg-x{position:relative}
.dlg-x::after{content:"";position:absolute;inset:-7px -5px}

/* ROSTER-HEAD: roster card header same layout as the other section cards */
#workspace>#roster-section{background-size:54px auto;background-position:left 16px top 22px}
#workspace>#roster-section>.section-heading{display:block;margin-top:16px}
#workspace>#roster-section>.section-heading .eyebrow{display:block;text-align:left;direction:ltr;color:var(--acc)!important;margin:0 0 16px!important;line-height:19px;padding-left:72px}
#workspace>#roster-section>.section-heading h2{margin:0!important;min-height:46px;display:flex;align-items:center}

/* MSGPOP: inline status messages shown as the popup pill */
.msg-hidden{position:absolute!important;inset:auto!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;opacity:0!important;pointer-events:none!important}
.save-pop.msg-pop .save-pop-txt{white-space:normal;width:max-content;max-width:min(88vw,340px);text-align:center;font-size:13px;line-height:1.55;padding:6px 14px;border-radius:16px;animation-name:msgPop;animation-timing-function:ease-out;animation-fill-mode:forwards}
.save-pop.msg-pop.is-err .save-pop-txt{background:#d9000b}
@keyframes msgPop{0%{opacity:0;transform:translate(-50%,10px) scale(.6)}6%{opacity:1;transform:translate(-50%,-6px) scale(1.06)}10%{transform:translate(-50%,-4px) scale(1)}90%{opacity:1;transform:translate(-50%,-4px) scale(1)}100%{opacity:0;transform:translate(-50%,-14px) scale(.98)}}
@media (prefers-reduced-motion:reduce){.save-pop.msg-pop .save-pop-txt{animation-name:savePopRM}}

/* OPTSROW: 3 short radio options on one line */
.intake-opts.opts-row{flex-wrap:nowrap;gap:5px}
.intake-opts.opts-row .intake-opt{flex:1 1 0;min-width:0;justify-content:center;gap:4px;padding:8px 4px;font-size:12px;white-space:nowrap}
.intake-opts.opts-row .intake-opt input[type=radio]{width:12px;height:12px}

/* QSHORT: compact answer box for short-answer text questions */
.intake-q textarea.q-short{min-height:44px;height:44px;resize:none;overflow:hidden;line-height:1.5;padding-top:10px;padding-bottom:10px}
/*NOTIF-GRIDFIX*/#notification-list.notif-scroll::before{display:none!important}
#notification-list.notif-scroll.notif-top-shadow{box-shadow:inset 0 14px 12px -12px rgba(28,35,51,.28)}
html.dark #notification-list.notif-scroll.notif-top-shadow{box-shadow:inset 0 14px 12px -12px rgba(0,0,0,.6)}

/*PEND185*/
.tracker-done-open strong{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere;line-height:1.35;padding:6px 0;text-align:start}
.tracker-done-open{align-items:center}
.tracker-done .tracker-status{display:none!important}
.tracker-done-warn{flex:none;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#d97706;color:#fff;font-size:16px;font-weight:800;line-height:1}
.tracker-done-warn[hidden],.tracker-done-tick[hidden],.tracker-pend[hidden]{display:none!important}
.tracker-done.is-pending{background:#fff7e6;border-color:#f0b35a}
html.dark .tracker-done.is-pending{background:#3a2a10;border-color:#a8691b}
.tracker-pend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 2px 10px;border-top:1px dashed #f0b35a}
.tracker-pend-msg{flex:1 1 150px;font-size:13px;line-height:1.5;color:#92400e;padding-top:8px}
html.dark .tracker-pend-msg{color:#fcd34d}
.tracker-retry{flex:none;min-height:38px;padding:0 16px;font-size:13px;margin-top:8px;border-radius:999px;border:1px solid var(--red);background:var(--red);color:#fff;font-weight:700}
.tracker-retry[hidden]{display:none}
/*PEND187*/
.tracker-done.is-pending{background:var(--surface);border-color:var(--line)}
html.dark .tracker-done.is-pending{background:#2a2327;border-color:#ffffff1f}
.tracker-done-warn{width:22px;height:22px;background:transparent;border:2px solid #d97706;color:#b45309;font-size:13px;font-weight:800}
html.dark .tracker-done-warn{color:#fbbf24;border-color:#fbbf24}
.tracker-pend{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:0;padding:0 2px 10px;margin-top:-4px}
.tracker-pend-msg{flex:1 1 140px;padding:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
html.dark .tracker-pend-msg{color:#c9bfc4}
.tracker-retry{margin:0;min-height:32px;padding:0 14px;font-size:13px;font-weight:700;border-radius:999px;border:1px solid var(--red);background:transparent;color:var(--red);box-shadow:none}
html.dark .tracker-retry{color:#ff8a94;border-color:#ff8a94}
.tracker-pend{flex-wrap:nowrap;align-items:center}
.tracker-pend-msg{flex:1 1 0;min-width:0}
.tracker-done .tracker-retry{flex:none;min-height:0!important;height:32px!important;padding:0 14px!important;line-height:1;margin:0!important}
/*PEND188*/
.tracker-done .tracker-retry{height:28px!important;padding:0 12px!important;font-size:12.5px!important;font-weight:500!important;border-width:1px!important;border-color:#e3a0a6!important;color:var(--red)!important}
html.dark .tracker-done .tracker-retry{border-color:#8a5a60!important}
/*DAYH189*/
.wk-sec>.wk-h{margin:4px 0 10px;font-size:18px;font-weight:800;text-align:center;line-height:1.4}
/*PAUSED192*/
#weekly-section .weekly-renew{margin:0;display:grid;gap:10px;text-align:center}
#weekly-section .weekly-renew p{margin:6px 0 4px;font-size:14px;line-height:1.8;opacity:1}
#weekly-section .weekly-renew .msg-wa,#weekly-section .weekly-renew~.chat-open{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:100%;max-width:none;height:46px;min-height:46px;margin:0;padding:0 16px;border-radius:12px;font-size:14px;font-weight:500;line-height:1;text-decoration:none;text-shadow:none;animation:none;transform:none;filter:none}
#weekly-section .weekly-renew .msg-wa{background:var(--surface);color:#15803d;border:1px solid #86d3a5;box-shadow:none}
#weekly-section .weekly-renew .msg-wa:active{transform:none;box-shadow:none;background:#f1faf4}
#weekly-section .weekly-renew .msg-wa .wa-ic{width:22px;height:22px;background:transparent}
#weekly-section .weekly-renew .msg-wa .wa-ic svg{width:18px;height:18px}
#weekly-section .weekly-renew~.chat-open{margin-top:10px;background:var(--surface);color:var(--red);border:1px solid #e3a0a6;box-shadow:none}
html.dark #weekly-section .weekly-renew .msg-wa{color:#6ee7a0;border-color:#2f7a52;background:transparent}
html.dark #weekly-section .weekly-renew~.chat-open{color:#ff8a94;border-color:#8a5a60;background:transparent}
/*FORM193*/
#client-view .tracker-entry{padding:14px 0}
#client-view .tracker-entry .tracker-head{margin:0}
#client-view .tracker-entry .tracker-body{display:grid;gap:12px;margin:12px 0 0}
#client-view .tracker-entry .tracker-body[hidden],#client-view .tracker-entry .fin-msg[hidden]{display:none!important}
#client-view .tracker-entry .sets{display:grid;grid-template-columns:1fr;gap:10px;margin:0}
#client-view .tracker-entry .set-card{margin:0}
#client-view .tracker-entry .set-add{width:100%;min-height:44px;margin:0}
#client-view .tracker-entry .fin-msg{margin:0}
#client-view .tracker-entry .row-actions{margin:0;display:grid;gap:10px}
#client-view .tracker-entry .row-actions .tracker-status{margin:0}
#client-view .tracker-entry .row-actions .tracker-btns{gap:10px}
#client-view .tracker-entry .row-actions .danger{margin:0}
#client-view .tracker-pending{background:var(--surface);color:var(--muted);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:13px;margin:0 0 12px}
html.dark #client-view .tracker-pending{background:#2a2327;color:#c9bfc4}
#client-view .tracker-pending .tracker-pending-go{min-height:32px!important;height:32px;padding:0 14px!important;font-size:12.5px;font-weight:500;border-radius:999px}

/*DEL194*/.tdd-acts{display:flex;gap:10px;align-items:center;justify-content:flex-start}.tdd-acts .tdd-edit,.tdd-acts .tdd-del{flex:0 0 auto;min-height:40px;padding:0 22px;margin:0}.tdd-del{background:#fff;color:#8a8486;border:1px solid var(--line);font-weight:500}.tdd-del.is-ask{color:#b83a46;border-color:#e3b3b9}

/*CLR195*/.tracker-pend .tracker-clear{margin-inline-start:8px;color:#70696c;border-color:var(--line);background:#fff}
/*BTN196*/#client-view .tracker-entry .row-actions .tracker-btns{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;width:100%}#client-view .tracker-entry .row-actions .tracker-btns button{width:100%;min-width:0;height:42px;min-height:42px;padding:0 4px;margin:0;font-size:14px;font-weight:500;line-height:1;white-space:nowrap;border-radius:12px;display:flex;align-items:center;justify-content:center;box-shadow:none}
/*PEND196*/.tracker-pend{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.tracker-pend .tracker-pend-msg{flex:1 1 100%}.tracker-pend .tracker-retry,.tracker-pend .tracker-clear{flex:1 1 0;min-width:0;height:40px;min-height:40px;margin:0;padding:0 4px;font-size:14px;font-weight:500;border-radius:12px;display:flex;align-items:center;justify-content:center;background:#fff;box-shadow:none}.tracker-pend .tracker-clear{color:#70696c;border:1px solid var(--line)}
.tracker-pend .tracker-retry[hidden],.tracker-pend .tracker-clear[hidden]{display:none}
/*DEL199*/.tdd-acts .tdd-edit,.tdd-acts .tdd-del{flex:1 1 0;min-width:0;height:40px;min-height:40px;padding:0 6px;font-size:14px;font-weight:500;border-radius:12px;display:flex;align-items:center;justify-content:center}.tdd-acts .tdd-del[hidden]{display:none}.tdd-del.is-ask{color:#b83a46;border-color:#e3b3b9}

/*PKGLINE*/#client-programs .pkg-line{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;white-space:nowrap;margin:12px 0;line-height:1.4}#client-programs .pkg-line span{flex:none}#client-programs .pkg-dash{width:14px;height:1.5px;border-radius:1px;background:var(--muted);opacity:.55}
/*PKGHEAD*/#client-programs .pkg-box{padding:0 14px 12px}#client-programs .pkg-head{min-height:48px;padding:0;margin:0}#client-programs .pkg-body{margin-top:0}#client-programs .pkg-body>:first-child{margin-top:0}
#client-programs .pkg-head{padding-bottom:1px}
#client-programs .pkg-line span:last-child{position:relative;top:-2px}
#client-programs .pkg-box.pkg-closed{padding-bottom:0}
#client-programs .pkg-box.pkg-closed .pkg-head{padding-bottom:0;padding-top:1px}
/*CHIP-TAGS-ROW*/#client-list .client-chip .chip-tags{flex-wrap:nowrap;gap:3px;max-width:100%;min-width:0}#client-list .client-chip .chip-tags .tag{font-size:9px;line-height:1.4;padding:2px 5px;border-radius:4px;white-space:nowrap;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
/*PE-ADD-SETS*/.pe-add{flex-wrap:wrap;align-items:center}.pe-add input{flex:1 1 100%}.pe-addsets{flex:1 1 0;display:flex;align-items:center;gap:8px;min-width:0;margin:0}.pe-addsets-l{font-size:12px;font-weight:600;white-space:nowrap;color:var(--muted)}.pe-addsets .pe-sel,.pe-addsel{flex:1 1 auto;min-width:112px;max-width:none}.pe-sel{min-width:112px;max-width:none}.pe-tip{white-space:normal;overflow-wrap:anywhere;line-height:1.7}
/*PE-SEL-NUM*/.pe-sel,.pe-addsets .pe-sel,.pe-addsel{min-width:64px;width:72px;max-width:72px;flex:0 0 72px}.pe-addsets{flex:1 1 0}
/*PE-NAMEWRAP*/:is(#editor,#tracker-dialog) .pe-add{flex-wrap:nowrap;align-items:center;gap:8px}:is(#editor,#tracker-dialog) .pe-add .pe-namewrap{position:relative;flex:1 1 0;min-width:0;display:block}:is(#editor,#tracker-dialog) .pe-add .pe-namewrap input{display:block;width:100%;flex:none;margin:0;padding-inline-end:64px;text-overflow:ellipsis}:is(#editor,#tracker-dialog) .pe-add .pe-namewrap .pe-sel{position:absolute;inset-inline-end:6px;top:50%;transform:translateY(-50%);width:50px;min-width:50px;max-width:50px;height:34px;min-height:34px;margin:0;padding:0 4px;flex:none;font-size:13px}:is(#editor,#tracker-dialog) .pe-add .pe-addbtn{flex:0 0 auto;margin:0;white-space:nowrap}
/*PE-SEL-56*/:is(#editor,#tracker-dialog) .pe-ex .pe-sel,.pe-ex .pe-sel{width:56px;min-width:56px;max-width:56px;flex:0 0 56px;padding:0 4px;text-align:center}
/*PE-FIX2*/:is(#editor,#tracker-dialog) .pe-add .pe-namewrap input{padding-inline-end:12px;padding-left:66px}:is(#editor,#tracker-dialog) .pe-add .pe-namewrap .pe-sel{inset-inline-end:auto;left:6px;right:auto}:is(#editor,#tracker-dialog) .pe-add .pe-namewrap .pe-sel,:is(#editor,#tracker-dialog) .pe-ex .pe-sel,.pe-ex .pe-sel{padding:0 10px 0 24px;text-align:right}:is(#editor,#tracker-dialog) .pe-add .pe-namewrap .pe-sel{width:56px;min-width:56px;max-width:56px}

/*FILEROW-NATIVE*/:is(#client-view,#editor) .file-row{scroll-behavior:auto!important;scroll-snap-type:none!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
:is(#client-view,#editor) .file-row .program-file{scroll-snap-align:none!important}

/*DAYLOCK*/.tracker-day-chip.is-later,.tracker-day-chip:disabled{opacity:.38;cursor:not-allowed;pointer-events:none}
/*PLANROW-FIT*/.plan-card .plan-row{height:auto!important;max-height:none!important;min-height:58px;overflow:visible;align-items:center;padding-block:12px}.plan-card .plan-main{gap:4px}.plan-card .plan-sets{display:block;line-height:1.5}

/*DAYSTATE*/.day-ro-note,.day-lock-note{margin:6px 0 10px;font-size:13px;color:var(--muted)}

/*PE-RTL*/.pe-name,.pe-add input,.pe-namewrap input{direction:rtl;text-align:right}.pe-name::placeholder,.pe-add input::placeholder,.pe-namewrap input::placeholder{direction:rtl;text-align:right}.pe-exname{direction:rtl;text-align:right}

/*DAYRO-SUB*/.day-ro-sub{display:block;margin-top:4px;font-size:12px;line-height:1.7;opacity:.9}

/*WK-EDIT*/.wk-edit-row{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}.wk-edit-btn{margin:0;min-height:36px;padding:0 14px;font-size:13px}.wk-editor{width:100%;border:1px solid var(--line);border-radius:14px;padding:12px;background:var(--surface)}.wk-ed-h{display:block;margin-bottom:8px;font-size:14px}.wk-ed-set{display:flex;gap:6px;align-items:center;margin:6px 0}.wk-ed-set input{flex:1;min-width:0;margin:0;text-align:center}.wk-ed-n{flex:0 0 auto;width:26px;font-size:12px;color:var(--muted)}.wk-ed-more{margin:6px 0;min-height:34px}.wk-ed-notes{width:100%;margin:6px 0;box-sizing:border-box}.wk-ed-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.wk-ed-acts button{margin:0;min-height:38px}.wk-ed-msg{font-size:12px;color:var(--muted)}
/*WK-INLINE*/.wk-cell-in{width:64px;min-width:0;box-sizing:border-box;margin:0;padding:4px 6px;min-height:32px;text-align:center;font-size:14px}.wk-legacy .wk-cell-in{width:140px}.wk-edit-row{align-items:center}
/*WK-NOTES-IN*/.wk-ed-notes-box{display:grid;gap:8px;margin:10px 0 0}.wk-ed-nl{display:block}.wk-ed-nlab{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.wk-ed-nl .wk-ed-notes{width:100%;box-sizing:border-box;margin:0;text-align:right}
/*COACH-NOTE*/.wk-coach-box{border-inline-start-color:#2f6fed;background:#eef4ff}.wk-coach-notes .wk-note-h,.wk-coach-card .wk-note-h{color:#2f6fed}html.dark .wk-coach-box{background:rgba(80,140,255,.14);border-inline-start-color:#6f9cff}html.dark .wk-coach-notes .wk-note-h,html.dark .wk-coach-card .wk-note-h{color:#8fb2ff}
/*COACH-NOTE2*/.wk-coach-card{margin-bottom:10px}
/*WK-NOTE-SEL*/.wk-ed-notes-box{display:grid;gap:6px}.wk-ed-nrow{display:flex;gap:8px;align-items:stretch}.wk-ed-wsel{flex:0 0 112px;width:112px;min-width:0;margin:0;min-height:44px;align-self:flex-start;padding:0 8px;font-size:14px}.wk-ed-nrow .wk-ed-notes{flex:1 1 auto;min-width:0;width:auto;margin:0;resize:vertical}.wk-ed-nhint{font-size:12px;color:var(--muted);min-height:16px}

/*TRK-HL*/@keyframes trkhl{0%,70%{outline-color:#e11d2e;box-shadow:0 0 0 6px rgba(225,29,46,.16)}100%{outline-color:transparent;box-shadow:0 0 0 0 transparent}}.trk-hl{outline:2px solid #e11d2e;outline-offset:3px;border-radius:12px;animation:trkhl 2.6s ease-out forwards}
/*WK-NOTE-LAYOUT*/.wk-ed-nrow{display:flex;flex-direction:row;flex-wrap:wrap;gap:10px;align-items:flex-start;direction:rtl}.wk-ed-nrow .wk-ed-notes{flex:0 0 50%;width:50%;max-width:100%;min-width:0;min-height:0;height:56px;padding:8px 10px;line-height:1.6;font-size:14px;text-align:right;direction:rtl;resize:vertical;margin:0;box-sizing:border-box}.wk-ed-nrow .wk-ed-wsel{flex:0 0 auto;width:auto;min-width:140px;max-width:100%;margin:0 auto 0 0;padding:0 10px;min-height:44px;font-size:14px}.wk-ed-nlab{text-align:right}.wk-ed-nhint{text-align:right}
@media(max-width:560px){.wk-ed-nrow .wk-ed-notes{flex:1 1 100%;width:100%}.wk-ed-nrow .wk-ed-wsel{margin:0 auto 0 0}}

/*PE-EDIT*/.pe-grip{flex:0 0 auto;width:28px;min-width:28px;height:36px;margin:0;padding:0;border:0;background:transparent;color:var(--muted);font-size:15px;letter-spacing:-3px;line-height:1;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;box-shadow:none}.pe-grip:focus-visible{outline:2px solid #e11d2e;border-radius:8px}.pe-exname{cursor:text;min-width:0;overflow-wrap:anywhere}.pe-exname:focus-visible{outline:2px solid #e11d2e;outline-offset:2px;border-radius:6px}.pe-exedit{flex:1 1 auto;min-width:0;width:100%;margin:0;min-height:36px;padding:4px 8px;font-size:15px;text-align:right}li.pe-ex.dragging{opacity:.9;box-shadow:0 6px 18px rgba(0,0,0,.22);position:relative;z-index:2}.pe-list.dragging{touch-action:none}.pe-ex{touch-action:pan-y}
/*PE-GRIP2*/.pe-grip,.pe-grip:hover,.pe-grip:active,.pe-grip:focus{background:transparent!important;box-shadow:none!important;color:var(--muted)!important;min-height:36px;height:36px;border:0!important}.pe-grip:focus-visible{outline:2px solid #e11d2e!important;border-radius:8px}

/*WK-LINE*/.wk-ed-line{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;direction:rtl;margin:10px 0 0}.wk-ed-line>.wk-ed-notes-box{flex:1 1 0;min-width:0;margin:0;display:block}.wk-ed-line>.wk-edit-row{flex:0 0 auto;margin:0;flex-wrap:nowrap;gap:10px;align-items:flex-end}.wk-ed-line>.wk-ed-msg{flex:1 0 100%;order:5;min-height:0}.wk-ed-lbrow{display:flex;align-items:baseline;gap:10px;margin-bottom:4px;text-align:right}.wk-ed-lbrow .wk-ed-nlab{margin:0}.wk-ed-lbrow .wk-ed-nhint{min-height:0}
.wk-ed-line .wk-ed-nrow{display:flex;flex-wrap:nowrap;gap:10px;align-items:stretch;direction:rtl}.wk-ed-line .wk-ed-nrow .wk-ed-notes{flex:1 1 0;width:0;min-width:0;max-width:none;box-sizing:border-box;height:44px;min-height:44px;max-height:44px;resize:none;margin:0;padding:9px 12px;line-height:24px;font-size:14px;overflow-y:auto;text-align:right;direction:rtl}.wk-ed-line .wk-ed-nrow .wk-ed-wsel{flex:0 0 auto;width:auto;min-width:140px;max-width:none;height:44px;min-height:44px;margin:0;padding:0 10px;box-sizing:border-box;font-size:14px}.wk-ed-line .wk-edit-row button{height:44px;min-height:44px;margin:0;padding:0 18px;box-sizing:border-box;font-size:14px;line-height:1}
@media(max-width:560px){.wk-ed-line>.wk-ed-notes-box{flex:1 1 100%}.wk-ed-line>.wk-edit-row{flex:1 1 100%}.wk-ed-line>.wk-edit-row button{flex:1 1 0}.wk-ed-line .wk-ed-nrow .wk-ed-wsel{min-width:0;width:122px;flex:0 0 122px;padding:0 8px}}
/*WK-LINE2*/.wk-ed-line{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:12px}.wk-ed-line>.wk-ed-notes-box{flex:0 0 auto;width:100%}.wk-ed-line>.wk-edit-row{flex:0 0 auto;width:100%;justify-content:flex-start}.wk-ed-line>.wk-ed-msg{flex:0 0 auto;order:0}@media(max-width:560px){.wk-ed-line>.wk-edit-row{flex:0 0 auto}.wk-ed-line>.wk-edit-row button{flex:1 1 0}}
/*WK-LINE3*/.wk-ed-line{gap:6px;margin:6px 0 0}.wk-ed-line>.wk-edit-row{margin:0}.wk-ed-lbrow{margin-bottom:3px}

/*BW-NOTE*/.bw-note{margin:12px 0 0;padding:10px 14px;border:1px solid var(--line);border-inline-start:3px solid #8a93a6;border-radius:12px;font-size:14px;line-height:1.95;text-align:right;color:inherit;background:transparent}

/*CS-NW*/.cs-menu.nw .cs-opt>span{white-space:nowrap!important;overflow-wrap:normal!important;word-break:keep-all!important}
/*TRK-DLG-HEAD*/html body dialog#tracker-dialog>header{display:flex!important;flex-direction:row!important;grid-template-columns:none!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:auto!important;max-width:none!important;margin:0 0 10px!important;padding:18px 0 10px!important;border:0!important;border-bottom:1px solid var(--line)!important;box-shadow:none!important;position:sticky!important;top:0!important;z-index:5!important;background:var(--surface,#fff)!important}
html.dark body dialog#tracker-dialog>header{background:var(--surface,#1c1f27)!important;box-shadow:none!important}
html body dialog#tracker-dialog>header h2{flex:1 1 auto!important;min-width:0!important;margin:0!important;font-size:18px!important;line-height:1.5!important;text-align:start!important;overflow-wrap:anywhere}
html body dialog#tracker-dialog>header button{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:44px!important;min-height:44px!important;padding:0 16px!important;margin:0!important;white-space:nowrap}
/*INTAKE-READ*/#intake-answers-body .intake-ans-group{border:1px solid var(--line);border-radius:14px;padding:6px 16px 8px;margin:14px 0;background:var(--surface)}
#intake-answers-body .intake-ans-group h3{font-size:16px;line-height:1.6;font-weight:700;color:var(--red);margin:0;padding:10px 0 10px;border-bottom:1px solid var(--line)}
#intake-answers-body .intake-ans{display:grid;gap:6px;margin:0;padding:14px 0;border-top:1px solid var(--line);font-size:16px;line-height:1.9}
#intake-answers-body .intake-ans-group h3+.intake-ans{border-top:0}
#intake-answers-body .intake-ans strong{font-size:13.5px;line-height:1.7;font-weight:600;color:var(--muted)}
#intake-answers-body .intake-ans span{font-size:16px;line-height:1.9;font-weight:500;color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
html.dark #intake-answers-body .intake-ans-group{background:rgba(255,255,255,.03);border-color:var(--line)}
html.dark #intake-answers-body .intake-ans span{color:#f1eff0}
#intake-answers-body>.hint{margin:0 0 4px;font-size:13px}
#intake-answers-body .intake-ans span.intake-empty{color:var(--muted);font-weight:400}

html body dialog#tracker-dialog{padding-top:0!important}
html body dialog#tracker-dialog>#tracker-top{margin-inline-start:auto}
/*DAY-NOTE*/
.day-note-box{display:grid;gap:8px;margin:14px 0 4px;text-align:right}
.day-note-lab{font-size:13px;font-weight:800;color:var(--ink)}
.day-note-ta{width:100%;min-height:84px;resize:vertical;font:inherit;font-size:14px;line-height:1.7;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);text-align:right;direction:rtl}
.day-note-ta::placeholder{color:var(--muted);opacity:.8}
.day-note-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.day-note-row .day-note-save{min-height:36px;padding:4px 14px;font-size:13px}
.day-note-st{margin:0;font-size:12px}
.day-note-txt{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
.day-note-ro{padding:10px 12px;border:1px dashed var(--line);border-radius:10px}
.day-note-row .day-note-save{width:auto;min-width:0;flex:none}
/*CHEER*/
#menu-cheer .cheer-off{display:none}#menu-cheer.is-off .cheer-on{display:none}#menu-cheer.is-off .cheer-off{display:inline}

/*DAY-COLORS*/
.wk-sec.dc0{--dc:#c9283b}
.wk-sec.dc1{--dc:#2f6fd6}
.wk-sec.dc2{--dc:#2a7d5f}
.wk-sec.dc3{--dc:#c2610f}
.wk-sec.dc4{--dc:#7b4fc4}
.wk-sec.dc5{--dc:#167f8a}
.wk-sec.dc6{--dc:#c23a86}
html.dark .wk-sec.dc0{--dc:#ff6b7c}
html.dark .wk-sec.dc1{--dc:#6ea3ff}
html.dark .wk-sec.dc2{--dc:#4fd1a0}
html.dark .wk-sec.dc3{--dc:#ffa24d}
html.dark .wk-sec.dc4{--dc:#b794ff}
html.dark .wk-sec.dc5{--dc:#4fd0dc}
html.dark .wk-sec.dc6{--dc:#ff7ac0}
.wk-sec{--dc:#c9283b;padding:8px 8px 10px;border:1px solid color-mix(in srgb,var(--dc) 30%,var(--line));border-inline-start:5px solid var(--dc);border-radius:14px;background:color-mix(in srgb,var(--dc) 4%,transparent)}
.wk-sec>.wk-h{color:var(--dc);background:color-mix(in srgb,var(--dc) 12%,transparent);border-radius:10px;padding:6px 10px;margin:0 0 10px}
.wk-sec .wk-table th{background:color-mix(in srgb,var(--dc) 11%,var(--bg));color:var(--ink);border-bottom-color:color-mix(in srgb,var(--dc) 40%,var(--line))}
.wk-sec .wk-table th.wk-grp{color:var(--dc)}
.wk-sec .wk-cap{border-bottom-color:color-mix(in srgb,var(--dc) 40%,var(--line));box-shadow:inset 0 2px 0 var(--dc)}
.wk-sec .wk-wrap{border-color:color-mix(in srgb,var(--dc) 30%,var(--line))}
html.dark .wk-sec{background:color-mix(in srgb,var(--dc) 7%,transparent)}
html.dark .wk-sec .wk-table th{background:color-mix(in srgb,var(--dc) 18%,#1f1a1d);color:#ece6e9}
html.dark .wk-sec .wk-table th.wk-grp{color:var(--dc)}

/*STREAK*/
.streak-card{margin:0 0 14px;padding:16px 16px 14px;border:1px solid var(--line,rgba(128,128,128,.25));border-radius:16px;background:var(--surface,#fff);contain:layout paint}
.streak-top{display:flex;align-items:center;gap:12px}
.streak-flame{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;border:1px solid var(--line,rgba(128,128,128,.3));color:rgba(128,128,128,.55);flex:none}
.streak-flame.on{color:#e8872b;border-color:rgba(232,135,43,.45);background:rgba(232,135,43,.08)}
.streak-card.anim .streak-flame.on svg{transform-origin:50% 90%;animation:stkFlame 2.6s ease-in-out infinite}
@keyframes stkFlame{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.07) rotate(-2deg)}}
.streak-mid{display:flex;flex-direction:column;min-width:0;flex:1}
.streak-lab{font-size:12px;opacity:.65}
.streak-num{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.streak-n{font-size:30px;line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums;min-width:.7em}
.streak-u{font-size:14px;opacity:.85}
.streak-best{font-size:12px;padding:3px 10px;border:1px solid var(--line,rgba(128,128,128,.3));border-radius:999px;opacity:.8;white-space:nowrap}
.streak-week{display:flex;gap:6px;margin:14px 0 4px}
.streak-dot{flex:1;max-width:44px;height:6px;border-radius:3px;background:rgba(128,128,128,.22);display:block;position:relative;overflow:hidden}
.streak-dot::after{content:"";position:absolute;inset:0;background:#e8872b;transform:scaleX(0);transform-origin:right}
.streak-dot.on::after{transform:scaleX(1)}
.streak-card.anim .streak-dot.on::after{animation:stkFill .55s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i)*90ms + 150ms)}
@keyframes stkFill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.streak-msg{margin:10px 0 0;font-size:13px;line-height:1.7;opacity:.85}
.streak-badges{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}
.streak-badge{font-size:12px;padding:4px 11px;border-radius:999px;border:1px dashed rgba(128,128,128,.4);opacity:.5}
.streak-badge.on{opacity:1;border:1px solid rgba(232,135,43,.55);color:#c8701a;background:rgba(232,135,43,.08)}
.streak-card.anim .streak-badge.fresh{animation:stkPop .7s cubic-bezier(.2,.9,.3,1.4) .5s both}
@keyframes stkPop{0%{transform:scale(.6);opacity:0}60%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
.streak-new{margin:8px 0 0;font-size:13px;color:#c8701a}
.coach-streak{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 10px;font-size:13px}
.coach-streak-flag{padding:2px 9px;border-radius:999px;border:1px solid #c0392b;color:#c0392b;font-size:12px}
.coach-streak-flag.ok{border-color:#888;color:#888}
.coach-streak-btn{font-size:12px;padding:3px 10px;background:transparent;border:1px solid rgba(128,128,128,.45);border-radius:8px;color:inherit;cursor:pointer}
.dark .streak-badge.on,.dark .streak-new{color:#f0a04b}
@media (prefers-reduced-motion:reduce){.streak-card *{animation:none!important}}
.streak-num{flex-wrap:nowrap;white-space:nowrap}
.streak-u{font-size:13px}
.streak-n{font-size:28px}
.streak-top{flex-wrap:wrap}
.streak-mid{flex:1 1 120px}
.streak-best{flex:none;margin-inline-start:auto}
.streak-card.anim .streak-flame.on{animation:none}
.coach-streak{padding:9px 12px;border:1px solid rgba(232,135,43,.4);border-radius:12px;background:rgba(232,135,43,.07)}
.coach-streak-t{font-weight:600}
.coach-streak-btn{margin-inline-start:auto}
/*WKFLICKER*/.wk-table th{position:static!important}
.wk-wrap{overflow-y:hidden}
/*STREAK-ROW*/.streak-badges{flex-wrap:nowrap;gap:4px}
.streak-badge{flex:1 1 0;min-width:0;text-align:center;white-space:nowrap;padding:4px 2px;font-size:clamp(9.5px,3vw,12px)}
.streak-best{direction:ltr;unicode-bidi:isolate}
/*STREAK-BEST*/.streak-best{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;border:1px solid rgba(201,139,20,.55);background:linear-gradient(135deg,rgba(240,180,60,.22),rgba(232,135,43,.12));color:#a96a0d;font-size:12.5px;font-weight:600;opacity:1;letter-spacing:.2px;box-shadow:inset 0 1px 0 rgba(255,255,255,.5)}
.streak-best b{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.streak-best svg{flex:none}
.dark .streak-best{color:#f3b862;border-color:rgba(243,184,98,.5);background:linear-gradient(135deg,rgba(243,184,98,.2),rgba(232,135,43,.1));box-shadow:none}
/*EXCUSE*/.coach-excuse{display:flex;flex-wrap:wrap;align-items:center;gap:6px;flex:1 0 100%;padding-top:8px;margin-top:2px;border-top:1px dashed rgba(232,135,43,.35)}
.coach-excuse-l{font-size:12px;opacity:.8}
.coach-excuse-sel{font-size:12.5px;padding:3px 6px;border-radius:8px;border:1px solid rgba(128,128,128,.45);background:transparent;color:inherit;max-width:100%}
.coach-excuse-chip{font-size:12px;padding:3px 10px;background:transparent;border:1px solid rgba(128,128,128,.45);border-radius:999px;color:inherit;cursor:pointer}
/*STREAK-BEST2*/.streak-top{flex-wrap:nowrap;gap:10px}
.streak-mid{flex:1 1 0;min-width:0}
.streak-num{flex-wrap:wrap;white-space:normal;column-gap:6px}
.streak-best{margin-inline-start:auto;flex:none;gap:4px;padding:4px 9px;font-size:11.5px;white-space:nowrap}
.streak-best b{font-size:13.5px}
.streak-best svg{width:12px;height:12px}
@media (max-width:360px){.streak-flame{width:38px;height:38px}.streak-flame svg{width:24px;height:24px}.streak-n{font-size:26px}.streak-top{gap:8px}}
/*STREAK-LAYOUT*/.streak-card{padding:14px 14px 12px}
.streak-top{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
.streak-flame{width:38px;height:38px;flex:none}
.streak-flame svg{width:22px;height:22px}
.streak-mid{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:1px}
.streak-lab{font-size:11.5px;white-space:nowrap;line-height:1.5}
.streak-num{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;white-space:normal}
.streak-n{font-size:26px;line-height:1;flex:none}
.streak-u{font-size:11.5px;line-height:1.35;opacity:.85}
.streak-best{padding:3px 8px;font-size:11px;gap:3px;margin-inline-start:0}
.streak-best b{font-size:13px}
.streak-best svg{width:11px;height:11px}
.streak-week{margin:12px 0 0}
.streak-msg{margin:10px 0 0;line-height:1.75}
.streak-badges{margin-top:10px}
.streak-new{margin:8px 0 0}

/*DAYREQ*/.day-req-box{display:grid;gap:6px;justify-items:start;margin:14px 0 4px;text-align:right}.day-req-note{margin:0;font-size:13px;color:var(--muted)}.coach-req{margin-top:6px}
/*DAYREQ2*/.day-req-why{margin:0;font-size:11.5px;color:var(--muted);line-height:1.6}

/*BTNFIT*/.tracker-day .day-req-btn,.tracker-day .day-note-save,.tracker-day .plan-go{box-sizing:border-box;min-height:38px!important;height:38px!important;padding:0 16px!important;font-size:13px;font-weight:700;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;line-height:1;margin:0;width:auto}
/*STRKWORD*/.streak-n.streak-n-word{font-size:17px!important;min-width:0;white-space:nowrap;line-height:1.3}
/*DAYREQ3*/.day-req-box{margin:6px 0 0;gap:0}
.day-req-toggle{appearance:none;background:none;border:0;padding:6px 2px;margin:0;font:inherit;font-size:11px;color:var(--muted);opacity:.55;cursor:pointer;display:inline-flex;align-items:center;gap:4px;min-height:0;height:auto;box-shadow:none;width:auto}
.day-req-toggle::after{content:"";width:5px;height:5px;border-inline-end:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform .2s;margin-top:-2px}
.day-req-toggle.open::after{transform:rotate(-135deg);margin-top:2px}
.day-req-toggle:hover,.day-req-toggle:focus-visible{opacity:.9}
.day-req-panel{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease;width:100%}
.day-req-panel.open{grid-template-rows:1fr}
.day-req-inner{overflow:hidden;min-height:0;display:grid;gap:8px;justify-items:start;opacity:0;transition:opacity .2s}
.day-req-panel.open .day-req-inner{opacity:1;padding-top:6px;padding-bottom:6px}
.day-req-ask{display:grid;gap:8px}.day-req-ask[hidden]{display:none}.day-req-q{margin:0;font-size:13px;font-weight:700}.day-req-ask-row{display:flex;gap:8px;flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){.day-req-panel,.day-req-inner,.day-req-toggle::after{transition:none}}

/*SUSFLAG*/.sus-flag{display:grid;gap:2px;margin:6px 0 10px;padding:9px 12px;border:1px solid rgba(201,138,29,.45);border-inline-start:3px solid #c98a1d;border-radius:10px;background:rgba(201,138,29,.09);text-align:right}
.sus-flag-t{font-size:13px;font-weight:800;color:#8a5a0b}.sus-flag-s{font-size:12.5px;line-height:1.6;color:var(--ink)}
.dark .sus-flag{background:rgba(214,160,60,.12);border-color:rgba(214,160,60,.4)}.dark .sus-flag-t{color:#e3b45a}
.coach-sus .coach-excuse-l{flex:1 0 100%}

/*BADGES2*/.streak-badges{display:flex;flex-wrap:nowrap;gap:3px;overflow-x:auto;overflow-y:hidden;padding:4px 0 6px;margin-top:8px;scrollbar-width:none}.streak-badges::-webkit-scrollbar{display:none}
.streak-badge{flex:1 0 46px;min-width:46px;display:grid;justify-items:center;gap:3px;padding:4px 0;border:0;background:none;border-radius:10px;opacity:1;color:var(--muted);font:inherit;cursor:pointer;min-height:0;height:auto;box-shadow:none;width:auto}
.streak-badge.on{background:none;border:0;color:var(--ink)}
.streak-badge-l{font-size:9.5px;line-height:1.3;text-align:center;white-space:nowrap}
.streak-badge.next{outline:1.5px solid rgba(232,135,43,.6);box-shadow:0 0 8px rgba(232,135,43,.35)}
.streak-pop{display:grid;gap:2px;margin:4px 0 2px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;text-align:right;font-size:12.5px}.streak-pop[hidden]{display:none}.streak-pop-t{font-size:13px}.streak-pop-s{color:var(--muted)}
.streak-nextline{margin:2px 0 0;font-size:12px;color:var(--muted)}
.dark .streak-badge.on{color:var(--ink)}
/*BADGES3*/.streak-badges{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:6px;overflow-x:auto;overflow-y:hidden;padding:6px 2px 8px;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.streak-badges .streak-badge{flex:0 0 64px;width:64px;min-width:64px;max-width:64px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;padding:6px 2px;margin:0;border:1.5px solid transparent;border-radius:12px;background:transparent!important;color:var(--muted);opacity:1;min-height:0;height:auto;overflow:visible;-webkit-tap-highlight-color:transparent;outline:0;box-shadow:none;position:static;transform:none;text-align:center}
.streak-badges .streak-badge:active,.streak-badges .streak-badge:focus,.streak-badges .streak-badge:hover{background:transparent!important;outline:0;box-shadow:none;transform:none}
.streak-badges .streak-badge svg{flex:none;width:36px;height:36px;display:block}
.streak-badges .streak-badge .streak-badge-l{display:block;width:100%;font-size:10px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;text-align:center;padding:0}
.streak-badges .streak-badge.on{color:var(--ink)}
.streak-badges .streak-badge.next{box-shadow:inset 0 0 0 1px rgba(232,135,43,.35)}
.streak-badges .streak-badge.sel{border-color:rgba(232,135,43,.75);box-shadow:0 0 8px rgba(232,135,43,.3)}
.streak-badges .streak-badge:focus-visible{border-color:rgba(232,135,43,.75)}
.streak-card,.streak-card *{-webkit-tap-highlight-color:transparent}
/*SUSFLAG2*/.sus-flag{margin:12px 0 6px}

/*TAPFIX*/button,a,summary,select,[role=button],[role=tab],label{-webkit-tap-highlight-color:transparent}
.day-req-toggle:hover,.day-req-toggle:active,.day-req-toggle:focus{background:none!important;filter:none!important;outline:0;box-shadow:none}
.streak-badges .streak-badge:hover,.streak-badges .streak-badge:active{filter:none!important}

/*BADGES4*/.streak-badges{padding:10px 14px 14px;scroll-padding-inline:14px;scroll-snap-type:x proximity}
.streak-badges .streak-badge{scroll-snap-align:center;border:0!important;box-shadow:none!important;outline:0!important;transition:transform .2s ease}
.streak-badges .streak-badge svg{transition:transform .2s ease,filter .2s ease}
.streak-badges .streak-badge::after{content:"";width:5px;height:5px;border-radius:50%;background:#e8872b;opacity:0;transform:scale(0);transition:opacity .2s,transform .2s;margin-top:-1px}
.streak-badges .streak-badge.sel svg{transform:scale(1.22);filter:drop-shadow(0 4px 6px rgba(232,135,43,.55))}
.streak-badges .streak-badge.sel::after{opacity:1;transform:scale(1)}
.streak-badges .streak-badge.sel .streak-badge-l{color:var(--ink);font-weight:800}
.streak-badges .streak-badge.next:not(.sel) svg{animation:bnext 2.2s ease-in-out infinite}
@keyframes bnext{0%,100%{transform:scale(1);opacity:.8}50%{transform:scale(1.1);opacity:1}}
@media (prefers-reduced-motion:reduce){.streak-badges .streak-badge.next svg{animation:none}.streak-badges .streak-badge,.streak-badges .streak-badge svg,.streak-badges .streak-badge::after{transition:none}}

/*EXC2*/.coach-excuse-t{flex:1 0 100%;font-size:13px;font-weight:800}.coach-excuse-l{flex:1 0 100%}.coach-excuse-sel{flex:1 1 180px;min-height:38px;font-size:13px}

/*EXC3*/.coach-man{display:block}.coach-man>summary{cursor:pointer;font-size:12.5px;font-weight:700;opacity:.85;list-style:none;padding:4px 0;-webkit-tap-highlight-color:transparent}.coach-man>summary::-webkit-details-marker{display:none}.coach-man>summary::before{content:"\25BE\00a0"}.coach-man[open]>summary::before{content:"\25B4\00a0"}
.coach-man[open]{display:flex}.coach-man[open]>summary{flex:1 0 100%}

/*DAYREQ4*/.tracker-day .day-req-btn{min-height:28px!important;height:28px!important;padding:0 11px!important;font-size:11.5px!important;font-weight:600!important;position:relative}
.tracker-day .day-req-btn::before{content:"";position:absolute;inset:-8px -4px}
.tracker-day .day-req-why{font-size:10.5px;opacity:.75;line-height:1.55}
.tracker-day .day-req-q{font-size:11.5px;font-weight:600}
.tracker-day .day-req-note{font-size:11.5px}
.tracker-day .day-req-ask,.tracker-day .day-req-ask-row{gap:6px}
/*REASON*/.tracker-day .day-req-reason{display:grid;gap:6px;width:100%}
.tracker-day .day-req-input{box-sizing:border-box;width:100%;min-height:32px;height:32px;padding:0 10px;font-size:12px;border-radius:10px}
.coach-req-why{font-size:12px;opacity:.9}

.coach-sec{margin:.5rem 0}
.coach-sec-t{display:flex;align-items:center;gap:.4rem;width:100%;background:transparent;border:0;border-bottom:1px solid var(--line,rgba(128,128,128,.3));border-radius:0;padding:.55rem .1rem;margin:0;font:inherit;font-weight:800;font-size:.95rem;color:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:none}
.coach-sec-t:focus,.coach-sec-t:active{background:transparent;outline:none}
.coach-sec-t:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.coach-sec-n{opacity:.7;font-weight:600}
.coach-sec-ar{margin-inline-start:auto;transition:transform .15s}
.coach-sec:not(.open) .coach-sec-ar{transform:rotate(90deg)}
.coach-sec-body[hidden]{display:none}
/*BTNH*/.coach-streak button.coach-streak-btn,.coach-streak button.coach-excuse-chip{box-sizing:border-box;height:38px;min-height:38px;max-height:none;padding-block:0;display:inline-flex;align-items:center;justify-content:center;line-height:1.2;white-space:normal}
.coach-streak button.coach-excuse-chip{height:auto;padding-block:5px}
.coach-sec-t{min-height:38px;padding-block:0;box-sizing:border-box}
/*PROFILE*/.client-avatar.has-av{background:transparent!important;border-color:transparent!important;padding:0;overflow:visible}
.client-avatar.has-av>svg{display:block;width:100%;height:100%;border-radius:50%}
.abadge{position:absolute;bottom:-5px;left:-5px;width:18px;height:18px;display:flex;pointer-events:none}
.abadge svg{width:18px;height:18px;display:block}
.streak-top-badge{flex:none;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px}
.streak-top-badge svg{width:46px;height:46px;display:block}
.profile-chip{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;margin:0 0 14px;padding:10px 14px;text-align:start;font:inherit;color:inherit;background:var(--surface);border:1px solid var(--line);border-radius:16px;cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:none;min-height:0}
.profile-chip:hover,.profile-chip:active,.profile-chip:focus{background:var(--surface);color:inherit;transform:none}
.profile-chip:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.profile-chip-t{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;line-height:1.4}
.profile-chip-t strong{font-size:15px}.profile-chip-t small{font-size:12.5px;opacity:.7;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-chip-go{font-size:24px;opacity:.5;flex:none}
.pf-av{position:relative;display:inline-flex;flex:none;border-radius:50%;align-items:center;justify-content:center}
.pf-av>svg{display:block;width:100%;height:100%;border-radius:50%}
.pf-av-empty{background:rgba(222,49,70,.12);color:var(--red);font-weight:800;font-size:1.3em}
.pf-av-badge{position:absolute;bottom:-4px;left:-4px;display:flex;pointer-events:none}
#profile-dialog{width:min(440px,94vw);max-height:92dvh;box-sizing:border-box;padding:16px;overflow:auto}
#profile-dialog .pf-preview{display:flex;align-items:center;gap:14px;margin:6px 0 14px}
#profile-dialog .pf-pv-name{font-size:17px;min-width:0;overflow-wrap:anywhere}
#profile-dialog .pf-l{display:block;font-weight:700;margin:10px 0 6px}
#profile-dialog #pf-name{width:100%}
#profile-dialog .pf-count{margin:4px 0 0;text-align:end;font-size:12px;direction:ltr}
.pf-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.pf-opt{aspect-ratio:1;padding:0;min-height:0;height:auto;border:2px solid transparent;border-radius:50%;background:transparent;display:block;cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:none;transition:transform .12s}
.pf-opt:hover,.pf-opt:active,.pf-opt:focus{background:transparent}
.pf-opt svg{display:block;width:100%;height:100%;border-radius:50%}
.pf-opt.on{border-color:var(--red);box-shadow:0 0 0 2px var(--surface) inset}
.pf-opt:focus-visible{outline:2px solid var(--red);outline-offset:2px}
#profile-dialog .pf-save{width:100%;margin-top:16px}
#profile-dialog .pf-save:disabled{opacity:.5}
.streak-mid .streak-best{margin:4px 0 0;margin-inline-start:0;align-self:flex-start}
.streak-top .streak-top-badge{margin-inline-start:auto}
.wk-sus-row{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 8px}
.wk-sus{display:inline-flex;align-items:center;font-size:12px;font-weight:700;line-height:1.3;padding:2px 9px;border-radius:999px;background:rgba(232,135,43,.14);color:#b45f0c}
.dark .wk-sus{background:rgba(240,160,75,.16);color:#f0a04b}
.credit-card{margin:10px 0 14px;padding:12px 14px;border-radius:16px;border:1px solid var(--line,#e5e7eb);background:var(--surface,#fff)}
.credit-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.credit-t{font-size:16px}
.credit-pips{display:inline-flex;gap:6px;direction:ltr}
.credit-pip{width:14px;height:14px;border-radius:50%;background:rgba(120,120,130,.22)}
.credit-pip.on{background:linear-gradient(180deg,#f7c04a,#d9930a)}
.credit-note{margin:8px 0 0;font-size:12.5px;line-height:1.6;opacity:.75}
.dark .credit-card{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.chip-credit{display:inline-block;margin-top:4px;font-size:12px;font-weight:700;padding:1px 9px;border-radius:999px;background:rgba(217,147,10,.14);color:#9a6407}
.chip-credit.zero{background:rgba(200,50,60,.12);color:#b3202c}
.dark .chip-credit{color:#f0b24b}.dark .chip-credit.zero{color:#ff8a92}
.pf-grid[hidden]{display:none}
#profile-dialog .pf-change{display:block;width:100%;margin:12px 0 10px;-webkit-tap-highlight-color:transparent}
.streak-top{align-items:flex-start}
.streak-ico,.streak-flame{align-self:center}
.streak-mid{align-self:center}
.streak-top .streak-side{display:flex;flex-direction:column;align-items:center;gap:6px;margin-inline-start:auto;margin-top:-8px;flex:none}
.streak-side .streak-best{margin:0;align-self:center}
.streak-side .streak-top-badge{margin:0}

/*STATS*/.coach-stats{flex:1 1 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0}.coach-stat{display:flex;flex-direction:column;gap:1px;padding:6px 10px;border-radius:10px;background:rgba(128,128,128,.12);min-width:0}.coach-stat-l{font-size:11px;opacity:.7;line-height:1.3}.coach-stat-v{font-size:14px;font-weight:700;line-height:1.3;direction:ltr;text-align:start;unicode-bidi:plaintext;overflow-wrap:anywhere}

/*MDPROF*/#menu-drawer .md-prof{margin:0 0 10px;padding:12px 14px;border-radius:16px;gap:12px;border:1px solid rgba(128,128,128,.28);background:rgba(128,128,128,.08)}#menu-drawer .md-prof .profile-chip-t strong{font-size:15.5px}#menu-drawer .md-prof .profile-chip-go{font-size:22px}

/*TRK-SMOOTH*/#tracker-dialog{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}html body dialog#tracker-dialog>header{transform:translateZ(0);will-change:transform;backface-visibility:hidden}#tracker-dialog .dlg-top-btn{transform:translateZ(0);will-change:opacity;backface-visibility:hidden;transition:opacity .2s;box-shadow:0 3px 10px #b83a4659}#tracker-dialog .dlg-top-btn:not(.show){transform:translateZ(0)}

/*CHAT-HEAD-3*/#review-editor.chat .dialog-head{display:flex;align-items:center;gap:8px}#review-editor.chat .dialog-head .chat-head-actions{display:contents}#review-editor.chat .dialog-head #chat-client-file{order:1;flex:0 0 auto}#review-editor.chat .dialog-head h2{order:2;flex:1 1 0;text-align:center;font-size:17px;margin:0}#review-editor.chat .dialog-head #close-review{order:3;flex:0 0 auto}#chat-client-file .cf-av{display:inline-block;width:26px;height:26px;border-radius:50%;overflow:hidden;flex:none}#chat-client-file .cf-av svg{width:100%;height:100%;display:block}@media(max-width:360px){#chat-client-file{padding:0 10px;gap:5px;font-size:12.5px}#review-editor.chat .dialog-head h2{font-size:15px}}
/*MDPROF2*/#menu-drawer .md-prof{padding:14px 16px;gap:14px;align-items:center}#menu-drawer .md-prof .profile-chip-t{gap:5px;justify-content:center}#menu-drawer .md-prof .profile-chip-t strong{font-size:13.5px;font-weight:700;line-height:1.3}#menu-drawer .md-prof .profile-chip-t small{font-size:13px;line-height:1.3;opacity:.75}#menu-drawer .md-prof .profile-chip-go{font-size:20px;opacity:.45;align-self:center}

/*HERO-AV*/#client-view .client-intro{padding:14px 20px 40px!important}#client-view .client-intro .client-welcome{margin-bottom:16px!important}#hero-av-row{position:relative;height:22px;z-index:3;pointer-events:none}#hero-av-row .hero-av{pointer-events:auto;position:absolute;left:50%;margin:0 0 0 -35px;top:-35px;width:64px;height:64px;padding:0;border:3px solid var(--bg,#fff);border-radius:50%;background:var(--bg,#fff);box-sizing:content-box;min-height:0;min-width:0;display:block;-webkit-tap-highlight-color:transparent;box-shadow:0 6px 16px -6px rgba(0,0,0,.5)}#hero-av-row .hero-av:hover,#hero-av-row .hero-av:active,#hero-av-row .hero-av:focus{background:var(--bg,#fff);transform:none}#hero-av-row .pf-av{display:block}

/*CHAT-TITLE*/#review-editor.chat .dialog-head h2#review-title{unicode-bidi:plaintext;direction:ltr;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#review-editor.chat .dialog-head h2#review-title:lang(ar){direction:rtl}

/*CHAT-HEAD-4*/#review-editor.chat .dialog-head #chat-client-file{flex:0 1 auto;min-width:0;max-width:calc(100% - 140px);overflow:hidden}#chat-client-file .cf-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;unicode-bidi:plaintext;text-align:start}#review-editor.chat .dialog-head h2#review-title{flex:0 0 auto;unicode-bidi:normal;direction:rtl;margin-inline:auto;font-size:16px}
/*CHAT-HEAD-5*/#review-editor.chat .dialog-head h2#review-title{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important;border:0!important}#review-editor.chat .dialog-head #chat-client-file{flex:1 1 auto;max-width:none;justify-content:flex-start}

/*ARCH-FREEZE*/.credit-arch{display:inline-block;margin-inline-start:auto;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(128,128,128,.2);color:inherit}.credit-card.is-frozen{opacity:.85}
/*HERO-AV2*/#hero-av-row .hero-av{border-width:2px!important;border-color:var(--bg,#fff)!important;top:-32px!important;margin-left:-34px!important}

/*CF-BADGE*/#chat-client-file .cf-badge{margin-inline-start:auto;display:inline-flex;align-items:center;flex:none}#chat-client-file .cf-badge svg{display:block}/*MDPROF3*/#menu-drawer .md-prof{padding:8px 14px!important;gap:12px}#menu-drawer .md-prof .pf-av{width:40px!important;height:40px!important}#menu-drawer .md-prof .profile-chip-t{gap:2px}

/*PF-REMOVE*/.pf-remove{width:100%;margin-top:8px;box-sizing:border-box}#pf-close,#close-tracker{font-size:22px;line-height:1;min-width:46px}
/*HERO-AV3*/#hero-av-row .hero-av{height:64px!important;min-height:64px!important;max-height:none!important;width:64px!important;min-width:64px!important;line-height:0!important;display:block!important;overflow:visible!important;aspect-ratio:1/1}#hero-av-row .hero-av .pf-av{display:block!important;width:64px!important;height:64px!important;border-radius:50%}
/*HERO-AV4*/#client-view .client-intro{-webkit-mask-image:radial-gradient(circle 34px at 50% calc(100% - 78px),transparent 33.5px,#000 34px);mask-image:radial-gradient(circle 34px at 50% calc(100% - 78px),transparent 33.5px,#000 34px);-webkit-mask-size:100% calc(100% + 80px);mask-size:100% calc(100% + 80px);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:0 0;mask-position:0 0;-webkit-mask-clip:no-clip;mask-clip:no-clip}#hero-av-row .hero-av{border-color:transparent!important;background:transparent!important;box-shadow:none!important}#hero-av-row .hero-av:hover,#hero-av-row .hero-av:active,#hero-av-row .hero-av:focus{background:transparent!important}
/*HERO-AV5*/#client-view .client-intro{-webkit-mask-image:radial-gradient(circle 37px at 50% calc(100% - 78px),transparent 36.5px,#000 37px);mask-image:radial-gradient(circle 37px at 50% calc(100% - 78px),transparent 36.5px,#000 37px)}#hero-av-row .hero-av{border-width:5px!important;top:-35px!important;margin-left:-37px!important}

/*MILE-EN*/.streak-pop-en{direction:ltr;text-align:right;unicode-bidi:isolate;font-size:11px;font-weight:700;letter-spacing:.8px;color:var(--muted)}
/*NOSHADOW*/html #client-view .client-intro,html.dark #client-view .client-intro{box-shadow:none!important}
/*AV-EMPTY*/.pf-av.pf-av-empty{display:inline-flex!important;align-items:center;justify-content:center;line-height:1!important;text-align:center;font-weight:800}
#hero-av-row .hero-av .pf-av.pf-av-empty{display:flex!important;font-size:27px!important;line-height:1!important}
#menu-drawer .md-prof .pf-av.pf-av-empty{font-size:17px!important}
/*PF-EXTRA*/#profile-dialog .pf-extra{display:grid;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}#profile-dialog .pf-extra button{display:block;width:100%;margin:0;-webkit-tap-highlight-color:transparent}
/*PF-ICONS*/#profile-dialog .pf-extra button{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:0 16px;text-align:right}#profile-dialog .pf-extra button svg{width:22px;height:22px;flex:none;color:#d9000b}#profile-dialog .pf-extra .icon-sun{display:none}html.dark #profile-dialog .pf-extra .icon-sun{display:block}html.dark #profile-dialog .pf-extra .icon-moon{display:none}#profile-dialog .pf-cheer .cheer-off{display:none}#profile-dialog .pf-cheer.is-off .cheer-on{display:none}#profile-dialog .pf-cheer.is-off .cheer-off{display:inline}
/*PF-ICONS2*/#profile-dialog .pf-extra button{position:relative;justify-content:center;padding:0 48px;text-align:center}#profile-dialog .pf-extra button svg{position:absolute;right:16px;top:50%;margin-top:-11px}
/*PF-ROW*/#profile-dialog .pf-btnrow{display:flex;gap:10px;margin:12px 0 10px}#profile-dialog .pf-btnrow button{flex:1 1 0;min-width:0;width:auto!important;margin:0!important;height:48px;min-height:48px;padding:0 8px;white-space:nowrap;display:flex;align-items:center;justify-content:center}#profile-dialog .pf-btnrow button[hidden]{display:none}
/*TN-COLLAPSE*/.tracker-note .tn-head{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:40px;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:start;box-shadow:none;-webkit-tap-highlight-color:transparent;cursor:pointer}.tracker-note .tn-head:hover,.tracker-note .tn-head:active,.tracker-note .tn-head:focus{background:transparent;transform:none}.tracker-note .tn-head b{margin:0!important}.tracker-note .tn-chev{flex:none;color:var(--muted);transition:transform .2s}.tracker-note.tn-closed .tn-chev{transform:rotate(-90deg)}.tracker-note ol[hidden]{display:none}.tracker-note.tn-closed{padding-top:2px!important;padding-bottom:2px!important}
/*PF-ICONS3*/#profile-dialog .pf-extra button{justify-content:center;padding:0 12px;gap:12px;text-align:start}#profile-dialog .pf-extra button svg{position:static;margin:0;right:auto;top:auto}#profile-dialog .pf-extra button span{display:block;width:11.5em;text-align:start;white-space:nowrap}
/*STREAK-TIDY*/.streak-top{align-items:center!important;gap:12px!important}.streak-top .streak-side{margin-top:0!important;align-self:center;gap:0}.streak-mid{gap:2px!important;padding-inline-end:4px}.streak-mid .streak-best{margin:8px 0 0!important;align-self:flex-start}.streak-top-badge,.streak-top-badge svg{width:48px;height:48px}
/*STREAK-TIDY2*/.streak-top .streak-side{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;margin-top:0!important;align-self:center;flex:none}.streak-side .streak-best{margin:0!important;align-self:center}.streak-top .streak-mid{align-self:center;padding-inline-end:6px}.streak-top .streak-mid .streak-best{display:none}
.streak-side .streak-best{padding:3px 8px!important;font-size:11px!important;gap:3px!important}.streak-side .streak-best b{font-size:13px!important}.streak-top{gap:8px!important}

/*TIER-COLORS*/
.streak-card[data-tier="1"]{--tr:184,105,58;--tc:rgb(184,105,58)}html.dark .streak-card[data-tier="1"]{--tr:224,154,107;--tc:rgb(224,154,107)}
.streak-card[data-tier="3"]{--tr:111,127,153;--tc:rgb(111,127,153)}html.dark .streak-card[data-tier="3"]{--tr:183,195,214;--tc:rgb(183,195,214)}
.streak-card[data-tier="6"]{--tr:194,138,10;--tc:rgb(194,138,10)}html.dark .streak-card[data-tier="6"]{--tr:243,192,74;--tc:rgb(243,192,74)}
.streak-card[data-tier="12"]{--tr:124,77,222;--tc:rgb(124,77,222)}html.dark .streak-card[data-tier="12"]{--tr:169,139,255;--tc:rgb(169,139,255)}
.streak-card[data-tier="24"]{--tr:214,40,95;--tc:rgb(214,40,95)}html.dark .streak-card[data-tier="24"]{--tr:255,107,149;--tc:rgb(255,107,149)}
.streak-card[data-tier="52"]{--tr:14,154,167;--tc:rgb(14,154,167)}html.dark .streak-card[data-tier="52"]{--tr:63,211,223;--tc:rgb(63,211,223)}
.streak-card[data-tier]{box-shadow:inset 0 3px 0 var(--tc);background-image:linear-gradient(180deg,rgba(var(--tr),.09),rgba(var(--tr),0) 150px)}
.streak-card[data-tier] .streak-flame.on{color:var(--tc);border-color:rgba(var(--tr),.5);background:rgba(var(--tr),.12)}
.streak-card[data-tier] .streak-dot::after{background:var(--tc)}
.streak-card[data-tier] .streak-best{color:var(--tc);border-color:rgba(var(--tr),.55);background:linear-gradient(135deg,rgba(var(--tr),.2),rgba(var(--tr),.08))}
.streak-card[data-tier] .streak-new{color:var(--tc)}
/*HERO-AV6*/#hero-av-row .hero-av{transform:translateZ(0);will-change:transform;backface-visibility:hidden;-webkit-tap-highlight-color:transparent}#hero-av-row .hero-av .pf-av,#hero-av-row .hero-av svg{transform:translateZ(0)}
/*HERO-AV7*/#client-view.cv-tracker>#hero-av-row#hero-av-row,#client-view.cv-weekly>#hero-av-row#hero-av-row,#client-view.cv-alerts>#hero-av-row#hero-av-row,#client-view.cv-alts>#hero-av-row#hero-av-row,#client-view.cv-programs>#hero-av-row#hero-av-row{display:block!important}
/*DAY-EXC*/
.day-exc-badge{display:inline-block;margin:0 0 8px;padding:5px 12px;border-radius:999px;background:rgba(46,160,90,.16);color:#1f7a45;font-weight:700;font-size:.9rem;border:0;outline:0}
.dark .day-exc-badge{background:rgba(70,200,120,.18);color:#6fe0a0}
/*DAY-REQ-PROMISE*/.day-req-promise{margin:6px 0 0;color:#c0392b;font-weight:700;font-size:.9rem;line-height:1.6}.dark .day-req-promise{color:#ff8a7a}.day-req-promise[hidden]{display:none}
/*REQ-DEC*/.coach-req-dec{display:inline-block;margin:0 8px;padding:2px 10px;border-radius:999px;background:rgba(200,50,50,.15);color:#b3261e;font-weight:700;font-size:.85rem}.dark .coach-req-dec{background:rgba(255,120,110,.18);color:#ff9a8f}

/*GUEST-HDR-NOSHADOW*/html body.guest header,html.dark body.guest header,html body.guest.booting header{box-shadow:none!important;filter:none!important}

/* flag card layout */
.coach-sus-row2{display:flex;flex:1 0 100%;gap:8px;width:100%;box-sizing:border-box}
.coach-sus-row2 .coach-streak-btn{flex:1 1 0;min-width:0;margin:0;height:44px;min-height:44px;padding:0 10px;font-size:13.5px;font-weight:700;text-align:center;white-space:normal}

/*BTN-SYS: one button system for coach flag card, request rows, ignored list, confirm dialogs*/
.coach-streak button.coach-streak-btn,.coach-streak button.coach-excuse-chip{box-sizing:border-box;height:44px;min-height:44px;padding:0 14px;border-radius:12px;font-size:13.5px;font-weight:700;line-height:1.2;display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:normal;background:transparent;border:1px solid rgba(128,128,128,.45);color:inherit}
.coach-streak .coach-sus-row2{display:flex;gap:8px;width:100%;flex:1 0 100%}
.coach-streak .coach-sus-row2 button.coach-streak-btn{flex:1 1 0;min-width:0;margin:0}
.coach-streak button.coach-streak-btn:disabled{opacity:.55}
#app-confirm .dialog-head button.ac-x{width:36px!important;min-width:36px!important;height:36px;min-height:36px;padding:0;border-radius:12px;font-size:18px}
#app-confirm .ac-lead:empty{display:none}
#app-confirm .actions{display:flex;gap:10px}
#app-confirm .actions button{flex:1 1 0;min-width:0;height:46px;min-height:46px;padding:0 12px;border-radius:12px;font-size:14px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
#app-confirm .actions .ac-no{background:transparent;color:inherit;border:1px solid rgba(128,128,128,.45)}
#app-confirm .actions .ac-ok{border:1px solid transparent}
/*BTN-SYS2: request/ignored rows as clean cards, section headers as full-width rows*/
.coach-sec .coach-sec-t{display:flex;width:100%;align-items:center;gap:8px;min-height:44px;height:44px;padding:0 12px;margin-top:8px;border:1px solid rgba(128,128,128,.35);border-radius:12px;background:transparent;color:inherit;font-weight:700;font-size:14px;text-align:start;cursor:pointer}
.coach-sec .coach-sec-t .coach-sec-ar{margin-inline-start:auto}
.coach-sec-body .coach-excuse{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;margin:8px 0 0;border:1px solid rgba(128,128,128,.28);border-radius:14px}
.coach-sec-body .coach-excuse .coach-excuse-l{flex:1 1 auto;min-width:0}
.coach-sec-body .coach-req .coach-req-why{flex:1 0 100%;order:5}
.coach-sec-body .coach-req .coach-streak-btn{flex:1 1 0;order:9}
.coach-req-dec{font-size:12px;font-weight:700;padding:2px 10px;border-radius:999px;border:1px solid rgba(128,128,128,.45)}
.coach-sec-body .coach-req-ok .coach-streak-btn,.coach-sec-body .coach-sus .coach-streak-btn{flex:1 0 100%;order:9}
.coach-sec-body .coach-req-ok .coach-excuse-l{flex:1 1 0}
.credit-row .credit-tg{margin-inline-start:auto;width:36px;height:36px;min-height:36px;padding:0;border-radius:12px;border:1px solid rgba(128,128,128,.35);background:transparent;color:inherit;font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .15s}
.credit-row .credit-tg.closed{transform:rotate(90deg)}
.credit-note[hidden]{display:none}

.media-preview{width:min(92vw,420px);max-height:90vh;overflow:auto;border:1px solid var(--line,#ddd);border-radius:16px;padding:16px;display:grid;gap:10px;background:var(--surface,#fff);color:inherit}
.media-preview::backdrop{background:rgba(0,0,0,.5)}
.media-preview .media-orig{display:flex;gap:8px;align-items:center;font-size:.95rem}
.media-preview-img{width:100%;max-height:50vh;object-fit:contain;border-radius:12px;background:#0001}
.media-preview-actions{display:flex;gap:10px}.media-preview-actions button{flex:1;min-height:46px;border-radius:12px}
/*STREAK-STACK*/.streak-mid{align-items:center!important;text-align:center}
.streak-mid .streak-lab{white-space:nowrap;text-align:center}
.streak-mid .streak-num{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center;gap:0!important;white-space:nowrap!important;line-height:1.15}
.streak-mid .streak-n{display:block;text-align:center;line-height:1.05}
.streak-mid .streak-u{display:block;white-space:nowrap;text-align:center;font-size:13px;margin-top:2px}
.streak-mid .streak-best{align-self:center!important}
.media-note{margin:4px 0 0;font-size:.78rem;opacity:.7}
.msg-item .media-box{max-width:100%}
.msg-item .media-box img{display:block;max-width:100%;max-height:260px;width:auto;height:auto;object-fit:contain;border-radius:12px}
.msg-item .media-box audio{max-width:100%}
.voice-timer{font-size:2rem;text-align:center;margin:0;font-variant-numeric:tabular-nums}.voice-dlg audio{width:100%}

/*AUDIT-LOG*/.wk-audit .wk-note-box{border-inline-start-color:#9aa3af;background:#f6f7f9;border-color:#e3e6ea}.wk-audit .wk-note-wk{color:var(--muted);font-weight:700}html.dark .wk-audit .wk-note-box{background:rgba(255,255,255,.06);border-inline-start-color:#9aa3af;border-color:#ffffff1f}

.streak-badge-gift{display:block;font-size:9px;line-height:1.5;color:var(--muted);margin-top:3px;white-space:normal}.streak-gift-once{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 0 0;text-align:center}
.media-edit-canvas{display:block;touch-action:none}
.media-edit-bar{display:flex;gap:8px;flex-wrap:wrap}.media-edit-bar button{flex:1;min-height:42px;border-radius:12px}.media-edit-bar button.on{outline:2px solid currentColor}.media-edit-bar button:disabled{opacity:.4}
.media-edit-colors{display:flex;gap:10px;justify-content:center}.media-edit-sw{width:30px;height:30px;border-radius:50%;border:2px solid #8886;padding:0}.media-edit-sw.on{outline:3px solid #1e88e5}

.msg-tick{margin-inline-start:6px;font-size:.85em;opacity:.55;letter-spacing:-2px}.msg-tick.read{color:#1e88e5;opacity:1}.msg-played{font-size:.8em;color:#1e88e5}
.media-save{margin-inline-start:6px}

#review-form>label.has-ic{position:relative}
.media-ic{position:absolute;left:8px;bottom:6px;width:34px;height:34px;border-radius:50%;border:0;background:transparent;color:var(--muted,#8a94a0);display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;font-size:0}
.media-ic+.media-ic{left:44px}
.media-ic:active{background:rgba(127,127,127,.2)}
#review-form>label.has-ic textarea{padding-left:84px}
#review-editor.chat #coach-reply{padding-left:88px}
.media-edit-bar .send-btn{min-width:72px}

.media-preview{max-height:92dvh;max-height:92vh}
@supports(height:1dvh){.media-preview{max-height:92dvh}}
.mp-stage{display:flex;gap:10px;align-items:center;direction:ltr}
.mp-stage .media-preview-img{flex:1 1 auto;min-width:0;width:100%;max-height:44vh}
@supports(height:1dvh){.mp-stage .media-preview-img{max-height:44dvh}}
.mp-stage .media-edit-colors{flex:none;flex-direction:column;justify-content:center;gap:12px}
.media-preview{padding-bottom:0}
.media-preview .media-preview-actions{position:sticky;bottom:0;background:var(--surface,#fff);padding:10px 0 calc(12px + env(safe-area-inset-bottom));margin-top:2px;z-index:2}

/* compact voice bubble */
.msg-item .media-box audio{display:none}
.vp{display:flex;align-items:center;gap:8px;direction:ltr;width:210px;max-width:100%;padding:4px 2px}
.vp-btn{flex:0 0 34px;width:34px;height:34px;border-radius:50%;border:0;background:#c8102e;color:#fff;font-size:.8rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.vp-wave{flex:1;display:flex;align-items:center;gap:2px;height:30px;cursor:pointer;direction:ltr}
.vp-wave i{flex:1;min-width:2px;border-radius:2px;background:rgba(120,120,130,.45)}
.vp-wave i.on{background:#c8102e}
.vp-dur{flex:0 0 auto;font-size:.75rem;font-variant-numeric:tabular-nums;color:#666;min-width:30px;text-align:right}

/* compact media bubbles + centered composer icons (357 -> 358) */
.msg-item[data-media]{width:fit-content;min-width:150px;max-width:min(80%,270px);padding:6px 9px 6px}
.msg-item[data-media] .thread-head{margin:0 0 2px}
.msg-item[data-media] .media-box img{max-width:100%;max-height:190px}
.msg-item[data-media] .media-note{font-size:.66rem;line-height:1.35;margin:2px 0 0;opacity:.6}
.msg-item[data-media] .media-save,.msg-item[data-media] .media-del{min-height:0;height:auto;padding:2px 9px;font-size:.7rem;line-height:1.5;margin:4px 4px 0 0;border-radius:10px}
.msg-item[data-media] .msg-actions{margin-top:2px;gap:6px}
.msg-item[data-media] .vp{width:190px}
#review-form>label.has-ic textarea{display:block}
.media-ic{bottom:auto;top:6px}

/* voice bubble slimmer, round button (360) */
.vp{gap:7px;padding:0;width:180px}
.vp-btn{flex:none!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;aspect-ratio:1/1;padding:0!important;border-radius:50%!important;font-size:.7rem;box-sizing:border-box}
.vp-wave{height:24px}
.msg-item[data-media="voice"]{padding:4px 9px;min-width:0}
.msg-item[data-media="voice"] .thread-head{margin:0}
.msg-item[data-media="voice"] .media-note{margin:0}
.msg-item[data-media="voice"] .msg-actions{margin-top:0}

/* lightbox */
dialog.lightbox{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center}
dialog.lightbox::backdrop{background:#000}
dialog.lightbox img{max-width:100vw;max-height:100vh;max-height:100dvh;object-fit:contain;display:block}
dialog.lightbox .lb-x{position:absolute;top:14px;right:14px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;font-size:28px;line-height:1;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer}
.msg-item .media-box img{cursor:zoom-in}

/* inline voice recorder (363) */
#review-editor.chat #review-form{position:relative}
.vrec{position:absolute;inset:0;z-index:5;display:flex;align-items:center;gap:10px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));direction:ltr;color:var(--ink,#eee);border-top:1px solid transparent}
.vrec button{flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:50%;border:0;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:.9rem}
.vrec .vr-send{background:#de3146;color:#fff;width:46px;height:46px}
.vrec .vr-play{background:rgba(127,127,127,.22)}
.vrec button:disabled{opacity:.5}
.vr-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#de3146;animation:vrblink 1s infinite}
@keyframes vrblink{50%{opacity:.25}}
.vr-time{flex:none;min-width:38px;font-variant-numeric:tabular-nums;font-size:.95rem}
.vr-wave{flex:1;min-width:0;height:32px;display:block}

.msg-item .msg-played{margin-inline-start:4px;font-size:.7rem;color:#1e88e5;white-space:nowrap}
.msg-item[data-media] .media-note{font-size:.62rem;line-height:1.25;margin:1px 0 0;opacity:.55}

.msg-item.pending-media{width:fit-content;min-width:150px;max-width:min(80%,270px);padding:6px 9px;opacity:.92}
.msg-item.pending-media .media-box img{display:block;max-width:100%;max-height:190px;border-radius:12px;filter:saturate(.8)}
.msg-pending{font-size:.7rem;margin:2px 0 0}.msg-pending.err{color:#de3146}
.msg-pending-row{display:flex;gap:6px}.msg-pending-row:empty{display:none}
.msg-pending-row button{min-height:0;height:auto;padding:2px 9px;font-size:.7rem;border-radius:10px}

/* v2: stable media bubbles, kebab menu, lightbox save, spinner */
.msg-item[data-media]{position:relative;padding-right:34px}
.media-kebab{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:30px;height:36px;min-height:0;padding:0;border:0;background:transparent;color:inherit;opacity:.7;display:flex;align-items:center;justify-content:center;border-radius:10px;cursor:pointer}
.media-kebab:active{background:rgba(127,127,127,.25)}
.media-menu{position:fixed;z-index:2147483000;min-width:120px;background:#2a2d33;color:#fff;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.45);padding:4px;display:flex;flex-direction:column}
.media-menu button{min-height:44px;border:0;background:transparent;color:inherit;font-size:1rem;text-align:start;padding:0 14px;border-radius:8px;cursor:pointer}
.media-menu button:active{background:rgba(255,255,255,.12)}
.media-menu button.danger{color:#ff6b7d}
dialog.lightbox .lb-save{position:absolute;top:14px;left:14px;min-width:64px;height:44px;padding:0 16px;border-radius:22px;border:0;background:rgba(255,255,255,.18);color:#fff;font-size:1rem;cursor:pointer}
.msg-spin{display:inline-block;width:12px;height:12px;border:2px solid rgba(127,127,127,.4);border-top-color:#de3146;border-radius:50%;animation:msgspin .8s linear infinite;vertical-align:middle;margin-inline-end:6px}
@keyframes msgspin{to{transform:rotate(360deg)}}
.msg-item.pending-media{opacity:1}
.msg-item.pending-media .msg-actions button{display:none}
.msg-item.pending-media .media-box img{filter:none}

#app-confirm .actions button.danger{margin-top:0!important}
#app-confirm .actions{align-items:stretch}
.msg-item[data-media] .msg-actions .media-save,.msg-item[data-media] .msg-actions .media-del{min-height:0;height:auto;padding:0 6px;font-size:.72rem;line-height:1.6;margin:0;border-radius:8px}
.msg-item[data-media]{padding-right:9px}

.media-box.media-loading{border-radius:12px;background:rgba(127,127,127,.15);min-width:120px}

.msg-item[data-media] .msg-actions .media-del-ok{color:#ff6b7d}

.msg-actions .media-del-ok{color:#ff6b7d}

.msg-item.media-gone,.msg-item[data-media]:has(.media-box[data-media-state]){padding:3px 12px!important;min-width:0!important;width:fit-content!important;max-width:min(80%,270px)}
.msg-item.media-gone .thread-head,.msg-item.media-gone .media-note,.msg-item.media-gone .msg-actions button,.msg-item.media-gone .msg-pending-row,.msg-item[data-media]:has(.media-box[data-media-state]) .thread-head,.msg-item[data-media]:has(.media-box[data-media-state]) .media-note,.msg-item[data-media]:has(.media-box[data-media-state]) .msg-actions button{display:none!important}
.msg-item.media-gone .media-box,.msg-item .media-box[data-media-state]{min-height:0!important;background:none!important;padding:0;font-size:.72rem!important;font-style:italic;font-weight:300;line-height:1.4;opacity:.75;border-radius:0}
.msg-item.media-gone .msg-actions,.msg-item[data-media]:has(.media-box[data-media-state]) .msg-actions{margin:0!important;min-height:0}

.media-box.media-loading{display:flex;align-items:center;justify-content:center}.media-box.media-loading .msg-spin{margin:0;width:18px;height:18px;border-width:3px}

.media-ic-file{overflow:hidden}.media-ic-file input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:0}

.media-ic-file{min-height:46px;height:46px}.media-ic+.media-ic+.media-ic{left:80px}#review-form>label.has-ic textarea{padding-left:122px}

#review-editor.chat #coach-reply{padding-left:104px}#review-editor.chat .media-ic{width:30px;left:6px}#review-editor.chat .media-ic+.media-ic{left:36px}#review-editor.chat .media-ic+.media-ic+.media-ic{left:66px}

#review-editor.chat #review-form .send-btn{width:46px;min-width:46px;height:46px;padding:0;border-radius:50%;position:relative;display:block}#review-editor.chat #review-form .send-btn::after{content:'';position:absolute;inset:0;margin:auto;width:20px;height:18px;font-size:0;background:#fff;clip-path:polygon(0 0,100% 50%,0 100%,18% 50%);transform:scaleX(-1)}

#review-editor.chat .media-ic{width:26px;left:8px;top:6px;bottom:auto;height:46px;min-height:46px}#review-editor.chat .media-ic+.media-ic{left:34px}#review-editor.chat .media-ic+.media-ic+.media-ic{left:60px}#review-editor.chat .media-ic svg{width:18px;height:18px}#review-editor.chat #coach-reply{padding-left:92px}

.msg-item.pending-media .media-box video{filter:saturate(.8)}
.media-hid{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}
#review-form>label.has-ic textarea{padding-left:92px}#review-editor.chat #coach-reply{padding-left:74px}
.media-menu{position:fixed;z-index:9999;background:var(--surface,#fff);color:var(--ink,#262124);border:1px solid rgba(127,127,127,.25);border-radius:14px;box-shadow:0 8px 28px rgba(0,0,0,.22);padding:6px;min-width:190px;direction:rtl}
.media-menu-item{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:inherit;font:inherit;font-size:15px;padding:12px 10px;border-radius:10px;cursor:pointer;text-align:right}
.media-menu-item:active{background:rgba(127,127,127,.18)}

.vv{position:relative;display:block;width:100%;max-width:320px;border-radius:12px;overflow:hidden;background:#0d1417;direction:ltr;line-height:0}
.vv video{display:block;width:100%;max-height:300px;background:#0d1417;object-fit:contain}
.vv-big{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;height:54px;border-radius:50%;border:0;background:rgba(200,16,46,.92);color:#fff;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.35)}
.vv-big[hidden]{display:none}
.vv-bar{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;gap:6px;padding:6px 8px;background:linear-gradient(transparent,rgba(8,14,16,.82));color:#fff;line-height:1}
.vv-b{flex:none;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;min-width:30px;min-height:30px}
.vv-b:active{background:rgba(255,255,255,.18)}
.vv-t{flex:none;font-size:11px;font-variant-numeric:tabular-nums;color:#e8eef0;min-width:34px;text-align:center}
.vv-seek{flex:1;min-width:0;height:18px;margin:0;-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer}
.vv-seek::-webkit-slider-runnable-track{height:3px;border-radius:2px;background:rgba(255,255,255,.35)}
.vv-seek::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;margin-top:-4.5px;border-radius:50%;background:#c8102e;border:0}
.vv-seek::-moz-range-track{height:3px;border-radius:2px;background:rgba(255,255,255,.35)}
.vv-seek::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#c8102e;border:0}


.vv::-webkit-media-controls{display:none!important}

.vc-ov{position:fixed;inset:0;z-index:10000;background:rgba(8,14,16,.6);display:flex;align-items:center;justify-content:center;padding:24px}
.vc-card{background:var(--surface,#fff);color:var(--ink,#262124);border-radius:16px;padding:18px;width:100%;max-width:320px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.vc-card p{margin:0 0 12px;font-size:15px}
.vc-bar{height:6px;border-radius:3px;background:rgba(127,127,127,.25);overflow:hidden;margin-bottom:14px}
.vc-bar i{display:block;height:100%;width:0;background:#c8102e;transition:width .2s}
.vv .vv-seek{border:0!important;padding:0!important;box-shadow:none!important;background:transparent!important;min-height:0!important;width:auto!important;border-radius:0!important;outline:0}

.vv.vv-full{position:fixed;inset:0;z-index:10001;width:100vw;height:100vh;height:100dvh;max-width:none;border-radius:0;background:#000;display:flex;align-items:center;justify-content:center}
.vv.vv-full video{width:100%;height:100%;max-height:none;object-fit:contain}
.vv-x{display:none;position:absolute;top:max(12px,env(safe-area-inset-top));right:12px;width:42px;height:42px;border:0;border-radius:50%;background:rgba(20,26,28,.72);color:#fff;align-items:center;justify-content:center;padding:0;cursor:pointer;z-index:2}

.vv.vv-full .vv-bar{padding-bottom:max(10px,env(safe-area-inset-bottom))}
html.vv-lock,html.vv-lock body{overflow:hidden}
.msg-item[data-media] .media-box{overflow:hidden;contain:layout paint}
.msg-item[data-media] .vv,.msg-item[data-media] .vv video{max-width:100%}
.msg-item[data-media=voice] .media-box.media-loading{min-width:210px}
.msg-item .msg-tick{display:inline-block;min-width:1.6em;text-align:center;margin-inline-start:6px}
#menu-diag[hidden],#menu-diag-copy[hidden]{display:none!important}
.msg-item .media-box[data-media-state]{overflow:visible!important;contain:none!important;display:block!important;white-space:nowrap;min-height:0!important;width:auto!important}

.bc-vis{display:flex;align-items:center;gap:8px;font-size:13px;margin:10px 0 0;cursor:pointer}.bc-vis input{width:18px;height:18px;margin:0;flex:none}
.wp-coach{border:1px solid var(--line);border-radius:12px;padding:14px;margin:0 0 12px;background:var(--surface,transparent)}
.wp-coach>summary{cursor:pointer;font-weight:700}
.wp-body{display:grid;gap:10px;margin-top:12px}
.wp-eday{border:1px solid var(--line);border-radius:10px;padding:10px;display:grid;gap:8px}
.wp-eday-h{display:flex;gap:8px;align-items:center}.wp-eday-h input{flex:1;min-width:0}
.wp-erow{display:grid;gap:6px;padding:8px 0;border-top:1px solid var(--line)}
.wp-ehead{display:flex;gap:8px;align-items:center}.wp-ehead input{flex:1;min-width:0}
.wp-etgl{flex:none;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:transparent;color:inherit;cursor:pointer;display:inline-grid;place-items:center;padding:0;-webkit-tap-highlight-color:transparent}
.wp-etgl:after{content:"";width:8px;height:8px;border-right:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(-135deg);margin-top:4px;transition:transform .15s}
.wp-erow.wp-cls .wp-etgl:after{transform:rotate(45deg);margin-top:-4px}
.wp-ebody{display:grid;gap:6px}.wp-erow.wp-cls .wp-ebody{display:none}
.wp-nums{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:6px}@media(max-width:520px){.wp-nums{grid-template-columns:1fr 1fr}}
.wp-nums input,.wp-erow input,.wp-body>input,.wp-eday-h input{min-width:0;width:100%;box-sizing:border-box}
.wp-acts{display:flex;gap:6px}
.wp-mini{padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:transparent;color:inherit;font:inherit;font-size:13px}
.wp-mini:disabled{opacity:.35}.wp-add{justify-self:start}
.wp-card{position:relative;overflow:hidden;border-radius:20px;padding:20px 16px 18px;margin:0 0 14px;background:#14161c;color:#fff;border:0;box-shadow:0 10px 28px rgba(20,22,28,.22)}
.wp-card:before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:#de3146}
.wp-card .eyebrow{color:#de3146;margin:4px 0 6px}
.wp-card h3{margin:0 0 14px;color:#fff;font-size:22px}
.wp-day{border:1px solid rgba(255,255,255,.12);border-radius:14px;margin:10px 0;padding:0;background:rgba(255,255,255,.04);overflow:hidden}
.wp-day>summary{cursor:pointer;font-weight:800;padding:14px;font-size:17px;list-style:none;display:flex;align-items:center;gap:10px}
.wp-day>summary::-webkit-details-marker{display:none}
.wp-day>summary:before{content:attr(data-n);min-width:28px;height:28px;border-radius:50%;background:#de3146;color:#fff;display:inline-grid;place-items:center;font-size:14px;font-weight:800}
.wp-day>summary:after{content:"+";margin-inline-start:auto;color:#de3146;font-size:22px;line-height:1}
.wp-day[open]>summary:after{content:"\2212"}
.wp-ex{padding:11px 14px;border-top:1px solid rgba(255,255,255,.09);display:grid;gap:3px}
.wp-ex-n{font-weight:700;color:#fff}.wp-ex-l{color:#ff7886;font-size:14px;font-weight:700;direction:ltr;text-align:start;unicode-bidi:plaintext}
.wp-ex-note{font-size:13px;color:rgba(255,255,255,.62)}
.wp-pdf{margin-top:8px;width:100%;padding:13px;border:0;border-radius:12px;background:#de3146;color:#fff;font:inherit;font-weight:800;font-size:15px;cursor:pointer}
.wp-pdf:disabled{opacity:.6}
.wp-body .wp-pdf{width:auto;justify-self:start;padding:10px 18px}
.wp-vid{display:inline-block;margin-top:6px;justify-self:start;padding:7px 12px;border-radius:10px;background:rgba(222,49,70,.16);color:#ff8a96;font-weight:700;font-size:13px;text-decoration:none}
.wp-faq-q{direction:ltr;text-align:start;unicode-bidi:plaintext;color:#ff8a96;font-size:14px;letter-spacing:.3px}.wp-faq-a{font-size:14px;line-height:1.7;color:rgba(255,255,255,.82)}.wp-faq>summary:before{background:transparent;border:2px solid #de3146;color:#de3146}

.wp-chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 4px}
.wp-chip{padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);font-size:12.5px;font-weight:700;color:#fff}
.wp-sec>summary{display:flex}.wp-sec-ar{font-weight:800}.wp-sec-en{margin-inline-start:4px;color:#ff8a96;font-size:12px;letter-spacing:1.2px;font-weight:800;direction:ltr}
.wp-para{font-size:14.5px;line-height:1.85;color:rgba(255,255,255,.88);position:relative;padding-inline-start:16px}
.wp-para:before{content:"";position:absolute;inset-inline-start:0;top:.8em;width:6px;height:6px;border-radius:50%;background:#de3146}
.wp-sec>summary:before{background:#de3146;color:#fff;border:0;font-size:13px}.wp-faq>summary:before{background:#de3146!important;color:#fff!important;border:0!important}
.wp-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media(max-width:520px){.wp-meta{grid-template-columns:1fr}}
.wp-sel{display:grid;gap:4px;font-size:13px}.wp-sel>span{color:var(--muted)}.wp-sel select{width:100%;box-sizing:border-box;min-width:0}
.wp-gsec{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px}.wp-gsec-h{display:grid;gap:2px}
.wp-gitem{display:grid;gap:6px}.wp-gitem textarea,.wp-gitem input{width:100%;box-sizing:border-box;min-width:0}.wp-glabel{font-weight:700}
.wp-gitem .wp-mini{justify-self:start}
.wp-f{display:grid;gap:3px;min-width:0}.wp-f>span{font-size:12px;color:var(--muted)}

.wp-ex2{padding:14px;gap:10px}
.wp-ex-h{display:flex;align-items:center;gap:10px}
.wp-ex-i{flex:none;min-width:26px;height:26px;border-radius:8px;background:rgba(222,49,70,.18);color:#ff8a96;display:inline-grid;place-items:center;font-size:13px;font-weight:800}
.wp-ex2 .wp-ex-n{font-size:16.5px;line-height:1.4}
.wp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:8px}
.wp-stat{display:grid;gap:2px;justify-items:center;text-align:center;padding:9px 6px;border-radius:11px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.09);min-width:0}
.wp-stat-v{font-size:17px;font-weight:800;color:#fff;direction:ltr;unicode-bidi:plaintext;overflow-wrap:anywhere;line-height:1.25}
.wp-stat-k{font-size:11.5px;color:rgba(255,255,255,.58);font-weight:700}
.wp-ex-note2{padding:9px 12px;border-radius:10px;background:rgba(255,255,255,.04);border-inline-start:3px solid #de3146;line-height:1.6;font-size:13.5px}
.wp-ex2 .wp-vid{display:block;margin-top:0;text-align:center;padding:10px 12px}
.wp-stats{grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:6px}
.wp-stat{padding:9px 4px}.wp-stat-v{font-size:16px}
.wp-ex2 .wp-vid{justify-self:stretch}

.wp-logrow{display:grid;gap:6px;justify-items:start}.wp-log{padding:10px 18px;background:#de3146;border-color:#de3146;color:#fff;font-weight:800;font-size:14px}.wp-log:disabled{opacity:.6}
.nu-ih{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.nu-qty{color:#de3146;font-weight:800;direction:rtl;unicode-bidi:isolate;white-space:nowrap}
.nu-mt{margin-inline-start:10px;color:#aeb2bd;font-weight:600;direction:ltr}
.nu-view .nu-target{margin-bottom:14px}
.nu-swap{margin-top:10px;width:100%;min-height:44px;color:#f2f4f8;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.03);font-weight:600}.nu-swap:active{background:rgba(255,255,255,.07)}
.nu-opts{display:grid;gap:8px;margin-top:10px}
.nu-opt{height:auto;min-height:0;justify-content:center}
.nu-opt strong{font-size:15px;line-height:1.55;font-weight:800}
.nu-opt small{font-size:12.5px;line-height:1.6;color:rgba(255,255,255,.75);font-weight:500}
.nu-opt:active{background:#262a35}
.nu-opt{all:unset;line-height:1.5;text-align:right;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:14px;background:#1e212a;border:1px solid #2c303b;color:#fff;cursor:pointer;text-align:start}
.nu-opt strong{font-weight:700;text-align:right}.nu-opt small{color:#aeb2bd;font-size:.8rem;line-height:1.5}
.nu-opt:active{border-color:#de3146}.nu-opt:disabled{opacity:.5}
.nu-item.swapped{border-inline-start:3px solid #de3146}
.nu-notes{margin-top:14px;padding:14px;border-radius:14px;background:#1e212a;color:#fff}.nu-notes p{margin:6px 0 0;white-space:pre-wrap;line-height:1.7}
.nu-calc{margin:10px 0;border:1px solid #d9d6d2;border-radius:14px;padding:10px 12px}.nu-calc summary{cursor:pointer;font-weight:700}
.nu-calc-b{display:grid;gap:10px;margin-top:10px}.nu-calc select,.nu-altsel{width:100%;min-height:42px;border-radius:10px;padding:0 8px}
.nu-sumbar{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;direction:rtl}.nu-sum{padding:4px 10px;border-radius:999px;background:#eceae7;font-weight:700;font-size:.85rem}.nu-sum.off{background:#fde3e6;color:#b3182c}
.nu-g2{display:grid;gap:8px;grid-template-columns:1fr 1fr}.nu-l{display:block;margin:12px 0 6px;font-weight:700}
.nu-f1{grid-template-columns:1fr}
.scale-dd{display:block;position:relative}
.dd-btn{all:unset;box-sizing:border-box;width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 14px;border-radius:12px;background:#fafbfc;border:1px solid #dfe1e8;color:var(--muted);font:inherit;font-size:15px;cursor:pointer}
.dd-btn.has{color:var(--ink);font-weight:800}
.dd-car{width:9px;height:9px;border-inline-end:2.5px solid #de3146;border-bottom:2.5px solid #de3146;transform:rotate(45deg);margin-top:-4px;transition:transform .15s}
.scale-dd.open .dd-btn{border-color:#de3146}.scale-dd.open .dd-car{transform:rotate(-135deg);margin-top:4px}
.dd-list{position:absolute;z-index:30;inset-inline:0;top:calc(100% + 6px);max-height:260px;overflow:auto;border-radius:14px;background:#fff;border:1px solid #dfe1e8;box-shadow:0 14px 34px rgba(20,22,28,.22);padding:6px;display:grid;gap:2px}
.dd-list[hidden]{display:none}
.dd-opt{all:unset;box-sizing:border-box;min-height:44px;display:flex;align-items:center;justify-content:center;border-radius:10px;font-weight:700;font-size:16px;color:var(--ink);cursor:pointer;direction:ltr}
.dd-opt:active{background:#f1d9dc}.dd-opt.on{background:#de3146;color:#fff}
html.dark .dd-btn{background:#22242d;border-color:#3a3d47;color:#aeb2bd}html.dark .dd-btn.has{color:#fff}
html.dark .dd-list{background:#1b1d25;border-color:#3a3d47}html.dark .dd-opt{color:#fff}html.dark .dd-opt:active{background:#3a2328}
.intake-q.miss .dd-btn,.intake-q.miss input[type=text],.intake-q.miss textarea,.intake-q.miss .intake-opts{border-color:#de3146;outline:1px solid #de3146;border-radius:12px}
#intake-answers .dialog-head{align-items:center;gap:10px}
.intake-prof{box-sizing:border-box;display:flex;align-items:center;gap:8px;margin-inline:auto;padding:4px 14px 4px 8px;border-radius:999px;background:rgba(222,49,70,.1);border:1px solid rgba(222,49,70,.5);color:inherit;font:inherit;cursor:pointer;min-width:0;flex:0 1 auto;min-height:0}
.intake-prof .client-avatar{width:38px;height:38px;min-width:38px;flex:none;font-size:16px;margin:0;display:grid;place-items:center}
.intake-prof .abadge,.intake-prof .cbadge{display:none}
.intake-prof-n{font-weight:700;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:110px}
.intake-prof:active{background:rgba(222,49,70,.25)}
#intake-answers .dialog-head .intake-prof{width:auto!important;height:auto!important;min-width:0!important;padding:4px 14px 4px 8px!important;border-radius:999px!important}
@media(max-width:600px){#intake-answers .dialog-head .intake-prof{padding:4px 10px 4px 6px!important}}
.wp-sel-ro{min-height:44px;display:flex;align-items:center;padding:0 12px;border-radius:10px;border:1px solid var(--line);font-weight:700}
.intake-arch{margin-top:14px;border:1px solid var(--line);border-radius:14px;padding:10px 12px}.intake-arch>summary{cursor:pointer;font-weight:700}
.wp-ex-h .wp-ex-n{text-align:start;min-width:0;overflow-wrap:anywhere}
.wp-day>summary{text-align:start}

.wp-actrow{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch}
.wp-actrow .wp-logrow{display:contents}
.wp-actrow .wp-logrow .hint{grid-column:1/-1;order:3;margin:0}
.wp-actrow .send-btn,.wp-actrow .wp-log{width:100%;min-width:0;height:48px;padding:0 10px;margin:0;border:0;border-radius:12px;background:#de3146;color:#fff;font:inherit;font-size:15px;font-weight:800;cursor:pointer;display:block}
.wp-actrow .send-btn:disabled,.wp-actrow .wp-log:disabled{opacity:.6}
.wp-actrow+.wp-pdf{background:transparent;border:1px solid #de3146;color:#de3146;padding:7px 16px;font-size:13px;font-weight:700;border-radius:10px;width:auto;justify-self:start}
.wp-actrow+.wp-pdf{border:0;margin-top:-4px;position:relative;right:-10px;left:auto;padding:7px 10px}
.wp-actrow+.wp-pdf{box-shadow:none!important;background:transparent!important;outline:0}
.wp-meta .wp-sel{display:flex;flex-direction:row;align-items:center;gap:12px}
.wp-meta .wp-sel>span{flex:0 0 auto;white-space:nowrap}
.wp-meta .wp-sel>select{flex:1 1 auto;min-width:0;width:auto}
.wp-actrow+.wp-pdf{margin-top:-8px;right:0;padding:7px 0}
.wp-actrow+.wp-pdf{top:-4px}
.wp-view .wp-ex-h{cursor:pointer;-webkit-tap-highlight-color:transparent}
.wp-ex-c{margin-inline-start:auto;flex:0 0 auto;width:9px;height:9px;border-right:2px solid #de3146;border-left:0;border-bottom:2px solid #de3146;transform:rotate(45deg);transition:transform .2s;margin-bottom:3px}
.wp-ex-open .wp-ex-c{transform:rotate(-135deg);margin-bottom:-3px}
.wp-ex-b{display:grid;gap:10px}.wp-ex-b[hidden]{display:none}

.wp-nums{grid-template-columns:repeat(5,1fr)}@media(max-width:520px){.wp-nums{grid-template-columns:1fr 1fr 1fr}}
#wprog-client .wp-stats,.wp-view .wp-stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
.wp-view .wp-stats{display:flex;flex-wrap:nowrap;gap:5px;width:100%}
.wp-view .wp-stat{flex:1 1 0;min-width:0;padding:6px 2px;border-radius:9px;gap:1px}
.wp-view .wp-stat-k{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.wp-view .wp-stat-v{font-size:14px;line-height:1.2}
.wp-view .wp-stat-k{font-size:10px;white-space:nowrap}
.wp-actrow+.wp-pdf{top:-32px;right:18px}
.wp-eday.wp-dcls .wp-dtgl:after{transform:rotate(45deg);margin-top:-4px}
.wp-eday.wp-dcls>.wp-erow,.wp-eday.wp-dcls>.wp-add{display:none}
.wp-draft{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:2px 12px;border-radius:10px;border:1px solid rgba(222,49,70,.45);background:rgba(222,49,70,.1);font-size:13px}
.wp-draft .wp-mini{flex:none;white-space:nowrap;padding:1px 8px;font-size:11px;min-height:0}
#wprog-coach .wp-eday>.wp-erow{background:#eceef3;border:1px solid #d6d9e2;border-radius:10px;padding:8px 10px}
html.dark #wprog-coach .wp-eday>.wp-erow{background:#0b0c10;border:1px solid rgba(255,255,255,.07)}
.wp-en{flex:none;min-width:26px;height:26px;border-radius:8px;background:rgba(222,49,70,.14);color:#de3146;display:inline-grid;place-items:center;font-size:13px;font-weight:800;direction:ltr}
html.dark .wp-en{background:rgba(222,49,70,.18);color:#ff8a96}
.wp-actrow [hidden]{display:none!important}
#wprog-coach .wp-eday>.wp-erow input,#wprog-coach .wp-eday>.wp-erow textarea{background:#fff;border:1px solid #c4c9d6;color:#181a20}
html.dark #wprog-coach .wp-eday>.wp-erow input,html.dark #wprog-coach .wp-eday>.wp-erow textarea{background:#050609;border:1px solid rgba(255,255,255,.3);color:#fff}
html.dark #wprog-coach .wp-eday>.wp-erow input::placeholder{color:rgba(255,255,255,.4)}
/*DAYPLAN-MERGE*/h3.day-plan-t{display:flex;justify-content:space-between;align-items:center;gap:8px}
.plan-card.plan-flat{border:0;background:transparent;box-shadow:none;overflow:visible;margin:6px 0}
/*COPYDAY*/#wp-copyday{max-width:330px;padding:14px 16px}
#wp-copyday .dialog-head{padding-bottom:0;margin-bottom:4px;border-bottom:0}
#wp-copyday .dialog-head h2{font-size:15px}
#wp-copyday .dialog-head button{min-width:32px;width:32px;height:32px;min-height:32px;padding:0;font-size:15px;border-radius:9px}
#wp-copyday .wp-cdays{display:grid;gap:6px;margin:8px 0 12px}
#wp-copyday .wp-cday{display:flex;gap:8px;align-items:center;width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);background:var(--surface,#fff);border-radius:10px;font-size:13px;box-shadow:none;color:inherit;text-align:start}
#wp-copyday .wp-cday:hover{background:#fff0f1;border-color:var(--red)}
#wp-copyday .wp-cday.is-cur{opacity:.55}
#wp-copyday .wp-cday-n{flex:none;font-weight:800;color:var(--red);font-size:11px}
#wp-copyday .wp-cday-t{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.dark #wp-copyday .wp-cday:hover{background:#2a1a1d}
#wp-copyday .wp-cday-cancel{width:100%}
#intake-answers .dialog-head{gap:10px}
#intake-answers .dialog-head h2{margin-inline-end:auto}
#intake-answers .dialog-head .intake-prof{margin-inline:0}

.ghost-danger{background:transparent;color:#b71f32;border:1px solid #b71f32;font-size:12px;font-weight:600;min-height:36px;height:36px;padding:0 14px;margin:14px 0 0;border-radius:9px;box-shadow:none}
.ghost-danger:hover{background:#fff1f2}
html.dark .ghost-danger{color:#ff8a95;border-color:rgba(222,49,70,.55)}
html.dark .ghost-danger:hover{background:rgba(222,49,70,.12)}

/* v472: every profile section has its own red eyebrow, same rhythm; renew content padded like other boxes */
#editor #renew-section,#editor #history-section,#editor #audit-section{border-top:1px solid var(--line);margin-top:28px;padding:22px 0 0}
#editor #history-section{padding-bottom:0}
#editor #renew-section .eyebrow,#editor #history-section .eyebrow,#editor #audit-section .eyebrow{color:var(--red)}
#editor #renew-section>.audit-box,#editor #history-section>.audit-box,#editor #audit-section>.audit-box,#editor #access-section>.audit-box{margin-top:8px}
#editor #renew-box .hs-body,#editor #access-box .hs-body,#editor #history-box .hs-body{padding:0 16px 16px}
#editor #audit-box>#audit{padding:0 16px 16px}

.wp-dsum{direction:rtl;text-align:left;margin-top:10px;font-size:13px;font-weight:700;color:var(--muted)}

/* v474: same chevron as other sections on program/nutrition/guides cards */
#editor .wp-coach>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:46px;user-select:none}
#editor .wp-coach>summary::-webkit-details-marker{display:none}
#editor .wp-coach>summary::after{content:'';flex:none;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}
#editor .wp-coach[open]>summary::after{transform:rotate(-135deg);margin-top:4px}

/* v477: plan row: name on its own full-width line; sets count and a smaller سجّل pill share the second line */
.tracker-day .plan-card .plan-row{display:grid!important;grid-template-columns:26px minmax(0,1fr) auto;column-gap:10px;row-gap:3px;align-items:center;min-height:0!important;padding-block:10px!important}
.tracker-day .plan-card .plan-row .plan-main{display:contents}
.tracker-day .plan-card .plan-row .plan-n{grid-column:1;grid-row:1/3;align-self:center}
.tracker-day .plan-card .plan-row .plan-name{grid-column:2/4;grid-row:1;padding:0;line-height:1.5}
.tracker-day .plan-card .plan-row .plan-sets{grid-column:2;grid-row:2;align-self:center;margin:0}
.tracker-day .plan-card .plan-row .plan-go{grid-column:3;grid-row:2;justify-self:end;align-self:center;min-height:28px!important;height:28px!important;padding:0 14px!important;font-size:12px!important}
#wp-copyday .wp-cq{width:100%;min-height:40px;margin:8px 0 0;padding:8px 12px;border-radius:10px;font-size:13px}
#wp-copyday .wp-clist{max-height:50vh;overflow:auto;-webkit-overflow-scrolling:touch}
#wp-copyday .wp-cav{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--red);color:#fff;font-size:13px;font-weight:700}
#wp-copyday .wp-cday-new{border-style:dashed}
#wp-copyday .wp-cday-new .wp-cday-n{color:var(--red);font-weight:700}
#wp-copyday .wp-cday{transition:background .15s,border-color .15s}
.wp-eday-h{flex-wrap:wrap}.wp-eday-h input{flex:1 1 calc(100% - 84px)}.wp-eday-h .wp-mini{flex:none}.wp-eday-h .wp-mini:nth-of-type(1){margin-inline-start:auto}
.wk-audit-d>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;font-weight:700;color:var(--muted,#8a8f9c);padding:2px 0;min-height:32px}
.wk-audit-d>summary::-webkit-details-marker{display:none}
.wk-audit-d>summary::after{content:'';width:8px;height:8px;border-inline-end:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;margin-inline-end:4px}
.wk-audit-d[open]>summary::after{transform:rotate(-135deg)}
.wk-audit-d[open]>.wk-note-box{margin-top:6px}
html.dark #wprog-coach .wp-eday>.wp-erow{background:#191b22;border:1px solid #2a2d38}
html.dark #wprog-coach .wp-eday>.wp-erow input,html.dark #wprog-coach .wp-eday>.wp-erow textarea{background:#21242d;border:1px solid #343846;color:#fff}
html.dark #wprog-coach .wp-eday>.wp-erow .wp-ehead input{border-inline-start:3px solid #de3146}
html.dark #wprog-coach .wp-eday>.wp-erow input:focus{border-color:#de3146;outline:none}
.wp-eday-h .wp-mini{font-size:12px;padding:0 9px;min-height:28px;height:28px;line-height:1;border-radius:8px}
.wp-eday.wp-dcls{padding:6px 8px;gap:0;position:relative}
.wp-eday.wp-dcls .wp-eday-h{gap:6px}.wp-eday.wp-dcls .wp-eday-h input{min-height:34px;padding-block:3px}
.wp-eday.wp-dcls .wp-dsum{position:static;margin:6px 0 0;font-size:11px}
.wp-eday.wp-dcls .wp-eday-h .wp-mini{padding:0 7px;font-size:11.5px}
.wp-eday.wp-dcls .wp-eday-h{gap:4px}
.wp-eday.wp-dcls .wp-dsum{font-size:10.5px}
/* v484: سجّل pill, soft red fill + thin red border */
.tracker-day .plan-card .plan-row .plan-go,.tracker-day .plan-go{background:rgba(222,49,70,.10)!important;color:#c42a3d!important;border:1px solid rgba(222,49,70,.5)!important;box-shadow:none!important}
html.dark .tracker-day .plan-card .plan-row .plan-go,html.dark .tracker-day .plan-go{background:rgba(222,49,70,.14)!important;color:#ff7a8a!important;border:1px solid rgba(222,49,70,.55)!important}
/* one merged program section: top card + in-app program */
#client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child{margin-bottom:0!important;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;border-bottom:0!important;box-shadow:none!important}
#client-programs+#wprog-client .wp-card{margin-top:0;border-top-left-radius:0;border-top-right-radius:0;padding-top:6px}
#client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card:before{display:none}
#client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card>.eyebrow{display:none}
#client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card>h3{margin-top:0;padding-top:16px;border-top:1px solid rgba(255,255,255,.1)}
html:not(.dark) #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child{background:#14161c!important;background-image:none!important;color:#fff!important;border-color:transparent!important}
html:not(.dark) #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child :is(h2,h3,p,span,pre,button){color:#fff!important}
html:not(.dark) #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child :is(pre,hr){border-color:rgba(255,255,255,.12)!important}
html.dark #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child{--tint:#14161c;background-color:#14161c!important}
#client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child{border:0!important}
.wp-addrow{display:flex;gap:8px}.wp-addrow .wp-add{flex:1;margin:0}
.wp-eday-rest{border-style:dashed}.wp-eday-rest .hint{margin:8px 0 0}
.wp-rest-l{color:#c9ccd4;font-size:15px;line-height:1.9}
/* merged program card: section accent style (tint + art + accent top strip), both themes */
#client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child,html.dark #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child,html:not(.dark) #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child{--acc:#ff5468;--tint:#1d1517;background-color:#1d1517!important;background-image:url(/art/profile-d.svg)!important;border:1px solid #2a3042!important;border-top:5px solid #ff5468!important;border-bottom:0!important;color:#fff!important}
#client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card{background:#1d1517;border:1px solid #2a3042;border-top:0;box-shadow:0 12px 32px #0006}
#client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child,html:not(.dark) #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child{background-repeat:no-repeat!important;background-position:left 14px top 34px!important;background-size:100px auto!important}
#client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child,html:not(.dark) #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child{background-position:left 16px top 24px!important;background-size:66px auto!important}
/* mobile coach editor: no sideways scroll, rows stay on one line */
@media(max-width:520px){
#editor{overflow-x:hidden}
#wprog-coach .wp-body,#wprog-coach .wp-eday,#wprog-coach .wp-erow,#wprog-coach .wp-ebody{grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}
#wprog-coach .wp-nums{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
#wprog-coach .wp-nums .wp-f>span{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#wprog-coach .wp-nums input{padding:0 3px;font-size:13px;text-align:center;min-height:36px;height:36px}
#wprog-coach .wp-acts{gap:3px;flex-wrap:nowrap;min-width:0}
#wprog-coach .wp-acts .wp-mini{flex:1 1 0;min-width:0;padding:0 2px;font-size:10.5px;white-space:nowrap;min-height:30px;height:30px;line-height:1}
#wprog-coach .wp-addrow .wp-mini{min-width:0;font-size:12.5px;padding:0 6px}
}
@media(max-width:520px){
#wprog-coach .wp-nums .wp-f>span{font-size:9.5px;text-overflow:clip;text-align:center}
#wprog-coach .wp-acts .wp-mini{white-space:normal;height:auto;min-height:36px;padding:2px;line-height:1.15;font-size:10.5px;text-align:center;overflow:hidden;word-break:keep-all}
}
@media(max-width:520px){
#editor #wprog-coach .wp-nums .wp-f>span{font-size:9.5px!important}
#editor #wprog-coach .wp-acts .wp-mini{font-size:10px!important;padding:2px 1px!important;height:auto!important;min-height:36px!important;white-space:normal!important;line-height:1.15!important;min-width:0!important;flex:1 1 0!important;width:auto!important}
#editor #wprog-coach .wp-acts .wp-mini:is(:first-child,:nth-child(2)){flex:0 0 28px!important}
}

/* merged program card: LIGHT mode = light like the other sections */
html:not(.dark) #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child{--acc:#de3146;--tint:#fff8f8;background-color:#fff8f8!important;background-image:url(/art/profile-l.svg)!important;border:1px solid #e3e6ee!important;border-top:5px solid #de3146!important;border-bottom:0!important;color:var(--ink,#181a20)!important;box-shadow:none!important}
html:not(.dark) #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child :is(h2,h3,p,span,pre,button){color:var(--ink,#181a20)!important}
html:not(.dark) #client-view>#client-programs:has(+#wprog-client .wp-card)>.card:last-child :is(pre,hr){border-color:#e4e6ed!important}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card{background:#fff8f8;color:var(--ink,#181a20);border:1px solid #e3e6ee;border-top:0;box-shadow:0 12px 32px #1c233312}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card>h3{color:var(--ink,#181a20);border-top-color:#e4e6ed}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-chip{background:#fff;border-color:#e3e6ee;color:var(--ink,#181a20)}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-day{background:#fff;border-color:#e3e6ee}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-day>summary{color:var(--ink,#181a20)}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-ex{border-top-color:#e9ebf1}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-ex-n,html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-stat-v{color:var(--ink,#181a20)}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-ex-note{color:#656875}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-ex-note2{background:#f7f7fa}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-ex-i{background:rgba(222,49,70,.12);color:#de3146}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-stat{background:#f5f6f9;border-color:#e4e6ed}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-stat-k{color:#656875}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-para,html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-rest-l{color:#3a3d48}
html:not(.dark) #client-programs:has(+#wprog-client .wp-card)+#wprog-client .wp-card .wp-sec-ar{color:var(--ink,#181a20)}

.wp-note-ta{min-width:0;width:100%;box-sizing:border-box;resize:none;overflow:hidden;font:inherit;display:block;line-height:1.5;padding:7px 10px;border-radius:10px}
/* mobile coach exercise editor layout (one pass) */
@media(max-width:520px){
#editor #wprog-coach .wp-eday>.wp-erow{padding:3px!important;gap:3px!important}
#editor #wprog-coach .wp-ebody{gap:3px!important}
#editor #wprog-coach .wp-ehead{gap:3px!important}
#editor #wprog-coach .wp-etgl{width:22px!important;height:22px!important;min-height:0!important;min-width:0!important;align-self:center!important;border-radius:6px!important;margin-inline-start:3px}
#editor #wprog-coach .wp-etgl:after{width:6px!important;height:6px!important;border-width:2px!important;margin-top:3px}
#editor #wprog-coach .wp-erow.wp-cls .wp-etgl:after{margin-top:-3px}
#editor #wprog-coach .wp-en{min-width:20px!important;height:20px!important;font-size:11px!important;border-radius:6px!important}
#editor #wprog-coach .wp-ehead input{flex:1 1 auto!important;margin:0 3px!important;height:32px!important;min-height:32px!important;padding-top:0!important;padding-bottom:0!important}
#editor #wprog-coach .wp-nums{grid-template-columns:.65fr .65fr 1.525fr .65fr 1.525fr!important;gap:3px!important}
#editor #wprog-coach .wp-nums input{height:30px!important;min-height:30px!important}
#editor #wprog-coach .wp-ebody>input{height:32px!important;min-height:32px!important;padding-top:0!important;padding-bottom:0!important}
#editor #wprog-coach .wp-note-ta{min-height:32px;padding-top:6px!important;padding-bottom:6px!important}
#editor #wprog-coach .wp-acts{gap:2px!important}
#editor #wprog-coach .wp-acts .wp-mini{flex:1 1 0!important;min-height:32px!important;padding:2px 1px!important}
#editor #wprog-coach .wp-acts .wp-mini:is(:first-child,:nth-child(2)){flex:0 0 22px!important;min-width:0!important;font-size:12px!important}
}
@media(max-width:520px){#editor #wprog-coach .wp-nums .wp-f>span{font-size:8.5px!important;letter-spacing:-.2px}}

@media(max-width:520px){
#editor #wprog-coach .wp-eday-h input{height:32px!important;min-height:32px!important;padding-top:0!important;padding-bottom:0!important}
#editor #wprog-coach .wp-eday-h .wp-mini,#editor #wprog-coach .wp-add{height:32px!important;min-height:32px!important;padding-top:0!important;padding-bottom:0!important;line-height:1!important;display:inline-flex;align-items:center;justify-content:center}
#editor #wprog-coach .wp-acts{gap:1px!important}
#editor #wprog-coach .wp-acts .wp-mini{padding:2px 7px!important}
#editor #wprog-coach .wp-acts .wp-mini:is(:first-child,:nth-child(2)){padding:2px 1px!important}
#editor #wprog-coach .wp-nums .wp-f>span{font-size:9.5px!important}
}
#checkin-inbox .checkin-chip{flex:0 0 156px!important;width:156px!important;min-width:156px!important;max-width:156px!important;padding-inline:10px}
#checkin-inbox .checkin-chip .chip-name{display:block;width:100%;max-width:100%;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;word-break:normal!important;text-align:center;unicode-bidi:plaintext}
@media(max-width:520px){
#editor #wprog-coach .wp-eday:not(.wp-dcls)>.wp-dsum{margin-top:-43px!important;height:32px;line-height:32px;pointer-events:none;align-self:start}
}
@media(max-width:520px){
#editor #wprog-coach .wp-eday{margin-inline:-11px!important}
#editor #wprog-coach .wp-ehead input,html.dark #editor #wprog-coach .wp-eday>.wp-erow .wp-ehead input{border-top-color:transparent!important;border-bottom-color:transparent!important;border-inline-end-color:transparent!important}
html:not(.dark) #editor #wprog-coach .wp-ehead input{border-color:transparent!important}
}
@media(max-width:520px){
#editor #wprog-coach .wp-eday{max-width:none!important;width:auto!important}
#editor #wprog-coach .wp-ehead input,html.dark #editor #wprog-coach .wp-eday>.wp-erow .wp-ehead input,html:not(.dark) #editor #wprog-coach .wp-ehead input,#wprog-coach .wp-eday>.wp-erow .wp-ehead input,html.dark #wprog-coach .wp-eday>.wp-erow .wp-ehead input{border:0!important;border-color:transparent!important;background:transparent!important;box-shadow:none!important;outline:0}
}
@media(max-width:520px){
html.dark #editor #wprog-coach .wp-eday>.wp-erow .wp-ehead input{border-inline-start:3px solid #de3146!important;border-radius:6px!important}
}
.wp-dsum{direction:ltr!important;unicode-bidi:isolate;text-align:left}
@media(max-width:520px){
#editor #wprog-coach .wp-eday{margin-inline:-14px!important;border-inline-width:0!important;border-radius:0!important;padding-inline:14px!important}
}
#wprog-coach .wp-eday.wp-dcls>.wp-add{display:none!important}
@media(max-width:520px){
#editor #wprog-coach .wp-eday.wp-dcls>.wp-dsum{position:static!important;margin:0!important;height:auto!important;line-height:1.4!important;align-self:auto!important}
}
.wp-actrow+.wp-pdf{top:0!important;margin-top:10px!important}
/*FOOD-TRACKER*/
.nu-est{display:inline-block;padding:1px 8px;border-radius:999px;background:rgba(222,49,70,.14);color:#de3146;font-size:11px;font-weight:800;margin-inline-start:6px;vertical-align:middle}
html.dark .nu-est{background:rgba(222,49,70,.2);color:#ff8a96}
.nu-cust{background:rgba(255,255,255,.12);color:inherit}
.nu-mline{display:flex;gap:10px;flex-wrap:wrap;font-size:12.5px;font-weight:700;color:#6b6e7a;direction:ltr;justify-content:flex-end}
html.dark .nu-mline{color:rgba(255,255,255,.6)}
.nu-mk{color:#de3146}
.nu-grow{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:6px}
.nu-grow .nu-gf{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0}
.nu-grow .nu-gf>span{flex:0 0 auto;white-space:nowrap;font-size:12px}
.nu-grow .nu-gf>input{width:84px;flex:0 0 auto;text-align:center;direction:ltr}
.nu-addf{background:rgba(222,49,70,.12)!important;color:#de3146!important;border-color:rgba(222,49,70,.4)!important}
dialog.nu-foodp{max-width:560px;width:calc(100% - 24px);max-height:86vh;display:flex;flex-direction:column}
.nu-fsearch{width:100%;margin:10px 0;direction:rtl;text-align:right}
.nu-flist{display:grid;gap:8px;overflow-y:auto;min-height:120px;padding-bottom:6px}
.nu-frow{display:grid;gap:2px;text-align:start;padding:10px 12px;border-radius:12px;border:1px solid rgba(0,0,0,.1);background:transparent;cursor:pointer;font:inherit;color:inherit}
html.dark .nu-frow{border-color:rgba(255,255,255,.12)}
.nu-frow:active{background:rgba(222,49,70,.08)}
.nu-fname{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.nu-fmeta{font-size:12px;color:#6b6e7a;direction:ltr;text-align:end}
html.dark .nu-fmeta{color:rgba(255,255,255,.55)}
.nu-fdt{display:flex;align-items:center;gap:8px;font-size:17px;margin:4px 0}
.nu-funits{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}
.nu-funit{padding:6px 12px;border-radius:999px;border:1px solid rgba(222,49,70,.45);background:rgba(222,49,70,.08);color:#de3146;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.nu-fprev{display:flex;gap:12px;flex-wrap:wrap;font-weight:800;font-size:15px;padding:12px;border-radius:12px;background:rgba(222,49,70,.08);margin:10px 0;direction:rtl}
.nu-fadd{width:100%;padding:13px;border:0;border-radius:12px;background:#de3146;color:#fff;font:inherit;font-weight:800;font-size:15px;cursor:pointer;margin-top:6px}
.nu-fadd:disabled{opacity:.6}
.nu-finp{width:100%;margin:4px 0}
.nu-fcust-b{margin-top:8px;width:100%}
/* v35.41: food picker rows are real cards - each grows with its two lines, spaced, never clipped or overlapping */
dialog.nu-foodp{padding:16px 16px 14px}
dialog.nu-foodp .nu-flist{gap:10px;padding:2px 0 4px}
dialog.nu-foodp .nu-frow{height:auto;min-height:58px;width:100%;padding:12px 14px;gap:6px;align-content:center;align-items:stretch;justify-content:stretch;justify-items:stretch;line-height:1.5;box-shadow:none;border-radius:14px}
dialog.nu-foodp .nu-frow:active{transform:none;background:rgba(222,49,70,.08)}
dialog.nu-foodp .nu-fname{font-size:15px;line-height:1.55;gap:6px}
dialog.nu-foodp .nu-fmeta{font-size:12.5px;line-height:1.6;margin:0}
dialog.nu-foodp .nu-fcount{font-size:11.5px;color:var(--muted);text-align:start;padding:0 2px 2px}
html.dark dialog.nu-foodp .nu-fcount{color:rgba(255,255,255,.5)}
dialog.nu-foodp .nu-funit{height:auto;min-height:36px;padding:7px 13px}
dialog.nu-foodp .nu-fadd{height:auto;min-height:48px}
dialog.nu-foodp .wp-mini{height:auto;min-height:38px;padding:0 14px}
#editor .nu-sumbar{position:sticky;top:var(--nu-top,0);z-index:6;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#fff;border:1px solid #d6d9e2;border-radius:14px;padding:10px;box-shadow:0 6px 20px rgba(0,0,0,.12);margin:0 0 10px}
html.dark #editor .nu-sumbar{background:#0b0c10;border-color:rgba(255,255,255,.14);box-shadow:0 6px 20px rgba(0,0,0,.5)}
.nu-cell{display:grid;gap:1px;text-align:center;padding:4px 2px;border-radius:10px;background:rgba(0,0,0,.04)}
html.dark .nu-cell{background:rgba(255,255,255,.05)}
.nu-cl{font-size:11px;font-weight:700;color:#6b6e7a}
html.dark .nu-cl{color:rgba(255,255,255,.55)}
.nu-cv{font-size:19px;font-weight:800;direction:ltr}
.nu-ct,.nu-cr{font-size:10.5px;color:#6b6e7a;direction:ltr}
html.dark .nu-ct,html.dark .nu-cr{color:rgba(255,255,255,.55)}
.nu-cr.ok{color:#1a9e54}.nu-cr.under{color:#c99a1e}.nu-cr.over{color:#de3146}
html.dark .nu-cr.ok{color:#3fd07d}html.dark .nu-cr.under{color:#e8c04a}html.dark .nu-cr.over{color:#ff6a7a}
@media(max-width:520px){#editor .nu-sumbar{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:6px;border-radius:12px}.nu-cell{padding:3px 1px;min-width:0;gap:0}#editor .nu-sumbar .nu-cv{font-size:14px!important;line-height:18px}#editor .nu-sumbar .nu-cl{font-size:10px!important;line-height:13px}#editor .nu-sumbar .nu-ct,#editor .nu-sumbar .nu-cr{font-size:10px!important;line-height:13px}.nu-sumbar .nu-cell>*{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}}
.nu-fdel{margin-top:10px;color:#b3202f;border-color:#f0c4ca}.nu-fdel2{margin-top:10px;width:100%}html.dark .nu-fdel{color:#ff8a95;border-color:rgba(222,49,70,.4)}

/*PE-MOBILE-TIGHT*/
@media(max-width:640px){
html body :is(#tracker-dialog,#editor) .plan-editor{padding:8px 6px!important;border-radius:14px}
html body :is(#tracker-dialog,#editor) .pe-day{margin:6px 0!important;border-radius:12px}
html body :is(#tracker-dialog,#editor) .pe-day-top{padding:8px 10px!important;gap:8px!important}
html body :is(#tracker-dialog,#editor) .pe-body{padding:2px 6px 8px!important;gap:6px!important}
html body :is(#tracker-dialog,#editor) .pe-list{gap:4px!important}
html body :is(#tracker-dialog,#editor) .pe-ex{padding:4px 6px!important;gap:5px!important;align-items:center!important;min-height:0!important}
html body :is(#tracker-dialog,#editor) .pe-ex .pe-grip{width:18px!important;min-width:18px!important;flex:0 0 18px!important;height:30px!important;min-height:30px!important;letter-spacing:-4px;font-size:13px}
html body :is(#tracker-dialog,#editor) .pe-ex .pe-exn{width:20px!important;height:20px!important;font-size:10px!important}
html body :is(#tracker-dialog,#editor) .pe-ex .pe-exname{flex:1 1 0!important;min-width:0!important;overflow-wrap:break-word!important;word-break:normal!important;hyphens:none!important;font-size:14px!important;line-height:1.35!important;padding:2px 0}
html body :is(#tracker-dialog,#editor) .pe-ex .pe-sel{width:44px!important;min-width:44px!important;max-width:44px!important;flex:0 0 44px!important;height:30px!important;min-height:30px!important;padding:0 2px 0 14px!important;font-size:13px!important;border-radius:9px!important;line-height:28px!important}
html body :is(#tracker-dialog,#editor) .pe-ex .pe-rm{width:26px!important;min-width:26px!important;max-width:26px!important;height:26px!important;min-height:26px!important;max-height:26px!important;flex:0 0 26px!important;aspect-ratio:1/1;padding:0!important;border-radius:50%!important;font-size:15px;line-height:1;align-self:center!important;display:grid;place-items:center}
html body :is(#tracker-dialog,#editor) .pe-ex .pe-exedit{min-height:32px!important;font-size:14px!important}
}
/*PE-MV*/.pe-mvrow{display:flex;gap:6px;margin-inline-start:auto}.pe-mv{margin:0!important;width:40px;min-width:40px!important;height:40px;min-height:40px!important;padding:0!important;border-radius:12px!important;font-size:16px;font-weight:800}.pe-mv:disabled{opacity:.35}.pe-mvwhy{margin:0;font-size:12px}
@media(max-width:640px){html body :is(#tracker-dialog,#editor) .pe-actions{flex-wrap:nowrap!important;gap:6px!important;align-items:center}html body :is(#tracker-dialog,#editor) .pe-actions .pe-fin,html body :is(#tracker-dialog,#editor) .pe-actions .pe-del{padding:0 10px!important;min-height:40px!important;height:40px;font-size:13px!important;white-space:nowrap;flex:0 1 auto}html body :is(#tracker-dialog,#editor) .pe-mv{width:36px!important;min-width:36px!important;height:40px!important}html body :is(#tracker-dialog,#editor) .pe-mvrow{gap:4px;flex:0 0 auto}}
/*PE-DIR*/html body :is(#tracker-dialog,#editor) .pe-ex[dir=ltr]{direction:ltr!important}
html body :is(#tracker-dialog,#editor) .pe-ex[dir=rtl]{direction:rtl!important}
html body :is(#tracker-dialog,#editor) .pe-ex .pe-exname[dir=ltr],html body :is(#tracker-dialog,#editor) .pe-ex .pe-exedit[dir=ltr]{direction:ltr!important;text-align:left!important}
html body :is(#tracker-dialog,#editor) .pe-ex .pe-exname[dir=rtl],html body :is(#tracker-dialog,#editor) .pe-ex .pe-exedit[dir=rtl]{direction:rtl!important;text-align:right!important}
html body :is(#tracker-dialog,#editor) .pe-name[dir=ltr]{direction:ltr!important;text-align:left!important}
html body :is(#tracker-dialog,#editor) .pe-name[dir=rtl]{direction:rtl!important;text-align:right!important}
html body :is(#tracker-dialog,#editor) .pe-dname[dir=ltr]{text-align:left}
.pe-ex[dir=ltr] .pe-sel{direction:ltr}
/*PE-HEAD-FULL*/html body :is(#tracker-dialog,#editor) .pe-head{display:block!important}html body :is(#tracker-dialog,#editor) .pe-head>div{width:100%}html body :is(#tracker-dialog,#editor) .pe-head .plan-status{display:block;margin:2px 0 4px}html body :is(#tracker-dialog,#editor) .pe-head .plan-status:empty{display:none}html body :is(#tracker-dialog,#editor) .pe-head .pe-sub{width:100%;max-width:none;margin:4px 0 12px}

.wp-eday.wp-dcls>.wp-dsum{position:static!important;margin:6px 0 0!important;height:auto!important;line-height:1.4!important;align-self:auto!important}

:is(#client-view,#editor) .file-row:empty,#coach-program-file:empty{display:none!important}
/*HOVER-GROW*/@media (hover:hover) and (pointer:fine){
.client-chip:hover{transform:scale(1.024);position:relative;z-index:2;will-change:transform}
.client-chip:hover:active{transform:scale(.98)}
.check-card:hover{transform:scale(1.012);position:relative;z-index:1;will-change:transform;border-color:var(--red)}
#notification-list>.check-card:hover{transform:none;position:static;z-index:auto;will-change:auto}
}
/*HOVER-GROW-SMOOTH*/.client-chip{transition:border-color .5s,box-shadow .5s,background-color .5s,filter .5s,transform .5s ease}
.check-card{transition:border-color .5s,box-shadow .5s,background-color .5s,transform .5s ease}

/*HOVER-SMOOTH-ALL*/
button,.icon-btn,.notif-item,.notif-all,.whatsapp-btn,.password-field.inside .password-toggle,.inbox-collapse,#viewer-close.viewer-x,html .workspace-nav a,#review-editor.chat .msg-actions .thread-pick,.notif-foot .notif-foot-btn,#menu-drawer .md-item,label.file-pick .file-zone,#workspace .nc-item,.msg-wa,#paid-seg .paid-opt,.cs-opt,.day-req-toggle,.streak-badges .streak-badge,.profile-chip,.pf-opt,#hero-av-row .hero-av,.tracker-note .tn-head,#wp-copyday .wp-cday,.ghost-danger,.client-chip .cbadge,:is(#client-view>details.panel,#workspace>details.coach-security)>summary{transition:background-color .5s,color .5s,border-color .5s,box-shadow .5s,filter .5s,opacity .5s,outline-color .5s,transform .5s ease}
::-webkit-scrollbar-thumb{transition:background-color .5s,border-color .5s,box-shadow .5s}

/*NU-FAT-ROW*/
.wp-nums.nu-f4{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.wp-nums.nu-f4 .wp-f>span{font-size:10px;white-space:nowrap;overflow:hidden}
.nu-imac{font-size:12px;color:#6b6e7a}
html.dark .nu-imac{color:rgba(255,255,255,.6)}
.wp-nums.nu-f5{grid-template-columns:1.35fr 1fr 1fr 1fr 1fr}
@media(max-width:520px){.wp-nums.nu-f5{grid-template-columns:1.55fr 1fr 1fr 1fr 1fr;gap:3px}.wp-nums.nu-f5 input{padding:0 3px;font-size:13px;text-align:center;min-height:36px;height:36px}.wp-nums.nu-f5 .wp-f>span{font-size:10px;white-space:nowrap;overflow:hidden;text-align:center}}

/*NU-BAR-TOP*/
.wp-nums.nu-tg{margin-top:2px}
.wp-coach>.nu-title{width:100%;min-width:0;box-sizing:border-box;margin-top:12px}

.wp-rtext{width:100%;box-sizing:border-box;min-height:64px;resize:vertical;border-radius:10px;padding:10px 12px;font:inherit;line-height:1.8;border:1px solid var(--line);background:var(--surface,transparent);color:inherit}
.wp-rtext::placeholder{color:var(--muted);opacity:.8}

.nu-sup{display:grid;gap:8px;margin:4px 0 8px}
.nu-suprow{display:flex;gap:8px;align-items:stretch}
.nu-supsel{flex:1 1 auto;min-width:0;min-height:42px;border-radius:10px;padding:0 8px}
.nu-suprow .wp-mini{flex:0 0 auto}
.nu-suplist{display:grid;gap:6px}
.nu-supit{display:grid;grid-template-columns:1fr auto auto auto;gap:8px;align-items:center;background:rgba(0,0,0,.03);border:1px solid var(--line);border-radius:10px;padding:6px 10px}
.nu-supnote{grid-column:1/-1;min-height:38px;border-radius:9px;padding:0 10px;font-size:13px}
html.dark .nu-supit{background:rgba(255,255,255,.04)}
.nu-supn{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nu-supd{width:70px;min-width:70px;min-height:38px;text-align:center;border-radius:9px}
.nu-supu{flex:0 0 auto;color:var(--muted);font-size:12px;min-width:44px;text-align:center}
.nu-supps ul.nu-sul{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px}
.nu-sul li{display:flex;justify-content:space-between;gap:10px;padding:6px 10px;border:1px solid var(--line);border-radius:9px}
.nu-supv{color:var(--muted)}
.nu-suppick{border:1px solid var(--line);border-radius:10px;background:rgba(0,0,0,.02);overflow:hidden}
html.dark .nu-suppick{background:rgba(255,255,255,.03)}
.nu-suppick>summary{list-style:none;cursor:pointer;padding:0 12px;min-height:44px;height:44px;display:flex;align-items:center;gap:6px;font-weight:700;color:var(--red);font-size:14px;box-sizing:border-box}
.nu-suppick>summary::-webkit-details-marker{display:none}
.nu-supbox{display:grid;gap:6px;padding:0 10px 10px;max-height:250px;overflow:auto}
.nu-supg{font-size:12px;color:var(--muted);margin-top:6px;font-weight:700}
.nu-supcb{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--card);cursor:pointer}
.nu-supcb input{width:18px;height:18px;flex:0 0 auto;accent-color:var(--red);margin:0}
.nu-supcbn{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.nu-supcbd{flex:0 0 auto;color:var(--muted);font-size:12px}
.nu-supadd{width:100%;margin-top:8px}
.nu-supcus{display:grid;gap:6px}
.nu-supcn{flex:1 1 auto;min-width:0;min-height:44px;border-radius:10px;padding:0 10px}
.nu-supcd{flex:1 1 auto;min-width:0;min-height:44px;border-radius:10px;padding:0 10px}
.nu-supcus .nu-suprow{display:grid;grid-template-columns:1fr auto;align-items:stretch;gap:8px}
.nu-supcus .wp-mini{flex:none;min-height:44px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center}
.nu-sup .nu-supit .wp-mini{min-height:38px;display:inline-flex;align-items:center;justify-content:center}

/* v35.44: one soft accent per meal + two alternating tints for item rows */
.nu-mc1{--mc:#de3146}.nu-mc2{--mc:#2f7d6b}.nu-mc3{--mc:#a9761c}.nu-mc4{--mc:#3f6ea8}.nu-mc5{--mc:#8a4f9e}
.wp-eday.nu-mc1,.wp-eday.nu-mc2,.wp-eday.nu-mc3,.wp-eday.nu-mc4,.wp-eday.nu-mc5{box-shadow:inset 0 3px 0 var(--mc)}
.wp-eday.nu-mc1>.wp-eday-h,.wp-eday.nu-mc2>.wp-eday-h,.wp-eday.nu-mc3>.wp-eday-h,.wp-eday.nu-mc4>.wp-eday-h,.wp-eday.nu-mc5>.wp-eday-h{background:color-mix(in srgb,var(--mc) 7%,transparent);border-radius:8px;padding:6px 8px}
html.dark .wp-eday.nu-mc1>.wp-eday-h,html.dark .wp-eday.nu-mc2>.wp-eday-h,html.dark .wp-eday.nu-mc3>.wp-eday-h,html.dark .wp-eday.nu-mc4>.wp-eday-h,html.dark .wp-eday.nu-mc5>.wp-eday-h{background:color-mix(in srgb,var(--mc) 17%,transparent)}
.wp-erow.nu-r2{background:#f6f7fb;border-color:#e2e5ee}
html.dark .wp-erow.nu-r2{background:#15171e;border-color:rgba(255,255,255,.09)}
.wp-erow.nu-r1{background:transparent}
html.dark .wp-erow.nu-r1{background:#0e1015}

/* Meal blocks in the nutrition editor: each meal is its own card with a visible border. */
#editor .wp-eday{border:1.5px solid color-mix(in srgb,var(--mc,var(--line)) 40%,var(--line));border-radius:14px;padding:10px;gap:6px;margin:0 0 16px;background:rgba(0,0,0,.012)}
html.dark #editor .wp-eday{border-color:color-mix(in srgb,var(--mc,rgba(255,255,255,.2)) 55%,rgba(255,255,255,.18));background:rgba(255,255,255,.03)}
.nu-view .wp-day{margin:14px 0;border-radius:14px}
/* Supplement rows: name, dose, unit, delete on one line plus an optional note line. */
#editor .nu-supcus .nu-suprow{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:stretch}
#editor .nu-supcus .wp-mini{margin:0;min-height:0;height:auto;align-self:stretch;padding:0 14px;display:inline-flex;align-items:center;justify-content:center}
#editor .nu-suplist .wp-mini{margin:0}
#editor .nu-supit{grid-template-columns:1fr auto auto;grid-template-areas:"n d u" "note note del"}
#editor .nu-supit .nu-supn{grid-area:n}
#editor .nu-supit .nu-supd{grid-area:d}
#editor .nu-supit .nu-supu{grid-area:u}
#editor .nu-supit .nu-supnote{grid-area:note}
#editor .nu-supit .wp-mini{grid-area:del;min-height:34px;align-self:stretch}
/* Shorter item rows inside a meal (name + qty + grams + macros). */
#editor #nutri-coach .wp-eday .wp-erow{padding:6px 8px;gap:3px;border:1px solid color-mix(in srgb,var(--mc,var(--line)) 20%,var(--line));border-radius:10px;margin:0 0 6px}
html.dark #editor #nutri-coach .wp-eday .wp-erow{border-color:rgba(255,255,255,.10)}
#editor #nutri-coach .wp-eday>.wp-erow:last-of-type{margin-bottom:2px}
#editor .wp-eday .wp-erow input,#editor .wp-eday .wp-f input{min-height:32px;font-size:12.5px;padding-block:2px}
#editor .wp-eday .wp-erow .wp-mini{min-height:28px;font-size:11.5px;padding:0 7px}
#editor .wp-eday .nu-mline{font-size:11px}
#editor .wp-eday .wp-f span{font-size:11.5px}
#editor .wp-eday .nu-altsel{min-height:32px;font-size:12.5px}

/* coach client page: workout / nutrition tabs */
.ctabs{display:flex;gap:8px;margin:10px 0 16px}
.ctabs button{flex:1 1 0;min-width:0;height:42px;padding:0 10px;border-radius:12px;border:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ctabs button[aria-selected="true"]{background:var(--red);border-color:var(--red);color:#fff}
.ctabs button[hidden]{display:none}

/* Nutrition editor on mobile: consistent rhythm, comfortable fields and touch targets. */
#editor #nutri-coach .wp-eday{padding:12px;gap:10px;margin-bottom:14px}
#editor #nutri-coach .wp-eday .wp-erow{padding:10px;gap:8px;margin:0 0 8px;border-radius:12px}
#editor #nutri-coach .wp-eday>.wp-erow:last-of-type{margin-bottom:0}
#editor #nutri-coach .wp-eday .wp-erow input{min-height:38px}
#editor #nutri-coach .wp-erow .wp-nums{gap:8px}
#editor #nutri-coach .wp-erow .nu-g2{gap:8px}
#editor #nutri-coach .wp-f>span{font-size:11.5px;line-height:16px;margin-bottom:2px}
#editor #nutri-coach .nu-altsel{min-height:40px;padding:0 10px}
#editor #nutri-coach .wp-acts{gap:8px;align-items:stretch}
#editor #nutri-coach .wp-acts .wp-mini{flex:1 1 0;min-width:0;min-height:40px;padding:0 10px}
#editor #nutri-coach .wp-add,#editor #nutri-coach .nu-addf{min-height:44px}
#editor #nutri-coach button[type=submit],#editor #nutri-coach .nu-save{min-height:44px}
#editor #nutri-coach .wp-eday-h{gap:8px}
#editor #nutri-coach .wp-eday-h input{min-height:38px}
@media(max-width:430px){
 #editor #nutri-coach .wp-erow .wp-nums{grid-template-columns:repeat(2,minmax(0,1fr))}
 #editor #nutri-coach .wp-eday .wp-erow input,#editor #nutri-coach .wp-f input{font-size:13px}
}

/* Supplement custom row: name field matches the dose field exactly. */
#editor #nutri-coach .nu-supcus .nu-suprow{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}
#editor #nutri-coach .nu-supcn,#editor #nutri-coach .nu-supcd{width:100%;min-width:0;height:44px;min-height:44px;border-radius:10px;padding:0 12px;font-size:13px;box-sizing:border-box}
#editor #nutri-coach .nu-supcus .wp-mini{height:44px;min-height:44px;border-radius:10px;padding:0 14px}
/* Space between the meal-plan title and the sticky macro bar. */
#editor #nutri-coach .nu-sumbar{margin-top:14px}

/* Per-client nutrition guidance block (coach editor + client view). */
.nu-guide{margin:16px 0 0;padding:12px;border:1px solid var(--line);border-radius:14px;background:rgba(0,0,0,.02)}
html.dark .nu-guide{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.12)}
.nu-guide-h{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.nu-guide-h strong{font-size:14px}
.nu-guide-g{font-size:11.5px;padding:2px 8px;border-radius:999px;background:rgba(222,49,70,.12);color:var(--red);font-weight:700}
.nu-guide-t{width:100%;min-height:150px;border-radius:12px;padding:10px;font:inherit;font-size:13px;line-height:1.7;border:1px solid var(--line);background:transparent;color:inherit;box-sizing:border-box;resize:vertical}
html.dark .nu-guide-t{border-color:rgba(255,255,255,.18)}
.nu-guide .wp-mini{margin-top:8px;min-height:40px}
.nu-guide-view{margin-top:16px}
.nu-guide-view strong{display:block;margin-bottom:6px;font-size:14px}
.nu-guide-view p{margin:0 0 8px;font-size:13px;line-height:1.85}

/* Item row: quantity + grams side by side, note full width under them. */
#editor #nutri-coach .wp-erow .nu-noterow{display:grid;gap:6px;margin-top:8px}
#editor #nutri-coach .wp-erow .nu-g2{grid-template-columns:1fr 1fr;gap:8px}
#editor #nutri-coach .wp-erow .nu-g2:has(> :only-child){grid-template-columns:1fr}
#editor #nutri-coach .wp-erow .nu-grow{margin-top:8px;display:block}
#editor #nutri-coach .wp-erow .nu-mline{display:flex;flex-wrap:wrap;gap:8px}

/* Meal add buttons: one row, equal widths, real button look. */
#editor #nutri-coach .wp-eday .wp-add{min-height:40px!important;height:40px;flex:1 1 0;min-width:0;padding:0 10px;border-radius:10px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#f2f4f8;border:1px solid #d6d9e2;color:#26282f;font-weight:700}
html.dark #editor #nutri-coach .wp-eday .wp-add{background:#1b1e26;border-color:rgba(255,255,255,.16);color:#e9ecf3}
#editor #nutri-coach .wp-eday .nu-addf{background:var(--red)!important;border-color:var(--red)!important;color:#fff!important}
#editor #nutri-coach .wp-eday .wp-addrow{display:flex;gap:8px;align-items:center}
/* Plus icon inside buttons */
button.has-ico{display:inline-flex;align-items:center;justify-content:center;gap:6px}
button.has-ico .ico-plus{flex:none;width:16px;height:16px}
button.has-ico .ico-lbl{min-width:0}
#editor #nutri-coach .nu-suppick{margin:0 0 8px}
#editor #nutri-coach .nu-suppick>summary{width:100%}

/* Compact calorie calculator + its four target fields in one row. */
#editor #nutri-coach .nu-calc{padding:0 12px}
#editor #nutri-coach .nu-calc>summary{min-height:44px;height:44px;display:flex;align-items:center}
#editor #nutri-coach .wp-nums.nu-tg{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#editor #nutri-coach .wp-nums.nu-tg .wp-f>span{font-size:10px!important;line-height:13px}
#editor #nutri-coach .wp-nums.nu-tg input{min-height:36px;height:36px;font-size:13px;padding:0 4px;text-align:center}
/* Align the "add from list" row with the supplement name field. */
#editor #nutri-coach .nu-suppick{margin-left:8px}

/* 596: macro-matched alternatives inside the coach editor */
.nu-altinfo{margin-top:6px;font-size:12.5px;line-height:1.55;color:var(--muted);text-align:right;font-weight:600}
.nu-althint{margin:6px 0 0;font-size:12.5px;line-height:1.55;color:#f0b45a;font-weight:600}

/* 597: compact calorie calculator card */
#editor #nutri-coach .nu-calc .nu-calc-b{gap:8px;margin-top:8px}
#editor #nutri-coach .nu-calc .wp-meta{grid-template-columns:1fr 1fr;gap:8px 10px}
#editor #nutri-coach .nu-calc .wp-meta .nu-fw{grid-column:1/-1}
#editor #nutri-coach .nu-calc .wp-f{margin:0;gap:4px}
#editor #nutri-coach .nu-calc .wp-f>span{font-size:11.5px;line-height:1.25;margin-bottom:0}
#editor #nutri-coach .nu-calc input,#editor #nutri-coach .nu-calc select{height:40px;min-height:40px;font-size:13.5px;padding:0 10px;border-radius:10px}
#editor #nutri-coach .nu-calc .nu-out{font-size:12px;line-height:1.55;margin:0}
#editor #nutri-coach .nu-calc .wp-mini{height:40px;min-height:40px;font-size:13px}

#editor #nutri-coach .nu-altsel{text-overflow:ellipsis}

/* 598: macro-matched alternatives list in the coach editor */
#editor #nutri-coach .nu-altpick{margin:0}
#editor #nutri-coach .nu-altpick>summary{list-style:none;min-height:40px;height:40px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:13px;font-weight:600;cursor:pointer;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#editor #nutri-coach .nu-altpick>summary::-webkit-details-marker{display:none}
#editor #nutri-coach .nu-altpick>summary::after{content:"";width:7px;height:7px;flex:none;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg);opacity:.5}
#editor #nutri-coach .nu-altpick[open]>summary::after{transform:rotate(-135deg)}
#editor #nutri-coach .nu-apick-list{display:grid;gap:6px;margin-top:6px}
#editor #nutri-coach .nu-apick-opt{display:block;width:100%;text-align:start;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 10px;cursor:pointer;box-sizing:border-box}
#editor #nutri-coach .nu-apick-opt b{display:block;font-size:13px;line-height:1.5;font-weight:700;color:var(--ink)}
#editor #nutri-coach .nu-apick-opt small{display:block;font-size:11.5px;line-height:1.5;color:var(--muted)}
#editor #nutri-coach .nu-apick-opt.on{border-color:var(--red);background:color-mix(in srgb,var(--red) 8%,var(--surface))}

/* 600: no horizontal overflow inside the nutrition editor (mobile) */
#editor #nutri-coach .wp-eday,#editor #nutri-coach .wp-eday *{box-sizing:border-box}
#editor #nutri-coach .wp-eday,#editor #nutri-coach .wp-eday-h,#editor #nutri-coach .wp-erow,#editor #nutri-coach .wp-nums,#editor #nutri-coach .nu-g2,#editor #nutri-coach .nu-noterow,#editor #nutri-coach .nu-grow,#editor #nutri-coach .wp-acts,#editor #nutri-coach .nu-altpick,#editor #nutri-coach .nu-apick-list{min-width:0;max-width:100%}
#editor #nutri-coach .wp-eday{overflow-x:clip}
#editor #nutri-coach .wp-eday input,#editor #nutri-coach .wp-eday select,#editor #nutri-coach .wp-eday textarea{min-width:0;max-width:100%;width:100%}
#editor #nutri-coach .wp-nums{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}
#editor #nutri-coach .wp-nums.nu-f5{grid-template-columns:minmax(0,1.5fr) repeat(4,minmax(0,1fr))}
#editor #nutri-coach .nu-g2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#editor #nutri-coach .wp-eday-h{display:flex;flex-wrap:wrap;gap:8px;align-items:center}#editor #nutri-coach .wp-eday-h input{flex:1 1 140px;min-width:0}@media(max-width:480px){#editor #nutri-coach .wp-eday-h input{flex:1 1 100%}#editor #nutri-coach .wp-eday-h .nu-mc-tg{margin-inline-start:auto}}
#editor #nutri-coach .wp-eday-h input{width:100%;min-width:0}
#editor #nutri-coach .wp-eday-h .wp-mini{flex:none;white-space:nowrap}
@media(max-width:430px){#editor #nutri-coach .wp-erow .wp-nums{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 601: meal-level 5 fields wrap to 3+2 on small screens so values never clip */
@media(max-width:430px){
 #editor #nutri-coach .wp-nums.nu-f5{grid-template-columns:repeat(3,minmax(0,1fr))}
 #editor #nutri-coach .wp-nums.nu-f5 input{font-size:13px;padding:0 6px;text-align:center}
 #editor #nutri-coach .wp-nums.nu-f5 .wp-f>span{font-size:10.5px}
}

/*NUTRI-LIGHT*/html:not(.dark) #nutri-client .wp-card{background:#fff8f8;color:var(--ink,#181a20);border:1px solid #e3e6ee;box-shadow:0 12px 32px #1c233312}
html:not(.dark) #nutri-client .wp-card h3{color:var(--ink,#181a20)}
html:not(.dark) #nutri-client .wp-day{background:#fff;border-color:#e3e6ee}
html:not(.dark) #nutri-client .wp-day>summary{color:var(--ink,#181a20)}
html:not(.dark) #nutri-client .nu-mt{color:#656875}
html:not(.dark) #nutri-client .wp-ex{border-top-color:#e9ebf1}
html:not(.dark) #nutri-client .wp-ex-n{color:var(--ink,#181a20)}
html:not(.dark) #nutri-client .wp-ex-note{color:#656875}
html:not(.dark) #nutri-client .wp-ex-note2{background:#f7f7fa}
html:not(.dark) #nutri-client .wp-stat{background:#f5f6f9;border-color:#e4e6ed}
html:not(.dark) #nutri-client .wp-stat-v{color:var(--ink,#181a20)}
html:not(.dark) #nutri-client .wp-stat-k{color:#656875}
html:not(.dark) #nutri-client .nu-notes{background:#f5f6f9;color:var(--ink,#181a20);border:1px solid #e4e6ed}
html:not(.dark) #nutri-client .nu-sul li{border-color:#e4e6ed;background:#fff}
html:not(.dark) #nutri-client .nu-supv{color:#656875}
html:not(.dark) #nutri-client .nu-swap{color:#26282f;border-color:#d6d9e2;background:#fff}
html:not(.dark) #nutri-client .nu-swap:active{background:#f2f4f8}
html:not(.dark) #nutri-client .nu-opt{background:#fff;border-color:#e4e6ed;color:var(--ink,#181a20)}
html:not(.dark) #nutri-client .nu-opt small{color:#656875}
html:not(.dark) #nutri-client .nu-opt:active{background:#f2f4f8}
html:not(.dark) #nutri-client .nu-imac{color:#6b6e7a}

/* alternatives: amount the client eats is prominent, reference portion is small */
.nu-opt .nu-opt-q{color:#de3146;font-weight:800;font-size:13.5px;margin-inline-start:6px}
.nu-opt .nu-opt-ref{opacity:.72;font-size:11.5px}
html:not(.dark) #nutri-client .nu-opt .nu-opt-q{color:#c22537}
html:not(.dark) #nutri-client .nu-opt .nu-opt-ref{color:#7a7e8a}

.alt-list>.alt-more{grid-column:1/-1;display:flex;justify-content:center;padding:4px 0 6px}
.alt-list>.alt-more .alt-add{width:auto;min-width:180px}
.nu-swaps{margin:14px 0 0;padding:14px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.04)}
html:not(.dark) .nu-swaps{background:#f5f6f9;border-color:#e4e6ed}
.nu-swaps-h{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.nu-swaps-h strong{font-size:15px}
.nu-swaps-s{font-size:11.5px;padding:2px 8px;border-radius:999px;background:rgba(222,49,70,.12);color:var(--red,#de3146);font-weight:700}
.nu-swaps-day{padding:8px 0;border-top:1px solid rgba(255,255,255,.10)}
html:not(.dark) .nu-swaps-day{border-top-color:#e4e6ed}
.nu-swaps-day:first-of-type{border-top:0}
.nu-swaps-d{font-size:12.5px;font-weight:700;opacity:.75;margin-bottom:6px;direction:ltr;text-align:right}
.nu-swaps-l{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.nu-swaps-l li{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:14px;line-height:1.6}
.nu-swaps-o{opacity:.8}
.nu-swaps-a{color:var(--red,#de3146);font-weight:800}
.nu-swaps-r{font-size:11.5px;font-weight:700;padding:1px 8px;border-radius:999px;background:rgba(255,255,255,.10)}
html:not(.dark) .nu-swaps-r{background:#e8eaf0}
.nu-opt.on{border-color:#de3146}
#nutri-guide-solo{margin-top:14px}
.nu-apick-cb{width:20px;height:20px;accent-color:#de3146;cursor:pointer}
#editor #nutri-coach .nu-apick-opt.nu-apick-has-cb{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center}
#editor #nutri-coach .nu-apick-has-cb>.nu-apick-cb{grid-row:1/span 2;margin:0}
#editor #nutri-coach .nu-apick-has-cb>b,#editor #nutri-coach .nu-apick-has-cb>small{grid-column:2}
.nu-apick-multi{font-weight:800;color:#de3146}
.nu-apick-dis{opacity:.45}
.nu-guide-solo .send-btn{margin-top:10px;width:100%}
#editor #nutri-coach .nu-apick-multi b{color:#de3146}
.nu-mc-body[hidden]{display:none}
.nu-mc-tg{flex:0 0 auto}
