/* Shared planning navigation: one typography, spacing and icon treatment. */
body.look-apple.background-air :is(#reference-navigation,.reference-mobile-menu) .planning-launch :is(button,a.fuel-launch){align-items:center!important;justify-content:flex-start!important;gap:10px!important;min-height:44px;padding:10px 16px!important;margin:0!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#f3f5f2!important;text-decoration:none!important;font-family:system-ui,-apple-system,"Segoe UI",sans-serif!important;font-size:14px!important;font-weight:500!important;line-height:1.4!important;box-sizing:border-box}
body.look-apple.background-air :is(#reference-navigation,.reference-mobile-menu) .planning-launch a.fuel-launch{display:flex!important;width:100%}
body.look-apple.background-air :is(#reference-navigation,.reference-mobile-menu) .planning-launch :is(button,a.fuel-launch):hover{background:#ffffff09!important}
body.look-apple.background-air :is(#reference-navigation,.reference-mobile-menu) .planning-launch :is(button,a.fuel-launch):focus-visible{outline:2px solid #d0fa69;outline-offset:2px}
body.look-apple.background-air :is(#reference-navigation,.reference-mobile-menu) .planning-launch :is(button,a.fuel-launch) svg{display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important;min-width:20px!important;max-width:20px!important;fill:none!important;color:#d0fa69!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round;stroke-linejoin:round}
body.look-apple.background-air :is(#reference-navigation,.reference-mobile-menu) .planning-launch :is(button,a.fuel-launch) span{white-space:nowrap}
@media(max-width:750px){body.look-apple.background-air :is(#reference-navigation,.reference-mobile-menu) .planning-launch :is(button,a.fuel-launch){min-height:48px!important;font-size:16px!important;color:#e9edea!important}}

/* Outfit stays in the calendar, with one fixed heading and one scroll surface. */
dialog.base-outfit-dialog{box-sizing:border-box;width:min(1080px,calc(100vw - 48px))!important;max-width:none!important;height:min(900px,calc(100dvh - 48px))!important;max-height:calc(100dvh - 48px)!important;padding:0!important;border:0;border-radius:24px;background:#fff;overflow:hidden!important}
dialog.base-outfit-dialog[open]{display:flex!important;flex-direction:column}
dialog.base-outfit-dialog::backdrop{background:rgba(20,24,24,.4)}
dialog.base-outfit-dialog>.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;flex:none;margin:0!important;padding:24px!important;background:#fff}
dialog.base-outfit-dialog h2{margin:0;font-size:24px;line-height:1.25;letter-spacing:-.025em;color:#25282a}
dialog.base-outfit-dialog .dialog-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:12px;border:0;border-radius:50%;background:#f4f4f6;color:#606773;cursor:pointer}
dialog.base-outfit-dialog .dialog-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
dialog.base-outfit-dialog iframe{display:block;flex:1;min-height:0;width:100%;border:0;background:#fff}
@media(max-width:600px){dialog.base-outfit-dialog{width:calc(100vw - 24px)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;border-radius:22px}dialog.base-outfit-dialog>.dialog-heading{padding:20px!important}dialog.base-outfit-dialog h2{font-size:22px}}

#grid .calendar-week-group.completed-week-collapsed>:not(.calendar-week){display:none!important}
.completed-week-toggle{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px 16px;border:0;border-radius:9px;background:#edf5df;color:#374a27;font:inherit;text-align:left;cursor:pointer}
.completed-week-toggle svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7}
.completed-week-toggle[aria-expanded="true"] svg{transform:rotate(90deg)}
.completed-week-toggle small{font-size:12px;color:#526343}
@media(max-width:600px){.completed-week-toggle{flex-wrap:wrap}.completed-week-toggle small{flex-basis:100%;margin-left:26px}}

/* Keep the original KW heading; collapsed weeks reveal no training details. */
#grid .calendar-week-group .completed-week-toggle{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0;padding:10px 16px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;font:inherit!important}
#grid .completed-week-toggle strong{font:inherit;font-weight:600}
#grid .completed-week-toggle svg{width:12px;height:12px}
#grid .calendar-week-group.completed-week-collapsed>.calendar-week>:not(.completed-week-toggle){display:none!important}
#grid .completed-week-toggle:focus-visible{outline:2px solid #526c2d;outline-offset:2px}
/* Align the KW text with every other week heading; retain a generous hit area. */
#grid .calendar-week-group .completed-week-toggle{margin-left:-16px!important;gap:8px}
#grid .completed-week-toggle strong{order:-1}

body.look-apple.background-air :is(#entries,.strength-entry-edit-content) .exercise-order-controls{grid-column:1/-1;grid-row:6;display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:4px}
.exercise-order-controls>span{margin-right:auto;font-size:12px;color:#73618c}
body.look-apple.background-air .exercise-order-controls button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:12px;border:0;border-radius:9px;background:#eee5f8;color:#614681}
.exercise-order-controls button:disabled{opacity:.35;cursor:default}
.exercise-order-controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.catalog-order-controls{display:inline-flex;align-items:center;gap:4px;margin-left:auto}
body.look-apple.background-air .catalog-order-controls button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:12px;border:0;border-radius:8px;background:#eee5f8;color:#614681}
.catalog-order-controls svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#exercise-groups .strength-category>summary{display:flex;align-items:center;gap:8px}
#exercise-groups .strength-exercise-title>.catalog-order-controls{margin-top:8px}
#exercise-dialog:not(.template-mode) .catalog-order-controls{display:none}
[hidden].exercise-volume,[hidden].initial-series-reps{display:none!important}

[hidden].strength-setting-check{display:none!important}
/* Quiet, consistent reorder affordances with unchanged touch targets. */
body.look-apple.background-air :is(.catalog-order-controls,.exercise-order-controls,.entry-order-actions) button{display:inline-grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:14px!important;border:0!important;border-radius:7px!important;background:transparent!important;box-shadow:none!important;color:#81768e!important}
body.look-apple.background-air :is(.catalog-order-controls,.exercise-order-controls,.entry-order-actions) button svg{width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.4!important}
body.look-apple.background-air :is(.catalog-order-controls,.exercise-order-controls,.entry-order-actions) button:hover:not(:disabled){background:#72518e0b!important;color:#614681!important}
body.look-apple.background-air :is(.catalog-order-controls,.exercise-order-controls,.entry-order-actions) button:focus-visible{outline:2px solid #80649c;outline-offset:-4px}
body.look-apple.background-air :is(.catalog-order-controls,.exercise-order-controls,.entry-order-actions) button:disabled{opacity:.25!important}
body.look-apple.background-air :is(#exercise-dialog,#editor,#catalog-dialog,.strength-entry-edit-dialog):is(#exercise-dialog,#editor,#catalog-dialog,.strength-entry-edit-dialog) :is(.catalog-order-controls,.exercise-order-controls,.entry-order-actions) button{background:transparent!important;box-shadow:none!important;color:#81768e!important}
body.look-apple.background-air :is(#exercise-dialog,#editor,#catalog-dialog,.strength-entry-edit-dialog):is(#exercise-dialog,#editor,#catalog-dialog,.strength-entry-edit-dialog) :is(.catalog-order-controls,.exercise-order-controls,.entry-order-actions) button:hover:not(:disabled){background:#72518e0b!important;color:#614681!important}
/* Catalog card ordering belongs to the top right, separate from editable values. */
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option:has(.catalog-order-controls){position:relative}
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .exercise-heading{grid-column:1/-1;box-sizing:border-box;min-height:44px;padding-right:96px}
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .catalog-order-controls{position:absolute;right:0;top:8px;margin:0!important}
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .exercise-values{grid-column:1/-1;justify-content:flex-end;margin-top:4px}
/* Local proposal: bounded strength previews, full content available in place. */
.strength-card-preview{position:relative;min-width:0;flex:none}
body.look-apple.background-air #grid .strength-card-preview>.event.strength{box-sizing:border-box;display:block;width:100%;margin:0!important}
body.look-apple.background-air #grid .strength-card-preview.has-overflow:not(.is-expanded)>.event.strength{max-height:200px!important;overflow:hidden!important;mask-image:linear-gradient(#000 calc(100% - 24px),transparent)}
body.look-apple.background-air #grid .strength-card-preview>.strength-card-expand{display:block;width:100%;min-height:44px;padding:8px 16px!important;margin:0;border:0;border-radius:0 0 9px 9px;background:#eee5f8;color:#614681;font:inherit;font-size:12px;line-height:1.35;text-align:left;white-space:normal;cursor:pointer}
#grid .strength-card-expand[hidden]{display:none!important}
@media(max-width:650px){body.look-apple.background-air #grid .strength-card-preview.has-overflow:not(.is-expanded)>.event.strength{max-height:180px!important}}
#grid .strength-card-expand{position:relative}
#grid .strength-card-expand::after{content:"";position:absolute;right:8px;top:18px;width:6px;height:6px;border-right:1.4px solid currentColor;border-bottom:1.4px solid currentColor;transform:rotate(45deg)}
#grid .strength-card-expand[aria-expanded="true"]::after{transform:rotate(225deg);top:21px}
/* Compact catalog cards: title/actions and values share the available width. */
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option:has(.catalog-order-controls){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:2px 12px!important;padding:10px 0!important;align-items:center!important}
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .exercise-heading{grid-column:1!important;grid-row:1!important;min-height:64px;padding-right:0!important;align-items:center!important}
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .exercise-values{grid-column:2!important;grid-row:1!important;align-self:end!important;margin:38px 0 0!important;gap:8px!important;padding:0!important}
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .catalog-order-controls{top:0!important;right:0!important}
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .strength-exercise-title{padding-right:4px}
body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .exercise-values button{min-height:34px!important}
@media(max-width:480px){body.look-apple.background-air #exercise-dialog.template-mode .exercise-option:has(.catalog-order-controls){grid-template-columns:minmax(0,1fr)!important;gap:0!important}body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .exercise-heading{grid-column:1!important;grid-row:1!important;padding-right:84px!important;min-height:54px}body.look-apple.background-air #exercise-dialog.template-mode .exercise-option .exercise-values{grid-column:1!important;grid-row:2!important;justify-content:flex-start!important;margin:2px 0 0 54px!important}}

/* Approved variant 1: one complete exercise preview and a quiet, explicit disclosure. */
#grid .strength-card-preview:not(.is-expanded) .is-extra-preview{display:none!important}
body.look-apple.background-air #grid .strength-card-preview.has-overflow:not(.is-expanded)>.event.strength{mask-image:none;border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
body.look-apple.background-air #grid .strength-card-preview>.strength-card-expand{padding:10px 30px 10px 16px!important;background:#e8dbf5!important;color:#64497c!important;border-top:1px solid #dfcfec!important;line-height:1.4}
#grid .strength-card-expand::after{right:16px;top:18px;width:7px;height:7px}
#grid .strength-card-expand[aria-expanded="true"]::after{top:21px}
body.look-apple.background-air #exercise-dialog .strength-category>summary{transition:background-color .15s ease;color:#503868}
body.look-apple.background-air #exercise-dialog .strength-category>summary:hover{background:#f4eef9!important}
@media(prefers-reduced-motion:no-preference){#exercise-dialog .strength-category[open]>fieldset{animation:base-disclosure-in .15s ease-out}@keyframes base-disclosure-in{from{opacity:.4;transform:translateY(-2px)}to{opacity:1;transform:translateY(0)}}}
@media(min-width:651px){body.look-apple.background-air #grid .strength-card-preview>.strength-card-expand{padding-right:16px!important}#grid .strength-card-expand::after{right:7px;width:6px;height:6px}}
/* One continuous card surface, including the disclosure action. */
body.look-apple.background-air #grid .strength-card-preview{border:1px solid #ddcdec;border-radius:9px;background:#eee5f8;overflow:hidden}
body.look-apple.background-air #grid .strength-card-preview>.event.strength{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.look-apple.background-air #grid .strength-card-preview>.strength-card-expand{border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;margin:0!important}
body.look-apple.background-air #grid .strength-card-preview>.strength-card-expand:hover{background:#61468108!important}

/* Shared transfer feedback, including the current day. */
body.look-apple #grid .cell.dragover{background:#f0ffd8!important;box-shadow:inset 0 0 0 2px #89af36!important}body.look-apple #grid .cell.dragover>.date{background:#e3f9b4!important}body.look-apple #grid .cell.transfer-arrived{box-shadow:inset 0 0 0 2px #89af36!important}

.assigned-exercise-name .exercise-documented{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-left:8px;vertical-align:middle;border-radius:50%;background:#eaf5ce;color:#456324;font-size:13px;font-weight:650;line-height:1;flex-shrink:0}

.strength-catalog-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.strength-catalog-toolbar button{margin:0!important;min-height:44px;padding:10px 16px!important}.strength-add-launch{background:#eee5f8!important;color:#503576!important;border:1px solid #dfd0ef!important}.strength-catalog-toolbar .manage-exercises{background:transparent!important;border:0!important;color:#6b5b80!important;font-size:13px!important}
#strength-create-dialog{width:calc(100% - 32px);max-width:540px;max-height:calc(100dvh - 48px);overflow:auto;color:#30253c}#strength-create-dialog .strength-create-body{padding-top:24px}#strength-create-dialog [hidden]{display:none!important}.strength-create-mode{display:flex;gap:4px;padding:4px;border-radius:10px;background:#f3f0f7;margin-bottom:24px}.strength-create-mode button{flex:1;margin:0!important;min-height:44px;border:0;background:transparent;padding:10px 16px}.strength-create-mode button[aria-pressed=true]{background:#fff;color:#503576;box-shadow:0 1px 4px #30253c12}.strength-create-values{margin:24px 0 0;padding:16px;border:1px solid #e8dff2;border-radius:10px}.strength-create-values legend{font-size:13px;font-weight:600;padding:0 6px}.strength-create-values label{display:flex;align-items:center;gap:10px;margin:0;min-height:44px}.strength-create-values input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:#7b5a9e}.strength-create-metrics{display:flex;gap:24px;flex-wrap:wrap}.strength-create-hint{font-size:13px;line-height:1.5;color:#786c83;margin-top:16px}.strength-create-status{font-size:13px;line-height:1.5;color:#8f3347}.strength-create-status:empty{display:none}#strength-create-dialog .base-dialog-footer{margin-top:24px}@media(max-width:500px){#strength-create-dialog{max-height:calc(100dvh - 32px)}.strength-catalog-toolbar{align-items:stretch}.strength-catalog-toolbar button{flex:1 1 auto}.strength-create-metrics{gap:16px}}
#strength-create-dialog .strength-create-mode button[aria-pressed="true"]{background:#fff!important;color:#503576!important;box-shadow:0 1px 4px #30253c20!important}#strength-create-dialog .strength-create-values input[type=checkbox]{accent-color:#7b5a9e!important}
#strength-create-dialog{overflow-x:hidden}

/* Framework plan: shared tab rail, variant 3. */
body.look-apple #week-planning-dialog .phase-view-tabs{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;padding:6px;margin:0 0 24px;background:#f3f3f6;border-radius:12px}
.phase-tab-list{display:flex;align-items:center;gap:4px;min-width:0}
body.look-apple #week-planning-dialog .phase-tab-list [role=tab]{border:0;border-radius:8px;background:transparent;color:#70747a;margin:0;min-height:44px;padding:10px 20px;white-space:nowrap;box-shadow:none}
body.look-apple #week-planning-dialog .phase-tab-list [aria-selected=true]{background:#fff;color:#30352b;font-weight:600;box-shadow:0 1px 4px #20232116}
body.look-apple #week-planning-dialog .phase-view-tabs .phase-create-action{margin:0 0 0 auto!important;border-radius:9px;min-height:44px}
@media(max-width:500px){body.look-apple #week-planning-dialog .phase-view-tabs{gap:8px;padding:5px}.phase-tab-list{gap:0}body.look-apple #week-planning-dialog .phase-tab-list [role=tab]{font-size:12px;padding:10px 16px}body.look-apple #week-planning-dialog .phase-view-tabs .phase-create-action{flex-basis:44px}}
body.look-apple #week-planning-dialog .phase-tab-list [role=tab][aria-selected=true]{background:#fff!important;color:#30352b!important;box-shadow:0 1px 4px #20232116!important}

#exercise-max-dialog{max-width:560px;max-height:calc(100dvh - 48px);overflow-y:auto;overflow-x:hidden}#exercise-max-history .max-history-chart{display:block;width:100%;height:auto;margin:12px 0 8px;background:#fbf9fd;border-radius:10px}#exercise-max-history .max-history-hint{display:block;color:#83758e;font-size:12px;line-height:1.5;margin:0 0 12px}#exercise-max-history .max-history-row{display:grid;grid-template-columns:1fr auto 44px;gap:12px;align-items:center;min-height:56px;border-bottom:1px solid #eee8f3;font-size:13px}#exercise-max-history time{color:#83758e;font-size:12px}body.look-apple #exercise-max-history .max-history-delete{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;margin:0;background:transparent;color:#a05c6b;border:0;box-shadow:none}body.look-apple .max-history-undo{margin:0 0 0 4px;padding:10px 16px;min-height:44px;background:#f1eaf8;color:#6d4c8c;border:0}#exercise-max-status:empty{display:none}@media(max-width:500px){#exercise-max-dialog{max-height:calc(100dvh - 32px)}#exercise-max-history .max-history-row{gap:8px;grid-template-columns:1fr auto 44px}#exercise-max-history time{font-size:11px}}

body.look-apple #exercise-form .strength-catalog-toolbar .strength-add-launch{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px!important;border:1px solid #dfd0ef!important;border-radius:9px;background:#eee5f8!important;color:#503576!important;font-size:14px;font-weight:500;white-space:nowrap;box-shadow:none}body.look-apple #exercise-form .strength-add-launch svg{display:block;flex:0 0 16px}body.look-apple #exercise-form .strength-add-launch:hover{background:#e6d8f3!important}body.look-apple #exercise-form .strength-add-launch:focus-visible{outline:2px solid #8867a7;outline-offset:3px}

body.look-apple #exercise-form .strength-catalog-toolbar .strength-add-launch{background:#d0fa69!important;color:#202322!important;border-color:#d0fa69!important}body.look-apple #exercise-form .strength-catalog-toolbar .strength-add-launch:hover{background:#c5ef60!important}body.look-apple #exercise-form .strength-catalog-toolbar .strength-add-launch:focus-visible{outline:2px solid #648435;outline-offset:3px}
/* Exercise catalog 3B: grouped rows with live values and real thumbnails. */
body.look-apple.background-air #exercise-dialog.catalog-list-mode{max-width:900px;overflow-x:hidden}
#exercise-dialog .catalog-list-tools[hidden],#exercise-dialog .strength-catalog-toolbar[hidden]{display:none!important}
#exercise-dialog.catalog-list-mode #exercise-form>h3{display:none}
.catalog-list-tools{margin:22px 0 16px}.catalog-search-label{margin:0}.catalog-search-label input{margin:0;min-height:44px}.catalog-group-filters{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.catalog-group-filters button{min-height:36px;padding:8px 16px;border:0;border-radius:20px;background:#f5f2f8;color:#84718f;font-size:12px}.catalog-group-filters button[aria-pressed=true]{background:#eee5f8!important;color:#55366e!important;font-weight:600}.catalog-list-result{font-size:13px;line-height:1.5;color:#8c7a98}.catalog-list-result:empty{display:none}.catalog-list-count{margin-right:auto;color:#8d8195;font-size:12px}.catalog-group-count{font-size:11px;color:#9b8ba7;margin-left:8px}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-category{border:0!important;border-radius:0!important;background:transparent!important;margin:16px 0 0!important;overflow:visible}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-category>summary{pointer-events:none;display:flex!important;justify-content:flex-start;gap:0;min-height:38px;padding:8px 14px!important;background:#faf7fd!important;border-radius:7px;color:#80658f;font-size:12px}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-category>summary::after{display:none!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-category>summary .catalog-order-controls{pointer-events:auto;margin-left:auto!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-category>fieldset{padding:0!important;margin:0!important;border:0!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-option:has(.catalog-order-controls){display:grid!important;grid-template-columns:minmax(0,1fr) auto 76px!important;gap:12px!important;min-height:94px;padding:12px 14px!important;border-bottom:1px solid #eee9f4!important;background:transparent!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-option .exercise-heading{grid-column:1!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:14px!important;min-height:64px;padding:0!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-exercise-title{min-width:0;padding:0!important;flex:1}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-thumbnail{width:64px!important;height:64px!important;flex:0 0 64px!important;margin:0!important;overflow:hidden;border-radius:8px!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-thumbnail img{width:100%;height:100%;object-fit:cover}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-values{grid-column:2!important;grid-row:1!important;align-self:center!important;display:flex!important;gap:20px!important;margin:0!important;padding:0!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-values>div{text-align:right;min-width:66px}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .value-caption{font-size:10px;color:#93849f}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-values button{background:transparent!important;border:0!important;color:#61417f!important;font-weight:600;padding:8px 0!important;min-height:36px!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-option .catalog-order-controls{position:absolute;top:50%!important;transform:translateY(-50%);right:0!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .catalog-untracked-label{display:none;color:#93849f;font-size:12px;line-height:1.4}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .catalog-untracked .catalog-untracked-label{display:block}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-option[hidden],body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-category[hidden]{display:none!important}
@media(max-width:500px){body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-option:has(.catalog-order-controls){grid-template-columns:minmax(0,1fr) 76px!important;padding:12px 4px!important;gap:8px!important}body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-option .exercise-heading{grid-column:1!important;grid-row:1!important;gap:10px!important;padding-right:0!important}body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-thumbnail{width:48px!important;height:48px!important;flex-basis:48px!important}body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-values{grid-column:2!important;grid-row:1!important;flex-direction:column;gap:4px!important;margin:0!important}body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-values button{min-height:32px!important;padding:4px 0!important;font-size:12px}body.look-apple.background-air #exercise-dialog.catalog-list-mode .exercise-option .catalog-order-controls{position:static!important;transform:none;grid-column:1/-1;margin-left:auto!important}body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-exercise-title>label{font-size:13px}body.look-apple.background-air #exercise-dialog.catalog-list-mode .catalog-list-count{display:none}}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .catalog-group-filters button{background:#f5f2f8!important;color:#84718f!important;border-radius:20px!important;min-height:36px!important;padding:8px 16px!important}body.look-apple.background-air #exercise-dialog.catalog-list-mode .catalog-group-filters button[aria-pressed=true]{background:#eee5f8!important;color:#55366e!important}body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-category>summary{min-height:38px!important}body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-category>summary .catalog-order-controls{height:32px}.catalog-list-mode .catalog-group-count{order:0}.catalog-list-mode .strength-category>summary .catalog-order-controls{order:1}
@media(max-width:500px){body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option:has(.catalog-order-controls){grid-template-columns:minmax(0,1fr) 76px!important;min-height:112px!important;gap:8px!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-heading{display:flex!important;grid-column:1!important;grid-row:1!important;padding:0!important;gap:10px!important;min-height:64px!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values{grid-column:2!important;grid-row:1!important;align-self:center!important;flex-direction:column!important;gap:4px!important;margin:0!important;padding:0!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .catalog-order-controls{position:static!important;transform:none!important;display:flex;justify-content:flex-end;margin:4px 0 0 auto!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .strength-thumbnail{width:48px!important;height:48px!important;flex:0 0 48px!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .strength-exercise-title{padding:0!important;flex:1!important;min-width:0!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values>div{min-width:0!important;width:100%}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .strength-exercise-note{font-size:11px}}
@media(max-width:500px){body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option>.catalog-order-controls{position:absolute!important;top:auto!important;bottom:0!important;right:80px!important;height:36px;transform:none!important;margin:0!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-heading{padding-bottom:20px!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .strength-exercise-title .strength-exercise-settings{margin-top:4px!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values{padding-bottom:16px!important}}
/* Catalog metric alignment: labels and values share the same right edge. */
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values{display:grid!important;grid-template-columns:repeat(2,84px)!important;align-items:start!important;justify-content:end!important;gap:12px!important;align-self:center!important;margin:0!important}
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values>div{display:flex!important;flex-direction:column;align-items:stretch!important;justify-content:flex-start;min-width:0!important;width:84px!important;text-align:right!important}
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values>div[hidden]{display:none!important}
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .value-caption{display:block!important;width:100%;text-align:right!important;line-height:16px;margin:0!important;padding:0!important}
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values button{display:block!important;width:100%!important;min-width:0!important;height:36px;min-height:36px!important;text-align:right!important;line-height:20px;margin:0!important;padding:8px 0!important;border:0!important;font-variant-numeric:tabular-nums}
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values>div:has([data-max-exercise]){grid-column:1}
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values>div:has([data-reference-exercise]){grid-column:2}
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .catalog-untracked-label{grid-column:1/-1;text-align:right}
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option>.catalog-order-controls{width:76px;justify-content:flex-end;top:50%!important;transform:translateY(-50%)!important}
@media(max-width:500px){body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values{grid-template-columns:76px!important;gap:4px!important;padding-bottom:16px!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values>div{grid-column:1!important;width:76px!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option>.catalog-order-controls{top:auto!important;transform:none!important;bottom:0!important;right:80px!important}body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode .exercise-option .exercise-values button{font-size:12px!important;height:32px;min-height:32px!important;padding:4px 0!important}}

body.look-apple.background-air :is(#entries,.strength-entry-edit-content) .exercise-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:0;grid-column:2;grid-row:1;align-self:start;height:44px;margin:-4px -8px 0 0}
body.look-apple.background-air :is(#entries,.strength-entry-edit-content) .exercise-card-actions .exercise-order-controls{display:flex;gap:0;grid-column:auto;grid-row:auto;margin:0!important;align-items:center;height:44px}
body.look-apple.background-air :is(#editor,.strength-entry-edit-dialog) :is(#entries,.strength-entry-edit-content) .exercise-card-actions .exercise-remove-text{display:inline-flex;align-items:center;justify-content:center;width:44px!important;min-width:44px!important;height:44px;min-height:44px;margin:0!important;padding:14px!important;grid-column:auto;grid-row:auto;background:transparent!important;border:0}
body.look-apple.background-air :is(#editor,.strength-entry-edit-dialog) :is(#entries,.strength-entry-edit-content) .assigned-exercises>li:has(.exercise-card-actions){grid-template-columns:minmax(0,1fr) auto!important;column-gap:8px}
body.look-apple.background-air :is(#editor,.strength-entry-edit-dialog) .assigned-exercises>li:has(.exercise-card-actions) .assigned-exercise-name{grid-column:1!important;grid-row:1!important;min-width:0;overflow-wrap:anywhere;align-self:center}

body.look-apple.background-air :is(#editor,.strength-entry-edit-dialog) :is(#entries,.strength-entry-edit-content) .assigned-exercises>li.is-documented{background:#f0f8e7!important;border-left:3px solid #86ab45!important}
body.look-apple.background-air :is(#editor,.strength-entry-edit-dialog) .is-documented .assigned-exercise-name{flex-wrap:wrap;gap:6px 8px;color:#3f5930}
body.look-apple.background-air .is-documented .assigned-exercise-name .exercise-documented{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;min-height:22px;flex-shrink:0;margin:0;padding:3px 8px;border-radius:6px;background:#d9edb9;color:#3e5f20;font-size:10px;font-weight:600;line-height:1.3;white-space:nowrap}
body.look-apple.background-air .is-documented .planned-volume :is(button,.set-rep-badge){background:#dcebc6!important;color:#47622e!important}

body.look-apple.background-air #grid .event.strength .strength-preview.is-documented{display:block;background:#e9f4da!important;border-left:2px solid #86ab45!important;border-radius:5px;padding:7px 6px!important;margin-top:8px;color:#45602e!important}body.look-apple.background-air #grid .strength-preview.is-documented .strength-preview-name{color:#3f5930!important}body.look-apple.background-air #grid .event.strength .strength-preview-documented{display:block!important;width:fit-content;max-width:100%;margin:5px 0!important;padding:3px 5px!important;border-radius:4px;background:#d9edb9;color:#3e5f20!important;font-size:10px!important;font-weight:600;line-height:1.35;white-space:normal!important}

body.look-apple.background-air #grid .event.strength .strength-preview-documented{font-size:9px!important;white-space:nowrap!important;padding:3px 4px!important}
/* Do not offer a shortcut back to the view that is already open. */
body.look-apple #exercise-dialog:is(.strength-templates-mode,.strength-template-editor) #open-strength-templates{display:none!important}
/* Fit the template overview to its content; creation lives in the header. */
body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor){width:calc(100% - 32px)!important;max-width:560px!important;min-height:0!important;height:auto!important;max-height:calc(100dvh - 48px)!important;overflow-x:hidden;overflow-y:auto;padding:24px!important}
body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .dialog-heading{margin-bottom:20px!important;padding-right:56px}
body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .strength-template-create{position:absolute;top:24px;right:76px;margin:0!important;width:44px;height:44px;min-height:44px;padding:0!important}
body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) #strength-template-list{margin:0!important;padding:0!important}
@media(max-width:500px){body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor){padding:20px!important;max-height:calc(100dvh - 32px)!important}body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .strength-template-create{top:20px;right:72px}body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .dialog-heading h2{font-size:19px}}
body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .dialog-heading{padding-right:0!important}body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .dialog-heading h2{padding-right:56px}
body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor){height:fit-content!important;inset:0!important;margin:auto!important;position:fixed!important;transform:none!important}
body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .strength-template-create{left:auto!important;bottom:auto!important;right:76px!important;top:24px!important;z-index:2}
@media(max-width:500px){body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .strength-template-create{right:72px!important;top:20px!important}}
body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .dialog-heading{margin:0 0 20px!important;padding:0!important;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px;box-sizing:border-box}
body.look-apple.background-air #exercise-dialog.strength-templates-mode:not(.strength-template-editor) .strength-template-create{z-index:100!important}

/* Keep calculator heading inside its own content grid. */
body.look-apple #strength-calculator-dialog>.dialog-heading{width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 24px!important;box-sizing:border-box!important;padding:0!important}
body.look-apple #strength-calculator-dialog .calculator-inputs{min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
body.look-apple #strength-calculator-dialog .calculator-inputs input{min-width:0;width:100%;box-sizing:border-box}
/* Catalog scroll belongs to the exercise list, between fixed controls. */
body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode{height:min(940px,calc(100dvh - 48px))!important;max-height:calc(100dvh - 48px)!important;overflow:hidden!important;box-sizing:border-box!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode #exercise-form{display:flex!important;flex-direction:column!important;min-height:0!important;height:100%!important;max-height:100%!important;overflow:hidden!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode #exercise-form>.dialog-heading{flex:0 0 auto;position:relative!important;top:auto!important;margin:0 0 24px!important;width:100%!important;padding:0!important;box-sizing:border-box!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .catalog-list-tools{flex:0 0 auto;margin-bottom:16px!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode #exercise-groups{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:12px!important;margin:0!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .strength-catalog-toolbar{position:static!important;flex:0 0 auto!important;width:100%!important;box-sizing:border-box!important;margin:0!important;padding:16px 0 0!important;border-top:1px solid #e6e3eb!important;background:#fff!important}
@media(max-width:500px){body.look-apple.background-air #exercise-dialog.template-mode.catalog-list-mode{height:calc(100dvh - 32px)!important;max-height:calc(100dvh - 32px)!important;padding-bottom:max(24px,env(safe-area-inset-bottom))!important}body.look-apple.background-air #exercise-dialog.catalog-list-mode #exercise-groups{padding-right:8px!important}}

/* Previous-session comparison stays neutral within each exercise. */
body.look-apple .assigned-exercises .exercise-comparison{grid-column:1/-1;width:100%;min-width:0;border-top:1px solid #ded8e8;margin-top:16px;padding-top:14px;color:#51435f}
body.look-apple .exercise-comparison h4{font-size:13px;line-height:1.4;margin:0 0 6px;font-weight:600}
body.look-apple .exercise-comparison p{font-size:11px;line-height:1.5;margin:0 0 10px;color:#6b6177}
body.look-apple .exercise-comparison table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px;font-variant-numeric:tabular-nums}
body.look-apple .exercise-comparison th,body.look-apple .exercise-comparison td{padding:8px 2px;border-bottom:1px solid #ded8e8;text-align:right;overflow-wrap:anywhere}
body.look-apple .exercise-comparison th:first-child{width:32%;text-align:left;font-weight:500}
body.look-apple .exercise-comparison thead th{font-weight:500;color:#6b6177}
body.look-apple .exercise-comparison td:last-child{font-weight:600}
body.look-apple .exercise-comparison .exercise-comparison-note{margin:10px 0 0;font-size:11px}
body.look-apple .assigned-exercises .is-documented .exercise-comparison{border-color:#cadcb9;color:#405831}
body.look-apple .assigned-exercises .is-documented .exercise-comparison :is(th,td){border-color:#cadcb9}
body.look-apple .assigned-exercises .is-documented .exercise-comparison p,body.look-apple .assigned-exercises .is-documented .exercise-comparison thead th{color:#596b4c}
/* Calculator is a compact, entirely visible sheet, with no scroll surface. */
body.look-apple #strength-calculator-dialog{overflow:hidden!important;max-height:calc(100dvh - 24px)!important;padding:20px 24px!important}
body.look-apple #strength-calculator-dialog>.dialog-heading{margin-bottom:20px!important}
body.look-apple #strength-calculator-dialog .percentage-details{margin-top:12px;padding-top:12px}
body.look-apple #strength-calculator-dialog .percentage-details h3{font-size:15px;margin:0 0 10px}
body.look-apple #strength-calculator-dialog .percentage-table :is(th,td){padding:5px 0}
body.look-apple #strength-calculator-dialog output{margin:12px 0!important}
@media(max-height:650px){body.look-apple #strength-calculator-dialog{padding:16px 20px!important}body.look-apple #strength-calculator-dialog>.dialog-heading{margin-bottom:12px!important}body.look-apple #strength-calculator-dialog .percentage-table :is(th,td){padding:3px 0}body.look-apple #strength-calculator-dialog output{margin:8px 0!important}body.look-apple #strength-calculator-dialog .percentage-details{padding-top:8px;margin-top:8px}}

body.look-apple .assigned-exercises .exercise-documentation-reset{grid-column:1/-1;justify-self:start;display:inline-flex!important;width:auto!important;min-height:44px!important;padding:10px 16px!important;margin:8px 0 0!important;border:0!important;background:transparent!important;color:#526b3d!important;font-size:12px!important;text-decoration:underline;text-underline-offset:3px}
body.look-apple .documentation-reset-notice{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:12px;color:#594471}
body.look-apple .documentation-reset-notice button{min-height:44px;padding:10px 16px!important;background:#d0fa69!important;color:#202422!important}

body.look-apple .exercise-repetitions-dialog{box-sizing:border-box;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;overflow:auto;background:#fff;border:0;border-radius:24px}
body.look-apple .exercise-repetitions-dialog .dialog-heading{margin:0 0 24px!important;padding:0!important;width:100%!important;box-sizing:border-box!important}
body.look-apple .exercise-repetitions-dialog h2{font-size:20px;line-height:1.3;padding-right:48px}
body.look-apple .repetition-modes{display:flex;gap:4px;background:#f3f1f6;padding:4px;border-radius:10px;margin-bottom:20px}
body.look-apple .repetition-modes button{flex:1;min-height:44px;padding:10px 16px!important;font-size:13px;background:transparent!important;border:0!important;color:#675576!important}
body.look-apple .repetition-modes button[aria-pressed=true]{background:#fff!important;color:#49335f!important;box-shadow:0 1px 4px #25202f18}
body.look-apple .repetition-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.look-apple .repetition-fields label{margin:0!important;min-width:0;font-size:13px;color:#675576}
body.look-apple .repetition-fields input{display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:6px;min-height:44px}
body.look-apple .exercise-repetitions-dialog .base-dialog-footer{margin-top:24px!important;padding-top:16px!important;border-top:1px solid #e6e3eb!important}
body.look-apple .exercise-repetitions-dialog [role=status]:empty{display:none}
body.look-apple.background-air .exercise-repetitions-dialog .repetition-modes button{background:transparent!important;color:#675576!important}
body.look-apple.background-air .exercise-repetitions-dialog .repetition-modes button[aria-pressed=true]{background:#fff!important;color:#49335f!important;box-shadow:0 1px 4px #25202f18}

/* Remove the planning-check entry point. */
body.look-apple .base-optimize-launch{display:none!important}
/* Catalog-only helper labels must never leak into training selection. */
.catalog-untracked-label{display:none!important}
body.look-apple.background-air #exercise-dialog.catalog-list-mode .catalog-untracked .catalog-untracked-label{display:block!important}
@media(max-width:500px){
 body.look-apple.background-air :is(#exercise-dialog,#day-strength-panel):not(.template-mode) .exercise-option,body.look-apple.background-air :is(#exercise-dialog,#day-strength-panel):not(.template-mode) .exercise-option:has(input[name=exercise]:checked){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important}
 body.look-apple.background-air :is(#exercise-dialog,#day-strength-panel):not(.template-mode) .exercise-heading{width:100%!important;min-width:0!important;flex:0 0 auto!important}
 body.look-apple.background-air :is(#exercise-dialog,#day-strength-panel):not(.template-mode) .exercise-heading label{width:100%!important;min-width:0!important;word-break:normal!important;overflow-wrap:break-word!important}
 body.look-apple.background-air :is(#exercise-dialog,#day-strength-panel):not(.template-mode) .exercise-heading input[type=checkbox]{flex:0 0 20px!important}
 body.look-apple.background-air :is(#exercise-dialog,#day-strength-panel):not(.template-mode) .exercise-values{display:flex;flex-wrap:wrap;gap:12px!important;align-self:stretch!important;width:100%!important;min-width:0!important;margin:0!important;padding:0 0 0 32px!important;box-sizing:border-box!important}
 body.look-apple.background-air :is(#exercise-dialog,#day-strength-panel):not(.template-mode) .exercise-option:not(:has(input[name=exercise]:checked)) .exercise-values{display:none!important}
 body.look-apple.background-air :is(#exercise-dialog,#day-strength-panel):not(.template-mode) .exercise-option .exercise-volume{width:100%!important;min-width:0!important;box-sizing:border-box!important}
}
/* Quiet deletion: retain the 44 px target without a filled danger surface. */
body.look-apple.background-air #exercise-max-dialog #exercise-max-history button.max-history-delete.base-delete-action,body.look-apple.background-air #exercise-max-dialog #exercise-max-history button.max-history-delete{background:transparent!important;color:#8d7d98!important;border:0!important;box-shadow:none!important;padding:0!important}
body.look-apple.background-air #exercise-max-dialog #exercise-max-history button.max-history-delete:hover{background:#f6eff3!important;color:#b24860!important}
body.look-apple #reference-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;overflow-x:hidden;padding:24px!important}
body.look-apple #reference-dialog #reference-form{min-width:0!important;width:100%!important;box-sizing:border-box!important}
body.look-apple #reference-dialog .dialog-heading{margin:0 0 24px!important;padding:0!important;width:100%!important;box-sizing:border-box!important}
body.look-apple #reference-dialog input{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.look-apple #reference-history .max-history-chart{display:block;width:100%;height:auto;margin:12px 0 8px;background:#fbf9fd;border-radius:10px}
body.look-apple #reference-history .max-history-hint{display:block;color:#83758e;font-size:12px;line-height:1.5;margin-bottom:12px}
body.look-apple #reference-dialog #reference-history{max-height:none!important;overflow:visible!important}
/* Align bike creation actions to the same inset as the fields. */
body.look-apple.background-air #day-bike-dialog>.bike-create-footer{box-sizing:border-box!important;width:100%!important;left:auto!important;right:auto!important;margin:0!important;padding:16px 24px calc(24px + env(safe-area-inset-bottom,0px))!important;display:flex!important;justify-content:flex-end!important;gap:12px!important}
body.look-apple.background-air #day-bike-dialog>.bike-create-footer button{margin:0!important;min-height:44px!important;padding:10px 16px!important}
/* Four-minute rest timer: shared state and quick access across training dialogs. */
body.look-apple .base-rest-launch{display:inline-flex!important;align-items:center!important;justify-content:center;gap:7px;min-height:40px!important;padding:8px 16px!important;flex:0 0 auto;width:auto!important;margin:0!important;background:#f2f0f5!important;color:#51425f!important;border:0!important;border-radius:9px!important;font-size:12px!important;white-space:nowrap!important;position:relative!important;inset:auto!important}
body.look-apple .base-rest-launch svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}
body.look-apple .base-rest-launch.is-running{background:#d0fa69!important;color:#202422!important;font-variant-numeric:tabular-nums}
body.look-apple dialog .dialog-heading>.base-rest-launch{margin-left:auto!important;margin-right:48px!important;align-self:center!important}
body.look-apple #base-rest-timer{position:fixed;inset:auto 24px 24px auto;box-sizing:border-box;width:300px;max-width:calc(100% - 32px);padding:20px 20px 24px;margin:0;border:1px solid #e5e0eb;border-radius:16px;background:#fff;color:#26232c;box-shadow:0 12px 40px #1d172126;font-family:inherit}
body.look-apple #base-rest-timer::backdrop{background:transparent;pointer-events:none}
.rest-timer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
body.look-apple #base-rest-timer .rest-timer-hide{display:flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;width:40px;height:40px;padding:10px!important;background:#f4f3f6!important;color:#6b6175!important;border:0!important;border-radius:50%}
.rest-timer-hide svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.5;fill:none}
.rest-timer-time{font-size:56px;font-weight:600;line-height:1.1;letter-spacing:-2px;font-variant-numeric:tabular-nums;margin:20px 0 8px}
body.look-apple #base-rest-timer .rest-timer-caption{font-size:13px;line-height:1.5;color:#706678;margin:0 0 24px}
.rest-timer-actions{display:flex;gap:8px;flex-wrap:wrap}
body.look-apple #base-rest-timer .rest-timer-actions button{min-height:44px;padding:10px 16px!important;border:0!important;border-radius:8px;font-size:13px;flex:1}
body.look-apple #base-rest-timer .rest-timer-toggle{background:#d0fa69!important;color:#202422!important}
body.look-apple #base-rest-timer .rest-timer-restart{background:#f2eff6!important;color:#5b466c!important}
body.look-apple #base-rest-timer .rest-timer-restart[hidden]{display:none!important}
#base-rest-timer.is-finished .rest-timer-time{color:#567b2d}
@media(max-width:500px){body.look-apple #base-rest-timer{inset:auto 16px max(24px,env(safe-area-inset-bottom)) auto;width:calc(100% - 32px)}body.look-apple dialog .dialog-heading>.base-rest-launch{padding:10px!important;min-width:40px!important;margin-right:44px!important}body.look-apple dialog .dialog-heading>.base-rest-launch span{display:none}body.look-apple dialog .dialog-heading>.base-rest-launch.is-running span{display:inline}body.look-apple dialog .dialog-heading>.base-rest-launch.is-running svg{display:none}}

/* Use the mobile header width and give Today a direct training destination. */
@media(max-width:500px){
 body.look-apple.background-air:not(.auth-screen) main>header{grid-template-columns:minmax(0,1fr) 88px auto!important;gap:10px 8px!important;padding:12px!important}
 body.look-apple.background-air:not(.auth-screen) main>header>div:first-child{grid-column:1/3!important;grid-row:1!important;min-width:0}
 body.look-apple.background-air:not(.auth-screen) main>header #today{grid-column:3!important;grid-row:1!important;justify-self:stretch;min-height:44px!important;padding:10px 16px!important}
 body.look-apple.background-air:not(.auth-screen) main>header .reference-views{grid-column:1!important;grid-row:2!important;width:100%!important;display:flex!important;gap:4px!important}
 body.look-apple.background-air:not(.auth-screen) main>header .reference-views button{flex:1!important;min-width:0!important;padding:10px 16px!important;min-height:44px!important;font-size:13px!important}
 body.look-apple.background-air:not(.auth-screen) main>header .reference-arrows{grid-column:2!important;grid-row:2!important;display:flex;gap:0!important;width:88px!important}
 body.look-apple.background-air:not(.auth-screen) main>header .reference-arrows button{width:44px!important;min-width:44px!important;min-height:44px!important}
 body.look-apple.background-air:not(.auth-screen) main>header>.base-rest-launch{grid-column:3!important;grid-row:2!important;min-width:44px!important;min-height:44px!important;padding:10px!important;justify-self:stretch}
 body.look-apple.background-air:not(.auth-screen) main>header>.base-rest-launch span{display:none}
 body.look-apple.background-air:not(.auth-screen) main>header>.base-rest-launch.is-running span{display:inline}
 body.look-apple.background-air:not(.auth-screen) main>header>.base-rest-launch.is-running svg{display:none}
}

/* Recorded state and undo form one compact, quiet status control. */
body.look-apple .assigned-exercises .exercise-documentation-status{display:inline-flex;align-items:center;gap:2px;vertical-align:middle;max-width:100%;margin-left:6px}
body.look-apple .assigned-exercises .exercise-documentation-status .exercise-documented{margin:0!important;white-space:nowrap}
body.look-apple.background-air #entries .assigned-exercises .exercise-documentation-status button.exercise-documentation-reset{display:inline-flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:12px!important;margin:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#71845e!important;text-decoration:none!important;box-shadow:none!important;vertical-align:middle}
body.look-apple.background-air #entries .assigned-exercises .exercise-documentation-status button.exercise-documentation-reset:hover{background:#e0edcf!important;color:#405831!important}
body.look-apple.background-air #entries .assigned-exercises .exercise-documentation-status button.exercise-documentation-reset svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:500px){body.look-apple .assigned-exercises .exercise-documentation-status{display:flex;width:fit-content;margin-left:0;gap:4px}}

/* Max and reference values share one dialog and history presentation. */
body.look-apple :is(#exercise-max-dialog,#reference-dialog){box-sizing:border-box;width:min(560px,calc(100vw - 32px))!important;max-width:560px!important;padding:24px!important;max-height:calc(100dvh - 32px);overflow-x:hidden}
body.look-apple :is(#exercise-max-dialog,#reference-dialog) .dialog-heading{width:100%!important;margin:0 0 24px!important;padding:0!important;box-sizing:border-box!important}
body.look-apple :is(#exercise-max-dialog,#reference-dialog) h2{font-size:20px!important;line-height:1.3!important;letter-spacing:-.4px}
body.look-apple :is(#exercise-max-dialog,#reference-dialog) h3{font-size:15px!important;line-height:1.4!important;margin:24px 0 12px!important}
body.look-apple :is(#exercise-max-dialog,#reference-dialog) label{font-size:13px!important;line-height:1.5!important}
body.look-apple :is(#exercise-max-dialog,#reference-dialog) input{font-size:16px!important;min-height:44px!important;width:100%;min-width:0;box-sizing:border-box}
body.look-apple :is(#exercise-max-history,#reference-history) .max-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:12px;align-items:center;min-height:56px;border-bottom:1px solid #eee8f3;font-size:13px!important;color:#61417f}
body.look-apple :is(#exercise-max-history,#reference-history) .max-history-row strong{font-size:13px!important;font-weight:600!important}
body.look-apple :is(#exercise-max-history,#reference-history) .max-history-row time{color:#83758e;font-size:12px!important;line-height:1.4}
body.look-apple.background-air :is(#exercise-max-history,#reference-history) button.max-history-delete{display:inline-flex!important;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;background:transparent!important;color:#8d7d98!important;border:0!important;box-shadow:none!important}
body.look-apple.background-air :is(#exercise-max-history,#reference-history) button.max-history-delete:hover{background:#f6eff3!important;color:#b24860!important}
body.look-apple :is(#exercise-max-status,#reference-status):empty{display:none}
@media(max-width:500px){body.look-apple :is(#exercise-max-history,#reference-history) .max-history-row{gap:8px}body.look-apple :is(#exercise-max-history,#reference-history) .max-history-row time{font-size:11px!important}}
body.look-apple #base-rest-timer .rest-timer-toggle:disabled{opacity:.45!important;cursor:default!important}
body.look-apple #base-rest-timer .rest-timer-restart{order:-1}

/* Cycling is configured directly; templates are temporarily outside the UI. */
body.look-apple #open-bike-templates,body.look-apple #open-bike-values,body.look-apple #bike-dialog #bike-template-config,body.look-apple #bike-dialog #bike-trainings,body.look-apple #bike-dialog>h3,body.look-apple #day-bike-template,body.look-apple label:has(>#day-bike-template){display:none!important}
body.look-apple.background-air #bike-dialog.bike-values-only{box-sizing:border-box!important;width:min(520px,calc(100vw - 32px))!important;max-width:520px!important;padding:24px!important;max-height:calc(100dvh - 32px)!important;overflow-x:hidden!important;overflow-y:auto!important}
body.look-apple.background-air #bike-dialog.bike-values-only>.dialog-heading{box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:0 0 24px!important;padding:0!important;top:0!important;background:#fff!important}
body.look-apple.background-air #bike-dialog.bike-values-only>.dialog-heading h2{font-size:20px!important;line-height:1.3!important;letter-spacing:-.4px!important}
body.look-apple.background-air #bike-dialog.bike-values-only #bike-profile-form{display:block!important;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;margin:0!important;color:#30343a!important;min-width:0!important}
body.look-apple.background-air #bike-dialog.bike-values-only>.bike-profile-panel{display:none!important}
body.look-apple.background-air #bike-dialog.bike-values-only #bike-profile-form .calculator-inputs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;margin:0!important}
body.look-apple.background-air #bike-dialog.bike-values-only #bike-profile-form label{margin:0!important;min-width:0!important;font-size:13px!important;line-height:1.5!important}
body.look-apple.background-air #bike-dialog.bike-values-only #bike-profile-form input{box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;margin-top:6px!important;font-size:16px!important}
body.look-apple.background-air #bike-dialog.bike-values-only .profile-history-panel{background:transparent!important;border:0!important;margin:24px 0 0!important;padding:0!important}
body.look-apple.background-air #bike-dialog.bike-values-only #bike-profile-form details{margin:24px 0 0!important;padding:0!important;border:0!important;border-top:1px solid #e5e3e9!important;border-radius:0!important;background:transparent!important}
body.look-apple.background-air #bike-dialog.bike-values-only #bike-profile-form summary{padding:16px 0!important;min-height:48px!important;font-size:13px!important;line-height:1.5;color:#64717a!important}
body.look-apple.background-air #bike-dialog.bike-values-only #profile-history>p{margin:0!important;padding:12px 0!important;font-size:13px!important;line-height:1.5;border-bottom:1px solid #eeeef1}
body.look-apple.background-air #bike-dialog.bike-values-only #profile-history>p strong{font-size:13px!important;display:block}
body.look-apple.background-air #bike-dialog.bike-values-only #profile-history>p span{font-size:11px!important;line-height:1.5;color:#747881!important;display:block;margin-top:4px}
body.look-apple.background-air #bike-dialog.bike-values-only #profile-status:empty{display:none!important}
body.look-apple #day-bike-picker #day-bike-description{margin:6px 0 16px!important;font-size:12px!important;line-height:1.5;color:#68747c!important}
body.look-apple #day-bike-picker #day-bike-description:empty{display:none!important}

/* Strength planning scrolls the exercise list, leaving the surrounding controls fixed. */
body.look-apple.background-air #exercise-dialog.strength-planning-mode:not(.strength-templates-mode):not(.strength-template-editor){box-sizing:border-box!important;height:calc(100dvh - 48px)!important;max-height:calc(100dvh - 48px)!important;overflow:hidden!important;padding:24px!important}
body.look-apple.background-air #exercise-dialog.strength-planning-mode:not(.strength-templates-mode):not(.strength-template-editor) #exercise-form{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form>.dialog-heading{position:relative!important;top:auto!important;box-sizing:border-box!important;width:100%!important;margin:0 0 24px!important;padding:0!important;flex:0 0 auto}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-groups{flex:1 1 auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;scrollbar-gutter:stable;overscroll-behavior:contain;padding-right:12px!important;margin:16px 0 0!important}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .exercise-volume{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px!important;width:100%;min-width:0}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .volume-choice-buttons{display:flex!important;flex-wrap:wrap!important;gap:6px!important;isolation:auto!important}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .volume-choice-buttons>button,body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .volume-choice-buttons>button+button{margin:0!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0!important;border-radius:50%!important;box-shadow:none!important}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .volume-choice-buttons>button[aria-pressed=true]{box-shadow:inset 0 0 0 1px #ad8ad2!important}
body.look-apple.background-air #exercise-dialog.strength-planning-mode .volume-choice-label{display:block;margin-bottom:8px!important}
@media(max-width:500px){body.look-apple.background-air #exercise-dialog.strength-planning-mode:not(.strength-templates-mode):not(.strength-template-editor){height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;padding:20px!important}body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .volume-choice-buttons>button,body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .volume-choice-buttons>button+button{flex-basis:40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;max-height:40px!important}}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-groups{display:block!important}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-groups>.strength-category{flex:none!important;height:auto!important;max-height:none!important;overflow:visible!important;margin-bottom:16px!important}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .exercise-volume[hidden]{display:none!important}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .volume-choice:last-child .volume-choice-buttons{display:grid!important;grid-template-columns:repeat(6,36px)!important;justify-content:start}
@media(max-width:500px){body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .volume-choice:last-child .volume-choice-buttons{grid-template-columns:repeat(5,40px)!important}}
/* Keep the rest shortcut with the dialog actions. */
#editor .dialog-heading{justify-content:flex-start!important;gap:10px!important}#editor .dialog-heading h2{margin-right:auto!important}#editor .dialog-heading .base-rest-launch{margin:0!important;flex:none;min-height:40px;padding:8px 16px!important}#editor .dialog-heading .dialog-close{margin-left:0!important;flex:none}
/* All repetitions in a single, slightly overlapping row. */
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .exercise-volume .volume-choice .volume-choice-buttons{display:flex!important;flex-wrap:nowrap!important;gap:0!important;isolation:isolate;width:100%}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .exercise-volume .volume-choice .volume-choice-buttons button{flex:0 0 36px!important;width:36px!important;min-width:36px!important;margin:0 -3px 0 0!important;padding:0!important;position:relative}
body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .exercise-volume .volume-choice .volume-choice-buttons button[aria-pressed=true],body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .exercise-volume .volume-choice .volume-choice-buttons button:focus-visible{z-index:2}
.bike-recent-picker{margin:8px 0 18px;font-size:13px}.bike-recent-picker summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#426376}.bike-recent-picker>div{max-height:220px;overflow:auto}.bike-recent-picker button{display:block;width:100%;text-align:left;padding:12px 16px!important;margin:0 0 6px!important;min-height:56px;white-space:normal}.bike-recent-picker button strong,.bike-recent-picker button span{display:block}.bike-recent-picker button span{font-size:12px;margin-top:4px;color:#727780}
@media(max-width:650px){body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .exercise-volume .volume-choice .volume-choice-buttons button{flex-basis:26px!important;width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;max-height:26px!important;max-width:26px!important;margin-right:min(-3px,calc((100% - 312px)/11))!important}body.look-apple.background-air #exercise-dialog.strength-planning-mode #exercise-form .exercise-volume .volume-choice .volume-choice-buttons button:last-child{margin-right:0!important}}
/* Compact set picker, matching the planning controls. */
body.look-apple.background-air .planned-volume-dialog{width:min(360px,calc(100vw - 32px));padding:24px!important;box-sizing:border-box;overflow:hidden}
body.look-apple.background-air .planned-volume-dialog .dialog-heading{margin:0 0 20px!important;padding:0!important;gap:12px}
body.look-apple.background-air .planned-volume-dialog h2{font-size:20px;line-height:1.3}
body.look-apple.background-air .planned-volume-dialog .volume-choice-label{font-size:12px;display:block;margin-bottom:10px}
body.look-apple.background-air .planned-volume-dialog .volume-choice-buttons{display:flex!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:0!important;isolation:isolate}
body.look-apple.background-air .planned-volume-dialog .volume-choice-buttons>button,body.look-apple.background-air .planned-volume-dialog .volume-choice-buttons>button+button{flex:0 0 40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:40px!important;min-height:40px!important;margin:0 -4px 0 0!important;padding:0!important;border-radius:50%!important;position:relative;box-shadow:none!important}
body.look-apple.background-air .planned-volume-dialog .volume-choice-buttons>button[aria-pressed=true]{z-index:2;box-shadow:inset 0 0 0 1px #ad8ad2!important}

/* Group creation lives alongside the catalog filters. */
#exercise-dialog .catalog-filter-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:12px}
#exercise-dialog .catalog-filter-row .catalog-group-filters{flex:1;min-width:0;margin:0!important}
body.look-apple.background-air #exercise-dialog .catalog-add-group{flex:none;white-space:nowrap;min-height:44px;margin:0!important;padding:10px 16px!important;font-size:13px}
#strength-create-dialog .strength-create-mode{display:none!important}
@media(max-width:650px){#exercise-dialog .catalog-filter-row{flex-wrap:wrap}#exercise-dialog .catalog-filter-row .catalog-group-filters{flex-basis:100%}#exercise-dialog .catalog-add-group{margin-left:auto!important}}
