/* Shared production screens matching the approved mobile review. */
.mobile-nav>button{font-size:10px}.mobile-nav .nav-symbol svg{width:24px;height:24px}.library-tabs{display:flex;margin-bottom:20px}.library-tabs button{flex:1;font-size:16px;min-height:38px}.home-experience{max-width:720px;margin:auto;gap:24px}.home-experience .hero-start{display:flex;flex-direction:column;gap:4px}.home-experience .hero-start small{display:block}.home-experience .card{margin:0}.upcoming-card{display:block;width:100%;text-align:left;min-width:0}.upcoming-meta{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:13px;margin-bottom:9px}.upcoming-name{display:flex;justify-content:space-between;align-items:center;font-size:23px;font-weight:500;margin-bottom:6px}.upcoming-name svg{width:18px;height:18px;color:var(--accent)}.upcoming-exercises{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--muted);font-size:14px;line-height:1.5}.upcoming-people{display:flex;align-items:center;gap:7px;font-size:14px;margin-top:10px}.upcoming-people svg{width:17px;height:17px;color:var(--accent)}
.calendar-grid .day { position:relative; }
.calendar-grid .day.today {
    background:transparent;
    color:#fff;
    isolation:isolate;
}
.calendar-grid .day.today::before {
    content:"";
    position:absolute;
    inline-size:min(36px, 100%);
    aspect-ratio:1;
    border-radius:10px;
    background:#6962db;
    inset-block-start:50%;
    inset-inline-start:50%;
    transform:translate(-50%, -50%);
    z-index:-1;
}
.week-row{display:flex;align-items:center;gap:13px;min-height:68px;padding:10px 0;border-top:1px solid var(--line)}.week-date{width:44px;min-width:44px;height:44px;flex:0 0 44px;padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:11px}.week-date.is-today{background:#6962db;color:#fff}.week-date small{font-size:11px;color:var(--muted)}.week-date.is-today small{color:#e6e3ff}.week-date strong{font-size:22px;font-weight:400;line-height:1.1}.week-content{flex:1}.week-event{width:100%;display:flex;justify-content:space-between;align-items:center;padding:8px 0;text-align:left;gap:8px;min-height:48px}.week-event-text{min-width:0}.week-event strong{display:block;font-size:17px;font-weight:500}.week-event time{font-size:14px;font-weight:400;color:var(--accent);margin-right:9px}.week-event small{display:flex;align-items:center;gap:5px;font-size:13px;color:var(--muted);margin-top:3px}.week-event small svg{width:14px;height:14px}.week-event>.ui-icon{width:16px;height:16px;color:var(--muted);flex:none}.week-empty{display:flex;align-items:center;justify-content:space-between;font-size:14px;color:var(--muted)}.week-empty .icon-btn{background:none;border:0;color:var(--muted)}
.template-open{display:block;padding:0 28px 0 0;text-align:left;width:100%;min-width:0}.template-open .template-name{display:block;margin-bottom:5px}.template-open small{display:block;margin-bottom:10px}.template-open .template-examples{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:-15px;margin-top:0}.template-card{position:relative;min-width:0}.template-more{position:absolute;right:8px;top:8px;color:var(--muted);border:0;background:none}.template-exercise{padding:16px 0;border-bottom:1px solid var(--line)}.template-exercise:first-child{padding-top:0}.template-exercise:last-of-type{border-bottom:0;margin-bottom:16px}.template-exercise .equipment-image{width:48px;height:48px;flex-basis:48px}.template-exercise .icon-btn{width:32px;min-width:32px;background:none;border:0}.template-exercise .text-btn{margin-left:60px;min-height:40px}.preset-preview{display:block;margin:0 0 0 60px;color:var(--muted);font-size:13px}.profile-identity{margin-bottom:24px}.profile-identity .avatar{width:54px;height:54px;font-size:20px}.profile-identity h2{margin:0}.profile-number{display:flex;flex-direction:column;gap:8px}.number-selector{height:46px;min-height:46px;background:var(--soft);border:1px solid var(--line);border-radius:11px;text-align:left;padding:10px 12px;font-size:16px}.number-picker{display:flex!important;position:relative;gap:8px;align-items:center}.number-picker .wheel-scroll{flex:1;min-width:70px}.number-picker .wheel-unit{flex:none}.number-picker .wheel-selection{position:absolute;left:0;right:0;top:80px;height:40px;pointer-events:none}.compact-weight-progress .section-head{margin-bottom:0}.compact-weight-progress .section-head h2{font-size:17px}.compact-weight-progress .chart{height:75px;margin-top:0}.compact-weight-value{font-size:26px;font-weight:400}.compact-weight-value small{font-size:14px}.compact-weight-progress>.row small{font-size:13px;color:var(--muted)}
/* Each exercise is an independent card. Header and history have separate targets. */
.native-exercises{background:transparent;border:0;border-radius:0;padding:0;overflow:visible}.workout-card{background:var(--white)!important;border-radius:16px;padding:18px 16px;margin-bottom:24px}.workout-card+.workout-card:before{display:none}.exercise-card-heading{display:grid;grid-template-columns:60px minmax(0,1fr) 32px;grid-template-rows:44px 8px 44px;column-gap:10px;align-items:center;margin-bottom:12px}.exercise-collapse-icon{grid-column:1;grid-row:1/4;align-self:start;display:grid;place-items:center;width:60px;height:64px;padding:0;margin-top:4px}.exercise-collapse-icon .equipment-image,.exercise-collapse-icon .exercise-icon{width:60px;height:60px;flex-basis:60px}.exercise-collapse-title{grid-column:2;grid-row:1;padding:0;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;min-height:44px}.exercise-collapse-title .exercise-name{display:block;font-size:18px;font-weight:500;line-height:1.3}.exercise-collapse-title small{display:block;font-size:13px;color:var(--muted);margin-top:2px}.exercise-collapse-title>.ui-icon{width:15px;height:15px;color:var(--muted)}.exercise-menu{grid-column:3;grid-row:1;width:32px;min-width:32px;height:44px;min-height:44px;background:none;border:0;color:var(--muted)}.exercise-history-toggle{grid-column:2/4;grid-row:3;display:flex;align-items:center;gap:10px;min-height:44px;padding:0;font-size:14px;text-align:left;color:var(--accent)}.exercise-history-toggle .ui-icon{width:23px;height:23px}.exercise-history-toggle[aria-pressed=true]{color:var(--accent)}.workout-card.is-collapsed{padding-block:12px}.is-collapsed .exercise-card-heading{grid-template-rows:56px;margin:0}.is-collapsed .exercise-collapse-icon{grid-row:1;margin:0;height:56px}.is-collapsed .exercise-collapse-icon .equipment-image,.is-collapsed .exercise-collapse-icon .exercise-icon{width:52px;height:52px}.is-collapsed .exercise-collapse-title{min-height:56px}.is-collapsed .exercise-collapse-title small{display:none}.is-collapsed .exercise-collapse-title>.ui-icon{transform:rotate(-90deg)}.is-collapsed .exercise-history-toggle{display:none}.current-exercise-body[hidden]{display:none!important}.previous-exercise-body{display:flex;flex-direction:column;min-width:0}.empty-exercise-history{display:grid;place-items:center;flex:1;color:var(--muted);font-size:16px}.exercise-record{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border-radius:10px;background:var(--accent-light);margin-bottom:12px;min-height:54px;flex:none}.exercise-record>span:first-child{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--accent)}.exercise-record svg{width:16px;height:16px}.exercise-record>span:last-child{text-align:right}.exercise-record strong{display:block;font-size:19px;font-weight:400}.exercise-record small{display:block;font-size:11px;color:var(--muted)}.exercise-history-scroll{width:100%;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;touch-action:pan-x pan-y;padding-bottom:5px;flex:none}.exercise-history-scroll::-webkit-scrollbar{height:3px}.exercise-history-scroll::-webkit-scrollbar-track{background:transparent}.exercise-history-scroll::-webkit-scrollbar-thumb{background:var(--line);border-radius:5px}.exercise-history-table{--history-col:65px;table-layout:fixed;border-collapse:separate;border-spacing:0;width:max-content;font-size:13px;font-variant-numeric:tabular-nums;margin:0}.exercise-history-table th,.exercise-history-table td{width:var(--history-col);min-width:var(--history-col);max-width:var(--history-col);padding:0 4px;text-align:center;white-space:nowrap}.exercise-history-table thead th{font-size:11px;font-weight:400;color:var(--muted);height:28px}.exercise-history-table tbody th,.exercise-history-table td{height:34px;border-top:1px solid var(--line)}.exercise-history-table th:first-child{position:sticky;left:0;background:var(--white);z-index:1;min-width:66px;max-width:66px;width:66px;text-align:left;padding-left:0;font-size:12px;font-weight:400;color:var(--muted)}.exercise-history-table tbody tr:first-child td{color:var(--accent)}.exercise-history-table td span{font-size:11px;color:var(--muted);margin:0 1px}.full-exercise-history{display:flex;justify-content:flex-end;align-items:center;gap:5px;min-height:40px;margin-top:auto;padding:4px 0 0;font-size:14px;color:var(--accent);flex:none}.full-exercise-history svg{width:16px;height:16px}.full-history-heading{margin-bottom:24px}.full-history-heading h2{margin:0}.full-history-heading .equipment-image{width:56px;height:56px;flex-basis:56px}.full-history-card{padding:16px}.exercise-transition{margin-bottom:24px}
.tools-page{max-width:600px;margin:auto}.tools-tabs{display:flex;margin-bottom:24px}.tools-tabs button{flex:1}.tool-main{text-align:center}.tool-label{font-size:17px;color:var(--muted);margin:4px 0 24px}.tool-clock{width:240px;height:240px;aspect-ratio:1;max-width:100%;border:3px solid var(--accent);border-radius:50%;margin:0 auto 18px;display:flex;align-items:center;justify-content:center;flex-direction:column;font-variant-numeric:tabular-nums}.tool-clock>span{font-size:44px;font-weight:400;letter-spacing:-1px}.tool-clock>small{font-size:20px;color:var(--muted)}.tool-actions{display:flex;gap:12px;margin:16px 0}.tool-actions>button{flex:1}.tool-main>.icon-btn{margin:auto}.stopwatch-laps{margin-top:24px}.stopwatch-laps span{font-variant-numeric:tabular-nums}.stopwatch-laps span small{color:var(--muted)}
@media(min-width:701px){.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-experience{max-width:720px}.workout-card{padding:24px}.current-exercise-body .exercise-actions{max-width:450px}.previous-exercise-body{max-width:700px}}
@media(max-width:700px){.mobile-nav{left:16px;right:16px;max-width:520px;margin-inline:auto}.mobile-nav>button{font-size:10px}.mobile-nav .nav-symbol svg{width:23px;height:23px}.template-grid{grid-template-columns:1fr}.library-tabs button{font-size:16px}.workout-header{margin-bottom:0}.workout-sticky{padding-bottom:24px}.workout-card{padding:18px 16px;margin-bottom:24px}.compact-weight-progress .chart{height:75px}.tools-tabs button{font-size:13px}}
@media(max-width:360px){.exercise-card-heading{grid-template-columns:52px minmax(0,1fr) 28px;column-gap:8px}.exercise-collapse-icon{width:52px}.exercise-collapse-icon .equipment-image,.exercise-collapse-icon .exercise-icon{width:52px;height:52px}.exercise-collapse-title .exercise-name{font-size:17px}.exercise-history-toggle{font-size:13px;gap:8px}.workout-card{padding-inline:14px}.exercise-history-table{font-size:12px}.template-exercise .icon-btn{width:28px;min-width:28px}}
/* Long exercise names retain the same gap between independent touch targets. */
.exercise-card-heading{grid-template-rows:minmax(44px,auto) 8px 44px}.is-collapsed .exercise-card-heading{grid-template-rows:minmax(56px,auto)}

/* Stable page widths with scroll gestures retained. */
html,body{scrollbar-gutter:auto;scrollbar-width:none}*{scrollbar-width:none!important}*::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}

.tool-time-edit{padding:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:inherit;background:none;border:0;min-width:150px;min-height:90px}.tool-time-edit>span{font-size:44px;font-weight:400;letter-spacing:-1px}.tool-time-edit>small{font-size:20px;color:var(--muted)}.tool-time-edit:disabled{opacity:1;cursor:default}
.set-editor-heading{text-align:center;margin:4px 0 24px}.set-editor-heading strong{display:block;font-size:22px;font-weight:500}.set-editor-heading small{display:block;color:var(--muted);margin-top:6px}.set-wheel-grid{display:flex;background:var(--white);border-radius:20px;padding:16px 8px;gap:8px}.set-wheel-grid>div{min-width:0;flex:1;text-align:center}.set-wheel-grid label{font-size:13px;color:var(--muted)}.set-wheel-scroll{height:200px;overflow-y:auto;scroll-snap-type:y mandatory;position:relative;background:linear-gradient(transparent 80px,var(--soft) 80px,var(--soft) 120px,transparent 120px);border-radius:12px}.set-failure{border:0;margin:24px 0 0;padding:0}.set-failure legend{margin-bottom:10px;font-size:16px}.set-failure>div{display:flex;background:var(--soft);padding:3px;border-radius:10px;gap:3px}.set-failure label{flex:1;position:relative}.set-failure input{position:absolute;opacity:0;width:1px;height:1px}.set-failure span{display:block;padding:10px 3px;text-align:center;font-size:14px;border-radius:8px}.set-failure input:checked+span{background:var(--white);color:var(--accent);box-shadow:0 1px 4px #0002}.set-failure input:focus-visible+span{outline:2px solid var(--accent)}
@media(max-width:700px){.set-editor-modal{height:min(680px,92dvh);max-height:92dvh}.set-editor-modal .modal-body{padding:20px}.set-editor-modal .form-actions{gap:16px}}

.exercise-preview { gap:10px; }
.exercise-preview .equipment-image, .exercise-preview .exercise-icon { width:40px; height:40px; flex:0 0 40px; }
.exercise-preview small { display:block; color:var(--muted); }
.friend-exercise-result { margin-top:12px; }

/* Keep the personal fields together at phone widths. */
.compact-profile { align-items:start; }
.compact-profile #profile-experience-form { padding:16px; }
.compact-profile .profile-identity { min-height:44px; margin-bottom:12px; gap:9px; }
.compact-profile .profile-identity .avatar { width:42px; height:42px; font-size:17px; }
.profile-names, .profile-measurements { display:grid; gap:8px; }
.profile-names { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:10px; }
.profile-measurements { grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)); align-items:end; }
.profile-names label, .profile-measurements label, .profile-measurements .profile-number { gap:4px; }
.profile-names input, .profile-measurements select, .profile-measurements .number-selector {
    width:100%; min-width:0; min-height:44px; height:44px; padding:8px; font-size:16px;
}
.profile-number-label { font-size:14px; color:var(--muted); }
.profile-save-status { color:var(--muted); font-size:12px; }
.profile-identity .profile-save-status { margin-left:auto; text-align:right; }
.profile-save-status:empty { display:none; }
#profile-settings-form { margin-bottom:8px; }
.session-renewal { display:block; color:inherit; text-decoration:underline; min-height:44px; padding:4px 0; }
.profile-last-result { min-height:44px; gap:12px; font-size:15px; }
