.tr-dialog{width:min(100%,640px);height:min(94dvh,940px);max-height:96dvh;max-width:100%;border:0;border-radius:24px;padding:0;background:#f6f7f3;color:#26312a;box-sizing:border-box;overflow:auto}.tr-dialog::backdrop{background:#18231a80}.tr-head{display:flex;align-items:center;gap:8px;padding:16px 18px;background:#f6f7f3;position:sticky;top:0;z-index:3;border-bottom:1px solid #e0e4d9}.tr-head h2{flex:1;font-size:18px;margin:0}.tr-head button{padding:8px;min-height:44px}.tr-body{padding:18px;line-height:1.6}.tr-body label{display:block;margin:12px 0 7px}.tr-body input:not([type=checkbox]),.tr-body select,.tr-body textarea{box-sizing:border-box;width:100%;padding:12px;border:1px solid #dde2d7;border-radius:12px;background:#fff;font-size:16px;color:inherit;min-width:0}.tr-body .check{display:flex;gap:10px;align-items:flex-start}.tr-body input[type=checkbox]{accent-color:#65882f;min-width:19px;min-height:19px}.tr-steps{display:flex;justify-content:space-between;gap:5px;font-size:13px;margin-bottom:20px}.tr-steps span{padding:5px 8px;border-radius:12px;color:#647060}.tr-steps .current{background:#d9f496;color:#25391c;font-weight:700}.tr-actions{display:grid;gap:10px;margin:20px 0}.tr-actions button{min-height:48px}.tr-day-picks{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.tr-day-picks label{display:flex;gap:4px;margin:0;padding:9px 2px;font-size:14px}.tr-equip{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.tr-exercises{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tr-ex-card{padding:10px;background:#fff;border:1px solid #e1e5db;border-radius:16px;display:flex;flex-direction:column;gap:7px;min-width:0}.tr-ex-card[hidden]{display:none}.tr-ex-card small{color:#626c60;font-size:12px}.tr-ex-card button{font-size:14px;padding:9px;min-height:44px}.tr-play{position:relative;border:0;background:#eef2e6;border-radius:10px;padding:0!important;overflow:hidden;display:block;width:100%}.tr-play img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}.tr-play span{display:block;background:#f0f3e9;font-size:12px;line-height:30px}.tr-picked{background:#d9f496;border:1px solid #a7c569;border-radius:10px;color:#23391e}.tr-card,.tr-day{background:white;border-radius:16px;padding:16px;margin:12px 0}.tr-day summary{cursor:pointer;display:flex;justify-content:space-between;gap:8px;font-weight:600}.tr-day summary small{font-weight:400;white-space:nowrap;color:#647060}.tr-prescription{padding:10px 0;border-bottom:1px solid #edf0e9}.tr-prescription strong,.tr-prescription small{display:block}.tr-prescription p{font-size:13px;margin:4px 0}.tr-notice,.tr-fine{font-size:12px;line-height:1.65;color:#646e60}.tr-notice{padding:12px;background:#eef2e7;border-radius:12px}.tr-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e2e7dc;padding:14px 0}.tr-row span{min-width:0}.tr-row small{display:block;color:#616c60}.tr-status{font-size:14px;color:#53662d;white-space:pre-wrap;overflow-wrap:anywhere}.tr-session-meta,.tr-mode-row{display:flex;justify-content:space-between;align-items:center;gap:10px}.tr-mode-row label{flex:1}.tr-session-meta{font-size:13px}.tr-actual{background:#fff;border-radius:18px;padding:15px;margin:16px 0}.tr-actual h3{font-size:17px;margin:0}.tr-demo{margin:10px 0}.tr-demo .tr-play{max-width:250px;margin:10px auto}.tr-demo summary{color:#5e723d;font-size:14px;cursor:pointer}.tr-set{display:grid;grid-template-columns:1fr 1fr .8fr .8fr 22px;gap:5px;margin:8px 0;align-items:center}.tr-set[hidden]{display:none}.tr-set input:not([type=checkbox]),.tr-set select{font-size:13px;padding:9px 4px;min-height:42px}.tr-set-labels{display:flex;justify-content:space-between;color:#667060}.tr-eyebrow{font-size:12px;color:#6b775f}.tr-loading{text-align:center;padding:35px 15px}.tr-spinner{display:inline-block;width:28px;height:28px;border:3px solid #dce5c5;border-top-color:#71903e;border-radius:50%;animation:tr-spin 1s linear infinite}@keyframes tr-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.tr-spinner{animation:none}}@media(max-width:360px){.tr-body{padding:12px}.tr-head{padding:10px}.tr-exercises{gap:8px}.tr-ex-card{padding:8px}.tr-body h3{font-size:17px}}.tr-body p,.tr-body strong{overflow-wrap:anywhere}

.tr-original{white-space:pre-wrap;overflow-wrap:anywhere}

.tr-set.weighted{grid-template-columns:1fr 64px 1fr 24px}.tr-set.unweighted{grid-template-columns:1fr 24px}.tr-actual .tr-fine{line-height:1.6}
.tr-head button{width:auto;flex:0 0 auto;white-space:nowrap}.tr-head h2{min-width:0;text-align:center;line-height:1.45}.tr-row button,.tr-mode-row>button{width:auto;flex:0 0 auto}.tr-actual>.row{flex-wrap:nowrap}.tr-actual .row button{width:auto;flex:0 0 auto}.tr-actual .row h3{flex:1;min-width:0}.tr-actual .tr-play{width:100%}

/* 0.10.1 — compact steps, safe bottom actions and static-first exercise library. */
.tr-steps{position:relative;top:auto;z-index:auto;background:#f6f7f3;padding:8px 0;gap:6px}.tr-steps button{flex:1;min-width:0;min-height:42px;border:1px solid #e2e6db;background:#fff;border-radius:12px;padding:6px;font-size:13px;color:#596650}.tr-steps button:disabled{opacity:.45}.tr-steps button.current{background:#d9f496;border-color:#abc56f;color:#263820;font-weight:700}.tr-sticky-actions{position:sticky;bottom:-18px;z-index:2;margin:22px -18px -18px;padding:12px 18px max(12px,env(safe-area-inset-bottom));background:#f6f7f3f5;border-top:1px solid #e1e5dc;grid-template-columns:auto 1fr;box-shadow:0 -5px 12px #f6f7f3}.tr-sticky-actions>button:only-child{grid-column:1/-1}.tr-body #tr-status:not(:empty){padding:12px;border-radius:12px;background:#eaf2da;margin-top:26px}.tr-summary{background:#fff;border-radius:16px;padding:4px 14px}.tr-summary>div{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #edf0e8}.tr-summary>div:last-child{border:0}.tr-summary span{flex:1;min-width:0}.tr-summary small,.tr-summary strong{display:block}.tr-summary strong{font-size:14px}.tr-summary small{font-size:12px;color:#61705b}.tr-summary button{width:auto;min-width:48px;min-height:44px}.tr-filter-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tr-picker-filters label{font-size:13px}.tr-selected{background:#edf4de;padding:12px;border-radius:12px;margin:14px 0;font-size:14px}.tr-selected span{display:block;margin-top:4px;color:#64745a;font-size:12px}.tr-empty{grid-column:1/-1;text-align:center;padding:20px;color:#61705b}.tr-image-fallback{display:flex!important;min-height:140px;align-items:center;justify-content:center}.tr-image-error{min-height:100px;font-size:12px}.tr-detail-dialog{max-width:640px;height:auto;max-height:94dvh}.tr-detail-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tr-detail-images:has(figure:only-child){grid-template-columns:1fr}.tr-detail-images figure{margin:0;background:#fff;border-radius:12px;overflow:hidden}.tr-detail-images img{width:100%;height:auto;object-fit:contain;display:block}.tr-detail-images figcaption{font-size:12px;padding:10px;color:#536249}.tr-cues{padding-left:22px}.tr-cues li{margin:10px 0}.tr-detail-dialog video{width:100%;border-radius:12px;background:#edf1e6}.tr-detail-dialog video[hidden]{display:none}.tr-import-steps{display:flex;justify-content:space-between;gap:8px;color:#78816e;font-size:12px;margin-bottom:20px}.tr-import-steps .current{color:#415a26;font-weight:700}.tr-file-button{background:#edf4de;border:1px dashed #a6bb86;border-radius:12px;padding:14px;text-align:center;color:#3d552b;font-weight:600}.tr-file-button input{display:block;margin-top:8px;border:0!important;padding:5px!important;background:transparent!important;font-size:13px!important}.tr-counter{text-align:right;margin:4px 0;font-size:12px;color:#64705d}.tr-review-required{border:1px solid #d4dfbf}.tr-dialog button:focus-visible{outline:3px solid #698b36;outline-offset:2px}.tr-dialog .tr-play span{min-height:30px;white-space:normal}.tr-demo>button{width:auto;min-height:44px}.tr-dialog .tr-body{padding-bottom:24px}@media(max-width:360px){.tr-sticky-actions{bottom:-12px;margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}.tr-filter-row{gap:8px}.tr-detail-images{gap:8px}.tr-steps button{font-size:12px;padding:5px 2px}}@media(max-height:600px){.tr-dialog{height:96dvh}.tr-sticky-actions{padding-top:8px;padding-bottom:8px}.tr-head{padding-top:8px;padding-bottom:8px}}
/* Keep bottom actions completely inside the rounded dialog, including short keyboard viewports. */
.tr-sticky-actions{bottom:0;margin-bottom:0;padding-bottom:max(16px,env(safe-area-inset-bottom))}.tr-file-button{position:relative;cursor:pointer}.tr-file-button:focus-within{outline:3px solid #698b36;outline-offset:2px}.tr-file-button input{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;padding:0!important;margin:0!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(max-width:360px){.tr-sticky-actions{bottom:0}}@media(max-height:600px){.tr-sticky-actions{padding-bottom:max(12px,env(safe-area-inset-bottom))}}

.tr-original-label{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.tr-original-label .tr-counter{font-weight:400;margin:0}

/* 0.10.2 — goal choices and equipment shortcuts stay inside the training wizard. */
.tr-goal-options{margin:0;padding:0;border:0;min-width:0}.tr-goal-options legend{font-size:13px;color:#64705d;padding:0;margin-bottom:5px}.tr-body .tr-goal-option{display:flex;align-items:center;gap:12px;margin:8px 0;padding:12px 14px;background:#fff;border:1px solid #dde2d7;border-radius:14px;cursor:pointer}.tr-body .tr-goal-option.selected{background:#edf4de;border-color:#9eb871}.tr-body .tr-goal-option input[type=radio]{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:0;padding:0;accent-color:#65882f}.tr-goal-option span{min-width:0;flex:1}.tr-goal-option strong,.tr-goal-option small{display:block}.tr-goal-option strong{font-size:16px;font-weight:600}.tr-goal-option small{font-size:12px;line-height:1.5;color:#61705b;margin-top:3px}.tr-goal-option:focus-within{outline:2px solid #698b36;outline-offset:2px}#training-dialog #tr-goal-error{font-size:13px;margin:5px 0;color:#9b442b}#training-dialog #tr-goal-error:empty{display:none}#training-dialog #tr-goal-count.field-error{color:#9b442b}.tr-equipment-presets{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tr-equipment-presets button{padding:10px 8px;min-height:48px;font-size:14px;line-height:1.5;white-space:normal}.tr-equipment-presets button.selected{background:#edf4de;border-color:#9eb871;color:#365123}.tr-equipment-notice{padding:12px;background:#fff4da;border:1px solid #e7d4a4;border-radius:12px;font-size:13px;color:#665020;margin:14px 0}.tr-equipment-notice p{margin:5px 0 10px}.tr-conflict-actions{display:flex;gap:8px;flex-wrap:wrap}.tr-conflict-actions button{flex:1;min-width:100px;width:auto;padding:9px;min-height:44px;font-size:13px;white-space:normal}.tr-equip .check{min-height:44px;align-items:center;margin:0;padding:6px 0}.tr-equip .check input{flex:0 0 19px;margin-top:0}@media(max-width:360px){.tr-body .tr-goal-option{padding:10px 12px}.tr-goal-option strong{font-size:15px}.tr-equipment-presets button{font-size:13px}}

/* 0.10.3: a fixed training footer inside the dialog, with its own scrolling body. */
.tr-dialog.tr-running[open]{display:flex;flex-direction:column;overflow:hidden}
.tr-running .tr-head{flex-shrink:0;position:relative}
.tr-running .tr-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:16px}
.tr-action-content[hidden],.tr-rest-dock[hidden],.tr-collapse[hidden]{display:none!important}
.tr-completion{font-size:13px;color:#496125;margin:4px 0 0}
.tr-completion:empty{display:none}.tr-collapse{min-height:44px;white-space:nowrap}
.tr-actual>.row{align-items:center;gap:8px}.tr-actual>.row h3{min-width:0;flex:1}
.tr-folded{border:1px solid #dce7c9;padding:12px 15px}
.tr-rest-dock{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px max(12px,env(safe-area-inset-bottom));background:#e1f5b2;border-top:1px solid #b5ce80;box-shadow:0 -4px 16px #26312a0a}
.tr-rest-dock>div:first-child{min-width:0}.tr-rest-dock span{display:block;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:280px}
.tr-rest-dock strong{display:block;font-size:40px;line-height:1.15;font-variant-numeric:tabular-nums;letter-spacing:1px}.tr-rest-dock small{display:block;font-size:12px}
.tr-rest-actions{display:grid;gap:4px;flex-shrink:0}.tr-rest-actions button{min-height:40px;padding:8px 12px;font-size:14px}
.tr-rest-finished{background:#edf1e6}.tr-date-tabs{display:flex;gap:8px}.tr-date-tabs button{flex:1;min-height:44px}
@media(max-width:360px){.tr-rest-dock{padding-left:12px;padding-right:12px}.tr-rest-dock strong{font-size:36px}.tr-rest-dock span{max-width:170px}}

.tr-rest-alert{display:flex;align-items:center;gap:5px;font-size:12px;margin-top:5px}.tr-rest-alert input{accent-color:#587c2c;min-width:16px;min-height:16px}
/* 0.10.4 temporary environment, scoped to training UI. */
.tr-adjust-presets{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.tr-adjust-presets button{min-height:44px;padding:10px 14px}.tr-environment{display:flex;align-items:center;gap:12px;justify-content:space-between;border-radius:16px;background:#eff5e4;padding:12px;margin-bottom:16px}.tr-environment span{min-width:0}.tr-environment strong,.tr-environment small{display:block;overflow-wrap:anywhere}.tr-environment small{margin-top:4px;color:#52604a}.tr-environment button{flex-shrink:0;max-width:112px;min-height:44px}.tr-adjust-fixed{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tr-adjust-fixed .check{display:flex;align-items:center;gap:6px;font-size:14px;padding:8px;background:#f4f5ef;border-radius:12px}.tr-adjust-fixed img{width:44px;height:54px;object-fit:contain;border-radius:6px}.tr-adjust-fixed input{flex-shrink:0}.tr-adjust-action{display:flex;gap:12px;align-items:center;margin-bottom:8px}.tr-adjust-action img{width:76px;height:94px;object-fit:contain;border-radius:12px;background:#f4f5ef;flex-shrink:0}.tr-adjust-action span{min-width:0}.tr-adjust-action small{display:block;margin-top:5px;overflow-wrap:anywhere}#tr-adjust-form fieldset{border:0;padding:0;margin:0}#tr-adjust-form input,#tr-adjust-form select{min-height:44px}#tr-adjust-form [hidden]{display:none!important}.tr-adjust-summary h3{font-size:28px}.home-training>.secondary{margin-top:8px}.tr-adjust-fixed label span{overflow-wrap:anywhere}@media(max-width:360px){.tr-adjust-fixed{grid-template-columns:1fr}.tr-adjust-action img{width:64px;height:80px}}
/* 0.10.9-rc.1: import proposal audit + safe draft editor. */
.tr-adjust-log{border:1px solid #e0e4d8;margin:8px 0;padding:9px 12px;background:#fff;border-radius:12px}
.tr-adjust-log ul{padding-left:20px;margin:8px 0;overflow-wrap:anywhere}
.tr-adjust-log li{margin:8px 0}.tr-adjust-log li strong,.tr-adjust-log li small{display:block;line-height:1.5}
.tr-adjust-log li small{font-size:12px;color:#63705c}
.tr-draft-item{margin:12px 0;padding:12px;background:#fff;border:1px solid #e2e5df;border-radius:12px}
.tr-draft-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tr-draft-item input,.tr-draft-item select{max-width:100%;min-width:0;box-sizing:border-box}
.tr-draft-item button{margin-top:8px}
@media(max-width:355px){.tr-draft-fields{grid-template-columns:1fr}}
