/* Layout: a lab-report library. A deep-blue header band with a drawn double helix,
   then white cards on a pale ground: one search card, and one card of report rows
   per peptide. One light look, by choice. */
:root {
  --ground: #f3f5f8; --card: #ffffff; --ink: #121c2f; --ink-2: #5d6879;
  --line: #e2e7ee; --line-strong: #c9d1dc;
  --navy: #0f1b33; --on-navy: #ffffff; --blue: #0b4d96; --blue-wash: #e9f1fb;
  --pass: #15734a; --pass-wash: #e3f4eb;
  --hero-a: #07173a; --hero-b: #0b4d96; --hero-glow: rgba(150, 214, 248, .55); --hero-fade: rgba(11, 77, 150, 0);
  --on-hero: #ffffff; --on-hero-2: #cfdcf0;
  --doc: #ffffff; --shade: rgba(15, 27, 51, .6);
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Poppins", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --measure: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 .95rem/1.6 var(--body); -webkit-text-size-adjust: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.eyebrow { font: 600 .7rem/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: .92em; font-weight: 500; }
.title { font: 700 1.6rem/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }

/* header + hero */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem 1.5rem; padding-block: .9rem; }
.logo { display: grid; color: var(--navy); line-height: 1; }
.logo span { font: 800 1.4rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; }
.logo small { margin-top: .3rem; font: 500 .6rem/1 var(--body); letter-spacing: .4em; text-transform: uppercase; }
.hero { position: relative; overflow: hidden; color: var(--on-hero);
  background: radial-gradient(46rem 26rem at 80% 45%, var(--hero-glow) 0, var(--hero-fade) 62%), linear-gradient(100deg, var(--hero-a) 0, var(--hero-a) 30%, var(--hero-b) 100%); }
.helix { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 44%, #000 66%); mask-image: linear-gradient(90deg, transparent 0, transparent 44%, #000 66%); }
.h-dot { fill: var(--on-hero); }
.h-rung { stroke: var(--on-hero); stroke-width: 1.5; opacity: .2; }
.hero .wrap { position: relative; display: grid; gap: 1rem; padding-block: clamp(2.25rem, 6vw, 4.25rem); }
.hero .eyebrow { color: var(--on-hero-2); }
.hero h1 { max-width: 18ch; font: 700 clamp(2.4rem, 6vw, 3.8rem)/1 var(--display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.lede { max-width: 54ch; color: var(--on-hero-2); font-size: 1.02rem; }
.tally { display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; margin: .6rem 0 0; }
.tally dt { color: var(--on-hero-2); font: 600 .68rem/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; }
.tally dd { margin: .1rem 0 0; font: 600 1.3rem/1.2 var(--body); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .helix { opacity: .3; -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 34%); mask-image: linear-gradient(180deg, #000 0, transparent 34%); } }

/* finder */
main > .wrap { display: grid; gap: 1.25rem; padding-block: 1.5rem 3.5rem; }
.finder { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, 1.4fr); gap: .9rem 1rem; align-items: end; padding: 1.1rem; }
@media (max-width: 760px) { .finder { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .finder .wide { grid-column: 1 / -1; } }
.field { display: grid; gap: .35rem; min-width: 0; }
.field input, .field select { width: 100%; min-width: 0; height: 3.1rem; padding: 0 1rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 500; }
.field input::placeholder { color: var(--ink-2); font-weight: 400; opacity: 1; }
.count { grid-column: 1 / -1; color: var(--ink-2); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* report groups + rows */
.groups { display: grid; gap: 1.5rem; }
.group { display: grid; gap: .6rem; }
.group > header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-inline: .25rem; }
.group h2 { font: 700 1.35rem/1.2 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.rows { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.report + .report { border-top: 1px solid var(--line); }
.report > summary { display: block; padding: .9rem 1.1rem; list-style: none; cursor: pointer; }
.report > summary::-webkit-details-marker { display: none; }
.report > summary:hover, .report[open] > summary { background: var(--ground); }
.row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) 7rem 5.5rem minmax(0, 1.15fr) 1rem; column-gap: 1rem; align-items: center; }
.r-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.r-batch { min-width: 0; font: 500 .84rem/1.4 var(--mono); overflow-wrap: anywhere; }
.r-batch.none { color: var(--ink-2); font: 400 .86rem/1.4 var(--body); }
.r-date { color: var(--ink-2); font-size: .86rem; }
.r-purity { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.r-amount { min-width: 0; color: var(--ink-2); font-size: .88rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.chev { width: .5rem; height: .5rem; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.report[open] .chev { transform: rotate(-135deg); }
@media (max-width: 820px) {
  .row { grid-template-columns: minmax(0, 1fr) auto 1rem; grid-template-areas: "name purity chev" "batch date date" "amount amount amount"; row-gap: .35rem; }
  .r-name { grid-area: name; } .r-purity { grid-area: purity; } .chev { grid-area: chev; }
  .r-batch { grid-area: batch; } .r-date { grid-area: date; text-align: right; } .r-amount { grid-area: amount; }
}
.sheet { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.5rem 2.25rem; padding: 1.2rem 1.1rem 1.5rem; background: var(--ground); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .sheet { grid-template-columns: minmax(0, 1fr); } }
.sheet > div { display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.block { display: grid; gap: .5rem; }
.pairs { display: grid; margin: 0; }
.pairs > div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .45rem; border-bottom: 1px solid var(--line); }
.pairs dt { color: var(--ink-2); font-size: .88rem; }
.pairs dd { min-width: 0; margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.pairs.lab dd { color: var(--navy); font-size: 1.05rem; font-weight: 600; }
.doc { display: grid; gap: .4rem; justify-items: start; padding: 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; }
.page { display: block; width: min(13rem, 100%); aspect-ratio: 732 / 1080; overflow: hidden; background: var(--doc); border: 1px solid var(--line-strong); border-radius: 6px; }
.doc:hover .page { border-color: var(--blue); }
.page img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.keyline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; }
.key { padding: .3rem .55rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 6px; font: 500 .9rem/1.2 var(--mono); letter-spacing: .04em; user-select: all; }
.btn { height: 2.3rem; padding: 0 .9rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 8px; font-size: .88rem; font-weight: 500; cursor: pointer; }
.btn:hover { border-color: var(--blue); color: var(--blue); }
/* header search */
.top .wrap { flex-wrap: nowrap; }
.hsearch { flex: 1 1 22rem; max-width: 26rem; position: relative; }
.hsearch input { width: 100%; height: 2.6rem; padding: 0 1rem 0 2.5rem; background: var(--ground); border: 1px solid var(--line); border-radius: 999px; }
.hsearch input:focus { background: var(--card); border-color: var(--blue); outline: none; }
.hsearch svg, .stoggle svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hsearch svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--ink-2); pointer-events: none; }
.stoggle { display: none; width: 2.6rem; height: 2.6rem; place-items: center; background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
@media (max-width: 1040px) { .top .wrap { flex-wrap: wrap; } .top .eyebrow { display: none; } }
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; }
  .top .eyebrow { display: none; }
  .stoggle { display: grid; }
  .hsearch { display: none; flex-basis: 100%; max-width: none; order: 3; }
  .top.searching .hsearch { display: block; }
}

/* perks row */
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.perks li { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.perks svg { flex: none; width: 2.1rem; height: 2.1rem; padding: .45rem; background: var(--blue-wash); border-radius: 10px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.perks strong { display: block; font-size: .92rem; }
.perks span { display: block; color: var(--ink-2); font-size: .84rem; line-height: 1.45; }

/* product cards */
.prices { display: grid; gap: 1rem; }
.prices > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; padding-inline: .25rem; }
/* six vials per line on a desktop; the products section is wider than the rest of the page to fit them */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } /* cards in a row share a height, so the price and Add to cart sit on one line across the row (the bullets are kept short so the gap above the price stays small) */
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) {
  .prices#products { width: min(1560px, 100vw - 2 * var(--gutter)); margin-inline: calc(50% - min(1560px, 100vw - 2 * var(--gutter)) / 2); }
  .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; }
}
.pcard { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px -18px rgba(15, 27, 51, .45); }
.thumb { display: grid; place-items: center; aspect-ratio: 1; background: radial-gradient(70% 70% at 50% 40%, #ffffff 0, var(--blue-wash) 100%); border-bottom: 1px solid var(--line); }
.thumb svg { width: 46%; height: auto; }
.pbody { display: flex; flex-direction: column; gap: .35rem; padding: .85rem .9rem 1rem; }
.pcat { color: var(--ink-2); font: 600 .66rem/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; }
.pname { font: 700 1.1rem/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.pmeta { color: var(--ink-2); font-size: .84rem; font-variant-numeric: tabular-nums; }
.p-price { margin-top: .2rem; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.p-price.ask { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.pact { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.pact .btn { padding-inline: .8rem; font-size: .84rem; }
.pact .btn { display: inline-grid; place-items: center; text-decoration: none; }
.btn.solid { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.btn.solid:hover { background: var(--blue); border-color: var(--blue); color: var(--on-navy); }
.p-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; padding-inline: .25rem; color: var(--ink-2); font-size: .85rem; }
.dist { font-size: .8rem; color: var(--ink-2); }

/* disclaimers */
.legal { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.legal ul { display: grid; gap: .6rem; margin: 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .88rem; }
.legal li::marker { color: var(--blue); }
.legal strong { color: var(--ink); }
.foot .wrap { display: grid; gap: .9rem; }
.foot .fine { max-width: 90ch; font-size: .78rem; line-height: 1.55; }
.foot .frow { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; }

/* age gate */
.gate { width: min(30rem, calc(100vw - 2rem)); padding: 0; border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); }
.gate::backdrop { background: rgba(7, 23, 58, .92); }
.gate form { display: grid; gap: 1rem; padding: clamp(1.25rem, 4vw, 2rem); }
.gate h2 { font: 700 1.7rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.gate p { color: var(--ink-2); font-size: .9rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--blue); }
.check.small { color: var(--ink-2); font-size: .84rem; }
.gate .btns { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.gate .btns .btn { height: 2.7rem; padding-inline: 1.3rem; }
.gate .btn.solid:disabled { opacity: .4; cursor: not-allowed; }
.empty { display: grid; gap: .75rem; justify-items: start; padding: 2rem 1.25rem; }
.empty p { max-width: 52ch; }

/* guide, footer, viewer */
.guide { display: grid; gap: 1.25rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem 2.5rem; margin: 0; }
.terms dt { margin-bottom: .2rem; font-weight: 600; }
.terms dd { max-width: 46ch; margin: 0; color: var(--ink-2); font-size: .9rem; }
.foot { background: var(--card); border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; padding-block: 1.4rem 2.2rem; color: var(--ink-2); font-size: .84rem; }
.viewer { width: min(44rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); padding: 0; background: var(--card); border: 0; border-radius: var(--radius); color: var(--ink); overflow: hidden; }
.viewer::backdrop { background: var(--shade); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.v-head, .v-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .8rem 1.1rem; }
.v-head { border-bottom: 1px solid var(--line); }
.v-foot { border-top: 1px solid var(--line); font-size: .9rem; }
.v-title { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.v-title small { display: block; color: var(--ink-2); font-size: .8rem; font-weight: 400; }
.v-body { display: grid; justify-items: center; padding: 1.1rem; background: var(--ground); overflow: auto; }
.v-body img { max-width: 100%; height: auto; background: var(--doc); border: 1px solid var(--line-strong); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- store additions ---- */
.top { position: sticky; top: 0; z-index: 20; }
.top .wrap { gap: .6rem 1rem; }
.top .tools { display: flex; align-items: center; gap: .5rem; }
.cartbtn { position: relative; display: inline-flex; align-items: center; gap: .45rem; height: 2.6rem; padding: 0 1rem; background: var(--navy); border: 0; border-radius: 999px; color: var(--on-navy); font-weight: 600; font-size: .88rem; cursor: pointer; }
.cartbtn:hover { background: var(--blue); }
.cartbtn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cartbtn .n { min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; display: inline-grid; place-items: center; background: var(--on-navy); color: var(--navy); border-radius: 999px; font-size: .72rem; font-weight: 700; }
.announce { background: var(--blue); color: var(--on-navy); text-align: center; font-size: .84rem; padding: .5rem var(--gutter); }
.sectionhead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; padding-inline: .25rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.qty button { width: 2.1rem; height: 2.2rem; background: var(--card); border: 0; cursor: pointer; font-size: 1rem; }
.qty button:hover { background: var(--ground); }
.qty span { min-width: 2rem; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stockline { font-size: .8rem; color: var(--ink-2); }
/* description: what's in the vial, then the benefit bullets; the price and buttons sit at the bottom so a row of cards lines up */
.pdesc { color: var(--ink-2); line-height: 1.4; }
.benefits { margin: .25rem 0 .1rem; padding: .45rem 0 0; list-style: none; font-size: .8rem; line-height: 1.3; color: var(--ink); font-weight: 500; display: grid; gap: .25rem; border-top: 1px solid var(--line); }
.benefits li { position: relative; padding-left: 1.1rem; }
.benefits li::before { content: ""; position: absolute; left: 0; top: .3em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 2px var(--blue-wash); }
@media (max-width: 639px) { .benefits { font-size: .76rem; } .benefits li { padding-left: 1rem; } } /* two cards across a phone: a 20-character bullet still fits on one line */
.pbuy { display: grid; gap: .35rem; margin-top: auto; padding-top: .5rem; }
.pbuy .stockline.note { justify-self: start; }
/* while the store loads, the last-seen cards are drawn without prices (they come with the fresh data a moment later) */
.pcard.pend .p-price, .pcard.pend .pact { visibility: hidden; }
.stockline.low { color: #a15c00; font-weight: 600; }
.soldout { color: #9b1c1c; font-weight: 600; font-size: .85rem; }

/* side drawer + modal shared */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(26rem, 100vw); height: 100%; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--card); color: var(--ink); }
.drawer::backdrop, .modal::backdrop { background: var(--shade); }
.drawer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.d-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.d-head h2 { font: 700 1.4rem/1 var(--display); text-transform: uppercase; }
.d-body { overflow: auto; padding: .4rem 1.2rem; }
.d-foot { display: grid; gap: .7rem; padding: 1rem 1.2rem 1.4rem; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 1rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.line .nm { font-weight: 600; }
.line .nm small { display: block; color: var(--ink-2); font-weight: 400; font-size: .82rem; }
.line .amt { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.line .ctl { display: flex; align-items: center; gap: .6rem; }
.linkbtn { padding: 0; background: none; border: 0; color: var(--ink-2); font-size: .82rem; text-decoration: underline; cursor: pointer; }
/* checkout: ship or local delivery, discount code */
.choicebox { margin: 0; padding: 0; border: 0; min-width: 0; }
.choicebox legend { padding: 0; margin-bottom: .35rem; }
.choices { display: grid; gap: .5rem; }
.choice-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .7rem .9rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; }
.choice-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue); }
.choice-opt input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--blue); }
.choice-opt strong { display: block; font-weight: 600; } .choice-opt small { display: block; color: var(--ink-2); font-size: .8rem; }
.choice-opt .amt { font-weight: 700; white-space: nowrap; }
.coderow { display: flex; gap: .5rem; } .coderow input { flex: 1; text-transform: uppercase; } .coderow .btn { height: 3.1rem; flex: none; }
.coderow input::placeholder { text-transform: none; }
.totals .off { color: var(--pass); }
.totals { display: grid; gap: .3rem; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; }
.totals .big { font-size: 1.15rem; font-weight: 700; }
.btn.wide { width: 100%; height: 2.9rem; font-weight: 600; }
.modal { width: min(40rem, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); overflow: auto; }
.modal form, .modal .mbody { display: grid; gap: 1rem; padding: clamp(1.1rem, 4vw, 1.8rem); }
.modal h2 { font: 700 1.6rem/1.1 var(--display); text-transform: uppercase; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .8rem 1rem; }
.field textarea { width: 100%; min-height: 5rem; padding: .7rem 1rem; border: 1px solid var(--line-strong); border-radius: 10px; font: inherit; resize: vertical; }
.field input, .field select { height: 2.8rem; }
.err { padding: .7rem 1rem; background: #fdecec; color: #8a1c1c; border-radius: 8px; font-size: .88rem; }
.okbox { display: grid; gap: .8rem; padding: 1.1rem; background: var(--pass-wash); border-radius: 10px; }
.okbox .num { font: 600 1.4rem/1 var(--mono); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.track { display: grid; gap: .9rem; padding: clamp(1.1rem, 3vw, 1.75rem); }
.track form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: .8rem; align-items: end; }
@media (max-width: 640px) { .track form { grid-template-columns: minmax(0, 1fr); } }
.toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 50; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); padding: .7rem 1.1rem; background: var(--navy); color: var(--on-navy); border-radius: 1.2rem; font-size: .88rem; line-height: 1.4; text-align: center; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }

/* dark footer with columns */
.foot.dark { background: #05070d; border-top: 0; color: #c7cdd8; }
.foot.dark .wrap { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 1.6rem; padding-block: 2.4rem 2.6rem; color: #c7cdd8; }
.fcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.6rem 2.5rem; }
.fcols h3 { margin: 0 0 .6rem; color: #fff; font: 700 1.15rem/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.fcols ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.foot.dark a { color: #c7cdd8; text-decoration: none; }
.foot.dark a:hover { color: #fff; text-decoration: underline; }
.fbrand { color: #fff; font: 800 1.3rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; }
.foot.dark .fine { display: grid; gap: .8rem; max-width: 100ch; padding-top: 1.4rem; border-top: 1px solid #1d2433; font-size: .82rem; line-height: 1.6; }
.foot.dark .fine p { margin: 0; }
.foot.dark .frow { font-size: .8rem; color: #8b93a3; align-items: center; }
.verpill { display: inline-block; padding: .2rem .6rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #e5e9f0; font-size: .76rem; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding-inline: .25rem; }
.chip { height: 2.2rem; padding: 0 1rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.research { margin-top: .15rem; color: var(--ink-2); font-size: .72rem; line-height: 1.35; }
.legal li strong { color: var(--ink); }

/* scrolling banner */
.announce.scroll { display: flex; overflow: hidden; padding: .5rem 0; line-height: 1.3; white-space: nowrap; text-align: left; }
.announce.scroll .mq { display: flex; flex: none; align-items: center; animation: marquee 30s linear infinite; }
.announce.scroll span { display: inline-flex; align-items: center; padding-inline: 2rem; font-weight: 600; letter-spacing: .02em; }
.announce.scroll span::before { content: "•"; margin-right: 2rem; opacity: .5; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* keeps scrolling (slower) even when the device has reduced animations turned on */
@media (prefers-reduced-motion: reduce) { .announce.scroll .mq { animation-duration: 60s; } }

.acctbtn { display: inline-flex; align-items: center; gap: .4rem; height: 2.6rem; border-radius: 999px; }
.acctbtn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 760px) { .acctbtn span { display: none; } .acctbtn { width: 2.6rem; padding: 0; justify-content: center; } }
.herobtns { display: flex; flex-wrap: wrap; gap: .6rem; }
.herobtns .btn { display: inline-grid; place-items: center; height: 2.8rem; padding: 0 1.4rem; text-decoration: none; font-weight: 600; }
.btn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }
.linkbtn.light { color: #c7cdd8; font-size: inherit; }
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); }
.tabs button { padding: .6rem .9rem; background: none; border: 0; border-bottom: 2px solid transparent; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--blue); }
.olist { display: grid; gap: .6rem; }
.orow { display: grid; gap: .25rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; font-size: .88rem; }
.orow .top2 { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }

/* header buttons: fixed size, white with dark text so they read on any background */
.acctbtn { flex: none; height: 2.6rem; padding: 0 1rem; background: var(--card); border: 1px solid var(--line-strong); color: var(--ink); font-size: .88rem; font-weight: 600; white-space: nowrap; line-height: 1; }
.acctbtn:hover { border-color: var(--blue); color: var(--blue); }
.acctbtn svg, .cartbtn svg { flex: none; width: 18px; height: 18px; }
.top .tools { flex: none; }

/* the same page serves the shop (/) and the lab report library (/lab-reports) */
.pg-home #reports, .pg-home .guide { display: none; }
.pg-lab .hero, .pg-lab .perks, .pg-lab #products, .pg-lab #track, .pg-lab #disclaimer { display: none; }
.pg-lab main > .wrap { padding-top: 2rem; }
#rmBody .sheet { padding: 0; background: none; border: 0; }

/* "COA only" filter: in the header on wide screens, in the category row on phones */
.coaonly { flex: none; display: inline-flex; align-items: center; gap: .45rem; height: 2.6rem; padding: 0 .9rem; background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.coaonly input, .coachip input { width: 1rem; height: 1rem; margin: 0; accent-color: var(--blue); }
.coaonly:has(input:checked) { border-color: var(--blue); color: var(--blue); background: var(--blue-wash); }
.coachip { display: inline-flex; align-items: center; gap: .45rem; }
.coachip.on { background: var(--blue-wash); border-color: var(--blue); color: var(--blue); }
@media (min-width: 761px) { .coachip { display: none; } }
@media (max-width: 760px) { .coaonly { display: none; } }

/* PDF lab reports and product documents */
.page.pdfpage { display: grid; place-items: center; background: #fff5f5; }
.page.pdfpage span { padding: .4rem .7rem; background: #b42318; color: #fff; border-radius: 6px; font: 700 .95rem/1 var(--body); letter-spacing: .05em; }
a.doc { text-decoration: none; color: inherit; }
.doclist { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.doclist a { display: flex; align-items: center; gap: .75rem; padding: .65rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; }
.doclist a:hover { border-color: var(--blue); }
.doclist strong { display: block; font-size: .9rem; }
.doclist small { color: var(--ink-2); font-size: .78rem; }
.dtype { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; background: var(--blue-wash); color: var(--blue); border-radius: 8px; font: 700 .7rem/1 var(--body); }
#rmBody > .block { margin-top: 1.25rem; }

/* Download app button in the header (icon only on phones) */
@media (max-width: 760px) { .appbtn span { display: none; } }
.pinbox [data-install] { justify-self: stretch; }

/* uploaded product picture fills the card's picture area */
.thumb .pimg { width: 100%; height: 100%; object-fit: contain; padding: 8%; }

/* refresh button: desktop only (phones pull down to refresh) */
.refbtn { width: 2.6rem; padding: 0; justify-content: center; }
@media (max-width: 760px) { .refbtn { display: none; } }
body { overscroll-behavior-y: contain; }

/* brand logo image in headers */
.brandimg { display: block; height: 2.6rem; width: auto; max-width: 14rem; object-fit: contain; }
.brandimg.big { height: 3.4rem; max-width: 18rem; margin-inline: auto; }
@media (max-width: 760px) { .brandimg { height: 2.1rem; max-width: 10rem; } }
.logo .hp { position: absolute; left: -9999px; }

/* real vial photo fills the card's picture area */
.thumb.photo { background: #efefef; }
.thumb.photo svg { width: 100%; height: 100%; }

/* top bar in the admin's navy, logo in a white box like the admin sidebar */
.top { background: var(--navy); border-bottom: 0; color: var(--on-navy); }
.top .logo { color: var(--on-navy); }
.top .logo .brandimg { padding: .3rem .6rem; background: #fff; border-radius: 10px; height: 2.9rem; box-sizing: border-box; }
.top .eyebrow { color: rgba(255, 255, 255, .72); }
.top .coaonly, .top .acctbtn, .top .stoggle { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--on-navy); }
.top .coaonly:hover, .top .acctbtn:hover, .top .stoggle:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.top .coaonly:has(input:checked) { background: #fff; color: var(--navy); border-color: #fff; }
.top .coaonly input { accent-color: var(--navy); }
.top .hsearch input { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }
.top .hsearch input::placeholder { color: rgba(255, 255, 255, .65); }
.top .hsearch input:focus { background: #fff; color: var(--ink); border-color: #fff; }
.top .hsearch svg { color: rgba(255, 255, 255, .75); }
.top .hsearch input:focus + svg, .top .hsearch:focus-within svg { color: var(--ink-2); }
.top .cartbtn { background: #fff; color: var(--navy); }
.top .cartbtn:hover { background: var(--blue-wash); }
.top .cartbtn .n { background: var(--navy); color: #fff; }
/* segmented switch (shared with the admin look) */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg button { height: 2.3rem; padding: 0 .9rem; background: var(--card); border: 0; border-right: 1px solid var(--line-strong); font: inherit; font-weight: 600; cursor: pointer; }
.seg button:last-child { border-right: 0; } .seg button.on { background: var(--navy); color: #fff; }

/* collapsible cards (collapse.js): the heading is the handle */
[data-fold] > .fold-head .fold-h, [data-fold] > .fold-h { cursor: pointer; user-select: none; }
.fold-h::before { content: "▾"; display: inline-block; width: 1em; margin-right: .1em; font-size: .9em; opacity: .55; transition: transform .15s; }
.folded .fold-h::before { transform: rotate(-90deg); }
.folded > :not(.fold-head) { display: none !important; }
.folded > .fold-head { margin-bottom: 0 !important; }

/* app switch in the rep app: the app you are in lights up green */
.appswitch button.on, .appswitch .on { background: #16a34a !important; color: #fff !important; }

/* embed mode: this admin / rep app shown inside the case tracker's page — no sidebar, just the content */
body.embed aside.side, body.embed .mtop, body.embed .navtoggle, body.embed .rtop { display: none !important; }
body.embed .adm { grid-template-columns: minmax(0, 1fr) !important; }
body.embed .pane { padding: 1rem !important; }
body.embed .rnav { top: 0; }

/* who's signed in (storefront) */
.staffbar { background: var(--navy, #0f1b33); color: #fff; font-size: .85rem; padding: .45rem var(--gutter, 1rem); display: flex; gap: .4rem 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.staffbar .back { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; }
.staffbar .back:hover { background: rgba(255,255,255,.12); }
.staffbar .muted { color: rgba(255,255,255,.75); }
.whobar { background: #fff7e0; color: #5b4300; border-bottom: 1px solid #f1dc9a; font-size: .85rem; padding: .45rem 1rem; display: flex; gap: .75rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.whobar .linkbtn { color: #7a4b00; font-weight: 600; }

.stockline.note { display: inline-block; color: #6b4b00; background: #fff1cc; border-radius: 999px; padding: .15rem .55rem; font-size: .78rem; font-weight: 600; margin-right: .4rem; }

/* promo banner colors */
.announce.tone-teal { background: #0f7c8c; color: #fff; }
.announce.tone-gold { background: #f4c542; color: #2b2100; }
.announce.tone-red { background: #b42318; color: #fff; }
.announce.linked { cursor: pointer; }
.announce.linked:hover { filter: brightness(1.08); }

/* locked promo banner: pinned on top, the header pinned right below it */
body.ann-sticky .announce { position: sticky; top: 0; z-index: 21; }
body.ann-sticky .top { top: var(--annh, 0px); }

/* iOS Safari gives date/time inputs a fixed native width that ignores width:100%, so they spill past their card. Keep every field inside its box. */
input[type=date], input[type=time], input[type=datetime-local], input[type=month], input[type=week] { -webkit-appearance: none; appearance: none; box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 2.4rem; text-align: left; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value, input[type=datetime-local]::-webkit-date-and-time-value, input[type=month]::-webkit-date-and-time-value { text-align: left; margin: 0; }
input, select, textarea { max-width: 100%; box-sizing: border-box; }
label, .field, .f { min-width: 0; }
