*{box-sizing:border-box}body{background:#0d0d10;color:#f4f4f7;font:16px Inter Tight,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;margin:0}.shell{max-width:960px;margin:auto;padding:20px}header{display:flex;justify-content:space-between;align-items:center;padding:16px 0 28px}.brand{font-size:21px;font-weight:800;letter-spacing:.1em}.brand small{font-size:10px;color:#9a9aa4}.panel,.meal,.day-menu{background:#17171b;border:1px solid #393941;border-radius:16px;padding:20px;margin:12px 0}.welcome h1{margin:0}.welcome p,footer,.status,.hint{color:#a9a9b4}h2{font-size:20px}button,input{font:inherit}button{background:#27272d;border:1px solid #43434c;border-radius:12px;color:#fafafa;padding:11px 15px;cursor:pointer}button[aria-pressed=true],.selected{border-color:#ddd;background:#393940}label{display:block;margin:14px 0}input{display:block;margin-top:8px;width:100%;max-width:400px;padding:13px;color:white;background:#26262c;border:1px solid #474750;border-radius:10px}#tabs,.colors{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.date-nav{display:flex;align-items:center;justify-content:space-between;gap:12px}.date-nav h2{font-size:17px;text-align:center}.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:18px 0}.week button{padding:10px 2px;font-size:12px}.meal h3{margin:0 0 12px}.bar{height:9px;border-radius:7px;margin-bottom:12px}.orange{background:#FF8A1F}.yellow{background:#FFC800}.blue{background:#0A84FF}.green{background:#4CD964}.vp{background:#00C853}.red{background:#FF453A}details{border-top:1px solid #38383f;padding:12px 0}summary{cursor:pointer}summary::marker{color:#aaa}.option{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.macro{display:inline-flex;gap:10px;flex-wrap:wrap;font-size:13px;justify-content:flex-end}.kcal{color:#9fc9af}.protein{color:#9bbbd6}.carbs{color:#d9b19b}.fat{color:#d9cb98}.foods{color:#b9b9c2;padding:8px 0;border-bottom:1px solid #303038}.menu-line{background:#24242a;padding:12px;border-radius:10px;margin:12px 0}.menu-line small{display:block;color:#aaa}.dish-img{width:96px;height:96px;object-fit:cover;border-radius:11px}.day-menu{display:grid;gap:14px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.row .value{flex:1}.error{color:#f0b7b7}.status{margin:14px 0}@media(max-width:580px){.shell{padding:12px}.week button{font-size:10px;padding:10px 1px}.panel,.meal,.day-menu{padding:14px}.date-nav h2{font-size:14px}}
.color-dot{display:inline-block;width:13px;height:13px;border-radius:50%;flex:none}.colors button{display:inline-flex;align-items:center;gap:9px}.expanded-option-macros{display:none}details[open] .expanded-option-macros{display:inline-flex}details summary .option{align-items:center}details summary .option>span:first-child{flex:1}.row .value{min-width:180px}.dish-img{flex:none}

/* Mobile-first refinement of the authenticated player experience */
:root{color-scheme:dark}
[hidden]{display:none!important}
.shell{width:min(100%,1060px);padding:clamp(14px,3vw,32px)}
header{padding:10px 0 24px}
.welcome{padding:0 2px}.welcome h1{font-size:clamp(25px,4vw,36px);letter-spacing:-.035em}.welcome p{margin:5px 0 0}
#tabs{background:#17171b;border:1px solid #37373f;border-radius:15px;padding:5px;gap:5px}
#tabs button{flex:1;border:0;background:transparent;padding:13px 8px;font-weight:600}
#tabs button[aria-pressed=true]{background:#38383e;box-shadow:inset 0 0 0 1px #75757e}
.date-nav{margin:18px 0 10px}.date-nav>button{min-width:46px;min-height:46px}
.week{gap:5px;margin:12px 0 20px}.week button{border-radius:10px;min-height:46px}
.meal,.day-menu{border-color:#33333b;box-shadow:0 1px 0 #ffffff06}
.meal>h3{font-size:19px}.bar{height:7px}
.meal details summary{list-style:none;display:block;padding:1px 0}
.meal details summary::-webkit-details-marker{display:none}
.meal details summary .option{position:relative;padding-left:21px;min-height:24px}
.meal details summary .option:before{content:"›";position:absolute;left:2px;top:-3px;color:#bfc0c8;font-size:25px;line-height:1;transition:transform .15s}
.meal details[open] summary .option:before{transform:rotate(90deg)}
.meal .option>span:first-child{min-width:0;overflow-wrap:anywhere}
.meal .option>.macro{margin-left:auto}
.meal .foods{font-size:14px;line-height:1.45}
#plan-detail .meal .option:first-child{align-items:baseline}
#plan-detail .meal .option h3{margin:0}
#plan-detail .meal>div.option{margin-bottom:12px}
.day-menu .row{padding:12px 0;border-top:1px solid #34343b}
.day-menu .row strong{min-width:60px}
.day-menu h3{margin:0}
@media(max-width:620px){
 header{padding:10px 0 18px}.brand{font-size:17px}
 .shell{padding:12px 14px 28px}
 .welcome h1{font-size:28px}
 #tabs{gap:3px}#tabs button{font-size:14px;padding:12px 3px}
 .date-nav h2{font-size:14px;line-height:1.35}
 .week{gap:3px}.week button{font-size:10px;padding:7px 0;min-width:0}
 .meal,.day-menu{border-radius:14px;margin:10px 0;padding:15px}
 .meal h3{font-size:17px}
 .macro{justify-content:flex-start;font-size:12px;gap:6px 10px}
 .option{gap:6px 10px}
 .meal .option>.macro{width:100%;justify-content:flex-start}
 .meal details[open] summary .option>.macro{padding-top:5px;padding-left:0}
 .day-menu .row{display:grid;grid-template-columns:65px 12px minmax(0,1fr);column-gap:8px}
 .day-menu .row .dish-img{grid-column:3;width:84px;height:84px;margin-top:8px}
 .row .value{min-width:0;overflow-wrap:anywhere}
 .colors{gap:6px}.colors button{padding:10px 12px}
}

/* Daily glance: all five meal colors and closed-by-default meal sections */
.daily-color-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:12px 0 16px}
.daily-color-cell{min-width:0;display:flex;flex-direction:column;gap:8px}
.daily-color-cell small{font-size:11px;color:#afb0b8;overflow-wrap:anywhere}
.daily-color-bar{height:8px;background:#35353d;border-radius:6px}
.daily-nutrition{background:#1b1b20;border:1px solid #383840;border-radius:13px;padding:15px;margin:12px 0 20px}
.daily-nutrition h3{font-size:15px;margin:0 0 10px}
.daily-meal{padding:0!important}
.daily-meal>.daily-meal-head{list-style:none;display:flex;align-items:center;gap:var(--day-header-gap,8px);padding:18px;cursor:pointer;min-height:64px}
.daily-meal>.daily-meal-head::-webkit-details-marker{display:none}
.daily-meal>.daily-meal-head:before{content:"›";font-size:26px;line-height:1;color:#c1c1c8;transition:transform .15s}
.daily-meal[open]>.daily-meal-head:before{transform:rotate(90deg)}
.daily-meal>.daily-meal-head strong{font-size:18px;flex:1}
.daily-meal-indicator{width:44px;height:8px;border-radius:6px}
.daily-meal>.menu-line,.daily-meal>p,.daily-meal>details{margin-left:18px;margin-right:18px}
.daily-meal>details:last-child{margin-bottom:16px}
@media(max-width:620px){.daily-color-strip{gap:4px}.daily-color-cell small{font-size:9px;letter-spacing:-.03em}.daily-color-bar{height:7px}.daily-meal>.daily-meal-head{padding:15px}.daily-meal>.daily-meal-head strong{font-size:17px}}

/* Correct colored overview strips: the neutral base must not override assigned colors. */
.daily-color-bar.orange,.daily-meal-indicator.orange{background:#FF8A1F}
.daily-color-bar.yellow,.daily-meal-indicator.yellow{background:#FFC800}
.daily-color-bar.blue,.daily-meal-indicator.blue{background:#0A84FF}
.daily-color-bar.green,.daily-meal-indicator.green{background:#4CD964}
.daily-color-bar.vp,.daily-meal-indicator.vp{background:#00C853}
.daily-color-bar.red,.daily-meal-indicator.red{background:#FF453A}
.daily-nutrition-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.daily-nutrition-card{background:#151519;border:1px solid #393940;border-radius:11px;padding:12px;min-width:0}
.daily-nutrition-card small{display:block;color:#b2b2bb;margin-bottom:8px}
.daily-nutrition-card strong{display:block;font-size:clamp(15px,2.3vw,22px);white-space:nowrap}
@media(max-width:620px){
 .daily-nutrition-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .daily-nutrition-card strong{font-size:18px}
 #player-panel{padding-bottom:90px}
 #tabs{position:fixed;z-index:30;bottom:calc(8px + env(safe-area-inset-bottom,0px));left:max(12px,calc(50% - 149px));right:max(12px,calc(50% - 149px));margin:0;box-shadow:0 8px 30px #0009;background:#1b1b20}
 #tabs button{min-height:49px}
}

/* Compact menu cards and muted nutrient identifiers */
.macro>span{display:inline-flex;align-items:center;gap:5px}
.macro-dot{display:inline-block;width:7px;height:7px;flex:none;border-radius:50%;background:currentColor;opacity:.72}
.meal-average{font-weight:650}
.meal-average .macro{font-weight:650}
.meal details .foods:last-child{border-bottom:0}
.menu-entry{display:block!important}
.menu-entry-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px}
.menu-entry-body{display:flex;align-items:flex-start;gap:14px;justify-content:space-between}
.menu-entry-body .value{flex:1;min-width:0;overflow-wrap:anywhere}
.menu-entry-body .dish-img{width:88px;height:88px;object-fit:cover;flex:none;margin:0!important}
@media(max-width:620px){
 .day-menu .menu-entry{display:block!important}
 .menu-entry-body{display:flex!important;gap:12px;align-items:flex-start}
 .menu-entry-body .dish-img{width:82px;height:82px;grid-column:auto;margin:0!important}
 .menu-entry-heading{margin-bottom:8px}
}

.daily-nutrition-card .per-kg{display:block;margin-top:6px;color:#a9a9b4;font-size:12px}

/* Calendar v2: minimal transparent date tiles with microcycle labels */
:is(#week-strip,#menu-week-strip).week{display:grid;grid-template-columns:28px repeat(7,minmax(0,1fr)) 28px;gap:5px;align-items:stretch;margin:16px 0 26px}
:is(#week-strip,#menu-week-strip) .week-day{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:100px;padding:10px 1px;background:rgba(255,255,255,.035);border:none;border-radius:13px;color:#f2f2f4;box-shadow:none}
:is(#week-strip,#menu-week-strip) .week-day.selected{background:rgba(255,255,255,.15);outline:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.33)}
:is(#week-strip,#menu-week-strip) .week-day .weekday,:is(#week-strip,#menu-week-strip) .week-day .day-classification{font-size:11px;color:#aaaab4;font-weight:400;line-height:1.2;white-space:nowrap}
:is(#week-strip,#menu-week-strip) .week-day .day-number{font-size:20px;font-weight:720;line-height:1}
:is(#week-strip,#menu-week-strip) .week-day.selected .day-classification{color:#e9e9ef}
:is(#week-strip,#menu-week-strip) .week-arrow{background:none;border:none;box-shadow:none;padding:0;color:#e2e2e8;font-size:30px;font-weight:300;min-width:0;min-height:100px;border-radius:0}
:is(#week-strip,#menu-week-strip) .week-arrow:active{opacity:.6}
.selected-date{color:#9e9ea8;font-size:13px;letter-spacing:.01em;margin:0 0 4px}
#day-details>h2{margin:0 0 22px;font-size:27px}
.daily-nutrition,.daily-nutrition-card,.daily-meal{border:none!important;box-shadow:none!important;background:rgba(255,255,255,.04)}
.daily-nutrition-card{background:rgba(255,255,255,.035)}
@media(max-width:620px){
 :is(#week-strip,#menu-week-strip).week{grid-template-columns:18px repeat(7,minmax(0,1fr)) 18px;gap:3px;margin:14px 0 23px}
 :is(#week-strip,#menu-week-strip) .week-day{min-height:87px;gap:6px;padding:9px 0;border-radius:10px}
 :is(#week-strip,#menu-week-strip) .week-day .weekday,:is(#week-strip,#menu-week-strip) .week-day .day-classification{font-size:10px}
 :is(#week-strip,#menu-week-strip) .week-day .day-number{font-size:18px}
 :is(#week-strip,#menu-week-strip) .week-arrow{font-size:27px;min-height:87px}
}

/* Unified soft surfaces, no outlines: player-facing content */
#plans .meal,#overview .daily-meal,#menus .day-menu,#overview .daily-nutrition,#overview .daily-nutrition-card{border:0!important;box-shadow:none!important;background:rgba(255,255,255,.035)}
#plans .meal,#menus .day-menu{background:rgba(255,255,255,.045)}
#tabs,#tabs button,#plan-detail details,#overview .daily-meal,#menus .menu-entry{border:0!important;box-shadow:none!important}
#tabs button[aria-pressed=true]{background:rgba(255,255,255,.17)}
#tabs{background:rgba(28,28,34,.96)}
#menus .date-nav{margin:12px 0 16px}
#menus .date-nav button{background:none;border:0;box-shadow:none;font-size:30px;padding:5px 10px;min-width:36px}
#menus .date-nav strong{font-size:16px;font-weight:650}
.menu-day-heading{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}
.menu-day-heading h3{font-size:20px;margin:0;font-weight:700}
.menu-day-subtitle{font-size:13px;color:#a7a7b0;font-weight:500}
#menus .day-menu .row{border-top:1px solid rgba(255,255,255,.09)}
@media(max-width:620px){#menus .date-nav button{min-width:30px}#menus .day-menu{padding:17px}}

/* Phase 1: clearer, compact player reading */
.welcome p{display:none}
.daily-nutrition{padding:12px!important;margin:10px 0 18px}
.daily-nutrition h3{font-size:14px;margin-bottom:9px}
.daily-nutrition-grid{gap:7px}
.daily-nutrition-card{padding:10px!important;border-radius:12px}
.daily-nutrition-card small{font-size:12px;margin-bottom:5px}
.daily-nutrition-card strong{font-size:clamp(16px,3vw,21px)}
.daily-nutrition-card .per-kg{margin-top:4px}
.daily-meal{--tint:rgba(255,255,255,.045);background:var(--tint)!important}
.tone-orange{--tint:rgba(233,148,74,.12)}.tone-yellow{--tint:rgba(229,202,98,.12)}.tone-blue{--tint:rgba(107,174,217,.12)}.tone-green{--tint:rgba(120,201,155,.12)}.tone-vp{--tint:rgba(178,220,174,.12)}
.daily-meal>.daily-meal-head{flex-direction:row;padding:17px 16px}
.daily-meal>.daily-meal-head:before{display:none}
.daily-meal>.daily-meal-head:after{content:"›";font-size:27px;line-height:1;color:#c4c4cc;margin-left:auto;transition:transform .16s}
.daily-meal[open]>.daily-meal-head:after{transform:rotate(90deg)}
.daily-meal>.daily-meal-head strong{flex:1}
.daily-meal>.daily-meal-head .daily-meal-indicator{display:none}
#plan-detail .plan-meal{padding:16px}
#plan-detail .plan-option-card{display:block;background:rgba(255,255,255,.05);border-radius:11px;margin:9px 0;padding:12px 13px}
#plan-detail .plan-option-card summary .option{display:flex;align-items:center;padding-right:23px;position:relative}
#plan-detail .plan-option-card summary .option:before{display:none}
#plan-detail .plan-option-card summary .option:after{content:"›";position:absolute;right:2px;top:0;font-size:23px;color:#bbbcc4;transition:transform .15s}
#plan-detail .plan-option-card[open] summary .option:after{transform:rotate(90deg)}
#plan-detail .plan-option-card .foods:last-child{border-bottom:none}
#menus .menu-entry{--tint:rgba(255,255,255,.04);background:var(--tint);border:none!important;border-radius:13px;padding:13px!important;margin:9px 0}
/* Unassigned meal: compact universal geometry, secondary copy, no fake prescription. */
#menus .day-menu .menu-entry--unassigned{box-sizing:border-box;min-height:61px!important;border-radius:13px!important;justify-content:center!important}
#menus .day-menu .menu-entry--unassigned .menu-entry-heading strong{font-size:16px!important;font-weight:var(--mile-type-card-title,400)!important;color:#f2f2f4!important}
#menus .day-menu .menu-entry--unassigned .menu-entry-body .value{font-size:12px!important;font-weight:400!important;line-height:1.3!important;color:#a4a4ad!important}
#menus .menu-entry .color-dot{display:none}
#menus .menu-entry-body .dish-img{border-radius:10px}
@media(max-width:620px){
 .daily-nutrition{padding:11px!important}
 .daily-nutrition-card{padding:11px!important}
 .daily-nutrition-card strong{font-size:17px}
 #plan-detail .plan-option-card{padding:13px 12px}
 #menus .menu-entry{padding:12px!important}
}

/* UI polish 1.1 */
:is(#week-strip,#menu-week-strip) .week-day.today .day-number{color:#87b8ee}
:is(#week-strip,#menu-week-strip) .week-day.today:not(.selected) .day-number{background:rgba(120,175,230,.14);border-radius:50%;width:31px;height:31px;display:grid;place-items:center}
.daily-nutrition{padding:8px!important;margin:8px 0 14px}
.daily-nutrition h3{font-size:13px;margin-bottom:7px}
.daily-nutrition-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.daily-nutrition-card{padding:7px!important;border-radius:9px}
.daily-nutrition-card small{font-size:10px;margin-bottom:4px}
.daily-nutrition-card strong{font-size:clamp(13px,2vw,19px);white-space:nowrap}
.daily-nutrition-card .per-kg{font-size:10px;margin-top:4px;white-space:nowrap}
.daily-meal.tone-orange{--tint:rgba(233,148,74,.19)}.daily-meal.tone-yellow{--tint:rgba(229,202,98,.19)}.daily-meal.tone-blue{--tint:rgba(107,174,217,.19)}.daily-meal.tone-green{--tint:rgba(120,201,155,.19)}.daily-meal.tone-vp{--tint:rgba(178,220,174,.19)}
#plan-detail .plan-option-card summary .option{padding-left:0!important}
#plan-detail .plan-option-card summary .option>span:first-child{padding-left:0!important}
@media(max-width:620px){.daily-nutrition-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.daily-nutrition-card{padding:7px 4px!important}.daily-nutrition-card strong{font-size:clamp(10px,2.9vw,16px)}.daily-nutrition-card small,.daily-nutrition-card .per-kg{font-size:clamp(8px,2vw,10px)}}

/* Finishing pass: clean nutrition and richer meal surfaces */
.daily-nutrition{padding:10px!important;margin:14px 0 24px;background:transparent!important}
.daily-nutrition-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.daily-nutrition-card{padding:14px 11px!important;min-height:95px;background:rgba(255,255,255,.075)!important}
.daily-nutrition-card small{font-size:12px;margin-bottom:7px}
.daily-nutrition-card strong{font-size:clamp(15px,2.4vw,22px)}
.daily-nutrition-card .per-kg{font-size:11px;margin-top:7px}
.daily-meal.tone-orange{--tint:rgba(233,148,74,.27)}
.daily-meal.tone-yellow{--tint:rgba(229,202,98,.25)}
.daily-meal.tone-blue{--tint:rgba(107,174,217,.27)}
.daily-meal.tone-green{--tint:rgba(120,201,155,.25)}
.daily-meal.tone-vp{--tint:rgba(178,220,174,.25)}
.daily-meal .daily-meal-head strong,#menus .menu-entry-heading strong{color:#fafafa}
#menus .menu-entry-body .value{color:#f3f3f5}
@media(max-width:620px){.daily-nutrition{padding:0!important}.daily-nutrition-grid{gap:5px}.daily-nutrition-card{padding:12px 7px!important;min-height:88px}.daily-nutrition-card strong{font-size:clamp(12px,3vw,17px)}.daily-nutrition-card small{font-size:11px}.daily-nutrition-card .per-kg{font-size:10px}}

/* Detail pass: readable nutrient spacing and solid meal surfaces */
.daily-nutrition-card{padding:15px 13px!important}
.daily-nutrition-card strong{margin:0!important;line-height:1.15}
.daily-nutrition-card .per-kg{margin-top:2px!important;line-height:1.2}
.daily-meal.tone-orange{--tint:#513924}
.daily-meal.tone-yellow{--tint:#4b4227}
.daily-meal.tone-blue{--tint:#283f50}
.daily-meal.tone-green{--tint:#294438}
.daily-meal.tone-vp{--tint:#354b38}
.daily-meal{background:var(--tint)!important}
.plan-option-label{display:flex;flex-direction:column;gap:5px;min-width:0}
.plan-option-label small{font-size:12px;color:#adaeb8;font-weight:400}
.plan-option-label strong{font-size:16px;color:#f6f6f7;font-weight:550;line-height:1.32;overflow-wrap:anywhere}
#plan-detail .plan-option-card summary .option{align-items:center}
@media(max-width:620px){
 .daily-nutrition-card{padding:12px 9px!important}
 .daily-nutrition-card .per-kg{margin-top:2px!important}
 .plan-option-label strong{font-size:15px}
}

/* Consistent opaque, vibrant meal colors across player views */
:root{--meal-orange:#4C2E14;--meal-yellow:#4C3E0C;--meal-blue:#0C3158;--meal-green:#214E2B;--meal-vp:#094D27}
.daily-meal.tone-orange{--tint:var(--meal-orange)}
.daily-meal.tone-yellow{--tint:var(--meal-yellow)}
.daily-meal.tone-blue{--tint:var(--meal-blue)}
.daily-meal.tone-green{--tint:var(--meal-green)}
.daily-meal.tone-vp{--tint:var(--meal-vp)}
#menus .menu-entry.tone-orange{background:var(--meal-orange)!important}
#menus .menu-entry.tone-yellow{background:var(--meal-yellow)!important}
#menus .menu-entry.tone-blue{background:var(--meal-blue)!important}
#menus .menu-entry.tone-green{background:var(--meal-green)!important}
#menus .menu-entry.tone-vp{background:var(--meal-vp)!important}
#menus .menu-entry-body .dish-img{background:transparent!important;object-fit:contain!important;border:0!important;box-shadow:none!important}
:is(#week-strip,#menu-week-strip) .week-day,:is(#week-strip,#menu-week-strip) .week-day.selected{background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important}
:is(#week-strip,#menu-week-strip) .week-day .day-number{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;margin:0 auto}
:is(#week-strip,#menu-week-strip) .week-day.selected .day-number{background:#f3f3f5!important;color:#17171b!important}
:is(#week-strip,#menu-week-strip) .week-day.today .day-number{color:#7bb8fa}
:is(#week-strip,#menu-week-strip) .week-day.today.selected .day-number{background:#f3f3f5!important;color:#2070bb!important}
:is(#week-strip,#menu-week-strip) .week-day.today:not(.selected) .day-number{background:transparent!important;color:#7bb8fa!important}
#overview .daily-meal details summary .option.day-option{padding-left:0!important;padding-right:26px!important;position:relative}
#overview .daily-meal details summary .option.day-option:before{display:none!important}
#overview .daily-meal details summary .option.day-option:after{content:"›";position:absolute;right:2px;top:0;font-size:24px;line-height:1;color:#e4e4e8;transition:transform .15s}
#overview .daily-meal details[open] summary .option.day-option:after{transform:rotate(90deg)}
@media(max-width:620px){:is(#week-strip,#menu-week-strip) .week-day .day-number{width:33px;height:33px}}

/* Mobile polish: shorter cards, larger nutrition numbers, right-only arrows */
.daily-nutrition-card{min-height:70px!important;padding:11px 15px!important}
.daily-nutrition-card small{margin-bottom:3px!important}
.daily-nutrition-card strong{font-size:clamp(17px,2.5vw,23px)!important;line-height:1.13!important}
.daily-nutrition-card .per-kg{margin-top:2px!important}
/* Canonical daily unit: 61px closed; open header retains 55px minimum. */
.daily-meal>.daily-meal-head{min-height:55px!important;padding:12px 17px!important}
#overview #day-details .daily-meal:not([open]){height:61px!important;min-height:61px!important;box-sizing:border-box!important}
#overview #day-details .daily-meal:not([open])>.daily-meal-head{height:61px!important;min-height:61px!important;box-sizing:border-box!important}
.daily-meal>.daily-meal-head strong{font-size:17px!important;font-weight:590!important}
.daily-meal>.daily-meal-head:before{content:none!important;display:none!important}
#overview .daily-meal>details summary .option.day-option{padding-left:0!important;padding-right:32px!important}
#overview .daily-meal>details summary .option.day-option:before{content:none!important;display:none!important}
#overview .daily-meal>details summary .option.day-option:after{content:"›"!important;position:absolute!important;left:auto!important;right:0!important;top:0!important;color:#f0f0f2!important;font-size:25px!important}
#overview .daily-meal>details[open] summary .option.day-option:after{transform:rotate(90deg)}
/* Image elements do not receive a black CSS frame. Black baked into source pixels requires asset cleanup. */
#menus img.dish-img{background:transparent!important;mix-blend-mode:normal!important}
@media(max-width:620px){.daily-nutrition-card{min-height:76px!important;padding:10px 10px!important}.daily-nutrition-card strong{font-size:clamp(14px,3.4vw,19px)!important}.daily-nutrition-card .per-kg{font-size:10px!important}}

/* Open-meal finishing details */
.daily-nutrition-card small:not(.per-kg){font-size:11px!important;margin-bottom:8px!important}
.daily-nutrition-card strong{line-height:1.14!important}
.daily-nutrition-card .per-kg{margin-top:2px!important}
.daily-meal[open]>.daily-meal-head{height:55px!important;min-height:55px!important;box-sizing:border-box!important;padding:12px 17px 6px!important}
.daily-meal[open]>.meal-average{margin-top:0!important;margin-bottom:8px!important}
.daily-meal .meal-average .macro{font-weight:650}
.daily-meal .meal-average .macro .protein{color:#adcde0}
.daily-meal .meal-average .macro .carbs{color:#f0bc9f}
.daily-meal .meal-average .macro .fat{color:#f2de9a}
#overview .daily-meal>details{border-top:1px solid rgba(255,255,255,.13)!important;margin-top:0!important;padding:12px 0!important}
#overview .daily-meal>details:first-of-type{margin-top:4px!important}
#overview .daily-meal>details summary .option.day-option{padding-left:0!important;padding-right:31px!important}
#overview .daily-meal>details summary .option.day-option:before{content:none!important;display:none!important}
#overview .daily-meal>details summary .option.day-option:after{content:"›"!important;right:1px!important;left:auto!important}
#overview .daily-meal .plan-option-label{display:flex;flex-direction:column;gap:3px}
#overview .daily-meal .plan-option-label small{font-size:12px;color:rgba(255,255,255,.72)}
#overview .daily-meal .plan-option-label strong{font-size:16px;font-weight:520;color:#fff}
.daily-meal .option-expanded-macros{padding-top:9px;padding-bottom:12px}
.daily-meal .option-expanded-macros .macro{font-weight:550}
.daily-meal .foods{color:rgba(255,255,255,.88)!important;border-bottom:1px solid rgba(255,255,255,.075)!important;padding:10px 0!important}
.daily-meal .foods:last-child{border-bottom:0!important;padding-bottom:3px!important}
#plan-detail .option-expanded-macros{padding-top:10px;padding-bottom:10px}

/* Trial: inline meal nutrient averages and directly expanded single options */
.daily-meal>.daily-meal-head{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap}
.daily-meal>.daily-meal-head strong{flex:1 1 auto;min-width:100px}
.daily-meal>.daily-meal-head .meal-average-inline{margin:0!important;padding:0!important;order:1}
.daily-meal>.daily-meal-head .meal-average-inline .macro{font-size:13px!important;display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-weight:600}
.daily-meal>.daily-meal-head:after{order:2;margin-left:0!important}
.daily-meal>.meal-average{display:none!important}
.daily-meal .single-meal-option{padding:4px 17px 13px}
.daily-meal .single-meal-option .foods:last-child{border-bottom:none!important}
@media(max-width:620px){
 .daily-meal>.daily-meal-head .meal-average-inline{flex:0 1 auto;max-width:100%}
 .daily-meal>.daily-meal-head .meal-average-inline .macro{font-size:12px!important;gap:5px}
 .daily-meal>.daily-meal-head strong{font-size:16px!important}
}

/* Meal heading nutrition: approved compact right-aligned two-line layout */
#overview .daily-meal{overflow:hidden}
#overview .daily-meal>.daily-meal-head{flex-wrap:nowrap!important;column-gap:8px!important}
#overview .daily-meal>.daily-meal-head strong{min-width:0!important}
#overview .daily-meal>.daily-meal-head .meal-average-inline{flex:0 0 auto!important;margin-left:auto!important;margin-right:13px!important}
#overview .daily-meal>.daily-meal-head .meal-average-inline .macro{
 display:grid!important;grid-template-columns:repeat(3,max-content);justify-content:end;
 justify-items:end;align-items:center;column-gap:7px!important;row-gap:0!important;
 font-size:10px!important;line-height:1.12!important;font-weight:400!important;
 white-space:nowrap;flex-wrap:nowrap!important;color:rgba(255,255,255,.77)
}
#overview .daily-meal>.daily-meal-head .meal-average-inline .macro>.kcal{
 grid-column:1/-1;justify-self:end;line-height:1.12!important;
 color:rgba(255,255,255,.85)
}
#overview .daily-meal>.daily-meal-head .meal-average-inline .macro>span{gap:3px!important}
#overview .daily-meal>.daily-meal-head .meal-average-inline .macro .protein{color:#a9c4d0!important}
#overview .daily-meal>.daily-meal-head .meal-average-inline .macro .carbs{color:#e4b398!important}
#overview .daily-meal>.daily-meal-head .meal-average-inline .macro .fat{color:#e0cf9f!important}
#overview .daily-meal>.daily-meal-head .meal-average-inline .macro .macro-dot{
 width:3px!important;height:3px!important;opacity:.50!important
}
#overview .daily-meal>.daily-meal-head:after{flex:none!important;margin-left:0!important}
@media(max-width:380px){
 #overview .daily-meal>.daily-meal-head{column-gap:5px!important}
 #overview .daily-meal>.daily-meal-head .meal-average-inline{margin-right:8px!important}
 #overview .daily-meal>.daily-meal-head .meal-average-inline .macro{font-size:9px!important;column-gap:4px!important}
 #overview .daily-meal>.daily-meal-head .meal-average-inline .macro>.kcal{font-size:10px!important}
}

/* Weekly view — seven perfectly aligned columns, no horizontal scrolling */
.weekly-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));column-gap:3px;row-gap:5px;width:100%}
.weekly-day-header{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;overflow:hidden;background:transparent;border:0;padding:9px 0;color:#fafafa}
.weekly-day-header .weekday{color:#aeb0b9;font-size:clamp(8px,1.9vw,12px)}
.weekly-day-header .number{font-weight:680;font-size:clamp(12px,3vw,19px)}
.weekly-day-header .classification{font-size:clamp(7px,1.7vw,10px);color:#b0b3bc;overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}
.weekly-meal{min-width:0;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:7px;padding:10px 2px 8px;border:0!important;border-radius:9px;color:#fff;background:#303238;overflow:hidden}
.weekly-meal.tone-orange{background:var(--meal-orange)}.weekly-meal.tone-yellow{background:var(--meal-yellow)}.weekly-meal.tone-blue{background:var(--meal-blue)}.weekly-meal.tone-green{background:var(--meal-green)}.weekly-meal.tone-vp{background:var(--meal-vp)}
.weekly-meal.is-active{box-shadow:inset 0 0 0 2px rgba(255,255,255,.85)!important}
.weekly-meal-name{font-size:clamp(8px,1.5vw,12px);font-weight:550;line-height:1.15;text-align:center;overflow-wrap:anywhere}
.weekly-meal-macros,.weekly-day-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;width:100%;align-items:center;text-align:center;font-variant-numeric:tabular-nums;line-height:1.1}
.weekly-meal-macros{font-size:clamp(5px,1vw,9px);color:rgba(255,255,255,.88)}
.weekly-empty{min-height:76px}
.weekly-day-total{min-width:0;background:#22232a;border-radius:8px;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:10px 1px;overflow:hidden;color:#d3d3d7;font-size:clamp(6px,1vw,10px)}
.weekly-day-values{font-size:inherit}
.weekly-day-values.per-kg{font-size:.92em;opacity:.84}
.weekly-day-values .kcal{color:#a4d6ad}.weekly-day-values .protein{color:#9fc8e4}.weekly-day-values .carbs{color:#eeb58f}.weekly-day-values .fat{color:#e9d28d}
.weekly-detail{background:#22242a;border-radius:16px;margin:18px 0 10px;padding:16px}
.weekly-detail-heading{display:flex;align-items:center;gap:9px;margin-bottom:13px;flex-wrap:wrap}
.weekly-detail-heading strong{font-size:16px}.weekly-detail-heading small{font-size:12px;color:#b8bac3;flex:1}
.weekly-detail-heading button{padding:2px 8px;background:transparent;border:0;font-size:25px}
.weekly-detail .foods{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.09)}
.weekly-detail .foods:last-child{border-bottom:0}
.weekly-detail-macros{font-size:12px;color:#ddd;margin-bottom:10px}
.weekly-detail>details{padding:12px 0;border-top:1px solid #38383f}
.weekly-summary-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 4px}
.weekly-summary-heading h2{margin:0;font-size:19px}.weekly-summary-heading small{font-size:12px;color:#a6a8b0}
#weekly-view>.daily-nutrition{margin-top:5px}
@media(max-width:620px){.weekly-calendar-grid{column-gap:2px;row-gap:4px}.weekly-meal{min-height:68px;padding:8px 1px}.weekly-meal-name{font-size:8px}.weekly-day-total{padding:8px 0;gap:5px}.weekly-day-values{letter-spacing:-.4px}}

.weekly-date-nav{display:flex;align-items:center;justify-content:space-between;margin:13px 0 6px;gap:10px}.weekly-date-nav strong{font-size:14px;font-weight:610;text-align:center}.weekly-date-nav button{border:0;background:transparent;padding:5px 10px;font-size:28px;line-height:1}

/* Approved weekly calendar refinements */
#weekly-view .weekly-date-nav{position:relative;height:0;margin:0;z-index:3;pointer-events:none}
#weekly-view .weekly-date-nav button{position:absolute;top:18px;padding:0;font-size:28px;line-height:1;background:transparent;pointer-events:auto}
#weekly-view .weekly-date-nav button:first-child{left:-1px}
#weekly-view .weekly-date-nav button:last-child{right:-1px}
#weekly-view .weekly-calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr));margin-top:8px}
#weekly-view .weekly-day-header{padding:7px 0 11px}
#weekly-view .weekly-day-header.today .number{width:27px;height:27px;border-radius:50%;background:#f3f3f5;color:#2273bd;display:grid;place-items:center}
#weekly-view .weekly-meal{min-height:48px;padding:8px 2px;justify-content:center;gap:3px;border-radius:10px}
#weekly-view .weekly-meal-name{font-size:clamp(8px,1.4vw,12px);font-weight:550;line-height:1.12}
#weekly-view .weekly-meal-kcal{font-size:clamp(8px,1.45vw,12px);color:rgba(255,255,255,.82);line-height:1.08;font-variant-numeric:tabular-nums}
#weekly-view .weekly-empty{min-height:48px;border-radius:10px;background:#18191d}
#weekly-view .weekly-day-total{padding:8px 1px;gap:3px;align-items:center;border-radius:9px;background:#22242a}
#weekly-view .weekly-total-kcal{font-size:clamp(9px,1.65vw,14px);color:#a4d6ad;line-height:1.1;font-variant-numeric:tabular-nums}
#weekly-view .weekly-total-macros{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:0;text-align:center;font-size:clamp(7px,1.15vw,10px);font-variant-numeric:tabular-nums}
#weekly-view .weekly-detail{background:#22242a;padding:15px;border-radius:17px}
#weekly-view .weekly-detail-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px}
#weekly-view .weekly-detail-titles{display:flex;flex-direction:column;gap:4px}
#weekly-view .weekly-detail-titles small{color:#b5bac5;font-size:12px;text-transform:capitalize}
#weekly-view .weekly-detail-titles strong{color:#fff;font-size:21px;font-weight:680}
#weekly-view .weekly-meal-average{background:var(--tint);padding:12px;border-radius:12px;margin-bottom:10px}
#weekly-view .weekly-detail.tone-orange{--tint:var(--meal-orange)}
#weekly-view .weekly-detail.tone-yellow{--tint:var(--meal-yellow)}
#weekly-view .weekly-detail.tone-blue{--tint:var(--meal-blue)}
#weekly-view .weekly-detail.tone-green{--tint:var(--meal-green)}
#weekly-view .weekly-detail.tone-vp{--tint:var(--meal-vp)}
#weekly-view .weekly-meal-average .macro{font-size:12px;font-weight:450;gap:11px;color:#fff}
#weekly-view .weekly-menu-line{display:flex;flex-direction:column;gap:3px;padding:8px 2px 13px}
#weekly-view .weekly-menu-line small{font-size:11px;color:#aeb3be}
#weekly-view .weekly-menu-line span{font-size:14px;color:#f4f4f7}
#weekly-view .weekly-option-card{background:var(--tint);border:0;border-radius:12px;padding:12px!important;margin:8px 0}
#weekly-view .weekly-option-card summary{list-style:none}
#weekly-view .weekly-option-card summary::-webkit-details-marker{display:none}
#weekly-view .weekly-option-card .option{display:flex;position:relative;padding-right:25px;align-items:center}
#weekly-view .weekly-option-card .option:after{content:"›";position:absolute;right:1px;top:0;color:#fff;font-size:24px;line-height:1.2;transition:transform .15s}
#weekly-view .weekly-option-card[open] .option:after{transform:rotate(90deg)}
#weekly-view .weekly-option-card .plan-option-label small{color:rgba(255,255,255,.7)}
#weekly-view .weekly-option-card .plan-option-label strong{color:#fff}
#weekly-view .weekly-option-card .option-expanded-macros{padding:10px 0}
#weekly-view .weekly-option-card .foods{font-size:13px}
@media(max-width:620px){
 #weekly-view .weekly-calendar-grid{column-gap:2px;row-gap:4px}
 #weekly-view .weekly-meal,#weekly-view .weekly-empty{min-height:44px}
 #weekly-view .weekly-meal{padding:7px 1px}
 #weekly-view .weekly-meal-name{font-size:8px}
 #weekly-view .weekly-meal-kcal{font-size:9px}
 #weekly-view .weekly-total-macros{font-size:7px}
 #weekly-view .weekly-day-header{padding-left:0;padding-right:0}
}

/* Approved weekly design: solid colored detail, concise figures, unchanged today marker */
#weekly-view .weekly-meal-kcal{font-size:10px!important;letter-spacing:0!important;font-variant-numeric:normal!important;font-feature-settings:"kern" 1!important}
#weekly-view .weekly-total-kcal{font-size:11px!important;letter-spacing:0!important;font-variant-numeric:normal!important}
#weekly-view .weekly-detail{background:var(--detail-bg,#37332a)!important;box-shadow:none!important}
#weekly-view .weekly-detail.tone-orange{--detail-bg:#513b2c}
#weekly-view .weekly-detail.tone-yellow{--detail-bg:#514427}
#weekly-view .weekly-detail.tone-blue{--detail-bg:#284656}
#weekly-view .weekly-detail.tone-green{--detail-bg:#2a4d3b}
#weekly-view .weekly-detail.tone-vp{--detail-bg:#3d5438}
#weekly-view .weekly-meal-average{background:transparent!important;padding:0!important;margin:6px 0 16px!important;border-radius:0!important}
#weekly-view .weekly-meal-average .macro{justify-content:flex-start!important;font-size:12px!important}
#weekly-view .weekly-option-card{background:var(--tint)!important}
#weekly-view .weekly-option-card .foods,#weekly-view .weekly-detail>.foods{color:rgba(255,255,255,.96)!important}
#weekly-view .weekly-option-card .option-expanded-macros .macro{color:#f6f6f7}
@media(max-width:620px){#weekly-view .weekly-meal-kcal{font-size:9px!important}#weekly-view .weekly-total-kcal{font-size:10px!important}}

/* Informative, non-interactive menus share their meal color in both views */
#overview .daily-meal .meal-menu-card{background:var(--tint)!important;border:1px solid rgba(255,255,255,.12)!important;color:#f5f6f8!important;border-radius:12px!important;padding:12px 14px!important;box-shadow:inset 0 0 0 999px rgba(255,255,255,.055);font-size:14px!important;line-height:1.4!important}
#weekly-view .weekly-detail .weekly-menu-line{display:block!important;background:var(--tint)!important;border-radius:12px!important;padding:12px 14px!important;margin:3px 0 13px!important;color:#f5f6f8!important;font-size:14px!important;line-height:1.4!important}
#weekly-view .weekly-detail-heading{margin-bottom:5px!important}
#weekly-view .weekly-meal-average{margin:2px 0 12px!important}
#weekly-view .weekly-detail .foods,#weekly-view .weekly-detail .weekly-option-card .foods,#weekly-view .weekly-detail>.foods{font-size:14px!important;line-height:1.45!important;color:#f7f7f8!important}
#weekly-view .weekly-option-card .foods{padding:10px 0!important}

/* Scheduled activities and independently published peri-meals. */
.daily-event-card{background:#303135;color:#f3f3f5;border:1px solid #43454a;border-radius:13px;padding:13px 15px;font-size:14px;font-weight:500}
.peri-meal{background:#282a2f;border:1px solid #46474e;color:#f3f3f5;border-radius:13px}
.peri-meal .daily-meal-head{color:#f3f3f5}
.weekly-event-slot{display:flex;flex-direction:column;gap:4px;min-width:0}
.weekly-event-card,.weekly-peri-card{border-radius:8px;background:#35363b;color:#fff;padding:8px 5px;font-size:11px;line-height:1.3;text-align:center;overflow-wrap:anywhere}
.weekly-peri-card{background:#292e34;border:1px solid #454950;display:flex;flex-direction:column;gap:3px}
.weekly-peri-card span:last-child{font-size:10px;color:#c3cad4}

.daily-event-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.daily-event-card>span{flex:1}
.daily-event-edit{font-size:12px;padding:6px 10px;border-radius:8px;border:1px solid #65676b;background:#37393d;color:#fff}
.daily-event-editor{width:100%;display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}
.daily-event-editor[hidden]{display:none}
.daily-event-editor input,.daily-event-editor select,.daily-event-editor button{font:inherit;color:#fff;background:#35363a;border:1px solid #575962;border-radius:9px;padding:8px;min-width:0}
.daily-event-editor small{grid-column:1/-1;color:#f2bb89}
@media(max-width:480px){.daily-event-editor{grid-template-columns:1fr 1fr}.daily-event-editor button{grid-column:1/-1}}

/* Training event: same borderless card treatment as meal cards. */
.daily-event-card{border:0!important;box-shadow:none!important;background:#303135;border-radius:13px;gap:8px}
.daily-event-edit{border:0!important;box-shadow:none!important;background:#505158!important;color:#f5f5f7;border-radius:999px!important;padding:8px 15px!important;font-size:12px;line-height:1.2;white-space:nowrap}
.daily-event-remove{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;padding:0;border:0!important;box-shadow:none!important;border-radius:999px;background:transparent;color:#e1e1e5;cursor:pointer}
.daily-event-remove:hover,.daily-event-remove:focus-visible{background:#4a4c52}
.daily-event-remove:disabled{opacity:.5;cursor:default}

/* Official Hugeicons icon-only actions on event cards. */
.daily-event-card .daily-event-edit{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;min-width:34px;padding:0!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#f5f5f7;line-height:1}
.daily-event-card .daily-event-edit svg,.daily-event-card .daily-event-remove svg{display:block;width:18px;height:18px;flex:none}
.daily-event-card .daily-event-remove{width:34px;height:34px;flex:0 0 34px}

/* Match the training title typography to the daily meal headings. */
.daily-event-card>span{line-height:1.3}
@media(max-width:620px){.daily-event-card>span{font-size:17px}}

/* Align expanded peri-training food descriptions with the card heading. */

/* Match day: intra-match nutrition expands directly inside the Jogo card. */
#overview .match-intra-card{display:block;padding:0;overflow:hidden;background:#303135;border:0;border-radius:18px}
#overview .match-intra-card>.daily-meal-head{display:flex;align-items:center;gap:8px;min-height:55px;padding:12px 17px 6px;list-style:none;cursor:pointer}
#overview .match-intra-card>.daily-meal-head::-webkit-details-marker{display:none}
#overview .match-intra-card>.daily-meal-head strong{flex:1;min-width:0}
#overview .match-intra-card>.daily-meal-head .meal-average-inline{margin-left:auto;flex:0 0 auto}
#overview .match-intra-card>.daily-meal-head .macro{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
#overview .match-intra-card>.daily-meal-head:after{content:"›";font-size:27px;color:#c4c4cc;margin-left:8px;transition:transform .16s}
#overview .match-intra-card[open]>.daily-meal-head:after{transform:rotate(90deg)}
#overview .match-intra-card>.foods,#overview .match-intra-card>details{margin-left:16px;margin-right:16px}
#overview .match-intra-card>.foods:last-child{padding-bottom:14px!important;border-bottom:0!important}
#overview .match-intra-card>details:last-child{margin-bottom:16px}
@media(max-width:620px){#overview .match-intra-card>.daily-meal-head strong{font-size:16px}#overview .match-intra-card>.daily-meal-head .macro{font-size:12px;gap:5px}}

/* Jogo nutrition: identical compact two-line hierarchy used by meal cards. */
#overview .match-intra-card>.daily-meal-head{flex-wrap:nowrap!important;column-gap:8px!important}
#overview .match-intra-card>.daily-meal-head .meal-average-inline{flex:0 0 auto!important;margin-left:auto!important;margin-right:13px!important}
#overview .match-intra-card>.daily-meal-head .meal-average-inline .macro{
 display:grid!important;grid-template-columns:repeat(3,max-content);justify-content:end;
 justify-items:end;align-items:center;column-gap:7px!important;row-gap:0!important;
 font-size:10px!important;line-height:1.12!important;font-weight:400!important;
 white-space:nowrap;flex-wrap:nowrap!important;color:rgba(255,255,255,.77)
}
#overview .match-intra-card>.daily-meal-head .meal-average-inline .macro>.kcal{
 grid-column:1/-1;justify-self:end;line-height:1.12!important;
 color:rgba(255,255,255,.85)
}
#overview .match-intra-card>.daily-meal-head .meal-average-inline .macro>span{gap:3px!important}
#overview .match-intra-card>.daily-meal-head .meal-average-inline .macro .protein{color:#a9c4d0!important}
#overview .match-intra-card>.daily-meal-head .meal-average-inline .macro .carbs{color:#e4b398!important}
#overview .match-intra-card>.daily-meal-head .meal-average-inline .macro .fat{color:#e0cf9f!important}
#overview .match-intra-card>.daily-meal-head .meal-average-inline .macro .macro-dot{width:3px!important;height:3px!important;opacity:.50!important}
#overview .match-intra-card>.daily-meal-head:after{flex:none!important;margin-left:0!important}
@media(max-width:380px){
 #overview .match-intra-card>.daily-meal-head{column-gap:5px!important}
 #overview .match-intra-card>.daily-meal-head .meal-average-inline{margin-right:8px!important}
 #overview .match-intra-card>.daily-meal-head .meal-average-inline .macro{font-size:9px!important;column-gap:4px!important}
 #overview .match-intra-card>.daily-meal-head .meal-average-inline .macro>.kcal{font-size:10px!important}
}

/* Daily cards: calories always visible; macros appear only when expanded. */
/* The closed reference shows kcal only. Keep its approved vertical centering.
   Header geometry stays stable through explicit 61px/55px sizes and padding. */
#overview .daily-meal:not([open])>.daily-meal-head .meal-average-inline .macro>span:not(.kcal),
#overview .match-intra-card:not([open])>.daily-meal-head .meal-average-inline .macro>span:not(.kcal){display:none!important}

/* Supplementation uses neutral styling and never inherits the meal plan colour. */
.daily-supplements{background:#303135;color:#f4f4f6;border:0;border-radius:13px;padding:0;overflow:hidden}
.daily-supplements>summary{list-style:none;padding:18px 16px;cursor:pointer;font-size:16px;font-weight:650;display:flex;align-items:center;justify-content:space-between}
.daily-supplements>summary::-webkit-details-marker{display:none}
.daily-supplements>summary:after{content:"›";font-size:24px;color:#bebec7;transition:transform .16s}
.daily-supplements[open]>summary:after{transform:rotate(90deg)}
.supplement-entry{margin:0 16px;padding:12px 0;border-top:1px solid #45464b;display:flex;flex-direction:column;gap:5px;font-size:14px}
.supplement-entry small{color:#b7b7be;font-size:12px}
.supplement-in-meal{margin:12px 16px;padding:12px 0;border-top:1px solid var(--supplement-divider,rgba(255,255,255,.15));display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--supplement-ink,#eeeef1)}
.supplement-in-meal strong{font-size:13px}

#supplement-plan .supplement-entry{position:relative;min-height:80px;padding-left:78px}
#supplement-plan .supplement-entry:not(:has(.supplement-product-image)){padding-left:0;min-height:0}
.supplement-product-image{position:absolute;left:0;top:10px;width:64px;height:64px;object-fit:contain;border-radius:7px}

/* Weekly match merges intra-match nutrition into one interactive event card. */
.weekly-match-with-intra{cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}
.weekly-match-with-intra .weekly-match-kcal{font-size:10px;font-weight:500;white-space:nowrap;opacity:.85}
.weekly-match-with-intra[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:-2px}
.weekly-match-with-intra:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* V2 daily nutrition: a single informational surface, not four tappable tiles. */
#overview #date-title,#overview #day-details>h2{display:none!important}
#overview .nutrition-donut-summary{border:0!important;background:rgba(255,255,255,.045)!important;border-radius:19px!important;padding:20px 18px!important;margin:8px 0 25px;box-shadow:none!important}
#overview .nutrition-hero{grid-template-columns:minmax(0,1fr) 122px;gap:13px;align-items:center;padding-bottom:19px}
#overview .nutrition-energy{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
#overview .nutrition-energy>small{font-size:14px;color:#b1b1bc}
#overview .nutrition-energy>strong{font-weight:750;white-space:nowrap;letter-spacing:-.035em;line-height:1.12;color:#a7d8bc}
#overview .nutrition-energy>.per-kg{font-size:13px;color:#a6a6b1}
#overview .nutrition-ring{width:114px;height:114px;justify-self:end;border-radius:50%;background:conic-gradient(#a9c4d0 0 var(--protein-end),#e4b398 var(--protein-end) var(--carbs-end),#e0cf9f var(--carbs-end) 100%);display:grid;place-items:center;position:relative}
#overview .nutrition-ring:before{content:"";position:absolute;inset:19px;border-radius:50%;background:#212126}
#overview .nutrition-ring>span{position:relative;color:#d4d4dc;font-size:12px;font-weight:550}
#overview .nutrition-macro-row{border-top:1px solid rgba(255,255,255,.10);padding-top:17px}
#overview .nutrition-macro{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:0 11px}
#overview .nutrition-macro:first-child{padding-left:0}
#overview .nutrition-macro:last-child{padding-right:0}
#overview .nutrition-macro+.nutrition-macro{border-left:1px solid rgba(255,255,255,.10)}
#overview .nutrition-macro>small:first-child{font-size:12px;color:#b4b4bf;white-space:nowrap}
#overview .nutrition-macro>strong{font-size:clamp(17px,4vw,25px);line-height:1.13;font-weight:720;white-space:nowrap}
#overview .nutrition-macro.protein>strong{color:#a9c4d0}
#overview .nutrition-macro.carbs>strong{color:#e4b398}
#overview .nutrition-macro.fat>strong{color:#e0cf9f}
#overview .nutrition-macro>.per-kg{font-size:11px;color:#a6a6b1;white-space:nowrap}
@media(max-width:360px){#overview .nutrition-donut-summary{padding:16px 13px!important}#overview .nutrition-hero{grid-template-columns:minmax(0,1fr) 96px}#overview .nutrition-ring{width:94px;height:94px}#overview .nutrition-ring:before{inset:16px}#overview .nutrition-macro{padding:0 7px}#overview .nutrition-macro>small:first-child{font-size:11px}}

/* Approved compact no-card nutritional summary (daily overview). */
#overview .nutrition-donut-summary{background:transparent!important;border:0!important;border-radius:0!important;padding:0 4px!important;margin:0 0 17px!important;box-shadow:none!important}
#overview .nutrition-hero{margin:0 0 13px!important}
#overview .nutrition-energy{gap:2px!important}
#overview .nutrition-energy>small{font-size:13px!important}
#overview .nutrition-energy>strong{line-height:1.06!important}
#overview .nutrition-energy>.per-kg{font-size:12px!important}
#overview .nutrition-ring{display:none!important}
#overview .nutrition-macro-row{padding-top:0!important;border-top:0!important}
#overview .nutrition-macro{gap:3px!important}
#overview .nutrition-macro>strong{font-size:clamp(17px,4.1vw,23px)!important}
#overview .nutrition-macro>.per-kg{font-size:11px!important}

/* Approved single-row daily nutritional metrics, aligned to meal cards. */
#overview .nutrition-donut-summary{
 display:grid!important;
 grid-template-columns:minmax(0,1.65fr) minmax(0,3fr);
 align-items:center!important;
 gap:0!important;
 padding:0 8px!important;
 margin:0 0 19px!important;
 background:transparent!important;
}
#overview .nutrition-hero{
 display:block!important;
 min-width:0!important;
 margin:0!important;
 padding:0 12px 0 0!important;
}
#overview .nutrition-energy{gap:4px!important}
#overview .nutrition-energy>small{font-size:clamp(10px,2.6vw,13px)!important}
#overview .nutrition-energy>strong{font-size:clamp(19px,4.4vw,32px)!important;letter-spacing:-.045em!important}
#overview .nutrition-energy>.per-kg{font-size:clamp(9px,2.3vw,12px)!important}
#overview .nutrition-macro-row{
 display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 border:0!important;
 padding:0!important;
 min-width:0!important;
}
#overview .nutrition-macro{padding:0 8px!important;gap:5px!important;justify-content:center!important;min-width:0!important}
#overview .nutrition-macro:first-child{border-left:1px solid rgba(255,255,255,.14)!important}
#overview .nutrition-macro>small:first-child{font-size:clamp(10px,2.35vw,13px)!important}
#overview .nutrition-macro>strong{font-size:clamp(15px,3.4vw,23px)!important}
#overview .nutrition-macro>.per-kg{font-size:clamp(9px,2.2vw,11px)!important}
@media(max-width:370px){
 #overview .nutrition-donut-summary{grid-template-columns:minmax(0,1.6fr) minmax(0,3fr);padding:0 5px!important}
 #overview .nutrition-hero{padding-right:6px!important}
 #overview .nutrition-macro{padding:0 5px!important;gap:4px!important}
}

/* Weekly view: compact empty lanes, readable dates, unified match and average. */
#weekly-view .weekly-day-header .weekday{font-size:clamp(11px,1.9vw,15px)!important}
#weekly-view .weekly-day-header .number{font-size:clamp(17px,3.2vw,24px)!important;line-height:1.1}
#weekly-view .weekly-day-header .classification{font-size:clamp(9px,1.55vw,12px)!important}
#weekly-view .weekly-event-slot:empty{min-height:12px!important;height:12px!important;padding:0!important;margin:0!important}
#weekly-view .weekly-empty{min-height:12px!important;height:12px!important;background:rgba(255,255,255,.025)!important;border-radius:7px!important}
#weekly-view .weekly-match-with-intra{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;min-height:68px!important;padding:8px 1px!important;border:0!important;border-radius:11px!important;background:#303137!important;color:#f4f4f5!important;box-shadow:none!important;text-align:center}
#weekly-view .weekly-match-with-intra>span:first-child{font-size:clamp(9px,1.8vw,12px)!important;font-weight:600!important}
#weekly-view .weekly-match-with-intra .weekly-match-kcal{font-size:clamp(9px,1.65vw,11px)!important;font-weight:400!important;color:#d6d6df!important;opacity:1!important}
#weekly-view .weekly-match-with-intra[aria-pressed=true]{outline:2px solid #b9bbc4!important;outline-offset:-2px}
#weekly-view .weekly-average-summary{display:grid;grid-template-columns:1.45fr repeat(3,1fr);gap:0;padding:15px 10px;border-radius:16px;background:rgba(255,255,255,.045);min-width:0}
#weekly-view .weekly-average-metric{display:flex;flex-direction:column;gap:5px;min-width:0;padding:0 10px}
#weekly-view .weekly-average-metric:first-child{padding-left:0}
#weekly-view .weekly-average-metric+.weekly-average-metric{border-left:1px solid rgba(255,255,255,.12)}
#weekly-view .weekly-average-metric>small:first-child{color:#b8b8c1;font-size:clamp(10px,2.3vw,13px)}
#weekly-view .weekly-average-metric>strong{white-space:nowrap;font-size:clamp(14px,3.2vw,23px);line-height:1.12}
#weekly-view .weekly-average-metric.kcal>strong{color:#a4d0b4}
#weekly-view .weekly-average-metric.protein>strong{color:#a9c4d0}
#weekly-view .weekly-average-metric.carbs>strong{color:#e4b398}
#weekly-view .weekly-average-metric.fat>strong{color:#e0cf9f}
#weekly-view .weekly-average-metric>.per-kg{font-size:clamp(9px,2vw,11px);color:#aaaab3;white-space:nowrap}
@media(max-width:380px){#weekly-view .weekly-average-summary{padding:13px 6px;grid-template-columns:1.4fr repeat(3,1fr)}#weekly-view .weekly-average-metric{padding:0 5px}}

/* Color plans use the same solid tone, dimensions and corners as overview meals. */
#plans #plan-detail .plan-meal.tone-orange{background:var(--meal-orange)!important}
#plans #plan-detail .plan-meal.tone-yellow{background:var(--meal-yellow)!important}
#plans #plan-detail .plan-meal.tone-blue{background:var(--meal-blue)!important}
#plans #plan-detail .plan-meal.tone-green{background:var(--meal-green)!important}
#plans #plan-detail .plan-meal.tone-vp{background:var(--meal-vp)!important}
#plans #plan-detail .plan-meal[class*="tone-"]{border:0!important;border-radius:18px!important;box-shadow:none!important;overflow:hidden}
#plans #plan-detail .plan-meal[class*="tone-"]>.option{padding:2px 0 7px}
/* Thin grey dividers replace all nutrition bullets across player views. */
.macro .macro-dot,
#overview .daily-meal>.daily-meal-head .meal-average-inline .macro .macro-dot,
#overview .match-intra-card>.daily-meal-head .meal-average-inline .macro .macro-dot{
 display:inline-block!important;
 position:relative!important;
 width:1px!important;
 min-width:1px!important;
 height:11px!important;
 margin:0 4px 0 1px!important;
 padding:0!important;
 border-radius:0!important;
 background:rgba(194,196,204,.44)!important;
 opacity:1!important;
 vertical-align:middle!important;
}

/* Planos color meals share the overview structure and appearance, including unboxed options. */
#plans #plan-detail .plan-overview-meal{padding:0!important;border:0!important;border-radius:18px!important;overflow:hidden;box-shadow:none!important}
#plans #plan-detail .plan-overview-meal.tone-orange{background:var(--meal-orange)!important}
#plans #plan-detail .plan-overview-meal.tone-yellow{background:var(--meal-yellow)!important}
#plans #plan-detail .plan-overview-meal.tone-blue{background:var(--meal-blue)!important}
#plans #plan-detail .plan-overview-meal.tone-green{background:var(--meal-green)!important}
#plans #plan-detail .plan-overview-meal.tone-vp{background:var(--meal-vp)!important}
#plans #plan-detail .plan-overview-meal>.daily-meal-head{display:flex!important;align-items:center!important;gap:8px!important;min-height:65px!important;padding:17px 16px!important;list-style:none!important;cursor:pointer}
#plans #plan-detail .plan-overview-meal>.daily-meal-head::-webkit-details-marker{display:none}
#plans #plan-detail .plan-overview-meal>.daily-meal-head>strong{flex:1;min-width:0;font-size:18px;font-weight:700}
#plans #plan-detail .plan-overview-meal>.daily-meal-head:after{content:"›";font-size:27px;line-height:1;color:#c4c4cc;margin-left:0;transition:transform .16s}
#plans #plan-detail .plan-overview-meal[open]>.daily-meal-head:after{transform:rotate(90deg)}
#plans #plan-detail .plan-overview-meal>.daily-meal-head .meal-average-inline{margin-left:auto;margin-right:13px;flex:0 0 auto}
#plans #plan-detail .plan-overview-meal>.daily-meal-head .meal-average-inline .macro{display:grid!important;grid-template-columns:repeat(3,max-content)!important;justify-content:end;justify-items:end;align-items:center;column-gap:7px!important;row-gap:0!important;font-size:10px!important;line-height:1.12!important;white-space:nowrap}
#plans #plan-detail .plan-overview-meal>.daily-meal-head .macro>.kcal{grid-column:1/-1;justify-self:end;font-size:11px!important}
#plans #plan-detail .plan-overview-meal:not([open])>.daily-meal-head .macro>span:not(.kcal){display:none!important}
#plans #plan-detail .plan-overview-meal>.option-expanded-macros{background:transparent!important}
#plans #plan-detail .plan-overview-meal>details{border:0!important;background:transparent!important;border-radius:0!important;margin:0 16px!important;padding:0!important;box-shadow:none!important;border-top:1px solid rgba(255,255,255,.13)!important}
#plans #plan-detail .plan-overview-meal>details>summary{background:transparent!important;padding:14px 0!important;list-style:none}
#plans #plan-detail .plan-overview-meal>details>summary::-webkit-details-marker{display:none}
#plans #plan-detail .plan-overview-meal>details .foods{background:transparent!important}
#plans #plan-detail .plan-overview-meal .single-meal-option{padding:0 16px 14px}
@media(max-width:620px){#plans #plan-detail .plan-overview-meal>.daily-meal-head>strong{font-size:17px}#plans #plan-detail .plan-overview-meal>.daily-meal-head{column-gap:5px!important}#plans #plan-detail .plan-overview-meal>.daily-meal-head .meal-average-inline{margin-right:8px}}

/* Consistent option chevrons: right-aligned and vertically centered on both label lines. */
#overview .daily-meal>details>summary .option,
#plans #plan-detail .plan-overview-meal>details>summary .option,
#weekly-view .weekly-option-card>summary .option,
#plans #plan-detail .plan-option-card>summary .option{
 display:flex!important;
 align-items:center!important;
 position:relative!important;
 padding-left:0!important;
 padding-right:31px!important;
 min-height:36px!important;
}
#overview .daily-meal>details>summary .option:before,
#plans #plan-detail .plan-overview-meal>details>summary .option:before,
#weekly-view .weekly-option-card>summary .option:before,
#plans #plan-detail .plan-option-card>summary .option:before{
 content:none!important;
 display:none!important;
}
#overview .daily-meal>details>summary .option:after,
#plans #plan-detail .plan-overview-meal>details>summary .option:after,
#weekly-view .weekly-option-card>summary .option:after,
#plans #plan-detail .plan-option-card>summary .option:after{
 content:"›"!important;
 display:block!important;
 position:absolute!important;
 left:auto!important;
 right:1px!important;
 top:50%!important;
 bottom:auto!important;
 font-size:25px!important;
 line-height:1!important;
 color:#d6d6dd!important;
 transform:translateY(-50%)!important;
 transition:transform .16s!important;
}
#overview .daily-meal>details[open]>summary .option:after,
#plans #plan-detail .plan-overview-meal>details[open]>summary .option:after,
#weekly-view .weekly-option-card[open]>summary .option:after,
#plans #plan-detail .plan-option-card[open]>summary .option:after{
 transform:translateY(-50%) rotate(90deg)!important;
}

/* Final chevron geometry: vertically centre on both title lines, with clear option spacing. */
#overview .daily-meal>details>summary .option,
#plans #plan-detail .plan-overview-meal>details>summary .option,
#weekly-view .weekly-option-card>summary .option{
 display:grid!important;grid-template-columns:minmax(0,1fr) 28px!important;
 align-items:center!important;padding:0!important;min-height:48px!important;
}
#overview .daily-meal>details>summary .option:after,
#plans #plan-detail .plan-overview-meal>details>summary .option:after,
#weekly-view .weekly-option-card>summary .option:after{
 position:static!important;grid-column:2!important;grid-row:1!important;
 justify-self:center!important;align-self:center!important;
 transform:none!important;line-height:1!important;
}
#overview .daily-meal>details[open]>summary .option:after,
#plans #plan-detail .plan-overview-meal>details[open]>summary .option:after,
#weekly-view .weekly-option-card[open]>summary .option:after{transform:rotate(90deg)!important}
#overview .daily-meal>details>summary .option>.plan-option-label,
#plans #plan-detail .plan-overview-meal>details>summary .option>.plan-option-label,
#weekly-view .weekly-option-card>summary .option>.plan-option-label{
 grid-column:1!important;grid-row:1!important;
 display:flex!important;flex-direction:column!important;justify-content:center!important;gap:5px!important;
}
#plans #plan-detail .plan-overview-meal>details{margin:0 16px!important;padding:0!important}
#plans #plan-detail .plan-overview-meal>details>summary{padding:20px 0!important}
#plans #plan-detail .plan-overview-meal>details .option-expanded-macros{padding:9px 0 15px!important}
/* Nutrition summary starts with kcal: never precede the protein with a separator. */
.macro>span.protein .macro-dot,
#overview .daily-meal .macro>span.protein .macro-dot,
#plans .macro>span.protein .macro-dot{display:none!important}
.macro>span.carbs .macro-dot,
.macro>span.fat .macro-dot{display:inline-block!important}

/* Precision alignment adjustments — player day and plans. */
#overview .daily-meal>details>summary .option:after{
 transform:translateY(5px)!important;
}
#overview .daily-meal>details[open]>summary .option:after{
 transform:translateY(5px) rotate(90deg)!important;
}
/* The first macro separator is not meaningful: first visible macro is protein. */
#overview .daily-meal>.daily-meal-head .meal-average-inline .macro>.protein .macro-dot,
#overview .match-intra-card>.daily-meal-head .meal-average-inline .macro>.protein .macro-dot,
#overview .daily-meal .option-expanded-macros .macro>.protein .macro-dot{
 display:none!important;
}
/* Move Planos kcal/macro block away from header chevron. */
#plans #plan-detail .plan-overview-meal>.daily-meal-head .meal-average-inline{
 margin-right:22px!important;
}
@media(max-width:620px){
 #plans #plan-detail .plan-overview-meal>.daily-meal-head .meal-average-inline{
  margin-right:17px!important;
 }
}

/* Divider only disappears in stacked meal headings (kcal above macros). */
#overview .daily-meal .option-expanded-macros .macro>span.protein .macro-dot,
#plans #plan-detail .plan-overview-meal .option-expanded-macros .macro>span.protein .macro-dot,
#weekly-view .weekly-option-card .option-expanded-macros .macro>span.protein .macro-dot,
#plans #plan-detail .plan-meal .option-expanded-macros .macro>span.protein .macro-dot{
 display:inline-block!important;
}
/* Clear but restrained break after final ingredient, before the next option. */
#overview .daily-meal>details:not(:last-child),
#plans #plan-detail .plan-overview-meal>details:not(:last-child){
 padding-bottom:18px!important;
 margin-bottom:15px!important;
 border-bottom:1px solid rgba(255,255,255,.18)!important;
}
#overview .daily-meal>details:not(:last-child) .foods:last-child,
#plans #plan-detail .plan-overview-meal>details:not(:last-child) .foods:last-child{
 margin-bottom:12px!important;
}

/* Option spacing: closed options retain one standard separator.
   Extra breathing room is only shown after expanded option content. */
#overview .daily-meal>details:not(:last-child),
#plans #plan-detail .plan-overview-meal>details:not(:last-child){
 padding-bottom:0!important;
 margin-bottom:0!important;
 border-bottom:1px solid rgba(255,255,255,.13)!important;
}
#overview .daily-meal>details:not(:last-child) .foods:last-child,
#plans #plan-detail .plan-overview-meal>details:not(:last-child) .foods:last-child{
 margin-bottom:0!important;
}
#overview .daily-meal>details[open]:not(:last-child),
#plans #plan-detail .plan-overview-meal>details[open]:not(:last-child){
 padding-bottom:17px!important;
 margin-bottom:0!important;
}
#overview .daily-meal>details[open]:not(:last-child) .foods:last-child,
#plans #plan-detail .plan-overview-meal>details[open]:not(:last-child) .foods:last-child{
 margin-bottom:10px!important;
}

/* Centre the single separator within the breathing room between options. */
#overview .daily-meal>details:not(:last-child),
#plans #plan-detail .plan-overview-meal>details:not(:last-child){
 border-bottom:0!important;
 padding-bottom:0!important;
 margin-bottom:0!important;
}
#overview .daily-meal>details+details,
#plans #plan-detail .plan-overview-meal>details+details{
 border-top:1px solid rgba(255,255,255,.13)!important;
}
#overview .daily-meal>details[open]+details,
#plans #plan-detail .plan-overview-meal>details[open]+details{
 margin-top:19px!important;
 padding-top:19px!important;
}
#overview .daily-meal>details:not([open])+details,
#plans #plan-detail .plan-overview-meal>details:not([open])+details{
 margin-top:0!important;
 padding-top:0!important;
}
#overview .daily-meal>details[open] .foods:last-child,
#plans #plan-detail .plan-overview-meal>details[open] .foods:last-child{
 margin-bottom:0!important;
}

/* Unified option rhythm across Overview and Plans: a single centered divider. */
#overview .daily-meal>details>summary,
#plans #plan-detail .plan-overview-meal>details>summary{
 padding:12px 0!important;
}
#overview .daily-meal>details+details,
#plans #plan-detail .plan-overview-meal>details+details{
 margin-top:9px!important;
 padding-top:9px!important;
 border-top:1px solid rgba(255,255,255,.13)!important;
}
#overview .daily-meal>details[open]+details,
#plans #plan-detail .plan-overview-meal>details[open]+details{
 margin-top:12px!important;
 padding-top:12px!important;
}
#overview .daily-meal>details:not(:last-child),
#plans #plan-detail .plan-overview-meal>details:not(:last-child){
 border-bottom:0!important;
 padding-bottom:0!important;
 margin-bottom:0!important;
}

/* Give kcal and the macro row slightly more breathing room in expanded meal headings. */
#overview .daily-meal[open]>.daily-meal-head .meal-average-inline .macro,
#overview .match-intra-card[open]>.daily-meal-head .meal-average-inline .macro,
#plans #plan-detail .plan-overview-meal[open]>.daily-meal-head .meal-average-inline .macro{
 row-gap:5px!important;
}

/* Option composition: title + macros together, food list as a second group. */
#overview .daily-meal>details[open]>.option-expanded-macros,
#plans #plan-detail .plan-overview-meal>details[open]>.option-expanded-macros{
 padding-top:0!important;
 padding-bottom:22px!important;
 margin-top:-2px!important;
}
#overview .daily-meal>details[open]>summary,
#plans #plan-detail .plan-overview-meal>details[open]>summary{
 padding-bottom:5px!important;
}

/* Daily total uses the same single rounded, muted surface as weekly daily average. */
#overview .nutrition-donut-summary{
 background:rgba(255,255,255,.045)!important;
 border:0!important;
 border-radius:16px!important;
 padding:15px 10px!important;
 margin:0 0 19px!important;
 box-shadow:none!important;
}
@media(max-width:380px){
 #overview .nutrition-donut-summary{padding:13px 6px!important}
}

/* Expanded unit cards use 18px; closed cards use the 13px shared family rule. */
#overview .daily-meal[open],
#overview .match-intra-card[open]{
 border-radius:18px!important;
}

/* iOS pill geometry for Plans selectors and Day/Week segmented control. */

/* Weekly grid: compact iOS-style meal cells with a tighter label/kcal stack. */
#weekly-view .weekly-meal{
 min-height:59px!important;
 padding:6px 2px!important;
 gap:2px!important;
 justify-content:center!important;
 border-radius:16px!important;
}
#weekly-view .weekly-meal-name{font-size:clamp(8px,1.5vw,11px)!important;line-height:1.16!important}
#weekly-view .weekly-meal-kcal{font-size:clamp(9px,1.65vw,11px)!important;line-height:1.12!important}
#weekly-view .weekly-match-with-intra{
 min-height:59px!important;
 padding:6px 2px!important;
 border-radius:16px!important;
 gap:2px!important;
}
/* Plans selector: softer unselected tones, full color only when chosen, no outlines or dots. */
/* Removed legacy neutral kcal override: coloured plans use their palette ink. */

/* Weekly grid: tighter meal/event heights; match follows identical cell rhythm. */
#weekly-view .weekly-meal{
 min-height:46px!important;
 height:auto!important;
 padding:5px 2px!important;
 gap:1px!important;
 border-radius:15px!important;
}
#weekly-view .weekly-match-with-intra{
 min-height:46px!important;
 height:auto!important;
 padding:5px 2px!important;
 gap:1px!important;
 border-radius:15px!important;
}
#weekly-view .weekly-event-card:not(.weekly-match-with-intra),
#weekly-view .weekly-peri-card{
 min-height:46px!important;
 padding:5px 2px!important;
 border-radius:15px!important;
}
#weekly-view .weekly-event-slot{min-height:0!important}
#weekly-view .weekly-summary-heading{padding-left:20px!important}

#weekly-view .weekly-supplement-summary{margin:14px 0 0;border-radius:17px;background:rgba(255,255,255,.055);padding:13px 16px}
#weekly-view .weekly-supplement-summary>summary{cursor:pointer;font-weight:650}
#weekly-view .weekly-supplement-group{display:flex;gap:12px;align-items:start;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.09)}
#weekly-view .weekly-supplement-group:last-child{border-bottom:0}
#weekly-view .weekly-supplement-group>strong{min-width:85px;white-space:nowrap}
#weekly-view .weekly-supplement-group>span{flex:1;color:#c6c6cb}

#weekly-view .weekly-supplement-summary{border:0!important;border-radius:22px!important;background:#1e1e22!important;padding:13px 17px!important}
#weekly-view .weekly-supplement-summary>summary{font-size:1rem!important;list-style:none}
#weekly-view .weekly-supplement-group{display:flex!important;flex-direction:column!important;gap:7px!important;padding:13px 0!important;border-bottom:0!important}
#weekly-view .weekly-supplement-group>strong{font-size:.92rem!important}
#weekly-view .weekly-supplement-entry{font-size:.9rem;line-height:1.5;color:#c7c7cc}
#weekly-view .weekly-detail .supplement-section{border-top:0!important}
#weekly-view .weekly-detail .supplement-section:before{display:none!important}

#weekly-view .weekly-detail .supplement-in-meal{border-top:0!important;margin-top:6px!important;padding-top:5px!important}

/* Match weekly option subcards in daily overview and colored plans.
   Meal headers, nutrition rows, detail behavior and values are unchanged. */
#overview .daily-meal>details:not(.daily-meal),
#plans #plan-detail .plan-overview-meal>details {
 display:block!important;
 background:rgba(255,255,255,.095)!important;
 border:0!important;
 border-radius:17px!important;
 margin:10px 14px!important;
 padding:13px 14px!important;
 box-shadow:none!important;
}
#overview .daily-meal>details:not(.daily-meal)>summary,
#plans #plan-detail .plan-overview-meal>details>summary {
 border:0!important;
 padding:0!important;
 margin:0!important;
 list-style:none;
}
#overview .daily-meal>details:not(.daily-meal)>summary::-webkit-details-marker,
#plans #plan-detail .plan-overview-meal>details>summary::-webkit-details-marker{display:none}
#overview .daily-meal>details:not(.daily-meal) .option,
#plans #plan-detail .plan-overview-meal>details .option {
 padding-top:0!important;
 padding-bottom:0!important;
 min-height:35px;
 align-items:center!important;
}
#overview .daily-meal>details:not(.daily-meal) .option-expanded-macros,
#plans #plan-detail .plan-overview-meal>details .option-expanded-macros{
 margin:8px 0 0!important;
 padding:10px 0!important;
}
#overview .daily-meal>details:not(.daily-meal) .foods,
#plans #plan-detail .plan-overview-meal>details .foods{
 border-bottom:1px solid rgba(255,255,255,.1)!important;
}
#overview .daily-meal>details:not(.daily-meal) .foods:last-child,
#plans #plan-detail .plan-overview-meal>details .foods:last-child{border-bottom:0!important}
@media(max-width:620px){
 #overview .daily-meal>details:not(.daily-meal),
 #plans #plan-detail .plan-overview-meal>details{margin:9px 11px!important;padding:12px!important}
}

/* Option subcards: stronger tinted surfaces, consistent spacing and text alignment.
   Keep supplement cards and all meal nutrition behavior unchanged. */
#overview .daily-meal>details:not(.daily-meal),
#plans #plan-detail .plan-overview-meal>details{
 background:color-mix(in srgb, var(--option-base,#b9b9b9) 34%,transparent)!important;
 margin:12px 16px!important;
 padding:16px 17px!important;
 border-radius:18px!important;
 box-sizing:border-box!important;
 clear:both!important;
}
#overview .daily-meal,
#plans #plan-detail .plan-overview-meal{--option-base:#ffffff}
#overview .daily-meal.tone-orange,#plans #plan-detail .tone-orange{--option-base:#dca778}
#overview .daily-meal.tone-yellow,#plans #plan-detail .tone-yellow{--option-base:#e0c475}
#overview .daily-meal.tone-blue,#plans #plan-detail .tone-blue{--option-base:#88b9d7}
#overview .daily-meal.tone-green,#plans #plan-detail .tone-green{--option-base:#82c8a4}
#overview .daily-meal.tone-vp,#plans #plan-detail .tone-vp{--option-base:#b0d2ab}
#overview .daily-meal>details:not(.daily-meal)>summary .option,
#plans #plan-detail .plan-overview-meal>details>summary .option{
 display:flex!important;
 flex-wrap:nowrap!important;
 align-items:center!important;
 justify-content:space-between!important;
 padding:0 27px 0 0!important;
 min-height:48px!important;
 position:relative!important;
}
#overview .daily-meal>details:not(.daily-meal) .plan-option-label,
#plans #plan-detail .plan-overview-meal>details .plan-option-label{
 display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:center!important;
 gap:5px!important;min-width:0!important;margin:0!important;
}
#overview .daily-meal>details:not(.daily-meal) .plan-option-label small,
#plans #plan-detail .plan-overview-meal>details .plan-option-label small{
 display:block!important;margin:0!important;line-height:1.2!important;
}
#overview .daily-meal>details:not(.daily-meal) .plan-option-label strong,
#plans #plan-detail .plan-overview-meal>details .plan-option-label strong{
 display:block!important;margin:0!important;line-height:1.35!important;
}
#plans #plan-detail .plan-overview-meal>details+details,
#overview .daily-meal>details:not(.daily-meal)+details:not(.daily-meal){margin-top:12px!important}
@media(max-width:620px){
 #overview .daily-meal>details:not(.daily-meal),
 #plans #plan-detail .plan-overview-meal>details{margin:11px 12px!important;padding:15px 14px!important}
}

/* Explicit option subcards: apply only to daily Overview and colored Plans.
   Preserve nutrition headers and supplementary sections. */
#overview .daily-meal > details.player-meal-option-subcard,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard{
 display:block!important;
 width:auto!important;
 box-sizing:border-box!important;
 background:color-mix(in srgb,var(--tint,var(--meal-yellow)) 82%,white 18%)!important;
 border:0!important;
 border-radius:18px!important;
 margin:12px 16px!important;
 padding:16px 17px!important;
 box-shadow:none!important;
 overflow:hidden;
}
#plans #plan-detail .plan-overview-meal.tone-orange{--tint:var(--meal-orange)}
#plans #plan-detail .plan-overview-meal.tone-yellow{--tint:var(--meal-yellow)}
#plans #plan-detail .plan-overview-meal.tone-blue{--tint:var(--meal-blue)}
#plans #plan-detail .plan-overview-meal.tone-green{--tint:var(--meal-green)}
#plans #plan-detail .plan-overview-meal.tone-vp{--tint:var(--meal-vp)}
#overview .daily-meal > details.player-meal-option-subcard > summary,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary{
 padding:0!important;margin:0!important;border:0!important;background:transparent!important;
}
#overview .daily-meal > details.player-meal-option-subcard .option,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard .option{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 flex-wrap:nowrap!important;min-height:48px!important;padding:0 26px 0 0!important;
}
#overview .daily-meal > details.player-meal-option-subcard .plan-option-label,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard .plan-option-label{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:center!important;gap:5px!important;min-width:0!important;
}
#overview .daily-meal > details.player-meal-option-subcard .plan-option-label small,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard .plan-option-label small,
#overview .daily-meal > details.player-meal-option-subcard .plan-option-label strong,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard .plan-option-label strong{
 display:block!important;margin:0!important;padding:0!important;text-align:left!important;
}
#overview .daily-meal > details.player-meal-option-subcard .plan-option-label strong,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard .plan-option-label strong{line-height:1.35!important}
@media(max-width:620px){
 #overview .daily-meal > details.player-meal-option-subcard,
 #plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard{
  margin:11px 12px!important;padding:15px 14px!important;
 }
}


/* Player visual consistency: use daily training event radius for expandable cards. */
#overview .daily-meal,
#overview .match-intra-card,
#overview .daily-event-card,
#overview .peri-meal,
#overview .daily-meal > details.player-meal-option-subcard,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard{
 border-radius:13px!important;
}
#overview .daily-meal:not([open]),
#overview .match-intra-card:not([open]){border-radius:13px!important}

/* Keep the option number and description vertically centered as one group. */
#overview .daily-meal > details.player-meal-option-subcard > summary .option,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .option,
#weekly-view .weekly-option-card > summary .option{
 display:flex!important;align-items:center!important;min-height:48px!important;
}
#overview .daily-meal > details.player-meal-option-subcard .plan-option-label,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard .plan-option-label,
#weekly-view .weekly-option-card .plan-option-label{
 align-self:center!important;justify-content:center!important;
 gap:4px!important;line-height:1.3!important;
}

/* A small downward triangle for all expandable cards; up when expanded. */
#overview details > summary .option:after,
#plans details > summary .option:after,
#weekly-view details > summary .option:after,
#overview details > summary.daily-meal-head:after,
#plans details > summary.daily-meal-head:after,
#weekly-view details > summary.daily-meal-head:after,
.daily-supplements > summary:after,
#weekly-view .weekly-supplement-summary > summary:after{
 content:""!important;
 display:block!important;
 width:0!important;height:0!important;
 border-left:5px solid transparent!important;
 border-right:5px solid transparent!important;
 border-top:6px solid currentColor!important;
 border-bottom:0!important;
 background:none!important;
 font-size:0!important;
 color:#c9c9cf!important;
 transform:none!important;
 transition:transform .16s ease!important;
}
#overview details[open] > summary .option:after,
#plans details[open] > summary .option:after,
#weekly-view details[open] > summary .option:after,
#overview details[open] > summary.daily-meal-head:after,
#plans details[open] > summary.daily-meal-head:after,
#weekly-view details[open] > summary.daily-meal-head:after,
.daily-supplements[open] > summary:after,
#weekly-view .weekly-supplement-summary[open] > summary:after{
 transform:rotate(180deg)!important;
}

/* Compact weekly menus; date and matchday share the header row. */
#menus .day-menu{display:flex!important;flex-direction:column!important;gap:5px!important;padding:14px 16px!important;margin:9px 0!important}
#menus .menu-day-heading{display:flex!important;flex-direction:row!important;justify-content:space-between!important;align-items:flex-start!important;gap:12px!important;margin:0 0 2px!important}
#menus .menu-day-heading h3{margin:0!important;font-size:18px!important;line-height:1.3!important}
#menus .menu-day-subtitle{flex:none!important;margin-top:2px!important;text-align:right!important;line-height:1.25!important;white-space:nowrap}
#menus .menu-entry{margin:3px 0!important;padding:10px 12px!important}
#menus .day-menu .row{border-top:0!important}
@media(max-width:620px){
 #menus .day-menu{padding:12px 14px!important}
 #menus .menu-day-heading h3{font-size:17px!important}
 #menus .menu-day-subtitle{font-size:11px!important}
}


/* Follow-up: single chevron per expandable summary; prevent the legacy side arrow. */
#overview .daily-meal > details.player-meal-option-subcard > summary .option:before,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .option:before,
#weekly-view .weekly-option-card > summary .option:before{content:none!important;display:none!important}
#overview .daily-meal > details.player-meal-option-subcard > summary .option:after,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .option:after,
#weekly-view .weekly-option-card > summary .option:after{
 content:""!important;position:absolute!important;top:50%!important;right:1px!important;left:auto!important;
 display:block!important;width:0!important;height:0!important;
 border-left:5px solid transparent!important;border-right:5px solid transparent!important;
 border-top:6px solid #e3e3e6!important;border-bottom:0!important;
 transform:translateY(-50%)!important;
 font-size:0!important;line-height:0!important;
}
#overview .daily-meal > details.player-meal-option-subcard[open] > summary .option:after,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard[open] > summary .option:after,
#weekly-view .weekly-option-card[open] > summary .option:after{
 transform:translateY(-50%) rotate(180deg)!important;
}
/* Align description against the entire inner card, not the previous 2-column grid. */
#overview .daily-meal > details.player-meal-option-subcard > summary .option,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .option,
#weekly-view .weekly-option-card > summary .option{
 display:flex!important;grid-template-columns:none!important;align-items:center!important;
 padding:0 24px 0 0!important;position:relative!important;min-height:50px!important;
}
#overview .daily-meal > details.player-meal-option-subcard > summary .plan-option-label,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .plan-option-label,
#weekly-view .weekly-option-card > summary .plan-option-label{
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 align-items:flex-start!important;align-self:center!important;gap:6px!important;
 margin:0!important;padding:0!important;width:100%!important;
}
/* Menu photos aligned centrally, still on the right. */
#menus .menu-entry-body{align-items:center!important}
#menus .menu-entry-body .dish-img{align-self:center!important;flex-shrink:0!important}
#menus .menu-day-heading{margin-bottom:10px!important}
/* Same visual composition for training, recovery and match on weekly grid. */
#weekly-view .weekly-event-card,
#weekly-view .weekly-peri-card,
#weekly-view .weekly-match-with-intra{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;text-align:center!important;gap:2px!important;
 min-height:46px!important;border-radius:15px!important;
}
/* Weekly supplement uses the same right-hand arrow alignment as daily. */
#weekly-view .weekly-supplement-summary>summary{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:12px!important;list-style:none!important;
}
#weekly-view .weekly-supplement-summary>summary::-webkit-details-marker{display:none!important}
#weekly-view .weekly-supplement-summary>summary:after{
 content:""!important;position:static!important;margin-left:auto!important;flex:none!important;
 display:block!important;width:0!important;height:0!important;
 border-left:5px solid transparent!important;border-right:5px solid transparent!important;
 border-top:6px solid #c9c9cf!important;border-bottom:0!important;
 transform:none!important;
}
#weekly-view .weekly-supplement-summary[open]>summary:after{transform:rotate(180deg)!important}


/* Fine tuning: center the two-line option label inside each inner card.
   Keep the disclosure triangle in its existing position. */
#overview .daily-meal > details.player-meal-option-subcard > summary,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary{
 display:flex!important;align-items:center!important;min-height:76px!important;
}
#overview .daily-meal > details.player-meal-option-subcard > summary .option,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .option{
 display:flex!important;align-items:center!important;width:100%!important;
 min-height:76px!important;margin:0!important;
}
#overview .daily-meal > details.player-meal-option-subcard > summary .plan-option-label,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .plan-option-label{
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 align-self:stretch!important;gap:6px!important;margin:0!important;
}

/* Menu: lower weekday header, independently raise photos without moving dish text. */
#menus .menu-day-heading h3{padding-top:7px!important}
#menus .menu-entry-body .dish-img{
 position:relative!important;top:-9px!important;align-self:center!important;
}


/* Compact closed option subcards; no forced 76px heading height. */
#overview .daily-meal > details.player-meal-option-subcard > summary,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary{
 min-height:0!important;height:auto!important;padding:0!important;
 display:flex!important;align-items:center!important;
}
#overview .daily-meal > details.player-meal-option-subcard > summary .option,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .option{
 min-height:0!important;height:auto!important;padding:0 24px 0 0!important;
 display:flex!important;align-items:center!important;
}
#overview .daily-meal > details.player-meal-option-subcard > summary .plan-option-label,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .plan-option-label{
 align-self:center!important;justify-content:center!important;gap:5px!important;
 line-height:1.3!important;
}
#overview .daily-meal > details.player-meal-option-subcard,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard{
 padding:12px 14px!important;margin:9px 12px!important;
}
/* Menu text always starts at the same top position. Images stay independently aligned. */
#menus .menu-entry{display:flex!important;flex-direction:column!important}
#menus .menu-entry-heading{margin:0 0 6px!important;flex:none!important}
#menus .menu-entry-body{display:flex!important;align-items:flex-start!important;gap:12px!important}
#menus .menu-entry-body .value{
 align-self:flex-start!important;margin:0!important;padding:0!important;
 line-height:1.4!important;
}
#menus .menu-entry-body .dish-img{
 align-self:flex-start!important;position:relative!important;top:-9px!important;
}


/* Stable collapsed-option layout, independent of previous option open state.
   Earlier sibling selectors were adding padding/margins to all but the first option. */
#overview .daily-meal > details.player-meal-option-subcard,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard{
 margin:9px 12px!important;padding:12px 14px!important;
 border-top:0!important;border-bottom:0!important;
}
#overview .daily-meal > details.player-meal-option-subcard + details.player-meal-option-subcard,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard + details.player-meal-option-subcard,
#overview .daily-meal > details.player-meal-option-subcard[open] + details.player-meal-option-subcard,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard[open] + details.player-meal-option-subcard,
#overview .daily-meal > details.player-meal-option-subcard:not([open]) + details.player-meal-option-subcard,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard:not([open]) + details.player-meal-option-subcard{
 margin:9px 12px!important;padding:12px 14px!important;
 border-top:0!important;border-bottom:0!important;
}
#overview .daily-meal > details.player-meal-option-subcard > summary,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary{
 min-height:0!important;margin:0!important;padding:0!important;
 display:flex!important;align-items:center!important;
}
#overview .daily-meal > details.player-meal-option-subcard > summary .option,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .option{
 min-height:0!important;margin:0!important;padding:0 24px 0 0!important;
 display:flex!important;align-items:center!important;
}
#overview .daily-meal > details.player-meal-option-subcard > summary .plan-option-label,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .plan-option-label{
 align-self:center!important;justify-content:center!important;gap:5px!important;
}
/* Menu meal labels always left aligned, with text directly below. */
#menus .day-menu .menu-entry{align-items:stretch!important;text-align:left!important}
#menus .day-menu .menu-entry-heading{
 display:flex!important;justify-content:flex-start!important;align-items:flex-start!important;
 width:100%!important;text-align:left!important;
}
#menus .day-menu .menu-entry-heading strong{
 display:block!important;text-align:left!important;margin:0!important;
}
#menus .day-menu .menu-entry-body{text-align:left!important;align-self:stretch!important}
/* All weekly training, post-training and match events share the same surface and sizing. */
#weekly-view .weekly-event-card,
#weekly-view .weekly-peri-card,
#weekly-view .weekly-match-with-intra{
 box-sizing:border-box!important;display:flex!important;flex-direction:column!important;
 align-items:center!important;justify-content:center!important;gap:2px!important;
 width:100%!important;min-height:46px!important;height:auto!important;
 padding:5px 2px!important;border-radius:15px!important;
 border:0!important;box-shadow:none!important;
 font-size:clamp(8px,1.5vw,11px)!important;line-height:1.16!important;
 font-weight:600!important;text-align:center!important;
}
#weekly-view .weekly-peri-card span,
#weekly-view .weekly-event-card span{line-height:1.16!important}


/* Compact weekly sports-event typography matches weekly meal typography. */
#weekly-view .weekly-event-card > span:first-child,
#weekly-view .weekly-peri-card > span:first-child{
 font-size:clamp(8px,1.5vw,11px)!important;
 font-weight:550!important;line-height:1.16!important;
}
#weekly-view .weekly-peri-card > .weekly-meal-kcal,
#weekly-view .weekly-match-with-intra > .weekly-match-kcal{
 font-size:clamp(9px,1.65vw,11px)!important;
 font-weight:500!important;line-height:1.12!important;
 color:rgba(255,255,255,.82)!important;
 font-variant-numeric:tabular-nums!important;
}
#weekly-view .weekly-peri-card > span:last-child{
 font-size:clamp(9px,1.65vw,11px)!important;color:rgba(255,255,255,.82)!important;
}
/* Tighter menu label/description grouping, preserving left/top alignment. */
#menus .day-menu .menu-entry-heading{margin-bottom:2px!important}
#menus .day-menu .menu-entry-body .value{margin-top:0!important}
/* Date and microcycle classification same size as weekday heading. */
#menus .menu-day-subtitle{
 font-size:18px!important;line-height:1.3!important;
 font-weight:500!important;margin-top:7px!important;
}
@media(max-width:620px){
 #menus .menu-day-subtitle{font-size:17px!important}
}


/* Menu photos: display only a circular crop, removing the square backing.
   Original assets are unchanged. */
#menus .menu-entry-body img.dish-img{
 display:block!important;width:82px!important;height:82px!important;
 border-radius:50%!important;clip-path:circle(50% at 50% 50%)!important;
 object-fit:cover!important;object-position:center!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 padding:0!important;overflow:hidden!important;
}
/* Keep the meal label and description grouped at the top. */
#menus .menu-entry-heading{margin-bottom:2px!important}


/* Match macro disclosure spacing exactly in Daily Overview and Plans. */
#overview .daily-meal > details.player-meal-option-subcard[open] > .option-expanded-macros,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard[open] > .option-expanded-macros{
 margin:6px 0 0!important;
 padding:5px 0 11px!important;
}
#overview .daily-meal > details.player-meal-option-subcard[open] > summary,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard[open] > summary{
 padding:0!important;margin:0!important;
}
/* Black matte is removed from the served image; render food at full opacity. */
#menus .menu-entry-body img.dish-img{mix-blend-mode:normal!important;opacity:1!important;filter:none!important}


/* Player UI v3 — free Hugeicons stroke icon set. */
.mile-icon{display:inline-block;width:22px;height:22px;flex:none;background:currentColor;-webkit-mask:var(--icon-url) center/contain no-repeat;mask:var(--icon-url) center/contain no-repeat}
.icon-coffee-03{--icon-url:url("https://api.iconify.design/hugeicons/coffee-03.svg")}
.icon-vegetarian-food{--icon-url:url("https://api.iconify.design/hugeicons/vegetarian-food.svg")}
.icon-restaurant-02{--icon-url:url("https://api.iconify.design/hugeicons/restaurant-02.svg")}
.icon-moon-02{--icon-url:url("https://api.iconify.design/hugeicons/moon-02.svg")}
.icon-football{--icon-url:url("https://api.iconify.design/hugeicons/football.svg")}
.icon-football-pitch{--icon-url:url("https://api.iconify.design/hugeicons/football-pitch.svg")}
.icon-soft-drink-01{--icon-url:url("https://api.iconify.design/hugeicons/soft-drink-01.svg")}
.icon-home-09{--icon-url:url("https://api.iconify.design/hugeicons/home-09.svg")}
.icon-files-01{--icon-url:url("https://api.iconify.design/hugeicons/files-01.svg")}
.icon-add-circle{--icon-url:url("https://api.iconify.design/hugeicons/add-circle.svg")}
.icon-menu-restaurant{--icon-url:url("https://api.iconify.design/hugeicons/menu-restaurant.svg")}
.icon-user-03{--icon-url:url("https://api.iconify.design/hugeicons/user-03.svg")}
.meal-leading-icon{width:37px;height:37px;display:inline-flex;align-items:center;justify-content:center;flex:none;border-radius:11px;background:rgba(0,0,0,.16);margin-right:10px}
.meal-leading-icon .mile-icon{width:24px;height:24px}
/* PAGE INITIAL / DAY — shared geometry for meal, weight, training, peri, match, supplements, post-match form. */
#overview #day-details{
 --day-icon-box:37px;--day-icon-glyph:24px;--day-icon-radius:11px;
 --day-header-inset:17px;--day-header-gap:8px;--day-icon-space:10px;
 --day-chevron-size:9px;--post-match-edit-inset:7px;
 --day-title-size:16px;--day-title-weight:var(--mile-type-card-title);--day-kcal-size:11px;--day-kcal-weight:500;
 --consumption-status-bg:rgba(154,224,191,.20);--consumption-status-ink:#b9eed2;
 --consumption-secondary-bg:rgba(255,255,255,.09);
}
#overview #day-details .tm-day-header{align-items:center!important;column-gap:var(--day-header-gap)!important;padding-left:var(--day-header-inset)!important}
#overview #day-details .tm-day-icon{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;flex:0 0 var(--day-icon-box)!important;
 width:var(--day-icon-box)!important;min-width:var(--day-icon-box)!important;max-width:var(--day-icon-box)!important;
 height:var(--day-icon-box)!important;min-height:var(--day-icon-box)!important;max-height:var(--day-icon-box)!important;
 margin:0 var(--day-icon-space) 0 0!important;padding:0!important;
 border-radius:var(--day-icon-radius)!important;background:rgba(0,0,0,.16)!important;
 order:-1!important;align-self:center!important;transform:none!important;
}
#overview #day-details .tm-day-icon > :is(.mile-icon,svg){
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 var(--day-icon-glyph)!important;width:var(--day-icon-glyph)!important;height:var(--day-icon-glyph)!important;
 margin:0!important;padding:0!important;transform:none!important;
}
#overview #day-details .tm-day-icon .mile-icon > svg{display:block!important;width:100%!important;height:100%!important;transform:none!important}
#overview #day-details .tm-day-title{font-family:inherit!important;font-size:var(--day-title-size)!important;font-weight:var(--day-title-weight)!important;line-height:1.3!important;letter-spacing:normal!important}
#overview #day-details .tm-day-header .meal-average-inline .macro>.kcal{font-family:inherit!important;font-size:var(--day-kcal-size)!important;font-weight:var(--day-kcal-weight)!important;line-height:1.12!important}
#overview .daily-meal-head{display:flex;align-items:center!important}
#overview .daily-meal-head>.meal-leading-icon{order:-1}
#overview .daily-event-card{display:flex;align-items:center}
#overview .daily-meal-head>strong{flex:1;min-width:0}
#overview .daily-event-card>span:not(.meal-leading-icon){flex:1}
#overview .peri-meal .daily-meal-head .meal-leading-icon{order:-1}
#tabs{border-radius:999px!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:1px!important;padding:5px!important}
#tabs button{border-radius:999px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:0!important;padding:8px 2px!important;font-size:10px!important}
#tabs .mile-icon{width:21px;height:21px}
#tabs button[data-tab="new"] .mile-icon{width:27px;height:27px}
#tabs button[aria-pressed=true]{border-radius:999px!important}
.player-top{display:flex!important;justify-content:space-between!important;align-items:center!important;min-height:51px!important}
#player-avatar{border:0!important;border-radius:50%!important;width:43px!important;height:43px!important;min-width:43px!important;padding:0!important;background:#3c3c42!important;color:#fff!important;font-weight:700!important}
#player-panel .welcome{margin-top:4px!important}
.placeholder-screen{padding:28px 10px 100px}
.nutrition-donut-summary{position:relative!important;display:flex!important;flex-wrap:wrap!important;gap:0!important;align-items:flex-start!important;padding-right:47px!important}
.nutrition-donut-summary .nutrition-hero{flex:1 1 24%!important;min-width:0!important}
.nutrition-donut-summary .nutrition-macro-row{flex:3 1 65%!important;min-width:0!important}
.nutrition-energy>strong{white-space:nowrap;font-size:clamp(17px,4vw,25px)!important}


.nutrition-weekly-charts{flex:0 0 100%!important;width:100%!important;border-top:1px solid rgba(255,255,255,.12);margin-top:14px;padding:19px 3px 5px}
.nutrition-weekly-charts[hidden]{display:none!important}
.nutrition-chart-section{margin-bottom:18px}
.nutrition-chart-section>strong,.macro-chart-heading{font-size:13px;color:#f4f4f6}
.nutrition-chart-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;align-items:end;margin-top:13px}
.nutrition-chart-column{display:flex;flex-direction:column;gap:5px;align-items:center;min-width:0}
.nutrition-chart-number{font-size:9px;white-space:nowrap;color:#ddd}
.nutrition-chart-track{height:72px;width:100%;max-width:28px;display:flex;align-items:end;background:rgba(255,255,255,.06);border-radius:4px;overflow:hidden}
.nutrition-chart-fill{width:100%;border-radius:4px 4px 0 0}
.nutrition-chart-column small{font-size:10px;color:#bbb}
.macro-chart-switch{display:flex;justify-content:end;gap:3px;margin:6px 0}
.macro-chart-switch button{font-size:11px!important;min-height:0!important;padding:4px 10px!important;border-radius:999px!important}
.macro-chart-switch button.selected{background:#55565e!important}
@media(max-width:390px){
 .nutrition-donut-summary{padding-right:38px!important}
 #tabs button{font-size:9px!important}
 .meal-leading-icon{width:32px;height:32px;margin-right:6px}
}


/* Header contains only the player-avatar; sign-out is in Profile. */
.player-top #logout{display:none!important}
#player-panel .welcome h1{margin-top:0!important}
#overview .nutrition-donut-summary .nutrition-energy small:first-child{font-weight:550}


/* Local inline SVGs — do not rely on external mask files. */
.mile-icon{background:none!important;-webkit-mask:none!important;mask:none!important;display:inline-flex!important;align-items:center;justify-content:center;color:inherit}
.mile-icon svg{display:block;width:100%;height:100%}
/* Nutrition summary spans the complete available viewport/card width. */
#overview #day-details .nutrition-donut-summary{
 display:grid!important;grid-template-columns:minmax(0,1.05fr) minmax(0,2.95fr)!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 box-sizing:border-box!important;align-items:center!important;justify-content:stretch!important;
 gap:0!important;padding:15px 43px 15px 12px!important;
}
#overview #day-details .nutrition-donut-summary .nutrition-hero{
 grid-column:1!important;grid-row:1!important;width:auto!important;min-width:0!important;flex:none!important;
}
#overview #day-details .nutrition-donut-summary .nutrition-macro-row{
 grid-column:2!important;grid-row:1!important;width:100%!important;min-width:0!important;flex:none!important;
}



#weekly-view .meal-leading-icon,#weekly-view .mile-icon{display:none!important}


/* Hugeicons PillIcon next to supplementation label. */
#overview .daily-supplements>summary{display:flex!important;align-items:center!important;gap:10px!important}
#overview .daily-supplements>summary>.supplement-leading-icon{width:23px!important;height:23px!important;flex:none!important}
#overview .daily-supplements>summary:after{margin-left:auto!important}


/* Nutrition expansion arrow matches the small triangular meal card chevrons. */





/* Latest compact player refinements. */
#player-panel .welcome[hidden]{display:none!important}
#tabs{bottom:calc(env(safe-area-inset-bottom,0px) + 7px)!important}
#overview .daily-event-card>span:not(.meal-leading-icon){flex:1 1 auto!important}
/* No duplicate caret in expandable peri-plan cards. */
#plans #plan-detail details>summary .option:before,
#plans #plan-detail .plan-option-card>summary .option:before{content:none!important;display:none!important}
#plans #plan-detail details>summary .option:after{content:""!important;border-left:5px solid transparent!important;border-right:5px solid transparent!important;border-top:6px solid currentColor!important;border-bottom:0!important;width:0!important;height:0!important;font-size:0!important}
#plans #plan-detail details[open]>summary .option:after{transform:rotate(180deg)!important}
/* Weekly mean matches the daily 4-column macro surface. */
#weekly-view .weekly-summary-heading{padding-left:0!important;margin:18px 0 10px!important}
#weekly-view .weekly-summary-heading h2{margin:0!important;padding:0 12px!important;font-size:17px!important}
#weekly-view .weekly-average-summary{
 box-sizing:border-box!important;width:100%!important;display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 background:rgba(255,255,255,.045)!important;border:0!important;border-radius:16px!important;
 padding:15px 10px!important;gap:0!important;box-shadow:none!important;
}
#weekly-view .weekly-average-metric{
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 min-width:0!important;gap:6px!important;margin:0!important;padding:0 8px!important;
 border:0!important;border-right:1px solid rgba(255,255,255,.16)!important;
 background:transparent!important;text-align:left!important;
}
#weekly-view .weekly-average-metric:first-child{padding-left:4px!important}
#weekly-view .weekly-average-metric:last-child{border-right:0!important}
#weekly-view .weekly-average-metric strong{font-size:clamp(15px,4vw,23px)!important;line-height:1.15!important}
#weekly-view .weekly-average-metric small{font-size:clamp(10px,2.6vw,13px)!important}
#weekly-view .weekly-supplement-summary>summary>.mile-icon{width:23px!important;height:23px!important;flex:none!important;margin-right:8px!important}
#weekly-view .weekly-supplement-summary>summary{justify-content:flex-start!important}
#weekly-view .weekly-supplement-summary>summary:after{margin-left:auto!important}


/* Verified follow-up: move bottom tab bar up a few actual pixels. */
@media(max-width:620px){
 #player-panel #tabs{
  position:fixed!important;
  bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
  transform:translateY(-4px)!important;
 }
}
/* No repeated player-name heading in any tab. */
#player-panel .welcome{display:none!important}
#player-panel #overview,#player-panel #plans,#player-panel #menus{margin-top:0!important}
/* Peri-plan option cards: browser summary marker plus old CSS marker are suppressed. */
#plans #plan-detail .plan-meal details.plan-option-card>summary{
 list-style:none!important;display:block!important;
}
#plans #plan-detail .plan-meal details.plan-option-card>summary::-webkit-details-marker{display:none!important}
#plans #plan-detail .plan-meal details.plan-option-card>summary::marker{content:""!important}
#plans #plan-detail .plan-meal details.plan-option-card>summary:before,
#plans #plan-detail .plan-meal details.plan-option-card>summary:after,
#plans #plan-detail .plan-meal details.plan-option-card>summary .option:before{
 display:none!important;content:none!important;
}
#plans #plan-detail .plan-meal details.plan-option-card>summary .option:after{
 content:""!important;display:block!important;
 width:0!important;height:0!important;position:absolute!important;
 right:2px!important;left:auto!important;top:50%!important;
 border-left:5px solid transparent!important;
 border-right:5px solid transparent!important;
 border-top:6px solid currentColor!important;border-bottom:0!important;
 font-size:0!important;transform:translateY(-50%)!important;
}
#plans #plan-detail .plan-meal details.plan-option-card[open]>summary .option:after{
 transform:translateY(-50%) rotate(180deg)!important;
}
/* Weekly supplement header needs its icon: weekly grid cells alone remain iconless. */
#weekly-view .weekly-supplement-summary>summary>.mile-icon{
 display:inline-flex!important;visibility:visible!important;
 width:23px!important;height:23px!important;flex:0 0 23px!important;
}
#weekly-view .weekly-supplement-summary>summary>.mile-icon svg{display:block!important}
/* g/g/kg switch must be legible and enabled. */
#overview .macro-chart-switch{display:flex!important}
#overview .macro-chart-switch button{cursor:pointer!important}


/* Role-specific fallbacks; universal card titles use the shared title token. */
#overview .daily-meal > .daily-meal-head > strong,
#plans #plan-detail .plan-overview-meal > .daily-meal-head > strong,
#overview .peri-meal > .daily-meal-head > strong{
 font-weight:var(--mile-type-card-title)!important;
}
#overview .daily-meal .plan-option-label > strong,
#plans #plan-detail .plan-option-card .plan-option-label > strong,
#plans #plan-detail .player-meal-option-subcard .plan-option-label > strong{
 font-weight:450!important;
}
#overview .daily-event-card > span:not(.meal-leading-icon),
#overview .peri-meal > .daily-meal-head > strong,
#overview .match-intra-card > .daily-meal-head > strong{
 font-weight:var(--mile-type-card-title)!important;
}
#weekly-view .weekly-event-card > span:first-child,
#weekly-view .weekly-peri-card > span:first-child{
 font-weight:500!important;
}
#tabs button,#tabs button span{font-weight:400!important}


/* Menus: compact top spacing and equal, understated meal typography. */
#player-panel #menus{padding-top:0!important;margin-top:0!important}
#menus>.date-nav{margin:0 0 12px!important;padding:0!important;min-height:35px!important}
#menus .date-nav strong{font-size:clamp(13px,3.6vw,16px)!important;font-weight:500!important;text-align:center!important}
#menus .day-menu .menu-entry-heading{margin:0 0 2px!important}
#menus .day-menu .menu-entry-heading strong,
#menus .day-menu .menu-entry-body .value{
 font-size:16px!important;font-weight:450!important;line-height:1.4!important;
}
#menus .day-menu .menu-entry-heading strong{color:#c6c6cb!important}
#menus .day-menu .menu-entry-body .value{color:#f0f0f2!important}


/* Apple Screen Time inspired day/week segmented switch. */
#player-panel #overview{margin-top:0!important}
/* Reduce the gap beneath the avatar only on the home view. */
#player-panel:has(#overview:not([hidden])){margin-top:-9px!important}
/* Stable kcal chevron: same button coordinates in both states. */

/* Macro title and segmented control aligned on a single header row. */
#overview .nutrition-weekly-charts .macro-chart-header{
 display:flex!important;justify-content:space-between!important;align-items:center!important;
 gap:10px!important;margin:21px 0 10px!important;
}
#overview .nutrition-weekly-charts .macro-chart-heading{margin:0!important;line-height:1.3!important}
#overview .nutrition-weekly-charts .macro-chart-switch{
 display:flex!important;gap:2px!important;margin:0!important;
 background:#242429!important;border:1px solid #45454e!important;
 border-radius:999px!important;padding:2px!important;flex:none!important;
}
#overview .nutrition-weekly-charts .macro-chart-switch button{
 min-width:43px!important;padding:6px 9px!important;border:0!important;
 border-radius:999px!important;box-shadow:none!important;
 background:transparent!important;font-size:12px!important;
 color:#bbbcc5!important;font-weight:500!important;
}
#overview .nutrition-weekly-charts .macro-chart-switch button.selected{
 background:#56565d!important;color:#fff!important;
}


/* Keep kcal expand/retract control at the same top-right coordinates. */



#overview .peri-meal>.daily-meal-head{align-items:center!important}


/* Compact, organized in-card editor for training and match events. */
#overview .daily-event-editor{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 width:100%!important;gap:12px!important;margin-top:12px!important;padding:4px 0 2px!important;
 box-sizing:border-box!important;
}
#overview .daily-event-editor[hidden]{display:none!important}
#overview .daily-event-fields{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 gap:10px!important;width:100%!important;
}
#overview .daily-event-fields input,
#overview .daily-event-fields select{
 width:100%!important;min-width:0!important;box-sizing:border-box!important;
 height:46px!important;padding:0 12px!important;
 border-radius:14px!important;border:1px solid rgba(255,255,255,.15)!important;
 background:rgba(255,255,255,.05)!important;color:#f4f4f6!important;
 font-size:14px!important;font-weight:450!important;text-align:center!important;
}
#overview .daily-event-actions{display:flex!important;justify-content:flex-end!important;width:100%!important}
#overview .daily-event-editor button.daily-event-save{
 grid-column:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 min-width:108px!important;max-width:150px!important;width:auto!important;height:39px!important;
 padding:0 22px!important;border:0!important;border-radius:999px!important;
 background:#fff!important;color:#17171b!important;font-size:14px!important;font-weight:500!important;
 box-shadow:none!important;cursor:pointer!important;
}
#overview .daily-event-editor button.daily-event-save:disabled{opacity:.5!important;cursor:default!important}
#overview .daily-event-editor>small{width:100%!important;color:#f2bb89!important}


/* iOS date picker: independently constrained columns prevent overlap. */
#overview .daily-event-fields{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
 width:100%!important;gap:12px!important;min-width:0!important;
}
#overview .daily-event-fields .daily-event-field{
 display:block!important;min-width:0!important;max-width:100%!important;
 overflow:hidden!important;box-sizing:border-box!important;
}
#overview .daily-event-fields .daily-event-field > input,
#overview .daily-event-fields .daily-event-field > select{
 display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;
 box-sizing:border-box!important;margin:0!important;padding:0 8px!important;
 height:46px!important;line-height:46px!important;overflow:hidden!important;
 font-size:13px!important;
}
#overview .daily-event-fields .daily-event-date input[type="date"]{
 -webkit-appearance:none!important;appearance:none!important;
 text-align:left!important;
}
#overview .daily-event-fields input[type="date"]::-webkit-date-and-time-value{
 min-width:0!important;text-align:left!important;
}
#overview .daily-event-fields input[type="date"]::-webkit-datetime-edit{
 padding:0!important;min-width:0!important;
}
#overview .daily-event-fields .daily-event-period select{text-align:left!important}


/* Player Profile — approved identity, compact universal cards and account actions.
   Profile sections are not expandable; published follow-up data stays read-only.
   Independent informational cards use radius 13px; the two-row account group
   retains its 17px composite radius. Typography uses shared app tokens. */
#player-panel #profile{padding:19px 0 100px!important;margin:0!important}
body.profile-active .player-top{display:none!important}
#profile .profile-identity{
 display:flex;flex-direction:column;align-items:center;text-align:center;
 gap:7px;margin:8px 0 30px;
}
#profile .profile-photo-circle{
 width:90px;height:90px;flex:none;border-radius:50%;overflow:hidden;
 display:flex;align-items:center;justify-content:center;
 background:#414148;color:#fff;font-size:28px;font-weight:var(--mile-type-semibold,600);margin-bottom:9px;
}
#profile .profile-photo-circle img{width:100%;height:100%;object-fit:cover;display:block}
#profile .profile-photo-circle img[hidden],
#profile .profile-photo-circle span[hidden]{display:none!important}
#profile .profile-identity>strong{
 font-size:21px;line-height:1.2;font-weight:var(--mile-type-semibold,600);color:#f5f5f7;
}
#profile .profile-identity>span{
 font-size:14px;line-height:1.4;font-weight:var(--mile-type-regular,400);color:#a9a9b1;
}
/* Two-column, non-interactive follow-up; no edit or expansion is introduced. */
#profile .profile-plan-card{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;
 gap:12px;background:#242429;border-radius:13px;padding:19px 20px;margin-bottom:16px;
}
#profile .profile-plan-detail{display:flex;flex-direction:column;gap:7px;min-width:0}
#profile .profile-renewal-detail{align-items:flex-end;text-align:right}
#profile .profile-plan-detail>span{
 color:#aeb0b8;font-size:12px;line-height:1.35;font-weight:var(--mile-type-regular,400);
}
#profile .profile-plan-detail>strong{
 color:#f4f4f5;font-size:15px;font-weight:var(--mile-type-semibold,600);overflow-wrap:anywhere;
}
@media(max-width:360px){
 #profile .profile-plan-card{gap:8px;padding:16px 15px}
}
/* One universal navigation card, with notification badge and disclosure arrow preserved. */
#profile button.profile-notifications-card{
 display:flex!important;align-items:center!important;gap:13px!important;width:100%!important;
 min-height:61px!important;margin:0 0 16px!important;padding:18px 19px!important;
 border:0!important;border-radius:13px!important;background:#242429!important;
 color:#f1f1f3!important;box-shadow:none!important;text-align:left!important;
 font-size:16px!important;font-weight:var(--mile-type-card-title,400)!important;cursor:pointer;
}
#profile .profile-notification-icon{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:22px;
}
#profile .profile-notification-icon svg{
 display:block;width:22px!important;height:22px!important;max-width:22px;max-height:22px;
}
#profile .profile-notification-label{flex:1;min-width:0}
#profile .profile-notifications-card .profile-action-chevron{
 font-size:25px;line-height:1;color:#9f9fa7;
}
#profile .profile-notification-indicator:not([hidden]){
 display:block;width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:#c8d9cd;
}
/* Password and logout are separate actions inside one intentionally grouped surface. */
#profile .profile-actions-card{
 border-radius:17px;background:#242429;padding:0 18px;overflow:hidden;
}
#profile .profile-action{
 display:flex!important;align-items:center!important;text-align:left!important;
 gap:13px!important;padding:18px 1px!important;width:100%!important;min-height:61px!important;
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 font-size:16px!important;font-weight:var(--mile-type-card-title,400)!important;
 color:#f1f1f3!important;cursor:pointer;
}
#profile .profile-action+.profile-action{border-top:1px solid rgba(255,255,255,.12)!important}
#profile .profile-action .mile-icon{width:22px!important;height:22px!important;flex:none!important}
#profile .profile-action span:nth-child(2){flex:1!important}
#profile .profile-action-chevron{font-size:25px;color:#9f9fa7}
/* Subpages share the recipe-detail back button and page/detail title hierarchy. */
#profile .profile-subpage{padding:0 0 45px}
#profile .profile-subpage-header{
 display:flex;align-items:center;gap:13px;margin:4px 3px 25px;min-height:40px;
}
#profile .profile-subpage-header h2{
 margin:0;color:#f5f5f7;font-size:clamp(21px,5.3vw,23px);
 font-weight:var(--mile-type-semibold,600);line-height:1.25;letter-spacing:-.02em;
}
#profile button.profile-page-back{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 40px!important;width:40px!important;height:40px!important;
 min-width:40px!important;min-height:40px!important;padding:0 0 3px!important;
 border:0!important;border-radius:50%!important;background:rgba(255,255,255,.06)!important;
 color:#ededf0!important;box-shadow:none!important;
}
#profile .profile-page-back span{font-size:30px;font-weight:400;line-height:1}
#profile button.profile-page-back:focus-visible{outline:2px solid currentColor;outline-offset:3px}
#profile .profile-notifications-empty{
 padding:23px 20px;border-radius:13px;background:#242429;
}
#profile .profile-notifications-empty p{
 margin:0;color:#aaaab3;font-size:14px;font-weight:var(--mile-type-regular,400);line-height:1.5;
}
/* The password page is a form, not an enclosing card; keep native validation. */
#profile .profile-password-page-form{
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
 border-radius:0!important;
 padding:0!important;
 display:flex;flex-direction:column;gap:14px;margin:0;
}
/* Shared floating-label category: Login and Profile use the same canonical rule.
   Keep each input and its visible label in one accessible HTML label. */
label.mile-floating-field{
 position:relative;display:block!important;height:64px!important;min-height:64px!important;
 margin:0!important;
}
label.mile-floating-field > input.mile-floating-input{
 box-sizing:border-box!important;display:block!important;width:100%!important;max-width:none!important;
 height:64px!important;min-height:64px!important;margin:0!important;border:0!important;
 border-radius:20px!important;background:#242429!important;
 padding:20px 18px 0!important;color:#f6f6f8!important;
 font-size:16px!important;font-weight:var(--mile-type-regular,400)!important;
 outline:none!important;box-shadow:none!important;
 transition:box-shadow 150ms ease;
}
label.mile-floating-field > input.mile-floating-input:focus{
 box-shadow:0 0 0 2px #aeb0ba!important;
}
label.mile-floating-field > input.mile-floating-input::placeholder{color:transparent!important}
label.mile-floating-field > .mile-floating-label{
 position:absolute;left:18px;top:50%;max-width:calc(100% - 36px);
 transform:translateY(-50%);pointer-events:none;
 color:#aeb0ba;font-size:16px;font-weight:var(--mile-type-regular,400);line-height:1.3;
 transition:top 180ms ease,transform 180ms ease,font-size 180ms ease;
}
label.mile-floating-field:focus-within > .mile-floating-label,
label.mile-floating-field > input.mile-floating-input:not(:placeholder-shown) + .mile-floating-label{
 top:9px;transform:translateY(0);font-size:12px;
}
@media(prefers-reduced-motion:reduce){
 label.mile-floating-field > .mile-floating-label{transition:none}
 label.mile-floating-field > input.mile-floating-input{transition:none}
}
#profile .profile-password-page-form #profile-password-feedback{
 margin:0;color:#e8b48b;font-size:12px;line-height:1.45;
}
#profile .profile-password-page-form #profile-password-feedback:empty{display:none}
#profile .profile-password-page-form button.profile-password-save{
 align-self:stretch!important;margin-top:2px!important;
 padding:13px 17px!important;min-height:46px!important;
 background:#fff!important;color:#17171b!important;border:0!important;
 border-radius:999px!important;font-size:14px!important;
 font-weight:var(--mile-type-medium,500)!important;
}

/* Plans tab starts with two compact navigation cards. */
#plans [hidden]{display:none!important}
#plans .plans-landing{display:flex;flex-direction:column;gap:12px;margin:9px 0 0}
#plans .plans-back{
 display:inline-flex!important;align-items:center!important;gap:9px!important;
 margin:3px 0 17px!important;padding:7px 4px!important;
 border:0!important;background:transparent!important;color:#e5e5e9!important;
 font-size:15px!important;font-weight:500!important;
}
#plans .plans-back span{font-size:27px;line-height:17px;font-weight:300}
#plans .plans-assessments-empty{
 margin:10px 0;background:#24242a;border-radius:17px;
 padding:24px 18px;color:#a9a9b3;font-size:14px;text-align:center;
}



/* Three-way assessments navigation and expandable metric history. */
#plans .assessment-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;border-radius:999px;background:#212126;padding:4px;margin:4px 0 16px}
#plans .assessment-tabs button{background:transparent!important;color:#b8b8bf!important;border:0!important;border-radius:999px!important;font-size:13px!important;font-weight:450!important;padding:11px 4px!important;min-width:0!important}
#plans .assessment-tabs button[aria-pressed="true"]{background:#53545c!important;color:#fff!important}
#plans .assessment-trend{margin:8px 17px 12px;background:#1b1b20;border-radius:14px;padding:10px 8px 9px}
#plans .assessment-trend>p:first-child{margin:0 0 9px;font-size:13px;font-weight:550}
#plans .assessment-trend svg{width:100%;height:135px;display:block;overflow:visible}
#plans .assessment-chart-grid{fill:none;stroke:#3b3c43;stroke-width:1;stroke-dasharray:3 5}
#plans .assessment-chart-line{fill:none;stroke:#a2ddc0;stroke-width:2.3;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}
#plans .assessment-chart-point{stroke:#1b1b20;stroke-width:1.5;fill:#bbefd3;vector-effect:non-scaling-stroke}
#plans .assessment-chart-labels{display:flex;justify-content:space-between;color:#aaaab3;font-size:11px;padding:0 3px;margin-top:5px}
#plans .assessment-chart-range{font-size:11px;color:#a3a3af;margin:8px 3px 14px}
#plans .assessment-trend-note{font-size:12px;color:#afafb7}
#plans .assessment-history-points{border-top:1px solid #34343b;padding-top:9px}
#plans .assessment-history-points>div{display:flex;justify-content:space-between;gap:10px;color:#aeb0b8;font-size:12px;margin:7px 0}
#plans .assessment-history-points strong{color:#eeeef1;font-weight:500}
#plans .assessment-empty-state{background:#25252b;color:#b7b7c0;border-radius:15px;padding:25px 17px;font-size:14px;text-align:center}
#plans .assessment-formula{color:#92929d;font-size:12px;padding:0 7px}


/* Jogo: identical heading alignment in collapsed and expanded states. */
#overview .match-intra-card > .daily-meal-head{
 display:flex!important;align-items:center!important;
 width:100%!important;min-width:0!important;
}
#overview .match-intra-card > .daily-meal-head > strong{
 flex:1 1 auto!important;min-width:0!important;margin:0!important;
}
#overview .match-intra-card > .daily-meal-head > .meal-average{
 flex:0 0 auto!important;margin-left:auto!important;margin-right:13px!important;
 white-space:nowrap!important;
}
#overview .match-intra-card > .daily-meal-head::after{
 flex:0 0 auto!important;margin-left:0!important;
}
/* Weekly energy and macro charts use matching 7-column full-width grids. */
#overview #weekly-view .nutrition-weekly-charts{
 width:100%!important;max-width:none!important;min-width:0!important;
 box-sizing:border-box!important;padding-left:0!important;padding-right:0!important;
}
#overview #weekly-view .nutrition-weekly-charts .nutrition-chart-section,
#overview #weekly-view .nutrition-weekly-charts .nutrition-chart-bars,
#overview #weekly-view .nutrition-weekly-charts .macro-chart-header{
 width:100%!important;max-width:none!important;min-width:0!important;
 box-sizing:border-box!important;
}
#overview #weekly-view .nutrition-chart-bars{
 display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
 gap:0!important;padding:0!important;margin-left:0!important;margin-right:0!important;
}
#overview #weekly-view .nutrition-chart-column{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 min-width:0!important;width:100%!important;
}
#overview #weekly-view .nutrition-chart-track{
 width:clamp(16px,70%,44px)!important;max-width:none!important;
}
#overview #weekly-view .nutrition-chart-number,
#overview #weekly-view .nutrition-chart-column small{
 width:100%!important;text-align:center!important;
}
/* Assessment metric rows are denser without losing label/delta hierarchy. */
/* Match with intra-game content: closed unit 61px; expanded body stays flexible. */
#overview .match-intra-card:not([open]){
 min-height:61px!important;height:61px!important;padding:0!important;
 box-sizing:border-box!important;display:flex!important;align-items:stretch!important;
}
#overview .match-intra-card:not([open]) > summary.daily-meal-head{
 height:61px!important;min-height:61px!important;max-height:61px!important;
 margin:0!important;padding:0 17px!important;
 box-sizing:border-box!important;
}
/* The chart area was capped by the 43px right padding reserved for the
   kcal arrow. Expand charts into that unused space, without shifting top macros. */






/* Kcal arrow centered against the closed card summary (fixed on expansion). */

/* Align the Menus page's first row closer to the avatar, as on the daily tab. */
#player-panel #menus:not([hidden]){
 position:relative!important;top:-12px!important;
}


/* Nutritional weekly charts: subtle current-day emphasis and neutral mean. */
#overview #weekly-view .nutrition-chart-bars{position:relative!important}


#overview #weekly-view .nutrition-chart-average{
 position:absolute!important;left:0!important;right:0!important;
 bottom:calc(16px + var(--avg-offset))!important;
 height:0!important;border-top:1px dashed rgba(200,201,209,.55)!important;
 z-index:4!important;pointer-events:none!important;
}
#overview #weekly-view .nutrition-chart-average>span{
 position:absolute!important;right:0!important;bottom:3px!important;
 font-size:10px!important;line-height:1.15!important;font-weight:400!important;
 color:#b7b7c0!important;background:#1b1b20!important;
 padding:2px 4px!important;border-radius:4px!important;white-space:nowrap!important;
}

/* Weekly nutrition charts: keep the mean guide, without numeric labels;
   distinguish the current day only through fill opacity. */
#overview #weekly-view .nutrition-chart-average > span,
#overview #weekly-view .nutrition-chart-average::before,
#overview #weekly-view .nutrition-chart-average::after{
 display:none!important;
 content:none!important;
}
#overview #weekly-view .nutrition-chart-fill{
 opacity:.78!important;
 border:0!important;
 outline:0!important;
 box-shadow:none!important;
 filter:none!important;
}
#overview #weekly-view .nutrition-chart-today .nutrition-chart-fill{
 opacity:.94!important;
 border:0!important;
 outline:0!important;
 box-shadow:none!important;
 filter:none!important;
}
#overview #weekly-view .nutrition-chart-today .nutrition-chart-track{
 border:0!important;
 outline:0!important;
 box-shadow:none!important;
}

/* Chart values use the matching nutrient hue; dates remain neutral.
   A lower baseline opacity makes today's fill visibly distinct without outlines. */
#overview #weekly-view .nutrition-chart-column .nutrition-chart-number{
 color:inherit;
}
#overview #weekly-view .nutrition-chart-column > small{
 color:#bbb!important;
}
#overview #weekly-view .nutrition-chart-column .nutrition-chart-fill{
 opacity:.22!important;
 border:0!important;outline:0!important;box-shadow:none!important;
}
#overview #weekly-view .nutrition-chart-column.nutrition-chart-today .nutrition-chart-fill{
 opacity:1!important;
 border:0!important;outline:0!important;box-shadow:none!important;
}

/* Fast menu image previews and accessible full-screen photo viewer. */
#menus .dish-img{cursor:zoom-in;transition:opacity .18s ease;}
#menus .dish-img{opacity:1!important;visibility:visible!important;}
#menus .dish-img:focus-visible{outline:2px solid #f4f4f6;outline-offset:3px;}
.dish-photo-overlay{position:fixed;inset:0;z-index:10000;background:rgba(7,7,10,.95);display:flex;align-items:center;justify-content:center;padding:64px 18px 34px;box-sizing:border-box;}
.dish-photo-overlay img{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;}
.dish-photo-close{position:absolute;top:max(18px,env(safe-area-inset-top));right:18px;min-width:44px;min-height:44px;border:0;border-radius:50%;background:#303035;color:#fff;font-size:30px;line-height:1;cursor:pointer;}

/* Weekly player grid refinement: scoped to weekly view only. */
#weekly-view .weekly-calendar-grid{
 column-gap:4px!important;row-gap:6px!important;
 grid-template-columns:repeat(7,minmax(0,1fr))!important;
 align-items:stretch!important;
}
#weekly-view .weekly-meal,
#weekly-view .weekly-match-with-intra,
#weekly-view .weekly-event-card,
#weekly-view .weekly-peri-card{
 box-sizing:border-box!important;border-radius:9px!important;
 min-height:44px!important;padding:5px 2px!important;
 box-shadow:none!important;
}
#weekly-view .weekly-meal{
 display:flex!important;flex-direction:column!important;
 justify-content:center!important;align-items:center!important;
 gap:2px!important;text-align:center!important;
}
#weekly-view .weekly-meal.is-active{box-shadow:none!important;}
#weekly-view .weekly-meal-name{line-height:1.15!important;font-weight:500!important;}
#weekly-view .weekly-meal-kcal{line-height:1.12!important;font-weight:500!important;}
#weekly-view .weekly-empty{min-height:44px!important;height:100%!important;box-sizing:border-box!important;}
#weekly-view .weekly-event-slot{min-height:44px!important;box-sizing:border-box!important;gap:5px!important;}
#weekly-view .weekly-event-slot:empty{min-height:44px!important;height:auto!important;}
#weekly-view .weekly-event-card:not(.weekly-match-with-intra){background:#35363b!important;}
#weekly-view .weekly-event-card.weekly-match-with-intra{background:#414248!important;}
#weekly-view .weekly-day-total{
 min-width:0!important;min-height:44px!important;padding:6px 1px!important;
 border-radius:9px!important;gap:3px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;
}
#weekly-view .weekly-total-kcal{font-size:clamp(10px,2.1vw,13px)!important;line-height:1.12!important;}
#weekly-view .weekly-total-macros{
 width:100%!important;display:flex!important;justify-content:space-evenly!important;
 align-items:center!important;gap:1px!important;
 font-size:clamp(7px,1.55vw,10px)!important;line-height:1.15!important;
 font-variant-numeric:tabular-nums!important;letter-spacing:-.2px!important;
}
#weekly-view .weekly-total-macros span{min-width:0!important;white-space:nowrap!important;}
#weekly-view .weekly-calendar-grid>.weekly-selected-column{
 position:relative!important;
}
#weekly-view .weekly-calendar-grid>.weekly-selected-column::after{
 content:"";position:absolute;inset:0;z-index:0;
 background:rgba(255,255,255,.035);border-radius:9px;
 pointer-events:none;
}
#weekly-view .weekly-day-header.weekly-selected-column::after{background:rgba(255,255,255,.055);}
#weekly-view .weekly-day-header.today .number{position:relative;z-index:1;}
@media(max-width:420px){
 #weekly-view .weekly-calendar-grid{column-gap:3px!important;row-gap:5px!important;}
 #weekly-view .weekly-meal,#weekly-view .weekly-event-card,#weekly-view .weekly-peri-card{padding:5px 1px!important;}
 #weekly-view .weekly-total-macros{font-size:clamp(6.5px,1.7vw,8px)!important;letter-spacing:-.35px!important;}
}

/* Selected column is a backdrop, not an overlay on the existing meal colors. */
#weekly-view .weekly-calendar-grid.has-weekly-selection{position:relative!important;isolation:isolate!important;}
#weekly-view .weekly-calendar-grid.has-weekly-selection::before{
 content:"";position:absolute;z-index:-1;pointer-events:none;
 top:0;bottom:0;
 left:var(--selected-column-left);
 width:calc((100% - 24px) / 7);
 background:rgba(255,255,255,.035);border-radius:10px;
}
#weekly-view .weekly-calendar-grid>.weekly-selected-column::after{display:none!important;}
@media(max-width:420px){
 #weekly-view .weekly-calendar-grid.has-weekly-selection::before{
 left:var(--selected-column-left-mobile);
 width:calc((100% - 18px) / 7);
 }
}

/* Align intra-game timing and dividers with meal-option content. */
#overview .match-intra-card>.peri-timed-item{
 margin-left:18px!important;margin-right:18px!important;
 width:auto!important;box-sizing:border-box;
 padding:16px 0;
 border-bottom:1px solid rgba(200,200,205,.15);
 min-width:0;
}
#overview .match-intra-card>.peri-timed-item:last-child{border-bottom:0;padding-bottom:22px;}
#overview .match-intra-card>.peri-timed-item>div{overflow-wrap:anywhere;}

/* Prevent generic event-card flex layout from shrinking game dividers. */
#overview .daily-event-card.match-intra-card{display:block!important;}
#overview .daily-event-card.match-intra-card>.peri-timed-item{display:block!important;width:calc(100% - 36px)!important;max-width:none!important;flex:none!important;}

/* Optional note cards appear after all standard option rows. */
.meal-collapsible-note{margin:12px 0 4px;border:1px solid rgba(255,255,255,.19);border-radius:12px;background:rgba(255,255,255,.055);overflow:hidden;color:inherit}
.meal-collapsible-note>summary{padding:13px 15px;cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:600}
.meal-collapsible-note>summary::-webkit-details-marker{display:none}
.meal-collapsible-note>summary:after{content:"⌄";font-size:20px;line-height:1;opacity:.75}
.meal-collapsible-note[open]>summary:after{transform:rotate(180deg)}
.meal-collapsible-note>.meal-note-body{padding:0 15px 14px;white-space:pre-wrap;line-height:1.5;overflow-wrap:anywhere}

/* Collapsible notes follow the same inset and heading rhythm as menu dish cards. */
#overview .single-meal-option>.meal-collapsible-note,
#overview .daily-meal>.meal-collapsible-note,
#overview .meal .meal-collapsible-note{
 margin:16px 0 4px!important;
 width:100%;box-sizing:border-box;
}
#overview .meal-collapsible-note>summary{
 padding:15px 16px!important;font-size:15px!important;font-weight:500!important;
 min-height:52px;gap:12px;
}
#overview .meal-collapsible-note>summary:after{
 content:"";display:block;flex:none;width:8px;height:8px;
 border-right:2px solid currentColor;border-bottom:2px solid currentColor;
 transform:rotate(45deg);opacity:.7;margin-right:4px;
}
#overview .meal-collapsible-note[open]>summary:after{transform:rotate(225deg);}
#overview .meal-collapsible-note>.meal-note-body{padding:0 16px 16px;font-size:14px;}


/* Keep collapsible note chevron at the far-right edge of its own title row. */
.meal-collapsible-note>summary{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;box-sizing:border-box!important;text-align:left!important}
.meal-collapsible-note>summary::after{position:static!important;float:none!important;margin-left:auto!important;margin-right:3px!important;align-self:center!important;flex-shrink:0!important}


/* Compact collapsible note heading: same solid chevron language as meal cards. */
.meal-collapsible-note>summary,
#overview .meal-collapsible-note>summary{
 min-height:42px!important;padding:9px 15px!important;font-size:14px!important;
 display:flex!important;align-items:center!important;
}
.meal-collapsible-note>summary::after,
#overview .meal-collapsible-note>summary::after{
 content:""!important;display:block!important;width:10px!important;height:7px!important;
 background:currentColor!important;border:0!important;border-radius:0!important;
 clip-path:polygon(0 0,100% 0,50% 100%)!important;
 transform:none!important;opacity:.75!important;
 margin-left:auto!important;margin-right:2px!important;flex:none!important;
}
.meal-collapsible-note[open]>summary::after,
#overview .meal-collapsible-note[open]>summary::after{transform:rotate(180deg)!important}


/* Slimmer optional note, preserving the existing solid chevron. */
.meal-collapsible-note>summary,
#overview .meal-collapsible-note>summary{min-height:35px!important;padding:6px 13px!important;font-size:13px!important}
.meal-collapsible-note{border-radius:10px}
#overview .meal-collapsible-note>.meal-note-body{padding:5px 13px 12px}


/* Daily note: slim, subtle secondary row. Weekly note: match the dish/category row. */
#overview .meal-collapsible-note>summary{min-height:30px!important;padding:4px 12px!important;font-size:13px!important}
#weekly-view .meal-collapsible-note{background:rgba(255,255,255,.055)!important;border:0!important;border-radius:10px!important;margin:10px 0 3px!important;box-shadow:none!important}
#weekly-view .meal-collapsible-note>summary{background:transparent!important;min-height:36px!important;padding:8px 12px!important;font-size:14px!important;font-weight:500!important}
#weekly-view .meal-collapsible-note>.meal-note-body{padding:4px 12px 12px!important}

/* Preserve existing player design; only further reduce collapsed note height. */
#overview .meal-collapsible-note>summary{min-height:27px!important;padding:3px 11px!important}


/* Assessment trend: compact, tactile, and readable on mobile. */
#plans .assessment-trend>svg{display:block;width:100%;height:auto;max-height:270px;overflow:visible;touch-action:pan-y;user-select:none}
#plans .assessment-chart-grid{fill:none;stroke:#3b3c43;stroke-width:.7;stroke-dasharray:2 4}
#plans .assessment-chart-tick{fill:#9496a1;font-size:10px;font-weight:500}
#plans .assessment-chart-value{fill:#d7f0e2;font-size:10.5px;font-weight:600;paint-order:stroke;stroke:#202025;stroke-width:2.5px;stroke-linejoin:round}
#plans .assessment-chart-value.is-selected{fill:#fff;font-weight:700}
#plans .assessment-chart-mean{stroke:#b6b8bf;stroke-width:1.3;stroke-dasharray:5 4;opacity:.75;vector-effect:non-scaling-stroke}
#plans .assessment-chart-guide{stroke:#e7ecea;stroke-width:1;stroke-dasharray:3 3;opacity:.65;vector-effect:non-scaling-stroke}
#plans .assessment-chart-selected{fill:#d5f6e2;stroke:#a2ddc0;stroke-width:2;vector-effect:non-scaling-stroke}
#plans .assessment-chart-focus{font-size:12px;color:#dfeee6;min-height:18px;text-align:center;margin:5px 0}
#plans .assessment-chart-average{font-size:11px;color:#aeb0b8;text-align:right;margin:4px 3px 14px}
#plans .assessment-history-card{background:#25252b;border-radius:10px;padding:10px 13px;margin-top:8px}
#plans .assessment-history-card>summary{cursor:pointer;color:#dadbe0;font-size:12px;font-weight:500;list-style:none;display:flex;justify-content:space-between;align-items:center}
#plans .assessment-history-card>summary::-webkit-details-marker{display:none}
#plans .assessment-history-card>summary:after{content:"⌄";font-size:18px;line-height:1;color:#aeb0b8;transition:transform .18s}
#plans .assessment-history-card[open]>summary:after{transform:rotate(180deg)}
#plans .assessment-history-card .assessment-history-points{margin-top:10px;max-height:360px;overflow-y:auto}
#plans .assessment-chart-point{fill:rgba(162,221,192,.65);stroke:#a2ddc0;stroke-width:1.3;vector-effect:non-scaling-stroke}

/* Markers sit over the trend line; only the touched point gains emphasis. */
#plans .assessment-chart-point{fill:#a2ddc0;fill-opacity:.7;stroke:#a2ddc0;stroke-width:1;vector-effect:non-scaling-stroke;transition:fill-opacity .12s,stroke-width .12s}
#plans .assessment-chart-point.is-selected{fill:#bff6d7;fill-opacity:1;stroke:#e5ffef;stroke-width:2.5;filter:drop-shadow(0 0 2px rgba(162,221,192,.5))}

/* Assessment chart markers: keep points visually above the line. Graph surface spacing is defined once alongside the base assessment styles. */
#plans .assessment-trend>svg{width:100%;max-height:none;display:block}
#plans .assessment-chart-point{fill:#1b1b20;fill-opacity:1;stroke:#a2ddc0;stroke-width:2;vector-effect:non-scaling-stroke;filter:none}
#plans .assessment-chart-point.is-selected{fill:#fff;fill-opacity:1;stroke:#fff;stroke-width:1.5;filter:none}
#plans .assessment-chart-focus:empty{min-height:0;margin:0}

/* Assessment: clearer value hierarchy and identical centered expand chevrons. */
#plans .assessment-history-card>summary::after{
 content:"";
 display:block;
 box-sizing:border-box;
 width:9px;
 height:9px;
 flex:0 0 9px;
 border:solid #bfc0c9;
 border-width:0 2px 2px 0;
 border-radius:1px;
 transform:rotate(45deg);
 transition:transform .18s ease;
 align-self:center;
 margin:0 4px 5px 5px;
 font-size:0;
 line-height:0;
}
#plans .assessment-history-card[open]>summary::after{
 transform:rotate(225deg);
 margin-top:5px;
 margin-bottom:0;
}
#plans .assessment-history-card>summary{min-height:23px;align-items:center}



/* Unified outline-only disclosure chevrons (the same language as Assessments). */
#overview details > summary .option::after,
#plans details > summary .option::after,
#weekly-view details > summary .option::after,
#overview details > summary.daily-meal-head::after,
#plans details > summary.daily-meal-head::after,
#weekly-view details > summary.daily-meal-head::after,
#overview .daily-supplements > summary::after,
#weekly-view .weekly-supplement-summary > summary::after,
#plans #plan-detail .plan-meal details.plan-option-card > summary .option::after,
.meal-collapsible-note > summary::after,
#overview .meal-collapsible-note > summary::after{
 content:""!important;display:block!important;
 box-sizing:border-box!important;
 width:var(--day-chevron-size,9px)!important;height:var(--day-chevron-size,9px)!important;
 border:solid currentColor!important;border-width:0 2px 2px 0!important;
 background:none!important;clip-path:none!important;border-radius:0!important;
 color:#c9c9cf!important;font-size:0!important;
 transform:rotate(45deg)!important;
 transition:transform .16s ease!important;
 flex-shrink:0!important;
}
#overview details[open] > summary .option::after,
#plans details[open] > summary .option::after,
#weekly-view details[open] > summary .option::after,
#overview details[open] > summary.daily-meal-head::after,
#plans details[open] > summary.daily-meal-head::after,
#weekly-view details[open] > summary.daily-meal-head::after,
#overview .daily-supplements[open] > summary::after,
#weekly-view .weekly-supplement-summary[open] > summary::after,
#plans #plan-detail .plan-meal details.plan-option-card[open] > summary .option::after,
.meal-collapsible-note[open] > summary::after,
#overview .meal-collapsible-note[open] > summary::after{
 transform:rotate(225deg)!important;
}
#plans #plan-detail .plan-meal details.plan-option-card > summary .option::after{
 transform:translateY(-50%) rotate(45deg)!important;
}
#plans #plan-detail .plan-meal details.plan-option-card[open] > summary .option::after{
 transform:translateY(-50%) rotate(225deg)!important;
}
/* Menus: long date left, MD only right, both on a single balanced row. */
#menus .menu-day-heading{align-items:center!important;gap:10px!important}
#menus .menu-day-heading h3{font-size:clamp(13px,3.4vw,17px)!important;font-weight:600!important;flex:1 1 auto;min-width:0;line-height:1.35!important}
#menus .menu-day-subtitle{font-size:12px!important;flex:0 0 auto!important;align-self:center!important;margin-top:0!important;text-align:right!important}


/* Menus: matchday has the date's typographic hierarchy; only its colour differs. */
#menus .menu-day-heading .menu-day-subtitle{
 font-size:clamp(13px,3.4vw,17px)!important;
 font-weight:600!important;
 line-height:1.35!important;
 color:#a7a7b0!important;
}
/* White meal labels; typography alone differentiates heading from prescription. */
#menus .day-menu .menu-entry-heading strong{
 color:#f5f5f6!important;
 font-weight:400!important;
}
#menus .day-menu .menu-entry-body .value{
 color:#f5f5f6!important;
 font-weight:500!important;
}


/* Menu header: remove legacy 7px date offset so MD and date share a centreline. */
#menus .menu-day-heading{align-items:center!important}
#menus .menu-day-heading h3{padding-top:0!important;padding-bottom:0!important;margin:0!important;align-self:center!important}
#menus .menu-day-heading .menu-day-subtitle{margin:0!important;padding:0!important;align-self:center!important;line-height:1.35!important}
/* Bring the meal prescription closer to its Almoço/Jantar label. */
#menus .day-menu .menu-entry-heading{margin:0!important;padding:0!important}
#menus .day-menu .menu-entry-heading strong{line-height:1.25!important}
#menus .day-menu .menu-entry-body{margin-top:2px!important;padding-top:0!important}
#menus .day-menu .menu-entry-body .value{line-height:1.3!important}


/* Override inherited .row gap: it separated Almoço/Jantar from the description. */
#menus .day-menu .row.menu-entry{row-gap:2px!important;column-gap:0!important;gap:2px!important}


/* Inner daily meal options: override the legacy solid triangle with an outline chevron. */
#overview .daily-meal > details.player-meal-option-subcard > summary .option::after,
#overview .peri-meal > details.player-meal-option-subcard > summary .option::after{
 content:""!important;display:block!important;box-sizing:border-box!important;
 position:absolute!important;top:50%!important;right:1px!important;left:auto!important;
 width:9px!important;height:9px!important;
 border:solid #c9c9cf!important;border-width:0 2px 2px 0!important;
 background:none!important;clip-path:none!important;border-radius:0!important;
 transform:translateY(-50%) rotate(45deg)!important;
 transition:transform .16s ease!important;
}
#overview .daily-meal > details.player-meal-option-subcard[open] > summary .option::after,
#overview .peri-meal > details.player-meal-option-subcard[open] > summary .option::after{
 transform:translateY(-50%) rotate(225deg)!important;
}


/* Docs landing cards match the compact 65px daily-view cards. */
/* The kcal expand control uses the same unfilled chevron as other daily cards.
   Override the legacy filled-triangle rules with more specific selectors. */




#menus .day-menu{transition:background-color .2s ease}
#menus .day-menu.is-selected{background:rgba(255,255,255,.11)!important}


/* Final outline chevrons for Plans and weekly meal options, overriding legacy triangles. */
#plans #plan-detail .plan-overview-meal > summary.daily-meal-head::after,
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard > summary .option::after,
#plans #plan-detail .plan-meal details.plan-option-card > summary .option::after,
#weekly-view details.weekly-option-card > summary .option::after{
 content:""!important;display:block!important;box-sizing:border-box!important;
 width:9px!important;height:9px!important;
 border:solid #c9c9cf!important;border-width:0 2px 2px 0!important;
 background:none!important;clip-path:none!important;border-radius:0!important;
 font-size:0!important;line-height:0!important;
 transform:translateY(-50%) rotate(45deg)!important;
 transition:transform .16s ease!important;
}
#plans #plan-detail .plan-overview-meal > summary.daily-meal-head::after{
 transform:rotate(45deg)!important;
}
#plans #plan-detail .plan-overview-meal[open] > summary.daily-meal-head::after{
 transform:rotate(225deg)!important;
}
#plans #plan-detail .plan-overview-meal > details.player-meal-option-subcard[open] > summary .option::after,
#plans #plan-detail .plan-meal details.plan-option-card[open] > summary .option::after,
#weekly-view details.weekly-option-card[open] > summary .option::after{
 transform:translateY(-50%) rotate(225deg)!important;
}
/* Show some context above the selected menu card when jumping from the calendar. */
#menus #menu-days .day-menu{scroll-margin-top:128px}
#menus #menu-days .day-menu.is-selected{background:rgba(255,255,255,.15)!important}


/* Plans library: Fitness-inspired compact filter navigation and clean headings. */
#plans #plans-prescriptions .plans-page-heading{
 display:flex;flex-direction:column;align-items:flex-start;gap:26px;
 margin:4px 0 22px;
}
#plans #plans-prescriptions .plans-page-heading h1{
 margin:0 0 0 4px;font-size:clamp(27px,7vw,34px);
 font-weight:650;line-height:1.15;letter-spacing:-.025em;color:#f5f5f7;
}
#plans #plans-prescriptions button.plans-back-round{
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 box-sizing:border-box!important;border-radius:50%!important;
 border:1px solid #414148!important;background:#242428!important;
 display:grid!important;place-items:center!important;padding:0!important;margin:0 0 0 3px!important;
 box-shadow:none!important;line-height:1!important;
}
#plans #plans-prescriptions button.plans-back-round span{
 font-size:31px!important;font-weight:350!important;line-height:1!important;
 position:relative;top:-2px;left:-1px;
}
/* Plans > Todos: category-card family, matching the approved Recipes category language.
   This is not a universal meal card. Preserve independently expanding coloured plans. */
#plans #plan-detail .plans-all-group{
 display:block;width:100%;min-width:0;box-sizing:border-box;
 border:0!important;background:rgba(255,255,255,.055)!important;
 border-radius:18px!important;margin:0 0 9px!important;
 padding:0!important;overflow:hidden!important;box-shadow:none!important;
}
#plans #plan-detail .plans-all-group > summary{
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 box-sizing:border-box;width:100%;min-height:86px;padding:11px 17px;
 list-style:none;cursor:pointer;background:transparent;
 font-family:inherit;font-size:16px;font-weight:500;line-height:1.3;color:#f3f3f5;
}
#plans #plan-detail .plans-all-group > summary::-webkit-details-marker{display:none}
#plans #plan-detail .plans-all-group > summary::marker{content:""}
#plans #plan-detail .plans-all-group > summary::after{
 content:"";display:block;box-sizing:border-box;
 width:9px;height:9px;flex:0 0 9px;
 border:solid #bfc0c9;border-width:0 2px 2px 0;border-radius:1px;
 background:none;transform:rotate(45deg);transition:transform .18s ease;
 margin:0 4px 4px 4px;
}
#plans #plan-detail .plans-all-group[open] > summary::after{
 transform:rotate(225deg);margin-top:4px;margin-bottom:0;
}
#plans #plan-detail .plans-all-body{padding:0 17px 8px}
#plans #plan-detail .plans-all-body .meal{margin:9px 0!important}


/* Small matching circular back controls in Plans and Assessments. */
#plans #plans-prescriptions button.plans-back-round,
#plans #plans-assessments button.plans-back-round{
 width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
 padding:0!important;margin:0 0 0 3px!important;box-sizing:border-box!important;
 border-radius:50%!important;border:1px solid #414148!important;
 background:#242428!important;box-shadow:none!important;
 display:grid!important;place-items:center!important;
 font-size:0!important;line-height:1!important;
}
#plans #plans-prescriptions button.plans-back-round span,
#plans #plans-assessments button.plans-back-round span{
 font-size:25px!important;font-weight:350!important;line-height:1!important;
 position:relative;top:-2px;left:-1px;
}
/* Keep Assessments tabs close to its back control. */
#plans #plans-assessments > button.plans-back-round{margin-top:3px!important;margin-bottom:11px!important}
#plans #plans-assessments .assessment-tabs{margin-top:0!important}


/* Universal supplementation card: 61px closed, 55px header when open.
   Preserve supplement entry content and its own neutral color. */
#overview .daily-supplements > summary{
 display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
 height:61px!important;min-height:61px!important;box-sizing:border-box!important;
 padding:12px 17px!important;column-gap:8px!important;
}
#overview .daily-supplements[open] > summary{
 height:55px!important;min-height:55px!important;
 padding:12px 17px 6px!important;
}
#overview .daily-supplements{
 border-radius:13px!important;
 background:#303135!important;border:0!important;
}
#overview .daily-supplements[open]{border-radius:18px!important;}
#overview .daily-supplements > summary{
 font-size:16px!important;font-weight:500!important;justify-content:flex-start!important;
}
#overview .daily-supplements > summary > strong{
 font-size:16px!important;font-weight:var(--mile-type-card-title)!important;line-height:1.3!important;
 flex:1 1 auto!important;min-width:0!important;
}
#overview .daily-supplements > summary::after{
 flex:0 0 auto!important;margin-left:auto!important;
}


/* Precision alignment: event icon box and peri-meal box share the meal card's left inset.
   The peri card previously accumulated the generic .meal padding and its summary padding. */
#overview #day-details .peri-meal.meal.daily-meal{
 padding:0!important;
 box-sizing:border-box!important;
}
/* Peri-session body: match the shared 17px inset; restore the approved
   space below the last food line, including one- and multi-option cards. */
#overview #day-details .peri-meal[open] > .foods{
 margin:0 17px!important;
 padding:5px 0!important;
 line-height:1.45!important;
 border:0!important;
}
#overview #day-details .peri-meal[open] > .foods:last-child{
 padding-bottom:18px!important;
}
#overview #day-details .peri-meal[open] > :is(.single-meal-option,details,.option-expanded-macros):last-child{
 margin-bottom:18px!important;
}
/* Event-scoped consumption: the editor is a dark, clearly legible subcard.
   No green background, artificial border or separate peri editor component. */
#overview #day-details .peri-meal{
 --consumption-editor-surface:#0c0c10;
 --consumption-select-surface:#29292d;
}
/* Reuse the established meal-consumption controls; no separate peri button style.
   The additional bottom margin belongs to the content, not to the header. */
#overview #day-details :is(.peri-meal,.match-intra-card)[open] > .consumption-editor{
 margin:16px 17px 18px!important;
}
#overview #day-details :is(.peri-meal,.match-intra-card)[open] > details > .consumption-editor{
 margin:16px 0 18px!important;
}
#overview #day-details :is(.peri-meal,.match-intra-card)[open] > .consumption-quick-actions{
 margin:12px 17px 18px!important;
}
#overview #day-details :is(.peri-meal,.match-intra-card)[open] > details > .consumption-quick-actions{
 margin:12px 0 18px!important;
}
#overview #day-details .peri-meal[open] > .consumption-quick-feedback:not(:empty){
 margin:5px 17px 18px!important;
}

#overview #day-details .daily-event-card{
 padding-left:var(--day-header-inset)!important;
 box-sizing:border-box!important;
}


/* Match card has both daily-event-card and match-intra-card classes.
   Prevent event padding from stacking with the 16px summary inset. */
#overview #day-details .daily-event-card.match-intra-card{
 padding:0!important;
 --consumption-status-bg:rgba(154,224,191,.45);
 --consumption-status-ink:#176044;
 --consumption-secondary-bg:rgba(28,29,35,.075);
}
#overview #day-details .daily-event-card.match-intra-card > summary.daily-meal-head{
 padding-left:16px!important;
}

/* Post-match daily card: one closed/open geometry, based on the approved meal headers.
   17px left inset + 37px icon + 10px icon margin + 8px gap = 72px title column.
   Keep pencil-only access and existing questionnaire logic/form fields unchanged. */
#overview #day-details .post-match-inline{
 display:flex;align-items:center;flex-wrap:wrap;
 box-sizing:border-box;width:100%;min-height:61px;
 overflow:hidden;background:#303135!important;color:#f4f4f6;
 border:0;border-radius:13px;box-shadow:none;
}
#overview #day-details .post-match-inline:has(.post-match-inline-form:not([hidden])){
 border-radius:18px;
}
#overview #day-details .post-match-inline-trigger{
 appearance:none!important;display:flex!important;align-items:center!important;
 flex:1 1 0!important;min-width:0!important;width:auto!important;
 height:61px;min-height:61px!important;margin:0!important;
 padding-top:12px!important;padding-bottom:12px!important;padding-right:0!important;
 border:0!important;border-radius:0;background:transparent!important;
 color:inherit!important;box-shadow:none!important;
 text-align:left!important;font:500 16px/1.25 Inter Tight,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif!important;
 cursor:default;
}
#overview #day-details .post-match-inline:has(.post-match-inline-form:not([hidden])) .post-match-inline-trigger{
 height:55px;min-height:55px!important;padding-top:12px!important;padding-bottom:6px!important;
}
#overview #day-details .post-match-inline-trigger:disabled{opacity:1!important;color:inherit!important}
#overview #day-details .post-match-inline-title{
 display:block;flex:1 1 auto;min-width:0;margin:0;
 
 white-space:normal;
}
#overview #day-details .post-match-inline-status{
 flex:0 0 auto;margin-left:auto;color:#dfc477;
 font-size:12px;font-weight:400;line-height:1.3;white-space:nowrap;
}
#overview #day-details .post-match-inline.answered .post-match-inline-status{color:#8fd6b2}
#overview #day-details .post-match-edit{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 box-sizing:border-box!important;flex:0 0 44px!important;
 width:44px!important;height:44px!important;
 margin:0 calc(10px + var(--post-match-edit-inset)) 0 3px!important;padding:0!important;
 border:0!important;border-radius:50%;box-shadow:none!important;
 background:transparent!important;color:inherit!important;cursor:pointer;
}
#overview #day-details .post-match-edit svg{display:block;width:21px;height:21px}
#overview #day-details .post-match-edit:focus-visible{outline:2px solid currentColor;outline-offset:2px}
/* Expanded content retains its own question and control patterns. */
#overview #day-details .post-match-inline-form{
 width:100%;flex:0 0 100%;box-sizing:border-box;
}

/* Post-match: discreet chronological card, subordinate to meal cards */






.post-match-inline-form{padding:0 16px 16px;color:#d3d8d4}
.post-match-inline-form[hidden]{display:none}
.post-match-inline-form p{font-size:13px;color:#b9c3bd;margin:0 0 12px}
.post-match-inline-form label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.post-match-inline-form select{max-width:150px;padding:9px;border-radius:8px;background:#292c2c;color:#fff;border:1px solid #454947}
.post-match-inline-form button{border:0;border-radius:9px;padding:10px 14px;background:#31483e;color:#fff;font:inherit}







.post-match-questionnaire{display:grid;gap:15px}
.post-match-progress{font-size:15px;font-weight:600}
.post-match-progress-bars{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:10px}
.post-match-progress-bars span{height:4px;border-radius:5px;background:#36383a}
.post-match-progress-bars span.active{background:#8badd9}
.post-match-questions{display:grid;gap:20px}
.post-match-question{display:grid;gap:10px;position:relative}
.post-match-question>label{font-size:14px;font-weight:500}
.post-match-question>strong{position:absolute;right:0;top:0}
.post-match-options{display:grid;gap:12px}
.post-match-options label{display:flex;align-items:center;gap:10px;font-size:14px}
.post-match-options input{accent-color:#e3e6e8;width:17px;height:17px}
.post-match-question textarea{width:100%;box-sizing:border-box;border-radius:8px;background:#252927;border:1px solid #4a4d4b;color:#fff;padding:12px;font:inherit}
.post-match-scale input{width:100%;accent-color:#cecece}
.post-match-scale-ends{display:flex;justify-content:space-between;font-size:12px;color:#b8b8b8}
.post-match-navigation{display:flex;justify-content:space-between;align-items:center;gap:14px}
.post-match-inline-form .post-match-navigation button:last-child{margin-left:auto;background:#e8eaec;color:#17191b}







.post-match-questionnaire{gap:12px}
.post-match-questions{gap:9px}
.post-match-question{background:rgba(0,0,0,.10);border-radius:9px;padding:12px;gap:9px}
.post-match-question>label{font-size:14px;line-height:1.35;font-weight:500;margin:0}
.post-match-question>strong{top:12px;right:12px}
.post-match-options{gap:3px;display:flex;flex-direction:column;align-items:stretch}
.post-match-options label,.post-match-inline-form .post-match-options label{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:11px;margin:0;min-height:32px;font-size:14px;text-align:left}
.post-match-options input{flex:0 0 auto;width:18px;height:18px;margin:0}
.post-match-question textarea{margin:0;min-height:76px}
.post-match-scale{margin-top:12px}
.post-match-navigation{margin-top:8px}
.post-match-inline-form .post-match-navigation button{min-width:42px;min-height:36px;border-radius:22px;font-size:24px;line-height:1;padding:4px 12px}
.post-match-inline-form .post-match-navigation button:first-child{background:#313536;color:#bfc5c4}
.post-match-inline-form .post-match-navigation button:last-child{background:#e9e9ec;color:#222}
.post-match-success{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:8px 0;border-radius:9px;background:#17382b;color:#79dfb1;font-size:14px}
.post-match-success button{margin-left:auto;border:0;border-radius:7px;background:#28493c;color:#dcefe5;padding:6px 9px}









.post-match-inline-form{width:100%;flex-basis:100%;box-sizing:border-box}


.post-match-inline-confirm{font-size:12px;color:#55d4a0;margin-left:auto}
.post-match-inline-form .post-match-options input[type="radio"],.post-match-inline-form .post-match-options input[type="checkbox"]{width:15px;height:15px;flex:0 0 15px}
.post-match-inline-form .post-match-options label{min-height:27px;gap:9px}
.post-match-inline-form select{padding:6px 8px;max-width:145px;font-size:14px}
.post-match-inline-form .post-match-question textarea{font-family:inherit}

.post-match-inline-confirm-close{display:inline-grid;place-items:center;width:22px;height:22px;margin-left:9px;color:#dce7e1;font-size:19px;cursor:pointer}









.post-match-inline-form{background:#25262b;color:#e4e5e9}
.post-match-questionnaire,.post-match-question,.post-match-questions,.post-match-progress{background:transparent!important;color:inherit}
.post-match-question{background:#202126!important;border-radius:9px}
.post-match-inline-form .post-match-options input[type=radio],.post-match-inline-form .post-match-options input[type=checkbox]{
 appearance:none;-webkit-appearance:none;box-sizing:border-box;width:15px;height:15px;flex:0 0 15px;
 margin:0;border:1.5px solid #92969f;border-radius:50%;background:transparent;position:relative;
}
.post-match-inline-form .post-match-options input[type=checkbox]{border-radius:4px}
.post-match-inline-form .post-match-options input[type=radio]:checked{border-color:#e6e8ed}
.post-match-inline-form .post-match-options input[type=radio]:checked:after{
 content:"";position:absolute;inset:3px;border-radius:50%;background:#e6e8ed
}
.post-match-inline-form .post-match-options input[type=checkbox]:checked{border-color:#e6e8ed;background:#e6e8ed}
.post-match-inline-form .post-match-options input[type=checkbox]:checked:after{
 content:"";position:absolute;left:4px;top:0px;width:4px;height:8px;border:solid #242529;border-width:0 1.5px 1.5px 0;transform:rotate(45deg)
}
.post-match-inline-form .post-match-options label{gap:10px;min-height:30px}













.post-match-inline-form{background:#25262b!important}
.post-match-inline-form .post-match-question{background:#202126!important}
.post-match-inline-form select,
.post-match-inline-form .post-match-question select,
.post-match-inline-form textarea,
.post-match-inline-form .post-match-question textarea{
 background:#202126!important;color:#eee!important;border:1px solid #45474d!important;
 box-shadow:none!important;-webkit-appearance:none;appearance:none;
}
.post-match-inline-form select{appearance:auto;-webkit-appearance:menulist}
.post-match-inline-form .post-match-options input[type="radio"],
.post-match-inline-form .post-match-options input[type="checkbox"]{
 display:inline-block!important;box-sizing:border-box!important;
 -webkit-appearance:none!important;appearance:none!important;
 width:10px!important;height:10px!important;min-width:10px!important;min-height:10px!important;
 max-width:10px!important;max-height:10px!important;flex:0 0 10px!important;
 padding:0!important;margin:0!important;vertical-align:middle!important;
 border:1px solid #a5a7ad!important;background:transparent!important;box-shadow:none!important;
}
.post-match-inline-form .post-match-options input[type="radio"]{border-radius:50%!important}
.post-match-inline-form .post-match-options input[type="checkbox"]{border-radius:2px!important}
.post-match-inline-form .post-match-options input[type="radio"]:checked{border-color:#f0f1f3!important;background:#f0f1f3!important}
.post-match-inline-form .post-match-options input[type="radio"]:checked:after{
 content:""!important;position:absolute!important;inset:2px!important;
 border-radius:50%!important;background:#292a30!important;
}
.post-match-inline-form .post-match-options input[type="checkbox"]:checked{
 background:#f0f1f3!important;border-color:#f0f1f3!important;
}
.post-match-inline-form .post-match-options input[type="checkbox"]:checked:after{
 content:""!important;position:absolute!important;left:2px!important;top:0!important;
 width:3px!important;height:5px!important;border:solid #292a30!important;
 border-width:0 1px 1px 0!important;transform:rotate(45deg)!important;
}
.post-match-inline-form .post-match-options label{min-height:29px!important;gap:10px!important}





.post-match-inline-form .post-match-options input[type="radio"],
.post-match-inline-form .post-match-options input[type="checkbox"]{
 width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;
 max-width:14px!important;max-height:14px!important;flex-basis:14px!important;
}
.post-match-inline-form .post-match-options input[type="radio"]:checked:after{inset:4px!important}
.post-match-inline-form .post-match-options input[type="checkbox"]:checked:after{
 left:4px!important;top:1px!important;width:4px!important;height:7px!important;
 border-width:0 1.5px 1.5px 0!important;
}

/* More comfortable, restrained questionnaire selection controls */
.post-match-inline-form .post-match-options input[type="radio"],.post-match-inline-form .post-match-options input[type="checkbox"]{width:17px!important;height:17px!important;min-width:17px!important;min-height:17px!important;max-width:17px!important;max-height:17px!important;flex-basis:17px!important}
.post-match-inline-form .post-match-options input[type="radio"]:checked:after{inset:4px!important}
.post-match-inline-form .post-match-options input[type="checkbox"]:checked:after{left:5px!important;top:2px!important;width:4px!important;height:8px!important}

/* Single daily card rhythm: 10px between adjacent unit cards.
   The nutrition panel is an exception and keeps its own spacing.
   Direct-child scope avoids changing option subcards, weekly grids or forms. */
#overview #day-details > :is(.daily-meal,.daily-event-card,.daily-supplements,.daily-weight-card,.post-match-inline){
 margin:0 0 10px!important;
}

/* Fasting weight card: matches daily nutrition and meal card surfaces */
.daily-weight-card{background:#25262b;color:#f1f1f4;border-radius:13px;overflow:hidden;font:inherit}
.daily-weight-header{display:flex;align-items:center;height:61px;min-height:61px;padding-block:9px;padding-right:17px;cursor:pointer}
/* Weight panel is shown/hidden by JS rather than details[open].
   Its expanded header follows universal card geometry without limiting the panel. */
#overview #day-details .daily-weight-card:has(.daily-weight-panel:not([hidden])){border-radius:18px}
#overview #day-details .daily-weight-card:has(.daily-weight-panel:not([hidden])) > .daily-weight-header{height:55px;min-height:55px;padding-top:12px;padding-bottom:6px}
.daily-weight-label{flex:1;min-width:0}
.daily-weight-value{display:flex;flex-direction:column;align-items:flex-end;gap:2px;margin-left:auto}
.daily-weight-value strong{font-size:16px;font-weight:600}
.daily-weight-value small{font-size:12px;color:#aaaeb8;font-weight:400}
/* Weight + and chevron have the same centre as the meals' 9px glyph:
   17px right inset + 9px/2 = 17px + 32px/2 - 11.5px.
   The button retains a usable 32px control and focus ring. */
.daily-weight-header .daily-weight-action{
 box-sizing:border-box;width:32px;height:32px;min-width:32px;flex:0 0 32px;
 margin:0 -11.5px 0 0;padding:0;border:0;border-radius:0;
 box-shadow:none;background:transparent;color:#d6d7de;
 display:flex;align-items:center;justify-content:center;
 font:inherit;line-height:1;cursor:pointer;
}
.daily-weight-header .daily-weight-action svg{display:block;width:22px;height:22px;flex:none;stroke-width:2.2}
.daily-weight-header .daily-weight-chevron-action svg{display:none}
.daily-weight-header .daily-weight-chevron-action::after{
 content:"";display:block;box-sizing:border-box;
 width:var(--day-chevron-size,9px);height:var(--day-chevron-size,9px);
 border:solid currentColor;border-width:0 2px 2px 0;
 background:none;border-radius:0;color:#c9c9cf;
 transform:rotate(45deg);transition:transform .16s ease;flex-shrink:0;
}
.daily-weight-header .daily-weight-chevron-action[aria-expanded="true"]::after{transform:rotate(225deg)}
.daily-weight-header .daily-weight-action:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.daily-weight-panel{padding:16px 17px 20px;border-top:1px solid #33353b}
.daily-weight-panel[hidden]{display:none}
.daily-weight-chart-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:13px}
.daily-weight-chart-heading button{border:0;background:#373941;color:#d9dce2;padding:7px 12px;border-radius:8px}
.daily-weight-panel svg{display:block;width:100%;max-height:200px}
.daily-weight-form{display:grid;gap:12px;font-size:14px}
.daily-weight-form select{width:100%;padding:10px;background:#1c1e23;border:1px solid #484a50;border-radius:9px;color:#fff;font:inherit}
.daily-weight-form fieldset{border:0;padding:0;margin:2px 0;display:grid;gap:8px}
.daily-weight-form legend{margin-bottom:8px;color:#d0d2d8}
.daily-weight-form fieldset label{display:flex;align-items:center;gap:10px}
.daily-weight-form fieldset input{accent-color:#dde4eb}
/* Same inset surface and rhythm as the post-match question subcards. */
.daily-weight-form .daily-weight-menstruation-card{min-width:0;background:#202126;border-radius:9px;padding:12px;margin:4px 0 0}
/* Reset the global full-width input/label styles for the compact menstruation choices. */
.daily-weight-form .daily-weight-menstruation{display:flex;flex-direction:column;align-items:stretch;min-width:0;gap:3px;margin:0;padding:0;border:0}
.daily-weight-form .daily-weight-menstruation legend{float:none;display:block;width:auto;margin:0 0 10px;padding:0;font-size:14px;font-weight:500;line-height:1.35;color:#e2e3e8}
.daily-weight-form .daily-weight-menstruation label{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:11px;width:100%;min-height:34px;margin:0;padding:2px 0;font-size:14px;line-height:1.35;white-space:normal;text-align:left;color:#e2e3e8}
.daily-weight-form .daily-weight-menstruation input[type="radio"]{appearance:auto;-webkit-appearance:radio;display:block;position:static;box-sizing:border-box;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;accent-color:#e3e6ed}
.daily-weight-form .daily-weight-menstruation .daily-weight-radio-label{display:block;flex:1;min-width:0;overflow-wrap:anywhere}
.daily-weight-form-actions{display:flex;justify-content:flex-end;gap:10px}
.daily-weight-form-actions button{border:0;border-radius:9px;padding:9px 14px;background:#454751;color:white;font:inherit}
.daily-weight-form-actions button:last-child{background:#e4e7ea;color:#202227}

/* Weight and form card typography aligned to daily meal headings */

.daily-weight-form-actions{justify-content:flex-end}
.daily-weight-form-actions button:last-child{min-width:42px;min-height:36px;padding:5px 14px;background:#e9e9ec;color:#222;border-radius:22px}

.daily-weight-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0}
.daily-weight-picker-column{display:grid;gap:8px;text-align:center;color:#bfc2c9;font-size:13px}
.daily-weight-picker-column select{width:100%;min-height:48px;text-align:center;text-align-last:center;font-size:21px;font-weight:500;border-radius:12px;background:#292b30!important;color:#f1f2f4;border:1px solid #45474c}

/* Weight controls: compact centered icons */
.daily-weight-picker-column select{font-size:17px!important;font-weight:500!important}
.daily-weight-form-actions .daily-weight-save{display:flex!important;align-items:center!important;justify-content:center!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:50%!important;background:#e9e9ec!important;color:#202227!important;font-size:25px!important;line-height:1!important;font-weight:500!important}

/* iOS-style dual wheel for fasting weight */
.daily-weight-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}
.daily-weight-wheel-column{min-width:0;text-align:center}
.daily-weight-wheel-label{color:#b8bbc4;font-size:13px;margin-bottom:8px}
.daily-weight-wheel{height:220px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;position:relative;touch-action:pan-y;border-radius:12px}
.daily-weight-wheel::-webkit-scrollbar{display:none}
.daily-weight-wheel-rail{position:relative;z-index:1}
.daily-weight-wheel-pad{height:88px}
.daily-weight-wheel-option{height:44px;display:flex;align-items:center;justify-content:center;scroll-snap-align:center;color:#7f828a;font-size:23px;font-weight:400;user-select:none;-webkit-user-select:none}
.daily-weight-wheel-option.selected{color:#f3f4f6;font-weight:500}
.daily-weight-wheel-selection{position:sticky;bottom:88px;height:44px;z-index:0;border-radius:12px;background:#383a40;pointer-events:none;margin-top:-44px}

/* One fixed selection band spanning both wheel columns */
.daily-weight-picker.daily-weight-wheel-group{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0 0 12px}
.daily-weight-wheel-group>.daily-weight-wheel-selection{
 position:absolute!important;top:calc(24px + 88px)!important;left:0!important;right:0!important;
 bottom:auto!important;width:auto!important;height:44px!important;margin:0!important;
 border-radius:12px!important;background:#383a40!important;z-index:1!important;pointer-events:none!important;
}
.daily-weight-wheel-group .daily-weight-wheel-column{position:relative;z-index:2;min-width:0}
.daily-weight-wheel-group .daily-weight-wheel{background:transparent!important;scroll-behavior:auto;scroll-padding:88px 0}
.daily-weight-wheel-group .daily-weight-wheel-rail{position:relative;z-index:2}
.daily-weight-wheel-group .daily-weight-wheel-option{position:relative;z-index:3}

/* Wheel picker refinement: one stationary rounded rail, compact value spacing */
.daily-weight-picker.daily-weight-wheel-group{
 width:min(100%,340px)!important;max-width:340px!important;
 margin:0 auto 12px!important;gap:0!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 position:relative!important;isolation:isolate;
}
.daily-weight-wheel-group>.daily-weight-wheel-selection{
 position:absolute!important;top:calc(21px + 8px + 88px)!important;
 left:0!important;right:0!important;height:44px!important;
 margin:0!important;border-radius:10px!important;
 background:#383a40!important;z-index:1!important;pointer-events:none!important;
 transform:none!important;
}
.daily-weight-wheel-group .daily-weight-wheel-column{
 position:relative!important;z-index:2!important;min-width:0!important;
 background:transparent!important;
}
.daily-weight-wheel-group .daily-weight-wheel{
 height:220px!important;overflow-x:hidden!important;overflow-y:auto!important;
 border-radius:0!important;background:transparent!important;
 scroll-snap-type:y proximity!important;-webkit-overflow-scrolling:touch;
}
.daily-weight-wheel-group .daily-weight-wheel-rail,
.daily-weight-wheel-group .daily-weight-wheel-option{
 background:transparent!important;position:relative!important;
}
.daily-weight-wheel-group .daily-weight-wheel-option{
 height:44px!important;line-height:44px!important;
 scroll-snap-align:center!important;scroll-snap-stop:normal!important;
}

#player-avatar{position:relative;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden}
#player-avatar #header-player-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%}
#player-avatar [hidden]{display:none!important}

/* Only the navigation layout changes. Original approved assessment styles remain intact. */
.player-top{position:relative!important;justify-content:flex-end!important}
.player-header-brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:88px;color:#f4f4f7;pointer-events:none}
.player-header-wordmark{width:100%;height:auto;display:block;fill:currentColor}
.player-top #player-avatar{margin-left:auto!important;z-index:1}
#tabs button[data-tab="assessments"] .mile-icon{width:21px;height:21px}
#plans #plans-assessments .assessments-page-heading{font-size:20px;font-weight:550;margin:6px 5px 22px}

/* Overview loading: the existing day placeholder is preserved; Week has its
   own seven-column skeleton aligned with the rendered weekly calendar. */
#overview .overview-loading{margin:6px 0 13px;padding:0;color:#a9a9b2;font-size:13px;line-height:1.35}
#overview .overview-loading[hidden],#menus .menu-skeleton[hidden]{display:none!important}
.loading-accessible-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#overview .overview-skeleton-inner{display:flex;flex-direction:column;gap:9px;margin-top:8px}
/* One neutral shimmer is shared by Day and Week placeholders. */
#overview .overview-skeleton-shape{
 position:relative;display:block;min-width:0;overflow:hidden;background:#29292e;
}
#overview .overview-skeleton-shape::after{
 content:"";position:absolute;inset:0;pointer-events:none;
 background:linear-gradient(90deg,transparent,rgba(255,255,255,.055),transparent);
 transform:translateX(-100%);animation:overview-skeleton-shimmer 1.5s ease-in-out infinite;
}
@keyframes overview-skeleton-shimmer{to{transform:translateX(100%)}}
/* Início > Dia: match today's nutritional strip rather than four large tiles. */
#overview .overview-skeleton-day{display:flex;flex-direction:column;gap:0}
#overview .overview-day-skeleton-nutrition{
 display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,2.95fr);
 align-items:center;gap:0;box-sizing:border-box;width:100%;min-height:88px;
 padding:15px 43px 15px 12px;margin:0 0 19px;
 border-radius:16px;background:rgba(255,255,255,.045);
}
#overview .overview-day-skeleton-energy{
 display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 min-width:0;gap:5px;padding-right:12px;
}
#overview .overview-day-skeleton-macros{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;
}
#overview .overview-day-skeleton-metric{
 display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
 min-width:0;gap:7px;padding:0 7px;border-left:1px solid rgba(255,255,255,.14);
}
#overview .overview-day-skeleton-label{width:66%;height:9px;border-radius:4px}
#overview .overview-day-skeleton-energy-value{width:85%;height:23px;border-radius:6px}
#overview .overview-day-skeleton-value{width:94%;height:16px;border-radius:5px}
#overview .overview-day-skeleton-perkg{width:73%;height:8px;border-radius:4px}
#overview .overview-day-skeleton-cards{display:flex;flex-direction:column;gap:8px}
#overview .overview-day-skeleton-card{
 display:flex;align-items:center;box-sizing:border-box;gap:10px;
 width:100%;min-width:0;height:61px;padding:0 17px;
 border-radius:13px;background:rgba(255,255,255,.055);
}
#overview .overview-day-skeleton-icon{
 flex:0 0 37px;width:37px;height:37px;border-radius:11px;
}
#overview .overview-day-skeleton-card-title{
 flex:0 1 31%;width:31%;height:13px;border-radius:5px;
}
#overview .overview-day-skeleton-card-value{
 width:35px;height:9px;border-radius:4px;flex:none;margin-left:auto;
}
#overview .overview-day-skeleton-chevron{
 width:9px;height:9px;flex:none;border-radius:3px;margin-left:0;
}
@media(max-width:380px){
 #overview .overview-day-skeleton-nutrition{padding:13px 43px 13px 10px}
 #overview .overview-day-skeleton-energy{padding-right:6px}
 #overview .overview-day-skeleton-metric{padding:0 4px;gap:6px}
 #overview .overview-day-skeleton-card{gap:8px}
}

/* Match Início > Semana: seven day headers, meal rows, day totals and
   the four-column daily-average summary. No old large cards or fake week title. */
#overview .overview-skeleton-week{display:none}
#overview .overview-loading.week-pending .overview-skeleton-day{display:none}
#overview .overview-loading.week-pending .overview-skeleton-week{display:block;margin-top:8px}
#overview .overview-week-skeleton-grid{
 display:grid;grid-template-columns:repeat(7,minmax(0,1fr));
 column-gap:2px;row-gap:4px;width:100%;
}
#overview .overview-week-skeleton-header{
 display:flex;flex-direction:column;justify-content:center;align-items:center;
 gap:6px;min-width:0;padding:7px 0 11px;
}
#overview .overview-week-skeleton-weekday{width:47%;height:8px;border-radius:4px}
#overview .overview-week-skeleton-date{width:42%;height:20px;border-radius:9px}
#overview .overview-week-skeleton-classification{width:66%;height:8px;border-radius:4px}
#overview .overview-week-skeleton-meal{height:48px;border-radius:10px}
#overview .overview-week-skeleton-total{height:46px;border-radius:9px}
#overview .overview-week-skeleton-summary-label{width:128px;max-width:60%;height:18px;border-radius:6px;margin:24px 0 12px 20px}
#overview .overview-week-skeleton-summary{
 display:grid;grid-template-columns:1.45fr repeat(3,minmax(0,1fr));
 gap:0;min-width:0;min-height:76px;padding:15px 10px;
 border-radius:16px;background:rgba(255,255,255,.045);
}
#overview .overview-week-skeleton-metric{
 display:flex;flex-direction:column;justify-content:center;gap:9px;
 min-width:0;padding:0 8px;
}
#overview .overview-week-skeleton-metric:first-child{padding-left:0}
#overview .overview-week-skeleton-metric+.overview-week-skeleton-metric{border-left:1px solid rgba(255,255,255,.12)}
#overview .overview-week-skeleton-metric-label{width:70%;height:9px;border-radius:4px}
#overview .overview-week-skeleton-metric-value{width:90%;height:15px;border-radius:5px}
@media(max-width:620px){
 #overview .overview-week-skeleton-meal{height:44px}
 #overview .overview-week-skeleton-metric{padding:0 5px}
 #overview .overview-week-skeleton-summary{padding:13px 6px;grid-template-columns:1.4fr repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
 #overview .overview-skeleton-shape::after{animation:none}
}
#menus .menu-skeleton{margin:8px 0 18px}
#menus .menu-skeleton-range{display:block;text-align:center;color:#a5a5b0;font-size:13px;margin:8px 0 15px}
#menus .menu-skeleton-card{height:85px;border-radius:13px;margin:10px 0}

/* Weekly peri-training and peri-match protocols mirror neutral Docs cards.
   Scoped to peri-only details: colored nutrition-plan meals remain untouched. */
#weekly-view .peri-weekly-detail{
 background:#18181b!important;
 color:#f3f3f5;
 border-radius:16px;
 box-shadow:none!important;
}
#weekly-view .peri-weekly-detail .weekly-meal-average{
 background:transparent!important;
}
#weekly-view .peri-weekly-detail .weekly-option-card{
 background:rgba(255,255,255,.05)!important;
 border:0!important;
 border-radius:11px!important;
 box-shadow:none!important;
 padding:12px 13px!important;
 margin:9px 0!important;
}
#weekly-view .peri-weekly-detail .weekly-option-card .plan-option-label small{
 color:#b8b8c0!important;
}
#weekly-view .peri-weekly-detail .weekly-option-card .plan-option-label strong{
 color:#f3f3f5!important;
}
#weekly-view .peri-weekly-detail .weekly-option-card .option:after{
 color:#bbbcc4!important;
}
#weekly-view .peri-weekly-detail .foods{
 background:transparent!important;
 border-bottom:1px solid rgba(255,255,255,.09)!important;
}
#weekly-view .peri-weekly-detail>.foods:last-child,
#weekly-view .peri-weekly-detail .weekly-option-card .foods:last-child{
 border-bottom:0!important;
}
#weekly-view .weekly-peri-card,
#weekly-view .weekly-match-with-intra,
#weekly-view .weekly-event-card{
 background:#35363b!important;
 color:#f3f3f5!important;
}

/* Colored weekly meal details mirror the approved daily and Docs meal cards.
   Peri-training and match details keep their separate neutral surface. */
#weekly-view .weekly-color-detail{
 background:var(--tint)!important;
 padding:14px 12px 16px!important;
 border-radius:13px!important;
 --option-base:#ffffff;
}
#weekly-view .weekly-color-detail.tone-orange{--option-base:#dca778}
#weekly-view .weekly-color-detail.tone-yellow{--option-base:#e0c475}
#weekly-view .weekly-color-detail.tone-blue{--option-base:#88b9d7}
#weekly-view .weekly-color-detail.tone-green{--option-base:#82c8a4}
#weekly-view .weekly-color-detail.tone-vp{--option-base:#b0d2ab}
#weekly-view .weekly-color-detail>.weekly-detail-heading{
 display:flex!important;
 align-items:center!important;
 justify-content:space-between!important;
 margin:0 4px 6px!important;
 min-height:24px;
}
#weekly-view .weekly-color-detail>.weekly-detail-heading small{
 color:rgba(255,255,255,.74)!important;
 font-size:12px!important;
}
#weekly-view .weekly-color-detail>.weekly-detail-heading button{
 font-size:25px!important;
 line-height:1!important;
 padding:0 4px!important;
}
#weekly-view .weekly-color-meal-head{
 display:flex!important;
 align-items:center!important;
 gap:8px!important;
 min-height:65px;
 padding:12px 4px 14px!important;
}
#weekly-view .weekly-color-meal-head>.meal-leading-icon,
#weekly-view .weekly-color-meal-head>.meal-leading-icon .mile-icon{
 display:inline-flex!important;
}
#weekly-view .weekly-color-meal-head>.meal-leading-icon{
 order:-1;
 width:37px;
 height:37px;
 flex:0 0 37px;
 margin-right:6px;
}
#weekly-view .weekly-color-meal-head>.meal-leading-icon .mile-icon{width:24px;height:24px}
#weekly-view .weekly-color-meal-head>strong{
 font-size:clamp(14px,3.5vw,18px)!important;
 font-weight:var(--mile-type-card-title)!important;
 line-height:1.2!important;
 min-width:0;
 flex:1 1 auto;
}
#weekly-view .weekly-color-meal-head>.meal-average-inline{
 display:block!important;
 flex:0 0 auto;
 margin:0!important;
 padding:0!important;
}
#weekly-view .weekly-color-meal-head .macro{
 display:grid!important;
 grid-template-columns:repeat(3,max-content)!important;
 align-items:center;
 justify-content:end!important;
 justify-items:end;
 column-gap:7px!important;
 row-gap:2px!important;
 white-space:nowrap;
 font-size:clamp(9px,2.1vw,11px)!important;
 font-weight:450!important;
}
#weekly-view .weekly-color-meal-head .macro>.kcal{
 grid-column:1/-1;
 justify-self:end;
 font-size:clamp(10px,2.5vw,12px)!important;
}
#weekly-view .weekly-color-meal-head .macro .protein{color:#a9c4d0!important}
#weekly-view .weekly-color-meal-head .macro .carbs{color:#e4b398!important}
#weekly-view .weekly-color-meal-head .macro .fat{color:#e0cf9f!important}
#weekly-view .weekly-color-detail>.weekly-option-card{
 display:block!important;
 width:auto!important;
 box-sizing:border-box!important;
 background:color-mix(in srgb,var(--tint) 82%,white 18%)!important;
 border:0!important;
 box-shadow:none!important;
 border-radius:13px!important;
 padding:12px 14px!important;
 margin:9px 0!important;
}
#weekly-view .weekly-color-detail>.weekly-option-card>summary{
 display:flex!important;
 align-items:center!important;
 padding:0!important;
 margin:0!important;
 border:0!important;
 background:transparent!important;
}
#weekly-view .weekly-color-detail>.weekly-option-card>summary .option{
 display:grid!important;
 width:100%!important;
 grid-template-columns:minmax(0,1fr) 28px!important;
 align-items:center!important;
 min-height:0!important;
 padding:0!important;
 margin:0!important;
}
#weekly-view .weekly-color-detail>.weekly-option-card .plan-option-label{
 grid-column:1!important;
 grid-row:1!important;
 display:flex!important;
 flex-direction:column!important;
 align-items:flex-start!important;
 justify-content:center!important;
 gap:5px!important;
 min-width:0!important;
}
#weekly-view .weekly-color-detail>.weekly-option-card .plan-option-label small{
 color:rgba(255,255,255,.7)!important;
}
#weekly-view .weekly-color-detail>.weekly-option-card .plan-option-label strong{
 color:#fff!important;
 font-weight:450!important;
 line-height:1.35!important;
}
#weekly-view .weekly-color-detail>.weekly-option-card .option-expanded-macros{
 margin:6px 0 0!important;
 padding:5px 0 11px!important;
}
#weekly-view .weekly-color-detail>.weekly-option-card .foods{
 border-bottom:1px solid rgba(255,255,255,.1)!important;
}
#weekly-view .weekly-color-detail>.weekly-option-card .foods:last-child{border-bottom:0!important}
#weekly-view .weekly-color-detail>.weekly-menu-line{
 background:color-mix(in srgb,var(--tint) 82%,white 18%)!important;
}
#weekly-view .weekly-color-single-option{padding:0 4px 10px}
@media(max-width:390px){
 #weekly-view .weekly-color-detail{padding:12px 10px 14px!important}
 #weekly-view .weekly-color-meal-head{gap:5px!important}
 #weekly-view .weekly-color-meal-head>.meal-leading-icon{width:32px;height:32px;flex-basis:32px;margin-right:2px}
 #weekly-view .weekly-color-meal-head>.meal-leading-icon .mile-icon{width:22px;height:22px}
 #weekly-view .weekly-color-meal-head .macro{column-gap:4px!important}
}

/* Weekly colored meal: retain corrected colors, restore the original
   date/title/inline-macros hierarchy and align supplements with foods. */
#weekly-view .weekly-color-detail{
 padding:15px!important;
}
#weekly-view .weekly-color-detail>.weekly-detail-heading{
 margin:0 0 5px!important;
}
#weekly-view .weekly-color-detail .weekly-detail-titles{
 display:flex!important;
 flex-direction:column!important;
 gap:4px!important;
}
#weekly-view .weekly-color-detail .weekly-detail-titles strong{
 font-size:21px!important;
 font-weight:680!important;
}
#weekly-view .weekly-color-detail>.weekly-meal-average{
 margin:2px 0 12px!important;
 padding:0!important;
 background:transparent!important;
}
#weekly-view .weekly-color-detail>.weekly-meal-average .macro{
 display:inline-flex!important;
 flex-wrap:wrap!important;
 align-items:center!important;
 justify-content:flex-start!important;
 gap:11px!important;
 font-size:12px!important;
}
#weekly-view .weekly-color-detail>.weekly-menu-line{
 background:color-mix(in srgb,var(--tint) 82%,white 18%)!important;
}
#weekly-view .weekly-color-detail>.supplement-in-meal{
 margin-left:0!important;
 margin-right:0!important;
 padding-left:0!important;
 padding-right:0!important;
}
@media(max-width:390px){
 #weekly-view .weekly-color-detail{padding:15px!important}
}

/* Assessments: footer timestamp and formula note only in expanded body-fat card.
   Existing metric cards, charts and navigation remain unchanged. */
#plans #plans-assessments .progress-chart-card>.assessment-formula{
 margin:0 0 10px;
 padding:8px 0 0;
 border-top:1px solid rgba(255,255,255,.09);
 color:#a8a8b1;
 font-size:12px;
 line-height:1.45;
}

/* Weekly nutrition typography, the sole expanded-chart source.
   Main headings 16/600; macro labels 12/400. Do not affect the collapsed panel. */
#overview #weekly-view .nutrition-weekly-charts > .nutrition-chart-section>strong,
#overview #weekly-view .nutrition-weekly-charts .macro-chart-heading{
 font-size:16px!important;
 font-weight:var(--mile-type-semibold,600)!important;
 line-height:1.35!important;
}
#overview #weekly-view .nutrition-weekly-charts .macro-chart-header+div>.nutrition-chart-section>strong{
 font-size:12px!important;
 font-weight:var(--mile-type-regular,400)!important;
 line-height:1.35!important;
}

/* Dual comparison halo is a closed-card preview only. Expanded card keeps original charts and g/kg. */
#overview #day-details .nutrition-donut-summary{
 display:grid!important;grid-template-columns:1fr!important;
 padding:15px 12px 14px!important;gap:0!important;
}
#overview #day-details .nutrition-donut-summary>.nutrition-hero,
#overview #day-details .nutrition-donut-summary>.nutrition-macro-row{display:none!important}
#overview #day-details .nutrition-donut-summary .nutrition-comparison{
 display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);
 align-items:center;gap:8px 12px;width:100%;color:#f1f2f4;
}

#overview #day-details .nutrition-comparison-gauge{position:relative;width:min(100%,166px);aspect-ratio:1;margin:auto}
#overview #day-details .nutrition-comparison-gauge>svg{display:block;width:100%;height:100%}
#overview #day-details .nutrition-comparison-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
#overview #day-details .nutrition-comparison-center strong{font-size:clamp(23px,5.3vw,34px);font-weight:650;line-height:1.05;letter-spacing:-.6px}
#overview #day-details .nutrition-comparison-center small{font-size:12px;color:#cbcdd2}
#overview #day-details .nutrition-comparison-center .per-kg{color:#a6a8ae}
#overview #day-details .nutrition-comparison-stats{display:flex;flex-direction:column;gap:10px;min-width:0;padding-right:22px}
#overview #day-details .nutrition-comparison-stat{background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.075);border-radius:14px;padding:9px 7px;text-align:center;min-width:0}
#overview #day-details .nutrition-comparison-stat strong{display:block;font-size:clamp(15px,4.2vw,23px);font-weight:650;white-space:nowrap}
#overview #day-details .nutrition-comparison-stat.mean.above strong{color:#79dbad}
#overview #day-details .nutrition-comparison-stat.mean.below strong{color:#ff9d73}
#overview #day-details .nutrition-comparison-stat.prior.above strong{color:#cee9e1}
#overview #day-details .nutrition-comparison-stat.prior.below strong{color:#ffc0a4}
#overview #day-details .nutrition-comparison-stat small{font-size:10px;color:#b2b4bc;white-space:nowrap}
#overview #day-details .nutrition-comparison-macros{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.1);padding-top:12px;gap:4px}
#overview #day-details .nutrition-comparison-macro{text-align:center;min-width:0;border-right:1px solid rgba(255,255,255,.09);display:flex;flex-direction:column;gap:4px}
#overview #day-details .nutrition-comparison-macro:last-child{border:0}
#overview #day-details .nutrition-comparison-macro small{color:#afb0ba;font-size:11px}
#overview #day-details .nutrition-comparison-macro strong{font-size:clamp(14px,3.8vw,20px);font-weight:600;white-space:nowrap}
#overview #day-details .nutrition-comparison-macro.protein strong{color:#86c7f5}
#overview #day-details .nutrition-comparison-macro.carbs strong{color:#f0a177}
#overview #day-details .nutrition-comparison-macro.fat strong{color:#efd27c}
#overview #day-details .nutrition-comparison-macro .per-kg{font-size:10px;white-space:nowrap;color:#a1a4ac}

@media(max-width:360px){
 #overview #day-details .nutrition-comparison-stat small{font-size:9px}
 #overview #day-details .nutrition-comparison-stats{padding-right:15px;gap:6px}
}

/* Keep the approved dual halo as the permanent header in both states. */
#overview #day-details .nutrition-donut-summary{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 padding:15px 12px 14px!important;gap:0!important;align-items:stretch!important;
}
#overview #day-details .nutrition-donut-summary>.nutrition-hero,
#overview #day-details .nutrition-donut-summary>.nutrition-macro-row{display:none!important}
#overview #day-details .nutrition-donut-summary .nutrition-comparison{
 display:grid!important;grid-column:1!important;grid-row:1!important;
 grid-template-columns:minmax(0,1.12fr) minmax(0,1fr)!important;
}


#overview #day-details .nutrition-comparison-macro:last-child{padding-right:22px}
/* Energy heading and stable chevron: controls stay anchored to the halo preview
   whether the weekly chart section is open or closed. */
#overview #day-details .nutrition-donut-summary .nutrition-comparison{
 position:relative!important;
}
#overview #day-details .nutrition-comparison-heading{
 grid-column:1/-1!important;margin:0 0 2px 5px!important;
 font-size:14px!important;font-weight:500!important;line-height:1.35!important;
 color:#b8bac1!important;
}
#overview #day-details .nutrition-comparison-center{gap:4px!important}
#overview #day-details .nutrition-comparison-center .per-kg{
 font-size:12px!important;color:#a6a8ae!important;
}


/* Seven full-width day columns; week navigation now uses native touch swipes. */
:is(#week-strip,#menu-week-strip).week{
 grid-template-columns:repeat(7,minmax(0,1fr))!important;
 touch-action:pan-y;
 overscroll-behavior-x:contain;
}
#weekly-view .weekly-calendar-grid{touch-action:pan-y;overscroll-behavior-x:contain}
#weekly-view{touch-action:pan-y}
@media(max-width:620px){
 :is(#week-strip,#menu-week-strip).week{grid-template-columns:repeat(7,minmax(0,1fr))!important}
}

/* Weekly calendar header shares the daily / Menus day-chip language. */
#weekly-view .weekly-calendar-grid>.weekly-day-header.week-day{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:center!important;gap:6px!important;
 min-width:0!important;min-height:87px!important;padding:9px 0!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
 border-radius:10px!important;color:#f2f2f4!important;overflow:visible!important;
}
#weekly-view .weekly-day-header.week-day .weekday,
#weekly-view .weekly-day-header.week-day .day-classification{
 font-size:10px!important;font-weight:400!important;color:#aaaab4!important;
 line-height:1.2!important;max-width:100%;overflow:hidden;
 text-overflow:ellipsis;white-space:nowrap;
}
#weekly-view .weekly-day-header.week-day .day-number{
 font-size:18px!important;font-weight:720!important;line-height:1!important;
 width:35px!important;height:35px!important;display:grid!important;
 place-items:center!important;border-radius:50%!important;margin:0 auto!important;
 background:transparent!important;color:#f2f2f4!important;
}
#weekly-view .weekly-day-header.week-day.selected .day-number{
 background:#f3f3f5!important;color:#17171b!important;
}
#weekly-view .weekly-day-header.week-day.today:not(.selected) .day-number{
 color:#7bb8fa!important;
}
#weekly-view .weekly-day-header.week-day.today.selected .day-number{
 background:#f3f3f5!important;color:#2070bb!important;
}
/* Energy carries visual priority; macros remain compact, secondary figures. */
#weekly-view .weekly-day-total .weekly-total-kcal{
 font-size:clamp(12px,2.8vw,17px)!important;
 font-weight:650!important;line-height:1.25!important;
 color:#a4d6ad!important;letter-spacing:-.15px!important;
}
#weekly-view .weekly-day-total .weekly-total-macros{
 font-size:clamp(7px,1.5vw,9px)!important;font-weight:400!important;
 opacity:.76!important;line-height:1.2!important;
}

/* Weekly grid polish: consistent compact cells without modifying plan colours. */
#weekly-view .weekly-calendar-grid{
 grid-template-columns:repeat(7,minmax(0,1fr))!important;
 column-gap:4px!important;row-gap:6px!important;
 align-items:stretch!important;
}
#weekly-view .weekly-meal,
#weekly-view .weekly-event-card,
#weekly-view .weekly-match-with-intra,
#weekly-view .weekly-peri-card{
 box-sizing:border-box!important;min-height:42px!important;
 border-radius:9px!important;padding:5px 2px!important;
 border:0!important;box-shadow:none!important;
}
#weekly-view .weekly-meal{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-direction:column!important;gap:2px!important;text-align:center!important;
}
#weekly-view .weekly-meal-name,#weekly-view .weekly-meal-kcal{
 font-weight:500!important;line-height:1.15!important;
}
#weekly-view .weekly-empty{
 min-height:42px!important;height:100%!important;box-sizing:border-box!important;
 background:transparent!important;
}
#weekly-view .weekly-event-slot{min-height:42px!important;box-sizing:border-box!important;}
#weekly-view .weekly-event-slot:empty{min-height:12px!important;height:12px!important;}
#weekly-view .weekly-event-card:not(.weekly-match-with-intra){background:#35363b!important;}
#weekly-view .weekly-event-card.weekly-match-with-intra{background:#414248!important;}
#weekly-view .weekly-day-total{
 min-height:42px!important;padding:5px 1px!important;
 border-radius:9px!important;gap:3px!important;background:#22242a!important;
 border:0!important;box-shadow:none!important;
}
#weekly-view .weekly-day-total .weekly-total-kcal{
 font-size:clamp(12px,2.8vw,16px)!important;font-weight:650!important;
 line-height:1.2!important;color:#a4d6ad!important;
}
#weekly-view .weekly-day-total .weekly-total-macros{
 display:flex!important;width:100%!important;gap:1px!important;
 justify-content:space-evenly!important;align-items:center!important;
 font-size:clamp(7px,1.5vw,9px)!important;line-height:1.2!important;
 font-weight:400!important;opacity:.85!important;letter-spacing:-.15px!important;
}
#weekly-view .weekly-day-total .weekly-total-macros span{min-width:0!important;white-space:nowrap!important;}
/* One neutral full-height backdrop; meal fills remain untouched. */
#weekly-view .weekly-calendar-grid.has-weekly-selection::before{
 background:rgba(255,255,255,.04)!important;
 border-radius:9px!important;
}
@media(max-width:420px){
 #weekly-view .weekly-calendar-grid{column-gap:3px!important;row-gap:5px!important;}
 #weekly-view .weekly-meal,#weekly-view .weekly-event-card,
 #weekly-view .weekly-match-with-intra,#weekly-view .weekly-peri-card{
  padding:5px 1px!important;
 }
 #weekly-view .weekly-day-total .weekly-total-macros{
  font-size:clamp(7px,1.7vw,8px)!important;letter-spacing:-.25px!important;
 }
}

/* iOS Screen Time reference: equal-width, full-height rounded segments.
   Keep existing Dia/Semana order and aria-pressed behaviour unchanged. */
/* Training and match cells must have the same 9px corners as meal cells,
   overriding older 15px sport-event rules without changing their colours. */
#weekly-view .weekly-event-slot>.weekly-event-card,
#weekly-view .weekly-event-slot>.weekly-match-with-intra,
#weekly-view .weekly-event-slot>.weekly-peri-card,
#weekly-view .weekly-event-card,
#weekly-view .weekly-match-with-intra{
 border-radius:9px!important;
 background-clip:padding-box!important;
 box-shadow:none!important;
}

/* iPhone Screen Time reference: compact control, not the oversized 54px switch. */
/* Match cards with intra content had a legacy 68px min-height.
   Both match and training event tiles now use the same compact row height. */
#weekly-view .weekly-event-slot>.weekly-event-card,
#weekly-view .weekly-event-slot>.weekly-event-card.weekly-match-with-intra,
#weekly-view .weekly-event-slot>.weekly-match-with-intra{
 box-sizing:border-box!important;
 min-height:42px!important;
 height:42px!important;
 padding:5px 1px!important;
 gap:2px!important;
 border-radius:9px!important;
 align-self:stretch!important;
}

/* The player's private photo becomes the Profile navigation glyph. */
#tabs button[data-tab="profile"] .profile-tab-avatar{
 position:relative;display:flex;align-items:center;justify-content:center;
 flex:0 0 25px;width:25px;height:25px;border-radius:50%;
 background:#45464c;color:#fff;overflow:hidden;font-size:10px;font-weight:600;
 line-height:1;
}
#tabs button[data-tab="profile"] .profile-tab-avatar img{
 position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;
}
#tabs button[data-tab="profile"] .profile-tab-avatar [hidden]{display:none!important}
#tabs button[data-tab="profile"] .profile-tab-avatar span{font-size:10px!important;font-weight:600!important}
.player-top{justify-content:center!important}
.player-top .player-header-brand{position:static!important;transform:none!important;margin:auto!important}

/* Intra-game nutrition: group products under each unique ingestion timing. */
#overview .match-intra-card > .peri-timing-group,
#overview .match-intra-card .option > .peri-timing-group,
#overview .match-intra-card details > .peri-timing-group{
 display:block!important;box-sizing:border-box;min-width:0;
 margin:0 18px!important;padding:17px 0 19px!important;
 border-bottom:1px solid rgba(200,200,205,.15);
}
#overview .match-intra-card > .peri-timing-group:last-child,
#overview .match-intra-card details > .peri-timing-group:last-child{border-bottom:0;padding-bottom:22px!important}
#overview .match-intra-card .peri-timing-heading{font-weight:600;color:inherit;margin-bottom:9px;line-height:1.35}
#overview .match-intra-card .peri-timing-lines{display:flex;flex-direction:column;gap:9px}
#overview .match-intra-card .peri-timing-line{color:inherit;opacity:.82;line-height:1.45;overflow-wrap:anywhere}
/* Jogo only: extra ingestion moments reuse the original timing & consumption family. */
#overview .match-intra-card .intra-added-timing{border-top:1px solid rgba(34,35,42,.12);padding:18px 0}
#overview .match-intra-card .intra-added-origin{display:inline-block;font-size:12px;font-weight:400;color:#666971;margin-left:10px}
/* Reuse the same timing-group margins and the previous group's divider.
   The add action is a text row, not a standalone card or bordered button. */
#overview .match-intra-card > .intra-add-moment-group{border-bottom:0!important;padding:10px 0 18px!important}
#overview .match-intra-card .intra-add-moment-trigger{display:flex!important;align-items:center;justify-content:flex-start;width:auto!important;min-height:44px;max-width:100%;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;text-align:left;font-size:14px;font-weight:400;line-height:1.4;cursor:pointer}
#overview .match-intra-card .intra-add-moment-trigger[hidden]{display:none!important}
#overview .match-intra-card .intra-add-moment-panel{margin:0;padding:6px 0 0;border:0;border-radius:0;background:transparent;color:inherit}
#overview .match-intra-card .intra-add-moment-panel[hidden]{display:none!important}
/* Same neutral #E1E1E5 field and independent option surfaces used by the approved
   food picker, adapted to the light #F2F2F4 Jogo card. No native iOS menu. */
#overview .match-intra-card .intra-timing-select-label{display:block;margin:0;font-size:15px;font-weight:600;line-height:1.4;color:inherit}
#overview .match-intra-card .intra-timing-select{margin-top:9px;min-width:0}
#overview .match-intra-card .intra-timing-select-trigger{box-sizing:border-box;appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:0;padding:11px 15px;border:0;border-radius:13px;background:var(--consumption-editor-surface,#E1E1E5);box-shadow:none;color:#22232A;font-family:inherit;font-size:16px;font-weight:400;line-height:1.35;text-align:left;cursor:pointer}
#overview .match-intra-card .intra-timing-selected-label{min-width:0;flex:1}
#overview .match-intra-card .intra-timing-select-chevron{box-sizing:border-box;display:block;flex:0 0 9px;width:9px;height:9px;margin:-4px 3px 0 0;border:solid currentColor;border-width:0 2px 2px 0;border-radius:0;transform:rotate(45deg);opacity:.58;transition:transform .16s ease}
#overview .match-intra-card .intra-timing-select-trigger[aria-expanded=true] .intra-timing-select-chevron{transform:translateY(4px) rotate(225deg)}
#overview .match-intra-card .intra-timing-option-list{display:flex;flex-direction:column;gap:8px;max-height:min(328px,36dvh);margin:8px 0 0;padding:0;overflow-y:auto;overscroll-behavior:contain;background:transparent;border:0;border-radius:0;box-shadow:none}
#overview .match-intra-card .intra-timing-option-list[hidden]{display:none!important}
#overview .match-intra-card .intra-timing-option{box-sizing:border-box;appearance:none;-webkit-appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;margin:0;padding:12px 15px;border:0;border-radius:13px;background:var(--consumption-editor-surface,#E1E1E5);box-shadow:none;color:#22232A;font-family:inherit;font-size:14px;font-weight:400;line-height:1.4;text-align:left;cursor:pointer}
#overview .match-intra-card .intra-timing-option-check{flex:0 0 16px;color:inherit;font-size:17px;font-weight:500;line-height:1;text-align:center;opacity:0}
#overview .match-intra-card .intra-timing-option[aria-selected=true] .intra-timing-option-check{opacity:1}
#overview .match-intra-card :is(.intra-timing-select-trigger,.intra-timing-option):focus-visible{outline:2px solid #8287A0;outline-offset:2px}
#overview .match-intra-card .intra-timing-option:active{filter:brightness(.96)}
#overview .match-intra-card .intra-add-moment-editor-host>.consumption-editor{background:transparent!important;border:0!important;margin:8px 0 0!important;padding:0!important;box-shadow:none!important}
#overview .match-intra-card .intra-add-moment-editor-host .consumption-secondary-actions{margin-top:0!important}
#overview .match-intra-card .intra-add-moment-editor-host .consumption-remove-all[hidden],
#overview .match-intra-card .intra-add-moment-editor-host .consumption-energy-progress[hidden]{display:none!important}
#overview .match-intra-card .intra-add-moment-editor-host .consumption-energy-track{display:none!important}
#overview .match-intra-card .peri-timing-group > :is(.consumption-quick-actions,.consumption-actions--recorded){margin:16px 0 0!important}
#overview .match-intra-card .peri-timing-group > .consumption-editor{margin:16px 0 0!important}
#overview .match-intra-card .peri-timing-group > .consumption-quick-feedback:not(:empty){margin:5px 0 0!important}

/* Approved palette B: opaque deep plan surfaces and matching brighter labels.
   One set of tokens is shared by Daily, Weekly and Plans. */
:root{
 --meal-orange:#392413;--meal-yellow:#392F0D;--meal-green:#1C3E24;--meal-blue:#0C2745;
 --meal-orange-text:#FFB36D;--meal-yellow-text:#FFDB59;
 --meal-green-text:#8BE69A;--meal-blue-text:#78BBFF;
}
.tone-orange{--meal-ink:var(--meal-orange-text);--meal-inner:#4C2E14}
.tone-yellow{--meal-ink:var(--meal-yellow-text);--meal-inner:#4C3E0C}
.tone-green{--meal-ink:var(--meal-green-text);--meal-inner:#214E2B}
.tone-blue{--meal-ink:var(--meal-blue-text);--meal-inner:#0C3158}
/* Meal labels, kcal and arrows use the corresponding approved palette B ink. */
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head,
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head,
#weekly-view .weekly-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue),
#menus .menu-entry:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue){
 color:var(--meal-ink)!important;
}
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head strong,
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head .kcal,
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head strong,
#weekly-view .weekly-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .weekly-meal-name,
#weekly-view .weekly-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .weekly-meal-kcal,
#menus .menu-entry:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .menu-entry-heading strong{
 color:var(--meal-ink)!important;
}
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head::after,
#plans #plan-detail .plan-overview-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>summary.daily-meal-head::after{
 color:var(--meal-ink)!important;
}
/* Expanded option surfaces are a lighter shade of their parent hue. */
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>details.player-meal-option-subcard,
#plans #plan-detail .plan-overview-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>details.player-meal-option-subcard,
#plans #plan-detail .plan-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) details.plan-option-card,
#weekly-view .weekly-color-detail:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .weekly-meal-average,
#weekly-view .weekly-color-detail:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .weekly-option-card{
 background:var(--meal-inner)!important;
}
/* Training and peri-training remain neutral. Jogo is always light in Dia,
   whether an intra-match prescription exists or not; the weekly grid is separate. */
#overview #day-details .daily-event-card:is(.daily-match-card,.match-intra-card),
#weekly-view .weekly-event-card.weekly-match-with-intra{
 background:#F2F2F4!important;color:#22232A!important;
}
/* The same editor follows the approved light Match card without losing contrast. */
#overview #day-details .daily-event-card.match-intra-card{
 --consumption-editor-surface:#E1E1E5;
 --consumption-select-surface:#E1E1E5;
 --consumption-primary-bg:#22232A;
 --consumption-primary-ink:#FFFFFF;
 --supplement-ink:#22232A;
 --supplement-divider:rgba(34,35,42,.14);
}
#overview #day-details .daily-event-card.match-intra-card>.daily-meal-head,
#overview #day-details .daily-event-card.match-intra-card>.daily-meal-head strong,
#weekly-view .weekly-event-card.weekly-match-with-intra .weekly-meal-kcal{
 color:#22232A!important;
}


/* Palette B — option A: deep tone-on-tone, readable hue-matched text, quiet separators. */
:is(#overview .daily-meal,#plans #plan-detail .plan-meal,#plans #plan-detail .plan-overview-meal,#weekly-view .weekly-color-detail):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue){
 --option-base:var(--meal-inner)!important;
 --option-label:color-mix(in srgb,var(--meal-ink) 75%,white);
 --option-body:color-mix(in srgb,var(--meal-ink) 58%,white);
 --option-divider:color-mix(in srgb,var(--meal-ink) 22%,transparent);
}
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head :is(.kcal,.meal-average-inline .kcal),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.meal-average-inline .kcal,.meal-average .kcal),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head .macro>.kcal{
 color:var(--meal-ink)!important;
}
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.player-meal-option-subcard,.single-meal-option),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.plan-option-card,.player-meal-option-subcard),
#weekly-view .weekly-color-detail:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.weekly-option-card,.weekly-meal-average){
 color:var(--option-body)!important;
}
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.plan-option-label strong,.plan-option-label small,.foods,.meal-collapsible-note,.single-meal-option),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.plan-option-label strong,.plan-option-label small,.foods,.meal-collapsible-note),
#weekly-view .weekly-color-detail:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.weekly-menu-line span,.weekly-menu-line small,.plan-option-label strong,.plan-option-label small,.foods){
 color:var(--option-body)!important;
}
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.plan-option-label strong,.plan-option-label small),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.plan-option-label strong,.plan-option-label small){
 color:var(--option-label)!important;
}
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) :is(.foods,.supplement-in-meal),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .foods,
#weekly-view .weekly-color-detail:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .foods{
 border-bottom-color:var(--option-divider)!important;
}
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .plan-option-card,
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.player-meal-option-subcard{
 background:var(--meal-inner)!important;
}
#overview #day-details .daily-event-card.match-intra-card :is(.meal-average-inline .kcal,.meal-average .kcal,.weekly-match-kcal),
#overview #day-details .daily-event-card.match-intra-card>.daily-meal-head .macro>.kcal,
#weekly-view .weekly-event-card.weekly-match-with-intra :is(.weekly-match-kcal,.weekly-meal-kcal){
 color:#22232A!important;
}

/* The Mile typography tokens — apply selectively to component roles. */
:root{--mile-type-regular:400;--mile-type-card-title:400;--mile-type-medium:500;--mile-type-semibold:600;--mile-type-bold:700}
/* Daily and Plans: identical meal, kcal and option hierarchy. */
#overview .daily-meal>.daily-meal-head>strong,
#plans #plan-detail .plan-overview-meal>.daily-meal-head>strong,
#weekly-view .weekly-color-meal-head>strong{font-weight:var(--mile-type-card-title)!important}
#weekly-view .weekly-meal-name{font-weight:var(--mile-type-medium)!important}
#plans #plan-detail .plan-overview-meal>.daily-meal-head .meal-average-inline .macro>.kcal,
#plans #plan-detail .plan-overview-meal>.daily-meal-head .meal-average-inline .macro>.kcal *,
#weekly-view .weekly-meal-kcal{font-weight:var(--mile-type-medium)!important}
#plans #plan-detail .plan-overview-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head .meal-average-inline .macro>.kcal,
#plans #plan-detail .plan-overview-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.daily-meal-head .meal-average-inline .macro>.kcal *{color:var(--meal-ink)!important}
#overview .daily-meal .plan-option-label>strong,
#plans #plan-detail :is(.plan-option-card,.player-meal-option-subcard) .plan-option-label>strong,
#weekly-view .weekly-color-detail .plan-option-label>strong{font-weight:var(--mile-type-medium)!important}
#overview .daily-meal :is(.foods,.meal-collapsible-note .meal-note-body),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal) .foods,
#weekly-view .weekly-color-detail .foods{font-weight:var(--mile-type-regular)!important}
#overview .daily-event-card>span:not(.meal-leading-icon),
#overview .peri-meal>.daily-meal-head>strong,
#overview .match-intra-card>.daily-meal-head>strong{font-weight:var(--mile-type-card-title)!important}
#weekly-view .weekly-event-card>span:first-child,
#weekly-view .weekly-peri-card>span:first-child{font-weight:var(--mile-type-medium)!important}
#weekly-view .weekly-day-total .weekly-total-kcal,
#weekly-view .weekly-average-metric>strong,
#overview #day-details .nutrition-comparison-macro>strong,
#overview #day-details .nutrition-comparison-stat>strong{font-weight:var(--mile-type-semibold)!important}
#overview #day-details .nutrition-comparison-center>strong{font-weight:var(--mile-type-bold)!important}
#weekly-view .weekly-color-detail .weekly-detail-titles>strong{font-weight:var(--mile-type-semibold)!important}
#weekly-view .weekly-day-total .weekly-total-macros{font-weight:var(--mile-type-regular)!important}

/* Shared type hierarchy: Assessments, Menus, Profile and bottom navigation.
   Restrict changes to weights: preserve sizing, chart geometry and interaction. */
#plans .assessment-tabs button,
#plans .assessment-history-card>summary{font-weight:var(--mile-type-medium)!important}
#plans .assessment-trend>p:first-child,#plans .assessment-chart-value,#plans .assessment-chart-value.is-selected{font-weight:var(--mile-type-semibold)!important}
#plans .assessment-chart-tick,#plans .assessment-chart-labels,#plans .assessment-history-points{font-weight:var(--mile-type-regular)!important}
#menus .date-nav strong{font-weight:var(--mile-type-medium)!important}
#menus .menu-day-heading h3{font-weight:var(--mile-type-semibold)!important}
#menus .menu-day-heading .menu-day-subtitle{font-weight:var(--mile-type-medium)!important}
#menus .day-menu .menu-entry-heading strong,
#menus .day-menu .menu-entry-body .value{font-weight:var(--mile-type-medium)!important}
#menus .day-menu .menu-entry-body :is(small,.menu-entry-note){font-weight:var(--mile-type-regular)!important}
#tabs button,#tabs button>span:not(.profile-tab-avatar),
#tabs button[data-tab="profile"]>span:last-child{font-weight:var(--mile-type-regular)!important}

/* Cleaner expanded meal prescriptions: spacing replaces food-row divider rules.
   Scoped to food lists; controls, option boundaries and game timing remain intact. */
#overview .daily-meal .foods,
#overview .peri-meal .foods,
#plans #plan-detail :is(.plan-meal,.plan-overview-meal) .foods,
#weekly-view :is(.weekly-color-detail,.peri-weekly-detail) .foods,
#weekly-view .weekly-option-card .foods{
 border-bottom:0!important;
 border-top:0!important;
}
/* Multi-line raw accompaniment note uses preserved line breaks, but a more
   generous reading line-height across Daily, Weekly and Plans. */
#overview .meal-collapsible-note>.meal-note-body,
#plans #plan-detail .meal-collapsible-note>.meal-note-body,
#weekly-view .meal-collapsible-note>.meal-note-body{
 white-space:pre-wrap!important;
 line-height:1.75!important;
}
#overview .meal-collapsible-note>.meal-note-body>*+*,
#plans #plan-detail .meal-collapsible-note>.meal-note-body>*+*,
#weekly-view .meal-collapsible-note>.meal-note-body>*+*{
 margin-top:6px!important;
}

/* All four colour-plan options: no food dividers and a compact ingredient rhythm.
   Matches single options and expandable options in Daily, Weekly and Plans.
   Keep raw accompaniment notes and event protocols unchanged. */
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .foods,
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .foods,
#weekly-view .weekly-color-detail:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .foods{
 border:0!important;
 border-top:0!important;
 border-bottom:0!important;
 box-shadow:none!important;
 padding-top:5px!important;
 padding-bottom:5px!important;
 margin-top:0!important;
 margin-bottom:0!important;
 line-height:1.45!important;
}
#overview .daily-meal:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .foods:last-child,
#plans #plan-detail :is(.plan-meal,.plan-overview-meal):is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .foods:last-child,
#weekly-view .weekly-color-detail:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue) .foods:last-child{
 padding-bottom:5px!important;
}
/* Preserve the looser spacing explicitly approved for raw accompaniments. */
#overview .meal-collapsible-note>.meal-note-body,
#plans #plan-detail .meal-collapsible-note>.meal-note-body,
#weekly-view .meal-collapsible-note>.meal-note-body{line-height:1.75!important}

/* Compact ingredient rows for meals, excluding peri-session protocols.
   The former catch-all selectors cancelled the approved peri-training insets. */
#overview #day-details .daily-meal:not(.peri-meal) .foods,
#overview #day-details .daily-meal:not(.peri-meal) details .foods,
#overview #day-details .daily-meal:not(.peri-meal) .single-meal-option .foods,
#overview #day-details .daily-meal:not(.peri-meal) .player-meal-option-subcard .foods{
 border:0!important;
 border-top:0!important;
 border-bottom:0!important;
 box-shadow:none!important;
 padding-top:5px!important;
 padding-bottom:5px!important;
 margin-top:0!important;
 margin-bottom:0!important;
}
/* Raw accompaniments: match ingredient 14px size, retain approved 1.75 rhythm. */
#overview .meal-collapsible-note>.meal-note-body,
#plans #plan-detail .meal-collapsible-note>.meal-note-body,
#weekly-view .meal-collapsible-note>.meal-note-body{
 font-size:14px!important;
 font-weight:var(--mile-type-regular)!important;
 line-height:1.75!important;
 white-space:pre-wrap!important;
}

/* Weekly expanded meal nutrition: no tinted band behind kcal / macros.
   Keep numeric colours, typography and the card's own palette intact. */
#weekly-view .weekly-color-detail:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.weekly-meal-average,
#weekly-view .weekly-color-detail:is(.tone-orange,.tone-yellow,.tone-green,.tone-blue)>.weekly-option-card .option-expanded-macros,
#weekly-view .weekly-color-detail>.weekly-meal-average{
 background:transparent!important;
 background-color:transparent!important;
 background-image:none!important;
 box-shadow:none!important;
}

/* Assessments: compact mode selection, unchanged recent chart, vertical all-history. */
#plans .assessment-trend-switch{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:#28282e;border-radius:999px;margin:0 0 13px}
#plans .assessment-trend-switch button{border:0;border-radius:999px;background:transparent;color:#aeb0b8;font-size:12px;font-weight:500;padding:9px 6px;min-height:36px}
#plans .assessment-trend-switch button[aria-pressed="true"]{background:#52525a;color:#fff}
#plans .assessment-trend>svg[hidden],#plans .assessment-trend-vertical-scroll[hidden]{display:none!important}
#plans .assessment-trend-vertical-scroll{max-height:420px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
#plans .assessment-trend-vertical-scroll svg{width:100%;height:auto;max-height:none;display:block;overflow:visible}
#plans .assessment-trend-vertical-scroll .assessment-chart-tick{font-size:9px}
#plans .assessment-trend-vertical-scroll .assessment-chart-value{font-size:10px}

/* Only one assessment chart mode is rendered at a time, regardless of parent tab. */
.assessment-trend > svg[hidden],
.assessment-trend > .assessment-trend-vertical-scroll[hidden],
.assessment-trend > .assessment-trend-vertical-scroll[hidden] svg{display:none!important}
/* One assessment chart for the full history, initially scrolled to latest ten. */
#plans .assessment-trend-horizontal-scroll{
 width:100%;overflow-x:auto;overflow-y:hidden;
 overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
 touch-action:pan-x pan-y;scrollbar-width:none; /* pan-y: a finger on a chart still scrolls the page (25/11) */
}
#plans .assessment-trend-horizontal-scroll::-webkit-scrollbar{display:none}
#plans .assessment-trend-horizontal-scroll>svg{
 width:auto;max-width:none;height:176px;max-height:none;
 display:block;overflow:visible;touch-action:pan-x pan-y;user-select:none;
}

/* Universal plan and expanded-weekly-detail titles use the shared title token;
   compact weekly grid cells retain their medium-weight hierarchy. */
#plans #plan-detail .plan-overview-meal>.daily-meal-head>strong,
#plans #plan-detail .plan-overview-meal>summary.daily-meal-head>strong,
#weekly-view .weekly-color-detail .weekly-color-meal-head>strong{
 font-size:16px!important;font-weight:var(--mile-type-card-title)!important;
}
#overview #day-details .daily-meal .plan-option-label>strong,
#plans #plan-detail :is(.plan-meal,.plan-overview-meal) .plan-option-label>strong,
#weekly-view .weekly-color-detail .plan-option-label>strong{
 font-size:15px!important;font-weight:500!important;
}
#overview #day-details .daily-meal .plan-option-label>small,
#plans #plan-detail :is(.plan-meal,.plan-overview-meal) .plan-option-label>small,
#weekly-view .weekly-color-detail .plan-option-label>small{
 font-size:12px!important;font-weight:400!important;
}

/* Login-only premium entry: original logo above an unboxed form. */
body:has(#login-panel:not([hidden])) .player-top{padding-top:42px!important;padding-bottom:0!important}
body:has(#login-panel:not([hidden])) .player-header-brand{width:126px!important;max-width:48vw!important}
#login-panel{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 auto!important;max-width:440px!important}
#login-panel .login-tagline{color:#a4a4ae!important;text-align:center!important;font-size:15px!important;font-weight:400!important;letter-spacing:.01em;margin:20px 0 40px!important}
/* Login shares the compact floating-label form category with Profile. */
#login-form{display:grid!important;gap:14px!important}
#login-form>button[type="submit"]{min-height:54px!important;margin-top:10px!important;border:0!important;border-radius:999px!important;background:#f5f5f7!important;color:#16161a!important;font-size:16px!important;font-weight:600!important;width:100%!important}
#login-panel #login-error{min-height:1.3em!important;margin:12px 4px!important}

/* Centre the complete logged-out entry group in the available viewport. */
body:has(#login-panel:not([hidden])) .shell{
 min-height:100vh;min-height:100dvh;
 display:flex;flex-direction:column;justify-content:center;
 padding-top:max(20px,env(safe-area-inset-top))!important;
 padding-bottom:max(20px,env(safe-area-inset-bottom))!important;
}
body:has(#login-panel:not([hidden])) .player-top{
 width:100%;flex:none;padding-top:0!important;padding-bottom:0!important;
}
body:has(#login-panel:not([hidden])) #login-panel{width:100%!important;flex:none!important}

/* Login-only logo: larger, without tagline; the centered group stays intact. */
body:has(#login-panel:not([hidden])) .player-header-brand{width:174px!important;max-width:60vw!important}
body:has(#login-panel:not([hidden])) #login-panel{margin-top:38px!important}

/* Frosted floating bottom navigation, preserving existing layout and selected pill. */
#player-panel #tabs{
 background:rgba(32,32,39,.67)!important;
 -webkit-backdrop-filter:blur(22px) saturate(145%)!important;
 backdrop-filter:blur(22px) saturate(145%)!important;
 border:1px solid rgba(255,255,255,.12)!important;
 box-shadow:0 10px 32px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.09)!important;
}
#player-panel #tabs button[aria-pressed="true"]{
 background:rgba(215,215,225,.23)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.12)!important;
}
@supports not (backdrop-filter:blur(1px)){
 #player-panel #tabs{background:rgba(30,30,36,.95)!important}
}

/* Adaptive frosted navigation on scroll: visually compact, tappable controls.
   4 tabs (25/11): the bar is 298 px wide, centred, so each tab keeps its former ~71 px (it was 5 tabs edge to edge). */
#player-panel #tabs{
 transition:padding .25s ease,left .25s ease,right .25s ease,bottom .25s ease,border-radius .25s ease!important;
}
#player-panel #tabs button{
 transition:padding .25s ease,gap .25s ease,background-color .25s ease!important;
}
#player-panel #tabs .mile-icon,#player-panel #tabs .profile-tab-avatar{
 transition:transform .25s ease!important;
}
#player-panel #tabs button>span:last-child{
 transition:font-size .25s ease!important;
}
#player-panel #tabs.tabs-compact{
 left:max(24px,calc(50% - 137px))!important;right:max(24px,calc(50% - 137px))!important;
 padding:3px!important;
}
#player-panel #tabs.tabs-compact button{
 padding:5px 2px!important;gap:2px!important;
 min-height:44px!important;
}
#player-panel #tabs.tabs-compact .mile-icon,
#player-panel #tabs.tabs-compact .profile-tab-avatar{
 transform:scale(.87)!important;
}
#player-panel #tabs.tabs-compact button>span:last-child{font-size:8px!important}
@media(prefers-reduced-motion:reduce){
 #player-panel #tabs,#player-panel #tabs button,
 #player-panel #tabs .mile-icon,#player-panel #tabs .profile-tab-avatar,
 #player-panel #tabs button>span:last-child{transition:none!important}
}


/* VP (Verde Preparação): the most intense green of the carb scale (palette 29/11). All geometry,
   typography and meal definitions remain unchanged. */
:root{--meal-vp-text:#59DB8F;--meal-vp-inner:#085C2C}
.tone-vp{--meal-ink:var(--meal-vp-text);--meal-inner:var(--meal-vp-inner)}
.vp,.color-dot.vp,.daily-color-bar.vp,.daily-meal-indicator.vp{background:var(--meal-vp-strong)}
#overview .daily-meal.tone-vp,
#plans #plan-detail :is(.plan-meal,.plan-overview-meal).tone-vp,
#weekly-view .weekly-color-detail.tone-vp{
 --option-base:var(--meal-vp-inner);
 --option-label:color-mix(in srgb,var(--meal-vp-text) 68%,white);
 --option-body:color-mix(in srgb,var(--meal-vp-text) 58%,white);
 --option-divider:color-mix(in srgb,var(--meal-vp-text) 22%,transparent);
}
#weekly-view .weekly-color-detail.tone-vp{--detail-bg:var(--meal-vp)}
#overview .daily-meal.tone-vp>.daily-meal-head,
#plans #plan-detail :is(.plan-meal,.plan-overview-meal).tone-vp>.daily-meal-head,
#weekly-view .weekly-meal.tone-vp,
#weekly-view .weekly-color-detail.tone-vp :is(.weekly-color-meal-head,.weekly-detail-heading),
#menus .menu-entry.tone-vp{
 color:var(--meal-vp-text)!important;
}
#overview .daily-meal.tone-vp>.daily-meal-head :is(strong,.kcal,.meal-leading-icon),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal).tone-vp>.daily-meal-head :is(strong,.kcal,.meal-leading-icon),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal).tone-vp .meal-average-inline .kcal,
#weekly-view .weekly-meal.tone-vp :is(.weekly-meal-name,.weekly-meal-kcal),
#weekly-view .weekly-color-detail.tone-vp :is(.weekly-color-meal-head>strong,.weekly-color-meal-head .kcal,.weekly-detail-titles strong),
#menus .menu-entry.tone-vp .menu-entry-heading strong{
 color:var(--meal-vp-text)!important;
}
#overview .daily-meal.tone-vp>.daily-meal-head::after,
#plans #plan-detail .plan-overview-meal.tone-vp>summary.daily-meal-head::after{
 color:var(--meal-vp-text)!important;
}
#overview .daily-meal.tone-vp>details.player-meal-option-subcard,
#plans #plan-detail .plan-overview-meal.tone-vp>details.player-meal-option-subcard,
#plans #plan-detail .plan-meal.tone-vp details.plan-option-card,
#weekly-view .weekly-color-detail.tone-vp>.weekly-option-card{
 background:var(--meal-vp-inner)!important;
}
#overview .daily-meal.tone-vp :is(.plan-option-label strong,.plan-option-label small,.foods),
#plans #plan-detail :is(.plan-meal,.plan-overview-meal).tone-vp :is(.plan-option-label strong,.plan-option-label small,.foods),
#weekly-view .weekly-color-detail.tone-vp :is(.plan-option-label strong,.plan-option-label small,.foods),
#weekly-view .weekly-color-detail.tone-vp .weekly-option-card .option::after{
 color:var(--option-body)!important;
}

/* Compact accessible detail for selected weight points. */
.daily-weight-chart-surface{background:#1b1b20;border-radius:14px;padding:10px 8px 9px}
.daily-weight-chart-surface svg{display:block;width:100%;max-height:none}
.daily-weight-chart-average{font-size:11px;color:#aeb0b8;text-align:right;margin:0 8px 3px}
.daily-weight-chart-detail{min-height:18px;margin:4px 0 0;color:#b9bdc6;font-size:12px;text-align:center}

.daily-weight-chart-surface .assessment-chart-grid{fill:none;stroke:#3b3c43;stroke-width:.7;stroke-dasharray:2 4}
.daily-weight-chart-surface .assessment-chart-mean{stroke:#b6b8bf;stroke-width:1.3;stroke-dasharray:5 4;opacity:.75}
.daily-weight-chart-surface .assessment-chart-line{fill:none;stroke:#a2ddc0;stroke-width:2.3;stroke-linejoin:round;stroke-linecap:round}
.daily-weight-chart-surface .assessment-chart-point{fill:#1b1b20;stroke:#a2ddc0;stroke-width:2}
.daily-weight-chart-surface .assessment-chart-value{fill:#d7f0e2;font-size:10.5px;font-weight:600}
.daily-weight-chart-surface .assessment-chart-tick{fill:#9496a1;font-size:10px}

/* PWA session check: do not flash login before checking stored session. */
.player-session-loading{min-height:45dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:17px;text-align:center;padding:28px 18px;color:#a7abb4;font:500 14px/1.5 Inter Tight,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}
.player-session-loading[hidden]{display:none!important}
.player-session-loading p{margin:0}
.player-session-loader{display:block;width:28px;height:28px;border-radius:50%;border:2px solid rgba(169,174,186,.23);border-top-color:#c8ced8;animation:tm-session-spin .8s linear infinite}
.player-session-loading #player-session-retry{border:1px solid #535862;background:#292b31;color:#f2f4f6;border-radius:12px;padding:11px 20px;font:500 14px Inter Tight,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}
@keyframes tm-session-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.player-session-loader{animation:none}}

/* One full-screen loading surface; the photo fades in behind the official wordmark. */
body:has(#player-session-loading:not([hidden])){background:#09090b!important}
#player-session-loading.player-session-loading{
 position:fixed!important;inset:0!important;z-index:9998!important;width:100vw!important;
 height:100dvh!important;min-height:100dvh!important;margin:0!important;padding:0!important;
 box-sizing:border-box!important;background:#09090b!important;border:0!important;border-radius:0!important;
 overflow:hidden!important;display:block!important;opacity:1;transition:opacity .34s ease!important;
}
#player-session-loading[hidden]{display:none!important;visibility:hidden!important;pointer-events:none!important}
#player-session-loading.is-leaving{opacity:0!important;pointer-events:none!important}
#player-session-loading .player-loading-photo{position:absolute;inset:0;background-size:cover;background-position:center center;opacity:0;transform:scale(1.012);transition:opacity .34s cubic-bezier(.4,0,.2,1),transform .54s ease-out}
#player-session-loading .player-loading-photo.is-visible{opacity:1;transform:scale(1)}
#player-session-loading .player-loading-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,8,11,.84) 0%,rgba(7,8,11,.70) 18%,rgba(7,8,11,.50) 46%,rgba(7,8,11,.56) 64%,rgba(7,8,11,.76) 84%,rgba(7,8,11,.88) 100%);pointer-events:none;}
#player-session-loading .player-loading-center{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:min(45vw,172px);display:flex;flex-direction:column;align-items:center;gap:17px;z-index:2}
#player-session-loading .player-loading-logo{display:block;width:100%;height:auto;color:#fff;filter:drop-shadow(0 1px 6px rgba(0,0,0,.24))}
#player-session-loading .player-session-loader{width:14px!important;height:14px!important;box-sizing:border-box;border-width:1.5px!important;border-top-color:#f0f1f3!important;border-right-color:rgba(243,245,247,.28)!important}
#player-session-loading .player-loading-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
#player-session-loading #player-session-retry:not([hidden]){position:absolute;z-index:3;top:calc(48% + 65px);left:50%;transform:translateX(-50%);white-space:nowrap}
#player-session-loading:has(#player-session-retry:not([hidden])) #player-session-loading-text{position:absolute!important;clip:auto!important;overflow:visible!important;width:min(86vw,360px)!important;height:auto!important;top:calc(48% + 39px);left:50%;transform:translateX(-50%);white-space:normal!important;text-align:center;color:#fff}
@media(prefers-reduced-motion:reduce){#player-session-loading,#player-session-loading .player-loading-photo{transition:none!important;transform:none!important}}


/* Jogo and its in-card consumption retain the standard 17px left header inset. */
#overview #day-details .daily-event-card.match-intra-card > summary.daily-meal-head{
 padding-left:17px!important;
}


/* Unify the top segmented controls with the approved Início (Dia/Semana)
   geometry. Início is untouched and its panel has a -9px top offset.
   Menus already has a separate -12px offset, so its selector needs a +3px
   margin. Avaliações uses -9px. Keep hidden recipe-page tabs hidden. */
#player-panel #menus #menus-recipe-switch,
#player-panel #plans #plans-assessments .assessment-tabs{
 display:grid!important;
 align-items:stretch!important;
 gap:3px!important;
 width:100%!important;
 height:38px!important;
 min-height:38px!important;
 max-height:38px!important;
 box-sizing:border-box!important;
 padding:3px!important;
 border:0!important;
 border-radius:999px!important;
 background:#202024!important;
 box-shadow:none!important;
 overflow:hidden!important;
}
#player-panel #menus #menus-recipe-switch{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 margin-top:3px!important;
 margin-bottom:10px!important;
}
#player-panel #menus #menus-recipe-switch[hidden]{
 display:none!important;
}
#player-panel #plans #plans-assessments .assessment-tabs{
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 margin-top:-9px!important;
}
#player-panel #menus #menus-recipe-switch button,
#player-panel #plans #plans-assessments .assessment-tabs button{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 appearance:none!important;
 width:100%!important;
 min-width:0!important;
 height:32px!important;
 min-height:32px!important;
 max-height:32px!important;
 box-sizing:border-box!important;
 padding:4px 8px!important;
 margin:0!important;
 border:0!important;
 border-radius:999px!important;
 background:transparent!important;
 box-shadow:none!important;
 color:#f2f2f5!important;
 font-family:inherit!important;
 font-size:13px!important;
 font-weight:500!important;
 line-height:1.1!important;
}
#player-panel #menus #menus-recipe-switch button[aria-pressed="true"],
#player-panel #plans #plans-assessments .assessment-tabs button[aria-pressed="true"]{
 background:#55555b!important;
 color:#fff!important;
}

/* Daily Planning: a quiet, secondary dish image only inside assigned
   Almoço/Jantar description cards. Existing text-only cards are unchanged. */
#overview #day-details .daily-meal .meal-menu-card.has-dish-photo{
 display:flex!important;
 align-items:center!important;
 justify-content:space-between!important;
 gap:12px!important;
 min-width:0!important;
}
#overview #day-details .meal-menu-card.has-dish-photo .daily-meal-menu-name{
 display:block;
 flex:1 1 auto;
 min-width:0;
 overflow-wrap:anywhere;
}
#overview #day-details .meal-menu-card.has-dish-photo .daily-meal-dish-photo{
 display:block;
 flex:0 0 76px;
 width:76px;
 height:76px;
 max-width:76px;
 object-fit:cover;
 object-position:center;
 border-radius:50%;
 background:transparent;
 margin:0;
}
@media(max-width:380px){
 #overview #day-details .meal-menu-card.has-dish-photo{gap:9px!important;}
 #overview #day-details .meal-menu-card.has-dish-photo .daily-meal-dish-photo{
  flex-basis:64px;width:64px;height:64px;max-width:64px;
 }
}

/* Only assigned daily dish descriptions are interactive; outer meal details,
   plain-text menus, weekly view and the photographed layout stay unchanged. */
#overview #day-details .daily-meal .meal-menu-card.meal-menu-link{
 cursor:pointer;
 -webkit-tap-highlight-color:transparent;
}
#overview #day-details .daily-meal .meal-menu-card.meal-menu-link:focus-visible{
 outline:2px solid currentColor;
 outline-offset:3px;
}
#overview #day-details .daily-meal .meal-menu-card.meal-menu-link:active{
 filter:brightness(1.07);
}

/* Pilot consumption controls */

#overview .consumption-editor select,#overview .consumption-editor input:not([type=checkbox]){box-sizing:border-box;min-height:42px;width:100%;max-width:100%;border:1px solid rgba(130,140,155,.32);border-radius:11px;padding:8px 11px;background:var(--surface,#fff);color:inherit}
#overview .consumption-editor .consumption-food-group{display:grid;gap:8px;margin:6px 0;padding:10px 0;border-bottom:1px solid rgba(130,140,155,.16)}
#overview .consumption-food-line{display:grid;grid-template-columns:20px minmax(0,1fr) 86px auto;align-items:center;gap:9px;font-size:.92rem}
#overview .consumption-food-line input[type=checkbox]{width:17px;height:17px;accent-color:currentColor}
#overview .consumption-food-line input[type=number]{min-width:0}
#overview .consumption-recorded{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;margin:12px;border-radius:12px;background:rgba(100,150,125,.10)}
#overview .consumption-day-summary{display:grid;gap:9px;margin:14px 0;padding:18px;border:1px solid rgba(130,140,155,.20);border-radius:18px;background:rgba(130,140,155,.055)}
#overview .consumption-day-summary progress{width:100%;height:10px;accent-color:#718c82}
#overview .consumption-macro-comparison{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:.88rem}
#overview .consumption-open{margin:10px 12px 14px;padding:9px 16px;border-radius:999px;background:rgba(130,140,155,.10);border:1px solid rgba(130,140,155,.25);color:inherit}
@media(max-width:620px){#overview .consumption-food-line{grid-template-columns:18px minmax(0,1fr) 68px auto;gap:6px;font-size:.84rem}}


/* Jorge pilot: polished, theme-independent consumption editor */
#overview .consumption-editor{position:relative;display:flex;flex-direction:column;gap:13px;margin:16px 10px;padding:14px;border:0;border-radius:20px;color:inherit;box-shadow:none;font-size:14px}
#overview .consumption-editor .consumption-close{align-self:flex-end;display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;font-size:17px;line-height:1}
#overview .consumption-editor .consumption-label{display:flex;flex-direction:column;gap:7px;color:inherit;opacity:.72;font-size:12px;letter-spacing:.02em}
#overview .consumption-editor select,#overview .consumption-editor input:not([type=checkbox]){min-height:42px;width:100%;border:0;border-radius:11px;padding:9px 12px;background:rgba(128,128,128,.18)!important;color:inherit!important;-webkit-text-fill-color:currentColor;box-shadow:none;font-size:16px}
#overview .consumption-editor select option{background:var(--consumption-select-surface,#29292d);color:inherit}
#overview .consumption-editor .consumption-native-mode{display:none}
#overview .consumption-editor .consumption-status-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#overview .consumption-editor .consumption-status-button{min-width:0;min-height:42px;padding:8px 4px;border:1px solid rgba(128,128,128,.25);border-radius:11px;background:rgba(128,128,128,.13);color:inherit;font-size:12px;line-height:1.2}
#overview .consumption-editor .consumption-status-button.active{background:rgba(128,128,128,.26);border-color:rgba(128,128,128,.32);color:inherit;font-weight:700}
#overview .consumption-editor .consumption-foods-root{display:grid;gap:9px}
#overview .consumption-editor .consumption-food-group{margin:0;padding:4px 0 9px;border-bottom:1px solid rgba(215,231,218,.14)}
#overview .consumption-editor .consumption-food-line{display:grid;grid-template-columns:19px minmax(0,1fr) 68px 12px;gap:8px;align-items:center;min-height:48px;color:inherit;font-size:14px}
#overview .consumption-editor .consumption-food-line input[type=checkbox]{width:18px;height:18px;accent-color:#c8e0ce}
#overview .consumption-editor .consumption-food-line input[type=number]{min-height:37px;padding:7px 5px;text-align:right;font-size:13px}
#overview .consumption-editor input:disabled{opacity:.5}
#overview .consumption-editor .consumption-save{min-height:46px;border:0;border-radius:999px;background:#fff;color:#171717;font-weight:700;font-size:14px}
#overview .consumption-editor .consumption-cancel{min-height:46px;border:0;border-radius:999px;background:rgba(128,128,128,.18);color:inherit;font-size:14px}
#overview .consumption-editor .consumption-delete{min-height:38px;border:1px solid #805b57;border-radius:11px;background:transparent;color:#e8c9c4;font-size:13px}
#overview .consumption-editor button{max-width:100%;box-shadow:none}
@media(max-width:620px){#overview .consumption-editor .consumption-food-line{grid-template-columns:18px minmax(0,1fr) 62px 10px;gap:6px}}

/* Consumed energy ring — preserve the original ring and macro columns underneath. */
#overview #day-details .nutrition-donut-summary .nutrition-comparison.has-consumption-ring{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 column-gap:14px!important;row-gap:12px!important;align-items:center!important;
}
#overview #day-details .nutrition-comparison.has-consumption-ring>.nutrition-comparison-heading{grid-column:1/-1!important}
#overview #day-details .nutrition-comparison.has-consumption-ring>.nutrition-comparison-gauge{grid-column:1!important;grid-row:2!important;width:min(100%,166px)!important}
#overview #day-details .nutrition-comparison.has-consumption-ring>.nutrition-consumed-gauge{
 grid-column:2!important;grid-row:2!important;position:relative!important;
 width:min(100%,166px)!important;aspect-ratio:1;margin:auto;
}
#overview #day-details .nutrition-consumed-gauge svg{display:block;width:100%;height:100%;overflow:visible}
#overview #day-details .nutrition-consumed-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#overview #day-details .nutrition-consumed-center strong{font-size:clamp(20px,5vw,32px);font-weight:650;line-height:1.1;color:#f5f6f7}
#overview #day-details .nutrition-consumed-center small{font-size:clamp(13px,3.5vw,19px);font-weight:600;color:#a5efd0}
#overview #day-details .nutrition-comparison.has-consumption-ring>.nutrition-comparison-stats{grid-column:1/-1!important;grid-row:3!important}
#overview #day-details .nutrition-comparison.has-consumption-ring>.nutrition-comparison-macros{
 grid-column:1/-1!important;display:grid!important;
 grid-template-columns:repeat(3,minmax(0,1fr))!important;width:100%!important;
 border-top:1px solid rgba(255,255,255,.15);padding-top:12px!important;
}

@media(max-width:390px){#overview #day-details .nutrition-comparison.has-consumption-ring{column-gap:8px!important}}

/* Keep the two rings stationary when expanding weekly charts; comparison stays in the ring. */
#overview #day-details .nutrition-donut-summary .nutrition-comparison.has-consumption-ring{
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 justify-self:stretch!important;align-self:start!important;
 padding-left:0!important;padding-right:0!important;
 box-sizing:border-box!important;
}
#overview #day-details .nutrition-comparison.has-consumption-ring>.nutrition-comparison-stats{
 display:none!important;
}
#overview #day-details .nutrition-comparison.has-consumption-ring>.nutrition-comparison-macros{
 grid-row:3!important;
}
#overview #day-details .nutrition-comparison.has-consumption-ring>.nutrition-comparison-gauge,
#overview #day-details .nutrition-comparison.has-consumption-ring>.nutrition-consumed-gauge{
 justify-self:center!important;align-self:center!important;
 margin:0!important;width:min(100%,166px)!important;
 transform:none!important;
}
#overview #day-details .nutrition-donut-summary .nutrition-comparison.has-consumption-ring{
 grid-column:1!important;grid-row:1!important;
 grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

/* Discreet saved-consumption indicator in collapsed and expanded meal headers. */
#overview #day-details .daily-meal-head>strong .meal-registered-badge{
 display:inline-flex!important;align-items:center!important;vertical-align:middle!important;
 margin-left:10px!important;padding:4px 9px!important;border-radius:999px!important;
 background:var(--consumption-status-bg,rgba(154,224,191,.20))!important;color:var(--consumption-status-ink,#b9eed2)!important;
 font-size:11px!important;font-weight:500!important;line-height:1.3!important;
 white-space:nowrap!important;letter-spacing:0!important;
}

/* Registered state follows the chosen option, not the meal heading. */
#overview #day-details .player-meal-option-subcard .plan-option-label small .meal-registered-badge,
#overview #day-details .single-meal-option .meal-registered-badge{
 display:inline-flex!important;align-items:center!important;vertical-align:middle!important;
 margin-left:9px!important;padding:3px 9px!important;border-radius:999px!important;
 background:rgba(154,224,191,.20)!important;color:#b9eed2!important;
 font-size:11px!important;font-weight:500!important;line-height:1.3!important;white-space:nowrap!important;
}

/* Badge belongs to meal when closed, and to the recorded option when open. */
#overview #day-details .daily-meal:not([open]) .meal-registered-meal-badge{display:inline-flex!important}
#overview #day-details .daily-meal[open] .meal-registered-meal-badge{display:none!important}
#overview #day-details .daily-meal:not([open]) .player-meal-option-subcard .meal-registered-badge{display:none!important}

#overview #day-details .player-meal-option-subcard .plan-option-label small{display:flex;align-items:center;flex-wrap:wrap;gap:5px}

/* Energy consumption ring: understated neutral percentage. */
#overview #day-details .nutrition-consumed-center small{
 color:var(--text-secondary,#aeb2ba)!important;
 font-weight:400!important;
}
/* Option number remains its own row; badges sit below without collision. */
#overview #day-details .player-meal-option-subcard .plan-option-label small{
 display:block!important;
}

/* Registration pills belong on the option heading line, near the chevron. */
#overview #day-details .player-meal-option-subcard .meal-option-heading-row{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 width:100%!important;min-width:0!important;gap:12px!important;
}
#overview #day-details .player-meal-option-subcard .meal-option-heading-row>small{
 flex:0 0 auto!important;display:inline-block!important;
}
#overview #day-details .player-meal-option-subcard .meal-option-heading-row .meal-registered-badge{
 background:rgba(154,224,191,.20)!important;color:#b9eed2!important;
 border:0!important;box-shadow:none!important;
}
@media(max-width:380px){
 #overview #day-details .player-meal-option-subcard .meal-option-heading-row{gap:7px!important}
}

/* Keep option number and both pills in one non-overlapping first row. */
#overview #day-details details.player-meal-option-subcard .plan-option-label{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 width:100%!important;min-width:0!important;gap:6px!important;
}
#overview #day-details details.player-meal-option-subcard .plan-option-label>.meal-option-heading-row{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:space-between!important;flex-wrap:nowrap!important;
 width:100%!important;gap:12px!important;order:0!important;
}
#overview #day-details details.player-meal-option-subcard .plan-option-label>.meal-option-heading-row>small{
 display:inline-block!important;flex:0 0 auto!important;order:0!important;
 margin:0!important;padding:0!important;white-space:nowrap!important;
}
#overview #day-details details.player-meal-option-subcard .plan-option-label>strong{
 order:1!important;display:block!important;width:100%!important;
}

/* Free-text CT menus use the existing meal/category card, preserving menu line breaks. */
#overview #day-details .daily-meal-menu-name.menu-free-text-value,
#menus .menu-entry-body .value.menu-free-text-value{white-space:pre-wrap!important;overflow-wrap:anywhere;}

/* Canonical recorded-consumption pills: same geometry and no borders on edit/undo. */
#overview #day-details .consumption-actions--recorded{
 box-sizing:border-box;display:flex;flex-flow:row wrap;align-items:center;justify-content:flex-start;
 position:relative;gap:7px;width:100%;min-width:0;margin:18px 0 0;padding:0;
}
#overview #day-details .consumption-actions--recorded > .action-pill{
 box-sizing:border-box;appearance:none;display:inline-flex!important;align-items:center;justify-content:center;
 flex:0 0 auto;width:auto;min-width:0;height:25px;min-height:25px;max-height:25px;
 margin:0;padding:0 10px;border:0!important;border-radius:999px;box-shadow:none!important;
 color:inherit;background:transparent;font-family:inherit;font-size:11px;font-weight:400;line-height:1;white-space:nowrap;
}
#overview #day-details .consumption-actions--recorded > .action-pill--registered{
 background:var(--consumption-status-bg)!important;color:var(--consumption-status-ink)!important;
}
#overview #day-details .consumption-actions--recorded > .action-pill--secondary{
 background:var(--consumption-secondary-bg)!important;border:0!important;color:inherit!important;cursor:pointer;
}
#overview #day-details .consumption-actions--recorded > .action-pill--secondary:focus-visible{
 outline:2px solid currentColor!important;outline-offset:2px;
}
#overview #day-details .consumption-actions--recorded > .action-pill--secondary:disabled{opacity:.55;cursor:default}
#overview #day-details .consumption-actions--recorded .action-pill--registered .consumption-action-icon{width:14px;height:14px;flex-basis:14px}
#overview #day-details .consumption-actions--recorded .consumption-color-note{flex:0 0 100%;font-size:11px;line-height:1.35;opacity:.75}
#overview #day-details .single-meal-option > .consumption-actions--recorded{margin:0 0 15px}
#overview #day-details :is(.peri-meal,.match-intra-card)[open] > .consumption-actions--recorded{margin:12px 17px 18px;width:calc(100% - 34px)}
#overview #day-details :is(.peri-meal,.match-intra-card)[open] > details > .consumption-actions--recorded{margin:12px 0 18px;width:100%}
/* Feedback is laid out under the pills. The success check doesn't create floating copy. */
#overview #day-details .consumption-feedback{
 position:static!important;flex:0 0 100%;min-width:0;margin:5px 0 0!important;
 font-size:12px;font-weight:400;line-height:1.4;text-align:left!important;transform:none!important;
}
#overview #day-details .consumption-feedback:empty{display:none!important}

/* Display registered state on collapsed option; expanded option keeps actions below foods. */
#overview #day-details details.player-meal-option-subcard summary .meal-registered-badge-closed{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 align-self:flex-start!important;max-width:max-content!important;flex:0 0 auto!important;
 margin:6px 0 0!important;padding:4px 10px!important;border:0!important;
 border-radius:999px!important;background:rgba(154,224,191,.20)!important;
 color:#b9eed2!important;font-size:11px!important;line-height:1.15!important;
 font-weight:400!important;white-space:nowrap!important;box-shadow:none!important;
}
#overview #day-details details.player-meal-option-subcard[open] summary .meal-registered-badge-closed{display:none!important;}

/* Closed option: option number, title, then registration badge. */
#overview #day-details details.player-meal-option-subcard summary .plan-option-label>.meal-registered-badge-closed{order:2!important;}

/* Compact quick consumption controls, with a brief green confirmation circle. */
#overview #day-details .consumption-quick-actions{gap:10px!important;}
#overview #day-details .consumption-quick-actions .consumption-quick-confirm,
#overview #day-details .consumption-quick-actions .consumption-quick-edit{font-size:calc(1em - 2px)!important;min-height:42px!important;transition:background .22s ease,border-radius .3s ease,width .3s ease,transform .3s ease!important;}
#overview #day-details .consumption-quick-actions .consumption-quick-confirm.consumption-confirm-success{background:#b9e6ce!important;color:#176044!important;border-radius:999px!important;width:46px!important;max-width:46px!important;min-width:46px!important;flex:0 0 46px!important;margin-inline:auto!important;font-size:24px!important;}

/* Meal completion reward: truly circular check and restrained confetti. */
#overview #day-details .consumption-quick-actions .consumption-quick-confirm.consumption-confirm-success{
  position:relative!important;isolation:isolate!important;overflow:visible!important;
  width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;
  max-width:46px!important;max-height:46px!important;flex:0 0 46px!important;
  padding:0!important;aspect-ratio:1/1!important;border-radius:50%!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  line-height:1!important;transform-origin:center!important;
  animation:mile-check-pop .68s cubic-bezier(.2,1.5,.4,1) both!important;
}
#overview #day-details .consumption-confetti-burst{position:absolute;inset:0;pointer-events:none;z-index:2;}
#overview #day-details .consumption-confetti-burst i{
  position:absolute;left:50%;top:50%;width:5px;height:9px;border-radius:2px;
  background:#b9e6ce;opacity:0;transform:translate(-50%,-50%) rotate(var(--angle));
  animation:mile-confetti .7s ease-out var(--delay) forwards;
}
#overview #day-details .consumption-confetti-burst i:nth-child(3n){background:#fff;width:4px;height:4px;border-radius:50%;}
#overview #day-details .consumption-confetti-burst i:nth-child(3n + 1){background:#72d4a5;}
@keyframes mile-check-pop{0%{transform:scale(.75)}35%{transform:scale(1.22)}60%{transform:scale(.93)}80%{transform:scale(1.06)}100%{transform:scale(1)}}
@keyframes mile-confetti{0%{opacity:0;transform:translate(-50%,-50%) rotate(var(--angle)) scale(.4)}20%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) rotate(var(--angle)) translateY(calc(-1 * var(--distance))) rotate(100deg) scale(.7)}}
@media(prefers-reduced-motion:reduce){#overview #day-details .consumption-quick-actions .consumption-quick-confirm.consumption-confirm-success{animation:none!important}#overview #day-details .consumption-confetti-burst{display:none!important}}


/* v segmented 1: App Store-like moving selection pill */
#menus-recipe-switch.mile-segment-animated,#plans-assessments .assessment-tabs.mile-segment-animated{position:relative!important;isolation:isolate}
.mile-segment-animated>.mile-segment-indicator{
 position:absolute!important;left:0;top:0;z-index:0;pointer-events:none;
 border-radius:999px;background:#55555b;opacity:0;
 transition:transform .32s cubic-bezier(.22,1,.36,1),width .32s cubic-bezier(.22,1,.36,1),height .32s cubic-bezier(.22,1,.36,1),opacity .12s ease;
 will-change:transform;
}
.mile-segment-animated>.mile-segment-indicator.mile-segment-ready{opacity:1}
.mile-segment-animated>button{position:relative!important;z-index:1!important;transition:color .18s ease!important}
#menus-recipe-switch.mile-segment-animated>button[aria-pressed="true"],#plans-assessments .assessment-tabs.mile-segment-animated>button[aria-pressed="true"]{background:transparent!important;box-shadow:none!important}
@media(prefers-reduced-motion:reduce){.mile-segment-animated>.mile-segment-indicator{transition:none!important}}


/* v segmented 2: elastic upward lift, like App Store segmented selection */
.mile-segment-animated>.mile-segment-indicator{background:transparent!important}
.mile-segment-animated>.mile-segment-indicator::before{
 content:"";position:absolute;inset:0;border-radius:inherit;background:#55555b;
 transform-origin:center center;pointer-events:none;
}
.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::before{
 animation:mile-segment-elastic-lift .39s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes mile-segment-elastic-lift{
 0%{transform:translateY(0) scale(1,1)}
 32%{transform:translateY(-3px) scale(1.045,1.17)}
 60%{transform:translateY(-1px) scale(1.015,1.06)}
 82%{transform:translateY(.5px) scale(.995,.985)}
 100%{transform:translateY(0) scale(1,1)}
}
@media(prefers-reduced-motion:reduce){.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::before{animation:none!important}}


/* v segmented 3: lighter neutral lift highlight in dark mode */
.mile-segment-animated>.mile-segment-indicator::before{background:#66666c!important}
.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::before{
 animation:mile-segment-elastic-lift .39s cubic-bezier(.2,.8,.2,1) both,mile-segment-light-flash .39s ease-out both;
}
@keyframes mile-segment-light-flash{
 0%{background-color:#66666c}
 32%{background-color:#929298}
 62%{background-color:#77777d}
 100%{background-color:#66666c}
}
@media(prefers-reduced-motion:reduce){.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::before{animation:none!important}}


/* v segmented 4: Apple-like elastic outline only; selected fill stays still */
.mile-segment-animated>.mile-segment-indicator::before{
 background:#66666c!important;
 animation:none!important;
 transform:none!important;
}
.mile-segment-animated>.mile-segment-indicator::after{
 content:"";position:absolute;inset:0;border:1.5px solid rgba(205,205,211,.88);
 border-radius:inherit;box-sizing:border-box;background:transparent!important;
 pointer-events:none;opacity:0;transform-origin:center;
}
.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::after{
 animation:mile-segment-outline-lift .39s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes mile-segment-outline-lift{
 0%{opacity:0;transform:translateY(0) scale(1)}
 18%{opacity:.8}
 34%{opacity:1;transform:translateY(-3px) scale(1.045,1.17)}
 65%{opacity:.75;transform:translateY(-1px) scale(1.015,1.06)}
 100%{opacity:0;transform:translateY(0) scale(1)}
}
@media(prefers-reduced-motion:reduce){
 .mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::after{animation:none!important}
}


/* v segmented 5: wider, subtler elastic outline */
.mile-segment-animated>.mile-segment-indicator::after{
 border-color:rgba(153,153,160,.72)!important;
 border-width:1.4px!important;
}
@keyframes mile-segment-outline-lift{
 0%{opacity:0;transform:translateY(0) scale(1)}
 16%{opacity:.7}
 36%{opacity:1;transform:translateY(-5px) scale(1.11,1.23)}
 66%{opacity:.72;transform:translateY(-1.5px) scale(1.035,1.075)}
 100%{opacity:0;transform:translateY(0) scale(1)}
}


/* v segmented 6: symmetric elastic outline, no fill */
.mile-segment-animated>.mile-segment-indicator::after{
 background:transparent!important;
 border:1px solid rgba(153,153,160,.72)!important;
}
@keyframes mile-segment-outline-lift{
 0%{opacity:0;transform:translateY(0) scale(1)}
 16%{opacity:.7}
 36%{opacity:1;transform:translateY(0) scale(1.11,1.30)}
 66%{opacity:.72;transform:translateY(0) scale(1.035,1.09)}
 100%{opacity:0;transform:translateY(0) scale(1)}
}


/* v segmented 7: synchronize selected-fill color with outline spring.
   The elastic outline remains transparent; only the static selection fill fades. */
.mile-segment-animated>.mile-segment-indicator::before{
 background-color:#66666c!important;
}
.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::before{
 animation:mile-segment-selection-tone .42s ease-in-out both!important;
}
@keyframes mile-segment-selection-tone{
 0%{background-color:#515157}
 24%{background-color:#59595f}
 52%{background-color:#626268}
 100%{background-color:#66666c}
}
.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::after{
 animation-duration:.42s!important;
}
.mile-segment-animated>button{transition:color .34s ease!important}
@media(prefers-reduced-motion:reduce){
 .mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::before{animation:none!important}
}


/* v bottom-nav spring: reuse the segmented selector motion and tone */
#player-panel #tabs.mile-segment-animated{position:fixed!important;isolation:isolate}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator{
 position:absolute!important;z-index:0!important;pointer-events:none!important;
 border-radius:999px!important;opacity:0;
}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator.mile-segment-ready{opacity:1}
#player-panel #tabs.mile-segment-animated>button{position:relative!important;z-index:1!important}
#player-panel #tabs.mile-segment-animated>button[aria-pressed="true"]{
 background:transparent!important;box-shadow:none!important;
}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator::before{
 background:rgba(215,215,225,.23)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.12)!important;
}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::before{
 animation:mile-bottom-nav-tone .42s ease-in-out both!important;
}
@keyframes mile-bottom-nav-tone{
 0%{background-color:rgba(215,215,225,.13)}
 52%{background-color:rgba(215,215,225,.19)}
 100%{background-color:rgba(215,215,225,.23)}
}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator::after{
 border:1px solid rgba(153,153,160,.72)!important;background:transparent!important;
}
@media(prefers-reduced-motion:reduce){
 #player-panel #tabs.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::before{animation:none!important}
}


/* Liquid-glass-inspired bottom navigation, dark theme. */
#player-panel #tabs{
 background:linear-gradient(155deg,rgba(90,91,100,.29),rgba(35,36,43,.48) 47%,rgba(30,31,38,.60))!important;
 -webkit-backdrop-filter:blur(30px) saturate(165%) brightness(1.08)!important;
 backdrop-filter:blur(30px) saturate(165%) brightness(1.08)!important;
 border:1px solid rgba(234,236,244,.26)!important;
 box-shadow:0 14px 40px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.30),inset 0 -1px 0 rgba(255,255,255,.055),0 0 0 .5px rgba(255,255,255,.07)!important;
}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator::before{
 background:linear-gradient(155deg,rgba(237,240,247,.29),rgba(190,194,208,.15))!important;
 border:1px solid rgba(255,255,255,.24);
 box-sizing:border-box;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 3px 12px rgba(0,0,0,.11)!important;
}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator.mile-segment-bounce::before{
 animation:mile-liquid-nav-tone .42s ease-in-out both!important;
}
@keyframes mile-liquid-nav-tone{
 0%{opacity:.58;filter:brightness(.85)}
 55%{opacity:.85;filter:brightness(1.14)}
 100%{opacity:1;filter:brightness(1)}
}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator::after{
 border:1px solid rgba(190,194,203,.62)!important;
 background:transparent!important;
}
@supports not ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))){
 #player-panel #tabs{background:rgba(42,43,49,.94)!important}
}
@media(prefers-reduced-transparency:reduce){
 #player-panel #tabs{background:rgba(45,46,52,.95)!important}
}


/* Liquid Glass refinement: hairline borders only, preserve transparency and motion. */
#player-panel #tabs{
 border-width:.5px!important;
 border-color:rgba(234,236,244,.18)!important;
 box-shadow:0 14px 40px rgba(0,0,0,.30),inset 0 .5px 0 rgba(255,255,255,.20),inset 0 -.5px 0 rgba(255,255,255,.035)!important;
}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator::before{
 border-width:.5px!important;
 border-color:rgba(255,255,255,.16)!important;
 box-shadow:inset 0 .5px 0 rgba(255,255,255,.23),0 3px 12px rgba(0,0,0,.11)!important;
}
#player-panel #tabs.mile-segment-animated>.mile-segment-indicator::after{
 border-width:.5px!important;
 border-color:rgba(190,194,203,.48)!important;
}


/* Interactive daily pager: neighboring day follows the finger. */
#overview{overflow-x:clip}
#overview #day-details{position:relative;will-change:transform;touch-action:pan-y}
#overview .mile-day-swipe-preview{
 position:absolute;left:0;right:0;top:0;min-height:330px;
 pointer-events:none;z-index:1;box-sizing:border-box;
 padding:18px 14px;border-radius:18px;
 background:var(--card,#242b27);color:var(--text,#f0eee9);
 will-change:transform;overflow:hidden;
}
#overview .mile-day-swipe-preview-heading{font-size:15px;font-weight:600;text-transform:capitalize;margin-bottom:18px}
#overview .mile-day-swipe-preview-skeleton{display:grid;gap:12px}
#overview .mile-day-swipe-preview-skeleton>div{height:76px;border-radius:14px;background:rgba(155,175,165,.10);border:1px solid rgba(200,220,205,.07)}
@media(prefers-reduced-motion:reduce){
 #overview #day-details,#overview .mile-day-swipe-preview{transition:none!important}
}


/* Daily swipe: faithful structural skeleton aligned to the real daily cards. */
#overview .mile-day-swipe-preview{
 right:auto!important;min-height:0!important;padding:0!important;
 border-radius:0!important;background:transparent!important;
 color:inherit!important;box-shadow:none!important;
}
#overview .mile-day-swipe-preview-skeleton{display:flex!important;flex-direction:column;gap:16px!important}
#overview .mile-swipe-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;min-height:145px;padding:8px 0 14px}
#overview .mile-swipe-week-day{display:flex;align-items:center;flex-direction:column;justify-content:space-around;color:rgba(210,213,219,.57);font-size:13px}
#overview .mile-swipe-week-day strong{font-size:23px;color:rgba(225,227,231,.67)}
#overview .mile-swipe-week-day small{font-size:14px;color:rgba(185,190,197,.4)}
#overview .mile-swipe-week-day.selected strong{color:#e9e9ed}
#overview .mile-swipe-nutrition{background:#1b1b1e;border-radius:18px;min-height:275px;padding:24px 20px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}
#overview .mile-swipe-ring{width:170px;height:170px;border:15px solid rgba(169,239,209,.15);border-top-color:rgba(169,239,209,.43);border-right-color:rgba(169,239,209,.28);border-radius:50%;display:grid;place-items:center;box-sizing:border-box}
#overview .mile-swipe-ring-inner{display:grid;gap:9px;justify-items:center}
#overview .mile-swipe-ring-inner span{height:13px;width:60px;border-radius:10px;background:rgba(210,214,220,.2)}
#overview .mile-swipe-ring-inner span:last-child{width:38px;height:9px;opacity:.6}
#overview .mile-swipe-macros{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;width:100%;padding-top:14px;border-top:1px solid rgba(255,255,255,.09)}
#overview .mile-swipe-macros i{height:15px;border-radius:8px;background:rgba(200,207,211,.15)}
#overview .mile-swipe-weight{min-height:70px;border-radius:15px;background:#292b31;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
#overview .mile-swipe-weight span{height:12px;width:80px;border-radius:7px;background:rgba(220,222,227,.16)}
#overview .mile-swipe-weight span:last-child{width:48px;height:8px}
#overview .mile-swipe-meal{min-height:85px;border-radius:17px;background:rgba(146,111,38,.48);padding:18px;display:flex;align-items:center;gap:12px}
#overview .mile-swipe-meal:nth-child(2n){background:rgba(31,94,136,.54)}
#overview .mile-swipe-meal-label{width:48%;height:15px;border-radius:8px;background:rgba(245,237,211,.18)}
#overview .mile-swipe-meal-energy{width:18%;height:13px;margin-left:auto;border-radius:8px;background:rgba(245,237,211,.14)}
#overview .mile-swipe-meal-chevron{font-size:24px;color:rgba(240,238,229,.4)}


/* Daily pager v4: use identical real-card geometry, never an independent layout. */
#overview .mile-day-swipe-preview-skeleton{
 display:block!important;gap:0!important;width:100%;
}
#overview .mile-day-swipe-preview-skeleton,
#overview .mile-day-swipe-preview-skeleton *{
 pointer-events:none!important;
}
#overview .mile-day-swipe-preview-skeleton *{
 color:transparent!important;
 text-shadow:none!important;
 caret-color:transparent!important;
}
#overview .mile-day-swipe-preview-skeleton svg,
#overview .mile-day-swipe-preview-skeleton img{
 opacity:.14!important;
}
#overview .mile-day-swipe-preview-skeleton button,
#overview .mile-day-swipe-preview-skeleton input{
 visibility:hidden!important;
}
#overview .mile-day-swipe-preview-skeleton .consumption-editor{
 display:none!important;
}

/* Calendar date selection: moving circle owns the fill until it settles. */
:is(#week-strip,#menu-week-strip) .week-day.selected .day-number.mile-calendar-arriving{background:transparent!important}

/* Date digits stay visible throughout the moving-circle animation. */
:is(#week-strip,#menu-week-strip) .week-day .day-number{position:relative;z-index:2}


/* Approved nutritional summary: medium-weight white title and slightly stronger rings. */
#overview #day-details .nutrition-comparison-heading{
 color:#f5f5f7!important;font-weight:500!important;
}
#overview #day-details .nutrition-comparison-gauge svg,
#overview #day-details .nutrition-consumed-gauge svg{overflow:visible}
/* During weekly horizontal gestures retain the existing week cards and shadows. */
#overview #weekly-view{touch-action:pan-y}

/* Weight history: subdued caption and icon-only edit action. */
#overview .daily-weight-chart-heading>strong{
 color:#939397!important;font-weight:400!important;
}
#overview .daily-weight-chart-heading .daily-weight-edit-icon{
 display:grid!important;place-items:center!important;
 width:36px!important;height:36px!important;min-width:36px!important;
 padding:8px!important;border:0!important;border-radius:50%!important;
 background:transparent!important;color:#d9dce2!important;
}
#overview .daily-weight-chart-heading .daily-weight-edit-icon svg{width:20px;height:20px;display:block}
/* Keep the floating navigation anchored when expanded weight panels change page height. */
#player-panel #tabs,
#player-panel #tabs.tabs-compact{
 position:fixed!important;
 bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
 transition-property:padding,left,right,border-radius,background-color,box-shadow!important;
}

/* Compact expanded weight card: chart begins immediately below header. */
#overview .daily-weight-panel{border-top:0!important;padding:8px 17px 12px!important}
#overview .daily-weight-chart-surface{position:relative}
#overview .daily-weight-chart-surface>.daily-weight-edit-icon{
 position:absolute!important;top:12px;right:12px;z-index:2;
 display:grid!important;place-items:center!important;width:36px!important;height:36px!important;
 padding:8px!important;border:0!important;border-radius:50%!important;
 background:transparent!important;color:#d9dce2!important;
}
#overview .daily-weight-chart-surface>.daily-weight-edit-icon svg{width:20px!important;height:20px!important;display:block}
#overview .daily-weight-chart-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 8px 3px}
#overview .daily-weight-chart-period{font-size:11px;font-weight:400;color:#939397}
#overview .daily-weight-chart-footer .daily-weight-chart-average{margin:0;text-align:right}

/* Jorge consumption pilot — single authoritative layout (no competing media overrides). */
#overview #day-details .nutrition-comparison.consumption-concentric{
 display:grid!important;grid-template-columns:minmax(0,300px) minmax(0,1fr)!important;
 align-items:center!important;column-gap:20px!important;row-gap:0!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 position:relative!important;box-sizing:border-box!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.nutrition-comparison-heading,
#overview #day-details .nutrition-comparison.consumption-concentric>.nutrition-comparison-gauge,
#overview #day-details .nutrition-comparison.consumption-concentric>.nutrition-consumed-gauge,
#overview #day-details .nutrition-comparison.consumption-concentric>.nutrition-comparison-macros,
#overview #day-details .nutrition-comparison.consumption-concentric>.nutrition-comparison-stats{display:none!important}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-rings{
 display:block!important;grid-column:1!important;grid-row:1!important;
 aspect-ratio:1!important;
 
}
#overview #day-details .consumption-concentric-rings svg{display:block;width:100%;height:100%;overflow:visible}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-figures{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 grid-column:2!important;grid-row:1!important;gap:5px!important;
 
}
#overview #day-details .consumption-concentric-energy{
 display:flex!important;align-items:baseline!important;flex-wrap:nowrap!important;
 gap:0!important;white-space:nowrap!important;
 line-height:1.12!important;letter-spacing:-.035em!important;
}
#overview #day-details .consumption-concentric-energy strong{color:#72ebbd!important;font-weight:700!important}
#overview #day-details .consumption-concentric-energy>span:not(.consumption-concentric-unit){color:#d7d6e1!important;font-weight:500!important}
#overview #day-details .consumption-concentric-energy>.consumption-concentric-unit{
 color:#b9b9c5!important;font-size:.48em!important;font-weight:400!important;
 margin-left:9px!important;letter-spacing:0!important;
}
#overview #day-details .consumption-concentric-perkg{font-size:clamp(11px,1.5vw,17px)!important;color:#b7b6c2!important;margin:0!important}
#overview #day-details .consumption-concentric-trends{
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
 justify-content:flex-start!important;align-items:center!important;
 width:fit-content!important;max-width:100%!important;gap:10px!important;margin:10px 0 12px!important;
}
#overview #day-details .consumption-concentric-trend{
 display:inline-flex!important;flex:0 1 auto!important;width:auto!important;min-width:0!important;
 align-items:center!important;
 
 font-size:clamp(10px,1.3vw,14px)!important;
}
#overview #day-details .consumption-concentric-trend span{color:#bdbdc7!important;white-space:nowrap!important}
#overview #day-details .consumption-concentric-trend strong{color:#c8c8d0!important;white-space:nowrap!important;font-weight:650!important}
#overview #day-details .consumption-concentric-trend.above strong{color:#72ebbd!important}
#overview #day-details .consumption-concentric-trend.below strong{color:#ff9d70!important}
#overview #day-details .consumption-concentric-macros{
 display:flex!important;flex-direction:column!important;width:100%!important;min-width:0!important;
 gap:12px!important;border-top:1px solid rgba(255,255,255,.14)!important;
 padding-top:15px!important;margin:0!important;
}
#overview #day-details .consumption-concentric-macro{
 display:grid!important;
 align-items:baseline!important;column-gap:9px!important;row-gap:0!important;min-width:0!important;
}
#overview #day-details .consumption-concentric-macro>span{font-size:clamp(12px,1.45vw,17px)!important;color:#c5c4cf!important}
#overview #day-details .consumption-concentric-macro>strong{
 font-size:clamp(14px,1.85vw,23px)!important;font-weight:600!important;white-space:nowrap!important;
}
#overview #day-details .consumption-concentric-macro>small{
 grid-column:3!important;grid-row:1!important;text-align:right!important;
 font-size:clamp(10px,1.3vw,15px)!important;color:#aaaab7!important;white-space:nowrap!important;
}
#overview #day-details .consumption-concentric-macro .consumption-concentric-prescribed,
#overview #day-details .consumption-concentric-macro .consumption-concentric-unit{color:#b9b9c5!important;font-weight:400!important}
#overview #day-details .consumption-concentric-macro.protein .consumption-concentric-actual{color:#45baff!important}
#overview #day-details .consumption-concentric-macro.carbs .consumption-concentric-actual{color:#ff9d70!important}
#overview #day-details .consumption-concentric-macro.fat .consumption-concentric-actual{color:#f4d778!important}

@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric{
  grid-template-columns:minmax(0,.75fr) minmax(0,1.65fr)!important;column-gap:9px!important;
 }
 #overview #day-details .consumption-concentric-energy{font-size:clamp(18px,4.5vw,29px)!important}
 #overview #day-details .consumption-concentric-trends{gap:5px!important;margin:6px 0!important}
 #overview #day-details .consumption-concentric-trend{gap:5px!important;padding:5px 7px!important;font-size:10px!important}
 #overview #day-details .consumption-concentric-macros{gap:6px!important;padding-top:8px!important}
 #overview #day-details .consumption-concentric-macro{
  column-gap:4px!important;
 }
 #overview #day-details .consumption-concentric-macro>span{font-size:11px!important}
 #overview #day-details .consumption-concentric-macro>strong{font-size:12px!important}
 #overview #day-details .consumption-concentric-macro>small{
  grid-column:3!important;grid-row:1!important;text-align:right!important;font-size:clamp(8px,2vw,10px)!important;
 }
}

/* Macro rows: enforce three side-by-side cells independent of inherited grid rules. */
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>span{grid-column:1!important;grid-row:1!important;min-width:0!important}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>strong{min-width:0!important}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>small{grid-column:3!important;grid-row:1!important;min-width:0!important;align-self:baseline!important}


/* Jorge mobile polish: smaller rings and an independent, accessible chevron. */



/* Jorge mobile refinement: optical spacing and one-pixel legibility increase. */
@media(max-width:520px){
 
 
 
 #overview #day-details .consumption-concentric-energy{font-size:clamp(19px,4.5vw,30px)!important}
 #overview #day-details .consumption-concentric-energy>span:not(.consumption-concentric-unit){margin-left:6px!important}
 #overview #day-details .consumption-concentric-energy>.consumption-concentric-unit{font-size:calc(.48em + 1px)!important}
 #overview #day-details .consumption-concentric-perkg{font-size:calc(clamp(11px,1.5vw,17px) + 1px)!important}
 #overview #day-details .consumption-concentric-macro>span{font-size:12px!important}
 #overview #day-details .consumption-concentric-macro>strong{font-size:13px!important}
 #overview #day-details .consumption-concentric-macro>small{font-size:calc(clamp(8px,2vw,10px) + 1px)!important}
 #overview #day-details .consumption-concentric-trend span{font-size:11px!important}
 #overview #day-details .consumption-concentric-trend strong{font-size:10px!important}
}


/* Jorge mobile final spacing: equal optical gap on both sides of the ring. */
@media(max-width:520px){
 
 
 
 #overview #day-details .consumption-concentric-energy{
  font-size:clamp(22px,calc(4.5vw + 3px),33px)!important;
 }
}


/* Jorge mobile: use the ring's real width, not fractional tracks that reserve empty space.
   The macro columns must not retain desktop minimum widths inside a narrow phone. */
@media(max-width:520px){
 
 
 
 #overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro{
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr) minmax(0,1.15fr)!important;
  column-gap:4px!important;
 }
 #overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>strong{
  font-size:12px!important;letter-spacing:-.02em!important;
 }
 #overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>small{
  font-size:10px!important;letter-spacing:-.025em!important;
 }
}


/* Jorge desktop/tablet: content-led columns, never a 50/50 split. */
@media(min-width:521px){
 #overview #day-details .nutrition-comparison.consumption-concentric{
  grid-template-columns:minmax(0,300px) minmax(0,1fr)!important;
  
 }
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-rings{
  justify-self:start!important;
  
 }
 
}


/* Jorge: mobile composition is a single centered flex group, not two grid halves.
   Explicit flex-basis prevents a hidden grid track or fractional width from creating dead space. */
@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:center!important;
  gap:10px!important;column-gap:10px!important;
  padding-bottom:20px!important;
 }
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-rings{
  
  
  margin:0!important;
 }
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-figures{
  flex:1 1 0!important;min-width:0!important;width:auto!important;
  max-width:none!important;align-self:center!important;
  margin:0!important;
 }
 
}


/* Jorge phone: optical correction of actual rendered gap. The text column is
   positioned independently of the remaining inherited grid/flex allocation. */
@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-rings{
  transform:translateX(9px)!important;
 }
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-figures{
  
  position:relative!important;z-index:1!important;
 }
}


/* Jorge mobile: enlarge the concentric rings to match the visual height of the text block.
   Preserve the compact composition approved in the previous iteration. */
@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-rings{
  flex:0 0 145px!important;width:145px!important;min-width:145px!important;
  max-width:145px!important;align-self:center!important;
 }
 
}


/* Jorge: compact nutrition units switch in the energy heading. */
#overview #day-details .consumption-concentric-energy-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important}
#overview #day-details .consumption-concentric-energy-row .consumption-concentric-energy{min-width:0!important}
#overview #day-details .consumption-concentric-unit-switch{display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;padding:2px!important;border-radius:999px!important;background:rgba(255,255,255,.07)!important;gap:2px!important}
#overview #day-details .consumption-concentric-unit-switch button{border:0!important;border-radius:999px!important;background:transparent!important;color:#bcbac6!important;padding:4px 7px!important;font-size:11px!important;line-height:1.2!important;cursor:pointer!important;white-space:nowrap!important}
#overview #day-details .consumption-concentric-unit-switch button.active{background:#5a5962!important;color:white!important}
#overview #day-details .consumption-concentric-unit-switch button:disabled{opacity:.35!important;cursor:default!important}
#overview #day-details .consumption-concentric-macro{grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>strong{grid-row:1!important}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>small{display:none!important}
#overview #day-details .consumption-concentric-perkg{display:none!important}
@media(max-width:520px){
 #overview #day-details .consumption-concentric-energy-row{gap:4px!important}
 #overview #day-details .consumption-concentric-unit-switch button{font-size:9px!important;padding:4px 5px!important}
 #overview #day-details .consumption-concentric-energy-row .consumption-concentric-energy{font-size:clamp(15px,3.9vw,25px)!important}
 #overview #day-details .consumption-concentric-energy-row .consumption-concentric-energy>.consumption-concentric-unit{margin-left:3px!important}
 #overview #day-details .consumption-concentric-macro{grid-template-columns:minmax(0,1fr) auto!important;gap:4px!important}
}


/* Jorge only (consumption-concentric): enlarged typography and footer unit selector. */
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch{
 position:absolute!important;right:44px!important;bottom:-7px!important;z-index:3!important;
 display:inline-flex!important;align-items:center!important;gap:3px!important;
 padding:3px!important;border-radius:999px!important;
 background:rgba(255,255,255,.075)!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch button{
 font-size:14px!important;line-height:1.2!important;padding:7px 11px!important;min-height:32px!important;
}
#overview #day-details .consumption-concentric-energy-row .consumption-concentric-energy{
 font-size:clamp(29px,4vw,54px)!important;
}
#overview #day-details .consumption-concentric-energy .consumption-concentric-unit{font-size:.52em!important}
#overview #day-details .consumption-concentric-trend{font-size:clamp(12px,1.3vw,16px)!important}
#overview #day-details .consumption-concentric-macro>span{font-size:clamp(14px,1.45vw,19px)!important}
#overview #day-details .consumption-concentric-macro>strong{font-size:clamp(16px,1.85vw,25px)!important}
@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric{padding-bottom:46px!important}
 #overview #day-details .consumption-concentric-energy-row .consumption-concentric-energy{font-size:clamp(17px,3.9vw,27px)!important}
 #overview #day-details .consumption-concentric-trend{font-size:12px!important}
 #overview #day-details .consumption-concentric-macro>span{font-size:13px!important}
 #overview #day-details .consumption-concentric-macro>strong{font-size:14px!important}
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch{bottom:0!important}
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch button{font-size:13px!important;padding:6px 9px!important;min-height:32px!important}
 
}


/* Jorge: compact direction control, no footer pill; larger readable values. */
#overview #day-details .nutrition-comparison.consumption-concentric{position:relative!important}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch{
 
 gap:0!important;
 
 
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch .consumption-concentric-unit-arrow{
 
 
 border-radius:50%!important;
 color:#c6c5ce!important;font-weight:400!important;line-height:1!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch .consumption-concentric-unit-arrow:disabled{opacity:.35!important}
#overview #day-details .consumption-concentric-energy-row .consumption-concentric-energy{font-size:clamp(32px,4.25vw,57px)!important}
#overview #day-details .consumption-concentric-energy .consumption-concentric-unit{font-size:calc(.52em + 3px)!important}
#overview #day-details .consumption-concentric-macro>span{font-size:clamp(17px,1.7vw,22px)!important}
#overview #day-details .consumption-concentric-macro>strong{font-size:clamp(19px,2.05vw,28px)!important}
@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric{padding-bottom:18px!important}
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch{right:7px!important}
 #overview #day-details .consumption-concentric-energy-row .consumption-concentric-energy{font-size:clamp(20px,4.1vw,30px)!important}
 #overview #day-details .consumption-concentric-macro>span{font-size:16px!important}
 #overview #day-details .consumption-concentric-macro>strong{font-size:17px!important}
 
}


/* Jorge: prevent enlarged macro labels from colliding with values. */
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro{
 display:flex!important;align-items:baseline!important;justify-content:space-between!important;
 gap:12px!important;min-width:0!important;width:100%!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>span{
 flex:0 0 auto!important;min-width:0!important;white-space:nowrap!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>strong{
 flex:0 0 auto!important;grid-column:auto!important;grid-row:auto!important;white-space:nowrap!important;
}

@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro{gap:5px!important}
 #overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>span{font-size:clamp(12px,3.15vw,16px)!important}
 #overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-macro>strong{font-size:clamp(12px,3.25vw,17px)!important}
}

/* Jorge mobile: match the ring-to-copy gap to the ring's outer card inset.
   Keep the approved ring diameter and the existing centered vertical alignment. */
@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-figures{
  transform:translateX(-27px)!important;
 }
 
}

/* Nutrition card: plain inline comparisons and common right-edge for both controls. */
#overview #day-details .consumption-concentric-trends{
 gap:7px!important;margin:10px 0 12px!important;width:auto!important;
}
#overview #day-details .consumption-concentric-trend{
 background:transparent!important;border:0!important;border-radius:0!important;
 padding:0!important;gap:5px!important;justify-content:flex-start!important;
}
#overview #day-details .consumption-concentric-trend-separator{
 color:#777680!important;font-weight:400!important;padding:0 2px!important;
}

#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch .consumption-concentric-unit-arrow{
 
 letter-spacing:normal!important;font-size:unset!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch .consumption-concentric-unit-arrow svg{
 width:20px!important;height:20px!important;display:block!important;
}

@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch{
  right:0!important;top:7px!important;
 }
}

/* Jorge nutrition card: larger energy values and slightly higher comparisons. */
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-energy-row .consumption-concentric-energy{
 font-size:clamp(34px,calc(4.25vw + 2px),59px)!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-trends{
 transform:translateY(-4px)!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch .consumption-concentric-unit-arrow img{
 display:none!important;
}

/* Unit toggle in comparison row, aligned with percentages. */
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-trends{
 display:flex!important;align-items:center!important;position:relative!important;padding-right:34px!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-trends>.consumption-concentric-unit-switch{
 position:absolute!important;right:0!important;top:50%!important;bottom:auto!important;
 transform:translateY(-50%)!important;width:28px!important;height:28px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-trends>.consumption-concentric-unit-switch .consumption-concentric-unit-arrow{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;
 background:transparent!important;border:0!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-trends>.consumption-concentric-unit-switch svg{
 display:block!important;width:20px!important;height:20px!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-energy-row .consumption-concentric-energy{
 font-size:clamp(33px,calc(4.25vw + 1px),58px)!important;
}

/* Match the text block's top and bottom to the concentric ring. */
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-figures{
 align-self:stretch!important;justify-content:space-between!important;gap:0!important;
}
#overview #day-details .consumption-concentric-energy-row{
 flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:0!important;
}
#overview #day-details .consumption-concentric-energy-label{
 display:block!important;color:#b7b6c1!important;font-size:clamp(12px,1.8vw,21px)!important;
 font-weight:400!important;line-height:1.15!important;margin:0 0 3px!important;
}
#overview #day-details .consumption-concentric-energy-row .consumption-concentric-energy{
 margin:0!important;
}
#overview #day-details .consumption-concentric-macros{margin-top:auto!important;}
@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-figures{
  align-self:stretch!important;justify-content:space-between!important;
 }
 #overview #day-details .consumption-concentric-energy-label{
  font-size:12px!important;line-height:1.1!important;margin-bottom:2px!important;
 }
}

/* Nutrition compact card: unit toggle beside expand arrow, with breathing room below macros. */
#overview #day-details .nutrition-comparison.consumption-concentric{padding-bottom:44px!important}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch{
 position:absolute!important;top:auto!important;bottom:7px!important;
 width:28px!important;height:28px!important;
 background:transparent!important;border:0!important;padding:0!important;z-index:5!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch .consumption-concentric-unit-arrow{
 width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;
 display:flex!important;align-items:center!important;justify-content:center!important;background:transparent!important;border:0!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch svg{width:20px!important;height:20px!important;display:block!important}

#overview #day-details .nutrition-comparison.consumption-concentric .consumption-concentric-trends{padding-right:0!important}
@media(max-width:520px){#overview #day-details .nutrition-comparison.consumption-concentric{padding-bottom:42px!important}}

/* Center both footer actions on the exact same horizontal axis. */
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch{
 top:auto!important;bottom:8px!important;height:28px!important;min-height:28px!important;
 transform:none!important;margin:0!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch{
 right:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;
}


/* Nutrition card footer: controls no longer add visual weight below the rings/text block. */
#overview #day-details .nutrition-comparison.consumption-concentric{padding-bottom:0!important}





@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric{padding-bottom:0!important}
 
}

/* Fine alignment of nutrition summary footer and ring (Nov 14). */



#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-rings{
 position:relative!important;top:18px!important;
}
@media(max-width:520px){
 #overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-rings{
  top:10px!important;
 }
}

/* Weekly nutrition detail: one unit control in the footer only. */
#overview #weekly-view .nutrition-weekly-charts{border-top:0!important}
#overview #weekly-view .nutrition-weekly-charts .nutrition-macro-modes,
#overview #weekly-view .nutrition-weekly-charts .macro-modes{display:none!important}




/* Alternative consumed colour — player mobile and desktop */
#overview #day-details .consumption-change-color{display:block!important;margin:14px auto 0!important;border:0!important;background:rgba(255,255,255,.12)!important;color:inherit!important;border-radius:999px!important;padding:10px 22px!important;font-size:13px!important;font-weight:500!important;opacity:.9!important}
#overview .consumption-editor.consumption-color-picker{position:relative}
#overview .consumption-color-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
#overview .consumption-color-header p{margin:0}
#overview .consumption-color-close{border:0;background:transparent;color:inherit;font-size:27px;line-height:1;min-width:36px;min-height:36px;border-radius:50%;cursor:pointer}
/* Alterar cor: one label rule; each button supplies its accessible hue-matched ink.
   Keep the approved light button backgrounds and the existing forest-green variant.
   Do not copy the pale card text tokens onto pastel backgrounds: they lack contrast. */
#overview .consumption-editor .consumption-color-option{
 width:100%;border:0!important;border-radius:12px!important;
 font-weight:600!important;min-height:46px!important;
 color:var(--consumption-option-ink,#18231d)!important;
}
#overview .consumption-editor .consumption-color-green{background:#97E9A5!important;--consumption-option-ink:#1D5226}
#overview .consumption-editor .consumption-color-yellow{background:#FFDF6B!important;--consumption-option-ink:#614C00}
#overview .consumption-editor .consumption-color-orange{background:#FFBB7D!important;--consumption-option-ink:#61340C}
#overview .consumption-editor .consumption-color-blue{background:#71B8FF!important;--consumption-option-ink:#043261}
#overview .consumption-editor .consumption-color-red{background:#FF938D!important;--consumption-option-ink:#611A16}
#overview .consumption-editor .consumption-color-vp{background:#00C853!important;--consumption-option-ink:#00411B}
#overview .consumption-editor .consumption-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;align-items:stretch!important}
#overview .consumption-editor .consumption-actions>button{width:100%!important;min-width:0!important;margin:0!important;padding:9px 5px!important;min-height:42px!important;font-size:clamp(11px,2.8vw,14px)!important}

#overview .consumption-editor .consumption-actions.consumption-actions-two{grid-template-columns:repeat(2,minmax(0,1fr))!important}

#overview .consumption-editor .consumption-alternative-option{display:block;width:100%;min-height:46px;border:1px solid rgba(160,175,165,.28);border-radius:12px;background:rgba(255,255,255,.09);color:inherit;font:inherit;text-align:left;padding:12px 16px;cursor:pointer}
#overview .consumption-editor .consumption-alternative-option:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Keep the alternative-colour action comfortably inside its meal card. */
#overview #day-details .meal.daily-meal .consumption-change-color{margin-top:16px!important;margin-bottom:18px!important}
#overview #day-details .consumption-change-color{margin-top:16px!important;margin-bottom:18px!important}

/* Official Hugeicons for consumption action labels. */
#overview #day-details .consumption-action-icon{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;flex:0 0 15px;vertical-align:middle;line-height:0;margin-right:5px;}
#overview #day-details .consumption-action-icon svg{display:block;width:100%;height:100%;fill:none;overflow:visible;}
#overview #day-details .meal-registered-badge .consumption-action-icon{width:14px;height:14px;flex-basis:14px;}
#overview #day-details .consumption-confirm-success .consumption-action-icon{width:20px;height:20px;flex-basis:20px;margin-right:0;}

/* Consumption action: same text + outline chevron style as Ver porções. */
#overview #day-details .daily-meal .consumption-change-color,
#overview #day-details .consumption-change-color{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 gap:7px!important;width:max-content!important;min-height:32px!important;
 margin:12px 0 0!important;padding:4px 0!important;
 border:0!important;border-radius:0!important;background:transparent!important;
 box-shadow:none!important;color:inherit!important;font-size:13px!important;font-weight:400!important;
 opacity:1!important;text-transform:none!important;
}
#overview #day-details .consumption-change-color::after{content:"";display:block;width:14px;height:14px;flex:0 0 14px;
 background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;}
#overview #day-details .consumption-change-color:hover{opacity:.8!important}

/* Final meal action alignment: override older centered and spaced rules. */
#overview #day-details .meal.daily-meal > .consumption-change-color,
#overview #day-details .daily-meal .consumption-change-color,
#overview #day-details .consumption-change-color{
 display:flex!important;align-items:center!important;justify-content:flex-end!important;
 align-self:flex-end!important;width:max-content!important;max-width:100%!important;
 margin:12px 0 0 auto!important;padding:4px 0!important;
 min-height:32px!important;height:auto!important;border:0!important;
 background:transparent!important;color:inherit!important;opacity:1!important;
 font:400 13px/1.3 Inter Tight,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif!important;
 gap:7px!important;box-shadow:none!important;text-align:right!important;
}
#overview #day-details .consumption-change-color::after{content:none!important;display:none!important}
#overview #day-details .consumption-change-color .consumption-link-chevron{display:block!important;width:14px!important;height:14px!important;flex:0 0 14px!important;}

/* Align the meal-level colour action with the inset of option-level portion links.
   Colour is a direct child of .daily-meal, whereas Ver porções lives inside
   a padded option card (12px outer margin + 14px inner padding). */
#overview #day-details .daily-meal > .consumption-change-color{
 margin:12px 26px 14px auto!important;
 color:var(--option-body,inherit)!important;
 font:400 13px/1.3 Inter Tight,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif!important;
}
#overview #day-details .daily-meal:has(> .single-meal-option) > .consumption-change-color{
 margin-right:17px!important;
}
#overview #day-details .daily-meal > .consumption-change-color .consumption-link-chevron{
 color:inherit!important;
}

/* Final unified meal action positioning. Both links use the same 26px right
   inset (12px subcard margin + 14px padding), including breakfast/snacks.
   Explicit meal-ink avoids white inherited from the global button rule. */
#overview #day-details .meal.daily-meal > button.consumption-change-color,
#overview #day-details .daily-meal:has(> .single-meal-option) > button.consumption-change-color{
 margin-right:17px!important;
 margin-left:auto!important;
 margin-bottom:12px!important;
 color:color-mix(in srgb,var(--meal-ink) 58%,white)!important;
}
#overview #day-details .meal.daily-meal:has(.tm-daily-portions-action) > button.consumption-change-color{
 margin-top:-12px!important;
}
#overview #day-details .meal.daily-meal > button.consumption-change-color svg{
 color:inherit!important;stroke:currentColor!important;
}

/* Alternative consumption pickers belong to the CURRENT meal, not the
   generic dark editor. Keep both steps on the exact meal colour surface. */
#overview #day-details .daily-meal.tone-blue > .consumption-editor.consumption-color-picker{background:var(--meal-blue)!important;color:var(--meal-blue-text)!important;}
#overview #day-details .daily-meal.tone-yellow > .consumption-editor.consumption-color-picker{background:var(--meal-yellow)!important;color:var(--meal-yellow-text)!important;}
#overview #day-details .daily-meal.tone-orange > .consumption-editor.consumption-color-picker{background:var(--meal-orange)!important;color:var(--meal-orange-text)!important;}
#overview #day-details .daily-meal.tone-green > .consumption-editor.consumption-color-picker{background:var(--meal-green)!important;color:var(--meal-green-text)!important;}
#overview #day-details .daily-meal.tone-vp > .consumption-editor.consumption-color-picker{background:var(--meal-vp)!important;color:var(--meal-vp-text)!important;}
#overview #day-details .daily-meal > .consumption-editor.consumption-color-picker{
 box-shadow:none!important;border-color:color-mix(in srgb,currentColor 18%,transparent)!important;
}
#overview #day-details .daily-meal > .consumption-editor.consumption-color-picker .consumption-alternative-option,
#overview #day-details .daily-meal > .consumption-editor.consumption-color-picker .consumption-cancel:not(.consumption-color-option){
 color:inherit!important;border-color:color-mix(in srgb,currentColor 25%,transparent)!important;
}

/* Player Profile language: same approved Chef selector/card geometry.
   New component only; no changes to any existing layout, card or gesture. */
#profile .profile-language-card{
 display:flex;align-items:center;flex-wrap:wrap;gap:10px 13px;
 width:100%;min-height:61px;margin:0 0 16px;padding:14px 19px;
 border-radius:13px;background:#242429;color:#f1f1f3;
}
#profile .profile-language-label{
 flex:1;min-width:0;font-size:16px;line-height:1.35;
 font-weight:var(--mile-type-regular,400);
}
#profile .profile-language-selector{
 display:flex;gap:2px;border-radius:999px;padding:3px;
 background:#29292e;min-height:32px;
}
#profile .profile-language-selector button{
 border:0;border-radius:999px;background:transparent;color:#f5f5f7;
 min-width:34px;min-height:28px;padding:4px 7px;
 font-size:12px;font-weight:400;cursor:pointer;
}
#profile .profile-language-selector button.active{background:#55555b}
#profile .profile-language-selector button:disabled{cursor:default}
#profile .profile-language-feedback{
 flex:0 0 100%;margin:0;color:#e8b48b;
 font-size:12px;line-height:1.45;
}
#profile .profile-language-feedback:empty{display:none}

/* ===== Início — cabeçalho "Hoje" + menu Dia/Semana (2026-11-23) =====
   Replaces the logo, the Dia/Semana segmented control and the 7-day strip on Início.
   Day navigation stays: swipe, the "Hoje" button, the Semana day headers and the Semana widget. */
body.overview-active:has(#player-panel:not([hidden])) .player-top{display:none!important}
#overview #week-strip,#overview #week-strip[hidden]{display:none!important}
#overview .overview-heading,#plans .progress-heading{
 position:relative!important;display:flex!important;align-items:flex-end!important;justify-content:space-between!important;
 gap:12px!important;padding:14px 2px 14px!important;margin:0!important;
}
#overview .overview-heading-text{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important}
#overview .overview-kicker,#plans .progress-kicker{
 margin:0!important;font-size:14px!important;font-weight:500!important;letter-spacing:0!important;
 text-transform:none!important;color:#aaaab4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#overview .overview-title,#plans .progress-title{margin:0!important;font-size:32px!important;font-weight:720!important;line-height:1.1!important;color:#f4f4f7!important}
#overview .overview-heading-actions{display:flex!important;align-items:center!important;gap:6px!important;flex:none!important;margin-bottom:3px!important}
#overview .overview-heading-actions button{
 appearance:none!important;display:inline-flex!important;align-items:center!important;gap:4px!important;
 height:32px!important;min-height:32px!important;padding:0 12px!important;border:0!important;border-radius:999px!important;
 background:#202024!important;color:#f2f2f5!important;font-size:14px!important;font-weight:500!important;box-shadow:none!important;
}
#overview .overview-heading-actions button[hidden]{display:none!important}
/* The Dia/Semana buttons become the menu that opens from "Dia ⌄". */
/* Semana: the weekly calories/macros block (moved from the Dia ring card) sits in its own card. */
#overview #weekly-view .nutrition-weekly-charts{
 margin:18px 0 0!important;padding:16px 14px 4px!important;border-radius:20px!important;background:#1b1b20!important;
}
/* The ring card's g ↔ g/kg switch stays visible on the "kcal" label line (the card footer is gone). */
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch{
 position:absolute!important;top:-12px!important;right:0!important;bottom:auto!important;left:auto!important;
 transform:none!important;margin:0!important;display:inline-flex!important;z-index:2!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch .consumption-concentric-unit-arrow{
 width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;background:transparent!important;
}
#overview #day-details .nutrition-comparison.consumption-concentric>.consumption-concentric-unit-switch svg{width:18px!important;height:18px!important}

/* ===== Início — widgets Peso e Semana (2026-11-23) — same surface, radius and type as the day cards ===== */
#overview #day-details > .day-widgets{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0 0 10px!important}
#overview #day-details .day-widget{
 display:flex!important;flex-direction:column!important;gap:6px!important;min-width:0!important;box-sizing:border-box!important;
 margin:0!important;padding:12px 12px 12px 14px!important;border-radius:13px!important;
 background:rgba(255,255,255,.045)!important;color:#f1f1f4!important; /* same muted surface as the ring card above (24/11) */
 cursor:pointer;min-height:0!important;height:auto!important;overflow:hidden!important;
}
/* Label sits right above its value, like "kcal" above the energy figure in the ring card (24/11). */
#overview #day-details .day-widget-head{display:flex!important;align-items:center!important;gap:8px!important;min-height:20px!important;height:20px!important;margin-bottom:-2px!important}
#overview #day-details .day-widget-label{flex:1 1 auto!important;min-width:0!important;font-size:15px!important;color:#aaaab4!important}
#overview #day-details .day-widget-action{
 appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:none!important;
 width:28px!important;height:28px!important;min-height:28px!important;margin:-4px -4px -4px 0!important;padding:0!important;border:0!important;border-radius:999px!important;
 background:transparent!important;box-shadow:none!important;color:#aaaab4!important;
}
#overview #day-details .day-widget-action svg{width:18px!important;height:18px!important}
#overview #day-details .day-widget-value{display:block!important;font-size:26px!important;font-weight:720!important;line-height:1.05!important;white-space:nowrap!important}
#overview #day-details .day-widget-value strong{font:inherit!important}
#overview #day-details .day-widget-unit{font-size:15px!important;font-weight:500!important;color:#aaaab4!important}
#overview #day-details .day-widget-value small{font-size:13px!important;font-weight:400!important;color:#aaaab4!important}
#overview #day-details .day-widget-foot{display:block!important;font-size:12px!important;color:#aaaab4!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#overview #day-details .day-weight-widget-spark{height:30px!important;color:rgba(241,241,244,.55)!important}
#overview #day-details .day-weight-widget-spark svg{display:block!important;width:100%!important;height:30px!important}
#overview #day-details .day-week-widget-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:2px!important;height:30px!important;align-items:center!important}
#overview #day-details .day-week-widget-day{
 appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;
 height:22px!important;min-height:22px!important;min-width:0!important;padding:0!important;border:0!important;border-radius:999px!important;
 background:transparent!important;box-shadow:none!important;color:#aaaab4!important;font-size:11px!important;font-weight:600!important;
}
#overview #day-details .day-week-widget-day.match{background:#45464c!important;color:#f1f1f4!important}
#overview #day-details .day-week-widget-day.selected{background:#f3f3f5!important;color:#2070bb!important}
/* Consulta (01/12): dias com treino marcados como os dias de jogo; o dia escolhido continua a mandar. */
#overview #day-details .day-training-widget .day-week-widget-day.training:not(.selected){background:#45464c!important;color:#f1f1f4!important}
#overview #day-details .day-training-widget .day-widget-value{overflow:hidden!important;text-overflow:ellipsis!important}
#overview #day-details .day-week-widget-day svg,#overview #day-details .day-week-widget-day .mile-icon{width:12px!important;height:12px!important}
#overview #day-details > .day-weight-editor{margin:0 0 10px!important}
#overview #day-details > .day-weight-editor[hidden]{display:none!important}

/* ===== Peso em jejum (Semana / Mês) ===== */
#overview.weight-detail-open > :not(#weight-detail),#plans #plans-assessments.weight-detail-open > :not(#weight-detail){display:none!important}
:is(#overview,#plans-assessments) .weight-detail[hidden]{display:none!important}
:is(#overview,#plans-assessments) .weight-detail{display:flex;flex-direction:column;padding:6px 0 24px}
:is(#overview,#plans-assessments) .weight-detail-bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;min-height:44px;margin-bottom:6px}
:is(#overview,#plans-assessments) .weight-detail-bar strong{font-size:16px;font-weight:600}
:is(#overview,#plans-assessments) .weight-detail-bar button{appearance:none;border:0;background:transparent;box-shadow:none;padding:8px 2px;color:#f1f1f4;font-size:16px;min-height:0}
:is(#overview,#plans-assessments) .weight-detail-back{justify-self:start}
:is(#overview,#plans-assessments) .weight-detail-edit{justify-self:end}
:is(#overview,#plans-assessments) .weight-detail-range{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;border-radius:999px;background:#202024}
:is(#overview,#plans-assessments) .weight-detail-range button{appearance:none;border:0;box-shadow:none;min-height:32px;padding:4px 8px;border-radius:999px;background:transparent;color:#f2f2f5;font-size:13px;font-weight:500}
:is(#overview,#plans-assessments) .weight-detail-range button[aria-pressed="true"]{background:#55555b;color:#fff}
:is(#overview,#plans-assessments) .weight-detail-summary{display:flex;flex-direction:column;gap:2px;padding:18px 2px 10px}
:is(#overview,#plans-assessments) .weight-detail-summary small{font-size:12px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:#aaaab4}
:is(#overview,#plans-assessments) .weight-detail-summary strong{font-size:34px;font-weight:720;line-height:1.1}
:is(#overview,#plans-assessments) .weight-detail-summary strong span{font-size:17px;font-weight:500;color:#aaaab4}
:is(#overview,#plans-assessments) .weight-detail-period{font-size:13px;color:#aaaab4}
:is(#overview,#plans-assessments) .weight-detail-chart,#plans .progress-chart-card{padding:14px 14px 6px;border-radius:13px;background:#25262b}
:is(#overview,#plans-assessments) .weight-detail-chart svg{display:block;width:100%;height:auto;overflow:visible}
:is(#overview,#plans-assessments) .weight-detail-grid{stroke:rgba(255,255,255,.08);stroke-width:1}
:is(#overview,#plans-assessments) .weight-detail-tick{font-size:11px;fill:#aaaab4}
:is(#overview,#plans-assessments) .weight-detail-value{font-size:11px;font-weight:600;fill:#d9d9de;paint-order:stroke;stroke:#25262b;stroke-width:3px;stroke-linejoin:round}
:is(#overview,#plans-assessments) .weight-detail-value.last{font-size:12px;font-weight:700;fill:#f1f1f4}
:is(#overview,#plans-assessments) .weight-detail-line{fill:none;stroke:rgba(241,241,244,.6);stroke-width:2;stroke-linejoin:round}
:is(#overview,#plans-assessments) .weight-detail-dot{fill:#0d0d10;stroke:#f1f1f4;stroke-width:2}
:is(#overview,#plans-assessments) .weight-detail-dot.last{fill:#f1f1f4}
:is(#overview,#plans-assessments) .weight-detail-chart svg.weight-detail-scrubbable{touch-action:pan-y;-webkit-user-select:none;user-select:none}
:is(#overview,#plans-assessments) .weight-detail-scrub-line{stroke:rgba(241,241,244,.45);stroke-width:1;stroke-dasharray:3 3}
:is(#overview,#plans-assessments) .weight-detail-scrub-ring{fill:none;stroke:#f1f1f4;stroke-width:2;pointer-events:none}
:is(#overview,#plans-assessments) .weight-detail-point{min-height:18px;margin:4px 0 0;font-size:13px;color:#d6d6dc}
:is(#overview,#plans-assessments) .weight-detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px;padding:13px 17px;border-radius:13px;background:#25262b}
:is(#overview,#plans-assessments) .weight-detail-stats small{display:block;font-size:12px;color:#aaaab4}
:is(#overview,#plans-assessments) .weight-detail-stats strong{font-size:17px;font-weight:650}
:is(#overview,#plans-assessments) .weight-detail-heading{margin:22px 2px 8px;font-size:17px;font-weight:650}
:is(#overview,#plans-assessments) .weight-detail-list{border-radius:13px;overflow:hidden;background:#25262b}
:is(#overview,#plans-assessments) .weight-detail-row{display:grid;grid-template-columns:1fr auto 84px;align-items:center;gap:8px;min-height:48px;padding:0 17px;border-top:1px solid rgba(255,255,255,.08)}
:is(#overview,#plans-assessments) .weight-detail-row:first-child{border-top:0}
:is(#overview,#plans-assessments) .weight-detail-row small{font-size:13px;color:#aaaab4;text-align:right}
:is(#overview,#plans-assessments) .weight-detail-row strong{font-size:16px;font-weight:600;text-align:right}
#overview #day-details .day-widget-value.empty{color:#6c6c76!important}

/* ===== Registado = só o ícone (24/11) — à direita, junto à seta, na cor da refeição ===== */
/* Closed meal: the icon sits after the kcal (order 1) and before the arrow (:after, order 2, always last). Open meal: it moves to the recorded option (rule above). */
#overview #day-details .daily-meal:not([open])>.daily-meal-head>.meal-registered-meal-badge{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;order:2!important;flex:none!important;
 margin:0 2px 0 4px!important;padding:0!important;border-radius:0!important;background:none!important;color:inherit!important;
}
#overview #day-details .meal-registered-badge .consumption-action-icon{width:20px!important;height:20px!important;flex-basis:20px!important}
#overview #day-details details.player-meal-option-subcard>summary{position:relative!important}
#overview #day-details details.player-meal-option-subcard summary .plan-option-label:has(>.meal-registered-badge-closed){padding-right:30px!important}
#overview #day-details details.player-meal-option-subcard summary .meal-registered-badge-closed{
 position:absolute!important;top:50%!important;right:52px!important;transform:translateY(-50%)!important;margin:0!important;
 padding:0!important;border-radius:0!important;background:none!important;color:inherit!important;
}

/* ===== Início — «Plano do dia» e «Registos» (24/11) ===== */
/* Sections breathe: 34 px above each title (from the cards before), 12 px to its own cards. */
#overview #day-details .day-section-heading{display:flex!important;align-items:baseline!important;justify-content:space-between!important;gap:12px!important;margin:34px 2px 12px!important}
#overview #day-details .day-section-heading[hidden]{display:none!important}
#overview #day-details .day-section-heading h3{margin:0!important;font-size:20px!important;font-weight:700!important;line-height:1.2!important;color:#f4f4f7!important}
#overview #day-details .day-plan-progress{font-size:14px!important;color:#aaaab4!important;white-space:nowrap!important}
#overview #day-details .registos-card{box-sizing:border-box!important;margin:0 0 10px!important;padding:16px 14px 12px!important;border-radius:13px!important;background:#25262b!important;color:#f1f1f4!important}
#overview #day-details .registos-card[hidden]{display:none!important}
#overview #day-details .registos-top{padding:0 4px 14px!important;font-size:15px!important;color:#aaaab4!important}
#overview #day-details .registos-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
#overview #day-details .registos-day{
 appearance:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:8px!important;
 min-width:0!important;min-height:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#aaaab4!important;
}
#overview #day-details .registos-label{font-size:12px!important;font-weight:600!important;letter-spacing:.02em!important}
#overview #day-details .registos-day.today .registos-label{color:#f4f4f7!important}
#overview #day-details .registos-mark svg{display:block!important;width:34px!important;height:34px!important}
#overview #day-details .registos-done-fill{fill:#72ebbd}
#overview #day-details .registos-done-tick{fill:none;stroke:#0d0d10;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
#overview #day-details .registos-track{fill:none;stroke:#45464c;stroke-width:4}
#overview #day-details .registos-arc{fill:none;stroke:#72ebbd;stroke-width:4;stroke-linecap:round}
#overview #day-details .registos-arc.today{stroke:#f3f3f5}
#overview #day-details .registos-count{font-size:11px;font-weight:700;fill:#f1f1f4;font-family:inherit}
#overview #day-details .registos-dot{display:block!important;width:4px!important;height:4px!important;border-radius:999px!important;background:transparent!important}
#overview #day-details .registos-day.selected .registos-dot{background:#f4f4f7!important}
#overview #day-details .registos-foot{display:flex!important;justify-content:space-between!important;gap:8px!important;margin-top:12px!important;padding:12px 4px 0!important;border-top:1px solid rgba(255,255,255,.08)!important;font-size:14px!important;color:#aaaab4!important}
#overview #day-details .registos-foot strong{color:#f1f1f4!important;font-weight:650!important}

/* Semana opened from the Semana widget: back to that day, same circular back button as Perfil subpages (24/11). */
#overview .overview-heading-text>button.overview-back{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:0 0 12px!important;padding:0 0 3px!important;
 border:0!important;border-radius:50%!important;background:rgba(255,255,255,.06)!important;color:#ededf0!important;box-shadow:none!important;
}
#overview .overview-heading-text>button.overview-back[hidden]{display:none!important}
#overview .overview-back span{font-size:30px;font-weight:400;line-height:1}
#overview .overview-heading-text>button.overview-back:focus-visible{outline:2px solid currentColor;outline-offset:3px}
/* ===== Início — widget «Planos» e página do plano (25/11) =====
   Planos left the tab bar. Badges: colour plans show 4 carbohydrate bars (Verde/Verde preparação 4, Azul 3,
   Amarelo 2, Laranja 1); Treino, Jogo and Suplementação use the same icons as their cards in Dia. */
#overview #day-details .plans-widget{box-sizing:border-box!important;margin:0 0 10px!important;padding:16px 0 14px!important;border-radius:13px!important;background:rgba(255,255,255,.045)!important;color:#f1f1f4!important}
#overview #day-details .plans-widget-top{padding:0 18px 12px!important;font-size:15px!important;color:#aaaab4!important}
#overview #day-details .plans-widget-row{display:flex!important;gap:6px!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important;padding:0 14px 2px!important;scrollbar-width:none!important;-webkit-overflow-scrolling:touch}
#overview #day-details .plans-widget-row::-webkit-scrollbar{display:none}
#overview #day-details .plans-widget-item{
 appearance:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:6px!important;flex:0 0 116px!important;
 min-height:0!important;padding:6px 2px 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;color:#f1f1f4!important;scroll-snap-align:start;
}
#overview #day-details .plans-widget-item .plan-badge{margin-bottom:4px}
#overview #day-details .plans-widget-name{font-size:16px!important;font-weight:600!important}
#overview #day-details .plans-widget-sub{font-size:12px!important;color:#aaaab4!important;white-space:nowrap!important}
.plan-badge{display:flex;align-items:center;justify-content:center;flex:none;width:80px;height:80px;border-radius:50%;
 background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--plan-ink) 20%,transparent),var(--plan-bg) 70%);
 box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--plan-ink) 33%,transparent),0 6px 18px rgba(0,0,0,.35);color:var(--plan-ink)}
.plan-badge svg{width:46%;height:46%;display:block}
.plan-badge .mile-icon{width:42%;height:42%;display:block}
.plan-badge rect.on{fill:currentColor}.plan-badge rect.off{fill:currentColor;fill-opacity:.22}
.plan-badge.tone-orange{--plan-bg:#392413;--plan-ink:#FFB36D}
.plan-badge.tone-yellow{--plan-bg:#392F0D;--plan-ink:#FFDB59}
.plan-badge.tone-blue{--plan-bg:#0C2745;--plan-ink:#78BBFF}
.plan-badge.tone-green{--plan-bg:#1C3E24;--plan-ink:#8BE69A}
.plan-badge.tone-vp{--plan-bg:#094D27;--plan-ink:#59DB8F}
.plan-badge.neutral{--plan-bg:#2b2c33;--plan-ink:#d9d9e0}
/* Plan page (over Início): back, badge + name, daily totals, then the plan exactly as before. */
#plans .plan-page-head{display:flex;flex-direction:column;gap:14px;margin:0 0 16px}
#plans .plan-page-back,#plans .progress-back,:is(#overview,#plans-assessments) .weight-detail-bar .weight-detail-back{display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0 0 3px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.06)!important;color:#ededf0!important;box-shadow:none!important}
#plans .plan-page-back span,#plans .progress-back span,:is(#overview,#plans-assessments) .weight-detail-back span{font-size:30px;font-weight:400;line-height:1}
#plans .plan-page-back:focus-visible,#plans .progress-back:focus-visible,:is(#overview,#plans-assessments) .weight-detail-back:focus-visible{outline:2px solid currentColor;outline-offset:3px}
#plans .plan-page-title{display:flex;align-items:center;gap:16px;padding:0 4px}
#plans .plan-page-title .plan-badge{width:64px;height:64px}
#plans .plan-page-title span{font-size:14px;color:#aaaab4}
#plans .plan-page-title h2{margin:0;font-size:32px;font-weight:720;line-height:1.1;color:#f4f4f7}
#plans .plan-page-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:13px 17px;border-radius:13px;background:rgba(255,255,255,.045)}
#plans .plan-page-stats small{display:block;font-size:12px;color:#aaaab4}
#plans .plan-page-stats strong{font-size:17px;font-weight:650}
#plans .plan-page-stats .kcal{color:#72ebbd}#plans .plan-page-stats .protein{color:#45baff}#plans .plan-page-stats .carbs{color:#ff9d70}#plans .plan-page-stats .fat{color:#f4d778}
#plans .plan-page-title .plan-badge svg rect.on,#overview .plans-widget .plan-badge svg rect.on{fill:var(--plan-ink)!important;fill-opacity:1!important;opacity:1!important}
#plans .plan-page-title .plan-badge svg rect.off,#overview .plans-widget .plan-badge svg rect.off{fill:var(--plan-ink)!important;fill-opacity:.22!important;opacity:1!important}
.plan-badge>.mile-icon{width:42%!important;height:42%!important;flex:none!important}
.plan-badge>.mile-icon svg{width:100%!important;height:100%!important}

/* ===== Progresso — dashboard de widgets (2026-11-25) =====
   Replaces the expanding metric cards. Each widget opens its page beside it (‹ back), like Peso em jejum.
   The trend chart itself (.assessment-trend: cut points, colours, labels) keeps its existing styles. */
body.progress-active:has(#player-panel:not([hidden])) .player-top{display:none!important}
#plans .progress-heading{flex-direction:column!important;align-items:flex-start!important;gap:2px!important}
#plans #plans-assessments .assessment-tabs{margin:0 0 14px}
#plans .progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#plans .progress-tile{
 appearance:none;display:flex;flex-direction:column;justify-content:flex-start;gap:6px;min-width:0;min-height:0;box-sizing:border-box;
 margin:0;padding:12px 12px 12px 14px;border:0;border-radius:13px;background:rgba(255,255,255,.045);color:#f1f1f4;box-shadow:none;text-align:left;font:inherit;cursor:pointer;
}
#plans .progress-tile.wide{grid-column:1/-1}
#plans .progress-tile:disabled{cursor:default;opacity:1}
#plans .progress-tile:focus-visible{outline:2px solid currentColor;outline-offset:2px}
#plans .progress-tile-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:20px;margin-bottom:-2px}
#plans .progress-tile-label{font-size:15px;line-height:20px;color:#aaaab4}
#plans .progress-tile-chevron{flex:none;width:16px;height:16px;margin-top:2px;color:#aaaab4}
#plans .progress-tile-chevron svg{display:block;width:100%;height:100%}
#plans .progress-tile:disabled .progress-tile-chevron{visibility:hidden}
#plans .progress-tile-body{display:flex;flex-direction:column;gap:6px;min-width:0}
#plans .progress-tile-value{font-size:26px;font-weight:720;line-height:1.05;white-space:nowrap;color:#f4f4f7}
#plans .progress-tile.wide .progress-tile-value{font-size:30px}
#plans .progress-tile-value span{font-size:15px;font-weight:500;color:#aaaab4}
#plans .progress-tile-foot{font-size:12px;line-height:1.25;color:#aaaab4}
#plans .progress-spark{display:block;width:100%;height:30px;overflow:visible}
#plans .progress-spark-line{fill:none;stroke:#f1f1f4;stroke-opacity:.5;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#plans .progress-muscle{gap:6px}
#plans .progress-muscle-index{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:16px}
#plans .progress-muscle-index-text,#plans .progress-muscle-part{display:flex;flex-direction:column;gap:4px;min-width:0}
#plans .progress-muscle-label{font-size:13px;color:#aaaab4}
#plans .progress-muscle-rule{display:block;height:1px;margin:6px 0;background:rgba(255,255,255,.08)}
#plans .progress-muscle-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#plans .progress-muscle-part strong{font-size:22px;font-weight:700;line-height:1;color:#f4f4f7}
#plans #plans-assessments.progress-page-open > :not(#progress-page){display:none!important}
#plans .progress-page[hidden]{display:none!important}
#plans .progress-page{display:flex;flex-direction:column;align-items:stretch;padding:6px 0 24px;text-align:left}
#plans .progress-page-head{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:16px 2px 12px}
#plans .progress-page-value{font-size:40px;font-weight:720;line-height:1.1;color:#f4f4f7}
#plans .progress-page-value span{font-size:18px;font-weight:500;color:#aaaab4}
#plans .progress-page-sub{margin:0;font-size:14px;color:#aaaab4}
/* One surface, as in Peso em jejum: the chart sits directly on the card (no inner #1b1b20 panel). */
#plans .progress-chart-card>.assessment-trend{margin:0;padding:0;border-radius:0;background:transparent}
#plans .progress-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:22px 4px 10px}
#plans .progress-section-head h3{margin:0;font-size:17px;font-weight:650}
#plans .progress-section-head strong{font-size:17px;font-weight:650;white-space:nowrap}
#plans .progress-section-head small{font-size:13px;font-weight:400;color:#aaaab4}
#plans .progress-average{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:14px 16px;border-radius:13px;background:rgba(255,255,255,.045);font-size:15px}
#plans .progress-average span{color:#aaaab4}
#plans .progress-average strong{font-weight:600}
#plans .progress-list-heading{margin:0;padding:22px 4px 8px;font-size:17px;font-weight:650}
#plans .progress-list{border-radius:13px;overflow:hidden;background:rgba(255,255,255,.045)}
#plans .progress-list-row{display:grid;grid-template-columns:minmax(0,1fr) auto 92px;align-items:center;gap:8px;min-height:48px;padding:0 16px}
#plans .progress-list-row+.progress-list-row{border-top:1px solid rgba(255,255,255,.08)}
#plans .progress-list-row span{font-size:16px}
#plans .progress-list-row small{font-size:13px;color:#aaaab4}
#plans .progress-list-row strong{font-size:16px;font-weight:600;text-align:right;white-space:nowrap}
/* ===== Pregas — mapa do corpo + tabela (2026-11-26, aprovado no canvas) =====
   Neutral body (front and back), no colours: the dot size follows the latest mm. The 8 skinfolds are a table;
   each row (or dot) opens the skinfold page with a mini body, the unchanged chart and ‹ previous · next ›. */
#plans .progress-body-card{margin:0 0 10px;padding:10px 6px 4px;border-radius:13px;background:rgba(255,255,255,.045)}
#plans .progress-body-map{display:block;width:100%;height:auto;overflow:visible}
#plans .progress-body-fill{fill:#2e2f35;stroke:#2e2f35;stroke-width:.6}
#plans .progress-body-detail{fill:none;stroke:#4a4b52;stroke-width:1.1;stroke-linecap:round}
#plans .progress-body-wear{fill:#3e3f46;stroke:none}
#plans .progress-body-straps{fill:none;stroke:#3e3f46;stroke-width:3;stroke-linecap:round}
#plans .progress-body-caption{font-size:12px;fill:#aaaab4}
#plans .progress-body-dot{fill:#f1f1f4;fill-opacity:.85}
#plans .progress-body-ring{fill:none;stroke:#f1f1f4;stroke-width:1.5}
#plans .progress-body-hit{fill:transparent;cursor:pointer;outline:none}
#plans .progress-body-hit:focus-visible{stroke:#f1f1f4;stroke-width:1.5}
#plans .progress-skinfold-row{appearance:none;width:100%;margin:0;border:0;border-radius:0;background:transparent;color:#f1f1f4;font:inherit;text-align:left;cursor:pointer;
 grid-template-columns:minmax(0,1fr) auto 84px 16px}
#plans .progress-skinfold-row strong small{font-size:13px;font-weight:400;color:#aaaab4}
#plans .progress-skinfold-row:focus-visible{outline:2px solid currentColor;outline-offset:-2px}
#plans .progress-page-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
#plans .progress-page-top .progress-page-head{flex:1;min-width:0}
#plans .progress-body-map.mini{flex:none;width:112px}
/* Perímetros (26/11): white tape lines across the front figure, value in cm beside each one. */
#plans .progress-tape-line{fill:none;stroke:#f1f1f4;stroke-opacity:.8;stroke-width:1.8;stroke-linecap:round}
#plans .progress-tape.selected .progress-tape-line{stroke-opacity:1;stroke-width:3.2}
#plans .progress-tape-lead{fill:none;stroke:#48484a;stroke-width:1;stroke-dasharray:2 2}
#plans .progress-tape-value{font-size:12px;font-weight:600;fill:#f1f1f4}
#plans .progress-tape-pick{cursor:pointer}
#plans .progress-perimeter-map.mini{width:58px}
#plans .progress-pager-dots{display:flex;justify-content:center;gap:6px;margin:20px 0 4px}
#plans .progress-pager-dots span{width:6px;height:6px;border-radius:50%;background:#45464c}
#plans .progress-pager-dots span.on{background:#f1f1f4}
#plans .progress-pager{display:flex;justify-content:space-between;gap:12px}
#plans .progress-pager-btn{appearance:none;margin:0;padding:10px 2px;border:0;background:transparent;color:#f1f1f4;font:inherit;font-size:15px;cursor:pointer}

/* ===== Editar consumo numa folha (2026-11-25, canvas «Proposta E») =====
   The editor opens in a sheet from the bottom (inside #day-details, so its existing styles apply).
   Cancelar · refeição · Guardar on top; the editor's own Cancelar/Guardar row is hidden (no repetition). */
body.consumption-sheet-open{overflow:hidden!important}
body.consumption-sheet-open #tabs{visibility:hidden!important}
.consumption-sheet-backdrop{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.5);opacity:0;transition:opacity .26s ease}
.consumption-sheet-backdrop.is-open{opacity:1}
.consumption-sheet{
 position:fixed;left:0;right:0;bottom:0;top:max(48px,calc(env(safe-area-inset-top,0px) + 12px));z-index:1001;
 display:flex;flex-direction:column;box-sizing:border-box;margin:0;border-radius:24px 24px 0 0;
 background:var(--meal-inner,#1c1d20);color:#f1f1f4;box-shadow:0 -8px 30px rgba(0,0,0,.4);
 transform:translate3d(0,100%,0);transition:transform .26s cubic-bezier(.2,.8,.2,1);
}
.consumption-sheet.is-open{transform:translate3d(0,0,0)}
.consumption-sheet-grabber{flex:none;width:38px;height:5px;margin:7px auto 0;border-radius:3px;background:rgba(255,255,255,.28)}
.consumption-sheet-head{flex:none;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:6px 14px 10px;touch-action:none}
.consumption-sheet-head button{appearance:none;margin:0;border:0;box-shadow:none;min-height:36px;font:inherit;font-size:17px}
.consumption-sheet-cancel{justify-self:start;padding:6px 4px;background:transparent!important;color:var(--meal-ink,#f1f1f4)!important}
.consumption-sheet-save{justify-self:end;padding:7px 15px!important;border-radius:999px!important;background:#fff!important;color:#111!important;font-weight:650!important}
.consumption-sheet-save:disabled{background:rgba(255,255,255,.12)!important;color:rgba(255,255,255,.4)!important;opacity:1!important}
.consumption-sheet-save[hidden]{display:none!important}
.consumption-sheet-titles{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center}
.consumption-sheet-titles strong{font-size:17px;font-weight:650;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw}
.consumption-sheet-titles small{font-size:12px;color:#aaaab4}
.consumption-sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 16px calc(24px + env(safe-area-inset-bottom,0px))}
/* #day-details keeps will-change:transform for the day swipe; it would make it the sheet's containing block. */
#overview #day-details:has(> .consumption-sheet){will-change:auto!important;transform:none!important}
#overview #day-details .consumption-sheet-body>.consumption-editor{display:flex!important;flex-direction:column!important;margin:0!important;padding:4px 0 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.consumption-sheet-body>.consumption-editor>.consumption-energy-progress{order:-1}
.consumption-sheet-body .consumption-actions>.consumption-save,
.consumption-sheet-body .consumption-actions>.consumption-cancel-main{display:none!important}
.consumption-sheet-body .consumption-actions:not(:has(>:not(.consumption-save):not(.consumption-cancel-main))){display:none!important}
.consumption-sheet-confirm{position:absolute;inset:0;z-index:5;display:flex;align-items:flex-end;padding:0 10px calc(22px + env(safe-area-inset-bottom,0px));background:rgba(0,0,0,.35);border-radius:inherit}
.consumption-sheet-confirm-box{display:flex;flex-direction:column;gap:8px;width:100%}
.consumption-sheet-confirm-group{display:flex;flex-direction:column;border-radius:16px;overflow:hidden;background:rgba(44,44,48,.97)}
.consumption-sheet-confirm-group p{margin:0;padding:14px 18px 12px;text-align:center;font-size:13px;line-height:1.35;color:#aaaab4}
.consumption-sheet-confirm-group button{appearance:none;margin:0;min-height:56px;border:0;border-top:1px solid rgba(255,255,255,.08);border-radius:0;background:transparent!important;box-shadow:none;font:inherit;font-size:18px;color:#fff!important}
.consumption-sheet-confirm-group button:first-child{border-top:0}
.consumption-sheet-confirm-group button.is-primary{font-weight:650}
.consumption-sheet-confirm-group button.is-destructive{color:#ff6b6b!important}
.consumption-sheet-toast{position:fixed;left:50%;bottom:calc(112px + env(safe-area-inset-bottom,0px));z-index:1002;padding:10px 16px;border-radius:999px;background:rgba(44,44,48,.95);color:#f1f1f4;font-size:14px;opacity:0;transform:translate(-50%,8px);transition:opacity .22s ease,transform .22s ease;pointer-events:none}
.consumption-sheet-toast.is-visible{opacity:1;transform:translate(-50%,0)}

/* ===== Plano do dia — alinhamentos (26/11) ===== */
/* Recorded option: the check sits right after «Opção X» (inline), not centred in the card. */
#overview #day-details details.player-meal-option-subcard summary .plan-option-label>small:has(>.meal-registered-badge-closed){display:flex!important;align-items:center!important;gap:7px!important}
#overview #day-details details.player-meal-option-subcard summary .plan-option-label:has(.meal-registered-badge-closed){padding-right:0!important}
#overview #day-details details.player-meal-option-subcard summary .plan-option-label small>.meal-registered-badge-closed{
 position:static!important;transform:none!important;display:inline-flex!important;align-items:center!important;flex:none!important;
 margin:0!important;padding:0!important;border-radius:0!important;background:none!important;color:inherit!important;
}
#overview #day-details details.player-meal-option-subcard summary .plan-option-label small>.meal-registered-badge-closed .consumption-action-icon{width:16px!important;height:16px!important;flex-basis:16px!important}
#overview #day-details details.player-meal-option-subcard[open] summary .meal-registered-badge-closed{display:none!important}
/* Closed meal: kcal shares the title's baseline. The kcal block takes the title's
   line box (16px / 1.3), so the smaller kcal text sits on the same baseline. */
#overview #day-details .daily-meal:not([open])>.daily-meal-head .meal-average-inline{display:block!important;font-size:var(--day-title-size)!important;line-height:1.3!important}
#overview #day-details .daily-meal:not([open])>.daily-meal-head .meal-average-inline .macro{display:inline!important;line-height:inherit!important}
#overview #day-details .daily-meal:not([open])>.daily-meal-head .meal-average-inline .macro>.kcal{display:inline!important;vertical-align:baseline!important}

/* ===== Que cor consumiste? — lista com medalhas (26/11, proposta B) ===== */
/* Same medal as the Início «Planos» widget; one grouped list, each row opens that colour's options. */
.plan-badge.tone-red{--plan-bg:#341617;--plan-ink:#FF867F}
#overview .consumption-color-picker .consumption-color-list{display:flex;flex-direction:column;margin:14px 0 0;border-radius:16px;background:rgba(0,0,0,.18);overflow:hidden}
#overview .consumption-editor .consumption-color-option.consumption-color-row{
 appearance:none!important;display:flex!important;align-items:center!important;gap:14px!important;width:100%!important;
 min-height:72px!important;margin:0!important;padding:12px 16px!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;color:inherit!important;text-align:left!important;font:inherit!important;cursor:pointer;
}
#overview .consumption-editor .consumption-color-row+.consumption-color-row{border-top:1px solid rgba(255,255,255,.08)!important}
#overview .consumption-editor .consumption-color-row:active{background:rgba(255,255,255,.06)!important}
#overview .consumption-editor .consumption-color-row .plan-badge{width:52px!important;height:52px!important}
#overview .consumption-editor .consumption-color-row .plan-badge rect.on{fill:var(--plan-ink)!important;fill-opacity:1!important}
#overview .consumption-editor .consumption-color-row .plan-badge rect.off{fill:var(--plan-ink)!important;fill-opacity:.22!important}
#overview .consumption-editor .consumption-color-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
#overview .consumption-editor .consumption-color-name{font-size:17px;font-weight:600;line-height:1.25}
#overview .consumption-editor .consumption-color-sub{font-size:13px;opacity:.72}
#overview .consumption-editor .consumption-color-chevron{flex:none;display:flex;opacity:.6}

/* ===== Qual foi a opção consumida? — retroceder, fechar e setas (26/11) ===== */
#overview .consumption-color-header.has-back{justify-content:flex-start;gap:4px}
#overview .consumption-color-header.has-back>p{flex:1;min-width:0}
#overview .consumption-color-back{flex:none;display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0 0 0 -10px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}
#overview .consumption-editor .consumption-alternative-option{display:flex!important;align-items:center!important;gap:12px!important;text-align:left!important}
#overview .consumption-editor .consumption-alternative-option .consumption-alternative-name{flex:1;min-width:0}
#overview .consumption-editor .consumption-alternative-option .consumption-color-chevron{flex:none;display:flex;opacity:.6}

/* ===== Menus — título e lista da semana (28/11, proposta B aprovada no canvas) =====
   Topo como Início e Progresso: semana (14/500 #aaaab4) + «Menus» (32/720), sem logótipo.
   Cada refeição é uma linha (miniatura 56 px, refeição com ponto de cor, prato, «Receita»).
   Um prato abre a sua página: fotografia (ampliar), etiqueta da cor, «Ver receita(s)». */
body.menus-active:has(#player-panel:not([hidden])):has(#recipe-header-back[hidden]) .player-top{display:none!important}
#menus .menus-heading{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:14px 2px 14px;margin:0}
#menus .menus-heading-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
#menus .menus-kicker{margin:0;min-height:18px;font-size:14px;font-weight:500;letter-spacing:0;text-transform:none;color:#aaaab4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#menus .menus-title{margin:0;font-size:32px;font-weight:720;line-height:1.1;color:#f4f4f7}
#menus:has(#menu-content[hidden]) .menus-kicker{visibility:hidden}
#menus:has(>#menus-recipe-switch[hidden]) .menus-heading{display:none}
#player-panel #menus.menu-dish-open :is(.menus-heading,#menus-recipe-switch,#menu-days,#menu-loading){display:none!important}
/* Tones: the same pairs as the plan medals. */
#menus .tone-orange{--menu-bg:#392413;--menu-ink:#FFB36D}
#menus .tone-yellow{--menu-bg:#392F0D;--menu-ink:#FFDB59}
#menus .tone-blue{--menu-bg:#0C2745;--menu-ink:#78BBFF}
#menus .tone-green{--menu-bg:#1C3E24;--menu-ink:#8BE69A}
#menus .tone-vp{--menu-bg:#094D27;--menu-ink:#59DB8F}
#menus .tone-red{--menu-bg:#341617;--menu-ink:#FF867F}
#menus .tone-neutral{--menu-bg:#202024;--menu-ink:#aaaab4}
#menus .menu-week-day{margin:0;padding:0;border:0;background:none;scroll-margin-top:12px}
#menus .menu-week-day-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:18px 6px 8px}
#menus .menu-week-day-head h3{margin:0;font-size:14px;font-weight:600;line-height:1.3;color:#aaaab4}
#menus .menu-week-day.is-today .menu-week-day-head h3{color:#f4f4f7}
#menus .menu-week-day-class{flex:none;font-size:14px;font-weight:500;color:#aaaab4}
#menus .menu-week-list{display:flex;flex-direction:column;border-radius:16px;background:rgba(255,255,255,.045);overflow:hidden}
#menus .menu-week-row{
 appearance:none!important;display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;min-height:76px!important;
 margin:0!important;padding:10px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
 color:#f4f4f7!important;font:inherit!important;text-align:left!important;-webkit-tap-highlight-color:transparent;
}
#menus .menu-week-row+.menu-week-row{border-top:1px solid rgba(255,255,255,.08)!important}
#menus button.menu-week-row{cursor:pointer;transition:background-color .15s ease}
#menus button.menu-week-row:active{background:rgba(255,255,255,.06)!important}
#menus button.menu-week-row:focus-visible{outline:2px solid #f4f4f7;outline-offset:-2px}
#menus .menu-week-thumb{position:relative;flex:none;display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:12px;overflow:hidden;background:var(--menu-bg);color:var(--menu-ink)}
#menus .menu-week-thumb img{width:100%;height:100%;object-fit:cover;display:block}
#menus .menu-week-thumb.is-loading,#menus .menu-week-thumb.is-unavailable{background:#29292E}
#menus .menu-week-text{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
#menus .menu-week-dot{flex:none;width:7px;height:7px;border-radius:50%;background:var(--menu-ink)}
#menus .menu-week-name.is-free-text{white-space:pre-line}
#menus .menu-week-recipe{display:inline-flex;align-items:center;gap:4px;margin-top:2px;font-size:12px;color:#aaaab4}
#menus .menu-book-icon{display:inline-flex;width:13px;height:13px;flex:none}
#menus .menu-week-chevron{flex:none;font-size:22px;line-height:1;color:#6c6c74;margin-left:2px}
/* Dish page */
#menus .menu-dish-page{display:flex;flex-direction:column;gap:14px;padding:14px 0 0}
#menus .menu-dish-page[hidden]{display:none}
#menus .menu-dish-back{display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;padding:0 0 3px!important;margin:0!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.06)!important;color:#ededf0!important;box-shadow:none!important}
#menus .menu-dish-back span{font-size:30px;font-weight:400;line-height:1}
#menus .menu-dish-back:focus-visible{outline:2px solid currentColor;outline-offset:3px}
#menus .menu-dish-hero{
 appearance:none!important;position:relative;display:block!important;width:100%!important;height:clamp(220px,64vw,300px)!important;
 margin:0!important;padding:0!important;border:0!important;border-radius:18px!important;overflow:hidden;background:#29292E!important;cursor:zoom-in;
}
#menus .menu-dish-hero img{display:block;width:100%;height:100%;object-fit:cover}
#menus .menu-dish-hero.is-loading{cursor:default}
#menus .menu-dish-zoom{position:absolute;right:12px;bottom:12px;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.55);color:#fff}
#menus .menu-dish-zoom svg{width:17px;height:17px}
#menus .menu-dish-info{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:4px 2px 0}
#menus .menu-dish-pill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 11px;border-radius:999px;background:var(--menu-bg);color:var(--menu-ink);font-size:13px;font-weight:600}
#menus .menu-dish-title{margin:2px 0 0;font-size:28px;font-weight:720;line-height:1.15;color:#f4f4f7}
#menus .menu-dish-sub{margin:0;font-size:15px;color:#aaaab4}
#menus .menu-dish-recipe{
 appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;
 height:48px!important;margin:12px 0 0!important;padding:0 16px!important;border:0!important;border-radius:13px!important;
 background:#f3f3f5!important;color:#17171b!important;box-shadow:none!important;font:inherit!important;font-size:16px!important;font-weight:600!important;
}
#menus .menu-dish-recipe:active{background:#dcdce0!important}
#menus .menu-dish-recipe .menu-book-icon{width:18px;height:18px}
@media (prefers-reduced-motion:reduce){#menus button.menu-week-row{transition:none}}

/* ===== Menus — alterar categoria (28/11) =====
   Category rows (today onwards) show «Alterar» and open a sheet with the backoffice
   categories. Same sheet family as «Editar consumo», sized to its content. */
#menus .menu-week-changed{margin-top:2px;font-size:12px;color:#aaaab4}
.consumption-sheet.menu-change-sheet{top:auto;max-height:calc(100% - max(48px,calc(env(safe-area-inset-top,0px) + 12px)))}
.menu-change-sheet .menu-change-list{display:flex;flex-direction:column;margin:6px 0 0;border-radius:16px;background:rgba(255,255,255,.045);overflow:hidden}
.menu-change-sheet .menu-change-option{
 appearance:none!important;display:flex!important;align-items:center!important;gap:10px!important;width:100%!important;min-height:52px!important;
 margin:0!important;padding:0 16px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
 color:#f4f4f7!important;font:inherit!important;font-size:16px!important;text-align:left!important;cursor:pointer;
}
.menu-change-sheet .menu-change-option+.menu-change-option{border-top:1px solid rgba(255,255,255,.08)!important}
.menu-change-sheet .menu-change-option:active{background:rgba(255,255,255,.06)!important}
.menu-change-sheet .menu-change-option:focus-visible{outline:2px solid #f4f4f7;outline-offset:-2px}
.menu-change-sheet .menu-change-label{flex:1 1 auto;min-width:0}
.menu-change-sheet .menu-change-current{flex:none;font-size:13px;color:#aaaab4}
.menu-change-sheet .menu-change-check{flex:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;color:#17171b;background:#f3f3f5;visibility:hidden}
.menu-change-sheet .menu-change-check svg{width:15px;height:15px}
.menu-change-sheet .menu-change-option.is-selected .menu-change-check{visibility:visible}
.menu-change-sheet .menu-change-error{margin:12px 2px 0;font-size:14px;color:#ff9c97}
.menu-change-sheet .menu-change-error[hidden]{display:none}

/* ===== Menus — barra vertical, ‹ Hoje › e dias passados recolhidos (28/11, canvas «Lista com barra vertical» e «Sem a fila de dias») =====
   No dot and no icon tile: a 3 px bar in the plan colour; «Almoço» 13/400 and the menu 16/500, both in the plan colour.
   The 7-day strip is gone: ‹ Hoje › beside the title (same family as the top selectors). */
#menus .menu-week-bar{flex:none;align-self:stretch;width:3px;min-height:40px;border-radius:2px;background:var(--menu-ink)}
#menus .menu-week-row.tone-neutral .menu-week-bar{background:#55555b}
#menus .menu-week-row:not(button){min-height:62px!important}
#menus .menu-week-meal{font-size:13px;font-weight:400;line-height:1.25;color:var(--menu-ink)}
#menus .menu-week-name{font-size:16px;font-weight:500;line-height:1.25;color:var(--menu-ink);overflow-wrap:anywhere}
#menus .menu-week-row.is-unassigned .menu-week-name{font-weight:400}
#menus .menu-week-change-hint{flex:none;padding-left:4px;font-size:13px;font-weight:400;color:#aaaab4;text-decoration:underline;text-decoration-color:rgba(170,170,180,.5);text-underline-offset:3px}
#menus .menus-week-nav{flex:none;display:flex;align-items:center;height:38px;margin:0 0 3px;padding:0 2px;border-radius:999px;background:#202024}
#menus .menus-week-arrow{appearance:none!important;display:flex!important;align-items:center!important;justify-content:center!important;width:40px!important;min-width:40px!important;height:36px!important;min-height:36px!important;margin:0!important;padding:0!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;color:#f4f4f7!important}
#menus .menus-week-arrow svg{width:18px;height:18px}
#menus .menus-week-arrow:active{background:rgba(255,255,255,.08)!important}
#menus .menus-today{appearance:none!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0 12px!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;color:#aaaab4!important;font:inherit!important;font-size:14px!important;font-weight:600!important;transition:background-color .2s ease,color .2s ease}
#menus .menus-today.is-away{background:#f3f3f5!important;color:#17171b!important}
#menus :is(.menus-week-arrow,.menus-today):focus-visible{outline:2px solid #f4f4f7;outline-offset:2px}
#menus:has(#menu-content[hidden]) .menus-week-nav{visibility:hidden}
#menus .menu-past-toggle{appearance:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-height:48px!important;margin:16px 0 0!important;padding:0 14px!important;border:0!important;border-radius:16px!important;background:rgba(255,255,255,.045)!important;box-shadow:none!important;color:#aaaab4!important;font:inherit!important;font-size:14px!important;font-weight:500!important;text-align:left!important}
#menus .menu-past-toggle:active{background:rgba(255,255,255,.07)!important}
#menus .menu-past-chevron{display:flex;width:16px;height:16px;transition:transform .2s ease}
#menus .menu-past-chevron svg{width:16px;height:16px}
#menus .menu-past-toggle[aria-expanded="true"] .menu-past-chevron{transform:rotate(180deg)}
#menus .menu-past-days[hidden]{display:none}
#menus .menu-past-days .menu-week-day{opacity:.6}
/* Day heading stays at the top while its day scrolls by. */
#menus .menu-week-day-head{position:sticky;top:0;z-index:2;background:#0d0d10}
#menus #menu-days{padding-top:2px}
@media (prefers-reduced-motion:reduce){#menus .menu-past-chevron,#menus .menus-today{transition:none}}

/* ===== Menus — cartões coloridos com imagem à esquerda (28/11, canvas «Cartões coloridos, sempre alinhados») =====
   Each meal is its own card in the plan colour (raio 13, mín. 76 px). Every card starts with a 56 px image:
   the dish photo (no background behind it) or, for categories/presets, a Hugeicons icon in a circle.
   «Almoço» 13/400 in the plan ink; the menu 16/500 in white. Replaces the 3 px bar. */
#menus .menu-week-list{gap:8px;border-radius:0;background:transparent;overflow:visible}
#menus .menu-week-row{min-height:76px!important;padding:10px 14px!important;border-radius:13px!important;background:var(--menu-bg)!important}
#menus .menu-week-row.tone-neutral{background:rgba(255,255,255,.045)!important}
#menus .menu-week-row+.menu-week-row{border-top:0!important}
#menus .menu-week-row:not(button){min-height:76px!important}
#menus button.menu-week-row:active{background:var(--menu-bg)!important;filter:brightness(1.12)}
#menus .menu-week-bar{display:none}
#menus .menu-week-thumb{width:56px;height:56px;border-radius:12px;background:transparent}
#menus .menu-week-thumb img{object-fit:contain}
#menus .menu-week-thumb.is-loading,#menus .menu-week-thumb.is-unavailable{border-radius:50%;background:rgba(0,0,0,.22)}
#menus .menu-week-thumb.is-icon{border-radius:50%;background:rgba(0,0,0,.22);color:var(--menu-ink)}
#menus .menu-week-thumb .menu-category-icon{display:inline-flex;width:24px;height:24px}
#menus .menu-week-name{color:#f4f4f7}
#menus .menu-week-row.is-unassigned .menu-week-name{color:#aaaab4}
#menus .menu-week-recipe,#menus .menu-week-changed{color:rgba(255,255,255,.72)}
#menus .menu-week-row:not(.tone-neutral) .menu-week-change-hint{color:rgba(255,255,255,.72);text-decoration-color:rgba(255,255,255,.35)}
#menus .menu-week-row:not(.tone-neutral) .menu-week-chevron{color:rgba(255,255,255,.45)}

/* Alterar menu — texto livre (28/11): a «Texto livre» option opens a 2-line field under the list. */
.menu-change-sheet .menu-change-text{display:block;margin:10px 0 0}
.menu-change-sheet .menu-change-text[hidden]{display:none}
.menu-change-sheet .menu-change-text textarea{
 display:block;width:100%;box-sizing:border-box;min-height:64px;margin:0;padding:12px 14px;border:0;border-radius:13px;
 background:rgba(255,255,255,.08);color:#f4f4f7;font:inherit;font-size:16px;line-height:1.35;resize:none;
}
.menu-change-sheet .menu-change-text textarea::placeholder{color:#8a8a93}
.menu-change-sheet .menu-change-text textarea:focus{outline:2px solid rgba(255,255,255,.5);outline-offset:0}

/* ===== Paleta dos planos — escala de hidratos (29/11, canvas «Paleta — atual vs proposta») =====
   Vermelho (menos hidratos) → Laranja → Amarelo → Azul → Verde → Verde preparação (mais hidratos).
   Each plan has four tokens: strong (solid identity: bars, squares, dots), text (labels on dark),
   surface (card fill) and inner (nested surface). Surfaces get more intense as carbs rise. */
:root{
 --meal-red-strong:#FF453A;--meal-red:#341617;--meal-red-text:#FF867F;--meal-red-inner:#471A1A;
 --meal-orange-strong:#FF8A1F;--meal-orange:#392413;--meal-orange-text:#FFB36D;--meal-orange-inner:#4C2E14;
 --meal-yellow-strong:#FFC800;--meal-yellow:#392F0D;--meal-yellow-text:#FFDB59;--meal-yellow-inner:#4C3E0C;
 --meal-blue-strong:#0A84FF;--meal-blue:#0C2745;--meal-blue-text:#78BBFF;--meal-blue-inner:#0C3158;
 --meal-green-strong:#4CD964;--meal-green:#1C3E24;--meal-green-text:#8BE69A;--meal-green-inner:#214E2B;
 --meal-vp-strong:#00C853;--meal-vp:#094D27;--meal-vp-text:#59DB8F;--meal-vp-inner:#085C2C;
}
.tone-red{--meal-strong:var(--meal-red-strong)}
.tone-orange{--meal-strong:var(--meal-orange-strong)}
.tone-yellow{--meal-strong:var(--meal-yellow-strong)}
.tone-blue{--meal-strong:var(--meal-blue-strong)}
.tone-green{--meal-strong:var(--meal-green-strong)}
.tone-vp{--meal-strong:var(--meal-vp-strong)}
.tone-red{--meal-ink:var(--meal-red-text);--meal-inner:var(--meal-red-inner)}

/* Menus: --menu-strong per tone (strong plan colour). The 4 px side bar was removed on 29/11
   (too much noise on open cards); cards keep the tinted plan surface only. */
#menus .tone-red{--menu-strong:var(--meal-red-strong)}
#menus .tone-orange{--menu-strong:var(--meal-orange-strong)}
#menus .tone-yellow{--menu-strong:var(--meal-yellow-strong)}
#menus .tone-blue{--menu-strong:var(--meal-blue-strong)}
#menus .tone-green{--menu-strong:var(--meal-green-strong)}
#menus .tone-vp{--menu-strong:var(--meal-vp-strong)}
#menus .tone-neutral{--menu-strong:#55555b}


/* Menus — editar com o lápis (29/11): «Alterar» and «Adicionar menu» become the same pencil
   used on the Treino card (Hugeicons, 18 px, stroke 1.5, 34 px circle). The whole row is the button. */
#menus .menu-week-edit{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;color:rgba(255,255,255,.72)}
#menus .menu-week-row.tone-neutral .menu-week-edit{color:#aaaab4}
#menus .menu-week-edit svg{display:block;width:18px;height:18px}

/* ===== Editar consumo — um só ponto de entrada por refeição (29/11) ===== */
#overview .consumption-meal-menu .consumption-meal-menu-extra{display:flex;flex-direction:column;gap:inherit}
#overview .consumption-editor .consumption-meal-menu-skip .consumption-action-icon{flex:none;width:20px;height:20px;opacity:.85}
#overview .consumption-editor .consumption-meal-menu-skip:disabled{opacity:.55}
#overview #day-details .meal-registered-badge.is-skipped{opacity:.75}
#overview #day-details .action-pill--skipped{opacity:.9}

/* ===== Registo de consumo — folhas nativas iOS (29/11) =====
   «O que comeste?», «Que cor comeste?» e «Qual foi a opção?»: short neutral sheet that fits its
   content, inset from the screen edges; grey circles for ‹ and ×; grouped list; capsule buttons.
   The quantity editor keeps the full-height sheet in the meal colour. */
.consumption-sheet.is-native-picker{
 top:auto!important;left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
 max-height:calc(100% - max(56px,calc(env(safe-area-inset-top,0px) + 20px)));
 border-radius:34px!important;background:#1C1C1E!important;color:#fff!important;
 box-shadow:0 10px 40px rgba(0,0,0,.5)!important;transform:translate3d(0,calc(100% + 40px),0);
}
.consumption-sheet.is-native-picker.is-open{transform:translate3d(0,0,0)}
.consumption-sheet.is-native-picker .consumption-sheet-grabber{width:36px;margin-top:6px;background:rgba(235,235,245,.3)}
.consumption-sheet.is-native-picker .consumption-sheet-head{display:none!important}
.consumption-sheet.is-native-picker .consumption-sheet-body{padding:0 16px 20px!important}
#overview .consumption-sheet.is-native-picker .consumption-sheet-body>.consumption-native-picker{gap:0!important;padding:0!important;color:#fff!important}
#overview .consumption-sheet.is-native-picker .hint{margin:18px 4px;color:rgba(235,235,245,.6)!important}
.consumption-native-header{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:8px 0 0}
.consumption-native-header.is-left{grid-template-columns:minmax(0,1fr) 44px;align-items:start;padding:8px 4px 0}
.consumption-native-titles{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;text-align:center}
.consumption-native-titles strong{font-size:17px;font-weight:600;line-height:1.25;color:#fff}
.consumption-native-titles span{font-size:13px;line-height:1.3;color:rgba(235,235,245,.6)}
.consumption-native-header.is-left .consumption-native-titles{align-items:flex-start;text-align:left;gap:3px;padding-top:6px}
.consumption-native-header.is-left .consumption-native-titles strong{font-size:20px;font-weight:700;letter-spacing:-.2px}
.consumption-native-header.is-left .consumption-native-titles span{font-size:15px}
#overview .consumption-native-circle{appearance:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:50%;background:rgba(118,118,128,.24)!important;color:rgba(235,235,245,.75)!important;box-shadow:none;cursor:pointer}
.consumption-native-spacer{width:44px;height:44px}
.consumption-native-capsules{display:flex;flex-direction:column;gap:10px;margin-top:22px}
#overview .consumption-native-capsule{appearance:none;width:100%;height:52px;margin:0;padding:0 20px;border:0;border-radius:26px;box-shadow:none;font:inherit;font-size:17px;font-weight:600;cursor:pointer}
#overview .consumption-native-capsule.is-primary{background:#F2F2F7!important;color:#000!important}
#overview .consumption-native-capsule.is-secondary{background:rgba(118,118,128,.24)!important;color:#fff!important}
#overview .consumption-native-capsule:disabled{opacity:.5}
#overview .consumption-sheet.is-native-picker .consumption-native-list{display:flex;flex-direction:column;margin:22px 0 0!important;border-radius:26px!important;background:#2C2C2E!important;overflow:hidden}
#overview .consumption-sheet.is-native-picker .consumption-native-row{
 appearance:none!important;position:relative;display:flex!important;align-items:center!important;gap:12px!important;width:100%!important;
 min-height:52px!important;margin:0!important;padding:12px 16px!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;color:#fff!important;font:inherit!important;font-size:17px!important;text-align:left!important;cursor:pointer;
}
#overview .consumption-sheet.is-native-picker .consumption-native-row+.consumption-native-row::before{content:"";position:absolute;top:0;left:16px;right:0;height:.5px;background:rgba(84,84,88,.65)}
#overview .consumption-sheet.is-native-picker .consumption-native-row:active{background:rgba(255,255,255,.06)!important}
#overview .consumption-sheet.is-native-picker .consumption-color-row{min-height:66px!important;gap:14px!important;padding:10px 16px!important}
#overview .consumption-sheet.is-native-picker .consumption-color-row+.consumption-color-row::before{left:72px}
#overview .consumption-sheet.is-native-picker .consumption-native-row .plan-badge{width:42px!important;height:42px!important;box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--plan-ink) 33%,transparent)!important}
#overview .consumption-sheet.is-native-picker .plan-badge rect.on{fill:var(--plan-ink)!important;fill-opacity:1!important}
#overview .consumption-sheet.is-native-picker .plan-badge rect.off{fill:var(--plan-ink)!important;fill-opacity:.22!important}
.consumption-native-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.consumption-native-name{flex:1;min-width:0;font-size:17px;line-height:1.3}
.consumption-native-sub{font-size:13px;color:rgba(235,235,245,.6)}
.consumption-sheet.is-native-picker .consumption-color-chevron{flex:none;display:flex;color:rgba(235,235,245,.3);opacity:1}
.consumption-native-footnote{margin:8px 16px 0;font-size:13px;line-height:1.35;color:rgba(235,235,245,.6)}
.consumption-native-section{display:flex;align-items:center;gap:10px;margin:22px 16px -14px;font-size:13px;letter-spacing:.3px;text-transform:uppercase;color:rgba(235,235,245,.6)}
#overview .consumption-sheet.is-native-picker .consumption-native-section .plan-badge{width:26px!important;height:26px!important;box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--plan-ink) 33%,transparent)!important}
.consumption-sheet.is-native-picker .consumption-feedback{margin:10px 4px 0;font-size:13px;color:#FF6961}

/* ===== Etiquetas «Registado» / «Não consumido» alinhadas com o conteúdo (29/11) =====
   Directly inside a meal card they were flush with the card edge; they now line up with the
   option cards (several options) or with the content and «Cumpri» buttons (single option). */
#overview #day-details .daily-meal > .consumption-actions--recorded{margin:18px 12px 0!important;width:calc(100% - 24px)!important}
#overview #day-details .daily-meal:has(> .single-meal-option) > .consumption-actions--recorded{margin:18px 17px 0!important;width:calc(100% - 34px)!important}

/* ===== 01/12: ecrã inteiro (fotografia de carregamento por baixo da barra de estado) =====
   A página desenha por baixo da hora/bateria (viewport-fit=cover); o conteúdo desce o mesmo que a
   barra de estado e afasta-se dos lados em horizontal. O ecrã de carregamento (fixo, inset:0) ocupa tudo. */
body{padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
body:has(#login-panel:not([hidden])){padding-top:0}
/* barra de navegação: um pouco acima do indicador de início, sem subir demasiado */
#player-panel #tabs,#player-panel #tabs.tabs-compact{bottom:max(14px,calc(env(safe-area-inset-bottom,0px) - 4px))!important}

/* ===== 01/12: barra de navegação em ecrãs largos (iPhone dobrável aberto na horizontal, iPad) =====
   Centrada, com largura confortável e sempre fora das margens seguras. */
@media (min-width:621px){
 #player-panel #tabs,#player-panel #tabs.tabs-compact{
  position:fixed!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;
  width:min(400px,calc(100% - 32px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)))!important;
  margin:0!important;box-sizing:border-box!important;z-index:30!important
 }
 /* espaço no fim da página para o conteúdo não ficar por baixo da barra */
 #player-panel{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
}
/* telemóvel na horizontal (pouca altura): barra mais baixa e mais perto do fundo */
@media (orientation:landscape) and (max-height:500px){
 #player-panel #tabs,#player-panel #tabs.tabs-compact{bottom:max(8px,env(safe-area-inset-bottom,0px))!important}
}

/* ===== 01/12 (ajuste): ecrã inteiro no iPhone =====
   Com a barra de estado translúcida, o iOS mede o ecrã sem a barra de estado (100dvh = ecrã − barra)
   quando a página é mais curta do que o ecrã (ex.: Perfil). Por isso a barra de navegação subia e a
   fotografia de carregamento não chegava ao fundo. A página passa a ter sempre a altura total do ecrã. */
html{min-height:calc(100dvh + env(safe-area-inset-top,0px))}
body{min-height:calc(100dvh + env(safe-area-inset-top,0px))}
#player-session-loading.player-session-loading{top:0!important;bottom:auto!important;height:calc(100dvh + env(safe-area-inset-top,0px))!important;min-height:calc(100dvh + env(safe-area-inset-top,0px))!important}
/* logótipo e indicador exatamente ao centro do ecrã */
#player-session-loading .player-loading-center{top:50%!important}

/* ===== 01/12: topo ao nível das apps nativas =====
   Nas apps do iPhone o título grande começa abaixo da zona da barra de navegação (≈ 44 pt depois da hora).
   O iOS desenha um desvanecido por baixo da barra de estado; com o conteúdo logo a seguir à hora, esse
   desvanecido tapava a primeira linha mesmo sem deslizar. O conteúdo desce 30 pt (só onde há barra de
   estado), por isso o desvanecido só passa a tapar texto quando se desliza a página, como no Saúde. */
body{padding-top:calc(env(safe-area-inset-top,0px) + min(30px,env(safe-area-inset-top,0px)))}
body:has(#login-panel:not([hidden])){padding-top:0}
