/* Batch 5: blue Gym identity, readable Tools, and compact account controls. */
body[data-section="gym"]{--section-accent:#9daeff;--section-ink:#15233c;--section-panel:#213049;--purple:#9daeff}
body[data-section="settings"]{--section-accent:#9baecc;--section-ink:#172337;--section-panel:#252d3b}
html:not([data-theme="light"]) body[data-section="gym"]{--page-start:#0b1422;--page-middle:#23324a;--page-end:#586e92;--sidebar-surface:#111e31}
#gymPage :is(h1,h2,h3,h4,.category-stat strong,.default-indicator){color:#c4d3ff!important}#gymPage .ly-goals-eyebrow{color:#adbdff!important}#gymPage .ly-section-hero,#gymPage :is(.settings-card,.category-stat,.routine,.history-category){background:linear-gradient(120deg,#1c2a40,#2b3d57)!important;border-color:#8c9fc94d!important}
#gymPage .ly-section-hero h1 span:last-child{color:#b6c6ff!important}body[data-section="gym"] #gymPage .category-controls button,body[data-section="gym"] #gymPage #customizeWorkoutButton{background:linear-gradient(115deg,#91a4fa,#b4c3ff)!important;color:#15213a!important;border-color:#acbaff!important}body[data-section="gym"] :is(#customizeModal,#categoryModal) .dialog{background:linear-gradient(135deg,#172438,#293b55)!important;border-color:#92a6ce77!important}body[data-section="gym"] :is(#customizeModal,#categoryModal) :is(h2,h3,h4,label,.tiny){color:#c7d6f3!important}body[data-section="gym"] #customizeModal :is(.picker,.muscle-visual,.anatomy-copy,.choice){background:#142238!important;border-color:#62799a66!important}body[data-section="gym"] #customizeModal .ly-routine-savebar{background:#21344a!important;border-color:#839fc06b!important}
#routineGrid .actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px}#routineGrid .actions button svg{width:18px;height:18px;flex:none}
body[data-section] .ly-section-hero{border-width:1px!important;border-style:solid!important}#gymPage>.ly-section-hero{background:linear-gradient(110deg,#1a2c48,#314c72 60%,#5269a5)!important}#workPage .work-hero{background:linear-gradient(110deg,#1b2c3b,#514431 65%,#86643d)!important}#progressPage>.ly-section-hero{background:linear-gradient(110deg,#1d3439,#345658 60%,#5c797c)!important}#settingsPage>.ly-section-hero{background:linear-gradient(110deg,#242b36,#3e4a5a 60%,#69758a)!important}#macrosPage .nv-header{padding:24px;border-radius:20px;background:linear-gradient(110deg,#111d20,#243b3d 60%,#3d6260);border:1px solid #97c9c544}#progressNutritionGoals .ly-goals-hero{padding:24px;border-radius:18px;background:linear-gradient(110deg,#273746,#385866 60%,#617d87);margin-bottom:20px}
.ly-download-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.ly-download-tabs button{background:#293545;color:#dce6f3;border:1px solid #98b0cd33;min-height:42px}.ly-download-tabs button[aria-selected="true"]{background:#b4c8e3;color:#14263c}.ly-download-panel{padding:20px;background:#151e2b44;border:1px solid #a3b7cc26;border-radius:16px}.ly-download-panel[hidden]{display:none!important}.ly-download-panel .ly-export-row{margin:16px 0;gap:10px}.ly-download-panel button{margin:4px 6px 4px 0}
.ly-sidebar-profile-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px;text-align:left}.ly-sidebar-profile-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b7c4d8;font-size:11px;font-weight:500}#lySidebarStatus[hidden]{display:none}#lyProfileCardStatus{position:absolute;left:105px;right:16px;top:65px;padding:10px 12px;min-height:40px;max-height:78px;overflow:auto;margin:0;background:#303746;border:1px solid #8e9aaf44;border-radius:16px;text-align:left;font-size:13px;color:#f4f6fb;width:auto;line-height:1.5}.ly-profile-card-body{padding-top:58px}.ly-status-preview{min-height:160px;position:relative}#lyStatusPreviewText{position:absolute;top:55px;left:106px;right:14px;min-height:42px;padding:10px;border:1px solid #8c9aaf44;border-radius:15px;background:#303746;color:#eef3fb;font-size:12px;line-height:1.5}.ly-status-preview>strong{display:block;margin-top:70px}.ly-status-input-row{grid-template-columns:48px minmax(0,1fr)!important}#lyStatusEmoji[hidden],#lyEmojiPicker[hidden]{display:none!important}#lyEmojiOpen{width:48px;height:46px;padding:0;font-size:24px;background:#303a4a!important;color:#fff!important;border:1px solid #8da4c155!important}#lyEmojiPicker{padding:14px;border:1px solid #7288a555;border-radius:14px;margin:12px 0;background:#1a2433}#lyEmojiPicker>header{display:flex;justify-content:space-between;align-items:center;gap:12px}#lyEmojiPicker input{width:100%;box-sizing:border-box;margin:10px 0}#lyEmojiGrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;max-height:240px;overflow:auto}#lyEmojiGrid button{padding:4px!important;min-width:0;min-height:38px;font-size:25px;border:0!important;background:transparent!important;color:inherit!important}#lyEmojiGrid button:hover{background:#8bace52b!important}#lyEmojiCount{display:block;margin-top:12px;color:#bdcbe0}.ly-contact-actions{display:flex;align-items:center;gap:8px;flex:none}.ly-contact-row{gap:16px}.ly-contact-row>div:first-of-type{min-width:0;overflow-wrap:anywhere}#lyContactDialog{width:min(440px,calc(100vw - 28px));max-height:90dvh;box-sizing:border-box;padding:24px;border:1px solid #9bacc055;border-radius:20px;background:#232d3b;color:#f0f3f9}#lyContactDialog::backdrop{background:#0009;backdrop-filter:blur(5px)}#lyContactDialog header,#lyContactDialog footer{display:flex;justify-content:space-between;align-items:center;gap:12px}#lyContactDialog header>button{width:36px;height:36px;padding:0;font-size:24px;display:grid;place-items:center}#lyContactDialog input{width:100%;box-sizing:border-box;font-size:16px;margin-top:12px}#lyContactDialog footer{justify-content:flex-end;margin-top:22px}
/* Calm workspace: one list selector, search, and item actions on demand. */
#inventoryPage:not(.ly-dw-on) .ly-tools-back[hidden]{display:none!important}#inventoryPage:not(.ly-dw-on)>.ly-inventory-header{background:linear-gradient(110deg,#1f302d,#2e4941 65%,#48665b)!important}#inventoryPage:not(.ly-dw-on) #lyInventoryProjects button.ly-inventory-project-card{background:linear-gradient(115deg,#243530,#2c443c)!important;color:#f0f5f1!important;border:1px solid #99b3a13d!important;box-shadow:none;min-height:135px;gap:10px;border-radius:16px}#inventoryPage:not(.ly-dw-on) #lyInventoryProjects button.ly-inventory-project-card:hover{background:linear-gradient(115deg,#2d443b,#3b584b)!important}#inventoryPage:not(.ly-dw-on) #lyInventoryProjects .ly-inventory-project-card small{color:#bdd1c3!important}#inventoryPage:not(.ly-dw-on) #lyInventoryProjects .ly-inventory-project-card span{color:#d3dfd8!important}.ly-workspace-search{display:block;color:#bdccca;font-size:13px;margin:22px 0}.ly-workspace-search input{display:block;box-sizing:border-box;width:100%;margin-top:9px;font-size:16px;border-radius:12px;padding:14px;background:#152420;border:1px solid #92b2a044;color:#e9f1eb}.ly-workspace-search>div{display:grid;gap:6px;margin-top:10px}#lyWorkspaceResults:empty{display:none}#inventoryPage:not(.ly-dw-on) #lyWorkspaceResults button{display:flex;justify-content:space-between;gap:12px;align-items:center;text-align:left;padding:14px;background:#243c32!important;color:#e8f2e9!important;border:1px solid #8caf9b33!important}#lyWorkspaceResults small{font-size:12px;font-weight:400;opacity:.8}
#inventoryPage:not(.ly-dw-on) #lyInventoryListTabs{display:flex;align-items:end;gap:12px;padding:0;background:transparent;margin:20px 0}#lyInventoryListTabs label{flex:1;max-width:400px;font-size:12px;color:#b8c9be}#lyInventoryListTabs select{width:100%;box-sizing:border-box;padding:12px;margin-top:7px;border:1px solid #79968555;border-radius:10px;background:#1d3027;color:#ebf3ed;font-size:15px}#lyInventoryProjectView>p{display:none}#inventoryPage:not(.ly-dw-on) #lyInventorySummary{display:flex;flex-wrap:wrap;gap:20px;margin:20px 0;padding:14px 0;border-top:1px solid #b0c7b52a;border-bottom:1px solid #b0c7b52a}#inventoryPage:not(.ly-dw-on) #lyInventorySummary article{display:flex;gap:8px;align-items:baseline;padding:0;background:none!important;border:0;border-radius:0;box-shadow:none}#inventoryPage:not(.ly-dw-on) #lyInventorySummary strong{font-size:17px;order:-1;margin:0}#inventoryPage:not(.ly-dw-on) #lyInventorySummary small{font-size:12px;color:#bdcec0}#inventoryPage:not(.ly-dw-on) #lyInventoryFilters{display:flex;align-items:end;gap:12px;position:relative;margin:18px 0;padding:0;background:none;border:0}#lyInventoryFilters>label{flex:1}#lyInventoryFilters input{font-size:16px}#inventoryPage:not(.ly-dw-on) #lyInventoryItems .ly-inventory-item{grid-template-columns:minmax(0,1fr) 150px auto;gap:18px;padding:16px!important;position:relative}#lyInventoryItems .ly-inventory-item-info>small:last-child{display:none}#lyInventoryItems .ly-inventory-item-info>p{margin:4px 0}.ly-project-options,.ly-item-options,.ly-item-filters{position:relative}.ly-project-options>summary,.ly-item-options>summary,.ly-item-filters>summary{list-style:none;cursor:pointer;padding:10px 14px;border:1px solid #91ad9d44;background:#293f34;border-radius:10px;color:#d9e8df;font-size:13px;white-space:nowrap}.ly-project-options>summary::-webkit-details-marker,.ly-item-options>summary::-webkit-details-marker,.ly-item-filters>summary::-webkit-details-marker{display:none}.ly-project-options>div,.ly-item-options>div,.ly-item-filters>div{position:absolute;right:0;top:calc(100% + 6px);z-index:70;min-width:210px;padding:10px;border:1px solid #8eaf9b55;border-radius:12px;background:#1c3026;box-shadow:0 14px 40px #0006;display:flex;flex-direction:column;gap:8px}.ly-project-options:not([open])>div,.ly-item-options:not([open])>div,.ly-item-filters:not([open])>div{display:none!important}.ly-project-options .ly-inventory-category-manager{margin:0!important;padding:10px!important}.ly-project-options #lyInventoryProjectCategories{max-height:220px;overflow:auto}.ly-item-options>summary{font-size:17px;letter-spacing:2px;padding:6px 10px}#inventoryPage:not(.ly-dw-on) .ly-item-options>div button{text-align:left;width:100%;justify-content:flex-start}#lyInventoryItems .ly-inventory-item:has(.ly-item-options[open]){z-index:80}.ly-item-filters>div label{display:grid;gap:7px}.ly-item-filters>div select{font-size:15px}#inventoryPage:not(.ly-dw-on) #lyInventoryHeaderActions button{background:#a4c6b3!important;color:#132d20!important}.ly-plan-nutrient{position:relative;isolation:isolate;overflow:hidden}.ly-plan-nutrient>:not(.ly-goal-rain){z-index:1;position:relative}.ly-plan-nutrient .ly-plan-pencil{position:absolute}.ly-plan-nutrient .ly-goal-rain{position:absolute;inset:0;pointer-events:none;z-index:0}.ly-plan-nutrient .ly-goal-rain i{color:var(--nutrient-color)!important}.ly-goal-summary .ly-goal-rain{display:none!important}
@media(max-width:600px){#inventoryPage:not(.ly-dw-on) #lyInventoryItems .ly-inventory-item{grid-template-columns:minmax(0,1fr) auto;gap:12px}#lyInventoryItems .ly-inventory-count{grid-row:2;grid-column:1}#lyInventoryItems .ly-inventory-item-actions{grid-row:1;grid-column:2;align-self:start}#inventoryPage:not(.ly-dw-on) .ly-inventory-project-heading{flex-direction:row;align-items:center}#lyInventoryProjectName{font-size:20px}.ly-project-options>summary{font-size:12px;padding:10px}.ly-item-filters>div{min-width:190px}.ly-contact-row{flex-direction:column;align-items:flex-start}.ly-contact-actions{align-self:flex-end}.ly-download-tabs{display:grid;grid-template-columns:1fr 1fr}.ly-download-tabs button{margin:0}.ly-download-panel{padding:14px}#lyEmojiGrid{grid-template-columns:repeat(6,minmax(0,1fr))}.ly-sidebar-profile-copy small{max-width:180px}}
html[data-theme="light"] #inventoryPage:not(.ly-dw-on) #lyInventoryProjects button.ly-inventory-project-card{background:linear-gradient(115deg,#e5eee7,#d3e3d8)!important;color:#203c2c!important}html[data-theme="light"] #inventoryPage:not(.ly-dw-on) #lyInventoryProjects .ly-inventory-project-card :is(span,small){color:#405e4c!important}html[data-theme="light"] .ly-workspace-search input,html[data-theme="light"] #lyInventoryListTabs select{background:#f4f8f4;color:#203b2a}html[data-theme="light"] #lyInventorySummary :is(strong,small){color:#314d3d!important}html[data-theme="light"] :is(.ly-project-options>div,.ly-item-options>div,.ly-item-filters>div){background:#eef5ed;color:#253b2a}html[data-theme="light"] .ly-download-panel{background:#dce5ef66}html[data-theme="light"] #lyContactDialog{background:#f2f5f9;color:#233246}html[data-theme="light"] #lyEmojiPicker{background:#edf2f8;color:#223449}html[data-theme="light"] :is(#lyProfileCardStatus,#lyStatusPreviewText){background:#e2e8f1;color:#26364b}html[data-theme="light"] .ly-sidebar-profile-copy small{color:#43566d}

body[data-section="gym"] .sidebar .nav button.active{background:#30496e!important;color:#edf4ff!important}#workPage .ly-section-hero{background:linear-gradient(110deg,#1a2d3e,#574934 65%,#917044)!important}#settingsPage .ly-section-hero{background:linear-gradient(110deg,#252f3d,#46596e 65%,#70869f)!important}

html:not([data-theme="light"]) body[data-section="tools"]{--page-start:#0f1b16;--page-middle:#24372d;--page-end:#466151;--sidebar-surface:#16251c}
body[data-section="tools"] .sidebar .nav button.active{background:#304f3d!important;color:#edf8ef!important}#inventoryPage:not(.ly-dw-on) .ly-goals-eyebrow{color:#b3d5bd!important}
#lyInventoryProjectHome>.ly-inventory-project-heading{display:flex;flex-direction:column;align-items:flex-start;gap:14px}#lyInventoryProjectHome>.ly-inventory-project-heading>button{width:auto;align-self:flex-start;min-width:150px}#lyInventoryProjectHome>.ly-inventory-project-heading h2{font-size:25px}#lyInventoryProjectHome>.ly-inventory-project-heading p{margin-bottom:0}
#settingsPage .settings-card>h2{color:#bfcee3!important}html[data-theme="light"] #settingsPage .settings-card>h2{color:#3e587b!important}

#macrosPage .nv-water{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#162831,#244555 55%,#3e687d)!important;border-color:#77cafa66!important}
#macrosPage .nv-water>.nv-falling-layer{position:absolute!important;inset:0;z-index:0;pointer-events:none!important;overflow:hidden}
#macrosPage .nv-water>:not(.nv-falling-layer){position:relative;z-index:1}
html[data-theme="light"] #macrosPage .nv-water{background:linear-gradient(115deg,#edf8ff,#b9ddea)!important}
@media(prefers-reduced-motion:reduce){#macrosPage .nv-water>.nv-falling-layer{display:none!important}}

.ly-plan-nutrient .nv-falling-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.ly-plan-nutrient .nv-snowflake{position:absolute;top:0;bottom:0;width:18px;animation:nv-smooth-fall var(--nv-snow-duration,5s) linear infinite;animation-play-state:running!important;pointer-events:none;opacity:.34}
.ly-plan-nutrient .nv-snowflake img{position:absolute;left:0;top:-24px;display:block;width:18px;height:22px;max-width:none}
