/* Geometry follows Android's Source Sans / Material typography and scaffold. */
.shell>.hero:not(.chat-header){min-height:56px;height:56px;box-sizing:border-box;padding:8px 0;margin:0 0 8px}
.shell>.hero:not(.chat-header)>.eyebrow,.shell>.hero:not(.chat-header)>p{display:none}
.shell>.hero:not(.chat-header) h1{font-size:22px;line-height:28px;font-weight:300;letter-spacing:-.4px;margin:0}
.header-refresh{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:transparent}
.header-refresh svg{width:20px;height:20px;margin:0}
.diary-app-bar{min-height:56px;height:56px;flex-shrink:0;box-sizing:border-box;display:flex;align-items:center;font-size:22px;font-weight:300;margin:0 -16px;padding:0 16px;background:var(--panel2)}
.live-banner.sticker-card{gap:10px;min-height:54px;margin:18px -4px 4px;width:calc(100% + 8px);padding:18px 12px 7px;background:var(--panel2);border:0;border-radius:14px;color:var(--text);text-align:left}.live-banner .red-dot{width:8px;height:8px;flex-shrink:0;background:#e34d59}.live-banner-copy{flex:1;min-width:0;display:flex;flex-direction:column}.live-banner-copy small{font-size:11px;line-height:16px;font-weight:500}.live-banner-copy strong{font-size:16px;line-height:24px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-banner #live-timer{font-size:20px;line-height:28px;font-weight:300;white-space:nowrap}.live-banner>.ui-icon{width:18px;height:18px;flex-shrink:0}.unfinished-record-banner{display:flex;flex-direction:column;gap:0;align-items:flex-start;text-align:left;padding:10px;margin:4px -4px 6px;width:calc(100% + 8px);background:var(--panel2);color:var(--text);border:0;border-radius:16px}.unfinished-record-banner small{font-size:14px;line-height:20px}.unfinished-record-banner strong{font-size:20px;line-height:28px;font-weight:300}.unfinished-record-banner span{font-size:16px;line-height:24px}
.training-shell .sport-picker{margin:8px 0;gap:8px}
.training-shell .sport-choice{min-height:56px;padding:6px 2px;gap:5px;border-radius:14px}
.training-shell .create-training-button{margin:8px 0;min-height:44px;border-radius:100px}
.training-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0}
.training-tools button{min-width:0;padding:8px 5px;min-height:44px;border-radius:100px;font-size:13px;background:transparent}
.training-count{height:40px;margin:0}.training-count .pill{background:transparent;border:0;color:var(--accent)}
.training-order-hint{font-size:12px;margin:0 0 6px;line-height:16px}
.training-template-list{gap:8px}
.training-template-list .training-template-card{border:0;margin-top:8px;border-radius:18px;overflow:visible}
.training-template-card.sticker-card .training-template-open{padding:14px 14px 4px;min-height:58px;gap:8px}
.training-template-actions{padding:0 8px 0;gap:0}
.training-template-actions button{min-height:44px;padding:5px 8px}
.training-template-copy strong{font-size:16px;font-weight:400}
.training-template-card .bento-sticker{top:-8px}
.profile-shell>.card.spaced{display:none}
.profile-block{padding:16px;border:0;border-radius:18px;margin:14px 4px}
.profile-block>summary{font-size:16px;min-height:48px;display:flex;align-items:center;gap:10px;padding:0}
.profile-block>summary>.profile-heading-copy{flex:1;min-width:0}
.profile-block>summary small{font-size:12px;line-height:16px}
.profile-block>summary>.ui-icon{color:var(--accent);width:20px;height:20px;flex:none}
.profile-block>summary:after{display:none}.profile-block>summary>.profile-chevron{margin-left:auto}
.profile-block[open]>summary{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:16px}
.profile-block[open] .profile-chevron{transform:rotate(180deg)}
.profile-account-identity{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.profile-account-identity>div{flex:1;min-width:0}
.sheet-backdrop:has(.app-page){padding:0;background:var(--bg)}
.sheet.app-page{width:min(100%,520px);max-height:none;height:100dvh;border:0;border-radius:0;margin:0 auto;padding:0 16px 92px;background:var(--bg);overscroll-behavior:contain}
.page-topbar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;min-height:64px;margin:0 -16px 12px;padding:8px 16px;background:var(--panel2)}
.page-topbar h2{margin:0;font-size:22px;font-weight:300;line-height:28px;flex:1;min-width:0}
.page-topbar .icon-btn{display:grid;place-items:center;width:40px;height:40px;padding:0;color:var(--text);flex:none}
.page-topbar .icon-btn svg{width:22px;height:22px}
.sheet.app-page .card{border:0;padding:14px;border-radius:18px;margin:8px 0}
.sheet.app-page .template-order-list .card{padding:0;overflow:hidden}
.sheet.app-page .sport-choice{min-height:56px;gap:5px;padding:6px 2px}
.sheet.app-page .sport-picker{margin:8px 0 12px}
.draft-exercise summary{display:flex;align-items:center;gap:10px;padding:14px;min-height:76px;list-style:none;cursor:pointer}
.draft-exercise summary::-webkit-details-marker{display:none}
.draft-exercise summary:after{content:'⌄';color:var(--accent);font-size:20px;margin-left:auto}
.draft-exercise summary:has(.draft-heading-order):after{display:none}
.draft-heading-order{display:flex;gap:2px;flex:none!important}
.draft-heading-order .pill{display:grid;place-items:center;padding:0;width:34px;height:44px;min-height:44px;border:0;background:transparent;color:var(--accent)}
.draft-heading-order svg{width:18px;height:18px}
.draft-exercise[open] summary:after{content:'⌃'}
.draft-exercise summary img{width:64px;height:64px;object-fit:contain;border-radius:12px}
.draft-exercise summary>span{flex:1;min-width:0}
.draft-exercise summary strong{display:block;font-size:20px;font-weight:300;line-height:28px}
.draft-exercise summary small{display:block;font-size:12px}
.draft-expanded{padding:0 14px 14px}
.draft-count .number-wheel{max-width:180px;margin:auto}
.draft-count .wheel-line{display:flex;align-items:center;justify-content:center;gap:8px}
.draft-count .wheel-neighbor{display:none}.draft-count .wheel-center{max-width:60px}
.draft-count .wheel-center input{height:44px;font-size:22px}
.template-save-fab{border-radius:16px;width:auto;display:flex;gap:8px;align-items:center;padding:14px 18px;font-size:14px}
.rest-target-setting{margin:12px 0}.rest-target-setting>.number-wheel{max-width:240px}
.rest-target-setting .wheel-line{display:flex;justify-content:center;align-items:center}
.rest-target-setting .wheel-center{max-width:90px}.rest-target-setting .wheel-neighbor{display:none}
.rest-target-setting .wheel-center input{font-size:22px;height:44px;min-height:44px}
.rest-target-setting small{display:block;margin-top:4px;font-size:12px;line-height:18px}
.training-back{display:flex;align-items:center;gap:6px;background:transparent;border:0;color:var(--accent);min-height:44px;font-size:14px;padding:8px 0}
.training-back svg{width:18px;height:18px}
.sheet[data-sheet=live],.sheet[data-sheet=workout-detail]{height:100dvh;max-height:100dvh;border-radius:0;border:0}
.sheet[data-sheet=workout-detail]{display:flex;flex-direction:column;overflow:hidden;padding:8px 12px}
.sheet.saved-record-layout .page-topbar{flex:none;margin:-8px -12px 8px;padding:8px 12px}
.sheet.saved-record-layout .record-head{padding:12px;border-radius:18px;background:var(--panel);margin-bottom:8px;border:0}
.record-meta[hidden]{display:none}
.saved-record-layout .record-set-row input{border:0;background:transparent;cursor:pointer}
.saved-record-layout .record-body{padding-top:0}
.live-mode-panels{display:grid;gap:6px}
.live-mode-panels .live-set{margin:0;border:0;border-radius:12px;padding:2px 6px;background:var(--panel)}
.live-mode-panels .live-set-completion{min-height:58px}
.live-upcoming,.live-exercise-link{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;background:var(--panel);border:0;border-radius:100px;color:var(--text);min-height:44px;padding:8px 12px;font-size:14px;margin:4px 0;text-align:left}
.live-upcoming.active{background:var(--panel2)}.live-upcoming strong{font-size:14px;font-weight:400}
.live-exercise-link{background:transparent;color:var(--accent)}.live-exercise-link>span{flex:1;min-width:0}
.live-tiles .live-mode-panels{grid-template-columns:1fr 1fr;gap:8px}
.live-tiles .live-set-complete>span{font-size:12px;padding:0 54px}
.live-tiles .live-set-menu summary,.live-tiles .live-set-complete>i{width:46px;height:46px;padding:8px}
.live-tiles .live-set-complete>i svg{width:30px;height:30px}
.live-tiles .live-set-wheels .wheel-heading{font-size:10px;flex-wrap:wrap;gap:0}
.live-tiles .live-set-wheels input{font-size:24px}.live-tiles .weight-step-control>button{padding:0;font-size:10px}
.live-table .live-mode-panels{gap:0}.live-table .live-set,.live-minimal .live-set{border-radius:0;background:transparent}
.live-table .live-set{border-bottom:1px solid var(--line)}
.live-timeline .live-mode-panels>.live-set{position:relative;margin-left:10px}
.live-timeline .live-mode-panels>.live-set:before{content:'';position:absolute;left:-10px;top:0;bottom:0;width:3px;border-radius:3px;background:var(--accent)}
.live-dock .live-bottom-actions>.live-set{margin:0 0 6px;padding:2px 6px}
.sheet[data-sheet=live].live-dock.live-keyboard-editing .live-bottom-actions{display:block}
.live-dock.live-keyboard-editing .live-bottom-actions>.live-exercise-nav,.live-dock.live-keyboard-editing .live-bottom-actions>.live-save-actions{display:none}
.native-detail-title{padding:18px;background:var(--panel);border-radius:18px;margin:12px 0}
.native-detail-title h3{font-size:28px;line-height:36px;font-weight:300;margin:8px 0}
.native-detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.native-detail-actions button{border-radius:100px;font-size:14px;min-height:44px;padding:8px}
.native-detail-exercise{padding:12px;gap:10px;border-radius:12px;margin:12px 0;background:transparent}
.native-detail-exercise .exercise-thumb{width:58px;height:58px}.native-detail-exercise strong{font-size:16px;font-weight:400}
.battle-body{overflow-anchor:none;scroll-behavior:auto}.progress-shell{overflow-anchor:none}
[data-battle-statistics]{scroll-margin:0;overflow-anchor:none}
[data-battle-statistics] .battle-fighters{margin:12px 0 16px}
.duel-statistics{margin:16px 0}.duel-statistics .duel-fighters{margin:12px 0}
.duel-statistics .duel-fighters{justify-content:center;gap:12px 16px;max-width:332px;margin-left:auto;margin-right:auto}.duel-statistics .duel-fighters>div{flex:0 0 100px;width:100px;min-width:100px;max-width:100px;gap:0}.duel-statistics .duel-fighters strong{font-weight:500;text-align:center;white-space:normal;overflow-wrap:anywhere;max-width:100%;line-height:20px}.duel-statistics .duel-portrait{width:52px;height:52px}.duel-statistics .duel-results{margin-top:12px}
.battle-group-metric.magnet-tall>.battle-exercise-title{position:static}
@media(max-width:360px){.training-template-actions button{font-size:12px;padding:5px}.profile-block{margin-left:0;margin-right:0}}

/* One native set surface, with equal fields and the same 46 dp action circles. */
.live-tiles .live-set-wheels>*{background:transparent;border:0;border-radius:0;padding:0}
.live-layout .live-header-metrics{height:56px}.live-header-metrics strong{font-size:16px}.live-header-metrics small{font-size:12px}
.workout-time>small{display:block;line-height:16px}.workout-clock{display:flex;align-items:center;justify-content:center;height:40px}.workout-clock>strong{line-height:24px;white-space:nowrap}.workout-pause.icon-btn{display:grid;place-items:center;flex:none;width:40px;height:40px;min-height:40px;padding:10px;border:0;background:transparent;color:var(--accent);border-radius:50%}.workout-pause .ui-icon{width:20px;height:20px;margin:0}.workout-paused .red-dot{animation:none;background:var(--muted)}
.live-layout .live-exercise-caption h2{font-size:22px;font-weight:300}.live-exercise-caption small{font-size:12px}
.live-layout .exercise-thumb{width:40px;height:40px}
.live-layout .wheel-heading,.live-layout .weight-step-label{height:36px;min-height:36px;font-size:12px}
.live-layout .wheel-arrow{height:34px;min-height:34px}.live-layout .wheel-neighbor{height:15px;line-height:15px}
.live-layout .wheel-center input{height:36px;min-height:36px;line-height:36px;font-size:28px}
.live-set .check.live-set-complete{height:58px;min-height:58px}.live-set-complete>i{top:6px}.live-set-menu{top:6px}
.live-layout .live-actions-panel button{min-height:48px;height:auto;font-size:13px}
.live-layout .live-actions-panel{order:3}.live-layout .live-session-extra{order:2}.live-session-body>.live-exercise-heading,.live-session-body>.live-sets-panel{order:0}
.record-exercise{border:0;border-radius:18px}.record-exercise-head strong{font-size:16px;font-weight:400}.record-exercise-head small,.record-exercise-content>small{font-size:12px}
.saved-record-layout .record-set-row input{height:44px;min-height:44px;background:var(--panel2);border-radius:6px;font-size:14px}
.record-exercise-details summary{list-style:none;display:flex;justify-content:center;align-items:center;min-height:44px;color:var(--accent);font-size:14px;cursor:pointer}
.record-exercise-details summary:after{content:'⌄';margin-left:6px}.record-exercise-details[open] summary:after{content:'⌃'}
.record-exercise-details p{margin:8px 0}.record-completed{display:flex;align-items:center;gap:8px;margin:12px 0}
.saved-record-layout .live-actions-panel{display:block}.saved-record-layout .live-actions-panel:after{display:none}
.saved-record-layout .live-save-actions{grid-template-columns:1fr 1fr}
.live-set-tab-row{display:grid!important;grid-template-columns:repeat(var(--tab-count),minmax(0,1fr));width:100%;gap:6px!important}
.live-layout .live-set-tab-row button{min-height:40px;height:auto;border-radius:14px;white-space:normal;min-width:0;color:var(--accent)}
.record-layout .record-head h2{font-size:22px;font-weight:300;margin:0 0 4px}
.live-layout .live-session-body{display:flex;flex-direction:column;gap:6px}.live-layout .live-session-body>*{flex:none}
.live-layout .live-set-tabs{touch-action:pan-y;overflow:visible}.live-set-tab-row+.live-set-tab-row{margin-top:6px}
.record-totals[hidden]{display:none}.record-head>div{width:100%}.record-head .row{font-size:14px}.record-head small{font-size:12px}
.saved-record-layout .record-head small:empty{display:none}
.training-shell [data-action=view-program]{border:0;padding:16px;border-radius:18px;margin:12px 0}.training-shell [data-action=view-program] strong{font-size:22px;font-weight:300}
.program-level{display:block;font-size:16px;line-height:24px;margin:6px 0}.program-sources h3{font-size:14px;font-weight:500}.program-sources a{font-size:14px;color:var(--accent)}

.muscle-options label{display:flex;align-items:center;gap:12px;min-height:44px;font-size:14px}.muscle-options input{accent-color:var(--accent);width:20px;height:20px}

.muscle-progress-figure{height:270px;margin:10px 0;padding:0;border:0;background:transparent}.muscle-progress-figure .muscle-figure{height:100%;width:100%;max-width:none}.muscle-progress-figure+h2{font-size:24px;font-weight:300}.muscle-progress-row{display:grid;gap:6px;font-size:14px;margin:12px 0}.muscle-progress-track{height:8px;border-radius:8px;background:var(--panel2);overflow:hidden}.muscle-progress-track i{display:block;height:100%;border-radius:8px}

.record-metrics-card{padding:14px;border-radius:18px;background:var(--panel);font-size:14px}.record-metrics-card h3{font-size:22px;font-weight:300;margin:0 0 8px}.record-metrics-card p{margin:8px 0}.record-muscle-reference{height:150px}.record-muscle-reference .muscle-figure{height:150px}

.sheet[data-sheet=training-program] .program-exercise{display:block;font-size:14px;margin:8px 0;padding:0;border:0}.sheet[data-sheet=training-program] .card h3{font-size:16px;font-weight:500}

.battle-controls-clipped{visibility:hidden;pointer-events:none}
.duel-matchup{display:grid;grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr);align-items:center;padding:14px 0;gap:0}
.duel-matchup+.duel-matchup{border-top:1px solid var(--line)}
.duel-comparison-side{min-width:0;display:grid;gap:7px;font-size:12px;overflow-wrap:anywhere}
.duel-comparison-side.left{text-align:right}.duel-comparison-side.right{text-align:left}
.duel-comparison-side>.battle-metric-side strong{font-size:14px;font-weight:700;white-space:normal}
.duel-comparison-side>strong{font-size:12px;font-weight:500}
.duel-comparison-side small{font-size:11px}.duel-comparison-side .duel-notice{padding:4px;margin:0}
.duel-comparison-side svg{width:16px;height:16px;vertical-align:middle;color:var(--accent)}

/* The comparison occupies precisely the screen between the fixed navigation panels. */
.battle-comparison-stage{box-sizing:border-box;height:var(--battle-stage-height);min-height:0;display:flex;flex-direction:column;gap:8px;padding:8px 0;margin:0!important;overflow:hidden}
.battle-comparison-stage .battle-fighters,.battle-comparison-stage .duel-fighters{margin:0 auto!important;flex:none;max-height:34%;overflow:auto}
.battle-comparison-stage .battle-fighters .battle-portrait{width:48px;height:48px}
.battle-comparison-stage .battle-fighters{gap:8px}.battle-comparison-stage .battle-fighters>div{gap:2px}
.battle-comparison-stage .battle-exercise-title{flex:none;font-size:18px;line-height:22px;margin:0;text-align:center}
.battle-comparison-stage>.battle-hint{flex:none;margin:0;font-size:11px;line-height:14px}
.battle-comparison-stage .battle-scoreboard{flex:1;min-height:0;display:flex;flex-direction:column;margin:0}
.battle-comparison-stage .battle-metric{flex:1;min-height:0;padding:6px 10px;grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr)}
.battle-comparison-stage .battle-metric-side strong{font-size:16px;line-height:20px}.battle-comparison-stage .battle-metric-label{font-size:12px;line-height:15px}
.battle-comparison-stage .battle-metric-label small{font-size:10px;line-height:12px}.battle-comparison-stage .battle-metric-track{margin-top:5px}
.battle-comparison-stage .battle-exercise-actions{flex:none;margin:0;padding:2px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.battle-comparison-stage .battle-exercise-actions button{min-height:40px;padding:8px 4px;font-size:13px;line-height:18px;display:flex;align-items:center;justify-content:center;gap:3px}
.battle-comparison-stage .battle-exercise-actions svg{width:16px;height:16px}
.battle-comparison-stage .duel-results{flex:1;min-height:74px;overflow:auto;margin:0;display:flex;flex-direction:column}
.battle-comparison-stage .duel-matchup{flex:1;padding:8px 0}
.battle-comparison-stage .duel-chart{flex:1;min-height:74px;margin:0;display:flex;flex-direction:column;overflow:auto}
.battle-comparison-stage .duel-chart>svg{width:100%;flex:1;min-height:40px;height:0}
.battle-comparison-stage .duel-legend{margin-top:4px;font-size:10px}.battle-comparison-stage .duel-chart p{font-size:10px;margin:4px 0}
.battle-comparison-stage>p{font-size:12px;margin:0}
.battle-group-metric.battle-comparison-stage{gap:6px}.battle-group-metric.battle-comparison-stage h3{font-size:16px;margin:0}
.battle-group-metric.battle-comparison-stage .group-rank{padding:8px 0;margin:0;flex:none;min-height:0;border:0}
@media(max-height:740px){.battle-comparison-stage{gap:4px;padding:4px 0}.battle-comparison-stage .battle-fighters .battle-portrait,.battle-comparison-stage .duel-portrait{width:40px;height:40px}.battle-comparison-stage .battle-fighters small{font-size:10px}.battle-comparison-stage .battle-metric{padding:3px 8px}.battle-comparison-stage .battle-metric-label small{display:none}.battle-comparison-stage .battle-exercise-title{font-size:16px;line-height:20px}}

.battle-comparison-stage .duel-fighters{max-height:none;overflow:visible}
.battle-comparison-stage .duel-chart{min-height:40px}.battle-comparison-stage .duel-results{min-height:60px}
@media(max-height:740px){.battle-comparison-stage .duel-fighters{gap:6px 16px}.battle-comparison-stage .duel-portrait{width:32px;height:32px}.battle-comparison-stage .duel-fighters small{display:none}.battle-comparison-stage .duel-fighters strong{font-size:11px;line-height:14px}.battle-comparison-stage .duel-chart{padding:6px}.battle-comparison-stage .duel-comparison-side{gap:3px}}

.battle-body{container-type:size;container-name:battle-viewport}
@container battle-viewport (max-height:340px){
 .battle-comparison-stage{gap:3px;padding:3px 0}
 .battle-comparison-stage .battle-fighters{max-height:none;overflow:visible}
 .battle-comparison-stage .battle-fighters .battle-portrait{width:32px;height:32px}
 .battle-comparison-stage .battle-fighters small,.battle-comparison-stage>.battle-hint,.battle-comparison-stage .battle-metric-label small{display:none}
 .battle-comparison-stage .battle-fighters strong{font-size:11px;line-height:14px}
 .battle-comparison-stage .duel-fighters{width:100%;max-width:none;gap:4px 8px}
 .battle-comparison-stage .duel-fighters>div{flex:1 1 52px;width:auto;min-width:52px;max-width:100px}
 .battle-comparison-stage .duel-portrait{width:28px;height:28px}
 .battle-comparison-stage .duel-fighters small{display:none}
 .battle-comparison-stage .duel-fighters strong{font-size:10px;line-height:12px}
 .battle-comparison-stage .battle-exercise-title{font-size:14px;line-height:18px}
 .battle-comparison-stage .battle-metric{padding:2px 6px}
 .battle-comparison-stage .battle-metric-side strong{font-size:13px;line-height:16px}
 .battle-comparison-stage .battle-metric-track{height:5px;margin-top:3px}
 .battle-comparison-stage .battle-exercise-actions button{min-height:34px;padding:5px 2px;font-size:12px}
 .battle-comparison-stage .duel-chart .duel-legend,.battle-comparison-stage .duel-chart>p{display:none}
 .battle-comparison-stage .duel-chart{padding:4px;min-height:40px}
}
.duel-results,.duel-chart,.duel-fighters{overscroll-behavior-y:contain}

.battle-comparison-stage .battle-scoreboard,.battle-comparison-stage .duel-results,.battle-comparison-stage .duel-chart{background:var(--panel2);border:0}
.battle-comparison-stage .battle-metric{gap:0;border-color:color-mix(in srgb,var(--line) 45%,transparent)}
.battle-comparison-stage .battle-metric-side strong{font-size:14px;line-height:20px;font-weight:700}
.battle-comparison-stage .battle-metric-label{text-align:center;padding:0 5px;font-size:12px;line-height:16px}
.battle-comparison-stage .battle-metric-track{background:color-mix(in srgb,var(--line) 45%,transparent)}
.duel-results{padding:0 10px}
body[data-theme=custom-light] .battle-comparison-stage .battle-metric-side.right .battle-metric-track span{background:#7746b1}

body[data-theme=custom-light]{--battle-rival:#7746b1}body[data-theme=custom-dark]{--battle-rival:#bca3f7}
@container battle-viewport (max-height:340px){.battle-comparison-stage .duel-portrait{width:32px;height:32px}.battle-comparison-stage .duel-results{padding:0 6px}}
@container battle-viewport (max-height:340px){.battle-comparison-stage .duel-results{padding:0 4px}}

.battle-comparison-stage .battle-exercise-title{font-size:16px;line-height:24px;font-weight:500}
.battle-comparison-stage .battle-metric-label small{font-size:11px;line-height:16px}
@container battle-viewport (min-height:341px){.battle-comparison-stage .battle-metric-label small{display:block}}
@container battle-viewport (max-height:500px){
 .battle-comparison-stage .battle-fighters .battle-portrait{width:40px;height:40px}
 .battle-comparison-stage .duel-fighters{width:100%;max-width:none;gap:12px 8px}
 .battle-comparison-stage .duel-fighters>div{flex:0 0 64px;width:64px;min-width:64px;max-width:64px}
 .battle-comparison-stage .duel-portrait{width:32px;height:32px}
 .battle-comparison-stage .duel-fighters small{display:none}
 .battle-comparison-stage .duel-fighters strong{font-size:14px;line-height:20px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
@container battle-viewport (max-height:340px){
 .battle-comparison-stage .battle-fighters .battle-portrait{width:32px;height:32px}
 .battle-comparison-stage .battle-metric-track{height:7px;margin-top:3px}
}

.battle-comparison-stage .battle-exercise-actions button{height:40px;min-height:40px}
@container battle-viewport (max-height:340px){.battle-comparison-stage{gap:2px;padding:2px 0}.battle-comparison-stage .duel-results{flex-grow:1.25}.battle-comparison-stage .duel-comparison-side>strong{display:none}}

body{--medal-gold:#d8ae55}body[data-theme=custom-light]{--medal-gold:#8b641f}
.profile-medals>summary>.ui-icon:first-child,.medal-gold,.medal-chip{color:var(--medal-gold)}
.duel-medal{background:var(--panel2);border:1px solid color-mix(in srgb,var(--medal-gold) 40%,transparent);border-radius:18px;padding:16px;margin:12px 0}
.medal-heading{display:flex;gap:12px;align-items:center}.medal-heading>div{min-width:0;flex:1;display:grid;gap:3px;font-size:12px}
.medal-heading h3{font-size:16px;font-weight:500;line-height:24px;margin:0;overflow-wrap:anywhere}.medal-heading strong{font-size:14px;line-height:20px}
.medal-heading small{font-size:11px;line-height:16px;color:var(--muted)}.medal-seal{width:48px;height:48px;flex:none;border-radius:50%;display:grid;place-items:center;color:var(--medal-gold);background:color-mix(in srgb,var(--medal-gold) 12%,transparent)}.medal-seal svg{width:30px;height:30px}
.medal-chip{display:flex;gap:5px;align-items:center;font-size:12px}.medal-chip svg{width:16px;height:16px}
.medal-conditions summary{display:flex;align-items:center;justify-content:center;color:var(--accent);min-height:40px;margin-top:8px;font-size:14px;cursor:pointer}.medal-conditions[open] summary>svg{transform:rotate(180deg)}
.medal-condition{display:grid;gap:3px;font-size:14px;line-height:22px;margin:8px 0}.medal-condition small{font-size:12px;color:var(--muted)}
.diary-mode-avatar>.ui-icon{width:55%;height:55%}
.medal-heading>div>span{font-size:12px;line-height:18px}.medal-heading strong{font-weight:400}
.medal-conditions>summary::after{display:none}.medal-conditions>summary::-webkit-details-marker{display:none}

.battle-group-ranks{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;justify-content:safe center;gap:8px}
.group-rank-result>div>span{flex:1;min-width:0;overflow-wrap:anywhere}.group-rank-result strong{font-size:16px;line-height:24px}
.battle-body,.battle-group-ranks{overscroll-behavior-x:none}.battle-exercise-result{touch-action:pan-y pinch-zoom}
.battle-group-metric.battle-comparison-stage{background:transparent;border:0;border-radius:0;padding:6px 0;gap:0}
.battle-group-metric.battle-comparison-stage>.battle-exercise-title{font-size:16px;line-height:24px;font-weight:500}
.battle-group-metric.battle-comparison-stage>.battle-hint{display:block;font-size:12px;line-height:16px;margin:4px 0 0}
.battle-group-metric.battle-comparison-stage>h3{font-weight:500;line-height:24px;margin-top:6px}
.battle-group-metric.battle-comparison-stage>p.small{font-size:12px;line-height:16px}
.battle-group-metric .group-rank-result>div{line-height:24px}.battle-group-metric .group-metric-track{margin-top:7px}
.battle-group-metric.battle-comparison-stage>.battle-exercise-actions{padding-top:6px}
.battle-group-metric .group-rank-result strong{color:var(--text);font-weight:400}
.battle-comparison-stage .battle-exercise-actions button{background:transparent;border-radius:100px;color:var(--accent);font-size:12px;line-height:16px}

[data-profile-id]{cursor:pointer}.person-profile-name{font-weight:500;display:inline-block;max-width:100%;overflow-wrap:anywhere}
[data-profile-id]:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:8px}
.medal-seal{background:transparent!important;border-radius:0!important;width:56px!important;height:66px!important;min-width:56px;display:block;flex-shrink:0}
.medal-seal .medal-artwork{width:56px!important;height:66px!important;display:block}
.medal-group{background:var(--panel2);border-radius:18px;margin:0 0 12px;padding:12px;min-width:0}
.medal-group-heading{display:flex;align-items:center;gap:10px;width:100%;border:0;background:transparent;color:var(--text);padding:0;text-align:left}
.medal-group-copy{flex:1;min-width:0;overflow-wrap:anywhere}.medal-group-copy strong{display:block;font-size:14px;line-height:20px;font-weight:500}
.medal-group-copy small{display:block;font-size:12px;line-height:18px;color:var(--muted)}
.medal-count{font-size:16px;line-height:24px;color:var(--medal-gold,#d8ae55);font-weight:500;white-space:nowrap}.medal-group-heading>.ui-icon{width:18px;height:18px;flex-shrink:0}
.medal-group-history{padding-top:10px}.medal-group-history .duel-medal{margin-bottom:10px}.medal-condition small{display:block;overflow-wrap:anywhere}
.sheet.user-profile{width:min(420px,calc(100vw - 24px));max-height:90dvh;padding:0;display:flex;flex-direction:column;border-radius:26px;overflow:hidden;background:var(--bg);color:var(--text)}
.sheet-backdrop:has(.user-profile){align-items:center}
.user-profile-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px;flex-shrink:0}
.user-profile-top h2{font-size:16px;line-height:24px;font-weight:500;letter-spacing:-.2px;margin:0}
.user-profile-body{padding:8px 18px 0;overflow:auto;overscroll-behavior:contain;min-height:0;flex:1;scrollbar-width:thin}
.user-profile-identity{display:flex;align-items:center;gap:14px;margin-bottom:14px}.user-profile-identity>div{min-width:0;flex:1}
.user-profile-identity h2{font-size:24px;line-height:32px;font-weight:300;letter-spacing:-.5px;margin:0}.user-profile-identity small{display:block;color:var(--muted);font-size:12px;line-height:18px}
.user-profile-identity p{font-size:12px;line-height:18px;margin:3px 0 0}.user-profile-avatar{width:70px!important;height:70px!important;font-size:28px}
.user-profile-tabs{display:flex;background:var(--panel2);border-radius:18px;padding:4px;gap:0;margin-bottom:14px}
.user-profile-tabs button{flex:1;border:0;border-radius:14px;background:transparent;color:var(--text);padding:2px;min-height:44px;font-size:12px;line-height:16px}
.user-profile-tabs button.active{background:var(--accent);color:var(--accent-text)}
.user-profile-pane>*{margin-top:0;margin-bottom:14px}.user-profile-pane h3{font-weight:500;font-size:14px;line-height:20px}
.user-profile-stats{display:flex;align-items:center;background:var(--panel2);border-radius:22px;padding:14px 0;min-width:0}
.user-profile-stats>div{flex:1;min-width:0;text-align:center;padding:0 3px}.user-profile-stats>div+div{border-left:1px solid var(--line)}
.user-profile-stats strong{display:block;font-size:16px;line-height:24px;font-weight:500;overflow-wrap:anywhere}.user-profile-stats small{display:block;font-size:11px;line-height:16px}
.user-profile-sport-list>div{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:10px 0;flex-wrap:wrap}
.user-profile-sport-list>div>span:last-child{font-size:12px;color:var(--muted)}
.user-profile-actions{display:flex;gap:8px;padding:18px;flex-shrink:0}.user-profile-actions button{min-height:44px;font-size:12px;line-height:16px;padding:6px;flex:1.3;min-width:0}
.user-profile-actions button:first-child{flex:.7}.user-profile .medal-group-heading{font-size:14px}.user-profile .premium-avatar-wrap{flex-shrink:0}
.user-profile .user-profile-avatar{color:var(--muted);font-size:14px;font-weight:500}
.user-profile .secondary{background:transparent;border-color:var(--line);color:var(--accent);border-radius:100px;font-weight:400}
.user-profile-top .chat-back{border-radius:16px;font-size:14px;line-height:20px;min-width:0;height:44px}
.user-profile-actions .primary{border-radius:100px}
body .user-profile .secondary:not(.danger){color:var(--accent);border-color:var(--line)}

/* Shared live controls: anchored exercise navigation and stable set carousel. */
.live-exercise-context-name{padding:10px 12px;color:var(--muted);font-size:14px;overflow-wrap:anywhere}
.live-exercise-popover button.danger{color:var(--danger)}
.live-exercise-popover [data-action="choose-live-exercise"]{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.live-exercise-backdrop{position:fixed;inset:0;background:#0009;z-index:250;display:flex;align-items:center;justify-content:center;padding:24px}
.live-exercise-dialog{background:var(--panel2);color:var(--text);border-radius:28px;padding:24px;width:100%;max-width:360px;max-height:calc(100dvh - 48px);overflow:auto;box-sizing:border-box;box-shadow:0 8px 32px #0005}
.live-exercise-dialog h2{font-size:24px;font-weight:300;line-height:1.25;margin:0 0 16px}
.live-exercise-dialog p{font-size:14px;line-height:1.45;margin:10px 0}.live-exercise-dialog p.live-exercise-target{font-size:16px}
.live-exercise-dialog p.danger{background:none;border:0;padding:0;border-radius:0;min-height:0;font-weight:400}
.live-exercise-dialog-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.live-exercise-dialog-buttons button,.live-position-list button,.live-exercise-undo button{background:transparent;border:0;color:var(--accent);padding:10px 12px;font-size:14px;min-height:44px}
.live-exercise-dialog-buttons button.danger{color:var(--danger)}
.live-position-list{max-height:min(360px,calc(100dvh - 225px));overflow:auto}.live-position-list button{width:100%;text-align:left;display:block;border-radius:16px;overflow-wrap:anywhere}.live-position-list button:hover{background:color-mix(in srgb,var(--accent) 9%,transparent)}
.live-position-list small{display:block;font-size:11px;color:var(--muted)}.live-position-list span{display:block;color:var(--text)}
.live-exercise-undo{display:flex;align-items:center;gap:8px;font-size:14px;padding:0 16px;min-height:48px;flex-shrink:0}.live-exercise-undo>span{flex:1}
.live-heading-navigation{display:grid!important;grid-template-columns:40px minmax(0,1fr) 40px;gap:5px;align-items:center;justify-items:stretch;position:relative;overflow:visible!important}
.live-heading-navigation>.icon-btn{background:transparent;border:0;min-width:0;width:40px;height:44px;color:var(--muted);padding:0}
.live-exercise-dropdown{position:relative;min-width:0}
.live-exercise-toggle{list-style:none;display:flex;align-items:center;justify-content:center;gap:5px;text-align:center;background:var(--panel2);border:1px solid var(--line);border-radius:15px;padding:8px;min-height:69px;cursor:pointer}
.live-exercise-toggle::-webkit-details-marker,.live-set-picker>summary::-webkit-details-marker{display:none}
.live-exercise-toggle>span{min-width:0;flex:1}.live-exercise-toggle strong{display:block;font-size:16px;line-height:22px;font-weight:400;overflow-wrap:anywhere}
.live-exercise-toggle small{display:block;color:var(--muted);font-size:11px;line-height:16px}.live-exercise-toggle .ui-icon{width:18px;height:18px;flex:none}
.live-exercise-dropdown[open] .live-exercise-toggle{border-color:var(--accent);border-radius:15px 15px 0 0}.live-exercise-dropdown[open] .live-exercise-toggle>.ui-icon{transform:rotate(180deg)}
.live-exercise-popover{position:absolute;top:calc(100% - 1px);left:0;right:0;background:var(--panel2);border:1px solid var(--accent);border-top:0;border-radius:0 0 15px 15px;padding:6px;z-index:9;max-height:min(440px,var(--live-menu-room,55dvh));overflow:auto;overscroll-behavior:contain;transform-origin:50% 0;animation:live-menu-unfold .18s ease-out;box-shadow:0 12px 24px #0005}
.live-exercise-popover>button{width:100%;display:flex;align-items:center;gap:6px;text-align:left;background:transparent;border:0;border-radius:9px;padding:7px 5px;min-height:48px;color:var(--text)}
.live-exercise-popover>button+button{border-top:1px solid var(--line)}.live-exercise-popover>button.active{background:color-mix(in srgb,var(--accent) 10%,var(--panel2));color:var(--accent)}
.live-exercise-popover>button>span:nth-child(2){flex:1;min-width:0}.live-exercise-popover strong{display:block;font-size:14px;line-height:20px;font-weight:400;overflow-wrap:anywhere}.live-exercise-popover small{display:block;font-size:11px;line-height:16px;color:var(--muted)}
.live-exercise-position{display:grid;place-items:center;width:22px;min-width:22px;height:25px;border-radius:7px;background:var(--bg);color:var(--muted);font-size:11px}.live-exercise-popover .ui-icon{width:16px;height:16px;flex:none}
.live-exercise-popover>.live-stop-exercise{justify-content:center;color:var(--accent);border-radius:0;min-height:44px;font-size:12px}
.live-menu-shade{position:absolute;inset:0;z-index:6;background:color-mix(in srgb,var(--bg) 66%,transparent)}
.live-heading-navigation:has(.live-open-menu){z-index:7}.live-set:has(.live-open-menu){position:relative;z-index:7;overflow:visible!important;isolation:auto}
.live-bottom-actions:has(.live-open-menu){z-index:7!important;overflow:visible!important;isolation:auto}
.live-set-completion{display:grid;grid-template-columns:46px minmax(0,1fr) 48px;gap:5px;align-items:center;min-height:58px;padding:5px 0;position:relative}
.live-set-menu{position:relative!important;left:auto!important;top:auto!important;z-index:auto!important}
.live-set-menu summary{width:46px;height:46px}.live-set-actions-menu{position:absolute;bottom:53px;left:0;min-width:220px;background:var(--panel2);border:1px solid var(--line);padding:5px;border-radius:14px;z-index:9}
.live-set-actions-menu>button{display:flex;align-items:center;gap:7px;min-height:44px;width:100%;padding:8px;text-align:left;border:0;border-radius:9px;background:transparent;color:var(--text);font-size:14px}
.live-set-actions-menu .ui-icon{width:20px;height:20px;flex:none}
.live-set-picker{min-width:0;position:relative}.live-set-picker>summary{display:flex;align-items:center;justify-content:center;gap:4px;list-style:none;cursor:pointer;min-height:44px;font-size:14px;line-height:18px;text-align:center;color:var(--accent)}
.live-set-picker>summary>.ui-icon{width:16px;height:16px;flex:none}
.live-set-pick-list{position:absolute;bottom:49px;left:50%;transform:translateX(-50%);width:min(250px,calc(100vw - 50px));max-height:330px;overflow:auto;overscroll-behavior:contain;padding:5px;background:var(--panel2);border:1px solid var(--line);border-radius:14px;z-index:9}
.live-set-pick-list button{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:48px;width:100%;text-align:left;padding:8px;border:0;background:transparent;color:var(--text);border-radius:9px}
.live-set-pick-list strong{display:block;font-size:14px;line-height:20px;font-weight:400}.live-set-pick-list small{display:block;font-size:11px;line-height:16px;color:var(--muted)}
.live-set .check.live-set-complete{position:static;width:48px;height:48px;min-height:48px;padding:0;border:1px solid #76d6a0;background:#76d6a018;color:#76d6a0;border-radius:50%;display:grid;place-items:center}
body[data-theme=custom-light] .live-set .check.live-set-complete{border-color:#247c4f;background:#247c4f18;color:#247c4f}
.live-set .check.live-set-complete svg{width:30px;height:30px}.live-set .check.live-set-complete:disabled{border-color:var(--line);color:var(--muted);background:transparent}
.live-layout .live-set-tab-row button.done{color:var(--muted);background:color-mix(in srgb,var(--muted) 13%,var(--bg));border-color:var(--line);opacity:1}.live-set-tab-row button.done>.ui-icon{width:13px;height:13px;flex:none}
.live-set-tab-row button{display:flex;align-items:center;justify-content:center;gap:3px}.live-set-tab-row button{font-size:12px!important;white-space:nowrap!important;padding:4px 2px!important}
.live-mode-panels .live-set,.live-dock .live-set{border:1px solid transparent}.live-set-readonly .live-set-fields{opacity:.72}
.live-set-pulsing{animation:live-set-finished 1s ease-in-out;pointer-events:none}.live-set-leaving{animation:live-set-exit .24s ease-in forwards;pointer-events:none}.live-set-entering{animation:live-set-enter .24s ease-out both;pointer-events:none}
.live-mode-panels{overflow-x:clip;overflow-y:visible}.live-mode-panels:has(.live-open-menu){overflow:visible}
.live-editor-backdrop{position:absolute;inset:0;background:color-mix(in srgb,var(--bg) 75%,transparent);z-index:15;display:flex;align-items:center;justify-content:center;padding:20px}
.live-editor-dialog{width:min(340px,100%);background:var(--panel2);padding:20px;border-radius:24px;max-height:calc(100% - 40px);overflow:auto;overscroll-behavior:contain}
.live-editor-dialog h2{font-size:20px;line-height:28px;font-weight:400;margin:0 0 12px}.live-edit-list{display:grid;gap:4px;margin-bottom:14px}
.live-edit-list button{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:52px;border:0;background:transparent;color:var(--text);text-align:left;padding:7px 3px}
.live-edit-list strong{display:block;font-size:14px;font-weight:400}.live-edit-list small{display:block;color:var(--muted);font-size:12px}.live-editor-buttons{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}
.live-editor-dialog .field-inline{display:flex;gap:8px}.live-editor-dialog .field-inline>.field{min-width:0;flex:1}.live-editor-dialog input{width:100%;min-width:0}
.saved-workout-close{margin-top:6px;min-height:44px}
.live-layout .live-session-title h2{font-size:16px;line-height:24px;font-weight:500;margin:0}.live-layout .live-session-title .eyebrow{font-size:11px;line-height:16px;letter-spacing:0}
.sheet[data-sheet=live].live-layout .live-bottom-actions{background:var(--panel2);border:0;border-radius:20px;padding:12px 14px;margin:8px -2px 0;width:calc(100% + 4px)}
.live-layout .live-save-actions button{min-height:52px;height:auto;border-radius:100px;font-size:12px;line-height:16px;font-weight:500}
@keyframes live-menu-unfold{from{transform:translateY(-8px) scaleY(.94);opacity:.25}to{transform:translateY(0) scaleY(1);opacity:1}}
@keyframes live-set-finished{0%,33%,66%,100%{background:var(--panel);border-color:transparent}16%,49%,82%{background:color-mix(in srgb,#70d7a0 16%,var(--panel));border-color:#70d7a0}}
@keyframes live-set-exit{to{transform:translateX(-105%);opacity:.4}}
@keyframes live-set-enter{from{transform:translateX(105%);opacity:.4}to{transform:translateX(0);opacity:1}}
.live-set-picker>summary{font-size:12px;line-height:16px}.live-exercise-toggle strong{font-weight:500;line-height:24px}
@media(prefers-reduced-motion:reduce){.live-exercise-popover,.live-set-pulsing,.live-set-leaving,.live-set-entering{animation:none}.live-set-pulsing{border-color:#70d7a0}}


.live-editor-dialog{height:min(var(--editor-height),calc(100% - 40px));display:flex;flex-direction:column;gap:12px;overflow:hidden}.live-editor-dialog h2{margin:0;font-weight:300}.live-edit-list{flex:1;min-height:0;overflow:auto;margin:0}.live-editor-dialog .field-inline{flex-shrink:0}.live-editor-buttons{margin-top:auto}.live-editor-dialog>.live-editor-text-action{align-self:flex-end;margin-top:auto}.live-editor-text-action{min-height:44px;border:0;background:transparent;color:var(--accent);font-size:14px;padding:8px 12px;border-radius:100px}.live-editor-dialog .field label{font-size:12px;line-height:16px;font-weight:500}.live-editor-dialog input{min-height:48px;font-size:16px;border-radius:12px}.live-editor-dialog>.danger{min-height:44px;background:transparent;border:0;align-self:flex-start;width:auto;padding:8px 0}.live-editor-dialog input:focus{outline-color:var(--accent)}

/* Match the measured native carousel rather than inherited web spacing. */
.live-layout .live-session-title .eyebrow{text-transform:none}.live-layout .red-dot{width:7px;height:7px;animation:none;background:#ba1a1a}.live-layout .live-progress-track{background:var(--panel2);margin-left:-12px;margin-right:-12px;width:calc(100% + 24px)}.live-layout .live-header-metrics{border-bottom:0}
.live-heading-navigation{padding:0!important;margin:0!important}.live-exercise-toggle{min-height:66px}.live-exercise-toggle small{line-height:14px}.live-exercise-toggle strong{line-height:20px}
.live-layout .live-set-tabs{margin:0;padding:0}.live-sets-panel{display:flex;flex-direction:column;gap:6px}.live-layout .live-add-set-line{margin:0}.live-layout .live-add-set-line button{min-height:48px;height:48px;font-size:14px}.live-layout .wheel-arrow{height:36px;min-height:36px}.live-layout .wheel-center input{font-size:26px}.live-layout .live-actions-panel{margin:0;font-size:12px}.live-layout .live-actions-panel button{font-size:12px}
.live-strength-parameters{margin:0!important;padding:0!important;border:0!important}.live-strength-parameters>summary{font-size:14px;line-height:20px;list-style:none;color:var(--accent);padding:12px;min-height:48px;cursor:pointer}.live-strength-parameters>summary::-webkit-details-marker{display:none}.live-strength-parameters>summary:after{display:none}.live-layout .live-save-actions .danger{background:transparent}.live-layout .live-session-title>.pill{background:transparent}
.live-summary-body>h3{font-size:20px;line-height:28px;font-weight:300;margin:0}.live-summary-body>p{margin:0;font-size:12px;line-height:18px}.live-summary-exercise{display:flex;gap:8px;justify-content:space-between;font-size:16px;line-height:24px}.live-summary-exercise>span:first-child{flex:1}.live-summary-body .live-actions-panel,.live-summary-body .live-session-extra{order:initial}

.live-layout .live-set-tab-row button{font-size:11px!important;background:var(--panel);border-color:var(--line)}.live-layout .live-set-tab-row button.active,.live-layout .live-set-tab-row button.done{background:var(--panel2);border-color:var(--line)}
.free-training-choice{border:1px solid var(--accent);border-radius:16px;background:var(--panel);color:var(--accent);margin-bottom:12px}
.free-training-choice small{color:var(--muted)}
.exercise-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:8px 0}
.exercise-group-grid button{min-height:44px;padding:6px;font-size:12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);min-width:0}
.exercise-group-grid button[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 12%,var(--panel2));color:var(--text);border:2px solid var(--accent);padding:5px}
.exercise-group-grid button{display:flex;align-items:center;justify-content:center;gap:5px}
.exercise-group-grid .ui-icon{width:14px;height:14px;flex-shrink:0;color:var(--accent)}
.exercise-group-check{display:none}.exercise-group-grid button[aria-pressed=true] .exercise-group-check{display:inline-flex}
@media(max-width:367px){.exercise-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.sheet[data-sheet=live-exercise-picker] .exercise-picker-results,.sheet[data-sheet=exercise-picker] .exercise-picker-results{max-height:220px;overflow:auto}
.live-empty-training{text-align:center;padding:24px 0;display:grid;gap:10px}
.live-empty-training h3{font-size:20px;margin:0}.live-empty-training p{font-size:14px;margin:0}
.free-template-plus{display:flex;align-items:center;gap:6px;color:var(--accent);margin:10px 0}.free-template-plus svg{width:18px;height:18px}
.test-environment .shell.chat-shell,.test-environment .shell.battle-shell{top:24px;height:calc(100dvh - 24px)}
.test-environment .sheet-backdrop{top:24px}
.test-environment .sheet.app-page,.test-environment .sheet[data-sheet=live],.test-environment .sheet[data-sheet=workout-detail]{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
.test-environment .plus-payment-dialog{max-height:calc(100dvh - 72px)}
.test-environment .plus-payment-content{max-height:min(440px,calc(100dvh - 232px))}
.free-limit-actions{display:flex;justify-content:flex-end;gap:8px}.free-limit-actions button{width:auto;font-size:14px}
.free-limit-actions .plus-payment-text-button:last-child{flex-shrink:0;white-space:nowrap}
.free-slot-list{display:grid;gap:6px}
.progress-exercise-selection{display:block;padding:0;border:0;border-radius:16px;background:var(--panel2);margin:0 4px;position:relative}
.progress-selection-field{position:relative}.progress-selection-row{display:flex;align-items:center;gap:12px;padding:8px 12px;min-height:56px;width:100%;border:0;border-radius:16px;background:transparent;box-shadow:none;color:var(--text);text-align:left}
.progress-selection-row>.ui-icon{width:24px;height:24px;color:var(--muted);flex-shrink:0}.progress-selection-row>.ui-icon:last-child{width:18px;height:18px}
.progress-selection-row>span{display:flex;flex-direction:column;flex:1;min-width:0;font-size:14px;line-height:22px;font-weight:400}.progress-selection-row small{color:var(--muted);font-size:11px;line-height:16px;font-weight:500}
.progress-selection-divider{height:1px;background:var(--line);margin:0 12px 0 48px}.progress-selection-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;max-height:240px;overflow:auto;overscroll-behavior:contain;z-index:60;padding:8px 0;border:1px solid var(--line);border-radius:12px;background:var(--panel2);box-shadow:0 5px 20px #0005}
.progress-selection-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--text);text-align:left;padding:10px 16px;font-size:14px;line-height:22px}.progress-selection-menu button>span{flex:1;min-width:0}.progress-selection-menu button>.ui-icon{width:18px;height:18px;flex-shrink:0;color:var(--accent)}.progress-selection-menu button[aria-checked=true]{background:color-mix(in srgb,var(--accent) 12%,var(--panel2))}.progress-selection-menu button:hover,.progress-selection-menu button:focus-visible{background:var(--panel)}
.plus-payment-dialog h3{font-size:20px;line-height:28px;letter-spacing:-.4px;font-weight:300;margin:0}
.plus-payment-dialog h3.free-slot-heading{font-size:14px;line-height:20px;letter-spacing:0;font-weight:500}
.free-slot-row{min-height:48px;padding:4px 0;font-size:14px;line-height:22px}
.plus-payment-dialog>[data-expiry-renew],.plus-payment-dialog>[data-slot-save]{min-height:40px;padding:8px 16px;font-size:14px;line-height:20px;font-weight:400;border-radius:100px}

.progress-menu-backdrop{position:fixed;inset:0;z-index:59;background:transparent;touch-action:none}
.progress-selection-menu{position:fixed;right:auto;touch-action:pan-y}
.chat-shell>.live-banner,.battle-shell>.live-banner{flex:0 0 auto}

/* Subscription tariffs grow to fit both the term and its expiry date. */
.plus-payment-content{display:flex;flex-direction:column}.plus-payment-content>*{flex-shrink:0}.plus-payment-content button[data-plus-plan]{height:auto;min-height:40px;border-radius:100px;padding:8px 24px;font-size:14px;line-height:20px;font-weight:400}.plus-payment-content button[data-plus-plan]:before{inset:0}.plus-plan-copy{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left}.plus-plan-copy small{font-size:12px;line-height:18px;color:var(--muted)}.plus-expiry-date{white-space:nowrap}

/* Keep subscription actions in the same primary colour as Android. */
body .plus-payment-dialog .plus-payment-content button[data-plus-plan]{color:var(--accent)}body .plus-payment-dialog .plus-plan-copy small{color:var(--muted)}body .plus-payment-dialog .plus-payment-content>.small{color:var(--text)}

.training-template-selection{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;margin-top:8px}.training-template-selection strong{font-size:14px;font-weight:500}.training-template-selection .text-button{border:0;background:transparent;color:var(--accent);padding:8px;min-height:48px;font-size:14px}

/* Template title, count and activity icon follow Android's card column. */
.training-template-list .training-template-card{background:var(--panel2);border-radius:16px}
.training-template-card.sticker-card .training-template-open{display:block;padding:14px 14px 0}
.training-template-copy{display:grid;gap:5px}.training-template-copy strong{font-size:16px;font-weight:500;line-height:24px;letter-spacing:-.2px}
.training-template-copy small{font-size:12px;line-height:18px}
.training-template-title{display:flex;align-items:center;gap:8px;min-width:0}.training-template-title strong{flex:1;min-width:0}
.training-template-title .sport-badge{width:24px;height:24px;padding:0;background:transparent;min-width:24px;border:0;border-radius:0}.training-template-title .sport-badge svg{width:24px;height:24px}
.training-template-grip{width:18px;height:18px;flex:none;color:var(--muted)}
.training-template-actions{margin-top:5px;padding:0 14px;justify-content:flex-end}.training-template-actions button{min-height:48px;padding:0 6px}
.training-order-hint{line-height:18px;margin-top:8px}

/* Keep the checkout heading and Close fixed while its body fits the available height. */
.plus-payment-checkout-dialog{display:flex;flex-direction:column;overflow:hidden}
.plus-payment-checkout-dialog>h2,.plus-payment-checkout-dialog>[data-plus-close]{flex-shrink:0}
.plus-payment-checkout-dialog>.plus-payment-content{min-height:0;flex-shrink:1}
body .plus-payment-checkout-dialog .plus-payment-content .secondary{color:var(--accent)}
body .plus-payment-checkout-dialog .plus-payment-content button:disabled{color:var(--muted)}

/* Keep the comparison compact and reserve real plot height; awards follow it. */
.duel-statistics.battle-comparison-stage .duel-results{flex:.65 1 0}
.duel-statistics.battle-comparison-stage .duel-chart{flex:1.35 1 0}
@container battle-viewport (max-height:340px){.duel-statistics.battle-comparison-stage .duel-results,.duel-statistics.battle-comparison-stage .duel-chart{flex:1 1 0}}
.duel-chart:has(.duel-chart-empty){align-items:center;justify-content:center;text-align:center}
.duel-statistics .duel-chart>.duel-chart-empty{display:block}
.duel-statistics .duel-fighters .person-profile-name{font-size:14px;line-height:20px;font-weight:400;text-align:center;max-width:100%;overflow-wrap:anywhere}
@container battle-viewport (max-height:500px){.duel-statistics .duel-fighters .person-profile-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.feedback-fields{display:flex;flex-direction:column;gap:12px}.feedback-fields p{margin:0}.feedback-kinds,.feedback-actions{display:flex;gap:8px}.feedback-kinds>button,.feedback-actions>button{flex:1;min-width:0;min-height:40px}.feedback-kinds>[aria-pressed=true]{background:var(--panel2);border:2px solid var(--accent);color:var(--accent)}.feedback-fields textarea{width:100%;min-height:112px;max-height:240px;resize:vertical;font:inherit}.feedback-fields .field{display:flex;flex-direction:column;gap:6px}.feedback-fields small{font-size:12px;color:var(--muted)}[data-sheet=feedback]{max-height:calc(100dvh - 32px)}
.feedback-backdrop{align-items:center;justify-content:center}.sheet.feedback-dialog{width:calc(100% - 48px);max-width:560px;max-height:calc(100dvh - 48px);margin:auto;padding:24px;border-radius:28px;background:var(--panel2);border:0;box-sizing:border-box}.feedback-dialog>h2{font-size:24px;line-height:32px;margin:0 0 16px}.feedback-dialog .feedback-fields{max-height:max(120px,calc(100dvh - 200px));overflow:auto}.feedback-kinds>button{border-radius:8px;font-size:14px;font-weight:500}.feedback-kinds>[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 12%,var(--panel2))}.feedback-actions>button{border-radius:100px;font-weight:500;padding-inline:12px;white-space:nowrap}.feedback-dialog .feedback-fields textarea{min-height:128px}

.feedback-actions>[data-action=close-sheet]{border-color:transparent;background:transparent;color:var(--accent)}
