/* ============================================================
   KOREX LABS — MACHINED NOCTURNE
   Premium public-surface layer. Loaded after style.css.
   ============================================================ */

body.theme-dark-prestige {
  --bg: #070806;
  --bg-section: #0d0f0c;
  --white: #12140f;
  --black: #070806;
  --dark: #070806;
  --gold: #d6b875;
  --gold-hover: #ead093;
  --gold-light: rgba(214, 184, 117, 0.1);
  --gold-border: rgba(214, 184, 117, 0.38);
  --text: #f3f0e8;
  --text-muted: #b3b0a8;
  --text-light: #8b8981;
  --border: #35382f;
  --border-light: rgba(243, 240, 232, 0.12);
  --error: #ef8d82;
  --success: #8bc8a4;
  --nav-h: 92px;
  --max-w: 1480px;
  --font-serif: 'Bodoni Moda', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --radius: 10px;
  --shadow: none;
  --shadow-lg: 0 8px 8px rgba(0, 0, 0, 0.22);
  --transition: 0.46s cubic-bezier(0.16, 1, 0.3, 1);
  background:
    radial-gradient(circle at 78% 2%, rgba(214, 184, 117, 0.095), transparent 28rem),
    radial-gradient(circle at 8% 42%, rgba(93, 105, 82, 0.08), transparent 34rem),
    var(--bg);
}

.theme-dark-prestige h1,
.theme-dark-prestige h2,
.theme-dark-prestige h3,
.theme-dark-prestige h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.theme-dark-prestige p { text-wrap: pretty; }
.theme-dark-prestige .container { max-width: var(--max-w); }
.theme-dark-prestige .section { padding-block: clamp(88px, 9vw, 144px); }
.theme-dark-prestige .label,
.theme-dark-prestige .overline { font-family: var(--font-sans); }
.theme-dark-prestige :focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.theme-dark-prestige .app-main { margin-top: var(--nav-h); }
/* Skip-link removed — stale cached bundles may still inject it, so keep
   it invisible instead of styling it. */
.skip-link { display: none !important; }

/* Floating instrument-panel navigation */
body.theme-dark-prestige:not(.kx-admin-surface) .navbar {
  top: 14px;
  left: clamp(12px, 2.2vw, 34px);
  right: clamp(12px, 2.2vw, 34px);
  height: 64px;
  border: 1px solid rgba(243, 240, 232, 0.13);
  border-radius: 12px;
  background: rgba(9, 10, 8, 0.82);
  box-shadow: none;
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
}

body.theme-dark-prestige:not(.kx-admin-surface) .navbar.scrolled {
  background: rgba(9, 10, 8, 0.96);
  border-color: rgba(214, 184, 117, 0.3);
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.18);
}

body.theme-dark-prestige:not(.kx-admin-surface) .nav-inner {
  height: 62px;
  padding-inline: clamp(18px, 2.5vw, 38px);
}

.theme-dark-prestige .nav-logo img { width: 28px !important; height: 28px !important; object-fit: contain; }
.theme-dark-prestige .nav-logo-text { font-size: 11px; font-weight: 700; letter-spacing: 0.26em; }
.theme-dark-prestige .nav-logo-tagline { font-size: 8px; letter-spacing: 0.12em; text-transform: none; }
.theme-dark-prestige .nav-links { gap: 2px; }
.theme-dark-prestige .nav-links a {
  padding: 10px 12px;
  color: rgba(243, 240, 232, 0.64);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
}
.theme-dark-prestige .nav-links a.active::after { bottom: 3px; width: 18px; }
.theme-dark-prestige .nav-btn-login { font-size: 10px; letter-spacing: 0.07em; text-transform: none; }
.theme-dark-prestige .nav-cart-btn {
  width: 38px;
  height: 38px;
  border-color: rgba(214, 184, 117, 0.34);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.theme-dark-prestige .nav-cart-btn:hover { transform: rotate(-4deg); border-color: var(--gold); background: var(--gold-light); }

/* Buttons and fields */
.theme-dark-prestige .btn {
  min-height: 48px;
  padding: 13px 25px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.theme-dark-prestige .btn:hover { transform: translateY(-2px); }
.theme-dark-prestige .btn:active { transform: translateY(0) scale(0.98); }
.theme-dark-prestige .btn-primary,
.theme-dark-prestige .btn-gold { box-shadow: none; }
.theme-dark-prestige .btn-outline { border-color: rgba(243, 240, 232, 0.28); }
.theme-dark-prestige .form-input,
.theme-dark-prestige .sort-select {
  min-height: 48px;
  border-radius: 10px;
  border-color: rgba(243, 240, 232, 0.16);
  background: #0b0d0a;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.theme-dark-prestige .form-input::placeholder { color: #96938a; }

/* Hero: packaging editorial meets instrument-panel precision */
.theme-dark-prestige .hero {
  min-height: min(860px, calc(100svh - var(--nav-h)));
  background: #080906;
}
.theme-dark-prestige .hero::after { box-shadow: inset 0 -100px 120px rgba(0, 0, 0, 0.42); }
.theme-dark-prestige .hero-content {
  max-width: 68rem;
  padding-block: clamp(86px, 11vh, 132px);
}
.theme-dark-prestige .hero-overline {
  margin-bottom: 30px;
  gap: 13px;
  color: #d8c79f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  animation: kx-rise 0.82s 0.05s both cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero-overline::before { width: 32px; background: rgba(214, 184, 117, 0.7); }
.theme-dark-prestige .hero h1 {
  max-width: 66rem;
  font-size: clamp(4.25rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  animation: kx-rise 0.95s 0.12s both cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero-title-row { gap: 0 0.17em; }
.theme-dark-prestige .hero-title-accent { padding-left: clamp(30px, 6.5vw, 96px); }
.theme-dark-prestige .hero h1 .gold { color: var(--gold); font-style: normal; }
.theme-dark-prestige .hero-subtitle {
  max-width: 40rem;
  margin-top: 34px;
  color: #c4c0b6;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.72;
  animation: kx-rise 0.88s 0.2s both cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero-actions { animation: kx-rise 0.88s 0.28s both cubic-bezier(0.16, 1, 0.3, 1); }
.theme-dark-prestige .hero-image { width: 58%; animation: kx-image-in 1.25s both cubic-bezier(0.16, 1, 0.3, 1); }
.theme-dark-prestige .hero-image::before {
  width: 68%;
  background:
    linear-gradient(90deg, #080906 2%, rgba(8, 9, 6, 0.96) 18%, rgba(8, 9, 6, 0.12) 76%),
    linear-gradient(180deg, rgba(8, 9, 6, 0.08), transparent 48%, rgba(8, 9, 6, 0.88));
}
.theme-dark-prestige .hero-image::after {
  inset: 46px 52px 46px 110px;
  border-color: rgba(243, 240, 232, 0.14);
  border-left-color: rgba(214, 184, 117, 0.52);
}
.theme-dark-prestige .hero-image img {
  filter: grayscale(0.82) saturate(0.4) contrast(1.15) brightness(0.55) sepia(0.08);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero:hover .hero-image img { filter: grayscale(0.7) saturate(0.5) contrast(1.12) brightness(0.62) sepia(0.08); }
.theme-dark-prestige .hero-assay-card {
  right: clamp(24px, 5vw, 78px);
  bottom: clamp(34px, 6vh, 66px);
  width: min(330px, 27vw);
  padding: 22px 24px;
  border-radius: 10px;
  background: #0d0f0c;
  border-color: rgba(243, 240, 232, 0.16);
  border-top-color: rgba(214, 184, 117, 0.78);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: kx-rise 0.9s 0.42s both cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero-assay-value {
  font-family: var(--font-sans);
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* Trust rail */
.theme-dark-prestige .features-bar { background: #0b0d0a; }
.theme-dark-prestige .features-bar-inner { grid-template-columns: 1.35fr 1fr 1fr 1.15fr; }
.theme-dark-prestige .feature-item { min-height: 138px; padding: 32px clamp(20px, 2.3vw, 36px); gap: 18px; }
.theme-dark-prestige .feature-item h4 {
  color: #e6e1d7;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
}
.theme-dark-prestige .feature-item p { color: #a19e95; font-size: 12px; line-height: 1.6; }
.theme-dark-prestige .feature-icon { width: 30px !important; height: 30px !important; }

/* Shared section heading rhythm */
.theme-dark-prestige .section-top {
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 62px);
  padding-bottom: 0;
  border: 0;
}
.theme-dark-prestige .section-top > div { display: grid; gap: 8px; }
.theme-dark-prestige .section-top .label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}
.theme-dark-prestige .section-top h2 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 4.8vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-transform: none;
}
.theme-dark-prestige .section-link {
  color: #d8c79f;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

/* Featured collection: one decisive product, three compact records */
.theme-dark-prestige .kx-product-collection {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}
.theme-dark-prestige .kx-product-collection.kx-single { grid-template-columns: 1fr; }
.theme-dark-prestige .kx-product-rail { display: grid; gap: 14px; }
.theme-dark-prestige .product-card {
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.13);
  border-radius: 12px;
  background: #10120e;
  box-shadow: none;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.theme-dark-prestige .product-card:hover { transform: translateY(-4px); border-color: rgba(214, 184, 117, 0.52); box-shadow: none; }
.theme-dark-prestige .kx-product-lead .product-card { height: 100%; display: grid; grid-template-rows: minmax(420px, 1fr) auto auto; }
.theme-dark-prestige .kx-product-lead .product-card-img { min-height: 420px; aspect-ratio: auto; }
.theme-dark-prestige .kx-product-lead .product-card-name { font-size: clamp(24px, 2.5vw, 38px); }
.theme-dark-prestige .kx-product-lead .product-card-body { padding: 26px 28px 22px; }
.theme-dark-prestige .kx-product-lead .product-card-footer { padding: 18px 28px 24px; }
.theme-dark-prestige .kx-product-rail .product-card {
  display: grid;
  grid-template-columns: minmax(128px, 0.78fr) minmax(0, 1.22fr);
  grid-template-rows: 1fr auto;
  min-height: 190px;
}
.theme-dark-prestige .kx-product-rail .product-card-img { grid-row: 1 / -1; min-height: 190px; aspect-ratio: auto; }
.theme-dark-prestige .kx-product-rail .product-card-body { padding: 22px 20px 8px; }
.theme-dark-prestige .kx-product-rail .product-card-footer { padding: 8px 20px 20px; border-top: 0; }
.theme-dark-prestige .product-card-img { background: #171914; }
.theme-dark-prestige .product-card-img img { filter: saturate(0.7) contrast(1.06) brightness(0.82); transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.theme-dark-prestige .product-card:hover .product-card-img img { transform: scale(1.035); filter: saturate(0.82) contrast(1.04) brightness(0.9); }
.theme-dark-prestige .product-card-body { padding: 20px; }
.theme-dark-prestige .product-card-name { font-size: 20px; font-weight: 500; }
.theme-dark-prestige .product-card-dose { border: 0; border-radius: 999px; background: var(--gold-light); font-size: 9px; }
.theme-dark-prestige .product-card-cat { margin-top: 8px; color: #9e9b92; font-size: 10px; letter-spacing: 0.07em; text-transform: none; }
.theme-dark-prestige .product-card-verified { color: var(--success); font-size: 9px; letter-spacing: 0.05em; text-transform: none; }
.theme-dark-prestige .product-card-footer { background: transparent; }
.theme-dark-prestige .product-card-price { font-family: var(--font-sans); font-size: 16px; font-weight: 650; }
.theme-dark-prestige .product-card-hover-overlay { background: rgba(7, 8, 6, 0.7); }
.theme-dark-prestige .product-card-hover-overlay span { border-radius: 999px; letter-spacing: 0.08em; }
.theme-dark-prestige .kx-catalog-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  padding: clamp(30px, 5vw, 66px);
  border: 1px solid rgba(214, 184, 117, 0.3);
  border-radius: 12px;
  background: radial-gradient(circle at 82% 20%, rgba(214, 184, 117, 0.09), transparent 20rem), #0d0f0c;
}
.theme-dark-prestige .kx-catalog-gate h3 { max-width: 22ch; font-size: clamp(28px, 3.4vw, 48px); }
.theme-dark-prestige .kx-catalog-gate p { max-width: 56ch; margin-top: 12px; color: var(--text-muted); }
.theme-dark-prestige .kx-catalog-empty { padding: 44px; border-top: 1px solid var(--border-light); color: var(--text-muted); }

/* Standards: substantial, asymmetric, and non-card-like */
.theme-dark-prestige .research-standards {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 2fr);
  background: #0a0c09;
}
.theme-dark-prestige .research-standards > .container { padding-block: clamp(72px, 8vw, 118px); }
.theme-dark-prestige .research-standards .section-header .overline {
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: none;
}
.theme-dark-prestige .research-standards .section-header h2 { max-width: 8ch; font-size: clamp(3.2rem, 5.3vw, 5.6rem); }
.theme-dark-prestige .standards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-dark-prestige .standard-item {
  min-height: 270px;
  padding: clamp(34px, 4vw, 60px);
  text-align: left;
  border-color: rgba(243, 240, 232, 0.11);
}
.theme-dark-prestige .standard-item:nth-child(2),
.theme-dark-prestige .standard-item:nth-child(3) { background: rgba(255, 255, 255, 0.014); }
.theme-dark-prestige .standard-icon { width: 34px; height: 34px; margin: 0 0 36px; }
.theme-dark-prestige .standard-item h3 { color: #e7e2d8; font-family: var(--font-serif); font-size: 25px; font-weight: 500; letter-spacing: -0.025em; text-transform: none; }
.theme-dark-prestige .standard-item p { max-width: 34ch; color: #aaa79f; font-size: 14px; }

/* Research library editorial rhythm without magazine cosplay */
.theme-dark-prestige .research-library-home { background: #080906; }
.theme-dark-prestige .research-library-home .grid-3 { grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.theme-dark-prestige .blog-card {
  border-radius: 12px;
  border-color: rgba(243, 240, 232, 0.13);
  background: #10120e;
  box-shadow: none;
}
.theme-dark-prestige .blog-card:hover { transform: translateY(-4px); border-color: rgba(214, 184, 117, 0.48); box-shadow: none; }
.theme-dark-prestige .blog-card-cat { color: var(--gold); letter-spacing: 0.04em; text-transform: none; }
.theme-dark-prestige .blog-card-title { font-size: clamp(21px, 2vw, 30px); font-weight: 500; }
.theme-dark-prestige .blog-card-link { letter-spacing: 0; text-transform: none; }

/* Product-code lookup becomes a physical record moment */
.theme-dark-prestige .verify-section { margin-inline: clamp(14px, 3vw, 46px); border: 1px solid rgba(243, 240, 232, 0.13); border-radius: 12px; overflow: hidden; }
.theme-dark-prestige .verify-inner { min-height: 520px; grid-template-columns: 1.08fr 0.92fr; }
.theme-dark-prestige .verify-content { padding: clamp(54px, 7vw, 104px); }
.theme-dark-prestige .verify-content .overline { color: #d8c79f !important; font-size: 12px !important; letter-spacing: 0.03em !important; text-transform: none !important; }
.theme-dark-prestige .verify-content h2 { max-width: 11ch; font-size: clamp(3rem, 5vw, 5.2rem) !important; }
.theme-dark-prestige .verify-content p { max-width: 56ch; color: #b8b4aa; }
.theme-dark-prestige .verify-visual {
  position: relative;
  gap: clamp(26px, 4vw, 52px);
  background:
    radial-gradient(circle at 60% 40%, rgba(214, 184, 117, 0.1), transparent 15rem),
    #0a0c09;
}
.theme-dark-prestige .verify-visual::before {
  content: 'KOREX / PRODUCT RECORD';
  position: absolute;
  top: 28px;
  left: 30px;
  color: #7f7d75;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.theme-dark-prestige .verify-qr { border-radius: 10px; box-shadow: none; transform: rotate(-2deg); }
.theme-dark-prestige .verify-product-preview { transform: translateY(20px); }

/* Facility section */
.theme-dark-prestige .home-about-inner { min-height: 660px; grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr); }
.theme-dark-prestige .home-about-img { position: relative; }
.theme-dark-prestige .home-about-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(7, 8, 6, 0.72)); pointer-events: none; }
.theme-dark-prestige .home-about-img img { filter: grayscale(0.62) saturate(0.58) brightness(0.7) sepia(0.08); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.theme-dark-prestige .home-about:hover .home-about-img img { transform: scale(1.025); }
.theme-dark-prestige .home-about-content { padding: clamp(54px, 6vw, 94px); }
.theme-dark-prestige .home-about-content .overline { font-size: 12px; letter-spacing: 0.03em; text-transform: none; }
.theme-dark-prestige .home-about-content h2 { max-width: 10ch; font-size: clamp(3.1rem, 5vw, 5.25rem); }

/* Research-use explanation: no nested cards, just a clear typographic rail */
.theme-dark-prestige .kx-research-use { background: #080906; }
.theme-dark-prestige .kx-research-use > .container { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.6fr); gap: clamp(58px, 9vw, 150px); }
.theme-dark-prestige .kx-research-use-intro > p { margin-bottom: 18px; color: var(--gold); font-size: 12px; font-weight: 650; }
.theme-dark-prestige .kx-research-use-intro h2 { max-width: 11ch; font-size: clamp(3rem, 5vw, 5rem); }
.theme-dark-prestige .kx-research-use-points { border-top: 1px solid var(--border-light); }
.theme-dark-prestige .kx-research-use-points article { display: grid; grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1fr); gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--border-light); }
.theme-dark-prestige .kx-research-use-points h3 { font-family: var(--font-sans); font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.theme-dark-prestige .kx-research-use-points p { color: #aaa79f; font-size: 14px; line-height: 1.72; }
.theme-dark-prestige .kx-research-use-points a { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; font-weight: 650; }

/* Storefront and secondary pages */
.theme-dark-prestige .page-header,
.theme-dark-prestige .about-hero {
  background:
    radial-gradient(circle at 82% 14%, rgba(214, 184, 117, 0.11), transparent 25rem),
    #0a0c09;
}
.theme-dark-prestige .page-header { padding-block: clamp(76px, 8vw, 118px); }
.theme-dark-prestige .page-header h1,
.theme-dark-prestige .about-hero h1 { max-width: 15ch; font-size: clamp(3.4rem, 6.5vw, 6rem); letter-spacing: -0.035em; }
.theme-dark-prestige .page-header .overline { font-size: 12px; letter-spacing: 0.03em; text-transform: none; }
.theme-dark-prestige .storefront-filters {
  top: calc(var(--nav-h) - 8px);
  background: rgba(7, 8, 6, 0.9);
  border-color: var(--border-light);
}
.theme-dark-prestige .filter-row { gap: 6px; }
.theme-dark-prestige .filter-btn,
.theme-dark-prestige .cat-btn { border-radius: 999px; padding: 9px 16px; font-size: 10px; letter-spacing: 0.04em; text-transform: none; }
.theme-dark-prestige .products-section .grid-4 { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 14px; }
.theme-dark-prestige .products-section .product-card { height: 100%; display: flex; flex-direction: column; }
.theme-dark-prestige .products-section .product-card-footer { margin-top: auto; }
.theme-dark-prestige .about-lab-content,
.theme-dark-prestige .about-mission { background: #0a0c09; }

/* Product detail: gallery-led, calm, and decisively transactional */
.theme-dark-prestige .kx-product-page { padding-top: clamp(38px, 5vw, 72px) !important; padding-bottom: clamp(76px, 8vw, 118px) !important; }
.theme-dark-prestige .kx-product-header { padding-block: clamp(58px, 6vw, 84px) !important; }
.theme-dark-prestige .kx-product-layout {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr) !important;
  gap: clamp(48px, 7vw, 112px) !important;
}
.theme-dark-prestige .kx-product-gallery > div:first-child {
  overflow: hidden;
  border-color: rgba(243, 240, 232, 0.13) !important;
  border-radius: 12px;
  background: #141611 !important;
}
.theme-dark-prestige .kx-product-gallery > div:first-child img {
  filter: saturate(0.76) contrast(1.06) brightness(0.84);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .kx-product-gallery > div:first-child:hover img { transform: scale(1.025); filter: saturate(0.86) contrast(1.04) brightness(0.9); }
.theme-dark-prestige .kx-product-info { position: sticky; top: calc(var(--nav-h) + 28px); }
.theme-dark-prestige .kx-product-info > h2 { font-size: clamp(2.8rem, 4.5vw, 4.5rem) !important; line-height: 0.98; }
.theme-dark-prestige .kx-product-info .pce-variant-btn { border-radius: 10px; background: #10120e; color: var(--text); }
.theme-dark-prestige .kx-product-info .pce-variant-btn.active { border-color: var(--gold); background: var(--gold-light); }
.theme-dark-prestige .kx-product-info .pce-qty { overflow: hidden; border-radius: 999px; }
.theme-dark-prestige .kx-product-info .pp-faq { overflow: hidden; border-color: var(--border-light) !important; border-radius: 10px; background: #0d0f0c !important; }
.theme-dark-prestige .kx-product-info .pp-faq summary { background: #10120e !important; color: var(--text) !important; }

/* Cleaner utility surfaces */
.theme-dark-prestige .modal-container,
.theme-dark-prestige .cart-drawer,
.theme-dark-prestige .mobile-menu { background: #0c0e0b; }
.theme-dark-prestige .modal-box,
.theme-dark-prestige .auth-box,
.theme-dark-prestige .account-section,
.theme-dark-prestige .checkout-form-box,
.theme-dark-prestige .checkout-summary,
.theme-dark-prestige .verify-result {
  border-radius: 12px;
  border-color: rgba(243, 240, 232, 0.14);
  background: #10120e;
  box-shadow: none;
}
.theme-dark-prestige .auth-box h2,
.theme-dark-prestige .account-section h3 { font-weight: 500; }

/* A restrained four-part footer */
.theme-dark-prestige .footer {
  padding-top: clamp(76px, 8vw, 118px);
  background: #060705;
}
.theme-dark-prestige .footer-grid { grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(130px, 0.55fr)); gap: clamp(34px, 5vw, 84px); }
.theme-dark-prestige .footer-brand p { max-width: 38ch; color: #9f9c93; font-size: 14px; }
.theme-dark-prestige .footer-col h4 { color: #ded4bc; font-size: 11px; letter-spacing: 0.03em; text-transform: none; }
.theme-dark-prestige .footer-col a { padding: 7px 0; color: #939087; font-size: 13px; }
.theme-dark-prestige .footer-col a:hover { color: var(--text); transform: translateX(4px); }
.theme-dark-prestige .footer-social a { font-size: 12px; font-weight: 650; }

@keyframes kx-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes kx-image-in {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1180px) {
  .theme-dark-prestige .kx-product-collection { grid-template-columns: 1fr; }
  .theme-dark-prestige .kx-product-lead .product-card { grid-template-rows: minmax(380px, 56vw) auto auto; }
  .theme-dark-prestige .kx-product-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-dark-prestige .kx-product-rail .product-card { display: flex; min-height: 0; flex-direction: column; }
  .theme-dark-prestige .kx-product-rail .product-card-img { min-height: 0; aspect-ratio: 1; }
  .theme-dark-prestige .kx-product-rail .product-card-footer { margin-top: auto; }
  .theme-dark-prestige .research-standards { grid-template-columns: 1fr; }
  .theme-dark-prestige .research-standards .section-header h2 { max-width: none; }
  .theme-dark-prestige .research-library-home .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .theme-dark-prestige .home-about-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  body.theme-dark-prestige { --nav-h: 84px; }
  body.theme-dark-prestige:not(.kx-admin-surface) .navbar { top: 10px; }
  .theme-dark-prestige .features-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .theme-dark-prestige .feature-item { min-height: 126px; }
  .theme-dark-prestige .kx-research-use > .container { grid-template-columns: 1fr; gap: 48px; }
  .theme-dark-prestige .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; }
  .theme-dark-prestige .kx-product-layout { grid-template-columns: 1fr !important; }
  .theme-dark-prestige .kx-product-info { position: static; }
}

@media (max-width: 768px) {
  body.theme-dark-prestige { --nav-h: calc(78px + env(safe-area-inset-top)); }
  body.theme-dark-prestige:not(.kx-admin-surface) .navbar {
    top: calc(8px + env(safe-area-inset-top));
    left: calc(8px + env(safe-area-inset-left));
    right: calc(8px + env(safe-area-inset-right));
    height: 60px;
    padding-top: 0;
  }
  body.theme-dark-prestige:not(.kx-admin-surface) .nav-inner { height: 58px; padding-inline: 12px; }
  .theme-dark-prestige .nav-hamburger,
  .theme-dark-prestige .nav-icon-btn,
  .theme-dark-prestige .nav-cart-btn { width: 44px; min-width: 44px; height: 44px; }
  .theme-dark-prestige .nav-logo-text { font-size: 10px; letter-spacing: 0.2em; }
  .theme-dark-prestige .section { padding-block: 68px; }
  .theme-dark-prestige .hero { min-height: calc(100svh - var(--nav-h)); }
  .theme-dark-prestige .hero .container,
  .theme-dark-prestige .hero-content { width: 100%; min-width: 0; }
  .theme-dark-prestige .hero-content { padding: 76px 0 48px; }
  .theme-dark-prestige .hero-overline,
  .theme-dark-prestige .hero h1,
  .theme-dark-prestige .hero-subtitle,
  .theme-dark-prestige .hero-actions,
  .theme-dark-prestige .hero-image { animation: none !important; opacity: 1 !important; transform: none !important; }
  .theme-dark-prestige .hero h1 { font-size: clamp(3.2rem, 14vw, 4.5rem); line-height: 0.92; }
  .theme-dark-prestige .hero-title-row { display: block; }
  .theme-dark-prestige .hero-title-row > span { display: block; }
  .theme-dark-prestige .hero-title-accent { padding-left: clamp(18px, 7vw, 38px); }
  .theme-dark-prestige .hero-image { width: 100%; }
  .theme-dark-prestige .hero-image::before {
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 8, 6, 0.24), rgba(7, 8, 6, 0.66) 36%, #070806 90%);
  }
  .theme-dark-prestige .hero-image::after { inset: 16px; }
  .theme-dark-prestige .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; }
  .theme-dark-prestige .hero-actions .btn { width: 100%; min-width: 0; min-height: 48px; justify-content: center; text-align: center; white-space: normal; }
  .theme-dark-prestige .features-bar-inner { grid-template-columns: 1fr; }
  .theme-dark-prestige .feature-item { min-height: auto; padding: 25px 8px; }
  .theme-dark-prestige .section-top { align-items: flex-start; gap: 22px; }
  .theme-dark-prestige .section-top h2 { font-size: 3.2rem; }
  .theme-dark-prestige .kx-product-lead .product-card { grid-template-rows: minmax(330px, 100vw) auto auto; }
  .theme-dark-prestige .kx-product-lead .product-card-img { min-height: 330px; }
  .theme-dark-prestige .kx-product-rail { grid-template-columns: 1fr; }
  .theme-dark-prestige .kx-product-rail .product-card { display: grid; grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr); grid-template-rows: 1fr auto; min-height: 170px; }
  .theme-dark-prestige .kx-product-rail .product-card-img { grid-row: 1 / -1; min-height: 170px; aspect-ratio: auto; }
  .theme-dark-prestige .featured-products { overflow: hidden; background: #080906; }
  .theme-dark-prestige .kx-catalog-gate {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 26px;
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
  }
  .theme-dark-prestige .kx-catalog-gate > div { width: 100%; min-width: 0; }
  .theme-dark-prestige .kx-catalog-gate h3 { max-width: none; font-size: clamp(26px, 8vw, 36px); line-height: 1.03; }
  .theme-dark-prestige .kx-catalog-gate .btn { width: 100%; min-height: 48px; justify-content: center; text-align: center; }
  .theme-dark-prestige .standards-grid { grid-template-columns: 1fr; }
  .theme-dark-prestige .standard-item { min-height: 0; padding: 38px 24px; }
  .theme-dark-prestige .research-library-home .grid-3 { grid-template-columns: 1fr; }
  .theme-dark-prestige .verify-section { margin-inline: 8px; }
  .theme-dark-prestige .verify-inner { min-height: 0; grid-template-columns: 1fr; }
  .theme-dark-prestige .verify-visual { display: flex; min-height: 300px; border-left: 0; border-top: 1px solid var(--border-light); }
  .theme-dark-prestige .home-about-inner { min-height: 0; grid-template-columns: 1fr; }
  .theme-dark-prestige .home-about-img { height: min(72vw, 430px); }
  .theme-dark-prestige .home-about-img::after { background: linear-gradient(180deg, transparent 50%, rgba(7, 8, 6, 0.7)); }
  .theme-dark-prestige .home-about-content { padding: 48px 20px 64px; }
  .theme-dark-prestige .home-about-content .btn { width: 100%; justify-content: center; text-align: center; }
  .theme-dark-prestige .kx-research-use-points article { grid-template-columns: 1fr; gap: 12px; }
  .theme-dark-prestige .kx-research-use-points a { grid-column: 1; min-height: 44px; }
  .theme-dark-prestige .storefront-filters { top: calc(var(--nav-h) - 4px); }
  .theme-dark-prestige .filter-row { align-items: stretch; }
  .theme-dark-prestige .sort-select { width: 100% !important; margin: 10px 0 0; }
  .theme-dark-prestige .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-dark-prestige .footer-brand { grid-column: 1 / -1; }
  .theme-dark-prestige .footer-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border-light); border-radius: 999px; }
  .theme-dark-prestige .section-link { min-height: 44px; align-items: center; }
  .theme-dark-prestige .mm-close { width: 44px; height: 44px; }
}

@media (max-width: 768px) and (hover: none) {
  .theme-dark-prestige .btn:hover,
  .theme-dark-prestige .product-card:hover,
  .theme-dark-prestige .blog-card:hover,
  .theme-dark-prestige .nav-cart-btn:hover { transform: none; }
}

@media (max-width: 480px) {
  .theme-dark-prestige .hero h1 { font-size: clamp(2.85rem, 13.5vw, 3.7rem); }
  .theme-dark-prestige .hero-overline { font-size: 10px; }
  .theme-dark-prestige .hero-subtitle { font-size: 15px; }
  .theme-dark-prestige .section-top { display: grid; }
  .theme-dark-prestige .section-top h2 { font-size: 2.75rem; }
  .theme-dark-prestige .kx-catalog-gate { padding: 24px 20px; }
  .theme-dark-prestige .kx-product-lead .product-card { grid-template-rows: minmax(300px, 106vw) auto auto; }
  .theme-dark-prestige .kx-product-rail .product-card { grid-template-columns: 112px minmax(0, 1fr); min-height: 154px; }
  .theme-dark-prestige .kx-product-rail .product-card-img { min-height: 154px; }
  .theme-dark-prestige .kx-product-rail .product-card-name { font-size: 17px; }
  .theme-dark-prestige .verify-visual { gap: 20px; padding: 34px 18px; }
  .theme-dark-prestige .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-dark-prestige .hero-overline,
  .theme-dark-prestige .hero h1,
  .theme-dark-prestige .hero-subtitle,
  .theme-dark-prestige .hero-actions,
  .theme-dark-prestige .hero-image,
  .theme-dark-prestige .hero-assay-card { animation: none !important; }
}

/* ============================================================
   KOREX LABS — UI / UX PASS
   A calmer instrument surface: clearer hierarchy, safer mobile
   spacing, and one obvious action per moment.
   ============================================================ */

body.theme-dark-prestige {
  --bg: #080a08;
  --bg-section: #0c0f0c;
  --surface-1: #10130f;
  --surface-2: #141812;
  --ink: #f4f1e9;
  --muted: #b6b5ad;
  --quiet: #86867e;
  --gold: #d8ba78;
  --gold-hover: #e7cc94;
  --gold-light: rgba(216, 186, 120, 0.11);
  --gold-border: rgba(216, 186, 120, 0.36);
  --border: rgba(244, 241, 233, 0.16);
  --border-light: rgba(244, 241, 233, 0.11);
  --nav-h: 84px;
  --max-w: 1440px;
  --radius: 14px;
  color-scheme: dark;
  background: var(--bg);
  color: var(--ink);
}

body.theme-dark-prestige::selection { background: var(--gold); color: #080a08; }
body.theme-dark-prestige .app-main { margin-top: var(--nav-h); }
body.theme-dark-prestige .container { width: min(100%, var(--max-w)); padding-inline: clamp(18px, 3.4vw, 54px); }
body.theme-dark-prestige .section { padding-block: clamp(74px, 9vw, 136px); }
body.theme-dark-prestige h1,
body.theme-dark-prestige h2,
body.theme-dark-prestige h3,
body.theme-dark-prestige h4 { color: var(--ink); text-wrap: balance; }
body.theme-dark-prestige p { color: var(--muted); }
body.theme-dark-prestige .label,
body.theme-dark-prestige .overline,
body.theme-dark-prestige .form-label { letter-spacing: .11em; }

/* The skip link is available to keyboard users without painting over the
   browser's safe area or the floating navigation. */
body.theme-dark-prestige .skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 1200;
  padding: 10px 14px;
  background: var(--gold);
  color: #080a08;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-120%);
  transition: opacity .2s ease, transform .2s ease;
}
body.theme-dark-prestige .skip-link:focus { opacity: 1; pointer-events: auto; transform: translateY(10px); }

/* Navigation: one compact control surface, with enough breathing room for
   thumbs and the iOS safe area. */
body.theme-dark-prestige:not(.kx-admin-surface) .navbar {
  top: calc(12px + env(safe-area-inset-top));
  left: clamp(10px, 2.4vw, 34px);
  right: clamp(10px, 2.4vw, 34px);
  height: 68px;
  border: 1px solid rgba(244, 241, 233, .15);
  border-radius: 14px;
  background: rgba(9, 11, 9, .92);
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px) saturate(110%);
  backdrop-filter: blur(18px) saturate(110%);
}
body.theme-dark-prestige:not(.kx-admin-surface) .navbar.scrolled { border-color: rgba(216, 186, 120, .34); background: rgba(9, 11, 9, .98); }
body.theme-dark-prestige .nav-inner { height: 66px; padding-inline: clamp(14px, 2.5vw, 32px); }
body.theme-dark-prestige .nav-logo img,
body.theme-dark-prestige .footer-logo img { filter: invert(1) grayscale(1) brightness(1.9); opacity: .92; }
body.theme-dark-prestige .nav-logo-text { color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .22em; }
body.theme-dark-prestige .nav-logo-tagline { color: var(--quiet); font-size: 8px; letter-spacing: .08em; }
body.theme-dark-prestige .nav-links { gap: 2px; }
body.theme-dark-prestige .nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: rgba(244, 241, 233, .64);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: none;
}
body.theme-dark-prestige .nav-links a:hover,
body.theme-dark-prestige .nav-links a.active { color: var(--ink); }
body.theme-dark-prestige .nav-links a.active::after { bottom: 8px; width: 18px; background: var(--gold); }
body.theme-dark-prestige .nav-btn-login { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
body.theme-dark-prestige .nav-btn-login:hover { color: var(--ink); }
body.theme-dark-prestige .nav-icon-btn,
body.theme-dark-prestige .nav-cart-btn { color: var(--ink); }
body.theme-dark-prestige .nav-cart-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 241, 233, .16);
  border-radius: 50%;
  background: rgba(255, 255, 255, .025);
}
body.theme-dark-prestige .nav-cart-btn:hover { border-color: var(--gold); background: var(--gold-light); transform: translateY(-1px); }
body.theme-dark-prestige .nav-cart-count { background: var(--gold); color: #080a08; }

/* Buttons and fields share a clear minimum target size. */
body.theme-dark-prestige .btn {
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .13em;
  transition: transform .24s ease, background-color .24s ease, border-color .24s ease, color .24s ease;
}
body.theme-dark-prestige .btn-primary,
body.theme-dark-prestige .btn-gold { background: var(--gold); color: #080a08; border-color: var(--gold); box-shadow: none; }
body.theme-dark-prestige .btn-primary:hover,
body.theme-dark-prestige .btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #080a08; }
body.theme-dark-prestige .btn-outline { border-color: rgba(244, 241, 233, .3); color: var(--ink); }
body.theme-dark-prestige .btn-outline:hover { border-color: var(--gold); background: var(--gold-light); color: var(--gold-hover); }
body.theme-dark-prestige .form-input,
body.theme-dark-prestige .sort-select { min-height: 52px; border: 1px solid rgba(244, 241, 233, .18); border-radius: 10px; background: #0d100d; color: var(--ink); }
body.theme-dark-prestige .form-input:focus,
body.theme-dark-prestige .sort-select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216, 186, 120, .12); outline: none; }
body.theme-dark-prestige .form-input::placeholder { color: #8e8e86; }

/* Hero: preserve the strong photographic identity, but keep the primary
   message inside a predictable reading column. */
body.theme-dark-prestige .hero { min-height: clamp(680px, calc(100svh - var(--nav-h)), 860px); margin-inline: clamp(8px, 2vw, 28px); border: 1px solid rgba(244, 241, 233, .12); border-radius: 16px; overflow: hidden; }
body.theme-dark-prestige .hero-content { max-width: 1020px; padding-block: clamp(84px, 11vh, 138px); }
body.theme-dark-prestige .hero-overline { margin-bottom: 24px; color: #d8c79f; font-size: 10px; letter-spacing: .08em; }
body.theme-dark-prestige .hero-overline::before { width: 30px; background: rgba(216, 186, 120, .72); }
body.theme-dark-prestige .hero h1 { max-width: 11ch; font-size: clamp(4rem, 7vw, 6rem); line-height: .91; letter-spacing: -.03em; }
body.theme-dark-prestige .hero-title-accent { padding-left: clamp(26px, 6vw, 88px); }
body.theme-dark-prestige .hero-subtitle { max-width: 41rem; margin-top: 30px; color: #c5c2b9; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; }
body.theme-dark-prestige .hero-actions { margin-top: 32px; gap: 12px; }
body.theme-dark-prestige .hero-assay-card { border-color: rgba(244, 241, 233, .15); border-top-color: rgba(216, 186, 120, .72); background: rgba(12, 15, 12, .94); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Compact proof rail: it explains the offer without turning mobile into a
   four-screen scroll before the visitor reaches a real action. */
body.theme-dark-prestige .features-bar { background: var(--surface-1); border-color: var(--border-light); }
body.theme-dark-prestige .feature-item { min-height: 124px; padding: 28px clamp(18px, 2.4vw, 34px); border-color: var(--border-light); }
body.theme-dark-prestige .feature-icon { width: 28px !important; height: 28px !important; color: var(--gold); }
body.theme-dark-prestige .feature-item h4 { color: var(--ink); font-size: 11px; letter-spacing: .03em; text-transform: none; }
body.theme-dark-prestige .feature-item p { color: var(--quiet); font-size: 12px; line-height: 1.55; }

/* Let sections be recognized as a sequence instead of a stack of identical
   title treatments. */
body.theme-dark-prestige .section-top { margin-bottom: clamp(30px, 4vw, 54px); padding-bottom: 18px; border-bottom: 1px solid var(--border-light); }
body.theme-dark-prestige .section-top .label { color: var(--gold); font-size: 11px; letter-spacing: .05em; text-transform: none; }
body.theme-dark-prestige .section-top h2 { font-size: clamp(2.8rem, 4.8vw, 4.8rem); letter-spacing: -.03em; text-transform: none; }
body.theme-dark-prestige .section-link { color: var(--gold); font-size: 12px; letter-spacing: 0; text-transform: none; }
body.theme-dark-prestige .product-card,
body.theme-dark-prestige .blog-card,
body.theme-dark-prestige .value-card,
body.theme-dark-prestige .review-card,
body.theme-dark-prestige .verify-result,
body.theme-dark-prestige .account-nav,
body.theme-dark-prestige .account-section,
body.theme-dark-prestige .checkout-form-box,
body.theme-dark-prestige .checkout-summary,
body.theme-dark-prestige .auth-box { border-radius: 14px; border-color: var(--border-light); background: var(--surface-1); box-shadow: none; }
body.theme-dark-prestige .product-card:hover,
body.theme-dark-prestige .blog-card:hover,
body.theme-dark-prestige .value-card:hover { border-color: rgba(216, 186, 120, .44); box-shadow: none; }
body.theme-dark-prestige .product-card-name { color: var(--ink); }
body.theme-dark-prestige .product-card-cat,
body.theme-dark-prestige .product-card-verified { color: var(--muted); }
body.theme-dark-prestige .product-card-dose { border: 0; background: var(--gold-light); color: var(--gold); }
body.theme-dark-prestige .product-card-footer { border-color: var(--border-light); background: rgba(8, 10, 8, .28); }

/* Product-code moment: the sample record is now a visible object instead of
   an empty white placeholder. */
body.theme-dark-prestige .verify-section { margin-inline: clamp(8px, 2.4vw, 34px); border: 1px solid rgba(244, 241, 233, .14); border-radius: 16px; overflow: hidden; background: var(--surface-1); }
body.theme-dark-prestige .verify-inner { min-height: 500px; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); }
body.theme-dark-prestige .verify-content { padding: clamp(44px, 7vw, 96px); }
body.theme-dark-prestige .verify-content .overline { color: var(--gold) !important; font-size: 11px !important; letter-spacing: .08em !important; text-transform: none !important; }
body.theme-dark-prestige .verify-content h2 { max-width: 10ch; font-size: clamp(3rem, 5vw, 5rem) !important; line-height: .96; }
body.theme-dark-prestige .verify-content p { max-width: 48ch; color: var(--muted); }
body.theme-dark-prestige .verify-visual { gap: clamp(24px, 4vw, 46px); background: radial-gradient(circle at 55% 42%, rgba(216, 186, 120, .12), transparent 14rem), #0a0d0a; }
body.theme-dark-prestige .verify-visual::before { color: #8c8b82; font-size: 9px; letter-spacing: .13em; }
body.theme-dark-prestige .verify-qr { width: clamp(148px, 14vw, 176px); height: clamp(148px, 14vw, 176px); padding: 14px; display: grid; place-items: center; border-radius: 12px; background: #fff; transform: rotate(-1.5deg); box-shadow: none; }
body.theme-dark-prestige .record-qr-svg { display: block; width: 100%; height: 100%; }
body.theme-dark-prestige .verify-product-preview { transform: translateY(16px); }
body.theme-dark-prestige .verify-product-preview > div { display: grid; place-items: end center; }
body.theme-dark-prestige .verify-vial { width: 72px; height: 108px; margin-bottom: 12px; display: grid; place-items: end center; overflow: visible; }
body.theme-dark-prestige .verify-product-preview .vial-mockup { transform: scale(.84); transform-origin: bottom center; }
body.theme-dark-prestige .verify-product-preview strong { color: var(--gold); font-family: var(--font-sans); letter-spacing: .08em; }

/* Home image block and explanation rail. */
body.theme-dark-prestige .home-about-content { padding: clamp(48px, 6vw, 92px); }
body.theme-dark-prestige .home-about-content h2 { max-width: 11ch; font-size: clamp(3rem, 5vw, 5rem); line-height: .97; }
body.theme-dark-prestige .home-about-content p { max-width: 42ch; color: var(--muted); }
body.theme-dark-prestige .kx-research-use { background: #080a08; }
body.theme-dark-prestige .kx-research-use-intro h2 { max-width: 12ch; font-size: clamp(2.8rem, 4.5vw, 4.8rem); line-height: .98; }
body.theme-dark-prestige .kx-research-use-intro > p { color: var(--gold); font-size: 12px; letter-spacing: .04em; }
body.theme-dark-prestige .kx-research-use-points article { padding-block: 26px; border-color: var(--border-light); }
body.theme-dark-prestige .kx-research-use-points h3 { color: var(--ink); font-size: 14px; }
body.theme-dark-prestige .kx-research-use-points p { color: var(--muted); font-size: 14px; }
body.theme-dark-prestige .kx-research-use-points a { color: var(--gold); }

/* Secondary pages inherit the same instrument-room rhythm. */
body.theme-dark-prestige .page-header,
body.theme-dark-prestige .about-hero { padding-block: clamp(62px, 8vw, 112px) clamp(54px, 7vw, 92px); background: radial-gradient(circle at 82% 16%, rgba(216, 186, 120, .11), transparent 23rem), #0a0d0a; }
body.theme-dark-prestige .page-header h1,
body.theme-dark-prestige .about-hero h1 { max-width: 13ch; font-size: clamp(3.1rem, 6.5vw, 5.8rem); line-height: .95; }
body.theme-dark-prestige .page-header > .container > p:last-child { max-width: 55ch; margin-top: 18px; font-size: 16px; line-height: 1.65; }
body.theme-dark-prestige .storefront-filters { top: calc(var(--nav-h) - 2px); background: rgba(8, 10, 8, .95); border-color: var(--border-light); }
body.theme-dark-prestige .filter-btn,
body.theme-dark-prestige .cat-btn { border-radius: 999px; border-color: var(--border); color: var(--muted); }
body.theme-dark-prestige .filter-btn:hover,
body.theme-dark-prestige .filter-btn.active,
body.theme-dark-prestige .cat-btn:hover,
body.theme-dark-prestige .cat-btn.active { background: var(--gold); border-color: var(--gold); color: #080a08; }

/* Lookup form: readable labels, a real focus target, and a result region that
   does not jump the page when the state changes. */
body.theme-dark-prestige .verify-page { padding-block: clamp(42px, 7vw, 88px) clamp(76px, 10vw, 132px); }
body.theme-dark-prestige .verify-page-box { max-width: 760px; padding: clamp(24px, 5vw, 52px); border: 1px solid var(--border-light); border-radius: 16px; background: var(--surface-1); }
body.theme-dark-prestige .verify-instructions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--border-light); }
body.theme-dark-prestige .verify-step { color: var(--gold); font: 500 20px/.95 var(--font-serif); }
body.theme-dark-prestige .verify-instructions p { margin: 0; }
body.theme-dark-prestige .verify-instructions p:last-child { max-width: 58ch; font-size: 15px; line-height: 1.7; }
body.theme-dark-prestige .verify-kicker { margin-bottom: 8px !important; color: var(--ink) !important; font-size: 14px; font-weight: 700; }
body.theme-dark-prestige .verify-form { margin-top: 30px; }
body.theme-dark-prestige .verify-form .form-label { display: block; margin-bottom: 9px; color: var(--ink); font-size: 11px; font-weight: 700; text-transform: none; }
body.theme-dark-prestige .verify-input-group { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
body.theme-dark-prestige .verify-input-group .form-input { border-right: 1px solid rgba(244, 241, 233, .18); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
body.theme-dark-prestige .verify-helper { margin-top: 10px; color: var(--quiet); font-size: 12px; line-height: 1.6; }
body.theme-dark-prestige .verify-result-region { min-height: 24px; margin-top: 28px; }
body.theme-dark-prestige .verify-result { margin-top: 0; padding: clamp(22px, 4vw, 34px); }
body.theme-dark-prestige .verify-result-header { align-items: center; justify-content: space-between; }
body.theme-dark-prestige .verify-result-header h3 { font-size: clamp(22px, 3vw, 30px) !important; }
body.theme-dark-prestige .verify-badge-valid { border-radius: 999px; background: rgba(139, 200, 164, .12); color: #9bd4b0; }
body.theme-dark-prestige .verify-field { border: 1px solid rgba(244, 241, 233, .08); border-radius: 8px; background: var(--surface-2); }
body.theme-dark-prestige .verify-field label { color: var(--quiet); }
body.theme-dark-prestige .verify-field span { color: var(--ink); }
body.theme-dark-prestige .verify-not-found { border: 1px solid var(--border-light); border-left: 0 !important; border-top: 2px solid var(--gold); border-radius: 10px; background: var(--surface-2); color: var(--muted); }

/* Shared utility surfaces and footer. */
body.theme-dark-prestige .mobile-menu,
body.theme-dark-prestige .cart-drawer,
body.theme-dark-prestige .modal-container { background: #0b0e0b; border-color: var(--border-light); }
body.theme-dark-prestige .mobile-menu { padding-top: calc(26px + env(safe-area-inset-top)); }
body.theme-dark-prestige .footer { padding-top: clamp(64px, 8vw, 112px); background: #060806; border-top: 1px solid var(--border-light); }
body.theme-dark-prestige .footer-brand p { max-width: 40ch; color: var(--muted); }
body.theme-dark-prestige .footer-col h4 { color: var(--gold); font-size: 11px; letter-spacing: .08em; text-transform: none; }
body.theme-dark-prestige .footer-col a { color: var(--quiet); }
body.theme-dark-prestige .footer-col a:hover { color: var(--ink); }
body.theme-dark-prestige .footer-bottom { border-color: var(--border-light); }

@media (max-width: 1024px) {
  body.theme-dark-prestige { --nav-h: 82px; }
  body.theme-dark-prestige .hero h1 { font-size: clamp(3.6rem, 7.6vw, 5rem); }
  body.theme-dark-prestige .hero-assay-card { display: none; }
  body.theme-dark-prestige .verify-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body.theme-dark-prestige { --nav-h: calc(76px + env(safe-area-inset-top)); }
  body.theme-dark-prestige:not(.kx-admin-surface) .navbar { top: calc(8px + env(safe-area-inset-top)); left: 8px; right: 8px; height: 60px; }
  body.theme-dark-prestige .nav-inner { height: 58px; padding-inline: 10px; }
  body.theme-dark-prestige .nav-links,
  body.theme-dark-prestige .nav-login-text,
  body.theme-dark-prestige .nav-logo-tagline { display: none; }
  body.theme-dark-prestige .nav-logo-text { font-size: 10px; letter-spacing: .18em; }
  body.theme-dark-prestige .nav-hamburger,
  body.theme-dark-prestige .nav-icon-btn,
  body.theme-dark-prestige .nav-cart-btn { width: 44px; min-width: 44px; height: 44px; }
  body.theme-dark-prestige .nav-cart-btn { border: 1px solid rgba(244, 241, 233, .12); }
  body.theme-dark-prestige .hero { min-height: calc(100svh - var(--nav-h)); margin-inline: 8px; border-radius: 14px; }
  body.theme-dark-prestige .hero-content { padding: 78px 0 42px; }
  body.theme-dark-prestige .hero h1 { max-width: 9ch; font-size: clamp(3rem, 14vw, 4.25rem); line-height: .94; }
  body.theme-dark-prestige .hero-subtitle { margin-top: 24px; font-size: 15px; line-height: 1.62; }
  body.theme-dark-prestige .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  body.theme-dark-prestige .hero-actions .btn { width: 100%; justify-content: center; }
  body.theme-dark-prestige .features-bar-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.theme-dark-prestige .feature-item { min-height: 136px; padding: 22px 16px; gap: 11px; border-bottom: 1px solid var(--border-light); }
  body.theme-dark-prestige .feature-item:nth-child(odd) { border-right: 1px solid var(--border-light); }
  body.theme-dark-prestige .feature-item:nth-child(even) { border-right: 0; }
  body.theme-dark-prestige .feature-item h4 { font-size: 12px; }
  body.theme-dark-prestige .feature-item p { font-size: 11px; }
  body.theme-dark-prestige .section-top { display: grid; gap: 18px; align-items: start; }
  body.theme-dark-prestige .section-top h2 { font-size: clamp(2.7rem, 12vw, 3.6rem); }
  body.theme-dark-prestige .section-link { min-height: 44px; }
  body.theme-dark-prestige .verify-section { margin-inline: 8px; border-radius: 14px; }
  body.theme-dark-prestige .verify-inner { grid-template-columns: 1fr; }
  body.theme-dark-prestige .verify-content { padding: 42px 22px 38px; }
  body.theme-dark-prestige .verify-content h2 { font-size: clamp(2.8rem, 12vw, 4rem) !important; }
  body.theme-dark-prestige .verify-content .btn { width: 100%; justify-content: center; }
  body.theme-dark-prestige .verify-visual { min-height: 326px; padding: 58px 18px 36px; border-top: 1px solid var(--border-light); }
  body.theme-dark-prestige .verify-visual::before { top: 22px; left: 22px; }
  body.theme-dark-prestige .verify-qr { width: 150px; height: 150px; }
  body.theme-dark-prestige .verify-product-preview { transform: translateY(14px) scale(.9); }
  body.theme-dark-prestige .home-about-inner { grid-template-columns: 1fr; }
  body.theme-dark-prestige .home-about-img { height: min(76vw, 420px); }
  body.theme-dark-prestige .home-about-content { padding: 44px 22px 58px; }
  body.theme-dark-prestige .kx-research-use > .container { grid-template-columns: 1fr; gap: 42px; }
  body.theme-dark-prestige .kx-research-use-intro h2 { font-size: clamp(2.7rem, 11vw, 4rem); }
  body.theme-dark-prestige .kx-research-use-points article { grid-template-columns: 1fr; gap: 10px; }
  body.theme-dark-prestige .kx-research-use-points a { grid-column: 1; min-height: 44px; }
  body.theme-dark-prestige .page-header,
  body.theme-dark-prestige .about-hero { padding-block: 52px 44px; }
  body.theme-dark-prestige .page-header h1,
  body.theme-dark-prestige .about-hero h1 { font-size: clamp(3rem, 13vw, 4.4rem); }
  body.theme-dark-prestige .storefront-filters { top: calc(var(--nav-h) - 4px); }
  body.theme-dark-prestige .filter-row { align-items: stretch; }
  body.theme-dark-prestige .sort-select { width: 100% !important; margin: 8px 0 0; }
  body.theme-dark-prestige .products-section .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.theme-dark-prestige .product-card-body { padding: 14px; }
  body.theme-dark-prestige .product-card-footer { padding: 11px 14px; }
  body.theme-dark-prestige .verify-page-box { padding: 24px 18px 30px; border-radius: 14px; }
  body.theme-dark-prestige .verify-input-group { grid-template-columns: 1fr; }
  body.theme-dark-prestige .verify-input-group .btn { width: 100%; justify-content: center; }
  body.theme-dark-prestige .verify-result-header { display: grid; gap: 14px; }
  body.theme-dark-prestige .verify-result-grid { grid-template-columns: 1fr; }
  body.theme-dark-prestige .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  body.theme-dark-prestige .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  body.theme-dark-prestige .features-bar-inner { grid-template-columns: 1fr; }
  body.theme-dark-prestige .feature-item,
  body.theme-dark-prestige .feature-item:nth-child(odd),
  body.theme-dark-prestige .feature-item:nth-child(even) { min-height: 0; border-right: 0; }
  body.theme-dark-prestige .feature-item:last-child { border-bottom: 0; }
  body.theme-dark-prestige .verify-visual { gap: 14px; }
  body.theme-dark-prestige .verify-product-preview { transform: translateY(12px) scale(.78); margin-left: -10px; }
  body.theme-dark-prestige .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-dark-prestige .skip-link,
  body.theme-dark-prestige *,
  body.theme-dark-prestige *::before,
  body.theme-dark-prestige *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Vial scan story: the QR belongs to the physical vial, while the phone
   frame and result rail make the lookup action legible at a glance. */
body.theme-dark-prestige .verify-vial-label {
  position: absolute;
  top: 46%;
  left: 21%;
  z-index: 3;
  display: flex;
  width: 18%;
  height: 30%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, .7vw, 9px);
  padding: clamp(8px, 1vw, 13px);
  overflow: hidden;
  border: 1px solid rgba(16, 18, 15, .14);
  border-radius: 4px 4px 9px 9px;
  background: rgba(248, 246, 239, .97);
  color: #10120f;
  text-align: center;
  transform: rotate(.4deg);
}
body.theme-dark-prestige .verify-vial-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}
body.theme-dark-prestige .verify-vial-brand img {
  width: clamp(15px, 2vw, 22px);
  height: clamp(15px, 2vw, 22px);
  object-fit: contain;
  mix-blend-mode: multiply;
}
body.theme-dark-prestige .verify-vial-brand span { display: grid; gap: 2px; min-width: 0; text-align: left; }
body.theme-dark-prestige .verify-vial-brand strong {
  color: #10120f;
  font-family: var(--font-sans);
  font-size: clamp(6px, .62vw, 9px);
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.1;
  white-space: nowrap;
}
body.theme-dark-prestige .verify-vial-brand small {
  color: rgba(16, 18, 15, .52);
  font-family: var(--font-sans);
  font-size: clamp(4px, .42vw, 6px);
  letter-spacing: .09em;
  line-height: 1.1;
  white-space: nowrap;
}
body.theme-dark-prestige .verify-vial-qr-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  flex-direction: column;
}
body.theme-dark-prestige .verify-vial-qr {
  width: clamp(52px, 7vw, 82px);
  aspect-ratio: 1;
  padding: clamp(3px, .45vw, 5px);
  background: #fff;
}
body.theme-dark-prestige .verify-vial-qr .verify-record-qr {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1;
  display: grid !important;
  place-items: center;
  background: #fff !important;
}
body.theme-dark-prestige .verify-vial-qr .verify-record-qr canvas,
body.theme-dark-prestige .verify-vial-qr .verify-record-qr img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}
body.theme-dark-prestige .verify-vial-qr-wrap > span {
  color: rgba(16, 18, 15, .52);
  font-family: var(--font-sans);
  font-size: clamp(4px, .43vw, 6px);
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.1;
  white-space: nowrap;
}
body.theme-dark-prestige .verify-vial-batch {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  width: 100%;
  font-family: var(--font-sans);
}
body.theme-dark-prestige .verify-vial-batch span {
  color: rgba(16, 18, 15, .48);
  font-size: clamp(5px, .5vw, 7px);
  font-weight: 800;
  letter-spacing: .1em;
}
body.theme-dark-prestige .verify-vial-batch strong {
  color: #a47b2c;
  font-size: clamp(7px, .76vw, 11px);
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
}
body.theme-dark-prestige .verify-vial-reticle {
  top: 55%;
  left: 24%;
  bottom: auto;
  z-index: 4;
  width: 14%;
  height: 14%;
  aspect-ratio: auto;
  transform: none;
}
body.theme-dark-prestige .verify-vial-reticle i {
  width: clamp(12px, 1.5vw, 22px);
  height: clamp(12px, 1.5vw, 22px);
  border-color: var(--gold-hover);
}
body.theme-dark-prestige .verify-vial-reticle > span {
  left: 5px;
  right: 5px;
  top: 50%;
  background: var(--gold-hover);
  box-shadow: 0 0 8px rgba(216, 186, 120, .9);
}
body.theme-dark-prestige .verify-scan-link {
  position: absolute;
  top: 64%;
  left: 37%;
  z-index: 4;
  width: 17%;
  height: 1px;
  background: rgba(216, 186, 120, .82);
}
body.theme-dark-prestige .verify-scan-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--gold-hover);
  border-radius: 50%;
  background: #0a0c09;
}
body.theme-dark-prestige .verify-scan-link::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--gold-hover);
  border-right: 1px solid var(--gold-hover);
  transform: rotate(45deg);
}
body.theme-dark-prestige .verify-scan-result {
  position: absolute;
  right: 5%;
  bottom: 7%;
  z-index: 5;
  display: grid;
  width: min(250px, 38%);
  gap: 7px;
  padding: 15px 16px 16px;
  border: 1px solid rgba(244, 241, 233, .2);
  border-top: 2px solid var(--gold);
  background: rgba(8, 10, 8, .9);
  color: var(--ink);
  animation: korex-result-reveal .7s .25s both cubic-bezier(.16, 1, .3, 1);
}
body.theme-dark-prestige .verify-result-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}
body.theme-dark-prestige .verify-result-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9bd4b0;
  box-shadow: 0 0 0 3px rgba(155, 212, 176, .12);
}
body.theme-dark-prestige .verify-scan-result > span {
  color: rgba(244, 241, 233, .58);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}
body.theme-dark-prestige .verify-scan-result > strong {
  color: var(--gold-hover);
  font-family: var(--font-sans);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 750;
  letter-spacing: .08em;
}
body.theme-dark-prestige .verify-scan-result > small {
  color: var(--quiet);
  font-size: 8px;
  letter-spacing: .08em;
  line-height: 1.35;
}
@keyframes korex-result-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  body.theme-dark-prestige .verify-record-image { object-position: center 50%; }
  body.theme-dark-prestige .verify-vial-label {
    top: 43%;
    left: 11%;
    width: 31%;
    height: 31%;
    gap: 5px;
    padding: 7px 5px;
  }
  body.theme-dark-prestige .verify-vial-brand { gap: 3px; }
  body.theme-dark-prestige .verify-vial-brand img { width: 15px; height: 15px; }
  body.theme-dark-prestige .verify-vial-brand strong { font-size: 5px; }
  body.theme-dark-prestige .verify-vial-brand small { font-size: 4px; }
  body.theme-dark-prestige .verify-vial-qr { width: 60px; padding: 3px; }
  body.theme-dark-prestige .verify-vial-qr-wrap > span { font-size: 4px; }
  body.theme-dark-prestige .verify-vial-batch { gap: 3px; }
  body.theme-dark-prestige .verify-vial-batch span { font-size: 5px; }
  body.theme-dark-prestige .verify-vial-batch strong { font-size: 7px; }
  body.theme-dark-prestige .verify-vial-reticle {
    top: 53%;
    left: 18%;
    width: 17%;
    height: 16%;
  }
  body.theme-dark-prestige .verify-vial-reticle i { width: 14px; height: 14px; }
  body.theme-dark-prestige .verify-scan-link { top: 63%; left: 31%; width: 20%; }
  body.theme-dark-prestige .verify-scan-result {
    right: 18px;
    bottom: 18px;
    width: min(244px, calc(100% - 36px));
    padding: 13px 14px 14px;
  }
  body.theme-dark-prestige .verify-scan-result > strong { font-size: 18px; }
  body.theme-dark-prestige .verify-scan-result > small { font-size: 7px; }
}

@media (max-width: 420px) {
  body.theme-dark-prestige .verify-vial-label { left: 10%; width: 32%; }
  body.theme-dark-prestige .verify-vial-qr { width: 54px; }
  body.theme-dark-prestige .verify-scan-result { right: 14px; bottom: 14px; width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-dark-prestige .verify-scan-result { animation: none; }
}

/* Image-led record surface: the sample now feels like a photographed object,
   not a vector placeholder. The mobile source keeps both the card and vial
   in frame instead of relying on a cropped desktop still life. */
body.theme-dark-prestige .verify-visual {
  position: relative;
  display: block;
  min-height: 500px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: #0a0c09;
}
body.theme-dark-prestige .verify-visual::before { content: none; }
body.theme-dark-prestige .verify-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 5, .32), transparent 34%, rgba(5, 7, 5, .72) 100%);
}
body.theme-dark-prestige .verify-record-picture,
body.theme-dark-prestige .verify-record-picture img {
  display: block;
  width: 100%;
  height: 100%;
}
body.theme-dark-prestige .verify-record-picture { position: absolute; inset: 0; z-index: 0; }
body.theme-dark-prestige .verify-record-image {
  object-fit: cover;
  object-position: center;
  filter: saturate(.76) contrast(1.04) brightness(.76);
  transform: scale(1.015);
}
body.theme-dark-prestige .verify-record-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 4vw, 46px);
}
body.theme-dark-prestige .verify-record-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: rgba(244, 241, 233, .68);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .14em;
  line-height: 1.4;
}
body.theme-dark-prestige .verify-record-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(244, 241, 233, .18);
  border-radius: 999px;
  background: rgba(8, 10, 8, .82);
  color: var(--gold);
  font-size: 9px;
  letter-spacing: .08em;
}
body.theme-dark-prestige .verify-record-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 186, 120, .14);
}
body.theme-dark-prestige .verify-record-batch {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 230px;
  padding: 16px 18px 17px;
  border: 1px solid rgba(244, 241, 233, .2);
  border-top: 2px solid var(--gold);
  background: rgba(8, 10, 8, .86);
}
body.theme-dark-prestige .verify-record-batch span {
  color: rgba(244, 241, 233, .6);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}
body.theme-dark-prestige .verify-record-batch strong {
  color: var(--gold-hover);
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: .08em;
}

@media (max-width: 768px) {
  body.theme-dark-prestige .verify-visual {
    min-height: 430px;
    border-top: 1px solid var(--border-light);
  }
  body.theme-dark-prestige .verify-record-overlay { padding: 22px 18px 20px; }
  body.theme-dark-prestige .verify-record-topline { font-size: 9px; letter-spacing: .1em; }
  body.theme-dark-prestige .verify-record-status { padding: 6px 8px; font-size: 8px; }
  body.theme-dark-prestige .verify-record-batch { min-width: 190px; padding: 13px 15px 14px; }
  body.theme-dark-prestige .verify-record-batch strong { font-size: 18px; }
}

@media (max-width: 420px) {
  body.theme-dark-prestige .verify-record-topline { display: block; }
  body.theme-dark-prestige .verify-record-status { margin-top: 12px; }
  body.theme-dark-prestige .verify-record-batch { min-width: 0; width: min(100%, 214px); }
}

/* The photographed card carries the same deterministic mark as a physical
   vial: real logo asset, old label language, and a locally generated QR. */
body.theme-dark-prestige .verify-record-overlay { pointer-events: none; }
body.theme-dark-prestige .verify-record-image { object-position: center 52%; }
body.theme-dark-prestige .verify-record-vial-label {
  position: absolute;
  top: 25%;
  left: 5%;
  z-index: 2;
  display: grid;
  width: 15%;
  min-width: 76px;
  padding: 9px 5px 8px;
  border: 1px solid rgba(19, 20, 17, .14);
  border-radius: 3px 3px 7px 7px;
  background: rgba(248, 246, 239, .94);
  box-shadow: 0 8px 18px rgba(7, 8, 6, .18);
  color: #10120f;
  text-align: center;
  transform: rotate(-1deg);
}
body.theme-dark-prestige .verify-record-vial-label b {
  color: #b18a3b;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
body.theme-dark-prestige .verify-record-vial-label strong {
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
}
body.theme-dark-prestige .verify-record-vial-label small {
  margin-top: 3px;
  color: rgba(16, 18, 15, .5);
  font-family: var(--font-sans);
  font-size: 5px;
  letter-spacing: .08em;
  line-height: 1.2;
}
body.theme-dark-prestige .verify-record-card {
  position: absolute;
  left: 5%;
  bottom: 8%;
  z-index: 2;
  width: min(70%, 430px);
  height: 38%;
  color: #11130f;
  transform: rotate(-9deg);
  transform-origin: center;
}
body.theme-dark-prestige .verify-card-brand {
  position: absolute;
  top: 5%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 150px;
}
body.theme-dark-prestige .verify-card-brand img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  mix-blend-mode: multiply;
}
body.theme-dark-prestige .verify-card-brand span { display: grid; gap: 2px; }
body.theme-dark-prestige .verify-card-brand strong {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
}
body.theme-dark-prestige .verify-card-brand small {
  color: rgba(17, 19, 15, .55);
  font-family: var(--font-sans);
  font-size: 7px;
  letter-spacing: .11em;
}
body.theme-dark-prestige .verify-card-qr-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(94px, 12vw, 132px);
  padding: 8px 8px 7px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 24px rgba(10, 12, 9, .18);
  transform: rotate(1deg);
}
body.theme-dark-prestige .verify-record-qr {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  display: grid !important;
  place-items: center;
  background: #fff !important;
}
body.theme-dark-prestige .verify-record-qr canvas,
body.theme-dark-prestige .verify-record-qr img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
}
body.theme-dark-prestige .verify-card-qr-wrap > span {
  display: block;
  margin-top: 5px;
  color: rgba(17, 19, 15, .62);
  font-family: var(--font-sans);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.2;
  text-align: center;
}
body.theme-dark-prestige .verify-card-batch {
  position: absolute;
  left: 0;
  bottom: 3%;
  display: grid;
  gap: 4px;
}
body.theme-dark-prestige .verify-card-batch span {
  color: rgba(17, 19, 15, .54);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
}
body.theme-dark-prestige .verify-card-batch strong {
  color: #a47b2c;
  font-family: var(--font-sans);
  font-size: clamp(14px, 1.55vw, 19px);
  font-weight: 800;
  letter-spacing: .08em;
}
body.theme-dark-prestige .verify-scan-reticle {
  position: absolute;
  left: 48%;
  bottom: 17%;
  z-index: 3;
  width: clamp(112px, 15vw, 166px);
  aspect-ratio: 1;
  transform: rotate(-9deg);
}
body.theme-dark-prestige .verify-scan-reticle i {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold);
  border-style: solid;
  filter: drop-shadow(0 0 5px rgba(216, 186, 120, .44));
}
body.theme-dark-prestige .verify-scan-reticle .top-left { top: 0; left: 0; border-width: 2px 0 0 2px; }
body.theme-dark-prestige .verify-scan-reticle .top-right { top: 0; right: 0; border-width: 2px 2px 0 0; }
body.theme-dark-prestige .verify-scan-reticle .bottom-left { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
body.theme-dark-prestige .verify-scan-reticle .bottom-right { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
body.theme-dark-prestige .verify-scan-reticle > span {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(216, 186, 120, .9);
  animation: korex-record-scan 2.6s ease-in-out infinite;
}
body.theme-dark-prestige .verify-record-scan-note {
  position: absolute;
  right: clamp(20px, 3vw, 34px);
  bottom: clamp(20px, 3vw, 32px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(244, 241, 233, .2);
  background: rgba(8, 10, 8, .78);
  color: rgba(244, 241, 233, .74);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .11em;
}
body.theme-dark-prestige .verify-record-scan-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 186, 120, .14);
}
@keyframes korex-record-scan {
  0%, 100% { transform: translateY(-42px); opacity: .45; }
  50% { transform: translateY(42px); opacity: 1; }
}

@media (max-width: 768px) {
  body.theme-dark-prestige .verify-record-image { object-position: center 58%; }
  body.theme-dark-prestige .verify-record-vial-label { display: none; }
  body.theme-dark-prestige .verify-record-card {
    left: 8%;
    bottom: 4%;
    width: 79%;
    height: 36%;
    transform: rotate(-4deg);
  }
  body.theme-dark-prestige .verify-card-brand { top: 3%; gap: 6px; }
  body.theme-dark-prestige .verify-card-brand img { width: 22px; height: 22px; }
  body.theme-dark-prestige .verify-card-brand strong { font-size: 7px; }
  body.theme-dark-prestige .verify-card-brand small { font-size: 6px; }
  body.theme-dark-prestige .verify-card-qr-wrap { width: 94px; padding: 6px 6px 5px; }
  body.theme-dark-prestige .verify-card-qr-wrap > span { font-size: 5px; }
  body.theme-dark-prestige .verify-card-batch { bottom: 1%; gap: 3px; }
  body.theme-dark-prestige .verify-card-batch span { font-size: 6px; }
  body.theme-dark-prestige .verify-card-batch strong { font-size: 13px; }
  body.theme-dark-prestige .verify-scan-reticle {
    left: 48%;
    bottom: 18%;
    width: 112px;
    transform: rotate(-4deg);
  }
  body.theme-dark-prestige .verify-record-scan-note { right: 18px; bottom: 18px; font-size: 7px; }
}

@media (max-width: 420px) {
  body.theme-dark-prestige .verify-record-scan-note { letter-spacing: .06em; }
  body.theme-dark-prestige .verify-scan-reticle i { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-dark-prestige .verify-scan-reticle > span { animation: none; opacity: .8; }
}

/* Final cascade guard: these selectors intentionally come after the legacy
   record-card rules above so the vial composition keeps its own geometry. */
body.theme-dark-prestige .verify-record-overlay { z-index: 4; }
body.theme-dark-prestige .verify-record-image { object-position: center 52%; }
body.theme-dark-prestige .verify-vial-reticle {
  top: 55%;
  left: 24%;
  bottom: auto;
  z-index: 4;
  width: 14%;
  height: 14%;
  aspect-ratio: auto;
  transform: none;
}
body.theme-dark-prestige .verify-vial-reticle i {
  width: clamp(12px, 1.5vw, 22px);
  height: clamp(12px, 1.5vw, 22px);
  border-color: var(--gold-hover);
}
body.theme-dark-prestige .verify-vial-reticle > span {
  left: 5px;
  right: 5px;
  background: var(--gold-hover);
}

@media (max-width: 768px) {
  body.theme-dark-prestige .verify-record-image { object-position: center 50%; }
  body.theme-dark-prestige .verify-vial-reticle {
    top: 53%;
    left: 18%;
    width: 17%;
    height: 16%;
    transform: none;
  }
  body.theme-dark-prestige .verify-vial-reticle i { width: 14px; height: 14px; }
  body.theme-dark-prestige .verify-vial-reticle > span { left: 5px; right: 5px; }
}

@media (max-width: 420px) {
  body.theme-dark-prestige .verify-vial-reticle i { width: 13px; height: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-dark-prestige .verify-vial-reticle > span { animation: none; opacity: .8; }
}

/* The scan is a visual sample, not a live code. Put the result inside the
   photographed phone so the story reads as: camera sees vial, phone resolves
   the batch. */
body.theme-dark-prestige .verify-vial-label {
  top: 47%;
  left: 12.5%;
  width: 17%;
  height: 26%;
  gap: 5px;
  padding: 9px 6px;
  transform: none;
}
body.theme-dark-prestige .verify-vial-brand { gap: 5px; }
body.theme-dark-prestige .verify-vial-brand img { width: 22px; height: 22px; }
body.theme-dark-prestige .verify-vial-brand strong { font-size: 7px; }
body.theme-dark-prestige .verify-vial-brand small { font-size: 5px; }
body.theme-dark-prestige .verify-vial-code {
  display: grid;
  width: clamp(50px, 5.2vw, 70px);
  height: clamp(50px, 5.2vw, 70px);
  grid-template-columns: repeat(13, 1fr);
  grid-template-rows: repeat(13, 1fr);
  gap: 2px;
  padding: 3px;
  background: #fff;
}
body.theme-dark-prestige .verify-vial-code i { display: block; background: transparent; }
body.theme-dark-prestige .verify-vial-code i.is-on { background: #181a16; }
body.theme-dark-prestige .verify-vial-code-caption {
  color: rgba(16, 18, 15, .5);
  font-family: var(--font-sans);
  font-size: 5px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  white-space: nowrap;
}
body.theme-dark-prestige .verify-vial-batch { gap: 2px; }
body.theme-dark-prestige .verify-vial-batch span { font-size: 5px; }
body.theme-dark-prestige .verify-vial-batch strong { font-size: 7px; letter-spacing: .04em; }
body.theme-dark-prestige .verify-vial-reticle {
  top: 54%;
  left: 14%;
  width: 14%;
  height: 15%;
}
body.theme-dark-prestige .verify-scan-link {
  top: 60%;
  left: 28%;
  width: 34%;
}
body.theme-dark-prestige .verify-phone-ui {
  position: absolute;
  top: 16%;
  left: 63%;
  z-index: 6;
  width: 34%;
  height: 67%;
  overflow: hidden;
  color: var(--ink);
  pointer-events: none;
  opacity: 1 !important;
  transform: rotate(-4deg);
  transform-origin: center;
}
body.theme-dark-prestige .verify-phone-header {
  position: absolute;
  top: 7%;
  left: 9%;
  right: 9%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(244, 241, 233, .16);
  color: rgba(244, 241, 233, .62);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .1em;
}
body.theme-dark-prestige .verify-phone-header > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold-hover);
  font-size: 6px;
}
body.theme-dark-prestige .verify-phone-header i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9bd4b0;
}
body.theme-dark-prestige .verify-phone-result {
  position: absolute;
  right: 8%;
  bottom: 9%;
  left: 8%;
  display: grid;
  gap: 5px;
  min-height: 29%;
  padding: 12px 11px 13px;
  border: 1px solid rgba(244, 241, 233, .2);
  border-top: 2px solid var(--gold);
  background: rgba(7, 9, 7, .96);
  opacity: 1 !important;
  animation: none;
}
body.theme-dark-prestige .verify-phone-result-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-hover);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}
body.theme-dark-prestige .verify-phone-result-kicker i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9bd4b0;
}
body.theme-dark-prestige .verify-phone-result > span {
  color: rgba(244, 241, 233, .58);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .11em;
}
body.theme-dark-prestige .verify-phone-result > strong {
  color: var(--gold-hover);
  font-family: var(--font-sans);
  font-size: clamp(16px, 1.65vw, 22px);
  font-weight: 750;
  letter-spacing: .05em;
  white-space: nowrap;
}
body.theme-dark-prestige .verify-phone-result > small {
  color: var(--quiet);
  font-size: 6px;
  letter-spacing: .04em;
  line-height: 1.3;
  white-space: normal;
}

@media (max-width: 768px) {
  body.theme-dark-prestige .verify-vial-label {
    top: 50%;
    left: 9%;
    width: 27%;
    height: 34%;
    gap: 5px;
    padding: 9px 6px;
  }
  body.theme-dark-prestige .verify-vial-brand { gap: 4px; }
  body.theme-dark-prestige .verify-vial-brand img { width: 18px; height: 18px; }
  body.theme-dark-prestige .verify-vial-brand strong { font-size: 6px; }
  body.theme-dark-prestige .verify-vial-brand small { font-size: 4px; }
  body.theme-dark-prestige .verify-vial-code { width: 54px; height: 54px; }
  body.theme-dark-prestige .verify-vial-code-caption { font-size: 5px; }
  body.theme-dark-prestige .verify-vial-batch span { font-size: 5px; }
  body.theme-dark-prestige .verify-vial-batch strong { font-size: 7px; }
  body.theme-dark-prestige .verify-vial-reticle {
    top: 57%;
    left: 12%;
    width: 22%;
    height: 17%;
  }
  body.theme-dark-prestige .verify-scan-link { top: 64%; left: 33%; width: 18%; }
  body.theme-dark-prestige .verify-phone-ui {
    top: 15%;
    left: 49%;
    width: 49%;
    height: 83%;
    transform: rotate(-4deg);
  }
  body.theme-dark-prestige .verify-phone-header { top: 7%; font-size: 6px; }
  body.theme-dark-prestige .verify-phone-header > span:last-child { font-size: 5px; }
  body.theme-dark-prestige .verify-phone-result {
    right: 7%;
    bottom: 8%;
    left: 7%;
    min-height: 30%;
    padding: 11px 10px 12px;
  }
  body.theme-dark-prestige .verify-phone-result-kicker { font-size: 7px; }
  body.theme-dark-prestige .verify-phone-result > span { font-size: 7px; }
  body.theme-dark-prestige .verify-phone-result > strong { font-size: 17px; }
  body.theme-dark-prestige .verify-phone-result > small { font-size: 6px; }
}

@media (max-width: 420px) {
  body.theme-dark-prestige .verify-vial-code { width: 48px; height: 48px; }
  body.theme-dark-prestige .verify-phone-result > strong { font-size: 15px; }
  body.theme-dark-prestige .verify-phone-result > small { font-size: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-dark-prestige .verify-phone-result { animation: none; }
}

/* User-supplied authenticity composition: keep the square artwork intact so
   the vial label and the phone record never disappear inside a crop. */
body.theme-dark-prestige .verify-authenticity-visual {
  display: flex;
  min-height: 0;
  height: auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  background: #080a08;
}
body.theme-dark-prestige .verify-authenticity-visual::before,
body.theme-dark-prestige .verify-authenticity-visual::after { content: none; }
body.theme-dark-prestige .verify-authenticity-picture {
  display: block;
  width: 100%;
  max-width: 760px;
}
body.theme-dark-prestige .verify-authenticity-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: none;
}

@media (max-width: 768px) {
  body.theme-dark-prestige .verify-authenticity-visual {
    min-height: 0;
    border-top: 1px solid var(--border-light);
  }
  body.theme-dark-prestige .verify-authenticity-picture { width: 100%; }
  body.theme-dark-prestige .verify-authenticity-image { width: 100%; max-width: none; }
}

/* Verification CTA: make the copy describe the exact vial-to-phone story. */
body.theme-dark-prestige .verify-section {
  background: #0b0e0b;
}
body.theme-dark-prestige .verify-inner {
  min-height: 0;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: stretch;
}
body.theme-dark-prestige .verify-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(36px, 5.5vw, 82px) clamp(24px, 5vw, 78px);
}
body.theme-dark-prestige .verify-content .overline {
  margin-bottom: 22px;
  color: var(--gold) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .12em !important;
  text-transform: none !important;
}
body.theme-dark-prestige .verify-content h2 {
  max-width: 9ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.8rem, 4.8vw, 5rem) !important;
  line-height: .94;
  letter-spacing: -.035em;
  text-wrap: balance;
}
body.theme-dark-prestige .verify-content .verify-intro {
  max-width: 42ch;
  margin: 24px 0 0;
  color: #b8b8af;
  font-size: 15px;
  line-height: 1.68;
}
body.theme-dark-prestige .verify-steps {
  width: min(100%, 460px);
  margin: clamp(26px, 3vw, 38px) 0 0;
  border-top: 1px solid var(--border-light);
}
body.theme-dark-prestige .verify-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 0 14px;
  border-bottom: 1px solid var(--border-light);
}
body.theme-dark-prestige .verify-step-index {
  padding-top: 1px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
body.theme-dark-prestige .verify-step strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
}
body.theme-dark-prestige .verify-step small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
body.theme-dark-prestige .verify-example {
  display: flex;
  width: min(100%, 460px);
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid rgba(216, 186, 120, .35);
  background: rgba(216, 186, 120, .055);
}
body.theme-dark-prestige .verify-example > div {
  display: grid;
  gap: 4px;
}
body.theme-dark-prestige .verify-example span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
}
body.theme-dark-prestige .verify-example strong {
  color: var(--gold-hover);
  font-family: var(--font-sans);
  font-size: clamp(17px, 2vw, 21px);
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
  white-space: nowrap;
}
body.theme-dark-prestige .verify-example p {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #c7d8c9;
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}
body.theme-dark-prestige .verify-example p i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9bd4b0;
}
body.theme-dark-prestige .verify-content > .btn {
  margin-top: 28px;
}
body.theme-dark-prestige .verify-authenticity-visual {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: clamp(22px, 3.5vw, 48px);
  border-inline-start: 1px solid var(--border-light);
  background:
    radial-gradient(circle at 50% 42%, rgba(216, 186, 120, .1), transparent 58%),
    #080a08;
}
body.theme-dark-prestige .verify-authenticity-visual::before,
body.theme-dark-prestige .verify-authenticity-visual::after { content: none; }
body.theme-dark-prestige .verify-visual-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  color: #8c8b82;
  font-size: 9px;
  letter-spacing: .13em;
}
body.theme-dark-prestige .verify-visual-kicker strong {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}
body.theme-dark-prestige .verify-visual-kicker i {
  padding-inline: 3px;
  color: var(--quiet);
  font-style: normal;
}
body.theme-dark-prestige .verify-authenticity-picture {
  display: block;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}
body.theme-dark-prestige .verify-authenticity-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: none;
}
body.theme-dark-prestige .verify-visual-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  align-items: baseline;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
body.theme-dark-prestige .verify-visual-caption > span {
  color: #8c8b82;
  font-size: 9px;
  letter-spacing: .12em;
}
body.theme-dark-prestige .verify-visual-caption strong {
  color: var(--gold-hover);
  font-family: var(--font-sans);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
  white-space: nowrap;
}
body.theme-dark-prestige .verify-visual-caption small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  body.theme-dark-prestige .verify-inner { grid-template-columns: 1fr; }
  body.theme-dark-prestige .verify-content {
    padding: 38px 20px 34px;
  }
  body.theme-dark-prestige .verify-content h2 {
    max-width: 11ch;
    font-size: clamp(2.75rem, 12vw, 4rem) !important;
  }
  body.theme-dark-prestige .verify-content .verify-intro {
    max-width: 38ch;
    margin-top: 20px;
    font-size: 15px;
  }
  body.theme-dark-prestige .verify-steps {
    width: 100%;
    margin-top: 26px;
  }
  body.theme-dark-prestige .verify-example {
    width: 100%;
    align-items: center;
    margin-top: 20px;
    padding: 14px;
  }
  body.theme-dark-prestige .verify-example p {
    max-width: 112px;
  }
  body.theme-dark-prestige .verify-content > .btn {
    width: 100%;
    justify-content: center;
    margin-top: 24px;
  }
  body.theme-dark-prestige .verify-authenticity-visual {
    padding: 18px 16px 20px;
    border-top: 1px solid var(--border-light);
    border-inline-start: 0;
  }
  body.theme-dark-prestige .verify-visual-kicker {
    margin-bottom: 10px;
    font-size: 8px;
  }
  body.theme-dark-prestige .verify-visual-kicker strong { font-size: 8px; }
  body.theme-dark-prestige .verify-visual-caption { margin-top: 10px; padding-top: 10px; }
}

@media (max-width: 420px) {
  body.theme-dark-prestige .verify-example { gap: 10px; }
  body.theme-dark-prestige .verify-example strong { font-size: 16px; }
  body.theme-dark-prestige .verify-example p { font-size: 9px; }
}

/* ── Redesign: hero quiet secondary link ───────────────────── */
.theme-dark-prestige .hero-quiet-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  align-self: center;
}
.theme-dark-prestige .hero-quiet-link:hover { color: var(--gold); border-color: var(--gold-border); }

/* ── Redesign: home "three steps" section ──────────────────── */
.theme-dark-prestige .kx-getting-started-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.theme-dark-prestige .kx-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.theme-dark-prestige .kx-step-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-section);
  padding: 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.theme-dark-prestige .kx-step-card .kx-step-num {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}
.theme-dark-prestige .kx-step-card h3 { font-family: var(--font-sans); font-size: 15px; font-weight: 700; }
.theme-dark-prestige .kx-step-card p { color: #8b8981; font-size: 13px; line-height: 1.65; }
@media (max-width: 900px) {
  .theme-dark-prestige .kx-steps-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   MOCKUP PARITY PASS — catalog, record lookup, staff queue
   ============================================================ */

/* Public home: turn the record panel into the working lookup shown in the
   artboard. The panel remains an anchored card on desktop and returns to the
   document flow on phones so it never covers the CTA. */
.theme-dark-prestige .store-access-icon,
.theme-dark-prestige .kx-gate-icon { display:flex; align-items:center; justify-content:center; }
.theme-dark-prestige .store-access-icon svg,
.theme-dark-prestige .kx-gate-icon svg { width:38px; height:38px; }
.theme-dark-prestige .hero-assay-label {
  margin-top: 20px;
  color: var(--text-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}
.theme-dark-prestige .hero-assay-value {
  margin-top: 5px;
  color: var(--gold-hover);
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.25vw, 34px);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.theme-dark-prestige .hero-assay-detail { color: var(--text-light); font-size: 9px; letter-spacing: .08em; }
.theme-dark-prestige .hero-record-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 7px;
  margin-top: 20px;
}
.theme-dark-prestige .hero-record-form input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #080a08;
  color: var(--text);
  padding: 0 15px;
  font: 500 11px/1 var(--font-sans);
}
.theme-dark-prestige .hero-record-form input:focus { border-color: var(--gold); outline: 2px solid rgba(214,184,117,.18); outline-offset: 2px; }
.theme-dark-prestige .hero-record-form input::placeholder { color: #77766f; }
.theme-dark-prestige .hero-record-form button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  cursor: pointer;
}
.theme-dark-prestige .hero-record-form button svg { width: 17px; height: 17px; }
.theme-dark-prestige .hero-record-hint { margin: 9px 2px 0; color: var(--text-light); font-size: 10px; line-height: 1.4; }

/* Storefront: the brief is a toolbar + catalog, not a second hero. */
.theme-dark-prestige .storefront-parity { background: var(--bg); }
.theme-dark-prestige .storefront-parity .storefront-controls {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-section);
}
.theme-dark-prestige .storefront-parity .storefront-controls .container { padding-block: 18px; }
.theme-dark-prestige .storefront-parity .storefront-controls-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-dark-prestige .storefront-parity .storefront-control-actions { display: flex; align-items: center; gap: 10px; width: 100%; }
.theme-dark-prestige .storefront-parity .storefront-search { position: relative; display: flex; flex: 1 1 360px; min-width: 0; }
.theme-dark-prestige .storefront-parity .storefront-search input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #080a08;
  color: var(--text);
  padding: 0 18px 0 42px;
  font: 500 12px/1 var(--font-sans);
}
.theme-dark-prestige .storefront-parity .storefront-search input:focus { border-color: var(--gold); outline: 2px solid rgba(214,184,117,.16); outline-offset: 2px; }
.theme-dark-prestige .storefront-parity .storefront-search-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--text-light);
  border-radius: 50%;
  transform: translateY(-56%);
  pointer-events: none;
}
.theme-dark-prestige .storefront-parity .storefront-search-icon::after { content:''; position:absolute; width:6px; height:1.5px; right:-5px; bottom:-2px; background:var(--text-light); transform:rotate(45deg); }
.theme-dark-prestige .storefront-parity .storefront-sort { display:flex; flex:0 0 154px; }
.theme-dark-prestige .storefront-parity .storefront-sort-select {
  width:100%;
  min-height:46px;
  border:1px solid var(--border);
  border-radius:999px;
  background:#080a08;
  color:var(--text-muted);
  padding:0 14px;
  font:600 11px/1 var(--font-sans);
}
.theme-dark-prestige .storefront-parity .storefront-filter-nav { display:flex; flex-wrap:wrap; gap:8px; margin-top:13px; }
.theme-dark-prestige .storefront-parity .filter-btn {
  min-height:38px;
  padding:0 15px;
  border:1px solid var(--border);
  border-radius:999px;
  background:transparent;
  color:var(--text-muted);
  font:800 10px/1 var(--font-sans);
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.theme-dark-prestige .storefront-parity .filter-btn:hover,
.theme-dark-prestige .storefront-parity .filter-btn.active { border-color:var(--gold); background:var(--gold); color:var(--black); }
.theme-dark-prestige .storefront-parity .storefront-catalog { padding-block:clamp(42px,6vw,74px); }
.theme-dark-prestige .storefront-parity .store-catalog-heading { display:flex; align-items:end; justify-content:space-between; gap:20px; margin-bottom:28px; }
.theme-dark-prestige .storefront-parity .store-catalog-heading .overline { margin:0 0 11px; color:var(--gold); font-size:11px; font-weight:800; letter-spacing:.16em; }
.theme-dark-prestige .storefront-parity .store-catalog-heading h1 { margin:0; font-size:clamp(2.8rem,5vw,4.7rem); line-height:.98; }
.theme-dark-prestige .storefront-parity .store-catalog-count { margin:0 0 5px; color:var(--text-light); font-size:12px; }
.theme-dark-prestige .storefront-parity .storefront-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; align-items:stretch; }
.theme-dark-prestige .storefront-parity .product-card {
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--border-light);
  border-radius:12px;
  background:var(--bg-section);
}
.theme-dark-prestige .storefront-parity .product-card:hover { border-color:var(--gold-border); transform:translateY(-3px); }
.theme-dark-prestige .storefront-parity .product-card-img { aspect-ratio:1.08 / 1; min-height:0; flex:0 0 auto; background:#171914; }
.theme-dark-prestige .storefront-parity .product-card-img img { object-fit:cover !important; }
.theme-dark-prestige .storefront-parity .product-card-body { display:flex; flex:1; flex-direction:column; min-width:0; padding:20px 20px 10px; }
.theme-dark-prestige .storefront-parity .product-card-kicker { width:max-content; max-width:100%; margin-bottom:13px; overflow:hidden; border-radius:999px; background:var(--gold-light); color:var(--gold); padding:5px 9px; font:800 9px/1 var(--font-sans); letter-spacing:.07em; text-transform:uppercase; white-space:nowrap; text-overflow:ellipsis; }
.theme-dark-prestige .storefront-parity .product-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.theme-dark-prestige .storefront-parity .product-card-name { min-width:0; color:var(--text); font-family:var(--font-serif); font-size:clamp(21px,2.2vw,30px); font-weight:500; line-height:1.02; }
.theme-dark-prestige .storefront-parity .product-card-dose { flex-shrink:0; margin-top:3px; padding:5px 8px; border:1px solid var(--border-light); border-radius:999px; background:transparent; color:var(--text-muted); font:800 9px/1 var(--font-sans); letter-spacing:.06em; white-space:nowrap; }
.theme-dark-prestige .storefront-parity .product-card-status-row { display:flex; flex-wrap:wrap; gap:5px; min-height:24px; margin-top:13px; }
.theme-dark-prestige .storefront-parity .product-card-chip { display:inline-flex; align-items:center; min-height:22px; padding:0 8px; border-radius:999px; font:800 8px/1 var(--font-sans); letter-spacing:.08em; }
.theme-dark-prestige .storefront-parity .product-card-chip-good { background:rgba(139,200,164,.14); color:var(--success); }
.theme-dark-prestige .storefront-parity .product-card-chip-warn { background:rgba(224,168,109,.15); color:#e0a86d; }
.theme-dark-prestige .storefront-parity .product-card-chip-out { background:rgba(239,141,130,.13); color:var(--error); }
.theme-dark-prestige .storefront-parity .product-card-description { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; min-height:38px; margin:13px 0 0; overflow:hidden; color:var(--text-muted); font-size:12px; line-height:1.58; }
.theme-dark-prestige .storefront-parity .product-card-meta { min-height:22px; margin-top:12px; }
.theme-dark-prestige .storefront-parity .product-card-verified { color:var(--success); }
.theme-dark-prestige .storefront-parity .product-card-options { width:calc(100% - 40px); min-height:44px; margin:0 20px 14px; border:1px solid var(--gold-border); border-radius:999px; background:transparent; color:var(--gold); font:800 10px/1 var(--font-sans); letter-spacing:.12em; cursor:pointer; }
.theme-dark-prestige .storefront-parity .product-card-options:hover { background:var(--gold); color:var(--black); }
.theme-dark-prestige .storefront-parity .product-card-footer { display:flex; align-items:flex-end; justify-content:space-between; gap:10px; min-height:59px; margin:0; padding:14px 20px 17px; border-top:1px solid var(--border-light); background:transparent; }
.theme-dark-prestige .storefront-parity .product-card-price-wrap { display:flex; flex-direction:column; gap:2px; min-width:0; }
.theme-dark-prestige .storefront-parity .product-card-price { color:var(--text); font-size:17px; }
.theme-dark-prestige .storefront-parity .product-card-price-meta { display:block; color:var(--text-muted); font:500 10px/1.3 var(--font-sans); letter-spacing:.02em; white-space:nowrap; }
.theme-dark-prestige .storefront-parity .product-card-price-wrap > span:not(.product-card-price) { color:var(--text-light) !important; font-size:10px !important; }
.theme-dark-prestige .storefront-parity .product-card-footer-action { display:none; }
.theme-dark-prestige .storefront-parity .product-card-hover-overlay { display:none; }
.theme-dark-prestige .storefront-parity .compound-suggestion-card { min-height:100%; box-sizing:border-box; display:flex; flex-direction:column; justify-content:flex-end; gap:12px; padding:24px; border:1px dashed var(--gold-border); border-radius:12px; background:rgba(214,184,117,.035); color:var(--text); text-decoration:none; }
.theme-dark-prestige .storefront-parity .compound-suggestion-card:hover { border-color:var(--gold); background:var(--gold-light); }
.theme-dark-prestige .storefront-parity .compound-suggestion-kicker { color:var(--gold); font-size:9px; font-weight:800; letter-spacing:.16em; }
.theme-dark-prestige .storefront-parity .compound-suggestion-card strong { max-width:10ch; font-family:var(--font-serif); font-size:clamp(24px,2.7vw,36px); font-weight:500; line-height:1.02; }
.theme-dark-prestige .storefront-parity .compound-suggestion-card > span:last-child { color:var(--gold); font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }

/* Staff shell: dark queue surface, grouped sidebar, readable wide table. */
body.theme-dark-prestige.kx-admin-surface { background:var(--bg); color:var(--text); }
body.theme-dark-prestige.kx-admin-surface #navbar { position:fixed; top:0; left:0; right:0; height:82px; background:#0d0f0c; border-bottom:1px solid var(--border-light); }
body.theme-dark-prestige.kx-admin-surface .admin-topbar { min-height:82px; padding:0 30px; background:#0d0f0c; }
body.theme-dark-prestige.kx-admin-surface .admin-topbar-title { font-family:var(--font-serif); font-size:18px; font-weight:500; letter-spacing:.2em; }
body.theme-dark-prestige.kx-admin-surface .admin-topbar-logout { min-height:40px; border:1px solid var(--border); border-radius:999px; background:transparent; color:var(--text); }
body.theme-dark-prestige.kx-admin-surface .app-main { margin-top:82px; }
body.theme-dark-prestige.kx-admin-surface .admin-layout { min-height:calc(100svh - 82px); background:var(--bg); }
body.theme-dark-prestige.kx-admin-surface .admin-sidebar { width:240px; box-sizing:border-box; position:sticky; top:82px; height:calc(100svh - 82px); background:#0d0f0c; border-right:1px solid var(--border-light); }
body.theme-dark-prestige.kx-admin-surface .admin-sidebar-header { padding:28px 22px 22px; border-bottom:1px solid var(--border-light); }
body.theme-dark-prestige.kx-admin-surface .admin-sidebar-header h2 { color:var(--text); font-family:var(--font-serif); font-size:18px; font-weight:500; letter-spacing:.13em; }
body.theme-dark-prestige.kx-admin-surface .admin-sidebar-header p { color:var(--text-light); font-size:11px; }
body.theme-dark-prestige.kx-admin-surface .admin-nav { padding:16px 10px 10px; }
body.theme-dark-prestige.kx-admin-surface .admin-nav-group { margin-bottom:18px; }
body.theme-dark-prestige.kx-admin-surface .admin-nav-group > p { margin:0 12px 6px; color:var(--text-light); font:800 9px/1 var(--font-sans); letter-spacing:.18em; }
body.theme-dark-prestige.kx-admin-surface .admin-nav-primary { margin-bottom:16px; }
body.theme-dark-prestige.kx-admin-surface .admin-nav a,
body.theme-dark-prestige.kx-admin-surface .admin-sidebar-footer a { min-height:40px; box-sizing:border-box; display:flex; align-items:center; gap:10px; padding:0 12px; border-left:1px solid transparent; border-radius:8px; color:var(--text-muted); font:700 10px/1 var(--font-sans); letter-spacing:.04em; text-transform:none; }
body.theme-dark-prestige.kx-admin-surface .admin-nav a:hover,
body.theme-dark-prestige.kx-admin-surface .admin-nav a.active { border-left-color:var(--gold); background:var(--gold-light); color:var(--gold); }
body.theme-dark-prestige.kx-admin-surface .admin-nav .nav-icon,
body.theme-dark-prestige.kx-admin-surface .admin-sidebar-footer .nav-icon { color:currentColor; }
body.theme-dark-prestige.kx-admin-surface .admin-sidebar-footer { position:absolute; right:0; bottom:0; left:0; padding:14px 10px 16px; border-top:1px solid var(--border-light); background:#0d0f0c; }
body.theme-dark-prestige.kx-admin-surface .admin-user-chip { display:flex; align-items:center; gap:9px; margin:0 10px 10px; color:var(--text); }
body.theme-dark-prestige.kx-admin-surface .admin-user-chip strong { display:block; font-size:11px; }
body.theme-dark-prestige.kx-admin-surface .admin-user-chip small { display:block; margin-top:2px; color:var(--text-light); font-size:9px; text-transform:uppercase; }
body.theme-dark-prestige.kx-admin-surface .admin-user-avatar { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border:1px solid var(--gold-border); border-radius:50%; color:var(--gold); font-size:10px; font-weight:800; }
body.theme-dark-prestige.kx-admin-surface .admin-content { min-width:0; box-sizing:border-box; padding:clamp(28px,4vw,54px); background:var(--bg); color:var(--text); }
body.theme-dark-prestige.kx-admin-surface .admin-page-header { align-items:flex-end; margin-bottom:24px; }
body.theme-dark-prestige.kx-admin-surface .admin-page-header h1 { margin:0; color:var(--text); font-family:var(--font-serif); font-size:clamp(34px,4vw,52px); font-weight:500; letter-spacing:-.03em; }
body.theme-dark-prestige.kx-admin-surface .admin-page-header p:not(.admin-eyebrow) { color:var(--text-muted); }
body.theme-dark-prestige.kx-admin-surface .admin-eyebrow { margin:0 0 9px; color:var(--gold); font:800 10px/1 var(--font-sans); letter-spacing:.16em; }
body.theme-dark-prestige.kx-admin-surface .admin-header-actions { display:flex; gap:8px; flex-wrap:wrap; }
body.theme-dark-prestige.kx-admin-surface .admin-header-actions .btn { min-height:42px; }
body.theme-dark-prestige.kx-admin-surface .admin-danger-button { color:var(--error); border-color:rgba(239,141,130,.55); }
body.theme-dark-prestige.kx-admin-surface .admin-search-input { max-width:420px; min-height:46px; border-radius:999px; background:#0d0f0c; color:var(--text); }
body.theme-dark-prestige.kx-admin-surface .admin-pipeline-btn { min-height:40px; display:inline-flex; align-items:center; gap:7px; padding:0 15px; border:1px solid var(--border); border-radius:999px; background:transparent; color:var(--text-muted); font:800 10px/1 var(--font-sans); letter-spacing:.08em; cursor:pointer; }
body.theme-dark-prestige.kx-admin-surface .admin-pipeline-btn span { color:var(--gold); }
body.theme-dark-prestige.kx-admin-surface .admin-pipeline-btn.active { border-color:var(--gold); background:var(--gold-light); color:var(--gold); }
body.theme-dark-prestige.kx-admin-surface .admin-table-wrap { overflow-x:auto; border:1px solid var(--border-light); border-radius:12px; background:#0d0f0c; }
body.theme-dark-prestige.kx-admin-surface .admin-table { min-width:920px; color:var(--text); }
body.theme-dark-prestige.kx-admin-surface .admin-table th { padding:14px 16px; background:#10120e; color:var(--text-light); border-bottom:1px solid var(--border-light); font-size:9px; letter-spacing:.15em; }
body.theme-dark-prestige.kx-admin-surface .admin-table td { padding:16px; border-bottom:1px solid rgba(243,240,232,.08); color:var(--text-muted); }
body.theme-dark-prestige.kx-admin-surface .admin-table tr:hover td { background:rgba(214,184,117,.035); }
body.theme-dark-prestige.kx-admin-surface .admin-order-id strong { display:block; color:var(--gold); font:700 12px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; }
body.theme-dark-prestige.kx-admin-surface .admin-order-id small,
body.theme-dark-prestige.kx-admin-surface .admin-order-customer span,
body.theme-dark-prestige.kx-admin-surface .admin-order-customer small,
body.theme-dark-prestige.kx-admin-surface .admin-order-customer em,
body.theme-dark-prestige.kx-admin-surface .admin-order-vials small { display:block; margin-top:4px; color:var(--text-light); font-size:10px; font-style:normal; }
body.theme-dark-prestige.kx-admin-surface .admin-order-customer strong { display:block; color:var(--text); font-size:13px; }
body.theme-dark-prestige.kx-admin-surface .admin-order-customer em { color:var(--error); }
body.theme-dark-prestige.kx-admin-surface .admin-order-items span { display:block; color:var(--text); white-space:nowrap; }
body.theme-dark-prestige.kx-admin-surface .admin-order-items small { color:var(--text-light); }
body.theme-dark-prestige.kx-admin-surface .admin-form-chip,
body.theme-dark-prestige.kx-admin-surface .admin-status-chip { display:inline-flex; align-items:center; min-height:24px; box-sizing:border-box; margin:2px 4px 2px 0; padding:0 8px; border-radius:999px; font:800 8px/1 var(--font-sans); letter-spacing:.08em; }
body.theme-dark-prestige.kx-admin-surface .admin-form-chip.is-premixed { background:rgba(139,200,164,.14); color:var(--success); }
body.theme-dark-prestige.kx-admin-surface .admin-form-chip.is-lyo { background:rgba(183,171,232,.14); color:#b7abe8; }
body.theme-dark-prestige.kx-admin-surface .admin-status-chip { background:var(--gold-light); color:var(--gold); text-transform:uppercase; }
body.theme-dark-prestige.kx-admin-surface .admin-order-total { color:var(--text); font-size:15px; font-weight:700; white-space:nowrap; }
body.theme-dark-prestige.kx-admin-surface .admin-order-vials strong { display:block; font-size:12px; }
body.theme-dark-prestige.kx-admin-surface .admin-order-vials .needs-vials { color:var(--error); }
body.theme-dark-prestige.kx-admin-surface .admin-order-vials .vials-ready { color:var(--success); }
body.theme-dark-prestige.kx-admin-surface .admin-order-status { min-height:28px; margin-top:8px; border:1px solid var(--border); border-radius:999px; background:#080a08; color:var(--text-muted); padding:0 8px; font-size:10px; }
body.theme-dark-prestige.kx-admin-surface .admin-primary-action { min-height:38px; border-color:var(--gold-border); border-radius:999px; color:var(--gold); background:transparent; font-size:9px; letter-spacing:.1em; }
body.theme-dark-prestige.kx-admin-surface .admin-primary-action:hover { background:var(--gold); color:var(--black); }
body.theme-dark-prestige.kx-admin-surface .admin-primary-action.admin-action-danger { border-color:rgba(239,141,130,.65); color:var(--error); }
body.theme-dark-prestige.kx-admin-surface .admin-primary-action.admin-action-danger:hover { background:var(--error); color:var(--black); }
body.theme-dark-prestige.kx-admin-surface .admin-delete-action { display:block; margin-top:5px; border:0; color:var(--text-light); font-size:8px; }
body.theme-dark-prestige.kx-admin-surface .admin-table-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:13px; color:var(--text-light); font-size:11px; }
body.theme-dark-prestige.kx-admin-surface .admin-pagination { display:flex; gap:5px; }
body.theme-dark-prestige.kx-admin-surface .admin-pagination button { width:30px; height:30px; border:1px solid var(--border); border-radius:50%; background:transparent; color:var(--text-muted); cursor:pointer; }
body.theme-dark-prestige.kx-admin-surface .admin-pagination button.active { border-color:var(--gold); background:var(--gold); color:var(--black); }
body.theme-dark-prestige.kx-admin-surface details summary { border:1px solid var(--border-light) !important; border-radius:10px; background:#0d0f0c !important; color:var(--text-muted); }

/* Dashboard panels: override legacy white inline surfaces so staff can read
   the queue and recent-activity tables in the same nocturne theme on phones
   and desktop. */
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel {
  box-sizing:border-box;
  width:100%;
  margin-bottom:24px;
  padding:24px;
  border:1px solid var(--border-light);
  border-radius:12px;
  background:#0d0f0c;
  color:var(--text);
}
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel.is-active {
  border-color:var(--gold-border);
  background:rgba(214,184,117,.045);
}
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel h3 {
  color:var(--text);
  font-size:13px;
  letter-spacing:.15em;
}
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel p { color:var(--text-muted); }
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel .admin-table { background:transparent; }
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel .admin-table th { background:#10120e; color:var(--text-light); }
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel .admin-table td { color:var(--text-muted); }
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel .admin-table td:first-child { color:var(--text); }
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel .admin-table tr:hover td { background:rgba(214,184,117,.035); }
body.theme-dark-prestige.kx-admin-surface .admin-attention-panel .admin-attention-icon { color:var(--gold); width:20px; height:20px; }
body.theme-dark-prestige.kx-admin-surface .admin-attention-panel .admin-attention-icon svg { width:18px; height:18px; }
body.theme-dark-prestige.kx-admin-surface .admin-attention-panel > div { border-bottom-color:rgba(243,240,232,.1) !important; }
body.theme-dark-prestige.kx-admin-surface .admin-attention-panel > div:last-child { border-bottom:0 !important; }
body.theme-dark-prestige.kx-admin-surface .admin-attention-panel > div[style*="color:#2a5a2a"] { color:var(--success) !important; }
body.theme-dark-prestige.kx-admin-surface .admin-attention-panel .btn-outline { color:var(--gold); border-color:var(--gold-border); }
body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel .badge { border-color:var(--border-light); }

@media (max-width: 960px) {
  .theme-dark-prestige .storefront-parity .storefront-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.theme-dark-prestige.kx-admin-surface .admin-sidebar { width:210px; }
  body.theme-dark-prestige.kx-admin-surface .admin-content { padding:28px 22px; }
}
@media (max-width: 768px) {
  body.theme-dark-prestige .hero { display:block; }
  body.theme-dark-prestige .hero > .container { display:block; }
  body.theme-dark-prestige .hero-assay-card { display:block; position:relative; right:auto; bottom:auto; width:auto; max-width:none; margin:0 16px 26px; }
  .theme-dark-prestige .storefront-parity .storefront-controls-head { display:block; }
  .theme-dark-prestige .storefront-parity .storefront-control-actions { display:grid; grid-template-columns:minmax(0,1fr) 132px; }
  .theme-dark-prestige .storefront-parity .storefront-sort { flex-basis:auto; }
  .theme-dark-prestige .storefront-parity .store-catalog-heading { align-items:flex-start; flex-direction:column; gap:7px; }
  body.theme-dark-prestige.kx-admin-surface #navbar,
  body.theme-dark-prestige.kx-admin-surface .admin-topbar { height:70px; min-height:70px; }
  body.theme-dark-prestige.kx-admin-surface .admin-topbar { padding-inline:16px; }
  body.theme-dark-prestige.kx-admin-surface .admin-topbar-title { font-size:14px; }
  body.theme-dark-prestige.kx-admin-surface .admin-topbar-user { display:none; }
  body.theme-dark-prestige.kx-admin-surface .app-main { margin-top:70px; }
  body.theme-dark-prestige.kx-admin-surface .admin-layout { min-height:calc(100svh - 70px); }
  body.theme-dark-prestige.kx-admin-surface .admin-sidebar { width:100%; height:auto; position:static; border-right:0; border-bottom:1px solid var(--border-light); }
  body.theme-dark-prestige.kx-admin-surface .admin-sidebar-header { display:none; }
  body.theme-dark-prestige.kx-admin-surface .admin-nav { display:flex; gap:7px; overflow-x:auto; padding:10px; scrollbar-width:none; }
  body.theme-dark-prestige.kx-admin-surface .admin-nav::-webkit-scrollbar { display:none; }
  body.theme-dark-prestige.kx-admin-surface .admin-nav-primary,
  body.theme-dark-prestige.kx-admin-surface .admin-nav-group { display:flex; gap:7px; margin:0; }
  body.theme-dark-prestige.kx-admin-surface .admin-nav-group > p { display:none; }
  body.theme-dark-prestige.kx-admin-surface .admin-nav a { flex:0 0 auto; min-height:38px; padding:0 12px; border:1px solid var(--border); border-radius:999px; }
  body.theme-dark-prestige.kx-admin-surface .admin-nav a.active { border-color:var(--gold); }
  body.theme-dark-prestige.kx-admin-surface .admin-sidebar-footer { display:none; }
  body.theme-dark-prestige.kx-admin-surface .admin-content { padding:24px 14px 42px; }
  body.theme-dark-prestige.kx-admin-surface .admin-page-header { align-items:stretch; gap:16px; }
  body.theme-dark-prestige.kx-admin-surface .admin-header-actions .btn { flex:1; justify-content:center; }
  body.theme-dark-prestige.kx-admin-surface .admin-table-footer { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 480px) {
  body.theme-dark-prestige.kx-admin-surface .admin-dashboard-panel { padding:18px 14px; border-radius:10px; }
  .theme-dark-prestige .storefront-parity .storefront-control-actions { grid-template-columns:1fr; }
  .theme-dark-prestige .storefront-parity .storefront-sort-select { width:100%; }
  .theme-dark-prestige .storefront-parity .storefront-grid { gap:10px; }
  .theme-dark-prestige .storefront-parity .product-card-body { padding:15px 13px 8px; }
  .theme-dark-prestige .storefront-parity .product-card-name { font-size:20px; }
  .theme-dark-prestige .storefront-parity .product-card-dose { font-size:8px; }
  .theme-dark-prestige .storefront-parity .product-card-options { width:calc(100% - 26px); margin-inline:13px; }
  .theme-dark-prestige .storefront-parity .product-card-footer { padding-inline:13px; }
  .theme-dark-prestige .storefront-parity .compound-suggestion-card { padding:18px; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-dark-prestige .product-card,
  .theme-dark-prestige .btn,
  .theme-dark-prestige .hero-record-form input { transition:none !important; }
}
