:root{color-scheme:dark;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,sans-serif;font-synthesis:none;--bg: #080c0f;--surface: #11171c;--surface-2: #171e24;--surface-3: #1e272e;--border: #2b353d;--text: #f4f7f8;--muted: #96a3ae;--green: #30ef78;--green-dark: #0d6033;--yellow: #ffd429;--orange: #ff8426;--red: #ff5b68;--nav-height: 76px}*{box-sizing:border-box}html{background:#040607;touch-action:manipulation}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 50% -10%,#182128 0,var(--bg) 36%);color:var(--text);touch-action:manipulation}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}a{color:inherit;text-decoration:none}#app{min-height:100vh}.app-shell{width:min(100%,520px);min-height:100vh;margin:0 auto;position:relative;background:linear-gradient(180deg,rgba(12,18,22,.94),rgba(7,11,14,.98));border-inline:1px solid rgba(255,255,255,.035);padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom))}.topbar{min-height:82px;padding:calc(14px + env(safe-area-inset-top)) 18px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.06);position:sticky;top:0;z-index:20;background:rgba(8,12,15,.92);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.brand-row,.brand,.top-status{display:flex;align-items:center}.brand-row{gap:8px}.brand{gap:10px;font-size:23px;white-space:nowrap}.brand-mark{color:var(--green);font-size:28px;font-weight:900;transform:rotate(90deg)}.icon-button{border:0;background:none;font-size:36px;color:var(--muted);line-height:1;padding:0 4px}.top-status{gap:12px;font-size:12px;color:var(--muted)}.connection{white-space:nowrap;color:var(--green)}.connection.offline{color:var(--muted)}.session-clock{color:var(--green);display:grid;grid-template-columns:auto auto;column-gap:5px;align-items:center;font-size:18px}.session-clock small{grid-column:2;color:var(--muted);font-size:10px}.page{padding:18px 16px 26px}.page h1,.page h2,.page p{margin-top:0}.hero.compact{margin:4px 2px 20px}.hero h1{margin-bottom:5px;font-size:31px;letter-spacing:-.8px}.hero p{color:var(--muted);margin-bottom:0}.eyebrow{text-transform:capitalize;color:var(--green)!important;font-size:13px;font-weight:800;letter-spacing:.08em}.panel{background:linear-gradient(145deg,rgba(22,30,36,.96),rgba(14,20,24,.96));border:1px solid var(--border);border-radius:18px}.primary,.outline,.secondary,.secondary-link,.history-actions button{border-radius:14px;border:0;min-height:48px;font-weight:800;cursor:pointer}.primary{background:linear-gradient(110deg,var(--green),#18d767);color:#041109;box-shadow:0 8px 30px #30ef781f}.primary:disabled{opacity:.4;cursor:default}.primary.huge{width:100%;min-height:62px;font-size:18px;margin-top:16px}.outline{width:100%;background:transparent;border:1px dashed var(--green);color:var(--green);margin-top:14px}.routine-picker{display:grid;gap:10px}.routine-choice{display:grid;grid-template-columns:46px 1fr;text-align:left;padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface);color:var(--text);cursor:pointer}.routine-choice.selected{border-color:var(--green);background:linear-gradient(90deg,rgba(48,239,120,.11),var(--surface))}.routine-choice .choice-check{grid-row:1 / 3;width:34px;height:34px;border-radius:50%;border:2px solid var(--border);display:grid;place-items:center;color:#041109}.routine-choice.selected .choice-check{background:var(--green);border-color:var(--green)}.routine-choice strong{font-size:18px}.routine-choice small{color:var(--muted);margin-top:3px}.local-note{display:flex;flex-direction:column;gap:3px;margin-top:16px;padding:16px;border:1px solid var(--border);border-radius:16px;background:rgba(48,239,120,.035)}.local-note b{color:var(--green)}.local-note span{color:var(--muted);font-size:13px}.rest-banner{border:1px solid rgba(48,239,120,.5);border-radius:16px;background:rgba(11,67,37,.56);padding:12px;margin-bottom:12px;display:grid;grid-template-columns:1fr auto auto;gap:8px;position:sticky;top:86px;z-index:12;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.rest-banner div:first-child{display:flex;justify-content:space-between;align-items:baseline;grid-column:1 / -1}.rest-banner span{font-size:11px;letter-spacing:.12em;color:var(--green)}.rest-banner strong{font-size:26px}.rest-banner .progress{grid-column:1;height:5px;background:rgba(255,255,255,.12);border-radius:9px;align-self:center;overflow:hidden}.rest-banner .progress i{display:block;width:100%;height:100%;background:var(--green);transition:width .25s linear}.rest-banner button{border:0;border-radius:9px;background:rgba(255,255,255,.1);padding:7px 11px}.day-card{display:flex;align-items:center;justify-content:space-between;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface);margin-bottom:12px}.day-card>div{display:flex;gap:10px;align-items:center}.day-card div div{display:flex;flex-direction:column}.day-card small{color:var(--muted)}.gym-day{border-radius:99px;background:rgba(48,239,120,.14);color:var(--green);padding:8px 11px;font-weight:700;font-size:12px}.block-heading{display:flex;align-items:stretch;gap:12px;padding:14px;border:1px solid var(--border);border-radius:16px;background:var(--surface-2);margin-bottom:4px}.block-heading i{width:6px;border-radius:8px;background:var(--green)}.block-heading div{display:flex;flex-direction:column}.block-heading strong{font-size:17px}.block-heading small{color:var(--muted)}.exercise-list{border-inline:1px solid var(--border);border-radius:0 0 16px 16px;overflow:hidden}.exercise-row{min-height:92px;display:grid;grid-template-columns:42px 1fr auto 18px;align-items:center;gap:9px;padding:10px;background:rgba(17,23,28,.86);border-bottom:1px solid var(--border)}.exercise-row:last-child{border-bottom:0}.order,.set-number{width:36px;height:36px;border-radius:50%;background:var(--surface-3);display:grid;place-items:center;font-weight:800}.exercise-copy{display:flex;flex-direction:column;min-width:0}.exercise-copy strong{display:flex;gap:7px;align-items:center}.exercise-copy em{color:var(--green);font-size:9px;font-style:normal;text-transform:uppercase;border:1px solid var(--green);border-radius:5px;padding:2px 4px}.exercise-copy small{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-status{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.row-status b{color:var(--muted);font-size:12px}.chevron{color:var(--muted);font-size:25px}.status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:700;color:var(--muted)}.status i,.dot{width:12px;height:12px;border-radius:50%;display:inline-block;background:var(--muted)}.status.high{color:var(--green)}.status.high i,.dot.high{background:var(--green);box-shadow:0 0 12px #30ef7840}.status.mid{color:var(--yellow)}.status.mid i,.dot.mid{background:var(--yellow)}.status.low{color:var(--orange)}.status.low i,.dot.low{background:var(--orange)}.status.neutral i,.dot.neutral{background:transparent;border:1px solid #60707b}.sticky-actions{position:sticky;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 6px);display:grid;grid-template-columns:58px 1fr 58px;gap:8px;padding:9px;margin-top:12px;border:1px solid var(--border);border-radius:18px;background:rgba(12,18,22,.94);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);z-index:10}.cancel-session{width:100%;margin-top:10px;padding:11px;border:0;background:transparent}.text-danger{color:var(--red)}.secondary{background:var(--surface-3);display:flex;flex-direction:column;justify-content:center;align-items:center}.secondary small{font-size:9px;color:var(--muted)}.exercise-title{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px;margin-bottom:12px;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.exercise-title h1{margin-bottom:5px;font-size:28px}.exercise-title p{margin:0;color:var(--muted)}.exercise-title .status{border:1px solid currentColor;border-radius:99px;padding:10px 12px}.variant-notice{margin:-2px 0 12px;border-left:4px solid var(--green);padding:10px 12px;background:rgba(48,239,120,.07);color:var(--muted);font-size:13px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-title h2{margin:0;font-size:20px}.section-title span{color:var(--muted);font-size:12px}.recent{padding:15px;margin-bottom:12px}.recent-at-end{margin-top:16px;margin-bottom:0}.recent-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.recent-grid>div{display:flex;flex-direction:column;padding:10px;border:1px solid var(--border);border-radius:12px}.recent-grid>.empty{grid-column:1 / -1;width:100%}.recent-grid small{color:var(--muted);font-size:10px}.recent-grid strong{font-size:13px;margin-top:3px}.today-sets{padding:15px}.set-row{position:relative;display:grid;grid-template-columns:40px 18px 1fr 1fr 36px;align-items:center;gap:9px;padding:10px 2px;border-top:1px solid var(--border);user-select:none;-webkit-user-select:none}.set-row.current{margin-inline:-8px;padding-inline:8px;border:1px solid var(--green);border-radius:12px}.editable-set{transition:background .15s ease;cursor:pointer}.editable-set:active{background:rgba(48,239,120,.08)}.editable-set.selected-set{margin-inline:-8px;padding-inline:8px;border:1px solid var(--green);border-radius:12px;background:rgba(48,239,120,.055)}.clear-values{display:none;position:absolute;right:7px;min-height:38px;padding:7px 11px;border:1px solid rgba(255,91,104,.55);border-radius:10px;background:#32151a;color:#ff9ca4;font-weight:800;z-index:2}.set-row.show-clear .clear-values{display:block}.set-row.show-clear .check{visibility:hidden}.set-row div{display:flex;flex-direction:column}.set-row small{color:var(--muted);font-size:10px}.check{width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#041109;font-weight:900}.check.mid{background:var(--yellow)}.check.low{background:var(--orange)}.check.neutral{border:1px dashed var(--muted);background:none;color:var(--muted)}.entry-controls{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.entry-controls label{color:var(--muted);font-size:12px}.stepper,.rep-buttons{display:flex;gap:6px;margin-top:7px}.stepper button,.rep-buttons button{min-width:42px;min-height:46px;border:1px solid var(--border);border-radius:11px;background:var(--surface-3);font-size:18px}.stepper input,.rep-buttons input{min-width:0;width:100%;border:1px solid var(--border);border-radius:11px;background:#0c1115;color:var(--text);padding:8px;font-size:16px;text-align:center}.rep-buttons{flex-wrap:wrap}.rep-buttons button.selected{background:var(--green);color:#041109;border-color:var(--green)}.rep-buttons input{flex:1;max-width:64px}.rep-confirm-row{display:grid;grid-template-columns:minmax(0,1fr) 50px;gap:7px;margin-top:7px}.rep-carousel{min-width:0;display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;border-radius:11px}.rep-carousel::-webkit-scrollbar{display:none}.rep-carousel button{flex:0 0 calc((100% - 12px) / 3);min-width:42px;min-height:48px;border:1px solid var(--border);border-radius:11px;background:var(--surface-3);font-size:18px;scroll-snap-align:center}.rep-carousel button.target{border-color:#30ef78a6;background:rgba(48,239,120,.09)}.rep-carousel button.selected{background:var(--green);color:#041109;border-color:var(--green);font-weight:900}.inline-save{min-width:50px;min-height:48px;border:0;border-radius:12px;background:var(--green);color:#041109;font-size:23px;font-weight:900}.inline-save:disabled{opacity:.35}.duration-value{min-width:0;width:100%;border:1px solid var(--border);border-radius:11px;background:#0c1115;color:var(--text);padding:8px;font-size:16px;text-align:center}.target-hint{color:var(--green);font-size:10px;font-weight:700;letter-spacing:.03em;margin-left:4px}.detail-tools{display:grid;grid-template-columns:1.2fr 1fr;gap:10px;margin-top:12px}.note-input,.tool-button{min-height:52px;padding:10px 12px;border:1px solid var(--border);border-radius:13px;background:var(--surface);display:flex;align-items:center;gap:8px}.note-input input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:16px}.tool-button{justify-content:center;font-size:13px}.center-title{text-align:center;margin-bottom:16px}.center-title h1{font-size:28px;margin-bottom:5px}.center-title p{color:var(--muted)}.planned{padding:16px;display:flex;flex-direction:column;margin-bottom:18px}.planned small{color:var(--muted)}.planned strong{margin-top:6px;font-size:18px}.variants-page>h2{font-size:19px}.variant-list{display:grid;gap:9px}.variant-choice{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:center;padding:13px;border:1px solid var(--border);border-radius:15px;background:var(--surface)}.variant-choice:has(input:checked){border-color:var(--green);background:rgba(48,239,120,.07)}.variant-choice input{display:none}.variant-choice .radio{width:22px;height:22px;border:2px solid var(--muted);border-radius:50%}.variant-choice:has(input:checked) .radio{border:7px solid var(--green)}.variant-choice div{display:flex;flex-direction:column}.variant-choice small{color:var(--muted)}.variant-choice em{color:var(--green);font-style:normal;font-size:12px;margin-top:4px}.field{display:flex;flex-direction:column;color:var(--muted);margin-top:14px;font-size:12px}.field input{margin-top:5px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px;color:var(--text);font-size:16px}.calendar{padding:16px}.calendar-head{display:grid;grid-template-columns:40px 1fr 40px;align-items:center;text-align:center;margin-bottom:12px}.calendar-head button{width:38px;height:38px;border-radius:11px;border:1px solid var(--border);background:var(--surface-3)}.calendar-head strong{text-transform:capitalize}.weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;text-align:center}.weekdays{color:var(--muted);margin-bottom:6px}.calendar-grid span{aspect-ratio:1;display:grid;place-items:center;border-radius:50%}.calendar-grid .trained{background:var(--green);color:#041109;font-weight:800}.calendar-grid .today{outline:2px solid var(--green);outline-offset:2px}.history-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0 20px}.secondary-link,.history-actions button{display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--border);font-size:13px}.session-list{display:grid;gap:7px}.session-row{display:grid;grid-template-columns:62px 5px 1fr auto 14px;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:13px;background:var(--surface)}.session-row time{text-transform:capitalize;font-size:11px;color:var(--muted)}.session-row>i{width:5px;height:42px;background:var(--green);border-radius:8px}.session-row div{display:flex;flex-direction:column}.session-row small{color:var(--muted);font-size:11px}.history-exercises{display:grid;gap:10px}.history-exercise{padding:14px}.history-exercise .section-title>div{display:flex;flex-direction:column}.history-exercise .section-title small{color:var(--muted)}.history-set-list{border-top:1px solid var(--border)}.history-set-row{display:grid;grid-template-columns:38px 14px 1fr 1fr auto;align-items:center;gap:8px;min-height:60px;border-bottom:1px solid var(--border)}.history-set-row:last-child{border-bottom:0}.history-set-row div{display:flex;flex-direction:column}.history-set-row small{color:var(--muted);font-size:10px}.history-set-row a{color:var(--green);font-size:12px;padding:10px 2px}.compact-empty{padding:14px}.danger-outline{width:100%;margin-top:14px;color:var(--red);border-color:#ff5d5d73}.edit-set-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;margin-bottom:14px}.edit-set-form label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px}.edit-set-form label.wide{grid-column:1 / -1}.edit-set-form input{width:100%;border:1px solid var(--border);border-radius:11px;background:var(--surface-3);color:var(--text);padding:13px;font-size:16px}.matrix-title{display:flex;justify-content:space-between;align-items:center}.matrix-title h1{margin-bottom:3px}.matrix-title p,.matrix-title span{color:var(--muted);font-size:12px}.segmented{display:grid;grid-template-columns:1fr 1fr;margin:12px 0;border:1px solid var(--border);border-radius:13px;overflow:hidden}.segmented button{min-height:48px;background:none;border:0}.segmented .active{background:var(--green);color:#041109;font-weight:800}.matrix-wrap{max-height:650px;overflow:auto;border:1px solid var(--border);border-radius:12px}.matrix-wrap table{border-collapse:separate;border-spacing:0;min-width:750px;background:var(--surface)}.matrix-wrap th,.matrix-wrap td{border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:8px;text-align:center;height:58px}.matrix-wrap thead th{position:sticky;top:0;z-index:3;background:var(--surface-3)}.matrix-wrap th:first-child{position:sticky;left:0;z-index:2;width:165px;text-align:left;background:var(--surface-2)}.matrix-wrap thead th:first-child{z-index:4}.matrix-wrap thead th:not(:first-child){width:72px}.matrix-wrap th small{display:block;color:var(--muted);font-weight:400}.matrix-wrap tbody th{display:flex;gap:8px;align-items:center}.matrix-wrap tbody th>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--surface-3)}.matrix-wrap tbody th div{font-size:12px}.matrix-wrap td .dot{display:block;margin:0 auto 5px}.matrix-wrap td b small{display:block;color:var(--green)}.swipe-hint{text-align:center;color:var(--muted);font-size:12px;margin:12px 0}.legend{display:flex;justify-content:space-around;gap:6px;padding:12px;border:1px solid var(--border);border-radius:13px}.routine-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:12px}.routine-tabs button{min-height:52px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:11px}.routine-tabs button.active{background:var(--green);color:#041109;border-color:var(--green)}.routine-editor{border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-top:5px}.routine-exercise{display:grid;grid-template-columns:18px 36px minmax(0,1fr) auto auto;align-items:center;gap:8px;min-height:78px;padding:9px;background:var(--surface);border-bottom:1px solid var(--border)}.routine-exercise:last-child{border-bottom:0}.drag{color:var(--muted)}.routine-exercise div:not(.move):not(.routine-row-actions){display:flex;flex-direction:column;min-width:0}.routine-exercise strong,.routine-exercise small{overflow:hidden;text-overflow:ellipsis}.routine-exercise small,.routine-exercise dt{color:var(--muted);font-size:10px}.routine-exercise dl{margin:0}.routine-exercise dd{margin:2px 0 0;font-size:12px}.move{display:grid;gap:3px}.move button{border:1px solid var(--border);background:var(--surface-3);border-radius:6px;min-width:30px}.move button:disabled{opacity:.25}.routine-row-actions{display:flex;align-items:center;gap:6px}.routine-row-actions>a{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--green);border-radius:9px;color:var(--green)}.routine-summary{align-items:center}.routine-summary>div{flex:1}.routine-summary>a{padding:8px 10px;border:1px solid var(--green);border-radius:9px;color:var(--green);font-size:12px}.action-link{display:grid;place-items:center}.secondary-outline{border-color:var(--border);color:var(--muted)}.editor-form{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;margin-bottom:14px}.editor-form label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:12px}.editor-form .wide{grid-column:1 / -1}.editor-form input,.editor-form select,.editor-form textarea,.variant-editor>input{width:100%;border:1px solid var(--border);border-radius:11px;background:var(--surface-3);color:var(--text);padding:12px;font-size:16px}.editor-form textarea{min-height:88px;resize:vertical}.variant-editor{padding:15px;margin-top:14px}.variant-check-list{display:grid;gap:5px;max-height:310px;overflow-y:auto;margin-top:10px}.variant-check-list label{display:flex;align-items:center;gap:9px;min-height:42px;padding:7px 9px;border:1px solid var(--border);border-radius:9px;background:var(--surface-2)}.variant-check-list input{width:20px;height:20px;accent-color:var(--green)}.settings-group{overflow:hidden;margin-bottom:14px}.settings-group h2{padding:15px 15px 8px;font-size:14px;color:var(--green);margin:0}.setting,.settings-group>button,.import-label{min-height:64px;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--border)}.setting span{display:flex;flex-direction:column}.setting small{color:var(--muted)}.setting select,.setting input[type=number]{background:var(--surface-3);border:1px solid var(--border);border-radius:9px;color:var(--text);padding:9px;max-width:105px;font-size:16px}.setting input[type=checkbox]{width:48px;height:26px;accent-color:var(--green)}.setting-link>strong{color:var(--green);font-size:24px}.settings-group>button,.import-label{width:100%;background:none;border-inline:0;border-bottom:0;color:var(--text);text-align:left}.settings-group .danger{color:var(--red)}.import-label input{display:none}.gesture-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:12px;border-top:1px solid var(--border)}.gesture-preview span{display:flex;flex-direction:column;align-items:center;padding:10px 4px;background:var(--surface-3);border-radius:10px;font-size:24px}.gesture-preview small{color:var(--muted);font-size:9px;margin-top:4px}.version{text-align:center;color:var(--muted);font-size:11px}.gesture-camera{overflow:hidden}.gesture-video-wrap{position:relative;aspect-ratio:4 / 3;background:#030506;overflow:hidden}.gesture-video-wrap video{width:100%;height:100%;display:block;object-fit:cover;transform:scaleX(-1)}.gesture-video-placeholder{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-content:center;justify-items:center;gap:8px;color:var(--muted);background:radial-gradient(circle,#172027,#080b0d 70%)}.gesture-video-placeholder span{font-size:42px;color:var(--green)}.gesture-camera[data-gesture-state=requesting-camera] .gesture-video-placeholder,.gesture-camera[data-gesture-state=loading-model] .gesture-video-placeholder,.gesture-camera[data-gesture-state=running] .gesture-video-placeholder{display:none}.gesture-live-badge{display:none;position:absolute;top:12px;left:12px;padding:5px 8px;border-radius:99px;background:rgba(8,12,15,.78);color:var(--green);font-size:10px;font-weight:900;letter-spacing:.1em}.gesture-camera[data-gesture-state=running] .gesture-live-badge{display:block}.gesture-pass-guide{display:none;position:absolute;inset:auto 12px 12px;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:10px;background:rgba(8,12,15,.76);font-size:10px;letter-spacing:.06em}.gesture-camera[data-gesture-state=running] .gesture-pass-guide{display:flex}.gesture-pass-guide span{color:var(--green);font-weight:900}.gesture-pass-guide b{color:var(--text)}.gesture-status{display:flex;align-items:center;gap:11px;padding:14px;border-top:1px solid var(--border)}.gesture-status>div{display:flex;flex-direction:column}.gesture-status small{color:var(--muted)}.gesture-state-dot{width:13px;height:13px;border-radius:50%;background:var(--muted);flex:0 0 auto}.gesture-camera[data-gesture-state=requesting-camera] .gesture-state-dot,.gesture-camera[data-gesture-state=loading-model] .gesture-state-dot{background:var(--yellow);animation:gesture-pulse 1s infinite}.gesture-camera[data-gesture-state=running] .gesture-state-dot{background:var(--green)}.gesture-camera[data-gesture-state=error] .gesture-state-dot{background:var(--red)}.gesture-reading{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:7px;padding:0 14px 13px}.gesture-reading>div{min-width:0;padding:10px;border-radius:11px;background:var(--surface-3);display:flex;flex-direction:column}.gesture-reading small{color:var(--muted);font-size:9px}.gesture-reading strong{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.gesture-camera.hand-detected #gesture-name{color:var(--green)}.gesture-confidence-bar{height:5px;margin:0 14px 15px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.09)}.gesture-confidence-bar i{display:block;width:0;height:100%;border-radius:inherit;background:var(--green);transition:width .15s linear}.gesture-actions{display:grid;grid-template-columns:1.4fr 1fr;gap:9px;margin-top:12px}.gesture-actions button{min-height:54px;border-radius:14px;font-weight:900}.gesture-actions .outline{margin:0}.gesture-actions button:disabled{opacity:.4}.gesture-metrics{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;padding:14px;margin-top:12px}.gesture-metrics>div{display:flex;flex-direction:column;gap:2px}.gesture-metrics small{color:var(--muted)}.gesture-metrics>strong{color:var(--green);font-size:12px}.gesture-metrics button{min-height:44px;border:1px solid var(--border);border-radius:11px;background:var(--surface-3);color:var(--text);font-weight:800}.gesture-metrics button:disabled{opacity:.35}.gesture-metrics .outline{margin:0}.gesture-help{margin-top:12px}.gesture-pass{display:grid;grid-template-columns:1fr auto;gap:9px 12px;align-items:center;padding:14px;margin-top:12px;border-color:#ffffff1c}.gesture-pass>div:first-child{display:flex;flex-direction:column;gap:4px}.gesture-pass small{color:var(--muted);font-size:9px;letter-spacing:.08em}.gesture-pass strong{font-size:13px}.gesture-pass>span{color:var(--muted);font-weight:900;font-variant-numeric:tabular-nums}.gesture-pass-progress{grid-column:1 / -1;height:6px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.09)}.gesture-pass-progress i{display:block;width:0;height:100%;border-radius:inherit;background:var(--yellow);transition:width .12s linear}.gesture-pass[data-pass-phase=completed]{border-color:var(--green);box-shadow:0 0 20px #30ef781c}.gesture-pass[data-pass-phase=completed] strong,.gesture-pass[data-pass-phase=completed]>span{color:var(--green)}.gesture-pass[data-pass-phase=completed] .gesture-pass-progress i{background:var(--green)}@keyframes gesture-pulse{50%{opacity:.35;transform:scale(.8)}}.bottom-nav{position:fixed;z-index:30;left:50%;bottom:0;transform:translate(-50%);width:min(100%,518px);min-height:calc(var(--nav-height) + env(safe-area-inset-bottom));padding:8px 10px env(safe-area-inset-bottom);display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--border);background:rgba(9,14,17,.94);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--muted);font-size:11px;border-radius:14px}.bottom-nav a span{font-size:23px;line-height:1}.bottom-nav a.active{color:var(--green);background:rgba(48,239,120,.07)}.toast{position:fixed;left:50%;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom) + 14px);transform:translate(-50%,20px);z-index:50;max-width:min(90vw,430px);padding:12px 17px;border:1px solid rgba(48,239,120,.5);border-radius:99px;background:#14231b;color:var(--text);opacity:0;pointer-events:none;transition:.2s ease;text-align:center;font-size:13px}.toast.visible{opacity:1;transform:translate(-50%)}.empty{padding:24px;text-align:center;color:var(--muted)}.fatal{max-width:500px;margin:15vh auto;padding:24px}.fatal button{padding:12px 18px}@media (max-width: 390px){.page{padding-inline:11px}.topbar{padding-inline:13px}.brand{font-size:20px}.top-status{gap:7px}.connection{max-width:82px;overflow:hidden;text-overflow:ellipsis}.exercise-row{grid-template-columns:36px 1fr auto 12px}.status{font-size:10px}.entry-controls{grid-template-columns:1fr}.routine-exercise{grid-template-columns:14px 32px minmax(0,1fr) auto}.routine-exercise dl{display:none}.routine-row-actions{grid-column:4}.recent-grid{grid-template-columns:1fr}}@media (min-width: 700px){body{padding-block:24px}.app-shell{min-height:calc(100vh - 48px);border:1px solid var(--border);border-radius:30px;overflow:clip;box-shadow:0 24px 80px #00000073}.bottom-nav{bottom:24px;border-radius:0 0 29px 29px}}
