/* iOS design tokens in CSS points. Desktop changes columns, not controls. */
:root{--af-nav-height:72px;--af-edge:14px;--af-chat-width:760px;--af-composer-width:428px;--af-muted:#8d95a3;--af-lime:#a3ff12}
button,a,input,textarea{touch-action:manipulation}button{cursor:pointer;font-family:inherit}button:focus-visible,a:focus-visible{outline:2px solid var(--lime);outline-offset:4px}
.app{max-width:1160px;padding:8px 24px 116px;overflow:visible}#workouts{padding-left:0!important;padding-right:0!important}
.bottom{background:#131313!important;backdrop-filter:none!important;bottom:calc(12px + env(safe-area-inset-bottom));width:min(428px,calc(100% - 24px));height:72px;border-radius:26px;border-color:#2a2a2a;grid-template-columns:repeat(3,1fr)!important;gap:0;box-sizing:border-box}
.bottom .tab{background:none!important;box-shadow:none!important;color:#8d95a3!important;gap:4px;padding:0}.bottom .tab.active,.bottom .tab[aria-current="page"]{color:var(--lime)!important}.bottom .tab svg,.bottom .tab span{color:inherit}.bottom .tab svg{width:25px;height:25px}.bottom .tab span{font-size:10px;font-weight:800}.bottom .tab:before,.bottom .tab:after{display:none!important}.bottom .tab[data-nav-tab="chat"]:focus,.bottom .tab[data-nav-tab="chat"]:focus-visible{outline:none!important}.bottom .af-nav-icon{position:relative;display:grid;place-items:center;line-height:0}.bottom .af-nav-icon .chat-badge{position:absolute;top:-4px;right:-8px;display:grid;place-items:center;box-sizing:border-box;min-width:17px;height:17px;margin:0;padding:0 4px;border:2px solid #131313;border-radius:999px;background:var(--lime);color:#071000;font-size:9px;font-style:normal;font-weight:900;line-height:1;box-shadow:none}
/* The mobile dock owns the area below the scrollable content, like AppShell. */
.af-bottom-dock{display:contents}
@media(max-width:799px){
 html,body{overscroll-behavior-y:none}
 .af-bottom-dock{position:fixed;inset:auto 0 0;top:auto;height:calc(96px + env(safe-area-inset-bottom));display:flex;justify-content:center;align-items:flex-start;padding:12px 0 calc(12px + env(safe-area-inset-bottom));box-sizing:border-box;background:linear-gradient(to bottom,transparent 12px,#000 12px);z-index:50;pointer-events:none}
 .af-bottom-dock>.bottom{position:relative;inset:auto;transform:none;margin:0;flex-shrink:0;pointer-events:auto;-webkit-backdrop-filter:none!important}
 .af-chat-open .af-bottom-dock{background:transparent}
 .af-bottom-dock:has(.bottom.hidden),.app-loading .af-bottom-dock,.af-keyboard-open .af-bottom-dock,.af-mobile-keyboard-open .af-bottom-dock,.af-workout-chat .af-bottom-dock{display:none}
}
.af-primary{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:10px 18px;border:0;border-radius:16px;background:var(--lime);color:#000;font-size:14px;font-weight:700}.af-primary svg{width:20px;height:20px}
#workouts,.af-trainer-workout{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,"Segoe UI",Arial,sans-serif}
.af-workout-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:38px;align-items:start}.af-workout-media-column,.af-workout-data-column{min-width:0}
.af-media-square{aspect-ratio:1;position:relative;overflow:hidden;border-radius:24px;background:#fff;color:#000;display:flex;align-items:center;justify-content:center}
.af-media-square video,.af-media-square img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;margin:0;max-height:100%}
.af-media-square > video{opacity:0;transition:opacity .12s ease}
.af-media-square > video[data-af-ready="1"]{opacity:1}
.af-media-square > .af-media-poster{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:contain;box-sizing:border-box;padding-bottom:inherit;pointer-events:none;transition:opacity .12s ease}
.af-media-square > video[data-af-ready="1"] + .af-media-poster{opacity:0}

.af-media-controls{position:absolute;bottom:10px;left:10px;right:10px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;height:44px}
.af-media-controls button{height:44px;width:44px;padding:0;border:0;background:none;color:#000;display:grid;place-items:center}.af-media-controls svg{width:18px;height:18px}
.af-inline-play{display:grid;place-items:center;box-sizing:border-box;width:18px;height:18px;border:1.7px solid #000;background:#ffffffe6;border-radius:50%}.af-inline-play svg{width:9px;height:9px}
.af-youtube{display:flex;align-items:center;justify-content:center;gap:4px;color:#000;text-decoration:none;min-height:44px;font-size:14px}.af-youtube b{font-family:'HelveticaNeue-CondensedBold','Arial Narrow',sans-serif;font-weight:700}.af-youtube span{background:#000;color:#fff;border-radius:4px;display:grid;place-items:center;width:20px;height:14px}.af-youtube span svg{width:8px;height:8px}
.gf-day-switcher{display:flex;justify-content:space-around;gap:8px;overflow:auto;margin:0 0 22px;scrollbar-width:none}.af-trainer-workout>.gf-day-switcher{justify-content:safe center;gap:10px;margin-left:0!important;margin-right:0!important}.af-trainer-workout>.gf-day-switcher>button{flex:0 0 auto}.gf-day-switcher button{padding:0 12px;min-width:76px;min-height:58px;border:0;background:none;color:#727986;font-size:14px;font-weight:800;border-bottom:3px solid transparent;white-space:nowrap}.gf-day-switcher button.active{color:var(--lime);border-color:var(--lime)}
.af-program-flow{width:100%;overflow:visible;margin:8px 0 22px}.af-program-flow-track{display:flex!important;align-items:center;justify-content:center;width:100%;gap:0!important;min-width:0!important;min-height:var(--flow-height,96px)!important;padding:0!important}.af-program-flow-block{flex:0 0 auto;display:flex;align-items:stretch;position:relative;padding:0!important}.af-program-flow-members{display:flex;flex-direction:column;gap:7px}
.af-program-flow-node{box-shadow:none!important;width:var(--node-size,39px)!important;height:44px!important;min-width:0!important;min-height:0!important;border:0!important;border-radius:0!important;background:none!important;color:#a4a9b2!important;font-size:min(11px,calc(var(--node-size,39px)*.36))!important;font-weight:800;display:grid;place-items:center;padding:0!important;align-self:center}
.af-program-flow-node>span{position:relative;display:grid;place-items:center;box-sizing:border-box;width:var(--node-size,39px);height:var(--node-size,39px);background:#0c0c0c;border:1px solid #343434;border-radius:50%}.af-program-flow-node.active{background:none!important;color:#071000!important}.af-program-flow-node.active>span{background:var(--lime);border-color:var(--lime)}.af-program-flow-connector{flex:0 0 var(--connector-size,20px);width:var(--connector-size,20px)!important;height:1px;background:repeating-linear-gradient(90deg,#a3ff128c 0 3px,transparent 3px 7px);margin:0!important}
.af-program-flow-bracket{position:static!important;inset:auto!important;flex:0 0 var(--bracket-size,12px);width:var(--bracket-size,12px)!important;border:1px solid #a3ff128c;border-left:0;border-radius:0 3px 3px 0;margin:5px 0!important}
.af-program-circuit{position:relative;width:min(260px,calc(100% - 12px));aspect-ratio:1;margin:10px auto;border:1px dashed #a3ff1261;border-radius:50%;background:radial-gradient(#a3ff120e,transparent)}.af-program-circuit-position{position:absolute;transform:translate(-50%,-50%)}.af-program-circuit-center{position:absolute;inset:31%;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;white-space:nowrap;font-size:12px;background:#070707;border:1px solid #a3ff1238;border-radius:50%}.af-program-circuit-center span{color:var(--lime);font-size:24px}
.af-exercise-action-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:26px 0 0}.af-exercise-action{display:flex;align-items:center;flex-direction:column;gap:7px;background:none;border:0;color:white;padding:8px 4px;min-height:72px;font-size:12px;text-align:center;box-sizing:border-box}.af-exercise-action>span{box-sizing:border-box;border:1.5px solid var(--lime);border-radius:50%;width:44px;height:44px;display:grid;place-items:center;color:var(--lime)}.af-exercise-action svg{height:24px;width:24px}.af-exercise-action b{font-weight:800}.af-exercise-action small{display:block;color:#858d9b;font-size:9px;font-weight:700;margin-top:3px}
.af-workout-main-actions{margin:0;padding:14px 0}.af-workout-main-actions .exercise-weight-entry{display:contents}.af-workout-main-actions .exercise-compact-action,.af-workout-main-actions .exercise-weight-action-btn{display:flex;align-items:center;flex-direction:column;gap:7px;border:0;background:none;padding:8px 4px;color:#fff;width:100%;font-size:12px;font-weight:800;min-height:72px}
.af-workout-main-actions .exercise-action-icon{box-sizing:border-box;border:1.5px solid var(--lime);border-radius:50%;width:44px;height:44px;color:var(--lime);display:grid;place-items:center;background:none}.af-workout-main-actions .exercise-action-icon svg{height:24px;width:24px}.af-workout-main-actions .exercise-compact-action small{display:block;color:#858d9b;font-size:9px;font-weight:700;margin-top:3px}.af-workout-main-actions .exercise-action-plus:before{display:none}.af-workout-main-actions .exercise-compact-action.is-saved .exercise-action-icon{background:#a3ff1214;border-color:#a3ff126b;color:#a3ff12c7}
.af-record-buttons{display:flex;gap:10px;width:100%;margin:16px 0 0}.af-record-button{flex:1;min-width:0;width:100%;margin:0;font-size:12px;font-weight:600;border-radius:15px}.af-completion-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 28px}.af-complete,.af-completion-actions .af-skip{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;background:#000;color:white;border:1px solid #a3ff124d;border-radius:14px;padding:8px;font-size:14px;font-weight:700}.af-completion-actions .af-skip{border-color:#ff4c394d}.af-complete svg,.af-completion-actions .af-skip svg{width:16px;height:16px;color:var(--lime)}.af-completion-actions .af-skip svg{color:#ff4c39}.af-workout-data-column .gf-worksets-table{table-layout:fixed;width:100%;font-size:11.5px}.af-workout-data-column th,.af-workout-data-column td{text-align:center!important;padding:0 4px!important;height:37px!important;font-weight:700}.af-workout-data-column th:first-child,.af-workout-data-column td:first-child{text-align:left!important;width:80px}.af-workout-data-column .gf-worksets-table-wrap{overflow:auto}.af-workout-data-column .gf-section-label,.af-trainer-worksets .gf-section-label{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.af-full-sheet{width:100%;height:100%;max-width:none;max-height:none;inset:0;margin:0;padding:calc(16px + env(safe-area-inset-top)) 20px calc(30px + env(safe-area-inset-bottom));border:0;background:#000;color:#fff;overflow:auto;box-sizing:border-box}.af-full-sheet::backdrop{background:#000}.af-full-sheet header{display:flex;align-items:center;justify-content:center;position:relative;min-height:44px;max-width:850px;margin:0 auto 20px}.af-full-sheet header h2{font-size:17px;font-weight:600;margin:0}.af-full-sheet header button{appearance:none;-webkit-appearance:none;border-radius:0;box-shadow:none;outline:none;position:absolute;right:0;background:none;border:0;color:white;width:44px;height:44px;padding:10px}.af-full-sheet header svg{height:18px;width:18px}.af-full-sheet-content{max-width:850px;margin:auto}.af-full-sheet h1{font-size:23px;font-weight:800;line-height:1.3;letter-spacing:0;margin:0 0 24px}.af-full-sheet-content h2{margin:24px 0 12px;font-size:15px}.af-full-sheet-content p{white-space:pre-line;line-height:1.6;color:#e7e7ea}.af-full-sheet input{box-sizing:border-box;width:100%;padding:15px;background:#202020;color:white;border:1px solid #303236;border-radius:18px;margin:15px 0;font:inherit}
.af-technique h2,.af-sources h2{font-size:13px}.af-technique p{font-size:13px;line-height:1.6}.af-info-group .gf-chip-list{display:flex;flex-wrap:wrap;gap:8px}.af-info-group .gf-chip{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4;font-size:11px;color:#d4d4d8;background:#1c1c1e;border:1px solid #343438;border-radius:999px;padding:6px 10px;min-height:30px;box-sizing:border-box}.af-sources a{display:block;color:white;font-size:12px;margin:8px 0}.af-technique-audio{display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:#f2f2f2;color:#000;width:100%;min-height:44px;border-radius:13px;font-size:13px;font-weight:600}.af-technique-audio svg{width:16px;height:16px}
.af-rest-sheet{padding:0}.af-rest-sheet .af-full-sheet-content{height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:center;max-width:none;padding-top:max(24px,20vh);box-sizing:border-box}.af-rest-circle{box-sizing:border-box;border:4px solid var(--lime);border-radius:50%;width:min(300px,calc(100vw - 72px));aspect-ratio:1;display:grid;place-items:center}.af-rest-circle strong{font-size:64px;font-weight:300;letter-spacing:-2px;font-variant-numeric:tabular-nums;font-family:ui-rounded,-apple-system,sans-serif}.af-rest-actions{display:flex;flex-direction:column;gap:12px;width:min(340px,calc(100% - 56px));margin:36px 0 30px;padding:0 28px;box-sizing:border-box}.af-rest-actions button{background:none;color:white;border:0;font-size:15px;font-weight:600;min-height:48px}.af-rest-actions button:first-child{background:var(--lime);color:black;border-radius:999px;min-height:54px;font-size:16px;font-weight:700}
.workout-action-modal:not([hidden]){padding:0!important;inset:0!important;background:#000!important;z-index:1000!important;align-items:stretch!important;justify-content:center!important}.workout-action-sheet.exercise-weight-editor{width:100%!important;max-width:560px!important;border:0!important;border-radius:0!important;background:#000!important;padding:0 20px 28px!important;max-height:100%!important;box-shadow:none!important}.exercise-weight-editor .workout-action-handle{display:none}
.af-trainer-header{display:flex;align-items:center;justify-content:space-between;min-height:44px}.af-trainer-header .app-back-row{margin:0}.af-trainer-header>button{width:44px;height:44px;background:none;color:white;border:0;font-size:24px}.af-trainer-navigation{display:flex;gap:24px;margin:0 0 18px;padding:0 14px;overflow-x:auto;border-bottom:1px solid #242424;scrollbar-width:none}.af-trainer-navigation button{font-weight:400;flex-shrink:0;border:0;border-bottom:2px solid transparent;background:none;color:#7e8594;padding:15px 0;font-size:13px;white-space:nowrap;min-width:max-content}.af-trainer-navigation button.active{border-color:var(--lime);color:var(--lime)}.trainer-client-workspace>.af-trainer-navigation{gap:0;padding:0;margin-top:8px}.trainer-client-workspace>.af-trainer-navigation button{flex:1;min-height:54px;font-weight:900;padding:0}
.af-client-mode{display:flex;gap:0;margin:18px 14px 26px;padding:2px;background:#1c1c1e;border-radius:999px}.af-client-mode button{flex:1;border:0;background:none;color:#fff;padding:6px 10px;font-size:13px;font-weight:400;border-radius:999px;min-height:28px}.af-client-mode button.active{background:#636366;font-weight:500;box-shadow:0 1px 3px #0004}

.af-avatar-wheel{display:flex;gap:0;overflow-x:auto;overflow-y:visible;padding:8px 12px;scrollbar-width:none}.af-avatar-wheel::-webkit-scrollbar{display:none}.af-chat-avatar{position:relative;width:68px;flex:0 0 68px;background:none;border:0;padding:0;color:white;text-align:center}.af-chat-avatar .trainer-client-avatar{display:grid;place-items:center;width:36px!important;height:36px!important;margin:auto;border-radius:50%;background:#171717!important;color:#fff!important;overflow:hidden}.trainer-client-avatar img{width:100%;height:100%;object-fit:cover}.af-chat-avatar.active .trainer-client-avatar{outline:2px solid var(--lime);outline-offset:3px;box-shadow:0 0 12px #a3ff1240}.af-chat-avatar b{display:block;color:white!important;font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:6px}.af-chat-avatar svg{width:19px;height:19px}.af-chat-avatar i{position:absolute;right:10px;top:-3px;min-width:24px;height:24px;display:grid;place-items:center;box-sizing:border-box;border-radius:50%;border:2px solid #000;background:var(--lime);color:#000;font-style:normal;font-size:13px;line-height:1;font-weight:800;padding:0 5px}.af-chat-avatar .trainer-client-avatar.is-placeholder{color:#fff!important}
.af-trainer-retry{border:0;background:none;color:#fff;font-size:13px;text-decoration:underline;padding:8px}.af-trainer-wheel{gap:0;padding:3px 14px 26px;min-height:114px}.af-trainer-avatar{width:82px;flex:0 0 82px;display:flex;flex-direction:column;align-items:center;gap:7px;background:none;border:0;color:white;padding:0}.af-trainer-avatar .trainer-client-avatar{display:grid;place-items:center;width:60px!important;min-width:60px;flex:0 0 60px;height:60px!important;box-sizing:border-box;border:2px solid #333;border-radius:50%;overflow:hidden;background:#171717}.af-trainer-avatar.active .trainer-client-avatar{border-color:var(--lime);box-shadow:0 0 0 2px #a3ff121f}.af-trainer-avatar b{font-size:10px;font-weight:900;line-height:13px;height:26px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.af-trainer-avatar small{font-size:8px;font-weight:900;color:var(--muted)}.af-trainer-avatar.active small{color:var(--lime)}
.af-flat-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:25px 0}.af-flat-heading h2{margin:0}.af-cycle-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:20px 0}.af-cycle-edit{background:none;border:0;padding:0;color:var(--lime);font-size:15px;font-weight:900;text-align:left;display:flex;gap:8px}.af-cycles h2{font-size:20px}.af-cycle-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #262626}.af-cycle-row>.trainer-client-avatar{width:48px;height:48px;border-radius:50%;overflow:hidden}.af-cycle-row>div{flex:1}.af-cycle-row b{font-size:13px}.af-cycle-row small{display:block;font-size:11px;color:var(--muted);margin-top:5px}.af-cycle-row button{background:none;border:0;color:var(--lime);font-size:11px;min-height:44px}.af-danger-action{border:0;background:none;color:#ff4c39;padding:16px;font:inherit}
.trainer-program-card,.trainer-client-workspace{width:100%;max-width:100%;margin:0;padding:0;overflow:visible}.trainer-modal-backdrop{z-index:1000}
.af-recorder{display:flex;align-items:center;flex-direction:column;gap:22px;height:100%;min-height:70vh}.af-recorder video,.af-record-preview{object-fit:contain;max-height:none;width:100%;background:#000;min-height:0;flex:1}.af-record-actions{display:flex;flex-direction:column;gap:22px;width:100%;margin-top:auto}.af-record-retake,.af-record-done{display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:#202020;color:#fff;min-height:50px;border-radius:16px;font-size:14px}.af-record-retake svg{width:20px;height:20px}.af-record-done{background:none}.af-record-sent{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--lime)!important;text-align:center;margin:0}.af-record-sent svg{width:20px;height:20px}
/* Camera controls stay inside the visible viewport, including Safari's toolbars. */
.af-video-recorder-sheet{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-height:100dvh;padding:0;overflow:hidden;overscroll-behavior:none}
.af-video-recorder-sheet>header{position:absolute;inset:max(12px,env(safe-area-inset-top)) 16px auto;max-width:none;height:44px;min-height:44px;margin:0;z-index:3;pointer-events:none}
.af-video-recorder-sheet>header h2{display:none}
.af-full-sheet.af-video-recorder-sheet>header button,.af-full-sheet.af-video-recorder-sheet>header button:focus{position:absolute;inset:0 0 auto auto;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #ffffff24;border-radius:50%;background:#171717c9;color:#fff;pointer-events:auto}
.af-video-recorder-sheet>header button svg{width:20px;height:20px}
.af-video-recorder-sheet>.af-full-sheet-content{width:100%;height:100%;max-width:none;min-height:0;box-sizing:border-box}
.af-video-recorder-sheet .af-recorder{position:relative;width:100%;height:100%;min-height:0;gap:12px;box-sizing:border-box;padding:calc(max(12px,env(safe-area-inset-top)) + 56px) 16px max(18px,env(safe-area-inset-bottom))}
.af-video-recorder-sheet .af-recorder>video{flex:1 1 0;min-height:0;max-height:100%;object-fit:contain}
.af-video-recorder-sheet .af-video-editor{flex:0 0 auto;margin:0 auto}
.af-video-recorder-sheet .af-record-actions{flex:0 0 auto;width:100%;max-width:520px;margin:0 auto;gap:10px}
/* Review uses the whole viewport; editing controls overlay rather than shrink the video. */
.af-video-recorder-sheet:not(.af-video-capturing) .af-recorder{justify-content:flex-end}
.af-video-recorder-sheet .af-recorder>video.af-record-preview{position:absolute;inset:0;width:100%;height:100%;max-height:none;margin:0;object-fit:contain;object-position:center;flex:none}
/* Portrait footage fills the phone's height; encoded frame and aspect ratio stay intact. */
.af-video-recorder-sheet.af-video-portrait .af-recorder>video.af-record-preview{left:50%;right:auto;width:calc(100dvh * var(--af-record-ratio,0.5625));max-width:none;transform:translateX(-50%);object-fit:contain}
.af-video-recorder-sheet:not(.af-video-capturing) .af-recorder::before{content:"";position:absolute;inset:45% 0 0;z-index:1;pointer-events:none;background:linear-gradient(transparent,#000b)}
.af-video-recorder-sheet .af-video-editor,.af-video-recorder-sheet .af-record-actions{position:relative;z-index:2}
.af-video-recorder-sheet.af-video-capturing .af-recorder{padding:0;display:block}
.af-video-capturing #afCapture{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.af-video-capturing #afCaptureTime{position:absolute;z-index:2;top:calc(max(12px,env(safe-area-inset-top)) + 7px);left:50%;transform:translateX(-50%);padding:6px 12px;border-radius:9px;background:#171717b8;color:#fff;font-size:16px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums}
.af-video-capturing #afCaptureButtons{position:absolute;inset:auto 0 0;z-index:2;display:flex;align-items:center;justify-content:center;padding:34px 16px calc(24px + env(safe-area-inset-bottom));background:linear-gradient(transparent,#0009);box-sizing:border-box}
.af-video-recorder-sheet .af-camera-shutter{appearance:none;-webkit-appearance:none;display:grid;place-items:center;flex:0 0 76px;width:76px;height:76px;min-height:76px;padding:0;border:4px solid #fff;border-radius:50%;background:transparent;box-shadow:0 1px 12px #0005}
.af-camera-shutter>span{display:block;width:60px;height:60px;border-radius:50%;background:#ff3b30;transition:width .15s,height .15s,border-radius .15s}
.af-camera-shutter.is-recording>span{width:30px;height:30px;border-radius:6px}
.af-camera-shutter:disabled{opacity:.5;cursor:wait}
@media(max-height:480px){.af-video-recorder-sheet .af-recorder{gap:8px;padding-top:calc(max(8px,env(safe-area-inset-top)) + 44px);padding-bottom:max(10px,env(safe-area-inset-bottom))}.af-video-recorder-sheet .af-record-actions{flex-direction:row}.af-video-recorder-sheet .af-record-actions>button{flex:1;min-width:0}.af-video-capturing #afCaptureButtons{padding-bottom:calc(12px + env(safe-area-inset-bottom))}.af-video-recorder-sheet .af-camera-shutter{width:64px;height:64px;min-height:64px;flex-basis:64px}.af-camera-shutter>span{width:48px;height:48px}.af-camera-shutter.is-recording>span{width:26px;height:26px}}
.af-message-menu{display:grid;gap:0}.af-message-menu button{padding:16px;background:#242424;color:white;border:0;font-size:15px;text-align:left;border-bottom:1px solid #ffffff12}.af-message-menu button:last-child{border:0}.af-menu-sheet,.af-confirm-sheet{width:min(320px,calc(100% - 40px));height:auto;max-height:80vh;margin:auto;border-radius:18px;background:#242424;padding:0;inset:0}.af-menu-sheet::backdrop,.af-confirm-sheet::backdrop{background:#0006;backdrop-filter:blur(5px)}.af-menu-sheet header{display:none}.af-confirm-sheet header{padding:16px;margin:0}.af-confirm-sheet header button{display:none}.af-confirm-sheet .af-full-sheet-content{padding:0 16px 16px}.af-confirm-actions{display:flex;justify-content:space-between}.af-confirm-actions button{border:0;background:none;color:#fff;padding:12px}
.af-expanded-video{height:calc(100dvh - 100px);display:flex;flex-direction:column;overflow:hidden;background:#fff}.af-video-sheet{background:#fff;color:#000;padding:10px 18px}.af-video-sheet::backdrop{background:white}.af-video-sheet header button{color:black}.af-expanded-video>video{width:100%;min-height:0;flex:1;object-fit:contain;touch-action:none}.af-expanded-controls{display:flex;justify-content:center;gap:16px;z-index:2;padding:18px}.af-expanded-controls button{width:58px;height:58px;border-radius:50%;background:#dededee0;color:black;border:0;display:grid;place-items:center;font-size:17px}.af-expanded-controls svg{width:17px;height:17px}
/* Messages continue under floating panels. Their insets track actual panel heights. */
html:has(body.af-chat-open){height:100%;overflow:hidden;overscroll-behavior:none}body.af-chat-open{width:100%;min-height:100dvh;overflow:hidden;overscroll-behavior:none}.af-chat-open .app{padding:0;max-width:var(--af-chat-width);height:100dvh;min-height:0}.af-chat-open #chat{height:100dvh}.af-chat-surface{position:fixed;top:var(--af-viewport-top,0px);left:50%;transform:translateX(-50%);width:min(100%,var(--af-chat-width));height:var(--af-viewport-height,100dvh);isolation:isolate;--af-header-space:80px;--af-composer-space:168px}.af-chat-header{position:absolute;inset:0 0 auto;z-index:4;padding:env(safe-area-inset-top) 0 8px;background:#000}
.af-chat-list{height:100%;box-sizing:border-box;overflow-y:auto;overscroll-behavior:none;touch-action:pan-y;padding:var(--af-header-space) 10px var(--af-composer-space);scroll-padding-top:var(--af-header-space);scroll-padding-bottom:var(--af-composer-space);overflow-anchor:none}
.af-chat-composer{position:absolute;bottom:calc(84px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(var(--af-composer-width),calc(100% - 24px));box-sizing:border-box;z-index:5;padding:6px 0}.af-chat-composer:before{content:"";position:absolute;inset:0 -40px -130px;background:linear-gradient(to bottom,transparent 0%,#0000008c 28%,#000000e6 70%,#000000fa 100%);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);mask-image:linear-gradient(transparent,#000000bf 35%,#000);z-index:-1;pointer-events:none}
.af-chat-input-row{display:flex;align-items:flex-end;gap:8px}.af-chat-input-row textarea{flex:1;min-width:0;box-sizing:border-box;resize:none;height:44px;min-height:44px;max-height:142px;margin:0;appearance:none;-webkit-appearance:none;border:0;border-radius:22px;background:#202020;color:white;font-family:inherit;font-size:17px;font-weight:400;padding:11px 14px;line-height:22px;outline:none}.af-chat-input-row textarea::placeholder{font-weight:400;color:rgba(235,235,245,.3);opacity:1;-webkit-text-fill-color:rgba(235,235,245,.3)}.af-chat-input-row>button{border:0;height:44px;width:44px;flex:0 0 44px;border-radius:50%;display:grid;place-items:center;padding:10px}.af-chat-input-row button svg{width:21px;height:21px}.af-compose-action{background:#fff;color:#000}.af-voice-cancel{background:none;color:var(--muted)}.af-voice-draft{display:flex;align-items:center;gap:10px;flex:1;min-width:0;height:44px;padding:0 12px;background:#202020;border-radius:22px;font-size:13px}.af-voice-draft>svg{width:20px;height:20px;color:var(--lime)}.af-voice-draft>button{width:30px;height:36px;background:none;border:0;color:#fff;padding:0}.af-stop-glyph{width:13px;height:13px;background:#000;border-radius:2px}#afInlineVoiceError{color:#ff4c39;font-size:10px;overflow:hidden}
.af-message{display:flex;margin:8px 0;position:relative}.af-message.mine{justify-content:flex-end}.af-message.theirs{justify-content:flex-start}.af-bubble{background:#383838;color:white;border-radius:18px;padding:8px 11px;max-width:calc(100% - 35px);min-width:0;box-sizing:border-box;overflow-wrap:anywhere;display:flex;flex-direction:column;gap:7px}.theirs .af-bubble{background:#171717}.af-bubble p{font-size:16px;line-height:1.3;margin:0;white-space:pre-wrap;font-weight:400}.af-bubble footer{display:flex;align-items:center;gap:5px;color:#8d95a3;font-size:9px;font-weight:400;justify-content:flex-start}.af-message-status{background:#8d95a3;color:#000;width:11px;height:11px;border-radius:50%;display:grid;place-items:center}.af-message-status.read{background:var(--lime);color:#000}.af-message-status svg{width:6px;height:6px;stroke-width:2.5}
.af-chat-quote{border:0;border-left:3px solid white;border-radius:13px;background:#0000002e;color:#fff;padding:7px 9px;text-align:left;width:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:3px;font-size:10px;overflow:hidden}.af-chat-quote b{color:#fff;font-size:11px;font-weight:700;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.af-chat-quote span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#ffffffb8}.af-exercise-quote b{white-space:normal}.af-video-link{border:0;background:none;color:#fff;font-size:16px;display:flex;align-items:center;gap:8px;margin:0;padding:4px 0;min-height:52px;font-weight:400}.af-play-disc{box-sizing:border-box;background:var(--lime);border:0;border-radius:50%;color:#000;width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;padding:0}.af-play-disc svg{width:18px;height:18px;filter:none}.af-message-like{display:flex;align-items:center;gap:5px;color:white;background:none;border:0;padding:0;font-size:12px;align-self:flex-start}.af-message-like svg{width:12px;height:12px;fill:white}.af-date-chip{font-size:12px;font-weight:600;color:#ffffffe6;background:#252525b8;border-radius:20px;padding:5px 12px;display:table;margin:16px auto}
.af-voice-player{display:flex;align-items:center;gap:10px;margin:0;padding:4px 0;width:260px;min-width:0;max-width:100%}.af-voice-track{flex:1;min-width:0}.af-waveform{position:relative;display:flex;align-items:center;justify-content:space-between;width:100%;height:26px;background:none;border:0;padding:0;gap:2px;color:#ffffff47;overflow:hidden}.af-waveform i{flex:1;min-width:1px;border-radius:999px;background:currentColor}.af-wave-played{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;gap:2px;color:white;clip-path:inset(0 calc(100% - var(--progress)) 0 0);pointer-events:none}.af-voice-track small{display:block;color:#adb0b8;font-size:12px;font-variant-numeric:tabular-nums;margin-top:3px}.af-reply-compose{display:flex;align-items:center;gap:10px;margin-bottom:8px}.af-reply-compose>button{border:0;background:none;color:white;width:32px;padding:0}.af-reply-compose svg{width:18px;height:18px}.af-chat-empty{text-align:center;color:#8d95a3;margin-top:20vh}.af-chat-back{border:0;background:none;color:white;width:24px;padding:0;position:absolute;top:14px;left:4px}.af-chat-back svg{width:24px;height:24px}.af-chat-search{display:flex;align-items:center;gap:8px;margin:8px 12px;min-height:54px;padding:0 5px 0 14px;box-sizing:border-box;border-radius:27px;background:#171717;color:#8d95a3}.af-chat-search input{box-sizing:border-box;flex:1;min-width:0;width:100%;min-height:54px;border-radius:0;border:0;background:transparent;color:white;font-size:17px;padding:5px 0;margin:0;outline:none}.af-chat-search>button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;color:#8d95a3;background:none;line-height:1}.af-chat-search svg{width:18px;height:18px}.af-message-highlight .af-bubble{outline:1px solid #ffffff80}
@media(max-width:799px){.af-keyboard-open .af-chat-composer{bottom:6px}}@media(max-width:799px){.af-keyboard-open .bottom{display:none!important}}
.weight-edge-swiper,.trainer-weight-swiper{touch-action:pan-x;overscroll-behavior-x:contain;overflow-y:hidden!important}.profile-settings-action{margin-right:0}.weight-edge-periods button{font-size:9px!important;font-weight:700!important}
/* Desktop placement follows the original PWA; mobile controls stay native. */
@media(min-width:800px){
 body:has(:is(#profile,#workouts,#about,#settings,#chat).active) .app{width:100%!important;max-width:none!important;padding-left:38px!important;padding-right:38px!important}
 .app #workouts,.app #about,.app #settings{width:100%!important;max-width:none!important;margin:0!important;padding-left:0!important;padding-right:0!important}
 .trainer-workspace,.trainer-client-workspace{width:100%;max-width:none}
 .profile-identity{max-width:none;margin:0 0 25px}.profile-weight-card,.profile-measurements-card{max-width:none;margin-left:0;margin-right:0}
 #workouts .af-workout-layout,.af-trainer-workout .af-workout-layout{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;margin:0 auto}
 .af-workout-layout>.af-workout-media-column,.af-workout-layout>.af-workout-data-column{display:contents}
 #workouts .gf-day-switcher,#workouts .af-program-flow{width:100%;margin-left:auto!important;margin-right:auto!important}
 #workouts .af-media-square,.af-trainer-workout .af-media-square{width:100%;max-width:none;align-self:center;order:0;aspect-ratio:16/9;padding-bottom:64px;box-sizing:border-box}
 #workouts .af-exercise-action-row:not(.af-workout-main-actions){order:1}
 #workouts .gf-worksets{order:3;margin-top:28px}
 .af-trainer-workout .af-trainer-worksets{width:100%;min-width:0}
 .af-trainer-workout .af-trainer-set-grid{width:100%;min-width:max-content}
 .af-trainer-workout .af-trainer-set-column{width:auto;flex:1 0 100px}
 #workouts .af-workout-main-actions{order:2}
 #workouts .af-record-buttons{order:4}
 #workouts .af-completion-actions{order:5}
 #workouts .af-native-progress{order:6}
 #workouts .gf-total-stats{order:7}
 .af-trainer-workout .af-exercise-action-row{order:1}.af-trainer-workout .af-trainer-worksets{order:3}.af-trainer-workout .af-native-progress{order:4}.af-trainer-workout .gf-total-stats{order:5}
 .af-trainer-workout>.af-trainer-exercise-actions,.af-trainer-workout>.af-trainer-program-actions{width:100%;margin-left:auto;margin-right:auto}
 body.af-chat-open:has(#chat.active) .app{width:100%!important;max-width:none!important;padding:0!important;margin:0!important;overflow:visible!important}
 body.af-chat-open #chat{width:100%!important;max-width:none!important;margin:0!important}
 .af-chat-open .af-chat-surface{width:100%}
 .af-chat-open{--af-composer-width:760px}.af-chat-open .bottom{width:min(760px,calc(100% - 48px))}
 .af-chat-header{padding-left:0;padding-right:0;width:100%;box-sizing:border-box}.af-chat-header #afChatContacts{width:calc(100% - 76px);margin:auto}
 .af-chat-list{padding-left:38px;padding-right:38px}
 .af-chat-composer{width:calc(100% - 76px)}.af-chat-composer::before{top:var(--af-input-top,6px);left:calc((100% - 100vw)/2);right:calc((100% - 100vw)/2);background:linear-gradient(to bottom,#00000026 0%,#000000b7 28%,#000000ff 70%,#000000ff 100%);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);mask-image:linear-gradient(#00000080,#000000d9 35%,#000)}
 .af-bubble{max-width:min(550px,calc(100% - 35px))}
 .af-chat-back{left:38px}
}
@media(max-width:799px){.app{max-width:460px;padding:8px 14px 116px}.af-workout-layout{grid-template-columns:1fr;gap:28px}.trainer-client-profile-view{padding:0}.trainer-modal-backdrop{padding:0}.af-flat-heading h2{font-size:19px}.af-workout-data-column:empty{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.af-trainer-exercise-actions{display:grid;margin-top:20px}.af-trainer-exercise-actions button{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:0 2px;background:none;border:0;border-bottom:1px solid #242426;color:#f5f5f7;font-size:14px;font-weight:700;text-align:left}.af-trainer-exercise-actions i{display:grid;place-items:center;font-style:normal;font-size:15px;width:25px;height:25px;border-radius:50%;background:#27272a}.af-trainer-exercise-actions button:first-child i{background:#a3ff1224;color:#a3ff12}.af-trainer-exercise-actions span{margin-left:auto;width:18px;color:#72727a;font-size:22px}.af-trainer-exercise-actions .af-destructive{color:#ff453a;border:0}

/* Workout editor follows WorkoutWeightEditor rather than the old PWA bottom sheet. */
#workouts .workout-action-sheet.exercise-weight-editor{margin:0!important;border:0!important;border-radius:0!important;background:#000!important;box-shadow:none!important;padding:0 20px 28px!important;box-sizing:border-box;overflow-y:auto}
#workouts .exercise-weight-editor::before{display:none}
.exercise-weight-editor>header{position:sticky;top:0;background:#000;height:64px;grid-template-columns:44px 1fr 44px;margin:0 -8px 20px;z-index:2}
.exercise-weight-editor>header b{font-size:17px;font-weight:600}
.af-weight-back{width:44px;height:44px;border:0;background:none;color:var(--lime);padding:10px;border-radius:0;box-shadow:none;outline:none}.af-weight-back svg{width:20px;height:20px}
.exercise-weight-editor .af-sheet-date{box-sizing:border-box;display:grid;grid-template-columns:48px 1fr 16px;align-items:center;gap:12px;border:1px solid #303236;border-radius:999px;min-height:72px;padding:11px 10px;margin:0 0 13px}
.af-weight-date-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#373a4057;color:#9aa1ac}.af-weight-date-icon svg{width:24px;height:24px}
.exercise-weight-editor .af-sheet-date>span:nth-child(2){display:grid;gap:8px;min-width:0}.exercise-weight-editor .af-sheet-date small{font-size:10px;font-weight:800;color:#8d95a3}
.exercise-weight-editor .af-sheet-date input{appearance:none;color-scheme:dark;width:max-content;max-width:100%;height:30px;min-height:30px;margin:0!important;padding:3px 8px!important;border:0!important;border-radius:16px!important;background:#1c1c1e!important;color:#fff!important;font-size:15px;font-weight:400}.af-weight-date-chevron{color:#949ba6;font-size:15px}
.exercise-weight-editor .exercise-weight-step-select{margin-bottom:14px;min-height:44px}.exercise-weight-editor .exercise-weight-step-select>span{font-size:11px;font-weight:700}.exercise-weight-editor .exercise-weight-step-controls b{font-size:13px;font-weight:800}
.exercise-weight-editor #setsBox{margin:0!important;padding:0!important}.exercise-weight-editor .set-row{display:grid;grid-template-columns:minmax(36px,1fr) minmax(36px,1fr) minmax(110px,2fr) 32px;gap:6px;align-items:center;margin:0!important;padding:10px!important;min-height:72px;border:1px solid #303236;border-radius:28px;background:#00000024;box-sizing:border-box}
.exercise-weight-editor .set-row>.input{margin:0!important;padding:0!important;min-height:46px;background:none;border:0;font-size:14px;text-align:center;min-width:0}.exercise-weight-editor .set-row>.af-remove-set{height:32px;width:32px;min-height:32px;padding:0;border:1px solid #42454a;border-radius:50%;background:none;color:white;font-size:13px}.af-remove-set:disabled{opacity:.4}
.exercise-weight-editor .af-add-set{display:block;margin:10px auto 0;background:none;border:0;color:var(--lime);min-height:44px;font-size:16px}.exercise-weight-editor #ewSaveBtn{font-weight:800!important}
.af-full-sheet header button:focus,.af-full-sheet header button:focus-visible,.af-weight-back:focus,.af-sheet-close:focus{outline:none;box-shadow:none;background:transparent}
.af-chat-input-row>.af-hide-keyboard{display:none;flex:0 0 32px;width:32px;padding:4px;background:none;color:white;border-radius:0}.af-keyboard-open .af-chat-input-row>.af-hide-keyboard{display:grid}
.af-workout-chat .bottom{display:none!important}.af-workout-chat .af-chat-composer{bottom:calc(6px + env(safe-area-inset-bottom))}.af-workout-chat .af-chat-header{padding-top:calc(44px + env(safe-area-inset-top))}.af-workout-chat-title{position:absolute;top:env(safe-area-inset-top);left:44px;right:44px;height:44px;display:grid;place-items:center;font-size:17px;font-weight:600}.af-workout-chat .af-chat-back{top:env(safe-area-inset-top);left:0;width:44px;height:44px;padding:10px;color:var(--lime)}

.exercise-weight-editor .af-sheet-date::before,.exercise-weight-editor .af-sheet-date::after{display:none}.exercise-weight-editor .af-sheet-date>span{padding:0}.exercise-weight-editor .exercise-weight-stepper>.input{font-weight:600!important}.exercise-weight-editor .trainer-weight-plan span{font-weight:800}

.af-trainer-program-actions{display:grid;gap:0;margin-top:18px;text-align:left}.af-trainer-program-actions button,.af-trainer-empty-add{background:none;border:0;color:var(--lime);min-height:44px;padding:0;font-size:12px;font-weight:700;text-align:left}.af-trainer-program-actions button:last-child{color:#ff453a;font-size:16px;text-align:center;padding:12px 0}
.af-trainer-workout .gf-total-stats{display:flex;gap:0;margin:20px 0 0;padding:14px 0}.af-trainer-workout .gf-total-stats article{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;border:0;background:none;box-shadow:none;border-radius:0;padding:0;color:white}.af-trainer-workout .gf-total-stats b{margin:0}.af-trainer-workout .gf-total-stats svg{width:24px;height:24px;color:var(--lime)}
.af-trainer-worksets{margin:20px 0 0}.af-trainer-worksets h3{margin:0 0 12px}.af-trainer-worksets-scroll{overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:none}.af-trainer-set-grid{display:flex;width:100%;min-width:max-content}.af-trainer-set-labels{width:80px;flex:0 0 80px;font-size:11.5px;font-weight:700;color:#8d95a3}.af-trainer-set-column{width:auto;flex:1 0 90px;font-size:11.5px;font-weight:700;text-align:center}.af-trainer-set-column>div,.af-trainer-set-labels>div{height:37px;box-sizing:border-box;border-bottom:1px solid #242424;display:flex;align-items:center;justify-content:center}.af-trainer-set-labels>div{justify-content:flex-start}.af-trainer-set-column .af-trainer-start-cell{display:flex;flex-direction:column;justify-content:center;gap:5px;padding:0!important;white-space:nowrap}
.af-trainer-set-column .gain-positive{color:var(--lime)}.af-trainer-set-column .gain-negative{color:#ff4c39}
.af-trainer-result{margin:16px 0}.af-trainer-result b{font-size:12px;font-weight:700}.af-trainer-result p{font-size:12px;color:#8d95a3;margin:8px 0}
.af-trainer-start{display:grid;gap:16px;margin:16px 0 0;width:100%;max-width:720px}
.af-trainer-start h3{margin:0;color:#fff;font-size:20px;line-height:1.3;font-weight:700}
.af-trainer-start [role="radiogroup"]{display:grid;gap:10px}
.af-program-start-option{display:flex;align-items:center;gap:14px;width:100%;min-height:88px;box-sizing:border-box;padding:16px;border:1px solid #34363a;border-radius:18px;background:#000;color:white;text-align:left}
.af-program-start-option>i{flex:0 0 24px;height:24px;box-sizing:border-box;border:2px solid #858d9b;border-radius:50%}
.af-program-start-option>span{display:grid;gap:5px;min-width:0}
.af-program-start-option b{font-size:16px;line-height:1.2;font-weight:700}
.af-program-start-option small{font-size:13px;line-height:1.4;color:#8d95a3;font-weight:400}
.af-program-start-option.active{border-color:var(--lime);background:rgba(163,255,18,.06)}
.af-program-start-option.active>i{border-color:var(--lime);background:radial-gradient(circle,var(--lime) 0 5px,transparent 6px)}
.af-program-start-continue{width:100%;min-height:48px;margin-top:2px;padding:12px 16px;border:0;border-radius:14px;background:var(--lime);color:#000;font-size:15px;font-weight:700}
@media(min-width:1000px){.af-trainer-start{margin:24px auto 0;gap:18px}.af-trainer-start h3{font-size:24px}}


.af-flow-status{position:absolute;right:-5px;top:-5px;width:16px;height:16px;display:grid;place-items:center;background:#000;border-radius:50%;color:var(--lime);border:1px solid currentColor}.af-flow-status.skipped{color:#ff4c39}.af-flow-status svg{width:10px;height:10px}
.af-chat-avatar:focus,.af-chat-avatar:focus-visible{outline:none;box-shadow:none}.af-chat-avatar:focus-visible .trainer-client-avatar,.af-chat-avatar.active .trainer-client-avatar{outline:2px solid var(--lime);outline-offset:3px}.af-chat-avatar .trainer-client-avatar{flex:none;box-sizing:border-box;aspect-ratio:1}.af-chat-avatar .trainer-client-avatar img{border-radius:50%}
.af-effort-sheet{overflow:hidden;display:flex;flex-direction:column}.af-effort-sheet:not([open]){display:none}.af-effort-sheet header{width:100%;flex-shrink:0}.af-effort-sheet .af-full-sheet-content{width:100%;flex:1;min-height:0;display:flex;max-width:520px}.af-effort-content{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(20px,5vh,48px);padding-bottom:4vh}.af-effort-content h1{font-size:clamp(23px,6.4vw,25px);font-weight:600;text-align:center;max-width:420px;margin:0}.af-effort-wheel-wrap{position:relative;width:240px;flex-shrink:0}.af-effort-wheel-wrap::before,.af-effort-wheel-wrap::after{content:"";position:absolute;top:calc(50% - 2px);height:4px;width:30px;border-radius:2px;background:var(--lime);pointer-events:none}.af-effort-wheel-wrap::before{left:18px}.af-effort-wheel-wrap::after{right:18px}.af-effort-wheel{height:228px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;padding:76px 0;box-sizing:border-box;mask-image:linear-gradient(transparent,#000 25%,#000 75%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 25%,#000 75%,transparent);touch-action:pan-y}.af-effort-wheel::-webkit-scrollbar{display:none}.af-effort-wheel button{display:block;width:100%;height:76px;min-height:76px;scroll-snap-align:center;scroll-snap-stop:always;border:0;border-radius:0;background:none;color:#626873;font:600 44px/76px -apple-system,BlinkMacSystemFont,sans-serif;padding:0;box-shadow:none}.af-effort-wheel button.active{color:#fff;font-size:64px}.af-effort-confirm{display:grid;place-items:center;width:60px;height:60px;min-height:60px;padding:0;background:var(--lime);color:#000;border:0;border-radius:50%;flex-shrink:0}.af-effort-confirm svg{width:30px;height:30px}.af-effort-wheel:focus-visible{outline:1px solid #555;outline-offset:6px;border-radius:12px}@media(max-height:520px){.af-effort-content{gap:8px;padding:0}.af-effort-sheet header{margin-bottom:0}.af-effort-content h1{font-size:18px}.af-effort-confirm{width:48px;height:48px;min-height:48px}}
@media(min-width:800px){.gf-day-switcher button,#workouts .gf-day-switcher>button{font-size:20px!important;min-height:72px!important;min-width:104px!important}.af-program-flow-node{height:60px!important;font-size:16px!important}.af-program-flow-track{min-height:140px!important}.af-program-flow-members{gap:12px}}

.af-message.is-report .af-bubble{width:min(550px,calc(100% - 35px));padding:18px 17px 11px;border-radius:23px}.af-workout-report{width:100%;min-width:0}.af-report-eyebrow{font-size:9px;letter-spacing:1px;font-weight:750;color:#a6a8ad}.af-workout-report h3{font-size:23px;margin:7px 0 5px;font-weight:750}.af-report-date{font-size:11px;color:#a5a7ad}.af-report-summary{display:flex;gap:12px;font-size:11px;margin:17px 0 18px;color:#c6c7ca}.af-report-summary i{font-style:normal;color:var(--lime);font-weight:800;font-size:15px}.af-report-summary>span:last-child i{color:#ff655d}.af-report-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.af-report-tile{min-width:0;min-height:140px;background:#353535;border:1px solid #454545;border-radius:15px;padding:12px;display:flex;flex-direction:column}.af-report-tile.skipped{background:#332b2b;border-color:#614242}.af-report-tile-head{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:15px}.af-report-number{position:relative;display:grid;place-items:center;width:24px;height:24px;border:1px solid #65666a;border-radius:50%;font-size:11px;font-weight:750}.af-report-number i{position:absolute;right:-5px;top:-4px;width:13px;height:13px;display:grid;place-items:center;border-radius:50%;background:#141414;border:1px solid currentColor;color:var(--lime)}.af-report-number .skip{color:#ff655d}.af-report-number svg{width:9px;height:9px}.af-report-effort{border-radius:9px;background:#4b4b4b;padding:5px 6px;white-space:nowrap;font-size:12px;font-weight:700}.af-report-effort small{font-size:9px;color:#bcc0c6;font-weight:400}.af-report-name{font-size:12px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.af-report-skipped{color:#eeaaa5;font-size:9px}.af-bubble .af-report-reason{font-size:10px;color:#d7b7b4;margin:8px 0 0;line-height:1.4}.af-report-weights{border-top:1px solid #ffffff12;margin-top:12px;padding-top:10px}.af-report-weight{display:grid;grid-template-columns:1fr;gap:3px;margin-bottom:9px}.af-report-weight:last-child{margin-bottom:0}.af-report-weight>small{font-size:9px;color:#b1b5bd}.af-report-weight b{font-size:13px;font-weight:700}.af-report-weight span,.af-report-no-weight{font-size:9px;line-height:1.35;color:#afb4bd}.af-report-weight .up{color:var(--lime)}.af-report-weight .down{color:#ff655d}.af-report-no-weight{display:block}

.af-message.is-report.mine .af-bubble{background:#292929;border:1px solid #363636}

.af-report-video{font-size:11px;gap:7px;flex-wrap:wrap;margin:8px 0;padding:0;text-align:left;width:100%}.af-report-no-video{display:block;font-size:10px;color:#a3a3a3;margin-top:8px}

.af-client-event{min-width:0;width:100%;box-sizing:border-box}.af-client-event h3{margin:0 0 8px;font-size:17px}.af-client-event>small{color:#a4a4a4;font-size:11px}.af-chat-weight-chart{height:200px;background:#000;border-radius:14px;overflow:hidden}.af-chat-measurements{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px;margin-top:16px;background:#000;border-radius:14px;padding:14px 8px}.af-chat-measurements .body-measurement-ring{width:100%;max-width:76px}.af-chat-measurements .body-measurement-value strong{font-size:25px}.af-message:has(.af-client-event) .af-bubble{width:min(100%,520px)}

.af-incoming-chat-notice{position:fixed;z-index:10000;top:calc(8px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);width:min(360px,calc(100% - 32px));box-sizing:border-box;display:grid;gap:4px;padding:12px 16px;border:1px solid #ffffff18;border-radius:18px;background:#171719f2;color:white;text-align:left;box-shadow:0 8px 24px #0006}.af-incoming-chat-notice b{font-size:13px}.af-incoming-chat-notice span{font-size:11px;color:#a4a8af}

.af-trainer-actual-sets{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:12px;font-size:12px}.af-trainer-actual-sets small{width:100%;color:var(--muted);font-size:10px}

/* Reserve a separate row above chat contacts for connectivity status. */
body.af-chat-open.app-offline .app{padding-top:0}
body.af-chat-open.app-offline .af-chat-header{padding-top:calc(32px + env(safe-area-inset-top))}
body.af-workout-chat.app-offline .af-chat-header{padding-top:calc(76px + env(safe-area-inset-top))}
body.af-workout-chat.app-offline .af-workout-chat-title,body.af-workout-chat.app-offline .af-chat-back{top:calc(32px + env(safe-area-inset-top))}

/* Trainer typography follows the native system-font sizes and weights. */
#about{font-family:-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-synthesis:none}
#about>.af-trainer-navigation button{font-size:13px;font-weight:400;font-style:normal}
#about .trainer-profile-identity{grid-template-columns:98px minmax(0,1fr);gap:16px}
#about .trainer-profile-avatar{width:98px;height:98px}
#about .trainer-profile-identity .profile-identity-info h2{font-size:23px;font-weight:900;letter-spacing:-.7px;margin-bottom:14px}
#about .profile-identity-subscription>span{font-size:12px;font-weight:700;color:#8d95a3}

.af-trainer-round-rest{display:block;margin:0 auto 14px;border:0;background:none;color:var(--muted);font-size:9px;min-height:32px}

.af-video-editor{width:100%;max-width:520px;margin:4px auto 12px;display:grid;gap:10px}.af-video-editor-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:40px;color:#bbb;font-size:12px;font-variant-numeric:tabular-nums}.af-video-editor-toolbar b{font-weight:500}.af-video-editor button{display:grid;place-items:center;background:#202020;color:#fff;border:0;padding:0}.af-video-editor svg{width:20px;height:20px}.af-video-editor #afVideoMute{width:40px;height:40px;border-radius:50%}.af-video-editor #afVideoMute[aria-pressed=true]{color:var(--lime)}.af-video-timeline-row{display:flex;align-items:center;gap:8px;min-width:0}.af-video-editor #afVideoPreviewPlay{width:40px;height:54px;flex:0 0 40px;border-radius:9px}.af-video-filmstrip{position:relative;flex:1;min-width:60px;height:54px;background:#292929;border-radius:5px;isolation:isolate;user-select:none;-webkit-user-select:none}.af-video-filmstrip canvas{position:absolute;left:18px;top:3px;width:calc(100% - 36px);height:48px;object-fit:fill}.af-trim-shade{position:absolute;top:3px;bottom:3px;background:#0009;pointer-events:none}.af-trim-shade-left{left:18px}.af-trim-selection{position:absolute;top:0;bottom:0;border:3px solid var(--lime);border-radius:5px;pointer-events:none;box-sizing:border-box}.af-video-editor .af-trim-handle{position:absolute;top:0;height:54px;width:18px;border-radius:4px;background:var(--lime);color:#000;font-size:27px;line-height:1;font-weight:600;touch-action:none;cursor:ew-resize;z-index:2}.af-trim-handle::before{content:"";position:absolute;inset:-3px -11px}.af-video-editor button:disabled{opacity:.5;cursor:default}

.af-delete-recording{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;padding:0;background:#000;color:#ff4c39;border:1px solid #ff4c39;border-radius:15px}.af-delete-recording svg{width:20px;height:20px}.af-record-buttons button:disabled{opacity:.5;cursor:wait}

.af-assigned-alternatives{display:flex;gap:8px}.af-assigned-alternative{position:relative;flex:0 1 112px;width:112px;height:86px;padding:0;background:#fff;border:1px solid #303030;border-radius:13px;overflow:hidden}.af-alternative-preview{display:block;width:100%;height:100%;object-fit:contain;background:white;pointer-events:none}.af-choice-error{color:#ff4c39;font-size:12px;margin:6px 0 0}.af-choice-error:empty{display:none}.af-alternative-editor{padding:16px 0 0;background:transparent;border:0;border-top:1px solid #292b2f;border-radius:0;margin:0}.af-assigned-alternatives{margin:10px 0}.af-assigned-alternative>button{position:absolute;right:3px;top:3px;background:#000d;border:0;border-radius:50%;color:#ff4c39;width:28px;height:28px;padding:0;font-size:20px}.af-choice-hint{font-size:12px;color:var(--lime)}





.af-alternative-control{position:absolute;top:10px;left:12px;right:12px;min-height:36px;color:#000;text-align:center}
.af-alternative-segments{display:inline-flex;align-items:center;width:248px;max-width:100%;padding:3px;box-sizing:border-box;border:1px solid #000;border-radius:999px;background:#fff}
.af-alternative-segments button{flex:1;min-width:0;height:26px;padding:0 8px;border:0;border-radius:999px;background:transparent;color:#000;font-family:inherit;font-size:11px;font-weight:600;white-space:nowrap}
.af-alternative-segments button.active{background:#000;color:#fff}
.af-alternative-control button:disabled{opacity:.4}
.af-alternative-control .af-choice-error{background:white;border-radius:8px;padding:4px;font-size:11px}
.af-alternative-control .af-choice-error:empty{display:none}

.af-trainer-search-toggle .trainer-client-avatar{width:60px!important;height:60px!important;min-width:60px;flex-basis:60px;border:2px solid #333!important;background:#171717!important;background-clip:padding-box;color:#fff!important}.af-trainer-search-toggle .trainer-client-avatar svg{width:27px;height:27px;stroke:#fff!important}.af-search-avatar{background:#171717!important;color:#fff!important;border:0!important}.af-search-avatar svg{stroke:#fff!important}

.af-trainer-search-results:empty{display:none}.af-trainer-search{margin:26px 0 16px}.af-trainer-search>svg{flex:0 0 18px}.af-trainer-search:not(:has(+.af-trainer-search-results:not(:empty))){margin-bottom:26px}.af-trainer-wheel{padding:29px 0 26px;min-height:166px}.af-trainer-search-results{padding-top:3px;min-height:114px}.af-trainer-avatar{align-self:flex-start}

.af-trainer-header>.af-trainer-menu-toggle{margin-right:8px;display:grid;place-items:center;border:1px solid #303030;border-radius:50%;background:#171717}.af-trainer-menu-toggle svg{width:19px;height:19px}
.af-trainer-menu{position:fixed;inset:auto;margin:0;width:min(292px,calc(100vw - 36px));height:auto;max-height:calc(100dvh - 28px);padding:0;border:1px solid #363636;border-radius:18px;background:#171717;overflow:auto;box-shadow:0 10px 35px #0005}.af-trainer-menu::backdrop{background:rgba(0,0,0,.08);backdrop-filter:none;-webkit-backdrop-filter:none}.af-trainer-menu>header{display:none}.af-trainer-menu>.af-full-sheet-content{padding:12px}.af-trainer-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.af-trainer-menu-grid>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:92px;border:1px solid #373737;border-radius:12px;background:#1b1b1b;color:#fff;padding:10px 6px;font:500 13px/1.3 -apple-system,BlinkMacSystemFont,system-ui,sans-serif;text-align:center}.af-trainer-menu-grid>button svg{width:25px;height:25px;color:var(--lime);flex-shrink:0}.af-trainer-menu-grid>.af-trainer-menu-invite{grid-column:1/-1;flex-direction:row;min-height:48px;gap:10px}.af-trainer-menu-grid>button:hover{background:#292929}

.af-message:has(.af-metric-event) .af-bubble{width:340px;max-width:calc(100% - 35px);padding:14px 16px;background:#292929;border:1px solid #414141;border-radius:22px}.af-metric-event{width:100%;min-width:0}.af-metric-heading{display:flex;align-items:center;gap:9px;margin-bottom:14px}.af-metric-heading>span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:var(--lime);color:#000}.af-metric-heading svg{width:18px;height:18px}.af-metric-heading>div{display:grid;gap:3px}.af-metric-heading b{font-size:10px;line-height:1.3;letter-spacing:1px;color:#b4b6bc}.af-metric-heading small{font-size:10px;color:#92959d}.af-metric-current{font-size:36px;font-weight:800;line-height:1.1;letter-spacing:-1px;overflow-wrap:normal}.af-metric-current small{font-size:18px;font-weight:600;letter-spacing:0;color:#adb0b8}.af-metric-comparison{display:flex;align-items:center;gap:14px;min-height:35px;margin-top:12px}.af-metric-before{display:grid;gap:3px}.af-metric-before small,.af-metric-comparison>small{font-size:11px;color:#adb0b8}.af-metric-before b{font-size:14px}.af-metric-divider{width:1px;height:28px;background:#484848}.af-metric-delta{font-size:17px;font-weight:700;white-space:nowrap}.af-metric-delta.decreased{color:var(--lime)}.af-metric-delta.increased{color:#ff655d}.af-metric-delta.unchanged{color:#adb0b8}.af-metric-units{display:block;font-size:11px;color:#adb0b8;margin-bottom:10px}.af-metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:0}.af-metric-row{display:flex;box-sizing:border-box;flex-direction:column;gap:5px;align-items:flex-start;justify-content:center;min-width:0;min-height:64px;padding:10px 8px 10px 0;border-bottom:1px solid #414141}.af-metric-row>b{min-width:0;max-width:100%;font-size:11px;line-height:1.2;font-weight:500;color:#adb0b8;overflow-wrap:anywhere}.af-metric-value{display:flex;align-items:baseline;gap:5px;min-width:0;max-width:100%;flex-wrap:wrap}.af-metric-reading{font-size:20px;font-weight:700;line-height:1.2;white-space:nowrap}.af-metric-value>.af-metric-delta{font-size:11px}.af-metric-first{color:#999ca4;font-size:11px}.af-metric-view{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:44px;margin-top:14px;padding:8px 12px;border:1px solid #414141;border-radius:18px;background:#333;color:#fff;font-family:inherit;font-size:14px;font-weight:600}.af-metric-view svg{width:14px;height:14px;transform:rotate(180deg)}.af-full-sheet.af-metric-sheet{position:fixed;width:min(560px,calc(100vw - 28px));height:fit-content;max-height:80dvh;inset:0;margin:auto;padding:18px;border:1px solid #303030;border-radius:24px;background:#000;overflow:auto}.af-metric-sheet>header{margin-bottom:14px}.af-metric-sheet .af-chat-measurements{font-size:12px}.af-chat-photo-preview{display:block;width:100%;max-height:60dvh;object-fit:contain;margin:0 auto 16px}.af-chat-input-row>.af-chat-attach{flex:0 0 44px;width:44px;height:44px;padding:8px;border-radius:50%;background:#fff;color:#000}

/* One compact attachment menu; each action opens only its selected system picker. */
.af-attachment-sheet{inset:auto 0 calc(150px + env(safe-area-inset-bottom));margin:0 auto;width:min(320px,calc(100% - 28px));height:auto;max-height:50dvh;padding:6px;border:1px solid #303030;border-radius:18px;background:#171717}.af-attachment-sheet>header{display:none}.af-attachment-options{display:grid;gap:0}.af-attachment-options>button{display:flex;align-items:center;gap:12px;min-height:48px;border:0;border-bottom:1px solid #ffffff0d;background:none;color:#fff;font:inherit;font-size:15px;text-align:left;padding:8px 12px}.af-attachment-options>button:last-child{border:0}.af-attachment-options svg{width:22px;height:22px;color:#fff;flex-shrink:0}
.af-chat-attach svg{width:28px!important;height:28px!important}.af-photo-loading{min-height:180px;display:grid;place-items:center;color:#8d95a3;font-size:14px}.af-chat-photo-preview[hidden]{display:none}

.af-photo-link{display:flex;align-items:center;gap:10px;width:260px;max-width:100%;min-height:52px;padding:4px 0;margin:0;border:0;background:none;color:#fff;text-align:left;box-sizing:border-box}.af-photo-symbol{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:var(--lime);color:#000}.af-photo-symbol svg{width:20px;height:20px}.af-photo-copy{display:grid;gap:4px;flex:1;min-width:0}.af-photo-copy b{font-size:13px;font-weight:600;line-height:1.3}.af-photo-copy small{font-size:11px;color:#adb0b8;line-height:1.3}.af-photo-chevron{flex:0 0 14px;color:#adb0b8}.af-photo-chevron svg{display:block;width:14px;height:14px;transform:rotate(180deg)}.af-photo-loading[hidden]{display:none}.af-full-sheet.af-chat-media-viewer{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:#000;overflow:hidden;overscroll-behavior:none}.af-chat-media-viewer>header{position:absolute;z-index:4;inset:calc(12px + env(safe-area-inset-top)) 14px auto;max-width:none;height:44px;margin:0;pointer-events:none}.af-chat-media-viewer>header>button{pointer-events:auto;width:44px;height:44px;padding:12px;border-radius:50%;background:#202020dd;color:white;right:0}.af-chat-media-viewer>header>.af-viewer-back{right:auto;left:0}.af-chat-media-viewer>.af-full-sheet-content{position:absolute;inset:0;max-width:none;width:100%;height:100%;margin:0;display:grid;place-items:center;overflow:hidden}.af-chat-media-viewer .af-chat-photo-preview,.af-chat-view-video{width:100%;height:100%;max-width:100vw;max-height:100vh;max-height:100dvh;object-fit:contain;margin:0;padding:0;position:absolute;inset:0}.af-chat-media-viewer .af-photo-loading{z-index:2;position:absolute;inset:0;pointer-events:none}.af-viewer-bottom{position:absolute;bottom:calc(18px + env(safe-area-inset-bottom));left:14px;right:14px;z-index:3;display:flex;flex-direction:column;align-items:center;gap:8px}.af-viewer-controls{display:flex;align-items:center;gap:20px;width:min(680px,100%);min-height:60px;padding:14px 20px;border:1px solid #ffffff24;border-radius:40px;background:#202020e8;box-sizing:border-box}.af-viewer-controls>button,.af-viewer-collapse{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;padding:0;border:0;background:none;color:#fff}.af-viewer-controls svg{width:23px;height:23px}.af-viewer-controls>input{appearance:none;-webkit-appearance:none;flex:1;min-width:0;width:100%;height:6px;margin:0;padding:0;border:0;border-radius:999px;background:linear-gradient(to right,#fff var(--played,0%),#55565b var(--played,0%));accent-color:#fff}.af-viewer-controls>input::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:24px;height:24px;border:0;border-radius:50%;background:#fff}.af-viewer-controls>input::-moz-range-thumb{width:24px;height:24px;border:0;border-radius:50%;background:#fff}.af-viewer-collapse{background:#202020e8;border:1px solid #ffffff24;border-radius:50%}.af-viewer-collapse svg{width:18px;height:18px;transform:rotate(-90deg)}.is-collapsed>.af-viewer-collapse svg{transform:rotate(90deg)}.af-viewer-bottom.is-collapsed>.af-viewer-controls{display:none}.af-chat-media-viewer .af-media-send{position:absolute;bottom:calc(110px + env(safe-area-inset-bottom));right:20px;z-index:3}.af-camera-still{display:grid;place-items:center;width:44px;height:44px;padding:10px;margin-left:20px;border:0;border-radius:50%;background:#fff;color:#000}.af-camera-still svg{width:24px;height:24px}

/* Soft inset cells inside equal-height superset and triset tiles. */
.af-program-flow-linear{touch-action:pan-y;--tile-height:max(56px,calc(var(--flow-rows)*26px))}
.af-program-flow-linear .af-program-flow-track{display:grid!important;grid-template-columns:repeat(var(--flow-columns),minmax(0,1fr));gap:min(6px,calc(100% / var(--flow-columns) / 10))!important;align-items:start;min-height:var(--tile-height)!important}
.af-program-flow-linear .af-program-flow-block{display:flex;flex-direction:column;min-width:0;width:100%;align-items:stretch}
.af-program-flow-linear .af-program-flow-members{position:relative;display:grid;grid-template-rows:repeat(var(--member-count),minmax(0,1fr));gap:0!important;width:100%;height:var(--tile-height);border:0;border-radius:14px;background:#070907;box-shadow:none;overflow:hidden;box-sizing:border-box}
.af-program-flow-linear .af-program-flow-node{width:100%!important;height:100%!important;position:relative;padding:0!important;box-sizing:border-box;font-size:clamp(8px,calc(var(--node-size)*.30),16px)!important}
.af-program-flow-linear .af-program-flow-node>span{position:absolute;inset:4px;width:auto;height:auto;border:0;border-radius:8px;background:#080a07;box-shadow:none;--af-surface-edge:linear-gradient(to bottom,#1d2517,#151b11 15%)}
.af-program-flow-linear .af-program-flow-node.active>span{background:var(--lime);color:#071000;box-shadow:0 0 0 4px #1f2e06;--af-surface-edge:linear-gradient(var(--lime),var(--lime))}
.af-program-flow-linear .af-program-flow-node+.af-program-flow-node::after{content:"";position:absolute;left:0;right:0;top:-0.5px;height:1px;background:#10150e;pointer-events:none}
.af-program-flow-linear .af-program-flow-members:has(.af-program-flow-node.active){box-shadow:0 0 9px #23360066}
.af-program-flow-linear .af-flow-status{margin:0;padding:0;box-sizing:border-box;pointer-events:none}

.af-program-flow-linear .af-program-flow-node{color:#fff!important}
.af-program-flow-linear .af-program-flow-node.active{color:#071000!important}
@media(min-width:800px){.af-program-flow-linear{--tile-height:max(64px,calc(var(--flow-rows)*26px))}}

/* Shared day selector and fixed four-scheme window for both workout views. */
:is(#workouts,#about) .gf-day-switcher{display:flex!important;width:100%!important;max-width:none!important;gap:8px!important;margin:0 0 12px!important;padding:0!important;justify-content:stretch!important;border:0!important;box-sizing:border-box}
:is(#workouts,#about) .gf-day-switcher>button{position:relative;isolation:isolate;flex:1 0 0!important;min-width:0!important;min-height:36px!important;padding:6px!important;border:0!important;border-radius:14px!important;background:#070907!important;box-shadow:none;color:#fff!important;font-size:13px!important}
:is(#workouts,#about) .gf-day-switcher>button:after{content:"";position:absolute;inset:4px;border:1px solid transparent;border-radius:10px;background:linear-gradient(#080a07,#080a07) padding-box,linear-gradient(to bottom,#1d2517,#151b11 15%) border-box;box-shadow:none;pointer-events:none;z-index:-1}
:is(#workouts,#about) .gf-day-switcher>button.active{color:#071000!important;box-shadow:0 0 9px #23360066}
:is(#workouts,#about) .gf-day-switcher>button.active:after{background:linear-gradient(var(--lime),var(--lime)) padding-box,linear-gradient(var(--lime),var(--lime)) border-box;box-shadow:0 0 0 4px #1f2e06}
/* Match native strokeBorder: contours overlay the surface and never consume layout space. */
.af-program-flow-linear .af-program-flow-members::before,:is(#workouts,#about) .gf-day-switcher>button::before,.af-program-flow-linear .af-program-flow-node>span::before{content:"";position:absolute;inset:0;box-sizing:border-box;padding:1px;border-radius:inherit;background:var(--af-surface-edge,linear-gradient(to bottom,#1a2016,#10150e 15%));pointer-events:none;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude}
.af-program-flow-linear .af-program-flow-members::before{z-index:2}
:is(#workouts,#about) .af-program-flow-linear{margin-top:0!important}
.af-workset-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.af-workset-heading h3{font-size:14px!important;font-weight:600;color:#fff;margin:0!important;text-transform:none!important;letter-spacing:0!important;min-width:0}.af-workset-heading nav{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;flex-shrink:0}.af-workset-heading nav button{width:26px;height:28px;padding:0;border:1px solid #303236;border-radius:8px;background:#000;color:#fff;font-size:22px}.af-workset-heading button:disabled{opacity:.3}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window [data-workset-column][hidden]{display:none!important}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .gf-worksets-table-wrap,:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-worksets-scroll{position:relative;isolation:isolate;overflow:hidden;border:1px solid #303236;border-radius:14px;background:#000;box-sizing:border-box}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .gf-worksets-table{width:100%!important;table-layout:fixed;border-collapse:collapse;min-width:0!important;margin:0!important}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .gf-worksets-table th,:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .gf-worksets-table td{height:37px!important;font-size:11px!important;padding:0 4px!important;text-align:center!important;vertical-align:middle;border:0;border-right:1px solid #303236;border-bottom:1px solid #303236;box-sizing:border-box}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .gf-worksets-table th:first-child{position:static;z-index:auto;width:40%!important;color:#fff!important;line-height:1.15;font-weight:600}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .gf-worksets-table tr:last-child>*{border-bottom:0}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .gf-worksets-table tr:last-child>th{color:var(--lime)!important}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-grid{display:flex;width:100%!important;min-width:0!important;--af-set-row-height:37px}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-column{width:0!important;flex:1 1 0!important;min-width:0;border-left:1px solid #303236;font-size:11px;text-align:center}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-labels{width:40%;flex:0 0 40%;font-size:11px;color:#fff;font-weight:600}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window :is(.af-trainer-set-column,.af-trainer-set-labels){display:grid!important;grid-template-rows:repeat(4,var(--af-set-row-height));align-content:start;min-height:0}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-column>div,:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-labels>div{height:var(--af-set-row-height)!important;min-height:0!important;max-height:var(--af-set-row-height)!important;box-sizing:border-box;display:flex;align-items:center;justify-content:center!important;border-bottom:1px solid #303236;padding:0 4px;line-height:1.15}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-labels>div:last-child{color:var(--lime)}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-column>div:last-child,:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-labels>div:last-child{border-bottom:0}
/* Editing is opened from the cell; its overlay hint does not affect layout. */
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-column>div{position:relative;height:37px!important}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-set-labels>div:nth-child(2){height:37px!important}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-weight-cell{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:center;border-radius:0}
:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-estimate{position:absolute;right:6px;bottom:4px;margin:0;padding:0;border:0;background:#000;color:var(--lime);font-size:10px;line-height:12px;height:12px;white-space:nowrap}

/* The focused trainer editor uses the same weight controls as the workout editor. */
dialog.af-weight-cell-editor{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0 20px 28px;border:0;border-radius:0;box-sizing:border-box;background:#000;color:#fff;overflow-y:auto}
.af-weight-cell-editor::before{display:none}
.af-weight-cell-editor>header{display:grid;align-items:center;text-align:center;max-width:536px;margin:0 auto 20px}
.af-weight-cell-editor>form{max-width:520px;margin:0 auto}
.af-weight-cell-editor .af-weight-cell-row{display:grid;grid-template-columns:86px minmax(0,1fr);align-items:center;gap:12px;padding:10px 18px;min-height:72px;box-sizing:border-box;border:1px solid #303236;border-radius:36px}
.af-weight-cell-row>span{color:var(--lime);text-align:center;font-size:15px;font-weight:800}
.af-weight-cell-editor .af-weight-cell-save{display:block;margin:24px auto 0;min-height:44px;padding:0 16px;border:0;background:none;color:var(--lime);font-size:16px;font-weight:800}
.af-weight-cell-editor button:disabled{opacity:.4}
@media(max-width:767px){:is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window .af-trainer-estimate{font-size:7.5px;line-height:9px;height:9px}}

/* Variant 08: individual action buttons, without a surrounding panel. */
.af-trainer-exercise-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px;border:0;padding:0}
:is(.af-trainer-exercise-actions,.af-exercise-edit-delete) button{justify-content:center;min-height:48px;padding:10px 14px;border:1px solid #303236;border-radius:14px;text-align:center;font-size:14px;line-height:1.25}
.af-trainer-exercise-actions button:nth-child(-n+2){grid-column:1/-1}
.af-trainer-exercise-actions button:first-child{background:var(--lime);color:#071000;border-color:var(--lime)}
.af-trainer-exercise-actions button:nth-child(2){color:var(--lime);border-color:var(--lime)}
:is(.af-trainer-exercise-actions,.af-exercise-edit-delete) button.af-destructive{border:1px solid #303236;color:#ff453a}
.af-exercise-edit-delete button i,.af-trainer-exercise-actions button i,.af-trainer-exercise-actions button:first-child i{display:grid;place-items:center;flex:0 0 18px;width:18px;height:18px;border-radius:0;background:none;color:inherit}
:is(.af-trainer-exercise-actions,.af-exercise-edit-delete) i svg{width:18px;height:18px}
.af-trainer-exercise-actions button>span{display:none}
.af-trainer-program-actions{display:grid;gap:10px;margin-top:23px;padding:0;border:0}
.af-trainer-program-actions button,.af-trainer-program-actions button:last-child{min-height:48px;padding:10px 14px;border:1px solid #303236;border-radius:14px;text-align:center;font-size:14px;font-weight:700}
.af-trainer-program-actions button:first-child{color:var(--lime);border-color:var(--lime)}
@media(min-width:800px){.af-trainer-exercise-actions button,.af-trainer-program-actions button,.af-trainer-program-actions button:last-child{min-height:52px;font-size:15px}}

/* Mobile spacing above working sets; progress coach remains independent. */
@media(max-width:799px){
 .af-workout-layout{gap:14px}
 .af-workout-main-actions{padding-bottom:7px}
 .af-trainer-worksets{margin-top:10px}
 #workouts .af-completion-actions{margin-bottom:0}
 #workouts .gf-worksets{padding-top:0}
 /* WorkoutSetTable uses one 12px gap, not grid gap plus heading margin. */
 :is(#workouts,#about) .gf-worksets.af-workset-window{gap:0}
 :is(#workouts,#about,.trainer-template-preview-sheet) .af-workset-window>.af-workset-heading{margin-bottom:12px}
 /* Match the native 28px spacer, or the coach's own 8px vertical padding. */
 :is(#workouts,#about) .af-workout-data-column>.af-native-progress{margin-top:28px}
 :is(#workouts,#about) .af-workout-data-column>.af-weight-coach{margin:0;padding:8px 0}
 :is(#workouts,#about) .af-workout-data-column>.af-weight-coach+.af-native-progress{margin-top:0}
}

/* Match the visible space below the player (26px margin + 8px icon padding). */
:is(#workouts,#about) .af-program-flow-linear{margin-bottom:34px!important}

/* Expanded exercise video uses the native iOS overlay layout. */
.af-full-sheet.af-video-sheet{padding:0;width:100%;height:100dvh;max-width:none;max-height:100dvh;overflow:hidden;background:#fff;color:#000}
.af-video-sheet>.af-full-sheet-content{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;padding:0}
.af-video-sheet .af-expanded-video{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:hidden;background:#fff}
.af-video-sheet .af-expanded-video>video{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;aspect-ratio:auto;object-fit:contain;touch-action:none;transform-origin:center}
.af-video-sheet>header{position:absolute;z-index:4;top:calc(18px + env(safe-area-inset-top));left:calc(18px + env(safe-area-inset-left));right:calc(18px + env(safe-area-inset-right));max-width:none;height:44px;min-height:44px;margin:0;padding:0;pointer-events:none}
.af-video-sheet>header>button{position:absolute;right:0;top:0;display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:rgba(222,222,222,.88);color:#000;pointer-events:auto}
.af-video-sheet>header>button svg{position:absolute;left:50%;top:50%;display:block;width:24px;height:24px;margin:0;transform:translate(-50%,-50%)}
.af-video-sheet .af-expanded-controls{position:absolute;z-index:3;left:calc(18px + env(safe-area-inset-left));bottom:calc(18px + env(safe-area-inset-bottom));display:flex;justify-content:flex-start;align-items:center;gap:9px;margin:0;padding:0}
.af-video-sheet .af-expanded-controls>button{display:grid;place-items:center;flex:0 0 58px;box-sizing:border-box;width:58px;height:58px;min-height:58px;margin:0;padding:0;border:0;border-radius:50%;background:rgba(222,222,222,.88);color:#000;font-size:17px;line-height:1}
.af-video-sheet .af-expanded-controls>button:first-child{background:rgba(255,255,255,.88)}
.af-video-sheet .af-expanded-controls svg{display:block;width:22px;height:22px}
.af-video-sheet .af-expanded-controls>button:first-child svg{width:17px;height:17px}

.af-video-sheet>header>button:is(:focus,:focus-visible,:active){background:rgba(222,222,222,.88);outline:none;box-shadow:none}

/* Weight entry variant 07, with edge-to-edge selected increment. */
.exercise-weight-editor .exercise-weight-step-select{display:block;margin:20px 0 22px;padding:0;border:0}
.exercise-weight-step-select>span{display:block;margin-bottom:12px}
.af-weight-step-segments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0;border:1px solid #303236;border-radius:14px;overflow:hidden}
.af-weight-step-segments>button{min-width:0;min-height:44px;margin:0;padding:8px 2px;border:0;border-right:1px solid #303236;border-radius:0;background:#000;color:white;font-family:inherit;font-size:14px;font-weight:600;line-height:1.2;box-shadow:none}
.af-weight-step-segments>button:last-child{border-right:0}
.af-weight-step-segments>button.active{background:var(--lime);color:#071000}
.exercise-weight-editor .set-row,.af-weight-cell-editor .af-weight-cell-row{border-radius:14px!important}
.exercise-weight-editor #ewSaveBtn,.af-weight-cell-editor .af-weight-cell-save{display:block!important;width:100%!important;min-height:48px!important;margin:24px 0 0!important;padding:10px 14px!important;border:1px solid var(--lime)!important;border-radius:14px!important;background:#000!important;color:var(--lime)!important;font-size:16px!important;text-align:center}

.exercise-weight-editor .af-weight-back,.exercise-weight-editor .af-weight-back:is(:focus,:focus-visible){display:grid;place-items:center;padding:0;border:0;border-radius:0;background:none;color:#fff}

/* Match native weight-entry geometry; override legacy profile/date and row styles. */
.exercise-weight-editor .af-sheet-date>span{margin:0}
.exercise-weight-editor .af-sheet-date>.af-weight-date-icon{display:grid;place-items:center;align-self:center;box-sizing:border-box;width:48px;height:48px;margin:0;padding:0;color:#9aa1ac;line-height:0}
.exercise-weight-editor .af-weight-date-icon>svg{position:static;display:block;width:24px;height:24px;margin:0;padding:0;transform:none}
.exercise-weight-editor .af-sheet-date>.af-weight-date-chevron{margin:0;padding-right:14px;justify-self:center}
.exercise-weight-editor .trainer-weight-row{display:grid!important;grid-template-columns:86px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;box-sizing:border-box;min-height:72px!important;margin:0!important;padding:10px 18px!important;border:1px solid #303236!important;border-radius:14px!important;background:#000!important}
.exercise-weight-editor .trainer-weight-plan{width:86px!important;min-width:0!important;text-align:center!important}
.exercise-weight-editor .trainer-weight-plan>span{color:var(--lime)!important;font-size:15px!important;line-height:1.2!important;font-weight:800!important}
.exercise-weight-editor #setsBox{display:grid;gap:10px}

.exercise-weight-editor .af-sheet-date input[type=date]{color:#fff!important;-webkit-text-fill-color:#fff;box-shadow:none!important;overflow:hidden}
.exercise-weight-editor .af-sheet-date input[type=date]::-webkit-datetime-edit{color:#fff;background:transparent;padding:0}
.exercise-weight-editor .af-sheet-date input[type=date]::-webkit-calendar-picker-indicator{display:none}

/* Body metric entry shares the exercise-weight editor visual system, without steps. */
.af-metric-editor.weight-edge-form,.af-metric-editor.body-measurements-modal{position:fixed;inset:0;z-index:1200;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;padding:0 max(20px,calc((100vw - 520px)/2)) 28px;box-sizing:border-box;overflow-y:auto;transform:none;border:0;border-radius:0;background:#000;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;color:#fff}
.af-metric-editor::before{display:none}
.af-metric-editor .weight-edge-form-head,.af-metric-editor .body-measurements-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:center;height:64px;min-height:64px;margin:0 0 20px;padding:0;background:#000}
.af-metric-editor .weight-edge-form-head b,.af-metric-editor .body-measurements-modal-head b{font-size:17px!important;font-weight:600;letter-spacing:0;text-align:center}
.af-metric-editor .weight-edge-form-head span,.af-metric-editor .body-measurements-modal-head span{display:none}
.af-metric-editor .weight-edge-form-actions,.af-metric-editor .body-measurements-modal-actions{position:absolute;left:0;top:10px;margin:0}
.af-metric-editor .af-metric-back{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:0;background:none;color:white}
.af-metric-back svg{width:20px;height:20px}
.af-metric-editor>.af-sheet-date{min-height:72px;box-sizing:border-box;margin:0 0 20px;padding:11px 38px 11px 70px;border:1px solid #303236;border-radius:999px;background:#000}
.af-metric-editor .af-sheet-date input{width:max-content;max-width:100%;height:30px;min-height:30px;margin:0;padding:3px 8px;border:0;border-radius:16px;background:#1c1c1e;color:white;-webkit-text-fill-color:white;font-size:15px!important}
.af-metric-editor .weight-edge-form-fields{display:block;margin:0;padding:0}
.af-metric-editor .body-measurement-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.af-metric-editor .body-measurement-field:last-child:nth-child(odd){grid-column:1/-1;width:100%}
.af-metric-editor .weight-edge-input-wrap,.af-metric-editor .body-measurement-field>div{position:relative;display:block}
.af-metric-editor .weight-edge-form-fields label>span:first-child,.af-metric-editor .body-measurement-field>span{display:block;margin:0 0 5px;color:#8d95a3;font-size:10px;font-weight:700}
.af-metric-editor .weight-edge-form-fields .input,.af-metric-editor .body-measurement-field .input{box-sizing:border-box;width:100%;height:66px;min-height:66px;margin:0;padding:0 38px 0 16px;border:1px solid #303236;border-radius:14px;background:#000;color:#fff;font-size:19px!important;font-weight:600;box-shadow:none}
.af-metric-editor .weight-edge-input-wrap small,.af-metric-editor .body-measurement-field small{position:absolute;right:16px;top:50%;transform:translateY(-50%);color:#8d95a3;font-size:11px}
.af-metric-editor .weight-edge-save,.af-metric-editor .body-measurements-save{display:block;width:100%;min-height:48px;margin:20px 0 0;padding:10px 14px;border:1px solid var(--lime);border-radius:14px;background:#000;color:var(--lime);font-size:16px;font-weight:800;text-align:center}

@media(max-width:799px){.af-chat-header>.af-workout-chat-title{display:none!important}}

/* Measurement entry is an opaque full-screen page, never a translucent popup. */
body:has(.body-measurements-add[open]){overflow:hidden;overscroll-behavior:none}
body:has(.body-measurements-add[open]) .bottom{visibility:hidden;pointer-events:none}
.body-measurements-add[open]::before{background:#000;backdrop-filter:none;-webkit-backdrop-filter:none}
.af-metric-editor.body-measurements-modal{top:0;right:0;bottom:0;left:0;min-height:100dvh;border:0;border-radius:0;background:#000;isolation:isolate;overscroll-behavior:contain;padding-top:env(safe-area-inset-top);padding-bottom:calc(28px + env(safe-area-inset-bottom))}
.af-metric-editor .body-measurements-modal-head>div:first-child{width:100%;text-align:center}

/* Native MetricEditor dimensions, scoped to body measurements at every viewport. */
.af-metric-editor.body-measurements-modal{--metric-field-height:66px;--metric-field-radius:14px;--metric-gap:10px;font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",system-ui,sans-serif}
.af-metric-editor.body-measurements-modal .body-measurement-form-grid{gap:var(--metric-gap)}
.af-metric-editor.body-measurements-modal .body-measurement-field{margin:0;padding:0;min-width:0}
.af-metric-editor.body-measurements-modal .body-measurement-field>span{height:12px;line-height:12px;font-size:10px;font-weight:700;margin:0 0 5px;padding:0;color:#8d95a3}
.af-metric-editor.body-measurements-modal .body-measurement-field .input{height:var(--metric-field-height);min-height:var(--metric-field-height);border-radius:var(--metric-field-radius);padding:0 34px 0 16px;font-family:inherit;font-size:19px!important;font-weight:600;line-height:normal;letter-spacing:0;color:#fff}
.af-metric-editor.body-measurements-modal .body-measurement-field small{right:16px;font-family:inherit;font-size:11px;font-weight:900;line-height:normal;color:#8d95a3}
.af-metric-editor.body-measurements-modal>.af-sheet-date{display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;min-height:72px;padding:11px 38px 11px 70px;border-radius:999px;border:1px solid #303236;margin-bottom:20px;background:#000}
.af-metric-editor.body-measurements-modal>.af-sheet-date>span{padding:0;margin:0 0 8px;font-family:inherit;font-size:10px;font-weight:800;line-height:12px;color:#8d95a3}
.af-metric-editor.body-measurements-modal>.af-sheet-date::before{width:48px;height:48px;left:10px;top:50%;transform:translateY(-50%);border-radius:50%;background-size:24px 24px}
.af-metric-editor.body-measurements-modal>.af-sheet-date::after{top:50%;transform:translateY(-50%) rotate(45deg);right:24px;width:8px;height:8px}
.af-metric-editor.body-measurements-modal>.af-sheet-date input{align-self:flex-start;box-sizing:border-box;height:30px;min-height:30px;padding:3px 8px;border-radius:16px;background:#1c1c1e;font-family:inherit;font-size:15px!important;line-height:24px;color:#fff}

/* Measurement instructions use the same opaque full-screen surface as exercise information. */
dialog.body-measurement-help-dialog{display:block;width:100%;height:100dvh;max-width:none;max-height:none;inset:0;margin:0;border:0;border-radius:0;padding:env(safe-area-inset-top) 20px calc(28px + env(safe-area-inset-bottom));background:#000;color:#fff;overflow:auto;box-shadow:none}
dialog.body-measurement-help-dialog:not([open]){display:none}
.body-measurement-help-dialog header{position:sticky;top:0;z-index:1;height:64px;min-height:64px;margin:0 auto 20px;background:#000}
.body-measurement-help-dialog header h2{padding:0 44px;text-align:center;font-size:17px;font-weight:600}
.body-measurement-help-dialog header .body-measurement-help-back{left:0;right:auto;top:10px;display:grid;place-items:center;width:44px;height:44px;padding:10px;border:0;border-radius:0;background:transparent;color:#fff;box-shadow:none}
.body-measurement-help-dialog header svg{width:24px;height:24px}
.body-measurement-help-dialog ol{margin:0;padding-left:24px}
.body-measurement-help-dialog li{padding-left:8px;margin-bottom:22px;font-size:15px;line-height:1.5}
.body-measurement-help-dialog li::marker{color:var(--lime);font-weight:700}
.body-measurement-help-dialog li b{color:#fff;font-weight:700}
.body-measurement-help-dialog li p{margin:8px 0 0;font-size:14px;line-height:1.6;color:#aeb4be}
.body-measurement-help-dialog .body-measurement-note{margin:0;padding-top:16px;border-top:1px solid #303236;color:#aeb4be;font-size:13px;line-height:1.6}

.af-exercise-edit-delete>button{display:flex;align-items:center;gap:10px;width:100%;background:#000;color:#fff;font-weight:700;box-sizing:border-box}
@media(min-width:800px){.af-exercise-edit-delete>button{min-height:52px;font-size:15px}}

/* The same buffered layer remains mounted in cards and fullscreen. */
.af-playback-layer{position:absolute;inset:0;bottom:var(--af-media-footer,0px);overflow:hidden;isolation:isolate;background:#fff}
.af-playback-layer>video,.af-playback-layer>.af-media-poster{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;margin:0;padding:0;box-sizing:border-box}
.af-playback-layer>video{z-index:1;opacity:0;transition:opacity .26s ease}
.af-playback-layer>video[data-af-ready="1"]{opacity:1}
.af-playback-layer>.af-media-poster{z-index:0;opacity:1;pointer-events:none;transition:opacity .26s ease}
.af-playback-layer[data-af-poster-hidden="1"]>.af-media-poster{opacity:0}
.af-media-controls,.af-alternative-control{z-index:3}
@media(min-width:800px){#workouts .af-media-square,.af-trainer-workout .af-media-square{--af-media-footer:64px}}
.af-video-sheet .af-expanded-video>.af-media-square{position:absolute;inset:0;width:100%;height:100%;max-width:none;aspect-ratio:auto;border-radius:0;padding:0!important;--af-media-footer:0px;display:block;z-index:0}
.af-video-sheet .af-media-square>:not(.af-playback-layer){display:none!important}
.af-video-sheet .af-playback-layer{bottom:0}

.af-metric-periods{display:flex;gap:8px;margin:0 0 12px}.af-metric-periods button{flex:1;min-height:36px;border:1px solid #303030;border-radius:12px;background:none;color:#8d95a3;font:inherit;font-size:12px}.af-metric-periods button.active{color:#000;background:var(--lime);border-color:var(--lime)}.af-metric-sheet .af-chat-weight-chart{height:180px;margin:0}.af-metric-sheet .af-chat-weight-chart canvas{width:100%!important;height:180px!important;min-width:0!important}.af-metric-sheet .af-chat-measurements{margin:0;padding:0;grid-template-columns:repeat(3,minmax(0,1fr))}

.af-message{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}.af-full-sheet.af-message-actions{position:fixed;inset:0;margin:auto;width:min(340px,calc(100vw - 32px));height:fit-content;max-height:80dvh;border:0;border-radius:22px;padding:0;background:transparent;overflow:auto;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.af-message-actions>header{display:none}.af-message-actions::backdrop{background:#0009;backdrop-filter:blur(5px)}.af-reaction-bar{display:flex;justify-content:space-around;padding:8px 6px;background:#292929;border:1px solid #ffffff16;border-radius:24px;margin-bottom:10px}.af-reaction-bar button,.af-reaction-more button{border:0;background:none;font-size:26px;min-height:40px;min-width:38px;padding:0;color:white}.af-reaction-more{display:grid;grid-template-columns:repeat(6,1fr);background:#242424;border-radius:20px;padding:8px;margin-bottom:10px}.af-reaction-more[hidden]{display:none}.af-message-actions .af-message-menu{border-radius:20px;overflow:hidden;background:#242424}.af-message-actions .af-message-menu button{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;min-height:48px;font-size:15px}.af-message-menu button svg{width:21px;height:21px}.af-message-menu .danger{color:#ff4c39}.af-emoji-chip{background:#a3ff1218;color:#fff;border:1px solid #ffffff20;border-radius:14px;padding:4px 8px;margin:5px 4px 0 0}.af-emoji-chip.mine{border-color:#a3ff1270}.af-pin-label{display:block;color:#a3ff12;font-size:10px;margin:4px 0}.af-selected-message .af-bubble{outline:2px solid var(--lime)}#afSelectionActions{position:fixed;z-index:65;bottom:calc(110px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:8px;background:#242424;padding:10px;border-radius:16px}#afSelectionActions button{background:none;border:0;color:#fff;padding:8px;font-size:12px}

.af-reaction-bar button[aria-expanded] svg{width:23px;height:23px;display:block;margin:auto;transition:transform .18s}.af-reaction-bar button[aria-expanded=true] svg{transform:rotate(180deg)}.af-reaction-bar button[aria-expanded]{border-radius:50%;background:#ffffff0a}.af-message-actions .af-full-sheet-content{padding:0}.af-chat-selecting .af-message{position:relative;padding-left:36px;min-height:30px}.af-select-circle{position:absolute;left:0;top:12px;width:25px;height:25px;padding:3px;border:1.5px solid #737880;border-radius:50%;background:transparent;color:#000;display:grid;place-items:center}.af-select-circle[aria-pressed=true]{background:var(--lime);border-color:var(--lime)}.af-select-circle svg{width:18px;height:18px}.af-chat-selecting .af-selected-message .af-bubble{outline:none;background:#26301c}.af-chat-selecting #afSelectionActions{top:calc(12px + env(safe-area-inset-top));bottom:auto;width:min(480px,calc(100vw - 28px));box-sizing:border-box;justify-content:space-between;align-items:center;border:1px solid #3a3a3a}.af-chat-selecting #afSelectionActions b{font-size:13px;white-space:nowrap}.af-chat-selecting .af-chat-header{padding-top:64px}.af-emoji-chip{display:inline-flex;align-items:center;gap:4px;min-height:28px;font-size:15px}.af-emoji-chip.mine{background:#a3ff1225}

body:not(.af-chat-open) #afSelectionActions{display:none}

.af-emoji-chip,.af-emoji-chip.mine{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;margin:6px 4px 0 0;padding:3px 6px;border:0!important;border-radius:999px;background:#fff!important;color:#111!important;box-shadow:none!important;vertical-align:middle}.af-reaction-emoji{font-size:21px;line-height:24px}.af-reaction-people{display:inline-flex;align-items:center}.af-reaction-people:empty{display:none}.af-reaction-avatar{display:grid;place-items:center;overflow:hidden;width:24px;height:24px;border:1px solid #fff;border-radius:50%;background:#dedede;color:#555}.af-reaction-avatar+.af-reaction-avatar{margin-left:-6px}.af-reaction-avatar img{width:100%;height:100%;object-fit:cover}.af-reaction-avatar svg{width:19px;height:19px}


/* Video capture, selection and viewing */
.af-camera-library {
  position: absolute;
  left: max(20px, env(safe-area-inset-left));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid #ffffff55;
  border-radius: 10px;
  color: white;
  background: #171717dd;
}
.af-camera-library svg { width: 24px; height: 24px; }
.af-trim-selection { pointer-events: auto; touch-action: none; cursor: grab; }
.af-trim-selection:active { cursor: grabbing; }
.af-chat-video-viewer .af-chat-view-video {
  top: calc(64px + env(safe-area-inset-top));
  bottom: calc(102px + env(safe-area-inset-bottom));
  height: calc(100% - 166px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}
.af-chat-video-viewer > header > .af-viewer-back { left: auto; right: 0; }
.af-chat-video-viewer .af-viewer-bottom { bottom: calc(28px + env(safe-area-inset-bottom)); }
.af-effort-wheel button { color: var(--effort-color); opacity: 0.72; }
.af-effort-wheel button.active { color: var(--effort-color); opacity: 1; }

.af-skip-sheet {
  background: #080808;
  color: #fff;
  border: 1px solid #303030;
  box-shadow: 0 16px 60px #0009;
}
.af-skip-sheet input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #404040;
  border-radius: 10px;
  background: #efefef;
  color: #101010;
  font-size: 16px;
}
.af-skip-sheet .af-confirm-actions { gap: 10px; margin-top: 14px; }
.af-skip-sheet .af-confirm-actions button {
  flex: 1;
  border: 1px solid #454545;
  border-radius: 10px;
}
.af-skip-sheet .af-confirm-actions button:last-child {
  background: var(--lime);
  color: #101010;
  border-color: transparent;
}
