/* Secondary app pages share the MyChronoShift palette. Load after chronoshift.css. */
body.align-app-surface .stride-app :is(.wbc-content,.wbc-dialog){--wbc-green:var(--mcs-accent);--wbc-ink:var(--mcs-ink);--wbc-muted:var(--mcs-muted);--wbc-line:var(--mcs-line);color:var(--mcs-ink)}
body.align-app-surface .stride-app :is(.do-overview,.do-date-view,.sl-content,.wb-app,.st-tools-library,.st-entry-list){color:var(--mcs-ink)}

/* Plans and individual-day details. */
body.align-app-surface .stride-app :is(.do-day,.do-fast,.do-date-routine,.do-duration,.do-macros>div){background:var(--mcs-card)!important;color:var(--mcs-ink);border-color:var(--mcs-line)!important}
body.align-app-surface .stride-app :is(.do-day-heading,.do-day:nth-child(2) .do-day-heading,.do-routine){background:var(--mcs-raised)!important;color:var(--mcs-muted);border-color:var(--mcs-line)}
body.align-app-surface .stride-app :is(.do-meal,.do-fast li+li,.do-date-view .do-fast){border-color:var(--mcs-line)}
body.align-app-surface .stride-app :is(.do-meal-time time,.do-meal-copy strong,.do-routine strong,.do-fast-range,.do-date-routine strong,.do-macros strong){color:var(--mcs-ink)}
body.align-app-surface .stride-app :is(.do-eyebrow,.do-meal-time small,.do-meal-time>span,.do-meal-label,.do-meal-copy small,.do-meal.is-empty .do-meal-copy strong,.do-fast li>small,.do-date-routine span,.do-date-routine small,.do-macros span,.do-macros small){color:var(--mcs-muted)}
body.align-app-surface .stride-app :is(.do-shopping,.do-meal-edit,.do-date-view button){background:var(--mcs-raised);color:var(--mcs-ink);border-color:var(--mcs-line)}
body.align-app-surface .stride-app .do-fast-heading button{color:var(--mcs-accent);background:transparent}
body.align-app-surface .stride-app :is(.do-shift,.do-shift-off){background:#29372a;color:#bdd1b0;border-color:#465b42}
body.align-app-surface .stride-app .do-shift-day{background:#433725;color:#ffd078;border-color:#665334}
body.align-app-surface .stride-app .do-shift-night{background:#203950;color:#92c8ff;border-color:#385772}

/* Recipe library, meal planner, Learn and instructor-led videos. */
body.align-app-surface .stride-app :is(.wbc-recipe,.wbc-move,.wbc-article,.wbc-week-day,.wbc-slot,.wbc-recorded-details,.wbc-meal-log,.wbc-meal-planning,.wbc-planner,.wbc-empty,.wbc-breathe-hero){background:var(--mcs-card)!important;color:var(--mcs-ink);border-color:var(--mcs-line)!important;box-shadow:none}
body.align-app-surface .stride-app :is(.wbc-week-day h4,.wbc-dialog .wbc-macros,.wbc-nutrition,.wbc-own-recipe-art){background:var(--mcs-raised)!important;color:var(--mcs-ink)}
body.align-app-surface .stride-app :is(.wbc-week-slot+.wbc-week-slot,.wbc-meal-log li,.wbc-macros,.wbc-workout-record,.wbc-macro-inputs,.wbc-recorded-details .wbc-meal-log){border-color:var(--mcs-line)!important}
body.align-app-surface .stride-app :is(.wbc-recipe strong,.wbc-article strong,.wbc-macros .wbc-macro b,.wbc-kcal,.wbc-expert-name,.wbc-week-slot strong,.wbc-slot strong,.wbc-session-time,.wbc-workout-record>summary){color:var(--mcs-ink)!important}
body.align-app-surface .stride-app :is(.wbc-recipe small,.wbc-move small,.wbc-article small,.wbc-macros .wbc-macro small,.wbc-week-slot small,.wbc-week-slot .wbc-meal-time,.wbc-week-slot:not(.is-planned) strong,.wbc-meal-log li span,.wbc-slot small,.wbc-slot .wbc-meal-time,.wbc-expert-article .wbc-expert-byline,.wbc-expert-credentials,.wbc-expert-publisher,.wbc-expert-article .wbc-article-summary,.wbc-photo-credit,.wbc-photo-credits,.wbc-video-provider,.wbc-video-help){color:var(--mcs-muted)!important}
body.align-app-surface .stride-app :is(.wbc-source,.wbc-expert-article .wbc-article-link,.wbc-recipe-body>span,.wbc-video-help a,.wbc-photo-credits a,.wbc-photo-credit a){color:var(--mcs-accent)!important}
body.align-app-surface .stride-app .wbc-week-day h4>span{background:#314529;color:var(--mcs-accent)}
body.align-app-surface .stride-app .wbc-context{background:#3b3524;color:#efdaa7}
body.align-app-surface .stride-app .wbc-button.wbc-secondary{background:var(--mcs-raised)!important;color:var(--mcs-ink)!important;border-color:var(--mcs-line)!important}
body.align-app-surface .stride-app .wbc-button.wbc-secondary[aria-pressed=true]{background:#34462b!important;color:var(--mcs-accent)!important;border-color:var(--mcs-accent)!important}
body.align-app-surface .stride-app .wbc-video-play{background:#10191eea;color:#fff}

/* Shopping and daily ingredient checklists. */
body.align-app-surface .stride-app :is(.sl-extras,.sl-manual,.sl-store-controls,.sl-store-group,.sl-empty,.sl-notice){background:var(--mcs-raised)!important;color:var(--mcs-ink);border-color:var(--mcs-line)!important}
body.align-app-surface .stride-app :is(.sl-sources,.sl-extras>ul>li,.sl-items li,.sl-daily-list){border-color:var(--mcs-line)}
body.align-app-surface .stride-app :is(.sl-items strong,.sl-sources summary,.sl-extras>ul>li>label){color:var(--mcs-ink)}
body.align-app-surface .stride-app :is(.sl-items small,.sl-list-heading>span,.sl-store-group h4>span,.sl-items .is-checked strong,.sl-sources ul){color:var(--mcs-muted)}
body.align-app-surface .stride-app .sl-items small.sl-quantity-note{background:#3b3524;color:#efdaa7}
body.align-app-surface .stride-app .sl-button{background:var(--mcs-raised);color:var(--mcs-ink);border-color:#4b5d66;border-radius:7px}
body.align-app-surface .stride-app .sl-primary{background:var(--mcs-accent);color:#14200a;border-color:var(--mcs-accent)}
body.align-app-surface .stride-app .sl-content .sl-status{color:#c2dfa0}

/* Tools, profile, journal and wellbeing details. */
body.align-app-surface .stride-app .st-tool-add{background:var(--mcs-raised)!important;color:var(--mcs-ink)!important;border:1px solid #52626a}
body.align-app-surface .stride-app .st-tool-add[aria-pressed=true]{background:#34462b!important;color:var(--mcs-accent)!important;border-color:#5f7c43}
body.align-app-surface .stride-app :is(.st-tool-choice-icon,.st-assessment-icon,.ah-push-icon,.wb-home-link>span:first-child){background:var(--mcs-raised)!important;color:var(--mcs-accent)!important}
body.align-app-surface .stride-app :is(.st-assessment-card,.st-push-reminders){padding:20px;border:1px solid var(--mcs-line)}
body.align-app-surface .stride-app :is(.st-assessment-card small,.st-assessment-card span,.st-setting-row p,.st-disclosure>summary>span,.st-optional,.st-form-hint,.st-form-help,.st-auth-note,.st-journal-entry time,.st-week-stats small,.wb-counts dt){color:var(--mcs-muted)}
body.align-app-surface .stride-app :is(.st-setting-row,.st-journal-entry,.aj-day-note,.wb-timeline li,.wb-routine-foot,.wb-history-row,.wb-suggestion){border-color:var(--mcs-line)}
body.align-app-surface .stride-app :is(.st-journal-entry,.st-tools-empty,.wb-week-day,.wb-week-stats>div,.wb-history-row,.wb-review-grid>section,.wb-window-pair,.st-custom-notice,.st-plan-result,.st-result-block,.st-result-goal,.st-result-window,.st-result-hold,.st-result-sources){background:var(--mcs-raised)!important;color:var(--mcs-ink);border-color:var(--mcs-line)!important}
body.align-app-surface .stride-app :is(.st-entry-list strong,.st-result-window strong,.st-result-goal strong,.wb-time,.wb-timeline strong,.wb-week-stats strong,.wb-week-day strong,.wb-window-pair strong){color:var(--mcs-ink)}
body.align-app-surface .stride-app :is(.wb-time small,.wb-timeline small,.wb-plan-label,.wb-week-day span,.wb-week-day small,.wb-week-stats span,.wb-window-pair small,.wb-window-pair span,.st-result-window span,.st-result-window small,.st-custom-tag,.st-custom-consent){color:var(--mcs-muted)}
body.align-app-surface .stride-app :is(.ah-push-open,.wb-tab,.wb-date-control,.st-custom-preset,.st-unit-toggle button){background:var(--mcs-raised)!important;color:var(--mcs-ink)!important;border-color:var(--mcs-line)!important;min-height:44px}
body.align-app-surface .stride-app :is(.wb-tab.is-active,.st-custom-preset[aria-pressed=true],.st-unit-toggle button[aria-pressed=true]){background:#34462b!important;color:var(--mcs-accent)!important}

/* Existing guided setup and saved-choice summaries. */
body.align-app-surface .stride-app .st-onboarding-v12 :is(.st-choice,.st-cue-choice,.st-welcome-choice,.st-plan-choice,.st-cue-review,.st-welcome-summary,.st-assessment-consent,.st-cue-care){background:var(--mcs-raised)!important;color:var(--mcs-ink)!important;border-color:var(--mcs-line)!important}
body.align-app-surface .stride-app .st-onboarding-v12 :is(.st-choice strong,.st-choice span,.st-cue-choice strong,.st-cue-choice span,.st-welcome-choice strong,.st-welcome-choice span,.st-plan-choice strong,.st-plan-choice span,.st-assessment-consent span,.st-welcome-summary strong){color:var(--mcs-ink)!important}
body.align-app-surface .stride-app .st-onboarding-v12 :is(.st-choice small,.st-cue-topline,.st-cue-step,.st-cue-unit,.st-cue-choice small,.st-welcome-choice small,.st-welcome-summary span,.st-cue-care){color:var(--mcs-muted)!important}
body.align-app-surface .stride-app .st-onboarding-v12 .st-cue-progress{background:#34424a}
body.align-app-surface .stride-app .st-onboarding-v12 .st-cue-progress i{background:var(--mcs-accent)}
body.align-app-surface .stride-app .st-onboarding-v12 :is(.st-choice,.st-cue-choice,.st-welcome-choice,.st-plan-choice):has(:checked){background:#34462b!important;border-color:var(--mcs-accent)!important}
body.align-app-surface .stride-app .st-onboarding-v12 .st-choice>span{background:var(--mcs-raised)!important;color:var(--mcs-ink)!important;border-color:var(--mcs-line)!important;border-radius:7px}
body.align-app-surface .stride-app .st-onboarding-v12 .st-choice input:checked+span{background:#34462b!important;color:var(--mcs-ink)!important;border-color:var(--mcs-accent)!important}
body.align-app-surface .stride-app .st-onboarding-v12 .st-choice input:checked+span:after{color:var(--mcs-accent)!important}
body.align-app-surface .stride-app :is(.st-form-error,.wb-form-error,.wbc-form-error,.sc-error,.ce-error){background:#442b2b!important;color:#ffcbbe!important;border-color:#805148}

/* Reminder settings are appended to body, outside the app container. */
body.stride-site .ah-push-dialog{background:var(--mcs-card)!important;color:var(--mcs-ink);border:1px solid var(--mcs-line);border-radius:14px;font-family:inherit}
body.stride-site .ah-push-dialog :is(h2,h3,label,.ah-push-quiet-toggle strong,.ah-push-upcoming strong){color:var(--mcs-ink)!important}
body.stride-site .ah-push-dialog :is(p,small,.ah-push-moments span,.ah-push-eyebrow,.ah-push-zone,.ah-push-quiet-toggle small){color:var(--mcs-muted)!important}
body.stride-site .ah-push-dialog :is(.ah-push-icon,.ah-push-close,.ah-push-moments>div,.ah-push-quiet,.ah-push-notice,.ah-push-state){background:var(--mcs-raised)!important;color:var(--mcs-ink)!important;border-color:var(--mcs-line)!important}
body.stride-site .ah-push-dialog :is(.ah-push-icon,.ah-push-moments strong){color:var(--mcs-accent)!important}
body.stride-site .ah-push-dialog :is(.ah-push-warning,.ah-push-state.is-error){background:#442b2b!important;color:#ffcbbe!important;border-color:#805148!important}
body.stride-site .ah-push-dialog :is(.ah-push-timing,.ah-push-daily,.ah-push-tests,.ah-push-upcoming,.ah-push-upcoming li){border-color:var(--mcs-line)}
body.stride-site .ah-push-dialog .ah-push-primary{background:var(--mcs-accent)!important;color:#14200a!important;border-color:var(--mcs-accent)!important;border-radius:7px}
body.stride-site .ah-push-dialog :is(.ah-push-primary.ah-push-off,.ah-push-secondary){background:var(--mcs-raised)!important;color:var(--mcs-ink)!important;border-color:var(--mcs-line)!important;border-radius:7px}
body.stride-site .ah-push-dialog .ah-push-time-fields input{background:#111a1e;color:var(--mcs-ink);border-color:#495b65;border-radius:7px}
body.stride-site .ah-push-dialog input[type=checkbox]{accent-color:var(--mcs-accent)}

/* Appointments inherit the same palette in Calendar and day details. */
body.align-app-surface .stride-app .ce-agenda>article{background:var(--mcs-card);border-color:var(--mcs-line)}
body.align-app-surface .stride-app :is(.ce-day,.ce-event){border-color:var(--mcs-line)}
body.align-app-surface .stride-app :is(.ce-event-time,.ce-event button,.ce-agenda article>header>button){color:var(--mcs-ink)}
body.align-app-surface .stride-app :is(.ce-event button small,.ce-event-time small){color:var(--mcs-muted)}
body.align-app-surface .stride-app :is(.ce-day header button,.ce-edit-shift){background:var(--mcs-raised);color:var(--mcs-ink)}
body.align-app-surface .stride-app .ce-primary{background:var(--mcs-accent);color:#14200a}
body.align-app-surface .stride-app .ce-remove{background:#442b2b;color:#ffcbbe}
body.align-app-surface .stride-app .ce-shift{background:var(--mcs-raised);color:var(--mcs-muted)}
body.align-app-surface .stride-app .ce-shift-day{background:#433725;color:#ffd078}
body.align-app-surface .stride-app .ce-shift-night{background:#203950;color:#92c8ff}
body.align-app-surface .stride-app .ce-shift-off{background:#29372a;color:#bdd1b0}

@media(max-width:600px){body.align-app-surface .stride-app :is(.st-assessment-card,.st-push-reminders){padding:17px}body.align-app-surface .stride-app .sl-content .sl-button{font-size:14px}}

/* v14.0.2: one column of compact photo rows at every screen size. */
body.align-app-surface .stride-app [data-screen=tools]{max-width:780px;margin-inline:auto}
body.align-app-surface .stride-app .mcs-tools-heading{margin:4px 0 20px}
body.align-app-surface .stride-app .mcs-tools-heading h1{font-size:30px;line-height:1.15;margin:7px 0 9px;letter-spacing:-1px}
body.align-app-surface .stride-app .mcs-tools-heading>p:last-child{font-size:13px;margin:0;color:var(--mcs-muted)}
body.align-app-surface .stride-app .st-tool-picker.mcs-photo-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0}
body.align-app-surface .stride-app .mcs-photo-tools .st-tool-choice{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:"photo title" "photo copy" "photo actions";column-gap:14px;row-gap:5px;padding:12px;min-width:0;border-radius:10px;align-items:start}
body.align-app-surface .stride-app .mcs-photo-tools .pa-tool-photo{grid-area:photo;width:96px;height:112px;min-width:0;object-fit:cover;object-position:center;border-radius:7px;margin:0;align-self:center}
body.align-app-surface .stride-app .mcs-photo-tools .st-tool-choice>h2{grid-area:title;font-size:16px;line-height:1.25;margin:0;letter-spacing:-.25px;align-self:end}
body.align-app-surface .stride-app .mcs-photo-tools .st-tool-choice>p{grid-area:copy;font-size:12px;line-height:1.4;margin:0;color:var(--mcs-muted);min-height:0}
body.align-app-surface .stride-app .mcs-photo-tools .st-tool-choice-actions{grid-area:actions;display:flex;flex-direction:row;flex-wrap:nowrap;gap:8px;align-items:center;margin-top:2px}
body.align-app-surface .stride-app .mcs-photo-tools :is(.st-tool-add,.st-tool-open){flex:0 1 auto;min-height:44px;padding:8px 12px;font-size:12px;gap:5px;border-radius:7px;min-width:0;white-space:nowrap}
body.align-app-surface .stride-app .mcs-photo-tools .st-tool-open{background:transparent}
body.align-app-surface .stride-app .mcs-photo-tools :is(.st-tool-add,.st-tool-open) .st-icon{width:13px;height:13px;flex-shrink:0}
body.align-app-surface .stride-app .mcs-tools-note{font-size:11px;color:var(--mcs-muted);margin:16px 0 0;text-align:center}
@media(min-width:700px){body.align-app-surface .stride-app .mcs-photo-tools .st-tool-choice{grid-template-columns:100px minmax(0,1fr) auto;grid-template-areas:"photo title actions" "photo copy actions";column-gap:18px;row-gap:7px;align-items:center}body.align-app-surface .stride-app .mcs-photo-tools .pa-tool-photo{width:100px;height:84px}body.align-app-surface .stride-app .mcs-photo-tools .st-tool-choice>p{align-self:start}body.align-app-surface .stride-app .mcs-photo-tools .st-tool-choice-actions{margin:0}}
@media(max-width:359px){body.align-app-surface .stride-app .mcs-photo-tools .st-tool-choice{grid-template-columns:76px minmax(0,1fr);column-gap:11px;padding:10px}body.align-app-surface .stride-app .mcs-photo-tools .pa-tool-photo{width:76px;height:110px}body.align-app-surface .stride-app .mcs-photo-tools :is(.st-tool-add,.st-tool-open){padding:8px 9px}body.align-app-surface .stride-app .mcs-photo-tools .st-tool-choice-actions{gap:5px}}

/* A dedicated photo entry for Shift Swap on Home. */
body.align-app-surface .stride-app .mcs-swap-feature{border:1px solid var(--mcs-line);border-radius:10px;overflow:hidden;margin-bottom:16px;background:var(--mcs-card)}
body.align-app-surface .stride-app .mcs-swap-feature>button{display:block;position:relative;isolation:isolate;width:100%;min-height:210px;border:0;border-radius:9px;overflow:hidden;padding:22px;text-align:left;background:var(--mcs-card);color:#fff}
body.align-app-surface .stride-app .mcs-swap-feature>button:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#08101308 0%,#08101369 35%,#081013ed 100%)}
body.align-app-surface .stride-app .mcs-swap-feature img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center 42%}
body.align-app-surface .stride-app .mcs-swap-copy{display:flex;flex-direction:column;justify-content:flex-end;min-height:166px;gap:8px}
body.align-app-surface .stride-app .mcs-swap-copy .mcs-eyebrow{color:#d8e5ea!important;font-size:9px!important;letter-spacing:1.4px}
body.align-app-surface .stride-app .mcs-swap-copy>strong{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:25px;line-height:1.15;letter-spacing:-.7px;font-weight:700}
body.align-app-surface .stride-app .mcs-swap-copy>strong>span{color:var(--mcs-accent);font-size:22px}
body.align-app-surface .stride-app .mcs-swap-copy>small{font-size:12px;line-height:1.5;color:#e6edf0}
