/* Member area layout. Loaded last by index.html, after landing.css.
   Layout follows the common matrimony-app pattern: a sticky top bar of sections, a profile card with links on the left,
   one horizontal profile card per row, pill chips for filters, a label-left filter sheet and skeleton loading rows.
   Colours, fonts, logo and wording stay IMPA (tokens from typography.css). Scope: body.member-mode only.
   To go back to the previous look, remove the <link> to this file from index.html. */

/* The member area uses the screen: wider on big monitors */
:root { --member-w: 1360px; }
@media (min-width: 1700px) { :root { --member-w: 1520px; } }

/* ---- Top bar of sections (below the site header, which is 72px) ---- */
.member-topnav { display: none; }
body.member-mode .member-topnav { display: block; position: sticky; top: 72px; z-index: 15; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 #fff inset; }
body.member-mode .member-topnav-inner { display: flex; align-items: stretch; gap: 4px; max-width: var(--member-w); min-height: 54px; }
body.member-mode .member-topnav-inner > button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font-size: var(--fs-ui); color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
body.member-mode .member-topnav-inner > button .icon { height: 18px; width: 18px; }
body.member-mode .member-topnav-inner > button:hover { color: var(--wine); }
body.member-mode .member-topnav-inner > button.active { color: var(--wine); font-weight: 600; border-bottom-color: var(--gold); }
body.member-mode .member-topnav-inner > button > b { font-size: 12px; font-weight: 600; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--wine); color: #fff; text-align: center; line-height: 1.5; }
body.member-mode .member-topnav-spacer { flex: 1; }
.member-status-photo { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #f3e6d3; flex: none; }
.photo-thumb { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; flex: none; background: #f3e6d3; }
.photo-thumb .portrait { width: 100%; height: 100%; display: block; }
.photo-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.photo-row > span:nth-child(2) { flex: 1; min-width: 140px; }
body.member-mode .member-topnav-me > span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }

/* ---- One shell: the sidebar and the page share a single rounded card ---- */
/* The sidebar carries every section (and the language switch), so the top bar of sections is only kept on phones. */
@media (min-width: 701px) { body.member-mode .member-topnav { display: none; } }
body.member-mode .member-layout { max-width: var(--member-w); margin-top: 24px; padding: 0; gap: 0; border: 1px solid var(--line); border-radius: 16px; background-color: #fffaf4; box-shadow: 0 10px 34px #4f183012; }
@media (min-width: 901px) {
  body.member-mode .member-layout { grid-template-columns: 264px minmax(0, 1fr); background-image: linear-gradient(to right, var(--paper) 0 264px, var(--line) 264px 265px, transparent 265px); }
  body.member-mode .member-main { padding: 36px 44px 30px; }
}
@media (max-width: 900px) { body.member-mode .member-layout { border: 0; border-radius: 0; background: none; box-shadow: none; margin-top: 8px; } }
body.member-mode .member-sidebar { top: 88px; padding: 24px 16px 18px; background: transparent; border: 0; border-radius: 0; }
@media (min-width: 901px) { body.member-mode .member-sidebar { display: flex; flex-direction: column; min-height: min(660px, calc(100vh - 112px)); } }
@media (max-width: 900px) { body.member-mode .member-sidebar { display: none; } }
/* phones: the bottom bar carries the sections, so the top bar keeps only the language switch */
@media (max-width: 700px) { body.member-mode .member-topnav-inner > :not(.member-topnav-lang):not(.member-topnav-spacer):not(.notice-bell) { display: none; } body.member-mode .member-topnav-inner { min-height: 48px; } body.member-mode .member-topnav { top: 0; position: static; } }

/* grouped navigation: a quiet label per group, the open page as a filled wine pill */
body.member-mode .member-side-nav { padding: 0; }
body.member-mode .member-nav-group + .member-nav-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
body.member-mode .member-nav-title { margin: 0 0 6px; padding: 0 12px; font-size: var(--fs-hint); color: var(--muted); }
body.member-mode .member-nav-group > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; margin-bottom: 2px; border-radius: 8px; color: var(--ink); font-size: var(--fs-ui); text-align: left; }
body.member-mode .member-nav-group > button > .icon { height: 18px; width: 18px; color: var(--gold-text); flex-shrink: 0; }
body.member-mode .member-nav-group > button:hover { background: #fbf1ec; color: var(--wine); }
body.member-mode .member-nav-group > button.active { background: var(--wine); color: #fff; font-weight: 600; }
body.member-mode .member-nav-group > button.active > .icon { color: #fff; }
body.member-mode .member-nav-group > button > b { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
body.member-mode .member-nav-group > button.active > b { background: #fff; color: var(--wine); }

/* help block pinned to the foot of the sidebar, then the small links */
body.member-mode .member-help { margin-top: auto; padding: 18px 12px 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
body.member-mode .member-help-mark { display: grid; place-items: center; height: 32px; width: 32px; margin-bottom: 4px; border-radius: 50%; background: #f7eddd; color: var(--gold-text); }
body.member-mode .member-help-mark .icon { height: 16px; width: 16px; }
body.member-mode .member-help strong { color: var(--ink); font-weight: 600; }
body.member-mode .member-help p { margin: 0 0 4px; color: var(--muted); font-size: var(--fs-hint); }
body.member-mode .member-help .text-link { width: auto; padding: 0; color: var(--wine); font-weight: 600; display: inline-flex; align-items: center; justify-content: flex-start; gap: 8px; text-align: left; }
body.member-mode .member-sidebar-links { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 14px; padding: 12px 12px 0; border-top: 1px solid var(--line); }
body.member-mode .member-sidebar-links .member-back { padding: 4px 0; font-size: var(--fs-hint); color: var(--muted); }
body.member-mode .member-sidebar-links .member-back:hover { color: var(--wine); }

/* ---- Page heading: quieter, as on the reference pages ---- */
body.member-mode .member-page-heading { margin: 0 0 20px; }
body.member-mode .member-page-heading .eyebrow { color: var(--gold-text); }
body.member-mode .member-page-heading h1 { color: var(--heading); }
body.member-mode .member-page-heading p:not(.eyebrow) { color: var(--muted); }
body.member-mode .member-main .button-primary { background: var(--wine); border-color: var(--wine); color: #fff; }
body.member-mode .member-main .button-primary:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
body.member-mode .member-main .button-outline { color: var(--wine); border-color: #d9b9c4; background: #fff; }

/* ---- Pill chips (Filter, location, language...) ---- */
body.member-mode .member-preference-chips { gap: 10px; margin: 0 0 18px; flex-wrap: wrap; }
@media (max-width: 700px) { body.member-mode .member-preference-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: thin; } }
body.member-mode .member-preference-chips > span,
body.member-mode .member-preference-chips > button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border: 1px solid #cdbfb6; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-ui); }
body.member-mode .member-preference-chips > button:hover { border-color: var(--wine); color: var(--wine); text-decoration: none; }
body.member-mode .member-preference-chips > .chip-filter { font-weight: 600; }
body.member-mode .member-preference-chips .icon { height: 16px; width: 16px; }

/* ---- "N profiles" heading row ---- */
body.member-mode .member-results-toolbar { margin: 6px 0 16px; align-items: flex-end; }
body.member-mode .member-results-toolbar strong { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); }
body.member-mode .member-results-toolbar > div:first-child > span { color: var(--muted); font-size: var(--fs-hint); }
body.member-mode .member-result-controls select { min-width: 210px; max-width: 100%; min-height: 40px; padding: 8px 14px; border: 1px solid #cdbfb6; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-ui); }

/* ---- One horizontal card per row ---- */
body.member-mode .member-cards,
body.member-mode .member-cards.list-view { grid-template-columns: 1fr; gap: 16px; }
body.member-mode .member-card,
body.member-mode .member-cards.list-view .member-card { grid-template-columns: 230px minmax(0, 1fr); min-height: 262px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); }
body.member-mode .member-card:hover { border-color: #d9b9c4; box-shadow: 0 8px 24px #4f18301a; }
body.member-mode .member-card-photo,
body.member-mode .member-cards.list-view .member-card-photo { min-height: 262px; margin: 16px 0 16px 16px; border-radius: var(--radius-sm); }
body.member-mode .member-card-content,
body.member-mode .member-cards.list-view .member-card-content { padding: 16px 20px 18px; }
body.member-mode .member-card h3 { font-size: 22px; font-weight: 600; color: var(--heading); line-height: 1.25; }
body.member-mode .member-id { color: var(--muted); letter-spacing: .4px; }
body.member-mode .member-personal,
body.member-mode .member-location,
body.member-mode .member-career { font-size: var(--fs-body); color: var(--ink); }
body.member-mode .member-card-actions { gap: 10px; padding-top: 14px; flex-wrap: wrap; }
body.member-mode .member-card-actions .button { min-height: 42px; padding: 9px 20px; border-radius: 999px; font-size: var(--fs-ui); font-weight: 600; }
body.member-mode .member-card-actions .button-outline { border-color: #b8a99f; color: var(--ink); }
@media (max-width: 700px) {
  body.member-mode .member-card,
  body.member-mode .member-cards.list-view .member-card { grid-template-columns: 1fr; }
  body.member-mode .member-card-photo,
  body.member-mode .member-cards.list-view .member-card-photo { margin: 0; min-height: 280px; border-radius: 0; }
}

/* ---- Loading skeletons ---- */
body.member-mode .member-card-skeleton { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); min-height: 262px; }
body.member-mode .member-card-skeleton > i,
body.member-mode .member-card-skeleton b { display: block; border-radius: var(--radius-sm); background: linear-gradient(100deg, #efe7e0 30%, #f8f2ed 50%, #efe7e0 70%); background-size: 300% 100%; animation: member-shimmer 1.4s ease-in-out infinite; }
body.member-mode .member-card-skeleton > div { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
body.member-mode .member-card-skeleton b { height: 18px; width: 70%; }
body.member-mode .member-card-skeleton b:nth-child(2) { width: 90%; }
body.member-mode .member-card-skeleton b:nth-child(3) { width: 45%; height: 40px; border-radius: 999px; margin-top: auto; }
@keyframes member-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { body.member-mode .member-card-skeleton > i, body.member-mode .member-card-skeleton b { animation: none; } }
@media (max-width: 700px) { body.member-mode .member-card-skeleton { grid-template-columns: 1fr; } body.member-mode .member-card-skeleton > i { height: 220px; } }

/* ---- Search: label-left filter sheet with a sticky "Show matches" footer ---- */
body.member-mode .member-filter-panel { padding: 0; overflow: hidden; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); max-width: 780px; }
body.member-mode .member-filter-panel .filter-heading { padding: 16px 22px; border-bottom: 1px solid var(--line); }
body.member-mode .member-filter-panel .filter-heading h2 { font-size: 20px; color: var(--heading); }
body.member-mode .member-filter-grid { grid-template-columns: 1fr; gap: 0; padding: 4px 22px 8px; }
body.member-mode .member-filter-panel .form-field { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; color: var(--ink); }
body.member-mode .member-filter-panel .form-field > span { font-weight: 500; }
body.member-mode .member-filter-panel .advanced-search > summary { padding: 12px 22px; background: #f4efea; font-weight: 600; color: var(--ink); cursor: pointer; }
body.member-mode .member-filter-panel .advanced-search > summary span { font-weight: 400; color: var(--muted); font-size: var(--fs-hint); margin-left: 8px; }
body.member-mode .member-filter-panel .advanced-search .check-field { padding: 4px 22px 14px; }
body.member-mode .member-filter-panel .member-filter-actions { position: sticky; bottom: 0; z-index: 2; margin: 0; padding: 14px 22px; background: #fff; border-top: 1px solid var(--line); justify-content: space-between; align-items: center; }
body.member-mode .member-filter-panel .form-error { margin: 0 22px; }
@media (max-width: 700px) { body.member-mode .member-filter-panel .form-field { grid-template-columns: 1fr; gap: 4px; } }

/* ---- Interests / quick tabs as a segmented control ---- */
body.member-mode .member-quick-tabs { display: inline-flex; gap: 0; padding: 3px; border: 1px solid #cdbfb6; border-radius: 999px; background: #fff; margin-bottom: 18px; }
body.member-mode .member-quick-tabs > button { border-radius: 999px; color: var(--ink); min-height: 38px; padding: 8px 18px; }
body.member-mode .member-quick-tabs > button.active { background: #fbf1ec; color: var(--wine); border-color: #d9b9c4; font-weight: 600; }
body.member-mode .member-quick-tabs > button > span { background: var(--wine); color: #fff; }

/* ---- Home: stat tiles as plain white cards ---- */
body.member-mode .member-stats > button { background: #fff; border-color: var(--line); }
body.member-mode .member-stats strong { color: var(--wine); }
body.member-mode .member-stats small { color: var(--muted); }

/* ---- Language switch (the header one is hidden in member mode) ---- */
body.member-mode .member-topnav-inner > .member-topnav-lang { align-self: center; min-height: 36px; padding: 4px 14px; margin-right: 6px; border: 1px solid #cdbfb6; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-ui); }
body.member-mode .member-topnav-inner > .member-topnav-lang:hover { border-color: var(--wine); color: var(--wine); }

/* ---- Interests: folders live in the left column on desktop (as on the reference), pills stay on phones ---- */
body.member-mode .member-subnav { padding: 14px 0 8px; border-bottom: 1px solid var(--line); }
body.member-mode .member-subnav > h2 { font-family: var(--sans); font-size: var(--fs-ui); font-weight: 600; color: var(--heading); margin-bottom: 6px; }
body.member-mode .member-subnav > button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; margin-bottom: 6px; border-radius: var(--radius-sm); color: var(--muted); text-align: left; font-size: var(--fs-ui); }
body.member-mode .member-subnav > button:hover { background: #fbf1ec; color: var(--wine); }
body.member-mode .member-subnav > button.active { background: #fbf1ec; color: var(--wine); font-weight: 600; }
body.member-mode .member-subnav > button > b { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 13px; font-weight: 600; text-align: center; }
@media (min-width: 701px) { body.member-mode .member-quick-tabs:has([data-member-interest-tab]) { display: none; } }
@media (max-width: 700px) { body.member-mode .member-subnav { display: none; } }

/* ---- Buttons used by the status card, membership and account panels (they had no style of their own) ---- */
body.member-mode .primary-button,
body.member-mode .ghost-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 20px; border-radius: 999px; font-size: var(--fs-ui); font-weight: 600; cursor: pointer; }
body.member-mode .primary-button { background: var(--wine); border: 1px solid var(--wine); color: #fff; }
body.member-mode .primary-button:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
body.member-mode .ghost-button { background: #fff; border: 1px solid #d9b9c4; color: var(--wine); }
body.member-mode .ghost-button:hover { border-color: var(--wine); }

/* ---- Profile status card with the journey steps ---- */
body.member-mode .member-status-card { margin-bottom: 20px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius-md); }
body.member-mode .member-status-card .member-panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 6px; }
body.member-mode .member-status-card .member-panel-heading h2 { font-size: 22px; color: var(--heading); }
body.member-mode .member-status-card .member-panel-heading > span { font-size: var(--fs-hint); font-weight: 600; color: var(--gold-text); background: #f7eddd; border-radius: 999px; padding: 3px 12px; }
body.member-mode .member-status-card .premium-panel-copy { color: var(--ink); margin: 6px 0; }
body.member-mode .member-journey + .premium-panel-copy { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
body.member-mode .member-status-card .primary-button,
body.member-mode .member-status-card .ghost-button { margin: 10px 8px 0 0; }
body.member-mode .member-journey { list-style: none; margin: 16px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
body.member-mode .member-journey > li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 0 12px 0 0; }
body.member-mode .member-journey > li::before { content: ''; position: absolute; top: 15px; left: 40px; right: 8px; height: 2px; background: var(--line); }
body.member-mode .member-journey > li:last-child::before { display: none; }
body.member-mode .member-journey > li.done::before { background: var(--wine); }
body.member-mode .member-journey .step-dot { position: relative; z-index: 1; display: grid; place-items: center; height: 32px; width: 32px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--muted); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
body.member-mode .member-journey .step-dot .icon { height: 16px; width: 16px; }
body.member-mode .member-journey > li.done .step-dot { background: var(--wine); border-color: var(--wine); color: #fff; }
body.member-mode .member-journey > li.current .step-dot { border-color: var(--gold); background: #fbf1ec; color: var(--wine); box-shadow: 0 0 0 4px #f3e4cf; }
body.member-mode .member-journey strong { font-size: var(--fs-ui); color: var(--ink); line-height: 1.35; }
body.member-mode .member-journey small { font-size: var(--fs-hint); color: var(--muted); line-height: 1.45; }
body.member-mode .member-journey > li.todo strong { color: var(--muted); font-weight: 500; }
@media (max-width: 700px) {
  body.member-mode .member-journey { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  body.member-mode .member-journey > li::before { display: none; }
}

/* ---- Home: greeting, profile progress, next chapter, two small cards ---- */
body.member-mode .home-greeting { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
body.member-mode .home-greeting h1 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 40px); font-weight: 600; line-height: 1.15; color: var(--heading); }
body.member-mode .home-greeting p { margin: 0; color: var(--muted); }
body.member-mode .home-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
body.member-mode .home-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
body.member-mode .home-progress-head h2 { margin: 0; font-family: var(--sans); font-size: 21px; font-weight: 600; color: var(--heading); }
body.member-mode .home-badge { font-size: var(--fs-hint); font-weight: 600; color: var(--gold-text); background: #f7eddd; border-radius: 999px; padding: 3px 12px; }
body.member-mode .home-next { margin: 0 0 18px; color: var(--muted); }
body.member-mode .home-next strong { color: var(--ink); }
body.member-mode .home-meter > div:first-child { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; font-size: var(--fs-hint); color: var(--muted); }
body.member-mode .home-meter strong { font-family: var(--serif); font-size: 22px; color: var(--wine); }
body.member-mode .home-meter .completion-line { height: 6px; margin: 0 0 20px; background: #f0e6df; }
body.member-mode .home-meter .completion-line > span { background: var(--wine); }
body.member-mode .home-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.member-mode .home-actions .primary-button .icon { height: 14px; width: 14px; }
body.member-mode .home-card .text-link,
body.member-mode .home-section-title .text-link,
body.member-mode .home-foot .text-link { display: inline-flex; align-items: center; gap: 8px; padding: 0; color: var(--wine); font-weight: 600; }
body.member-mode .home-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--fs-hint); color: var(--muted); }
body.member-mode .home-note .icon { height: 14px; width: 14px; flex-shrink: 0; }

body.member-mode .home-section-title { display: flex; align-items: center; gap: 16px; margin: 32px 0 14px; }
body.member-mode .home-section-title h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--heading); }
body.member-mode .home-section-title > span { flex: 1; height: 1px; background: var(--line); }
body.member-mode .home-locked > .icon { box-sizing: content-box; height: 22px; width: 22px; padding: 15px; margin-bottom: 16px; border-radius: 14px; background: #f7eddd; color: var(--gold-text); }
body.member-mode .home-locked h3 { margin: 0 0 6px; font-family: var(--sans); font-size: 20px; font-weight: 600; color: var(--heading); }
body.member-mode .home-locked p { max-width: 520px; margin: 0 0 14px; color: var(--muted); }
body.member-mode .home-locked small { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-hint); color: var(--muted); }
body.member-mode .home-locked small .icon { height: 14px; width: 14px; }
body.member-mode .home-section-title + .member-stats { margin-top: 0; }

body.member-mode .home-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
@media (max-width: 700px) { body.member-mode .home-duo { grid-template-columns: 1fr; } }
body.member-mode .home-tile { padding: 20px 22px; }
body.member-mode .home-tile h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--heading); }
body.member-mode .home-tile h3 .icon { height: 18px; width: 18px; color: var(--gold-text); }
body.member-mode .home-tile p { margin: 0 0 14px; color: var(--muted); }
body.member-mode .home-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-hint); color: var(--muted); }
body.member-mode .home-foot > span { display: inline-flex; align-items: center; gap: 8px; }
body.member-mode .home-foot > span .icon { height: 16px; width: 16px; color: var(--gold); }

/* ---- Matches not open yet (profile still a draft or in review) ---- */
body.member-mode .member-locked { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border: 1px dashed #d9b9c4; border-radius: var(--radius-md); }
body.member-mode .member-locked > .icon { height: 28px; width: 28px; color: var(--gold-text); flex-shrink: 0; margin-top: 2px; }
body.member-mode .member-locked h2 { font-size: 20px; color: var(--heading); margin-bottom: 6px; }
body.member-mode .member-locked p { color: var(--ink); margin-bottom: 12px; max-width: 560px; }
body.member-mode .home-greeting h1:focus { outline: none; }
body.member-mode .home-card .text-link,
body.member-mode .home-section-title .text-link,
body.member-mode .home-foot .text-link,
body.member-mode .member-help .text-link { border: 0; }

/* ---- Matches hub: lists in the left column on desktop (as on the reference), a scrolling bar of lists on phones and tablets ---- */
body.member-mode .hub-back { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid #d9b9c4; border-radius: 10px; background: #fff; color: var(--wine); font-size: var(--fs-ui); font-weight: 600; text-align: left; }
body.member-mode .hub-back > .icon { height: 22px; width: 22px; flex-shrink: 0; transform: scaleX(-1); }
body.member-mode .hub-back:hover { background: #fbf1ec; border-color: var(--wine); }
body.member-mode .hub-subnav { padding: 10px 0 6px; }
body.member-mode .hub-subnav > h2 { padding: 0 12px; font-size: var(--fs-hint); color: var(--muted); }
body.member-mode .hub-subnav > button { min-height: 0; margin-bottom: 2px; padding: 8px 12px; color: var(--ink); }
body.member-mode .hub-subnav > button > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
body.member-mode .hub-subnav > button strong { font-size: var(--fs-ui); font-weight: 600; }
body.member-mode .hub-subnav > button.active { background: var(--wine); color: #fff; }
body.member-mode .hub-catbar { display: none; }
@media (max-width: 900px) {
  body.member-mode .hub-catbar { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 12px; padding: 2px 2px 8px; scrollbar-width: thin; }
  body.member-mode .hub-catbar > button { flex: 0 0 auto; min-height: 40px; padding: 8px 16px; border: 1px solid #cdbfb6; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-ui); white-space: nowrap; }
  body.member-mode .hub-catbar > button.active { background: var(--wine); border-color: var(--wine); color: #fff; font-weight: 600; }
}

/* quick chips: the ones that are on move to the front, tinted, with a cross */
body.member-mode .hub-chips { align-items: center; }
body.member-mode .hub-chips > .hub-chip.is-active,
body.member-mode .hub-chips > .chip-filter.is-active { background: #fbf1ec; border-color: var(--wine); color: var(--wine); font-weight: 600; }
body.member-mode .hub-chips > .hub-chip .icon { height: 13px; width: 13px; }
body.member-mode .hub-chips > .chip-filter > b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.5; }
body.member-mode .hub-chips > .hub-chip-option { border-style: dashed; }
body.member-mode .hub-chips > .hub-clear { border-color: transparent; background: transparent; color: var(--wine); text-decoration: underline; }
body.member-mode .hub-toolbar { flex-wrap: wrap; align-items: center; }
body.member-mode .hub-toolbar > div:first-child { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
body.member-mode .hub-toolbar > div:first-child > span { font-size: var(--fs-ui); color: var(--muted); }

/* end of a list, empty lists, and what a card meets of the member's own preferences */
body.member-mode .hub-more { justify-content: center; margin-top: 18px; padding-top: 0; border-top: 0; }
body.member-mode .hub-end { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px 0 6px; padding: 22px; text-align: center; background: #fff; border: 1px dashed #d9b9c4; border-radius: var(--radius-md); }
body.member-mode .hub-end > .icon { height: 26px; width: 26px; color: #1f7a4d; }
body.member-mode .hub-end p { margin: 0; font-weight: 600; color: var(--ink); }
body.member-mode .hub-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
body.member-mode .hub-empty-actions .button { margin: 0; }
body.member-mode .hub-locked .button { margin-top: 6px; }
body.member-mode .member-fit { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: var(--fs-hint); color: #1f7a4d; }
body.member-mode .member-fit .icon { height: 14px; width: 14px; flex: none; }

/* filter sheet: groups that scroll, a footer with the live count that stays in view */
body.member-mode #dialog-content.hub-filter-dialog { padding: 0; }
body.member-mode .hub-sheet-head { padding: 28px 28px 6px; }
body.member-mode .hub-sheet-head .dialog-heading { margin: 4px 0 6px; padding-right: 40px; }
body.member-mode .hub-sheet-body { padding: 0 28px 10px; }
body.member-mode .hub-sheet-group { padding: 14px 0; border-top: 1px solid var(--line); }
body.member-mode .hub-sheet-group h3 { margin: 0 0 10px; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--heading); }
body.member-mode .hub-sheet-group .form-field.full { margin-top: 10px; }
body.member-mode .hub-sheet-group .check-field { margin-top: 8px; color: var(--ink); }
body.member-mode .hub-sheet-group .form-grid { margin-top: 8px; }
body.member-mode .hub-sheet-foot { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 14px 28px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px #4f18300f; }
body.member-mode .hub-sheet-foot > p { margin: 0; font-weight: 600; color: var(--wine); }
body.member-mode .hub-sheet-foot > div { display: flex; align-items: center; gap: 16px; margin-left: auto; }
body.member-mode .hub-sheet-foot .text-link { border: 0; padding: 0; color: var(--wine); font-weight: 600; }
body.member-mode .hub-paid-tag { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: #5b2a86; }
body.member-mode .hub-paid-tag .icon { height: 12px; width: 12px; }
@media (max-width: 700px) {
  body.member-mode .hub-sheet-head, body.member-mode .hub-sheet-body { padding-left: 18px; padding-right: 18px; }
  body.member-mode .hub-sheet-group .form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.member-mode .hub-toolbar > div:first-child { width: 100%; max-width: none; }
  body.member-mode .hub-catbar, body.member-mode .hub-chips, body.member-mode .daily-track, body.member-mode .daily-thumbs { scrollbar-width: none; }
  body.member-mode .hub-sheet-foot { padding: 12px 18px; }
  body.member-mode .hub-sheet-foot > div { width: 100%; justify-content: space-between; }
}

/* ---- Daily Recommendations: a strip with a countdown on the Overview, and a one-at-a-time viewer ---- */
body.member-mode .daily-title { flex-wrap: wrap; row-gap: 8px; }
body.member-mode .home-section-title > .daily-countdown { flex: none; height: auto; background: #fdf0e3; }
body.member-mode .daily-countdown { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #fdf0e3; color: #8a4b12; font-size: var(--fs-hint); white-space: nowrap; }
body.member-mode .daily-countdown b { font-variant-numeric: tabular-nums; }
body.member-mode .daily-lead { margin: -4px 0 12px; font-size: var(--fs-hint); color: var(--muted); }
body.member-mode .daily-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; }
body.member-mode .daily-card { flex: 0 0 148px; scroll-snap-align: start; display: grid; gap: 2px; padding: 0 0 10px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; text-align: left; overflow: hidden; cursor: pointer; }
body.member-mode .daily-card:hover { border-color: var(--wine); }
body.member-mode .daily-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
body.member-mode .daily-card.is-done { opacity: .62; }
body.member-mode .daily-photo { position: relative; display: block; aspect-ratio: 4 / 5; background: #f3e6d3; }
body.member-mode .daily-photo .portrait { display: block; height: 100%; width: 100%; }
body.member-mode .daily-photo em { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: #fffdfaee; color: var(--wine); font-size: 12px; font-style: normal; font-weight: 600; }
body.member-mode .daily-card strong { padding: 6px 10px 0; font-size: var(--fs-hint); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.member-mode .daily-card small { padding: 0 10px; font-size: 13px; color: var(--muted); }
body.member-mode .daily-done { display: flex; align-items: flex-start; gap: 14px; }
body.member-mode .daily-done > .icon { box-sizing: content-box; flex: none; height: 22px; width: 22px; padding: 9px; border-radius: 50%; background: #e7f4ec; color: #1f7a4d; }
body.member-mode .daily-done h3 { margin: 0 0 4px; font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--heading); }
body.member-mode .daily-done p { margin: 0 0 8px; color: var(--muted); }
body.member-mode #dialog-content.daily-dialog { padding: 28px 28px 22px; }
body.member-mode .daily-viewer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; padding-right: 40px; }
body.member-mode .daily-viewer .dialog-heading { margin: 4px 0 8px; }
body.member-mode .daily-viewer.is-done .dialog-description { max-width: none; }
body.member-mode .daily-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
body.member-mode .daily-thumb { position: relative; flex: 0 0 48px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 50%; overflow: hidden; background: #f3e6d3; cursor: pointer; }
body.member-mode .daily-thumb .portrait { display: block; height: 100%; width: 100%; }
body.member-mode .daily-thumb.is-current { border-color: var(--wine); box-shadow: 0 0 0 2px #f3e4cf; }
body.member-mode .daily-thumb.is-done { opacity: .55; }
body.member-mode .daily-thumb > .icon { position: absolute; right: 2px; bottom: 2px; height: 16px; width: 16px; padding: 2px; border-radius: 50%; background: var(--wine); color: #fff; }
body.member-mode .daily-current { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; margin: 8px 0 18px; }
body.member-mode .daily-current-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-md); background: #f3e6d3; }
body.member-mode .daily-current-photo .portrait { display: block; height: 100%; width: 100%; }
body.member-mode .daily-current-info h3 { margin: 2px 0 6px; font-size: 24px; color: var(--heading); }
body.member-mode .daily-current-info > p { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; color: var(--ink); }
body.member-mode .daily-current-info > p .icon { height: 14px; width: 14px; flex: none; }
body.member-mode .daily-current-info > .member-id { color: var(--muted); font-size: var(--fs-hint); }
body.member-mode .daily-current-info > .daily-about { color: var(--muted); }
body.member-mode .daily-current-info > .daily-note { color: var(--wine); font-weight: 600; }
body.member-mode .daily-current-info > .text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 0; border: 0; color: var(--wine); font-weight: 600; }
body.member-mode .daily-actions { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
body.member-mode .daily-actions .button { justify-content: center; min-height: 44px; border-radius: 999px; }
@media (max-width: 700px) {
  body.member-mode #dialog-content.daily-dialog { padding: 22px 16px 16px; }
  body.member-mode .daily-current { grid-template-columns: 1fr; gap: 12px; }
  body.member-mode .daily-current-photo { aspect-ratio: auto; height: 210px; }
  /* the three choices stay in reach while the profile scrolls */
  body.member-mode .daily-actions { position: sticky; bottom: 0; z-index: 2; grid-template-columns: 1fr 1fr; margin: 0 -16px -16px; padding: 12px 16px 16px; background: var(--paper); border-top: 1px solid var(--line); }
  body.member-mode .daily-actions [data-daily="interest"] { grid-column: 1 / -1; order: -1; }
}

/* Discover (My account): links to the lists on the Matches page */
body.member-mode .discover-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 14px 0 18px; }
body.member-mode .discover-links > .ghost-button { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: var(--radius-md); text-align: left; }
body.member-mode .discover-links > .ghost-button small { font-size: 13px; font-weight: 400; color: var(--muted); }

/* ---- Interests folders, message tabs and the notification bell (wave 4) ---- */
body.member-mode .inbox-chips { margin: 0 0 14px; }
body.member-mode .inbox-chips > .inbox-chip.is-active { background: #fbf1ec; border-color: var(--wine); color: var(--wine); font-weight: 600; }
body.member-mode .inbox-chips > .inbox-chip > b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #efe3dc; color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.5; }
body.member-mode .inbox-chips > .inbox-chip.is-active > b { background: var(--wine); color: #fff; }
body.member-mode .member-subnav > button > b.is-zero { background: #efe3dc; color: var(--muted); }
body.member-mode .inbox-toolbar { align-items: center; flex-wrap: wrap; gap: 10px 16px; }
body.member-mode .inbox-toolbar > strong { font-size: var(--fs-ui); color: var(--ink); }
body.member-mode .inbox-search { position: relative; display: flex; align-items: center; flex: 0 1 300px; min-width: 200px; margin: 0; }
body.member-mode .inbox-search > .icon { position: absolute; left: 14px; height: 16px; width: 16px; color: var(--muted); pointer-events: none; }
body.member-mode .inbox-search > input { width: 100%; min-height: 42px; padding: 8px 14px 8px 40px; border: 1px solid #cdbfb6; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-ui); }
body.member-mode .inbox-search > input:focus { border-color: var(--wine); outline: 2px solid #f0dbe3; outline-offset: 1px; }
body.member-mode .interest-state { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: var(--fs-hint); font-weight: 600; }
body.member-mode .interest-state .icon { height: 14px; width: 14px; flex: none; }
body.member-mode .interest-state.is-accepted { color: #1f7a4d; }
body.member-mode .interest-state.is-declined { color: var(--muted); }
body.member-mode .chat-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 14px; }
body.member-mode .chat-toolbar > .inbox-chips { margin: 0; }
body.member-mode .chat-list-empty { margin: 0; padding: 10px 8px; color: var(--muted); font-size: var(--fs-hint); }
@media (max-width: 700px) {
  body.member-mode .inbox-search { flex: 1 1 100%; min-width: 0; }
  body.member-mode .inbox-chips { scrollbar-width: none; }
  body.member-mode .chat-toolbar > .inbox-chips { width: 100%; }
}

/* the bell: in the header on a computer, in the member bar on a phone; the count sits on its corner */
.notice-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.notice-bell:hover, .notice-bell[aria-expanded="true"] { background: #fbf1ec; color: var(--wine); }
.notice-bell .icon { height: 21px; width: 21px; }
.notice-bell > .notice-count { position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fffdfa; }
.notice-bell > .notice-count[hidden] { display: none; }
.header-bell { display: none; }
body.member-mode.signed-in .header-bell { display: inline-flex; }
@media (max-width: 700px) { body.member-mode.signed-in .header-bell { display: none; } }
body.member-mode .member-topnav-inner > .notice-bell { align-self: center; margin-right: 8px; }

/* the panel under the bell (a sheet from the bottom on a phone) */
.notice-panel { position: fixed; z-index: 80; width: min(400px, calc(100vw - 24px)); max-height: min(580px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(60, 20, 35, .18); overflow: hidden; }
.notice-panel[hidden], .notice-scrim[hidden] { display: none; }
.notice-scrim { display: none; }
.notice-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 4px 20px; }
.notice-panel-head h2 { margin: 0; font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--heading); }
.notice-tabs { display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.notice-tabs > button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-size: var(--fs-ui); white-space: nowrap; cursor: pointer; }
.notice-tabs > button:hover { color: var(--wine); }
.notice-tabs > button.active { color: var(--wine); font-weight: 600; border-bottom-color: var(--gold); }
.notice-tabs > button > b { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--wine); color: #fff; font-size: 12px; line-height: 1.6; text-align: center; }
.notice-list { flex: 1; overflow-y: auto; padding: 4px 0; }
.notice-item { position: relative; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 12px 36px 12px 16px; border: 0; border-bottom: 1px solid #f4ece6; background: none; text-align: left; color: var(--ink); cursor: pointer; }
.notice-item:hover { background: #fbf6f2; }
.notice-item.is-new { background: #fdf3ef; }
.notice-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #f6ebe4; color: var(--wine); }
.notice-mark .icon { height: 17px; width: 17px; }
.notice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notice-text strong { font-size: var(--fs-ui); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.notice-text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-hint); line-height: 1.4; color: var(--muted); }
.notice-text time { font-size: 13px; color: var(--muted); }
.notice-dot { position: absolute; top: 18px; right: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--wine); }
.notice-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 28px 16px; color: var(--muted); text-align: center; }
.notice-empty .icon { height: 26px; width: 26px; color: var(--muted); }
.notice-panel-foot { display: flex; justify-content: center; padding: 10px 16px 12px; border-top: 1px solid var(--line); }
.notice-panel-foot .text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 8px; border: 0; background: none; color: var(--wine); font-weight: 600; }
@media (max-width: 700px) {
  .notice-scrim { display: block; position: fixed; inset: 0; z-index: 79; background: rgba(40, 18, 26, .38); }
  .notice-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 82vh; border-bottom: 0; border-radius: 18px 18px 0 0; }
  .notice-tabs > button { flex: 1; justify-content: center; padding: 8px 6px; }
  .notice-panel-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}

/* Nearby matches: a town box and distance chips (matches-hub.js hubNearBar) */
body.member-mode .hub-near { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -6px 0 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfa; }
body.member-mode .hub-near-city { position: relative; display: flex; align-items: center; gap: 8px; flex: 1 1 240px; max-width: 340px; min-height: 42px; padding: 0 12px; border: 1px solid #cdbfb6; border-radius: 999px; background: #fff; }
body.member-mode .hub-near-city:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px #a6112a1f; }
body.member-mode .hub-near-city > .icon { flex: none; width: 17px; height: 17px; color: var(--wine); }
body.member-mode .hub-near-city > input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-ui); color: var(--ink); }
body.member-mode .hub-near-clear { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); }
body.member-mode .hub-near-clear:hover { background: #f4ece6; color: var(--wine); }
body.member-mode .hub-near-clear .icon { width: 13px; height: 13px; }
body.member-mode .hub-near-km { display: flex; flex-wrap: wrap; gap: 7px; }
body.member-mode .hub-near-km > .hub-chip { min-height: 38px; padding: 6px 14px; border: 1px solid #cdbfb6; border-radius: 999px; background: #fff; color: var(--ink); font-size: var(--fs-ui); }
body.member-mode .hub-near-km > .hub-chip:hover { border-color: var(--wine); color: var(--wine); }
body.member-mode .hub-near-km > .hub-chip.is-active { background: var(--wine); border-color: var(--wine); color: #fff; font-weight: 600; }
body.member-mode .hub-near-note { flex-basis: 100%; margin: 0; font-size: var(--fs-hint); color: var(--muted); }
body.member-mode .hub-distance { color: var(--wine); }
@media (max-width: 700px) {
  body.member-mode .hub-near { padding: 12px; }
  body.member-mode .hub-near-city { max-width: none; flex-basis: 100%; }
  body.member-mode .hub-near-km > .hub-chip { min-height: 36px; padding: 5px 12px; }
}

/* Photo uploaded: a green tick on the new photo and a green "Uploaded successfully" line (owner, 2026-11-14). */
.photo-thumb { position: relative; }
.photo-tick { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #2e8a5f; color: #fff; font-style: normal; font-weight: 700; font-size: 15px; box-shadow: 0 0 0 2px #fff; }
.photo-just-uploaded { background: #f3faf6; border-color: #c4e2d5; }
.photo-upload-ok { display: block; margin-bottom: 2px; color: #1f6b47; font-weight: 600; }
.button.is-uploaded, button.is-uploaded { background: #2e8a5f; border-color: #2e8a5f; color: #fff; }
/* Preferred districts: chips above the add box. */
.district-picker .district-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 4px; }
.district-picker .district-chips:empty { display: none; }
/* Set up your profile: details already given are not asked again, and a preview of everything comes before submitting. */
.setup-skipped-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #eef7f1; color: #1f5f40; }
.setup-skipped-note .icon { flex: none; margin-top: 2px; }
.setup-preview { display: grid; gap: 16px; }
.setup-preview-section .member-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup-preview-section .member-panel-heading .ghost-button { display: inline-flex; align-items: center; gap: 6px; }
.setup-preview-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px 20px; margin: 0; }
.setup-preview-list > div { min-width: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.setup-preview-list dt { font-size: var(--fs-hint); color: var(--muted); }
.setup-preview-list dd { margin: 2px 0 0; overflow-wrap: anywhere; white-space: pre-line; }
.setup-preview-empty { color: var(--muted); font-style: italic; }
.setup-preview-photo { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.setup-preview-actions { margin-top: 18px; }
/* ---- Member Home dashboard (2026-11-16): a wine welcome banner, gold-ruled section titles, lifted daily
   picks, colour-coded activity tiles with round icon badges and big serif numbers, a gold preferences band and tinted tiles.
   Same wine/gold language as the landing plan cards. ---- */
body.member-mode .home-greeting { position: relative; overflow: hidden; align-items: center; margin-bottom: 26px; padding: 30px 34px; border-radius: 22px; background: radial-gradient(circle at 95% 110%, rgba(255, 255, 255, .12), transparent 45%), linear-gradient(135deg, #5e1229, #8a1f40 55%, #a3264d); box-shadow: 0 18px 40px rgba(94, 18, 41, .22); }
body.member-mode .home-greeting::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
body.member-mode .home-greeting h1 { color: #fff !important; letter-spacing: .005em; } /* beats the site-wide !important heading colour */
body.member-mode .home-greeting p { color: #f7e3ea; font-size: 1.02rem; }
body.member-mode .home-section-title h2 { font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
body.member-mode .home-section-title > span:not(.daily-countdown) { height: 1px; background: linear-gradient(90deg, #d9b26a, rgba(217, 178, 106, 0)); }
body.member-mode .daily-countdown { border: 1px solid #f0d9a2; background: #fff6df; color: #7a5200; }
body.member-mode .home-section-title > .daily-countdown { background: #fff6df; }
body.member-mode .daily-track { gap: 16px; padding: 6px 4px 14px; }
body.member-mode .daily-card { flex-basis: 170px; border: 1px solid #ecdfd6; border-radius: 18px; box-shadow: 0 6px 18px rgba(74, 20, 40, .07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
body.member-mode .daily-card:hover { transform: translateY(-4px); border-color: #d9b26a; box-shadow: 0 14px 30px rgba(74, 20, 40, .14); }
body.member-mode .daily-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(60, 12, 28, .28)); pointer-events: none; }
body.member-mode .daily-card strong { padding-top: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; color: var(--wine); }
body.member-mode .member-stats { gap: 18px; }
body.member-mode .member-stats > button { --tone: var(--wine); --tone-bg: #f8e8ee; position: relative; overflow: hidden; gap: 4px; padding: 20px 20px 18px; border: 1px solid #ecdfd6; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(74, 20, 40, .06); transition: transform .2s ease, box-shadow .2s ease; }
body.member-mode .member-stats > button:nth-child(2) { --tone: #a86f00; --tone-bg: #fff3d6; }
body.member-mode .member-stats > button:nth-child(3) { --tone: #17643f; --tone-bg: #e3f3ea; }
body.member-mode .member-stats > button:nth-child(4) { --tone: #5b3f8c; --tone-bg: #eee8f8; }
body.member-mode .member-stats > button::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--tone); }
body.member-mode .member-stats > button:hover { transform: translateY(-4px); border-color: #ecdfd6; box-shadow: 0 16px 32px rgba(74, 20, 40, .13); }
body.member-mode .member-stats > button > span { gap: 10px; font-weight: 600; color: #5d5257; }
body.member-mode .member-stats > button > span .icon { box-sizing: content-box; width: 16px; height: 16px; padding: 8px; border-radius: 50%; background: var(--tone-bg); color: var(--tone); }
body.member-mode .member-stats strong { margin-top: 6px; font-family: var(--sans, system-ui, sans-serif); font-size: 2.6rem; font-weight: 800; font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; color: var(--tone); }
body.member-mode .member-stats small { font-weight: 600; color: var(--tone); }
body.member-mode .premium-preferences-summary { border: 1px solid #f0d9a2; border-radius: 18px; background: radial-gradient(circle at 0 0, rgba(233, 196, 106, .25), transparent 55%), linear-gradient(90deg, #fffaf0, #fff4e0); box-shadow: 0 6px 18px rgba(160, 110, 10, .08); }
body.member-mode .premium-preferences-summary .preference-summary-icon { background: linear-gradient(135deg, #f8dc85, #d9a521); color: #4a0f22; box-shadow: 0 4px 10px rgba(160, 110, 10, .25); }
body.member-mode .premium-preferences-summary h3 { font-family: Georgia, "Times New Roman", serif; }
body.member-mode .home-duo { gap: 20px; }
body.member-mode .home-tile { border: 1px solid #ecdfd6; border-radius: 18px; background: linear-gradient(160deg, #fff, #fbf3ee); box-shadow: 0 6px 18px rgba(74, 20, 40, .06); transition: transform .2s ease, box-shadow .2s ease; }
body.member-mode .home-duo .home-tile:nth-child(2) { background: linear-gradient(160deg, #fff, #f3f0fa); }
body.member-mode .home-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(74, 20, 40, .12); }
body.member-mode .home-tile h3 { font-family: Georgia, "Times New Roman", serif; font-size: 19px; }
body.member-mode .home-tile h3 .icon { box-sizing: content-box; padding: 8px; border-radius: 50%; background: #fff3d6; color: #a86f00; }
body.member-mode .home-duo .home-tile:nth-child(2) h3 .icon { background: #eee8f8; color: #5b3f8c; }
body.member-mode .member-side-nav .member-nav-group > button.active { background: linear-gradient(135deg, #6d1430, #a3264d); color: #fff; box-shadow: 0 6px 14px rgba(109, 20, 48, .25); }
@media (max-width: 700px) {
  body.member-mode .home-greeting { padding: 22px 20px; border-radius: 18px; }
  body.member-mode .member-stats strong { font-size: 2.1rem; }
}
@media (prefers-reduced-motion: reduce) { body.member-mode :is(.daily-card, .member-stats > button, .home-tile) { transition: none; } body.member-mode :is(.daily-card, .member-stats > button, .home-tile):hover { transform: none; } }
/* ---- Member workspace, every page (2026-11-16): one clean look. White surfaces with soft shadows and 16-18px corners,
   wine serif page titles with a short gold rule, pill chips and tabs that turn wine when chosen, lifted profile cards,
   calm form fields with a gold focus ring, and a tidy sidebar. Colours stay wine, gold and cream. ---- */
body.member-mode { --m-line: #ecdfd6; --m-shadow: 0 6px 18px rgba(74, 20, 40, .06); --m-shadow-up: 0 14px 30px rgba(74, 20, 40, .12); --m-serif: Georgia, "Times New Roman", serif; }
/* Sidebar */
body.member-mode #member-sidebar { padding-top: 22px; }
body.member-mode .member-nav-title { margin: 0 0 6px; padding: 0 12px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a07a3c; }
body.member-mode .member-side-nav .member-nav-group > button, body.member-mode .member-subnav button { border-radius: 12px; transition: background .15s ease, color .15s ease; }
body.member-mode .member-side-nav .member-nav-group > button:not(.active):hover, body.member-mode .member-subnav button:not(.active):hover { background: #f8eef1; color: var(--wine); }
body.member-mode .member-subnav button.active { background: linear-gradient(135deg, #6d1430, #a3264d); color: #fff; box-shadow: 0 6px 14px rgba(109, 20, 48, .22); }
body.member-mode .member-subnav button.active b, body.member-mode .member-subnav button.active span { color: inherit; }
body.member-mode .member-subnav > h2, body.member-mode .member-subnav > p, body.member-mode .member-subnav > h3 { color: #a07a3c; }
body.member-mode .hub-back, body.member-mode #member-sidebar .member-back:first-child { border-radius: 12px; }
/* Page titles */
body.member-mode .member-page-heading { margin-bottom: 22px; }
body.member-mode .member-page-heading h1 { position: relative; padding-bottom: 12px; font-family: var(--m-serif); font-weight: 700; letter-spacing: .005em; }
body.member-mode .member-page-heading h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #c8961c, #e9c46a); }
body.member-mode .member-page-heading p:not(.eyebrow) { margin-top: 10px; }
/* Chips and tabs (Matches filters, Interests folders, Account sections) */
body.member-mode :is(.hub-chip, .inbox-chip, .admin-tabs > button) { border: 1px solid var(--m-line); border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(74, 20, 40, .04); transition: border-color .15s ease, background .15s ease, color .15s ease; }
body.member-mode :is(.hub-chip, .inbox-chip, .admin-tabs > button):hover { border-color: #d9b26a; color: var(--wine); }
body.member-mode :is(.hub-chip.is-active, .inbox-chip.is-active, .admin-tabs > button.active) { border-color: transparent; background: linear-gradient(135deg, #6d1430, #a3264d); color: #fff; box-shadow: 0 6px 14px rgba(109, 20, 48, .2); }
body.member-mode .admin-tabs { gap: 10px; margin-bottom: 24px; }
/* Toolbars and notes */
body.member-mode .member-results-toolbar { padding: 4px 2px; }
body.member-mode .member-results-toolbar select, body.member-mode .inbox-search input { border-radius: 999px; }
body.member-mode .member-gentle-note { border: 1px solid #f0d9a2; border-radius: 14px; background: #fffaf0; }
/* Profile cards */
body.member-mode .member-card { border: 1px solid var(--m-line); border-radius: 20px; background: #fff; box-shadow: var(--m-shadow); transition: transform .2s ease, box-shadow .2s ease; }
body.member-mode .member-card:hover { transform: translateY(-3px); box-shadow: var(--m-shadow-up); }
body.member-mode .member-card-photo { border-radius: 14px; overflow: hidden; }
body.member-mode .member-card h3 { font-family: var(--m-serif); font-weight: 700; }
body.member-mode .member-id { letter-spacing: .08em; color: #8b7f84; }
body.member-mode .member-career span:first-child { border-radius: 999px; }
/* Panels, forms and side tips */
body.member-mode :is(.member-panel, .member-profile-form, .member-filter-panel, .premium-preferences-form, .member-saved-searches) { border: 1px solid var(--m-line); border-radius: 20px; background: #fff; box-shadow: var(--m-shadow); }
body.member-mode .member-panel-heading h2, body.member-mode .filter-heading h2, body.member-mode .pref-group-head h3, body.member-mode .member-saved-searches h3 { font-family: var(--m-serif); font-weight: 700; }
body.member-mode .member-panel-heading { border-bottom-color: #f1e6dd; }
body.member-mode #member-main .member-panel { padding: 22px 26px; margin-bottom: 20px; }
body.member-mode #member-main .member-panel > :last-child { margin-bottom: 0; }
body.member-mode .member-profile-tips > * { border: 1px solid var(--m-line); border-radius: 18px; box-shadow: var(--m-shadow); }
body.member-mode .member-profile-tips h3 { font-family: var(--m-serif); }
body.member-mode .completion-ring { border-color: #e9c46a; color: var(--wine); }
body.member-mode #member-main :is(.form-field input, .form-field select, .form-field textarea, .degree-add input) { border: 1px solid #e4d6cc; border-radius: 12px; background: #fffdfb; transition: border-color .15s ease, box-shadow .15s ease; }
body.member-mode #member-main :is(.form-field input, .form-field select, .form-field textarea, .degree-add input):focus { border-color: #c8961c; outline: none; box-shadow: 0 0 0 3px rgba(233, 196, 106, .35); background: #fff; }
body.member-mode #member-main .form-field > span { font-weight: 600; color: #4d4246; }
body.member-mode :is(.pref-chip, .degree-chip) { border-radius: 999px; }
/* Buttons */
body.member-mode #member-main :is(.button-primary, .primary-button) { border-radius: 999px; background: linear-gradient(135deg, #6d1430, #a3264d); box-shadow: 0 6px 14px rgba(109, 20, 48, .22); }
body.member-mode #member-main :is(.button-primary, .primary-button):hover { background: linear-gradient(135deg, #5a1027, #8a1f40); }
body.member-mode #member-main :is(.button-outline, .ghost-button) { border-radius: 999px; }
/* Empty states */
body.member-mode .member-empty { border: 1px dashed #e6cfa6; border-radius: 22px; background: radial-gradient(circle at 50% 0, rgba(233, 196, 106, .14), transparent 60%), #fff; }
body.member-mode .member-empty h2, body.member-mode .member-empty h3 { font-family: var(--m-serif); }
/* Settings table */
body.member-mode #member-main .admin-table { overflow: hidden; border: 1px solid var(--m-line); border-collapse: separate; border-spacing: 0; border-radius: 16px; background: #fff; }
body.member-mode #member-main .admin-table th { background: #faf4ef; }
body.member-mode #member-main .admin-table :is(th, td) { padding: 12px 16px; }
body.member-mode #member-main .admin-table tr:last-child td { border-bottom: 0; }
@media (prefers-reduced-motion: reduce) { body.member-mode .member-card { transition: none; } body.member-mode .member-card:hover { transform: none; } }
/* ui-ux-pro-max checklist: a visible focus ring on every control, 44px tap targets for chips and tabs, a pointer cursor on clickable items */
body.member-mode :is(#member-main, #member-sidebar, #member-topnav) :is(button, a, [role=tab], summary):focus-visible { outline: 3px solid #c8961c; outline-offset: 2px; }
body.member-mode :is(.hub-chip, .inbox-chip, .admin-tabs > button) { min-height: 44px; cursor: pointer; }
body.member-mode :is(.member-side-nav .member-nav-group > button, .member-subnav button, .member-stats > button, .daily-card, .home-tile .text-link) { cursor: pointer; }
/* Bolder pass (2026-11-16, owner: "nothing looks changed"): every member page opens with the same wine banner as the Home
   welcome, and the sidebar icons sit in round badges, so each page clearly belongs to one design. */
body.member-mode .member-page-heading { position: relative; overflow: hidden; align-items: center; gap: 16px; margin-bottom: 26px; padding: 26px 30px; border-radius: 22px; background: radial-gradient(circle at 95% 110%, rgba(255, 255, 255, .12), transparent 45%), linear-gradient(135deg, #5e1229, #8a1f40 55%, #a3264d); box-shadow: 0 16px 36px rgba(94, 18, 41, .2); }
body.member-mode .member-page-heading::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
body.member-mode .member-page-heading h1 { margin: 0; padding-bottom: 0; color: #fff !important; } /* beats the site-wide !important heading colour */
body.member-mode .member-page-heading h1::after { display: none; }
body.member-mode .member-page-heading p:not(.eyebrow) { margin: 8px 0 0; color: #f7e3ea; }
body.member-mode .member-page-heading :is(button, a) { position: relative; z-index: 1; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .12); color: #fff; }
body.member-mode .member-page-heading :is(button, a):hover { background: #fff; color: var(--wine); }
body.member-mode .member-page-heading :is(button, a) .icon { color: inherit; }
body.member-mode .member-side-nav .member-nav-group > button > .icon { box-sizing: content-box; width: 16px; height: 16px; padding: 7px; border-radius: 50%; background: #f8eef1; color: var(--wine); transition: background .15s ease, color .15s ease; }
body.member-mode .member-side-nav .member-nav-group > button.active > .icon { background: rgba(255, 255, 255, .2); color: #fff; }
body.member-mode .member-side-nav .member-nav-group > button { min-height: 46px; }
@media (max-width: 700px) { body.member-mode .member-page-heading { padding: 20px; border-radius: 18px; flex-wrap: wrap; } }
/* Member header actions (2026-11-16): Compare, bell, shortlist heart, name and Log out sit together as one tidy toolbar.
   Round 42px icon buttons in a soft rose tint, a gold count badge on Compare, the member's name in a chip with a gold
   avatar dot, and Log out as a wine pill. */
body.member-mode .nav-shell .nav-actions { gap: 10px; }
body.member-mode .nav-shell .header-compare { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px 0 14px; border: 1px solid #ecdfd6; border-radius: 999px; background: #fff; color: #4d4246; font-weight: 600; box-shadow: 0 2px 8px rgba(74, 20, 40, .06); cursor: pointer; transition: border-color .15s ease, color .15s ease, box-shadow .15s ease; }
body.member-mode .nav-shell .header-compare .icon { width: 16px; height: 16px; color: var(--wine); }
body.member-mode .nav-shell .header-compare b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: linear-gradient(135deg, #f8dc85, #d9a521); color: #4a0f22; font-size: .8rem; }
body.member-mode .nav-shell .header-compare:hover { border-color: #d9b26a; color: var(--wine); box-shadow: 0 6px 14px rgba(74, 20, 40, .1); }
body.member-mode .nav-shell :is(.header-bell, .saved-nav) { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #f8eef1; color: var(--wine); cursor: pointer; transition: background .15s ease, color .15s ease, transform .15s ease; }
body.member-mode .nav-shell :is(.header-bell, .saved-nav) .icon { width: 19px; height: 19px; color: inherit; }
body.member-mode .nav-shell :is(.header-bell, .saved-nav):hover { background: var(--wine); color: #fff; transform: translateY(-1px); }
body.member-mode .nav-shell :is(.header-bell .notice-count, .saved-nav .saved-count) { position: absolute; top: -3px; right: -3px; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; background: #c2410c; color: #fff; font-size: .7rem; font-weight: 800; }
body.member-mode .nav-shell :is(.header-bell .notice-count, .saved-nav .saved-count)[hidden] { display: none; }
body.member-mode .nav-shell .member-status { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 6px; border: 1px solid #f0d9a2; border-radius: 999px; background: #fffaf0; color: var(--wine); font-weight: 700; letter-spacing: .02em; text-transform: none; }
body.member-mode .nav-shell .member-status::before { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 50% 36%, #fff 0 18%, transparent 19%), radial-gradient(ellipse 60% 42% at 50% 100%, #fff 0 60%, transparent 61%), linear-gradient(135deg, #e9c46a, #b8860b); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
body.member-mode .nav-shell .member-status span { text-transform: capitalize; }
body.member-mode .nav-shell .login-link { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #6d1430, #a3264d); color: #fff; font-weight: 700; box-shadow: 0 6px 14px rgba(109, 20, 48, .22); cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
body.member-mode .nav-shell .login-link:hover { box-shadow: 0 10px 20px rgba(109, 20, 48, .3); transform: translateY(-1px); }
body.member-mode .nav-shell .nav-actions :is(button):focus-visible { outline: 3px solid #c8961c; outline-offset: 2px; }
@media (max-width: 700px) {
  body.member-mode .nav-shell .nav-actions { gap: 8px; }
  body.member-mode .nav-shell .header-compare { padding: 0 6px 0 10px; }
  body.member-mode .nav-shell .header-compare span { display: none; }
  body.member-mode .nav-shell .login-link { padding: 0 14px; }
  body.member-mode .nav-shell :is(.header-bell, .member-status) { display: none; } /* the bell is in the row below on phones */
}
@media (prefers-reduced-motion: reduce) { body.member-mode .nav-shell :is(.header-bell, .saved-nav, .login-link):hover { transform: none; } }
/* Background theme (2026-11-16, ui-ux-pro-max wedding palette adapted to the wine brand): the old beige page, cream box,
   cream sidebar and white cards were all near the same tone, so nothing stood apart. Now a soft blush-ivory page with faint
   gold and rose glows, rose-tinted borders, the sidebar as its own white floating card, white content cards floating on the
   blush, and a frosted white header. Text contrast stays above 4.5:1 on every surface. */
body.member-mode { --m-line: #f0e0e4; --m-blush: #fbf4f3; background: radial-gradient(60vw 50vh at 0 0, rgba(233, 196, 106, .13), transparent 70%), radial-gradient(55vw 55vh at 100% 100%, rgba(163, 38, 77, .07), transparent 70%), var(--m-blush) fixed; background-attachment: fixed; }
body.member-mode .site-header { background: rgba(255, 255, 255, .86); border-bottom: 1px solid #f0e0e4; box-shadow: 0 4px 18px rgba(74, 20, 40, .05); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
body.member-mode .member-topnav { background: rgba(255, 255, 255, .9); border-bottom-color: #f0e0e4; }
@media (min-width: 901px) {
  body.member-mode .member-layout { gap: 28px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  body.member-mode .member-sidebar { align-self: start; padding: 22px 14px 18px; border: 1px solid var(--m-line); border-radius: 22px; background: #fff; box-shadow: 0 10px 30px rgba(74, 20, 40, .07); }
  body.member-mode .member-main { padding: 0 0 30px; }
}
body.member-mode :is(.member-card, .member-panel, .member-profile-form, .member-filter-panel, .premium-preferences-form, .member-saved-searches, .member-stats > button, .daily-card, .home-tile, .member-profile-tips > *) { border-color: var(--m-line); }
body.member-mode .member-sidebar-links, body.member-mode .member-side-nav .member-nav-group + .member-nav-group { border-color: #f3e6e9; }
body.member-mode .home-section-title > span:not(.daily-countdown) { background: linear-gradient(90deg, #d9b26a, rgba(217, 178, 106, 0)); }

/* Member dashboard art (2026-11-19, owner mockup): a warm ivory page with soft gold light, the couple and jasmine art in the
   side gutters on wide screens, a transparent header with a larger logo, and a narrower shell (224px sidebar + page).
   The art strips are cut from the owner's mockup (assets/member-art-left.webp, member-art-right.webp) and sit behind the cards. */
:root { --member-w: 1400px; }
body.member-mode { background: radial-gradient(70vw 45vh at 50% -8%, rgba(255, 236, 205, .9), transparent 70%), radial-gradient(45vw 40vh at 100% 100%, rgba(163, 38, 77, .06), transparent 70%), #fbefe8; background-attachment: fixed; }
@media (min-width: 901px) {
  body.member-mode .site-header { position: relative; background: transparent; border-bottom: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.member-mode .nav-shell { height: auto; min-height: 112px; max-width: var(--member-w); }
  body.member-mode .brand-logo { height: 96px; margin-top: 4px; position: relative; left: 2mm; }
  body.member-mode .member-layout { grid-template-columns: 224px minmax(0, 1fr); gap: 24px; margin-top: 8px; }
  body.member-mode .member-sidebar { top: 16px; padding: 18px 12px 14px; border-radius: 20px; background: rgba(255, 255, 255, .94); }
  body.member-mode .member-nav-group > button { gap: 10px; padding: 8px 10px; font-size: 15px; }
}
body.member-mode #member-main .member-page-heading, body.member-mode .home-greeting { margin-bottom: 20px; }
body.member-mode .home-card, body.member-mode .member-stats > button, body.member-mode .member-card { background: rgba(255, 255, 255, .96); }
@media (min-width: 1620px) {
  body.member-mode::before, body.member-mode::after { content: ""; position: fixed; top: 0; bottom: 0; z-index: 0; width: 25.7vh; min-width: 232px; pointer-events: none; background-repeat: no-repeat; background-size: auto 100%; }
  body.member-mode::before { left: 0; background-image: url("/assets/member-art-left.webp"); background-position: left top; }
  body.member-mode::after { right: 0; background-image: url("/assets/member-art-right.webp"); background-position: right top; }
  body.member-mode :is(.site-header, .member-layout) { position: relative; z-index: 1; }
}
@media (min-width: 901px) {
  body.member-mode .member-nav-group > button { gap: 8px; padding: 7px 8px; font-size: 14.5px; white-space: nowrap; }
  body.member-mode .member-side-nav .member-nav-group > button > .icon { padding: 6px; }
}
@media (min-width: 1620px) {
  body.member-mode::before { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }
  body.member-mode::after { -webkit-mask-image: linear-gradient(to left, #000 80%, transparent); mask-image: linear-gradient(to left, #000 80%, transparent); }
}

/* ---- Member dashboard (owner's mockup, 2026-11-20): sidebar badge and temple art, banner, profile card, five numbers, recommended matches,
   quick actions, and the right column (membership, quick search, notifications) ---- */
body.member-mode .member-dash-badge { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 4px 16px; padding: 11px 14px; border: 2px solid #d9b05a; border-radius: 12px; background: linear-gradient(180deg, #7d1a42, #5c1232); color: #f6dc9a; font-weight: 700; font-size: 15px; letter-spacing: .01em; box-shadow: 0 6px 14px #5c12322e, inset 0 0 0 2px #5c1232; }
body.member-mode .member-dash-badge .icon { width: 20px; height: 20px; }
body.member-mode .member-side-nav .member-nav-title { display: none; }
body.member-mode .member-side-nav .member-nav-group + .member-nav-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
body.member-mode .member-temple { margin: 18px 8px 0; color: #d9b05a; opacity: .75; }
body.member-mode .member-temple svg { display: block; width: 100%; height: auto; max-height: 120px; }
body.member-mode .member-temple + .member-help { margin-top: 6px; }

body.member-mode .dash { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
body.member-mode .dash-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
body.member-mode .dash-rail { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
body.member-mode .dash-profile-line span { text-transform: capitalize; }
@media (max-width: 1180px) { body.member-mode .dash { grid-template-columns: minmax(0, 1fr); } body.member-mode .dash-rail { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }

body.member-mode .dash-banner { margin: 0; min-height: 110px; padding: 24px 30px; border-radius: 20px; border: 2px solid #d9b05a; box-shadow: 0 10px 24px #5c12323d, inset 0 0 0 3px #5c1232, inset 0 0 0 4px #d9b05a66; }
body.member-mode .dash-banner h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(26px, 2.6vw, 36px); }
body.member-mode .dash-banner p { position: relative; margin-top: 8px; padding-bottom: 14px; font-size: 1rem; }
body.member-mode .dash-banner p::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(280px, 60%); height: 8px; background: linear-gradient(90deg, #d9b05a, #d9b05a) left center / 100% 1px no-repeat; }
body.member-mode .dash-banner::before { content: ""; position: absolute; right: 24px; top: 50%; width: 120px; height: 120px; transform: translateY(-50%); border: 1.5px solid #e2bd7366; border-radius: 50%; box-shadow: 0 0 0 14px #e2bd7322, 0 0 0 15px #e2bd7344; pointer-events: none; }

body.member-mode .dash-profile { display: flex; align-items: center; gap: 20px; padding: 18px 22px; border: 1.5px solid #e6cf9d; border-radius: 18px; background: linear-gradient(180deg, #fffdf7, #fdf3dd); box-shadow: 0 6px 16px #5c12320f; }
body.member-mode .dash-avatar { flex: none; display: grid; place-items: center; width: 96px; height: 96px; padding: 0; overflow: hidden; border: 3px solid #fff; border-radius: 16px; background: #f3e6d3; color: #a6112a; box-shadow: 0 0 0 1.5px #d9b05a; cursor: pointer; }
body.member-mode .dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
body.member-mode .dash-avatar .icon { width: 44px; height: 44px; opacity: .6; }
body.member-mode .dash-profile-body { flex: 1; min-width: 0; }
body.member-mode .dash-profile-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
body.member-mode .dash-profile h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 22px; color: #5a1230 !important; }
body.member-mode .dash-complete { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: #dff2e1; color: #17643f; font-size: 13px; font-weight: 700; }
body.member-mode .dash-complete .icon { width: 14px; height: 14px; }
body.member-mode .dash-profile-id, body.member-mode .dash-profile-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 6px 0 0; color: #4a3a3f; font-size: 14px; }
body.member-mode .dash-profile-line span, body.member-mode .dash-profile-id { display: inline-flex; align-items: center; gap: 7px; }
body.member-mode .dash-profile-id { color: #6a5a5f; letter-spacing: .03em; }
body.member-mode .dash-profile .icon { width: 15px; height: 15px; color: #a8701c; flex: none; }
body.member-mode .dash-edit { flex: none; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 9px 20px; border: 1.5px solid #8a1538; border-radius: 999px; background: #fff; color: #7d1031; font-weight: 700; cursor: pointer; }
body.member-mode .dash-edit .icon { width: 15px; height: 15px; color: currentColor; }
body.member-mode .dash-edit:hover { background: #f8eef1; }

body.member-mode .dash-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
body.member-mode .dash-stat { --tone: #8a1538; --bg: #fde9ec; display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 108px; padding: 12px 8px; border: 1.5px solid #ecd8b0; border-radius: 16px; background: var(--bg); color: #4a0e29; text-align: center; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
body.member-mode .dash-stat:hover { transform: translateY(-3px); box-shadow: 0 12px 24px #5c123222; }
body.member-mode .dash-stat.is-rose { --bg: #fde9ec; --tone: #b3264f; }
body.member-mode .dash-stat.is-gold { --bg: #fdf1d3; --tone: #a86f00; }
body.member-mode .dash-stat.is-lilac { --bg: #efe8fb; --tone: #5b3f8c; }
body.member-mode .dash-stat.is-blue { --bg: #e4effb; --tone: #2f5f9a; }
body.member-mode .dash-stat.is-peach { --bg: #fdeadb; --tone: #b25a1a; }
body.member-mode .dash-stat-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--tone); box-shadow: 0 2px 6px #5c12321a; }
body.member-mode .dash-stat-icon .icon { width: 17px; height: 17px; }
body.member-mode .dash-stat-title { font-size: 13px; font-weight: 600; line-height: 1.2; color: #4a3a3f; }
body.member-mode .dash-stat strong { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--tone); font-variant-numeric: lining-nums tabular-nums; }
@media (max-width: 900px) { body.member-mode .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { body.member-mode .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

body.member-mode .dash-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
body.member-mode .dash-section-title h2 { display: flex; align-items: center; gap: 12px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 20px; color: #5a1230 !important; }
body.member-mode .dash-section-title h2 span { color: #d9b05a; font-size: 14px; }
body.member-mode .dash-section-title .text-link { flex: none; border: 0; padding: 0; background: none; color: #8a1538; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
body.member-mode .dash-empty { display: flex; align-items: center; gap: 14px; padding: 22px; border: 1.5px dashed #e2bd73; border-radius: 16px; background: #fffaf0; color: #6a5a5f; }
body.member-mode .dash-empty p { margin: 0; }
body.member-mode .dash-empty .icon { width: 28px; height: 28px; color: #b3264f; flex: none; }
body.member-mode .dash-carousel { position: relative; margin: 0 -2px; }
body.member-mode .dash-track { display: flex; gap: 14px; padding: 8px 4px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
body.member-mode .dash-track::-webkit-scrollbar { display: none; }
body.member-mode .dash-card { position: relative; flex: 0 0 188px; scroll-snap-align: start; padding: 8px 8px 12px; border: 1.5px solid #ecd8b0; border-radius: 16px; background: #fff; box-shadow: 0 6px 14px #5c12320f; }
body.member-mode .dash-card-photo { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #f3e6d3; cursor: pointer; }
body.member-mode .dash-card-photo .portrait { width: 100%; height: 100%; display: block; }
body.member-mode .dash-new { position: absolute; left: 8px; top: 8px; padding: 2px 10px; border-radius: 6px; background: #17643f; color: #fff; font-size: 11px; font-weight: 700; }
body.member-mode .dash-heart { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #b3264f; box-shadow: 0 2px 8px #0003; cursor: pointer; }
body.member-mode .dash-heart .icon { width: 16px; height: 16px; }
body.member-mode .dash-heart.is-saved { background: #b3264f; color: #fff; }
body.member-mode .dash-card-id { margin: 8px 0 0; font-size: 11.5px; letter-spacing: .04em; color: #7a6a62; }
body.member-mode .dash-card h3 { margin: 2px 0 0; font-size: 16px; font-weight: 700; color: #5a1230 !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.member-mode .dash-card-meta { margin: 2px 0 0; font-size: 12.5px; color: #4a3a3f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.member-mode .dash-card-place { display: flex; align-items: center; gap: 5px; margin: 2px 0 0; font-size: 12.5px; color: #6a5a5f; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.member-mode .dash-card-place .icon { width: 12px; height: 12px; color: #a8701c; flex: none; }
body.member-mode .dash-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
body.member-mode .dash-card-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; }
body.member-mode .dash-view { border: 0; background: linear-gradient(180deg, #a31a47, #7a0f2e); color: #fff; }
body.member-mode .dash-short { border: 1.5px solid #d6c3a3; background: #fff; color: #5a1230; }
body.member-mode .dash-short .icon { width: 12px; height: 12px; }
body.member-mode .dash-short.is-saved { border-color: #b3264f; color: #b3264f; background: #fde9ec; }
body.member-mode .dash-arrow { position: absolute; top: 40%; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #e2bd73; border-radius: 50%; background: #fff; color: #5a1230; box-shadow: 0 3px 10px #0002; cursor: pointer; }
body.member-mode .dash-arrow .icon { width: 16px; height: 16px; }
body.member-mode .dash-arrow-prev { left: -10px; transform: scaleX(-1); }
body.member-mode .dash-arrow-next { right: -10px; }

body.member-mode .dash-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; border: 2px solid #e2bd73; border-radius: 18px; background: linear-gradient(180deg, #fffdf7, #fdf1d6); }
body.member-mode .dash-quick p { display: flex; align-items: center; gap: 8px; margin: 0 8px 0 0; padding-right: 14px; border-right: 1.5px solid #e2bd73; color: #5a1230; font-family: Georgia, "Times New Roman", serif; font-size: 17px; }
body.member-mode .dash-quick p .icon { width: 22px; height: 22px; color: #d9a03a; }
body.member-mode .dash-quick-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1.5px solid #c9506f; border-radius: 999px; background: #fff; color: #8a1538; font-weight: 700; font-size: 14px; cursor: pointer; }
body.member-mode .dash-quick-btn .icon { width: 16px; height: 16px; }
body.member-mode .dash-quick-btn:hover { background: #fde9ec; }

body.member-mode .dash-box { padding: 16px 18px; border: 1.5px solid #e6cf9d; border-radius: 18px; background: linear-gradient(180deg, #fffdf7, #fdf6e6); box-shadow: 0 6px 16px #5c12320f; }
body.member-mode .dash-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; font-weight: 800; color: #5a1230 !important; }
body.member-mode .dash-box h2 .icon { width: 20px; height: 20px; color: #d9a03a; }
body.member-mode .dash-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.member-mode .dash-plan-name { margin: 0; font-size: 17px; font-weight: 800; color: #4a0e29; }
body.member-mode .dash-plan-name b { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: #dff2e1; color: #17643f; font-size: 12px; vertical-align: middle; }
body.member-mode .dash-plan-valid { margin: 6px 0 0; font-size: 13.5px; color: #6a5a5f; }
body.member-mode .dash-medal { flex: none; width: 56px; height: auto; }
body.member-mode .dash-plan-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 14px; padding: 10px 14px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #a31a47, #7a0f2e); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 5px 12px #7d103133; }
body.member-mode .dash-plan-btn .icon { width: 16px; height: 16px; }
body.member-mode .dash-search { display: grid; gap: 10px; }
body.member-mode .dash-search h2 { margin-bottom: 2px; }
body.member-mode .dash-search label { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 8px; font-size: 14px; color: #4a3a3f; }
body.member-mode .dash-search select, body.member-mode .dash-search input { width: 100%; min-height: 38px; padding: 4px 10px; border: 1.5px solid #d6c3a3; border-radius: 10px; background: #fff; color: #3a2d30; font-size: 14px; }
body.member-mode .dash-search-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; padding: 11px 14px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #a31a47, #7a0f2e); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 5px 12px #7d103133; }
body.member-mode .dash-search-btn .icon { width: 16px; height: 16px; }
body.member-mode .dash-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
body.member-mode .dash-notes-head h2 { margin: 0; }
body.member-mode .dash-notes-head .text-link { flex: none; border: 0; padding: 0; background: none; color: #8a1538; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
body.member-mode .dash-notes-head .text-link .icon { width: 13px; height: 13px; }
body.member-mode .dash-note { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 4px; border: 0; border-top: 1px solid #ecd8b0; background: none; text-align: left; cursor: pointer; }
body.member-mode .dash-note:first-child { border-top: 0; }
body.member-mode .dash-note-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fde9ec; color: #8a1538; }
body.member-mode .dash-note.is-new .dash-note-mark { background: #8a1538; color: #fff; }
body.member-mode .dash-note-mark .icon { width: 16px; height: 16px; }
body.member-mode .dash-note strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #3a2d30; }
body.member-mode .dash-note small { display: block; margin-top: 2px; font-size: 12px; color: #7a6a62; }
body.member-mode .dash-note-empty { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: #7a6a62; font-size: 13.5px; }
body.member-mode .dash-note-empty .icon { width: 16px; height: 16px; }
@media (max-width: 700px) {
  body.member-mode .dash-profile { flex-wrap: wrap; }
  body.member-mode .dash-edit { margin-left: auto; }
  body.member-mode .dash-banner::before { display: none; }
  body.member-mode .dash-arrow-prev { left: 0; } body.member-mode .dash-arrow-next { right: 0; }
  body.member-mode .dash-quick p { border-right: 0; width: 100%; }
}
body.member-mode .dash-card-actions button { white-space: nowrap; font-size: 11.5px; }
body.member-mode .member-dash-badge { font-size: 14px; gap: 8px; white-space: nowrap; }
body.member-mode .dash-banner::before { opacity: .55; }
@media (max-width: 700px) {
  body.member-mode .dash-avatar { width: 76px; height: 76px; }
  body.member-mode .dash-profile-body { flex: 1 1 calc(100% - 100px); }
  body.member-mode .dash-edit { order: 3; width: 100%; justify-content: center; margin-left: 0; }
  body.member-mode .dash-profile h2 { font-size: 19px; }
}
@media (max-width: 520px) { body.member-mode .dash-stat:last-child:nth-child(odd) { grid-column: span 2; } }
body.member-mode .dash-completion { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
body.member-mode .dash-ring { position: relative; flex: none; width: 88px; height: 88px; }
body.member-mode .dash-ring svg { display: block; width: 100%; height: 100%; }
body.member-mode .dash-ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 21px; font-weight: 800; color: #3a2d30; font-variant-numeric: lining-nums tabular-nums; }
body.member-mode .dash-completion-body { min-width: 0; }
body.member-mode .dash-box.dash-completion h2 { margin: 0 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
body.member-mode .dash-completion p { margin: 0 0 10px; font-size: 14px; line-height: 1.35; color: #3a2d30; }
body.member-mode .dash-complete-btn { display: inline-flex; align-items: center; gap: 8px; padding: 7px 18px; border: 1.5px solid #8a1538; border-radius: 999px; background: #fff; color: #7d1031; font-weight: 700; font-size: 13.5px; cursor: pointer; }
body.member-mode .dash-complete-btn .icon { width: 14px; height: 14px; }
body.member-mode .dash-complete-btn:hover { background: #f8eef1; }
body.member-mode .dash-completion { gap: 12px; padding: 14px; }
body.member-mode .dash-ring { width: 78px; height: 78px; }
body.member-mode .dash-ring strong { font-size: 19px; }
body.member-mode .dash-box.dash-completion h2 { font-size: 16.5px; white-space: nowrap; }
body.member-mode .dash-completion p { font-size: 13px; }
body.member-mode .dash-complete-btn { padding: 6px 12px; font-size: 13px; white-space: nowrap; }

/* ---- Temple picture in the member menu (owner's own artwork, 2026-11-20) ---- */
body.member-mode .member-temple { margin: 22px 6px 0; color: inherit; opacity: 1; }
body.member-mode .member-temple img { display: block; width: 100%; height: auto; max-height: 110px; object-fit: contain; filter: drop-shadow(0 2px 4px #7a4a0a29); }
body.member-mode .dash-quick { gap: 10px; }
body.member-mode .dash-quick-btn { padding: 8px 14px; font-size: 13.5px; }
body.member-mode .dash-quick p { margin-right: 4px; padding-right: 12px; }

/* ---- Tablet portrait (2026-11-20): from 701px to 900px the menu is hidden, so the page is one column. journey.css still kept two columns there, which pushed
   every member page into a 170px strip and made the page scroll sideways. ---- */
@media (max-width: 900px) {
  body.member-mode .member-layout { display: block; width: calc(100% - 32px); max-width: var(--member-w); padding-bottom: 95px; }
  body.member-mode .dash-rail { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* ---- Member header on tablets and phones (2026-11-20): with the larger language pill and Log out pill the row was wider than the screen (879px at 768, 497px at
   390). The name chip goes (the profile card shows the name), and the pills and round buttons are made compact. ---- */
@media (max-width: 900px) {
  body.member-mode .nav-shell .member-status { display: none; }
  body.member-mode .nav-shell { min-width: 0; }
  body.member-mode .nav-shell .nav-actions { min-width: 0; gap: 8px; }
  html body.member-mode .nav-shell .nav-actions .login-link { min-height: 40px; padding: 0 16px; border-width: 2px; font-size: 15px; }
  body.member-mode .language-switch { padding: 2px; }
  body.member-mode .language-switch .lang-option { min-height: 36px; padding: 4px 14px; font-size: 14px; }
  body.member-mode .nav-shell :is(.header-bell, .saved-nav) { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
  body.member-mode .nav-shell .nav-actions { gap: 5px; }
  html body.member-mode .nav-shell .nav-actions .login-link { min-height: 36px; padding: 0 11px; font-size: 14px; }
  body.member-mode .language-switch .lang-option { min-height: 32px; padding: 3px 10px; font-size: 13px; }
  body.member-mode .nav-shell .header-compare { min-height: 36px; padding: 0 5px 0 9px; }
  body.member-mode .nav-shell :is(.header-bell, .saved-nav) { width: 34px; height: 34px; }
}
body.member-mode .nav-shell .language-switch { flex: none; }
@media (max-width: 480px) {
  body.member-mode .nav-shell .header-compare { padding: 0 4px 0 8px; gap: 5px; }
  body.member-mode .nav-shell .header-compare b { min-width: 22px; height: 22px; padding: 0 4px; }
  body.member-mode .nav-shell .nav-actions { gap: 4px; }
  body.member-mode .brand-logo { height: 76px; left: 0; }
}
@media (max-width: 420px) { body.member-mode .nav-shell .header-compare { display: none; } } /* no room beside the pills; the compare tray at the bottom still opens when profiles are added */
@media (max-width: 350px) {
  body.member-mode .brand-logo { height: 56px; }
  html body.member-mode .nav-shell .nav-actions .login-link { padding: 0 8px; font-size: 13px; }
  body.member-mode .language-switch .lang-option { padding: 3px 7px; font-size: 12px; }
  body.member-mode .nav-shell :is(.header-bell, .saved-nav) { width: 30px; height: 30px; }
}
