/* Full-page identities. Override legacy blue page layers, not nutrient cards. */
html:not([data-theme="light"]) body[data-section]{--page-start:#101011;--page-middle:#262529;--page-end:#5b5268;--sidebar-surface:#18161d;background:linear-gradient(115deg,var(--page-start) 0%,var(--page-middle) 52%,var(--page-end) 100%)!important;background-attachment:fixed!important}
html:not([data-theme="light"]) body[data-section="macros"]{--page-start:#050505;--page-middle:#171717;--page-end:#474747;--sidebar-surface:#141414}
html:not([data-theme="light"]) body[data-section="gym"]{--page-start:#09080d;--page-middle:#25202f;--page-end:#6a5b82;--sidebar-surface:#19151f}
html:not([data-theme="light"]) body[data-section="work"]{--page-start:#080b10;--page-middle:#25313c;--page-end:#92754d;--sidebar-surface:#171b21}
html:not([data-theme="light"]) body[data-section="progress"]{--page-start:#080d0e;--page-middle:#203537;--page-end:#618080;--sidebar-surface:#142224}
html:not([data-theme="light"]) body[data-section="progress"][data-progress-area="goals"]{--page-start:#100c17;--page-middle:#332c43;--page-end:#837098;--sidebar-surface:#201a2a}
html:not([data-theme="light"]) body[data-section="settings"]{--page-start:#090b0e;--page-middle:#282b32;--page-end:#61616b;--sidebar-surface:#191b21}
html:not([data-theme="light"]) body[data-section] .layout{background:transparent!important;min-height:100dvh}
html:not([data-theme="light"]) body[data-section] .main{background:transparent!important;min-height:100dvh}
html:not([data-theme="light"]) body[data-section] .sidebar{background:linear-gradient(170deg,var(--sidebar-surface),var(--page-start))!important;border-color:#ffffff18}
html:not([data-theme="light"]) body[data-section] .main>section[id$="Page"],html:not([data-theme="light"]) body[data-section] #novaMacros{background:transparent!important}
html[data-theme="light"] body[data-section]{--light-start:#faf8ff;--light-end:#dad2eb;background:linear-gradient(115deg,var(--light-start),var(--light-end))!important;background-attachment:fixed!important}
html[data-theme="light"] body[data-section="macros"]{--light-start:#fafafa;--light-end:#bfc0c4}
html[data-theme="light"] body[data-section="gym"]{--light-start:#faf7ff;--light-end:#d5c8ec}
html[data-theme="light"] body[data-section="work"]{--light-start:#edf4fb;--light-end:#e2c591}
html[data-theme="light"] body[data-section="progress"]{--light-start:#f1fbf9;--light-end:#b8d5d0}
html[data-theme="light"] body[data-section="progress"][data-progress-area="goals"]{--light-start:#faf6ff;--light-end:#d8c2ea}
html[data-theme="light"] body[data-section="settings"]{--light-start:#fafafa;--light-end:#d0d2da}
html[data-theme="light"] body[data-section] .main,html[data-theme="light"] body[data-section] .layout,html[data-theme="light"] body[data-section] .main>section[id$="Page"],html[data-theme="light"] body[data-section] #novaMacros{background:transparent!important}
#homePage .home-card button .home-circle,#progressGoalsLanding .home-card button .home-circle{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 20px!important;width:20px!important;height:20px!important;min-width:20px!important;aspect-ratio:1!important;padding:0!important;margin:0!important;border:0!important;border-radius:50%!important;line-height:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;color:inherit!important;-webkit-text-fill-color:currentColor!important}
#homePage .home-card button .home-circle svg,#progressGoalsLanding .home-card button .home-circle svg{display:block!important;width:20px!important;height:20px!important;max-height:none!important;margin:0!important;flex:none!important;fill:none!important;stroke:currentColor!important;stroke-width:1.4!important;stroke-linecap:round;stroke-linejoin:round}

html:not([data-theme="light"]) body[data-section] :is(#homePage,#gymPage,#macrosPage,#workPage,#progressPage,#settingsPage),html[data-theme="light"] body[data-section] :is(#homePage,#gymPage,#macrosPage,#workPage,#progressPage,#settingsPage){background:transparent!important}

/* Large panels participate in the section palette, rather than retaining blue. */
html:not([data-theme="light"]) body[data-section] :is(#homePage,#gymPage,#macrosPage,#workPage,#progressPage,#settingsPage) :is(.settings-card,.work-panel,.work-stat,.routine,.history-category,.category-stat){background:linear-gradient(125deg,color-mix(in srgb,var(--page-middle) 78%,#101012),color-mix(in srgb,var(--page-end) 33%,#171719))!important;border-color:color-mix(in srgb,var(--page-end) 65%,#888)!important}
