/* Shared visual rhythm for the full Groomed Hair experience. */
html body {
  font-family: "DM Sans", Manrope, system-ui, sans-serif;
  background: linear-gradient(125deg, #fff5f8 0%, #f6e9ef 58%, #f2e8f1 100%) fixed !important;
  color: var(--gh-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html body :is(button, input, textarea, select) { font: inherit; }
html body .topbar {
  min-height: 68px;
  border-bottom: 1px solid var(--gh-border) !important;
  background: #ffffff !important;
  box-shadow: 0 4px 22px #3026310a;
  backdrop-filter: blur(16px);
}
html body .topbar .breadcrumb-brand { color: var(--gh-plum-mid) !important; font-weight: 750; }
html body .topbar #page-label { color: var(--gh-ink) !important; font-weight: 650; }
html body .topbar .icon-button {
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
html body .topbar .icon-button:hover { background: var(--gh-lilac) !important; border-color: var(--gh-border); transform: translateY(-1px); }
html body main {
  width: min(100%, 1500px);
  margin-inline: auto;
  padding-top: clamp(24px, 3.2vw, 44px);
  padding-bottom: 36px;
}
html body #main > :is(section, article, .feature-page, .page-content) { animation: gh-page-in .3s ease both; }
html body #main :is(h1, h2, h3) { text-wrap: balance; }
html body #main h1 {
  color: var(--gh-plum) !important;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}
html body #main h2 {
  color: var(--gh-plum) !important;
  font-family: Manrope, "DM Sans", sans-serif;
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.22;
}
html body #main h3 { font-family: Manrope, "DM Sans", sans-serif; font-weight: 700; letter-spacing: -.02em; }
html body #main .eyebrow {
  color: var(--gh-plum-mid) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}
html body #main :is(.section-heading, .feature-heading, .page-heading) { margin-bottom: 18px; }
html body #main .section-heading h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); }
html body #main .section-heading p { margin-top: 6px; color: var(--gh-muted) !important; line-height: 1.6; }
html body #main :is(.section-heading, .section-title-row) { align-items: end; gap: 16px; }
html body #main :is(.ritual-card, .quick-card, .product-card, .content-card, .feature-card, .news-card, .family-card, .profile-tile, .routine-feature, .recipe-feature, .rewards-hero, .rewards-section, .reviews-panel) {
  border: 1px solid var(--gh-border) !important;
  border-radius: 22px !important;
  box-shadow: 0 10px 28px #49243f09;
}
html body #main :is(.ritual-card, .product-card, .content-card, .feature-card, .news-card, .family-card, .profile-tile):hover {
  border-color: color-mix(in srgb, var(--gh-plum-mid) 28%, var(--gh-border)) !important;
  box-shadow: 0 14px 32px #49243f12;
  transform: translateY(-2px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
html body #main :is(.primary-button, .secondary-button, .rewards-play-button, .community-submit) {
  min-height: 44px;
  border-radius: 14px !important;
  font-weight: 750;
  letter-spacing: -.01em;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
html body #main :is(.primary-button, .rewards-play-button, .community-submit):hover { transform: translateY(-1px); box-shadow: 0 8px 18px #49243f20; }
html body #main .secondary-button { border-width: 1px; }
html body #main :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  min-height: 44px;
  border: 1px solid var(--gh-border) !important;
  border-radius: 13px;
  background: var(--gh-paper) !important;
  color: var(--gh-ink) !important;
}
html body #main textarea { min-height: 100px; }
html body #main :is(input, textarea, select):focus { border-color: var(--gh-plum-mid) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gh-lilac-strong) 75%, transparent); outline: none; }
html body #main :is(.empty-state, .notice, .tailored-note, .gentle-note) { border-radius: 18px; }
html body footer { color: var(--gh-muted) !important; }
html:not([data-theme="dark"]) body { background: linear-gradient(125deg, #fff5f8 0%, #f6e9ef 58%, #f2e8f1 100%) fixed !important; }
html:not([data-theme="dark"]) body :is(.sidebar, .topbar, .mobile-nav) { background: #fff !important; }
html:not([data-theme="dark"]) body #main { background: transparent !important; }
html:not([data-theme="dark"]) body #main :is(.quick-card, .product-card, .product-detail, .content-card, .family-card, .ritual-card, .news-card, .profile-tile, .community-feed, .community-chat, .community-online, .community-contacts) { background-color: #fff !important; }
html:not([data-theme="dark"]) body #main :is(.section-heading h2, .card-title, .community-chat-heading h2) { color: var(--gh-plum) !important; }

/* Agenda sharing: privacy first, then a small, welcoming invitation. */
html body #main .community-share-routine {
  margin: 22px 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gh-border) !important;
  border-radius: 22px !important;
  background: var(--gh-paper) !important;
  color: var(--gh-ink) !important;
  box-shadow: 0 12px 30px #49243f0b;
}
html body #main .community-share-routine > summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  transition: background .18s ease;
}
html body #main .community-share-routine > summary::-webkit-details-marker { display: none; }
html body #main .community-share-routine > summary:hover { background: var(--gh-lilac); }
html body #main .routine-share-icon { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 15px; background: var(--gh-lilac); font-size: 21px; }
html body #main .routine-share-title { display: grid; flex: 1; gap: 4px; }
html body #main .routine-share-title strong { color: var(--gh-plum); font-size: 14px; font-weight: 800; }
html body #main .routine-share-title small { color: var(--gh-muted); font-size: 11px; }
html body #main .routine-share-chevron { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--gh-lilac); color: var(--gh-plum); font-size: 18px; transition: transform .18s ease; }
html body #main .community-share-routine[open] .routine-share-chevron { transform: rotate(180deg); }
html body #main .community-share-routine form { display: grid; gap: 16px; margin: 0; padding: 0 18px 20px; }
html body #main .routine-share-privacy { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--gh-border); border-radius: 16px; background: var(--gh-canvas); }
html body #main .routine-share-lock { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 12px; background: var(--gh-lilac); font-size: 16px; }
html body #main .routine-share-privacy p { display: grid; gap: 4px; margin: 0; font-size: 11px; line-height: 1.55; }
html body #main .routine-share-privacy strong { color: var(--gh-plum); font-size: 12px; }
html body #main .routine-share-privacy span, html body #main .routine-share-privacy em { color: var(--gh-muted); font-style: normal; }
html body #main .routine-share-privacy em { color: var(--gh-plum-mid); font-weight: 700; }
html body #main .routine-share-field { display: grid; gap: 8px; color: var(--gh-ink); font-size: 12px; font-weight: 750; }
html body #main .routine-share-field > span { display: flex; justify-content: space-between; align-items: baseline; }
html body #main .routine-share-field small { color: var(--gh-muted); font-size: 10px; font-weight: 500; }
html body #main .routine-share-field textarea { width: 100%; min-height: 88px; padding: 12px 14px; resize: vertical; font-size: 13px; }
html body #main .routine-share-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--gh-muted); font-size: 11px; line-height: 1.5; }
html body #main .routine-share-consent input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; }
html body #main .routine-share-submit { display: flex; width: 100%; align-items: center; justify-content: center; gap: 9px; }
html[data-theme="dark"] body #main .community-share-routine { background: var(--gh-paper) !important; }
html[data-theme="dark"] body #main .routine-share-privacy { background: var(--gh-canvas); }
html[data-theme="dark"] body #main .routine-share-title strong,
html[data-theme="dark"] body #main .routine-share-privacy strong { color: var(--gh-ink); }

/* Presence and private messages: one clear place for each task. */
html body #main #community-root .community-online,
html body #main #community-root .community-contacts,
html body #main #community-root .community-chat {
  border: 1px solid var(--gh-border) !important;
  border-radius: 20px !important;
  background: var(--gh-paper) !important;
  box-shadow: 0 10px 28px #49243f09;
}
html body #main #community-root .community-contacts[hidden] { display: none !important; }
html body #main #community-root .community-online { padding: 17px; }
html body #main #community-root .community-online-heading { align-items: center; }
html body #main #community-root .community-online-heading h2,
html body #main #community-root .community-contacts h2,
html body #main #community-root .community-chat-heading h2 { margin: 5px 0 4px; color: var(--gh-plum) !important; font-size: 18px; }
html body #main #community-root .community-online-heading small { display: block; color: var(--gh-muted) !important; font-size: 11px; line-height: 1.45; }
html body #main #community-root .community-online-heading .community-my-presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf5ee;
  color: #347552 !important;
  font-size: 10px;
  font-weight: 700;
}
html body #main #community-root .community-my-presence::before { width: 7px; height: 7px; border-radius: 50%; background: #45a66f; content: ""; }
html body #main #community-root .community-count { display: inline-grid; min-width: 30px; height: 30px; place-items: center; border-radius: 999px; background: var(--gh-lilac) !important; color: var(--gh-plum) !important; font-size: 12px; font-weight: 800; }
html body #main #community-root .community-online-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
html body #main #community-root .community-online-user {
  display: flex;
  min-width: min(205px, 100%);
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--gh-border);
  border-radius: 14px;
  background: var(--gh-canvas);
}
html body #main #community-root .community-online-user .community-avatar { width: 35px; height: 35px; flex: 0 0 35px; }
html body #main #community-root .community-online-user > span:nth-child(2) { min-width: 0; flex: 1; }
html body #main #community-root .community-online-user strong { display: block; overflow: hidden; color: var(--gh-ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
html body #main #community-root .community-online-user small { display: block; overflow: hidden; max-width: 130px; margin-top: 2px; color: var(--gh-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
html body #main #community-root .community-online-user > button { flex: 0 0 auto; min-height: 30px; padding: 5px 8px; border: 1px solid var(--gh-border); border-radius: 10px; background: var(--gh-paper); color: var(--gh-plum); font-size: 10px; font-weight: 700; }
html body #main #community-root .community-online-empty { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--gh-canvas); }
html body #main #community-root .community-online-empty > span:first-child { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 12px; background: var(--gh-lilac); font-size: 16px; }
html body #main #community-root .community-online-empty strong,
html body #main #community-root .community-online-empty small { display: block; }
html body #main #community-root .community-online-empty strong { color: var(--gh-ink); font-size: 11px; }
html body #main #community-root .community-online-empty small { margin-top: 3px; color: var(--gh-muted); font-size: 10px; }
html body #main #community-root .community-contacts { padding: 16px; }
html body #main #community-root .community-contacts > p { margin: 5px 0 13px; color: var(--gh-muted) !important; font-size: 11px; }
html body #main #community-root .community-contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "person actions" "preview actions"; align-items: center; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--gh-border); }
html body #main #community-root .community-contact:last-child { border-bottom: 0; }
html body #main #community-root .community-contact-person { grid-area: person; display: flex; align-items: center; gap: 9px; min-width: 0; }
html body #main #community-root .community-contact-person .community-avatar { width: 34px; height: 34px; flex: 0 0 34px; }
html body #main #community-root .community-contact-person strong { overflow: hidden; color: var(--gh-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
html body #main #community-root .community-contact > small { grid-area: preview; margin-left: 43px; color: var(--gh-muted); font-size: 10px; }
html body #main #community-root .community-contact-actions { grid-area: actions; display: flex; align-items: center; gap: 5px; margin: 0; }
html body #main #community-root .community-contact-actions button { min-height: 34px; padding: 6px 9px; border-radius: 10px; font-size: 10px; }
html body #main #community-root .community-chat { padding: 17px; }
html body #main #community-root .community-chat-heading { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
html body #main #community-root .community-chat-heading > div { flex: 1; min-width: 0; }
html body #main #community-root .chat-sound-toggle { min-height: 34px; padding: 6px 9px; border: 1px solid var(--gh-border); border-radius: 999px; background: var(--gh-lilac); color: var(--gh-plum); font-size: 10px; font-weight: 700; }
html body #main #community-root .community-search { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; padding: 0 11px; border: 1px solid var(--gh-border); border-radius: 12px; background: var(--gh-canvas); color: var(--gh-muted); }
html body #main #community-root .community-search input { min-height: 40px; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 12px; }
html body #main #community-root .community-users { display: grid; gap: 3px; max-height: 360px; }
html body #main #community-root .community-user { display: grid; grid-template-columns: 38px minmax(0, 1fr) 16px; gap: 9px; padding: 9px 7px; border: 0; border-radius: 13px; background: transparent; text-align: left; }
html body #main #community-root .community-user:hover { background: var(--gh-canvas); }
html body #main #community-root .community-user .community-user-avatar { width: 38px; height: 38px; }
html body #main #community-root .community-user > span:nth-child(2) { min-width: 0; }
html body #main #community-root .community-user strong { display: block; overflow: hidden; color: var(--gh-ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
html body #main #community-root .community-user small { display: block; overflow: hidden; margin-top: 2px; color: var(--gh-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
html body #main #community-root .community-user .community-user-preview { color: var(--gh-plum-mid); font-size: 10px; }
html[data-theme="dark"] body #main #community-root .community-my-presence { background: #20382a; color: #a8e1bb !important; }
html[data-theme="dark"] body #main #community-root :is(.community-online-user, .community-online-empty, .community-search) { background: var(--gh-canvas); border-color: var(--gh-border); }
html[data-theme="dark"] body #main #community-root :is(.community-online-user strong, .community-online-empty strong, .community-contact-person strong, .community-user strong) { color: var(--gh-ink); }
html[data-theme="dark"] body #main #community-root .community-user:hover { background: var(--gh-lilac); }

html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 84% 0%, #49384980, transparent 34rem),
    var(--gh-canvas) !important;
}
html[data-theme="dark"] body .topbar { background: color-mix(in srgb, var(--gh-paper) 94%, transparent) !important; box-shadow: 0 4px 22px #0002; }
html[data-theme="dark"] body #main h1,
html[data-theme="dark"] body #main h2 { color: var(--gh-ink) !important; }
html[data-theme="dark"] body #main :is(.ritual-card, .quick-card, .product-card, .content-card, .feature-card, .news-card, .family-card, .profile-tile, .routine-feature, .recipe-feature, .rewards-hero, .rewards-section, .reviews-panel) { box-shadow: 0 12px 28px #0002; }
html[data-theme="dark"] body #main :is(input, textarea, select) { background: var(--gh-paper) !important; }

/* Keep messaging as one calm surface instead of a stack of nested cards. */
html body #main #community-root .community-chat { padding: 20px; border-radius: 22px !important; background: var(--gh-paper) !important; box-shadow: 0 14px 34px #49243f0c; }
html body #main #community-root .community-online,
html body #main #community-root .community-contacts { margin: 0 0 17px; padding: 0 0 16px; border: 0 !important; border-bottom: 1px solid var(--gh-border) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
html body #main #community-root .community-online-heading { align-items: center; }
html body #main #community-root .community-online-heading h2 { font-size: 20px; }
html body #main #community-root .community-online-heading > div > small:first-of-type { font-size: 10px; }
html body #main #community-root .community-online-heading .community-my-presence { margin-top: 7px; }
html body #main #community-root .community-online-list { flex-wrap: nowrap; overflow-x: auto; margin: 12px -2px 0; padding: 2px 2px 7px; scrollbar-width: thin; scrollbar-color: var(--gh-lilac-strong) transparent; }
html body #main #community-root .community-online-user { min-width: 0; flex: 0 0 auto; padding: 7px 9px; border: 0; border-radius: 999px; background: var(--gh-lilac) !important; }
html body #main #community-root .community-online-user .community-avatar { width: 32px; height: 32px; flex-basis: 32px; }
html body #main #community-root .community-online-user > span:nth-child(2) { max-width: 98px; }
html body #main #community-root .community-online-user > span:nth-child(2) small { display: none; }
html body #main #community-root .community-online-user > button { min-height: 28px; border-color: transparent; background: var(--gh-paper); }
html body #main #community-root .community-online-empty { border-radius: 13px; }
html body #main #community-root .community-chat-heading { margin-bottom: 12px; }
html body #main #community-root .community-chat-heading h2 { font-size: 21px; }
html body #main #community-root .community-chat-heading .eyebrow { letter-spacing: .14em; }
html body #main #community-root .community-users { gap: 0; max-height: 390px; overflow: auto; }
html body #main #community-root .community-user { position: relative; min-height: 64px; grid-template-columns: 42px minmax(0, 1fr) 18px; gap: 11px; padding: 10px 7px; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--gh-border) 70%, transparent); border-radius: 0; background: transparent; text-align: left; }
html body #main #community-root .community-user:last-child { border-bottom: 0; }
html body #main #community-root .community-user:hover { border-radius: 13px; }
html body #main #community-root .community-user .community-user-avatar { width: 40px; height: 40px; }
html body #main #community-root .community-user strong { font-size: 12px; }
html body #main #community-root .community-user small { margin-top: 3px; }
html body #main #community-root .community-user .community-user-preview { margin-top: 4px; color: var(--gh-muted); font-size: 10px; }
html body #main #community-root .community-user > span:last-child { color: var(--gh-plum-mid); font-size: 20px; }
html[data-theme="dark"] body #main #community-root .community-online-user { background: var(--gh-lilac) !important; }
html[data-theme="dark"] body #main #community-root .community-online-user > button { background: var(--gh-paper); }
html[data-theme="dark"] body #main #community-root .community-user { border-bottom-color: var(--gh-border); }
html body #main #community-root .community-profile-card { flex-wrap: wrap; border-color: var(--gh-border); border-radius: 16px; background: var(--gh-lilac); box-shadow: none; }
html body #main #community-root .community-profile-card > [data-community-profile-close] { position: absolute; top: 7px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--gh-paper); color: var(--gh-muted); }
html body #main #community-root .community-profile-card > .community-profile-block { position: static; width: auto; height: 34px; margin: 0 0 0 65px; padding: 0 12px; border: 1px solid #e8c6c3; border-radius: 11px; background: #fff7f5; color: #9c4848; font: 700 11px/1 "DM Sans", sans-serif; cursor: pointer; }
html body #main #community-root .community-profile-card > .community-profile-block:hover { background: #fbe8e4; border-color: #dba7a1; }
html[data-theme="dark"] body #main #community-root .community-profile-card { background: var(--gh-lilac); }
html[data-theme="dark"] body #main #community-root .community-profile-card > .community-profile-block { border-color: #754b53; background: #412d37; color: #ffc2bb; }

/* Keep the full logo artwork intact in the narrow sidebar. */
html body .sidebar .brand { justify-content: center; min-height: 102px; padding: 4px 0; }
html body .sidebar .brand-logo { display: block; width: 116px !important; height: 96px !important; flex: 0 0 auto; object-fit: contain !important; object-position: center; border-radius: 0 !important; background: transparent; filter: none !important; }
html body .sidebar .brand-wordmark { display: none !important; }
@media (max-width: 640px) {
  html body .sidebar .brand { min-height: 88px; justify-content: flex-start; padding: 2px 48px 2px 0; }
  html body .sidebar .brand-logo { width: 102px !important; height: 84px !important; }
}

@keyframes gh-page-in { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  html body main { padding: 22px 16px 28px; }
  html body #main h1 { font-size: clamp(1.8rem, 8vw, 2.45rem); }
  html body #main .section-heading { align-items: start; }
  html body #main :is(.ritual-card, .quick-card, .product-card, .content-card, .feature-card, .news-card, .family-card, .profile-tile, .routine-feature, .recipe-feature, .rewards-hero, .rewards-section, .reviews-panel) { border-radius: 18px !important; }
  html body .topbar { min-height: 60px; backdrop-filter: none; }
  html body #main .community-share-routine { margin: 16px 0; border-radius: 18px !important; }
  html body #main .community-share-routine > summary { min-height: 70px; gap: 11px; padding: 12px; }
  html body #main .routine-share-icon { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
  html body #main .routine-share-title strong { font-size: 13px; }
  html body #main .routine-share-title small { font-size: 10px; }
  html body #main .community-share-routine form { gap: 13px; padding: 0 12px 14px; }
  html body #main #community-root .community-chat { padding: 14px; }
  html body #main #community-root .community-online { padding: 0 0 13px; }
  html body #main #community-root .community-online-user { min-width: 0; }
  html body #main #community-root .community-contact { gap: 6px; }
  html body #main #community-root .community-contact-actions { flex-wrap: wrap; }
  html body #main #community-root .community-users { max-height: 330px; }
  html body #main #community-root .community-profile-card > .community-profile-block { margin-left: 55px; }
  html body #main #community-root .community-chat-heading { flex-wrap: wrap; }
  html body #main #community-root .community-chat-heading > div { flex-basis: calc(100% - 45px); }
  html body #main #community-root .chat-sound-toggle { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html body #main > :is(section, article, .feature-page, .page-content) { animation: none; } }
