/* Softer consumer light mode. The dark theme and professional workspaces keep their own palette. */
html:not([data-theme=dark]) body:not(.business-dashboard){
 --gh-plum:#482d42;--gh-plum-mid:#694b61;--gh-coral:#b57258;
 --gh-canvas:#d8cbc7;--gh-paper:#e9dfd8;--gh-cream:#e4d7ce;
 --gh-lilac:#dcd0d8;--gh-lilac-strong:#c3adbe;--gh-ink:#33282e;
 --gh-muted:#61505a;--gh-border:#bdabae;
 --bg:var(--gh-canvas);--paper:var(--gh-paper);--card:var(--gh-paper);
 --text:var(--gh-ink);--muted:var(--gh-muted);--line:var(--gh-border);
 --olive:var(--gh-plum-mid);--olive-dark:var(--gh-plum);--olive-light:var(--gh-lilac);
 --peach:#d6a38a;--coral:var(--gh-coral);--purple:var(--gh-plum-mid);
 background:var(--gh-canvas)!important;color:var(--gh-ink)!important;
}
html:not([data-theme=dark]) body:not(.business-dashboard) :is(.sidebar,.topbar,.mobile-nav){background:#e2d4d0!important;border-color:var(--gh-border)!important;box-shadow:0 5px 20px #482d4210!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main :is(
 .protective-recommendation,.protective-guide,.journal-photo-picker,.game-card,.game-board,.rewards-next,.reward-tier,.rewards-section,.faq-start,.community-blocked-empty,.community-setting-help,.quick-care-card,.quick-care-answer,.public-preview-cta,.inventory-page,.inventory-grid>article,
 .demo-hero,.demo-card,.demo-bottom,.brand-directory-card,.brand-public-profile,.brand-public-product,
 .partners-paths article,.partner-signin,.partner-empty,.partner-application,.partner-request,
 .faq-section,.faq-item,.faq-contact,.faq-search,.journey-card,.journey-panel,.journey-timeline,
 .bilan-intro,.bilan-photo-guide,.bilan-fun-card,.bilan-fun-question,.bilan-fun-surface,.bilan-fun-results,
 .care-card,.care-section,.journey-entry,.feature-card,.feature-form,.learning-card,.learning-grid article,
 .journal-first-memory,.journal-evolution,.journal-entry-form,.journal-memory,.calendar-main,.calendar-details,
 .calendar-event,.protective-card,.protective-detail,.style-card,.routine-card,.routine-feature,
 .recipe-feature,.auth-story,.account-form-panel,.recovery-card,.reviews-panel,.review-card,.review-entry
){background:var(--gh-paper)!important;border-color:var(--gh-border)!important;color:var(--gh-ink)!important;box-shadow:0 7px 22px #482d420c!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main :is(
 .quick-care-card,.journal-summary,.family-welcome,.protective-hero,.calendar-overview,.inventory-next,
 .partners-hero,.brand-public-hero,.care-feature-hero,.community-settings-hero
){background:linear-gradient(120deg,#d9c8d2,#e8d9ce)!important;border-color:var(--gh-border)!important;color:var(--gh-ink)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main :is(
 .quick-care-choices button:not([aria-pressed=true]),.journal-feelings>label,.journal-memory-scores span,
 .journal-evolution-empty,.journey-empty,.calendar-empty,.calendar-day:not(.selected):not(.today),
 .option:not(.selected),.care-learning-card,.reward-milestone,.faq-topics a
){background:var(--gh-cream)!important;border-color:var(--gh-border)!important;color:var(--gh-ink)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main :is(input:not([type=checkbox]):not([type=radio]),textarea,select){background:#f0e6de!important;color:var(--gh-ink)!important;border-color:#b9a2ae!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main ::placeholder{color:#75626c!important;opacity:1}
html:not([data-theme=dark]) body:not(.business-dashboard) #main :is(.primary-button,.product-add,.community-submit,.community-hero-primary,.routine-share-submit,.chat-send){background:var(--gh-plum)!important;color:#fff3ed!important;border-color:var(--gh-plum)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main :is(.secondary-button,.light-button,.filter:not(.active),.auth-tabs button:not(.active)){background:#d8c5d0!important;border-color:#bda4b7!important;color:#482d42!important}
html:not([data-theme=dark]) body:not(.business-dashboard) :is(.sidebar a,.sidebar summary,.topbar-actions,.breadcrumb,.mobile-nav a){color:#57444f}
html:not([data-theme=dark]) body:not(.business-dashboard) #main :is(.brands-page,.partners-page){--business-paper:var(--gh-paper);--business-ink:var(--gh-ink);--business-muted:var(--gh-muted);--business-line:var(--gh-border)}
/* The community uses the same surfaces as care and the agenda. */
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root::before{background:var(--gh-canvas)!important;box-shadow:none!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(
 .community-safety-card,.community-topics,.community-post,.community-online,.community-chat,.community-conversation,
 .community-profile-card,.community-contacts,.community-card,.community-chat-panel,.community-feed,
 .community-share-routine,.community-routine-share,.community-ideas,.community-ideas details,.community-composer
){background:var(--gh-paper)!important;border-color:var(--gh-border)!important;color:var(--gh-ink)!important;box-shadow:0 7px 22px #482d420c!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(.community-weekly,.community-inspiration,.community-filters,.community-search,.community-online-empty,.community-composer-actions,.community-kind-tabs){background:var(--gh-lilac)!important;border-color:var(--gh-lilac-strong)!important;color:var(--gh-ink)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(.community-empty,.community-ideas-box,.community-poll-box){background:var(--gh-cream)!important;border-color:var(--gh-border)!important;color:var(--gh-ink)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(.community-topic,.community-kind,.community-search input,.community-emoji-button,.community-mobile-tabs button:not([aria-pressed=true])){background:#d8c5d0!important;color:var(--gh-plum)!important;border-color:#bda4b7!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(.community-post p,.community-empty p,.community-safety-card p,.community-online p,.community-topics p,.community-composer p){color:var(--gh-muted)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(.community-submit,.community-safety-link){background:var(--gh-plum)!important;color:#fff3ed!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(input,textarea,select){background:#f0e6de!important;color:var(--gh-ink)!important;border-color:#b9a2ae!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #modal-overlay :is(.modal,.assistant-panel,.notification-panel){background:var(--gh-paper)!important;color:var(--gh-ink)!important;border-color:var(--gh-border)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #modal-overlay :is(input,textarea,select){background:#f0e6de!important;color:var(--gh-ink)!important;border-color:var(--gh-border)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #modal-overlay :is(p,label,small){color:var(--gh-muted)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) .mobile-nav .mobile-community-featured:not(.active){background:#d4becd!important;color:#482d42!important;border-color:#b69bab!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main :is(.home-next-care,.review-empty){background:var(--gh-paper)!important;border-color:var(--gh-border)!important;color:var(--gh-ink)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main .studio-hero .studio-footnote{color:#e5d1db!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main .studio-hero h1 em{color:#efb99d!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main .ritual-art{background:linear-gradient(125deg,#d4c2cb,#e1d1c6)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(.community-discover,.community-discover-grid){background:var(--gh-lilac)!important;border-color:var(--gh-border)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(.community-idea-composer,.community-idea-form,.community-idea-composer details,.community-idea-compose,.community-feedback){background:var(--gh-paper)!important;border-color:var(--gh-border)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root :is(.community-ideas-composer,.community-idea-choices details,.community-poll){background:var(--gh-paper)!important;border-color:var(--gh-border)!important;color:var(--gh-ink)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main #community-root .community-idea-choices summary{color:var(--gh-plum)!important}
html:not([data-theme=dark]) body:not(.business-dashboard) #main :is(.reviews-empty,.gentle-note){background:var(--gh-cream)!important;border-color:var(--gh-border)!important;color:var(--gh-ink)!important}

/* Keep the hairstyle recommendation and community callout readable in dark mode. */
html[data-theme="dark"] body:not(.business-dashboard) #main :is(.protective-recommendation,.protective-community){background:#352b37!important;border-color:#665268!important;color:#fff6f8!important}
html[data-theme="dark"] body:not(.business-dashboard) #main :is(.protective-recommendation,.protective-community) :is(h2,strong){color:#fff6f8!important}
html[data-theme="dark"] body:not(.business-dashboard) #main :is(.protective-recommendation,.protective-community) p{color:#e3d4e0!important}
html[data-theme="dark"] body:not(.business-dashboard) #main :is(.protective-recommendation,.protective-community) .eyebrow{color:#ffc5a8!important}
html[data-theme="dark"] body:not(.business-dashboard) #main :is(.protective-recommendation,.protective-community) :is(.text-link,.secondary-button){background:#513b50!important;color:#fff6f8!important;border-color:#8b6d85!important}

/* Temporary public pause: keep data and staff management while hiding commerce. */
html body[data-commercial-paused="true"]:not(.business-dashboard) :is(a[href^="#boutique"],a[href^="#product/"],a[href^="#commandes"],a[href^="#marques"],a[href^="#marque"],a[href^="#partenaires"],a[href^="#collaborations"],a[href^="#recompenses"],a[href^="#promotions"],a[href^="#ventes"],a[href^="#gestion-connexion/brand"],a[href^="#gestion-connexion/collaborator"],a[href^="/#boutique"],a[href^="/#commandes"],a[href^="/#marques"],a[href^="/#partenaires"],[data-action="cart"],[data-add],[data-checkout],.shop-preview,.routine-product-section,.product-card,.demo-orders,.coin-badge,.game-rewards,.game-shop-reward,#rewards-preview,.game-result-stats span:nth-child(2),.rewards-balance){display:none!important}

/* A private notebook, using the existing recipe cards and theme palette. */
html body:not(.business-dashboard) #main .favorites-studio{--favorites-surface:#f0e6de;--favorites-text:#482d42;--favorites-muted:#685461;--favorites-line:#bda4b7;display:grid;gap:32px;padding-top:24px}
html[data-theme=dark] body:not(.business-dashboard) #main .favorites-studio{--favorites-surface:#352b37;--favorites-text:#fff6f8;--favorites-muted:#e3d4e0;--favorites-line:#806780}
#main .favorites-hero{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:clamp(24px,4vw,52px);border:1px solid var(--favorites-line);border-radius:28px;background:var(--favorites-surface);color:var(--favorites-text)}
#main .favorites-hero h1{font-family:Georgia,serif;font-size:clamp(32px,4vw,52px);line-height:1.12;margin:14px 0 18px;color:var(--favorites-text)!important}
#main .favorites-studio p{color:var(--favorites-muted)!important;max-width:620px;line-height:1.7}
#main .favorites-studio .eyebrow{color:var(--favorites-text)!important}
#main .favorites-hero .secondary-button{margin-top:14px}
#main .favorites-emblem{flex:0 0 170px;aspect-ratio:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px;border:1px solid var(--favorites-line);border-radius:50% 50% 40% 40%;transform:rotate(6deg)}
#main .favorites-emblem svg{width:56px;height:56px;stroke:currentColor}
#main .favorites-emblem span{font-family:Georgia,serif;font-size:20px}
#main .favorites-empty{display:flex;align-items:center;gap:28px;padding:32px;border:1px dashed var(--favorites-line);border-radius:24px;background:var(--favorites-surface);color:var(--favorites-text)}
#main .favorites-studio h2{color:var(--favorites-text)!important;line-height:1.3}
#main .favorites-empty-icon{display:grid;place-items:center;flex:0 0 72px;width:72px;height:72px;border-radius:22px;border:1px solid var(--favorites-line)}
#main .favorites-empty-icon svg{width:32px;height:32px}
#main .favorites-empty .primary-button{margin-top:12px}
#main .favorites-count{display:inline-flex;gap:6px;padding:8px 14px;border:1px solid var(--favorites-line);border-radius:24px;color:var(--favorites-text);white-space:nowrap}
#main .favorites-discovery>.section-heading{margin-bottom:8px}
#main .favorites-studio .recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:24px}
#main .favorites-studio a:focus-visible,#main .favorites-studio button:focus-visible{outline:3px solid var(--favorites-text);outline-offset:4px}
@media(max-width:1100px){#main .favorites-studio .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#main .favorites-studio{gap:24px}#main .favorites-hero{padding:24px;gap:14px}#main .favorites-emblem{display:none}#main .favorites-empty{padding:24px;flex-direction:column;align-items:flex-start;gap:16px}#main .favorites-studio .recipe-grid{grid-template-columns:minmax(0,1fr)}#main .favorites-studio .section-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}#main .favorites-studio .primary-button,#main .favorites-studio .secondary-button{max-width:100%;white-space:normal}}
#main .favorites-hero>div:first-child{min-width:0}
#main .favorites-hero p{display:block;margin:0 0 20px!important}
#main .favorites-hero .secondary-button{display:inline-flex;position:static;margin-top:0!important}
#main .favorites-studio .art-tag{background:#f0e6de!important;color:#482d42!important}

/* Explicit solid surfaces prevent inherited white editorial text in the care hero. */
html:not([data-theme="dark"]) body:not(.business-dashboard) #main .protective-hero{background:#e3d3d9!important;color:#482d42!important}
html:not([data-theme="dark"]) body:not(.business-dashboard) #main .protective-hero :is(h1,h1 em,p,.eyebrow){color:#482d42!important}
html body:not(.business-dashboard) #main .protective-hero :is(.hero-chips span,.orbit-label){background:#f0e6de!important;color:#482d42!important}
html[data-theme="dark"] body:not(.business-dashboard) #main .protective-hero{background:#352b37!important;color:#fff6f8!important}
html[data-theme="dark"] body:not(.business-dashboard) #main .protective-hero :is(h1,p){color:#fff6f8!important}
html[data-theme="dark"] body:not(.business-dashboard) #main .protective-hero :is(h1 em,.eyebrow){color:#ffc5a8!important}

/* Photo headings retain their own contrast in both application themes. */
html body:not(.business-dashboard) #main .home-cover-copy{background:#2f2530;color:#fff6f8!important;border-radius:0 24px 24px 0}
html body:not(.business-dashboard) #main .home-cover-copy :is(h2,p),html body:not(.business-dashboard) #main .home-cover-copy>span{color:#fff6f8!important}
html body:not(.business-dashboard) #main .home-cover-copy>a,html body:not(.business-dashboard) #main .home-cover-copy>a span{background:#fffdfa!important;color:#422d3b!important}


/* Dark-mode collaborator dashboard: dark surfaces throughout, light readable text. */
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-dashboard-hero{background:linear-gradient(120deg,#302733 0%,#302d39 58%,#28232e 100%)!important;border-color:#514a5c!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-dashboard-hero h1{color:#fbf8f1!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-dashboard-hero p{color:#d1cbd5!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-dashboard-hero .eyebrow{color:#f2c09e!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-dashboard-hero>div>.secondary-button{background:#d9e99f!important;color:#25232d!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-scope-card{background:linear-gradient(115deg,#302d39,#28232e)!important;border-color:#514a5c!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-scope-card h2{color:#fbf8f1!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-scope-card p{color:#d1cbd5!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-scope-card .eyebrow{color:#f2c09e!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-scope-card .collaboration-scope-icon{color:#354532!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-kpis article{background:linear-gradient(145deg,#302d39,#28232e)!important;border-color:#514a5c!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-kpis article strong{color:#fbf8f1!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-kpis article span{color:#d1cbd5!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-links{border-color:#514a5c!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-links a{background:#302d39!important;color:#fbf8f1!important;border-color:#514a5c!important}
html[data-theme=dark] body #main .collaboration-dashboard .collaboration-links a:hover{background:#3b3341!important}

/* Dark-mode collaboration uploads should blend into the editor instead of reading as a white card. */
html[data-theme=dark] body #main .collaboration-form .collaboration-media-upload{background:linear-gradient(145deg,#28232e,#302735)!important;border:1px solid #544656!important;color:#f8eff6!important}
html[data-theme=dark] body #main .collaboration-form .collaboration-media-upload :is(strong,.eyebrow){color:#f8eff6!important}
html[data-theme=dark] body #main .collaboration-form .collaboration-media-upload small{color:#d1c5d3!important}
html[data-theme=dark] body #main .collaboration-form .collaboration-file-drop{background:#211d26!important;border-color:#78617a!important;color:#fbf8f1!important}
html[data-theme=dark] body #main .collaboration-form .collaboration-file-drop>span{background:#443447!important;color:#efc7e5!important}
html[data-theme=dark] body #main .collaboration-form .collaboration-file-drop small{color:#d1c5d3!important}
html[data-theme=dark] body #main .collaboration-form .collaboration-file-drop.is-dragging{background:#3a2d3d!important;border-color:#efc7e5!important}
html[data-theme=dark] body #main .collaboration-form .collaboration-media-previews figure{background:#211d26!important;border-color:#544656!important;color:#f8eff6!important}
