/* Quiet, shared surfaces. Controls retain the original component styling;
   navigation and lists are groups rather than individually framed buttons. */
html[data-theme="light"] .settings-list,
html[data-theme="light"] .profile-action-list {
  display: block;
  padding: 0 18px;
  background: linear-gradient(145deg, #ffffffeb, #f5f4edd9);
  border: 1px solid #e1e1cf80;
  border-radius: 25px;
  box-shadow: 0 10px 32px #3e664d09, inset 0 1px #fff;
}

html[data-theme="light"] .settings-list > button,
html[data-theme="light"] .profile-action-list > button {
  width: 100%;
  min-height: 59px;
  margin: 0;
  padding: 18px 0;
  color: #304f3c !important;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d1d6be44;
  border-radius: 0;
  box-shadow: none;
  transition: color .2s ease, background .2s ease;
}
html[data-theme="light"] .settings-list > button:last-child,
html[data-theme="light"] .profile-action-list > button:last-child { border-bottom: 0; }

html[data-theme="light"] .settings-list button > span:first-child {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
html[data-theme="light"] .settings-list button > svg { flex-shrink: 0; color: #829b84; }
html[data-theme="light"] .settings-list__section strong { color: #304f3c; font-weight: 500; }
html[data-theme="light"] .settings-list__section small { color: #7f9883; font-size: 9px; line-height: 1.5; }

html[data-theme="light"] :is(.settings-list__section-icon, .profile-action-list__icon, .pcf-entry-icon) {
  width: 27px;
  height: 34px;
  padding: 0;
  color: #688a75;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
html[data-theme="light"] .profile-action-list > button {
  grid-template-columns: 27px minmax(0, 1fr) 20px;
  gap: 12px;
}
html[data-theme="light"] .pcf-profile-entry { gap: 11px; }
html[data-theme="light"] .pcf-entry-copy strong { font-family: inherit; font-size: 13px; font-weight: 500; }
html[data-theme="light"] .pcf-entry-copy small { color: #7f9883; font-size: 9px; opacity: 1; }
html[data-theme="light"] .pcf-profile-entry svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* One floating navigation surface, with no tile behind each destination. */
html[data-theme="light"] .bottom-nav {
  gap: 0;
  padding: 8px 6px 9px;
  background: linear-gradient(135deg, #fcfbf7f5, #f4f2ebf0);
  border: 1px solid #d4d8c299;
  border-radius: 30px;
  box-shadow: 0 10px 32px #406c5112, inset 0 1px #fff;
}
html[data-theme="light"] .bottom-nav:before { display: none; }
html[data-theme="light"] .bottom-nav button,
html[data-theme="light"] .bottom-nav button.is-active {
  min-height: 57px;
  padding: 3px 1px;
  color: #879f88;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}
html[data-theme="light"] .bottom-nav button.is-active { color: #3b6b4d; font-weight: 550; }
html[data-theme="light"] .bottom-nav .nav-icon { color: inherit; filter: none !important; }
html[data-theme="light"] .bottom-nav .nav-icon:before { display: none; }

/* Bare header icons keep their comfortable touch targets. */
html[data-theme="light"] .top-header .icon-button,
html[data-theme="light"] :is(.care-header, .vet-report-header, .profile-section-header) > button {
  color: #5b7e68;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
html[data-theme="light"] .top-header .club-back-button,
html[data-theme="light"] .top-header .club-back-button:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Home actions belong to their parent cards rather than extra button panels. */
html[data-theme="light"] .brand-contact {
  background: linear-gradient(145deg, #ffffffc9, #f6f4eeb8);
  border-color: #e1e1cf80;
  box-shadow: 0 8px 28px #3e664d06;
}
html[data-theme="light"] .brand-text-button {
  width: auto;
  min-height: 44px;
  margin: 16px 0 -4px;
  padding: 0;
  color: #406e52;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-weight: 500;
}
html[data-theme="light"] .brand-action {
  min-height: 75px;
  margin: 0;
  padding: 17px 0;
  color: #304f3c;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d1d6be44;
  border-radius: 0;
  box-shadow: none;
}
html[data-theme="light"] .brand-action:last-child { border-bottom: 0; }
html[data-theme="light"] .brand-action__icon {
  width: 30px;
  flex-basis: 30px;
  color: #688a75;
  background: transparent;
  border: 0;
  box-shadow: none;
}
html[data-theme="light"] .brand-action strong { font-weight: 500; }
html[data-theme="light"] .brand-action small { color: #7f9883; }


@media (hover: hover) {
  html[data-theme="light"] :is(.settings-list, .profile-action-list) > button:hover { background: #f3f1e733; }
  html[data-theme="light"] .brand-text-button:hover { color: #295038; }
  html[data-theme="light"] .bottom-nav button:hover { color: #527d63; }
}
html[data-theme="light"] :is(.settings-list, .profile-action-list) > button:focus-visible {
  outline: 2px solid #a4bc98;
  outline-offset: -3px;
}
html[data-theme="light"] .brand-text-button:focus-visible,
html[data-theme="light"] .top-header .icon-button:focus-visible {
  outline: 2px solid #a4bc98;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  html[data-theme="light"] :is(.settings-list, .profile-action-list) { padding-inline: 14px; border-radius: 22px; }
  html[data-theme="light"] .settings-list > button { padding-block: 16px; }
  html[data-theme="light"] .shop-tabs button { padding-inline: 4px; font-size: 10px; }
}

/* An opaque, softly rounded header avoids blurring dark photographs into a band. */
html[data-theme="light"] :is(.top-header, .profile-section-header, .care-header, .vet-report-header, .group-chats-header) {
  background: #f9f8f3;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0 0 25px 25px;
  border-bottom: 1px solid #e1e1cf33;
  box-shadow: 0 7px 19px #3e664d08;
}
@media (min-width: 900px) {
  html[data-theme="light"] .top-header { border-radius: 27px 27px 24px 24px; }
}

html[data-theme="light"] .brand-tier--bronze {
  background: linear-gradient(135deg, #f6eee7, #e5d8ca);
  border-color: #a9c38b55;
  color: #53673d;
}

.member-account, .member-history-page { padding-top: 3px; }
.member-card {
  position: relative;
  overflow: hidden;
  margin: 25px 0 17px;
  padding: 25px;
  border: 1px solid #d2d6c2b3;
  border-radius: 25px;
  background: radial-gradient(ellipse at 95% 0, #ffffffd9, transparent 75%), linear-gradient(130deg, #f3f2ea, #e7e5d8);
  color: #345440;
  box-shadow: 0 17px 36px #3f654e12, inset 0 1px #fff;
}
.member-card:before {
  content: "";
  position: absolute;
  width: 245px;
  height: 245px;
  right: -92px;
  top: 32px;
  border: 1px solid #c5ceb436;
  border-radius: 50%;
  box-shadow: 0 0 0 27px #ffffff1f, 0 0 0 28px #c5ceb41a;
  pointer-events: none;
}
.member-card > * { position: relative; }
.member-card__top, .member-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-card__brand { font-family: var(--serif, "Cormorant Garamond", Georgia, serif); font-size: 16px; letter-spacing: .16em; }
.member-card__tier { padding: 5px 9px; border: 1px solid #a3b98a70; border-radius: 20px; color: #69804f; background: #fcf6ef8c; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.member-card__identity { padding: 34px 0 25px; }
.member-card__identity > span { color: #7e9c82; font-size: 8px; letter-spacing: .2em; }
.shop-screen .member-card h2 { margin: 9px 0 19px; font-size: 29px; line-height: 1.2; overflow-wrap: anywhere; }
.member-card__pet { display: flex; align-items: center; gap: 10px; min-width: 0; color: #698c76; }
.member-card__pet img { width: 37px; height: 37px; object-fit: cover; border: 1px solid #d1d6bd6b; border-radius: 50%; }
.member-card__pet strong, .member-card__pet small { display: block; }
.member-card__pet strong { color: #456852; font-size: 12px; font-weight: 500; }
.member-card__pet small { margin-top: 4px; font-size: 9px; color: #7e9c82; }
.member-card__bottom { padding-top: 15px; border-top: 1px solid #bfc7b359; font-size: 9px; letter-spacing: .09em; }
.member-card__bottom small { white-space: nowrap; font-size: 9px; letter-spacing: 0; color: #879b88; }
.member-card__bottom small.is-active { color: #4d7c6a; }
.member-card__bottom small:before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.member-card--paused { filter: saturate(.35); }
.member-card-caption { margin: 14px 0 25px; color: #7c9780; font-size: 11px; line-height: 1.85; }
.member-panel { padding: 22px; margin: 21px 0; background: linear-gradient(145deg, #ffffffed, #f6f5efdc); border: 1px solid #e1e1cf80; border-radius: 23px; box-shadow: 0 8px 26px #3e664d06; }
.member-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.shop-screen .member-panel h2 { margin: 0; font-size: 24px; }
.member-panel__heading .eyebrow { font-size: 8px; letter-spacing: .16em; }
.shop-screen .member-level h2 { margin-top: 11px; color: #69804f; font-size: 31px; }
.member-level__note { align-self: flex-start; padding-top: 3px; font-size: 9px; line-height: 1.7; color: #91a38f; text-align: right; }
.member-tier-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 24px 0; padding: 0; gap: 14px; }
.member-tier-path li { min-width: 0; padding: 12px 0 0; border-top: 1px solid #d9dacc; color: #9eab9a; }
.member-tier-path li.is-current { border-top-color: #8eaf68; color: #69804f; }
.member-tier-path span { font-size: 8px; letter-spacing: .12em; }
.member-tier-path strong { display: block; margin: 8px 0 5px; font-family: var(--serif, "Cormorant Garamond", Georgia, serif); font-size: 19px; font-weight: 400; }
.member-tier-path small { font-size: 8px; }
.member-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 15px; padding: 20px 0; margin: 6px 0 0; border-block: 1px solid #d1d6be44; }
.member-stat { min-width: 0; }
.member-stat--total { grid-column: 1 / -1; }
.member-stat > span { display: block; color: #859e86; font-size: 9px; line-height: 1.6; }
.member-stat > strong { display: block; margin-top: 5px; font-family: var(--serif, "Cormorant Garamond", Georgia, serif); color: #3c644b; font-size: 25px; font-weight: 400; overflow-wrap: anywhere; }
.member-stat--total > strong { font-size: 38px; }
.member-footnote { color: #859e86; font-size: 10px; line-height: 1.8; margin: 15px 0 0; }
.member-data-link, .member-card-toggle, .member-inline-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 40px; padding: 6px 0; background: transparent; border: 0; color: #658b74; font-size: 11px !important; box-shadow: none; }
.member-data-link { width: 100%; padding: 6px 3px; }
.member-data-link > span { display: inline-flex; align-items: center; gap: 9px; }
.member-inline-link { min-height: 40px; font-size: 9px !important; white-space: nowrap; }
.member-join { width: 100%; margin-bottom: 7px; }
.member-history-list { margin-top: 12px; }
.member-history-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: 100%; padding: 18px 0; color: #3c644b; background: transparent; border: 0; border-bottom: 1px solid #d1d6be44; text-align: left; box-shadow: none; }
.member-history-row:last-child { border-bottom: 0; }
.member-history-row > span { min-width: 0; }
.member-history-row strong { display: block; font-size: 11px; font-weight: 500; overflow-wrap: anywhere; }
.member-history-row small { display: block; margin-top: 6px; color: #859e86; font-size: 9px; line-height: 1.7; }
.member-history-row__total { display: flex; align-items: center; justify-content: flex-end; gap: 9px; text-align: right; }
.member-history-row__total > svg { flex-shrink: 0; }
.member-history-row__total > strong { white-space: nowrap; }
.member-history-empty { display: flex; gap: 15px; align-items: flex-start; padding: 25px 0 7px; color: #95ac91; }
.member-history-empty > svg { flex-shrink: 0; margin-top: 3px; }
.shop-screen .member-history-empty h3 { margin: 0 0 8px; color: #648470; font-family: var(--serif, "Cormorant Garamond", Georgia, serif); font-weight: 400; font-size: 20px; line-height: 1.3; }
.member-history-empty p { margin: 0; color: #859e86; font-size: 10px; line-height: 1.85; }
.member-test-history { margin-top: 21px; padding-top: 15px; border-top: 1px solid #d1d6be44; }
.member-test-history > summary { color: #859e86; font-size: 10px; line-height: 1.8; cursor: pointer; }
.member-history-error p { color: #965a63; font-size: 11px; line-height: 1.8; }
.member-profile-data { scroll-margin-top: calc(85px + env(safe-area-inset-top)); }
.member-profile-data > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; color: #698c76; }
.member-profile-data > summary::-webkit-details-marker { display: none; }
.member-profile-data > summary:after { content: '+'; font-size: 21px; font-weight: 300; color: #95ac91; }
.member-profile-data[open] > summary:after { content: '−'; }
.member-profile-data > summary > span { display: inline-block; vertical-align: middle; }
.member-profile-data > summary strong, .member-profile-data > summary small { display: block; }
.member-profile-data > summary strong { color: #3c644b; font-size: 13px; font-weight: 500; }
.member-profile-data > summary small { margin-top: 5px; color: #859e86; font-size: 9px; }
.member-profile-data form { margin-top: 22px; }
.member-profile-data .shop-field { gap: 7px; margin-block: 20px; font-size: 10px; color: #859e86; }
.member-profile-data .shop-field :is(input, textarea, select) { display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 48px; border-color: #dfdfcd80; border-radius: 12px; background: #ffffffb8; color: #3c644b; }
.member-profile-data input[type="date"] { -webkit-appearance: none; appearance: none; }
.member-profile-data input::-webkit-date-and-time-value { text-align: left; min-height: 1.5em; }
.member-profile-data .shop-checkbox { font-size: 10px; color: #859e86; }
.member-profile-data .shop-primary { min-height: 46px; border-radius: 13px; background: linear-gradient(135deg, #457156, #335741); box-shadow: 0 5px 15px #30543e12; }
.member-card-toggle { width: 100%; justify-content: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid #d1d6be44; color: #8a7b70; }
.member-account button:focus-visible, .member-history-page button:focus-visible, .member-account summary:focus-visible { outline: 2px solid #a4bc98; outline-offset: 3px; }
@media (max-width: 360px) {
  .member-card { padding: 20px; }
  .member-card__brand { font-size: 13px; letter-spacing: .13em; }
  .member-card__bottom { flex-wrap: wrap; }
  .member-panel { padding: 18px; }
  .shop-screen .member-panel h2 { font-size: 22px; }
  .member-panel__heading { gap: 10px; }
  .member-profile-data .shop-form-grid { grid-template-columns: 1fr; }
  .member-tier-path { gap: 10px; }
}
