/* V8: compact iOS presentation. All existing data controls remain available. */
body:has(section.active:not(#dashboard))>.v6-header{display:none}
.ios-heading{margin:0 0 18px;padding-right:48px}.ios-heading small,.ios-heading p{display:none}.ios-heading h2{font-size:27px;line-height:44px;margin:0;letter-spacing:-.8px}
.card{padding:15px 14px;border:1px solid var(--ios-line);border-radius:14px;margin:12px 0;box-shadow:none}h2{font-size:16px;letter-spacing:-.3px}h3{font-size:14px}p{font-size:13px;line-height:1.5}.tiny{font-size:12px;line-height:1.45}
section:not(#journal) .card>h2{margin-bottom:10px}input,select,textarea{border-radius:11px;min-height:44px}button{border-radius:11px;font-size:14px}.full{min-height:44px}.v62-tabs{gap:3px;background:var(--ios-line);padding:3px;border-radius:15px;margin:12px 0 16px}.v62-tab{border:0!important;border-radius:12px;padding:8px;font-size:12px;min-height:36px;background:transparent!important}.v62-tab.selected{background:var(--ios-key)!important;color:var(--ios-surface)!important}:root[data-mode=dark] .v62-tab.selected{color:#10141d!important}
.v7-week-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.v7-week-card{padding:12px;border-radius:14px;gap:5px}.v7-week-card strong{font-size:26px}.v7-week-card span{font-size:12px}.v7-week-card small{font-size:11px}.v7-section-title>span{font-size:17px}.v7-calendar-card,.v7-quick-card,.v7-last-card{padding:13px}.v7-day-circle{width:31px;font-size:12px}.v7-card-head h2{font-size:16px}.v7-quick-actions button{font-size:13px}
.stat,.v68-metric,.cardio-summary>div,.progress-stats>div{border-radius:12px;padding:11px 8px}.stat b,.v68-metric strong{font-size:22px}.v68-metric small{font-size:11px}.progress-choice-grid{gap:10px}.v68-compare{font-size:12px}
.v8-advanced{border-top:1px solid var(--ios-line);padding:12px 0;margin:12px 0}.v8-advanced>summary{font-size:13px;color:var(--ios-muted);cursor:pointer;min-height:30px}.v8-advanced>.card{margin-top:10px}
.v8-progress-machine{position:relative;background:var(--ios-surface);border:1px solid var(--ios-line);border-radius:14px;padding:10px;margin-bottom:14px;display:flex;align-items:center;gap:12px;min-height:84px}.v8-progress-machine select{position:absolute;inset:0;width:100%!important;height:100%;opacity:0;z-index:2;cursor:pointer}.v8-progress-machine:focus-within{outline:2px solid var(--ios-key);outline-offset:2px}.v8-progress-label{min-width:0;flex:1;padding-right:18px}.v8-progress-label small{font-size:11px;color:var(--ios-muted);display:block}.v8-progress-label strong{display:block;font-size:15px;line-height:1.3;margin:4px 0;overflow-wrap:anywhere}.v8-progress-machine:after{content:'⌄';position:absolute;right:12px;top:30px;color:var(--ios-muted)}
body .v8-progress-machine .machine-art{width:64px;height:64px;min-height:0;border-radius:9px;flex-shrink:0}.v8-progress-machine .machine-art[hidden]{display:none}
#reportContent .v8-history-machine{padding:0;margin:10px 0;background:var(--ios-surface);border:1px solid var(--ios-line);border-radius:14px;overflow:hidden}.v8-history-machine>summary{display:flex;align-items:center;gap:10px;list-style:none;padding:10px;cursor:pointer}.v8-history-machine>summary::-webkit-details-marker{display:none}.v8-history-machine>summary:after{content:'⌄';font-size:18px;color:var(--ios-muted);margin-left:auto}.v8-history-machine[open]>summary:after{transform:rotate(180deg)}body .v8-history-machine .machine-art{width:50px;height:50px;min-height:0;border-radius:9px;flex-shrink:0}.v8-history-text{min-width:0;flex:1}.v8-history-text strong{display:block;font-size:14px;line-height:1.3}.v8-history-text small{font-size:11px;color:var(--ios-muted);display:block;margin-top:2px}.v8-history-variants{display:block;color:var(--ios-key);font-size:12px;margin-top:5px;line-height:1.4}.v8-history-details{padding:0 12px 10px;font-size:12px}.v8-history-series{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--ios-line)}.v8-history-series span:first-child{color:var(--ios-muted)}.v8-history-details .tiny{margin-top:10px}
.report-summary{border:0;border-radius:12px;background:var(--ios-tint);font-size:12px;padding:12px}.report-exercise{border-radius:12px;font-size:13px;padding:12px}.v62-friend-hub>h2,.v62-friend-hub>p.tiny{display:none}.v62-friend-hub{padding:13px}.v62-friend-summary>div{padding:11px;border-radius:12px}.v62-friend-summary strong{font-size:23px;color:var(--ios-key)}.v62-friend-progress{padding:10px}.v62-friend-progress .friend-day{padding:10px}.friend-day h4{font-size:14px}.friend-day .item{font-size:12px}.v62-friend-hub #friendAccepted{margin:12px 0}
#exerciseList .v69-machine-row{grid-template-columns:58px minmax(0,1fr) auto;min-height:77px;gap:10px;border-radius:14px}#exerciseList .v69-machine-row:has(.machine-placeholder){grid-template-columns:58px minmax(0,1fr) auto}#exerciseList .machine-art,#exerciseList .machine-placeholder{width:58px;height:58px;min-height:0}#exerciseList .v69-machine-main strong{font-size:13px}.v69-muscle-badge{font-size:11px;padding:3px 8px}.illustration-controls{gap:8px}.illustration-controls select{max-width:140px}.v69-machine-popover{background:var(--ios-surface)}
#health>.card:first-of-type>h2,#programs>.card:first-of-type>h2,#attendance>.card:first-of-type>h2{font-size:16px}.attendance-day{min-height:36px}.attendance-stats strong{font-size:22px}
#settings .ios-palettes{gap:7px}.theme-preview{display:none}.v8-primary{background:var(--ios-key)!important;color:var(--ios-surface)!important}:root[data-mode=dark] .v8-primary{color:#10141d!important}
@media(max-width:360px){.card{padding:12px}.v8-progress-label strong{font-size:13px}body .v8-progress-machine .machine-art{width:54px;height:54px}#exerciseList .v69-machine-row{grid-template-columns:50px minmax(0,1fr) auto;gap:8px}#exerciseList .v69-machine-row:has(.machine-placeholder){grid-template-columns:50px minmax(0,1fr) auto}#exerciseList .machine-art,#exerciseList .machine-placeholder{width:50px;height:50px}}
/* Main screens use the same unboxed entry layout as Séance. */
#progress>.card,#reports>.card:first-of-type,#health>.card:first-of-type,#programs>.card:first-of-type,#attendance>.card:first-of-type,#friendtracking>.card{border:0;background:transparent;padding:0;box-shadow:none}
#progress>.card>h2,#reports>.card:first-of-type>h2,#health>.card:first-of-type>h2,#programs>.card:first-of-type>h2,#attendance>.card:first-of-type>h2{display:none}
#progress>.card>.progress-stats>div{background:var(--ios-tint);border:0}
#progress>.card .progress-visual{background:var(--ios-surface);border-radius:14px;border:1px solid var(--ios-line);padding:10px}
#progress>.card #progressPointDetail{border-radius:12px}
#health .card,#settings .card{border-radius:14px}
