body {
  --member-new-accent: #ff6a00;
  background: #ffffff;
  color: #0f172a;
  overflow-x: hidden;
}

body .topbar,
body .topbar[data-app-env="production"] {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #e7e7e7;
  box-shadow: none;
}

body .topbar .brand-copy,
body .topbar .brand-copy small,
body .topbar .brand-copy div,
body .topbar .brand-copy *,
body .topbar button,
body .topbar .btn,
body .topbar #topbarLogoutBtn {
  color: #111827 !important;
}

body .topbar .btn,
body .topbar #topbarLogoutBtn {
  background: #ffffff !important;
  border: 1px solid #e3e3e3 !important;
  box-shadow: none !important;
  color: #111827 !important;
}

body .topbar .topbar-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: max-content;
  max-width: none;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  line-height: 1;
  white-space: nowrap;
}

body .topbar #topbarUserName {
  color: #111827 !important;
}

body .topbar #topbarUserRole {
  color: #6f7278 !important;
}

body .topbar .topbar-logout-icon {
  display: block;
  width: 22px;
  height: 22px;
}

body .topbar #topbarLogoutBtn .topbar-logout-label {
  display: none;
}

body.topbar-power-modal-open {
  overflow: hidden;
}

body .topbar-power-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
}

body .topbar-power-modal.hidden {
  display: none;
}

body .topbar-power-dialog {
  width: min(100%, 480px);
  max-height: calc(100dvh - max(40px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 32px 90px rgba(15, 23, 42, 0.3);
}

body .topbar-power-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

body .topbar-power-head h2 {
  margin: 6px 0 0;
  font-size: 28px;
}

body .topbar-power-head p {
  margin: 8px 0 0;
  color: #6b7280;
}

body .topbar-power-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 50%;
  background: #f8fafc;
  color: #111827;
  font-size: 26px;
  line-height: 1;
}

body .topbar-power-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

body .topbar-power-action {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  background: #f8fafc;
  color: #111827;
  text-align: left;
  text-transform: none;
  box-shadow: none;
}

body .topbar-power-action:hover,
body .topbar-power-action:focus-visible {
  border-color: rgba(255, 106, 0, 0.45);
  background: #fff7ed;
  outline: none;
}

body .topbar-power-action-danger .topbar-power-action-icon {
  background: #fff1f2;
  color: #be123c;
}

body .topbar-power-action-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffedd5;
  color: #c2410c;
}

body .topbar-power-action-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .topbar-power-action-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

body .topbar-power-action-copy strong {
  color: inherit;
  font-size: 15px;
  line-height: 1.15;
}

body .topbar-power-action-copy small {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
}

body .topbar-power-action-arrow {
  display: inline-grid;
  place-items: center;
  color: #9ca3af;
}

body .topbar-power-action-arrow svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body .topbar-power-cancel {
  width: 100%;
  margin-top: 14px;
}

body .topbar .space-switch-button {
  background: rgba(255, 106, 0, 0.08);
  border-color: rgba(255, 106, 0, 0.22);
  color: #9a4100;
  box-shadow: none;
}

body .topbar .space-switch-button:hover {
  background: rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 106, 0, 0.38);
}

body .topbar .space-switch-icon {
  background: var(--member-new-accent);
  color: #fff;
}

body .topbar .space-switch-copy small {
  color: #8b6b56;
}

body .hero {
  max-width: 1240px;
  padding-top: 10px;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body .member-dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* Réglages d'apparence partagés entre les espaces membre et partenaire. */
body .member-display-settings{display:grid;gap:10px;margin-top:18px}
body .member-display-setting{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:68px;padding:13px 14px;border:1px solid #e0e3e8;border-radius:16px;background:#f5f6f8;box-shadow:none}
body .member-display-setting-copy{display:grid;gap:3px;min-width:0}
body .member-display-setting-copy strong{font-size:15px;line-height:1.25;color:#171b23}
body .member-display-setting-copy span{font-size:13px;line-height:1.35;color:#6b7280}
body .member-display-theme-options{display:grid;grid-template-columns:repeat(3,minmax(62px,1fr));gap:3px;flex:0 0 auto;padding:3px;border:1px solid #d9dde4;border-radius:12px;background:#e9ecf1}
body .member-display-theme-option{min-height:38px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:#596170;font:inherit;font-size:13px;font-weight:800;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
body .member-display-theme-option.is-selected{background:#fff;color:#171b23;box-shadow:0 2px 8px rgba(15,23,42,.12)}
body .member-display-theme-option:focus-visible{outline:3px solid rgba(201,137,36,.28);outline-offset:2px}
body .member-display-dev-toggle{display:inline-flex;align-items:center;gap:9px;min-height:42px;padding:6px 8px 6px 12px;border:1px solid #d9dde4;border-radius:12px;background:#e9ecf1;color:#596170;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
body .member-display-dev-toggle-track{position:relative;width:42px;height:24px;flex:0 0 42px;border-radius:999px;background:#9ca3af;transition:background .18s ease}
body .member-display-dev-toggle-track::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.22);transition:transform .18s ease}
body .member-display-dev-toggle.is-on .member-display-dev-toggle-track{background:#16a34a}
body .member-display-dev-toggle.is-on .member-display-dev-toggle-track::after{transform:translateX(18px)}
body .member-display-dev-toggle:focus-visible{outline:3px solid rgba(201,137,36,.28);outline-offset:2px}
body .member-display-status{margin:2px 2px 0;font-size:13px;line-height:1.4;color:#697181}
body[data-member-theme="dark"] .member-appearance-controls-card .member-display-setting{background:#20242b;border-color:#343b46}
body[data-member-theme="dark"] .member-appearance-controls-card .member-display-setting-copy strong{color:#f5f7fb}
body[data-member-theme="dark"] .member-appearance-controls-card .member-display-setting-copy span,
body[data-member-theme="dark"] .member-appearance-controls-card .member-display-status{color:#aeb6c2}
body[data-member-theme="dark"] .member-appearance-controls-card .member-display-theme-options{background:#15181d;border-color:#363d48}
body[data-member-theme="dark"] .member-appearance-controls-card .member-display-theme-option{color:#aeb6c2}
body[data-member-theme="dark"] .member-appearance-controls-card .member-display-theme-option.is-selected{background:#343a45;color:#fff;box-shadow:none}
body[data-member-theme="dark"] .member-appearance-controls-card .member-display-dev-toggle{background:#15181d;border-color:#363d48;color:#f5f7fb}

body .member-nav-shell {
  position: static;
  background: transparent;
  color: #0f172a;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  order: 1;
}

body .member-nav-topline {
  padding: 0 2px 8px;
  border-bottom: 0;
}

body .member-nav-topline .admin-nav-copy {
  min-width: 0;
}

body .member-nav-topline .label {
  color: #b1b1b6;
  letter-spacing: 0.16em;
  font-size: 10px;
}

body .member-nav-topline h2 {
  font-size: 28px;
  line-height: 1.04;
  margin-top: 6px;
  max-width: none;
  color: #111827;
}

body .member-nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
}

body .member-mobile-footbar {
  display: contents;
}

body .member-footbar-contact {
  display: none;
}

body .member-nav-tab {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px 12px 12px;
  border-radius: 22px;
  border: 1px solid #f1ebe6;
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
}

body .member-nav-tab::before {
  content: '';
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background-color: #fafafa;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  border: 1px solid #f0f0f0;
  grid-column: 1;
  grid-row: 1 / span 2;
}

body .member-nav-tab[data-member-section-tab="profile"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

body .member-nav-tab[data-member-section-tab="benefits"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 17.3-6.2 3.3 1.2-7-5-4.8 7-.9L12 1.5l3.1 6.4 7 .9-5 4.8 1.2 7z'/%3E%3C/svg%3E");
}

body .member-nav-tab[data-member-section-tab="my-production"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8h10'/%3E%3Cpath d='M8 3h8l1 5H7z'/%3E%3Cpath d='M7 8h10v10a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

body .member-nav-tab[data-member-section-tab="thirsty"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

body .member-nav-tab::after {
  content: '›';
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: end;
  color: #b0b3b8;
  font-size: 24px;
  line-height: 1;
}

body .member-nav-tab strong,
body .member-nav-tab span {
  grid-column: 2;
}

body .member-nav-tab strong {
  color: #111827 !important;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-transform: none;
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 2px;
}

body .member-nav-tab span {
  color: #6f7278 !important;
  font-size: 14px;
  line-height: 1.3;
  margin-top: 0;
}

body .member-nav-tab:not(.is-active) strong {
  color: #111827;
}

body .member-nav-tab.is-active {
  background: #ffffff;
  border-color: #e5e5e5;
  box-shadow: none;
}

body .member-nav-tab.is-active::before {
  background: #f8f8f8;
  border-color: #efefef;
}

body .member-nav-tab.is-active[data-member-section-tab="profile"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a00' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

body .member-nav-tab.is-active[data-member-section-tab="benefits"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a00' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 17.3-6.2 3.3 1.2-7-5-4.8 7-.9L12 1.5l3.1 6.4 7 .9-5 4.8 1.2 7z'/%3E%3C/svg%3E");
}

body .member-nav-tab.is-active[data-member-section-tab="my-production"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a00' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8h10'/%3E%3Cpath d='M8 3h8l1 5H7z'/%3E%3Cpath d='M7 8h10v10a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

body .member-nav-tab.is-active[data-member-section-tab="thirsty"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6a00' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

body .member-nav-tab.is-active strong,
body .member-nav-tab.is-active::after {
  color: var(--member-new-accent) !important;
}

body .member-nav-tab.is-active span {
  color: #6f7278;
}

body .member-whatsapp-contact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  flex: 0 1 360px;
  width: min(100%, 360px);
  margin-left: auto;
  padding: 8px 14px 8px 10px;
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: 18px;
  background: rgba(37, 211, 102, 0.07);
  color: #111827;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

body .member-whatsapp-contact:hover,
body .member-whatsapp-contact:focus-visible {
  border-color: rgba(37, 211, 102, 0.58);
  background: rgba(37, 211, 102, 0.12);
  transform: translateY(-1px);
}

body .member-whatsapp-contact:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.22);
  outline-offset: 2px;
}

body .member-whatsapp-contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: transparent;
}

body .member-whatsapp-contact-icon img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

body .member-whatsapp-contact-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

body .member-whatsapp-contact-copy strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
}

body .member-whatsapp-contact-copy > span {
  color: #697181;
  font-size: 12px;
  line-height: 1.3;
}

body .member-whatsapp-contact-arrow {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #697181;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body #memberCardSurface,
body #memberWalletActionsHost .card,
body #memberBenefitsList .card,
body #memberGroupOrdersList .card {
  box-shadow: none;
}

body #memberDashboardCard .member-benefits-virtual-card-host {
  display: grid;
  justify-items: center;
  min-width: 0;
}

body #memberDashboardCard .member-benefits-virtual-card-host #memberCardSurface {
  width: min(100%, 680px);
  min-width: 0;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .member-wallet-compact,
body #memberPointsHero,
body #memberHelloAssoCard,
body #memberMembershipSummaryHost,
body #memberWalletTopupControls {
  background: #ffffff;
  border: 1.5px solid rgba(17, 24, 39, 0.14);
  border-radius: 24px;
  box-shadow: none !important;
}

body #memberPointsHero,
body #memberHelloAssoCard,
body #profileCard,
body .member-points-inline-card,
body #memberMembershipSummaryHost .card,
body #memberPointsHero *,
body #memberHelloAssoCard * {
  background-image: none !important;
}

body #memberPointsHero,
body #memberHelloAssoCard {
  margin-top: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body #profileCard,
body .member-points-inline-card,
body #memberMembershipSummaryHost .card {
  padding: 22px;
  background: #ffffff !important;
}

body .member-wallet-compact {
  padding: 22px;
}

body .member-wallet-compact:has(.status:empty) {
  display: none;
}

body #memberMembershipSummaryHost > *,
body #memberHelloAssoCard > *,
body #memberPointsHero > *,
body #profileCard > * {
  box-shadow: none !important;
  background-image: none !important;
}

body #memberMembershipSummaryHost > *:first-child {
  margin-top: 0 !important;
}

body #memberWalletBalanceValue,
body .member-points-inline-value,
body #memberPointsHeroValue {
  color: #111827;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

body #memberWalletTopupSummary,
body #memberHelloAssoSummary,
body #memberMembershipSummaryHost .muted,
body #memberPointsHeroMeta {
  color: #52525b;
}

body #memberPointsHero .label,
body #memberHelloAssoCard .label,
body #memberMembershipSummaryHost .label {
  color: var(--member-new-accent);
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 800;
}

body #memberWalletTopupAmount {
  border-radius: 18px;
  min-height: 56px;
  font-size: 18px;
}

body #memberBreweriesFallbackSearch,
body .member-brewery-search-row,
body #memberBreweriesList,
body #memberBreweriesMap {
  min-width: 0;
  max-width: 100%;
}

body .member-brewery-search-row {
  flex-wrap: wrap !important;
}

body #memberBreweriesList .brewery-item {
  border-color: #e0e3e8;
  background: #ffffff;
  color: #18181b;
  box-shadow: none;
}

body #memberBreweriesList .brewery-item strong {
  color: #18181b;
}

body #memberBreweriesList .brewery-item .muted {
  color: #626a77;
}

body #memberBreweriesList .brewery-pill {
  border: 1px solid #dce1e7;
  background: #eef1f4;
  color: #434b58;
}

body #memberBreweriesList a.brewery-pill {
  border-color: #e5c18a;
  background: #fff6e8;
  color: #8a5412;
  font-weight: 750;
  text-decoration: none;
}

body[data-member-theme="dark"] #memberBreweriesList .brewery-item {
  border-color: #343b46 !important;
  background: #171a20 !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberBreweriesList .brewery-item strong {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberBreweriesList .brewery-item .muted {
  color: #b8c0cc !important;
}

body[data-member-theme="dark"] #memberBreweriesList .brewery-pill {
  border-color: #424a57 !important;
  background: #292e36 !important;
  color: #dce2eb !important;
}

body[data-member-theme="dark"] #memberBreweriesList a.brewery-pill {
  border-color: #76502d !important;
  background: #36291d !important;
  color: #ffc77d !important;
}

body .member-topup-step-btn {
  min-width: 84px;
  min-height: 56px;
  border-radius: 18px;
  background: #ffffff;
  border: 1.5px solid #2b2b2b;
  color: #111827;
  font-size: 34px;
  font-weight: 700;
}

body #memberWalletTopupBtn,
body #memberHelloAssoOpenBtn {
  min-height: 56px;
  padding-left: 22px;
  padding-right: 22px;
  border-radius: 18px;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body [class*="gold"],
body [style*="#d4a22a"],
body [style*="#c8921e"] {
  filter: none !important;
}

body .member-dashboard-panels {
  display: grid;
  gap: 18px;
  order: 2;
}

body .member-section-panel,
body .member-section-panel .grid-2,
body .member-section-panel .member-profile-grid {
  gap: 22px;
}

body .card,
body .hero-card,
body .member-profile-subgrid > article,
body .member-section-panel article {
  border-radius: 28px;
  border: 1.5px solid rgba(17, 24, 39, 0.14);
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
}

body .hero-card::before,
body .hero-card::after,
body .card::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

body .hero-card {
  background: #ffffff !important;
  background-image: none !important;
}

body .member-profile-grid > article:first-child {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body .member-card {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: none;
}

body .label,
body .eyebrow {
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--member-new-accent);
}

body h1,
body h2,
body h3 {
  letter-spacing: -0.03em;
}

body .member-section-panel .card > h2,
body .member-section-panel .hero-card > h2,
body #memberHelloAssoCard h2 {
  margin-top: 6px;
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.02;
  text-transform: uppercase;
  color: #111827;
}

body .member-section-panel .card > .label,
body .member-section-panel .hero-card > .eyebrow,
body #memberHelloAssoCard .label {
  display: inline-flex;
  margin-bottom: 2px;
  padding: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--member-new-accent);
  background: transparent;
  border: 0;
  box-shadow: none;
}

body .btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  border-radius: 16px;
  min-height: 46px;
  padding: 0 18px;
  box-shadow: none;
}

body .btn-primary {
  background: var(--member-new-accent);
  border-color: var(--member-new-accent);
  color: #ffffff;
}

body .btn-secondary {
  background: #fff;
  border-color: rgba(148, 163, 184, 0.26);
  color: #0f172a;
}

body .status.show.success {
  background: #d9ff57;
  color: #1f4d00;
  border-color: #c4f13d;
}

body #memberProductionCard .member-production-hero {
  background: #20150d !important;
  background-image: none !important;
  color: #ffffff;
  box-shadow: none !important;
}

body #memberProductionCard .member-production-hero-stat {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  backdrop-filter: none !important;
}

body #memberProductionCard .member-production-batch {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #e3e3e3 !important;
  color: #111827;
  box-shadow: none !important;
}

body #memberProductionCard .member-production-status {
  background: #fff2e8 !important;
  color: #b54718 !important;
}

body #memberProductionCard .member-production-title,
body #memberProductionCard .member-production-rapt-name,
body #memberProductionCard .member-production-hydrometer-name {
  color: #111827 !important;
}

body #memberProductionCard .member-production-meta {
  color: #4b5563 !important;
}

body #memberProductionCard .member-production-meta-pill,
body #memberProductionCard .member-production-hydrometer-metric {
  background: #f1f3f5 !important;
  color: #27303d !important;
}

body #memberProductionCard .member-production-rapt {
  background: #fff8ec !important;
  background-image: none !important;
  border-color: #ead2aa !important;
  color: #111827;
}

body #memberProductionCard .member-production-temperature {
  color: #166534 !important;
}

body #memberProductionCard .member-production-target,
body #memberProductionCard .member-production-hydrometer {
  background: #ffffff !important;
  border-color: #e3e3e3 !important;
  color: #111827;
}

body #memberProductionCard .member-production-hydrometer-info-trigger {
  background: #eef0f3 !important;
  color: #4b5563 !important;
}

body #memberProductionCard .member-production-hydrometer-info-popover {
  background: #ffffff !important;
  color: #27303d !important;
  border-color: #d9dde3 !important;
  box-shadow: none !important;
}

body #memberProductionModal .member-production-modal-dialog,
body #memberProductionModal .rapt-controls-card {
  background: #ffffff !important;
  color: #111827;
  border-color: #e3e3e3 !important;
  box-shadow: none !important;
}

body #memberProductionModal .member-production-modal-header {
  border-color: #e3e3e3 !important;
}

body #memberProductionModal .rapt-metric-box,
body #memberProductionModal .rapt-target-group {
  background: #f5f6f7;
  border-color: #dfe3e8;
  color: #111827;
}

body #memberProductionModal .rapt-target-group input {
  color: #111827;
}

body #memberProductionModal .rapt-step-btn {
  background: #f5f6f7;
  border-color: #9ca3af;
  color: #111827;
}

body #memberProductionModal .rapt-actions .primary {
  background: var(--member-new-accent);
  border-color: var(--member-new-accent);
  color: #ffffff;
}

body .status.show.error {
  background: #fff1f2;
  color: #b91c1c;
}

body .field input,
body .field select,
body .field textarea {
  border-radius: 16px;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.92);
}

body .member-benefit-card,
body .group-order-card,
body .partner-offer-card {
  border-radius: 24px;
}

body #memberBenefitsGrid,
body #memberGroupOrdersGrid,
body #nearbyBreweriesGrid {
  display: grid;
  gap: 18px;
}

body #memberBenefitDetailModal {
  background: rgba(15, 23, 42, 0.62) !important;
  backdrop-filter: none !important;
}

body #memberBenefitDetailModal .member-benefit-detail-dialog {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(17, 24, 39, 0.14) !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  color: #111827 !important;
}

body #memberBenefitDetailModal .member-benefit-detail-header {
  padding: 22px 24px 18px !important;
  border-bottom-color: rgba(17, 24, 39, 0.12) !important;
}

body #memberBenefitDetailModal .label {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--member-new-accent) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body #memberBenefitDetailTitle {
  margin: 6px 0 0 !important;
  color: #111827 !important;
  font-size: 28px;
  line-height: 1.02;
  text-transform: uppercase;
}

body #memberBenefitDetailModal .member-benefit-detail-body {
  padding: 24px !important;
}

body #memberBenefitDetailModal .member-benefit-detail-layout {
  gap: 18px !important;
}

body #memberBenefitDetailModal .member-benefit-detail-hero {
  border-color: rgba(17, 24, 39, 0.12) !important;
  border-radius: 16px !important;
  background: #f5f5f5 !important;
}

body #memberBenefitDetailModal .member-benefit-detail-hero-logo {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body #memberBenefitDetailModal .member-benefit-detail-card {
  background: #f7f7f8 !important;
  background-image: none !important;
  border: 1px solid rgba(17, 24, 39, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: #111827 !important;
}

body #memberBenefitDetailModal .member-benefit-detail-partner-name,
body #memberBenefitDetailModal .member-benefit-detail-title {
  color: #111827 !important;
}

body #memberBenefitDetailModal .muted {
  color: #5f6672 !important;
}

body #memberBenefitDetailModal .member-benefit-detail-map {
  border-color: rgba(17, 24, 39, 0.14) !important;
  border-radius: 14px !important;
  background: #eef0f2 !important;
}

body #memberBenefitDetailModal .member-benefit-usage {
  background: rgba(255, 106, 0, 0.12) !important;
  color: #9a3f00 !important;
  border: 1px solid rgba(255, 106, 0, 0.22) !important;
  border-radius: 12px !important;
}

body #memberBenefitDetailModal .member-benefit-usage.is-unavailable {
  background: #fff1f2 !important;
  color: #b91c1c !important;
  border-color: #fecdd3 !important;
}

body #memberBenefitDetailModal .member-benefit-promo-code {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-self: start;
  padding: 11px 14px;
  border: 1px solid #81c784 !important;
  border-radius: 12px !important;
  background: #4caf50 !important;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.24);
}

body #memberBenefitDetailModal .member-benefit-promo-block {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

body #memberBenefitDetailModal .member-benefit-promo-label {
  display: block;
  width: max-content;
}

@media (max-width: 700px) {
  body .topbar-power-modal {
    place-items: center;
    padding: max(14px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  }

  body .topbar-power-modal.member-modal-safe-area {
    align-items: center !important;
    place-items: center !important;
  }

  body .topbar-power-dialog {
    width: 100%;
    padding: 20px;
    border-radius: 28px 28px 20px 20px;
  }

  body .topbar-power-head h2 {
    font-size: 24px;
  }

  body .topbar .brand-copy {
    display: block !important;
    min-width: 0;
    overflow: hidden;
  }

  body .topbar .brand-copy small,
  body .topbar .brand-copy div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body .topbar-inner #topbarUserMenu > .topbar-user-identity {
    display: block !important;
    flex: 0 1 112px;
    min-width: 0;
    max-width: 112px;
    overflow: hidden;
  }

  body .topbar #topbarUserName,
  body .topbar #topbarUserRole {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body .topbar #topbarLogoutBtn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    max-width: 44px;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
  }

  body .topbar #topbarLogoutBtn .topbar-logout-label {
    display: none;
  }

  body .topbar #topbarLogoutBtn .topbar-logout-icon {
    display: block;
  }

  body .topbar-inner,
  body .topbar-user-menu {
    min-width: 0;
  }

  body #memberBenefitDetailModal {
    padding: calc(env(safe-area-inset-top, 0px) + 12px)
      max(12px, env(safe-area-inset-right, 0px))
      calc(env(safe-area-inset-bottom, 0px) + 12px)
      max(12px, env(safe-area-inset-left, 0px)) !important;
  }

  body #memberBenefitDetailModal .member-benefit-detail-dialog {
    margin: 0 auto !important;
    border-radius: 16px !important;
  }

  body #memberBenefitDetailModal .member-benefit-detail-header {
    align-items: center !important;
    padding: 16px !important;
  }

  body #memberBenefitDetailTitle {
    font-size: 22px;
  }

  body #memberBenefitDetailModal .member-benefit-detail-body {
    padding: 16px !important;
  }

  body #memberBenefitDetailModal .member-benefit-detail-columns {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body #memberBenefitDetailModal .member-benefit-detail-hero {
    min-height: 160px !important;
  }
}

@media (min-width: 981px) {
  body .member-nav-tabs {
    background: #f2f3f5;
  }

  body .member-profile-grid {
    grid-template-columns: 1.3fr 1fr;
  }

  body .member-profile-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body .shell {
    width: min(var(--max), calc(100% - 10px));
  }

  body .hero {
    padding-left: 0;
    padding-right: 0;
    padding-top: 8px;
  }

  body .member-dashboard-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body .member-nav-shell {
    position: static;
  }

  body .member-nav-topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 0 2px 6px;
  }

  body .member-whatsapp-contact {
    width: 100%;
    margin-left: 0;
  }

  body .member-nav-topline h2 {
    font-size: 30px;
    max-width: none;
  }

  body .member-nav-tabs {
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1ebe6;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  }

  body .member-nav-tab {
    min-height: 60px;
    padding: 7px 10px 7px 8px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid #f4efe9;
    box-shadow: none;
  }

  body .member-nav-tab:last-child {
    border-bottom: 0;
  }

  body .member-nav-tab::before {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  body .member-nav-tab strong {
    font-size: 13px;
  }

  body .member-nav-tab span {
    font-size: 11px;
  }

  body .card,
  body .hero-card {
    border-radius: 20px;
    padding: 16px;
  }

  body .member-card {
    max-width: none;
    margin: 0;
    width: 100%;
    padding: 0;
  }

  body .member-card-actions-row {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  body .member-card-actions-row-outside {
    margin-top: 10px;
  }

  body .member-section-panel .card > h2,
  body .member-section-panel .hero-card > h2,
  body #memberHelloAssoCard h2 {
    font-size: 22px;
  }
}

@media (max-width: 980px) {
  body.member-dashboard-active #memberDashboardCard .member-nav-topline .member-whatsapp-contact {
    display: none;
  }

  body.member-dashboard-active {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px) + var(--app-keyboard-inset, 0px));
  }

  body.member-dashboard-active #memberDashboardCard {
    padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
  }

  body.member-dashboard-active #toast {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px) + var(--app-keyboard-inset, 0px)) !important;
  }

  body.member-dashboard-active #memberDashboardCard .member-mobile-footbar {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 4px max(8px, env(safe-area-inset-right, 0px)) max(4px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -12px 32px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: visible;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tabs {
    display: contents;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab[data-member-section-tab="my-production"] {
    grid-column: 1;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab[data-member-section-tab="thirsty"] {
    grid-column: 2;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab[data-member-section-tab="benefits"] {
    grid-column: 3;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab[data-member-section-tab="profile"] {
    grid-column: 4;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab {
    display: flex;
    grid-row: 1;
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    width: auto;
    padding: 3px 3px 2px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab:last-child {
    border: 0;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab::before {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 0;
    border-radius: 9px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 21px 21px;
    transform: none;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab::after,
  body.member-dashboard-active #memberDashboardCard .member-nav-tab > span {
    display: none;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab strong {
    display: block;
    max-width: 100%;
    margin: 0;
    color: #626873 !important;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.member-dashboard-active #memberDashboardCard strong[data-mobile-label] {
    font-size: 0 !important;
  }

  body.member-dashboard-active #memberDashboardCard strong[data-mobile-label]::after {
    content: attr(data-mobile-label);
    font-size: 10px;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab.is-active {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab.is-active::before {
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 21px 21px;
    border: 0;
    transform: none;
  }

  body.member-dashboard-active #memberDashboardCard .member-nav-tab.is-active strong {
    color: var(--member-new-accent) !important;
  }

  body.member-dashboard-active #memberDashboardCard .member-footbar-contact {
    display: flex;
    grid-column: 5;
    grid-row: 1;
    flex: 1 1 0;
    min-width: 0;
    min-height: 50px;
    padding: 3px 3px 2px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #626873;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
  }

  body.member-dashboard-active #memberDashboardCard .member-footbar-contact-icon,
  body.member-dashboard-active #memberDashboardCard .member-footbar-contact-icon img {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
  }

  body.member-dashboard-active #memberDashboardCard .member-footbar-contact strong {
    display: block;
    max-width: 100%;
    color: #626873;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.member-dashboard-active.keyboard-open {
    padding-bottom: var(--app-keyboard-inset, 0px);
  }

  body.member-dashboard-active.keyboard-open #memberDashboardCard {
    padding-bottom: 0;
  }

  body.member-dashboard-active.keyboard-open #memberDashboardCard .member-mobile-footbar {
    display: none;
  }

  body.member-dashboard-active.keyboard-open #toast {
    bottom: calc(24px + var(--app-keyboard-inset, 0px)) !important;
  }
}

body[data-member-theme="dark"] {
  background: #0f1115;
  color: #f5f7fb;
}

body[data-member-theme="dark"] .topbar,
body[data-member-theme="dark"] .card,
body[data-member-theme="dark"] .hero-card,
body[data-member-theme="dark"] .member-profile-subgrid > article,
body[data-member-theme="dark"] .member-section-panel article,
body[data-member-theme="dark"] #memberPointsHero,
body[data-member-theme="dark"] #memberHelloAssoCard,
body[data-member-theme="dark"] #profileCard,
body[data-member-theme="dark"] .member-points-inline-card,
body[data-member-theme="dark"] #memberMembershipSummaryHost .card,
body[data-member-theme="dark"] .member-wallet-compact,
body[data-member-theme="dark"] #memberWalletTopupControls,
body[data-member-theme="dark"] .member-nav-tab,
body[data-member-theme="dark"] .member-nav-tabs,
body[data-member-theme="dark"] .topbar .btn,
body[data-member-theme="dark"] .topbar #topbarLogoutBtn {
  background: #171a20 !important;
  color: #f5f7fb !important;
  border-color: rgba(255,255,255,.14) !important;
}

body[data-member-theme="dark"] .topbar-power-dialog {
  background: #171a20;
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.14);
}

body[data-member-theme="dark"] .topbar-power-head p,
body[data-member-theme="dark"] .topbar-power-action-copy small {
  color: #b0b7c3;
}

body[data-member-theme="dark"] .topbar-power-close,
body[data-member-theme="dark"] .topbar-power-action {
  background: #20242c;
  color: #f5f7fb;
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-member-theme="dark"] .topbar-power-action:hover,
body[data-member-theme="dark"] .topbar-power-action:focus-visible {
  background: #292e38;
  border-color: rgba(255, 106, 0, 0.55);
}

body[data-member-theme="dark"] .topbar-power-action-danger .topbar-power-action-icon {
  background: rgba(244, 63, 94, 0.16);
  color: #fda4af;
}

body[data-member-theme="dark"] .topbar-power-action-icon {
  background: rgba(255, 106, 0, 0.16);
  color: #fb923c;
}

body[data-member-theme="dark"] .topbar .brand-copy,
body[data-member-theme="dark"] .topbar .brand-copy small,
body[data-member-theme="dark"] .topbar .brand-copy div,
body[data-member-theme="dark"] .topbar .brand-copy *,
body[data-member-theme="dark"] .member-nav-topline h2,
body[data-member-theme="dark"] .member-nav-tab strong,
body[data-member-theme="dark"] .member-section-panel .card > h2,
body[data-member-theme="dark"] .member-section-panel .hero-card > h2,
body[data-member-theme="dark"] #memberHelloAssoCard h2,
body[data-member-theme="dark"] #memberWalletBalanceValue,
body[data-member-theme="dark"] .member-points-inline-value,
body[data-member-theme="dark"] #memberPointsHeroValue {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] .topbar #topbarUserName {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] .topbar #topbarUserRole {
  color: #b0b7c3 !important;
}

body[data-member-theme="dark"] .topbar .space-switch-button {
  background: rgba(255, 106, 0, 0.14);
  border-color: rgba(255, 143, 64, 0.32);
  color: #fff4ec;
}

body[data-member-theme="dark"] .topbar .space-switch-button:hover {
  background: rgba(255, 106, 0, 0.22);
  border-color: rgba(255, 143, 64, 0.48);
}

body[data-member-theme="dark"] .topbar .space-switch-copy small {
  color: #d5aa8d;
}

body[data-member-theme="dark"] .muted,
body[data-member-theme="dark"] .member-nav-tab span,
body[data-member-theme="dark"] #memberWalletTopupSummary,
body[data-member-theme="dark"] #memberHelloAssoSummary,
body[data-member-theme="dark"] #memberMembershipSummaryHost .muted,
body[data-member-theme="dark"] #memberPointsHeroMeta {
  color: #b0b7c3 !important;
}

body[data-member-theme="dark"] .member-nav-tab::before {
  background-color: #1f232b;
  border-color: rgba(255,255,255,.12);
}

body[data-member-theme="dark"] .member-nav-tab:not(.is-active)[data-member-section-tab="profile"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f7fb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

body[data-member-theme="dark"] .member-nav-tab:not(.is-active)[data-member-section-tab="benefits"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f7fb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 17.3-6.2 3.3 1.2-7-5-4.8 7-.9L12 1.5l3.1 6.4 7 .9-5 4.8 1.2 7z'/%3E%3C/svg%3E");
}

body[data-member-theme="dark"] .member-nav-tab:not(.is-active)[data-member-section-tab="my-production"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f7fb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8h10'/%3E%3Cpath d='M8 3h8l1 5H7z'/%3E%3Cpath d='M7 8h10v10a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2z'/%3E%3C/svg%3E");
}

body[data-member-theme="dark"] .member-nav-tab:not(.is-active)[data-member-section-tab="thirsty"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5f7fb' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

@media (max-width: 980px) {
  body.member-dashboard-active[data-member-theme="dark"] #memberDashboardCard .member-mobile-footbar {
    background: rgba(23, 26, 32, 0.97) !important;
    border-top-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.34);
  }

  body.member-dashboard-active[data-member-theme="dark"] #memberDashboardCard .member-nav-tab {
    background: transparent !important;
    border: 0 !important;
  }

  body.member-dashboard-active[data-member-theme="dark"] #memberDashboardCard .member-nav-tab.is-active {
    background: transparent !important;
  }

  body.member-dashboard-active[data-member-theme="dark"] #memberDashboardCard .member-nav-tab strong {
    color: #aeb6c2 !important;
  }

  body.member-dashboard-active[data-member-theme="dark"] #memberDashboardCard .member-nav-tab.is-active strong {
    color: #fb923c !important;
  }

  body.member-dashboard-active[data-member-theme="dark"] #memberDashboardCard .member-footbar-contact,
  body.member-dashboard-active[data-member-theme="dark"] #memberDashboardCard .member-footbar-contact strong {
    color: #aeb6c2;
  }
}

body[data-member-theme="dark"] .member-whatsapp-contact {
  background: #16231c;
  border-color: rgba(37, 211, 102, 0.28);
  color: #f5f7fb;
}

body[data-member-theme="dark"] .member-whatsapp-contact:hover,
body[data-member-theme="dark"] .member-whatsapp-contact:focus-visible {
  background: #1a2e22;
  border-color: rgba(37, 211, 102, 0.5);
}

body[data-member-theme="dark"] .member-whatsapp-contact-copy strong {
  color: #f5f7fb;
}

body[data-member-theme="dark"] .member-whatsapp-contact-copy > span,
body[data-member-theme="dark"] .member-whatsapp-contact-arrow {
  color: #b0b7c3;
  stroke: #b0b7c3;
}

body[data-member-theme="dark"] .btn-secondary {
  background: #171a20;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.16);
}


body[data-member-theme="dark"] #memberProductionCard .member-production-hero {
  background: #24170f !important;
  color: #ffffff !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-batch {
  background: #171a20 !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-status {
  background: #382a18 !important;
  color: #ffad66 !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-title,
body[data-member-theme="dark"] #memberProductionCard .member-production-rapt-name,
body[data-member-theme="dark"] #memberProductionCard .member-production-hydrometer-name {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-meta {
  color: #c4cad4 !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-meta-pill,
body[data-member-theme="dark"] #memberProductionCard .member-production-hydrometer-metric {
  background: #282d35 !important;
  color: #f0f3f7 !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-rapt {
  background: #211e17 !important;
  border-color: #57482c !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-rapt .label {
  color: #ff8a3d !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-rapt .muted {
  color: #c4cad4 !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-temperature {
  background: #173923 !important;
  color: #86e3a7 !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-target,
body[data-member-theme="dark"] #memberProductionCard .member-production-hydrometer {
  background: #242830 !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-hydrometer-icon {
  background: #3b2b1a !important;
  color: #ffad66 !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-hydrometer-info-trigger {
  background: #303640 !important;
  color: #d7dce4 !important;
}

body[data-member-theme="dark"] #memberProductionCard .member-production-hydrometer-info-popover {
  background: #282d35 !important;
  color: #f5f7fb !important;
  border-color: rgba(255,255,255,.16) !important;
}

body[data-member-theme="dark"] #memberProductionModal .member-production-modal-dialog {
  background: #171a20 !important;
  color: #f5f7fb !important;
  border-color: rgba(255,255,255,.16) !important;
}

body[data-member-theme="dark"] #memberProductionModal .member-production-modal-header {
  border-color: rgba(255,255,255,.14) !important;
}

body[data-member-theme="dark"] #memberProductionModal .label {
  color: #ff8a3d !important;
}

body[data-member-theme="dark"] #memberProductionModalTitle,
body[data-member-theme="dark"] #memberProductionModal .rapt-headline strong,
body[data-member-theme="dark"] #memberProductionModal .rapt-metric-box strong {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberProductionModal .muted {
  color: #bcc3cd !important;
}

body[data-member-theme="dark"] #memberProductionModal .rapt-controls-card {
  background: #101319 !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberProductionModal .rapt-metric-box,
body[data-member-theme="dark"] #memberProductionModal .rapt-target-group {
  background: #20242c !important;
  border-color: rgba(255,255,255,.15) !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberProductionModal .rapt-target-group input,
body[data-member-theme="dark"] #memberProductionModal .rapt-target-unit {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberProductionModal .rapt-target-group input::placeholder {
  color: #858d99;
}

body[data-member-theme="dark"] #memberProductionModal .rapt-step-btn {
  background: #20242c !important;
  border-color: rgba(255,255,255,.32) !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberProductionModal .rapt-actions .primary {
  background: var(--member-new-accent) !important;
  border-color: var(--member-new-accent) !important;
  color: #ffffff !important;
}

@media (max-width: 640px) {
  body #memberProductionModal {
    padding: calc(env(safe-area-inset-top, 0px) + 12px)
      max(12px, env(safe-area-inset-right, 0px))
      calc(env(safe-area-inset-bottom, 0px) + 12px)
      max(12px, env(safe-area-inset-left, 0px)) !important;
  }

  body #memberProductionModal .member-production-modal-dialog {
    margin-top: 2vh !important;
  }

  body #memberProductionModal .member-production-modal-header {
    padding: 18px 18px 16px !important;
  }

  body #memberProductionModal .member-production-modal-body {
    padding: 16px 18px 20px !important;
  }
}


body[data-member-theme="dark"] #memberBenefitsList .member-benefit-card {
  background: #171a20 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberBenefitsList .member-benefit-title,
body[data-member-theme="dark"] #memberBenefitsList .member-benefit-partner-name,
body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-detail-partner-name,
body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-detail-title {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberBenefitsList .member-benefit-partner-meta {
  border-top-color: rgba(255,255,255,.14) !important;
}

body[data-member-theme="dark"] #memberBenefitsList .label,
body[data-member-theme="dark"] #memberBenefitDetailModal .label {
  color: #ff8a3d !important;
}

body[data-member-theme="dark"] #memberBenefitsList .member-benefit-usage,
body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-usage {
  background: rgba(255,106,0,.18) !important;
  color: #ffb27a !important;
  border: 1px solid rgba(255,138,61,.28) !important;
}

body[data-member-theme="dark"] #memberBenefitsList .member-benefit-usage.is-unavailable,
body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-usage.is-unavailable {
  background: rgba(248,113,113,.16) !important;
  color: #fecaca !important;
  border-color: rgba(248,113,113,.28) !important;
}

body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-detail-dialog {
  background: #171a20 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: none !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-detail-header {
  border-bottom-color: rgba(255,255,255,.14) !important;
}

body[data-member-theme="dark"] #memberBenefitDetailTitle {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-detail-card {
  background: #0f1115 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-detail-hero,
body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-detail-map {
  background: #0f1115 !important;
  border-color: rgba(255,255,255,.16) !important;
}

body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-detail-hero-logo {
  background: #f5f7fb !important;
  border-color: rgba(255,255,255,.18) !important;
}

body[data-member-theme="dark"] #memberBenefitDetailModal .member-benefit-promo-code {
  background: #4caf50 !important;
  color: #ffffff !important;
  border-color: #81c784 !important;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.2);
}

body[data-member-theme="dark"] #memberBenefitDetailModal .muted {
  color: #c4cad4 !important;
}

body[data-member-theme="dark"] .field input,
body[data-member-theme="dark"] .field select,
body[data-member-theme="dark"] .field textarea,
body[data-member-theme="dark"] #memberWalletTopupAmount {
  background: #101319;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.16);
}

body[data-member-theme="dark"] .member-topup-step-btn {
  background: #171a20;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.28);
}

/* Dashboard admin — surfaces dédiées à la nouvelle expérience sombre. */
body[data-member-theme="dark"] .admin-app {
  color: #f5f7fb;
}

body[data-member-theme="dark"] .admin-tool-button,
body[data-member-theme="dark"] .admin-apps-popover,
body[data-member-theme="dark"] .admin-apps-item,
body[data-member-theme="dark"] .admin-member-list-item,
body[data-member-theme="dark"] .admin-membership-card,
body[data-member-theme="dark"] .admin-bsc-pay-child-card,
body[data-member-theme="dark"] .admin-wallet-balance-strip,
body[data-member-theme="dark"] .admin-partner-child-item,
body[data-member-theme="dark"] .admin-offer-quota-card,
body[data-member-theme="dark"] .admin-offer-quota-option,
body[data-member-theme="dark"] .admin-wallet-diagnostic,
body[data-member-theme="dark"] .admin-wallet-object-grid > div,
body[data-member-theme="dark"] .admin-location-preview,
body[data-member-theme="dark"] .admin-wallet-metric,
body[data-member-theme="dark"] .admin-wallet-section {
  background: #1f232b !important;
  color: #f5f7fb !important;
  border-color: rgba(255,255,255,.14) !important;
  background-image: none !important;
}

body[data-member-theme="dark"] .admin-tool-button:hover,
body[data-member-theme="dark"] .admin-apps-item:hover,
body[data-member-theme="dark"] .admin-member-list-item:hover,
body[data-member-theme="dark"] .admin-partner-child-item:hover,
body[data-member-theme="dark"] .admin-offer-quota-option:hover {
  background: #262b34 !important;
  border-color: rgba(255,173,102,.42) !important;
}

body[data-member-theme="dark"] .admin-tool-button-highlight {
  background: #171a20 !important;
  border-color: rgba(255,173,102,.48) !important;
  box-shadow: inset 0 -2px 0 var(--member-new-accent) !important;
}

body[data-member-theme="dark"] .admin-tool-copy strong,
body[data-member-theme="dark"] .admin-apps-item-copy strong,
body[data-member-theme="dark"] .admin-shell-card h2,
body[data-member-theme="dark"] .admin-shell-card h3,
body[data-member-theme="dark"] .admin-modal-card h2,
body[data-member-theme="dark"] .admin-modal-card h3,
body[data-member-theme="dark"] .admin-member-list-item strong,
body[data-member-theme="dark"] .admin-payment-row strong,
body[data-member-theme="dark"] .admin-app label {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] .admin-tool-copy span,
body[data-member-theme="dark"] .admin-apps-item-copy span,
body[data-member-theme="dark"] .admin-tools-divider,
body[data-member-theme="dark"] .admin-event-toggle,
body[data-member-theme="dark"] .admin-wallet-action-hint,
body[data-member-theme="dark"] .admin-wallet-inline-equivalent,
body[data-member-theme="dark"] .admin-wallet-balance-subtle,
body[data-member-theme="dark"] .admin-wallet-metric > small,
body[data-member-theme="dark"] .admin-wallet-device small,
body[data-member-theme="dark"] .admin-wallet-obsolete-list small {
  color: #b0b7c3 !important;
}

body[data-member-theme="dark"] .admin-event-toggle.is-on .admin-event-toggle-track {
  background: linear-gradient(145deg, #22c55e, #15803d);
  box-shadow: inset 0 0 0 1px rgba(134,239,172,.32), 0 0 0 3px rgba(34,197,94,.12);
}

body[data-member-theme="dark"] .admin-event-toggle:not(.is-on) .admin-event-toggle-track,
body[data-member-theme="dark"] .planning-cancelled-switch > i {
  background: #6b7280;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

body[data-member-theme="dark"] .planning-cancelled-switch input:checked + i {
  background: linear-gradient(145deg, #22c55e, #15803d);
  box-shadow: inset 0 0 0 1px rgba(134,239,172,.32), 0 0 0 3px rgba(34,197,94,.12);
}

body[data-member-theme="dark"] .admin-event-toggle.is-on {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] .admin-modal-card {
  background: #171a20;
  color: #f5f7fb;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 80px rgba(0,0,0,.58);
}

body[data-member-theme="dark"] .admin-modal-card .card {
  background: #1f232b !important;
  border-color: rgba(255,255,255,.14) !important;
}

body[data-member-theme="dark"] .admin-modal-header {
  border-color: rgba(255,255,255,.12);
}

body[data-member-theme="dark"] .admin-modal-action,
body[data-member-theme="dark"] .admin-modal-close,
body[data-member-theme="dark"] .admin-wallet-debug-tab {
  background: #252a33;
  color: #f5f7fb;
  border: 1px solid rgba(255,255,255,.16);
}

body[data-member-theme="dark"] .admin-wallet-debug-tab.is-active {
  background: #101319;
  border-color: rgba(255,173,102,.48);
}

body[data-member-theme="dark"] .admin-badge-muted,
body[data-member-theme="dark"] .admin-wallet-health-tags > span {
  background: #252a33;
  color: #d8dde6;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .admin-app input[readonly] {
  background: #15181e;
}

body[data-member-theme="dark"] .admin-debug-block pre,
body[data-member-theme="dark"] .admin-contact-details pre,
body[data-member-theme="dark"] .admin-json-scroll {
  background: #101319;
  color: #d8dde6;
}

body[data-member-theme="dark"] .admin-spinner {
  border-color: rgba(255,255,255,.16);
  border-top-color: #f5f7fb;
}

body[data-member-theme="dark"] .admin-superg-search input,
body[data-member-theme="dark"] .admin-superg-contact-card,
body[data-member-theme="dark"] .admin-superg-count {
  background: #1f232b;
  border-color: rgba(255,255,255,.14);
  color: #f5f7fb;
}

body[data-member-theme="dark"] .admin-superg-search > span,
body[data-member-theme="dark"] .admin-superg-contact-copy > .muted,
body[data-member-theme="dark"] .admin-superg-contact-meta > .muted {
  color: #b0b7c3;
}

body[data-member-theme="dark"] .admin-superg-contact-copy strong {
  color: #f5f7fb;
}

body[data-member-theme="dark"] .admin-superg-avatar {
  background: #f15a29;
  color: #fff;
}

/* Password Manager — mêmes surfaces sombres que les autres modales admin. */
body[data-member-theme="dark"] .password-manager-search input,
body[data-member-theme="dark"] .password-manager-account-item,
body[data-member-theme="dark"] .password-manager-url-row,
body[data-member-theme="dark"] .password-manager-secret-row,
body[data-member-theme="dark"] .password-manager-notes {
  background: #1f232b;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .password-manager-account-copy strong,
body[data-member-theme="dark"] .password-manager-account-copy span,
body[data-member-theme="dark"] .password-manager-url-row strong,
body[data-member-theme="dark"] .password-manager-secret-copy strong,
body[data-member-theme="dark"] .password-manager-secret-copy input,
body[data-member-theme="dark"] .password-manager-notes p {
  color: #f5f7fb;
}

body[data-member-theme="dark"] .password-manager-account-copy small,
body[data-member-theme="dark"] .password-manager-url-row small,
body[data-member-theme="dark"] .password-manager-list-arrow,
body[data-member-theme="dark"] .password-manager-empty {
  color: #b0b7c3;
}

body[data-member-theme="dark"] .password-manager-account-item:hover,
body[data-member-theme="dark"] .password-manager-password-toggle:hover,
body[data-member-theme="dark"] .password-manager-password-toggle:focus-visible {
  background: #262b34;
  color: #f5f7fb;
  border-color: rgba(255,173,102,.42);
}

body[data-member-theme="dark"] .password-manager-account-mark {
  background: rgba(255,173,102,.14);
  color: #ffad66;
}

body[data-member-theme="dark"] .password-manager-delete-confirm {
  background: rgba(127,29,29,.18);
  border-color: rgba(248,113,113,.34);
}

body[data-member-theme="dark"] .password-manager-delete-confirm span {
  color: #fca5a5;
}

/* Production — Recettes, Brassins, Inventaire et pilotage RAPT. */
body[data-member-theme="dark"] .brewfather-recipe-card,
body[data-member-theme="dark"] .brewfather-batch-card,
body[data-member-theme="dark"] .brewfather-item-card,
body[data-member-theme="dark"] .rapt-card,
body[data-member-theme="dark"] .rapt-controls-card {
  background: #1f232b;
  background-image: none;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}

body[data-member-theme="dark"] .brewfather-recipe-search,
body[data-member-theme="dark"] .brewfather-stage-tab,
body[data-member-theme="dark"] .brewfather-recipe-stats > div,
body[data-member-theme="dark"] .brewfather-recipe-ingredients > div,
body[data-member-theme="dark"] .brewfather-batch-timeline > div,
body[data-member-theme="dark"] .rapt-metric-box,
body[data-member-theme="dark"] .rapt-target-group,
body[data-member-theme="dark"] .rapt-hydrometer {
  background: #101319;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .brewfather-stage-tab.is-active {
  background: #f5f7fb;
  color: #111827;
  border-color: #f5f7fb;
  box-shadow: none;
}

body[data-member-theme="dark"] .brewfather-stage-tab b,
body[data-member-theme="dark"] .brewfather-stage-heading > span,
body[data-member-theme="dark"] .brewfather-recipe-tags span,
body[data-member-theme="dark"] .brewfather-item-stock,
body[data-member-theme="dark"] .brewfather-batch-card-head > span,
body[data-member-theme="dark"] .rapt-activity-badge,
body[data-member-theme="dark"] .rapt-rssi,
body[data-member-theme="dark"] .rapt-linked-batch-meta,
body[data-member-theme="dark"] .rapt-hydrometer-values span {
  background: #303641;
  color: #d8dde6;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .brewfather-recipe-profiles,
body[data-member-theme="dark"] .brewfather-batch-rapt,
body[data-member-theme="dark"] .rapt-linked-batch-name {
  background: #302718;
  color: #f3d49a;
  border-color: #6e5530;
}

body[data-member-theme="dark"] .rapt-controls-card.is-linked {
  background: #242018;
  color: #f5f7fb;
  border-color: #6e5530;
}

body[data-member-theme="dark"] .rapt-compact-toolbar {
  color: #aeb6c2;
}

body[data-member-theme="dark"] .rapt-compact-refresh {
  background: #1f232b;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .rapt-compact-refresh:hover {
  background: #303641;
  border-color: rgba(255,173,102,.42);
}

body[data-member-theme="dark"] .brewfather-batch-rapt-values b {
  background: #15271d;
  color: #86efac;
}

body[data-member-theme="dark"] .rapt-linked-batch-warning {
  background: #321c1c;
  color: #ffb4aa;
  border-color: #7c3e38;
}

body[data-member-theme="dark"] .brewfather-recipe-card-head h4,
body[data-member-theme="dark"] .brewfather-recipe-stats strong,
body[data-member-theme="dark"] .brewfather-recipe-profiles strong,
body[data-member-theme="dark"] .brewfather-recipe-ingredients strong,
body[data-member-theme="dark"] .brewfather-batch-card-head h4,
body[data-member-theme="dark"] .brewfather-batch-timeline strong,
body[data-member-theme="dark"] .brewfather-item-card > strong,
body[data-member-theme="dark"] .rapt-headline strong,
body[data-member-theme="dark"] .rapt-metric-box strong,
body[data-member-theme="dark"] .rapt-target-group input {
  color: #f5f7fb;
}

body[data-member-theme="dark"] .brewfather-recipe-card-head p,
body[data-member-theme="dark"] .brewfather-recipe-teaser,
body[data-member-theme="dark"] .brewfather-recipe-stats small,
body[data-member-theme="dark"] .brewfather-recipe-stats em,
body[data-member-theme="dark"] .brewfather-recipe-profiles small,
body[data-member-theme="dark"] .brewfather-recipe-ingredients small,
body[data-member-theme="dark"] .brewfather-batch-card-head small,
body[data-member-theme="dark"] .brewfather-batch-timeline small,
body[data-member-theme="dark"] .brewfather-batch-card-footer > div,
body[data-member-theme="dark"] .rapt-refresh-status,
body[data-member-theme="dark"] .rapt-rssi-value,
body[data-member-theme="dark"] .rapt-target-unit {
  color: #aeb6c2;
}

body[data-member-theme="dark"] .brewfather-recipe-search input,
body[data-member-theme="dark"] .rapt-target-group input {
  color-scheme: dark;
}

body[data-member-theme="dark"] .brewfather-recipe-search input::placeholder,
body[data-member-theme="dark"] .rapt-target-group input::placeholder {
  color: #7f8793;
}

body[data-member-theme="dark"] .rapt-hydrometer-info {
  background: #252a33;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 16px 32px rgba(0,0,0,.42);
}

body[data-member-theme="dark"] .brewfather-stage-empty {
  color: #aeb6c2;
  border-color: rgba(255,255,255,.22);
}

body[data-member-theme="dark"] .rapt-step-btn {
  background: #252a33;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.16);
}

body[data-member-theme="dark"] .rapt-actions .primary {
  background: var(--member-new-accent);
  color: #fff;
  border-color: var(--member-new-accent);
}

/* Planning et contenants — palette sombre complète des vues et dialogues admin. */
body[data-member-theme="dark"] .planning-shell,
body[data-member-theme="dark"] .planning-dialog,
body[data-member-theme="dark"] .planning-containers-page {
  color: #f5f7fb;
}

body[data-member-theme="dark"] .planning-container-editor > header p {
  color: #aeb6c2;
}

body[data-member-theme="dark"] .planning-capacity-dashboard > header,
body[data-member-theme="dark"] .planning-capacity-card {
  background: #171a20;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .planning-capacity-card > header small,
body[data-member-theme="dark"] .planning-capacity-legend span,
body[data-member-theme="dark"] .planning-keg-legend span,
body[data-member-theme="dark"] .planning-stock-legend span,
body[data-member-theme="dark"] .planning-keg-column > small,
body[data-member-theme="dark"] .planning-fermenter-row.is-head > span,
body[data-member-theme="dark"] .planning-fermenter-row.is-head > strong {
  color: #aeb6c2;
}

body[data-member-theme="dark"] .planning-capacity-card > header > b,
body[data-member-theme="dark"] .planning-fermenter-row > strong {
  background: #252a33;
  color: #f5f7fb;
}

body[data-member-theme="dark"] .planning-keg-chart {
  background: linear-gradient(to top,rgba(54,196,98,.12),rgba(23,26,32,.2) 70%);
}

body[data-member-theme="dark"] .planning-stock-chart {
  background: linear-gradient(to top,rgba(54,196,98,.08),rgba(23,26,32,.2) 72%);
}

body[data-member-theme="dark"] .planning-stock-grid line {
  stroke: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .planning-stock-axis text,
body[data-member-theme="dark"] .planning-stock-days text {
  fill: #aeb6c2;
}

body[data-member-theme="dark"] .planning-stock-switch {
  background: #252a33;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .planning-stock-switch button {
  color: #aeb6c2;
}

body[data-member-theme="dark"] .planning-stock-switch button.active {
  background: #f15a29;
  color: #fff;
}

body[data-member-theme="dark"] .planning-dialog,
body[data-member-theme="dark"] .planning-header-compact,
body[data-member-theme="dark"] .planning-layers,
body[data-member-theme="dark"] .planning-day,
body[data-member-theme="dark"] .planning-list-item,
body[data-member-theme="dark"] .planning-month-agenda,
body[data-member-theme="dark"] .planning-mobile-agenda,
body[data-member-theme="dark"] .planning-containers-page-head,
body[data-member-theme="dark"] .planning-container-summary article,
body[data-member-theme="dark"] .planning-container-section {
  background: #171a20;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .planning-event,
body[data-member-theme="dark"] .planning-bookings article,
body[data-member-theme="dark"] .planning-resource-list article,
body[data-member-theme="dark"] .planning-location-list article,
body[data-member-theme="dark"] .planning-template-list article,
body[data-member-theme="dark"] .planning-template-items article,
body[data-member-theme="dark"] .planning-help-definitions > div,
body[data-member-theme="dark"] .planning-help-data-flow > div,
body[data-member-theme="dark"] .planning-packaging-allocation,
body[data-member-theme="dark"] .planning-packaging-options label,
body[data-member-theme="dark"] .planning-packaging-empty,
body[data-member-theme="dark"] .planning-container-types > article,
body[data-member-theme="dark"] .planning-container-kpis span,
body[data-member-theme="dark"] .planning-container-assets > div,
body[data-member-theme="dark"] .planning-container-asset-card,
body[data-member-theme="dark"] .planning-container-format-grid > article,
body[data-member-theme="dark"] .planning-container-fleet-list > article,
body[data-member-theme="dark"] .planning-container-cycle-customer,
body[data-member-theme="dark"] .planning-container-cycle-exception,
body[data-member-theme="dark"] .planning-customer-picker-list > button {
  background: #1f232b;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .planning-nav button,
body[data-member-theme="dark"] .planning-view-switch,
body[data-member-theme="dark"] .planning-filter-trigger,
body[data-member-theme="dark"] .planning-help-trigger,
body[data-member-theme="dark"] .planning-category-tabs,
body[data-member-theme="dark"] .planning-wizard-progress,
body[data-member-theme="dark"] .planning-date-precision > div,
body[data-member-theme="dark"] .planning-cancelled-switch,
body[data-member-theme="dark"] .planning-filter-groups > section,
body[data-member-theme="dark"] .planning-month-grid,
body[data-member-theme="dark"] .planning-mobile-week {
  background: #252a33;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .planning-nav button,
body[data-member-theme="dark"] .planning-view-switch button,
body[data-member-theme="dark"] .planning-filter-trigger,
body[data-member-theme="dark"] .planning-help-trigger,
body[data-member-theme="dark"] .planning-category-tabs button,
body[data-member-theme="dark"] .planning-date-precision button,
body[data-member-theme="dark"] .planning-mobile-week > button,
body[data-member-theme="dark"] .planning-month-grid > button {
  background: #1f232b;
  color: #d8dde6;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .planning-month-weekdays {
  color: #aeb6c2;
}

body[data-member-theme="dark"] .planning-month-grid > button.outside {
  background: #171a20;
  color: #8f98a5;
  opacity: .72;
}

body[data-member-theme="dark"] .planning-view-switch button.active,
body[data-member-theme="dark"] .planning-category-tabs button.active,
body[data-member-theme="dark"] .planning-wizard-progress span.active,
body[data-member-theme="dark"] .planning-date-precision button.active,
body[data-member-theme="dark"] .planning-mobile-week > button.selected,
body[data-member-theme="dark"] .planning-month-grid > button.selected {
  background: #101319;
  color: #f5f7fb;
  border-color: rgba(255,173,102,.48);
  opacity: 1;
}

body[data-member-theme="dark"] .planning-category-tabs button.active small,
body[data-member-theme="dark"] .planning-filter-group-toggle.active,
body[data-member-theme="dark"] .planning-wizard-progress span.active i,
body[data-member-theme="dark"] .planning-wizard-progress span.done i {
  background: #101319;
  color: #f5f7fb;
}

body[data-member-theme="dark"] .planning-filter-group-toggle {
  background: #2d323b;
  color: #d8dde6;
}

body[data-member-theme="dark"] .planning-filter-group-toggle > small {
  background: #171a20;
  color: #d8dde6;
}

body[data-member-theme="dark"] .planning-filter-resources label:hover,
body[data-member-theme="dark"] .planning-container-fleet-list > article:hover {
  background: #2a2f38;
}

body[data-member-theme="dark"] .planning-day.today,
body[data-member-theme="dark"] .planning-container-upcoming.is-priority {
  background: #2b2419;
  border-color: #8a652d;
}

body[data-member-theme="dark"] .planning-event.is-maintenance,
body[data-member-theme="dark"] .planning-event.is-blocked,
body[data-member-theme="dark"] .planning-event.is-cancelled,
body[data-member-theme="dark"] .planning-list-item.is-cancelled,
body[data-member-theme="dark"] .planning-container-format-grid > article.alert,
body[data-member-theme="dark"] .planning-container-summary article.is-alert {
  background: #321c1c;
  border-color: #7c3e38;
}

body[data-member-theme="dark"] .planning-dialog input,
body[data-member-theme="dark"] .planning-dialog select,
body[data-member-theme="dark"] .planning-dialog textarea,
body[data-member-theme="dark"] .planning-container-filters input,
body[data-member-theme="dark"] .planning-container-filters select,
body[data-member-theme="dark"] .planning-container-action-dialog > label > input,
body[data-member-theme="dark"] .planning-customer-picker input {
  background: #101319;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.16);
  color-scheme: dark;
}

body[data-member-theme="dark"] .planning-dialog > header > button {
  background: #252a33;
  color: #f5f7fb;
  border: 1px solid rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .planning-form-grid label > span,
body[data-member-theme="dark"] .planning-notes > span,
body[data-member-theme="dark"] .planning-bookings label > span,
body[data-member-theme="dark"] .planning-template-items label > span,
body[data-member-theme="dark"] .planning-wizard-template > span,
body[data-member-theme="dark"] .planning-wizard-anchor > span,
body[data-member-theme="dark"] .planning-availability-fields label > span,
body[data-member-theme="dark"] .planning-date-precision > span,
body[data-member-theme="dark"] .planning-container-action-dialog > label > span,
body[data-member-theme="dark"] .planning-customer-picker > label > span {
  color: #d8dde6;
}

body[data-member-theme="dark"] .planning-day-empty,
body[data-member-theme="dark"] .planning-event-time,
body[data-member-theme="dark"] .planning-event small,
body[data-member-theme="dark"] .planning-list-item small,
body[data-member-theme="dark"] .planning-resource-list small,
body[data-member-theme="dark"] .planning-location-list small,
body[data-member-theme="dark"] .planning-template-list small,
body[data-member-theme="dark"] .planning-filter-bar > small,
body[data-member-theme="dark"] .planning-filter-resources small,
body[data-member-theme="dark"] .planning-help-section-title p,
body[data-member-theme="dark"] .planning-help-definitions dd,
body[data-member-theme="dark"] .planning-help-data-flow small,
body[data-member-theme="dark"] .planning-help-guides ol,
body[data-member-theme="dark"] .planning-help-reading,
body[data-member-theme="dark"] .planning-date-precision > small,
body[data-member-theme="dark"] .planning-container-types small,
body[data-member-theme="dark"] .planning-container-format-grid small,
body[data-member-theme="dark"] .planning-container-fleet-id small,
body[data-member-theme="dark"] .planning-container-fleet-context small,
body[data-member-theme="dark"] .planning-container-fleet-context span,
body[data-member-theme="dark"] .planning-container-fleet-step span,
body[data-member-theme="dark"] .planning-container-cycle-dialog > header small,
body[data-member-theme="dark"] .planning-container-action-dialog > p {
  color: #aeb6c2;
}

body[data-member-theme="dark"] .planning-mode-choice > button,
body[data-member-theme="dark"] .planning-availability-list > article {
  background: #1f232b;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.14);
}

body[data-member-theme="dark"] .planning-mode-choice > button.active {
  background: #101319;
  border-color: var(--member-new-accent);
}

body[data-member-theme="dark"] .planning-availability-list > article.is-available {
  background: #15271d;
}

body[data-member-theme="dark"] .planning-availability-list > article.is-unavailable,
body[data-member-theme="dark"] .planning-availability-list > article.is-error,
body[data-member-theme="dark"] .planning-packaging-error,
body[data-member-theme="dark"] .planning-location-error {
  background: #321c1c;
  color: #ffb4aa;
  border-color: #7c3e38;
}

body[data-member-theme="dark"] .planning-brewfather-warning,
body[data-member-theme="dark"] .planning-brewfather-milestones,
body[data-member-theme="dark"] .planning-help-note,
body[data-member-theme="dark"] .planning-container-upcoming article,
body[data-member-theme="dark"] .planning-container-allocations {
  background: #302718;
  color: #f3d49a;
  border-color: #6e5530;
}

body[data-member-theme="dark"] .planning-brewfather-milestones article,
body[data-member-theme="dark"] .planning-container-stock-alert article {
  background: #171a20;
}

body[data-member-theme="dark"] .planning-container-stock-alert {
  background: #321c1c;
  color: #ffb4aa;
  border-color: #7c3e38;
}

body[data-member-theme="dark"] .planning-container-empty-action,
body[data-member-theme="dark"] .planning-container-format-grid > article > button,
body[data-member-theme="dark"] .planning-container-fleet-actions button,
body[data-member-theme="dark"] .planning-container-asset-actions button,
body[data-member-theme="dark"] .planning-container-step-button {
  background: #252a33;
  color: #f5f7fb;
  border-color: rgba(255,255,255,.16);
}

body[data-member-theme="dark"] .planning-container-fleet-actions button:first-child,
body[data-member-theme="dark"] .planning-container-step-button.is-next,
body[data-member-theme="dark"] .planning-customer-picker-list > button.selected {
  background: #101319;
  color: #f5f7fb;
  border-color: rgba(255,173,102,.48);
}

body[data-member-theme="dark"] .planning-holder-type {
  background: #101319;
  border-color: rgba(255,255,255,.16);
}

body[data-member-theme="dark"] .planning-holder-type > button {
  color: #c4cad4;
}

body[data-member-theme="dark"] .planning-holder-type > button.active {
  background: #f25a2b;
  color: #fff;
  box-shadow: none;
}

body[data-member-theme="dark"] .planning-container-cycle-wheel {
  --cycle-neutral: #424852;
  --cycle-ink: #f5f7fb;
  --cycle-muted: #aeb6c2;
}

body[data-member-theme="dark"] .planning-container-cycle-ring::after {
  background: #171a20;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

body[data-member-theme="dark"] .planning-container-cycle-wheel li > span {
  background: #1f232b;
  color: #d8dde6;
  border-color: #59616d;
}

/* Discussions WhatsApp — les classes sémantiques neutralisent les couleurs inline en sombre. */
body[data-member-theme="dark"] .admin-whatsapp-conversation-head,
body[data-member-theme="dark"] .admin-whatsapp-composer,
body[data-member-theme="dark"] .admin-whatsapp-start,
body[data-member-theme="dark"] .admin-whatsapp-conversation,
body[data-member-theme="dark"] .admin-whatsapp-message.is-inbound {
  background: #1f232b !important;
  color: #f5f7fb !important;
  border-color: rgba(255,255,255,.14) !important;
  box-shadow: none !important;
}

body[data-member-theme="dark"] .admin-whatsapp-conversation.is-selected {
  border-color: #25d366 !important;
  box-shadow: inset 0 0 0 1px #25d366 !important;
}

body[data-member-theme="dark"] .admin-whatsapp-message.is-outbound {
  background: #176b3a !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] .admin-whatsapp-preview {
  color: #d8dde6 !important;
}

body[data-member-theme="dark"] .admin-whatsapp-linked-badge {
  background: #303641 !important;
  color: #d8dde6 !important;
}

body[data-member-theme="dark"] .admin-whatsapp-message-source {
  color: #f5f7fb !important;
}

/* BSC DATABEER — adaptation explicite à la nouvelle expérience. */
body .member-section-panel .databeer-card {
  padding: 24px;
  border: 1.5px solid rgba(17, 24, 39, 0.14) !important;
  border-radius: 28px;
  background: #ffffff !important;
  background-image: none !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body .databeer-card::after {
  content: none;
  display: none;
  box-shadow: none;
}

body .databeer-kicker {
  color: var(--member-new-accent) !important;
}

body .databeer-card h2 {
  color: #111827 !important;
}

body .databeer-card-head p {
  color: #626872 !important;
}

body .databeer-link {
  border-color: rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  backdrop-filter: none;
  box-shadow: none;
}

body .databeer-link:hover,
body .databeer-link:focus-visible {
  border-color: rgba(17, 24, 39, 0.28);
  background: #f8fafc;
  box-shadow: none;
}

body .databeer-link-copy strong {
  color: #111827;
}

body .databeer-link-copy small {
  color: #6f7278;
}

body .databeer-link-arrow {
  background: #fff0e5;
  color: #c54f00;
}

body[data-member-theme="dark"] .member-section-panel .databeer-card {
  border-color: rgba(255, 255, 255, 0.14) !important;
  background: #171a20 !important;
  background-image: none !important;
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] .databeer-card h2,
body[data-member-theme="dark"] .databeer-link-copy strong {
  color: #f5f7fb !important;
}

body[data-member-theme="dark"] .databeer-card-head p,
body[data-member-theme="dark"] .databeer-link-copy small {
  color: #b0b7c3 !important;
}

body[data-member-theme="dark"] .databeer-link {
  border-color: rgba(255, 255, 255, 0.12);
  background: #101319;
  color: #f5f7fb;
}

body[data-member-theme="dark"] .databeer-link:hover,
body[data-member-theme="dark"] .databeer-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: #1d2129;
  box-shadow: none;
}

body[data-member-theme="dark"] .databeer-link-arrow {
  background: rgba(255, 106, 0, 0.16);
  color: #ff9a57;
}

@media (max-width: 680px) {
  body .member-section-panel .databeer-card {
    padding: 18px;
    border-radius: 20px;
  }

  body .databeer-links {
    gap: 10px;
  }

  body .databeer-link {
    min-height: 70px;
    padding: 12px;
    border-radius: 17px;
  }
}

/* Dashboard admin — navigation principale compacte. */
body .admin-app .admin-nav-shell {
  gap: 8px;
  padding: 10px;
  border: 1px solid #dce1e7;
  border-radius: 18px;
  background: #fff;
  background-image: none;
  box-shadow: none;
}

body .admin-app .admin-nav-topline { min-height: 40px; }
body .admin-app .admin-nav-copy .label { margin: 0; color: #f05a28; }
body .admin-app .admin-nav-links { gap: 6px; }

body .admin-app .admin-nav-links > .btn {
  min-height: 40px;
  padding: 0 13px;
  border-color: #dce1e7;
  border-radius: 11px;
  background: #f3f5f8;
  color: #313743;
  box-shadow: none;
  font-size: 11px;
}

body .admin-app .admin-apps-toggle {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
}

body .admin-app .admin-apps-toggle img { width: 21px; height: 21px; }

body .admin-app .admin-nav-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border: 1px solid #dce1e7;
  border-radius: 14px;
  background: #eef1f5;
}

body .admin-app .admin-nav-tabs:has(.admin-nav-tab:nth-child(4)) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body .admin-app .admin-nav-tab {
  min-width: 0;
  min-height: 54px;
  gap: 2px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body .admin-app .admin-nav-tab:hover {
  border: 0;
  background: rgba(255,255,255,.72);
  box-shadow: none;
  transform: none;
}

body .admin-app .admin-nav-tab strong {
  overflow: hidden;
  color: #313743;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .admin-app .admin-nav-tab span {
  overflow: hidden;
  color: #697181;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .admin-app .admin-nav-tab.is-active {
  border: 0;
  background: #f05a28;
  box-shadow: none;
}

body .admin-app .admin-nav-tab.is-active strong,
body .admin-app .admin-nav-tab.is-active span { color: #fff; }

body .admin-app .admin-tools-strip-section {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body .admin-app .admin-tool-button {
  min-width: 0;
  min-height: 66px;
  gap: 9px;
  padding: 9px 10px;
  border-color: #dce1e7;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

body .admin-app .admin-tool-button:hover {
  border-color: rgba(240,90,40,.48);
  box-shadow: none;
  transform: none;
}

body .admin-app .admin-tool-button-highlight {
  border-color: #f05a28;
  background: #fff;
  color: #171b23;
  box-shadow: inset 0 -3px 0 #f05a28;
}

body .admin-app .admin-tool-button-highlight .admin-tool-copy span { color: #697181; }

body[data-member-theme="light"] .admin-app .admin-tool-button-highlight {
  border: 2px solid #f05a28;
  background: #fff7f2;
  box-shadow: 0 0 0 2px rgba(240,90,40,.12);
}

body .admin-app .admin-tool-logo {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 9px;
}

body .admin-app .admin-tool-copy { gap: 2px; }
body .admin-app .admin-tool-copy strong { font-size: 11px; line-height: 1.12; }

body .admin-app .admin-tool-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: #697181;
  font-size: 10px;
  line-height: 1.22;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-member-theme="dark"] .admin-app .admin-nav-shell {
  border-color: #343b46;
  background: #171a20;
}

body[data-member-theme="dark"] .admin-app .admin-nav-links > .btn {
  border-color: #343b46;
  background: #20242b;
  color: #f5f7fb;
}

body[data-member-theme="dark"] .admin-app .admin-nav-tabs {
  border-color: #343b46;
  background: #101319;
}

body[data-member-theme="dark"] .admin-app .admin-nav-tab:hover { background: #262b34; }
body[data-member-theme="dark"] .admin-app .admin-nav-tab strong { color: #f5f7fb; }
body[data-member-theme="dark"] .admin-app .admin-nav-tab span { color: #aeb6c2; }
body[data-member-theme="dark"] .admin-app .admin-nav-tab.is-active { background: #f05a28; }

body[data-member-theme="dark"] .admin-app .admin-nav-tab.is-active strong,
body[data-member-theme="dark"] .admin-app .admin-nav-tab.is-active span { color: #fff; }

body[data-member-theme="dark"] .admin-app .admin-tool-button-highlight {
  border-color: #f05a28 !important;
  background: #1f232b !important;
  color: #f5f7fb !important;
  box-shadow: inset 0 -3px 0 #f05a28 !important;
}

body[data-member-theme="dark"] .admin-app .admin-tool-button-highlight .admin-tool-copy span { color: #b0b7c3 !important; }

@media (max-width: 980px) {
  body .admin-app .admin-tools-strip-section { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body .admin-app,
  body .admin-view-stack,
  body .admin-section-stack { gap: 12px; }

  body .admin-app .admin-nav-shell { gap: 7px; padding: 8px; border-radius: 16px; }
  body .admin-app .admin-nav-topline { min-height: 38px; }
  body .admin-app .admin-nav-copy { display: none; }
  body .admin-app .admin-nav-links { width: 100%; justify-content: flex-end; }

  body .admin-app .admin-nav-links > .btn {
    min-height: 38px;
    padding: 0 11px;
    font-size: 10px;
  }

  body .admin-app .admin-apps-toggle { width: 38px; min-width: 38px; height: 38px; }
  body .admin-app .admin-nav-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body .admin-app .admin-nav-tabs:has(.admin-nav-tab:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  body .admin-app .admin-nav-tab {
    min-height: 44px;
    padding: 7px 4px;
    place-items: center;
    text-align: center;
  }

  body .admin-app .admin-nav-tab strong { width: 100%; font-size: 10px; }
  body .admin-app .admin-nav-tab span { display: none; }

  body .admin-app .admin-tools-strip-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body .admin-app .admin-tool-button {
    min-height: 60px;
    gap: 8px;
    padding: 8px;
    border-radius: 13px;
  }

  body .admin-app .admin-tool-logo { width: 34px; height: 34px; flex-basis: 34px; border-radius: 8px; }
  body .admin-app .admin-tool-copy strong { font-size: 10px; }
  body .admin-app .admin-tool-copy span { font-size: 9px; }
}

/* Compact member dashboard: keep the classic experience untouched. */
body #memberDashboardCard .member-dashboard-panels,
body #memberDashboardCard .member-section-panel {
  gap: 12px;
}

body #memberDashboardCard .member-section-panel > article {
  margin-top: 0 !important;
}

body #memberDashboardCard .member-profile-grid,
body #memberDashboardCard .member-profile-subgrid {
  gap: 12px;
}

body #memberDashboardCard .member-profile-subgrid {
  margin-top: 12px !important;
}

body #memberDashboardCard .member-profile-summary-heading,
body #memberDashboardCard .member-points-section-heading,
body #memberDashboardCard .member-profile-identity-copy > .label,
body #memberDashboardCard .member-profile-identity-copy > h3,
body #memberDashboardCard .member-profile-member-code,
body #memberDashboardCard .member-profile-status-premium,
body #memberDashboardCard .member-profile-duplicate-points,
body #memberDashboardCard #memberPointsHeroMeta {
  display: none !important;
}

body #memberDashboardCard .member-profile-summary-card {
  padding: 16px;
}

body #memberDashboardCard #profileCard {
  margin-top: 0 !important;
}

body #memberDashboardCard .member-profile-brewer-name,
body #memberDashboardCard .member-profile-email {
  margin: 0;
  line-height: 1.4;
}

body #memberDashboardCard .member-profile-brewer-name + .member-profile-email {
  margin-top: 3px;
}

body #memberDashboardCard .member-profile-status-grid {
  display: block;
  margin-top: 12px !important;
}

body #memberDashboardCard .member-profile-status-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
}

body #memberDashboardCard .member-profile-status-account .metric {
  font-size: 14px !important;
}

body #memberDashboardCard .member-profile-memberships {
  margin-top: 12px !important;
}

body #memberDashboardCard .member-profile-contact-head {
  margin-top: 12px;
}

body #memberDashboardCard .member-profile-edit-button {
  border-color: #e0e3e8;
  background: #f8f9fb;
  color: #111827;
  box-shadow: none;
}

body #memberDashboardCard .member-profile-password-button {
  border-color: #e0e3e8;
  background: #f8f9fb;
  color: #111827;
  box-shadow: none;
}

body #memberSecurityModal .member-security-modal-card {
  border: 1px solid #d9dde5;
  background: #fff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .22);
}

body #memberSecurityModal .member-security-modal-close,
body #memberSecurityModal .member-security-sessions {
  border-color: #e0e3e8;
  background: #f8f9fb;
}

body #memberDashboardCard .member-profile-contact-table,
body #memberDashboardCard .member-profile-edit-form {
  border-color: #e0e3e8;
  background: #f8f9fb;
}

body #memberDashboardCard .member-profile-pending-change {
  border-color: color-mix(in srgb, var(--new-accent, #f05a28) 34%, transparent);
  background: color-mix(in srgb, var(--new-accent, #f05a28) 9%, var(--new-surface, #fff));
}

body #memberDashboardCard .member-profile-pending-change span,
body #memberDashboardCard .member-profile-validation-hint {
  color: var(--new-accent, #d84d1d);
}

body #memberDashboardCard .member-profile-validation-hint {
  background: color-mix(in srgb, var(--new-accent, #f05a28) 9%, var(--new-surface, #fff));
}

body #memberDashboardCard .member-profile-contact-row + .member-profile-contact-row,
body #memberDashboardCard .member-profile-readonly-field {
  border-color: #e0e3e8;
}

body #memberDashboardCard .member-profile-readonly-field {
  background: #fff;
}

body[data-member-theme="dark"] #memberDashboardCard .member-profile-edit-button,
body[data-member-theme="dark"] #memberDashboardCard .member-profile-password-button,
body[data-member-theme="dark"] #memberDashboardCard .member-profile-contact-table,
body[data-member-theme="dark"] #memberDashboardCard .member-profile-edit-form {
  border-color: #343b46;
  background: #20242b;
  color: #f8fafc;
}

body[data-member-theme="dark"] #memberSecurityModal .member-security-modal-card {
  border-color: #303642;
  background: #171a20;
  color: #f5f7fb;
}

body[data-member-theme="dark"] #memberSecurityModal .member-confirm-modal-copy p,
body[data-member-theme="dark"] #memberSecurityModal .member-security-sessions span {
  color: #b8c0cc;
}

body[data-member-theme="dark"] #memberSecurityModal .member-security-modal-close,
body[data-member-theme="dark"] #memberSecurityModal .member-security-sessions {
  border-color: #343b46;
  background: #20242b;
  color: #f8fafc;
}

body[data-member-theme="dark"] #memberDashboardCard .member-profile-pending-change {
  border-color: rgba(245, 158, 11, .34);
  background: rgba(245, 158, 11, .10);
}

body[data-member-theme="dark"] #memberDashboardCard .member-profile-pending-change span,
body[data-member-theme="dark"] #memberDashboardCard .member-profile-validation-hint {
  color: #fbbf24;
}

body[data-member-theme="dark"] #memberDashboardCard .member-profile-pending-change small {
  color: #d9c39a;
}

body[data-member-theme="dark"] #memberDashboardCard .member-profile-contact-row + .member-profile-contact-row,
body[data-member-theme="dark"] #memberDashboardCard .member-profile-readonly-field {
  border-color: #343b46;
}

body[data-member-theme="dark"] #memberDashboardCard .member-profile-readonly-field {
  background: #171a20;
}

body[data-member-theme="dark"] #memberDashboardCard .member-profile-edit-button:hover,
body[data-member-theme="dark"] #memberDashboardCard .member-profile-edit-button:focus-visible {
  border-color: #f59e0b;
  background: #292e37;
}

body #memberDashboardCard #memberMembershipSummaryHost .card {
  margin-top: 7px !important;
  padding: 11px 12px;
  border-radius: 14px;
}

body #memberDashboardCard .member-points-panel {
  padding: 22px;
  overflow: hidden;
}

body #memberDashboardCard #memberPointsHero {
  margin-top: 0 !important;
  padding: 0;
  border: 0;
  border-radius: inherit;
}

body #memberDashboardCard #memberPointsHero .member-points-hero-value {
  margin-top: 2px;
}

body #memberDashboardCard .member-points-topup-label {
  margin-top: 10px !important;
}

body #memberDashboardCard #memberWalletTopupSummary {
  margin-top: 3px !important;
}

body #memberDashboardCard .member-wallet-invite-card {
  display: grid;
  gap: 16px;
  padding: 22px !important;
  overflow: hidden;
  border: 1.5px solid rgba(17, 24, 39, .14) !important;
  border-radius: 28px;
  background: #fff !important;
  box-shadow: none !important;
}

body #memberDashboardCard .member-profile-summary-card,
body #memberDashboardCard .member-profile-subgrid > .member-wallet-invite-card {
  grid-column: 1 / -1;
}

body #memberDashboardCard .member-profile-subgrid > .member-wallet-invite-card {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
}

body #memberDashboardCard .member-profile-subgrid > .member-wallet-invite-card .member-wallet-invite-heading {
  grid-column: 1;
}

body #memberDashboardCard .member-profile-subgrid > .member-wallet-invite-card .member-wallet-choice-grid {
  grid-column: 2;
}

body #memberDashboardCard .member-profile-subgrid > .member-wallet-invite-card .member-wallet-invite-status {
  grid-column: 1 / -1;
}

body #memberDashboardCard .member-wallet-invite-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 13px;
  align-items: center;
}

body #memberDashboardCard .member-wallet-invite-heading > div {
  grid-column: 1;
  grid-row: 1;
}

body #memberDashboardCard .member-wallet-invite-symbol {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: #f05a28;
  grid-column: 2;
  grid-row: 1;
}

body #memberDashboardCard .member-wallet-invite-symbol svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body #memberDashboardCard .member-wallet-invite-kicker {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #e95320;
  background: transparent;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body #memberDashboardCard .member-wallet-invite-heading h2 {
  margin: 3px 0 0;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.05;
}

body #memberDashboardCard .member-wallet-invite-heading p {
  margin: 7px 0 0;
  color: #68707c;
  font-size: 13px;
  line-height: 1.4;
}

body #memberDashboardCard .member-wallet-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body #memberDashboardCard .member-wallet-choice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d9dde3;
  border-radius: 16px;
  color: #171a20;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

body #memberDashboardCard .member-wallet-choice:hover,
body #memberDashboardCard .member-wallet-choice:focus-visible {
  border-color: #f05a28;
  box-shadow: 0 8px 22px rgba(31, 41, 55, .10);
  outline: none;
}

body #memberDashboardCard .member-wallet-choice:active {
  transform: translateY(1px);
}

body #memberDashboardCard .member-wallet-choice img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body #memberDashboardCard .member-wallet-choice span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body #memberDashboardCard .member-wallet-choice strong,
body #memberDashboardCard .member-wallet-choice small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body #memberDashboardCard .member-wallet-choice strong {
  font-size: 14px;
  line-height: 1.1;
}

body #memberDashboardCard .member-wallet-choice small {
  color: #747c88;
  font-size: 11px;
  line-height: 1.1;
}

body #memberDashboardCard .member-wallet-choice > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .55;
}

body #memberDashboardCard .member-wallet-invite-status:empty {
  display: none;
}

body[data-member-theme="dark"] #memberDashboardCard .member-wallet-invite-card {
  border-color: rgba(255, 255, 255, .14) !important;
  background: #171a20 !important;
  color: #f7f8fa;
}

body[data-member-theme="dark"] #memberDashboardCard .member-wallet-invite-heading p {
  color: #adb5c0;
}

body[data-member-theme="dark"] #memberDashboardCard .member-wallet-choice {
  border-color: #383f4b;
  color: #f7f8fa;
  background: #242932;
}

body[data-member-theme="dark"] #memberDashboardCard .member-wallet-choice:hover,
body[data-member-theme="dark"] #memberDashboardCard .member-wallet-choice:focus-visible {
  border-color: #ff7849;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}

body[data-member-theme="dark"] #memberDashboardCard .member-wallet-choice small {
  color: #aeb6c2;
}

body #memberDashboardCard #memberPointsHero .inline-actions {
  margin-top: 8px !important;
  gap: 8px;
}

body #memberDashboardCard .member-points-topup-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end !important;
}

body #memberDashboardCard .member-points-topup-field {
  min-width: 0 !important;
}

body #memberDashboardCard .member-points-topup-field .member-topup-target-row {
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  gap: 8px;
}

body #memberDashboardCard .member-points-topup-field .member-topup-target-group {
  position: relative;
  min-width: 0;
  padding-inline: 32px;
}

body #memberDashboardCard .member-points-topup-field .member-topup-target-group input {
  min-width: 0;
  text-align: center;
}

body #memberDashboardCard .member-points-topup-field .member-topup-target-unit {
  position: absolute;
  right: 12px;
}

body #memberDashboardCard .member-topup-step-btn,
body #memberDashboardCard #memberWalletTopupBtn,
body #memberDashboardCard #memberHelloAssoOpenBtn {
  min-height: 46px;
  border-radius: 14px;
}

body #memberDashboardCard .member-topup-step-btn {
  min-width: 46px;
  width: 46px;
  padding-inline: 0;
  font-size: 25px;
}

body #memberDashboardCard #memberWalletTopupBtn {
  padding-inline: 16px;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  body #memberDashboardCard .member-profile-summary-card,
  body #memberDashboardCard #memberPointsHero,
  body #memberDashboardCard .member-profile-subgrid > article:not(.member-physical-card-picker) {
    padding: 14px;
  }

  body #memberDashboardCard #memberPointsHero {
    padding: 0;
  }

  body #memberDashboardCard .member-profile-subgrid > .member-wallet-invite-card {
    grid-template-columns: 1fr;
  }

  body #memberDashboardCard .member-profile-subgrid > .member-wallet-invite-card .member-wallet-invite-heading,
  body #memberDashboardCard .member-profile-subgrid > .member-wallet-invite-card .member-wallet-choice-grid,
  body #memberDashboardCard .member-profile-subgrid > .member-wallet-invite-card .member-wallet-invite-status {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  body .member-display-setting{display:grid;align-items:flex-start;gap:12px;padding:13px}
  body .member-display-theme-options{width:100%;grid-template-columns:repeat(3,1fr)}
  body .member-display-theme-option{min-height:44px}

  body #memberDashboardCard .member-points-topup-actions {
    grid-template-columns: 1fr;
  }

  body #memberDashboardCard .member-points-topup-field .member-topup-target-row {
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    grid-template-areas: none;
  }

  body #memberDashboardCard .member-points-topup-field .member-topup-target-row .member-topup-step-btn:first-child,
  body #memberDashboardCard .member-points-topup-field .member-topup-target-row .member-topup-step-btn:last-child,
  body #memberDashboardCard .member-points-topup-field .member-topup-target-group {
    grid-area: auto;
  }

  body #memberDashboardCard #memberWalletTopupBtn {
    width: 100%;
  }

  body #memberDashboardCard .member-wallet-invite-card {
    gap: 13px;
    padding: 16px !important;
    border-radius: 28px;
  }

  body #memberDashboardCard .member-wallet-invite-heading {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 11px;
  }

  body #memberDashboardCard .member-wallet-invite-symbol {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  body #memberDashboardCard .member-wallet-invite-heading p {
    font-size: 12px;
  }

  body #memberDashboardCard .member-wallet-choice-grid {
    gap: 8px;
  }

  body #memberDashboardCard .member-wallet-choice {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    min-height: 60px;
    padding: 9px 10px;
  }

  body #memberDashboardCard .member-wallet-choice img {
    width: 30px;
    height: 30px;
  }

  body #memberDashboardCard .member-wallet-choice > svg {
    display: none;
  }

  body #memberDashboardCard .member-wallet-choice strong {
    font-size: 12px;
  }

  body #memberDashboardCard .member-wallet-choice small {
    font-size: 10px;
  }
}

/* Réservation des contenants : même accent discret pour formats et fûts individuels. */
body[data-member-theme="dark"] .planning-container-format-actions .planning-container-reserve-format,
body[data-member-theme="dark"] .planning-container-fleet-actions button:first-child {
  background: rgba(255, 106, 0, .13);
  color: #ff8a38;
  border-color: #ff6a00;
}
