/* Babou Coach V7: compact mobile shell, scoped to the new interface. */
body.v7{overflow-x:clip!important;overflow-y:visible!important;--v7-gold:#e8c777;--v7-muted:#a7bacb;--v7-border:#2b4154;--v7-card:#112334;background:#081522;color:#f7f3e8;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px;line-height:1.5}
body.v7 header{position:sticky!important;top:0!important;padding:env(safe-area-inset-top,0px) 0 0!important;min-height:0!important;height:auto!important;background:#081522f5!important;backdrop-filter:blur(12px);border-bottom:1px solid #223749;box-shadow:none!important}
body.v7 header .header-inner{display:flex!important;align-items:center!important;justify-content:space-between!important;max-width:900px;min-height:66px!important;height:auto!important;padding:8px max(16px,env(safe-area-inset-right,0px)) 8px max(16px,env(safe-area-inset-left,0px))!important;gap:12px}
body.v7 header .brand{display:flex!important;align-items:center!important;flex-direction:row!important;gap:9px!important;margin:0!important;padding:0!important;text-align:left!important}
body.v7 header .brand img{width:36px!important;height:36px!important;object-fit:contain!important;margin:0!important;border-radius:9px}
body.v7 header .brand strong{font-size:17px!important;letter-spacing:0!important;line-height:1.3!important}
body.v7 header .brand small{display:inline!important;font-size:11px!important;margin-left:5px;color:#a7bacb;letter-spacing:0!important}
body.v7 header .header-actions{position:static!important;display:flex!important;margin:0!important;transform:none!important;width:auto!important}
body.v7 #settingsShortcut{font-size:22px!important;width:42px!important;height:42px!important;padding:6px!important}
body.v7 main{padding:12px 14px calc(90px + env(safe-area-inset-bottom))!important;max-width:900px!important;margin:auto!important}
body.v7 .page{padding:0!important;scroll-margin-top:78px}
body.v7 nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;transform:none!important;width:100%!important;max-width:none!important;margin:0!important;padding:5px max(5px,calc((100vw - 900px)/2)) calc(5px + env(safe-area-inset-bottom))!important;border:0!important;border-top:1px solid #2b4154!important;border-radius:0!important;background:#081522fa!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0!important;backdrop-filter:blur(14px)}
body.v7 nav [data-page]{min-width:0!important;min-height:54px!important;margin:0!important;padding:4px 1px!important;border:0!important;border-radius:8px!important;background:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;box-shadow:none!important;overflow:visible!important;white-space:nowrap!important;color:#a7bacb;font-size:10px!important}
body.v7 nav [data-page] .nav-icon{font-size:23px!important;line-height:1.1!important}
body.v7 nav [data-page]>span:last-child{overflow:visible!important;text-overflow:clip!important;font-size:10px!important}
body.v7 nav [data-page].active{color:#e8c777!important;background:#e8c7770a!important}
body.v7 h1{font-size:28px!important;line-height:1.2!important;letter-spacing:-.025em!important;margin:0 0 7px!important}
body.v7 h2{font-size:20px!important;line-height:1.3!important;letter-spacing:-.015em!important;margin:0 0 8px!important}
body.v7 h3{font-size:17px!important;margin:0 0 7px!important}
body.v7 p{margin:8px 0;color:var(--v7-muted)}
body.v7 small{color:var(--v7-muted);font-size:12px}
body.v7 button,body.v7 input,body.v7 select{font:inherit}
body.v7 button{cursor:pointer;touch-action:manipulation}
body.v7 button:focus-visible,body.v7 summary:focus-visible{outline:2px solid #e8c777;outline-offset:3px}
body.v7 [hidden]{display:none!important}
.v7-page-title{padding:12px 0 6px}
.v7-card,.v7-fold{padding:17px;margin:12px 0;border:1px solid var(--v7-border);border-radius:17px;background:linear-gradient(135deg,#152a3c,#0d1d2b);box-shadow:none}
.v7-primary,.v7-secondary{border-radius:11px;min-height:44px;padding:10px 14px;font-weight:650;border:1px solid #e8c777;white-space:normal}
.v7-primary{background:linear-gradient(110deg,#f0d58e,#dfbb6b);color:#101c29}.v7-secondary{background:transparent;color:#e8c777;border-color:#6b634d}.v7-link{background:none;border:0;color:#e8c777;padding:7px 0;min-height:44px;font-size:12px!important}
.v7-card>.v7-primary{width:100%;margin-top:13px;display:flex;justify-content:space-between}.v7-kicker{display:block;color:#e8c777;font-size:11px;letter-spacing:.1em;font-weight:700;margin-bottom:12px}
.v7-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.v7-two>.v7-card{margin:0}.v7-tile{text-align:left;color:#f7f3e8;display:grid;gap:7px}.v7-tile strong{font-size:15px}.v7-glyph{font-size:25px;color:#e8c777}
.v7-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.v7-row h2{margin:0!important}.v7-meter{height:7px;background:#283f51;border-radius:10px;overflow:hidden;margin-top:8px}.v7-meter i{display:block;height:100%;background:#e8c777;border-radius:10px}.v7-meter-line{font-size:15px}.v7-calendar-link{display:flex;justify-content:space-between;gap:12px;width:100%;color:#f7f3e8;text-align:left}.v7-calendar-link span{color:#e8c777;font-size:12px}
.v7-targets article{padding:14px 0;border-bottom:1px solid #2b4154}.v7-targets article:first-child{padding-top:0}.v7-targets h2{font-size:17px!important}.v7-target-numbers{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin:9px 0}.v7-target-numbers>strong{font-size:25px}.v7-target-numbers span{font-size:13px;color:#a7bacb}.v7-target-numbers b{color:#e8c777;margin-left:5px}.v7-targets>button{width:100%;margin-top:15px}
.v7-fold summary,.v7-card summary{cursor:pointer;font-weight:650;min-height:32px;color:#e8c777}.v7-fold[open]>summary{margin-bottom:12px}.v7-fold>.v5-card,.v7-fold>.emom-panel{margin:0!important;border:0!important;padding:0!important;background:none!important;box-shadow:none!important}
.v7-month-nav{display:flex;justify-content:space-between;align-items:center;margin:18px 0}.v7-month-nav h2{font-size:18px!important;margin:0!important;text-transform:capitalize}.v7-month-nav button{width:44px;height:44px;border:0;border-radius:9px;background:#14293b;color:#e8c777;font-size:26px!important}
.v7-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}.v7-calendar-grid>button{display:grid;place-items:center;align-content:center;gap:2px;min-height:52px;padding:3px;border:1px solid #263a4a;border-radius:10px;background:#0d2030;color:#f7f3e8}.v7-calendar-grid>button small{font-size:8px;letter-spacing:1px;min-height:11px;color:#58d8c0}.v7-calendar-grid>button.selected{background:#e8c777;color:#0b1a29;border-color:#e8c777;font-weight:750}.v7-calendar-grid>button.selected small{color:#173c38}.v7-calendar-grid>button.today:not(.selected){border-color:#e8c777}.v7-weekday{text-align:center;font-size:11px;padding:6px;color:#a7bacb}.v7-calendar-tools{margin:7px 0;font-size:10px;color:#a7bacb}.v7-day-entry{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:14px 0;border-bottom:1px solid #2b4154}.v7-day-entry small{display:block}.v7-day-entry button{font-size:11px;padding:8px;min-width:85px}.v7-availability{margin-top:16px}.v7-availability label{display:block;margin:10px 0;color:#a7bacb;font-size:13px}.v7-availability select,.v7-availability input{display:block;width:100%;min-height:44px;background:#081522;color:#f7f3e8;border:1px solid #3a5266;border-radius:9px;padding:8px}.v7-availability button{width:100%;margin:6px 0}
/* Old renderers stay alive for data/actions, while one visible surface owns each task. */
body.v7 #home>:not(#v7Home):not(#v7StartupWarning){display:none!important}
body.v7 #planning>:not(#v7Calendar){display:none!important}
body.v7 #progress>.v5-progress-shell>:not(#v7Progress):not(.v7-fold){display:none!important}
body.v7 #progress>#emomSummaryProgress,body.v7 #progress>#v62ExerciseHistory,body.v7 #progress>#v621Progress{display:none!important}
body.v7 #tracking>.v5-health-shell{display:none!important}body.v7.v7-health-details #tracking>.v5-health-shell{display:block!important}
body.v7 #v62Freshness,body.v7 .v58-workout-cycle,body.v7 #v64Quick{display:none!important}
body.v7 #v5WorkoutProgram>section:has(#v5WorkoutAdvice),body.v7 #v5WorkoutProgram>section:has(#v5WorkoutBestRow){display:none!important}
body.v7 .v5-card,body.v7 .card,body.v7 .emom-panel{padding:17px;border-radius:17px;margin-bottom:12px;box-shadow:none}
body.v7 .v5-workout-head{padding:12px 0!important;margin-bottom:10px!important;background:none!important;border:0!important}.v7 .v5-workout-head .v5-eyebrow,.v7 .v5-workout-head p{display:none!important}.v7 .v5-workout-head h1{font-size:26px!important}.v7 .v5-session-card{border-radius:16px!important;padding:15px!important;gap:12px!important}.v7 .v5-session-card>b{font-size:27px!important;width:44px!important;min-width:44px!important;height:44px!important;border-radius:11px!important}.v7 .v5-session-card strong{font-size:19px!important}.v7 .v5-session-card em,.v7 .v5-format-help,.v7 .v52-planned-slot.unplanned{display:none!important}.v7 .v5-session-card select{min-height:44px!important;padding:8px!important}.v7 .v5-session-launch{padding:12px!important;font-size:14px!important;min-height:44px!important}
body.v7 .v5-tabs{margin:12px 0!important;gap:8px!important}body.v7 .v5-tabs button{padding:9px 15px!important;font-size:14px!important;min-height:44px!important}.v7 .v5-eyebrow{font-size:11px!important;letter-spacing:.1em!important}.v7 .v5-primary,.v7 .v5-secondary{font-size:14px!important;min-height:44px!important;padding:10px 14px!important}
body.v7 .v57-session-extras{display:none!important}
.v7-activity-buttons{display:grid;gap:8px}
@media(min-width:700px){#v7Home{max-width:620px;margin:auto}#v7Calendar{max-width:640px;margin:auto}.v7-calendar-grid>button{min-height:64px}}
@media(prefers-reduced-motion:reduce){body.v7 *{scroll-behavior:auto!important;animation:none!important}}
