/* Shift V1 P0 member-shell repair — authoritative source. */
.ask-drawer{width:min(430px,100vw)!important;max-width:100vw!important;display:none!important;transform:none!important;visibility:hidden!important;pointer-events:none!important;overflow:hidden!important;contain:layout paint!important}
.ask-drawer.open{display:flex!important;transform:translateX(0)!important;visibility:visible!important;pointer-events:auto!important}
.ask-drawer .ask-head,.ask-drawer .ask-body,.ask-drawer .ask-input{min-width:0!important;width:100%!important;max-width:100%!important}
.ask-drawer .ask-body{overflow-x:hidden!important;overflow-y:auto!important}
.ask-drawer .ask-input textarea{min-width:0!important;max-width:100%!important}
.mp-hero{overflow:hidden!important;max-width:100%!important;min-width:0!important}

/* Desktop member-shell geometry: keep navigation and product content in
   separate columns even when legacy full-design rules are also present. */
@media(min-width:1001px){
  .member-shell{display:grid!important;grid-template-columns:265px minmax(0,1fr)!important;align-items:start!important;width:100%!important;max-width:100%!important;margin:0!important;background:#f4f0e4!important}
  .member-shell>.member-side{position:sticky!important;inset:auto!important;top:0!important;grid-column:1!important;width:265px!important;min-width:265px!important;max-width:265px!important;height:auto!important;min-height:100vh!important;margin:0!important;transform:none!important;z-index:2!important;overflow-x:hidden!important}
  .member-shell>.member-main{position:relative!important;inset:auto!important;grid-column:2!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;transform:none!important;padding:clamp(22px,4vw,54px)!important;z-index:1!important;overflow:visible!important}
  .member-shell>.member-main>.member-product,.member-shell>.member-main .member-product{width:100%!important;max-width:1280px!important;min-width:0!important;margin-inline:auto!important}
}

/* G2-011 Progress story within the existing Shift member palette. */
.shift-progress-story{margin:22px 0 30px;padding:28px;border:1px solid rgba(83,98,77,.28);border-radius:24px;background:#f8f6ef;box-shadow:0 16px 45px rgba(23,38,29,.08);min-width:0;overflow:hidden}
.shift-progress-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,230px);gap:22px;align-items:stretch}
.shift-progress-intro h3{margin:.35rem 0 .65rem;font-size:2rem;line-height:1.08;color:#17261d}
.shift-progress-intro p{margin:0;max-width:66ch;color:#37453b;line-height:1.6}
.shift-progress-score,.shift-progress-nudge{border-radius:20px;background:#17261d;color:#f4f1e8;padding:20px;display:flex;flex-direction:column;justify-content:center;min-width:0}
.shift-progress-score strong{font-size:3.2rem;line-height:.95;color:#dce8c7}.shift-progress-score span{font-weight:700;margin-top:8px}.shift-progress-score small{margin-top:10px;color:#cbd4c4}
.shift-progress-nudge strong{font-size:1.05rem;color:#dce8c7}.shift-progress-nudge span{margin-top:7px;line-height:1.45}
.shift-progress-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}
.shift-progress-metric{background:#fff;border:1px solid rgba(83,98,77,.18);border-radius:18px;padding:18px;min-width:0;display:flex;flex-direction:column;gap:6px}
.shift-progress-metric.is-improving{border-color:rgba(83,98,77,.52);box-shadow:inset 0 3px 0 #53624d}
.shift-progress-label{font-size:.76rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#53624d}.shift-progress-metric strong{font-size:1.8rem;line-height:1.05;color:#17261d}.shift-progress-metric small{color:#58645b;line-height:1.4}
.shift-progress-milestones{margin-top:20px;padding-top:18px;border-top:1px solid rgba(83,98,77,.2);display:grid;grid-template-columns:1fr 1fr;gap:10px 18px}.shift-progress-milestones>.eyebrow{grid-column:1/-1}.shift-progress-milestones div{display:flex;flex-direction:column;gap:3px}.shift-progress-milestones strong{color:#17261d}.shift-progress-milestones span{color:#58645b;font-size:.9rem}
.shift-progress-foot{margin:18px 0 0!important;color:#58645b!important;font-size:.9rem;line-height:1.5}

/* G3-008 bounded authenticated contrast repair using the existing forest palette. */
.mp-btn:not(.ghost),.btn.btn-primary,button.btn-primary,.member-form button[type="submit"]{background:#53624d!important;border-color:#53624d!important;color:#fff!important}
.eyebrow,.mp-eyebrow{color:#53624d!important}
.member-form input,.member-form select,.member-form textarea,.mp-form input,.mp-form select,.mp-form textarea,.mp-input,.mp-select,.ask-input textarea{border-color:#6f7869!important}
[role="switch"],.accessibility-toggle,.access-toggle,.mp-toggle{border-color:#6f7869!important}

/* Visible keyboard focus within the same premium forest/cream design system. */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[role="button"]:focus-visible,[role="tab"]:focus-visible,[role="switch"]:focus-visible{outline:3px solid #53624d!important;outline-offset:3px!important}
.mp-hero a:focus-visible,.mp-hero button:focus-visible,.member-side a:focus-visible,.member-side button:focus-visible{outline-color:#dce8c7!important}

/* G2-014-PREMIUM-PROGRESS-PICTURE — homepage-grade hierarchy without changing the photo lifecycle. */
.mp-progress-picture-premium{min-width:0;overflow:hidden}
.mp-picture-intro{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(220px,.55fr);gap:18px;margin:18px 0 28px;padding:30px;border-radius:28px;background:#17261d;color:#f4f1e8;box-shadow:0 18px 50px rgba(23,38,29,.16);overflow:hidden}
.mp-picture-intro .eyebrow{color:#dce8c7!important}.mp-picture-intro h3{margin:.45rem 0 .75rem;max-width:16ch;font-size:clamp(2rem,4vw,3rem);line-height:1;color:#fff}.mp-picture-intro p{margin:0;max-width:58ch;color:#e4e7df;line-height:1.62}
.mp-picture-trust{align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;gap:8px;padding:22px;border:1px solid rgba(220,232,199,.38);border-radius:22px;background:rgba(255,255,255,.055)}.mp-picture-trust strong{font-size:1.05rem;color:#fff}.mp-picture-trust span{font-size:.92rem;line-height:1.48;color:#dce8c7}
.mp-progress-picture-premium .mp-picture-disclosure{margin:16px 0;border:1px solid rgba(83,98,77,.28);border-radius:20px;background:#f8f6ef;overflow:hidden;box-shadow:0 10px 28px rgba(23,38,29,.05)}
.mp-progress-picture-premium .mp-picture-disclosure>summary{min-height:52px;padding:15px 18px;display:flex;align-items:center;font-weight:800;color:#17261d;cursor:pointer}.mp-progress-picture-premium .mp-picture-disclosure[open]>summary{border-bottom:1px solid rgba(83,98,77,.18)}
.mp-progress-picture-premium .mp-picture-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-weight:750;color:#26362c}
.mp-progress-picture-premium input[type="file"].mp-premium-file{display:block;width:100%;max-width:680px;min-height:54px;padding:7px;border:1px solid #6f7869;border-radius:14px;background:#fff;color:#26362c;font:inherit;overflow:hidden}
.mp-progress-picture-premium input[type="file"].mp-premium-file::file-selector-button{min-height:38px;margin-right:12px;padding:8px 14px;border:0;border-radius:10px;background:#17261d;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.mp-progress-picture-premium .mp-picture-control{min-height:48px!important;border:1px solid #6f7869!important;border-radius:13px!important;background:#fff!important;color:#17261d!important;font:inherit!important;padding:0 12px!important}
.mp-picture-preview{display:none;width:min(100%,360px)!important;max-width:360px!important;max-height:none!important;aspect-ratio:4/5;object-fit:cover;margin:18px 0!important;border-radius:22px;border:1px solid rgba(83,98,77,.24);box-shadow:0 16px 36px rgba(23,38,29,.12)}
.mp-picture-consent-row{display:flex!important;align-items:flex-start;gap:12px;max-width:760px;margin:14px 0;padding:14px 16px;border:1px solid rgba(83,98,77,.24);border-radius:15px;background:#f8f6ef;color:#37453b;line-height:1.48}.mp-picture-consent{width:20px!important;height:20px!important;min-width:20px;margin-top:1px;accent-color:#53624d}
.mp-picture-primary-action,.mp-picture-visual-action{min-height:48px!important;border-radius:999px!important;padding:11px 18px!important;font-weight:800!important}.mp-picture-primary-action{box-shadow:0 10px 22px rgba(23,38,29,.12)}
.mp-picture-status{min-height:24px;margin:12px 0 18px!important;font-weight:700;line-height:1.45;color:#37453b}.mp-picture-status.error{color:#7b2f2f}
.mp-progress-photo-history{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin-top:18px;min-width:0}
.mp-progress-photo-history>.mp-progress-photo{margin:0!important;padding:0!important;border:1px solid rgba(83,98,77,.24)!important;border-radius:24px!important;background:#fff!important;box-shadow:0 16px 40px rgba(23,38,29,.08)!important;overflow:hidden!important;min-width:0!important;color:#37453b}
.mp-progress-photo-kicker{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px 12px}.mp-progress-photo-kicker .eyebrow{font-size:.7rem!important}.mp-progress-photo-kicker>span:last-child{font-size:.82rem;color:#58645b}
.mp-progress-photo-media{margin:0!important;padding:0 18px!important;background:#fff}.mp-progress-photo-image{display:block!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;aspect-ratio:4/5;object-fit:cover;border-radius:18px;background:#edf0e9}
.mp-progress-photo>.mp-progress-photo-delete{min-height:44px;margin:16px 18px 18px!important;padding:9px 14px!important;border:1px solid #53624d!important;border-radius:999px!important;background:#fff!important;color:#17261d!important;font-weight:800!important}
.mp-progress-photo-empty{grid-column:1/-1;margin:0!important;padding:24px;border:1px dashed #6f7869;border-radius:18px;background:#f8f6ef;color:#58645b!important;text-align:center}
.mp-progress-picture-premium [id^="visual"] img{max-width:100%;height:auto;border-radius:18px}

@media(max-width:1000px){.member-shell{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;margin:0!important}.member-shell>.member-side{position:static!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;transform:none!important;overflow-x:auto!important;overflow-y:hidden!important;contain:layout paint!important;overscroll-behavior-x:contain}.member-shell>.member-main{position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:0!important;transform:none!important}.shift-progress-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-picture-intro{grid-template-columns:1fr}.mp-picture-trust{min-height:128px}}
@media(max-width:640px){.mp-tabs{min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;contain:layout paint!important;overscroll-behavior-x:contain}.shift-progress-story{margin:16px 0 22px;padding:18px;border-radius:20px}.shift-progress-intro{grid-template-columns:1fr}.shift-progress-score,.shift-progress-nudge{min-height:132px}.shift-progress-grid{grid-template-columns:1fr}.shift-progress-milestones{grid-template-columns:1fr}.mp-picture-intro{margin:14px 0 20px;padding:20px;border-radius:22px}.mp-picture-intro h3{font-size:2.15rem}.mp-picture-trust{padding:17px;border-radius:17px;min-height:0}.mp-progress-picture-premium input[type="file"].mp-premium-file{font-size:16px}.mp-progress-picture-premium .mp-picture-control{font-size:16px!important}.mp-picture-preview{width:100%!important;max-width:320px!important}.mp-picture-consent-row{padding:13px}.mp-picture-primary-action,.mp-picture-visual-action{width:100%;min-height:48px!important}.mp-progress-photo-history{grid-template-columns:minmax(0,1fr);gap:14px}.mp-progress-photo-kicker{padding:14px 15px 10px}.mp-progress-photo-media{padding:0 15px!important}.mp-progress-photo>.mp-progress-photo-delete{width:calc(100% - 30px);margin:14px 15px 16px!important}.mp-progress-picture-premium .mp-picture-disclosure>summary{min-height:54px;padding:15px}}

/* Ask Timber: a quiet notepad at the edge of the desk. */
.mp-ask-pad{position:fixed;right:max(16px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));z-index:8800;font-family:inherit}.mp-ask-edge{display:grid;gap:2px;min-width:166px;padding:9px 15px 8px;border:1px solid #707762;border-bottom:4px solid #707762;border-radius:10px 10px 5px 5px;background:#11130f;color:#e7e3da;text-align:left;box-shadow:0 7px 18px rgba(5,5,5,.28);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.mp-ask-edge:hover,.mp-ask-edge:focus-visible{transform:translateY(-2px);box-shadow:0 9px 22px rgba(5,5,5,.34)}.mp-ask-edge>span{font-size:11px;letter-spacing:.13em;color:#aab09d;font-weight:900}.mp-ask-edge>b{font-size:15px}.mp-ask-surface{position:absolute;right:0;bottom:0;width:min(326px,calc(100vw - 28px));max-height:min(590px,calc(100vh - 28px));overflow:auto;border:1px solid #707762;border-radius:15px 15px 7px 7px;background:#e7e3da;color:#050505;box-shadow:0 16px 46px rgba(5,5,5,.48);transform-origin:bottom right;transition:opacity .22s ease,transform .22s ease;opacity:0;transform:translateY(10px) scale(.985);pointer-events:none}.mp-ask-pad[data-open="true"] .mp-ask-surface{opacity:1;transform:none;pointer-events:auto}.mp-ask-pad[data-open="true"] .mp-ask-edge{opacity:0;pointer-events:none}.mp-ask-pad-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 9px 8px 14px;background:#707762;color:#050505;border-bottom:1px solid #050505;font-size:11px;letter-spacing:.1em;font-weight:900}.mp-ask-close{min-width:48px;min-height:44px;padding:8px 13px;border:1px solid #050505;border-radius:999px;background:#050505;color:#e7e3da;font:inherit;font-weight:900;letter-spacing:0;cursor:pointer}.mp-ask-paper{position:relative;padding:17px 16px 18px;background-color:#e7e3da;background-image:repeating-linear-gradient(0deg,rgba(112,119,98,.045) 0,rgba(112,119,98,.045) 1px,transparent 1px,transparent 30px)}.mp-ask-paper:before{content:"";position:absolute;top:0;bottom:0;left:13px;width:3px;background:#707762;opacity:.42}.mp-ask-paper>*{position:relative}.mp-ask-paper h1,.mp-ask-paper h2,.mp-ask-paper h3,.mp-ask-paper p,.mp-ask-paper label,.mp-ask-paper strong{color:#050505}.mp-ask-paper .mp-muted,.mp-ask-paper small{color:#44483c}.mp-ask-paper #shiftAiThread{max-height:250px;overflow:auto;overscroll-behavior:contain;margin:15px 0}.mp-ask-paper .mp-ai-message{border-color:#707762;background:rgba(112,119,98,.12);color:#050505}.mp-ask-paper .mp-ai-message.user{background:#707762;color:#050505}.mp-ask-paper textarea,#shiftAiInput{display:block;width:100%;min-height:108px;max-height:200px;resize:none;padding:12px 13px;border:1px solid #707762;border-radius:10px;background:#f4f1e9;color:#050505;font:inherit;line-height:1.5;box-shadow:inset 0 1px 3px rgba(5,5,5,.05);transition:border-color .15s ease,box-shadow .15s ease}.mp-ask-paper textarea:focus,#shiftAiInput:focus{outline:3px solid rgba(112,119,98,.42);outline-offset:2px;border-color:#050505;box-shadow:0 0 0 5px rgba(112,119,98,.1)}.mp-ask-paper button:not(.mp-ask-close){border-color:#050505}.mp-ask-paper #shiftAiSend{background:#050505;color:#e7e3da}.mp-ask-paper .mp-status{color:#44483c}.mp-ask-paper .mp-status.error{color:#050505;font-weight:900}.mp-ask-paper a{color:#050505}.mp-ask-paper .mp-card,.mp-ask-paper .mp-plan{background:rgba(255,255,255,.25);color:#050505}.mp-ask-paper form{margin-bottom:0}@media (max-width:700px){.mp-ask-pad{left:10px;right:10px;bottom:max(8px,env(safe-area-inset-bottom))}.mp-ask-edge{width:100%;min-width:0;padding:10px 16px}.mp-ask-surface{position:fixed;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 16px);border-radius:20px 20px 8px 8px;transform-origin:bottom center}.mp-ask-paper{padding:20px 18px 24px}.mp-ask-paper #shiftAiThread{max-height:28vh}}@media (prefers-reduced-motion:reduce){.mp-ask-edge,.mp-ask-surface{transition:none!important;scroll-behavior:auto!important}}


/* G3-008 bounded production contrast remediation — precedence-safe override.
   Dark olive remains the premium eyebrow colour on cream; dark heroes use the existing light sage. */
html body .member-main .member-product .mp-form .mp-btn:not(.ghost),html body .member-main .member-product .mp-btn:not(.ghost),html body .member-main .mp-form .mp-btn:not(.ghost),html body .member-main .mp-btn:not(.ghost),html body .member-main .ask-drawer .btn.btn-primary,html body .member-main .ask-drawer button.btn-primary,html body .ask-drawer .btn.btn-primary,html body .ask-drawer button.btn-primary,html body .btn.btn-primary,html body button.btn-primary,html body .member-form button[type="submit"]{background:#53624d!important;border-color:#53624d!important;color:#fff!important}
html body .member-main .eyebrow,html body .member-main .mp-eyebrow{color:#53624d!important}
html body .member-main .mp-hero .eyebrow,html body .member-main .mp-hero .mp-eyebrow{color:#dce8c7!important}
html body .member-main .member-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),html body .member-main .member-form select,html body .member-main .member-form textarea,html body .member-main .member-product .mp-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),html body .member-main .member-product .mp-form select,html body .member-main .member-product .mp-form textarea,html body .member-main .mp-form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),html body .member-main .mp-form select,html body .member-main .mp-form textarea,html body .member-main input.mp-input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),html body .member-main select.mp-select,html body .member-main textarea.mp-input,html body .member-main .ask-drawer .ask-input textarea,html body .ask-drawer .ask-input textarea,html body .ask-input textarea{border-color:#6f7869!important}
html body [role="switch"],html body .accessibility-toggle,html body .access-toggle,html body .mp-toggle{border-color:#6f7869!important}
html body .ask-drawer,html body .ask-drawer *,html body .ask-drawer .ask-head,html body .ask-drawer .ask-body,html body .ask-drawer .ask-input{box-sizing:border-box!important;max-width:100%!important}
html body .ask-drawer{right:0!important;width:min(430px,100vw)!important;overflow-x:hidden!important}
