/* Public-only theme layer. The existing light presentation is left intact. */
/* Declare the selected light scheme on the canvas and body. Supporting
   browsers must not apply automatic darkening over this explicit palette. */
html[data-theme="light"],
html[data-theme="light"] body.public-shop { color-scheme: only light; }

.public-theme-toggle {
  appearance: none;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 44px;
  block-size: 44px;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding: 0;
  border: 1px solid #bca98c;
  border-radius: 50%;
  background: #fffaf2;
  color: #25413e;
  box-shadow: 0 2px 7px rgb(35 52 49 / 8%);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  vertical-align: middle;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.public-theme-toggle[hidden],
.public-theme-toggle [hidden] { display: none !important; }
.public-theme-toggle [data-theme-icon] {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}
.public-theme-toggle:hover { background: #f0e4d0; border-color: #986a38; }
.public-theme-toggle:focus-visible { outline: 3px solid #986a38; outline-offset: 3px; }
.public-theme-toggle:disabled { cursor: not-allowed; opacity: .55; }

html[data-theme="dark"] {
  color-scheme: dark;
  background: #0b0f10;
  --public-page: #0b0f10;
  --public-surface: #153936;
  --public-surface-raised: #1c4540;
  --public-surface-recessed: #102a28;
  --public-text: #f3ebdd;
  --public-muted: #bac9c1;
  --public-gold: #c2945c;
  --public-gold-light: #d9b786;
  --public-border: #476b60;
  --public-border-soft: #31554b;
  --public-focus: #e2bd85;
  --public-success: #b3dcc2;
  --public-error: #ffc1b9;
  --public-shadow: 0 12px 32px rgb(0 0 0 / 22%);
}
html[data-theme="dark"] body.public-shop {
  --ink: var(--public-text);
  --ink-soft: var(--public-muted);
  --panel: var(--public-surface);
  --panel2: var(--public-surface-raised);
  --line: var(--public-border);
  --gold: var(--public-gold);
  --gold-light: var(--public-gold-light);
  --brass: var(--public-gold);
  --ivory: var(--public-text);
  --grey: var(--public-muted);
  --sage: var(--public-surface-raised);
  color-scheme: dark;
  color: var(--public-text);
  background: var(--public-page);
  scrollbar-color: #769184 var(--public-page);
}
html[data-theme="dark"] body.public-shop ::selection {
  color: #0b0f10;
  background: var(--public-gold-light);
}
html[data-theme="dark"] body.public-shop :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--public-focus);
  outline-offset: 3px;
}
html[data-theme="dark"] body.public-shop :is(h1, h2, h3, h4, .h1, .h2, .price, .empty h3) {
  color: var(--public-text);
}
html[data-theme="dark"] body.public-shop :is(.muted, .section-head p, .feature p, .data-line span, .crumb, .photo-view-hint, .detail-teaser, .detail-price-caption) {
  color: var(--public-muted);
}
html[data-theme="dark"] body.public-shop :is(.eyebrow, .h1 em, .h2 em, .section-accent, .manifesto-kicker, .editorial-count, .catalog-right, .product-body small, .product-view) {
  color: var(--public-gold-light);
}
html[data-theme="dark"] body.public-shop :is(.link, .editorial-about-link, .reference-source) {
  color: var(--public-gold-light);
  text-decoration-color: currentColor;
  text-underline-offset: .2em;
}
html[data-theme="dark"] body.public-shop :is(.link, .editorial-about-link, .reference-source):hover { color: var(--public-text); }
html[data-theme="dark"] body.public-shop :is(.error, [data-status].error) { color: var(--public-error); }
html[data-theme="dark"] body.public-shop .success { color: var(--public-success); }

/* Account/language tools, header plaque, and navigation. */
html[data-theme="dark"] body.public-shop :is(.site-header, .top) {
  color: var(--public-text);
  background: var(--public-page);
  border-color: var(--public-border-soft);
  box-shadow: none;
}
html[data-theme="dark"] body.public-shop .public-language-bar {
  color: var(--public-text);
  background: #102a28;
  border-color: var(--public-border-soft);
  box-shadow: inset 0 -1px 0 rgb(194 148 92 / 16%);
}
html[data-theme="dark"] body.public-shop :is(.member-header, .language-control) { color: var(--public-text); }
html[data-theme="dark"] body.public-shop .member-header a:hover { color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop :is(.bag-count, .state) {
  color: var(--public-text);
  background: var(--public-surface);
  border: 1px solid var(--public-gold);
}
html[data-theme="dark"] body.public-shop #onlineStatus {
  color: var(--public-muted) !important;
  background: #102420 !important;
}
html[data-theme="dark"] body.public-shop .announcement.v12-announcement {
  color: var(--public-text);
  background: #102b28;
  border-color: var(--public-border-soft);
}
html[data-theme="dark"] body.public-shop .brand-signature {
  background: #153936;
  border-color: var(--public-gold);
  box-shadow: 0 10px 26px rgb(0 0 0 / 25%), inset 0 0 0 4px rgb(194 148 92 / 7%);
}
/* Recolor only the transparent brand artwork; never filter item photographs. */
html[data-theme="dark"] body.public-shop .brand-signature > img.signature-logo {
  content: url("/assets/merfinda-logo-refined.webp?v=20261115-refined");
  filter: none;
}
html[data-theme="dark"] body.public-shop .brand-manifesto { border-color: var(--public-border); }
html[data-theme="dark"] body.public-shop :is(.brand-manifesto strong, .signature-type, .signature-logan, .signature-select) { color: var(--public-text); }
html[data-theme="dark"] body.public-shop :is(.manifesto-fine, .brand small) { color: var(--public-muted); }
html[data-theme="dark"] body.public-shop :is(.signature-dot, .signature-spark) { color: var(--public-gold); }
html[data-theme="dark"] body.public-shop :is(.v12-navigation, .collection-nav) {
  background: #102a28;
  border-color: var(--public-border-soft);
}
html[data-theme="dark"] body.public-shop :is(.v12-navigation .navigation-links a, .nav a) { color: var(--public-text); background: transparent; }
html[data-theme="dark"] body.public-shop :is(.v12-navigation .navigation-links a:hover, .v12-navigation .navigation-links a[aria-current="page"], .v12-navigation .navigation-links a.current, .nav a:hover, .nav a.active) {
  color: #0b0f10;
  background: var(--public-text);
  border-color: var(--public-gold-light);
}
html[data-theme="dark"] body.public-shop .navigation-cta {
  color: var(--public-text);
  background: var(--public-surface);
  border-color: var(--public-border);
}
html[data-theme="dark"] body.public-shop .navigation-cta:hover { background: var(--public-surface-raised); border-color: var(--public-gold); }
html[data-theme="dark"] .public-theme-toggle,
.public-theme-toggle[aria-pressed="true"],
.public-theme-toggle[data-theme-current="dark"] {
  color: #e2bd85;
  background: #153936;
  border-color: #c2945c;
  box-shadow: 0 2px 8px rgb(0 0 0 / 22%);
}
html[data-theme="dark"] .public-theme-toggle:hover { background: #1c4540; border-color: #e2bd85; }
html[data-theme="dark"] .public-theme-toggle:focus-visible { outline-color: #e2bd85; }

/* Buttons and form controls. */
html[data-theme="dark"] body.public-shop :is(.btn, .description-toggle, .hero-nav-button, .product-arrow) {
  color: var(--public-text);
  background: var(--public-surface-recessed);
  border-color: var(--public-border);
  box-shadow: none;
}
html[data-theme="dark"] body.public-shop :is(.btn:hover, .description-toggle:hover, .hero-nav-button:hover, .product-arrow:hover) {
  color: var(--public-text);
  background: var(--public-surface-raised);
  border-color: var(--public-gold);
}
html[data-theme="dark"] body.public-shop :is(.btn.primary, .story-invitation .story-button) {
  color: var(--public-text);
  background: #1f5b52;
  border-color: #739989;
  box-shadow: 0 4px 12px rgb(0 0 0 / 16%);
}
html[data-theme="dark"] body.public-shop :is(.btn.primary:hover, .story-invitation .story-button:hover) {
  color: var(--public-text);
  background: #286b60;
  border-color: var(--public-gold-light);
}
html[data-theme="dark"] body.public-shop .btn.danger { color: var(--public-error); border-color: #a5736a; }
html[data-theme="dark"] body.public-shop :is(.field, .language-control select, .club-fields input, .club-fields select, #clubCode, .messenger-composer textarea) {
  color: var(--public-text) !important;
  background: #102a28 !important;
  border-color: #769184 !important;
  caret-color: var(--public-gold-light);
  color-scheme: dark;
}
html[data-theme="dark"] body.public-shop :is(.field, .club-fields input, .messenger-composer textarea)::placeholder { color: #afc0b7; opacity: 1; }
html[data-theme="dark"] body.public-shop :is(.field, .language-control select, .club-fields input, .club-fields select, #clubCode, .messenger-composer textarea):focus {
  border-color: var(--public-focus) !important;
  box-shadow: 0 0 0 3px rgb(226 189 133 / 15%);
}
html[data-theme="dark"] body.public-shop select option { background: #102a28; color: var(--public-text); }
html[data-theme="dark"] body.public-shop :is(input[type="checkbox"], input[type="radio"], .check) { accent-color: var(--public-gold); }
html[data-theme="dark"] body.public-shop :is(.chip, .tag, .panel .tag, .accessory-included, .accessory-status-list span) {
  color: var(--public-text);
  background: #214840;
  border-color: #63806c;
}
html[data-theme="dark"] body.public-shop :is(.chip.on, .chip:hover, .club-auth-modes .btn[aria-pressed="true"], .public-compare-pick[aria-pressed="true"]) {
  color: #0b0f10;
  background: var(--public-gold-light);
  border-color: var(--public-gold-light);
}

/* Homepage: readable dark backdrop, intact featured/item photography. */
html[data-theme="dark"] body.public-shop .hero.v12-hero {
  background: #153936;
  border-color: #527565;
  box-shadow: var(--public-shadow);
}
html[data-theme="dark"] body.public-shop .hero.v12-hero::before {
  background-image: linear-gradient(105deg, rgb(15 39 36 / 96%) 0%, rgb(21 57 54 / 93%) 58%, rgb(14 34 32 / 94%) 100%), var(--homepage-backdrop, none);
  opacity: 1;
  filter: none;
}
html[data-theme="dark"] body.public-shop .hero.v12-hero::after { border-color: rgb(194 148 92 / 24%); box-shadow: 0 0 0 45px rgb(194 148 92 / 3%), 0 0 0 100px rgb(194 148 92 / 3%); }
html[data-theme="dark"] body.public-shop .hero .h1 { color: var(--public-text); }
html[data-theme="dark"] body.public-shop :is(.hero .h1 em, .hero .hero-kicker) { color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop :is(.hero .hero-lead, .hero-trust, .stat span) { color: var(--public-muted); }
html[data-theme="dark"] body.public-shop .hero-trust b { color: var(--public-success); background: #214840; border-color: #76917a; }
html[data-theme="dark"] body.public-shop :is(.stats, .stat) { border-color: #527565; }
html[data-theme="dark"] body.public-shop .stat b { color: var(--public-text); }
html[data-theme="dark"] body.public-shop .custom-hero {
  background: #102a28 !important;
  border-color: #31554b;
  box-shadow: 16px 15px 0 -5px #0d2421, 16px 15px 0 -3px #846b47;
}
html[data-theme="dark"] body.public-shop :is(.hero-corner-mark, .photo-badge, .photo-count, .photo-zoom-badge, .float) {
  color: var(--public-text);
  background: rgb(11 31 28 / 94%);
  border-color: #8d9d82;
}
html[data-theme="dark"] body.public-shop .hero-placeholder { color: var(--public-text); }
html[data-theme="dark"] body.public-shop :is(.editorial-band, .v12-discover, .product-bottom) { border-color: var(--public-border-soft); }
html[data-theme="dark"] body.public-shop :is(.v12-tile, .v12-tile.tile-camera, .v12-tile.tile-watch, .v12-tile.tile-surprise, .editorial-tile) {
  background: var(--public-surface);
  border-color: var(--public-border);
  box-shadow: var(--public-shadow);
}
html[data-theme="dark"] body.public-shop :is(.v12-tile strong, .editorial-tile strong, .section-head .h2) { color: var(--public-text); }
html[data-theme="dark"] body.public-shop :is(.v12-tile strong em, .v12-tile .tile-eyebrow, .v12-tile .tile-link, .editorial-tile .tile-link) {
  color: var(--public-gold-light);
  border-color: var(--public-gold);
}
html[data-theme="dark"] body.public-shop :is(.v12-tile:hover, .product:hover) { border-color: var(--public-gold); box-shadow: 0 18px 38px rgb(0 0 0 / 32%); }
html[data-theme="dark"] body.public-shop :is(.toolbar, .feature, .panel, .empty, .product) {
  background: var(--public-surface);
  color: var(--public-text);
  border-color: var(--public-border);
  box-shadow: var(--public-shadow);
}
html[data-theme="dark"] body.public-shop :is(.product-body h3, .product .price, .feature h3) { color: var(--public-text); }
html[data-theme="dark"] body.public-shop .feature .symbol { background: #234c42; color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop .product-body .meta-divider { color: var(--public-muted); }
html[data-theme="dark"] body.public-shop :is(.product-photo, .photo-main, .compare-photo, .thumb) { background: #0e2522; border-color: var(--public-border); }
html[data-theme="dark"] body.public-shop :is(.thumb.on, .thumb:hover) { border-color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop .product.is-sold .photo-badge,
html[data-theme="dark"] body.public-shop .sold-item #detailTags .tag:first-child { background: #66513a; color: var(--public-text); border-color: #b39067; }
html[data-theme="dark"] body.public-shop :is(.product-photo img, .photo-main img, .thumb img, .compare-photo img, .hero-item img, #lightboxImage) { filter: none; }

/* Product reading surfaces, options, specifications, and discussion. */
html[data-theme="dark"] body.public-shop :is(#detailModel, #detailPrice, .story-header h2, .accessory-picker h3) { color: var(--public-text); }
html[data-theme="dark"] body.public-shop .story-panel {
  background: var(--public-surface) !important;
  border-color: var(--public-border) !important;
  box-shadow: var(--public-shadow) !important;
}
html[data-theme="dark"] body.public-shop .story-header { border-color: var(--public-border); padding-inline-start: 18px; }
html[data-theme="dark"] body.public-shop .story-header::before { left: auto; inset-inline-start: 0; background: var(--public-gold); }
html[data-theme="dark"] body.public-shop :is(.story-header p, .description-language-note) { color: var(--public-muted); }
html[data-theme="dark"] body.public-shop .description-viewport { background: #102a28; border-color: #527565; box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%); }
html[data-theme="dark"] body.public-shop .description-viewport::before {
  background-image: linear-gradient(110deg, rgb(16 42 40 / 97%), rgb(17 45 41 / 97%)), var(--description-photo, none);
}
html[data-theme="dark"] body.public-shop .description-viewport.is-collapsed::after { background: linear-gradient(transparent, #102a28 92%); }
html[data-theme="dark"] body.public-shop :is(.rich-description, .rich-description p, .rich-description ul, .rich-description p:first-child, .rich-description strong, .rich-description h2, .rich-description h3, .rich-description h4) {
  color: var(--public-text);
  text-shadow: none;
  border-color: var(--public-border);
}
html[data-theme="dark"] body.public-shop .rich-description li::marker { color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop .rich-description a { color: var(--public-gold-light); text-decoration: underline; }
html[data-theme="dark"] body.public-shop .rich-description mark { color: #0b0f10; background: var(--public-gold-light); box-shadow: none; }
html[data-theme="dark"] body.public-shop :is(.notice, .accessory-picker, .direct-purchase, .purchase-policy) {
  background: #193d36 !important;
  color: var(--public-text);
  border-color: #668269;
}
html[data-theme="dark"] body.public-shop :is(.direct-purchase, .official-reply, .club-welcome, .seller-message) {
  border-left: 0;
  border-inline-start: 3px solid var(--public-gold);
  border-start-start-radius: 4px;
  border-end-start-radius: 4px;
}
html[data-theme="dark"] body.public-shop .accessory-picker .muted { color: var(--public-muted) !important; }
html[data-theme="dark"] body.public-shop :is(.accessory-choice, .visitor-question, .comment) { color: var(--public-text); background: #102c28; border-color: var(--public-border); }
html[data-theme="dark"] body.public-shop .accessory-choice:has(input:checked) { background: #245047; border-color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop :is(.accessory-choice small, .bundle-totals small, .visitor-question p, .comment p) { color: var(--public-muted); }
html[data-theme="dark"] body.public-shop :is(.bundle-totals, .bundle-grand-total, .policy-promises, .panel .data-line, .data-line, .item-specification-details, .member-order-details[open] summary) { border-color: var(--public-border); }
html[data-theme="dark"] body.public-shop :is(.item-specification-details summary, .member-order-details summary) { color: var(--public-text); }
html[data-theme="dark"] body.public-shop .official-reply { background: #234b40; color: var(--public-text); border-color: #708d73; border-inline-start-color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop .official-reply .reply-brand { color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop .official-reply p { color: var(--public-text); }

/* About, policy pages, and the footer. */
html[data-theme="dark"] body.public-shop :is(.about-lead, .about-values-grid article, .story-invitation, .roadmap-section) {
  color: var(--public-text);
  background: var(--public-surface);
  border-color: var(--public-border);
  box-shadow: var(--public-shadow);
}
html[data-theme="dark"] body.public-shop :is(.about-lead h1, .about-narrative h2, .about-section-heading h2, .roadmap-intro h2, .about-outro h2, .about-values-grid article h3, .roadmap-step h3) { color: var(--public-text); }
html[data-theme="dark"] body.public-shop :is(.about-lead h1 em, .about-narrative h2 em, .roadmap-intro h2 em, .about-outro h2 em, .about-lead .eyebrow, .about-values-grid article span, .roadmap-step-num, .story-invitation h2 em) { color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop :is(.about-lead p, .about-prose, .about-values-grid article p, .about-outro p, .roadmap-intro p, .roadmap-step p, .story-invitation p) { color: var(--public-muted); }
html[data-theme="dark"] body.public-shop :is(.about-narrative, .roadmap-step) { border-color: var(--public-border); }
html[data-theme="dark"] body.public-shop .about-lead-art { background: #102a28; }
html[data-theme="dark"] body.public-shop :is(.v12-footer, .v12-footer p, .foot) { color: var(--public-muted); border-color: var(--public-border-soft); }
html[data-theme="dark"] body.public-shop .footer-leading { color: var(--public-text); }
html[data-theme="dark"] body.public-shop .footer-leading small { color: var(--public-muted); }
html[data-theme="dark"] body.public-shop .footer-mark { color: var(--public-gold-light); background: var(--public-surface); }
html[data-theme="dark"] body.public-shop .footer-links a { color: var(--public-text); text-decoration-color: var(--public-gold); }
html[data-theme="dark"] body.public-shop .footer-links a:hover { color: var(--public-gold-light); }

/* Membership, authentication, saved bag, and order requests. */
html[data-theme="dark"] body.public-shop :is(.club-layout, .club-form-panel, .club-account, .member-order-card, .member-request, .member-bag-dialog, .authwrap, .dialog) {
  color: var(--public-text);
  background: var(--public-surface);
  border-color: var(--public-border);
  box-shadow: var(--public-shadow);
}
html[data-theme="dark"] body.public-shop :is(.club-intro h2, .club-welcome b, #clubAuthTitle, .club-fields label, #clubCodeStep > label, .club-status, .club-account h3, .member-request h3, .member-request h4) { color: var(--public-text); }
html[data-theme="dark"] body.public-shop :is(.club-intro p, .club-welcome p, #clubAuthHelp, .club-fields small, .club-choice, .club-interests label) { color: var(--public-muted); }
html[data-theme="dark"] body.public-shop :is(.club-welcome, .member-total, .member-payment, .club-account code, .member-message, .member-tier) {
  color: var(--public-text);
  background: #102d28;
  border-color: var(--public-border);
}
html[data-theme="dark"] body.public-shop .seller-message { color: var(--public-text); background: #234b40; }
html[data-theme="dark"] body.public-shop :is(.club-interests, .member-workspace, .member-total > div:last-child) { border-color: var(--public-border); }
html[data-theme="dark"] body.public-shop :is(.member-account-link, .club-member-count) { color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop :is(.member-bag-dialog, .public-compare-dialog, .club-messenger)::backdrop { background: rgb(3 10 9 / 82%); }

/* Customer messenger: smoky canvas, jade sent messages and smoky beige received messages. */
html[data-theme="dark"] body.public-shop .club-messenger {
  --message-gold-border: #88765b;
  color: #f3ebdd;
  background: #202426;
  border-color: var(--message-gold-border);
}
html[data-theme="dark"] body.public-shop :is(.messenger-heading, .messenger-chat-heading, .messenger-composer) {
  color: #f3ebdd;
  background: #252a2b;
  border-color: #645a49;
}
html[data-theme="dark"] body.public-shop .messenger-list {
  background: #202426;
  border-right: 0;
  border-inline-end: 1px solid #645a49;
}
html[data-theme="dark"] body.public-shop .messenger-log { background: #191d1f; }
html[data-theme="dark"] body.public-shop .messenger-conversation { color: #f3ebdd; text-align: start; }
html[data-theme="dark"] body.public-shop .messenger-conversation.active {
  background: #254b42;
  border-color: var(--message-gold-border);
  box-shadow: none;
}
html[data-theme="dark"] body.public-shop :is(.messenger-conversation small, .messenger-conversation time, .messenger-empty, .messenger-composer small) { color: #c9c4ba; }
html[data-theme="dark"] body.public-shop .messenger-bubble {
  color: #f6f0e6;
  background: #514b42;
  border: 1px solid var(--message-gold-border);
  border-radius: 15px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 12%);
}
html[data-theme="dark"] body.public-shop .messenger-bubble.from-me {
  background: #254e43;
  border-color: var(--message-gold-border);
}
html[data-theme="dark"] body.public-shop .messenger-bubble p { color: inherit; }
html[data-theme="dark"] body.public-shop .messenger-bubble time { color: #d0c9bc; text-align: end; }
html[data-theme="dark"] body.public-shop .messenger-bubble strong { color: #e5c898; }
html[data-theme="dark"] body.public-shop .club-messenger .messenger-composer textarea {
  color: #f6f0e6 !important;
  background: #191d1f !important;
  border-color: var(--message-gold-border) !important;
}
html[data-theme="dark"] body.public-shop .club-messenger .messenger-composer textarea::placeholder { color: #c9c4ba; }
html[data-theme="dark"] body.public-shop .club-messenger .btn {
  background: #202b28;
  border-color: var(--message-gold-border);
}
html[data-theme="dark"] body.public-shop .club-messenger .btn:hover { background: #30473e; border-color: #d9b786; }
html[data-theme="dark"] body.public-shop .club-messenger .btn.primary { background: #254e43; }
html[data-theme="dark"] body.public-shop .club-messenger .btn.primary:hover { background: #306050; }

/* Public comparisons and their fixed tray/dialog. */
html[data-theme="dark"] body.public-shop :is(.public-compare-tray, .public-compare-dialog, .public-compare-table, .comparison-table) {
  color: var(--public-text);
  background: var(--public-surface);
  border-color: var(--public-border);
}
html[data-theme="dark"] body.public-shop .public-compare-tray { border-color: var(--public-gold); box-shadow: 0 8px 32px rgb(0 0 0 / 45%); }
html[data-theme="dark"] body.public-shop :is(.public-compare-table th, .public-compare-table td, .comparison-table th, .comparison-table td) {
  color: var(--public-text);
  border-color: var(--public-border);
  text-align: start;
}
html[data-theme="dark"] body.public-shop :is(.public-compare-table thead th, .comparison-table thead) { background: #214840; color: var(--public-text); }
html[data-theme="dark"] body.public-shop .public-compare-table tr > :first-child {
  background: #102c28;
  left: auto;
  inset-inline-start: 0;
}
html[data-theme="dark"] body.public-shop .public-compare-table caption { color: var(--public-muted); text-align: start; }
html[data-theme="dark"] body.public-shop :is(.public-compare-table a, .compare-remove) { color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop :is(.close, .compare-heading button) { color: var(--public-text); }

/* Market evidence remains visually distinct from the shop's own price. */
html[data-theme="dark"] body.public-shop .market-reference-card {
  color: var(--public-text);
  background: linear-gradient(125deg, #234538, #193d36);
  border-color: var(--public-gold);
  border-left-width: 2px;
  border-inline-start-width: 5px;
  box-shadow: var(--public-shadow);
}
html[data-theme="dark"] body.public-shop :is(.reference-context, .reference-card-heading, .reference-card-price) { color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop .reference-card-title { color: var(--public-text); }
html[data-theme="dark"] body.public-shop .market-reference-card .small { color: var(--public-muted); }

/* Loading and transient feedback must not flash a cream panel in dark mode. */
html[data-theme="dark"] body.public-shop :is(.public-loading-photo, .public-loading-copy) {
  color: var(--public-text);
  background: var(--public-surface);
  border-color: var(--public-border);
}
html[data-theme="dark"] body.public-shop .public-loading-copy span { color: var(--public-gold-light); }
html[data-theme="dark"] body.public-shop .public-loading-copy i { background: #31554b; }
html[data-theme="dark"] body.public-shop .toast { background: #214840; color: var(--public-text); border-color: var(--public-gold); }
html[data-theme="dark"] body.public-shop .photo-lightbox { background: rgb(5 12 11 / 98%); color: var(--public-text); }
html[data-theme="dark"] body.public-shop :is(.photo-lightbox-header, .photo-lightbox-footer) { border-color: var(--public-border); }
html[data-theme="dark"] body.public-shop :is(.photo-lightbox-close, .photo-lightbox-arrow) { color: var(--public-text); background: #153936; border-color: #78947f; }
html[data-theme="dark"] body.public-shop :is(.photo-lightbox-close, .photo-lightbox-arrow):hover { color: #0b0f10; background: var(--public-gold-light); }

@media (max-width: 650px) {
  .public-theme-toggle { inline-size: 44px; block-size: 44px; }
  html[data-theme="dark"] body.public-shop .custom-hero { box-shadow: 9px 10px 0 -3px #0d2421, 9px 10px 0 -1px #846b47; }
  html[data-theme="dark"] body.public-shop .public-compare-tray { max-inline-size: calc(100% - 24px); }
  html[data-theme="dark"] body.public-shop .club-messenger { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .public-theme-toggle { transition: none; }
}

/* Equal-size account actions, with a quiet gold edge in both themes. */
body.public-shop .member-header :is([data-header-messages], #headerBagLink, .notification-bell) {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  min-width: 0;
  height: 52px;
  padding: 0 11px;
  border: 1px solid #c4a775;
  border-radius: 15px;
  background: linear-gradient(145deg, #fffaf0, #eee3ce);
  color: #25443b;
  box-shadow: inset 0 1px 0 #ffffffc7, 0 4px 12px #2f39241f;
  font: 700 13px/1.2 system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
body.public-shop .member-header [data-notification-slot] { width: 112px; min-width: 0; }
body.public-shop .member-header :is([data-header-messages], #headerBagLink, .notification-bell):is(:hover, :focus-visible) {
  border-color: #a87c41;
  background: linear-gradient(145deg, #fff5e1, #e8d3ae);
  box-shadow: inset 0 1px 0 #fff8e8, 0 6px 16px #4d3b2933;
  transform: translateY(-1px);
}
body.public-shop .member-header :is([data-header-messages], .notification-bell).has-unread {
  border-color: #c99b6c;
  background: linear-gradient(145deg, #fbe9d6, #e8c7a5);
  box-shadow: inset 0 1px 0 #fff2e4, 0 0 0 2px #b8806c30, 0 5px 15px #4d3b2929;
}
body.public-shop .member-header :is(.bag-count, .notification-count) {
  position: absolute;
  top: -7px;
  right: auto;
  inset-inline-end: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border: 1px solid #f4ddbf;
  border-radius: 999px;
  background: #ad3c3b;
  color: #fffaf0;
  box-sizing: border-box;
  font: 800 11px/1 system-ui, sans-serif;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 2px 5px #17261d4d;
}
body.public-shop .member-header .bag-count { background: #285248; border-color: #d4ad75; }
body.public-shop .member-header .notification-count[hidden] { display: none; }
html[data-theme="dark"] body.public-shop .member-header :is([data-header-messages], #headerBagLink, .notification-bell) {
  border-color: #b69562;
  background: linear-gradient(145deg, #21443e, #15312e);
  color: #f0e4cd;
  box-shadow: inset 0 1px 0 #d4bd8a33, 0 5px 14px #061a1780;
}
html[data-theme="dark"] body.public-shop .member-header :is([data-header-messages], #headerBagLink, .notification-bell):is(:hover, :focus-visible) {
  border-color: #e1bb7d;
  background: linear-gradient(145deg, #31574a, #1d3e37);
  box-shadow: inset 0 1px 0 #f4d5a03d, 0 6px 16px #061a17a6;
}
html[data-theme="dark"] body.public-shop .member-header :is([data-header-messages], .notification-bell).has-unread {
  border-color: #d8ae78;
  background: linear-gradient(145deg, #524039, #39322e);
  color: #f7e6d2 !important;
  box-shadow: inset 0 1px 0 #f0c7a444, 0 0 0 2px #c89a673d, 0 5px 15px #061a1780;
}
html[data-theme="dark"] body.public-shop .member-header .bag-count { background: #285248; color: #f7ead3; }

@media (max-width: 760px) {
  body.public-shop .member-header {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px 9px;
    width: 100%;
    padding: 7px 2px 3px;
  }
  body.public-shop .member-header .member-account-link {
    grid-column: 1 / -1;
    max-width: none;
    min-height: 25px;
  }
  body.public-shop .member-header :is([data-header-messages], #headerBagLink, [data-notification-slot], .notification-bell) {
    width: 100%;
  }
  body.public-shop .member-header :is([data-header-messages], #headerBagLink, .notification-bell) {
    height: 52px;
    padding-inline: 5px;
    font-size: clamp(11px, 3.3vw, 13px);
  }
  body.public-shop .member-header:not(:has([data-header-messages])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.public-shop .member-header > a[href="/#club/join"] {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.public-shop .member-header :is([data-header-messages], #headerBagLink, .notification-bell) { transition: none; transform: none; }
}

/* The signed-in name belongs to the same set of gold-framed account controls. */
body.public-shop .member-header .member-account-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 280px;
  min-height: 52px;
  padding: 8px 16px;
  border: 1px solid #c4a775;
  border-radius: 15px;
  background: linear-gradient(145deg, #fffaf0, #eee3ce);
  color: #25443b;
  box-shadow: inset 0 1px 0 #ffffffc7, 0 4px 12px #2f39241f;
  text-decoration: none;
}
body.public-shop .member-header .member-account-link:is(:hover, :focus-visible) {
  border-color: #a87c41;
  background: linear-gradient(145deg, #fff5e1, #e8d3ae);
}
html[data-theme="dark"] body.public-shop .member-header .member-account-link {
  border-color: #b69562;
  background: linear-gradient(145deg, #21443e, #15312e);
  color: #f0e4cd;
  box-shadow: inset 0 1px 0 #d4bd8a33, 0 5px 14px #061a1780;
}
html[data-theme="dark"] body.public-shop .member-header .member-account-link:is(:hover, :focus-visible) {
  border-color: #e1bb7d;
  background: linear-gradient(145deg, #31574a, #1d3e37);
  color: #f7e6d2;
}
@media (max-width: 760px) {
  body.public-shop .member-header .member-account-link {
    width: 100%;
    max-width: none;
    min-height: 52px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

html[data-theme="dark"] body.public-shop .brand-signature{padding:0;border:0;background:transparent;box-shadow:none}
