/* =============================================================================
   MyClubLocator skin for AIM Optimize — Ice on Navy, calmer.
   Load AFTER src/index.css and brand/aim-brand.css.
   Tokens live in aim-brand.css. This file only points existing classes at them.
   ============================================================================= */

/* Saved admin theme colors must not paint over the brand test. */
html.aim {
  --theme-page-bg: var(--aim-bg) !important;
  --theme-card-header-bg: var(--aim-panel) !important;
  --theme-card-header-text: var(--aim-text) !important;
  --theme-card-body: var(--aim-panel) !important;
  --theme-card-header-weight: 700 !important;
  --site-font: var(--aim-font) !important;
}

html.aim,
html.aim body,
html.aim body:has(.admin-page-wrap),
html.aim #root,
html.aim #app-init-loader {
  background: var(--aim-bg) !important;
  color: var(--aim-text);
  font-family: var(--aim-font) !important;
}
html.aim body {
  background: var(--aim-bg) !important;
  color: var(--aim-text) !important;
}

/* No page halos, network lines, or forest washes. */
html.aim .ld-bg,
html.aim .ld-dot,
html.aim .auth-map-bg,
html.aim .auth-bg-dot,
html.aim .auth-hero-divider {
  display: none !important;
}
html.aim .ld-page,
html.aim .auth-hero,
html.aim .auth-form-zone,
html.aim .auth-page,
html.aim .auth-page-v2,
html.aim .pf-page,
html.aim .pfp-page,
html.aim .privacy-page,
html.aim .admin-page-wrap,
html.aim .dir-page,
html.aim .profile-page,
html.aim .rp-page {
  background: var(--aim-bg) !important;
  color: var(--aim-text) !important;
}

/* Type */
html.aim h1,
html.aim h2,
html.aim h3,
html.aim .page-title,
html.aim .ld-header-tagline,
html.aim .ld-header-brand,
html.aim .ld-gate-title,
html.aim .auth-hero-title,
html.aim .privacy-title,
html.aim .modal-title,
html.aim .welcome-title,
html.aim .demo-v3-title,
html.aim .contact-modal-title,
html.aim .pf-closed-title,
html.aim .pf-disclaimer-title {
  font-family: var(--aim-font) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--aim-text) !important;
}
html.aim h2,
html.aim h3,
html.aim .page-title,
html.aim .sec-label,
html.aim .ld-search-title,
html.aim .dc-name,
html.aim .admin-section-title,
html.aim .au-card-title,
html.aim .mp-search-card-name,
html.aim .pfp-place-name,
html.aim .demo-v3-sec-title,
html.aim .privacy-section h2,
html.aim .profile-name {
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  color: var(--aim-text) !important;
  font-family: var(--aim-font) !important;
}
html.aim .brand,
html.aim .brand span,
html.aim .ld-header-brand,
html.aim .ld-header-brand span,
html.aim .ld-header-tagline,
html.aim .ld-header-tagline em,
html.aim .pfp-brand,
html.aim .pfp-brand-green,
html.aim .auth-hero-title,
html.aim .auth-hero-title span,
html.aim .rp-brand,
html.aim .rp-brand span {
  color: var(--aim-text) !important;
}
html.aim label,
html.aim .field label,
html.aim .pf label,
html.aim .auth-panel label,
html.aim .ld-auth-label {
  color: var(--aim-text) !important;
  font-weight: 600 !important;
}

html.aim .sub,
html.aim .auth-card .sub,
html.aim .ld-search-sub,
html.aim .ld-stat i,
html.aim .ld-gate-text,
html.aim .auth-hero-sub,
html.aim .auth-stat-label,
html.aim .auth-live-text,
html.aim .auth-live-time,
html.aim .dc-city,
html.aim .profile-email,
html.aim .page-sub,
html.aim .admin-section-desc,
html.aim .au-card-where,
html.aim .privacy-updated,
html.aim .privacy-intro,
html.aim .contact-modal-sub,
html.aim .modal-message,
html.aim .modal-tagline,
html.aim .welcome-msg,
html.aim .welcome-sub,
html.aim .demo-v3-sub,
html.aim .demo-v3-eyebrow,
html.aim .pf-closed-msg,
html.aim .pf-disclaimer-text,
html.aim .mp-search-card-eyebrow,
html.aim .pfp-place-addr,
html.aim .pfp-panel-footer,
html.aim .topbar-user,
html.aim .pfp-auth-name,
html.aim .ld-owner-q,
html.aim .ld-footer,
html.aim .ld-pill,
html.aim .forgot-link a,
html.aim .ld-auth-forgot a,
html.aim .ld-check-email-hint,
html.aim .ld-check-email-sub,
html.aim .auth-toggle {
  color: var(--aim-text-2) !important;
}
html.aim a {
  color: var(--aim-c1);
}
html.aim .tabbar a,
html.aim .ld-footer a,
html.aim .privacy-back,
html.aim .privacy-section a,
html.aim .auth-toggle a,
html.aim .ld-auth-terms a,
html.aim .forgot-link a {
  color: var(--aim-text-2) !important;
}
html.aim .tabbar a.active,
html.aim .auth-toggle a,
html.aim .ld-auth-terms a,
html.aim .privacy-section a,
html.aim .ld-auth-tab.active {
  color: var(--aim-text) !important;
}
html.aim .tabbar a.active {
  border-bottom-color: var(--aim-c1) !important;
  font-weight: 700 !important;
}

/* Numbers — Inter 800, tabular. Never monospace. */
html.aim .ld-stat b,
html.aim .auth-stat-num,
html.aim .admin-stat-value,
html.aim .per-sqft-value,
html.aim .demo-v3-fit-grade,
html.aim .pfp-panel-count,
html.aim .rp-sum-route b,
html.aim .rp-club-num,
html.aim .aim-num {
  font-family: var(--aim-font-num) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1;
  color: var(--aim-text) !important;
}
html.aim .mc-hex-value {
  font-family: var(--aim-font-num) !important;
  font-weight: 800 !important;
  font-variant-numeric: tabular-nums !important;
  color: var(--aim-text-2) !important;
}

/* Full-bleed app chrome. Square to the viewport. Solid panel, not a gradient. */
html.aim .topbar,
html.aim .pfp-topbar,
html.aim .tabbar,
html.aim .rp-head,
html.aim .update-banner {
  background: var(--aim-panel) !important;
  background-image: none !important;
  color: var(--aim-text) !important;
  border: none !important;
  border-bottom: 1px solid var(--aim-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.aim .topbar-user,
html.aim .pfp-back-btn,
html.aim .pfp-auth-link,
html.aim .rp-head-tag,
html.aim .rp-back {
  color: var(--aim-text) !important;
}
html.aim .tabbar {
  border-bottom: 1px solid var(--aim-line) !important;
}
html.aim .tabbar a {
  border-bottom-color: transparent;
}

/* Panels and cards */
html.aim .sec-card,
html.aim .admin-section,
html.aim .admin-page-wrap .admin-section,
html.aim .dir-card,
html.aim .dir-card-mine,
html.aim .auth-card,
html.aim .ld-card-face,
html.aim .ld-card-front,
html.aim .ld-card-back,
html.aim .ld-owner-box,
html.aim .ld-gate-modal,
html.aim .privacy-card,
html.aim .contact-modal,
html.aim .modal-card,
html.aim .modal-box,
html.aim .welcome-card,
html.aim .au-card,
html.aim .pf-disc-card,
html.aim .pf-modal-card,
html.aim .pfp-leftpanel,
html.aim .pfp-panel-header,
html.aim .mp-search-card,
html.aim .map-toolbar-v2,
html.aim .tb2-dropdown,
html.aim .rp-leftpanel,
html.aim .rp-club,
html.aim .rp-saved-item,
html.aim .rp-loading,
html.aim .dc-financials-block,
html.aim .demo-v3,
html.aim .mobile-sheet,
html.aim .toast {
  background: var(--aim-panel) !important;
  background-image: none !important;
  color: var(--aim-text) !important;
  border: 1px solid var(--aim-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--aim-shadow) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
html.aim .map-toolbar-v2,
html.aim .tb2-dropdown,
html.aim .toast {
  border-radius: 16px !important;
}
html.aim .sec-card-band,
html.aim .survey-toggle-btn,
html.aim .admin-page-wrap .survey-toggle-btn,
html.aim .au-card-hdr,
html.aim .pfp-panel-header,
html.aim .rp-panel-head {
  background: transparent !important;
  background-image: none !important;
  color: var(--aim-text) !important;
  border: none !important;
  border-bottom: 1px solid var(--aim-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}
html.aim .sec-card-band .sec-label,
html.aim .survey-toggle-btn .sec-label,
html.aim .sec-card-header .sec-label,
html.aim .collapsed-club-names,
html.aim .admin-page-wrap .admin-section-title,
html.aim .survey-chevron,
html.aim .admin-page-wrap .survey-chevron,
html.aim .rp-ph-chev,
html.aim .rp-chev,
html.aim .pfp-panel-chevron {
  color: var(--aim-text) !important;
}
html.aim .survey-chevron,
html.aim .admin-page-wrap .survey-chevron,
html.aim .rp-ph-chev,
html.aim .rp-chev,
html.aim .pfp-panel-chevron {
  color: var(--aim-text-2) !important;
}
html.aim .sec-card-body,
html.aim .admin-card-body,
html.aim .au-card-edit,
html.aim .au-card-preview,
html.aim .rp-exp-about,
html.aim .ld-back-strip {
  background: transparent !important;
  color: var(--aim-text) !important;
  border-color: var(--aim-line) !important;
}
html.aim .ld-back-strip {
  background: var(--aim-panel) !important;
  border-top: 1px solid var(--aim-line) !important;
}
html.aim .ld-back-link,
html.aim .ld-back-link:hover {
  color: var(--aim-text) !important;
}

/* Fields and drop zones — never plain white in dark mode. */
html.aim input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="range"]):not([type="color"]),
html.aim select,
html.aim textarea,
html.aim .ld-search-input,
html.aim .ld-auth-input,
html.aim .auth-panel input,
html.aim .field input,
html.aim .pf input,
html.aim .pf textarea,
html.aim .pf select,
html.aim .addr-ac-input,
html.aim .pfp-search-row .addr-ac-input,
html.aim .pfp-leftpanel .addr-ac-input,
html.aim .rp-input,
html.aim .owner-photo-upload,
html.aim .owner-photo-preview,
html.aim .ld-search-dropdown,
html.aim .ql-toolbar.ql-snow,
html.aim .ql-container.ql-snow,
html.aim .ql-editor {
  background: var(--aim-input) !important;
  color: var(--aim-text) !important;
  border-color: var(--aim-stroke) !important;
  border-radius: 10px !important;
  font-family: var(--aim-font) !important;
  box-shadow: none !important;
}
html.aim input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="range"]):not([type="color"]),
html.aim select,
html.aim .ld-search-input,
html.aim .ld-auth-input,
html.aim .addr-ac-input,
html.aim .pfp-search-row .addr-ac-input {
  height: 34px !important;
  min-height: 34px !important;
}
html.aim textarea {
  height: auto !important;
  min-height: 96px !important;
  padding: 8px 12px !important;
}
html.aim input:focus,
html.aim select:focus,
html.aim textarea:focus,
html.aim .ld-search-input:focus,
html.aim .ld-auth-input:focus,
html.aim .addr-ac-input:focus {
  outline: none !important;
  border-color: var(--aim-c1) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--aim-c1) 45%, transparent) !important;
  background: var(--aim-input) !important;
}
html.aim input::placeholder,
html.aim textarea::placeholder {
  color: var(--aim-text-2) !important;
  opacity: 1;
}
html.aim input[type="checkbox"],
html.aim input[type="radio"] {
  accent-color: var(--aim-c1);
}
@media (max-width: 600px) {
  html.aim input,
  html.aim textarea,
  html.aim select {
    font-size: 16px !important;
  }
}

/* Buttons */
html.aim .btn-primary,
html.aim .btn-full,
html.aim .btn-save:not(.btn-save--secondary):not(.btn-save-map),
html.aim .modal-btn-primary,
html.aim .landing-btn,
html.aim .landing-btn--green,
html.aim .landing-btn--indigo,
html.aim .landing-btn--teal,
html.aim .ld-search-btn,
html.aim .ld-owner-mini--primary,
html.aim .ld-auth-btn--forest,
html.aim .ld-auth-btn--mint,
html.aim .ld-gate-yes,
html.aim .auth-btn,
html.aim .auth-btn--forest,
html.aim .auth-btn--mint,
html.aim .pf-accept-btn,
html.aim .mp-search-card-btn,
html.aim .pfp-routemap-cta,
html.aim .pfp-search-btn,
html.aim .demo-v3-export-btn,
html.aim .update-banner-refresh,
html.aim .rp-sa.save,
html.aim .rp-act.call,
html.aim .rp-note-submit,
html.aim .rp-pop-act button {
  background: var(--aim-btn-bg) !important;
  background-image: var(--aim-btn-bg) !important;
  color: var(--aim-btn-text) !important;
  border: none !important;
  border-radius: 12px !important;
  min-height: 36px !important;
  height: 36px;
  padding: 0 16px !important;
  font-family: var(--aim-font) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px var(--aim-glow) !important;
  animation: none !important;
}
html.aim .btn-full,
html.aim .ld-search-btn,
html.aim .ld-auth-btn,
html.aim .auth-btn,
html.aim .pf-accept-btn,
html.aim .mp-search-card-btn,
html.aim .pfp-routemap-cta,
html.aim .ld-gate-yes {
  width: 100%;
  height: 36px !important;
}
html.aim .ld-owner-mini,
html.aim .ld-owner-mini--primary,
html.aim .ld-owner-mini--ghost {
  width: auto !important;
  white-space: nowrap !important;
  height: 36px !important;
  padding: 0 18px !important;
}
html.aim .ld-gate-text,
html.aim .ld-gate-text b,
html.aim .ld-routelink,
html.aim .ld-routelink strong {
  color: var(--aim-text) !important;
}
html.aim .ld-routelink {
  background: var(--aim-panel) !important;
  border: 1px solid var(--aim-stroke) !important;
  font-family: var(--aim-font) !important;
}
html.aim .ld-content {
  box-sizing: border-box;
  padding-bottom: 72px !important;
}
html.aim .pfp-search-btn {
  width: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
}
html.aim .ld-search-btn::after { display: none !important; content: none !important; }
html.aim .ld-search-btn [stroke="#fff"],
html.aim .ld-search-btn [stroke="#ffffff"] { stroke: var(--aim-btn-text); }
html.aim .ld-search-btn [fill="#fff"],
html.aim .ld-search-btn [fill="#ffffff"] { fill: var(--aim-btn-text); }

html.aim .btn-outline,
html.aim .topbar .btn-outline,
html.aim .modal-btn-secondary,
html.aim .btn-save--secondary,
html.aim .btn-save-map,
html.aim .ld-locate-btn,
html.aim .ld-owner-mini--ghost,
html.aim .ld-oauth-btn,
html.aim .ld-gate-no,
html.aim .pfp-auth-link--accent,
html.aim .rp-back,
html.aim .rp-sa.print,
html.aim .rp-sa.share,
html.aim .rp-act.email,
html.aim .rp-act.dir,
html.aim .rp-act.web,
html.aim .rp-act.onmap,
html.aim .rp-pop-act a,
html.aim .rp-soc,
html.aim .dir-back-to-map,
html.aim .aim-theme-toggle {
  background: transparent !important;
  background-image: none !important;
  color: var(--aim-text) !important;
  border: 1px solid var(--aim-stroke) !important;
  border-radius: 12px !important;
  min-height: 36px;
  font-weight: 600 !important;
  box-shadow: none !important;
}
html.aim .aim-theme-toggle {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
}
html.aim .btn-primary:disabled,
html.aim .btn-full:disabled,
html.aim .auth-btn:disabled,
html.aim .ld-auth-btn:disabled,
html.aim button:disabled {
  opacity: .4 !important;
  cursor: default !important;
  box-shadow: none !important;
}

/* Pills and status */
html.aim .ld-search-eyebrow,
html.aim .private-tag,
html.aim .survey-progress-badge,
html.aim .survey-complete-badge,
html.aim .tb2-show-pill,
html.aim .map-popup-content .tag,
html.aim .welcome-icon {
  background: color-mix(in srgb, var(--aim-c1) 16%, transparent) !important;
  color: var(--aim-text) !important;
  border: 1px solid color-mix(in srgb, var(--aim-c1) 34%, transparent) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
}
html.aim .success-msg,
html.aim .map-popup-content .tag-live,
html.aim .welcome-icon--green {
  background: color-mix(in srgb, var(--aim-ok) 18%, transparent) !important;
  color: var(--aim-ok) !important;
  border-color: color-mix(in srgb, var(--aim-ok) 35%, transparent) !important;
}
html.aim .error-msg,
html.aim .tab-unread-badge,
html.aim .pfp-saved-badge {
  background: color-mix(in srgb, var(--aim-err) 16%, transparent) !important;
  color: var(--aim-err) !important;
  border-color: color-mix(in srgb, var(--aim-err) 35%, transparent) !important;
}
html.aim .tab-unread-badge,
html.aim .pfp-saved-badge {
  color: var(--aim-err) !important;
}
html.aim .info-msg,
html.aim .map-popup-content .tag-mine,
html.aim .welcome-icon--blue {
  background: color-mix(in srgb, var(--aim-c1) 16%, transparent) !important;
  color: var(--aim-text) !important;
  border-color: color-mix(in srgb, var(--aim-c1) 34%, transparent) !important;
}
html.aim .private-tag,
html.aim .welcome-icon--amber,
html.aim .pfp-fallback-text {
  background: color-mix(in srgb, var(--aim-warn) 18%, transparent) !important;
  color: var(--aim-warn) !important;
  border-color: color-mix(in srgb, var(--aim-warn) 35%, transparent) !important;
}
html.aim .per-sqft-display,
html.aim .per-sqft-label {
  background: color-mix(in srgb, var(--aim-ok) 14%, var(--aim-panel)) !important;
  color: var(--aim-text) !important;
  border-color: color-mix(in srgb, var(--aim-ok) 35%, transparent) !important;
}
html.aim .per-sqft-display.empty,
html.aim .per-sqft-display.empty .per-sqft-label,
html.aim .per-sqft-display.empty .per-sqft-value {
  background: var(--aim-input) !important;
  color: var(--aim-text-2) !important;
  border-color: var(--aim-line) !important;
}

/* Progress — same gradient as primary buttons, 7px. */
html.aim .demo-v3-dist-bar-wrap,
html.aim .onb-prog-step,
html.aim .aim-progress {
  height: 7px !important;
  border-radius: 999px !important;
  background: var(--aim-line) !important;
}
html.aim .demo-v3-dist-bar,
html.aim .demo-v3-dist-bar.hi,
html.aim .onb-prog-step.done,
html.aim .aim-progress > span {
  background: var(--aim-btn-bg) !important;
  background-image: var(--aim-btn-bg) !important;
  border-radius: 999px !important;
}

/* Survey nudge */
html.aim .survey-nudge {
  background: color-mix(in srgb, var(--aim-warn) 18%, var(--aim-panel)) !important;
  color: var(--aim-text) !important;
  border-bottom: 1px solid color-mix(in srgb, var(--aim-warn) 40%, transparent) !important;
}
html.aim .survey-nudge,
html.aim .survey-nudge span,
html.aim .survey-nudge-dismiss {
  color: var(--aim-text) !important;
}

/* Demographics */
html.aim .demo-v3,
html.aim .demo-v3-title,
html.aim .demo-v3-fit-head,
html.aim .demo-v3-dist-lbl,
html.aim .dc-financials-title {
  color: var(--aim-text) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
html.aim .demo-v3-fit-grade {
  border-radius: 50% !important;
  box-shadow: none !important;
  border: 1px solid var(--aim-line) !important;
  color: var(--aim-text) !important;
}
html.aim .demo-v3-hdr,
html.aim .demo-v3-sec-hdr {
  border-bottom-color: var(--aim-line) !important;
}

/* Map chrome */
html.aim .leaflet-popup-content-wrapper,
html.aim .leaflet-popup-tip,
html.aim .leaflet-tooltip,
html.aim .leaflet-tooltip.rp-tipwrap {
  background: var(--aim-panel) !important;
  color: var(--aim-text) !important;
  border: 1px solid var(--aim-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--aim-shadow) !important;
}
html.aim .leaflet-popup-tip,
html.aim .leaflet-tooltip.rp-tipwrap::before {
  border-top-color: var(--aim-panel) !important;
}
html.aim .leaflet-bar a,
html.aim .leaflet-control-attribution {
  background: var(--aim-panel) !important;
  color: var(--aim-text-2) !important;
  border-color: var(--aim-line) !important;
}
html.aim .leaflet-container {
  background: var(--aim-bg) !important;
  font-family: var(--aim-font) !important;
}
html.aim .map-popup-content .name,
html.aim .map-popup-content .line,
html.aim .tb2-btn,
html.aim .tb2-dropdown-title,
html.aim .pfp-map-hint {
  color: var(--aim-text) !important;
}
html.aim .map-popup-content .line,
html.aim .tb2-dropdown-title,
html.aim .pfp-map-hint {
  color: var(--aim-text-2) !important;
}
html.aim .pfp-map-hint {
  background: var(--aim-panel) !important;
  border: 1px solid var(--aim-line) !important;
}
html.aim .tb2-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  color: var(--aim-text) !important;
}
html.aim .tb2-btn:hover,
html.aim .dir-card:hover,
html.aim .ld-search-dropdown-item:hover,
html.aim .ld-search-dropdown-item.highlighted {
  background: color-mix(in srgb, var(--aim-c1) 12%, transparent) !important;
  color: var(--aim-text) !important;
}
html.aim .dc-logo,
html.aim .dc-initials,
html.aim .avatar {
  background: var(--aim-input) !important;
  color: var(--aim-text) !important;
  border-color: var(--aim-line) !important;
}
html.aim .ld-header-icon,
html.aim .auth-stat-chip,
html.aim .auth-live-bar {
  background: var(--aim-panel) !important;
  border: 1px solid var(--aim-line) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--aim-text) !important;
}
html.aim .auth-live-dot { background: var(--aim-ok) !important; }
html.aim .auth-live-text strong { color: var(--aim-text) !important; }

html.aim .privacy-card,
html.aim .privacy-title,
html.aim .privacy-section h2,
html.aim .privacy-section p,
html.aim .privacy-section li,
html.aim .privacy-intro,
html.aim .privacy-logo,
html.aim .privacy-back,
html.aim .privacy-footer-note,
html.aim .privacy-contact-row,
html.aim .privacy-contact-row strong {
  color: var(--aim-text) !important;
}
html.aim .privacy-section p,
html.aim .privacy-section li,
html.aim .privacy-intro,
html.aim .privacy-updated,
html.aim .privacy-back {
  color: var(--aim-text-2) !important;
}
html.aim .privacy-logo-pin {
  background: var(--aim-c1) !important;
}
html.aim .privacy-logo-pin [fill="#fff"] { fill: var(--aim-btn-text); }
html.aim .privacy-section,
html.aim .privacy-section h2 {
  border-color: var(--aim-line) !important;
}

html.aim .pfp-geo-btn,
html.aim .pf-locate-btn,
html.aim .map-geolocate-btn {
  background: var(--aim-input) !important;
  color: var(--aim-text) !important;
  border: 1px solid var(--aim-stroke) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
html.aim .pfp-gmaps-btn,
html.aim .pfp-gmaps-btn * {
  color: #fff !important;
}
html.aim .pfp-geo-error {
  background: color-mix(in srgb, var(--aim-err) 16%, var(--aim-panel)) !important;
  color: var(--aim-err) !important;
}

html.aim .auth-hero-icon,
html.aim .ld-check-email-icon,
html.aim .ld-gate-shield,
html.aim .au-card-icon {
  background: color-mix(in srgb, var(--aim-c1) 16%, transparent) !important;
  color: var(--aim-c1) !important;
}
html.aim .ld-auth-indicator,
html.aim .auth-tab-indicator {
  background: var(--aim-c1) !important;
}
html.aim .ld-auth-tab,
html.aim .auth-tab {
  color: var(--aim-text-2) !important;
  background: transparent !important;
}
html.aim .ld-search-dropdown-main,
html.aim .ld-check-email-title,
html.aim .ld-check-email-addr {
  color: var(--aim-text) !important;
  font-weight: 700 !important;
}
html.aim .ld-stat-div,
html.aim .ld-stats,
html.aim .auth-tabs,
html.aim .ld-auth-tabs,
html.aim .profile-head,
html.aim .next-card-row {
  border-color: var(--aim-line) !important;
}
html.aim .next-card-btn {
  background: transparent !important;
  color: var(--aim-text) !important;
  border: 1px solid var(--aim-stroke) !important;
  border-radius: 12px !important;
  min-height: 36px;
}

/* Route planner text that was forest green or low-contrast gray. */
html.aim .rp-club-name,
html.aim .rp-pop-n,
html.aim .rp-ph-title,
html.aim .rp-rhead,
html.aim .rp-saved-h,
html.aim .rp-saved h3,
html.aim .rp-pa-title,
html.aim .rp-tip-h,
html.aim .rp-pop-h,
html.aim .rp-club-hrs,
html.aim .rp-si-t,
html.aim .rp-exp-owner b {
  color: var(--aim-text) !important;
  font-family: var(--aim-font) !important;
  font-weight: 700 !important;
}
html.aim .rp-club-addr,
html.aim .rp-pop-a,
html.aim .rp-exp-owner,
html.aim .rp-exp-since,
html.aim .rp-ph-meta,
html.aim .rp-empty,
html.aim .rp-club-dist,
html.aim .rp-exp-l,
html.aim .rp-startover,
html.aim .rp-exp-about,
html.aim .rp-sum-route,
html.aim .rp-hrow,
html.aim .rp-hrow span,
html.aim .rp-si-s,
html.aim .rp-head-tag {
  color: var(--aim-text-2) !important;
}
html.aim .rp-badge,
html.aim .rp-chip,
html.aim .rp-nowtog,
html.aim .rp-pill {
  background: color-mix(in srgb, var(--aim-c1) 16%, transparent) !important;
  color: var(--aim-text) !important;
  border: 1px solid color-mix(in srgb, var(--aim-c1) 34%, transparent) !important;
  border-radius: 999px !important;
}
html.aim .rp-badge.on,
html.aim .rp-chip.on,
html.aim .rp-nowtog.on {
  background: color-mix(in srgb, var(--aim-ok) 18%, transparent) !important;
  color: var(--aim-ok) !important;
  border-color: color-mix(in srgb, var(--aim-ok) 35%, transparent) !important;
}
html.aim .rp-badge.near,
html.aim .rp-chip.near,
html.aim .rp-flag,
html.aim .rp-club.near .rp-club-num {
  background: color-mix(in srgb, var(--aim-warn) 18%, transparent) !important;
  color: var(--aim-warn) !important;
}
html.aim .rp-club-hrs.cl,
html.aim .rp-tip-h.cl,
html.aim .rp-pop-h.cl,
html.aim .rp-si-del,
html.aim .rp-startover:hover {
  color: var(--aim-err) !important;
}
html.aim .rp-club {
  border-left: 4px solid var(--aim-c1) !important;
}
html.aim .rp-club.near { border-left-color: var(--aim-warn) !important; }
html.aim .rp-exp-logo.ph {
  background: color-mix(in srgb, var(--aim-c1) 16%, var(--aim-panel)) !important;
  color: var(--aim-text) !important;
  font-family: var(--aim-font) !important;
}
html.aim .rp-map-wrap .leaflet-container { background: var(--aim-bg) !important; }

/* Quill */
html.aim .ql-snow .ql-stroke { stroke: var(--aim-text) !important; }
html.aim .ql-snow .ql-fill,
html.aim .ql-snow .ql-stroke.ql-fill { fill: var(--aim-text) !important; }
html.aim .ql-snow .ql-picker,
html.aim .ql-snow .ql-picker-label { color: var(--aim-text) !important; }
html.aim .ql-snow .ql-picker-options { background: var(--aim-panel) !important; color: var(--aim-text) !important; }
html.aim .ql-snow.ql-toolbar button:hover,
html.aim .ql-snow.ql-toolbar button.ql-active,
html.aim .ql-snow a { color: var(--aim-c1) !important; }
html.aim .ql-editor.ql-blank::before { color: var(--aim-text-2) !important; }

/* Small sky accent on the target mark and other leftover green/purple icons.
   Never inside a map marker or the admin marker preview: those colors are saved data
   (the default team marker is #7C3AED, which this list would otherwise repaint). */
html.aim [fill="#4CAF82"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [fill="#1D9E75"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [fill="#0F6E56"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [fill="#1A3C2E"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [fill="#2d7a52"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [fill="#534AB7"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [fill="#7C3AED"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [fill="#4F46E5"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *) { fill: var(--aim-c1); }
html.aim [stroke="#4CAF82"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#1D9E75"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#0F6E56"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#1A3C2E"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#2d7a52"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#534AB7"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#7C3AED"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#4F46E5"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#185FA5"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#2563EB"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *) { stroke: var(--aim-c1); }
html.aim [stroke="#854F0B"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *) { stroke: var(--aim-warn); }
html.aim [fill="#854F0B"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *) { fill: var(--aim-warn); }
html.aim [stroke="#E24B4A"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [stroke="#e24b4a"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *) { stroke: var(--aim-err); }
html.aim [fill="#E24B4A"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *),
html.aim [fill="#e24b4a"]:not(.leaflet-marker-icon *, .mc-preview-map *, [data-keep-colors], [data-keep-colors] *) { fill: var(--aim-err); }

/* Theme control and credit line */
html.aim .aim-authbar {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 1400;
  padding: 0;
}
/* "Built by" credit: a real footer strip under the app, never floating over it.
   A pinned mark sat on top of the "Own a nutrition club?" card and of bottom sheets on phones.
   The page gives up --mcl-foot of height instead, so the mark covers nothing on any screen. */
html.aim { --mcl-foot: 38px; }
html.aim body {
  display: flex;
  flex-direction: column;
  height: 100%;
}
html.aim #root {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}
html.aim .aim-mark {
  position: static;
  flex: 0 0 auto;
  align-self: center;
  box-sizing: border-box;
  height: 26px;
  margin: 6px auto;
  transform: none;
  pointer-events: none;
  background: transparent;
  border: 0;
  padding: 0 10px;
  max-width: calc(100vw - 24px);
}
/* Pages that scroll as a document: let the page grow and put the strip after it. */
html.aim body:has(.ld-page, .auth-page, .auth-page-v2, .privacy-page, .pf-page, .landing-page, .signup-layout, .onb-page) {
  height: auto;
  min-height: 100%;
}
html.aim body:has(.ld-page, .auth-page, .auth-page-v2, .privacy-page, .pf-page, .landing-page, .signup-layout, .onb-page) #root {
  flex: 1 0 auto;
}
html.aim .ld-page,
html.aim .ld-content,
html.aim .auth-page,
html.aim .auth-page-v2,
html.aim .privacy-page,
html.aim .pf-page,
html.aim .landing-page,
html.aim .signup-layout,
html.aim .onb-page {
  min-height: calc(100vh - var(--mcl-foot)) !important;
  min-height: calc(100svh - var(--mcl-foot)) !important;
}
/* Full-height screens (signed-in shell, finder, route planner, map): same sums as before, minus the strip. */
html.aim #root > div[style*="height: 100vh"],
html.aim .pfp-page,
html.aim .rp-page {
  height: 100% !important;
}
html.aim .map-page,
html.aim .map-wrapper {
  height: calc(100vh - 104px - var(--mcl-foot)) !important;
  height: calc(100dvh - 104px - var(--mcl-foot)) !important;
}
@media (max-width: 600px) {
  html.aim .map-page {
    height: calc(100vh - 90px - var(--mcl-foot)) !important;
    height: calc(100dvh - 90px - var(--mcl-foot)) !important;
  }
}

/* Phone width */
@media (max-width: 520px) {
  html.aim .pfp-topbar {
    height: auto !important;
    min-height: 48px;
    flex-wrap: wrap !important;
    overflow: visible;
    row-gap: 6px;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  html.aim .pfp-brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px !important;
  }
  html.aim .pfp-auth-zone {
    flex: 1 1 100%;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    min-width: 0;
    row-gap: 6px;
  }
  html.aim .pfp-auth-link,
  html.aim .pfp-auth-link--accent {
    font-size: 12px !important;
    padding: 0 10px !important;
    min-height: 36px !important;
    white-space: nowrap !important;
  }
  html.aim .topbar {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  html.aim .ld-card-face,
  html.aim .ld-owner-box,
  html.aim .auth-card,
  html.aim .contact-modal,
  html.aim .pf-modal-card,
  html.aim .modal-card {
    border-radius: 16px !important;
  }
  html.aim .pfp-leftpanel,
  html.aim .rp-leftpanel {
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    max-width: none !important;
  }
  html.aim .map-toolbar-v2 {
    max-width: calc(100vw - 16px) !important;
  }
  html.aim .aim-mark {
    margin-bottom: max(6px, env(safe-area-inset-bottom));
  }
}

/* Paper. The route planner prints a route sheet (window.print). Printing drops backgrounds, so the dark
   theme's pale text would land on white paper. On paper the page is always white with dark ink,
   whatever the screen theme is, and the theme control and credit line stay off the sheet. */
@media print {
  html.aim,
  html.aim[data-theme="dark"],
  html.aim[data-theme="light"] {
    --aim-c1: #0369A1 !important;
    --aim-c2: #3B4FD0 !important;
    --aim-bg: #EDF2FB !important;
    --aim-text: #0B1220 !important;
    --aim-text-2: #566275 !important;
    --aim-line: #D6DEEC !important;
    --aim-stroke: rgba(11, 18, 32, .28) !important;
    --aim-panel: #FFFFFF !important;
    --aim-panel-solid: #FFFFFF !important;
    --aim-input: #F4F7FC !important;
    --aim-shadow: 0 14px 34px rgba(30, 60, 120, .10) !important;
    --aim-btn-text: #ffffff !important;
    --aim-warn: #92400E !important;
    --aim-err: #B91C1C !important;
    --aim-ok: #15803D !important;
    --aim-danger-bg: #B91C1C !important;
    --aim-danger-text: #ffffff !important;
    --aim-halo-c2: transparent !important;
    --aim-halo-c1: transparent !important;
    --aim-glow: rgba(3, 105, 161, .28) !important;
    --mcl-bar: #FFFFFF !important;
  }
  html.aim,
  html.aim body,
  html.aim #root {
    background: #fff !important;
    color: #0B1220 !important;
  }
  html.aim #rp-print,
  html.aim #rp-print * {
    background-image: none !important;
  }
  html.aim .aim-mark,
  html.aim .aim-authbar,
  html.aim .aim-theme-toggle {
    display: none !important;
  }
}

/* Route planner header on a phone: keep "Find a club" and the page tag on one line each. */
@media (max-width: 520px) {
  html.aim .rp-back { white-space: nowrap; padding: 7px 10px !important; font-size: 12.5px !important; }
  html.aim .rp-brand { font-size: 15px !important; white-space: nowrap; }
  html.aim .rp-head-tag { white-space: nowrap; font-size: 11px !important; }
  html.aim .rp-head { gap: 8px !important; padding-left: 10px !important; padding-right: 10px !important; }
}

/* Pop-ups with a field and a button side by side ("Refer a Friend"): on a phone the button ran off the
   right edge (it did in the old look too). Let the field give way so the button stays whole. */
html.aim .modal-card [style*="display: flex"] > input {
  min-width: 0;
}

/* Gradient only on primary buttons and progress bars: the two notice banners become solid. */
html.aim .admin-mode-banner {
  background: #7A1D1D !important;
  background-image: none !important;
  color: #fff !important;
}
html.aim .add-club-gate-banner {
  background: #92491B !important;
  background-image: none !important;
  color: #fff !important;
}

/* Bars pinned to the bottom of the screen sit above the credit strip, not on it. */
html.aim .profile-sticky-footer {
  bottom: var(--mcl-foot) !important;
}
html.aim .toast {
  bottom: calc(24px + var(--mcl-foot)) !important;
}
