@font-face { font-family:'Plus Jakarta Sans'; src:url('/fonts/PlusJakartaSans.woff2') format('woff2'); font-style:normal; font-weight:200 800; font-display:swap; }
/* Final layout contract. Keep composite controls as ONE surface; older theme
   layers may style the wrapper and input independently. Loaded after themes. */
html body .search-field {
  display:flex !important; align-items:center !important; gap:10px !important;
  width:100% !important; max-width:680px; height:52px !important; min-height:52px !important;
  padding:0 16px !important; box-sizing:border-box; border-radius:18px !important;
  background:var(--rx-card,#fff) !important; border:1px solid var(--rx-line,#dce5df) !important;
  box-shadow:none !important; overflow:hidden;
}
html body .search-field:focus-within { border-color:var(--rx-accent,#0e7c5a) !important; box-shadow:0 0 0 3px var(--rx-soft,#e4f3ec) !important; }
html body .search-field > svg { position:static !important; transform:none !important; flex:0 0 19px; width:19px !important; height:19px !important; }
html body .search-field input#catalog-search {
  flex:1 1 0% !important; width:0 !important; min-width:0 !important; height:100% !important; min-height:0 !important;
  padding:0 !important; margin:0 !important; border:0 !important; border-radius:0 !important;
  background:transparent !important; box-shadow:none !important; outline:none !important;
  font-size:16px !important; color:var(--rx-ink,#15211b) !important;
}
html body .mobile-toggle .rx-burger { display:flex !important; flex-direction:column; justify-content:center; gap:4px; width:19px; height:22px; background:none !important; }
html body .mobile-toggle .rx-burger i { display:block !important; width:19px !important; height:2px !important; min-height:2px !important; margin:0 !important; background:currentColor !important; border:0 !important; border-radius:2px; position:static !important; transform:none; }
html body .btn:not(.secondary):not(.ghost):not(.danger),
html body .auth-submit-btn, html body .register-submit-btn {
  border-radius:16px !important; background:linear-gradient(135deg,#128263,#07533f) !important;
  color:#fff !important; border:1px solid transparent !important;
  box-shadow:0 8px 20px -12px #07533f99 !important; animation:none !important;
}
html body .btn { min-height:44px; gap:9px; transition:background .18s,box-shadow .18s,transform .18s; }
html body .btn::before, html body .btn::after { pointer-events:none; }
html body .auth-submit-btn { width:100% !important; height:auto !important; min-height:52px !important; padding:14px 18px !important; white-space:normal !important; line-height:1.4 !important; }
html body .auth-submit-btn svg { flex-shrink:0; }
html body .auth-panel {
  width:100% !important; max-width:480px !important; height:auto !important; max-height:none !important;
  margin:12px auto 40px !important; padding:32px !important; box-sizing:border-box;
  overflow:visible !important; border-radius:24px !important;
  border:1px solid var(--rx-line,#dce5df) !important; background:var(--rx-card,#fff) !important;
  box-shadow:0 18px 64px -40px #173d2f55 !important;
}
html body .auth-header-block { margin-bottom:26px !important; text-align:left !important; }
html body .auth-panel .auth-art { display:none !important; }
html body .auth-header-block h2 { font-size:clamp(25px,4vw,32px) !important; line-height:1.18 !important; letter-spacing:-.035em !important; color:var(--rx-ink,#15211b) !important; margin:14px 0 12px !important; }
html body .auth-header-block p { font-size:14px !important; line-height:1.7 !important; color:var(--rx-ink-2,#4d5b53) !important; }
html body .auth-pill-badge { font-size:10px !important; letter-spacing:.08em; }
html body .auth-panel .field { min-width:0; margin-bottom:18px !important; }
html body .auth-panel input:not([type="checkbox"]):not([type="radio"]), html body .auth-panel select { font-size:16px !important; min-height:48px; box-sizing:border-box; }
html body .auth-remember-field input[type="checkbox"] { width:18px !important; height:18px !important; min-height:18px !important; flex:0 0 18px; accent-color:#0e7c5a; }
html body .remember-me-label { display:flex !important; gap:12px !important; align-items:center !important; }
html body .remember-me-label small { display:block; line-height:1.5; }
html body .verification-required-note { font-size:13px; line-height:1.6; }
html body .verification-required-note small { display:block; }
html body .auth-footer-card { margin-top:24px !important; border-radius:16px !important; }
html body[data-page] nav.mobile-nav { z-index:100 !important; }
html body .content { min-width:0; }
html body .topbar .top-actions { flex-shrink:0; }
@media(min-width:1001px) {
  html body[data-page] nav.mobile-nav { display:none !important; }
  html body .topbar { flex-wrap:wrap; height:auto !important; min-height:80px; }
  html body .topbar .header-search { flex:1 1 220px; max-width:380px; }
  html body .top-nav { flex-wrap:wrap; }
}
@media(max-width:1000px) {
  html body .topbar { display:flex !important; }
  html body[data-page] nav.mobile-nav { display:flex !important; position:fixed !important; bottom:calc(10px + env(safe-area-inset-bottom,0px)) !important; left:12px !important; right:12px !important; width:auto !important; max-width:560px; margin-inline:auto; border-radius:22px !important; }
  html body .mobile-nav a { flex:1; min-width:0 !important; min-height:48px; padding:6px 2px !important; }
  html body .content { padding-bottom:calc(110px + env(safe-area-inset-bottom,0px)) !important; }
  html body .auth-panel { padding:24px 20px !important; margin:8px auto 24px !important; }
  html body .auth-wrap { padding-bottom:0 !important; }
}
@media(prefers-reduced-motion:reduce) { html body .btn, html body .mobile-nav a { transition:none !important; animation:none !important; } }
/* Remove the remaining lavender active pills and clipped catalogue controls. */
html body .tab.active, html body .filter-tab.active, html body .tabs .active {
  color:#fff !important; background:linear-gradient(135deg,#128263,#07533f) !important;
  border-color:transparent !important; box-shadow:0 6px 18px -12px #07533f88 !important;
}
html body .btn.secondary { background:var(--rx-card,#fff) !important; color:var(--rx-ink,#15211b) !important; border:1px solid var(--rx-line,#dce5df) !important; box-shadow:none !important; border-radius:16px !important; }
html body .collection-controls { display:flex !important; flex-wrap:wrap !important; gap:8px !important; overflow:visible !important; }
html body .collection-controls .toggle-pill { min-height:40px; white-space:normal; }
html body .auth-panel.auth-panel .auth-header-block h2 { color:var(--rx-ink,#15211b) !important; }

/* Editorial typography + precision-cut controls. Local font files only. */
@font-face { font-family:'HxH Display'; src:url('/fonts/Sora.woff2') format('woff2'); font-weight:400 800; font-style:normal; font-display:swap; }
html body #app { font-family:'Plus Jakarta Sans',system-ui,sans-serif !important; }
html body #app :is(h1,h2,h3,.hero h2,.page-heading h1,.auth-header-block h2) {
  font-family:'HxH Display','Plus Jakarta Sans',sans-serif !important;
  font-weight:650 !important; letter-spacing:-.045em !important; text-wrap:balance;
}
html body #app :is(p,input,select,textarea,label,button,.btn,.top-nav,.nav-item) { font-family:'Plus Jakarta Sans',system-ui,sans-serif !important; }
html body #app .page-heading h1 { font-size:clamp(28px,3vw,42px) !important; line-height:1.17 !important; }
html body #app .page-heading p { max-width:56ch; font-size:14px !important; line-height:1.8 !important; }
html body #app .auth-panel.auth-panel { border-radius:20px !important; padding:36px !important; }
html body #app .auth-panel .auth-header-block { margin-bottom:28px !important; }
html body #app .auth-panel .auth-header-block h2 { font-size:clamp(29px,4vw,38px) !important; line-height:1.19 !important; margin:18px 0 16px !important; }
html body #app .auth-header-block h2 span { color:var(--rx-accent,#0e7c5a); }
html body #app .auth-panel .auth-header-block p { font-size:13px !important; line-height:1.85 !important; }
html body #app .auth-pill-badge { border-radius:6px !important; padding:7px 10px !important; font-size:9px !important; letter-spacing:.12em !important; }
html body #app .auth-brand-emblem { border-radius:16px !important; box-shadow:0 6px 16px -12px #07533f55 !important; }
html body #app .btn,
html body #app .btn.secondary,
html body #app .auth-submit-btn,
html body #app .register-submit-btn {
  border-radius:10px !important; min-height:46px; padding:12px 20px;
  font-size:13px !important; font-weight:700 !important; letter-spacing:-.01em !important;
  line-height:1.45 !important; text-shadow:none !important;
  box-shadow:0 2px 3px -2px #052e2526,0 5px 12px -9px #052e2544 !important;
  transform:none; animation:none !important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
html body #app .btn::before,html body #app .btn::after { display:none !important; }
html body #app .btn.small { min-height:38px; padding:9px 14px !important; font-size:12px !important; border-radius:8px !important; }
html body #app .btn:not(.secondary):not(.danger):not(.ghost) { background:linear-gradient(120deg,#087957,#075840) !important; color:#fff !important; }
html body #app .btn.secondary { background:var(--rx-card,#fff) !important; border:1px solid var(--rx-line,#dce5df) !important; color:var(--rx-ink,#15211b) !important; }
html body #app .auth-submit-btn { min-height:52px !important; font-size:14px !important; }
html body #app :is(.tab,.filter-tab,.toggle-pill) { border-radius:9px !important; box-shadow:none !important; font-size:12px; font-weight:650; }
html body #app .auth-panel input:not([type="checkbox"]):not([type="radio"]),html body #app .auth-panel select { border-radius:10px !important; }
html body #app .top-nav a { font-size:12px !important; font-weight:650 !important; }
html body #app .eyebrow { font-family:'Plus Jakarta Sans',sans-serif !important; font-size:10px; letter-spacing:.15em !important; font-weight:750 !important; }
html body #app .btn:focus-visible { outline:3px solid var(--rx-accent,#0e7c5a) !important; outline-offset:4px !important; }
@media(hover:hover) {
  html body #app .btn:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 7px 16px -10px #052e2580 !important; }
  html body #app .btn.secondary:hover:not(:disabled) { border-color:var(--rx-accent,#0e7c5a) !important; }
}
html body #app .btn:active:not(:disabled) { transform:translateY(1px); }
html body #app .btn:disabled { opacity:.6; cursor:wait; transform:none; }
/* Freebies: a real resource collection, with distinct empty/error states. */
html body #app .freebies-intro { position:relative; max-width:1100px; padding:34px 0 38px; border-bottom:1px solid var(--rx-line,#dce5df); margin-bottom:28px; }
html body #app .freebies-intro h1 { font-size:clamp(34px,4vw,58px) !important; line-height:1.12; margin:18px 0 20px; }
html body #app .freebies-intro h1 span { color:var(--rx-accent,#0e7c5a); }
html body #app .freebies-intro p { color:var(--rx-ink-2,#4d5b53); font-size:14px; line-height:1.8; max-width:48ch; }
.freebies-count { display:inline-flex; padding:7px 10px; margin-top:8px; border:1px solid var(--rx-line,#dce5df); border-radius:6px; font-size:11px; color:var(--rx-ink-2,#4d5b53); }
.freebies-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:20px; max-width:1100px; }
html body #app .freebie-card { display:flex; flex-direction:column; min-width:0; padding:26px; border:1px solid var(--rx-line,#dce5df); border-radius:16px; background:var(--rx-card,#fff); }
.freebie-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:30px; }
.freebie-symbol { width:48px; height:48px; display:inline-grid; place-items:center; background:var(--rx-soft,#e8f3ed); color:var(--rx-accent,#0e7c5a); border:1px solid var(--rx-line,#dce5df); border-radius:12px; }
.freebie-symbol svg { width:23px; height:23px; }
.freebie-index { font-family:'HxH Display',sans-serif; font-size:13px; color:var(--rx-ink-3,#8d978f); }
.freebie-label { font-size:9px; font-weight:750; letter-spacing:.13em; color:var(--rx-accent,#0e7c5a); }
html body #app .freebie-card h2 { margin:12px 0; font-size:21px; line-height:1.4; overflow-wrap:anywhere; }
.freebie-card p { font-size:13px; line-height:1.8; color:var(--rx-ink-2,#4d5b53); margin:0 0 26px; }
html body #app .freebie-card .btn { margin-top:auto; align-self:flex-start; }
.freebies-empty,.resource-load-error { max-width:1100px; padding:52px 26px; text-align:center; border:1px dashed var(--rx-line,#dce5df); background:var(--rx-card,#fff); border-radius:16px; }
.freebies-empty .eyebrow { display:block; margin-top:24px; }
html body #app :is(.freebies-empty,.resource-load-error) h2 { font-size:24px; line-height:1.4; margin:16px 0 12px; }
:is(.freebies-empty,.resource-load-error) p { max-width:48ch; margin:0 auto 24px; line-height:1.85; font-size:13px; color:var(--rx-ink-2,#4d5b53); }
.store-load-error { display:flex; align-items:center; flex-direction:column; justify-content:center; min-height:100svh; padding:32px; text-align:center; max-width:640px; margin:auto; }
.store-load-error .load-error-mark { display:grid; place-items:center; width:64px; height:64px; margin-bottom:26px; border-radius:14px; background:#075840; color:white; font-family:'HxH Display',sans-serif; font-weight:700; }
.store-load-error h1 { margin:18px 0; font-size:clamp(28px,4vw,40px); }
.store-load-error p { max-width:40ch; font-size:14px; line-height:1.8; color:var(--rx-ink-2,#4d5b53); margin-bottom:26px; }
.load-error-link { margin-top:20px; font-size:12px; color:var(--rx-accent,#0e7c5a); text-underline-offset:4px; }
@media(min-width:1200px) {
  html body #app .auth-panel.auth-panel { max-width:500px !important; padding:42px !important; margin-top:28px !important; }
  html body #app .auth-panel .auth-header-block h2 { font-size:38px !important; }
}
@media(max-width:600px) {
  html body #app .auth-panel.auth-panel { padding:28px 22px !important; border-radius:18px !important; }
  html body #app .auth-panel .auth-header-block h2 { font-size:30px !important; }
  html body #app .freebies-intro { padding-top:18px; padding-bottom:26px; }
  .freebies-grid { gap:14px; }
  html body #app .freebie-card { padding:24px; }
}
@media(prefers-reduced-motion:reduce) { html body #app .btn { transition:none !important; } }
/* Crisp sidebar text and a quiet selected state on desktop. */
html body #app .sidebar .nav-item { color:var(--rx-ink-2,#4d5b53) !important; border-radius:10px !important; font-size:12px !important; }
html body #app .sidebar .nav-item svg { color:var(--rx-ink-2,#4d5b53) !important; }
html body #app .sidebar .nav-item.active { background:var(--rx-soft,#e8f3ed) !important; color:var(--rx-accent,#0e7c5a) !important; box-shadow:none !important; font-weight:750 !important; }
html body #app .sidebar .nav-item.active svg { color:var(--rx-accent,#0e7c5a) !important; }
html body #app .btn svg { width:17px !important; height:17px !important; flex-shrink:0; }

/* Contrast contract: muted text is still readable, never pastel-on-ivory. */
html:not([data-theme="midnight"]):not([data-theme="black"]) {
  --rx-ink-3:#59675f; --ink-3:#59675f; --muted:#59675f;
}
html[data-theme="violet"] { --rx-accent:#5831b1; }
html[data-theme="rose"] { --rx-accent:#a0264e; }
html[data-theme="sand"] { --rx-accent:#884622; }
html[data-theme="ocean"] { --rx-accent:#086276; }
html:is([data-theme="midnight"],[data-theme="black"]) { --rx-ink-3:#b2c3bc; --ink-3:#b2c3bc; --muted:#b2c3bc; }
html body #app :is(.nav-label,.brand small,.breadcrumb,.page-heading p,.hero p,.field-hint,.form-note,.registration-policy-note,.footer p,.footer small,.footer-bottom,.footer-secure,.auth-footer-sub,.auth-footer-card small,.cart-count) { color:var(--rx-ink-2,#46564d) !important; opacity:1 !important; }
html body #app :is(.footer a,.footer .socials a,.footer-links a,.release-stamp,.release-channel,.release-pill,.app-version-stamp,.footer-bottom a,.footer-secure svg) { color:var(--rx-ink-2,#46564d) !important; opacity:1 !important; }
html body #app :is(.text-link,.link-button,.auth-forgot-link,.auth-alt a,.field-hint a,.registration-policy-note a) { color:var(--rx-accent,#086346) !important; text-underline-offset:3px; }
html body #app :is(.product h3,.category-card strong,.section-title h2) { color:var(--rx-ink,#15211b) !important; }
html body #app input::placeholder,html body #app textarea::placeholder { color:var(--rx-ink-3,#59675f) !important; opacity:1 !important; }
html body #overlay .modal :is(p,label,small) { color:var(--rx-ink-2,#46564d); }
html body #app :is(.eyebrow,.nav-label,.footer-col h4) { font-weight:750 !important; }
.local-preview-note { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; padding:12px 16px; margin-bottom:22px; border:1px solid var(--rx-line,#d4dfd8); border-radius:8px; background:var(--rx-card,#fff); color:var(--rx-ink-2,#46564d); font-size:11px; line-height:1.6; }
.local-preview-note strong { color:var(--rx-accent,#086346); }
/* Keep feedback light and predictable instead of repeated page-wide motion. */
html body #app :is(.hero,.panel,.product,.category-card,.mobile-nav,.nav-item,.eyebrow) { animation:none !important; }
html body #app :is(.topbar,.mobile-nav) { backdrop-filter:none !important; -webkit-backdrop-filter:none !important; background:var(--rx-card,#fff) !important; }
html body #app :is(.product,.category-card,.nav-item,.mobile-nav a,.btn) { transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease !important; }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto !important; } html body #app *,html body #app *::before,html body #app *::after { transition:none !important; animation:none !important; } }
/* Install panel uses a dark surface in every theme: keep its copy readable. */
html body #app .app-install-banner { background:linear-gradient(115deg,#103f32,#092b23) !important; border-color:#315c4c !important; }
html body #app .app-install-banner h2 { color:#f4fff9 !important; }
html body #app .app-install-banner :is(p,small,.install-benefits,.install-benefits svg,.eyebrow) { color:#c8e2d5 !important; opacity:1 !important; }
html body #app .install-phone { animation:none !important; }
/* Content must not depend on intersection-observer timing to become readable. */
html.rx-armed body #app .rx-reveal { opacity:1 !important; transform:none !important; transition:none !important; }
